|
@@ -159,7 +159,8 @@ export default {
|
|
|
}
|
|
|
},
|
|
|
activated() {
|
|
|
- this.getList()
|
|
|
+ this.selectWarehouse()
|
|
|
+
|
|
|
},
|
|
|
methods: {
|
|
|
print(row) {
|
|
@@ -223,7 +224,7 @@ export default {
|
|
|
console.log(`当前页: ${val}`)
|
|
|
this.getList()
|
|
|
},
|
|
|
- getList() {
|
|
|
+ selectWarehouse(){
|
|
|
selectWarehouseSelf({
|
|
|
compId: sessionStorage.getItem('ws-pf_compId'),
|
|
|
personCharge: sessionStorage.getItem('ws-pf_staffName'),
|
|
@@ -241,8 +242,12 @@ export default {
|
|
|
this.warehouseName = this.warehouseList[0].value
|
|
|
this.warehouseId = this.warehouseList[0].warehouseId
|
|
|
this.purchasePriceList = this.warehouseList[0].warehouseList
|
|
|
+ this.getList()
|
|
|
+
|
|
|
})
|
|
|
- getweighingList({
|
|
|
+ },
|
|
|
+ getList() {
|
|
|
+ getweighingList({
|
|
|
compId: sessionStorage.getItem('ws-pf_compId'),
|
|
|
currentPage: this.currentPage,
|
|
|
pageSize: this.pageSize,
|
|
@@ -251,16 +256,13 @@ export default {
|
|
|
})
|
|
|
.toPromise()
|
|
|
.then((response) => {
|
|
|
- // this.$notify.success({
|
|
|
- // title: '成功',
|
|
|
- // message: '删除成功',
|
|
|
- // })
|
|
|
this.weighingList = response.records
|
|
|
this.deptBudgetTotal = response.total
|
|
|
})
|
|
|
.catch((response) => {
|
|
|
// EventBus.$emit('error', this.$t('showMessage.asteriskRequired'))
|
|
|
})
|
|
|
+
|
|
|
},
|
|
|
},
|
|
|
}
|