From f2ff6608840174781d98e9cc0943682e7c7337be Mon Sep 17 00:00:00 2001
From: wtt <1985833171@qq.com>
Date: 星期三, 30 七月 2025 13:50:26 +0800
Subject: [PATCH] PDA单据新增和列表添加二维码功能
---
WebTM/views/WMS扫码模块/生产补料/Kf_MateReplenishOutBill_PDA.html | 45 +++++
WebTM/views/WMS扫码模块/生产领料/Kf_MateOutBill_PDA.html | 48 +++++
WebTM/views/WMS扫码模块/生产调拨/Kf_MoveStockBill_PDA.html | 47 +++++
WebTM/views/WMS扫码模块/生产入库/Kf_ProductInBill_PDA.html | 45 +++++
WebTM/views/WMS扫码模块/生产调拨/Kf_MoveStockBillList_PDA.html | 44 +++++
WebTM/views/WMS扫码模块/生产补料/Kf_MateReplenishOutBillList_PDA.html | 44 +++++
WebTM/views/WMS扫码模块/其他出库/Kf_OtherOutBill_PDA.html | 47 +++++
WebTM/views/WMS扫码模块/生产领料/Kf_MateOutBillList_PDA.html | 44 +++++
WebTM/layuiadmin/Scripts/webConfig.js | 2
WebTM/views/WMS扫码模块/其他出库/Kf_OtherOutBillList_PDA.html | 44 +++++
WebTM/views/WMS扫码模块/生产入库/Kf_ProductInBillList_PDA.html | 44 +++++
11 files changed, 440 insertions(+), 14 deletions(-)
diff --git a/WebTM/layuiadmin/Scripts/webConfig.js b/WebTM/layuiadmin/Scripts/webConfig.js
index d15d9b4..f675dce 100644
--- a/WebTM/layuiadmin/Scripts/webConfig.js
+++ b/WebTM/layuiadmin/Scripts/webConfig.js
@@ -7,7 +7,7 @@
//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/"; //浣欐�濇澃鏈湴閰嶇疆*/
diff --git "a/WebTM/views/WMS\346\211\253\347\240\201\346\250\241\345\235\227/\345\205\266\344\273\226\345\207\272\345\272\223/Kf_OtherOutBillList_PDA.html" "b/WebTM/views/WMS\346\211\253\347\240\201\346\250\241\345\235\227/\345\205\266\344\273\226\345\207\272\345\272\223/Kf_OtherOutBillList_PDA.html"
index 3cd0a0c..6fef1be 100644
--- "a/WebTM/views/WMS\346\211\253\347\240\201\346\250\241\345\235\227/\345\205\266\344\273\226\345\207\272\345\272\223/Kf_OtherOutBillList_PDA.html"
+++ "b/WebTM/views/WMS\346\211\253\347\240\201\346\250\241\345\235\227/\345\205\266\344\273\226\345\207\272\345\272\223/Kf_OtherOutBillList_PDA.html"
@@ -14,6 +14,7 @@
<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">
@@ -80,6 +81,9 @@
</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>
<!--澶辫触鎻愮ず闊�-->
@@ -287,6 +291,46 @@
//#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 鍒犻櫎鍔熻兘鎺т欢
diff --git "a/WebTM/views/WMS\346\211\253\347\240\201\346\250\241\345\235\227/\345\205\266\344\273\226\345\207\272\345\272\223/Kf_OtherOutBill_PDA.html" "b/WebTM/views/WMS\346\211\253\347\240\201\346\250\241\345\235\227/\345\205\266\344\273\226\345\207\272\345\272\223/Kf_OtherOutBill_PDA.html"
index 9215a30..2a91686 100644
--- "a/WebTM/views/WMS\346\211\253\347\240\201\346\250\241\345\235\227/\345\205\266\344\273\226\345\207\272\345\272\223/Kf_OtherOutBill_PDA.html"
+++ "b/WebTM/views/WMS\346\211\253\347\240\201\346\250\241\345\235\227/\345\205\266\344\273\226\345\207\272\345\272\223/Kf_OtherOutBill_PDA.html"
@@ -15,6 +15,7 @@
<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%;
@@ -162,8 +163,13 @@
<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">
@@ -1357,7 +1363,7 @@
parent.location.href = "../../WMS鎵爜妯″潡/鍏朵粬鍑哄簱/Kf_OtherOutBillList_PDA.html";
}
else {
- parent.location.href = "../../../views/index_Mobile.html";
+ /*parent.location.href = "../../../views/index_Mobile.html";*/
}
}//鍏抽棴
}
@@ -1532,7 +1538,42 @@
//#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 鎵弿婧愬崟鏉$爜
//鎵弿婧愬崟鏉$爜
diff --git "a/WebTM/views/WMS\346\211\253\347\240\201\346\250\241\345\235\227/\347\224\237\344\272\247\345\205\245\345\272\223/Kf_ProductInBillList_PDA.html" "b/WebTM/views/WMS\346\211\253\347\240\201\346\250\241\345\235\227/\347\224\237\344\272\247\345\205\245\345\272\223/Kf_ProductInBillList_PDA.html"
index cab1a63..12e477a 100644
--- "a/WebTM/views/WMS\346\211\253\347\240\201\346\250\241\345\235\227/\347\224\237\344\272\247\345\205\245\345\272\223/Kf_ProductInBillList_PDA.html"
+++ "b/WebTM/views/WMS\346\211\253\347\240\201\346\250\241\345\235\227/\347\224\237\344\272\247\345\205\245\345\272\223/Kf_ProductInBillList_PDA.html"
@@ -14,6 +14,7 @@
<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">
@@ -80,6 +81,9 @@
</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>
<!--澶辫触鎻愮ず闊�-->
@@ -287,6 +291,46 @@
//#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 鍒犻櫎鍔熻兘鎺т欢
diff --git "a/WebTM/views/WMS\346\211\253\347\240\201\346\250\241\345\235\227/\347\224\237\344\272\247\345\205\245\345\272\223/Kf_ProductInBill_PDA.html" "b/WebTM/views/WMS\346\211\253\347\240\201\346\250\241\345\235\227/\347\224\237\344\272\247\345\205\245\345\272\223/Kf_ProductInBill_PDA.html"
index 011e097..5b0a6fc 100644
--- "a/WebTM/views/WMS\346\211\253\347\240\201\346\250\241\345\235\227/\347\224\237\344\272\247\345\205\245\345\272\223/Kf_ProductInBill_PDA.html"
+++ "b/WebTM/views/WMS\346\211\253\347\240\201\346\250\241\345\235\227/\347\224\237\344\272\247\345\205\245\345\272\223/Kf_ProductInBill_PDA.html"
@@ -15,6 +15,7 @@
<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%;
@@ -140,8 +141,13 @@
<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">
@@ -1132,7 +1138,7 @@
parent.location.href = "../../WMS鎵爜妯″潡/鐢熶骇鍏ュ簱/Kf_ProductInBillList_PDA.html";
}
else {
- parent.location.href = "../../../views/index_Mobile.html";
+ /*parent.location.href = "../../../views/index_Mobile.html";*/
}
}//鍏抽棴
}
@@ -1294,6 +1300,41 @@
//#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 鎵弿婧愬崟鏉$爜
diff --git "a/WebTM/views/WMS\346\211\253\347\240\201\346\250\241\345\235\227/\347\224\237\344\272\247\350\241\245\346\226\231/Kf_MateReplenishOutBillList_PDA.html" "b/WebTM/views/WMS\346\211\253\347\240\201\346\250\241\345\235\227/\347\224\237\344\272\247\350\241\245\346\226\231/Kf_MateReplenishOutBillList_PDA.html"
index bdc8240..30185ad 100644
--- "a/WebTM/views/WMS\346\211\253\347\240\201\346\250\241\345\235\227/\347\224\237\344\272\247\350\241\245\346\226\231/Kf_MateReplenishOutBillList_PDA.html"
+++ "b/WebTM/views/WMS\346\211\253\347\240\201\346\250\241\345\235\227/\347\224\237\344\272\247\350\241\245\346\226\231/Kf_MateReplenishOutBillList_PDA.html"
@@ -14,6 +14,7 @@
<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">
@@ -80,6 +81,9 @@
</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>
<!--澶辫触鎻愮ず闊�-->
@@ -286,6 +290,46 @@
//#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 鍒犻櫎鍔熻兘鎺т欢
diff --git "a/WebTM/views/WMS\346\211\253\347\240\201\346\250\241\345\235\227/\347\224\237\344\272\247\350\241\245\346\226\231/Kf_MateReplenishOutBill_PDA.html" "b/WebTM/views/WMS\346\211\253\347\240\201\346\250\241\345\235\227/\347\224\237\344\272\247\350\241\245\346\226\231/Kf_MateReplenishOutBill_PDA.html"
index 169b558..abbacb3 100644
--- "a/WebTM/views/WMS\346\211\253\347\240\201\346\250\241\345\235\227/\347\224\237\344\272\247\350\241\245\346\226\231/Kf_MateReplenishOutBill_PDA.html"
+++ "b/WebTM/views/WMS\346\211\253\347\240\201\346\250\241\345\235\227/\347\224\237\344\272\247\350\241\245\346\226\231/Kf_MateReplenishOutBill_PDA.html"
@@ -15,6 +15,7 @@
<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%;
@@ -152,8 +153,13 @@
<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">
@@ -1194,7 +1200,7 @@
parent.location.href = "../../WMS鎵爜妯″潡/鐢熶骇琛ユ枡/Kf_MateReplenishOutBillList_PDA.html";
}
else {
- parent.location.href = "../../../views/index_Mobile.html";
+ /*parent.location.href = "../../../views/index_Mobile.html";*/
}
}//鍏抽棴
}
@@ -1369,6 +1375,41 @@
//#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 鎵弿婧愬崟鏉$爜
diff --git "a/WebTM/views/WMS\346\211\253\347\240\201\346\250\241\345\235\227/\347\224\237\344\272\247\350\260\203\346\213\250/Kf_MoveStockBillList_PDA.html" "b/WebTM/views/WMS\346\211\253\347\240\201\346\250\241\345\235\227/\347\224\237\344\272\247\350\260\203\346\213\250/Kf_MoveStockBillList_PDA.html"
index 2e1cf48..cc12b8a 100644
--- "a/WebTM/views/WMS\346\211\253\347\240\201\346\250\241\345\235\227/\347\224\237\344\272\247\350\260\203\346\213\250/Kf_MoveStockBillList_PDA.html"
+++ "b/WebTM/views/WMS\346\211\253\347\240\201\346\250\241\345\235\227/\347\224\237\344\272\247\350\260\203\346\213\250/Kf_MoveStockBillList_PDA.html"
@@ -14,6 +14,7 @@
<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">
@@ -80,6 +81,9 @@
</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>
<!--澶辫触鎻愮ず闊�-->
@@ -287,6 +291,46 @@
//#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 鍒犻櫎鍔熻兘鎺т欢
diff --git "a/WebTM/views/WMS\346\211\253\347\240\201\346\250\241\345\235\227/\347\224\237\344\272\247\350\260\203\346\213\250/Kf_MoveStockBill_PDA.html" "b/WebTM/views/WMS\346\211\253\347\240\201\346\250\241\345\235\227/\347\224\237\344\272\247\350\260\203\346\213\250/Kf_MoveStockBill_PDA.html"
index 506a80a..cd26e44 100644
--- "a/WebTM/views/WMS\346\211\253\347\240\201\346\250\241\345\235\227/\347\224\237\344\272\247\350\260\203\346\213\250/Kf_MoveStockBill_PDA.html"
+++ "b/WebTM/views/WMS\346\211\253\347\240\201\346\250\241\345\235\227/\347\224\237\344\272\247\350\260\203\346\213\250/Kf_MoveStockBill_PDA.html"
@@ -15,6 +15,7 @@
<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%;
@@ -199,8 +200,13 @@
<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">
@@ -1828,7 +1834,7 @@
parent.location.href = "../../WMS鎵爜妯″潡/鐢熶骇璋冩嫧/Kf_MoveStockBillList_PDA.html";
}
else {
- parent.location.href = "../../../views/index_Mobile.html";
+ /* parent.location.href = "../../../views/index_Mobile.html";*/
}
}//鍏抽棴
}
@@ -2021,7 +2027,42 @@
//#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 鎵弿婧愬崟鏉$爜
//鎵弿婧愬崟鏉$爜
diff --git "a/WebTM/views/WMS\346\211\253\347\240\201\346\250\241\345\235\227/\347\224\237\344\272\247\351\242\206\346\226\231/Kf_MateOutBillList_PDA.html" "b/WebTM/views/WMS\346\211\253\347\240\201\346\250\241\345\235\227/\347\224\237\344\272\247\351\242\206\346\226\231/Kf_MateOutBillList_PDA.html"
index 5646c0b..e7d0ad7 100644
--- "a/WebTM/views/WMS\346\211\253\347\240\201\346\250\241\345\235\227/\347\224\237\344\272\247\351\242\206\346\226\231/Kf_MateOutBillList_PDA.html"
+++ "b/WebTM/views/WMS\346\211\253\347\240\201\346\250\241\345\235\227/\347\224\237\344\272\247\351\242\206\346\226\231/Kf_MateOutBillList_PDA.html"
@@ -14,6 +14,7 @@
<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">
@@ -80,6 +81,9 @@
</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>
<!--澶辫触鎻愮ず闊�-->
@@ -287,6 +291,46 @@
//#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 鍒犻櫎鍔熻兘鎺т欢
diff --git "a/WebTM/views/WMS\346\211\253\347\240\201\346\250\241\345\235\227/\347\224\237\344\272\247\351\242\206\346\226\231/Kf_MateOutBill_PDA.html" "b/WebTM/views/WMS\346\211\253\347\240\201\346\250\241\345\235\227/\347\224\237\344\272\247\351\242\206\346\226\231/Kf_MateOutBill_PDA.html"
index 8374202..4e384cd 100644
--- "a/WebTM/views/WMS\346\211\253\347\240\201\346\250\241\345\235\227/\347\224\237\344\272\247\351\242\206\346\226\231/Kf_MateOutBill_PDA.html"
+++ "b/WebTM/views/WMS\346\211\253\347\240\201\346\250\241\345\235\227/\347\224\237\344\272\247\351\242\206\346\226\231/Kf_MateOutBill_PDA.html"
@@ -15,6 +15,7 @@
<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%;
@@ -155,8 +156,13 @@
<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">
@@ -1222,10 +1228,10 @@
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');
});//鏂板
@@ -1406,6 +1412,42 @@
//#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 鎵弿婧愬崟鏉$爜
--
Gitblit v1.9.1