Browse Source

打印界面抬头显示为中文

guq 6 years ago
parent
commit
3590bcfee4
1 changed files with 18 additions and 1 deletions
  1. 18 1
      src/main/webapp/resources/js/preview/app.js

+ 18 - 1
src/main/webapp/resources/js/preview/app.js

@@ -28,7 +28,24 @@ var rendering = false;
 // 下一个要渲染的页面
 var nextRenderingPage;
 
-document.title = getParameter("reportName");
+var titleJson = {
+	"Purchase" : "采购订单",
+	"PurchaseIn" : "采购验收单",
+	"PurchaseOut" : "采购验退单",
+	"OtherIn" : "其它入库单",
+	"OtherOut" : "其它出库单",
+	"Sale" : "销售订单",
+	"SaleOut" : "出货单",
+	"SaleIn" : "销售退货单",
+	"PayBalance" : "付款单",
+	"OthReceipts" : "其它收入单",
+	"OthSpendings" : "其它支出单",
+	"Verification" : "核销单"
+};
+
+var title = titleJson[getParameter("reportName")];
+document.title = title ? title : getParameter("reportName");
+
 getWindowWidth();
 loadData();