Commit 0711bc63 by LJM

修复图片重复bug

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