空木箱入库修改

This commit is contained in:
2024-05-15 09:28:07 +08:00
parent 813221ee6c
commit 77a94b984b
2 changed files with 4 additions and 15 deletions

View File

@@ -3,14 +3,6 @@
<nav-bar title="空木箱入库"></nav-bar>
<view class="zd_content">
<view class="zd_wrapper">
<view class="filter_item">
<view class="filter_label_wraper">
<span class="filter_label">载具号</span>
</view>
<view class="filter_input_wraper">
<search-box v-model="val1" />
</view>
</view>
<view class="filter_item">
<view class="filter_label_wraper">
<span class="filter_label">木箱号</span>
@@ -37,7 +29,7 @@
</view>
<view class="zd-row submitbar">
<button class="zd-col-6 btn-submit btn-default letter-30" @tap="clearUp">清空</button>
<button class="zd-col-15 btn-submit btn-success letter-30" :class="{'btn-info': !val1 || !val2 || !val3}" :disabled="disabled" @tap="_twoPdaBoxIn">入库</button>
<button class="zd-col-15 btn-submit btn-success letter-30" :class="{'btn-info': !val2 || !val3}" :disabled="disabled" @tap="_twoPdaBoxIn">入库</button>
</view>
</view>
</template>
@@ -55,7 +47,6 @@
},
data() {
return {
val1: '',
val2: '',
val3: '',
options: [{value: '1', text: '1'}, {value: '2', text: '2'}, {value: '3', text: '3'}],
@@ -72,12 +63,12 @@
},
async _twoPdaBoxIn () {
this.disabled = true
if (!this.val1 || !this.val2 || !this.val3) {
if (!this.val2 || !this.val3) {
this.disabled = false
return
}
try {
let res = await twoPdaBoxIn(this.val1, this.val2, this.val3, this.index)
let res = await twoPdaBoxIn(this.val2, this.val3, this.index)
uni.showToast({
title: res.message,
icon: 'none'
@@ -88,7 +79,6 @@
}
},
clearUp () {
this.val1 = ''
this.val2 = ''
this.val3 = ''
this.index = ''