haoxuan
2023-10-23 d435f4951d7c3362fe500ccdb19c2776b6879035
src/components/makepager/mixin/codeMixin.js
@@ -18,7 +18,6 @@
      objCode: { name: "", page: 0, pageSize: 0, type: "跟进记录编码", codeStandID: "" },
      codeRule: {},
      codeLength: 0,
      autoCodeObj: {}
    }
  },
@@ -73,7 +72,6 @@
                  // this.codeList(
                  //   this.editConfig.infomation.number ? this.editConfig.infomation.number : autoRule.PrefixValue
                  // )
                  return true
                }
              }
            }
@@ -91,11 +89,13 @@
      }
    },
    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, 'number', res.data?res.data:'')
        }
      }
    },
    codeList(val) {
      this.inputValue = val
@@ -103,10 +103,6 @@
      this.editConfig.infomation.number = this.codenumberList.length > 0 ? this.codenumberList.replace(/,/g, "") : ""
      console.log(this.codenumberList.replace(/,/g, ""))
    },
    // validateFormNumber() {
    //   this.$set(this.editConfig.infomation, 'number', this.editConfig.infomation.number)
    //   this.$refs.form.validateField('number')
    // },
     // 订单编码单独校验
     validateCheckCode(rule, value, callback) {
      if (value && value.length > 0) {