From aa7a8daa767787cdd5849dc134ce11be86515a97 Mon Sep 17 00:00:00 2001 From: hwh <332078369@qq.com> Date: 星期三, 17 七月 2024 17:00:11 +0800 Subject: [PATCH] 视觉盘点 --- HTML/js/public.js | 25 ++++++++++++++++++++++--- 1 files changed, 22 insertions(+), 3 deletions(-) diff --git a/HTML/js/public.js b/HTML/js/public.js index 879c061..7438589 100644 --- a/HTML/js/public.js +++ b/HTML/js/public.js @@ -13,7 +13,7 @@ { sendData(IP + "/Basis/GetFunSettingByNo?funSetNo="+"Fun013", {}, 'get', function (res) { console.log(res.data.SetValue) - if (res.code == 200) { //鎴愬姛 + if (res.code == 0) { //鎴愬姛 if(res.data.IsEnable == 'NO') { pageCnt = parseInt(res.data.SetValue); @@ -268,7 +268,7 @@ function GetIsSetColW() { sendData(IP + "/Basis/GetFunSettingByNo?funSetNo="+"Fun014", {}, 'get', function (res) { - if (res.code == 200) { //鎴愬姛 + if (res.code == 0) { //鎴愬姛 if(res.data.IsEnable == 'NO') { isSetColW=true; @@ -358,11 +358,30 @@ }); } +//鍒嗛〉鏍煎紡鍖� var FnParseData = function (res) { return { - "code": res.code == 200 ? 0 : res.code, // 瑙f瀽鎺ュ彛鐘舵�� + "code": res.code == 0 ? 0 : res.code, // 瑙f瀽鎺ュ彛鐘舵�� "msg": res.msg, // 瑙f瀽鎻愮ず鏂囨湰 "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