From 26d77ebd44ea5e8d12bec849ebc938a338675dec Mon Sep 17 00:00:00 2001
From: su1124 <1583764726@qq.com>
Date: 星期四, 20 六月 2024 18:11:56 +0800
Subject: [PATCH] su

---
 src/views/system/bill/index.vue |   24 ++++++++++++++++++------
 1 files changed, 18 insertions(+), 6 deletions(-)

diff --git a/src/views/system/bill/index.vue b/src/views/system/bill/index.vue
index a7c2974..e59b977 100644
--- a/src/views/system/bill/index.vue
+++ b/src/views/system/bill/index.vue
@@ -73,7 +73,7 @@
         <el-button
           type="primary"
           icon="el-icon-search"
-          size="mini"
+          size="mini" style="margin-right:15px;"
           @click="handleQuery"
           >鎼滅储</el-button
         >
@@ -198,8 +198,8 @@
           :show-overflow-tooltip="true"
         >
           <template slot-scope="scope">
-            <span v-if="scope.row.tjType == '1'">涓汉</span>
-            <span v-if="scope.row.tjType == '2'">鍥㈤槦</span>
+            <span v-if="scope.row.tjType == '2'">涓汉</span>
+            <span v-if="scope.row.tjType == '1'">鍥㈤槦</span>
           </template>
         </el-table-column>
         <el-table-column
@@ -635,7 +635,7 @@
   },
   created() {
     // this.getNowTime();
-    this.getList();
+   
     this.Company();
     this.getdate();
   },
@@ -651,6 +651,7 @@
           moment(res.data).format("YYYY-MM-DD 00:00:00"),
           moment(res.data).format("YYYY-MM-DD 23:59:00"),
         ];
+        this.getList();
       });
     },
     // / 澶勭悊榛樿閫変腑褰撳墠鏃ユ湡
@@ -821,8 +822,18 @@
     },
     /** 鏌ヨ浣撴璁板綍鍒楄〃 */
     getList() {
-      this.queryParams.djbeginTime = this.startTime[0];
+      if(this.createTimeList){
+        this.queryParams.djbeginTime = this.createTimeList[0];
+      this.queryParams.djendTime = this.createTimeList[1];
+      }else if(this.createTimeList == null){
+        this.queryParams.djbeginTime = null;
+      this.queryParams.djendTime = null;
+      }else{
+        this.queryParams.djbeginTime = this.startTime[0];
       this.queryParams.djendTime = this.startTime[1];
+      }
+      
+     
       this.loading = true;
       getOrderList(this.queryParams).then((response) => {
         this.orderList = response.data.list;
@@ -890,7 +901,7 @@
       this.resetForm("form");
     },
     hb(){
-      console.log(this.queryParams.tjNum);
+      // console.log(this.queryParams.tjNum);
        if (this.queryParams.tjNum != undefined) {
         this.handleQuery();
       }
@@ -902,6 +913,7 @@
     },
     /** 閲嶇疆鎸夐挳鎿嶄綔 */
     resetQuery() {
+      this.createTimeList=[]
       this.resetForm("queryForm");
       this.handleQuery();
     },

--
Gitblit v1.8.0