From fba803c68cca239b4bf516f4a4a79f5ccadd683f Mon Sep 17 00:00:00 2001
From: 王 垚 <1402714037@qq.com>
Date: 星期三, 21 九月 2022 15:55:21 +0800
Subject: [PATCH] 外购墙布工资 增加扫条码
---
WebTM/views/工资管理/外购墙布工资/Pay_PurchaseWallclothBillEdit.html | 37 ++++++++++++++++++++++++++++++++-----
1 files changed, 32 insertions(+), 5 deletions(-)
diff --git "a/WebTM/views/\345\267\245\350\265\204\347\256\241\347\220\206/\345\244\226\350\264\255\345\242\231\345\270\203\345\267\245\350\265\204/Pay_PurchaseWallclothBillEdit.html" "b/WebTM/views/\345\267\245\350\265\204\347\256\241\347\220\206/\345\244\226\350\264\255\345\242\231\345\270\203\345\267\245\350\265\204/Pay_PurchaseWallclothBillEdit.html"
index 0373729..aed9d7c 100644
--- "a/WebTM/views/\345\267\245\350\265\204\347\256\241\347\220\206/\345\244\226\350\264\255\345\242\231\345\270\203\345\267\245\350\265\204/Pay_PurchaseWallclothBillEdit.html"
+++ "b/WebTM/views/\345\267\245\350\265\204\347\256\241\347\220\206/\345\244\226\350\264\255\345\242\231\345\270\203\345\267\245\350\265\204/Pay_PurchaseWallclothBillEdit.html"
@@ -178,10 +178,12 @@
<input type="text" name="HRemark" id="HRemark" class="layui-input" value="" style="float:left;">
</div>
</div>
- <div class="layui-col-xs4 layui-inline">
+ <div class="layui-col-xs4 layui-inline" >
<label class="layui-form-label">鏉$爜</label>
- <div class="layui-input-inline">
- <input type="text" name="HBarcode" id="HBarcode" class="layui-input" value="" style="float:left;">
+ <div class="layui-input-inline"style="float:left;width:220px;">
+ <!--<input type="text" name="HBarcode" id="HBarcode" class="layui-input" value="" style="float:left;">-->
+ <input type="text" name="HBarCode" id="HBarCode" placeholder="璇烽敭鍏ュ悗鍥炶溅" autocomplete="off" class="layui-input"style="float:left;width:150px;"><!--lay-verify="required"-->
+ <button type="button" lay-submit="" class="layui-btn" lay-filter="QueDin" name="QueDin" id="QueDin" style="width: 60px; background-color: #1492ff;color:white">纭畾</button>
</div>
</div>
</div>
@@ -299,7 +301,7 @@
$("#HMaker").val(sessionStorage["HUserName"]);
$("#HUpDateDate").val(Format(new Date(), "yyyy-MM-dd"));
$("#HUpDater").val(sessionStorage["HUserName"]);
- option.data = [{"HSelOrderNo": ""}];
+ option.data = [];
table.render(option);
}
else {
@@ -868,7 +870,32 @@
}
});
-
+ //鏉″舰鐮佸洖杞︽柟娉�
+ $('#HBarCode').on('keydown', function (event) {
+ if (event.keyCode == 13) {
+ GetMeesageByBarCode();
+ }
+ });
+ //鏉″舰鐮佺‘璁�
+ form.on('submit(QueDin)', function (data) {
+ GetMeesageByBarCode();
+ });
+ //鎵弿鏉″舰鐮佹柟娉�
+ function GetMeesageByBarCode() {
+ var HBarCode = $('#HBarCode').val();
+ if (!HBarCode) {
+ layer.msg("鏉″舰鐮佷笉鑳戒负绌猴紒")
+ return;
+ }
+ var index = layer.load();
+ var NewRow = { "HSelOrderNo": HBarCode };
+ table.cache["mainTable"].push(NewRow);
+ option.data = table.cache["mainTable"];
+ table.render(option);
+ layer.close(index);
+ $('#HBarCode').val();
+ $("#HBarCode").focus();
+ }
});
function GetHGroupID1(obj)
{
--
Gitblit v1.9.1