|
@@ -143,7 +143,7 @@ export default {
|
|
this.joinCode = res.data.joinCode === "CODE"
|
|
this.joinCode = res.data.joinCode === "CODE"
|
|
this.formData.storageId = res.data.storageId
|
|
this.formData.storageId = res.data.storageId
|
|
this.formData.storageName = res.data.storageName
|
|
this.formData.storageName = res.data.storageName
|
|
- this.getWarehouseList()
|
|
|
|
|
|
+ this.getWarehouseList(1)
|
|
this.formData.items = res.data.items.map(item => ({
|
|
this.formData.items = res.data.items.map(item => ({
|
|
brandId: item.brandId,
|
|
brandId: item.brandId,
|
|
brandName: item.brandName,
|
|
brandName: item.brandName,
|
|
@@ -298,13 +298,13 @@ export default {
|
|
})
|
|
})
|
|
}
|
|
}
|
|
},
|
|
},
|
|
- getWarehouseList(){
|
|
|
|
|
|
+ getWarehouseList(type){
|
|
storageListPageV2({
|
|
storageListPageV2({
|
|
pageNum: 1,
|
|
pageNum: 1,
|
|
pageSize: -1,
|
|
pageSize: -1,
|
|
params: [{param: "a.type", compare: "like", value: "商品"},{param: "a.status", compare: "=", value: "true"}]
|
|
params: [{param: "a.type", compare: "like", value: "商品"},{param: "a.status", compare: "=", value: "true"}]
|
|
}).then(res => {
|
|
}).then(res => {
|
|
- if(JSON.parse(localStorage.getItem('greemall_user')).joinCode != "NO" && !this.formData.storageId){
|
|
|
|
|
|
+ if(JSON.parse(localStorage.getItem('greemall_user')).joinCode != "NO" && !this.formData.storageId && type){
|
|
this.formData.storageId = res.data.records[0].storageId
|
|
this.formData.storageId = res.data.records[0].storageId
|
|
this.formData.storageName = res.data.records[0].storageName
|
|
this.formData.storageName = res.data.records[0].storageName
|
|
}
|
|
}
|