虚拟库确认

This commit is contained in:
2023-08-25 22:08:49 +08:00
parent d4884d2bcb
commit 0515679c56
2 changed files with 15 additions and 6 deletions

View File

@@ -8,7 +8,7 @@
<span class="filter_label">木箱</span>
</view>
<view class="filter_input_wraper">
<search-box v-model="val1" :focused="focusedflg" @handleChange="handleChange1"
<search-box v-model="val1" :focused="focusedStatus" @handleChange="handleChange1"
/>
</view>
</view>
@@ -64,7 +64,7 @@
},
data() {
return {
focusedflg: true,
focusedStatus: true,
val1: '',
billCode: '',
dataList: [],
@@ -100,7 +100,7 @@
let res = await stoutConfirm(this.val1)
this.disabled1 = false
this.val1 = ''
this.focusedflg = true
this.focusedStatus = true
this._stivtDtlQuery()
uni.showToast({
title: res.message,

View File

@@ -8,18 +8,19 @@
<span class="filter_label">木箱</span>
</view>
<view class="filter_input_wraper">
<search-box v-model="val1" :focused="true"
<!-- <search-box v-model="val1" :focused="true" @handleChange="handleChange1" -->
<search-box v-model="val1" :focused="focusedStatus" @handleChange="handleChange1"
/>
</view>
</view>
<view class="filter_item">
<!-- <view class="filter_item">
<view class="filter_label_wraper">
<span class="filter_label">物料</span>
</view>
<view class="filter_input_wraper">
<search-box v-model="val2" />
</view>
</view>
</view> -->
<view class="filter_item">
<view class="filter_label_wraper">
<span class="filter_label">总净重</span>
@@ -76,6 +77,7 @@
},
data() {
return {
focusedStatus: true,
val1: '',
val2: '',
billCode: '',
@@ -89,6 +91,9 @@
this._virtualivtQuery()
},
methods: {
handleChange1 (e) {
this._virtualivtQuery()
},
goIn () {
uni.navigateTo({
url: `/pages/WarehouseManage/XuniDelivery`
@@ -104,12 +109,16 @@
this.net_weight_num = res.net_weight_num
},
async _virtualoutConfirm () {
if (!this.dataList.length) {
return
}
this.disabled1 = true
try {
let res = await virtualoutConfirm(this.dataList, this.val1)
this.disabled1 = false
this.val1 = ''
this.val2 = ''
this.focusedStatus = true
this._virtualivtQuery()
uni.showToast({
title: res.message,