From f417dc0a44d225d4ed19bcb5207250eb1b669455 Mon Sep 17 00:00:00 2001
From: yangfeng <wanwan926_4@163.com>
Date: 星期五, 25 八月 2023 12:45:09 +0800
Subject: [PATCH] bug修复

---
 src/views/other/payment/receipt/addReceipt.vue |   27 +++++++++++++++++++++------
 1 files changed, 21 insertions(+), 6 deletions(-)

diff --git a/src/views/other/payment/receipt/addReceipt.vue b/src/views/other/payment/receipt/addReceipt.vue
index 0a9203d..511ef9b 100644
--- a/src/views/other/payment/receipt/addReceipt.vue
+++ b/src/views/other/payment/receipt/addReceipt.vue
@@ -39,7 +39,11 @@
                     <div class="common-select-btn" @click="selClientClick('client')">
                       <i class="el-icon-circle-plus-outline" title="閫夋嫨"></i>
                     </div>
-                    <div class="common-select-btn" @click="clearupClient('client')">
+                    <div
+                      v-if="editConfig.infomation.client_name && editConfig.infomation.client_name.length > 0"
+                      class="common-select-btn"
+                      @click="clearupClient('client')"
+                    >
                       <i class="el-icon-edit-outline" title="娓呴櫎"></i>
                     </div>
                   </div>
@@ -67,7 +71,14 @@
                     <div class="common-select-btn" @click="selClientClick('serviceContract')">
                       <i class="el-icon-circle-plus-outline" title="閫夋嫨"></i>
                     </div>
-                    <div class="common-select-btn" @click="clearupClient('serviceContract')">
+                    <div
+                      v-if="
+                        editConfig.infomation.serviceContract_Number &&
+                        editConfig.infomation.serviceContract_Number.length > 0
+                      "
+                      class="common-select-btn"
+                      @click="clearupClient('serviceContract')"
+                    >
                       <i class="el-icon-edit-outline" title="娓呴櫎"></i>
                     </div>
                   </div>
@@ -89,7 +100,11 @@
                     <div class="common-select-btn" @click="selClientClick('contract')">
                       <i class="el-icon-circle-plus-outline" title="閫夋嫨"></i>
                     </div>
-                    <div class="common-select-btn" @click="clearupClient('contract')">
+                    <div
+                      v-if="editConfig.infomation.number && editConfig.infomation.number.length > 0"
+                      class="common-select-btn"
+                      @click="clearupClient('contract')"
+                    >
                       <i class="el-icon-edit-outline" title="娓呴櫎"></i>
                     </div>
                   </div>
@@ -500,9 +515,9 @@
       }
     },
     selClient(row, value) {
-      if (value === "contact") {
-        this.editConfig.infomation.contact_name = row.name
-        this.contactId = row.id
+      if (value === "client") {
+        this.editConfig.infomation.client_name = row.name
+        this.clientId = row.id
       } else if (value === "serviceContract") {
         this.editConfig.infomation.serviceContract_Number = row.number
         this.serviceContractId = row.id

--
Gitblit v1.8.0