| | |
| | | <script src="../../../layuiadmin/Scripts/json2.js"></script> |
| | | <script src="../../../layuiadmin/Scripts/jquery-1.4.1.js"></script> |
| | | <script src="../../../layuiadmin/Scripts/webConfig.js"></script> |
| | | <script src="../../../layuiadmin/qrcode/qrcode.min.js"></script> |
| | | </head> |
| | | <body> |
| | | <div class="layui-fluid"> |
| | |
| | | <div class="layui-row" style="margin-top: 10px; margin-bottom: 10px; float: right;"> |
| | | <button type="button" lay-submit="" lay-filter="cmdQuery" class="layui-btn" id="cmdQuery">æ¥è¯¢</button> |
| | | <button type="button" lay-submit="" lay-filter="cmdRescind" class="layui-btn" id="cmdRescind">æ¤é</button> |
| | | <button type="button" lay-submit="" lay-filter="cmdQRCode" class="layui-btn" id="cmdQRCode">äºç»´ç </button> |
| | | </div> |
| | | <div class="layui-row"> |
| | | <div class="layui-col-xs12"> |
| | |
| | | <div class="layui-col-xs2" style="margin-left:5px"> |
| | | <button type="button" lay-submit="" style="width: 60px; float: right" lay-filter="cmdCancel" class="layui-btn" id="cmdCancel">éåº</button> |
| | | </div> |
| | | |
| | | </div> |
| | | <!--失败æç¤ºé³--> |
| | | <div id="" style="display:none;"> |
| | |
| | | |
| | | //#endregion |
| | | |
| | | //#region æ¾ç¤ºäºç»´ç |
| | | |
| | | form.on('submit(cmdQRCode)', function () { |
| | | var checkStatus = table.checkStatus('Uploaded-table') |
| | | , data = checkStatus.data; |
| | | if (checkStatus.data.length === 1) { |
| | | showQRCode(data[0].åæ®å·, "åæ®äºç»´ç "); |
| | | } |
| | | else { |
| | | layer.msg('请å
éä¸ä¸è¡æ°æ®ï¼'); |
| | | } |
| | | }); |
| | | |
| | | function showQRCode(content, title) { |
| | | // æ¾ç¤ºå¼¹çª |
| | | layer.open({ |
| | | type: 1, |
| | | title: title || 'äºç»´ç ', |
| | | skin: 'layui-layer-demo', // èªå®ä¹ç®è¤ |
| | | area: ['300px', '360px'], |
| | | closeBtn: 1, |
| | | shadeClose: true, |
| | | content: '<div style="text-align:center;padding:45px;">' + |
| | | '<div id="qrcode" style="margin-left: auto;"></div>' + |
| | | '<div style="">' + content + '</div></div>', |
| | | success: function (layero, index) { |
| | | // å¨å¼¹çªæåæå¼åçæäºç»´ç |
| | | new QRCode(document.getElementById("qrcode"), { |
| | | text: content, |
| | | width: 200, |
| | | height: 200, |
| | | colorDark: "#000000", |
| | | colorLight: "#ffffff", |
| | | correctLevel: QRCode.CorrectLevel.H |
| | | }); |
| | | } |
| | | }); |
| | | } |
| | | |
| | | //#endregion |
| | | |
| | | //#region å é¤åè½æ§ä»¶ |
| | | |
| | |
| | | $.ajax( |
| | | { |
| | | type: "Get", |
| | | url: GetWEBURL() + "/WEBSController/set_DelPonderationBillMain_Temp_New_Json", |
| | | url: GetWEBURL() + "/WEBSController/set_DelPonderationBillMain_Temp_Json", |
| | | async: false, //asyncç¨äºæ§å¶ï¼falseï¼åæ¥åï¼trueï¼å¼æ¥ï¼é»è®¤çæ¯trueï¼å³è¯·æ±é»è®¤çæ¯å¼æ¥è¯·æ± |
| | | data: { "HInterID": data[0].HInterID, "HBillNo": data[0].åæ®å·, "HBillType": HBillType, "HMaker": HMaker, "MvarReportTitle": MvarReportTitle }, |
| | | data: { "HInterID": data[0].HInterID, "HBillNo": data[0].åæ®å·, "HBillType": HBillType, "HMaker": HMaker, "HStockOrgID": HStockOrgID, "MvarReportTitle": MvarReportTitle }, |
| | | dataType: "json", |
| | | success: function (data) { |
| | | if (data.count == 1) { |