From 72ab160441fb85d65813789dfa3f15a60e6de764 Mon Sep 17 00:00:00 2001
From: lkk <364857242@qq.com>
Date: 星期二, 15 七月 2025 18:02:29 +0800
Subject: [PATCH] 1

---
 src/views/doctor/checkAll/index.vue |   92 ++++++++++++++++++++++++++++++++++++++++------
 1 files changed, 80 insertions(+), 12 deletions(-)

diff --git a/src/views/doctor/checkAll/index.vue b/src/views/doctor/checkAll/index.vue
index 1030587..3518837 100644
--- a/src/views/doctor/checkAll/index.vue
+++ b/src/views/doctor/checkAll/index.vue
@@ -337,8 +337,7 @@
 
               <el-form ref="numberValidateForm" label-width="80px" class="demo-ruleForm" v-if="tjproject != '1'">
                 <el-form-item label="鎬绘寤鸿">
-                  <el-input type="textarea" placeholder="璇疯緭鍏ュ唴瀹�" v-model="textarea1" :rows="3"
-                    style="width: 96%"></el-input>
+                  <el-input type="textarea" placeholder="璇疯緭鍏ュ唴瀹�" v-model="textarea1" :autosize="{ minRows: minRows, maxRows: maxRows }"></el-input>
                 </el-form-item>
               </el-form>
               <div slot="footer" class="dialog-footers">
@@ -360,8 +359,9 @@
                   </div>
                   <template v-if="item.jyjc == '0'">
                     <el-table :stripe="true" :row-style="red" :data="item.sone" border style="width: 100%"
-                      :header-cell-style="{ background: '#67C23A' }" :expand-row-keys="expends" :row-key="getRowKeys"
+                      :header-cell-style="{ background: '#67C23A' }"  :row-key="getRowKeys"
                       v-loading="loading">
+                      <!-- :expand-row-keys="expends" -->
                       <el-table-column type="expand">
                         <template slot-scope="props">
                           <div style="padding: 10px;">
@@ -408,11 +408,29 @@
                       <el-table-column align="center" prop="proResult" label="妫�娴嬬粨鏋�" width="85"></el-table-column>
                       <el-table-column align="center" prop="stanId" label=" 鍙傝�冭寖鍥�" width="117"></el-table-column>
                       <el-table-column align="center" prop="proAdvice" label="鍗曚綅" width="78"></el-table-column>
+                      <el-table-column
+                        label="鎿嶄綔"
+                        align="center"
+                        class-name="small-padding fixed-width"
+                        width="60"
+                        fixed="right"
+                      >
+                        <template slot-scope="props">
+                          <el-button
+                            size="mini"
+                            type="text"
+                            icon="el-icon-delete"
+                            @click="shanchu(props.row)"
+                          >
+                          </el-button>
+                        </template>
+                      </el-table-column>
                     </el-table>
                   </template>
                   <template v-if="item.jyjc == '1'">
                     <el-table :stripe="true" :row-style="red" :data="item.sone" border style="width: 100%"
-                      :header-cell-style="{ background: '#67C23A' }" :expand-row-keys="expends" :row-key="getRowKeys">
+                      :header-cell-style="{ background: '#67C23A' }" :row-key="getRowKeys">
+                      <!-- :expand-row-keys="expends"  -->
                       <el-table-column type="expand">
                         <template slot-scope="props">
                           <div style="padding: 10px;">
@@ -457,6 +475,23 @@
                         </template>
                       </el-table-column>
                       <el-table-column align="center" prop="proResult" label="妫�娴嬬粨鏋�" width="403"></el-table-column>
+                      <el-table-column
+                        label="鎿嶄綔"
+                        align="center"
+                        class-name="small-padding fixed-width"
+                        width="60"
+                        fixed="right"
+                      >
+                        <template slot-scope="props">
+                          <el-button
+                            size="mini"
+                            type="text"
+                            icon="el-icon-delete"
+                            @click="shanchu(props.row)"
+                          >
+                          </el-button>
+                        </template>
+                      </el-table-column>
                     </el-table>
                   </template>
                 </div>
@@ -472,16 +507,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>
@@ -869,13 +905,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";
@@ -899,6 +936,7 @@
   UpdFcPro,
   huiFuyichangxiangmu,
   hfbt,
+  chexiao
 } from "@/api/doctor/checkAll";
 import { getInfoById } from "@/api/hosp/history";
 import { getInfo } from "@/api/login";
@@ -944,6 +982,8 @@
       zhiyeJg: '', // 鍒濆鍖栦綋妫�缁撴灉涓洪粯璁ゅ��
       selectedAdvice: null,
       activeAdviceIndex: 0,
+      minRows: 3,
+      maxRows: null,
       gotyval: null,
       advicerulesList: [],
       xmChange: [],
@@ -999,6 +1039,7 @@
       src: "",
       url: "",
       userId: "",
+      mrjy: "",
       flag: true,
       bill: null,
       numberList: [],
@@ -1116,6 +1157,12 @@
       this.$refs.inputName.focus();
       this.viewportHeight = window.innerHeight || document.documentElement.clientHeight;
     });
+    getConfigKey("zjysjymrhs").then((res) => {
+      const val = parseInt(res.msg); // 纭繚鏄暟瀛�
+      if (!isNaN(val)) {
+        this.maxRows = val;
+      }
+    });
   },
 
   methods: {
@@ -1181,6 +1228,12 @@
 
     handleCurrentChangeAdvice(currentRow) {
       this.selectedAdvice = currentRow;
+    },
+
+    formatDate(row) {
+      if (!row.qdcreateTime) return "";
+      const date = moment(row.qdcreateTime, "YYYY-MM-DD");
+      return date.isValid() ? date.format("YYYY-MM-DD") : "鏃犳晥鏃ユ湡";
     },
 
 
@@ -1806,8 +1859,11 @@
 
     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; 
+        this.$refs.proposal.title = "寤鸿鏂规";
+        this.$refs.proposal.open = true;
+      });
     },
 
     eventchange(data) {
@@ -1951,6 +2007,18 @@
         });
     },
 
+     chexiao(row) {
+      const tjNUm = this.tjNumber;
+      const proId = row.proId;
+      chexiao(tjNUm, proId).then((res) => {
+        if (res.code == 200) {
+          this.$message.success("鎾ら攢鎴愬姛");
+          this.xiangmuqingkuang();
+        }
+      });
+    },
+
+
     yichanghuifu() {
       this.loading = true;
       let tjNum = this.tjNumber;

--
Gitblit v1.8.0