This commit is contained in:
andy 2026-08-19 13:18:34 +08:00
parent 45e6856b7a
commit 58f5d547d0
3 changed files with 76 additions and 23 deletions

View File

@ -153,7 +153,9 @@
</n-upload> --> </n-upload> -->
<!-- @before-upload ="flchang" <!-- @before-upload ="flchang"
@change="flchang" @change="flchang"
@remove="flchang"--> @remove="flchang"
.doc,.docx,
-->
<n-upload <n-upload
directory-dnd directory-dnd
auto-upload="false" auto-upload="false"
@ -162,6 +164,7 @@
Authorization:TOKEN Authorization:TOKEN
}" }"
:max="20" :max="20"
accept=".pdf,.png,.jpg"
v-model:file-list="flist" v-model:file-list="flist"
@finish="flchang" @finish="flchang"
@remove="flremove" @remove="flremove"

View File

@ -63,6 +63,7 @@
:border="false" :border="false"
:single-line="false" :single-line="false"
striped striped
/> />
<div class="pagination-container" style="display: flex; justify-content: flex-end; margin-top: 12px"> <div class="pagination-container" style="display: flex; justify-content: flex-end; margin-top: 12px">
<n-pagination <n-pagination
@ -479,18 +480,23 @@ const formRules = {
// //
const columns: DataTableColumns<QualityTesting> = [ const columns: DataTableColumns<QualityTesting> = [
// { type: 'selection' }, // { type: 'selection' },
{ title: '质检编号', key: 'qcNo',align: 'center' }, {
title: '质检编号',
key: 'qcNo',
minWidth:160,
align: 'center'
},
{ {
title: '物料名称', title: '物料名称',
key: 'materialName', key: 'materialName',
align: 'center', align: 'center',
width: 150 minWidth: 150
}, },
{ {
title: '物料编码', title: '物料编码',
key: 'materialCode', key: 'materialCode',
align: 'center', align: 'center',
width: 120 minWidth: 120
}, },
// { title: '', key: 'sourceType',align: 'center', // { title: '', key: 'sourceType',align: 'center',
// render(row) { // render(row) {
@ -501,15 +507,39 @@ const columns: DataTableColumns<QualityTesting> = [
// return h(NTag, { type: opt.class, size: 'small' }, { default: () => opt.label }) // return h(NTag, { type: opt.class, size: 'small' }, { default: () => opt.label })
// } // }
// }, // },
{ title: '业务来源', key: 'businessName',align: 'center'}, {
title: '业务来源',
key: 'businessName',
align: 'center',
minWidth:100
},
// { title: 'ID(/)', key: 'sourceId' }, // { title: 'ID(/)', key: 'sourceId' },
// { title: 'ID', key: 'orderId' }, // { title: 'ID', key: 'orderId' },
// { title: 'ID', key: 'processId' }, // { title: 'ID', key: 'processId' },
// { title: 'ID', key: 'itemId' }, // { title: 'ID', key: 'itemId' },
{ title: '追溯码', key: 'traceCode',align: 'center' }, {
{ title: '报检总数', key: 'totalQty',align: 'center' }, title: '追溯码',
{ title: '已检验数量', key: 'inspectQty',align: 'center' }, key: 'traceCode',
{ title: '质检状态', key: 'status',align: 'center', align: 'center',
minWidth:300
},
{
title: '报检总数',
key: 'totalQty',
align: 'center',
minWidth:80
},
{
title: '已检验数量',
key: 'inspectQty',
align: 'center',
minWidth:100
},
{
title: '质检状态',
key: 'status',
align: 'center',
minWidth:80,
render(row) { render(row) {
const val = row.status const val = row.status
const opt = qcStatusOptions.value.find(o => o.value === val || String(o.value) === String(val)) const opt = qcStatusOptions.value.find(o => o.value === val || String(o.value) === String(val))
@ -517,9 +547,23 @@ const columns: DataTableColumns<QualityTesting> = [
return h(NTag, { type: opt.class, size: 'small' }, { default: () => opt.label }) return h(NTag, { type: opt.class, size: 'small' }, { default: () => opt.label })
} }
}, },
{ title: '检验员', key: 'inspector',align: 'center' }, {
{ title: '检验完成时间', key: 'inspectTime',align: 'center' }, title: '检验员',
{ title: '追溯类型', key: 'traceType',align: 'center', key: 'inspector',
align: 'center',
minWidth:100
},
{
title: '检验完成时间',
key: 'inspectTime',
align: 'center',
minWidth:150
},
{
title: '追溯类型',
key: 'traceType',
align: 'center',
minWidth:100,
render(row) { render(row) {
const val = row.traceType const val = row.traceType
const opt = qcTraceTypeOptions.value.find(o => o.value === val || String(o.value) === String(val)) const opt = qcTraceTypeOptions.value.find(o => o.value === val || String(o.value) === String(val))
@ -528,13 +572,19 @@ const columns: DataTableColumns<QualityTesting> = [
return h(NTag, { type: opt.class, size: 'small' }, { default: () => opt.label }) return h(NTag, { type: opt.class, size: 'small' }, { default: () => opt.label })
} }
}, },
{ title: '创建时间', key: 'createTime',align: 'center', width: 180 }, {
title: '创建时间',
key: 'createTime',
align: 'center',
minWidth: 180
},
{ title: '更新时间', key: 'updateTime',align: 'center', width: 180 }, { title: '更新时间', key: 'updateTime',align: 'center', width: 180 },
{ {
title: '操作', title: '操作',
key: 'actions', key: 'actions',
width: 140, minWidth: 140,
fixed: 'right', fixed: 'right',
align: 'center',
render(row) { render(row) {
return h('div', { style: { display: 'flex', alignItems: 'center', gap: '8px', flexWrap: 'nowrap' } }, [ return h('div', { style: { display: 'flex', alignItems: 'center', gap: '8px', flexWrap: 'nowrap' } }, [
h(NButton, { size: 'small', quaternary: true, onClick: () => handleEdit(row) }, { h(NButton, { size: 'small', quaternary: true, onClick: () => handleEdit(row) }, {

View File

@ -208,8 +208,8 @@
}" }"
:max="20" :max="20"
v-model:file-list="flist" v-model:file-list="flist"
@finish="flchang" @finish="flchang"
accept=".pdf,.png,.jpg"
> >
<n-upload-dragger> <n-upload-dragger>