From 93e41279eb16179237e1d8abd6a78fc3dcb7ae94 Mon Sep 17 00:00:00 2001 From: liuxy Date: Thu, 13 Apr 2023 10:46:03 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BB=A3=E7=A0=81=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lms/nladmin-ui/src/views/wms/stat/inbillquery/index.vue | 8 +++++--- lms/nladmin-ui/src/views/wms/stat/outbillquery/index.vue | 8 +++++--- 2 files changed, 10 insertions(+), 6 deletions(-) diff --git a/lms/nladmin-ui/src/views/wms/stat/inbillquery/index.vue b/lms/nladmin-ui/src/views/wms/stat/inbillquery/index.vue index 8512e82a8..c0ef7cf6a 100644 --- a/lms/nladmin-ui/src/views/wms/stat/inbillquery/index.vue +++ b/lms/nladmin-ui/src/views/wms/stat/inbillquery/index.vue @@ -178,9 +178,11 @@ export default { const data = { 'stor_id': this.crud.query.stor_id, 'bill_type': this.crud.query.bill_type, - 'with': this.crud.query.with, - 'begin_time': this.crud.query.createTime[0], - 'end_time': this.crud.query.createTime[1] + 'with': this.crud.query.with + } + if (this.crud.query.createTime !== undefined) { + data.begin_time = this.crud.query.createTime[0] + data.end_time = this.crud.query.createTime[1] } download('/api/in/InQuery/download', data).then(result => { downloadFile(result, '成品入库查询', 'xlsx') diff --git a/lms/nladmin-ui/src/views/wms/stat/outbillquery/index.vue b/lms/nladmin-ui/src/views/wms/stat/outbillquery/index.vue index 7bbb354b5..bd180d31c 100644 --- a/lms/nladmin-ui/src/views/wms/stat/outbillquery/index.vue +++ b/lms/nladmin-ui/src/views/wms/stat/outbillquery/index.vue @@ -188,9 +188,11 @@ export default { 'stor_id': this.crud.query.stor_id, 'bill_type': this.crud.query.bill_type, 'with': this.crud.query.with, - 'customer_name': this.crud.query.customer_name, - 'begin_time': this.crud.query.createTime[0], - 'end_time': this.crud.query.createTime[1] + 'customer_name': this.crud.query.customer_name + } + if (this.crud.query.createTime !== undefined) { + data.begin_time = this.crud.query.createTime[0] + data.end_time = this.crud.query.createTime[1] } download('/api/out/OutQuery/download', data).then(result => { downloadFile(result, '成品出库查询', 'xlsx')