From d42672a2f0c234d6c2534362d6c063a9caeb7771 Mon Sep 17 00:00:00 2001
From: qinxianzhangyao <11053546+qinxianzhangyao@user.noreply.gitee.com>
Date: 星期四, 29 二月 2024 10:12:37 +0800
Subject: [PATCH] qxtj

---
 src/views/doctor/checkAll/index.vue |  120 +++++++++++++++++++++++++++++++++++++++++++++++++-----------
 1 files changed, 98 insertions(+), 22 deletions(-)

diff --git a/src/views/doctor/checkAll/index.vue b/src/views/doctor/checkAll/index.vue
index dcc287c..c41e4dd 100644
--- a/src/views/doctor/checkAll/index.vue
+++ b/src/views/doctor/checkAll/index.vue
@@ -129,22 +129,34 @@
           </tr>
         </table>
       </div>
-      <div style="display: flex">
-        <div style="margin: 10px 10px">
-          <el-button type="primary" size="mini" @click="historicalreport()">鍘嗗彶鎶ュ憡</el-button>
-        </div>
-        <div style="margin: 10px 10px" v-if="tableAll.tjCategory == '02'">
-          <el-button type="primary" size="mini" @click="medicalhistory()">鑱屼笟鐥呭彶</el-button>
-        </div>
-        <div style="margin: 10px 10px">
-          <el-button type="primary" size="mini" @click="jianqian()">妫�鍓嶉棶璇�</el-button>
-        </div>
-        <div style="margin: 10px 10px">
-          <el-radio-group v-model="tjproject" @input="radiotjprojectChange" style="margin-left: 20px" size="mini">
-            <el-radio-button label="0" border>浣撴椤圭洰</el-radio-button>
-            <el-radio-button label="1" border>鍖栭獙椤圭洰</el-radio-button>
-          </el-radio-group>
-        </div>
+      <div>
+        <el-row>
+          <el-col :span="18">
+            <div style="margin: 10px 10px">
+              <el-radio-group v-model="tjproject" @input="radiotjprojectChange" style="margin-left: 20px">
+                <el-radio-button label="0">浣撴椤圭洰</el-radio-button>
+                <el-radio-button label="1">鍖栭獙椤圭洰</el-radio-button>
+              </el-radio-group>
+            </div>
+          </el-col>
+          <el-col :span="6">
+            <div style="margin-right: 10px;display: flex ">
+              <div style="margin: 10px 2px">
+                <el-button type="primary" size="mini" @click="Graphicreport()">鍥炬枃鎶ュ憡</el-button>
+              </div>
+              <div style="margin: 10px 5px">
+                <el-button type="primary" size="mini" @click="historicalreport()">鍘嗗彶鎶ュ憡</el-button>
+              </div>
+              <div style="margin: 10px 5px" v-if="tableAll.tjCategory == '02'">
+                <el-button type="primary" size="mini" @click="medicalhistory()">鑱屼笟鐥呭彶</el-button>
+              </div>
+              <div style="margin: 10px 5px">
+                <el-button type="primary" size="mini" @click="jianqian()">妫�鍓嶉棶璇�</el-button>
+              </div>
+            </div>
+          </el-col>
+
+        </el-row>
       </div>
 
       <el-row>
@@ -204,14 +216,14 @@
                     border-collapse: collapse;
                     width: 200px;
                   " v-if="item1.project != null">
-                  {{ item1.project.proName || ""  }}
+                  {{ item1.project.proName || "" }}
                 </td>
                 <td style="
                     border: 1px solid #dfe6ec;
                     border-collapse: collapse;
                     width: 200px;
                   " v-else>
-                  {{ item1.proName  }}
+                  {{ item1.proName }}
                 </td>
                 <td style="
                     border: 1px solid #dfe6ec;
@@ -225,19 +237,33 @@
                     border: 1px solid #dfe6ec;
                     border-collapse: collapse;
                     width: 200px;
-                  ">
+                  " v-if="item1.project != null">
                   {{ item1.standard.company }}
                 </td>
                 <td style="
                     border: 1px solid #dfe6ec;
                     border-collapse: collapse;
                     width: 200px;
-                  ">
+                  " v-else>
+                  {{ item1.proAdvice }}
+                </td>
+                <td style="
+                    border: 1px solid #dfe6ec;
+                    border-collapse: collapse;
+                    width: 200px;
+                  " v-if="item1.project != null">
                   {{
                     item1.standard.tjStandardGtValue +
                     "-" +
                     item1.standard.tjStandardLtValue
                   }}
+                </td>
+                <td style="
+                    border: 1px solid #dfe6ec;
+                    border-collapse: collapse;
+                    width: 200px;
+                  " v-else>
+                  {{ item1.stanId }}
                 </td>
               </tr>
               <tr style="
@@ -302,7 +328,7 @@
                 </el-input>
               </el-form-item>
             </el-form>
-            <div slot="footer" class="dialog-footers">
+            <div slot="footer" class="dialog-footers" v-if="tjproject == '0'">
               <el-button type="primary" @click="determine" :disabled="isdisabled">鎻愪氦骞剁敓鎴愭姤鍛�</el-button>
             </div>
           </div>
@@ -527,12 +553,14 @@
         <el-button @click="jianqians = false">鍙� 娑�</el-button>
       </span>
     </el-dialog>
+    <Packages ref="bbb" :baogao="baogao" />
   </div>
 </template>
   
 
 <script>
 import jianqianwenzhen from "@/components/jianqianwenzhen";
+import Packages from "@/components/Packages";
 import {
   getcheckList,
   getTjdetailList,
@@ -552,12 +580,16 @@
 import { getPdf, revoke } from "@/api/hosp/order";
 import ViewPdf from "@/components/ViewPdf";
 import Historicalreport from "@/components/Historicalreport";
-
+import { getDicts } from "@/api/system/dict/data";
+import {
+  getTjYxjcList
+} from "@/api/system/package";
 export default {
   components: {
     ViewPdf,
     Historicalreport,
     jianqianwenzhen,
+   Packages 
   },
   dicts: [
     "dict_tjtype",
@@ -573,6 +605,7 @@
   name: "checkAll",
   data() {
     return {
+      baogao: [],
       flags: false,
       jianqianwenzhendata: [],
       jianqians: false,
@@ -797,6 +830,49 @@
       });
     },
 
+    Graphicreport() {
+      let dictType = "dict_ageunit"
+      getDicts(dictType).then(res => {
+        if (res.code == 200) {
+          res.data.forEach(item => {
+            if (this.tableAll.age_unit == item.dictValue) {
+              this.tableAll.age_unit = item.dictLabel
+            }
+          })
+          let dictTypes = "sys_user_sex"
+          getDicts(dictTypes).then(res => {
+            if (res.code == 200) {
+              res.data.forEach(item => {
+                if (this.tableAll.cusSex == item.dictValue) {
+                  this.tableAll.cusSex = item.dictLabel
+                }
+              })
+              let data = {
+                patname: this.tableAll.cusName,
+                sex: this.tableAll.cusSex,
+                patage: this.tableAll.age,
+                patagename: this.tableAll.age_unit,
+                patbirth: this.tableAll.cusBrithday
+              }
+              // let data = {
+              //   patname: "鑴辫兘濞�",
+              //   sex: "濂�",
+              //   patage: "60",
+              //   patagename: "宀�",
+              //   patbirth: "1963-01-01"
+              // }
+              getTjYxjcList(data).then(res => {
+                this.baogao = res.data
+              })
+              this.$refs.bbb.open = true;
+              // this.$refs.bbb.getAllList();
+              this.$refs.bbb.title = "鎶ュ憡瀛楀吀";
+            }
+          })
+        }
+      })
+    },
+
     historicalreport() {
       this.loading = true;
       this.wenzhen = false;

--
Gitblit v1.8.0