From 22f9e1efd4c77a2c665d2e3e2c84c25e6ae775d4 Mon Sep 17 00:00:00 2001
From: haoxuan <haoxuan>
Date: 星期四, 21 十二月 2023 17:07:01 +0800
Subject: [PATCH] 销售明细单 销售机会,销售报价单根据接口获取的配置判断是否必填的功能+按钮禁止点击的样式修改

---
 src/views/service/serviceFollowup/index.vue |   12 ++++++++++--
 1 files changed, 10 insertions(+), 2 deletions(-)

diff --git a/src/views/service/serviceFollowup/index.vue b/src/views/service/serviceFollowup/index.vue
index f0cec56..f032a93 100644
--- a/src/views/service/serviceFollowup/index.vue
+++ b/src/views/service/serviceFollowup/index.vue
@@ -238,14 +238,22 @@
     addBtnClick() {
       this.editConfig.visible = true
       this.editConfig.title = "鏂板缓"
-      this.editConfig.infomation = { ...this.addConfig, client_name: "", contact_name: "", service_number: "" }
+      this.editConfig.infomation = { ...this.addConfig, client_name: "", contact_name: "" }
     },
     // 缂栬緫
     handleClick(row) {
       console.log(row)
       this.editConfig.visible = true
       this.editConfig.title = "缂栬緫"
-      this.editConfig.infomation = { ...row, service_number: row.ServiceOrder.serviceNumber }
+      this.editConfig.infomation = {
+        ...row,
+        service_number: row.ServiceOrder.serviceNumber,
+        satisfactionId: row.satisfactionId === 0 ? null : row.satisfactionId,
+        timelyRateId: row.timelyRateId === 0 ? null : row.timelyRateId,
+        solveRateId: row.solveRateId === 0 ? null : row.solveRateId,
+        oldMemberId: row.oldMemberId === 0 ? null : row.oldMemberId,
+        isVisitId: row.isVisitId === 0 ? null : row.isVisitId
+      }
     },
     // 鍒犻櫎
     delClick(id) {

--
Gitblit v1.8.0