解决商品选择的时候仓库选择的bug
This commit is contained in:
@@ -178,11 +178,6 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
async loadData(arg) {
|
async loadData(arg) {
|
||||||
if(this.rows) {
|
|
||||||
if(JSON.parse(this.rows).depotId){
|
|
||||||
this.queryParam.depotId = JSON.parse(this.rows).depotId-0
|
|
||||||
}
|
|
||||||
}
|
|
||||||
if (arg === 1) {
|
if (arg === 1) {
|
||||||
this.ipagination.current = 1;
|
this.ipagination.current = 1;
|
||||||
}
|
}
|
||||||
@@ -285,9 +280,17 @@
|
|||||||
getAction('/depot/findDepotByCurrentUser').then((res) => {
|
getAction('/depot/findDepotByCurrentUser').then((res) => {
|
||||||
if(res.code === 200){
|
if(res.code === 200){
|
||||||
that.depotList = res.data
|
that.depotList = res.data
|
||||||
|
this.initDepotSelect()
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
initDepotSelect() {
|
||||||
|
if(this.rows) {
|
||||||
|
if(JSON.parse(this.rows).depotId){
|
||||||
|
this.queryParam.depotId = JSON.parse(this.rows).depotId-0
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
onSelectChange(selectedRowKeys, selectionRows) {
|
onSelectChange(selectedRowKeys, selectionRows) {
|
||||||
this.selectedRowKeys = selectedRowKeys;
|
this.selectedRowKeys = selectedRowKeys;
|
||||||
this.selectionRows = selectionRows;
|
this.selectionRows = selectionRows;
|
||||||
|
|||||||
Reference in New Issue
Block a user