Commit ead2e5c7 by LJM

css

parent 4493d0b4
Showing with 16 additions and 10 deletions
......@@ -153,7 +153,7 @@
is_submit: true,
input_flag: false,
page: 1,
limit: 200,
limit: 500,
index: 0,
array: ['入库批次号', '全量搜索'],
list: [],
......@@ -189,6 +189,7 @@
}
},
onShow() {
this.resetChange();
this.getData();
},
methods: {
......@@ -336,6 +337,7 @@
let val = event.target.value;
this.searchParams.search_keyword = '';
if (val) {
this.resetChange();
if (type == 1) {
//入库批次号 如果开启了批量搜索就不要跳转详情
this.input_flag = true;
......@@ -343,20 +345,17 @@
this.search_keyword = '';
this.search_keyword = val;
this.input_flag = false;
//记录历史搜索批次号
if (!this.history_id.includes(val)) {
this.history_id.push(val);
}
this.searchParams.search_keyword = this.history_id.join(',');
this.getData((data, msg) => {
//回调data里数据,加是否选中交互
if (data.length > 0) {
this.is_batch_active = true;
const list = data;
list.forEach((item, index) => {
this.list = data;
this.list.forEach((item, index) => {
this.filterChange(index);
});
}
......@@ -405,14 +404,13 @@
});
} else {
this.searchParams.search_keyword = val;
this.getData();
setTimeout(() => {
if (this.list.length == 1) {
this.getData((data, msg) => {
if (data.length == 1) {
uni.navigateTo({
url: '/pages/putaway/single?stock_in_batch_sn=' + this.list[0].stock_in_batch_sn + '&tally_id=' + this.list[0].tally_id
});
}
}, 800);
});
}
} else if (type == 2) {
//全量搜索
......@@ -422,6 +420,7 @@
this.getData();
}
} else {
this.resetChange();
this.getData();
this.input_flag = false;
}
......@@ -504,6 +503,13 @@
});
}
});
},
/**
* 重置
*/
resetChange() {
this.list = [];
this.page = 1;
}
}
};
......
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