From bcbe25283756f3c13319042c340fe1361b9384b9 Mon Sep 17 00:00:00 2001
From: qx <1084500556@qq.com>
Date: 星期三, 16 七月 2025 15:07:31 +0800
Subject: [PATCH] qx

---
 src/views/doctor/checkAll/index.vue |  201 ++++++++++++++++++++++----------------------------
 1 files changed, 88 insertions(+), 113 deletions(-)

diff --git a/src/views/doctor/checkAll/index.vue b/src/views/doctor/checkAll/index.vue
index 1ec611e..e6d237d 100644
--- a/src/views/doctor/checkAll/index.vue
+++ b/src/views/doctor/checkAll/index.vue
@@ -1,6 +1,6 @@
 <template>
   <div class="mainbox">
-       <el-form :model="queryParams" ref="tableList" :inline="true" label-width="76px" style="margin-top: 10px">
+    <el-form :model="queryParams" ref="tableList" :inline="true" label-width="76px" style="margin-top: 10px">
       <el-form-item label="濮撳悕" prop="name">
         <el-input v-model="queryParams.name" style="width: 120px" placeholder="璇疯緭鍏ュ鍚�" clearable
           @keyup.enter.native="submitForm"></el-input>
@@ -9,12 +9,12 @@
         <el-input ref="inputName" v-model="queryParams.tjNumber" style="width: 180px" placeholder="璇疯緭鍏ヤ綋妫�鍙�" clearable
           @keyup.enter.native="submitForm" @blur="hb"></el-input>
       </el-form-item>
-       <el-form-item label="浣撴绫诲埆">
-                <el-select style="width: 200px" v-model="queryParams.tjCategory" placeholder="璇烽�夋嫨浣撴绫诲埆">
-                  <el-option v-for="dict in dict.type.dict_tjtype" :key="dict.value" :label="dict.label"
-                    :value="dict.value"></el-option>
-                </el-select>
-              </el-form-item>
+      <el-form-item label="浣撴绫诲埆">
+        <el-select style="width: 200px" v-model="queryParams.tjCategory" placeholder="璇烽�夋嫨浣撴绫诲埆">
+          <el-option v-for="dict in dict.type.dict_tjtype" :key="dict.value" :label="dict.label"
+            :value="dict.value"></el-option>
+        </el-select>
+      </el-form-item>
       <el-form-item label="濂楅鍚嶇О" prop="tcm">
         <el-input v-model="queryParams.tcm" style="width: 120px" placeholder="璇疯緭鍏ュ椁愬悕绉�" clearable
           @keyup.enter.native="submitForm"></el-input>
@@ -35,11 +35,11 @@
           v-show="isCollapsed == 1">楂樼骇鎼滅储</el-button>
       </el-form-item>
       <el-row v-show="isCollapsed == 1" :gutter="20">
-         <el-col :span="4">
-        <el-form-item label="瀹℃牳鍖诲笀" prop="shys">
-          <el-input ref="inputName" v-model="queryParams.shys" style="width: 120px" placeholder="璇疯緭鍏ュ鏍稿尰甯�" clearable
-            @keyup.enter.native="submitForm"></el-input>
-        </el-form-item>
+        <el-col :span="4">
+          <el-form-item label="瀹℃牳鍖诲笀" prop="shys">
+            <el-input ref="inputName" v-model="queryParams.shys" style="width: 120px" placeholder="璇疯緭鍏ュ鏍稿尰甯�" clearable
+              @keyup.enter.native="submitForm"></el-input>
+          </el-form-item>
         </el-col>
         <el-col :span="8">
           <el-form-item label="浣撴鏃堕棿" prop="tjTime">
@@ -110,16 +110,16 @@
       <el-radio-button label="1">宸插鏍�</el-radio-button>
     </el-radio-group>
 
-     <el-row :gutter="10" class="mb8" v-if="piliang" style="margin: 15px;">
+    <el-row :gutter="10" class="mb8" v-if="piliang" style="margin: 15px;">
       <el-col :span="1.5">
-        <el-button type="primary"  size="mini" @click="handleshenhe">鎵归噺鏍告敹</el-button>
+        <el-button type="primary" size="mini" @click="handleshenhe">鎵归噺鏍告敹</el-button>
       </el-col>
     </el-row>
 
     <template>
       <el-table v-loading="loading" :data="checkList" ref="table" border style="margin: 20px; width: 98%"
         @current-change="handleCurrentChange">
-        <el-table-column  type="selection" align="center" label="閫夋嫨" width="50"  v-if="piliang"/>
+        <el-table-column type="selection" align="center" label="閫夋嫨" width="50" v-if="piliang" />
         <el-table-column label="浣撴鍙�" align="center" prop="tjNumber" :show-overflow-tooltip="true" width="160px"
           fixed="left" />
         <el-table-column label="濮撳悕" align="center" prop="cusName" :show-overflow-tooltip="true" width="100px"
@@ -134,8 +134,10 @@
         </el-table-column>
         <el-table-column label="鍑虹敓鏃ユ湡" align="center" prop="cusBrithday" :show-overflow-tooltip="true" width="110px" />
         <el-table-column label="鐢佃瘽" align="center" prop="cusPhone" :show-overflow-tooltip="true" width="130px" />
-        <el-table-column label="瀹℃牳鏃堕棿" align="center" prop="shsj" :show-overflow-tooltip="true" width="180px" v-if="tjStatus == 1" />
-        <el-table-column label="浣撴鏃堕棿" align="center" prop="tjTime" :show-overflow-tooltip="true" width="180px" v-if="tjStatus == 0" />
+        <el-table-column label="瀹℃牳鏃堕棿" align="center" prop="shsj" :show-overflow-tooltip="true" width="180px"
+          v-if="tjStatus == 1" />
+        <el-table-column label="浣撴鏃堕棿" align="center" prop="tjTime" :show-overflow-tooltip="true" width="180px"
+          v-if="tjStatus == 0" />
         <!-- <el-table-column label="瀹屾垚鏃堕棿" align="center" prop="finishTime" :show-overflow-tooltip="true" width="160px" /> -->
         <el-table-column label="鐘舵��" align="center" prop="tjStatus" :show-overflow-tooltip="true" width="120px"
           v-if="tjStatus == 0">
@@ -152,14 +154,12 @@
         </el-table-column>
         <el-table-column label="鎿嶄綔" align="center" width="120px" fixed="right">
           <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>
-            <el-button fixed="right" title="璇︽儏" type="text" size="mini" @click.stop="handleClick(scope.row)"
-              icon="el-icon-document-copy"></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 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 fixed="right" type="text" size="mini" @click.stop="rowClick(scope.row)"  v-if="msgkcf == 'y' || msgkcf == 'Y'">澶勬柟</el-button>
+            <el-button fixed="right" type="text" size="mini" @click.stop="handleClick(scope.row)">璇︽儏</el-button>
+            <el-button type="text" size="mini" @click.stop="viewReport(scope.row)"
+              v-if="scope.row.tjStatus == '1'">棰勮</el-button>
+            <el-button type="text" size="mini" v-if="scope.row.tjStatus == '1'"
+              @click.stop="getRevoke(scope.row)">鎾ら攢</el-button>
           </template>
         </el-table-column>
       </el-table>
@@ -184,17 +184,17 @@
               {{ tableAll.cusName }}鐨勪綋妫�璧勬枡
             </caption>
             <tr style="border: 1px solid #dfe6ec; border-collapse: collapse; height: 36px;">
-              <td style="border: 1px solid #dfe6ec; border-collapse: collapse">濮撳悕锛�</td>
-              <td style="border: 1px solid #dfe6ec; border-collapse: collapse">{{ tableAll.cusName }}</td>
+              <td style="border: 1px solid #dfe6ec; border-collapse: collapse">濮撳悕锛歿{ tableAll.cusName }}</td>
               <td style="border: 1px solid #dfe6ec; border-collapse: collapse">鎬у埆锛歿{ tableAll.cusSex == 0 ? "鐢�" :
                 tableAll.cusSex == 1 ? "濂�" : "鏈煡" }}</td>
               <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="border: 1px solid #dfe6ec; border-collapse: collapse; height: 36px;">
-              <td style="border: 1px solid #dfe6ec; border-collapse: collapse">浣撴鍗曞彿锛�</td>
-              <td style="border: 1px solid #dfe6ec; border-collapse: collapse">{{ tableAll.tjNumber }}</td>
-              <td style="border: 1px solid #dfe6ec; border-collapse: collapse">浣撴鏃堕棿锛�</td>
-              <td style="border: 1px solid #dfe6ec; border-collapse: collapse">{{ tableAll.tjTime }}</td>
+              <td style="border: 1px solid #dfe6ec; border-collapse: collapse">鍗曚綅鍚嶇О锛歿{ tableAll.tjCompName }}</td>
+              <td style="border: 1px solid #dfe6ec; border-collapse: collapse">浣撴绫诲瀷锛歿{ 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 }}</td>
             </tr>
           </table>
           <i class="el-icon-close" @click="guanbi"></i>
@@ -360,8 +360,7 @@
                   </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' }"  :row-key="getRowKeys"
-                      v-loading="loading">
+                      :header-cell-style="{ background: '#67C23A' }" :row-key="getRowKeys" v-loading="loading">
                       <!-- :expand-row-keys="expends" -->
                       <el-table-column type="expand">
                         <template slot-scope="props">
@@ -409,20 +408,10 @@
                       <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"
-                      >
+                      <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 size="mini" type="text" icon="el-icon-delete" @click="shanchu(props.row)">
                           </el-button>
                         </template>
                       </el-table-column>
@@ -476,20 +465,10 @@
                         </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"
-                      >
+                      <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 size="mini" type="text" icon="el-icon-delete" @click="shanchu(props.row)">
                           </el-button>
                         </template>
                       </el-table-column>
@@ -506,7 +485,7 @@
                     :header-cell-style="{ background: '#e6a23c' }">
                     <el-table-column align="center" label="閮ㄩ棬" width="144" prop="deptName"></el-table-column>
                     <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">
+                    <el-table-column label="鐘舵��" align="center" prop="type" :show-overflow-tooltip="true" width="90">
                       <template slot-scope="scope">
                         <span v-if="scope.row.type == '0'">鏈</span>
                         <span v-if="scope.row.type == '1'">宸叉</span>
@@ -514,11 +493,14 @@
                         <span v-if="scope.row.type == '3'">寤舵湡</span>
                       </template>
                     </el-table-column>
-                    <el-table-column label="妫�鏌ユ椂闂�" align="center" prop="bcupdateTime" :formatter="formatDate" width="160" />
-                    <el-table-column label="鎿嶄綔" align="center" width="80px">
+                    <el-table-column label="妫�鏌ユ椂闂�" align="center" prop="bcupdateTime" :formatter="formatDate"
+                      width="160" />
+                    <el-table-column label="鎿嶄綔" align="center" width="80px" fixed="right">
                       <template slot-scope="scope">
-                        <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>
+                        <el-button type="primary" size="mini" @click="huifu(scope.row)" v-if="scope.row.type == '2'"
+                          :disabled="tjStatus == 1">鎭㈠</el-button>
+                        <el-button type="primary" size="mini" @click="chexiao(scope.row)" v-if="scope.row.type == '1'"
+                          :disabled="tjStatus == 1">鎾ら攢</el-button>
                       </template>
                     </el-table-column>
                   </el-table>
@@ -761,31 +743,12 @@
               </template>
               <template v-if="status1 == 4">
                 <div>
-                  <el-table
-                    :data="ychfList"
-                    style="width: 100%"
-                    :header-cell-style="{ background: '#e6a23c' }"
-                  >
-                    <el-table-column
-                      align="center"
-                      prop="jcxm"
-                      label="椤圭洰鍚�"
-                      width="260"
-                    ></el-table-column>
-                    <el-table-column
-                      label="缁撴灉"
-                      align="center"
-                      prop="jcjg"
-                      width="160"
-                    />
+                  <el-table :data="ychfList" style="width: 100%" :header-cell-style="{ background: '#e6a23c' }">
+                    <el-table-column align="center" prop="jcxm" label="椤圭洰鍚�" width="260"></el-table-column>
+                    <el-table-column label="缁撴灉" align="center" prop="jcjg" width="160" />
                     <el-table-column label="鎿嶄綔" align="center" width="130px">
                       <template v-slot="scope">
-                        <el-button
-                          type="primary"
-                          size="mini"
-                          @click="hfyc(scope.row.id)"
-                          >鎭㈠</el-button
-                        >
+                        <el-button type="primary" size="mini" @click="hfyc(scope.row.id)">鎭㈠</el-button>
                       </template>
                     </el-table-column>
                   </el-table>
@@ -943,7 +906,7 @@
 import { getCompany, queryCompany } from "@/api/team/tuanti";
 import { reportHistory, yichang, shanchu } from "@/api/doctor/check";
 import { getPdf, revoke } from "@/api/hosp/order";
-import { cSWebGetPro,huifu,} from "@/api/doctor/examination";
+import { cSWebGetPro, huifu, } from "@/api/doctor/examination";
 import ViewPdf from "@/components/ViewPdf";
 import Historicalreport from "@/components/Historicalreport";
 import { getDicts } from "@/api/system/dict/data";
@@ -1829,9 +1792,9 @@
 
     radioChange(value) {
       this.loading = true;
-      if(value == "0" && this.gotyval == "01"){
+      if (value == "0" && this.gotyval == "01") {
         this.piliang = true
-      }else{
+      } else {
         this.piliang = false
       }
       this.queryParams.checkStatus = value;
@@ -1934,16 +1897,16 @@
       this.CheckBox = val;
     },
 
-    searchCategory(val){
+    searchCategory(val) {
       this.gotyval = val
-      if(val == "01" && this.tjStatus == "0"){
-          this.piliang = true
-      }else{
-         this.piliang = false
+      if (val == "01" && this.tjStatus == "0") {
+        this.piliang = true
+      } else {
+        this.piliang = false
       }
     },
 
-    handleshenhe(){
+    handleshenhe() {
 
     },
 
@@ -1985,17 +1948,17 @@
       });
     },
 
-    huifu(row){
+    huifu(row) {
       const tjNUm = this.tjNumber;
       const proId = row.proId;
-        huifu(tjNUm, proId).then((res) => {
-          if (res.code == 200) {
-           this.xiangmuqingkuang()
-          }
-        });
+      huifu(tjNUm, proId).then((res) => {
+        if (res.code == 200) {
+          this.xiangmuqingkuang()
+        }
+      });
     },
 
-     chexiao(row) {
+    chexiao(row) {
       const tjNUm = this.tjNumber;
       const proId = row.proId;
       chexiao(tjNUm, proId).then((res) => {
@@ -2013,18 +1976,18 @@
       huiFuyichangxiangmu(tjNum).then((res) => {
         this.status1 = 4;
         this.ychfList = res.data;
-        if(this.ychfList.length == 0){
-          this.message.success("鏆傛棤寮傚父鎭㈠椤圭洰")
+        if (this.ychfList.length == 0) {
+          this.$message.success("鏆傛棤寮傚父鎭㈠椤圭洰")
         }
       })
-      .catch((error)=>{
-        console.error("鑾峰彇椤圭洰澶辫触锛�",error);
-        
-        this.$message.error("鑾峰彇椤圭洰澶辫触")
-      })
-      .finally(()=>{
-        this.loading = false;
-      })
+        .catch((error) => {
+          console.error("鑾峰彇椤圭洰澶辫触锛�", error);
+
+          this.$message.error("鑾峰彇椤圭洰澶辫触")
+        })
+        .finally(() => {
+          this.loading = false;
+        })
     },
 
     hfyc(id) {
@@ -2111,6 +2074,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;
 

--
Gitblit v1.8.0