yangfeng
2023-11-30 6050b02cd808a9af2070d61e3b278e3407b845ca
src/views/service/clientServiceOrder/mixin/codeMixin.js
@@ -18,7 +18,6 @@
      objCode: { name: "", page: 0, pageSize: 0, type: "客户服务编码", codeStandID: "" },
      codeRule: {},
      codeLength: 0,
      autoCodeObj: {}
    }
  },
@@ -73,7 +72,6 @@
                  //     ? this.editConfig.infomation.serviceNumber
                  //     : autoRule.PrefixValue
                  // )
                  return true
                }
              }
            }
@@ -81,6 +79,7 @@
          } else {
            this.$message.error(res.data.msg ? res.data.msg : "获取编码规范失败,请重试!")
          }
          this.getAutoCodeValue()
        } else {
          this.codeList(this.editConfig.infomation.serviceNumber)
        }
@@ -89,10 +88,11 @@
      }
    },
    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) {