# Conflicts:
#	pages/material/features/ProduceReturnPage/index.vue
This commit is contained in:
郭飞 2025-04-24 13:36:13 +08:00
commit 2b818848eb
10 changed files with 112 additions and 123 deletions

View File

@ -372,9 +372,10 @@
getLocationName() { getLocationName() {
this.items_Location = [] this.items_Location = []
this.BoxListInfo = []; this.BoxListInfo = [];
let ERPFACTORY = JSON.parse(uni.getStorageSync('orgObject')).ERPFACTORY;
if (this.ERPLOCATION != '') { if (this.ERPLOCATION != '') {
this.$MyRequest('/api/storage/getLocationNameForERPLocation', { this.$MyRequest('/api/storage/getLocationNameForERPLocation', {
ERPLocation: this.ERPLOCATION 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++) {

View File

@ -172,9 +172,10 @@
}, },
getLocationName() { getLocationName() {
this.items_Location = [] this.items_Location = []
let ERPFACTORY = JSON.parse(uni.getStorageSync('orgObject')).ERPFACTORY;
if (this.ERPLOCATION1 != '') { if (this.ERPLOCATION1 != '') {
this.$MyRequest('/api/storage/getLocationNameForERPLocation', { this.$MyRequest('/api/storage/getLocationNameForERPLocation', {
ERPLocation: this.ERPLOCATION1, ERPLocation: ERPFACTORY,
}).then(res => { }).then(res => {
console.log(res.data.resultObj) console.log(res.data.resultObj)
if (res.data.success) { if (res.data.success) {

View File

@ -362,9 +362,10 @@
}, },
getLocationName2() { getLocationName2() {
this.items_Location = [] this.items_Location = []
let ERPFACTORY = JSON.parse(uni.getStorageSync('orgObject')).ERPFACTORY;
if (this.ERPLOCATION != '') { if (this.ERPLOCATION != '') {
this.$MyRequest('/api/storage/getLocationNameForERPLocation', { this.$MyRequest('/api/storage/getLocationNameForERPLocation', {
ERPLocation: this.ERPLOCATION 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++) {

View File

@ -295,30 +295,27 @@
}, },
getLocationName() { getLocationName() {
this.items_Location = [] this.items_Location = []
if (this.ERPLOCATION != '') { let ERPFACTORY = JSON.parse(uni.getStorageSync('orgObject')).ERPFACTORY;
this.$MyRequest('/api/storage/getLocationNameForERPLocation', { this.$MyRequest('/api/storage/getLocationNameForERPLocation', {
ERPLocation: this.ERPLOCATION 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)
} });
}, },
selConfirm(e) { selConfirm(e) {

View File

@ -22,7 +22,6 @@
<u-input :border="true" v-model="LOCATIONNAME" placeholder="请输入" @input="handleInput"/> <u-input :border="true" v-model="LOCATIONNAME" placeholder="请输入" @input="handleInput"/>
</downSelect> </downSelect>
</u-form-item> </u-form-item>
<!-- <u-form-item :border-bottom="false"> <!-- <u-form-item :border-bottom="false">
<label>选择库位</label> <label>选择库位</label>
<downSelect ref='selectRef' showKey="storageName" mode='single' :dataList="items_Location" @resultBack="resultBack"> <downSelect ref='selectRef' showKey="storageName" mode='single' :dataList="items_Location" @resultBack="resultBack">
@ -855,31 +854,28 @@
getLocationName() { getLocationName() {
this.items_Location = [] this.items_Location = []
this.items_Location = [] this.items_Location = []
if (this.ERPLOCATION != '') { let ERPFACTORY = JSON.parse(uni.getStorageSync('orgObject')).ERPFACTORY;
this.$MyRequest('/api/storage/getLocationNameForERPLocation', { this.$MyRequest('/api/storage/getLocationNameForERPLocation', {
ERPLocation: this.ERPLOCATION 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
}); });
}
console.log(this.items_Location)
this.getitems_LocationAll('');
} else {
this.$showMessage(res.data.message)
} }
this.focusBarCode = true console.log(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)
});
}, },
getitems_LocationAll(query) { getitems_LocationAll(query) {

View File

@ -322,30 +322,27 @@
}, },
getLocationName() { getLocationName() {
this.items_Location = [] this.items_Location = []
if (this.ERPLOCATION != '') { let ERPFACTORY = JSON.parse(uni.getStorageSync('orgObject')).ERPFACTORY;
this.$MyRequest('/api/storage/getLocationNameForERPLocation', { this.$MyRequest('/api/storage/getLocationNameForERPLocation', {
ERPLocation: this.ERPLOCATION 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)
} });
}, },

View File

@ -417,31 +417,28 @@
getLocationName() { getLocationName() {
this.items_Location = [] this.items_Location = []
this.items_LocationAll = [] this.items_LocationAll = []
if (this.ERPLOCATION != '') { let ERPFACTORY = JSON.parse(uni.getStorageSync('orgObject')).ERPFACTORY;
this.$MyRequest('/api/storage/getLocationNameForERPLocation', { this.$MyRequest('/api/storage/getLocationNameForERPLocation', {
ERPLocation: this.ERPLOCATION 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
}); });
}
console.log(this.items_LocationAll)
this.getitems_LocationAll('');
} else {
this.$showMessage(res.data.message)
} }
this.focusBarCode = true console.log(this.items_LocationAll)
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)
});
}, },
getitems_LocationAll(query) { getitems_LocationAll(query) {

View File

@ -348,30 +348,27 @@
}, },
getLocationName() { getLocationName() {
this.items_Location = [] this.items_Location = []
if (this.ERPLOCATION != '') { let ERPFACTORY = JSON.parse(uni.getStorageSync('orgObject')).ERPFACTORY;
this.$MyRequest('/api/storage/getLocationNameForERPLocation', { this.$MyRequest('/api/storage/getLocationNameForERPLocation', {
ERPLocation: this.ERPLOCATION 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('')
} else {
this.$showMessage(res.data.message)
} }
this.focusBarCode = true this.getitems_LocationAll('')
this.focusShipRequest = false } else {
}).catch(err => { this.$showMessage(res.data.message)
this.$showMessage(err) }
}); this.focusBarCode = true
} else { this.focusShipRequest = false
this.$showMessage("请先选择仓库") }).catch(err => {
} this.$showMessage(err)
});
}, },
getitems_LocationAll(query){ getitems_LocationAll(query){

View File

@ -414,9 +414,10 @@
}, },
getLocationName() { getLocationName() {
this.items_Location = [] this.items_Location = []
let ERPFACTORY = JSON.parse(uni.getStorageSync('orgObject')).ERPFACTORY;
if (this.ERPLOCATION != '') { if (this.ERPLOCATION != '') {
this.$MyRequest('/api/storage/getLocationNameForERPLocation', { this.$MyRequest('/api/storage/getLocationNameForERPLocation', {
ERPLocation: this.ERPLOCATION 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++) {

View File

@ -652,9 +652,10 @@
}, },
getLocationName() { getLocationName() {
this.items_Location = [] this.items_Location = []
let ERPFACTORY = JSON.parse(uni.getStorageSync('orgObject')).ERPFACTORY;
if (this.ERPLOCATION != '') { if (this.ERPLOCATION != '') {
this.$MyRequest('/api/storage/getLocationNameForERPLocation', { this.$MyRequest('/api/storage/getLocationNameForERPLocation', {
ERPLocation: this.ERPLOCATION 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++) {