|
|
@ -129,7 +129,7 @@ |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</el-tab-pane> |
|
|
|
</el-tab-pane> |
|
|
|
<el-tab-pane label="入库明细" name="enter"> |
|
|
|
<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 |
|
|
|
<tablecmt |
|
|
|
:columnList="columnListarrs.columnWarehousing" |
|
|
|
:columnList="columnListarrs.columnWarehousing" |
|
|
|
:tableData="data2" |
|
|
|
:tableData="data2" |
|
|
@ -221,7 +221,7 @@ import { |
|
|
|
add, |
|
|
|
add, |
|
|
|
update, |
|
|
|
update, |
|
|
|
remove, |
|
|
|
remove, |
|
|
|
getListAllocation, stockExport |
|
|
|
getListAllocation, stockExport, stockInfoExport |
|
|
|
} from '@/api/distribution/distributionStockList'; |
|
|
|
} from '@/api/distribution/distributionStockList'; |
|
|
|
import option from '@/option/distribution/distributionStockList'; |
|
|
|
import option from '@/option/distribution/distributionStockList'; |
|
|
|
import { mapGetters } from 'vuex'; |
|
|
|
import { mapGetters } from 'vuex'; |
|
|
@ -563,9 +563,17 @@ export default { |
|
|
|
if(!!this.ids){ |
|
|
|
if(!!this.ids){ |
|
|
|
row.ids = 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); |
|
|
|
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.serviceType = this.queryOwn.serviceType; |
|
|
|
this.query.materialId = this.queryOwn.materialId; |
|
|
|
this.query.materialId = this.queryOwn.materialId; |
|
|
|
this.query.warehouseId = this.queryOwn.warehouseId; |
|
|
|
this.query.warehouseId = this.queryOwn.warehouseId; |
|
|
|
this.query.storeId = |
|
|
|
this.query.storeId = !!this.queryOwn.storeId && this.queryOwn.storeId != '-1' ? this.queryOwn.storeId : null; |
|
|
|
!!this.queryOwn.storeId && this.queryOwn.storeId != '-1' ? this.queryOwn.storeId : null; |
|
|
|
if (!!this.queryOwn.pid) { |
|
|
|
if (this.queryOwn.pid != '-1') { |
|
|
|
|
|
|
|
this.query.pid = this.queryOwn.pid; |
|
|
|
this.query.pid = this.queryOwn.pid; |
|
|
|
} |
|
|
|
} |
|
|
|
let b = await getStockListInfoList( |
|
|
|
let b = await getStockListInfoList( |
|
|
|