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

Commit 9a40cb7d authored by jiangxiulong's avatar jiangxiulong

print

parent e5399cb6
...@@ -73,15 +73,17 @@ ...@@ -73,15 +73,17 @@
</div> </div>
<div class="btn-group-sm" id="toolbar" role="group"> <div class="btn-group-sm" id="toolbar" role="group">
<a class="btn btn-success multiple disabled" onclick="$.operate.removeAll('确定下单吗?', '/kylin/performancesExpress/placeOrder')" <a class="btn btn-success multiple disabled"
onclick="$.operate.removeAll('确定下单吗?', '/kylin/performancesExpress/placeOrder')"
shiro:hasPermission="kylin:performancesExpress:placeOrder"> shiro:hasPermission="kylin:performancesExpress:placeOrder">
批量下单 批量下单
</a> </a>
<a class="btn btn-danger multiple disabled" onclick="$.operate.removeAll('确定取消吗?', '/kylin/performancesExpress/cancelOrder', 'orderExpressId')" <a class="btn btn-danger multiple disabled"
onclick="$.operate.removeAll('确定取消吗?', '/kylin/performancesExpress/cancelOrder', 'orderExpressId')"
shiro:hasPermission="kylin:performancesExpress:cancelOrder"> shiro:hasPermission="kylin:performancesExpress:cancelOrder">
批量取消 批量取消
</a> </a>
<a class="btn btn-info multiple disabled" onclick="$.operate.removeAll('确定打印吗?', '/kylin/performancesExpress/printExpress', 'orderExpressId')" <a class="btn btn-info multiple disabled" onclick="printExpress()"
shiro:hasPermission="kylin:performancesExpress:printExpress"> shiro:hasPermission="kylin:performancesExpress:printExpress">
批量打印 批量打印
</a> </a>
...@@ -302,7 +304,9 @@ ...@@ -302,7 +304,9 @@
} }
function printExpress(orderExpressId) { function printExpress(orderExpressId) {
try{ var message = "确定打印吗?";
$.modal.confirm(message, function () {
try {
var LODOP = getLodop(); var LODOP = getLodop();
if (LODOP == undefined) { if (LODOP == undefined) {
return false; return false;
...@@ -315,7 +319,11 @@ ...@@ -315,7 +319,11 @@
var ids = [orderExpressId]; var ids = [orderExpressId];
data = {"ids": ids.join()}; data = {"ids": ids.join()};
} else { } else {
var rows = $.common.isEmpty(table.options.uniqueId) ? $.table.selectFirstColumns() : $.table.selectColumns(table.options.uniqueId); var rows = $.table.selectColumns("orderExpressId");
if (rows.length == 0) {
$.modal.alertWarning("请至少选择一条记录");
return;
}
data = {"ids": rows.join()}; data = {"ids": rows.join()};
} }
var configPrint = { var configPrint = {
...@@ -336,13 +344,14 @@ ...@@ -336,13 +344,14 @@
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);
}); });
} }
$.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