Commit 48df2aa3 by LJM

移动端--按货品拣货--拆货打印标签的自动勾选问题

parent 236fd303
...@@ -564,7 +564,7 @@ ...@@ -564,7 +564,7 @@
<view class="print_type row verCenter"> <view class="print_type row verCenter">
<checkbox-group @change="onCheckboxChange"> <checkbox-group @change="onCheckboxChange">
<label> <label>
<checkbox value="1" color="#1969f9" style="transform:scale(0.7)" checked /> <checkbox value="1" color="#1969f9" style="transform:scale(0.7)" :checked="is_print" />
</label> </label>
</checkbox-group> </checkbox-group>
<text class="t1">拆货打印标签</text> <text class="t1">拆货打印标签</text>
...@@ -636,7 +636,7 @@ ...@@ -636,7 +636,7 @@
data() { data() {
return { return {
isApp: uni.getSystemInfoSync().platform === 'android' || uni.getSystemInfoSync().platform === 'ios', isApp: uni.getSystemInfoSync().platform === 'android' || uni.getSystemInfoSync().platform === 'ios',
is_print: true, //是否打印货品标签 is_print: false, //是否打印货品标签
old_Label: false, //旧标签默认false old_Label: false, //旧标签默认false
is_focus: false, //获取焦点动态化 is_focus: false, //获取焦点动态化
is_batch: true, //是否开启批量 is_batch: true, //是否开启批量
...@@ -900,10 +900,11 @@ ...@@ -900,10 +900,11 @@
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.is_print = false; //重置勾选状态
//如果单个等于整 默认就不勾选 //如果是散则自动勾选
if (data.pick_type_val == '') { if (data.pick_type_val == '') {
this.is_print = false; this.is_print = true;
} }
//若该货品整散标识为“散”货且该出库单据的仓库不为“深圳自营仓”时,则【拣货数量】字段,系统不自动填入 //若该货品整散标识为“散”货且该出库单据的仓库不为“深圳自营仓”时,则【拣货数量】字段,系统不自动填入
...@@ -933,6 +934,7 @@ ...@@ -933,6 +934,7 @@
this.formParams.pick_remark = ''; this.formParams.pick_remark = '';
this.$refs.showRightPackMultiPick.open(); this.$refs.showRightPackMultiPick.open();
this.image_list = []; //清空图片列表 this.image_list = []; //清空图片列表
this.is_print = false; //重置勾选状态
//先重置计数器 //先重置计数器
this.demolish_num = 0; this.demolish_num = 0;
...@@ -945,6 +947,7 @@ ...@@ -945,6 +947,7 @@
if (item.pick_type_val === '整') { if (item.pick_type_val === '整') {
} else if (item.pick_type_val === '散') { } else if (item.pick_type_val === '散') {
this.is_print = true; //含有“散”才自动勾选“拆货打印标签
this.demolish_num += 1; //计算拆货数量 this.demolish_num += 1; //计算拆货数量
this.goods_num += 2; //打印货品标签数量 this.goods_num += 2; //打印货品标签数量
} }
...@@ -1000,17 +1003,24 @@ ...@@ -1000,17 +1003,24 @@
//开启了批量搜索,如果取消勾选则删除 //开启了批量搜索,如果取消勾选则删除
if (this.is_batch) { if (this.is_batch) {
//取消勾选
if (!this.filter_list[index]) { 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) {
//history_id对应的索引跟搜索的list的索引相反,要根据入库批次号来删除
//当检测到全部取消的时候不应该调用接口 var searchItem = this.list[index].stock_in_batch_sn; //先找出对应的入库批次号对应的index
if (this.history_id.length == 0) { var sortIndex = this.history_id.indexOf(searchItem); //再找出对入库批次号在history_id对应的index
this.list = []; this.history_id.splice(sortIndex, 1);
this.search_keyword = ''; this.searchParams.stock_in_batch_sn = this.history_id.join(',');
//当检测到全部取消的时候不应该调用接口
if (this.history_id.length == 0) {
this.list = [];
this.search_keyword = '';
return false;
}
} else {
return false; return false;
} }
//搜索之后添加选择状态 //搜索之后添加选择状态
this.getData(data => { this.getData(data => {
if (data.length > 0) { if (data.length > 0) {
......
...@@ -836,7 +836,6 @@ ...@@ -836,7 +836,6 @@
this.search_keyword = ''; this.search_keyword = '';
return false; return false;
} }
} else { } else {
return false; return false;
} }
......
// 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