src/views/client/client/AddClientManageDialog.vue
@@ -13,7 +13,7 @@
        :model="editConfig.infomation"
        :rules="rules"
        label-position="right"
        label-width="308px"
        label-width="130px"
        size="mini"
        style="height: 60vh; overflow-x: hidden"
      >
@@ -59,7 +59,7 @@
                    v-model="editConfig.infomation.member_id"
                    placeholder="请选择"
                    size="mini"
                    style="width: 63%"
                    style="width: 100%"
                  >
                    <el-option v-for="item in memberOptions" :key="item.id" :label="item.username" :value="item.id">
                    </el-option>
@@ -106,7 +106,7 @@
                    v-model="editConfig.infomation.client_level_id"
                    placeholder="请选择"
                    size="mini"
                    style="width: 63%"
                    style="width: 100%"
                  >
                    <el-option v-for="item in importantLevelOptions" :key="item.id" :label="item.name" :value="item.id">
                    </el-option>
@@ -133,6 +133,7 @@
                    value-format="yyyy-MM-dd"
                    type="date"
                    placeholder="选择日期"
                    style="width: 100%"
                  >
                  </el-date-picker>
                </el-form-item>
@@ -144,6 +145,7 @@
                    value-format="yyyy-MM-dd"
                    type="date"
                    placeholder="选择日期"
                    style="width: 100%"
                  >
                  </el-date-picker>
                </el-form-item>
@@ -218,6 +220,7 @@
                    value-format="yyyy-MM-dd HH:mm:ss"
                    type="datetime"
                    placeholder="选择日期时间"
                    style="width: 100%"
                  >
                  </el-date-picker>
                </el-form-item>
@@ -515,7 +518,7 @@
  },
  data() {
    return {
      dialogWidth: "80%",
      dialogWidth: "50%",
      editConfig: this.editClientManageConfig,
      rules: {
        name: [
@@ -560,7 +563,8 @@
      provinceOptions: [], // 省份
      cityOptions: [], // 城市
      regionOptions: [], // 区域
      approvalWorkflowOptions: [] // 审批流程
      approvalWorkflowOptions: [], // 审批流程
      clientName: this.editClientManageConfig.infomation.name
    }
  },
  created() {
@@ -715,7 +719,7 @@
    },
    // 查重
    async checkNameClient(rule, value, callback) {
      if (this.editConfig.title === "新建") {
      if (this.editConfig.title === "新建" || this.clientName !== this.editConfig.infomation.name) {
        await checkNameClient({ name: value }).then((res) => {
          if (res.data.code === 700001) {
            return callback(new Error("客户名称重复"))
@@ -755,7 +759,7 @@
        }
        .common-select {
          .common-select-sel {
            width: 270px;
            width: 100%;
          }
        }
      }