|
|
@ -322,15 +322,6 @@ export const UnplannedissueRequestMain = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
|
|
|
|
|
//表单校验
|
|
|
|
export const UnplannedissueRequestMainRules = reactive({ |
|
|
|
// fromWarehouseCode: [
|
|
|
|
// { required: true, message: '请选择从仓库代码', trigger: 'change' }
|
|
|
|
// ],
|
|
|
|
// fromLocationTypes: [
|
|
|
|
// { required: true, message: '请选择从库位类型范围', trigger: 'change' }
|
|
|
|
// ],
|
|
|
|
// fromAreaCodes: [
|
|
|
|
// { required: true, message: '请选择从库区代码范围', trigger: 'change' }
|
|
|
|
// ],
|
|
|
|
departmentCode: [ |
|
|
|
{ required: true, message: '请输入部门', trigger: 'blur' } |
|
|
|
], |
|
|
@ -346,8 +337,8 @@ export const UnplannedissueRequestMainRules = reactive({ |
|
|
|
directCreateRecord: [ |
|
|
|
{ required: true, message: '请选择是否跳过任务直接生成记录', trigger: 'change' } |
|
|
|
], |
|
|
|
businessType: [ |
|
|
|
{ required: true, message: '请输入业务类型', trigger: 'blur' } |
|
|
|
remark: [ |
|
|
|
{ max: 50, message: '不得超过50个字符', trigger: 'blur' } |
|
|
|
], |
|
|
|
}) |
|
|
|
|
|
|
@ -630,18 +621,28 @@ export const UnplannedissueRequestDetail = useCrudSchemas(reactive<CrudSchema[]> |
|
|
|
//表单校验
|
|
|
|
export const UnplannedissueRequestDetailRules = reactive({ |
|
|
|
packingNumber: [ |
|
|
|
{ required: true, message: '请选择包装号', trigger: 'change' } |
|
|
|
{ required: true, message: '请选择包装号', trigger: 'change' }, |
|
|
|
{ max: 50, message: '不得超过50个字符', trigger: 'blur' } |
|
|
|
], |
|
|
|
batch: [ |
|
|
|
{ required: true, message: '请输入批次', trigger: 'blur' } |
|
|
|
{ required: true, message: '请输入批次', trigger: 'blur' }, |
|
|
|
{ max: 50, message: '不得超过50个字符', trigger: 'blur' } |
|
|
|
], |
|
|
|
containerNumber: [ |
|
|
|
{ max: 50, message: '不得超过50个字符', trigger: 'blur' } |
|
|
|
], |
|
|
|
inventoryStatus: [ |
|
|
|
{ required: true, message: '请选择库存状态', trigger: 'change' } |
|
|
|
], |
|
|
|
fromLocationCode: [ |
|
|
|
{ required: true, message: '请选择从库位代码', trigger: 'change' } |
|
|
|
{ required: true, message: '请选择从库位代码', trigger: 'change' }, |
|
|
|
{ max: 50, message: '不得超过50个字符', trigger: 'blur' } |
|
|
|
], |
|
|
|
itemCode: [ |
|
|
|
{ required: true, message: '请选择物品代码', trigger: 'change' } |
|
|
|
{ required: true, message: '请选择物品代码', trigger: 'change' }, |
|
|
|
{ max: 50, message: '不得超过50个字符', trigger: 'blur' } |
|
|
|
], |
|
|
|
remark: [ |
|
|
|
{ max: 50, message: '不得超过50个字符', trigger: 'blur' } |
|
|
|
], |
|
|
|
}) |