From 4e89136677c9fd3dabeffadbfd20fccd6ec42cef Mon Sep 17 00:00:00 2001
From: su1124 <1583764726@qq.com>
Date: 星期五, 21 六月 2024 12:04:55 +0800
Subject: [PATCH] su

---
 src/views/system/tijian/index.vue |   77 +++++++++++++++++++++-----------------
 1 files changed, 42 insertions(+), 35 deletions(-)

diff --git a/src/views/system/tijian/index.vue b/src/views/system/tijian/index.vue
index b693f41..885ecf0 100644
--- a/src/views/system/tijian/index.vue
+++ b/src/views/system/tijian/index.vue
@@ -645,7 +645,7 @@
                       </template>
                     </el-table-column>
                   </el-table>
-                  <div>鍚堣锛歿{ marryall }}鍏�</div>
+                  <h3 style="font-weight: bold;">鍚堣锛歿{ marryall }}鍏�</h3>
                   <!-- <el-collapse v-model="activeName" accordion v-if="list1">
                     <div>
                       <el-collapse-item title="璇烽�夋嫨椤圭洰">
@@ -1319,6 +1319,7 @@
       table: false,
       HistoryList: {},
       index: 0,
+      names:"",
       dictType: [
         {
           value: 0,
@@ -1348,7 +1349,7 @@
       hospName: "",
       currentDate: "",
       currentTime: "",
-      tjCategory: "",
+      tjCategory: "12",
       formIn: {
         tjPro: "浣撴璐�",
       },
@@ -1628,39 +1629,40 @@
         cusCardId: this.form.cusIdcard,
         proId: item.proPrantId,
       };
-      delTbBycusCardIdAndProId(data).then((res) => {});
-      getTransitionList(this.form.cusIdcard).then((response) => {
-        this.tableData1 = response.data;
-        this.TotalPrice1 = 0;
-        if (this.tableData1) {
-          this.tableData1.forEach((item) => {
-            this.TotalPrice1 += item.nowPrice;
-            if (item.pacName === null) {
-              item.pacName = "鍗曢」";
-            }
-            if (item.pacName == "鍗曢」") {
-              item.list.forEach((item9) => {
-                this.treeList.push(item9.proId);
-              });
-            }
-            this.pacName = item.pacName;
-          });
+      delTbBycusCardIdAndProId(data).then((res) => {
+        getTransitionList(this.form.cusIdcard).then((response) => {
+          this.tableData1 = response.data;
+          this.TotalPrice1 = 0;
+          if (this.tableData1) {
+            this.tableData1.forEach((item) => {
+              this.TotalPrice1 += item.nowPrice;
+              if (item.pacName === null) {
+                item.pacName = "鍗曢」";
+              }
+              if (item.pacName == "鍗曢」") {
+                item.list.forEach((item9) => {
+                  this.treeList.push(item9.proId);
+                });
+              }
+              this.pacName = item.pacName;
+            });
 
-          const r = /^\+?[0-9][0-9]*$/; //姝f暣鏁帮紙鍙互0鎵撳ご锛�
-          let TotalPrice = this.TotalPrice1 * (this.discount / 10);
-          if (r.test(TotalPrice)) {
-            this.TotalPrice = TotalPrice + ".00";
+            const r = /^\+?[0-9][0-9]*$/; //姝f暣鏁帮紙鍙互0鎵撳ご锛�
+            let TotalPrice = this.TotalPrice1 * (this.discount / 10);
+            if (r.test(TotalPrice)) {
+              this.TotalPrice = TotalPrice + ".00";
+            } else {
+              this.TotalPrice = TotalPrice;
+            }
+
+            this.list1 = false;
+            this.list3 = true;
           } else {
-            this.TotalPrice = TotalPrice;
+            this.list1 = true;
+
+            this.TotalPrice = "0.00";
           }
-
-          this.list1 = false;
-          this.list3 = true;
-        } else {
-          this.list1 = true;
-
-          this.TotalPrice = "0.00";
-        }
+        });
       });
     },
     cope() {
@@ -2459,15 +2461,20 @@
             });
           });
         }
-        this.checkedkey.push(this.Treedata[0].proId);
-        let proId = this.Treedata[0].proId;
+        this.checkedkey.push("1735504273274236929");
+        let proId = "1735504273274236929";
+        this.Treedata.forEach(item =>{
+          if(proId == item.proId){
+            this.names = item.proName
+          }
+        })
         getProSonDxList(proId).then((res) => {
           this.TreedataList = res.data.list;
           this.TreedataList.forEach((item) => {
             this.checkedListkey.push(item.proId);
             this.DataList.push(item);
             this.DataList.forEach((item) => {
-              item.propinName = this.Treedata[0].proName;
+                item.propinName = this.names; 
             });
           });
           this.TotalPrice1 = 0;

--
Gitblit v1.8.0