From 0c2c35139886532e938ea304254a339bd22cbd41 Mon Sep 17 00:00:00 2001
From: su1124 <1583764726@qq.com>
Date: 星期一, 24 六月 2024 19:26:11 +0800
Subject: [PATCH] su

---
 src/views/system/tijian/index.vue |   32 +++++++++++++++++++++++---------
 1 files changed, 23 insertions(+), 9 deletions(-)

diff --git a/src/views/system/tijian/index.vue b/src/views/system/tijian/index.vue
index 885ecf0..cc2786b 100644
--- a/src/views/system/tijian/index.vue
+++ b/src/views/system/tijian/index.vue
@@ -550,7 +550,9 @@
                 >
                   椤圭洰鍒楄〃
                 </div>
-                <el-input placeholder="杈撳叆鍏抽敭瀛楄繘琛岃繃婊�" v-model="filterText">
+                <!-- @input="gaibian" -->
+                <el-input placeholder="杈撳叆鍏抽敭瀛楄繘琛岃繃婊�" 
+                 v-model="filterText">
                 </el-input>
                 <div class="tab3">
                   <el-tree
@@ -1311,6 +1313,7 @@
   },
   data() {
     return {
+      pname:"",
       filterText: "",
       proIdList: [],
       tableDatas: [],
@@ -1557,6 +1560,11 @@
     filterNode(value, data) {
       if (!value) return true;
       return data.proName.indexOf(value) !== -1;
+      // if(value == data.proName){
+      //   return data.proName.indexOf(value) !== -1;
+      // }else{
+      //   return data.proEngName.indexOf(value) !== -1;
+      // }
     },
     beforeDestroy() {
       clearInterval(this.timer);
@@ -2031,7 +2039,6 @@
                   if (this.tableData1) {
                     this.tableData1.forEach((item) => {
                       this.TotalPrice1 += item.ysPrice;
-                      console.log(this.TotalPrice1);
                       this.TotalPrice = (
                         this.TotalPrice1 *
                         (this.discount / 10)
@@ -2340,6 +2347,7 @@
       let _this = this;
       _this.pacId = "";
       this.proIds = [];
+      this.tjCategory ="12"
       let data = {
         cusId,
         pacId: _this.pacId,
@@ -2442,14 +2450,23 @@
       }
     },
     handleClick(tab, event) {
-      console.log(tab, event);
       if (tab.label == "鍗曢」") {
         this.DataList = [];
         this.getDataList();
       }
     },
+    // gaibian(val){
+    //   console.log(val);
+    //   let pname = val;
+    //   console.log(pname);
+    //   getProParentIdDxList(pname).then(response=>{
+    //     this.Treedata = response.data.list;
+    //   })
+    // },
     getDataList() {
+      console.log(111);
       this.loading = true;
+      // this.pname = "null";
       getProParentIdDxList().then((response) => {
         this.Treedata = response.data.list;
         if (this.tableData[0]) {
@@ -2590,7 +2607,6 @@
     },
     //  // 榛樿鎺ュ彈鍥涗釜鍊� { 褰撳墠琛岀殑鍊�, 褰撳墠鍒楃殑鍊�, 琛岀殑涓嬫爣, 鍒楃殑涓嬫爣 }
     objectSpanMethod({ row, column, rowIndex, columnIndex }) {
-      console.log(row, column, rowIndex, columnIndex);
       let fields = ["propinName"];
       let cellValue = row[column.property];
       if (cellValue && fields.includes(column.property)) {
@@ -2638,7 +2654,7 @@
         proIds: this.proIds,
       };
       getaddtTransition(data).then((response) => {
-        if (response.code === 200) {
+        if(response.code==200 ){
           let cusId = this.form.cusIdcard;
           this.proIds = [];
           getTransitionList(cusId).then((response) => {
@@ -2647,8 +2663,8 @@
             if (this.tableData1) {
               this.tableData1.forEach((item) => {
                 this.TotalPrice1 += item.nowPrice;
-                if (item.pacName === null) {
-                  item.pacName = "鍗曢」";
+                if (item.tjCategory!=null ) {
+                  this.tjCategory  = item.tjCategory
                 }
                 if (item.pacName == "鍗曢」") {
                   item.list.forEach((item9) => {
@@ -2665,12 +2681,10 @@
               } else {
                 this.TotalPrice = TotalPrice;
               }
-
               this.list1 = false;
               this.list3 = true;
             } else {
               this.list1 = true;
-
               this.TotalPrice = "0.00";
             }
           });

--
Gitblit v1.8.0