From bc9e5adf1032cb4ffeaefe98b324ec134137c29d Mon Sep 17 00:00:00 2001
From: songshankun <songshankun@foxmail.com>
Date: 星期四, 28 九月 2023 15:13:01 +0800
Subject: [PATCH] feat: 收款单列表样式调整; 修复销售明细单列表高度不断增长的问题

---
 src/views/client/contacts/AddContactsDialog.vue |   30 ++++++++++++++++--------------
 1 files changed, 16 insertions(+), 14 deletions(-)

diff --git a/src/views/client/contacts/AddContactsDialog.vue b/src/views/client/contacts/AddContactsDialog.vue
index 3e45c21..3b3bc45 100644
--- a/src/views/client/contacts/AddContactsDialog.vue
+++ b/src/views/client/contacts/AddContactsDialog.vue
@@ -45,8 +45,12 @@
                     <div class="common-select-btn" @click="selClientClick">
                       <i class="el-icon-circle-plus-outline" title="閫夋嫨"></i>
                     </div>
-                    <div class="common-select-btn" @click="clearupClient">
-                      <i class="el-icon-edit-outline" title="娓呴櫎"></i>
+                    <div
+                      v-if="editConfig.infomation.client_name && editConfig.infomation.client_name.length > 0"
+                      class="common-select-btn"
+                      @click="clearupClient"
+                    >
+                      <i class="el-icon-remove-outline" title="娓呴櫎"></i>
                     </div>
                   </div>
                 </el-form-item>
@@ -335,18 +339,11 @@
         this.editConfig.infomation.province_id === 0 ? "" : this.editConfig.infomation.province_id
       this.editConfig.infomation.city_id =
         this.editConfig.infomation.city_id === 0 ? "" : this.editConfig.infomation.city_id
-      getAllData()
-        .then((res) => {
-          console.log(res)
-          this.memberOptions = res.data.member
-          // this.countryOptions = res.data.country
-          this.provinceOptions = res.data.province
-          // this.cityOptions = res.data.city
-          // this.regionOptions = res.data.region
-        })
-        .catch((err) => {
-          console.log(err)
-        })
+      getAllData().then((res) => {
+        console.log(res)
+        this.memberOptions = res.data.member
+        this.provinceOptions = res.data.province
+      })
     },
     handleClose() {
       this.editConfig.visible = false
@@ -431,6 +428,7 @@
       }
     },
     handleSelectClient(item) {
+      this.editConfig.infomation.client_name = item.name
       this.clientId = item.id
     },
     selClientClick() {
@@ -443,8 +441,12 @@
     },
     // 娓呴櫎宸查�夋嫨鐢ㄦ埛
     clearupClient() {
+      console.log("sssssssss")
+      console.log(this.editConfig.infomation.client_name)
+      // if (this.editConfig.infomation.client_name !== "") {
       this.editConfig.infomation.client_name = ""
       this.clientId = 0
+      // }
     },
     // 娣诲姞闄勪欢
     addAnnexClick() {},

--
Gitblit v1.8.0