From d435de943589eb60a76ca0844efe2aa96cb68a3c Mon Sep 17 00:00:00 2001
From: kongdeqiang <123456>
Date: 星期二, 12 十一月 2024 09:46:52 +0800
Subject: [PATCH] feat: 统计日报表

---
 src/components/page/invoice/invoiceForm.vue |   16 ++++++++--------
 1 files changed, 8 insertions(+), 8 deletions(-)

diff --git a/src/components/page/invoice/invoiceForm.vue b/src/components/page/invoice/invoiceForm.vue
index f4191ee..26536fc 100644
--- a/src/components/page/invoice/invoiceForm.vue
+++ b/src/components/page/invoice/invoiceForm.vue
@@ -106,7 +106,7 @@
             },
             getByCarNo() {
                 this.invoiceData = []
-                let url = this.$systemconfig.basePath + '/orderrecord/getByCarNo';
+                let url = this.$systemconfig.basePath + '/ffzf/orderrecord/getByCarNo';
                 let params = {
                     carNo: this.$route.query.carNo,
                     phone: this.$route.query.phone,
@@ -159,11 +159,12 @@
                 this.checkAll = checkedCount === ids.length;
             },
             seeInvoice() {  //鏌ョ湅鍙戠エ
+                console.log(this.filedId.length,'this.filedId====')
                 if(this.filedId.length == 0){
                     alert("璇疯嚦灏戦�夋嫨涓�椤�")
                 }else {
                     if(this.filedId.length == 1) {
-                        let url = this.$systemconfig.basePath + '/fileInfo/download/downloadPng';
+                        let url = this.$systemconfig.basePath + '/ffzf/fileInfo/download/downloadPng';
                         this.filedId.forEach(item => {
                             let param = {
                                     fileId : item
@@ -172,13 +173,12 @@
                                 console.log(res,'res====')
                                 let date = new Date()
                                 let time = this.$moment(date).format('YYYY-MM-DD HH:mm:ss') + '-' + item
-                                console.log(time,'time===========')
                                 let blob = new Blob([res], {type: 'image/png'});
                                 let downloadElement = document.createElement("a");
                                 downloadElement.style.display = "none";
                                 let href = window.URL.createObjectURL(blob); //鍒涘缓涓嬭浇鐨勯摼鎺�
                                 downloadElement.href = href;
-                                downloadElement.download = time
+                                downloadElement.download = '鍙戠エ涓嬭浇.png'
                                 document.body.appendChild(downloadElement);
                                 downloadElement.click(); //鐐瑰嚮涓嬭浇
                                 document.body.removeChild(downloadElement); //涓嬭浇瀹屾垚绉婚櫎鍏冪礌
@@ -187,19 +187,19 @@
                         })
                     }else if(this.filedId.length > 1) {
                         let result =  this.filedId.join(",")
-                        console.log(result,'result---------')
-                        let url = this.$systemconfig.basePath + '/fileInfo/download/downloadZips';
+                        let url = this.$systemconfig.basePath + '/ffzf/fileInfo/download/downloadZips';
                         let param = {
                             fileIds : result
                         }
                         this.$byutil.exportData(this,url,param,res => {
-                            console.log(res,'res=========')
+                            let date = new Date()
+                            let time = this.$moment(date).format('YYYY-MM-DD HH:mm:ss')
                             let blob = new Blob([res], {type: 'application/zip'});
                             let downloadElement = document.createElement("a");
                             downloadElement.style.display = "none";
                             let href = window.URL.createObjectURL(blob); //鍒涘缓涓嬭浇鐨勯摼鎺�
                             downloadElement.href = href;
-                            downloadElement.download = '鍙戠エ涓嬭浇.zip'
+                            downloadElement.download = time
                             document.body.appendChild(downloadElement);
                             downloadElement.click(); //鐐瑰嚮涓嬭浇
                             document.body.removeChild(downloadElement); //涓嬭浇瀹屾垚绉婚櫎鍏冪礌

--
Gitblit v1.9.1