|
@ -14,6 +14,7 @@ export const PurchasereceiptRecordMain = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
table: { |
|
|
table: { |
|
|
width: 150 |
|
|
width: 150 |
|
|
}, |
|
|
}, |
|
|
|
|
|
isSearch: true, |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
label: '任务单号', |
|
|
label: '任务单号', |
|
@ -46,6 +47,7 @@ export const PurchasereceiptRecordMain = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
table: { |
|
|
table: { |
|
|
width: 150 |
|
|
width: 150 |
|
|
}, |
|
|
}, |
|
|
|
|
|
isSearch: true, |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
label: '到月台代码', |
|
|
label: '到月台代码', |
|
@ -100,7 +102,6 @@ export const PurchasereceiptRecordMain = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
field: 'fromLocationTypes', |
|
|
field: 'fromLocationTypes', |
|
|
dictType: DICT_TYPE.LOCATION_TYPE, |
|
|
dictType: DICT_TYPE.LOCATION_TYPE, |
|
|
dictClass: 'string', |
|
|
dictClass: 'string', |
|
|
isSearch: true, |
|
|
|
|
|
isTable: true, |
|
|
isTable: true, |
|
|
sort: 'custom', |
|
|
sort: 'custom', |
|
|
table: { |
|
|
table: { |
|
@ -112,7 +113,6 @@ export const PurchasereceiptRecordMain = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
field: 'toLocationTypes', |
|
|
field: 'toLocationTypes', |
|
|
dictType: DICT_TYPE.LOCATION_TYPE, |
|
|
dictType: DICT_TYPE.LOCATION_TYPE, |
|
|
dictClass: 'string', |
|
|
dictClass: 'string', |
|
|
isSearch: true, |
|
|
|
|
|
isTable: true, |
|
|
isTable: true, |
|
|
sort: 'custom', |
|
|
sort: 'custom', |
|
|
table: { |
|
|
table: { |
|
@ -252,7 +252,6 @@ export const PurchasereceiptRecordMain = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
field: 'interfaceType', |
|
|
field: 'interfaceType', |
|
|
dictType: DICT_TYPE.INTERFACE_TYPE, |
|
|
dictType: DICT_TYPE.INTERFACE_TYPE, |
|
|
dictClass: 'string', |
|
|
dictClass: 'string', |
|
|
isSearch: true, |
|
|
|
|
|
isTable: true, |
|
|
isTable: true, |
|
|
sort: 'custom', |
|
|
sort: 'custom', |
|
|
table: { |
|
|
table: { |
|
@ -264,8 +263,10 @@ export const PurchasereceiptRecordMain = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
field: 'number', |
|
|
field: 'number', |
|
|
sort: 'custom', |
|
|
sort: 'custom', |
|
|
table: { |
|
|
table: { |
|
|
width: 150 |
|
|
width: 150, |
|
|
|
|
|
fixed: 'left' |
|
|
}, |
|
|
}, |
|
|
|
|
|
isSearch: true, |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
label: '业务类型', |
|
|
label: '业务类型', |
|
@ -335,15 +336,51 @@ export const PurchasereceiptRecordMain = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
|
|
|
|
|
|
// 表单校验
|
|
|
// 表单校验
|
|
|
export const PurchasereceiptRecordMainRules = reactive({ |
|
|
export const PurchasereceiptRecordMainRules = reactive({ |
|
|
requestNumber: [required], |
|
|
requestNumber: [ |
|
|
supplierCode: [required], |
|
|
{ required: true, message: '请选择申请单号', trigger: 'change' } |
|
|
toWarehouseCode: [required], |
|
|
], |
|
|
outTransaction: [required], |
|
|
supplierCode: [ |
|
|
inTransaction: [required], |
|
|
{ required: true, message: '请选择供应商代码', trigger: 'change' } |
|
|
executeTime: [required], |
|
|
], |
|
|
activeDate: [required], |
|
|
toWarehouseCode: [ |
|
|
toLocationTypes: [required], |
|
|
{ required: true, message: '请选择到仓库代码', trigger: 'change' } |
|
|
available: [required], |
|
|
], |
|
|
|
|
|
toLocationTypes: [ |
|
|
|
|
|
{ required: true, message: '请选择到库位类型服务', trigger: 'change' } |
|
|
|
|
|
], |
|
|
|
|
|
outTransaction: [ |
|
|
|
|
|
{ required: true, message: '请输入出库事务类型', trigger: 'blur' } |
|
|
|
|
|
], |
|
|
|
|
|
inTransaction: [ |
|
|
|
|
|
{ required: true, message: '请输入入库事务类型', trigger: 'blur' } |
|
|
|
|
|
], |
|
|
|
|
|
executeTime: [ |
|
|
|
|
|
{ required: true, message: '请输入执行时间', trigger: 'change' } |
|
|
|
|
|
], |
|
|
|
|
|
activeDate: [ |
|
|
|
|
|
{ required: true, message: '请输入生效日期', trigger: 'change' } |
|
|
|
|
|
], |
|
|
|
|
|
available: [ |
|
|
|
|
|
{ required: true, message: '请输入是否可用', trigger: 'blur' } |
|
|
|
|
|
], |
|
|
|
|
|
departmentCode: [ |
|
|
|
|
|
{ required: true, message: '请输入部门', trigger: 'blur' } |
|
|
|
|
|
], |
|
|
|
|
|
interfaceType: [ |
|
|
|
|
|
{ required: true, message: '请选择接口类型', trigger: 'change' } |
|
|
|
|
|
], |
|
|
|
|
|
number: [ |
|
|
|
|
|
{ required: true, message: '请输入单据号', trigger: 'blur' } |
|
|
|
|
|
], |
|
|
|
|
|
businessType: [ |
|
|
|
|
|
{ required: true, message: '请输入业务类型', trigger: 'blur' } |
|
|
|
|
|
], |
|
|
|
|
|
createTime: [ |
|
|
|
|
|
{ required: true, message: '请选择创建时间', trigger: 'change' } |
|
|
|
|
|
], |
|
|
|
|
|
creator: [ |
|
|
|
|
|
{ required: true, message: '请输入创建者', trigger: 'blur' } |
|
|
|
|
|
], |
|
|
}) |
|
|
}) |
|
|
|
|
|
|
|
|
/** |
|
|
/** |
|
@ -827,5 +864,55 @@ export const PurchasereceiptRecordDetail = useCrudSchemas(reactive<CrudSchema[]> |
|
|
|
|
|
|
|
|
// 表单校验
|
|
|
// 表单校验
|
|
|
export const PurchasereceiptRecordDetailRules = reactive({ |
|
|
export const PurchasereceiptRecordDetailRules = reactive({ |
|
|
fromPackingNumber: [required], |
|
|
fromPackingNumber: [ |
|
|
|
|
|
{ required: true, message: '请选择从包装号', trigger: 'change' } |
|
|
|
|
|
], |
|
|
|
|
|
toPackingNumber: [ |
|
|
|
|
|
{ required: true, message: '请选择到包装号', trigger: 'change' } |
|
|
|
|
|
], |
|
|
|
|
|
fromBatch: [ |
|
|
|
|
|
{ required: true, message: '请输入从批次', trigger: 'blur' } |
|
|
|
|
|
], |
|
|
|
|
|
toBatch: [ |
|
|
|
|
|
{ required: true, message: '请输入到批次', trigger: 'blur' } |
|
|
|
|
|
], |
|
|
|
|
|
arriveDate: [ |
|
|
|
|
|
{ required: true, message: '请选择到货日期', trigger: 'change' } |
|
|
|
|
|
], |
|
|
|
|
|
produceDate: [ |
|
|
|
|
|
{ required: true, message: '请选择生产日期', trigger: 'change' } |
|
|
|
|
|
], |
|
|
|
|
|
expireDate: [ |
|
|
|
|
|
{ required: true, message: '请选择过期日期', trigger: 'change' } |
|
|
|
|
|
], |
|
|
|
|
|
inventoryStatus: [ |
|
|
|
|
|
{ required: true, message: '请选择库存状态', trigger: 'change' } |
|
|
|
|
|
], |
|
|
|
|
|
toLocationCode: [ |
|
|
|
|
|
{ required: true, message: '请选择到库位代码', trigger: 'change' } |
|
|
|
|
|
], |
|
|
|
|
|
toLocationGroupCode: [ |
|
|
|
|
|
{ required: true, message: '请选择到库位组代码', trigger: 'change' } |
|
|
|
|
|
], |
|
|
|
|
|
toAreaCodes: [ |
|
|
|
|
|
{ required: true, message: '请选择到库区代码', trigger: 'change' } |
|
|
|
|
|
], |
|
|
|
|
|
poNumber: [ |
|
|
|
|
|
{ required: true, message: '请选择订单号', trigger: 'change' } |
|
|
|
|
|
], |
|
|
|
|
|
poLine: [ |
|
|
|
|
|
{ required: true, message: '请选择订单行', trigger: 'change' } |
|
|
|
|
|
], |
|
|
|
|
|
stdPackQty: [ |
|
|
|
|
|
{ required: true, message: '请输入标包数量', trigger: 'blur' } |
|
|
|
|
|
], |
|
|
|
|
|
stdPackUnit: [ |
|
|
|
|
|
{ required: true, message: '请选择标包单位', trigger: 'change' } |
|
|
|
|
|
], |
|
|
|
|
|
convertRate: [ |
|
|
|
|
|
{ required: true, message: '请输入转换率', trigger: 'blur' } |
|
|
|
|
|
], |
|
|
|
|
|
visualInspectResult: [ |
|
|
|
|
|
{ required: true, message: '请选择目检结果', trigger: 'change' } |
|
|
|
|
|
], |
|
|
}) |
|
|
}) |