|
|
@ -129,7 +129,9 @@ |
|
|
|
</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 +223,9 @@ import { |
|
|
|
add, |
|
|
|
add, |
|
|
|
update, |
|
|
|
update, |
|
|
|
remove, |
|
|
|
remove, |
|
|
|
getListAllocation, stockExport, stockInfoExport |
|
|
|
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'; |
|
|
@ -475,7 +479,8 @@ export default { |
|
|
|
fixed: false, |
|
|
|
fixed: false, |
|
|
|
sortable: true, |
|
|
|
sortable: true, |
|
|
|
head: false, |
|
|
|
head: false, |
|
|
|
}, { |
|
|
|
}, |
|
|
|
|
|
|
|
{ |
|
|
|
prop: 'stockQuantity', |
|
|
|
prop: 'stockQuantity', |
|
|
|
label: '数量', |
|
|
|
label: '数量', |
|
|
|
type: 2, |
|
|
|
type: 2, |
|
|
@ -566,28 +571,30 @@ export default { |
|
|
|
}, |
|
|
|
}, |
|
|
|
}, |
|
|
|
}, |
|
|
|
methods: { |
|
|
|
methods: { |
|
|
|
|
|
|
|
|
|
|
|
//导出 |
|
|
|
//导出 |
|
|
|
handleExport() { |
|
|
|
handleExport() { |
|
|
|
let row = { }; |
|
|
|
let row = {}; |
|
|
|
if(!!this.ids){ |
|
|
|
if (!!this.ids) { |
|
|
|
row.ids = this.ids; |
|
|
|
row.ids = this.ids; |
|
|
|
} |
|
|
|
} |
|
|
|
row.marketId = this.queryOwn.marketId; |
|
|
|
row.marketId = this.queryOwn.marketId; |
|
|
|
row.serviceType = this.queryOwn.serviceType; |
|
|
|
row.serviceType = this.queryOwn.serviceType; |
|
|
|
row.materialId = this.queryOwn.materialId; |
|
|
|
row.materialId = this.queryOwn.materialId; |
|
|
|
row.warehouseId = this.queryOwn.warehouseId; |
|
|
|
row.warehouseId = this.queryOwn.warehouseId; |
|
|
|
row.storeId = !!this.queryOwn.storeId && this.queryOwn.storeId != '-1' ? this.queryOwn.storeId : null; |
|
|
|
row.storeId = |
|
|
|
|
|
|
|
!!this.queryOwn.storeId && this.queryOwn.storeId != '-1' ? this.queryOwn.storeId : null; |
|
|
|
if (!!this.queryOwn.pid) { |
|
|
|
if (!!this.queryOwn.pid) { |
|
|
|
row.pid = this.queryOwn.pid; |
|
|
|
row.pid = this.queryOwn.pid; |
|
|
|
} |
|
|
|
} |
|
|
|
stockInfoExport(row).then( res =>{ |
|
|
|
stockInfoExport(row).then(res => { |
|
|
|
console.log(res.data); |
|
|
|
console.log(res.data); |
|
|
|
downloadXls(res.data, `${this.$route.query.name}库存品入库明细数据.xlsx`); |
|
|
|
downloadXls(res.data, `${this.$route.query.name}库存品入库明细数据.xlsx`); |
|
|
|
}); |
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
inputsc() {}, |
|
|
|
|
|
|
|
timesc() {}, |
|
|
|
|
|
|
|
btnsc() {}, |
|
|
|
|
|
|
|
selectsc() {}, |
|
|
|
handleClick(tab, event) { |
|
|
|
handleClick(tab, event) { |
|
|
|
console.log(tab, event); |
|
|
|
console.log(tab, event); |
|
|
|
console.log(tab.props.name); |
|
|
|
console.log(tab.props.name); |
|
|
@ -790,7 +797,9 @@ 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.queryOwn.storeId && this.queryOwn.storeId != '-1' ? this.queryOwn.storeId : null; |
|
|
|
this.query.incomingBatch = this.$route.query.incomingBatch; |
|
|
|
|
|
|
|
this.query.storeId = |
|
|
|
|
|
|
|
!!this.queryOwn.storeId && this.queryOwn.storeId != '-1' ? this.queryOwn.storeId : null; |
|
|
|
if (!!this.queryOwn.pid) { |
|
|
|
if (!!this.queryOwn.pid) { |
|
|
|
this.query.pid = this.queryOwn.pid; |
|
|
|
this.query.pid = this.queryOwn.pid; |
|
|
|
} |
|
|
|
} |
|
|
|