|
|
@ -15,10 +15,14 @@ export const InspectionRecordMain = useCrudSchemas( |
|
|
|
field: 'number', |
|
|
|
sort: 'custom', |
|
|
|
isSearch: true, |
|
|
|
isForm: false, |
|
|
|
table: { |
|
|
|
width: 200, |
|
|
|
fixed: 'left' |
|
|
|
}, |
|
|
|
form: { |
|
|
|
componentProps: { |
|
|
|
disabled: true |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|
{ |
|
|
@ -26,9 +30,13 @@ export const InspectionRecordMain = useCrudSchemas( |
|
|
|
field: 'requestNumber', |
|
|
|
sort: 'custom', |
|
|
|
isSearch: true, |
|
|
|
isForm: false, |
|
|
|
table: { |
|
|
|
width: 200 |
|
|
|
}, |
|
|
|
form: { |
|
|
|
componentProps: { |
|
|
|
disabled: true |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|
{ |
|
|
@ -36,9 +44,13 @@ export const InspectionRecordMain = useCrudSchemas( |
|
|
|
field: 'jobNumber', |
|
|
|
sort: 'custom', |
|
|
|
isSearch: false, |
|
|
|
isForm: false, |
|
|
|
table: { |
|
|
|
width: 200 |
|
|
|
}, |
|
|
|
form: { |
|
|
|
componentProps: { |
|
|
|
disabled: true |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|
{ |
|
|
@ -46,6 +58,7 @@ export const InspectionRecordMain = useCrudSchemas( |
|
|
|
field: 'asnNumber', |
|
|
|
sort: 'custom', |
|
|
|
isSearch: true, |
|
|
|
isForm:false, |
|
|
|
form: { |
|
|
|
componentProps: { |
|
|
|
disabled: true |
|
|
@ -60,9 +73,13 @@ export const InspectionRecordMain = useCrudSchemas( |
|
|
|
field: 'supplierCode', |
|
|
|
sort: 'custom', |
|
|
|
isSearch: false, |
|
|
|
isForm: false, |
|
|
|
table: { |
|
|
|
width: 200 |
|
|
|
}, |
|
|
|
form: { |
|
|
|
componentProps: { |
|
|
|
disabled: true |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|
{ |
|
|
@ -70,7 +87,6 @@ export const InspectionRecordMain = useCrudSchemas( |
|
|
|
field: 'supplierName', |
|
|
|
sort: 'custom', |
|
|
|
isSearch: false, |
|
|
|
isForm: false, |
|
|
|
table: { |
|
|
|
width: 200 |
|
|
|
}, |
|
|
@ -85,7 +101,6 @@ export const InspectionRecordMain = useCrudSchemas( |
|
|
|
field: 'itemCode', |
|
|
|
sort: 'custom', |
|
|
|
isSearch: false, |
|
|
|
isForm: false, |
|
|
|
table: { |
|
|
|
width: 150 |
|
|
|
}, |
|
|
@ -100,7 +115,6 @@ export const InspectionRecordMain = useCrudSchemas( |
|
|
|
field: 'itemName', |
|
|
|
sort: 'custom', |
|
|
|
isSearch: false, |
|
|
|
isForm: false, |
|
|
|
table: { |
|
|
|
width: 200 |
|
|
|
}, |
|
|
@ -115,9 +129,13 @@ export const InspectionRecordMain = useCrudSchemas( |
|
|
|
field: 'batch', |
|
|
|
sort: 'custom', |
|
|
|
isSearch: false, |
|
|
|
isForm: false, |
|
|
|
table: { |
|
|
|
width: 150 |
|
|
|
}, |
|
|
|
form: { |
|
|
|
componentProps: { |
|
|
|
disabled: true |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|
{ |
|
|
@ -125,9 +143,13 @@ export const InspectionRecordMain = useCrudSchemas( |
|
|
|
field: 'supplierBatch', |
|
|
|
sort: 'custom', |
|
|
|
isSearch: false, |
|
|
|
isForm: false, |
|
|
|
table: { |
|
|
|
width: 150 |
|
|
|
}, |
|
|
|
form: { |
|
|
|
componentProps: { |
|
|
|
disabled: true |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|
{ |
|
|
@ -135,9 +157,13 @@ export const InspectionRecordMain = useCrudSchemas( |
|
|
|
field: 'inspectionSchemeCode', |
|
|
|
sort: 'custom', |
|
|
|
isSearch: false, |
|
|
|
isForm: false, |
|
|
|
table: { |
|
|
|
width: 200 |
|
|
|
}, |
|
|
|
form: { |
|
|
|
componentProps: { |
|
|
|
disabled: true |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|
{ |
|
|
@ -145,9 +171,13 @@ export const InspectionRecordMain = useCrudSchemas( |
|
|
|
field: 'inspectionBatch', |
|
|
|
sort: 'custom', |
|
|
|
isSearch: false, |
|
|
|
isForm: false, |
|
|
|
table: { |
|
|
|
width: 150 |
|
|
|
}, |
|
|
|
form: { |
|
|
|
componentProps: { |
|
|
|
disabled: true |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|
{ |
|
|
@ -155,9 +185,13 @@ export const InspectionRecordMain = useCrudSchemas( |
|
|
|
field: 'inspectionBatchAmount', |
|
|
|
sort: 'custom', |
|
|
|
isSearch: false, |
|
|
|
isForm: false, |
|
|
|
table: { |
|
|
|
width: 150 |
|
|
|
}, |
|
|
|
form: { |
|
|
|
componentProps: { |
|
|
|
disabled: true |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|
// {
|
|
|
@ -176,9 +210,11 @@ export const InspectionRecordMain = useCrudSchemas( |
|
|
|
dictType: DICT_TYPE.INSPECTION_TYPE, |
|
|
|
sort: 'custom', |
|
|
|
isSearch: false, |
|
|
|
isForm: false, |
|
|
|
form: { |
|
|
|
component: 'Select' |
|
|
|
component: 'Select', |
|
|
|
componentProps: { |
|
|
|
disabled: true |
|
|
|
} |
|
|
|
}, |
|
|
|
table: { |
|
|
|
width: 150 |
|
|
@ -189,9 +225,13 @@ export const InspectionRecordMain = useCrudSchemas( |
|
|
|
field: 'referenceOrderCode', |
|
|
|
sort: 'custom', |
|
|
|
isSearch: false, |
|
|
|
isForm: false, |
|
|
|
table: { |
|
|
|
width: 150 |
|
|
|
}, |
|
|
|
form: { |
|
|
|
componentProps: { |
|
|
|
disabled: true |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|
{ |
|
|
@ -199,10 +239,13 @@ export const InspectionRecordMain = useCrudSchemas( |
|
|
|
field: 'referenceOrderRow', |
|
|
|
sort: 'custom', |
|
|
|
isSearch: false, |
|
|
|
isForm: false, |
|
|
|
form: { |
|
|
|
component: 'InputNumber', |
|
|
|
value: 0 |
|
|
|
value: 0, |
|
|
|
componentProps: { |
|
|
|
disabled: true |
|
|
|
} |
|
|
|
|
|
|
|
}, |
|
|
|
table: { |
|
|
|
width: 150 |
|
|
@ -213,9 +256,13 @@ export const InspectionRecordMain = useCrudSchemas( |
|
|
|
field: 'referenceCertificateCode', |
|
|
|
sort: 'custom', |
|
|
|
isSearch: false, |
|
|
|
isForm: false, |
|
|
|
table: { |
|
|
|
width: 150 |
|
|
|
}, |
|
|
|
form: { |
|
|
|
componentProps: { |
|
|
|
disabled: true |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|
{ |
|
|
@ -224,10 +271,13 @@ export const InspectionRecordMain = useCrudSchemas( |
|
|
|
field: 'referenceCertificateRow', |
|
|
|
sort: 'custom', |
|
|
|
isSearch: false, |
|
|
|
isForm: false, |
|
|
|
form: { |
|
|
|
component: 'InputNumber', |
|
|
|
value: 0 |
|
|
|
value: 0, |
|
|
|
componentProps: { |
|
|
|
disabled: true |
|
|
|
} |
|
|
|
|
|
|
|
}, |
|
|
|
table: { |
|
|
|
width: 150 |
|
|
@ -238,10 +288,13 @@ export const InspectionRecordMain = useCrudSchemas( |
|
|
|
field: 'inspectionStage', |
|
|
|
sort: 'custom', |
|
|
|
isSearch: false, |
|
|
|
isForm: false, |
|
|
|
form: { |
|
|
|
component: 'InputNumber', |
|
|
|
value: 0 |
|
|
|
value: 0, |
|
|
|
componentProps: { |
|
|
|
disabled: true |
|
|
|
} |
|
|
|
|
|
|
|
}, |
|
|
|
table: { |
|
|
|
width: 150 |
|
|
@ -253,9 +306,13 @@ export const InspectionRecordMain = useCrudSchemas( |
|
|
|
dictType: DICT_TYPE.INSPECTION_SEVERITY, |
|
|
|
sort: 'custom', |
|
|
|
isSearch: false, |
|
|
|
isForm: false, |
|
|
|
table: { |
|
|
|
width: 150 |
|
|
|
}, |
|
|
|
form: { |
|
|
|
componentProps: { |
|
|
|
disabled: true |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|
{ |
|
|
@ -264,7 +321,6 @@ export const InspectionRecordMain = useCrudSchemas( |
|
|
|
sort: 'custom', |
|
|
|
formatter: dateFormatter, |
|
|
|
isSearch: false, |
|
|
|
isForm: false, |
|
|
|
search: { |
|
|
|
component: 'DatePicker', |
|
|
|
componentProps: { |
|
|
@ -277,7 +333,8 @@ export const InspectionRecordMain = useCrudSchemas( |
|
|
|
component: 'DatePicker', |
|
|
|
componentProps: { |
|
|
|
type: 'datetime', |
|
|
|
valueFormat: 'x' |
|
|
|
valueFormat: 'x', |
|
|
|
disabled: true |
|
|
|
} |
|
|
|
}, |
|
|
|
detail: { |
|
|
@ -293,7 +350,6 @@ export const InspectionRecordMain = useCrudSchemas( |
|
|
|
sort: 'custom', |
|
|
|
formatter: dateFormatter, |
|
|
|
isSearch: false, |
|
|
|
isForm: false, |
|
|
|
search: { |
|
|
|
component: 'DatePicker', |
|
|
|
componentProps: { |
|
|
@ -306,7 +362,8 @@ export const InspectionRecordMain = useCrudSchemas( |
|
|
|
component: 'DatePicker', |
|
|
|
componentProps: { |
|
|
|
type: 'datetime', |
|
|
|
valueFormat: 'x' |
|
|
|
valueFormat: 'x', |
|
|
|
disabled: true |
|
|
|
} |
|
|
|
}, |
|
|
|
detail: { |
|
|
@ -322,7 +379,6 @@ export const InspectionRecordMain = useCrudSchemas( |
|
|
|
sort: 'custom', |
|
|
|
formatter: dateFormatter, |
|
|
|
isSearch: false, |
|
|
|
isForm: false, |
|
|
|
search: { |
|
|
|
component: 'DatePicker', |
|
|
|
componentProps: { |
|
|
@ -335,7 +391,8 @@ export const InspectionRecordMain = useCrudSchemas( |
|
|
|
component: 'DatePicker', |
|
|
|
componentProps: { |
|
|
|
type: 'datetime', |
|
|
|
valueFormat: 'x' |
|
|
|
valueFormat: 'x', |
|
|
|
disabled: true |
|
|
|
} |
|
|
|
}, |
|
|
|
detail: { |
|
|
@ -351,7 +408,6 @@ export const InspectionRecordMain = useCrudSchemas( |
|
|
|
sort: 'custom', |
|
|
|
formatter: dateFormatter, |
|
|
|
isSearch: false, |
|
|
|
isForm: false, |
|
|
|
search: { |
|
|
|
component: 'DatePicker', |
|
|
|
componentProps: { |
|
|
@ -364,7 +420,8 @@ export const InspectionRecordMain = useCrudSchemas( |
|
|
|
component: 'DatePicker', |
|
|
|
componentProps: { |
|
|
|
type: 'datetime', |
|
|
|
valueFormat: 'x' |
|
|
|
valueFormat: 'x', |
|
|
|
disabled: true |
|
|
|
} |
|
|
|
}, |
|
|
|
detail: { |
|
|
@ -374,13 +431,13 @@ export const InspectionRecordMain = useCrudSchemas( |
|
|
|
width: 175 |
|
|
|
} |
|
|
|
}, |
|
|
|
|
|
|
|
{ |
|
|
|
label: '收货时间', |
|
|
|
field: 'deliveryTime', |
|
|
|
sort: 'custom', |
|
|
|
formatter: dateFormatter, |
|
|
|
isSearch: false, |
|
|
|
isForm: false, |
|
|
|
search: { |
|
|
|
component: 'DatePicker', |
|
|
|
componentProps: { |
|
|
@ -390,6 +447,7 @@ export const InspectionRecordMain = useCrudSchemas( |
|
|
|
} |
|
|
|
}, |
|
|
|
form: { |
|
|
|
component: 'DatePicker', |
|
|
|
componentProps: { |
|
|
|
type: 'datetime', |
|
|
|
valueFormat: 'x' |
|
|
@ -408,9 +466,13 @@ export const InspectionRecordMain = useCrudSchemas( |
|
|
|
dictType: DICT_TYPE.INSPECTION_LEVEL, |
|
|
|
sort: 'custom', |
|
|
|
isSearch: false, |
|
|
|
isForm: false, |
|
|
|
table: { |
|
|
|
width: 150 |
|
|
|
}, |
|
|
|
form: { |
|
|
|
componentProps: { |
|
|
|
disabled: true |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|
{ |
|
|
@ -419,9 +481,13 @@ export const InspectionRecordMain = useCrudSchemas( |
|
|
|
dictType: DICT_TYPE.BASIC_AQL, |
|
|
|
sort: 'custom', |
|
|
|
isSearch: false, |
|
|
|
isForm: false, |
|
|
|
table: { |
|
|
|
width: 150 |
|
|
|
}, |
|
|
|
form: { |
|
|
|
componentProps: { |
|
|
|
disabled: true |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|
{ |
|
|
@ -432,7 +498,8 @@ export const InspectionRecordMain = useCrudSchemas( |
|
|
|
dictType: DICT_TYPE.USAGE_DECISION, |
|
|
|
table: { |
|
|
|
width: 150 |
|
|
|
} |
|
|
|
}, |
|
|
|
isForm:false |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: '执行结果', |
|
|
@ -440,31 +507,13 @@ export const InspectionRecordMain = useCrudSchemas( |
|
|
|
dictType: DICT_TYPE.EVALUATION_CODE, |
|
|
|
sort: 'custom', |
|
|
|
isSearch: false, |
|
|
|
isForm: false, |
|
|
|
table: { |
|
|
|
width: 150 |
|
|
|
} |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: '是否可用', |
|
|
|
field: 'available', |
|
|
|
sort: 'custom', |
|
|
|
isSearch: true, |
|
|
|
dictType: DICT_TYPE.TRUE_FALSE, |
|
|
|
dictClass: 'string', // 默认都是字符串类型其他暂不考虑
|
|
|
|
search: { |
|
|
|
value: 'TRUE' |
|
|
|
}, |
|
|
|
form: { |
|
|
|
component: 'Switch', |
|
|
|
value: 'TRUE', |
|
|
|
componentProps: { |
|
|
|
inactiveValue: 'FALSE', |
|
|
|
activeValue: 'TRUE' |
|
|
|
disabled: true |
|
|
|
} |
|
|
|
}, |
|
|
|
table: { |
|
|
|
width: 110 |
|
|
|
} |
|
|
|
}, |
|
|
|
{ |
|
|
@ -537,7 +586,7 @@ export const InspectionRecordMain = useCrudSchemas( |
|
|
|
isForm: false, |
|
|
|
isDetail: false, |
|
|
|
table: { |
|
|
|
width: 200, |
|
|
|
width: 250, |
|
|
|
fixed: 'right' |
|
|
|
} |
|
|
|
} |
|
|
@ -709,12 +758,12 @@ export const InspectionRecordPackage = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
|
field: 'number', |
|
|
|
sort: 'custom', |
|
|
|
isSearch: true, |
|
|
|
tableForm:{ |
|
|
|
disabled:true, |
|
|
|
width:200 |
|
|
|
tableForm: { |
|
|
|
disabled: true, |
|
|
|
width: 200 |
|
|
|
}, |
|
|
|
table:{ |
|
|
|
width:150 |
|
|
|
table: { |
|
|
|
width: 150 |
|
|
|
} |
|
|
|
}, |
|
|
|
{ |
|
|
@ -722,12 +771,12 @@ export const InspectionRecordPackage = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
|
field: 'packageCode', |
|
|
|
sort: 'custom', |
|
|
|
isSearch: true, |
|
|
|
tableForm:{ |
|
|
|
disabled:true, |
|
|
|
width:160 |
|
|
|
tableForm: { |
|
|
|
disabled: true, |
|
|
|
width: 160 |
|
|
|
}, |
|
|
|
table:{ |
|
|
|
width:150 |
|
|
|
table: { |
|
|
|
width: 150 |
|
|
|
} |
|
|
|
}, |
|
|
|
{ |
|
|
@ -735,12 +784,12 @@ export const InspectionRecordPackage = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
|
field: 'packageSpecificationCode', |
|
|
|
sort: 'custom', |
|
|
|
isSearch: true, |
|
|
|
tableForm:{ |
|
|
|
disabled:true, |
|
|
|
width:150 |
|
|
|
tableForm: { |
|
|
|
disabled: true, |
|
|
|
width: 150 |
|
|
|
}, |
|
|
|
table:{ |
|
|
|
width:150 |
|
|
|
table: { |
|
|
|
width: 150 |
|
|
|
} |
|
|
|
}, |
|
|
|
{ |
|
|
@ -752,12 +801,12 @@ export const InspectionRecordPackage = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
|
component: 'InputNumber', |
|
|
|
value: 0 |
|
|
|
}, |
|
|
|
tableForm:{ |
|
|
|
disabled:true, |
|
|
|
width:120 |
|
|
|
tableForm: { |
|
|
|
disabled: true, |
|
|
|
width: 120 |
|
|
|
}, |
|
|
|
table:{ |
|
|
|
width:150 |
|
|
|
table: { |
|
|
|
width: 150 |
|
|
|
} |
|
|
|
}, |
|
|
|
{ |
|
|
@ -765,12 +814,12 @@ export const InspectionRecordPackage = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
|
field: 'measuringUnit', |
|
|
|
sort: 'custom', |
|
|
|
isSearch: true, |
|
|
|
tableForm:{ |
|
|
|
disabled:true, |
|
|
|
width:120 |
|
|
|
tableForm: { |
|
|
|
disabled: true, |
|
|
|
width: 120 |
|
|
|
}, |
|
|
|
table:{ |
|
|
|
width:150 |
|
|
|
table: { |
|
|
|
width: 150 |
|
|
|
} |
|
|
|
}, |
|
|
|
{ |
|
|
@ -778,12 +827,12 @@ export const InspectionRecordPackage = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
|
field: 'sampleAmount', |
|
|
|
sort: 'custom', |
|
|
|
isSearch: true, |
|
|
|
tableForm:{ |
|
|
|
disabled:true, |
|
|
|
width:100 |
|
|
|
tableForm: { |
|
|
|
disabled: true, |
|
|
|
width: 100 |
|
|
|
}, |
|
|
|
table:{ |
|
|
|
width:150 |
|
|
|
table: { |
|
|
|
width: 150 |
|
|
|
} |
|
|
|
}, |
|
|
|
{ |
|
|
@ -791,12 +840,12 @@ export const InspectionRecordPackage = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
|
field: 'qualifiedAmount', |
|
|
|
sort: 'custom', |
|
|
|
isSearch: true, |
|
|
|
tableForm:{ |
|
|
|
disabled:true, |
|
|
|
width:100 |
|
|
|
tableForm: { |
|
|
|
disabled: true, |
|
|
|
width: 100 |
|
|
|
}, |
|
|
|
table:{ |
|
|
|
width:150 |
|
|
|
table: { |
|
|
|
width: 150 |
|
|
|
} |
|
|
|
}, |
|
|
|
{ |
|
|
@ -804,12 +853,12 @@ export const InspectionRecordPackage = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
|
field: 'noQualifiedAmount', |
|
|
|
sort: 'custom', |
|
|
|
isSearch: true, |
|
|
|
tableForm:{ |
|
|
|
disabled:true, |
|
|
|
width:100 |
|
|
|
tableForm: { |
|
|
|
disabled: true, |
|
|
|
width: 100 |
|
|
|
}, |
|
|
|
table:{ |
|
|
|
width:150 |
|
|
|
table: { |
|
|
|
width: 150 |
|
|
|
} |
|
|
|
}, |
|
|
|
{ |
|
|
@ -817,12 +866,12 @@ export const InspectionRecordPackage = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
|
field: 'destroyAmount', |
|
|
|
sort: 'custom', |
|
|
|
isSearch: true, |
|
|
|
tableForm:{ |
|
|
|
disabled:true, |
|
|
|
width:100 |
|
|
|
tableForm: { |
|
|
|
disabled: true, |
|
|
|
width: 100 |
|
|
|
}, |
|
|
|
table:{ |
|
|
|
width:150 |
|
|
|
table: { |
|
|
|
width: 150 |
|
|
|
} |
|
|
|
}, |
|
|
|
{ |
|
|
@ -830,12 +879,12 @@ export const InspectionRecordPackage = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
|
field: 'frozenAmount', |
|
|
|
sort: 'custom', |
|
|
|
isSearch: true, |
|
|
|
tableForm:{ |
|
|
|
disabled:true, |
|
|
|
width:100 |
|
|
|
tableForm: { |
|
|
|
disabled: true, |
|
|
|
width: 100 |
|
|
|
}, |
|
|
|
table:{ |
|
|
|
width:150 |
|
|
|
table: { |
|
|
|
width: 150 |
|
|
|
} |
|
|
|
} |
|
|
|
])) |
|
|
@ -844,18 +893,55 @@ export const InspectionRecordPackage = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
|
export const InspectionRecordPackageRules = reactive({ |
|
|
|
qualifiedAmount: [ |
|
|
|
required, |
|
|
|
{ validator:validateSixNum, message: '小数点后最多6位', trigger: 'blur'} |
|
|
|
{ validator: validateSixNum, message: '小数点后最多6位', trigger: 'blur' } |
|
|
|
], |
|
|
|
frozenAmount: [ |
|
|
|
required, |
|
|
|
{ validator:validateSixNum, message: '小数点后最多6位', trigger: 'blur'} |
|
|
|
{ validator: validateSixNum, message: '小数点后最多6位', trigger: 'blur' } |
|
|
|
], |
|
|
|
destroyAmount: [ |
|
|
|
required, |
|
|
|
{ validator:validateSixNum, message: '小数点后最多6位', trigger: 'blur'} |
|
|
|
{ validator: validateSixNum, message: '小数点后最多6位', trigger: 'blur' } |
|
|
|
], |
|
|
|
noQualifiedAmount: [ |
|
|
|
required, |
|
|
|
{ validator:validateSixNum, message: '小数点后最多6位', trigger: 'blur'} |
|
|
|
{ validator: validateSixNum, message: '小数点后最多6位', trigger: 'blur' } |
|
|
|
], |
|
|
|
}) |
|
|
|
|
|
|
|
|
|
|
|
//表单校验
|
|
|
|
export const InspectionRecordUserRules = reactive({ |
|
|
|
useDecision: [required], |
|
|
|
|
|
|
|
}) |
|
|
|
|
|
|
|
/** |
|
|
|
* @returns {Array} 检验任务子表 |
|
|
|
*/ |
|
|
|
export const InspectionRecordUser = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
|
{ |
|
|
|
label: '发货单号', |
|
|
|
field: 'asnNumber', |
|
|
|
sort: 'custom', |
|
|
|
isSearch: true, |
|
|
|
form: { |
|
|
|
componentProps: { |
|
|
|
disabled: true |
|
|
|
} |
|
|
|
}, |
|
|
|
table: { |
|
|
|
width: 180 |
|
|
|
} |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: '使用决策', |
|
|
|
field: 'useDecision', |
|
|
|
sort: 'custom', |
|
|
|
isSearch: false, |
|
|
|
dictType: DICT_TYPE.USAGE_DECISION, |
|
|
|
table: { |
|
|
|
width: 150 |
|
|
|
} |
|
|
|
}, |
|
|
|
])) |
|
|
|