|
|
|
@ -539,7 +539,11 @@
|
|
|
|
|
materialType: { rules: [{ required: true, message: '请选择物资类型!' }] }, |
|
|
|
|
needTime: { rules: [{ required: true, message: '请选择需求时间!' }] }, |
|
|
|
|
processPlan: { rules: [{ required: true, message: '请选择流程计划!' }] }, |
|
|
|
|
sort: { rules: [{ required: true, message: '请输入序号!' }] } |
|
|
|
|
sort: { rules: [{ required: true, type: 'number', message: '请输入序号!'}, |
|
|
|
|
{ type:'number', max:999999999999, message: '长度在 0 到 12 个字符'} |
|
|
|
|
// {validator: this.lengthCheck} |
|
|
|
|
] |
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
|
isBu: undefined, |
|
|
|
|
planType: '', |
|
|
|
@ -641,6 +645,12 @@
|
|
|
|
|
// this.form.setFieldsValue("materialGroup",123123); |
|
|
|
|
}, |
|
|
|
|
methods: { |
|
|
|
|
// lengthCheck(rule, value, callback){ |
|
|
|
|
// if (value.toString().length >= 12 ){ |
|
|
|
|
// // console.log("长度太长了"); |
|
|
|
|
// callback("长度应当在0 ~ 12 字符") |
|
|
|
|
// } |
|
|
|
|
// }, |
|
|
|
|
selectRowChange(a, b, c) { |
|
|
|
|
// console.log("执行了",a,b,c); |
|
|
|
|
}, |
|
|
|
|