| | |
| | | //var WEBURL = "http://localhost:8082/LuBaoAPI/"; //æ¨ä¹æ¬å°é
ç½® |
| | | //var WEBURL = "http://localhost:8082/API/"; //æè´ºæ¬å°é
ç½® |
| | | var WEBURL = "http://localhost:8082/API/"; //å¼ ç广æ¬å°é
ç½® |
| | | //var WEBURL = "http://localhost:81/API/" //ç¿æ¶æ¶æ¬å°é
ç½® |
| | | var WEBURL = "http://localhost:81/API/" //ç¿æ¶æ¶æ¬å°é
ç½® |
| | | //var WEBURL = "http://localhost:8082/LuBaoAPI/"; //æ¨ä¹æ¬å°é
ç½® |
| | | //var WEBURL = "http://47.96.97.237/API/"; //æºäºæå¡å¨ |
| | | /* var WEBURL = "http://localhost:8082/LuBaoAPI/"; //ä½ææ°æ¬å°é
ç½®*/ |
| | |
| | | <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> |
| | | <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 class="layui-col-xs2" style="margin-left:5px"> |
| | | <button type="button" lay-submit="" style="width: 60px; float: right" lay-filter="cmdQRCode" class="layui-btn" id="cmdQRCode">äºç»´ç </button> |
| | | </div> |
| | | </div> |
| | | <!--失败æç¤ºé³--> |
| | |
| | | |
| | | //#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 å é¤åè½æ§ä»¶ |
| | | |
| | |
| | | <script src="../../../layuiadmin/Scripts/jquery-1.4.1.js"></script> |
| | | <script src="../../../layuiadmin/Scripts/webConfig.js"></script> |
| | | <script src="../../../layuiadmin/PubCustom.js"></script> |
| | | <script src="../../../layuiadmin/qrcode/qrcode.min.js"></script> |
| | | <style> |
| | | .layui-col-xs8 { |
| | | width: 55.666667%; |
| | |
| | | <div class="layui-col-xs3"> |
| | | <label class="layui-form-label" style="width:60px;padding-left:0px;">åæ®å·</label> |
| | | </div> |
| | | <div class="layui-col-xs9"> |
| | | <div class="layui-col-xs8"> |
| | | <input type="text" name="HBillNo" id="HBillNo" lay-verify="HBillNo" autocomplete="off" class="layui-input" style="border-radius: 5px;background-color:#efefef4d;" disabled> |
| | | </div> |
| | | <div class="layui-col-xs2"> |
| | | <button type="button" lay-submit="" lay-filter="generateQRCodeBtn" class="layui-btn" id="generateQRCodeBtn" style="width: 45px; margin-left: 10px; padding-left: 12px"> |
| | | <i class="layui-icon layui-icon-search layuiadmin-button-btn" style="margin-left:-2px;"></i> |
| | | </button> |
| | | </div> |
| | | </div> |
| | | <div class="layui-row"> |
| | |
| | | parent.location.href = "../../WMSæ«ç 模å/å
¶ä»åºåº/Kf_OtherOutBillList_PDA.html"; |
| | | } |
| | | else { |
| | | parent.location.href = "../../../views/index_Mobile.html"; |
| | | /*parent.location.href = "../../../views/index_Mobile.html";*/ |
| | | } |
| | | }//å
³é |
| | | } |
| | |
| | | |
| | | //#endregion |
| | | |
| | | |
| | | //#region äºç»´ç çæ |
| | | form.on('submit(generateQRCodeBtn)', function () { |
| | | showQRCode($("#HBillNo").val(), "åæ®äºç»´ç "); |
| | | }); |
| | | /** |
| | | * æ¾ç¤ºäºç»´ç å¼¹çª |
| | | * @param {string} content - è¦çæäºç»´ç çå
容 |
| | | * @param {string} title - å¼¹çªæ é¢ |
| | | */ |
| | | 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 æ«ææºåæ¡ç |
| | | |
| | | //æ«ææºåæ¡ç |
| | |
| | | <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> |
| | | <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 class="layui-col-xs2" style="margin-left:5px"> |
| | | <button type="button" lay-submit="" style="width: 60px; float: right" lay-filter="cmdQRCode" class="layui-btn" id="cmdQRCode">äºç»´ç </button> |
| | | </div> |
| | | </div> |
| | | <!--失败æç¤ºé³--> |
| | |
| | | |
| | | //#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 å é¤åè½æ§ä»¶ |
| | | |
| | |
| | | <script src="../../../layuiadmin/Scripts/jquery-1.4.1.js"></script> |
| | | <script src="../../../layuiadmin/Scripts/webConfig.js"></script> |
| | | <script src="../../../layuiadmin/PubCustom.js"></script> |
| | | <script src="../../../layuiadmin/qrcode/qrcode.min.js"></script> |
| | | <style> |
| | | .layui-col-xs8 { |
| | | width: 55.666667%; |
| | |
| | | <div class="layui-col-xs3"> |
| | | <label class="layui-form-label" style="width:60px;padding-left:0px;">åæ®å·</label> |
| | | </div> |
| | | <div class="layui-col-xs9"> |
| | | <div class="layui-col-xs8"> |
| | | <input type="text" name="HBillNo" id="HBillNo" lay-verify="HBillNo" autocomplete="off" class="layui-input" style="border-radius: 5px;background-color:#efefef4d;" disabled> |
| | | </div> |
| | | <div class="layui-col-xs2"> |
| | | <button type="button" lay-submit="" lay-filter="generateQRCodeBtn" class="layui-btn" id="generateQRCodeBtn" style="width: 45px; margin-left: 10px; padding-left: 12px"> |
| | | <i class="layui-icon layui-icon-search layuiadmin-button-btn" style="margin-left:-2px;"></i> |
| | | </button> |
| | | </div> |
| | | </div> |
| | | <div class="layui-row"> |
| | |
| | | parent.location.href = "../../WMSæ«ç 模å/ç产å
¥åº/Kf_ProductInBillList_PDA.html"; |
| | | } |
| | | else { |
| | | parent.location.href = "../../../views/index_Mobile.html"; |
| | | /*parent.location.href = "../../../views/index_Mobile.html";*/ |
| | | } |
| | | }//å
³é |
| | | } |
| | |
| | | |
| | | //#endregion |
| | | |
| | | //#region äºç»´ç çæ |
| | | form.on('submit(generateQRCodeBtn)', function () { |
| | | showQRCode($("#HBillNo").val(), "åæ®äºç»´ç "); |
| | | }); |
| | | /** |
| | | * æ¾ç¤ºäºç»´ç å¼¹çª |
| | | * @param {string} content - è¦çæäºç»´ç çå
容 |
| | | * @param {string} title - å¼¹çªæ é¢ |
| | | */ |
| | | 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 æ«ææºåæ¡ç |
| | | |
| | |
| | | <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> |
| | | <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 class="layui-col-xs2" style="margin-left:5px"> |
| | | <button type="button" lay-submit="" style="width: 60px; float: right" lay-filter="cmdQRCode" class="layui-btn" id="cmdQRCode">äºç»´ç </button> |
| | | </div> |
| | | </div> |
| | | <!--失败æç¤ºé³--> |
| | |
| | | |
| | | //#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 å é¤åè½æ§ä»¶ |
| | | |
| | |
| | | <script src="../../../layuiadmin/Scripts/jquery-1.4.1.js"></script> |
| | | <script src="../../../layuiadmin/Scripts/webConfig.js"></script> |
| | | <script src="../../../layuiadmin/PubCustom.js"></script> |
| | | <script src="../../../layuiadmin/qrcode/qrcode.min.js"></script> |
| | | <style> |
| | | .layui-col-xs8 { |
| | | width: 55.666667%; |
| | |
| | | <div class="layui-col-xs3"> |
| | | <label class="layui-form-label" style="width:60px;padding-left:0px;">åæ®å·</label> |
| | | </div> |
| | | <div class="layui-col-xs9"> |
| | | <div class="layui-col-xs8"> |
| | | <input type="text" name="HBillNo" id="HBillNo" lay-verify="HBillNo" autocomplete="off" class="layui-input" style="border-radius: 5px;background-color:#efefef4d;" disabled> |
| | | </div> |
| | | <div class="layui-col-xs2"> |
| | | <button type="button" lay-submit="" lay-filter="generateQRCodeBtn" class="layui-btn" id="generateQRCodeBtn" style="width: 45px; margin-left: 10px; padding-left: 12px"> |
| | | <i class="layui-icon layui-icon-search layuiadmin-button-btn" style="margin-left:-2px;"></i> |
| | | </button> |
| | | </div> |
| | | </div> |
| | | <div class="layui-row"> |
| | |
| | | parent.location.href = "../../WMSæ«ç 模å/ç产补æ/Kf_MateReplenishOutBillList_PDA.html"; |
| | | } |
| | | else { |
| | | parent.location.href = "../../../views/index_Mobile.html"; |
| | | /*parent.location.href = "../../../views/index_Mobile.html";*/ |
| | | } |
| | | }//å
³é |
| | | } |
| | |
| | | |
| | | //#endregion |
| | | |
| | | //#region äºç»´ç çæ |
| | | form.on('submit(generateQRCodeBtn)', function () { |
| | | showQRCode($("#HBillNo").val(), "åæ®äºç»´ç "); |
| | | }); |
| | | /** |
| | | * æ¾ç¤ºäºç»´ç å¼¹çª |
| | | * @param {string} content - è¦çæäºç»´ç çå
容 |
| | | * @param {string} title - å¼¹çªæ é¢ |
| | | */ |
| | | 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 æ«ææºåæ¡ç |
| | | |
| | |
| | | <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> |
| | | <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 class="layui-col-xs2" style="margin-left:5px"> |
| | | <button type="button" lay-submit="" style="width: 60px; float: right" lay-filter="cmdQRCode" class="layui-btn" id="cmdQRCode">äºç»´ç </button> |
| | | </div> |
| | | </div> |
| | | <!--失败æç¤ºé³--> |
| | |
| | | |
| | | //#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 å é¤åè½æ§ä»¶ |
| | | |
| | |
| | | <script src="../../../layuiadmin/Scripts/jquery-1.4.1.js"></script> |
| | | <script src="../../../layuiadmin/Scripts/webConfig.js"></script> |
| | | <script src="../../../layuiadmin/PubCustom.js"></script> |
| | | <script src="../../../layuiadmin/qrcode/qrcode.min.js"></script> |
| | | <style> |
| | | .layui-col-xs8 { |
| | | width: 55.666667%; |
| | |
| | | <div class="layui-col-xs3"> |
| | | <label class="layui-form-label" style="width:60px;padding-left:0px;">åæ®å·</label> |
| | | </div> |
| | | <div class="layui-col-xs9"> |
| | | <div class="layui-col-xs8"> |
| | | <input type="text" name="HBillNo" id="HBillNo" lay-verify="HBillNo" autocomplete="off" class="layui-input" style="border-radius: 5px;background-color:#efefef4d;" disabled> |
| | | </div> |
| | | <div class="layui-col-xs2"> |
| | | <button type="button" lay-submit="" lay-filter="generateQRCodeBtn" class="layui-btn" id="generateQRCodeBtn" style="width: 45px; margin-left: 10px; padding-left: 12px"> |
| | | <i class="layui-icon layui-icon-search layuiadmin-button-btn" style="margin-left:-2px;"></i> |
| | | </button> |
| | | </div> |
| | | </div> |
| | | <div class="layui-row"> |
| | |
| | | parent.location.href = "../../WMSæ«ç 模å/çäº§è°æ¨/Kf_MoveStockBillList_PDA.html"; |
| | | } |
| | | else { |
| | | parent.location.href = "../../../views/index_Mobile.html"; |
| | | /* parent.location.href = "../../../views/index_Mobile.html";*/ |
| | | } |
| | | }//å
³é |
| | | } |
| | |
| | | |
| | | //#endregion |
| | | |
| | | |
| | | //#region äºç»´ç çæ |
| | | form.on('submit(generateQRCodeBtn)', function () { |
| | | showQRCode($("#HBillNo").val(), "åæ®äºç»´ç "); |
| | | }); |
| | | /** |
| | | * æ¾ç¤ºäºç»´ç å¼¹çª |
| | | * @param {string} content - è¦çæäºç»´ç çå
容 |
| | | * @param {string} title - å¼¹çªæ é¢ |
| | | */ |
| | | 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 æ«ææºåæ¡ç |
| | | |
| | | //æ«ææºåæ¡ç |
| | |
| | | <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> |
| | | <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 class="layui-col-xs2" style="margin-left:5px"> |
| | | <button type="button" lay-submit="" style="width: 60px; float: right" lay-filter="cmdQRCode" class="layui-btn" id="cmdQRCode">äºç»´ç </button> |
| | | </div> |
| | | </div> |
| | | <!--失败æç¤ºé³--> |
| | |
| | | |
| | | //#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 å é¤åè½æ§ä»¶ |
| | | |
| | |
| | | <script src="../../../layuiadmin/Scripts/jquery-1.4.1.js"></script> |
| | | <script src="../../../layuiadmin/Scripts/webConfig.js"></script> |
| | | <script src="../../../layuiadmin/PubCustom.js"></script> |
| | | <script src="../../../layuiadmin/qrcode/qrcode.min.js"></script> |
| | | <style> |
| | | .layui-col-xs8 { |
| | | width: 55.666667%; |
| | |
| | | <div class="layui-col-xs3"> |
| | | <label class="layui-form-label" style="width:60px;padding-left:0px;">åæ®å·</label> |
| | | </div> |
| | | <div class="layui-col-xs9"> |
| | | <div class="layui-col-xs8"> |
| | | <input type="text" name="HBillNo" id="HBillNo" lay-verify="HBillNo" autocomplete="off" class="layui-input" style="border-radius: 5px;background-color:#efefef4d;" disabled> |
| | | </div> |
| | | <div class="layui-col-xs2"> |
| | | <button type="button" lay-submit="" lay-filter="generateQRCodeBtn" class="layui-btn" id="generateQRCodeBtn" style="width: 45px; margin-left: 10px; padding-left: 12px"> |
| | | <i class="layui-icon layui-icon-search layuiadmin-button-btn" style="margin-left:-2px;"></i> |
| | | </button> |
| | | </div> |
| | | </div> |
| | | <div class="layui-row"> |
| | |
| | | parent.location.href = "../../WMSæ«ç 模å/çäº§é¢æ/Kf_MateOutBillList_PDA.html"; |
| | | } |
| | | else { |
| | | parent.location.href = "../../../views/index_Mobile.html"; |
| | | /*parent.location.href = "../../../views/index_Mobile.html";*/ |
| | | } |
| | | }//å
³é |
| | | } |
| | | } |
| | | , function () { |
| | | location.replace('Kf_MateOutBill_PDA.html?OperationType=1&HInterID=0'); |
| | | });//æ°å¢ |
| | |
| | | |
| | | //#endregion |
| | | |
| | | //#region äºç»´ç çæ |
| | | form.on('submit(generateQRCodeBtn)', function () { |
| | | showQRCode($("#HBillNo").val(), "åæ®äºç»´ç "); |
| | | }); |
| | | /** |
| | | * æ¾ç¤ºäºç»´ç å¼¹çª |
| | | * @param {string} content - è¦çæäºç»´ç çå
容 |
| | | * @param {string} title - å¼¹çªæ é¢ |
| | | */ |
| | | 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 æ«ææºåæ¡ç |
| | | |