Commit 7c692d87 by liangjianmin

修复过滤器逻辑,确保正确获取选中项的 ID 和相关信息,并重置 swiper 当前页面索引

parent ef9935cb
Showing with 5 additions and 4 deletions
...@@ -541,7 +541,7 @@ ...@@ -541,7 +541,7 @@
page: 1, page: 1,
limit: 30, limit: 30,
index: 0, index: 0,
array: ['全量搜索', '入仓号', 'FedEx'], array: ['全量搜索', '入仓号', 'FedEX'],
list: [], list: [],
filter_list: [], //筛选已选中的列表 filter_list: [], //筛选已选中的列表
filter_id: [], //过滤处理的id filter_id: [], //过滤处理的id
...@@ -777,9 +777,9 @@ ...@@ -777,9 +777,9 @@
filterChange(index) { filterChange(index) {
this.$set(this.filter_list, index, (this.filter_list[index] = !this.filter_list[index])); this.$set(this.filter_list, index, (this.filter_list[index] = !this.filter_list[index]));
let filter_arr = this.findIndex(this.filter_list, true); let filter_arr = this.findIndex(this.filter_list, true);
this.filter_id = filter_arr.map(item => item.stock_in_id); this.filter_id = filter_arr.map(item => this.list[item].stock_in_id);
this.filter_id_warehouse_id = filter_arr.map(item => item.warehouse_id); this.filter_id_warehouse_id = filter_arr.map(item => this.list[item].warehouse_id);
this.filter_id_stock_in_sn = filter_arr.map(item => item.stock_in_sn); this.filter_id_stock_in_sn = filter_arr.map(item => this.list[item].stock_in_sn);
}, },
/** /**
* 全选 * 全选
...@@ -1294,6 +1294,7 @@ ...@@ -1294,6 +1294,7 @@
*/ */
showDrawer(stock_in_sn, type) { showDrawer(stock_in_sn, type) {
this.curr = 0; this.curr = 0;
this.swiperCurr = 0; // 重置 swiper 当前页面索引
if (type) { if (type) {
//深圳自营和第一次入库 //深圳自营和第一次入库
this.getZyGoodsData(stock_in_sn); this.getZyGoodsData(stock_in_sn);
......
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