| | |
| | | objCode: { name: "", page: 0, pageSize: 0, type: "客户服务编码", codeStandID: "" }, |
| | | codeRule: {}, |
| | | codeLength: 0, |
| | | autoCodeObj: {} |
| | | } |
| | | }, |
| | | |
| | |
| | | // ? this.editConfig.infomation.serviceNumber |
| | | // : autoRule.PrefixValue |
| | | // ) |
| | | return true |
| | | } |
| | | } |
| | | } |
| | |
| | | } else { |
| | | this.$message.error(res.data.msg ? res.data.msg : "获取编码规范失败,请重试!") |
| | | } |
| | | this.getAutoCodeValue() |
| | | } else { |
| | | this.codeList(this.editConfig.infomation.serviceNumber) |
| | | } |
| | |
| | | } |
| | | }, |
| | | async getAutoCodeValue() { |
| | | const res = await getAutoCode({ codeType: this.objCode.type, autoIncr: this.autoIncr }); |
| | | if (res.code == 200) { |
| | | this.autoCodeObj = res.data; |
| | | this.$set(this.editConfig.infomation, 'number', this.autoCodeObj.id) |
| | | if(Object.keys(this.codeRule).length>0){ |
| | | const res = await getAutoCode(this.codeRule); |
| | | if (res.code == 200) { |
| | | this.$set(this.editConfig.infomation, 'serviceNumber', res.data?res.data:'') |
| | | } |
| | | } |
| | | }, |
| | | codeList(val) { |