Compare commits

...

2 Commits

Author SHA1 Message Date
4ef2bf7a85 Merge branch 'main' of http://162.14.99.253:3000/10539622/2025-03-JS-SDK-PDA
# Conflicts:
#	pages/material/features/ProduceReturnPage/index.vue
2025-04-23 20:00:33 +08:00
b63dccc86a update 退料入库页面,优化仓库、库位下拉框 2025-04-23 20:00:14 +08:00

View File

@ -11,6 +11,8 @@
<label>选择仓库:</label>&nbsp;&nbsp;&nbsp;&nbsp; <label>选择仓库:</label>&nbsp;&nbsp;&nbsp;&nbsp;
<zxzUniDataSelect filterable v-model="ERPLOCATION" :localdata="items" @change="change"> <zxzUniDataSelect filterable v-model="ERPLOCATION" :localdata="items" @change="change">
</zxzUniDataSelect> </zxzUniDataSelect>
<<<<<<< HEAD
=======
</u-form-item> </u-form-item>
<!-- <u-form-item :border-bottom="false"> <!-- <u-form-item :border-bottom="false">
<label>选择库位</label> <label>选择库位</label>
@ -21,7 +23,22 @@
<downSelect class="downSelect-col" ref='selectRef' showKey="storageName" mode='single' :dataList="items_Location" @resultBack="resultBack"> <downSelect class="downSelect-col" ref='selectRef' showKey="storageName" mode='single' :dataList="items_Location" @resultBack="resultBack">
<u-input :border="true" v-model="LOCATIONNAME" placeholder="请输入" @input="handleInput"/> <u-input :border="true" v-model="LOCATIONNAME" placeholder="请输入" @input="handleInput"/>
</downSelect> </downSelect>
>>>>>>> c596f28377050fefce42433c3bcbb7d676e49713
</u-form-item> </u-form-item>
<!-- <u-form-item :border-bottom="false">
<label>选择库位</label>
<downSelect ref='selectRef' showKey="storageName" mode='single' :dataList="items_Location" @resultBack="resultBack">
<u-input :border="true" v-model="LOCATIONNAME" placeholder="请输入" @input="handleInput"/>
</downSelect>
</u-form-item> -->
<u-form-item :border-bottom="false">
<label>选择库位:</label>&nbsp;&nbsp;&nbsp;&nbsp;
<zxzUniDataSelect filterable v-model="LOCATIONNAME" :localdata="items_Location"
@inputChange="getitems_LocationAll"></zxzUniDataSelect>
</u-form-item>
<!-- <br /> --> <!-- <br /> -->
<!-- <u-row align="left"> <!-- <u-row align="left">
<u-col span="2"><label>组织</label> </u-col> <u-col span="2"><label>组织</label> </u-col>
@ -516,6 +533,7 @@
this.items_Location = [] this.items_Location = []
this.$MyRequest('/api/wareHouse/search', { this.$MyRequest('/api/wareHouse/search', {
storageName: val, storageName: val,
siteName: 'SDK',
orgNo: this.orgObject.ERPFACTORY orgNo: this.orgObject.ERPFACTORY
}).then(res => { }).then(res => {
if (res.data.resultObj) { if (res.data.resultObj) {
@ -837,7 +855,54 @@
this.SPECNAME = ""; this.SPECNAME = "";
this.DESC_CN = ""; this.DESC_CN = "";
this.CHARGE = ""; this.CHARGE = "";
},
change(e) {
this.ERPLOCATION = e.value;
this.LOCATIONNAME = ""
this.getLocationName();
},
getLocationName() {
this.items_Location = []
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
});
} }
console.log(this.items_Location)
this.getitems_LocationAll('');
} else {
this.$showMessage(res.data.message)
}
this.focusBarCode = true
this.focusShipRequest = false
}).catch(err => {
this.$showMessage(err)
});
} else {
this.$showMessage("请先选择仓库")
}
},
getitems_LocationAll(query) {
console.log(query + "&&&&&&&&&&&&&&")
var arr = this.items_LocationAll.filter(item => {
return (item.text.includes(query)) || (item.value.includes(query))
})
if (arr.length > 50) {
this.items_Location = arr.slice(0, 50)
} else {
this.items_Location = arr
}
console.log(this.items_Location)
},
} }
} }
</script> </script>