Browse Source

添加库存品入库明细

fix_bug_pro20231227
caoyizhong 1 year ago
parent
commit
1e50facb61
  1. 2
      src/api/distribution/distributionStockList.js
  2. 2
      src/views/distribution/inventory/distributionStockList.vue
  3. 21
      src/views/distribution/inventory/distributionStockListDetails.vue

2
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

2
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');
});
},

21
src/views/distribution/inventory/distributionStockListDetails.vue

@ -129,7 +129,7 @@
</div>
</el-tab-pane>
<el-tab-pane label="入库明细" name="enter">
<!-- <el-button type="danger" icon="el-icon-plus" @click="handleExport" plain> </el-button>-->
<el-button type="danger" icon="el-icon-plus" @click="handleExport" plain> </el-button>
<tablecmt
:columnList="columnListarrs.columnWarehousing"
:tableData="data2"
@ -221,7 +221,7 @@ import {
add,
update,
remove,
getListAllocation, stockExport
getListAllocation, stockExport, stockInfoExport
} from '@/api/distribution/distributionStockList';
import option from '@/option/distribution/distributionStockList';
import { mapGetters } from 'vuex';
@ -563,9 +563,17 @@ export default {
if(!!this.ids){
row.ids = this.ids;
}
stockExport(row).then( res =>{
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(

Loading…
Cancel
Save