|
|
@ -329,6 +329,9 @@ export const PurchaseclaimRequestMainRules = reactive({ |
|
|
|
status: [ |
|
|
|
{ required: true, message: '请选择状态', trigger: 'change' } |
|
|
|
], |
|
|
|
remark: [ |
|
|
|
{ max: 50, message: '不得超过50个字符', trigger: 'blur' } |
|
|
|
], |
|
|
|
}) |
|
|
|
|
|
|
|
/** |
|
|
@ -520,40 +523,44 @@ export const PurchaseclaimRequestDetail = useCrudSchemas(reactive<CrudSchema[]>( |
|
|
|
|
|
|
|
// 表单校验
|
|
|
|
export const PurchaseclaimRequestDetailRules = reactive({ |
|
|
|
batch: [ |
|
|
|
{ required: true, message: '请输入批次', trigger: 'blur' } |
|
|
|
], |
|
|
|
altBatch: [ |
|
|
|
{ required: true, message: '请输入替代批次', trigger: 'blur' } |
|
|
|
], |
|
|
|
poNumber: [ |
|
|
|
{ required: true, message: '请输入订单号', trigger: 'change' } |
|
|
|
], |
|
|
|
poLine: [ |
|
|
|
{ required: true, message: '请输入订单行', trigger: 'change' } |
|
|
|
], |
|
|
|
singlePrice: [ |
|
|
|
{ required: true, message: '请输入单价', trigger: 'change' } |
|
|
|
{ required: true, message: '请输入订单行', trigger: 'change' }, |
|
|
|
{ max: 50, message: '不得超过50个字符', trigger: 'blur' } |
|
|
|
], |
|
|
|
amount: [ |
|
|
|
{ required: true, message: '请输入金额', trigger: 'change' } |
|
|
|
qty: [ |
|
|
|
{ required: true, message: '请输入数量', trigger: 'blur' }, |
|
|
|
{ max: 50, message: '不得超过50个字符', trigger: 'blur' } |
|
|
|
], |
|
|
|
number: [ |
|
|
|
{ required: true, message: '请输入单据号', trigger: 'change' } |
|
|
|
uom: [ |
|
|
|
{ required: true, message: '请输入计量单位', trigger: 'change' } |
|
|
|
], |
|
|
|
itemCode: [ |
|
|
|
{ required: true, message: '请输入物品代码', trigger: 'change' } |
|
|
|
{ required: true, message: '请输入物品代码', trigger: 'change' }, |
|
|
|
{ max: 50, message: '不得超过50个字符', trigger: 'blur' } |
|
|
|
], |
|
|
|
projectCode: [ |
|
|
|
{ required: true, message: '请输入项目代码', trigger: 'change' } |
|
|
|
itemName: [ |
|
|
|
{ required: true, message: '请输入物品名称', trigger: 'blur' }, |
|
|
|
{ max: 50, message: '不得超过50个字符', trigger: 'blur' } |
|
|
|
], |
|
|
|
qty: [ |
|
|
|
{ required: true, message: '请输入数量', trigger: 'change' } |
|
|
|
batch: [ |
|
|
|
{ required: true, message: '请输入批次', trigger: 'blur' }, |
|
|
|
{ max: 50, message: '不得超过50个字符', trigger: 'blur' } |
|
|
|
], |
|
|
|
uom: [ |
|
|
|
{ required: true, message: '请输入计量单位', trigger: 'change' } |
|
|
|
|
|
|
|
singlePrice: [ |
|
|
|
{ required: true, message: '请输入单价', trigger: 'change' } |
|
|
|
], |
|
|
|
amount: [ |
|
|
|
{ required: true, message: '请输入金额', trigger: 'change' } |
|
|
|
], |
|
|
|
reason: [ |
|
|
|
{ required: true, message: '请输入原因', trigger: 'change' } |
|
|
|
{ required: true, message: '请输入原因', trigger: 'change' }, |
|
|
|
{ max: 50, message: '不得超过50个字符', trigger: 'blur' } |
|
|
|
], |
|
|
|
remark: [ |
|
|
|
{ max: 50, message: '不得超过50个字符', trigger: 'blur' } |
|
|
|
], |
|
|
|
}) |
|
|
|