载具绑定

This commit is contained in:
2024-01-03 16:35:00 +08:00
parent f1ea8bb00d
commit d7c5869d16

View File

@@ -47,7 +47,7 @@
</dropdown-menu>
</div>
</div>
<div class="bottom-filter-tip">
<div v-show="!show" class="bottom-filter-tip">
<div class="filter-label txtjustify">载具类型</div>
<div class="fxcol mgl20 visible" >
<dropdown-menu
@@ -64,6 +64,7 @@
</div>
</div>
<search-box
v-show="!show"
label="载具"
v-model="val4"
:seaShow="false"
@@ -110,7 +111,8 @@ export default {
val4: '',
option4: [],
active4: '',
open4: false
open4: false,
show: false
}
},
created () {
@@ -294,6 +296,11 @@ export default {
},
dropdownMenu4 (i) {
this.active4 = i + ''
if (this.option4[i].value === '1') {
this.show = true
} else {
this.show = false
}
this.open4 = false
},
/** 确认 */
@@ -311,11 +318,16 @@ export default {
}
})
let code3 = ''
this.option3.map(el => {
if (el.label === this.val3) {
code3 = el.value
}
})
if (this.show === false) {
this.option3.map(el => {
if (el.label === this.val3) {
code3 = el.value
}
})
}
if (this.show === true) {
this.val4 = ''
}
let res = await vehicleBind(code, code3, this.val4, this.option4[this.active4].value)
if (res.code === '1') {
this.toast(res.desc)
@@ -339,6 +351,7 @@ export default {
this.disabled1 = false
this.val4 = ''
this.active4 = ''
this.show = false
}
}
}