| | |
| | | objCode: { name: "", page: 0, pageSize: 0, type: "跟进记录编码", codeStandID: "" }, |
| | | codeRule: {}, |
| | | codeLength: 0, |
| | | // header头的参数 |
| | | autoCodeHeadersObj:{ |
| | | xsjh:'', |
| | | bjd:'', |
| | | ywjh:'', |
| | | } |
| | | } |
| | | }, |
| | | |
| | |
| | | async getAutoCodeValue() { |
| | | if(Object.keys(this.codeRule).length>0){ |
| | | const res = await getAutoCode(this.codeRule); |
| | | if (res.code == 200) { |
| | | this.$set(this.editConfig.infomation, 'number', res.data?res.data:'') |
| | | this.autoCodeHeadersObj=res.headers |
| | | if (res.data.code == 200) { |
| | | this.$set(this.editConfig.infomation, 'number', res.data.data?res.data.data:'') |
| | | }else{ |
| | | this.$set(this.editConfig.infomation, 'number', this.codeRule.AutoRule.PrefixValue?this.codeRule.AutoRule.PrefixValue:'') |
| | | } |