|
|
|
@ -129,6 +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>--> |
|
|
|
|
<tablecmt |
|
|
|
|
:columnList="columnListarrs.columnWarehousing" |
|
|
|
|
:tableData="data2" |
|
|
|
@ -220,12 +221,13 @@ import {
|
|
|
|
|
add, |
|
|
|
|
update, |
|
|
|
|
remove, |
|
|
|
|
getListAllocation, |
|
|
|
|
getListAllocation, stockExport |
|
|
|
|
} from '@/api/distribution/distributionStockList'; |
|
|
|
|
import option from '@/option/distribution/distributionStockList'; |
|
|
|
|
import { mapGetters } from 'vuex'; |
|
|
|
|
import { getListStock } from '@/api/distribution/distributionStock'; |
|
|
|
|
import { getStockListInfoList } from '@/api/distribution/distributionStockListInfo'; |
|
|
|
|
import { downloadXls } from '@/utils/util'; |
|
|
|
|
|
|
|
|
|
export default { |
|
|
|
|
data() { |
|
|
|
@ -554,6 +556,20 @@ export default {
|
|
|
|
|
}, |
|
|
|
|
}, |
|
|
|
|
methods: { |
|
|
|
|
|
|
|
|
|
//导出 |
|
|
|
|
handleExport() { |
|
|
|
|
let row = { }; |
|
|
|
|
if(!!this.ids){ |
|
|
|
|
row.ids = this.ids; |
|
|
|
|
} |
|
|
|
|
stockExport(row).then( res =>{ |
|
|
|
|
console.log(res.data); |
|
|
|
|
downloadXls(res.data, '库存品数据.xlsx'); |
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
handleClick(tab, event) { |
|
|
|
|
console.log(tab, event); |
|
|
|
|
console.log(tab.props.name); |
|
|
|
|