Commit 13fc83b3 by LJM

香港wms-理货确认-卡板打印标签逻辑调整

parent 700f3180
...@@ -127,7 +127,10 @@ ...@@ -127,7 +127,10 @@
//如果【理货确认-板/箱 均不为0】,则【打印标签】打印类型只继承入仓号,打印类型默认为【散箱】标签数量1 批次为0(保持原默认值) //如果【理货确认-板/箱 均不为0】,则【打印标签】打印类型只继承入仓号,打印类型默认为【散箱】标签数量1 批次为0(保持原默认值)
if (this.printParams.box_num && this.printParams.board_num) { if (this.printParams.box_num && this.printParams.board_num) {
this.index_print_type = 0;
this.form.erp_order_sn = this.printParams.erp_order_sn; this.form.erp_order_sn = this.printParams.erp_order_sn;
this.form.label_num = this.printParams.box_num;
this.numberIndex = findIndexOrZero(this.numberArr, Number(this.printParams.board_num)); //匹配到卡板数就选中,否则就是默认0
return false; return false;
} }
......
...@@ -461,64 +461,70 @@ ...@@ -461,64 +461,70 @@
* 提交 * 提交
*/ */
submit(type) { submit(type) {
if (!this.form.erp_order_sn) { // if (!this.form.erp_order_sn) {
uni.showModal({ // uni.showModal({
title: '提示', // title: '提示',
content: '请输入入仓号', // content: '请输入入仓号',
showCancel: false // showCancel: false
}); // });
return false; // return false;
} // }
if (this.disabled) { // if (this.disabled) {
uni.showModal({ // uni.showModal({
content: '请检查该入仓号是否正确', // content: '请检查该入仓号是否正确',
showCancel: false // showCancel: false
}); // });
return false; // return false;
} // }
if (this.currentIndex == -1) { // if (this.currentIndex == -1) {
uni.showModal({ // uni.showModal({
content: '请选择清关费选项', // content: '请选择清关费选项',
showCancel: false // showCancel: false
}); // });
return false; // return false;
} // }
if (!this.form.box_num) { // if (!this.form.box_num) {
uni.showModal({ // uni.showModal({
content: '请填写箱子数', // content: '请填写箱子数',
showCancel: false // showCancel: false
}); // });
return false; // return false;
} // }
if (!this.form.board_num) { // if (!this.form.board_num) {
uni.showModal({ // uni.showModal({
content: '请填写板子数', // content: '请填写板子数',
showCancel: false // showCancel: false
}); // });
return false; // return false;
} // }
if (!this.form.gross_weight) { // if (!this.form.gross_weight) {
uni.showModal({ // uni.showModal({
content: '请填写箱毛重', // content: '请填写箱毛重',
showCancel: false // showCancel: false
}); // });
return false; // return false;
} // }
//商检图片必填 // //商检图片必填
if (this.isInspOrg) { // if (this.isInspOrg) {
// 使用every方法检查每个子数组是否满足条件 // // 使用every方法检查每个子数组是否满足条件
var isValid = this.goods_check_pic_list.every(subArray => subArray.length >= 2); // var isValid = this.goods_check_pic_list.every(subArray => subArray.length >= 2);
if (!isValid) { // if (!isValid) {
uni.showModal({ // uni.showModal({
content: '商检图片上传须大于2张', // content: '商检图片上传须大于2张',
showCancel: false // showCancel: false
}); // });
return false; // return false;
} // }
} // }
this.request(API.submitTallyGoods, 'POST', this.form, true).then(res => { this.request(API.submitTallyGoods, 'POST', this.form, true).then(res => {
//点击【确认提交并打印】跳转至【打印标签】页面
uni.navigateTo({
url: '/pages/tag/print?board_num=' + this.form.board_num + '&box_num=' + this.form.box_num + '&erp_order_sn=' + this.form.erp_order_sn
})
return false;
if (res.err_code === 0) { if (res.err_code === 0) {
uni.showModal({ uni.showModal({
title: '提示', title: '提示',
......
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