From e9880d27955ffc17915c9125b11c9d8b12027c2d Mon Sep 17 00:00:00 2001 From: hwh <332078369@qq.com> Date: 星期三, 10 七月 2024 10:54:26 +0800 Subject: [PATCH] 打印 --- HTML/js/public.js | 19 +++++++++++++++++++ 1 files changed, 19 insertions(+), 0 deletions(-) diff --git a/HTML/js/public.js b/HTML/js/public.js index 879c061..c184102 100644 --- a/HTML/js/public.js +++ b/HTML/js/public.js @@ -358,6 +358,7 @@ }); } +//鍒嗛〉鏍煎紡鍖� var FnParseData = function (res) { return { "code": res.code == 200 ? 0 : res.code, // 瑙f瀽鎺ュ彛鐘舵�� @@ -365,4 +366,22 @@ "count": res.data.Total, // 瑙f瀽鏁版嵁闀垮害 "data": res.data.Items // 瑙f瀽鏁版嵁鍒楄〃 }; +} + +//璋冪敤鎵撳嵃 +function openPrintDialog(printData, printType){ + layer.open({ + type: 2, + title: '鎵撳嵃', + // content: '../../js/hiprint/custom.html', + content: '/views/SystemSettings/PrintModule.html', + maxmin: true, + area: ['100%', '100%'], + data: printData, + success: function (layero, index) { + var body = layer.getChildFrame('body',index); + body.find('#printData').val(JSON.stringify(printData)); + body.find('#printType').val(printType); + } + }); } \ No newline at end of file -- Gitblit v1.8.0