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