刻字上料接口

This commit is contained in:
2023-07-06 18:52:29 +08:00
parent 708e77f765
commit 9f61a46ea6
2 changed files with 11 additions and 11 deletions

View File

@@ -35,8 +35,8 @@
</div> </div>
</div> </div>
<div class="search-item_3"> <div class="search-item_3">
<button class="button button--primary" :disabled="disabled2" :class="{'button--defalut': value2 === ''}" @click="_kzunload">卸料</button> <button class="button button--primary" :disabled="disabled2" :class="{'button--defalut': qty === '' || value2 === ''}" @click="_kzunload">卸料</button>
<button class="button button--primary" :disabled="disabled1" :class="{'button--defalut': qty === '' || value2 === ''}" @click="toSure">余料上料</button> <button class="button button--primary" :disabled="disabled1" :class="{'button--defalut': value2 === ''}" @click="toSure">余料上料</button>
</div> </div>
</div> </div>
</div> </div>
@@ -83,12 +83,12 @@ export default {
// 余料上料 // 余料上料
async toSure () { async toSure () {
this.disabled1 = true this.disabled1 = true
if (this.qty === '' || this.value2 === '') { if (this.value2 === '') {
this.disabled1 = false this.disabled1 = false
return return
} }
try { try {
let res = await kzresidue(this.qty, this.value2) let res = await kzresidue(this.value2)
this.toast(res.message) this.toast(res.message)
this.value1 = '' this.value1 = ''
this.qty = '' this.qty = ''
@@ -98,15 +98,15 @@ export default {
this.disabled1 = false this.disabled1 = false
} }
}, },
// 补空框 // 卸料
async _kzunload () { async _kzunload () {
this.disabled2 = true this.disabled2 = true
if (this.value2 === '') { if (this.qty === '' || this.value2 === '') {
this.disabled2 = false this.disabled2 = false
return return
} }
try { try {
let res = await kzunload(this.value2) let res = await kzunload(this.qty, this.value2)
this.toast(res.message) this.toast(res.message)
this.value1 = '' this.value1 = ''
this.qty = '' this.qty = ''

View File

@@ -3,8 +3,8 @@
<div class="search-confirm-wrap"> <div class="search-confirm-wrap">
<div class="search-wrap"> <div class="search-wrap">
<div class="search-item_3"> <div class="search-item_3">
<button class="button button--primary" :disabled="disabled2" @click="_tmpsendVechile">刻字上料</button> <button class="button button--primary" :disabled="disabled1" @click="toSure">刻字上料</button>
<button class="button button--primary" :disabled="disabled1" @click="toSure">空框搬回</button> <button class="button button--primary" :disabled="disabled2" @click="_tmpsendVechile">空框搬回</button>
</div> </div>
</div> </div>
</div> </div>
@@ -23,7 +23,7 @@ export default {
created () { created () {
}, },
methods: { methods: {
// 空框搬回 // 1刻字上料
async toSure () { async toSure () {
this.disabled1 = true this.disabled1 = true
try { try {
@@ -34,7 +34,7 @@ export default {
this.disabled1 = false this.disabled1 = false
} }
}, },
// 刻字上料 // 2空框回库
async _tmpsendVechile () { async _tmpsendVechile () {
this.disabled2 = true this.disabled2 = true
if (this.value2 === '') { if (this.value2 === '') {