no message
This commit is contained in:
@@ -66,9 +66,8 @@
|
||||
</view>
|
||||
</view>
|
||||
<view class="zd-row submit-bar">
|
||||
<button class="zd-col-5 button-default" @tap="clearUp">清空</button>
|
||||
<button class="zd-col-8 button-primary" :class="{'button-info': !val1 || !val2}" :disabled="disabled" @tap="_handheldBlanking('1')">入库确认</button>
|
||||
<button class="zd-col-8 button-primary" :class="{'button-info': !val1 || !val2}" :disabled="disabled" @tap="_handheldBlanking('2')">物料转运</button>
|
||||
<button class="zd-col-8 button-default" @tap="clearUp">清空</button>
|
||||
<button class="zd-col-15 button-primary" :class="{'button-info': !val1 || !val2}" :disabled="disabled" @tap="_handheldBlanking">入库确认</button>
|
||||
</view>
|
||||
</view>
|
||||
</template>
|
||||
@@ -122,7 +121,7 @@
|
||||
this.index1 = ''
|
||||
this.disabled = false
|
||||
},
|
||||
async _handheldBlanking (type) {
|
||||
async _handheldBlanking () {
|
||||
this.disabled = true
|
||||
if (!this.val1 || !this.val2) {
|
||||
this.disabled = false
|
||||
@@ -135,11 +134,7 @@
|
||||
}
|
||||
})
|
||||
try {
|
||||
if (type === '1') {
|
||||
let res = await handheldBlanking(type, this.val1, this.index, this.val2, arr, this.index1)
|
||||
} else if (type === '2') {
|
||||
let res = await handheldBlanking(type, this.val1, '', this.val2, '', '')
|
||||
}
|
||||
let res = await handheldBlanking(this.index1, this.val1, this.index, this.val2, arr)
|
||||
this.clearUp()
|
||||
uni.showToast({
|
||||
title: res.message,
|
||||
|
||||
Reference in New Issue
Block a user