|
|
@ -1,13 +1,6 @@ |
|
|
|
import type { CrudSchema } from '@/hooks/web/useCrudSchemas' |
|
|
|
import { dateFormatter } from '@/utils/formatTime' |
|
|
|
|
|
|
|
// 表单校验
|
|
|
|
export const SupplierdeliverInspectionDetailRules = reactive({ |
|
|
|
itemCode: [required], |
|
|
|
uom: [required], |
|
|
|
concurrencyStamp: [required], |
|
|
|
}) |
|
|
|
|
|
|
|
export const SupplierdeliverInspectionDetail = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
|
{ |
|
|
|
label: '上传质检报告', |
|
|
@ -20,14 +13,16 @@ export const SupplierdeliverInspectionDetail = useCrudSchemas(reactive<CrudSchem |
|
|
|
componentProps: { |
|
|
|
upData:{ |
|
|
|
tableId: '', |
|
|
|
tableName: 'SupplierdeliverInspectionDetail' |
|
|
|
tableName: 'SupplierdeliverInspectionDetail', |
|
|
|
}, |
|
|
|
limit:1, |
|
|
|
fileType:['apk'], |
|
|
|
fileSize:100 |
|
|
|
} |
|
|
|
}, |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: '代码', |
|
|
|
label: '物料代码', |
|
|
|
field: 'itemCode', |
|
|
|
sort: 'custom', |
|
|
|
isForm:false, |
|
|
@ -49,14 +44,14 @@ export const SupplierdeliverInspectionDetail = useCrudSchemas(reactive<CrudSchem |
|
|
|
} |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: '批次', |
|
|
|
label: '供应商批次', |
|
|
|
field: 'batch', |
|
|
|
sort: 'custom', |
|
|
|
isForm:false, |
|
|
|
isSearch: true, |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: '计划数量', |
|
|
|
label: '发货数量', |
|
|
|
field: 'planQty', |
|
|
|
sort: 'custom', |
|
|
|
isForm:false, |
|
|
@ -109,3 +104,23 @@ export const SupplierdeliverInspectionDetail = useCrudSchemas(reactive<CrudSchem |
|
|
|
} |
|
|
|
} |
|
|
|
])) |
|
|
|
|
|
|
|
|
|
|
|
//表单校验
|
|
|
|
export const SupplierdeliverInspectionDetailRules = reactive({ |
|
|
|
uploadFile: [ |
|
|
|
{ required: true, message: '请上传文件', trigger: 'blur' } |
|
|
|
], |
|
|
|
itemCode: [ |
|
|
|
{ required: true, message: '请输入物料代码', trigger: 'blur' } |
|
|
|
], |
|
|
|
uom: [ |
|
|
|
{ required: true, message: '请输入计量单位', trigger: 'blur' } |
|
|
|
], |
|
|
|
batch: [ |
|
|
|
{ required: true, message: '请输入供应商批次', trigger: 'blur' } |
|
|
|
], |
|
|
|
planQty: [ |
|
|
|
{ required: true, message: '请输入发货数量', trigger: 'blur' } |
|
|
|
], |
|
|
|
}) |
|
|
|