修改
This commit is contained in:
parent
45e6856b7a
commit
58f5d547d0
@ -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"
|
||||||
|
|||||||
@ -55,14 +55,15 @@
|
|||||||
|
|
||||||
<!-- 表格 -->
|
<!-- 表格 -->
|
||||||
<n-data-table
|
<n-data-table
|
||||||
:columns="columns"
|
:columns="columns"
|
||||||
:data="tableData"
|
:data="tableData"
|
||||||
:loading="loading"
|
:loading="loading"
|
||||||
size="small"
|
size="small"
|
||||||
remote
|
remote
|
||||||
: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) }, {
|
||||||
|
|||||||
@ -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>
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user