From 9d26234c1d5f760fcab4adea68984c02485bcf82 Mon Sep 17 00:00:00 2001
From: qinxianzhangyao <11053546+qinxianzhangyao@user.noreply.gitee.com>
Date: 星期一, 11 十二月 2023 16:48:28 +0800
Subject: [PATCH] qxtj

---
 src/views/doctor/checkAll/index.vue |   64 ++++++++++++++++++-------------
 1 files changed, 37 insertions(+), 27 deletions(-)

diff --git a/src/views/doctor/checkAll/index.vue b/src/views/doctor/checkAll/index.vue
index e9c4083..b5e54ba 100644
--- a/src/views/doctor/checkAll/index.vue
+++ b/src/views/doctor/checkAll/index.vue
@@ -241,8 +241,9 @@
                 border: 1px solid #dfe6ec;
                 border-collapse: collapse;
                 width: 200px;
-              ">
-                  <el-input v-model="item.parentAdvice" disabled></el-input>
+               
+              " v-if="item.parentAdvice">
+                  <el-input v-model="item.parentAdvice[index]" disabled></el-input>
                   <!-- <el-select v-model="item.value" multiple filterable placeholder="璇烽�夋嫨" style="width: 100%" @change="xiAoJieChange($event, item)">
                 <el-option v-for="item1 in item.parentAdvice" :key="item1.id" :label="item1.title" :value="item1.id">
                 </el-option>
@@ -300,9 +301,9 @@
         </el-col>
         <el-col :span="6">
           <div v-if="hosproy">
-            <Historicalreport  :reportHistorydata="reportHistorydata"></Historicalreport>
+            <Historicalreport :reportHistorydata="reportHistorydata"></Historicalreport>
           </div>
-         
+
           <div class="hist3" v-if="wenzhen">
             <span class="txt">闂瘖淇℃伅</span>
             <el-form ref="form" :model="formobj" label-width="100px" :inline="true" size="mini">
@@ -398,7 +399,8 @@
                       <el-input v-model="formobj.yinjiuyear" style="width: 70px" />骞�
                     </el-form-item>
                     <el-form-item label="鍏朵粬" prop="qita">
-                      <el-input v-model="formobj.qita" placeholder="璇疯緭鍏ュ叾浠�" type="textarea" style="width: 600px" rows="2" />
+                      <el-input v-model="formobj.qita" placeholder="璇疯緭鍏ュ叾浠�" type="textarea" style="width: 600px"
+                        rows="2" />
                     </el-form-item>
                   </div>
                 </el-collapse-item>
@@ -538,15 +540,15 @@
     ViewPdf, Historicalreport
   },
   dicts: [
-    "dict_tjtype","sys_user_sex", "sys_yes_no", "tj_result_type", "lj_positive"
+    "dict_tjtype", "sys_user_sex", "sys_yes_no", "tj_result_type", "lj_positive"
   ],
   name: "checkAll",
   data() {
     return {
       sex: true,
       activeName: "1",
-      wenzhen:false,
-      hosproy:true,
+      wenzhen: false,
+      hosproy: true,
       remarks: "",
       remark: "",
       proIds: "",
@@ -597,7 +599,6 @@
       // 缁戝畾鍗曢�夋寜閽�
       tjStatus: "0",
       total: 0,
-      value2: [],
       CompanyList: [],
       CheckBox: {},
       startTime: [],
@@ -712,17 +713,21 @@
 
       // 椤甸潰鏁版嵁
       getcheckList(this.queryParams).then((response) => {
-        if (response.data) {
-          if (response.data.date) {
-            this.checkList = response.data.date;
-          } else {
-            this.checkList = response.data.customers;
-          }
+        if (response.code == 200) {
           this.loading = false;
-          this.total = response.data.total;
-        } else {
-          this.checkList = [];
+          if (response.data) {
+            if (response.data.date) {
+              this.checkList = response.data.date;
+            } else {
+              this.checkList = response.data.customers;
+            }
+
+            this.total = response.data.total;
+          } else {
+            this.checkList = [];
+          }
         }
+
       }),
         // 鑾峰彇鍗曚綅淇℃伅闆嗗悎
         getCompany(this.queryParam).then((response) => {
@@ -767,7 +772,7 @@
         this.loading = false
         if (res.data[0] != null) {
           this.reportHistorydata = res.data
-        }else{
+        } else {
           this.reportHistorydata = []
         }
       })
@@ -856,6 +861,7 @@
 
     // 鎼滅储
     submitForm() {
+      this.loading = true;
       this.queryParams.compId = this.CheckBox.drugManufacturerId;
       this.queryParams.checkStatus = this.tjStatus;
       if (this.startTime) {
@@ -868,16 +874,20 @@
 
       // 椤甸潰鏁版嵁
       getcheckList(this.queryParams).then((response) => {
-        if (response.data.customers != null) {
-          this.checkList = response.data.customers;
-          this.checkList.forEach((item) => {
-            this.tjStatus = item.tjStatus.toString();
-          });
+        if (response.code == 200) {
           this.loading = false;
-          this.total = response.data.total;
-        } else {
-          this.checkList = [];
+          if (response.data.customers != null) {
+            this.checkList = response.data.customers;
+            this.checkList.forEach((item) => {
+              this.tjStatus = item.tjStatus.toString();
+            });
+
+            this.total = response.data.total;
+          } else {
+            this.checkList = [];
+          }
         }
+
       });
     },
     // 閲嶇疆

--
Gitblit v1.8.0