From 6cbbc9d82214c42996d622f22c8ccab3a8123d60 Mon Sep 17 00:00:00 2001
From: qinxianzhangyao <11053546+qinxianzhangyao@user.noreply.gitee.com>
Date: 星期三, 13 十二月 2023 19:07:21 +0800
Subject: [PATCH] qxtj

---
 src/views/doctor/check/index.vue |   79 ++++++++++++++++++++++-----------------
 1 files changed, 45 insertions(+), 34 deletions(-)

diff --git a/src/views/doctor/check/index.vue b/src/views/doctor/check/index.vue
index 191b98f..be8be35 100644
--- a/src/views/doctor/check/index.vue
+++ b/src/views/doctor/check/index.vue
@@ -37,8 +37,14 @@
         <el-table-column label="鍑虹敓鏃ユ湡" align="center" prop="cusBrithday" width="100px" />
         <el-table-column label="鐢佃瘽" align="center" prop="cusPhone" width="100px" />
         <el-table-column label="浣撴绫诲瀷" align="center" prop="tjType" width="80px" />
-        <el-table-column label="鐧昏鏃堕棿" align="center" prop="createTime" width="160px" />
-        <el-table-column label="浣撴鏃堕棿" align="center" prop="tjTime" width="100px" />
+        <el-table-column label="鐧昏鏃堕棿" align="center" prop="tjTime" width="160px">
+
+        </el-table-column>
+        <el-table-column label="浣撴鏃堕棿" align="center" prop="tjTime" width="100px">
+          <template slot-scope="scope">
+            <span>{{ parseTime(scope.row.tjTime, '{y}-{m}-{d}') }}</span>
+          </template>
+        </el-table-column>
         <el-table-column label="鏈椤�" prop="notCheckeds" :show-overflow-tooltip="true" />
         <el-table-column label="鎿嶄綔" align="center" width="130px">
           <template slot-scope="scope">
@@ -372,20 +378,8 @@
             </div>
           </div>
         </el-col>
-        <el-col :span="6" v-if="reportHistorydata.length >= 1">
-          <el-table v-loading="loading" :data="reportHistorydata" border style="margin-top: 46px;">
-            <el-table-column prop="createTime" label="妫�娴嬫椂闂�">
-            </el-table-column>
-            <el-table-column label="鎿嶄綔" align="center" width="130px">
-              <template slot-scope="scope">
-                <el-button type="primary" icon="el-icon-share" size="mini" @click="handlecan(scope.row)"
-                  title="鏌ョ湅"></el-button>
-              </template>
-            </el-table-column>
-          </el-table>
-        </el-col>
-        <el-col :span="6" v-else>
-          <div>鏆傛棤鍘嗗彶鎶ュ憡</div>
+        <el-col :span="6">
+          <Historicalreport :reportHistorydata="reportHistorydata"></Historicalreport>
         </el-col>
       </el-row>
 
@@ -439,6 +433,7 @@
 import Public from "@/components/public";
 import { getPdf } from "@/api/hosp/order";
 import { getInfo } from "@/api/login";
+import Historicalreport from "@/components/Historicalreport";
 import {
   getProList,
   getSons,
@@ -461,7 +456,7 @@
 export default {
   dicts: ["sys_user_sex", "sys_yes_no", "tj_result_type", "lj_positive"],
   name: "check",
-  components: { Public },
+  components: { Public, Historicalreport },
   data() {
     return {
       selected: false,
@@ -505,6 +500,7 @@
       info: {},
       allList: [],
       autorule: [],
+      vals:{},
       form: {
         createTime: new Date()
       },
@@ -551,7 +547,7 @@
       },
       rules: {
         hzType: [
-          { required: true, message: '璇烽�夋嫨绉戝', trigger: 'change' }
+          { required: true, message: '', trigger: 'change' }
         ]
       }
     };
@@ -677,7 +673,7 @@
           }
 
         })
-      }else {
+      } else {
         let data = {
           proId: this.focusrow.proId,
           cusId: this.tableAll.cusId,
@@ -721,17 +717,20 @@
       this.loading = true;
       this.queryParams.type = this.tjStatus;
       getProList(this.queryParams).then((response) => {
-        if (response.data) {
+        if (response.code == 200) {
           this.loading = false;
-          if (response.data.date) {
-            this.tableList = response.data.date;
+          if (response.data) {
+            if (response.data.date) {
+              this.tableList = response.data.date;
+            } else {
+              this.tableList = response.data.customers;
+            }
+            this.total = response.data.total;
           } else {
-            this.tableList = response.data.customers;
+            this.tableList = [];
           }
-          this.total = response.data.total;
-        } else {
-          this.tableList = [];
         }
+
       });
     },
 
@@ -740,19 +739,22 @@
       this.queryParams.type = val;
       this.loading = true;
       getProList(this.queryParams).then((response) => {
-        if (response.data) {
+        if (response.code == 200) {
           this.loading = false;
-          this.tableList = response.data.date;
-          this.total = response.data.total;
-        } else {
-          this.tableList = [];
+          if (response.data) {
+            this.tableList = response.data.date;
+            this.total = response.data.total;
+          } else {
+            this.tableList = [];
+          }
         }
+
       });
     },
 
     // 鎼滅储
     submitForm() {
-      this.queryParams.pageNum = 1;
+      this.queryParams.page = 1;
       this.getList();
       // this.loading = true;
       // (this.queryParams = {
@@ -798,6 +800,7 @@
     },
 
     checkboxchange(val) {
+      this.vals = val
       this.project = val.project
       this.formIn.tjNumber = this.tableAll.tjNumber
       this.formIn.cusId = this.tableAll.cusId
@@ -813,6 +816,8 @@
       })
       if (val.isPositive == "1") {
         this.checkval = true;
+        this.formIn.flag = "0"
+       this.formIn.level=""
       } else {
         this.formIn.flag = "0"
         addBigPositive(this.formIn).then(res => {
@@ -830,6 +835,7 @@
     },
     cancell() {
       this.checkval = false;
+      this.vals.isPositive = "0"
     },
 
     Hzlog(val) {
@@ -936,6 +942,7 @@
     cancel() {
       this.open = false;
       this.foropen = false;
+     
     },
 
     Changeapply() {
@@ -970,7 +977,11 @@
           setTimeout(() => {
             loading.close();
           }, 3000);
-          this.$message.msgSuccess("鎶ュ憡姝e湪鐢熸垚锛岃涓ゅ垎閽熷悗棰勮锛�");
+          // this.$message.msgSuccess("鎶ュ憡姝e湪鐢熸垚锛岃涓ゅ垎閽熷悗棰勮锛�");
+          this.$message({
+            type: "warning ",
+            message: "鎶ュ憡姝e湪鐢熸垚锛岃涓ゅ垎閽熷悗棰勮锛�!",
+          });
 
         } else {
           this.dialogVisible = true;
@@ -1132,7 +1143,7 @@
         if (this.proParentList.xiaoJie.length != 0) {
           this.Parent.forEach((item3) => {
             if (item3.proId === this.nums) {
-              this.proParentList.remark = item.remark;
+              this.proParentList.remark = item3.remark;
             }
           });
         } else {

--
Gitblit v1.8.0