Commit 7f6c6a7f by LJM

bug

parent 8a5d98bf
......@@ -112,6 +112,7 @@
this.getData();
},
onShow() {
this.list = [];
this.getData();
},
methods: {
......@@ -155,6 +156,7 @@
icon: 'success'
});
setTimeout(() => {
this.list = [];
this.getData();
this.filter_id = [];
}, 2000);
......
......@@ -1071,11 +1071,10 @@
}
this.rePrintTagParams.stock_out_item_id = this.rePrintTagParams.stock_out_item_id.join(','); //出库明细ids
}
this.request(API.RePrintTag, 'POST', this.rePrintTagParams, true).then(res => {
if (res.code === 0) {
uni.showToast({
title: '操作成功',
title: '打印成功',
icon: 'success'
});
} else {
......@@ -1101,12 +1100,12 @@
title: '拣货成功',
icon: 'success'
});
//如果勾选了打印则触发打印
if (is_print) {
//如果勾选了打印则触发打印必须自营仓
if (this.is_print && this.warehouse_id == 9) {
this.rePrintTag(1);
}
// 根据 is_print 的值设置 setTimeout 的延迟时间
const timeoutDuration = (this.is_print && this.warehouse_id == 9) ? 4000 : 2000;
setTimeout(() => {
this.getData();
if (pick_qty_num == num) {
......@@ -1115,7 +1114,7 @@
} else {
this.picked_num = Number(this.picked_num) - pick_qty_num;
}
}, 4000);
}, timeoutDuration);
} else {
uni.showModal({
itle: '提示',
......
......@@ -18,7 +18,7 @@
</template>
<!-- 旧标签-->
<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>
</view>
<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