diff --git a/pages/checkplan/ErpLocationMoveNoInvoice/ErpLocationMoveNoInvoice.vue b/pages/checkplan/ErpLocationMoveNoInvoice/ErpLocationMoveNoInvoice.vue index b8b083d..79ed2f5 100644 --- a/pages/checkplan/ErpLocationMoveNoInvoice/ErpLocationMoveNoInvoice.vue +++ b/pages/checkplan/ErpLocationMoveNoInvoice/ErpLocationMoveNoInvoice.vue @@ -372,9 +372,10 @@ getLocationName() { this.items_Location = [] this.BoxListInfo = []; + let ERPFACTORY = JSON.parse(uni.getStorageSync('orgObject')).ERPFACTORY; if (this.ERPLOCATION != '') { this.$MyRequest('/api/storage/getLocationNameForERPLocation', { - ERPLocation: this.ERPLOCATION + ERPLocation: ERPFACTORY }).then(res => { if (res.data.success) { for (let i = 0; i < res.data.resultObj.length; i++) { diff --git a/pages/checkplan/InventPage/index.vue b/pages/checkplan/InventPage/index.vue index 3f05679..bd08e50 100644 --- a/pages/checkplan/InventPage/index.vue +++ b/pages/checkplan/InventPage/index.vue @@ -172,9 +172,10 @@ }, getLocationName() { this.items_Location = [] + let ERPFACTORY = JSON.parse(uni.getStorageSync('orgObject')).ERPFACTORY; if (this.ERPLOCATION1 != '') { this.$MyRequest('/api/storage/getLocationNameForERPLocation', { - ERPLocation: this.ERPLOCATION1, + ERPLocation: ERPFACTORY, }).then(res => { console.log(res.data.resultObj) if (res.data.success) { diff --git a/pages/checkplan/ModifyLocationName/ModifyLocationName.vue b/pages/checkplan/ModifyLocationName/ModifyLocationName.vue index 66a6bc9..32e20df 100644 --- a/pages/checkplan/ModifyLocationName/ModifyLocationName.vue +++ b/pages/checkplan/ModifyLocationName/ModifyLocationName.vue @@ -362,9 +362,10 @@ }, getLocationName2() { this.items_Location = [] + let ERPFACTORY = JSON.parse(uni.getStorageSync('orgObject')).ERPFACTORY; if (this.ERPLOCATION != '') { this.$MyRequest('/api/storage/getLocationNameForERPLocation', { - ERPLocation: this.ERPLOCATION + ERPLocation: ERPFACTORY }).then(res => { if (res.data.success) { for (let i = 0; i < res.data.resultObj.length; i++) { diff --git a/pages/material/features/OtherStockIn/index.vue b/pages/material/features/OtherStockIn/index.vue index 7a09688..2232d9b 100644 --- a/pages/material/features/OtherStockIn/index.vue +++ b/pages/material/features/OtherStockIn/index.vue @@ -295,30 +295,27 @@ }, getLocationName() { this.items_Location = [] - if (this.ERPLOCATION != '') { - this.$MyRequest('/api/storage/getLocationNameForERPLocation', { - ERPLocation: this.ERPLOCATION - }).then(res => { - if (res.data.success) { - for (let i = 0; i < res.data.resultObj.length; i++) { - var _Arr = res.data.resultObj[i]; - this.items_Location.push({ - text: _Arr.DESCRIPTION, - value: _Arr.STORAGENAME - }); - - } - } else { - this.$showMessage(res.data.message) + let ERPFACTORY = JSON.parse(uni.getStorageSync('orgObject')).ERPFACTORY; + this.$MyRequest('/api/storage/getLocationNameForERPLocation', { + ERPLocation: ERPFACTORY + }).then(res => { + if (res.data.success) { + for (let i = 0; i < res.data.resultObj.length; i++) { + var _Arr = res.data.resultObj[i]; + this.items_Location.push({ + text: _Arr.DESCRIPTION, + value: _Arr.STORAGENAME + }); + } - this.focusBarCode = true - this.focusShipRequest = false - }).catch(err => { - this.$showMessage(err) - }); - } else { - this.$showMessage("请先选择仓库") - } + } else { + this.$showMessage(res.data.message) + } + this.focusBarCode = true + this.focusShipRequest = false + }).catch(err => { + this.$showMessage(err) + }); }, selConfirm(e) { diff --git a/pages/material/features/ProduceReturnPage/index.vue b/pages/material/features/ProduceReturnPage/index.vue index 234cab1..d2e9725 100644 --- a/pages/material/features/ProduceReturnPage/index.vue +++ b/pages/material/features/ProduceReturnPage/index.vue @@ -22,7 +22,6 @@ -