Commit d56ebc7d by LJM

bug

parent 7b88066b
...@@ -531,6 +531,12 @@ export default { ...@@ -531,6 +531,12 @@ export default {
if (type == 1) { if (type == 1) {
this.input_flag_position_name = true; this.input_flag_position_name = true;
this.getData(); this.getData();
//再次获取焦点
this.isFocus = false;
setTimeout(() => {
this.isFocus = true;
this.$forceUpdate();
}, 1500);
} else if (type == 2) { } else if (type == 2) {
//入库批次号 开启批量扫描 //入库批次号 开启批量扫描
if (this.is_batch) { if (this.is_batch) {
......
...@@ -957,9 +957,15 @@ export default { ...@@ -957,9 +957,15 @@ export default {
}); });
this.request(URL, 'POST', { page: this.page, limit: this.limit, ...this.searchParams }, false).then(res => { this.request(URL, 'POST', { page: this.page, limit: this.limit, ...this.searchParams }, false).then(res => {
if (res.code === 0) { if (res.code === 0) {
this.list = res.data.list; if (res.data.list.length > 0) {
this.filter_list = createArray(this.list.length, false); //过滤出待复核不为0的数据
typeof callback == 'function' && callback(res.data.list); var filteredList = res.data.list.filter(item => item.no_recheck_qty > 0);
this.list = filteredList;
this.filter_list = createArray(filteredList.length, false);
typeof callback == 'function' && callback(filteredList);
} else {
this.list = [];
}
} else { } else {
uni.showToast({ uni.showToast({
title: res.msg, title: res.msg,
......
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