开合盖

This commit is contained in:
x
2026-08-12 17:48:25 +08:00
parent 0589cbd0fc
commit ad86fa8277
3 changed files with 118 additions and 3 deletions

View File

@@ -10,6 +10,12 @@
<uni-data-select v-model="index" :placeholder="$t('uni.dataSelect.placeholder')" :emptyTips="$t('uni.dataSelect.emptyTips')" :localdata="options" @change="selectChange"></uni-data-select>
</view>
</view>
<view class="filter_item is-required">
<view class="filter_label">{{$t('filter.is_un_cap')}}</view>
<view class="filter_input_wraper">
<uni-data-select v-model="index2" :placeholder="$t('uni.dataSelect.placeholder')" :emptyTips="$t('uni.dataSelect.emptyTips')" :localdata="options2" @change="selectChange2"></uni-data-select>
</view>
</view>
<view class="filter_item is-required">
<view class="filter_label_wraper">
<span class="filter_label">{{$t('filter.box-no')}}</span>
@@ -38,7 +44,7 @@
</view>
<view class="zd-row submitbar">
<button class="zd-col-6 btn-submit btn-default letter-30" @tap="clearUp">{{$t('button.clear')}}</button>
<button class="zd-col-15 btn-submit btn-success letter-30" :class="{'btn-info': !index || !val1 || !val2 || !val3}" :disabled="disabled" @tap="handleConfirm">{{$t('button.warehousing')}}</button>
<button class="zd-col-15 btn-submit btn-success letter-30" :class="{'btn-info': !index || !index2 || !val1 || !val2 || !val3}" :disabled="disabled" @tap="handleConfirm">{{$t('button.warehousing')}}</button>
</view>
</view>
</template>
@@ -58,6 +64,8 @@
title: '',
options: [{value: '1', text: this.$t('select.return-inspection-warehousing')}, {value: '2', text: this.$t('select.recut-warehousing')}, {value: '0001', text: this.$t('select.production-warehousing')}, {value: '0009', text: this.$t('select.manual-warehousing')}],
index: '',
options2: [{value: '1', text: this.$t('select.yes')}, {value: '0', text: this.$t('select.no')}],
index2: '',
val1: '',
val2: '',
val3: '',
@@ -71,8 +79,11 @@
selectChange (e) {
this.index = e
},
selectChange2 (e) {
this.index2 = e
},
async handleConfirm() {
if (!this.index || !this.val1 || !this.val2 || !this.val3) {
if (!this.index || !this.index2 || !this.val1 || !this.val2 || !this.val3) {
return
}
const isConfirmed = await confirmAction(this.$t('toast.prompt'), this.$t('toast.sure-perform-operation'))
@@ -83,7 +94,7 @@
async _twoPdaReback () {
this.disabled = true
try {
let res = await twoPdaReback(this.index, this.val1, this.val2, this.val3)
let res = await twoPdaReback(this.index, this.index2, this.val1, this.val2, this.val3)
uni.showToast({
title: res.message,
icon: 'none'
@@ -96,6 +107,7 @@
},
clearUp () {
this.index = ''
this.index2 = ''
this.val1 = ''
this.val2 = ''
this.val3 = ''