|
|
@@ -29,7 +29,6 @@ export const QMS_MODULES: Record<string, any> = {
|
|
|
{ key: 'id', label: '单据编号', width: 200, type: 'applicationLink' },
|
|
|
{ key: 'applicantName', label: '申请人', width: 100 },
|
|
|
{ key: 'applyTime', label: '申请时间', width: 160, type: 'datetime' },
|
|
|
- { key: 'status', label: '单据状态', width: 110, type: 'status' },
|
|
|
{ key: 'materialCount', label: '物料数', width: 100, type: 'number' },
|
|
|
{ key: 'remark', label: '备注', minWidth: 200, type: 'tooltip' }
|
|
|
],
|
|
|
@@ -53,6 +52,7 @@ export const QMS_MODULES: Record<string, any> = {
|
|
|
{ key: 'materialName', label: '名称', type: 'input', width: 160, required: true },
|
|
|
{ key: 'specification', label: '规格', type: 'input', width: 160 },
|
|
|
{ key: 'batch', label: '批次', type: 'input', width: 140 },
|
|
|
+ { key: 'inspectStatus', label: '状态', type: 'select', width: 120, options: ['待检验', '检验中', '检验完成'] },
|
|
|
{ key: 'quantity', label: '数量', type: 'number', width: 120, min: 0 },
|
|
|
{ key: 'unit', label: '单位', type: 'input', width: 100 },
|
|
|
{ key: 'remark', label: '备注', type: 'input', minWidth: 200 }
|
|
|
@@ -62,6 +62,7 @@ export const QMS_MODULES: Record<string, any> = {
|
|
|
materialName: '',
|
|
|
specification: '',
|
|
|
batch: '',
|
|
|
+ inspectStatus: '待检验',
|
|
|
quantity: 1,
|
|
|
unit: 'PCS',
|
|
|
remark: ''
|
|
|
@@ -77,65 +78,21 @@ export const QMS_MODULES: Record<string, any> = {
|
|
|
{ key: 'processing', label: '检验中' },
|
|
|
{ key: 'completed', label: '已完成' }
|
|
|
],
|
|
|
- keywordFields: ['applicationId', 'materialName'],
|
|
|
+ keywordFields: ['applicationId', 'sourceOrderNum', 'batch'],
|
|
|
columns: [
|
|
|
{ type: 'selection', width: 55 },
|
|
|
{ key: 'status', label: '状态', width: 90, type: 'status' },
|
|
|
- { key: 'id', label: '任务编号', width: 130 },
|
|
|
- { key: 'applicationId', label: '单据编号', width: 140, type: 'taskLink' },
|
|
|
- { key: 'materialInfo', label: '物料信息', minWidth: 220, type: 'textLines', lines: ['materialCode', 'materialName', 'specification'] },
|
|
|
- { key: 'supplierInfo', label: '供应商', width: 180, type: 'textLines', lines: ['supplierName', 'supplierCode'] },
|
|
|
+ { key: 'id', label: '任务编号', width: 140 },
|
|
|
+ { key: 'applicationId', label: '单据编号', width: 160, type: 'taskLink' },
|
|
|
+ { key: 'sourceOrderNum', label: '来源单号', width: 160 },
|
|
|
{ key: 'batch', label: '批次', width: 130, type: 'batch' },
|
|
|
- { key: 'location', label: '仓位', width: 110 },
|
|
|
- { key: 'responsibleName', label: '负责人', width: 100 },
|
|
|
- { key: 'priority', label: '优先级', width: 100, type: 'priority' },
|
|
|
- { key: 'startTime', label: '开始时间', width: 170, type: 'datetime' },
|
|
|
- { key: 'completeTime', label: '完成时间', width: 170, type: 'datetime' },
|
|
|
+ { key: 'quantity', label: '数量', width: 100 },
|
|
|
+ { key: 'unit', label: '单位', width: 80 },
|
|
|
+ { key: 'applyTime', label: '申请时间', width: 170, type: 'datetime' },
|
|
|
{ key: 'remark', label: '备注', minWidth: 200, type: 'tooltip' }
|
|
|
],
|
|
|
- advancedFilters: [
|
|
|
- { key: 'statusList', label: '状态', type: 'select', multiple: true, optionsKey: 'taskStatuses' },
|
|
|
- { key: 'supplierIds', label: '供应商', type: 'select', multiple: true, optionsKey: 'suppliers' },
|
|
|
- { key: 'materialCodes', label: '物料编码', type: 'select', multiple: true, optionsKey: 'materials' },
|
|
|
- { key: 'batchList', label: '批次', type: 'select', multiple: true, optionsKey: 'batches' },
|
|
|
- { key: 'responsibleIds', label: '负责人', type: 'select', multiple: true, optionsKey: 'responsibles' },
|
|
|
- { key: 'priorities', label: '优先级', type: 'select', multiple: true, options: [
|
|
|
- { label: '高', value: 'high' },
|
|
|
- { label: '中', value: 'medium' },
|
|
|
- { label: '低', value: 'low' }
|
|
|
- ] },
|
|
|
- { key: 'timeRange', label: '时间范围', type: 'datetimerange' }
|
|
|
- ]
|
|
|
+ advancedFilters: []
|
|
|
},
|
|
|
- taskForm: {
|
|
|
- title: '来料检验单',
|
|
|
- infoItems: [
|
|
|
- { key: 'supplierName', label: '供应商' },
|
|
|
- { key: 'materialName', label: '物料' },
|
|
|
- { key: 'batch', label: '批次' },
|
|
|
- { key: 'arrivalTime', label: '到货时间', type: 'datetime' },
|
|
|
- { key: 'inspectionSpecVersion', label: '检规版本' }
|
|
|
- ],
|
|
|
- projectColumns: [
|
|
|
- { key: 'itemName', label: '项目', width: 200 },
|
|
|
- { key: 'standard', label: '标准', width: 180 },
|
|
|
- { key: 'upperLimit', label: '上限', width: 120 },
|
|
|
- { key: 'lowerLimit', label: '下限', width: 120 },
|
|
|
- { key: 'unit', label: '单位', width: 100 },
|
|
|
- { key: 'result', label: '结果', width: 140, editable: true },
|
|
|
- { key: 'decision', label: '判定', width: 120, editable: true, type: 'select', options: ['合格', '不合格'] },
|
|
|
- { key: 'remark', label: '备注', minWidth: 200, editable: true }
|
|
|
- ],
|
|
|
- statisticsFields: [
|
|
|
- { key: 'sampleSize', label: '样本数' },
|
|
|
- { key: 'passCount', label: '合格数' },
|
|
|
- { key: 'failCount', label: '不合格数' },
|
|
|
- { key: 'result', label: '判定结果' }
|
|
|
- ],
|
|
|
- exceptionFields: {
|
|
|
- typeOptions: ['尺寸偏差', '外观缺陷', '功能异常']
|
|
|
- }
|
|
|
- }
|
|
|
},
|
|
|
ipqc: {
|
|
|
code: 'ipqc',
|
|
|
@@ -241,34 +198,6 @@ export const QMS_MODULES: Record<string, any> = {
|
|
|
{ key: 'timeRange', label: '时间范围', type: 'datetimerange' }
|
|
|
]
|
|
|
},
|
|
|
- taskForm: {
|
|
|
- title: '过程检验单',
|
|
|
- infoItems: [
|
|
|
- { key: 'workOrder', label: '生产订单' },
|
|
|
- { key: 'process', label: '工序/工步', formatter: (row: any) => `${row.process || ''}/${row.step || ''}` },
|
|
|
- { key: 'line', label: '线体/工位/设备', formatter: (row: any) => `${row.line || ''} / ${row.station || ''} / ${row.equipment || ''}` },
|
|
|
- { key: 'shift', label: '班次' },
|
|
|
- { key: 'inspectionSpecVersion', label: '检规版本' }
|
|
|
- ],
|
|
|
- projectColumns: [
|
|
|
- { key: 'category', label: '类别', width: 140 },
|
|
|
- { key: 'itemName', label: '项目', width: 200 },
|
|
|
- { key: 'standard', label: '标准', width: 200 },
|
|
|
- { key: 'upperLimit', label: '上限', width: 120 },
|
|
|
- { key: 'lowerLimit', label: '下限', width: 120 },
|
|
|
- { key: 'unit', label: '单位', width: 100 },
|
|
|
- { key: 'result', label: '结果', width: 140, editable: true },
|
|
|
- { key: 'decision', label: '判定', width: 120, editable: true, type: 'select', options: ['合格', '不合格'] },
|
|
|
- { key: 'remark', label: '备注', minWidth: 200, editable: true }
|
|
|
- ],
|
|
|
- statisticsFields: [
|
|
|
- { key: 'sampleSize', label: '样本数' },
|
|
|
- { key: 'passCount', label: '合格数' },
|
|
|
- { key: 'failCount', label: '不合格数' },
|
|
|
- { key: 'result', label: '判定结果' }
|
|
|
- ],
|
|
|
- exceptionFields: { typeOptions: ['制程异常', '设备异常', '人员操作'] }
|
|
|
- }
|
|
|
},
|
|
|
fqc: {
|
|
|
code: 'fqc',
|
|
|
@@ -373,37 +302,6 @@ export const QMS_MODULES: Record<string, any> = {
|
|
|
{ key: 'timeRange', label: '时间范围', type: 'datetimerange' }
|
|
|
]
|
|
|
},
|
|
|
- taskForm: {
|
|
|
- title: '成品检验单',
|
|
|
- infoItems: [
|
|
|
- { key: 'productName', label: '成品名称' },
|
|
|
- { key: 'productModel', label: '型号' },
|
|
|
- { key: 'customer', label: '客户' },
|
|
|
- { key: 'salesOrder', label: '销售订单/出货单' },
|
|
|
- { key: 'packageBatch', label: '包装批次/箱号' },
|
|
|
- { key: 'inspectionSpecVersion', label: '检规版本' }
|
|
|
- ],
|
|
|
- projectColumns: [
|
|
|
- { key: 'category', label: '类别', width: 140 },
|
|
|
- { key: 'itemName', label: '项目', width: 200 },
|
|
|
- { key: 'standard', label: '标准', width: 200 },
|
|
|
- { key: 'upperLimit', label: '上限', width: 120 },
|
|
|
- { key: 'lowerLimit', label: '下限', width: 120 },
|
|
|
- { key: 'unit', label: '单位', width: 100 },
|
|
|
- { key: 'result', label: '结果', width: 140, editable: true },
|
|
|
- { key: 'decision', label: '判定', width: 120, editable: true, type: 'select', options: ['合格', '不合格', '特采'] },
|
|
|
- { key: 'remark', label: '备注', minWidth: 200, editable: true }
|
|
|
- ],
|
|
|
- statisticsFields: [
|
|
|
- { key: 'sampleSize', label: '样本数' },
|
|
|
- { key: 'passCount', label: '合格数' },
|
|
|
- { key: 'failCount', label: '不合格数' },
|
|
|
- { key: 'specialAcceptCount', label: '特采数' },
|
|
|
- { key: 'result', label: '判定结果' }
|
|
|
- ],
|
|
|
- exceptionFields: { typeOptions: ['外观异常', '功能异常', '包装损坏', '标签错误'] },
|
|
|
- releaseActions: ['放行', '返工', '隔离', '特采']
|
|
|
- }
|
|
|
}
|
|
|
}
|
|
|
|