代码更新
This commit is contained in:
@@ -178,9 +178,11 @@ export default {
|
|||||||
const data = {
|
const data = {
|
||||||
'stor_id': this.crud.query.stor_id,
|
'stor_id': this.crud.query.stor_id,
|
||||||
'bill_type': this.crud.query.bill_type,
|
'bill_type': this.crud.query.bill_type,
|
||||||
'with': this.crud.query.with,
|
'with': this.crud.query.with
|
||||||
'begin_time': this.crud.query.createTime[0],
|
}
|
||||||
'end_time': this.crud.query.createTime[1]
|
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 => {
|
download('/api/in/InQuery/download', data).then(result => {
|
||||||
downloadFile(result, '成品入库查询', 'xlsx')
|
downloadFile(result, '成品入库查询', 'xlsx')
|
||||||
|
|||||||
@@ -188,9 +188,11 @@ export default {
|
|||||||
'stor_id': this.crud.query.stor_id,
|
'stor_id': this.crud.query.stor_id,
|
||||||
'bill_type': this.crud.query.bill_type,
|
'bill_type': this.crud.query.bill_type,
|
||||||
'with': this.crud.query.with,
|
'with': this.crud.query.with,
|
||||||
'customer_name': this.crud.query.customer_name,
|
'customer_name': this.crud.query.customer_name
|
||||||
'begin_time': this.crud.query.createTime[0],
|
}
|
||||||
'end_time': this.crud.query.createTime[1]
|
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 => {
|
download('/api/out/OutQuery/download', data).then(result => {
|
||||||
downloadFile(result, '成品出库查询', 'xlsx')
|
downloadFile(result, '成品出库查询', 'xlsx')
|
||||||
|
|||||||
Reference in New Issue
Block a user