update 优化调拨入库、销售退库入库、其它入库、退料入库、立库入库、立库转库、盘点、无单据转库、上架/转货位页面的库位下拉框查询方法

This commit is contained in:
18110972313 2025-04-24 11:48:08 +08:00
parent 9d9ff9c596
commit df44ebc7c9
8 changed files with 70 additions and 74 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,9 +295,9 @@
}, },
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++) {
@ -316,9 +316,6 @@
}).catch(err => { }).catch(err => {
this.$showMessage(err) this.$showMessage(err)
}); });
} else {
this.$showMessage("请先选择仓库")
}
}, },
selConfirm(e) { selConfirm(e) {

View File

@ -322,9 +322,9 @@
}, },
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++) {
@ -343,9 +343,6 @@
}).catch(err => { }).catch(err => {
this.$showMessage(err) this.$showMessage(err)
}); });
} else {
this.$showMessage("请先选择仓库")
}
}, },

View File

@ -348,9 +348,9 @@
}, },
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++) {
@ -369,9 +369,6 @@
}).catch(err => { }).catch(err => {
this.$showMessage(err) this.$showMessage(err)
}); });
} else {
this.$showMessage("请先选择仓库")
}
}, },
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++) {