Commit 0711bc63 by LJM

修复图片重复bug

parent d165df6c
......@@ -937,7 +937,8 @@
tab(index) {
this.curr = index;
this.getData();
this.image_list = [];
this.image_list = []; //清空图片列表
this.server_image_list = []; //清空服务器图片列表
},
/**
* 展开弹窗
......@@ -954,6 +955,7 @@
this.picked_num = Number(data.lock_qty) - Number(data.pick_qty);
this.formParams.pick_qty = Number(data.lock_qty) - Number(data.pick_qty);
this.image_list = []; //清空图片列表
this.server_image_list = []; //清空服务器图片列表
this.is_print = false; //重置勾选状态
//如果是散则自动勾选
......@@ -973,6 +975,7 @@
this.$refs.showRightPack.open();
this.detailContainer = data;
this.image_list = []; //清空图片列表
this.server_image_list = []; //清空服务器图片列表
this.lock_ids = data.list.map(function(item) {
return item.lock_id;
});
......@@ -988,6 +991,7 @@
this.formParams.pick_remark = '';
this.$refs.showRightPackMultiPick.open();
this.image_list = []; //清空图片列表
this.server_image_list = []; //清空服务器图片列表
this.is_print = false; //重置勾选状态
//先重置计数器
......
......@@ -1199,7 +1199,8 @@
*/
tab(index) {
this.curr = index;
this.image_list = [];
this.image_list = []; //清空图片列表
this.server_image_list = []; //清空服务器图片列表
this.getData();
},
/**
......@@ -1443,11 +1444,13 @@
this.detail = data;
this.formParams.recheck_qty = data.no_recheck_qty;
this.image_list = []; //清空图片列表
this.server_image_list = []; //清空服务器图片列表
} else if (type == 2) {
//按容器复核
this.$refs.showRightPack.open();
this.detailContainer = data;
this.image_list = []; //清空图片列表
this.server_image_list = []; //清空服务器图片列表
this.stock_out_item_ids = data.list.map(function(item) {
return item.stock_out_item_id;
});
......@@ -1463,6 +1466,7 @@
this.stock_out_item_ids = this.filter_id;
this.$refs.showRightAll.open();
this.image_list = []; //清空图片列表
this.server_image_list = []; //清空服务器图片列表
}
},
/**
......
......@@ -810,7 +810,8 @@
});
return false;
}
this.image_list = []; //清空缓存的图片集合
this.image_list = []; //清空图片列表
this.server_image_list = []; //清空服务器图片列表
this.formParams.image_ids = ''; //每次打开先清空图片集合
this.formParams.tally_remark = ''; //每次打开先清空理货备注
this.$refs.showRight.open();
......
const API_BASE_USER = 'http://user.liexindev.net'; //用户系统
const API_BASE_PUR = 'http://pur.liexindev.net'; //采购系统
const API_BASE = 'http://wms.liexindev.net'; //WMS系统
const API_BASE_OSS = 'http://image.liexindev.net'; //oss系统
// const API_BASE_USER = 'http://user.liexindev.net'; //用户系统
// const API_BASE_PUR = 'http://pur.liexindev.net'; //采购系统
// const API_BASE = 'http://wms.liexindev.net'; //WMS系统
// const API_BASE_OSS = 'http://image.liexindev.net'; //oss系统
// const API_BASE_USER = 'https://user.ichunt.net'; //用户系统
// const API_BASE_PUR = 'https://purchase.ichunt.net'; //采购系统
// const API_BASE = 'https://wms.ichunt.net'; //WMS系统
// const API_BASE_OSS = 'https://image.ichunt.net'; //oss系统
const API_BASE_USER = 'https://user.ichunt.net'; //用户系统
const API_BASE_PUR = 'https://purchase.ichunt.net'; //采购系统
const API_BASE = 'https://wms.ichunt.net'; //WMS系统
const API_BASE_OSS = 'https://image.ichunt.net'; //oss系统
const API = {
......
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