update 取消库位下拉框,选择时的仓库必填校验
This commit is contained in:
parent
a15b37645b
commit
1f317a2a9b
@ -287,6 +287,7 @@
|
|||||||
})
|
})
|
||||||
this.getERPLocation();
|
this.getERPLocation();
|
||||||
this.getTimeData();
|
this.getTimeData();
|
||||||
|
this.getLocationName();
|
||||||
// let Things = 20
|
// let Things = 20
|
||||||
// for (var i = 0; i < Things; i++) {
|
// for (var i = 0; i < Things; i++) {
|
||||||
// this.BoxListInfo.push({aa:"1"})
|
// this.BoxListInfo.push({aa:"1"})
|
||||||
@ -336,8 +337,8 @@
|
|||||||
},
|
},
|
||||||
change(e) {
|
change(e) {
|
||||||
this.ERPLOCATION = e.value;
|
this.ERPLOCATION = e.value;
|
||||||
this.LOCATIONNAME = ""
|
//this.LOCATIONNAME = ""
|
||||||
this.getLocationName();
|
//this.getLocationName();
|
||||||
},
|
},
|
||||||
//获取焦点的公共方法
|
//获取焦点的公共方法
|
||||||
getfocus(nextfocus) {
|
getfocus(nextfocus) {
|
||||||
@ -373,30 +374,26 @@
|
|||||||
this.items_Location = []
|
this.items_Location = []
|
||||||
this.BoxListInfo = [];
|
this.BoxListInfo = [];
|
||||||
let ERPFACTORY = JSON.parse(uni.getStorageSync('orgObject')).ERPFACTORY;
|
let ERPFACTORY = JSON.parse(uni.getStorageSync('orgObject')).ERPFACTORY;
|
||||||
if (this.ERPLOCATION != '') {
|
this.$MyRequest('/api/storage/getLocationNameForERPLocation', {
|
||||||
this.$MyRequest('/api/storage/getLocationNameForERPLocation', {
|
ERPLocation: ERPFACTORY
|
||||||
ERPLocation: ERPFACTORY
|
}).then(res => {
|
||||||
}).then(res => {
|
if (res.data.success) {
|
||||||
if (res.data.success) {
|
for (let i = 0; i < res.data.resultObj.length; i++) {
|
||||||
for (let i = 0; i < res.data.resultObj.length; i++) {
|
var _Arr = res.data.resultObj[i];
|
||||||
var _Arr = res.data.resultObj[i];
|
this.items_LocationAll.push({
|
||||||
this.items_LocationAll.push({
|
text: _Arr.DESCRIPTION,
|
||||||
text: _Arr.DESCRIPTION,
|
value: _Arr.STORAGENAME
|
||||||
value: _Arr.STORAGENAME
|
});
|
||||||
});
|
this.getitems_LocationAll('');
|
||||||
this.getitems_LocationAll('');
|
|
||||||
}
|
|
||||||
} else {
|
|
||||||
this.$showMessage(res.data.message)
|
|
||||||
}
|
}
|
||||||
this.focusBarCode = true
|
} else {
|
||||||
this.focusShipRequest = false
|
this.$showMessage(res.data.message)
|
||||||
}).catch(err => {
|
}
|
||||||
this.$showMessage(err)
|
this.focusBarCode = true
|
||||||
});
|
this.focusShipRequest = false
|
||||||
} else {
|
}).catch(err => {
|
||||||
this.$showMessage("请先选择仓库")
|
this.$showMessage(err)
|
||||||
}
|
});
|
||||||
|
|
||||||
},
|
},
|
||||||
getitems_LocationAll(query){
|
getitems_LocationAll(query){
|
||||||
@ -404,11 +401,12 @@
|
|||||||
var arr = this.items_LocationAll.filter(item => {
|
var arr = this.items_LocationAll.filter(item => {
|
||||||
return (item.text.includes(query)) || (item.value.includes(query))
|
return (item.text.includes(query)) || (item.value.includes(query))
|
||||||
})
|
})
|
||||||
if(arr.length > 50){
|
this.items_Location = arr.slice(0, arr.length)
|
||||||
|
/* if(arr.length > 50){
|
||||||
this.items_Location = arr.slice(0,50)
|
this.items_Location = arr.slice(0,50)
|
||||||
} else {
|
} else {
|
||||||
this.items_Location = arr
|
this.items_Location = arr
|
||||||
}
|
} */
|
||||||
console.log(this.items_Location)
|
console.log(this.items_Location)
|
||||||
},
|
},
|
||||||
async ScanBarCode() {
|
async ScanBarCode() {
|
||||||
|
@ -133,7 +133,7 @@
|
|||||||
},
|
},
|
||||||
mounted() {
|
mounted() {
|
||||||
this.getERPLocation();
|
this.getERPLocation();
|
||||||
|
this.getLocationName();
|
||||||
// let Things = 20
|
// let Things = 20
|
||||||
// for (var i = 0; i < Things; i++) {
|
// for (var i = 0; i < Things; i++) {
|
||||||
// this.BoxListInfo.push({aa:"1"})
|
// this.BoxListInfo.push({aa:"1"})
|
||||||
@ -173,49 +173,46 @@
|
|||||||
getLocationName() {
|
getLocationName() {
|
||||||
this.items_Location = []
|
this.items_Location = []
|
||||||
let ERPFACTORY = JSON.parse(uni.getStorageSync('orgObject')).ERPFACTORY;
|
let ERPFACTORY = JSON.parse(uni.getStorageSync('orgObject')).ERPFACTORY;
|
||||||
if (this.ERPLOCATION1 != '') {
|
this.$MyRequest('/api/storage/getLocationNameForERPLocation', {
|
||||||
this.$MyRequest('/api/storage/getLocationNameForERPLocation', {
|
ERPLocation: ERPFACTORY,
|
||||||
ERPLocation: ERPFACTORY,
|
}).then(res => {
|
||||||
}).then(res => {
|
console.log(res.data.resultObj)
|
||||||
console.log(res.data.resultObj)
|
if (res.data.success) {
|
||||||
if (res.data.success) {
|
for (let i = 0; i < res.data.resultObj.length; i++) {
|
||||||
for (let i = 0; i < res.data.resultObj.length; i++) {
|
var _Arr = res.data.resultObj[i];
|
||||||
var _Arr = res.data.resultObj[i];
|
this.items_LocationAll.push({
|
||||||
this.items_LocationAll.push({
|
text: _Arr.DESCRIPTION,
|
||||||
text: _Arr.DESCRIPTION,
|
value: _Arr.STORAGENAME
|
||||||
value: _Arr.STORAGENAME
|
});
|
||||||
});
|
|
||||||
|
|
||||||
}
|
|
||||||
// this.items_Location('');
|
|
||||||
this.getitems_LocationAll('');
|
|
||||||
} else {
|
|
||||||
this.$showMessage(res.data.message)
|
|
||||||
}
|
}
|
||||||
this.focusBarCode = true
|
// this.items_Location('');
|
||||||
this.focusShipRequest = false
|
this.getitems_LocationAll('');
|
||||||
}).catch(err => {
|
} else {
|
||||||
this.$showMessage(err)
|
this.$showMessage(res.data.message)
|
||||||
});
|
}
|
||||||
} else {
|
this.focusBarCode = true
|
||||||
this.$showMessage("请先选择仓库")
|
this.focusShipRequest = false
|
||||||
}
|
}).catch(err => {
|
||||||
|
this.$showMessage(err)
|
||||||
|
});
|
||||||
|
|
||||||
},
|
},
|
||||||
change(e) {
|
change(e) {
|
||||||
this.LOCATIONNAME1 = ""
|
//this.LOCATIONNAME1 = ""
|
||||||
this.getLocationName();
|
//this.getLocationName();
|
||||||
},
|
},
|
||||||
getitems_LocationAll(query){
|
getitems_LocationAll(query){
|
||||||
console.log(query + "&&&&&&&&&&&&&&")
|
console.log(query + "&&&&&&&&&&&&&&")
|
||||||
var arr = this.items_LocationAll.filter(item => {
|
var arr = this.items_LocationAll.filter(item => {
|
||||||
return (item.text.includes(query)) || (item.value.includes(query))
|
return (item.text.includes(query)) || (item.value.includes(query))
|
||||||
})
|
})
|
||||||
if(arr.length > 50){
|
this.items_Location = arr.slice(0, arr.length)
|
||||||
|
/* if(arr.length > 50){
|
||||||
this.items_Location = arr.slice(0,50)
|
this.items_Location = arr.slice(0,50)
|
||||||
} else {
|
} else {
|
||||||
this.items_Location = arr
|
this.items_Location = arr
|
||||||
}
|
} */
|
||||||
console.log(this.items_Location)
|
console.log(this.items_Location)
|
||||||
},
|
},
|
||||||
getERPLocation() {
|
getERPLocation() {
|
||||||
|
@ -228,6 +228,7 @@
|
|||||||
this.orgObject = JSON.parse(uni.getStorageSync('orgObject'))
|
this.orgObject = JSON.parse(uni.getStorageSync('orgObject'))
|
||||||
this.getTimeData();
|
this.getTimeData();
|
||||||
this.getERPLocation();
|
this.getERPLocation();
|
||||||
|
this.getLocationName2()
|
||||||
},
|
},
|
||||||
|
|
||||||
methods: {
|
methods: {
|
||||||
@ -311,7 +312,7 @@
|
|||||||
},
|
},
|
||||||
change(e) {
|
change(e) {
|
||||||
this.ERPLOCATION = e.value;
|
this.ERPLOCATION = e.value;
|
||||||
this.LOCATIONNAME = ""
|
//this.LOCATIONNAME = ""
|
||||||
this.bqts = 0
|
this.bqts = 0
|
||||||
this.bqkcs = 0
|
this.bqkcs = 0
|
||||||
this.Huowei = e.Huowei
|
this.Huowei = e.Huowei
|
||||||
@ -324,7 +325,7 @@
|
|||||||
// this.focusKw = true
|
// this.focusKw = true
|
||||||
// }
|
// }
|
||||||
this.Locatiaon_state = false
|
this.Locatiaon_state = false
|
||||||
this.getLocationName2();
|
//this.getLocationName2();
|
||||||
|
|
||||||
},
|
},
|
||||||
changeLocation() {
|
changeLocation() {
|
||||||
@ -363,32 +364,28 @@
|
|||||||
getLocationName2() {
|
getLocationName2() {
|
||||||
this.items_Location = []
|
this.items_Location = []
|
||||||
let ERPFACTORY = JSON.parse(uni.getStorageSync('orgObject')).ERPFACTORY;
|
let ERPFACTORY = JSON.parse(uni.getStorageSync('orgObject')).ERPFACTORY;
|
||||||
if (this.ERPLOCATION != '') {
|
this.$MyRequest('/api/storage/getLocationNameForERPLocation', {
|
||||||
this.$MyRequest('/api/storage/getLocationNameForERPLocation', {
|
ERPLocation: ERPFACTORY
|
||||||
ERPLocation: ERPFACTORY
|
}).then(res => {
|
||||||
}).then(res => {
|
if (res.data.success) {
|
||||||
if (res.data.success) {
|
for (let i = 0; i < res.data.resultObj.length; i++) {
|
||||||
for (let i = 0; i < res.data.resultObj.length; i++) {
|
var _Arr = res.data.resultObj[i];
|
||||||
var _Arr = res.data.resultObj[i];
|
this.items_Location.push({
|
||||||
this.items_Location.push({
|
text: _Arr.DESCRIPTION,
|
||||||
text: _Arr.DESCRIPTION,
|
value: _Arr.STORAGENAME,
|
||||||
value: _Arr.STORAGENAME,
|
Huowei: _Arr.USE_LOCATION,
|
||||||
Huowei: _Arr.USE_LOCATION,
|
});
|
||||||
});
|
|
||||||
|
|
||||||
}
|
|
||||||
} else {
|
|
||||||
this.$showMessage(res.data.message)
|
|
||||||
}
|
}
|
||||||
this.focusBarCode = true
|
} else {
|
||||||
this.focusShipRequest = false
|
this.$showMessage(res.data.message)
|
||||||
this.focusKw = false
|
}
|
||||||
}).catch(err => {
|
this.focusBarCode = true
|
||||||
this.$showMessage(err)
|
this.focusShipRequest = false
|
||||||
});
|
this.focusKw = false
|
||||||
} else {
|
}).catch(err => {
|
||||||
this.$showMessage("请先选择仓库")
|
this.$showMessage(err)
|
||||||
}
|
});
|
||||||
|
|
||||||
},
|
},
|
||||||
getLocationName() {
|
getLocationName() {
|
||||||
|
@ -245,6 +245,7 @@
|
|||||||
this.orgObject = JSON.parse(uni.getStorageSync('orgObject'))
|
this.orgObject = JSON.parse(uni.getStorageSync('orgObject'))
|
||||||
this.getTimeData();
|
this.getTimeData();
|
||||||
this.getERPLocation();
|
this.getERPLocation();
|
||||||
|
this.getLocationName();
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
getTimeData() {
|
getTimeData() {
|
||||||
@ -263,7 +264,7 @@
|
|||||||
},
|
},
|
||||||
change(e) {
|
change(e) {
|
||||||
this.ERPLOCATION = e.value;
|
this.ERPLOCATION = e.value;
|
||||||
this.LOCATIONNAME = ""
|
/* this.LOCATIONNAME = ""
|
||||||
this.Huowei = e.Huowei
|
this.Huowei = e.Huowei
|
||||||
if (e.Huowei == 'Y') {
|
if (e.Huowei == 'Y') {
|
||||||
this.Locatiaon_state = false
|
this.Locatiaon_state = false
|
||||||
@ -272,7 +273,7 @@
|
|||||||
this.$showMessage(e.text + "仓库没有启用货位管理")
|
this.$showMessage(e.text + "仓库没有启用货位管理")
|
||||||
this.Locatiaon_state = true
|
this.Locatiaon_state = true
|
||||||
this.focusPalletName = true
|
this.focusPalletName = true
|
||||||
}
|
} */
|
||||||
},
|
},
|
||||||
getERPLocation() {
|
getERPLocation() {
|
||||||
this.items = [];
|
this.items = [];
|
||||||
|
@ -406,6 +406,7 @@
|
|||||||
this.orgObject = JSON.parse(uni.getStorageSync('orgObject'))
|
this.orgObject = JSON.parse(uni.getStorageSync('orgObject'))
|
||||||
|
|
||||||
this.getERPLocation();
|
this.getERPLocation();
|
||||||
|
this.getLocationName();
|
||||||
this.getTimeData();
|
this.getTimeData();
|
||||||
// let Things = 20
|
// let Things = 20
|
||||||
// for (var i = 0; i < Things; i++) {
|
// for (var i = 0; i < Things; i++) {
|
||||||
@ -853,8 +854,8 @@
|
|||||||
},
|
},
|
||||||
change(e) {
|
change(e) {
|
||||||
this.ERPLOCATION = e.value;
|
this.ERPLOCATION = e.value;
|
||||||
this.LOCATIONNAME = ""
|
//this.LOCATIONNAME = ""
|
||||||
this.getLocationName();
|
//this.getLocationName();
|
||||||
},
|
},
|
||||||
getLocationName() {
|
getLocationName() {
|
||||||
this.items_Location = []
|
this.items_Location = []
|
||||||
|
@ -233,6 +233,7 @@
|
|||||||
this.orgObject = JSON.parse(uni.getStorageSync('orgObject'))
|
this.orgObject = JSON.parse(uni.getStorageSync('orgObject'))
|
||||||
this.getERPLocation();
|
this.getERPLocation();
|
||||||
this.getTimeData();
|
this.getTimeData();
|
||||||
|
this.getLocationName();
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
getTimeData(){
|
getTimeData(){
|
||||||
@ -290,7 +291,7 @@
|
|||||||
},
|
},
|
||||||
change(e) {
|
change(e) {
|
||||||
this.ERPLOCATION = e.value;
|
this.ERPLOCATION = e.value;
|
||||||
this.LOCATIONNAME = ""
|
/* this.LOCATIONNAME = ""
|
||||||
this.Huowei = e.Huowei
|
this.Huowei = e.Huowei
|
||||||
if (e.Huowei == 'Y') {
|
if (e.Huowei == 'Y') {
|
||||||
this.Locatiaon_state = false
|
this.Locatiaon_state = false
|
||||||
@ -299,7 +300,7 @@
|
|||||||
this.$showMessage(e.text + "仓库没有启用货位管理")
|
this.$showMessage(e.text + "仓库没有启用货位管理")
|
||||||
this.Locatiaon_state = true
|
this.Locatiaon_state = true
|
||||||
this.focusPalletName = true
|
this.focusPalletName = true
|
||||||
}
|
} */
|
||||||
},
|
},
|
||||||
getERPLocation() {
|
getERPLocation() {
|
||||||
this.items = [];
|
this.items = [];
|
||||||
|
@ -252,6 +252,7 @@
|
|||||||
|
|
||||||
this.orgObject = JSON.parse(uni.getStorageSync('orgObject'))
|
this.orgObject = JSON.parse(uni.getStorageSync('orgObject'))
|
||||||
this.getERPLocation();
|
this.getERPLocation();
|
||||||
|
this.getLocationName();
|
||||||
// this.GetLiberaryBaeIn()
|
// this.GetLiberaryBaeIn()
|
||||||
// this.GetLiberaryBaeEn()
|
// this.GetLiberaryBaeEn()
|
||||||
this.getTimeData();
|
this.getTimeData();
|
||||||
@ -385,8 +386,8 @@
|
|||||||
// },
|
// },
|
||||||
change(e) {
|
change(e) {
|
||||||
this.ERPLOCATION = e.value;
|
this.ERPLOCATION = e.value;
|
||||||
this.LOCATIONNAME = ""
|
//this.LOCATIONNAME = ""
|
||||||
this.getLocationName();
|
//this.getLocationName();
|
||||||
},
|
},
|
||||||
//获取焦点的公共方法
|
//获取焦点的公共方法
|
||||||
getfocus(nextfocus) {
|
getfocus(nextfocus) {
|
||||||
|
@ -267,6 +267,7 @@
|
|||||||
this.orgObject = JSON.parse(uni.getStorageSync('orgObject'))
|
this.orgObject = JSON.parse(uni.getStorageSync('orgObject'))
|
||||||
this.getTimeData();
|
this.getTimeData();
|
||||||
this.getERPLocation();
|
this.getERPLocation();
|
||||||
|
this.getLocationName();
|
||||||
},
|
},
|
||||||
computed: {},
|
computed: {},
|
||||||
methods: {
|
methods: {
|
||||||
@ -315,7 +316,7 @@
|
|||||||
change(e) {
|
change(e) {
|
||||||
this.ERPLOCATION = e.value;
|
this.ERPLOCATION = e.value;
|
||||||
console.log(e)
|
console.log(e)
|
||||||
this.LOCATIONNAME = ""
|
/* this.LOCATIONNAME = ""
|
||||||
this.Huowei=e.Huowei
|
this.Huowei=e.Huowei
|
||||||
if (e.Huowei == 'Y') {
|
if (e.Huowei == 'Y') {
|
||||||
this.Locatiaon_state = false
|
this.Locatiaon_state = false
|
||||||
@ -324,7 +325,7 @@
|
|||||||
this.$showMessage(e.text + "仓库没有启用货位管理")
|
this.$showMessage(e.text + "仓库没有启用货位管理")
|
||||||
this.Locatiaon_state = true
|
this.Locatiaon_state = true
|
||||||
this.focusPalletName = true
|
this.focusPalletName = true
|
||||||
}
|
} */
|
||||||
|
|
||||||
},
|
},
|
||||||
getERPLocation() {
|
getERPLocation() {
|
||||||
|
@ -266,6 +266,7 @@
|
|||||||
this.GetLiberaryBaeEn()
|
this.GetLiberaryBaeEn()
|
||||||
this.GetPRODUCTLINES()
|
this.GetPRODUCTLINES()
|
||||||
this.getTimeData();
|
this.getTimeData();
|
||||||
|
this.getLocationName();
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
handleScan() {
|
handleScan() {
|
||||||
@ -295,8 +296,8 @@
|
|||||||
},
|
},
|
||||||
change(e) {
|
change(e) {
|
||||||
this.ERPLOCATION = e.value;
|
this.ERPLOCATION = e.value;
|
||||||
this.LOCATIONNAME = ""
|
/* this.LOCATIONNAME = ""
|
||||||
this.getLocationName();
|
this.getLocationName(); */
|
||||||
},
|
},
|
||||||
GetArea() {
|
GetArea() {
|
||||||
this.$MyRequest('/api/storage/getArea', {}).then(res => {
|
this.$MyRequest('/api/storage/getArea', {}).then(res => {
|
||||||
@ -415,33 +416,26 @@
|
|||||||
getLocationName() {
|
getLocationName() {
|
||||||
this.items_Location = []
|
this.items_Location = []
|
||||||
let ERPFACTORY = JSON.parse(uni.getStorageSync('orgObject')).ERPFACTORY;
|
let ERPFACTORY = JSON.parse(uni.getStorageSync('orgObject')).ERPFACTORY;
|
||||||
if (this.ERPLOCATION != '') {
|
this.$MyRequest('/api/storage/getLocationNameForERPLocation', {
|
||||||
this.$MyRequest('/api/storage/getLocationNameForERPLocation', {
|
ERPLocation: ERPFACTORY
|
||||||
ERPLocation: ERPFACTORY
|
}).then(res => {
|
||||||
}).then(res => {
|
if (res.data.success) {
|
||||||
if (res.data.success) {
|
for (let i = 0; i < res.data.resultObj.length; i++) {
|
||||||
for (let i = 0; i < res.data.resultObj.length; i++) {
|
var _Arr = res.data.resultObj[i];
|
||||||
var _Arr = res.data.resultObj[i];
|
this.items_Location.push({
|
||||||
this.items_Location.push({
|
text: _Arr.DESCRIPTION,
|
||||||
text: _Arr.DESCRIPTION,
|
value: _Arr.STORAGENAME
|
||||||
value: _Arr.STORAGENAME
|
});
|
||||||
});
|
|
||||||
|
|
||||||
}
|
|
||||||
} else {
|
|
||||||
this.$showMessage(res.data.message)
|
|
||||||
}
|
}
|
||||||
this.focusBarCode = true
|
} else {
|
||||||
this.focusShipRequest = false
|
this.$showMessage(res.data.message)
|
||||||
}).catch(err => {
|
}
|
||||||
this.$showMessage(err)
|
this.focusBarCode = true
|
||||||
});
|
this.focusShipRequest = false
|
||||||
} else {
|
}).catch(err => {
|
||||||
try {
|
this.$showMessage(err)
|
||||||
Vue.prototype.$playFail()
|
});
|
||||||
} catch (e) {}
|
|
||||||
this.$showMessage("请先选择仓库")
|
|
||||||
}
|
|
||||||
|
|
||||||
},
|
},
|
||||||
|
|
||||||
|
@ -356,7 +356,7 @@
|
|||||||
this.GetLiberaryBaeIn()
|
this.GetLiberaryBaeIn()
|
||||||
this.GetLiberaryBaeEn()
|
this.GetLiberaryBaeEn()
|
||||||
this.getTimeData();
|
this.getTimeData();
|
||||||
|
this.getLocationName();
|
||||||
// let Things = 20
|
// let Things = 20
|
||||||
// for (var i = 0; i < Things; i++) {
|
// for (var i = 0; i < Things; i++) {
|
||||||
// this.list_detail.push({aa:"1"})
|
// this.list_detail.push({aa:"1"})
|
||||||
@ -559,8 +559,8 @@
|
|||||||
},
|
},
|
||||||
change(e) {
|
change(e) {
|
||||||
this.ERPLOCATION = e.value;
|
this.ERPLOCATION = e.value;
|
||||||
this.LOCATIONNAME = ""
|
/* this.LOCATIONNAME = ""
|
||||||
this.getLocationName();
|
this.getLocationName(); */
|
||||||
},
|
},
|
||||||
GetArea() {
|
GetArea() {
|
||||||
this.$MyRequest('/api/storage/getArea2', {}).then(res => {
|
this.$MyRequest('/api/storage/getArea2', {}).then(res => {
|
||||||
@ -653,30 +653,26 @@
|
|||||||
getLocationName() {
|
getLocationName() {
|
||||||
this.items_Location = []
|
this.items_Location = []
|
||||||
let ERPFACTORY = JSON.parse(uni.getStorageSync('orgObject')).ERPFACTORY;
|
let ERPFACTORY = JSON.parse(uni.getStorageSync('orgObject')).ERPFACTORY;
|
||||||
if (this.ERPLOCATION != '') {
|
this.$MyRequest('/api/storage/getLocationNameForERPLocation', {
|
||||||
this.$MyRequest('/api/storage/getLocationNameForERPLocation', {
|
ERPLocation: ERPFACTORY
|
||||||
ERPLocation: ERPFACTORY
|
}).then(res => {
|
||||||
}).then(res => {
|
if (res.data.success) {
|
||||||
if (res.data.success) {
|
for (let i = 0; i < res.data.resultObj.length; i++) {
|
||||||
for (let i = 0; i < res.data.resultObj.length; i++) {
|
var _Arr = res.data.resultObj[i];
|
||||||
var _Arr = res.data.resultObj[i];
|
this.items_Location.push({
|
||||||
this.items_Location.push({
|
text: _Arr.DESCRIPTION,
|
||||||
text: _Arr.DESCRIPTION,
|
value: _Arr.STORAGENAME
|
||||||
value: _Arr.STORAGENAME
|
});
|
||||||
});
|
|
||||||
|
|
||||||
}
|
|
||||||
} else {
|
|
||||||
this.$showMessage(res.data.message)
|
|
||||||
}
|
}
|
||||||
this.focusBarCode = true
|
} else {
|
||||||
this.focusShipRequest = false
|
this.$showMessage(res.data.message)
|
||||||
}).catch(err => {
|
}
|
||||||
this.$showMessage(err)
|
this.focusBarCode = true
|
||||||
});
|
this.focusShipRequest = false
|
||||||
} else {
|
}).catch(err => {
|
||||||
this.$showMessage("请先选择仓库")
|
this.$showMessage(err)
|
||||||
}
|
});
|
||||||
|
|
||||||
},
|
},
|
||||||
/**
|
/**
|
||||||
|
Loading…
x
Reference in New Issue
Block a user