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