From a192b392d861dc2b2db0d2200da3dc51c3865a4b Mon Sep 17 00:00:00 2001
From: qinxianzhangyao <11053546+qinxianzhangyao@user.noreply.gitee.com>
Date: 星期三, 19 六月 2024 14:33:38 +0800
Subject: [PATCH] qxtj

---
 src/views/system/tijian/index.vue |   45 ++++++++++++++++++++++++++++++++++++++++++++-
 1 files changed, 44 insertions(+), 1 deletions(-)

diff --git a/src/views/system/tijian/index.vue b/src/views/system/tijian/index.vue
index ed88b5b..4a0c048 100644
--- a/src/views/system/tijian/index.vue
+++ b/src/views/system/tijian/index.vue
@@ -804,13 +804,20 @@
                 <!-- <el-input v-model="form.category" placeholder="璇疯緭鍏ヤ綋妫�绫诲埆" /> -->
               </el-form-item>
 
-              <el-form-item style="margin-left: 269px">
+              <el-form-item style="margin-left: 149px">
                 <el-button
                   type="primary"
                   @click="Package"
                   size="mini"
                   style="margin-right: 20px"
                   >閫夋嫨濂楅</el-button
+                >
+                <el-button
+                  type="primary"
+                  @click="resetpackage"
+                  size="mini"
+                  style="margin-right: 20px"
+                  >閲嶇疆濂楅</el-button
                 >
                 <el-button
                   type="primary"
@@ -2267,6 +2274,42 @@
     //   }
     // },
 
+    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";
+            }
+          });
+        }
+      });
+      this.taocan = false;
+      this.defaultKeys = [];
+    },
+
     Package() {
       this.taocan = true;
       let cusSex = this.form.cusSex;

--
Gitblit v1.8.0