Commit 872753a6 by LJM

移动端--复核页面--取消勾选时复核任务消失

parent 9325339e
Showing with 6 additions and 4 deletions
...@@ -695,7 +695,7 @@ ...@@ -695,7 +695,7 @@
* @param {Object} e * @param {Object} e
* @param {Object} type 1旧标签 批量扫描监听 * @param {Object} type 1旧标签 批量扫描监听
*/ */
switchChange(e) { switchChange(e, type) {
console.log('switch 发生 change 事件,携带值为', e.detail.value); console.log('switch 发生 change 事件,携带值为', e.detail.value);
if (type == 1) { if (type == 1) {
...@@ -756,13 +756,14 @@ ...@@ -756,13 +756,14 @@
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(i => this.list[i].stock_out_item_id); this.filter_id = filter_arr.map(i => this.list[i].stock_out_item_id);
//开启了批量搜索,如果取消勾选则删除 //开启了批量搜索,如果取消勾选则删除
if (this.is_batch) { if (this.is_batch) {
//取消勾选
if (!this.filter_list[index]) { if (!this.filter_list[index]) {
//开启了批量扫描,并且已扫描了入库单号
if (this.history_id.length > 0) {
this.history_id.splice(index, 1); this.history_id.splice(index, 1);
this.searchParams.stock_in_batch_sn = this.history_id.join(','); this.searchParams.stock_in_batch_sn = this.history_id.join(',');
//当检测到全部取消的时候不应该调用接口 //当检测到全部取消的时候不应该调用接口
if (this.history_id.length == 0) { if (this.history_id.length == 0) {
this.list = []; this.list = [];
...@@ -770,9 +771,10 @@ ...@@ -770,9 +771,10 @@
return false; return false;
} }
}
//搜索之后添加选择状态 //搜索之后添加选择状态
this.getData(data => { this.getData(data => {
console.log(data)
if (data.length > 0) { if (data.length > 0) {
const list = data; const list = data;
list.forEach((item, index) => { list.forEach((item, index) => {
......
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