This commit is contained in:
2025-03-25 08:38:48 +08:00
parent 401e4c01fe
commit 6f3dd892d7
5 changed files with 30 additions and 8 deletions

View File

@@ -44,6 +44,7 @@
}, },
toDel () { toDel () {
this.$emit('input', '') this.$emit('input', '')
this.$emit('handleDel')
}, },
handleSend (e) { handleSend (e) {
this.$emit('input', e.target.value) this.$emit('input', e.target.value)

View File

@@ -2,8 +2,8 @@
"name" : "恒森", "name" : "恒森",
"appid" : "__UNI__8D175E0", "appid" : "__UNI__8D175E0",
"description" : "恒森WMS手持系统", "description" : "恒森WMS手持系统",
"versionName" : "1.1.5", "versionName" : "1.1.6",
"versionCode" : 115, "versionCode" : 116,
"transformPx" : false, "transformPx" : false,
/* 5+App */ /* 5+App */
"app-plus" : { "app-plus" : {

View File

@@ -65,7 +65,7 @@
<span class="filter_label">载具编码</span> <span class="filter_label">载具编码</span>
</view> </view>
<view class="zd-col-24"> <view class="zd-col-24">
<search-box v-model="currentData.vehicle_code" @handleChange="handleChange" /> <search-box v-model="currentData.vehicle_code" @handleChange="handleChange" @handleDel="handleDel" />
</view> </view>
</view> </view>
<view class="zd-row border-bottom"> <view class="zd-row border-bottom">
@@ -117,6 +117,12 @@
this.index = el.value this.index = el.value
} }
}) })
} else {
if (this.currentData.vehicle_code.charAt(0).toUpperCase() === 'T') {
this.index ='FStockPallet'
} else {
this.index ='FStockId'
}
} }
this.$store.dispatch('setPublicObj', '') this.$store.dispatch('setPublicObj', '')
} }
@@ -140,10 +146,17 @@
}) })
}, },
handleChange (e) { handleChange (e) {
if (e && e.charAt(0).toUpperCase() === 'T') { if (e) {
this.index ='FStockPallet' if (e.charAt(0).toUpperCase() === 'T') {
this.index ='FStockPallet'
} else {
this.index ='FStockId'
}
} }
}, },
handleDel () {
this.index = ''
},
toEmpty () { toEmpty () {
this.currentData = {} this.currentData = {}
this.index = '' this.index = ''

View File

@@ -23,6 +23,7 @@
<search-box <search-box
v-model="val2" v-model="val2"
@handleChange="handleChange2" @handleChange="handleChange2"
@handleDel="handleDel2"
/> />
</view> </view>
</view> </view>
@@ -131,10 +132,17 @@
} }
}, },
handleChange2 (e) { handleChange2 (e) {
if (e && e.charAt(0).toUpperCase() === 'T') { if (e) {
this.index ='FStockPallet' if (e.charAt(0).toUpperCase() === 'T') {
this.index ='FStockPallet'
} else {
this.index ='FStockId'
}
} }
}, },
handleDel2 () {
this.index = ''
},
toEmpty () { toEmpty () {
this.val1 = '' this.val1 = ''
this.val2 = '' this.val2 = ''

View File

@@ -31,7 +31,7 @@ export const storList = () => request({
// export const storList = () => { // export const storList = () => {
// let res = { // let res = {
// code: '200', // code: '200',
// content: [{value: '1', label: 'aaaa'}] // content: [{value: 'FicStockId', label: '虚拟库编码'}, {value: 'FStockId', label: '料箱编码'}, {value: 'FStockPallet', label: '托盘库编码'}]
// } // }
// return res // return res
// } // }