Commit 42c55000 by LJM

打印优化

parent be37c05c
......@@ -116,6 +116,16 @@
//从理货确认页面过来的
if (this.from == 'tallyGoods') {
//一直保持连接
this.form.erp_order_sn = this.printParams.erp_order_sn; //赋值入仓号
//检查是否存在 "-"
if (this.form.erp_order_sn.includes('-')) {
//分割字符串
var parts = this.form.erp_order_sn.split('-');
var firstPart = parts[0];
var secondPart = parts[1];
this.form.erp_order_sn = firstPart; //赋值切割后的入仓号
this.form.batch = findIndexOrZero(this.numberArr, Number(secondPart)); //匹配批次号就选中,否则就是默认0
}
} else {
//停止搜索,节省系统资源
uni.stopBluetoothDevicesDiscovery({
......@@ -135,7 +145,6 @@
//如果【理货确认-板/箱 均不为0】,则【打印标签】打印类型只继承入仓号,打印类型默认为【散箱】标签数量1 批次为0(保持原默认值)
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.label_num = this.printParams.box_num;
this.numberIndex = findIndexOrZero(this.numberArr, Number(this.printParams.board_num)); //匹配到卡板数就选中,否则就是默认0
return false;
......@@ -145,13 +154,11 @@
if (this.printParams.box_num) {
this.index_print_type = 1;
this.form.label_num = this.printParams.box_num;
this.form.erp_order_sn = this.printParams.erp_order_sn;
}
//如果【理货确认-板】有数值,则【打印标签】打印类型为【卡板】并继承卡板数
if (this.printParams.board_num) {
this.index_print_type = 0;
this.form.erp_order_sn = this.printParams.erp_order_sn;
this.numberIndex = findIndexOrZero(this.numberArr, Number(this.printParams.board_num)); //匹配到卡板数就选中,否则就是默认0
}
......
......@@ -143,6 +143,7 @@
this.searchParams.ask_customer_sw_confirm_time = '';
this.searchParams.store_execute_time = this.date_format;
}
this.getAskNum();
this.getData();
},
/**
......
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