update 优化调拨入库、销售退库入库、其它入库、退料入库、立库入库、立库转库、盘点、无单据转库、上架/转货位页面的库位下拉框查询方法
This commit is contained in:
parent
9d9ff9c596
commit
df44ebc7c9
@ -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++) {
|
||||
|
@ -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) {
|
||||
|
@ -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++) {
|
||||
|
@ -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
|
||||
});
|
||||
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
|
||||
});
|
||||
|
||||
}
|
||||
} else {
|
||||
this.$showMessage(res.data.message)
|
||||
}
|
||||
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) {
|
||||
|
@ -322,30 +322,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
|
||||
});
|
||||
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
|
||||
});
|
||||
|
||||
}
|
||||
} else {
|
||||
this.$showMessage(res.data.message)
|
||||
}
|
||||
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)
|
||||
});
|
||||
|
||||
},
|
||||
|
||||
|
@ -348,30 +348,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_LocationAll.push({
|
||||
text: _Arr.DESCRIPTION,
|
||||
value: _Arr.STORAGENAME
|
||||
});
|
||||
}
|
||||
this.getitems_LocationAll('')
|
||||
} 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_LocationAll.push({
|
||||
text: _Arr.DESCRIPTION,
|
||||
value: _Arr.STORAGENAME
|
||||
});
|
||||
}
|
||||
this.focusBarCode = true
|
||||
this.focusShipRequest = false
|
||||
}).catch(err => {
|
||||
this.$showMessage(err)
|
||||
});
|
||||
} else {
|
||||
this.$showMessage("请先选择仓库")
|
||||
}
|
||||
this.getitems_LocationAll('')
|
||||
} else {
|
||||
this.$showMessage(res.data.message)
|
||||
}
|
||||
this.focusBarCode = true
|
||||
this.focusShipRequest = false
|
||||
}).catch(err => {
|
||||
this.$showMessage(err)
|
||||
});
|
||||
|
||||
},
|
||||
getitems_LocationAll(query){
|
||||
|
@ -414,9 +414,10 @@
|
||||
},
|
||||
getLocationName() {
|
||||
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++) {
|
||||
|
@ -652,9 +652,10 @@
|
||||
},
|
||||
getLocationName() {
|
||||
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++) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user