From 18657144f04cb12efe4b1d23bf925bdedd739c9d Mon Sep 17 00:00:00 2001
From: lkk <364857242@qq.com>
Date: 星期五, 18 七月 2025 18:01:50 +0800
Subject: [PATCH] 1

---
 src/views/doctor/checkAll/index.vue |  112 +++++++++++++++++++++++++++++++++++++++++--------------
 1 files changed, 83 insertions(+), 29 deletions(-)

diff --git a/src/views/doctor/checkAll/index.vue b/src/views/doctor/checkAll/index.vue
index 42f29c8..aa23276 100644
--- a/src/views/doctor/checkAll/index.vue
+++ b/src/views/doctor/checkAll/index.vue
@@ -291,36 +291,33 @@
           <template slot-scope="scope">
             <el-button
               fixed="right"
-              title="澶勬柟"
               type="text"
               size="mini"
               @click.stop="rowClick(scope.row)"
-              icon="el-icon-edit-outline"
-            ></el-button>
+              v-if="msgkcf == 'y' || msgkcf == 'Y'"
+              >澶勬柟</el-button
+            >
             <el-button
               fixed="right"
-              title="璇︽儏"
               type="text"
               size="mini"
               @click.stop="handleClick(scope.row)"
-              icon="el-icon-document-copy"
-            ></el-button>
+              >璇︽儏</el-button
+            >
             <el-button
               type="text"
               size="mini"
               @click.stop="viewReport(scope.row)"
               v-if="scope.row.tjStatus == '1'"
-              title="棰勮"
-              icon="el-icon-view"
-            ></el-button>
+              >棰勮</el-button
+            >
             <el-button
               type="text"
               size="mini"
               v-if="scope.row.tjStatus == '1'"
-              title="鎾ら攢"
               @click.stop="getRevoke(scope.row)"
-              icon="el-icon-refresh-left"
-            ></el-button>
+              >鎾ら攢</el-button
+            >
           </template>
         </el-table-column>
       </el-table>
@@ -377,10 +374,7 @@
               "
             >
               <td style="border: 1px solid #dfe6ec; border-collapse: collapse">
-                濮撳悕锛�
-              </td>
-              <td style="border: 1px solid #dfe6ec; border-collapse: collapse">
-                {{ tableAll.cusName }}
+                濮撳悕锛歿{ tableAll.cusName }}
               </td>
               <td style="border: 1px solid #dfe6ec; border-collapse: collapse">
                 鎬у埆锛�
@@ -395,6 +389,9 @@
               <td style="border: 1px solid #dfe6ec; border-collapse: collapse">
                 骞撮緞锛歿{ tableAll.age }}
               </td>
+              <td style="border: 1px solid #dfe6ec; border-collapse: collapse">
+                浣撴鍙凤細{{ tableAll.tjNumber }}
+              </td>
             </tr>
             <tr
               style="
@@ -404,16 +401,16 @@
               "
             >
               <td style="border: 1px solid #dfe6ec; border-collapse: collapse">
-                浣撴鍗曞彿锛�
+                鍗曚綅鍚嶇О锛歿{ tableAll.tjCompName }}
               </td>
               <td style="border: 1px solid #dfe6ec; border-collapse: collapse">
-                {{ tableAll.tjNumber }}
+                浣撴绫诲瀷锛歿{ tableAll.tjCategory }}
               </td>
               <td style="border: 1px solid #dfe6ec; border-collapse: collapse">
-                浣撴鏃堕棿锛�
+                濂楅锛歿{ tableAll.pacName }}
               </td>
               <td style="border: 1px solid #dfe6ec; border-collapse: collapse">
-                {{ tableAll.tjTime }}
+                浣撴鏃堕棿锛歿{ tableAll.tjTime }}
               </td>
             </tr>
           </table>
@@ -736,6 +733,7 @@
                     placeholder="璇疯緭鍏ュ唴瀹�"
                     v-model="textarea1"
                     :autosize="{ minRows: minRows, maxRows: maxRows }"
+                    style="font-size: 16px;"
                   ></el-input>
                 </el-form-item>
               </el-form>
@@ -1073,7 +1071,12 @@
                       :formatter="formatDate"
                       width="160"
                     />
-                    <el-table-column label="鎿嶄綔" align="center" fixed="right" width="80px">
+                    <el-table-column
+                      label="鎿嶄綔"
+                      align="center"
+                      fixed="right"
+                      width="80px"
+                    >
                       <template slot-scope="scope">
                         <el-button
                           type="primary"
@@ -1144,11 +1147,11 @@
                     style="width: 100%"
                     border
                   >
-                    <el-table-column
+                    <!-- <el-table-column
                       type="selection"
                       width="40"
                       align="center"
-                    />
+                    /> -->
                     <el-table-column label="搴忓彿" align="center" prop="newID" />
                     <el-table-column
                       label="鍚嶇О"
@@ -2598,10 +2601,12 @@
           }
         })
         .catch((error) => {
+          this.isLoading = false;
           console.error("鑾峰彇寮傚父缁撴灉澶辫触:", error);
           this.$message.error("鑾峰彇寮傚父缁撴灉澶辫触");
         })
         .finally(() => {
+          this.isLoading = false;
           this.loading = false;
         });
     },
@@ -2932,10 +2937,9 @@
 
     propoChange() {
       this.cusobj = { sex: this.tableAll.cusSex, isZj: 0 };
+       this.$refs.proposal.clearSearchFields()
       getConfigKey("mrzscyjy").then((res) => {
         this.mrjy = res.msg; // 浼氳Е鍙� watch 鈫� 璁剧疆 tjproposal = "1"
-        // console.log(res, 4444);
-
         // 绛夋暟鎹姸鎬佸噯澶囧ソ鍚庡啀鎵撳紑寮圭獥
         this.$refs.proposal.title = "寤鸿鏂规";
         this.$refs.proposal.open = true;
@@ -3130,6 +3134,18 @@
       this.qingkong();
       this.$refs.Pre.open = false;
       this.tableAll = row;
+      let dict = "dict_tjtype"
+      getDicts(dict).then(res => {
+         if (res.code == 200) {
+            res.data.forEach((item) => {
+              if (this.tableAll.tjCategory == item.dictValue) {
+                this.tableAll.tjCategory = item.dictLabel;
+              }
+            });
+          } else {
+            throw new Error('鑾峰彇浣撴绫诲瀷瀛楀吀澶辫触');
+          }
+      })
       this.tjproject = "0";
       this.tjNumber = this.tableAll.tjNumber;
 
@@ -3151,7 +3167,7 @@
                   this.isLoading = true;
                   this.drawer = true;
                   getupdateCheckType(this.tjNumber).then((response) => {
-                    this.isLoading = false;
+                    // this.isLoading = false;
                     this.changedate = response.data;
                     if (this.changedate) {
                       this.changedate.forEach((item) => {
@@ -3206,7 +3222,7 @@
                       this.isLoading = true;
                       this.drawer = true;
                       getupdateCheckType(this.tjNumber).then((response) => {
-                        this.isLoading = false;
+                        // this.isLoading = false;
                         this.changedate = response.data;
                         if (this.changedate) {
                           for (let i = 0; i < this.changedate.length; i++) {
@@ -3333,7 +3349,45 @@
               id: this.MsgId,
             };
 
-            addOrder(dataList)
+             gettoPdf(tjNumber)
+              .then((res) => {
+                this.$modal.msgSuccess("宸茬敓鎴愭姤鍛婏紒璇峰墠寰�鎶ュ憡鏍告敹椤甸潰纭锛�");
+              })
+              .catch(() => {
+                this.$modal.msgError(
+                  "鎵撳嵃鎶ュ憡澶辫触锛岃鍓嶅線鎶ュ憡鎵撳嵃椤甸潰琛ユ墦鎶ュ憡锛�"
+                );
+              });
+            const statePromise = getfiedState(reportData).then(() => {
+              this.drawer = false;
+            });
+            const updatePromises = this.changedate.map((item) => {
+              this.proIds = item.parentId;
+              let remarks = item.remark;
+              let updateOrderRemarkVos = [
+                {
+                  tjNumber,
+                  proId: this.proIds.toString(),
+                  remarks,
+                },
+              ];
+              return getModified(updateOrderRemarkVos);
+            });
+
+            Promise.all([statePromise, ...updatePromises])
+              .then(() => {
+                this.loading = false;
+                this.queryParams.page = 1;
+                this.queryParams.pageSize = 10;
+                this.submitForm();
+                this.$forceUpdate();
+              })
+              .catch((error) => {
+                this.loading = false;
+                console.error("鍙戠敓閿欒:", error);
+              });
+
+            /* addOrder(dataList)
               .then((res) => {
                 if (res.code == 200) {
                   // gettoPdf(tjNumber)
@@ -3380,7 +3434,7 @@
               .catch((error) => {
                 this.loading = false;
                 console.error("addOrderPromise 澶辫触:", error);
-              });
+              }); */
           } else {
             this.loading = false;
             this.$modal.msgError("鎻愪氦澶辫触");

--
Gitblit v1.8.0