From e6a54db987bdf6d04f6e122d80f2b5bb0449c1a1 Mon Sep 17 00:00:00 2001
From: su1124 <1583764726@qq.com>
Date: 星期四, 20 六月 2024 16:44:51 +0800
Subject: [PATCH] su

---
 src/views/system/tijianall/index.vue |   47 ++++++++++++++++++++++++++++++++++++++++++++---
 1 files changed, 44 insertions(+), 3 deletions(-)

diff --git a/src/views/system/tijianall/index.vue b/src/views/system/tijianall/index.vue
index ab2dcc4..cb01255 100644
--- a/src/views/system/tijianall/index.vue
+++ b/src/views/system/tijianall/index.vue
@@ -304,8 +304,9 @@
         type="border-card"
         style="height: 538px; margin: 0 10px; width: 100%"
         @tab-click="handleClick"
+        v-model="activeNames" 
       >
-        <el-tab-pane label="濂楅">
+        <el-tab-pane label="濂楅" name="first">
           <el-form
             :model="queryParam"
             ref="queryForm"
@@ -391,7 +392,7 @@
                   class="el-icon-d-arrow-right"></i></el-button> -->
           </div>
         </el-tab-pane>
-        <el-tab-pane label="鍗曢」">
+        <el-tab-pane label="鍗曢」" name="second">
           <div class="tab8">
             <!-- <div class="tab7">
               <v-tree-transfer
@@ -614,7 +615,12 @@
                 <el-button type="primary" @click="Package" size="mini"
                   >閫夋嫨濂楅</el-button
                 >
-
+                <el-button
+                  type="primary"
+                  @click="resetpackage"
+                  size="mini"
+                  >閲嶇疆濂楅</el-button
+                >
                 <el-button
                   type="primary"
                   @click="submitPrice"
@@ -923,6 +929,7 @@
       /** 鐓х浉鏈哄脊绐楁ā鍧�-start */
       videoWidth: 200,
       videoHeight: 200,
+      activeNames: 'first',
       // canvasWidth:300,
       // canvasHeight:300,
       imgSrc: "",
@@ -1431,10 +1438,44 @@
     //     return true;
     //   }
     // },
+    resetpackage(){
+      if (this.form.cusIdcard) {
+        var cusId = this.form.cusIdcard;
+      } else {
+        this.$message.warning("璇峰厛濉啓淇℃伅锛屽啀閫変綋妫�鍐呭");
+      }
+      let _this = this;
+        _this.pacId = "";
+      this.proIds = [];
+      let data = {
+        cusId,
+        pacId: _this.pacId,
+        proIds: this.proIds,
+      };
+      getaddtTransition(data).then((response) => {
+        if (response.code === 200) {
+          let cusId = this.form.cusIdcard;
+          this.proIds = [];
+          getTransitionList(cusId).then((response) => {
+            this.tableData1 = response.data;
+            this.TotalPrice1 = 0;
+            if (this.tableData1.length>=1) {
+              this.list1 = false;
+              this.list3 = true;
+            } else {
+              this.list1 = true;
+
+              this.TotalPrice = "0.00";
+            }
+          });
+        }
+      });
+    },
 
     Package() {
       this.taocan = true;
       let cusSex = this.form.cusSex;
+       this.activeNames="first"
       this.datekey = Date.now();
       //鍏ㄩ儴濂楅
       this.loading = true;

--
Gitblit v1.8.0