| | |
| | | deep: true |
| | | }, |
| | | }, |
| | | mounted() { |
| | | mounted() { |
| | | }, |
| | | data() { |
| | | return { |
| | |
| | | { required: true, message: '请输入流水号', trigger: 'blur' }, |
| | | { |
| | | validator: (rule, value, callback) => { |
| | | if (value > this.maxNum) { |
| | | callback(new Error('不能大于最大流水号')); |
| | | if (value < this.maxNum) { |
| | | callback(new Error('不能小于当前最大流水号')); |
| | | } else { |
| | | callback(); |
| | | } |
| | |
| | | return acc; |
| | | }, {}); |
| | | |
| | | const arrCode = Object.entries(filteredObj).map(([key, value]) => { |
| | | /*const arrCode = Object.entries(filteredObj).map(([key, value]) => { |
| | | return { |
| | | secOid: key, |
| | | secValue: value |
| | | } |
| | | }) |
| | | })*/ |
| | | |
| | | this.ruleFormFlag = Object.values(codeApplyForm).every(value => { |
| | | return value !== null && value !== undefined && value !== ''; |
| | |
| | | this.loading=true; |
| | | let params = {}; |
| | | params['codeRuleOid'] = this.ruleOid; |
| | | |
| | | Object.keys(arrCode).forEach((key) => { |
| | | params[key] = arrCode[key]; |
| | | Object.keys(filteredObj).forEach((key) => { |
| | | params[key] = filteredObj[key]; |
| | | }); |
| | | |
| | | getMaxSerialNumber(params).then(res => { |
| | | this.formModel.maxSecNum = res.data.data; |
| | | this.loading=false; |
| | | this.maxNum=res.data.data |
| | | }); |
| | | |
| | | } |
| | | }, |
| | | |
| | |
| | | } |
| | | return acc; |
| | | }, {}); |
| | | |
| | | const arrCode = Object.entries(filteredObj).map(([key, value]) => { |
| | | return { |
| | | secOid: key, |