From 4c366ea123abc4a5606b635530d8537d9d44ac3f Mon Sep 17 00:00:00 2001
From: yusijie <ysj@hz-kingdee.com>
Date: 星期三, 07 一月 2026 20:42:41 +0800
Subject: [PATCH] 香囊标签打印站设置最短打印间隔控制,设置打印模板,添加主动过站;过站解绑模块,输入款添加点击选中功能,添加回车查询功能;香囊关键件绑定,输入框添加点击选中功能,保存成功后主动刷新过站单号;蓝牙关键件绑定,如果扫描的关键件条码不存在,则主动存入到条码档案;条码批量补打模块
---
WebTM/views/车间管理/单品过站_小卫/Cj_SachetBarCodePrint.html | 51 ++++++
WebTM/views/车间管理/单品过站_小卫/Cj_ProcessItemStationPlatform_batchKeyElement.html | 13 +
WebTM/views/车间管理/单品过站_小卫/Cj_ProcessItemStationPlatform_KeyElement_Sec.html | 5
WebTM/views/车间管理/单品过站_小卫/Cj_BarCodeBatchPrint.html | 366 +++++++++++++++++++++++++++++++++++++++++++++
WebTM/views/车间管理/单品过站_小卫/Cj_ProcessItemStationPlatform_UnbindList.html | 38 ++++
WebTM/WebTM.csproj | 5
6 files changed, 466 insertions(+), 12 deletions(-)
diff --git a/WebTM/WebTM.csproj b/WebTM/WebTM.csproj
index baae96d..53ffe0b 100644
--- a/WebTM/WebTM.csproj
+++ b/WebTM/WebTM.csproj
@@ -963,6 +963,7 @@
<Content Include="views\杞﹂棿绠$悊\鍗曞搧杩囩珯_灏忓崼\Cj_ProcessItemStationPlatform_batch.html" />
<Content Include="views\杞﹂棿绠$悊\鍗曞搧杩囩珯_灏忓崼\Cj_BlueToothBarCodePrint.html" />
<Content Include="views\杞﹂棿绠$悊\鍗曞搧杩囩珯_灏忓崼\Cj_SachetBarCodePrint.html" />
+ <Content Include="views\杞﹂棿绠$悊\鍗曞搧杩囩珯_灏忓崼\Cj_BarCodeBatchPrint.html" />
<Content Include="views\杞﹂棿绠$悊\鍚姩鐐规鍗昞Gy_WorkBeginDotCheckListBill_Excel.html" />
<Content Include="views\杞﹂棿绠$悊\鍚姩鐐规鍗昞Sc_WorkBeginDotCheckBill.html" />
<Content Include="views\杞﹂棿绠$悊\鍚姩鐐规鍗昞Sc_WorkBeginDotCheckBillList.html" />
@@ -2709,10 +2710,6 @@
</Compile>
<Compile Include="views\鍩虹璧勬枡\鍏敤鍩虹璧勬枡\xmlLBM_HGy_BarCodeBill_ZB.aspx.designer.cs">
<DependentUpon>xmlLBM_HGy_BarCodeBill_ZB.aspx</DependentUpon>
- </Compile>
- <Compile Include="views\鍩虹璧勬枡\鍏敤鍩虹璧勬枡\xmlLBM_xiaoweizutuo.aspx.cs">
- <DependentUpon>xmlLBM_xiaoweizutuo.aspx</DependentUpon>
- <SubType>ASPXCodeBehind</SubType>
</Compile>
<Compile Include="views\鍩虹璧勬枡\鍏敤鍩虹璧勬枡\xmlLBM_xiaoweizutuo.aspx.designer.cs">
<DependentUpon>xmlLBM_xiaoweizutuo.aspx</DependentUpon>
diff --git "a/WebTM/views/\350\275\246\351\227\264\347\256\241\347\220\206/\345\215\225\345\223\201\350\277\207\347\253\231_\345\260\217\345\215\253/Cj_BarCodeBatchPrint.html" "b/WebTM/views/\350\275\246\351\227\264\347\256\241\347\220\206/\345\215\225\345\223\201\350\277\207\347\253\231_\345\260\217\345\215\253/Cj_BarCodeBatchPrint.html"
new file mode 100644
index 0000000..3a74080
--- /dev/null
+++ "b/WebTM/views/\350\275\246\351\227\264\347\256\241\347\220\206/\345\215\225\345\223\201\350\277\207\347\253\231_\345\260\217\345\215\253/Cj_BarCodeBatchPrint.html"
@@ -0,0 +1,366 @@
+锘�<!DOCTYPE html>
+<html>
+<head>
+ <meta charset="utf-8" />
+ <title>鏉$爜鎵归噺鎵撳嵃</title>
+ <meta name="renderer" content="webkit">
+ <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
+ <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=0">
+ <link rel="stylesheet" href="../../../layuiadmin/layui/css/layui.css" media="all">
+ <link rel="stylesheet" href="../../../layuiadmin/style/admin.css" media="all">
+ <script src="../../../layuiadmin/layui/layui.js"></script>
+ <script src="../../../layuiadmin/layui/layui.js"></script>
+ <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/PubCustom.js"></script>
+ <script src="../../../layuiadmin/zgqCustom/zgqCustom.js"></script>
+ <script src="../../../layuiadmin/PageTitle.js"></script>
+ <script src="../../../layuiadmin/grwebapp.js"></script>
+ <style type="text/css">
+ .layui-form-item .layui-inline {
+ margin-right: 0;
+ }
+
+ html {
+ background-color: white;
+ color: white;
+ }
+
+ .layui-table-cell {
+ overflow: visible !important;
+ }
+
+ td .layui-form-select {
+ margin-top: -10px;
+ margin-left: -15px;
+ margin-right: -15px;
+ }
+
+ .layui-table th, .layui-table td {
+ white-space: nowrap; /* 涓嶆崲琛� */
+ overflow: hidden; /* 瓒呭嚭鍐呭闅愯棌 */
+ text-overflow: ellipsis; /* 鏄剧ず鐪佺暐鍙� */
+ }
+ </style>
+</head>
+<body>
+ <div class="layui-fluid" style="padding: 0;">
+ <div class="layui-card" style="padding: 15px;">
+ <div class="layui-card-body" style="padding: 1px;">
+ <form class="layui-form" lay-filter="component-form-group" action="">
+ <div class="layui-card-header">
+ <div class="layui-btn-group">
+ <button type="button" id="batchPrint-btn" class="layui-btn layui-btn-normal layui-btn-radius layui-btn-disabled" lay-submit="" lay-filter="get_BatchPrint" disabled>鎵归噺鎵撳嵃</button>
+ </div>
+ </div>
+ <div class="layui-tab" lay-filter="tab-BatchSplit">
+ <h1 style="text-align: center; padding: 10px 0;"><b>鏉$爜鎵归噺鎵撳嵃</b></h1>
+ </div>
+ <table class="layui-hide" id="mainTable" lay-filter="mainTable" style="margin-top:5px;"></table>
+ <script type="text/html" id="xuhao">
+ {{d.LAY_TABLE_INDEX+1}}
+ </script>
+ <script type="text/html" id="toolbarDemo">
+ <div class="layui-btn-container">
+ <button type="button" class="layui-btn layui-btn-sm" lay-event="btn-CopyLine"><i class="layui-icon layui-icon-form"></i>澶嶅埗涓�琛�</button>
+ </div>
+ </script>
+ </form>
+ </div>
+ </div>
+ </div>
+ <script type="text/html" id="barDemo">
+ <a class="layui-btn layui-btn-danger layui-btn-xs" lay-event="del">鍒犻櫎</a>
+ </script>
+ <script>
+ //#region 鎶樺彔娉ㄩ噴
+ //#endregion
+ layui.config({
+ base: '../../../layuiadmin/' //闈欐�佽祫婧愭墍鍦ㄨ矾寰�
+ }).extend({
+ index: 'lib/index' //涓诲叆鍙fā鍧�
+ }).use(['index', 'form', 'laydate', 'table', 'element', 'laydate'], function () {
+ //#region 鍏敤鍙橀噺
+ var $ = layui.$
+ , admin = layui.admin
+ , layer = layui.layer
+ , table = layui.table
+ , form = layui.form
+ , laydate = layui.laydate
+ , element = layui.element;
+ var sWhere = "";
+ var option;
+ //#endregion
+
+
+ //#region 杩涘叆椤甸潰鍗冲姞杞�
+
+ $('#batchPrint-btn').removeClass("layui-btn-disabled").attr("disabled", false);//鎵归噺鎵撳嵃鎸夐挳鍚敤
+
+ // 鍒濆鍖栫晫闈�
+ set_InitGrid();
+
+ //鑾峰彇椤甸潰璺宠浆鍙傛暟
+ var params = get_UrlVars();
+ if (typeof (params[params[0]]) == "undefined") {
+ var OperationType = 1;//鎿嶄綔绫诲瀷
+ } else {
+ var OperationType = params[params[0]];//鎿嶄綔绫诲瀷
+ var linterid = params[params[1]];//婧愬崟涓诲瓙id
+ var HSouceBillType = params[params[2]];//婧愬崟绫诲瀷
+ }
+
+ //鍒ゆ柇鎿嶄綔绫诲瀷
+ if (OperationType == 1) {//鏃犳簮鍗曟柊澧�
+ get_Display();
+ }
+ else {
+ layer.alert("鏈煡鎿嶄綔绫诲瀷锛�", { icon: 5 });
+ }
+
+ //#endregion
+
+ //#region 澶撮儴宸ュ叿鏍忎簨浠�
+ table.on('toolbar(mainTable)', function (obj) {
+ var checkStatus = table.checkStatus('mainTable')
+ , data = checkStatus.data;
+
+ data[0].HProQty = 0;
+ data[0].HSheetQty = Number(data[0].HSheetQty) + Number(1);
+
+ switch (obj.event) {
+
+ }
+ });
+ //#endregion
+
+ //#region 瑙﹀彂浜嬩欢锛氬寘鎷琭orm.on(){}鏍煎紡鐨勬墍鏈夌偣鍑讳簨浠躲�侀�夋嫨浜嬩欢绛�
+ //琛屽唴浜嬩欢
+ table.on('tool(mainTable)', function (obj) {
+ set_GridCellCheck(obj); //琛屽唴蹇嵎閿瓫閫�
+ set_GridDelete(obj); //琛屽唴鍒犻櫎
+
+ var data = obj.data; //鑾峰彇褰撳墠琛岀殑鏁版嵁 //灏唎bj.data 瀛楃涓茬被鍨� 璧嬪�肩粰data
+ if (obj.event == 'HDate') { //鍒ゆ柇鎺ュ彈鍒扮殑鏁版嵁瀛楁 id鏄惁涓� Hdata
+ var field = $(this).data('field');//鑾峰彇鏃ユ湡瀛楁
+ laydate.render({
+ elem: this.firstChild //灏嗘棩鏈熼�夋嫨鍣ㄧ粦瀹氬埌瑙﹀彂浜嬩欢鐨勫厓绱犵殑绗竴涓瓙鍏冪礌
+ , show: true //鐩存帴鏄剧ず 鏃ユ湡閫夋嫨鍣紝鑰屼笉鏄瓑寰呯敤鎴风偣鍑�
+ , closeStop: this // 鍒ゆ柇鐐瑰嚮鏃ユ湡閫夋嫨鍣ㄥ閮ㄦ椂鏄惁鍏抽棴
+ , done: function (nowDate) { //褰撴棩鏈熼�夋嫨瀹屾垚鏃舵墽琛岀殑鍥炶皟鍑芥暟
+ //鏃堕棿閫夋嫨瀹屾垚锛岃鏁版嵁鏇存柊
+ data[field] = nowDate; //data瀵硅薄涓殑鏃ユ湡瀛楁
+ obj.update(data); //鏇存柊鍥炶皟鏁版嵁
+ }
+ });
+ }
+ });
+
+ //鐩戝惉鍗曞厓鏍肩紪杈� 鍗曞厓鏍肩紪杈戝悗 鍙樻洿
+ table.on('edit(mainTable)', function (obj) {
+ var oldText = $(this).prev().text();
+ var value = obj.value //寰楀埌淇敼鍚庣殑鍊�
+ , data = obj.data //寰楀埌鎵�鍦ㄨ鎵�鏈夐敭鍊�
+ , field = obj.field; //寰楀埌瀛楁
+
+ switch (field) {
+ case "HProQty":
+ //鍚屾鏇存柊琛ㄦ牸鍜岀紦瀛樺搴旂殑鍊�
+ obj.update({
+ HProQty: value
+ });
+ break;
+ default:
+ }
+ table.render(option);
+ });
+
+ //鎵归噺鎵撳嵃
+ form.on('submit(get_BatchPrint)', function () {
+ get_BatchPrint();
+ })
+
+ //閫�鍑烘寜閽�
+ form.on('submit(Exit)', function () {
+ if (params[1] != null) {
+ Pub_Close(1);
+ } else if (params[1] == null) {
+ Pub_Close(2);
+ }
+ })
+ //#endregion
+
+ //#region 椤甸潰鏂规硶
+ //鍒濆鍖栭〉闈�
+ function set_InitGrid() {
+ option = {
+ elem: '#mainTable'
+ , toolbar: '#toolbarDemo'
+ , limit: 500
+ , height: 500
+ , loading: false
+ , cols: [[ //瀛愯〃
+ { type: 'checkbox', totalRowText: '鍚堣琛�' }
+ , { type: 'numbers', title: '搴忓彿', width: 100, totalRow: true }
+ , { field: '涓鐮�', title: '涓鐮�', width: 280 }
+ ]]
+ }
+
+ //鍒濆琛ㄦ牸鏁版嵁
+ var rowdata = [{
+ "涓鐮�": ""
+ }];
+
+ option.data = rowdata;
+ table.render(option);
+ }
+
+ function get_Display() {
+ var sWhere = "select 鏇挎崲鍚庝腑绠辩爜缂栧彿 from zxgx1 where 鏇挎崲鍚庝腑绠辩爜缂栧彿 >= 'MZXHBHR7723CN5C005020AHW' order by 鏇挎崲鍚庝腑绠辩爜缂栧彿 asc"
+ $.ajax({
+ type: "GET",
+ url: GetWEBURL() + "/Gy_SOPBillList/WindowPrintList", //鏂规硶鎵�鍦ㄩ〉闈㈠拰鏂规硶鍚�
+ async: false,
+ data: { "sWhere": sWhere },
+ success: function (data) {
+ if (data.count == 1) { // 璇存槑楠岃瘉鎴愬姛浜嗭紝
+ var dataArr = [];
+ for (var i = 0; i < data.data.length; i++) {
+ dataArr.push({
+ "涓鐮�": data.data[i].鏇挎崲鍚庝腑绠辩爜缂栧彿
+ });
+ }
+ option.data = dataArr;
+ table.render(option);
+ }
+ else {
+ layer.msg(data.Message, { icon: 5 });
+ }
+ layer.closeAll("loading");
+ },
+ error: function (err) {
+ layer.msg("閿欒:" + err, { icon: 5 });
+ }
+ })
+ }
+
+
+ //鎵归噺鎵撳嵃
+ var time;
+ var num = 0;
+ function get_BatchPrint() {
+ var checkStatus = table.checkStatus('mainTable')
+ , data = checkStatus.data;
+
+ if (checkStatus.data.length > 0) {
+ //閫昏緫鍒犻櫎鏂规硶
+ layer.confirm("纭瑕佹壒閲忔墦鍗板悧?", { title: "纭" }, function (index) {
+ time = setInterval(function () {
+ dy_PL(data);
+ }, 10000);
+ //鍏抽棴褰撳墠frame
+ layer.close(index);
+ })
+ }
+ else {
+ layer.msg('璇烽�夋嫨鏁版嵁鎵撳嵃锛�');
+ }
+ }
+
+ function dy_PL(rest) {
+ var HInterID = rest[num].涓鐮�;
+ var sWhere = "exec h_p_Gy_GetCaseCodeInfo '" + HInterID + "'"
+
+ $.ajax({
+ type: "GET",
+ url: GetWEBURL() + "/Gy_SOPBillList/WindowPrintList", //鏂规硶鎵�鍦ㄩ〉闈㈠拰鏂规硶鍚�
+ async: false,
+ data: { "sWhere": sWhere },
+ success: function (data) {
+ if (data.count == 1) { // 璇存槑楠岃瘉鎴愬姛浜嗭紝
+
+ if (data.data.length != 0) {
+ var dataPrint = [];
+ for (var i = 0; i < data.data.length; i++) {
+ dataPrint.push(data.data[i])
+ }
+
+ var Customer = {
+ "Table": dataPrint
+ }
+
+ var args = {
+ type: "print",//鎵撳嵃妯″紡
+ //type: "preview",//棰勮妯″紡
+ showOptionDlg: false, //濡傛灉涓嶆樉绀烘墦鍗板璇濇鑰岀洿鎺ユ墦鍗帮紝灏嗘琛屾敞閲婂幓鎺夊嵆鍙�
+ report: urlAddRandomNo("../../grf/涓鐮佹槑缁哠N-鍥哄畾json.grf"),
+ data: Customer
+ };
+
+ console.log("鎵撳嵃锛�" + data.data[0].涓鐮�);
+ //var args = {
+ // report: urlAddRandomNo("../../grf/cs10.grf"),
+ // data: Customer
+ //};
+ webapp_ws_ajax_run(args);
+
+ if (rest.length <= num + 1) {
+ num = 0;
+ clearInterval(time);
+ } else {
+ num++;
+ }
+ } else {
+ layer.msg("鏌ユ棤鏁版嵁!");
+ }
+
+ }
+ else {
+ layer.msg(data.Message, { icon: 5 });
+ }
+ layer.closeAll("loading");
+ },
+ error: function (err) {
+ layer.msg("閿欒:" + err, { icon: 5 });
+ }
+ })
+
+ }
+
+ //琛ㄦ牸琛屽唴浜嬩欢鍒犻櫎
+ function set_GridDelete(obj) {
+ var data = obj.data;
+ var rowIndex = $(obj.tr).attr("data-index");
+ if (obj.event === 'del') {
+ layer.confirm('鐪熺殑鍒犻櫎琛屽悧锛�', function (index) {
+ if (rowIndex === '0') {
+ layer.msg('棣栬鏃犳硶鍒犻櫎锛侊紒锛�');
+ } else {
+ var oldData = table.cache["mainTable"];
+ oldData.splice(obj.tr.data('index'), 1)
+ option.data = oldData;//灏嗘暟鎹粦瀹氬埌data涓�
+
+ for (var i = 0; i < oldData.length; i++) {
+ if (option.data[i].HICMOInterID == data.HICMOInterID && option.data[i].HICMOEntryID == data.HICMOEntryID) {
+ option.data[i].HSheetQty = Number(option.data[i].HSheetQty) - Number(1);
+ }
+ }
+
+ table.render(option);
+ layer.close(index);
+ }
+ });
+ }
+ }
+
+
+ //#endregion
+
+
+ //浠ヤ笂鏄痩ayui妯″潡
+ });
+
+ </script>
+</body>
+</html>
\ No newline at end of file
diff --git "a/WebTM/views/\350\275\246\351\227\264\347\256\241\347\220\206/\345\215\225\345\223\201\350\277\207\347\253\231_\345\260\217\345\215\253/Cj_ProcessItemStationPlatform_KeyElement_Sec.html" "b/WebTM/views/\350\275\246\351\227\264\347\256\241\347\220\206/\345\215\225\345\223\201\350\277\207\347\253\231_\345\260\217\345\215\253/Cj_ProcessItemStationPlatform_KeyElement_Sec.html"
index 6c73f8b..371b9db 100644
--- "a/WebTM/views/\350\275\246\351\227\264\347\256\241\347\220\206/\345\215\225\345\223\201\350\277\207\347\253\231_\345\260\217\345\215\253/Cj_ProcessItemStationPlatform_KeyElement_Sec.html"
+++ "b/WebTM/views/\350\275\246\351\227\264\347\256\241\347\220\206/\345\215\225\345\223\201\350\277\207\347\253\231_\345\260\217\345\215\253/Cj_ProcessItemStationPlatform_KeyElement_Sec.html"
@@ -31,7 +31,7 @@
<div class="layui-row">
<div class="layui-input-block" style="display: inline-block; margin-left: 0px; float: left">
<label class="layui-form-label" style="padding-left:0px" id="">闀洉鐮�:</label>
- <input type="text" class="layui-input" name="HBarCode_SN" lay-verify="HBarCode_SN" autocomplete="off" placeholder="璇烽敭鍏ュ悗鍥炶溅" id="HBarCode_SN" style="width: 500px;">
+ <input type="text" class="layui-input" name="HBarCode_SN" lay-verify="HBarCode_SN" autocomplete="off" placeholder="璇烽敭鍏ュ悗鍥炶溅" id="HBarCode_SN" style="width: 500px;" onfocus="this.select();">
</div>
@@ -233,7 +233,7 @@
<div class="layui-tab-content" style="background-color: white;">
<div class="layui-input-block" style="display: inline-block; margin-left:0px;">
<label class="layui-form-label" style="padding-left:0px" id="">鍏抽敭浠剁爜:</label>
- <input type="text" class="layui-input" name="HBarCode_Key" lay-verify="HBarCode_Key" autocomplete="off" placeholder="璇烽敭鍏ュ悗鍥炶溅" id="HBarCode_Key" style="width: 500px;float:left">
+ <input type="text" class="layui-input" name="HBarCode_Key" lay-verify="HBarCode_Key" autocomplete="off" placeholder="璇烽敭鍏ュ悗鍥炶溅" id="HBarCode_Key" style="width: 500px;float:left" onfocus="this.select();">
</div>
<div class="layui-tab-item layui-show">
@@ -895,6 +895,7 @@
$("#HBarCode_Key").focus();//鍏抽敭浠舵枃鏈閫変腑
option.data = JSON.parse(JSON.stringify(rowarr));
table.render(option);
+ createBillNo();
get_Display();
}
else {
diff --git "a/WebTM/views/\350\275\246\351\227\264\347\256\241\347\220\206/\345\215\225\345\223\201\350\277\207\347\253\231_\345\260\217\345\215\253/Cj_ProcessItemStationPlatform_UnbindList.html" "b/WebTM/views/\350\275\246\351\227\264\347\256\241\347\220\206/\345\215\225\345\223\201\350\277\207\347\253\231_\345\260\217\345\215\253/Cj_ProcessItemStationPlatform_UnbindList.html"
index 7644b85..349edf4 100644
--- "a/WebTM/views/\350\275\246\351\227\264\347\256\241\347\220\206/\345\215\225\345\223\201\350\277\207\347\253\231_\345\260\217\345\215\253/Cj_ProcessItemStationPlatform_UnbindList.html"
+++ "b/WebTM/views/\350\275\246\351\227\264\347\256\241\347\220\206/\345\215\225\345\223\201\350\277\207\347\253\231_\345\260\217\345\215\253/Cj_ProcessItemStationPlatform_UnbindList.html"
@@ -32,25 +32,25 @@
<div class="layui-inline">
<label class="layui-form-label" style="width: 85px;">宸ュ崟鍙�</label>
<div class="layui-input-block" style="margin-left: 120px;">
- <input type="text" class="layui-input ForFilteringSchemes" name="HICMOBillNo" id="HICMOBillNo">
+ <input type="text" class="layui-input ForFilteringSchemes" name="HICMOBillNo" id="HICMOBillNo" onfocus="this.select();">
</div>
</div>
<div class="layui-inline">
<label class="layui-form-label" style="width: 85px;">SN鐮�</label>
<div class="layui-input-block" style="margin-left: 120px;">
- <input type="text" class="layui-input ForFilteringSchemes" name="HBarcode_SN" id="HBarcode_SN">
+ <input type="text" class="layui-input ForFilteringSchemes" name="HBarcode_SN" id="HBarcode_SN" onfocus="this.select();">
</div>
</div>
<div class="layui-inline">
<label class="layui-form-label" style="width: 85px;">鏍堟澘鐮�</label>
<div class="layui-input-block" style="margin-left: 120px;">
- <input type="text" class="layui-input ForFilteringSchemes" name="HBarcode_ZB" id="HBarcode_ZB">
+ <input type="text" class="layui-input ForFilteringSchemes" name="HBarcode_ZB" id="HBarcode_ZB" onfocus="this.select();">
</div>
</div>
<div class="layui-inline">
<label class="layui-form-label" style="width: 85px;">涓鐮�</label>
<div class="layui-input-block" style="margin-left: 120px;">
- <input type="text" class="layui-input ForFilteringSchemes" name="HBarcode_ZX" id="HBarcode_ZX">
+ <input type="text" class="layui-input ForFilteringSchemes" name="HBarcode_ZX" id="HBarcode_ZX" onfocus="this.select();">
</div>
</div>
@@ -306,6 +306,34 @@
});
//#endregion
+ //宸ュ崟鍙峰洖杞︽柟娉�
+ $('#HICMOBillNo').on('keydown', function (event) {
+ if (event.keyCode == 13) {
+ get_FastQuery(2);
+ }
+ });
+
+ //SN鐮佸洖杞︽柟娉�
+ $('#HBarcode_SN').on('keydown', function (event) {
+ if (event.keyCode == 13) {
+ get_FastQuery(2);
+ }
+ });
+
+ //鏍堟澘鐮佸洖杞︽柟娉�
+ $('#HBarcode_ZB').on('keydown', function (event) {
+ if (event.keyCode == 13) {
+ get_FastQuery(2);
+ }
+ });
+
+ //涓鐮佸洖杞︽柟娉�
+ $('#HBarcode_ZX').on('keydown', function (event) {
+ if (event.keyCode == 13) {
+ get_FastQuery(2);
+ }
+ });
+
//#endregion
//#region 鏈〉闈㈡墍鏈夎璋冪敤鐨勬柟娉�
@@ -315,7 +343,7 @@
//鍒濆鍖栬〃鏍�
set_InitGrid();
//鏌ヨ
- get_FastQuery(1);
+ //get_FastQuery(1);
}
//#endregion
diff --git "a/WebTM/views/\350\275\246\351\227\264\347\256\241\347\220\206/\345\215\225\345\223\201\350\277\207\347\253\231_\345\260\217\345\215\253/Cj_ProcessItemStationPlatform_batchKeyElement.html" "b/WebTM/views/\350\275\246\351\227\264\347\256\241\347\220\206/\345\215\225\345\223\201\350\277\207\347\253\231_\345\260\217\345\215\253/Cj_ProcessItemStationPlatform_batchKeyElement.html"
index 2a0bb08..6afb790 100644
--- "a/WebTM/views/\350\275\246\351\227\264\347\256\241\347\220\206/\345\215\225\345\223\201\350\277\207\347\253\231_\345\260\217\345\215\253/Cj_ProcessItemStationPlatform_batchKeyElement.html"
+++ "b/WebTM/views/\350\275\246\351\227\264\347\256\241\347\220\206/\345\215\225\345\223\201\350\277\207\347\253\231_\345\260\217\345\215\253/Cj_ProcessItemStationPlatform_batchKeyElement.html"
@@ -398,6 +398,19 @@
$("#HBarCode_SN").focus();
return
}
+ if ($("#HBarCode_SN").val().substring(0, 5) == "51510") {
+ var sql = "exec h_p_Cj_BlueToothBarCodeSave '" + $("#HBarCode_Key").val() + "'," + option.data[0].HMaterID + "," + "100004" + ",'" + sessionStorage["HUserName"] + "'";
+ $.ajax({
+ type: "GET",
+ url: GetWEBURL() + "/Gy_SOPBillList/UpDelSQL", //鏂规硶鎵�鍦ㄩ〉闈㈠拰鏂规硶鍚�
+ async: false,
+ data: { "sWhere": sql },
+ success: function (result) {
+
+ }
+ })
+ }
+
if (HBarCode_Key) {
txtHBarCodeKey_KeyDown(HBarCode_Key);
}
diff --git "a/WebTM/views/\350\275\246\351\227\264\347\256\241\347\220\206/\345\215\225\345\223\201\350\277\207\347\253\231_\345\260\217\345\215\253/Cj_SachetBarCodePrint.html" "b/WebTM/views/\350\275\246\351\227\264\347\256\241\347\220\206/\345\215\225\345\223\201\350\277\207\347\253\231_\345\260\217\345\215\253/Cj_SachetBarCodePrint.html"
index 111cff2..937e6d4 100644
--- "a/WebTM/views/\350\275\246\351\227\264\347\256\241\347\220\206/\345\215\225\345\223\201\350\277\207\347\253\231_\345\260\217\345\215\253/Cj_SachetBarCodePrint.html"
+++ "b/WebTM/views/\350\275\246\351\227\264\347\256\241\347\220\206/\345\215\225\345\223\201\350\277\207\347\253\231_\345\260\217\345\215\253/Cj_SachetBarCodePrint.html"
@@ -274,6 +274,11 @@
//鏉$爜鐢熸垚
form.on('submit(ToolCreate)', function (data) {
+ if (Number($("#HTime").val()) < Number(3)) {
+ layer.msg("鎵撳嵃闂撮殧涓嶅厑璁稿皬浜�3绉掞紒")
+ return;
+ }
+
$('#ToolCreate').addClass("layui-btn-disabled").attr("disabled", true);//鐢熸垚鎸夐挳绂佺敤
SaveBarCodeCreate();
})
@@ -409,7 +414,7 @@
type: "print",//鎵撳嵃妯″紡
//type: "preview",//棰勮妯″紡
showOptionDlg: false, //濡傛灉涓嶆樉绀烘墦鍗板璇濇鑰岀洿鎺ユ墦鍗帮紝灏嗘琛屾敞閲婂幓鎺夊嵆鍙�
- report: urlAddRandomNo("../../grf/棣欏泭妯℃澘JSON.grf"),
+ report: urlAddRandomNo("../../grf/棣欏泭鏍囩JSON3.grf"),
data: Customer
};
@@ -440,6 +445,9 @@
}
})
+ //杩囩珯璁板綍淇濆瓨
+ txtHBarCodeSN_KeyDown(data.data[0].鏉$爜缂栧彿);
+
} else {
layer.msg("鏌ユ棤鏁版嵁!");
}
@@ -456,6 +464,47 @@
}
+ /**
+ * 棣欏泭淇℃伅杩囩珯
+ * @param HBarCode
+ */
+ //闀洉鐮佸洖杞︽煡璇�
+ function txtHBarCodeSN_KeyDown(HBarCode) {
+
+ var data = {
+ "field": {
+ "HProcID": "183340", "HBatchNo": "",
+ "HGroupID": "119", "HSourceID": 0,
+ "HPRDOrgID": sessionStorage["OrganizationID"],
+ "HEmpID": 0, "HDeptID": 0
+ }
+ };
+ var sMainStr = JSON.stringify(data.field);
+ var sSubStr = HBarCode;
+ var sMainSub = sMainStr + ';' + sSubStr + ';' + sessionStorage["HUserName"];
+
+ $.ajax({
+ type: "POST",
+ url: GetWEBURL() + "/Cj_SingleStation/AddStationOutBillList",
+ async: false,
+ data: { "sMainSub": sMainSub },
+ dataType: "json",
+ success: function (data1) {
+ if (data1.count == 1) {
+
+ }
+ else {
+ layer.msg(data1.Message, { icon: 5, btn: ["纭"], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "鍑虹幇閿欒" });
+ }
+
+ },
+ error: function (err) {
+ layer.msg(get_MessageError("閿欒:" + err, sessionStorage["HTranSlate"]), { icon: 5, btn: [get_MessageError('[0000-2-008]纭', sessionStorage["HTranSlate"])], time: 100000, offset: 't', skin: 'layui-layer-lan', title: get_MessageError("[0000-2-009]娓╅Θ鎻愮ず", sessionStorage["HTranSlate"]) });
+ }
+ });
+ }
+
+
//闈炵┖楠岃瘉
function AllowLoadData(sSubStr) {
var Result = true;
--
Gitblit v1.9.1