From 50dd8296b363798246749bc402302535451921a5 Mon Sep 17 00:00:00 2001
From: qinxianzhangyao <11053546+qinxianzhangyao@user.noreply.gitee.com>
Date: 星期二, 23 七月 2024 15:37:37 +0800
Subject: [PATCH] qxtj

---
 src/views/doctor/checkAll/index.vue |  337 ++++++++++++++++++++++++++++++++++++-------------------
 1 files changed, 218 insertions(+), 119 deletions(-)

diff --git a/src/views/doctor/checkAll/index.vue b/src/views/doctor/checkAll/index.vue
index 878a99e..b01db8c 100644
--- a/src/views/doctor/checkAll/index.vue
+++ b/src/views/doctor/checkAll/index.vue
@@ -229,7 +229,7 @@
             :total="total"
             :page.sync="queryParams.page"
             :limit.sync="queryParams.pageSize"
-            @pagination="getList"
+            @pagination="submitForm"
           />
         </div>
       </div>
@@ -262,7 +262,11 @@
                   }}鐨勪綋妫�璧勬枡
                 </caption>
                 <tr
-                  style="border: 1px solid #dfe6ec; border-collapse: collapse;height: 36px;"
+                  style="
+                    border: 1px solid #dfe6ec;
+                    border-collapse: collapse;
+                    height: 36px;
+                  "
                 >
                   <td
                     style="border: 1px solid #dfe6ec; border-collapse: collapse"
@@ -292,7 +296,11 @@
                   </td>
                 </tr>
                 <tr
-                  style="border: 1px solid #dfe6ec; border-collapse: collapse;height: 36px;"
+                  style="
+                    border: 1px solid #dfe6ec;
+                    border-collapse: collapse;
+                    height: 36px;
+                  "
                 >
                   <td
                     style="border: 1px solid #dfe6ec; border-collapse: collapse"
@@ -367,122 +375,203 @@
               >
                 {{ item.parent || "" }}
               </div>
-              <el-table
-                :data="item.sons"
-                border
-                style="width: 100%"
-                :row-style="changRed"
-                :header-cell-style="{background:'#aad8df'}"
-              >
-                <el-table-column align="center" label="妫�娴嬮」鐩�" width="240">
-                  <template slot-scope="scope">
-                    <div v-if="scope.row.project != null">
-                      {{ scope.row.project.proName || "" }}
-                    </div>
-                    <div v-else>{{ scope.row.proName }}</div>
-                  </template>
-                </el-table-column>
-                <el-table-column
-                  align="center"
-                  prop="proResult"
-                  label="妫�娴嬬粨鏋�"
-                  width="180"
+              <div v-if="item.xmlb == '0'">
+                <el-table
+                  :data="item.sons"
+                  border
+                  style="width: 100%"
+                  :row-style="changRed"
+                  :header-cell-style="{ background: '#aad8df' }"
                 >
-                </el-table-column>
-                <el-table-column align="center" prop="" label="鍗曚綅">
-                  <template slot-scope="scope">
-                    <div v-if="scope.row.project != null">
-                      {{ scope.row.standard.company || "" }}
-                    </div>
-                    <div v-else>{{ scope.row.proAdvice }}</div>
-                  </template>
-                </el-table-column>
-                <el-table-column align="center" prop="" label=" 鍙傝�冭寖鍥�">
-                  <template slot-scope="scope">
-                    <div v-if="scope.row.project != null">
-                      {{
-                        scope.row.standard.tjStandardGtValue ||
-                        "/" + "-" + scope.row.standard.tjStandardLtValue ||
-                        "/"
-                      }}
-                    </div>
-                    <div v-else>{{ scope.row.stanId || "/" }}</div>
-                  </template>
-                </el-table-column>
-              </el-table>
-              <table style="width: 100%" v-if="tjproject != '1'">
-                <tr
-                  style="border: 1px solid #dfe6ec; border-collapse: collapse"
-                >
-                  <td
-                    style="
-                      border: 1px solid #dfe6ec;
-                      border-collapse: collapse;
-                      width:7%
-                    "
-                     
+                  <el-table-column align="center" label="妫�娴嬮」鐩�" width="240">
+                    <template slot-scope="scope">
+                      <div>{{ scope.row.proName }}</div>
+                    </template>
+                  </el-table-column>
+                  <el-table-column
+                    align="center"
+                    prop="proResult"
+                    label="妫�娴嬬粨鏋�"
+                    width="180"
                   >
-                    灏忕粨锛�
-                  </td>
-                  <td
-                    style="
-                      border: 1px solid #dfe6ec;width:45%
-                    "
-
+                  </el-table-column>
+                  <el-table-column align="center" prop="" label="鍗曚綅">
+                    <template slot-scope="scope">
+                      <div v-if="scope.row.project != null">
+                        {{ scope.row.standard.company || "" }}
+                      </div>
+                      <div v-else>{{ scope.row.proAdvice }}</div>
+                    </template>
+                  </el-table-column>
+                  <el-table-column align="center" prop="" label=" 鍙傝�冭寖鍥�">
+                    <template slot-scope="scope">
+                      <div v-if="scope.row.project != null">
+                        {{
+                          scope.row.standard.tjStandardGtValue ||
+                          "/" + "-" + scope.row.standard.tjStandardLtValue ||
+                          "/"
+                        }}
+                      </div>
+                      <div v-else>{{ scope.row.stanId || "/" }}</div>
+                    </template>
+                  </el-table-column>
+                </el-table>
+                <table style="width: 100%" v-if="tjproject != '1'">
+                  <tr
+                    style="border: 1px solid #dfe6ec; border-collapse: collapse"
                   >
-                    <el-input v-model="item.remark" disabled></el-input>
-                    <!-- <el-select v-model="item.value" multiple filterable placeholder="璇烽�夋嫨" style="width: 100%" @change="xiAoJieChange($event, item)">
+                    <td
+                      style="
+                        border: 1px solid #dfe6ec;
+                        border-collapse: collapse;
+                        width: 7%;
+                      "
+                    >
+                      灏忕粨锛�
+                    </td>
+                    <td style="border: 1px solid #dfe6ec; width: 45%">
+                      <el-input v-model="item.remark" 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>
               </el-select> -->
-                  </td>
-                  <td
+                    </td>
+                    <td
+                      style="
+                        border: 1px solid #dfe6ec;
+                        border-collapse: collapse;
+                        width: 15%;
+                      "
+                    >
+                      涓绘鍖诲笀锛�
+                    </td>
+                    <td
+                      style="
+                        border: 1px solid #dfe6ec;
+                        border-collapse: collapse;
+                      "
+                      colspan="2"
+                    >
+                      {{ item.doctorName }}
+                    </td>
+                  </tr>
+                  <tr
                     style="
                       border: 1px solid #dfe6ec;
                       border-collapse: collapse;
-                      width:15%
+                      width: 200px;
                     "
                   >
-                    涓绘鍖诲笀锛�
-                  </td>
-                  <td
-                    style="border: 1px solid #dfe6ec; border-collapse: collapse" colspan="2"
-                  >
-                    {{ item.doctorName }}
-                  </td>
-                </tr>
-                <tr
-                  style="
-                    border: 1px solid #dfe6ec;
-                    border-collapse: collapse;
-                    width: 200px;
-                  "
-                >
-                  <td
-                    style="
-                      border: 1px solid #dfe6ec;
-                      border-collapse: collapse;
-                      width: 240px;
-                    "
-                  >
-                    澶囨敞锛�
-                  </td>
-                  <td
-                    style="border: 1px solid #dfe6ec; border-collapse: collapse"
-                    colspan="3"
-                  >
-                    <textarea
-                      placeholder="璇疯緭鍏ュ唴瀹�"
-                      :autosize="{ minRows: 2, maxRows: 2 }"
-                      style="width: 100%; height: 100%"
-                      v-model="changedate[index].remark"
-                      v-on:input="change"
-                    ></textarea>
-                    <!-- <el-input type="textarea" autosize >
+                    <td
+                      style="
+                        border: 1px solid #dfe6ec;
+                        border-collapse: collapse;
+                        width: 240px;
+                      "
+                    >
+                      澶囨敞锛�
+                    </td>
+                    <td
+                      style="
+                        border: 1px solid #dfe6ec;
+                        border-collapse: collapse;
+                      "
+                      colspan="3"
+                    >
+                      <textarea
+                        placeholder="璇疯緭鍏ュ唴瀹�"
+                        :autosize="{ minRows: 2, maxRows: 2 }"
+                        style="width: 100%; height: 100%; resize: none"
+                        v-model="changedate[index].remark"
+                        v-on:input="change"
+                      ></textarea>
+                      <!-- <el-input type="textarea" autosize >
               </el-input> -->
-                  </td>
-                </tr>
-              </table>
+                    </td>
+                  </tr>
+                </table>
+              </div>
+              <div v-else>
+                <table style="width: 100%" v-if="tjproject != '1'">
+                  <tr
+                    style="border: 1px solid #dfe6ec; "
+                  >
+                    <td
+                      style="
+                        border: 1px solid #dfe6ec;
+                        border-collapse: collapse;
+                        width: 15%;
+                        height: 52px;
+                      "
+                    >
+                      妫�鏌ユ墍瑙侊細
+                    </td>
+                    <td style="border: 1px solid #dfe6ec; height: 52px;" colspan="2">
+                      <textarea
+                        placeholder="璇疯緭鍏ュ唴瀹�"
+                        :autosize="{ minRows: 3, maxRows: 4 }"
+                        style="width: 100%; height: 100%; resize: none"
+                        v-model="item.jgbx"
+                      ></textarea>
+                    </td>
+                  </tr>
+                  <tr
+                    style="border: 1px solid #dfe6ec; border-collapse: collapse"
+                  >
+                    <td
+                      style="
+                        border: 1px solid #dfe6ec;
+                        border-collapse: collapse;
+                        width: 15%;
+                      "
+                    >
+                      妫�鏌ユ彁绀猴細
+                    </td>
+                    <td
+                      style="
+                        border: 1px solid #dfe6ec;
+                        border-collapse: collapse;
+                      "
+                      colspan="2"
+                    >
+                      <!-- <el-input v-model="item.remark"></el-input> -->
+                      <textarea
+                        placeholder="璇疯緭鍏ュ唴瀹�"
+                        :autosize="{ minRows: 2, maxRows: 3 }"
+                        style="width: 100%; height: 100%; resize: none"
+                        v-model="item.remark"
+                      ></textarea>
+                    </td>
+                  </tr>
+                  <tr
+                    style="
+                      border: 1px solid #dfe6ec;
+                      border-collapse: collapse;
+                      width: 200px;
+                      height: 36px;
+                    "
+                  >
+                    <td
+                      style="
+                        border: 1px solid #dfe6ec;
+                        border-collapse: collapse;
+                        width: 15%;
+                      "
+                    >
+                      涓绘鍖诲笀锛�
+                    </td>
+                    <td
+                      style="
+                        border: 1px solid #dfe6ec;
+                        border-collapse: collapse;
+                      "
+                      colspan="2"
+                    >
+                      {{ item.doctorName }}
+                    </td>
+                  </tr>
+                </table>
+              </div>
             </div>
 
             <div style="margin: 0 0px 10px 15px" v-if="tjproject != '1'">
@@ -1433,6 +1522,8 @@
     radioChange(value) {
       this.loading = true;
       this.queryParams.checkStatus = value;
+      this.queryParams.page = 1;
+      this.queryParams.pageSize = 10;
       getcheckList(this.queryParams).then((response) => {
         if (response.data) {
           this.checkList = response.data.customers;
@@ -1451,7 +1542,6 @@
     },
     eventchange(data) {
       this.dataText = data;
-      console.log(this.textarea1);
       if (this.textarea1 == null) {
         this.textarea1 = "";
       }
@@ -1564,6 +1654,7 @@
 
     // 鎼滅储
     submitForm() {
+      console.log(this.tjStatus);
       this.loading = true;
       this.queryParams.compId = this.CheckBox.drugManufacturerId;
       this.queryParams.checkStatus = this.tjStatus;
@@ -1608,7 +1699,9 @@
     },
 
     handleCurrentChange(val) {
-      this.handleClick(val);
+      if (val != null) {
+        this.handleClick(val);
+      }
     },
 
     // 鐐瑰嚮璇︽儏
@@ -1649,7 +1742,6 @@
                     for (let i = 0; i < this.changedate.length; i++) {
                       this.remark = this.changedate[i].remark;
                     }
-                    console.log(this.changedate);
                     this.changedate.forEach((item) => {
                       // this.remark = item.remark;
                       // item.sons.forEach((item3) => {
@@ -1784,6 +1876,7 @@
             id: this.MsgId,
           };
           getfiedState(data).then((res) => {});
+          this.submitForm();
         });
     },
     handleClose1() {
@@ -1810,9 +1903,7 @@
     //     });
     //   }
     // },
-    change(vale) {
-      // console.log(this.changedate[index].remark);
-    },
+    change(vale) {},
     determine() {
       let tjNumber = this.tableAll.tjNumber;
       let advice = this.textarea1;
@@ -1831,12 +1922,22 @@
             state: 1,
             id: this.MsgId,
           };
-          gettoPdf(tjNumber).then((res) => {
-            this.$modal.msgSuccess("宸茬敓鎴愭姤鍛婏紒璇峰墠寰�鎶ュ憡鏍告敹椤甸潰纭锛�");
-          });
+          gettoPdf(tjNumber)
+            .then((res) => {
+              this.$modal.msgSuccess("宸茬敓鎴愭姤鍛婏紒璇峰墠寰�鎶ュ憡鏍告敹椤甸潰纭锛�");
+            })
+            .catch((error) => {
+              this.$modal.msgError(
+                "鎵撳嵃鎶ュ憡澶辫触锛岃鍓嶅線鎶ュ憡鎵撳嵃椤甸潰琛ユ墦鎶ュ憡锛�"
+              );
+            });
           getfiedState(data).then((res) => {
             this.drawer = false;
           });
+          this.queryParams.page = 1;
+          this.queryParams.pageSize = 10;
+          this.submitForm();
+          this.$forceUpdate();
         }
       });
 
@@ -1852,8 +1953,7 @@
         ];
         getModified(updateOrderRemarkVos).then((response) => {});
       }
-      this.submitForm();
-      this.$forceUpdate();
+
       // this.changedate.forEach((item) => {
       //   this.proIds = item.parentId;
       //   // this.remark = item.remark;
@@ -1928,7 +2028,6 @@
   border: none;
   outline: none;
 }
-
 </style>
 
   

--
Gitblit v1.8.0