组盘入库

This commit is contained in:
2024-03-11 17:11:26 +08:00
parent 9bb3f00b91
commit 9a7587f80f
8 changed files with 628 additions and 102 deletions

View File

@@ -7,18 +7,21 @@
<view class="zd-col-5">
<span class="filter_label">载具类型</span>
</view>
<view class="zd-col-19 filter_picker">
<view class="zd-col-17 filter_picker">
<picker @change="pickerChange" :value="index1" :range="options1" range-key="text">
<view class="uni-input">{{index1 !== '' ? options1[index1].text : ''}}</view>
</picker>
</view>
<view class="uni-icons icon_right" @tap="toPhone">&#xe6b5;</view>
</view>
<view class="zd-row border-bottom">
<view class="zd-col-5">
<span class="filter_label">载具编码</span>
</view>
<view class="zd-col-19">
<input type="text" class="filter_input" v-model="val2">
<search-box
v-model="val1"
/>
</view>
</view>
<view class="zd-row">
@@ -27,7 +30,7 @@
</view>
<view class="zd-col-19">
<search-box
v-model="val1"
v-model="val2"
/>
</view>
</view>
@@ -72,12 +75,12 @@
},
async _emptyInStore () {
this.disabled = true
if (!this.val1 || this.index1 === '' || !this.val2) {
if (this.index1 === '' || !this.val1 || !this.val2) {
this.disabled = false
return
}
try {
let res = await emptyInStore(this.options1[this.index1].value, this.val2, this.val1)
let res = await emptyInStore(this.options1[this.index1].value, this.val1, this.val2)
this.clearUp()
uni.showToast({
title: res.message,