From d0ba1fd79cf71e389a95123358ce951b34811454 Mon Sep 17 00:00:00 2001
From: qx <1084500556@qq.com>
Date: 星期二, 15 七月 2025 15:56:14 +0800
Subject: [PATCH] Merge branch 'master' of http://101.42.27.146:5001/r/ltkj_peisweb

---
 src/views/doctor/checkAll/index.vue |   48 ++++++++++++++++++++++++++++++++++++++++--------
 1 files changed, 40 insertions(+), 8 deletions(-)

diff --git a/src/views/doctor/checkAll/index.vue b/src/views/doctor/checkAll/index.vue
index 1964efc..e5abf96 100644
--- a/src/views/doctor/checkAll/index.vue
+++ b/src/views/doctor/checkAll/index.vue
@@ -575,16 +575,17 @@
                     <el-table-column align="center" prop="proName" label="椤圭洰" width="260"></el-table-column>
                     <el-table-column label="鐘舵��" align="center" prop="type" :show-overflow-tooltip="true" width="120">
                       <template slot-scope="scope">
-                        <span v-if="scope.row.type == '0'">鏈鏍�</span>
-                        <span v-if="scope.row.type == '1'">宸插鏍�</span>
+                        <span v-if="scope.row.type == '0'">鏈</span>
+                        <span v-if="scope.row.type == '1'">宸叉</span>
                         <span v-if="scope.row.type == '2'">寮冩</span>
                         <span v-if="scope.row.type == '3'">寤舵湡</span>
                       </template>
                     </el-table-column>
-                    <el-table-column label="妫�鏌ユ椂闂�" align="center" prop="bcupdateTime" width="160" />
-                    <el-table-column label="鎿嶄綔" align="center" width="130px">
+                    <el-table-column label="妫�鏌ユ椂闂�" align="center" prop="bcupdateTime" :formatter="formatDate" width="160" />
+                    <el-table-column label="鎿嶄綔" align="center" width="80px">
                       <template slot-scope="scope">
-                        <el-button type="primary" size="mini" @click="huifu" v-if="scope.row.type == '2'">鎭㈠</el-button>
+                        <el-button type="primary" size="mini" @click="huifu(scope.row)" v-if="scope.row.type == '2'">鎭㈠</el-button>
+                        <el-button type="primary" size="mini" @click="chexiao(scope.row)" v-if="scope.row.type == '1'">鎾ら攢</el-button>
                       </template>
                     </el-table-column>
                   </el-table>
@@ -962,13 +963,14 @@
     </el-dialog>
     <Packages ref="bbb" :baogao="baogao" />
     <Prescription ref="Pre" :preObj="preObj" />
-    <proposal ref="proposal" :cusobj="cusobj" @event1="eventchange($event)" />
+    <proposal ref="proposal" :cusobj="cusobj" :mrjy="mrjy" @event1="eventchange($event)" />
     <createproposal ref="createproposal" :creatobj="creatobj" />
     <el-dialog title="甯哥敤寤鸿缁存姢" :visible.sync="propdialog" width="500px" append-to-body></el-dialog>
   </div>
 </template>
 <script>
 import _ from "lodash";
+import { getConfigKey } from "@/api/system/config";
 import jianqianwenzhen from "@/components/jianqianwenzhen";
 import Packages from "@/components/Packages";
 import Prescription from "@/components/Prescription";
@@ -992,6 +994,7 @@
   UpdFcPro,
   huiFuyichangxiangmu,
   hfbt,
+  chexiao
 } from "@/api/doctor/checkAll";
 import { getInfoById } from "@/api/hosp/history";
 import { getInfo } from "@/api/login";
@@ -1189,6 +1192,7 @@
       yichangList: [],
       fcList: [],
       statusList: [],
+      mrjy:"",
       queryParam: {
         pageNum: 1,
         pageSize: 10,
@@ -1348,6 +1352,12 @@
         this.cancelAdviceDialog();
         done();
       }
+    },
+
+    formatDate(row) {
+      if (!row.qdcreateTime) return "";
+      const date = moment(row.qdcreateTime, "YYYY-MM-DD");
+      return date.isValid() ? date.format("YYYY-MM-DD") : "鏃犳晥鏃ユ湡";
     },
 
     handleAdviceBlur(row, index) {
@@ -1625,6 +1635,7 @@
           this.loading = false;
         });
     },
+
 
     guanbi() {
       this.drawer = false;
@@ -1987,9 +1998,19 @@
 
     propoChange() {
       this.cusobj = { sex: this.tableAll.cusSex, isZj: 0 };
-      this.$refs.proposal.open = true;
-      this.$refs.proposal.title = "寤鸿鏂规";
+      getConfigKey("mrzscyjy").then((res) => {
+        this.mrjy = res.msg; // 浼氳Е鍙� watch 鈫� 璁剧疆 tjproposal = "1"
+        console.log(res,4444);
+        
+        // 绛夋暟鎹姸鎬佸噯澶囧ソ鍚庡啀鎵撳紑寮圭獥
+        this.$refs.proposal.title = "寤鸿鏂规";
+        this.$refs.proposal.open = true;
+     });
+
     },
+
+   
+
 
     eventchange(data) {
       this.dataText = data;
@@ -2121,6 +2142,17 @@
       const proId = row.proId;
       huifu(tjNUm, proId).then((res) => {
         if (res.code == 200) {
+           this.$message.success("鎭㈠鎴愬姛");
+          this.xiangmuqingkuang();
+        }
+      });
+    },
+    chexiao(row) {
+      const tjNUm = this.tjNumber;
+      const proId = row.proId;
+      chexiao(tjNUm, proId).then((res) => {
+        if (res.code == 200) {
+          this.$message.success("鎾ら攢鎴愬姛");
           this.xiangmuqingkuang();
         }
       });

--
Gitblit v1.8.0