Commit 872753a6 by LJM

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

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