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