116
This commit is contained in:
@@ -65,7 +65,7 @@
|
||||
<span class="filter_label">载具编码</span>
|
||||
</view>
|
||||
<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 class="zd-row border-bottom">
|
||||
@@ -117,6 +117,12 @@
|
||||
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', '')
|
||||
}
|
||||
@@ -140,10 +146,17 @@
|
||||
})
|
||||
},
|
||||
handleChange (e) {
|
||||
if (e && e.charAt(0).toUpperCase() === 'T') {
|
||||
this.index ='FStockPallet'
|
||||
if (e) {
|
||||
if (e.charAt(0).toUpperCase() === 'T') {
|
||||
this.index ='FStockPallet'
|
||||
} else {
|
||||
this.index ='FStockId'
|
||||
}
|
||||
}
|
||||
},
|
||||
handleDel () {
|
||||
this.index = ''
|
||||
},
|
||||
toEmpty () {
|
||||
this.currentData = {}
|
||||
this.index = ''
|
||||
|
||||
@@ -23,6 +23,7 @@
|
||||
<search-box
|
||||
v-model="val2"
|
||||
@handleChange="handleChange2"
|
||||
@handleDel="handleDel2"
|
||||
/>
|
||||
</view>
|
||||
</view>
|
||||
@@ -131,10 +132,17 @@
|
||||
}
|
||||
},
|
||||
handleChange2 (e) {
|
||||
if (e && e.charAt(0).toUpperCase() === 'T') {
|
||||
this.index ='FStockPallet'
|
||||
if (e) {
|
||||
if (e.charAt(0).toUpperCase() === 'T') {
|
||||
this.index ='FStockPallet'
|
||||
} else {
|
||||
this.index ='FStockId'
|
||||
}
|
||||
}
|
||||
},
|
||||
handleDel2 () {
|
||||
this.index = ''
|
||||
},
|
||||
toEmpty () {
|
||||
this.val1 = ''
|
||||
this.val2 = ''
|
||||
|
||||
Reference in New Issue
Block a user