Commit 7f6c6a7f by LJM

bug

parent 8a5d98bf
...@@ -112,6 +112,7 @@ ...@@ -112,6 +112,7 @@
this.getData(); this.getData();
}, },
onShow() { onShow() {
this.list = [];
this.getData(); this.getData();
}, },
methods: { methods: {
...@@ -155,6 +156,7 @@ ...@@ -155,6 +156,7 @@
icon: 'success' icon: 'success'
}); });
setTimeout(() => { setTimeout(() => {
this.list = [];
this.getData(); this.getData();
this.filter_id = []; this.filter_id = [];
}, 2000); }, 2000);
......
...@@ -1071,11 +1071,10 @@ ...@@ -1071,11 +1071,10 @@
} }
this.rePrintTagParams.stock_out_item_id = this.rePrintTagParams.stock_out_item_id.join(','); //出库明细ids this.rePrintTagParams.stock_out_item_id = this.rePrintTagParams.stock_out_item_id.join(','); //出库明细ids
} }
this.request(API.RePrintTag, 'POST', this.rePrintTagParams, true).then(res => { this.request(API.RePrintTag, 'POST', this.rePrintTagParams, true).then(res => {
if (res.code === 0) { if (res.code === 0) {
uni.showToast({ uni.showToast({
title: '操作成功', title: '打印成功',
icon: 'success' icon: 'success'
}); });
} else { } else {
...@@ -1101,12 +1100,12 @@ ...@@ -1101,12 +1100,12 @@
title: '拣货成功', title: '拣货成功',
icon: 'success' icon: 'success'
}); });
//如果勾选了打印则触发打印必须自营仓
//如果勾选了打印则触发打印 if (this.is_print && this.warehouse_id == 9) {
if (is_print) {
this.rePrintTag(1); this.rePrintTag(1);
} }
// 根据 is_print 的值设置 setTimeout 的延迟时间
const timeoutDuration = (this.is_print && this.warehouse_id == 9) ? 4000 : 2000;
setTimeout(() => { setTimeout(() => {
this.getData(); this.getData();
if (pick_qty_num == num) { if (pick_qty_num == num) {
...@@ -1115,7 +1114,7 @@ ...@@ -1115,7 +1114,7 @@
} else { } else {
this.picked_num = Number(this.picked_num) - pick_qty_num; this.picked_num = Number(this.picked_num) - pick_qty_num;
} }
}, 4000); }, timeoutDuration);
} else { } else {
uni.showModal({ uni.showModal({
itle: '提示', itle: '提示',
......
...@@ -18,7 +18,7 @@ ...@@ -18,7 +18,7 @@
</template> </template>
<!-- 旧标签--> <!-- 旧标签-->
<template v-else-if="index == 1"> <template v-else-if="index == 1">
<input class="uni-input" placeholder="请输入旧标签查询" placeholder-style="color:#919399" focus v-model="searchParams.stock_in_batch_sn" @input="handleInput($event)" maxlength="8" /> <input class="uni-input" placeholder="请输入旧标签查询" placeholder-style="color:#919399" :focus="is_focus" v-model="searchParams.stock_in_batch_sn" @input="handleInput($event)" maxlength="8" />
</template> </template>
</view> </view>
<text class="iconfont icon-a-juxing11" @click="clearInput()" v-if="input_flag"></text> <text class="iconfont icon-a-juxing11" @click="clearInput()" v-if="input_flag"></text>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment