禁用特殊处理

This commit is contained in:
2022-09-09 09:24:37 +08:00
parent 84c05bb8e2
commit 730e0df403
2 changed files with 9 additions and 5 deletions

View File

@@ -56,7 +56,7 @@ export default {
this.$store.dispatch('receiveMaterObj', {}) this.$store.dispatch('receiveMaterObj', {})
}, },
created () { created () {
this._authority() // this._authority()
}, },
methods: { methods: {
toPage (e) { toPage (e) {

View File

@@ -31,7 +31,7 @@
label="托盘" label="托盘"
v-model="val1" v-model="val1"
:seaShow="false" :seaShow="false"
:disabled="option2[this.active2].region_code === 'SSX01'" :disabled="isSpecial"
></search-box> ></search-box>
<div class="bottom-filter-tip"> <div class="bottom-filter-tip">
<div class="filter-label txtjustify">数量</div> <div class="filter-label txtjustify">数量</div>
@@ -64,6 +64,7 @@ export default {
return { return {
val1: '', val1: '',
val2: '', val2: '',
isSpecial: false,
option2: [], option2: [],
active2: '', active2: '',
open2: false, open2: false,
@@ -86,9 +87,6 @@ export default {
this.$set(el, 'value', el.region_id) this.$set(el, 'value', el.region_id)
this.$set(el, 'label', el.region_name) this.$set(el, 'label', el.region_name)
}) })
if (this.option2[this.active2].region_code === 'SSX01') {
this.val1 = ''
}
} else { } else {
this.Dialog(res.desc) this.Dialog(res.desc)
} }
@@ -130,6 +128,12 @@ export default {
dropdownMenu2 (i) { dropdownMenu2 (i) {
this.active2 = i + '' this.active2 = i + ''
this.open2 = false this.open2 = false
if (this.option2[this.active2].region_code === 'SSX01') {
this.val1 = ''
this.isSpecial = true
} else {
this.isSpecial = false
}
this.option3 = this.option2[this.active2].pointArr this.option3 = this.option2[this.active2].pointArr
this.option3.map(el => { this.option3.map(el => {
this.$set(el, 'value', el.point_id) this.$set(el, 'value', el.point_id)