diff --git a/src/api/distribution/distributionStockList.js b/src/api/distribution/distributionStockList.js index aa77f2f5..d9621e5b 100644 --- a/src/api/distribution/distributionStockList.js +++ b/src/api/distribution/distributionStockList.js @@ -145,7 +145,7 @@ export const stockExport = (row) => { */ export const stockInfoExport = (row) => { return request({ - url: '/api/logpm-distribution//distributionStockListInfo/export-distributionStockListInfo', + url: '/api/logpm-distribution/distributionStockListInfo/export-distributionStockListInfo', method: 'get', params: { ...row diff --git a/src/views/distribution/inventory/distributionStockList.vue b/src/views/distribution/inventory/distributionStockList.vue index 8ce4484f..06d86b64 100644 --- a/src/views/distribution/inventory/distributionStockList.vue +++ b/src/views/distribution/inventory/distributionStockList.vue @@ -935,7 +935,7 @@ export default { stockExport(row).then( res =>{ console.log(res.data); - downloadXls(res.data, '库存品数据.xlsx'); + downloadXls(res.data, '全部库存品数据.xlsx'); }); }, diff --git a/src/views/distribution/inventory/distributionStockListDetails.vue b/src/views/distribution/inventory/distributionStockListDetails.vue index 66e62e01..dd970a5f 100644 --- a/src/views/distribution/inventory/distributionStockListDetails.vue +++ b/src/views/distribution/inventory/distributionStockListDetails.vue @@ -129,7 +129,7 @@ - + 导 出 { + row.marketId = this.queryOwn.marketId; + row.serviceType = this.queryOwn.serviceType; + row.materialId = this.queryOwn.materialId; + row.warehouseId = this.queryOwn.warehouseId; + row.storeId = !!this.queryOwn.storeId && this.queryOwn.storeId != '-1' ? this.queryOwn.storeId : null; + if (!!this.queryOwn.pid) { + row.pid = this.queryOwn.pid; + } + stockInfoExport(row).then( res =>{ console.log(res.data); - downloadXls(res.data, '库存品数据.xlsx'); + downloadXls(res.data, `${this.$route.query.name}库存品入库明细数据.xlsx`); }); }, @@ -772,9 +780,8 @@ export default { this.query.serviceType = this.queryOwn.serviceType; this.query.materialId = this.queryOwn.materialId; this.query.warehouseId = this.queryOwn.warehouseId; - this.query.storeId = - !!this.queryOwn.storeId && this.queryOwn.storeId != '-1' ? this.queryOwn.storeId : null; - if (this.queryOwn.pid != '-1') { + this.query.storeId = !!this.queryOwn.storeId && this.queryOwn.storeId != '-1' ? this.queryOwn.storeId : null; + if (!!this.queryOwn.pid) { this.query.pid = this.queryOwn.pid; } let b = await getStockListInfoList(