回库按钮控制
This commit is contained in:
@@ -73,7 +73,7 @@
|
|||||||
</section>
|
</section>
|
||||||
<section class="submit-bar">
|
<section class="submit-bar">
|
||||||
<button class="btn submit-button" :disabled="disabled1" :class="{'btn-disabled': !(val3 && val4)}" @click="outSure">出库确认</button>
|
<button class="btn submit-button" :disabled="disabled1" :class="{'btn-disabled': !(val3 && val4)}" @click="outSure">出库确认</button>
|
||||||
<button class="btn submit-button" :disabled="disabled2" :class="{'btn-disabled': !(val1 && val2)}" @click="returnStore">回库</button>
|
<button class="btn submit-button" :disabled="disabled1" :class="{'btn-disabled': !(val1 && val2)}" @click="returnStore">回库</button>
|
||||||
</section>
|
</section>
|
||||||
</section>
|
</section>
|
||||||
</template>
|
</template>
|
||||||
@@ -98,8 +98,7 @@ export default {
|
|||||||
val4: '',
|
val4: '',
|
||||||
dataList: [],
|
dataList: [],
|
||||||
radios: [{value: '1', label: '生产配粉出库', checked: true}, {value: '2', label: '科研配粉出库', checked: false}],
|
radios: [{value: '1', label: '生产配粉出库', checked: true}, {value: '2', label: '科研配粉出库', checked: false}],
|
||||||
disabled1: false,
|
disabled1: false
|
||||||
disabled2: false
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
watch: {
|
watch: {
|
||||||
@@ -182,9 +181,9 @@ export default {
|
|||||||
} else {
|
} else {
|
||||||
this.Dialog(res.desc)
|
this.Dialog(res.desc)
|
||||||
}
|
}
|
||||||
this.disabled2 = false
|
this.disabled1 = false
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
this.disabled2 = false
|
this.disabled1 = false
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
outSure () {
|
outSure () {
|
||||||
@@ -196,9 +195,9 @@ export default {
|
|||||||
this._pfoutConfirmoutstore()
|
this._pfoutConfirmoutstore()
|
||||||
},
|
},
|
||||||
returnStore () {
|
returnStore () {
|
||||||
this.disabled2 = true
|
this.disabled1 = true
|
||||||
if (!(this.val1 && this.val2)) {
|
if (!(this.val1 && this.val2)) {
|
||||||
this.disabled2 = false
|
this.disabled1 = false
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
this._pfoutBackstore()
|
this._pfoutBackstore()
|
||||||
|
|||||||
Reference in New Issue
Block a user