From 7672bba9fc11315da4c42cba74504b7fd417df0c Mon Sep 17 00:00:00 2001
From: su1124 <1583764726@qq.com>
Date: 星期五, 08 三月 2024 15:43:58 +0800
Subject: [PATCH] su

---
 src/views/system/visit/index.vue |   44 ++++++++++++++++++++++++++++++++++++++++----
 1 files changed, 40 insertions(+), 4 deletions(-)

diff --git a/src/views/system/visit/index.vue b/src/views/system/visit/index.vue
index 2a2334c..3987680 100644
--- a/src/views/system/visit/index.vue
+++ b/src/views/system/visit/index.vue
@@ -6,7 +6,7 @@
           @keyup.enter.native="handleQuery" />
       </el-form-item>
       <el-form-item label="浣撴鍙�" prop="tjNum">
-        <el-input style="width: 170px" v-model="queryParams.tjNum" placeholder="璇疯緭鍏ヤ綋妫�鍙�" clearable
+        <el-input style="width: 170px" v-model="queryParams.tjNum" placeholder="璇疯緭鍏ヤ綋妫�鍙�" clearable ref="inputName"  @blur="hb"
           @keyup.enter.native="handleQuery" />
       </el-form-item>
       <el-form-item label="鐧昏鏃堕棿" prop="createTimeList">
@@ -49,7 +49,7 @@
     <template>
       <el-table border style="margin: 14px; width: 99%" v-loading="loading" :data="orderList"
         @selection-change="handleSelectionChange" ref="multipleTable">
-        <el-table-column type="selection" width="40px" align="center" height="10px" fixed="left" />
+        <!-- <el-table-column type="selection" width="40px" align="center" height="10px" fixed="left" /> -->
         <el-table-column label="搴忓彿" align="center" prop="newID" width="50px" fixed="left" height="10px" />
         <el-table-column label="濮撳悕" align="center" prop="tjCustomerName" height="10px" width="90px" fixed="left"
           :show-overflow-tooltip="true" />
@@ -58,6 +58,7 @@
           <template slot-scope="scope">
             <span v-if="scope.row.tjCustomerSex == '0'">鐢�</span>
             <span v-if="scope.row.tjCustomerSex == '1'">濂�</span>
+            <span v-if="scope.row.tjCustomerSex == '2'">鏈煡</span>
           </template>
         </el-table-column>
         <el-table-column label="骞撮緞" align="center" prop="tjCustomerAge" height="10px" width="60px"
@@ -228,6 +229,21 @@
         </div>
       </div>
     </el-drawer>
+    <el-dialog
+      title="PDF 棰勮"
+      :visible.sync="dialogVisible"
+      :close-on-click-modal="false"
+    >
+      <div class="main">
+        <iframe
+          id="printIframe"
+          :src="url"
+          frameborder="0"
+          style="width: 100%; height: 100%"
+        ></iframe>
+      </div>
+    </el-dialog>
+
   </div>
 </template>
 
@@ -242,9 +258,10 @@
   getPdf,
   getOrderList,
   printCode,
+  getNewDateList
 } from "@/api/hosp/order";
 import { getsendEmail, getsendMessage } from "@/api/hosp/order";
-
+import moment from "moment";
 import { addSurveyRecord } from "@/api/hosp/surveyRecord";
 import { getDictEmerList, listEmer } from "@/api/system/emer";
 import ViewPdf from "@/components/ViewPdf";
@@ -411,12 +428,26 @@
     },
   },
   created() {
-    this.getNowTime();
+    // this.getNowTime();
     this.getList();
     this.Company();
     this.getListEmer();
+    this.getdate();
+  },
+  mounted() {
+    this.$nextTick(() => {
+      this.$refs.inputName.focus();
+    });
   },
   methods: {
+    getdate() {
+      getNewDateList().then((res) => {
+        this.createTimeList = [
+            moment(res.data).format("YYYY-MM-DD 00:00:00"),
+            moment(res.data).format("YYYY-MM-DD 23:59:00")
+          ];;
+      });
+    },
     dialogVisibles() {
       this.$message.error("璇疯繛鎺ユ嫧鍙峰櫒锛�");
     },
@@ -572,6 +603,11 @@
       this.queryParams.pageNum = 1;
       this.getList();
     },
+    hb() {
+      if (this.queryParams.tjNum != undefined) {
+        this.handleQuery();
+      }
+    },
     handleQuerys() {
       this.emerc = true;
       this.queryParam.pageNum = 1;

--
Gitblit v1.8.0