|
@ -8,203 +8,203 @@ const { t } = useI18n() // 国际化 |
|
|
* @returns {Array} 备件申请主表 |
|
|
* @returns {Array} 备件申请主表 |
|
|
*/ |
|
|
*/ |
|
|
export const InspectionJobMain = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
export const InspectionJobMain = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
{ |
|
|
{ |
|
|
label: '编码', |
|
|
label: '编码', |
|
|
field: 'number', |
|
|
field: 'number', |
|
|
sort: 'custom', |
|
|
sort: 'custom', |
|
|
isSearch: true, |
|
|
isSearch: true, |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
label: '申请编码', |
|
|
label: '申请编码', |
|
|
field: 'inspectionCode', |
|
|
field: 'inspectionCode', |
|
|
sort: 'custom', |
|
|
sort: 'custom', |
|
|
isSearch: true, |
|
|
isSearch: true, |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
label: '供应商编码', |
|
|
label: '供应商编码', |
|
|
field: 'supplierCode', |
|
|
field: 'supplierCode', |
|
|
sort: 'custom', |
|
|
sort: 'custom', |
|
|
isSearch: true, |
|
|
isSearch: true, |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
label: '物料编码', |
|
|
label: '物料编码', |
|
|
field: 'materialCode', |
|
|
field: 'materialCode', |
|
|
sort: 'custom', |
|
|
sort: 'custom', |
|
|
isSearch: true, |
|
|
isSearch: true, |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
label: '物料批次', |
|
|
label: '物料批次', |
|
|
field: 'materialBatch', |
|
|
field: 'materialBatch', |
|
|
sort: 'custom', |
|
|
sort: 'custom', |
|
|
isSearch: true, |
|
|
isSearch: false, |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
label: '订单号', |
|
|
label: '订单号', |
|
|
field: 'orderCode', |
|
|
field: 'orderCode', |
|
|
sort: 'custom', |
|
|
sort: 'custom', |
|
|
isSearch: true, |
|
|
isSearch: false, |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
label: '订单行', |
|
|
label: '订单行', |
|
|
field: 'orderRow', |
|
|
field: 'orderRow', |
|
|
sort: 'custom', |
|
|
sort: 'custom', |
|
|
isSearch: true, |
|
|
isSearch: false, |
|
|
form: { |
|
|
form: { |
|
|
component: 'InputNumber', |
|
|
component: 'InputNumber', |
|
|
value: 0 |
|
|
value: 0 |
|
|
}, |
|
|
}, |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
label: '凭证号', |
|
|
label: '凭证号', |
|
|
field: 'certificateCode', |
|
|
field: 'certificateCode', |
|
|
sort: 'custom', |
|
|
sort: 'custom', |
|
|
isSearch: true, |
|
|
isSearch: false, |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
label: '凭证行', |
|
|
label: '凭证行', |
|
|
field: 'certificateRow', |
|
|
field: 'certificateRow', |
|
|
sort: 'custom', |
|
|
sort: 'custom', |
|
|
isSearch: true, |
|
|
isSearch: false, |
|
|
form: { |
|
|
form: { |
|
|
component: 'InputNumber', |
|
|
component: 'InputNumber', |
|
|
value: 0 |
|
|
value: 0 |
|
|
}, |
|
|
}, |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
label: '检验方案编码', |
|
|
label: '检验方案编码', |
|
|
field: 'inspectionSchemeCode', |
|
|
field: 'inspectionSchemeCode', |
|
|
sort: 'custom', |
|
|
sort: 'custom', |
|
|
isSearch: true, |
|
|
isSearch: false, |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
label: '检验方案Json', |
|
|
label: '检验方案Json', |
|
|
field: 'inspectionSchemeJson', |
|
|
field: 'inspectionSchemeJson', |
|
|
sort: 'custom', |
|
|
sort: 'custom', |
|
|
isSearch: true, |
|
|
isSearch: false, |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
label: '检验批次', |
|
|
label: '检验批次', |
|
|
field: 'inspectionBatch', |
|
|
field: 'inspectionBatch', |
|
|
sort: 'custom', |
|
|
sort: 'custom', |
|
|
isSearch: true, |
|
|
isSearch: false, |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
label: '检验批数量', |
|
|
label: '检验批数量', |
|
|
field: 'inspectionBatchAmount', |
|
|
field: 'inspectionBatchAmount', |
|
|
sort: 'custom', |
|
|
sort: 'custom', |
|
|
isSearch: true, |
|
|
isSearch: false, |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
label: '采样总数量', |
|
|
label: '采样总数量', |
|
|
field: 'sampleTatalAmount', |
|
|
field: 'sampleTatalAmount', |
|
|
sort: 'custom', |
|
|
sort: 'custom', |
|
|
isSearch: true, |
|
|
isSearch: false, |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
label: '检验类型', |
|
|
label: '检验类型', |
|
|
field: 'inspectionType', |
|
|
field: 'inspectionType', |
|
|
sort: 'custom', |
|
|
sort: 'custom', |
|
|
isSearch: true, |
|
|
isSearch: false, |
|
|
form: { |
|
|
form: { |
|
|
component: 'SelectV2' |
|
|
component: 'SelectV2' |
|
|
}, |
|
|
}, |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
label: '检验批来源', |
|
|
label: '检验批来源', |
|
|
field: 'inspectionBatchSource', |
|
|
field: 'inspectionBatchSource', |
|
|
sort: 'custom', |
|
|
sort: 'custom', |
|
|
isSearch: true, |
|
|
isSearch: false, |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
label: '检验阶段', |
|
|
label: '检验阶段', |
|
|
field: 'inspectionStage', |
|
|
field: 'inspectionStage', |
|
|
sort: 'custom', |
|
|
sort: 'custom', |
|
|
isSearch: true, |
|
|
isSearch: false, |
|
|
form: { |
|
|
form: { |
|
|
component: 'InputNumber', |
|
|
component: 'InputNumber', |
|
|
value: 0 |
|
|
value: 0 |
|
|
}, |
|
|
}, |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
label: '检验严格性', |
|
|
label: '检验严格性', |
|
|
field: 'inspectionStringency', |
|
|
field: 'inspectionStringency', |
|
|
sort: 'custom', |
|
|
sort: 'custom', |
|
|
isSearch: true, |
|
|
isSearch: false, |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
label: '检验任务包装列表', |
|
|
label: '检验任务包装列表', |
|
|
field: 'inspectionTaskPackageCode', |
|
|
field: 'inspectionTaskPackageCode', |
|
|
sort: 'custom', |
|
|
sort: 'custom', |
|
|
isSearch: true, |
|
|
isSearch: false, |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
label: '检验任务工序列表', |
|
|
label: '检验任务工序列表', |
|
|
field: 'inspectionTaskProcessCode', |
|
|
field: 'inspectionTaskProcessCode', |
|
|
sort: 'custom', |
|
|
sort: 'custom', |
|
|
isSearch: true, |
|
|
isSearch: false, |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
label: '计划开始时间', |
|
|
label: '计划开始时间', |
|
|
field: 'planStartTime', |
|
|
field: 'planStartTime', |
|
|
sort: 'custom', |
|
|
sort: 'custom', |
|
|
formatter: dateFormatter, |
|
|
formatter: dateFormatter, |
|
|
isSearch: true, |
|
|
isSearch: false, |
|
|
search: { |
|
|
search: { |
|
|
component: 'DatePicker', |
|
|
component: 'DatePicker', |
|
|
componentProps: { |
|
|
componentProps: { |
|
|
valueFormat: 'YYYY-MM-DD HH:mm:ss', |
|
|
valueFormat: 'YYYY-MM-DD HH:mm:ss', |
|
|
type: 'daterange', |
|
|
type: 'daterange', |
|
|
defaultTime: [new Date('1 00:00:00'), new Date('1 23:59:59')] |
|
|
defaultTime: [new Date('1 00:00:00'), new Date('1 23:59:59')] |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
|
form: { |
|
|
form: { |
|
|
component: 'DatePicker', |
|
|
component: 'DatePicker', |
|
|
componentProps: { |
|
|
componentProps: { |
|
|
type: 'datetime', |
|
|
type: 'datetime', |
|
|
valueFormat: 'x' |
|
|
valueFormat: 'x' |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
label: '计划结束时间', |
|
|
label: '计划结束时间', |
|
|
field: 'planEndTime', |
|
|
field: 'planEndTime', |
|
|
sort: 'custom', |
|
|
sort: 'custom', |
|
|
formatter: dateFormatter, |
|
|
formatter: dateFormatter, |
|
|
isSearch: true, |
|
|
isSearch: false, |
|
|
search: { |
|
|
search: { |
|
|
component: 'DatePicker', |
|
|
component: 'DatePicker', |
|
|
componentProps: { |
|
|
componentProps: { |
|
|
valueFormat: 'YYYY-MM-DD HH:mm:ss', |
|
|
valueFormat: 'YYYY-MM-DD HH:mm:ss', |
|
|
type: 'daterange', |
|
|
type: 'daterange', |
|
|
defaultTime: [new Date('1 00:00:00'), new Date('1 23:59:59')] |
|
|
defaultTime: [new Date('1 00:00:00'), new Date('1 23:59:59')] |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
|
form: { |
|
|
form: { |
|
|
component: 'DatePicker', |
|
|
component: 'DatePicker', |
|
|
componentProps: { |
|
|
componentProps: { |
|
|
type: 'datetime', |
|
|
type: 'datetime', |
|
|
valueFormat: 'x' |
|
|
valueFormat: 'x' |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
label: '检验水平', |
|
|
label: '检验水平', |
|
|
field: 'inspectionLevel', |
|
|
field: 'inspectionLevel', |
|
|
sort: 'custom', |
|
|
sort: 'custom', |
|
|
isSearch: true, |
|
|
isSearch: false, |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
label: 'AQL值', |
|
|
label: 'AQL值', |
|
|
field: 'aqlValue', |
|
|
field: 'aqlValue', |
|
|
sort: 'custom', |
|
|
sort: 'custom', |
|
|
isSearch: true, |
|
|
isSearch: false, |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
label: '是否可用', |
|
|
label: '是否可用', |
|
|
field: 'available', |
|
|
field: 'available', |
|
|
sort: 'custom', |
|
|
sort: 'custom', |
|
|
isSearch: true, |
|
|
isSearch: false, |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
label: '操作', |
|
|
label: '操作', |
|
|
field: 'action', |
|
|
field: 'action', |
|
@ -243,70 +243,70 @@ export const InspectionJobMainRules = reactive({ |
|
|
* @returns {Array} 备件申请子表 |
|
|
* @returns {Array} 备件申请子表 |
|
|
*/ |
|
|
*/ |
|
|
export const InspectionJobDetail = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
export const InspectionJobDetail = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
{ |
|
|
{ |
|
|
label: 'id', |
|
|
label: 'id', |
|
|
field: 'id', |
|
|
field: 'id', |
|
|
sort: 'custom', |
|
|
sort: 'custom', |
|
|
isTable: false, |
|
|
isTable: false, |
|
|
isSearch: true, |
|
|
isSearch: true, |
|
|
isForm: false, |
|
|
isForm: false, |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
label: '单据号', |
|
|
label: '单据号', |
|
|
field: 'number', |
|
|
field: 'number', |
|
|
sort: 'custom', |
|
|
sort: 'custom', |
|
|
isSearch: true, |
|
|
isSearch: true, |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
label: '主表ID', |
|
|
label: '主表ID', |
|
|
field: 'masterId', |
|
|
field: 'masterId', |
|
|
sort: 'custom', |
|
|
sort: 'custom', |
|
|
isSearch: true, |
|
|
isSearch: true, |
|
|
form: { |
|
|
form: { |
|
|
component: 'InputNumber', |
|
|
component: 'InputNumber', |
|
|
value: 0 |
|
|
value: 0 |
|
|
}, |
|
|
|
|
|
}, |
|
|
|
|
|
{ |
|
|
|
|
|
label: '任务编码', |
|
|
|
|
|
field: 'taskCode', |
|
|
|
|
|
sort: 'custom', |
|
|
|
|
|
isSearch: true, |
|
|
|
|
|
}, |
|
|
|
|
|
{ |
|
|
|
|
|
label: '工序编码', |
|
|
|
|
|
field: 'processCode', |
|
|
|
|
|
sort: 'custom', |
|
|
|
|
|
isSearch: true, |
|
|
|
|
|
}, |
|
|
|
|
|
{ |
|
|
|
|
|
label: '工序描述', |
|
|
|
|
|
field: 'processDescribe', |
|
|
|
|
|
sort: 'custom', |
|
|
|
|
|
isSearch: true, |
|
|
|
|
|
}, |
|
|
|
|
|
{ |
|
|
|
|
|
label: '顺序号', |
|
|
|
|
|
field: 'sequenceCode', |
|
|
|
|
|
sort: 'custom', |
|
|
|
|
|
isSearch: true, |
|
|
|
|
|
form: { |
|
|
|
|
|
component: 'InputNumber', |
|
|
|
|
|
value: 0 |
|
|
|
|
|
}, |
|
|
|
|
|
}, |
|
|
|
|
|
{ |
|
|
|
|
|
label: '检验特性编号', |
|
|
|
|
|
field: 'inspectionFeatureCode', |
|
|
|
|
|
sort: 'custom', |
|
|
|
|
|
isSearch: true, |
|
|
|
|
|
}, |
|
|
}, |
|
|
{ |
|
|
}, |
|
|
label: '是否可用', |
|
|
{ |
|
|
field: 'available', |
|
|
label: '任务编码', |
|
|
sort: 'custom', |
|
|
field: 'taskCode', |
|
|
isSearch: true, |
|
|
sort: 'custom', |
|
|
|
|
|
isSearch: true, |
|
|
|
|
|
}, |
|
|
|
|
|
{ |
|
|
|
|
|
label: '工序编码', |
|
|
|
|
|
field: 'processCode', |
|
|
|
|
|
sort: 'custom', |
|
|
|
|
|
isSearch: true, |
|
|
|
|
|
}, |
|
|
|
|
|
{ |
|
|
|
|
|
label: '工序描述', |
|
|
|
|
|
field: 'processDescribe', |
|
|
|
|
|
sort: 'custom', |
|
|
|
|
|
isSearch: true, |
|
|
|
|
|
}, |
|
|
|
|
|
{ |
|
|
|
|
|
label: '顺序号', |
|
|
|
|
|
field: 'sequenceCode', |
|
|
|
|
|
sort: 'custom', |
|
|
|
|
|
isSearch: true, |
|
|
|
|
|
form: { |
|
|
|
|
|
component: 'InputNumber', |
|
|
|
|
|
value: 0 |
|
|
}, |
|
|
}, |
|
|
|
|
|
}, |
|
|
|
|
|
{ |
|
|
|
|
|
label: '检验特性编号', |
|
|
|
|
|
field: 'inspectionFeatureCode', |
|
|
|
|
|
sort: 'custom', |
|
|
|
|
|
isSearch: true, |
|
|
|
|
|
}, |
|
|
|
|
|
{ |
|
|
|
|
|
label: '是否可用', |
|
|
|
|
|
field: 'available', |
|
|
|
|
|
sort: 'custom', |
|
|
|
|
|
isSearch: true, |
|
|
|
|
|
}, |
|
|
{ |
|
|
{ |
|
|
label: '操作', |
|
|
label: '操作', |
|
|
field: 'action', |
|
|
field: 'action', |
|
|