质检表单 调整

This commit is contained in:
andy 2026-08-12 17:22:27 +08:00
parent da1f401a7e
commit de37b84bd2

View File

@ -490,15 +490,16 @@ const columns: DataTableColumns<QualityTesting> = [
align: 'center', align: 'center',
width: 120 width: 120
}, },
{ title: '来源类型', key: 'sourceType',align: 'center', // { title: '', key: 'sourceType',align: 'center',
render(row) { // render(row) {
const val = row.sourceType // const val = row.sourceType
const opt = qcSourceTypeOptions.value.find(o => o.value === val || String(o.value) === String(val)) // const opt = qcSourceTypeOptions.value.find(o => o.value === val || String(o.value) === String(val))
if (!opt) return val ?? '-' // if (!opt) return val ?? '-'
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: 'ID(/)', key: 'sourceId' }, // { title: 'ID(/)', key: 'sourceId' },
// { title: 'ID', key: 'orderId' }, // { title: 'ID', key: 'orderId' },
// { title: 'ID', key: 'processId' }, // { title: 'ID', key: 'processId' },