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,7 +374,6 @@
|
|||||||
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 => {
|
||||||
@ -394,9 +394,6 @@
|
|||||||
}).catch(err => {
|
}).catch(err => {
|
||||||
this.$showMessage(err)
|
this.$showMessage(err)
|
||||||
});
|
});
|
||||||
} else {
|
|
||||||
this.$showMessage("请先选择仓库")
|
|
||||||
}
|
|
||||||
|
|
||||||
},
|
},
|
||||||
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,7 +173,6 @@
|
|||||||
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 => {
|
||||||
@ -197,25 +196,23 @@
|
|||||||
}).catch(err => {
|
}).catch(err => {
|
||||||
this.$showMessage(err)
|
this.$showMessage(err)
|
||||||
});
|
});
|
||||||
} else {
|
|
||||||
this.$showMessage("请先选择仓库")
|
|
||||||
}
|
|
||||||
|
|
||||||
},
|
},
|
||||||
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,7 +364,6 @@
|
|||||||
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 => {
|
||||||
@ -386,9 +386,6 @@
|
|||||||
}).catch(err => {
|
}).catch(err => {
|
||||||
this.$showMessage(err)
|
this.$showMessage(err)
|
||||||
});
|
});
|
||||||
} else {
|
|
||||||
this.$showMessage("请先选择仓库")
|
|
||||||
}
|
|
||||||
|
|
||||||
},
|
},
|
||||||
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,7 +416,6 @@
|
|||||||
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 => {
|
||||||
@ -436,12 +436,6 @@
|
|||||||
}).catch(err => {
|
}).catch(err => {
|
||||||
this.$showMessage(err)
|
this.$showMessage(err)
|
||||||
});
|
});
|
||||||
} else {
|
|
||||||
try {
|
|
||||||
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,7 +653,6 @@
|
|||||||
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 => {
|
||||||
@ -674,9 +673,6 @@
|
|||||||
}).catch(err => {
|
}).catch(err => {
|
||||||
this.$showMessage(err)
|
this.$showMessage(err)
|
||||||
});
|
});
|
||||||
} else {
|
|
||||||
this.$showMessage("请先选择仓库")
|
|
||||||
}
|
|
||||||
|
|
||||||
},
|
},
|
||||||
/**
|
/**
|
||||||
|
Loading…
x
Reference in New Issue
Block a user