记得上下班打卡 | git大法好,push需谨慎

Commit 8d563ad4 authored by jiangxiulong's avatar jiangxiulong

演出批量打印增加确认和提示

parent 1da9aaf0
...@@ -100,6 +100,7 @@ ...@@ -100,6 +100,7 @@
} }
return str return str
} }
function printExpressData(dataInfo, jContact, jAddress, jTel, index, listLen) { function printExpressData(dataInfo, jContact, jAddress, jTel, index, listLen) {
var LODOP = getLodop(); var LODOP = getLodop();
LODOP.PRINT_INIT("运单打印"); LODOP.PRINT_INIT("运单打印");
...@@ -241,7 +242,9 @@ ...@@ -241,7 +242,9 @@
} }
function printExpress(performanceId) { function printExpress(performanceId) {
try{ var message = "确定打印吗?";
$.modal.confirm(message, function () {
try {
var LODOP = getLodop(); var LODOP = getLodop();
if (LODOP == undefined) { if (LODOP == undefined) {
return false; return false;
...@@ -270,13 +273,16 @@ ...@@ -270,13 +273,16 @@
var jTel = result.data.jtel; var jTel = result.data.jtel;
if (listLen > 0) { if (listLen > 0) {
$.each(expressList, function (index, value) { $.each(expressList, function (index, value) {
printExpressData(value, jContact, jAddress, jTel, index+1, listLen); printExpressData(value, jContact, jAddress, jTel, index + 1, listLen);
}); });
} else {
$.modal.msg("暂无需要打印的订单");
} }
$.modal.closeLoading(); $.modal.closeLoading();
} }
}; };
$.ajax(configPrint) $.ajax(configPrint)
});
} }
$(function () { $(function () {
......
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 to comment