From 2d1cc07e5be9d226d23dc172031a3971ea43528f Mon Sep 17 00:00:00 2001
From: qinxianzhangyao <11053546+qinxianzhangyao@user.noreply.gitee.com>
Date: 星期五, 08 三月 2024 15:50:38 +0800
Subject: [PATCH] qxtj

---
 src/views/system/bill/index.vue |   22 ++++++++++++++++++++--
 1 files changed, 20 insertions(+), 2 deletions(-)

diff --git a/src/views/system/bill/index.vue b/src/views/system/bill/index.vue
index 1032a8c..a7c2974 100644
--- a/src/views/system/bill/index.vue
+++ b/src/views/system/bill/index.vue
@@ -24,7 +24,7 @@
           placeholder="璇疯緭鍏ヤ綋妫�鍙�"
           clearable
           @keyup.enter.native="handleQuery"
-          @blur="handleQuery"
+          @blur="hb"
         />
       </el-form-item>
       <el-form-item label="鐧昏鏃堕棿" prop="createTimeList">
@@ -170,6 +170,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
@@ -467,7 +468,9 @@
   hasReport,
   hasPrintCode,
   getOrderList,
+  getNewDateList
 } from "@/api/hosp/order";
+import moment from "moment";
 import ViewPdf from "@/components/ViewPdf";
 import { projectGetList, getOrder } from "@/api/system/tijian";
 import { SubmitCompany, getCompany, queryCompany } from "@/api/team/tuanti";
@@ -631,9 +634,10 @@
     };
   },
   created() {
-    this.getNowTime();
+    // this.getNowTime();
     this.getList();
     this.Company();
+    this.getdate();
   },
   mounted() {
     this.$nextTick(() => {
@@ -641,6 +645,14 @@
     });
   },
   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"),
+        ];
+      });
+    },
     // / 澶勭悊榛樿閫変腑褰撳墠鏃ユ湡
     getNowTime() {
       var curDate = new Date().getTime();
@@ -877,6 +889,12 @@
       };
       this.resetForm("form");
     },
+    hb(){
+      console.log(this.queryParams.tjNum);
+       if (this.queryParams.tjNum != undefined) {
+        this.handleQuery();
+      }
+    },
     /** 鎼滅储鎸夐挳鎿嶄綔 */
     handleQuery() {
       this.queryParams.pageNum = 1;

--
Gitblit v1.8.0