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')