|
@ -9,15 +9,7 @@ const { t } = useI18n() // 国际化 |
|
|
*/ |
|
|
*/ |
|
|
export const InspectionRecordMain = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
export const InspectionRecordMain = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
{ |
|
|
{ |
|
|
label: 'id', |
|
|
label: '记录编号', |
|
|
field: 'id', |
|
|
|
|
|
sort: 'custom', |
|
|
|
|
|
isTable: false, |
|
|
|
|
|
isSearch: true, |
|
|
|
|
|
isForm: false, |
|
|
|
|
|
}, |
|
|
|
|
|
{ |
|
|
|
|
|
label: '编码', |
|
|
|
|
|
field: 'number', |
|
|
field: 'number', |
|
|
sort: 'custom', |
|
|
sort: 'custom', |
|
|
isSearch: true, |
|
|
isSearch: true, |
|
@ -32,82 +24,82 @@ export const InspectionRecordMain = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
label: '任务编码', |
|
|
label: '任务编码', |
|
|
field: 'taskCode', |
|
|
field: 'taskCode', |
|
|
sort: 'custom', |
|
|
sort: 'custom', |
|
|
isSearch: true, |
|
|
isSearch: false, |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
label: '供应商编码', |
|
|
label: '供应商编码', |
|
|
field: 'supplierCode', |
|
|
field: 'supplierCode', |
|
|
sort: 'custom', |
|
|
sort: 'custom', |
|
|
isSearch: true, |
|
|
isSearch: false, |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
label: '物料编码', |
|
|
label: '物料编码', |
|
|
field: 'materialCode', |
|
|
field: 'materialCode', |
|
|
sort: 'custom', |
|
|
sort: 'custom', |
|
|
isSearch: true, |
|
|
isSearch: false, |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
label: '批次', |
|
|
label: '批次', |
|
|
field: 'batch', |
|
|
field: 'batch', |
|
|
sort: 'custom', |
|
|
sort: 'custom', |
|
|
isSearch: true, |
|
|
isSearch: false, |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
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: 'Select' |
|
|
}, |
|
|
}, |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
label: '检验批来源', |
|
|
label: '检验批来源', |
|
|
field: 'inspectionBatchSource', |
|
|
field: 'inspectionBatchSource', |
|
|
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 |
|
@ -117,13 +109,13 @@ export const InspectionRecordMain = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
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 |
|
@ -133,7 +125,7 @@ export const InspectionRecordMain = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
label: '检验阶段', |
|
|
label: '检验阶段', |
|
|
field: 'inspectionStage', |
|
|
field: 'inspectionStage', |
|
|
sort: 'custom', |
|
|
sort: 'custom', |
|
|
isSearch: true, |
|
|
isSearch: false, |
|
|
form: { |
|
|
form: { |
|
|
component: 'InputNumber', |
|
|
component: 'InputNumber', |
|
|
value: 0 |
|
|
value: 0 |
|
@ -143,20 +135,20 @@ export const InspectionRecordMain = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
label: '检验严格性', |
|
|
label: '检验严格性', |
|
|
field: 'inspectionStringency', |
|
|
field: 'inspectionStringency', |
|
|
sort: 'custom', |
|
|
sort: 'custom', |
|
|
isSearch: true, |
|
|
isSearch: false, |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
label: '使用决策', |
|
|
label: '使用决策', |
|
|
field: 'useDecision', |
|
|
field: 'useDecision', |
|
|
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: { |
|
@ -178,7 +170,7 @@ export const InspectionRecordMain = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
field: 'planEndTime', |
|
|
field: 'planEndTime', |
|
|
sort: 'custom', |
|
|
sort: 'custom', |
|
|
formatter: dateFormatter, |
|
|
formatter: dateFormatter, |
|
|
isSearch: true, |
|
|
isSearch: false, |
|
|
search: { |
|
|
search: { |
|
|
component: 'DatePicker', |
|
|
component: 'DatePicker', |
|
|
componentProps: { |
|
|
componentProps: { |
|
@ -200,7 +192,7 @@ export const InspectionRecordMain = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
field: 'realStartTime', |
|
|
field: 'realStartTime', |
|
|
sort: 'custom', |
|
|
sort: 'custom', |
|
|
formatter: dateFormatter, |
|
|
formatter: dateFormatter, |
|
|
isSearch: true, |
|
|
isSearch: false, |
|
|
search: { |
|
|
search: { |
|
|
component: 'DatePicker', |
|
|
component: 'DatePicker', |
|
|
componentProps: { |
|
|
componentProps: { |
|
@ -222,7 +214,7 @@ export const InspectionRecordMain = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
field: 'realEndTime', |
|
|
field: 'realEndTime', |
|
|
sort: 'custom', |
|
|
sort: 'custom', |
|
|
formatter: dateFormatter, |
|
|
formatter: dateFormatter, |
|
|
isSearch: true, |
|
|
isSearch: false, |
|
|
search: { |
|
|
search: { |
|
|
component: 'DatePicker', |
|
|
component: 'DatePicker', |
|
|
componentProps: { |
|
|
componentProps: { |
|
@ -243,26 +235,26 @@ export const InspectionRecordMain = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
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: 'createTime', |
|
|
field: 'createTime', |
|
|
sort: 'custom', |
|
|
sort: 'custom', |
|
|
formatter: dateFormatter, |
|
|
formatter: dateFormatter, |
|
|
isSearch: true, |
|
|
isSearch: false, |
|
|
search: { |
|
|
search: { |
|
|
component: 'DatePicker', |
|
|
component: 'DatePicker', |
|
|
componentProps: { |
|
|
componentProps: { |
|
@ -319,32 +311,32 @@ export const InspectionRecordDetail = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
field: 'id', |
|
|
field: 'id', |
|
|
sort: 'custom', |
|
|
sort: 'custom', |
|
|
isTable: false, |
|
|
isTable: false, |
|
|
isSearch: true, |
|
|
isSearch: false, |
|
|
isForm: false, |
|
|
isForm: false, |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
label: '记录编码', |
|
|
label: '记录编码', |
|
|
field: 'recordCode', |
|
|
field: 'recordCode', |
|
|
sort: 'custom', |
|
|
sort: 'custom', |
|
|
isSearch: true, |
|
|
isSearch: false, |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
label: '工序编码', |
|
|
label: '工序编码', |
|
|
field: 'processCode', |
|
|
field: 'processCode', |
|
|
sort: 'custom', |
|
|
sort: 'custom', |
|
|
isSearch: true, |
|
|
isSearch: false, |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
label: '工序描述', |
|
|
label: '工序描述', |
|
|
field: 'processDescribe', |
|
|
field: 'processDescribe', |
|
|
sort: 'custom', |
|
|
sort: 'custom', |
|
|
isSearch: true, |
|
|
isSearch: false, |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
label: '顺序号', |
|
|
label: '顺序号', |
|
|
field: 'sequenceCode', |
|
|
field: 'sequenceCode', |
|
|
sort: 'custom', |
|
|
sort: 'custom', |
|
|
isSearch: true, |
|
|
isSearch: false, |
|
|
form: { |
|
|
form: { |
|
|
component: 'InputNumber', |
|
|
component: 'InputNumber', |
|
|
value: 0 |
|
|
value: 0 |
|
@ -354,7 +346,7 @@ export const InspectionRecordDetail = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
label: '是否破坏性检验', |
|
|
label: '是否破坏性检验', |
|
|
field: 'isDestroyInspection', |
|
|
field: 'isDestroyInspection', |
|
|
sort: 'custom', |
|
|
sort: 'custom', |
|
|
isSearch: true, |
|
|
isSearch: false, |
|
|
form: { |
|
|
form: { |
|
|
component: 'Radio' |
|
|
component: 'Radio' |
|
|
}, |
|
|
}, |
|
@ -364,7 +356,7 @@ export const InspectionRecordDetail = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
field: 'inspectionStartTime', |
|
|
field: 'inspectionStartTime', |
|
|
sort: 'custom', |
|
|
sort: 'custom', |
|
|
formatter: dateFormatter, |
|
|
formatter: dateFormatter, |
|
|
isSearch: true, |
|
|
isSearch: false, |
|
|
search: { |
|
|
search: { |
|
|
component: 'DatePicker', |
|
|
component: 'DatePicker', |
|
|
componentProps: { |
|
|
componentProps: { |
|
@ -386,7 +378,7 @@ export const InspectionRecordDetail = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
field: 'inspectionEndTime', |
|
|
field: 'inspectionEndTime', |
|
|
sort: 'custom', |
|
|
sort: 'custom', |
|
|
formatter: dateFormatter, |
|
|
formatter: dateFormatter, |
|
|
isSearch: true, |
|
|
isSearch: false, |
|
|
search: { |
|
|
search: { |
|
|
component: 'DatePicker', |
|
|
component: 'DatePicker', |
|
|
componentProps: { |
|
|
componentProps: { |
|
@ -407,26 +399,26 @@ export const InspectionRecordDetail = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
label: '检验人', |
|
|
label: '检验人', |
|
|
field: 'inspectionOperator', |
|
|
field: 'inspectionOperator', |
|
|
sort: 'custom', |
|
|
sort: 'custom', |
|
|
isSearch: true, |
|
|
isSearch: false, |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
label: '检验特性编码', |
|
|
label: '检验特性编码', |
|
|
field: 'inspectionFeaturesCode', |
|
|
field: 'inspectionFeaturesCode', |
|
|
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: 'createTime', |
|
|
field: 'createTime', |
|
|
sort: 'custom', |
|
|
sort: 'custom', |
|
|
formatter: dateFormatter, |
|
|
formatter: dateFormatter, |
|
|
isSearch: true, |
|
|
isSearch: false, |
|
|
search: { |
|
|
search: { |
|
|
component: 'DatePicker', |
|
|
component: 'DatePicker', |
|
|
componentProps: { |
|
|
componentProps: { |