From bad2bc143be3f8ddb93a1c9f984127b3ccf43e8f Mon Sep 17 00:00:00 2001
From: lkk <364857242@qq.com>
Date: 星期一, 31 三月 2025 17:47:14 +0800
Subject: [PATCH] 11

---
 src/views/hosp/history/index.vue |  132 +++++++++++++------------------------------
 1 files changed, 40 insertions(+), 92 deletions(-)

diff --git a/src/views/hosp/history/index.vue b/src/views/hosp/history/index.vue
index 76b5b90..154a1d9 100644
--- a/src/views/hosp/history/index.vue
+++ b/src/views/hosp/history/index.vue
@@ -27,7 +27,7 @@
               style="width: 170px"
               clearable
               @keyup.enter.native="handleQuery"
-              @blur="handleQuery"
+              @blur="hb"
             />
           </el-form-item>
           <el-form-item>
@@ -138,10 +138,7 @@
         </div>
       </div>
       <div class="hist3">
-        <jianqianwenzhen
-          :jianqianwenzhendata="jianqianwenzhendata"
-          :dataList="dataList"
-        ></jianqianwenzhen>
+        <jianqianwenzhen @submitLoading="handleLoading" :jianqianwenzhendata="jianqianwenzhendata"></jianqianwenzhen>
       </div>
     </div>
 
@@ -158,7 +155,6 @@
 
 <script>
 import jianqianwenzhen from "@/components/jianqianwenzhen";
-import { updateHistory, getInfoById } from "@/api/hosp/history";
 import { Message } from "element-ui";
 import { getOrderList } from "@/api/hosp/order";
 import { listHarmType } from "@/api/hosp/harmType";
@@ -175,7 +171,6 @@
   ],
   data() {
     let checkPhoneNum = (rule, value, callback) => {
-      console.log(value);
       let patter = new RegExp(/^1\s*[3456789]\s*(\d\s*){9}$/);
       if (value == "" && value == undefined && !value) {
         return callback("");
@@ -222,6 +217,7 @@
       activeName: "1",
       // 閬僵灞�
       loading: true,
+      tableLoading: false,
       isdisabled: false,
       // 閫変腑鏁扮粍
       ids: [],
@@ -298,7 +294,7 @@
       this.loading = true;
       listHarmType().then((response) => {
         this.harmTypeList = response.rows;
-        this.loading = false;
+        
       });
       getOrderList(this.queryParams).then((response) => {
         this.orderList = response.data.list;
@@ -368,6 +364,11 @@
       this.tjAskHistorysList = [];
       this.resetForm("form");
     },
+    hb(){
+       if (this.queryParams.tjNum != undefined) {
+        this.handleQuery();
+      }
+    },
     /** 鎼滅储鎸夐挳鎿嶄綔 */
     handleQuery() {
       this.queryParams.pageNum = 1;
@@ -403,29 +404,32 @@
         }
       });
       let tjNumber = selection.map((item) => item.tjNumber);
-      getInfoById(tjNumber).then((response) => {
-        this.jianqianwenzhendata = response.data;
-        if (this.form.xiyan == null) {
-          this.form.xiyan = "1";
-        }
-        if (this.form.xiyanpinlv == null) {
-          this.form.xiyanpinlv = "0";
-        }
-        if (this.form.xiyanyear == null) {
-          this.form.xiyanyear = "0";
-        }
-        if (this.form.yinjiu == null) {
-          this.form.yinjiu = "1";
-        }
-        if (this.form.yinjiupinlv == null) {
-          this.form.yinjiupinlv = "0";
-        }
-        if (this.form.yinjiuyear == null) {
-          this.form.yinjiuyear = "0";
-        }
-        this.form.tjAskHistorysList = response.data.tjAskHistorysList;
-        // this.isdisabled= true
-      });
+      this.jianqianwenzhendata = tjNumber;
+      
+      
+      // getInfoById(tjNumber).then((response) => {
+      //   this.jianqianwenzhendata = response.data;
+      //   if (this.form.xiyan == null) {
+      //     this.form.xiyan = "1";
+      //   }
+      //   if (this.form.xiyanpinlv == null) {
+      //     this.form.xiyanpinlv = "0";
+      //   }
+      //   if (this.form.xiyanyear == null) {
+      //     this.form.xiyanyear = "0";
+      //   }
+      //   if (this.form.yinjiu == null) {
+      //     this.form.yinjiu = "1";
+      //   }
+      //   if (this.form.yinjiupinlv == null) {
+      //     this.form.yinjiupinlv = "0";
+      //   }
+      //   if (this.form.yinjiuyear == null) {
+      //     this.form.yinjiuyear = "0";
+      //   }
+      //   this.form.tjAskHistorysList = response.data.tjAskHistorysList;
+      //   // this.isdisabled= true
+      // });
     },
     tableRowClassName({ row, rowIndex }) {
       for (let i = 0; i < this.selectList.length; i++) {
@@ -435,69 +439,13 @@
       }
     },
 
-    delemembers() {
-      let that = this;
-      if (that.form.tjAskHistorysList.length == that.bingshiall.length) {
-        that.form.tjAskHistorysList = [];
-      } else {
-        that.bingshiall.forEach((item1, index1) => {
-          that.form.tjAskHistorysList.forEach((item, index) => {
-            if (item == item1) {
-              that.form.tjAskHistorysList.splice(index, 1);
-            }
-          });
-        });
-      }
-    },
+    handleLoading(isLoading) {
+      this.loading = isLoading;
+    }
 
-    addmemberss() {
-      if (this.form.cusName) {
-        if (!this.form.workLogs) {
-          this.form.workLogs = [];
-          this.form.workLogs.push({
-            id: parseInt(length),
-            beginTime: "",
-            endTime: "",
-            workCompany: "",
-            workDept: "",
-            workType: "",
-            harmTypeLogs: "",
-            fangHu: "",
-            Selection,
-          });
-        } else {
-          this.form.workLogs.push({
-            id: parseInt(length),
-            beginTime: "",
-            endTime: "",
-            workCompany: "",
-            workDept: "",
-            workType: "",
-            harmTypeLogs: "",
-            fangHu: "",
-            Selection,
-          });
-        }
-      } else {
-        Message.warning("璇峰厛濉啓瀹㈡埛鍚�");
-      }
-      this.$forceUpdate();
-    },
+    
 
-    delememberss() {
-      let that = this;
-      if (that.form.workLogs.length == that.chageall.length) {
-        that.form.workLogs = [];
-      } else {
-        that.chageall.forEach((item1, index1) => {
-          that.form.workLogs.forEach((item, index) => {
-            if (item == item1) {
-              that.form.workLogs.splice(index, 1);
-            }
-          });
-        });
-      }
-    },
+   
   },
 };
 </script>

--
Gitblit v1.8.0