qx
qx
1 天以前 e2ce0493b0978ed2706eed28555bd83ed329cb97
qx
1个文件已修改
6 ■■■■ 已修改文件
src/views/system/tijian/index.vue 6 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/system/tijian/index.vue
@@ -248,7 +248,7 @@
                <el-button v-show="lishi" type="primary" @click="cope" size="mini">一键复制</el-button>
                <el-button type="primary" @click="inputChanges" v-show="lishi" size="mini"
                  :disabled="confirm">历史体检记录</el-button>
                <el-button :disabled="isDisabled" type="primary" size="mini" @click="submitForm">登记</el-button>
                <el-button :disabled="butopen" type="primary" size="mini" @click="submitForm">登记</el-button>
                <el-button icon="el-icon-refresh" size="mini" @click="resetQuery" @queryTable="getList">重置</el-button>
              </div>
            </el-col>
@@ -943,6 +943,7 @@
      // 非单个禁用
      single: true,
      cardreader: false,
      butopen:false,
      // 非多个禁用
      multiple: true,
      nodeobj: {},
@@ -1745,6 +1746,7 @@
    /** 登记提交按钮 */
    submitForm() {
      let _this = this;
      _this.butopen = true;
      if (!this.form.cusPhone || !this.form.cusName) {
        this.$message.warning("请填选必填项");
        return;
@@ -1781,6 +1783,7 @@
          // }
          addCustomer(formData).then((response) => {
             _this.butopen = false;
            this.responseList = response.data;
            this.form.tjType = this.dict.type.dict_team[0].value;
            this.$modal.msgSuccess("新增成功");
@@ -1788,6 +1791,7 @@
            _this.isDisabled = true;
            _this.top = false;
          }).catch((error) => {
             _this.butopen = false;
            this.$modal.msgError("登记失败,请检查数据");
            console.error("Error in addCustomer:", error);
          });