From 5eea8066e149ade255d1440b350be6a8ee93b848 Mon Sep 17 00:00:00 2001
From: lkk <364857242@qq.com>
Date: 星期一, 11 八月 2025 18:35:57 +0800
Subject: [PATCH] 1

---
 src/views/system/tijian/index.vue |   10 ++++++++--
 1 files changed, 8 insertions(+), 2 deletions(-)

diff --git a/src/views/system/tijian/index.vue b/src/views/system/tijian/index.vue
index 7ecfeea..d23f345 100644
--- a/src/views/system/tijian/index.vue
+++ b/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: {},
@@ -1373,6 +1374,8 @@
       });
     },
     inputChange() {
+      
+      
       const reg =
         /^[1-9]\d{5}(18|19|([23]\d))\d{2}((0[1-9])|(10|11|12))(([0-2][1-9])|10|20|30|31)\d{3}[0-9Xx]$/;
       if (reg.test(this.form.cusIdcard)) {
@@ -1745,6 +1748,7 @@
     /** 鐧昏鎻愪氦鎸夐挳 */
     submitForm() {
       let _this = this;
+      _this.butopen = true;
       if (!this.form.cusPhone || !this.form.cusName) {
         this.$message.warning("璇峰~閫夊繀濉」");
         return;
@@ -1781,6 +1785,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,8 +1793,8 @@
             _this.isDisabled = true;
             _this.top = false;
           }).catch((error) => {
+             _this.butopen = false;
             this.$modal.msgError("鐧昏澶辫触锛岃妫�鏌ユ暟鎹�");
-            console.error("Error in addCustomer:", error);
           });
         }
       });
@@ -1814,6 +1819,7 @@
           _this.top = false;
           if (response.data) {
             this.form = response.data;
+            this.form.firmDeptName = response.data.department;
             if (this.form.discount === null) {
               this.discount = 10;
             } else {

--
Gitblit v1.8.0