刻字上料接口
This commit is contained in:
@@ -35,8 +35,8 @@
|
||||
</div>
|
||||
</div>
|
||||
<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="disabled1" :class="{'button--defalut': qty === '' || value2 === ''}" @click="toSure">余料上料</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': value2 === ''}" @click="toSure">余料上料</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -83,12 +83,12 @@ export default {
|
||||
// 余料上料
|
||||
async toSure () {
|
||||
this.disabled1 = true
|
||||
if (this.qty === '' || this.value2 === '') {
|
||||
if (this.value2 === '') {
|
||||
this.disabled1 = false
|
||||
return
|
||||
}
|
||||
try {
|
||||
let res = await kzresidue(this.qty, this.value2)
|
||||
let res = await kzresidue(this.value2)
|
||||
this.toast(res.message)
|
||||
this.value1 = ''
|
||||
this.qty = ''
|
||||
@@ -98,15 +98,15 @@ export default {
|
||||
this.disabled1 = false
|
||||
}
|
||||
},
|
||||
// 补空框
|
||||
// 卸料
|
||||
async _kzunload () {
|
||||
this.disabled2 = true
|
||||
if (this.value2 === '') {
|
||||
if (this.qty === '' || this.value2 === '') {
|
||||
this.disabled2 = false
|
||||
return
|
||||
}
|
||||
try {
|
||||
let res = await kzunload(this.value2)
|
||||
let res = await kzunload(this.qty, this.value2)
|
||||
this.toast(res.message)
|
||||
this.value1 = ''
|
||||
this.qty = ''
|
||||
|
||||
@@ -3,8 +3,8 @@
|
||||
<div class="search-confirm-wrap">
|
||||
<div class="search-wrap">
|
||||
<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>
|
||||
@@ -23,7 +23,7 @@ export default {
|
||||
created () {
|
||||
},
|
||||
methods: {
|
||||
// 空框搬回
|
||||
// 1刻字上料
|
||||
async toSure () {
|
||||
this.disabled1 = true
|
||||
try {
|
||||
@@ -34,7 +34,7 @@ export default {
|
||||
this.disabled1 = false
|
||||
}
|
||||
},
|
||||
// 刻字上料
|
||||
// 2空框回库
|
||||
async _tmpsendVechile () {
|
||||
this.disabled2 = true
|
||||
if (this.value2 === '') {
|
||||
|
||||
Reference in New Issue
Block a user