New file |
| | |
| | | <!DOCTYPE html> |
| | | <html> |
| | | <head> |
| | | <meta http-equiv="Content-Type" content="text/html; 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, maximum-scale=1"> |
| | | <link rel="stylesheet" href="../../../layuiadmin/layui/css/layui.css" media="all"> |
| | | <link rel="stylesheet" href="../../../layuiadmin/style/admin.css" media="all"> |
| | | <script src="../../../layuiadmin/zgqCustom/zgqCustom.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="../../CreateControl.js"></script> |
| | | </head> |
| | | <body> |
| | | <div class="layui-fluid" style="padding: 0;"> |
| | | <div class="layui-card" style="padding: 2px;background-color: #efefef;"> |
| | | <div class="layui-card-body" style="padding: 1px;"> |
| | | <form class="layui-form" action="" lay-filter="formData" style="background-color:white;"> |
| | | <div style="padding: 10px;"> |
| | | <button class="layui-btn layui-btn-normal" style="margin-left: 0px" type="button" lay-submit="" lay-filter="btnSave" id="btnSave">ä¿å</button> |
| | | <button class="layui-btn layui-btn-normal" style="margin-left: 0px" type="button" lay-submit="" lay-filter="btnRefresh" id="btnRefresh">å·æ°</button> |
| | | <button class="layui-btn layui-btn-normal" style="margin-left: 0px" type="button" lay-submit="" lay-filter="btnExit" id="btnExit">éåº</button> |
| | | </div> |
| | | <h1 style="text-align:center;margin-bottom:25px;"><b>å
³é®ä»¶ç»å®</b></h1> |
| | | <div class="layui-form-item" style="padding-top: 3px;"> |
| | | <div class="layui-row" style="text-align: center;"> |
| | | <div class="layui-col-xs3 layui-inline" style="margin-left:205px;"> |
| | | <label class="layui-form-label">æµè½¬å¡</label> |
| | | <div class="layui-input-inline"> |
| | | <input type="text" class="layui-input" name="HProcessExchangeBillNo" id="HProcessExchangeBillNo" onfocus="this.select();"> |
| | | <input type="hidden" name="HProcessExchangeInterID" id="HProcessExchangeInterID" value="0"> |
| | | <input type="hidden" name="HProcessExchangeEntryID" id="HProcessExchangeEntryID" value="0"> |
| | | </div> |
| | | </div> |
| | | <div class="layui-col-xs3 layui-inline"> |
| | | <label class="layui-form-label">产åç </label> |
| | | <div class="layui-input-inline"> |
| | | <input type="text" class="layui-input" name="HBarCode_P" id="HBarCode_P" onfocus="this.select();"> |
| | | </div> |
| | | </div> |
| | | <div class="layui-col-xs3 layui-inline"> |
| | | <label class="layui-form-label">é
ä»¶ç </label> |
| | | <div class="layui-input-inline"> |
| | | <input type="text" class="layui-input" name="HBarCode" id="HBarCode" onfocus="this.select();"> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | <div class="layui-tab" lay-filter="tab-POStockInBill" style="width: 45%; float: left; height:calc(60vh);background-color:white;"> |
| | | <div class="layui-tab-content"> |
| | | <!--åºæ¬ä¿¡æ¯--> |
| | | <div class="layui-tab-item layui-show"> |
| | | <div class="layui-form-item" style="padding-top: 10px;"> |
| | | <div class="layui-row"> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label" style="width: 85px;">æ¥æ</label> |
| | | <div class="layui-input-block" style="margin-left: 120px;"> |
| | | <input type="date" class="layui-input" lay-verify="HDate" name="HDate" id="HDate" style="padding-left: 80px;width:184px;"> |
| | | </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" name="HBillNo" lay-verify="HBillNo" id="HBillNo" style="background-color:#EDEDED;" readonly> |
| | | <input type="hidden" name="HInterID" id="HInterID" lay-verify="HInterID"> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | <div class="layui-row"> |
| | | <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" name="HICMOBillNo" lay-verify="HICMOBillNo" id="HICMOBillNo" style=" background-color: #EDEDED;" readonly> |
| | | <input type="hidden" name="HICMOInterID" id="HICMOInterID" lay-verify="HICMOInterID"> |
| | | <input type="hidden" name="HICMOEntryID" id="HICMOEntryID" lay-verify="HICMOEntryID"> |
| | | </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" name="HSeOrderBillNo" lay-verify="HSeOrderBillNo" id="HSeOrderBillNo" style=" background-color: #EDEDED;" readonly> |
| | | <input type="hidden" name="HSeOrderInterID" id="HSeOrderInterID" lay-verify="HSeOrderInterID"> |
| | | <input type="hidden" name="HSeOrderEntryID" id="HSeOrderEntryID" lay-verify="HSeOrderEntryID"> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | <div class="layui-row"> |
| | | <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" name="HMaterNumber" lay-verify="HMaterNumber" id="HMaterNumber" style=" background-color: #EDEDED;" readonly> |
| | | <input type="hidden" name="HMaterID" id="HMaterID" lay-verify="HMaterID"> |
| | | </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" name="HMaterName" lay-verify="HMaterName" id="HMaterName" style=" background-color: #EDEDED;" readonly> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | <div class="layui-row"> |
| | | <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" name="HMaterModel" lay-verify="HMaterModel" id="HMaterModel" style=" background-color: #EDEDED;" readonly> |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label" style="width: 85px;padding: 9px 18px;">çäº§èµæº</label> |
| | | <div class="layui-input-block" style="margin-left: 77px;"> |
| | | <input type="text" class="layui-input" name="HSourceName" lay-verify="HSourceName" id="HSourceName" style="background-color: #EDEDED; width: 60%; display: inline-block;" readonly> |
| | | <input type="hidden" name="HSourceID" id="HSourceID" lay-verify="HSourceID" value="0"> |
| | | <button class="layui-btn layuiadmin-btn-order" type="button" lay-submit="" lay-filter="btnHSource" id="btnHSource" style="padding: 0 10px;float: right;margin-right: 3px;"> |
| | | <i class="layui-icon layui-icon-search layuiadmin-button-btn"></i> |
| | | </button> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | <div class="layui-row"> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label" style="width: 85px; padding: 9px 18px;">ç产车é´</label> |
| | | <div class="layui-input-block" style="margin-left: 77px;"> |
| | | <input type="text" class="layui-input" lay-verify="HDeptName" name="HDeptName" id="HDeptName" style="background-color: #EDEDED; width: 60%; display: inline-block;" readonly> |
| | | <input type="hidden" class="layui-input" lay-verify="HDeptID" name="HDeptID" id="HDeptID"> |
| | | <button class="layui-btn layuiadmin-btn-order" type="button" lay-submit="" lay-filter="btnHDept" id="btnHDept" style="padding: 0 10px;float: right;margin-right: 3px;"> |
| | | <i class="layui-icon layui-icon-search layuiadmin-button-btn"></i> |
| | | </button> |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label" style="width: 85px; padding: 9px 18px;">ç产çç»</label> |
| | | <div class="layui-input-block" style="margin-left: 77px;"> |
| | | <input type="text" class="layui-input" name="HGroupName" id="HGroupName" lay-verify="HGroupName" value="" style="background-color:#EDEDED;width: 60%;display: inline-block;" readonly> |
| | | <input type="hidden" class="layui-input" name="HGroupID" lay-verify="HGroupID" id="HGroupID" value="0"> |
| | | <button class="layui-btn layuiadmin-btn-order" type="button" lay-submit="" lay-filter="btnHGroup" id="btnHGroup" style="padding: 0 10px;float: right;margin-right: 3px;"> |
| | | <i class="layui-icon layui-icon-search layuiadmin-button-btn"></i> |
| | | </button> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | <div class="layui-row"> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label" style="width: 85px;padding: 9px 18px;">æä½å</label> |
| | | <div class="layui-input-block" style="margin-left: 77px;"> |
| | | <input type="text" class="layui-input" lay-verify="HEmpName" name="HEmpName" id="HEmpName" value="" style="background-color:#EDEDED;width: 60%;display: inline-block;" readonly> |
| | | <input type="hidden" class="layui-input" lay-verify="HEmpID" name="HEmpID" id="HEmpID" value="0"> |
| | | <button class="layui-btn layuiadmin-btn-order" type="button" lay-submit="" lay-filter="btnHEmp" id="btnHEmp" style="padding: 0 10px;float: right;margin-right: 3px;"> |
| | | <i class="layui-icon layui-icon-search layuiadmin-button-btn"></i> |
| | | </button> |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label" style="width: 85px;padding: 9px 18px;">è´¨æ£å</label> |
| | | <div class="layui-input-block" style="margin-left: 77px;"> |
| | | <input type="text" class="layui-input" lay-verify="HCheckEmpName" name="HCheckEmpName" id="HCheckEmpName" value="" style="background-color:#EDEDED;width: 60%;display: inline-block;" readonly> |
| | | <input type="hidden" class="layui-input" lay-verify="HCheckEmpID" name="HCheckEmpID" id="HCheckEmpID" value="0"> |
| | | <button class="layui-btn layuiadmin-btn-order" type="button" lay-submit="" lay-filter="btnHCheckEmp" id="btnHCheckEmp" style="padding: 0 10px;float: right;margin-right: 3px;"> |
| | | <i class="layui-icon layui-icon-search layuiadmin-button-btn"></i> |
| | | </button> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | <div class="layui-row"> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label" style="width: 85px;padding: 9px 18px;">å·¥åº</label> |
| | | <div class="layui-input-block" style="margin-left: 77px;"> |
| | | <input type="text" class="layui-input" name="HProcName" lay-verify="HProcName" id="HProcName" style="background-color: #EDEDED; width: 60%; display: inline-block;" readonly> |
| | | <input type="hidden" name="HProcID" id="HProcID" lay-verify="HProcID" value="0"> |
| | | <button class="layui-btn layuiadmin-btn-order" type="button" lay-submit="" lay-filter="btnHProc" id="btnHProc" style="padding: 0 10px;float: right;margin-right: 3px;"> |
| | | <i class="layui-icon layui-icon-search layuiadmin-button-btn"></i> |
| | | </button> |
| | | </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" name="HProcNo" lay-verify="HProcNo" id="HProcNo"> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | <div style="width: 0.2%; float: left; height: calc(60vh);background-color:#2baaca"></div> |
| | | <div class="layui-tab" lay-filter="tab-POStockInBill" style="width: 54.8%; float: left; height:calc(60vh);background-color:white;"> |
| | | <div style="width:100px;height:23px; background: linear-gradient(-135deg, transparent 30px, #2baaca 0);"><span style="color:aliceblue;">ç»å®ä¿¡æ¯</span></div> |
| | | <table class="layui-hide" id="mainTable" lay-filter="mainTable"></table> |
| | | </div> |
| | | <div class="layui-tab" lay-filter="tab-POStockInBill" style="width: 99.8%; float: left; height:calc(100vh);background-color:white;margin-left:0.2%"> |
| | | <div style="width:100%;height:23px; background-color: #2baaca;text-align:center;font-weight:bold"><span style="color:aliceblue;">åå²è®°å½</span></div> |
| | | <table class="layui-hide" id="detailTable" lay-filter="detailTable"></table> |
| | | </div> |
| | | </form> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | </body> |
| | | </html> |
| | | <script type="text/html" id="barDemo"> |
| | | <a class="layui-btn layui-btn-danger layui-btn-xs" lay-event="del">å é¤</a> |
| | | </script> |
| | | <script> |
| | | layui.config({ |
| | | base: '../../../layuiadmin/' //éæèµæºæå¨è·¯å¾ |
| | | }).extend({ |
| | | index: 'lib/index' //主å
¥å£æ¨¡å |
| | | }).use(['index', 'form', 'laydate', 'table', 'element'], function () { |
| | | //#region å
Œ
±åé |
| | | var $ = layui.$ |
| | | , admin = layui.admin |
| | | , layer = layui.layer |
| | | , table = layui.table |
| | | , form = layui.form |
| | | , element = layui.element; |
| | | |
| | | //å®ä¹å
¨å±åé |
| | | var HModName = "Sc_KeyElementBinding"; |
| | | var option = []; |
| | | var option_detail = []; |
| | | var setIntervalIndex = null; |
| | | //#endregion |
| | | |
| | | //#region è¿å
¥é¡µé¢å³å è½½ |
| | | set_ClearBill(); |
| | | |
| | | //#endregion |
| | | |
| | | //#region 触åäºä»¶ï¼å
æ¬form.on(){}æ ¼å¼çææç¹å»äºä»¶ãéæ©äºä»¶ç |
| | | |
| | | //#region æµè½¬å¡åè½¦æ¹æ³ |
| | | $('#HProcessExchangeBillNo').on('keydown', function (event) { |
| | | var HBarCode = $('#HProcessExchangeBillNo').val(); |
| | | if (event.keyCode == 13) { |
| | | if (!HBarCode) { |
| | | layer.msg("æµè½¬å¡ä¸è½ä¸ºç©ºï¼") |
| | | return; |
| | | } |
| | | //æ¥è¯¢æµè½¬å¡ç¸å
³ä¿¡æ¯ |
| | | get_ProcessExchangeList(HBarCode); |
| | | } |
| | | }); |
| | | //#endregion |
| | | |
| | | //#region 产åç åè½¦æ¹æ³ |
| | | $('#HBarCode_P').on('keydown', function (event) { |
| | | var HBarCode = $('#HBarCode_P').val(); |
| | | var HProcessExchangeBillNo = $('#HProcessExchangeBillNo').val(); |
| | | if (event.keyCode == 13) { |
| | | if (!HProcessExchangeBillNo) { |
| | | layer.msg("请å
æ«æµè½¬å¡ï¼") |
| | | return; |
| | | } else { |
| | | if (!HBarCode) { |
| | | layer.msg("æ¡å½¢ç ä¸è½ä¸ºç©ºï¼") |
| | | return; |
| | | } else { |
| | | //if (HBarCode.match(/[^\x00-\xff]/g) != null) { |
| | | // layer.alert("å¿
é¡»æ¯åè§å符!", { icon: 5, btn: ['éåº'], time: 100000, offset: 't' }); |
| | | // return; |
| | | //} |
| | | } |
| | | } |
| | | txtHProductBarCode_KeyDown(HBarCode); |
| | | } |
| | | }); |
| | | //#endregion |
| | | |
| | | //#region é
ä»¶åè½¦æ¹æ³ |
| | | $('#HBarCode').on('keydown', function (event) { |
| | | var HBarCode = $('#HBarCode').val(); |
| | | var HProcessExchangeBillNo = $('#HProcessExchangeBillNo').val(); |
| | | var HBarCode_P = $('#HBarCode_P').val(); |
| | | if (event.keyCode == 13) { |
| | | if (!HProcessExchangeBillNo || !HBarCode_P) { |
| | | layer.msg("请å
æ«æµè½¬å¡æäº§åç ï¼") |
| | | return; |
| | | } else { |
| | | if (!HBarCode) { |
| | | layer.msg("é
ä»¶ä¸è½ä¸ºç©ºï¼") |
| | | return; |
| | | } |
| | | } |
| | | txtHPartsBarCode_KeyDown(HBarCode); |
| | | } |
| | | }); |
| | | //#endregion |
| | | |
| | | //ç»å®ä¿¡æ¯è¡å
äºä»¶ |
| | | table.on('tool(mainTable)', function (obj) { |
| | | set_GridDelete(obj); //è¡å
å é¤ |
| | | }); |
| | | |
| | | //#region åºç¡èµææé® |
| | | //éæ©è´¨æ£å |
| | | form.on('submit(btnHCheckEmp)', function () { |
| | | btnHCheckEmp(); |
| | | }); |
| | | |
| | | //éæ©æä½å |
| | | form.on('submit(btnHEmp)', function () { |
| | | btnHEmp(); |
| | | }); |
| | | |
| | | //éæ©çäº§èµæº |
| | | form.on('submit(btnHSource)', function () { |
| | | btnHSource(); |
| | | }); |
| | | |
| | | //éæ©ç产çç»æé® |
| | | form.on('submit(btnHGroup)', function () { |
| | | btnHGroup(); |
| | | }); |
| | | |
| | | //éæ©çäº§è½¦é´æé® |
| | | form.on('submit(btnHDept)', function () { |
| | | btnHDept(); |
| | | }); |
| | | |
| | | //éæ©å·¥åºæé® |
| | | form.on('submit(btnHProc)', function () { |
| | | btnHProc(); |
| | | }); |
| | | //#endregion |
| | | |
| | | //ä¿å |
| | | form.on('submit(btnSave)', function (data) { |
| | | if (AllowLoadData(data)) { |
| | | set_SaveBill(data); |
| | | } |
| | | }); |
| | | |
| | | //éåº |
| | | form.on('submit(btnEdit)', function (data) { |
| | | if (params[1] != null) { |
| | | Pub_Close(1); |
| | | } else if (params[1] == null) { |
| | | Pub_Close(2); |
| | | } |
| | | }); |
| | | //#endregion |
| | | |
| | | //#region æ¤é¡µé¢ææçæ¹æ³ |
| | | |
| | | //#region åå§åçé¢ |
| | | function set_ClearBill() { |
| | | //è¿å
¥é¡µé¢é»è®¤å
æ 卿µè½¬å¡ä¸ |
| | | $("#HProcessExchangeBillNo").focus(); |
| | | |
| | | //è·ååæ®å· |
| | | $.ajax({ |
| | | url: GetWEBURL() + "/Web/GetMAXNumPDA", |
| | | type: "GET", |
| | | data: { "HBillType": '3727' }, |
| | | success: function (d) { |
| | | $("#HInterID").val(d.data[0].HInterID); |
| | | $("#HBillNo").val(d.data[0].HBillNo); |
| | | $("#HDate").val(Format(new Date(), "yyyy-MM-dd")); //é»è®¤ä¸ºå½åæ¥æ |
| | | } |
| | | }); |
| | | |
| | | //#region åºç¡èµæä¿¡æ¯æ ¹æ®ç¨æ·ç»å®å¸¦åº |
| | | $("#HSourceID").val(sessionStorage["HSourceID"]);//çäº§èµæºID |
| | | $("#HSourceName").val(sessionStorage["HSource"]);//çäº§èµæº |
| | | //$("#HDeptID").val(sessionStorage["HDeptID"]);//ç产车é´ID |
| | | //$("#HDeptName").val(sessionStorage["HDept"]);//çäº§è½¦é´ |
| | | $("#HGroupID").val(sessionStorage["HGroupID"]);//çç»ID |
| | | $("#HGroupName").val(sessionStorage["HGroup"]);//çç» |
| | | $("#HCheckEmpID").val(sessionStorage["HCheckEmpID"]);//è´¨æ£åID |
| | | $("#HCheckEmpName").val(sessionStorage["HCheckEmpName"]);//è´¨æ£åID |
| | | $("#HEmpID").val(sessionStorage["HEmpID"]);//æä½åID |
| | | $("#HEmpName").val(sessionStorage["HEmpName"]);//æä½å |
| | | //#endregion |
| | | |
| | | //åå§åç»å®ä¿¡æ¯è¡¨æ ¼ |
| | | set_InitGrid(); |
| | | //åå²ç»å®è®°å½æ¥è¯¢ |
| | | //get_Display(); |
| | | } |
| | | //#endregion |
| | | |
| | | //#region åå§åè¡¨æ ¼ |
| | | function set_InitGrid() { |
| | | //æ¬æ¬¡ç»å®ä¿¡æ¯ |
| | | option = { |
| | | elem: '#mainTable' |
| | | , page: false |
| | | , height: 'full-358' |
| | | , loading: false |
| | | , limit: 200 |
| | | , cols: [[ //ç»å®ä¿¡æ¯è¡¨ |
| | | { type: 'numbers', title: 'åºå·', width: 50 } |
| | | , { field: 'HBarCode_P', title: '产åç ', width: 265 } |
| | | , { field: 'HBarCode', title: 'é
ä»¶ç ', width: 265 } |
| | | , { field: 'HPartsQty', title: 'é
ä»¶æ°', width: 72 } |
| | | , { field: 'HBindingQty', title: 'å·²ç»æ°', width: 72 } |
| | | , { field: 'HMaterID', title: 'HMaterID', hide: true } |
| | | , { field: 'HMaterNumber', title: 'ç©æä»£ç ', width: 160 } |
| | | , { field: 'HMaterName', title: 'ç©æåç§°', width: 160 } |
| | | , { field: 'HMaterModel', title: 'è§æ ¼åå·', width: 160, hide: true } |
| | | , { field: 'HBatchNo', title: 'æ¹æ¬¡', width: 160 } |
| | | , { field: 'HSourceID', title: 'HSourceID', width: 160, hide: true } |
| | | , { field: 'HEquipID', title: 'HEquipID', width: 160, hide: true } |
| | | , { field: 'HGroupID', title: 'HGroupID', width: 160, hide: true } |
| | | , { field: 'HWorkerID', title: 'HWorkerID', width: 160, hide: true } |
| | | , { field: 'HScanDate', title: 'HScanDate', width: 160, hide: true } |
| | | , { field: 'HSourceInterID', title: 'HSourceInterID', width: 160, hide: true } |
| | | , { field: 'HSourceEntryID', title: 'HSourceEntryID', width: 160, hide: true } |
| | | , { field: 'HSourceBillNo', title: 'HSourceBillNo', width: 160, hide: true } |
| | | , { fixed: 'right', title: 'æä½', toolbar: '#barDemo', width: 66 } |
| | | ]] |
| | | } |
| | | //åå§è¡¨æ ¼æ°æ® |
| | | var rowdata = [{ |
| | | "HBarCode_P": "", "HBarCode": "", "HPartsQty": 0, "HBindingQty": 0, "HMaterID": 0, "HMaterNumber": "", "HMaterName": "", "HMaterModel": "" |
| | | , "HBatchNo": "", "HSourceID": 0, "HEquipID": 0, "HGroupID": 0, "HWorkerID": 0, "HScanDate": new Date(), "HSourceInterID": 0 |
| | | , "HSourceEntryID": 0, "HSourceBillNo": "" |
| | | }]; |
| | | option.data = []; |
| | | table.render(option); |
| | | |
| | | //åå²ç»å®ä¿¡æ¯ |
| | | option_detail = { |
| | | elem: '#detailTable' |
| | | , page: false |
| | | , height: 'full-30' |
| | | , loading: false |
| | | , limit: 2000 |
| | | , cols: [[ //åå²è®°å½è¡¨ |
| | | { type: 'numbers', title: 'åºå·', width: 50 } |
| | | , { field: 'HBarCode_P', title: '产åç ', width: 400 } |
| | | , { field: 'HBarCode', title: 'é
ä»¶ç ', width: 400 } |
| | | , { field: 'HPartsQty', title: 'é
ä»¶æ°é', width: 90 } |
| | | , { field: 'HMaterID', title: 'HMaterID', hide: true } |
| | | , { field: 'HMaterNumber', title: 'ç©æä»£ç ', width: 260 } |
| | | , { field: 'HMaterName', title: 'ç©æåç§°', width: 260 } |
| | | , { field: 'HMaterModel', title: 'è§æ ¼åå·', width: 160, hide: true } |
| | | , { field: 'HBatchNo', title: 'æ¹æ¬¡', width: 200 } |
| | | , { field: 'HSourceID', title: 'HSourceID', width: 160, hide: true } |
| | | , { field: 'HEquipID', title: 'HEquipID', width: 160, hide: true } |
| | | , { field: 'HGroupID', title: 'HGroupID', width: 160, hide: true } |
| | | , { field: 'HWorkerID', title: 'HWorkerID', width: 160, hide: true } |
| | | , { field: 'HScanDate', title: 'HScanDate', width: 160, hide: true } |
| | | , { field: 'HSourceInterID', title: 'HSourceInterID', width: 160, hide: true } |
| | | , { field: 'HSourceEntryID', title: 'HSourceEntryID', width: 160, hide: true } |
| | | , { field: 'HSourceBillNo', title: 'HSourceBillNo', width: 160, hide: true } |
| | | ]] |
| | | } |
| | | |
| | | option_detail.data = []; |
| | | table.render(option_detail); |
| | | } |
| | | //#endregion |
| | | |
| | | //#region ä¿åæ¹æ³ |
| | | function set_SaveBill(data) { |
| | | //åºåå表头信æ¯ååè¡¨ä¿¡æ¯ |
| | | var sMainStr = JSON.stringify(data.field); |
| | | var sSubStr = JSON.stringify(option.data); |
| | | //æ¼æ¥åæ° |
| | | var sMainSub = sMainStr + ';' + sSubStr + ';' + sessionStorage["HUserName"]; |
| | | |
| | | var index = layer.load(); |
| | | $.ajax({ |
| | | type: "POST", |
| | | url: GetWEBURL() + "/Sc_KeyElementBinding/Save", //æ¹æ³æå¨é¡µé¢åæ¹æ³å |
| | | async: true, |
| | | data: { "msg": sMainSub }, |
| | | dataType: "json", |
| | | success: function (data) { |
| | | if (data.count == 1) { // 说æéªè¯æåäºï¼ |
| | | layer.msg(data.Message, { icon: 1 }); |
| | | |
| | | $("#btnSave").addClass("layui-btn-disabled").attr("disabled", true); |
| | | layer.close(index); |
| | | } |
| | | else { |
| | | layer.alert(data.Message, { icon: 5 }); |
| | | layer.close(index); |
| | | } |
| | | }, |
| | | error: function (err) { |
| | | layer.alert("é误:" + err, { icon: 5 }); |
| | | layer.close(index); |
| | | } |
| | | }); |
| | | } |
| | | //#endregion |
| | | |
| | | //æ¥è¯¢ |
| | | function get_Display() { |
| | | var sWhere = " and ç¼ç ='" + sessionStorage["Czybm"] + "'"; |
| | | var ajaxLoad = layer.load(); |
| | | //è¿å
¥é¡µé¢æ¾ç¤ºçç¼åå表 |
| | | $.ajax({ |
| | | url: GetWEBURL() + '/Cj_SingleStation/Cj_CollectionOfSingleProductDefectsUserList', |
| | | type: "GET", |
| | | data: { "sWhere": sWhere, "user": sessionStorage["HUserName"] }, |
| | | success: function (data1) { |
| | | if (data1.count == 1) { |
| | | |
| | | $("#HDeptID").val(data1.data[0]["HDeptID"]); |
| | | $("#HDeptName").val(data1.data[0]["车é´"]); |
| | | $("#HProcName").val(data1.data[0]["å·¥åº"]); |
| | | $("#HProcID").val(data1.data[0]["HProcID"]); |
| | | $("#HSourceID").val(data1.data[0]["HSourceID"]); |
| | | $("#HSourceName").val(data1.data[0]["çäº§èµæº"]); |
| | | $("#HCheckEmpID").val(data1.data[0]["HCheckEmpID"]); |
| | | $("#HCheckEmpName").val(data1.data[0]["è´¨æ£å"]); |
| | | $("#HEmpID").val(data1.data[0]["HCheckEmpID"]); |
| | | $("#HEmpName").val(data1.data[0]["è´¨æ£å"]); |
| | | $("#HGroupID").val(data1.data[0]["HGroupID"]); |
| | | $("#HGroupName").val(data1.data[0]["ç产çç»"]); |
| | | layer.close(ajaxLoad); |
| | | |
| | | //layer.alert("æ¥è¯¢æå", { icon: 1 }); |
| | | } else { |
| | | layer.close(ajaxLoad); |
| | | layer.alert(data1.code + data1.Message, { icon: 5 }); |
| | | } |
| | | }, error: function () { |
| | | layer.close(ajaxLoad); |
| | | layer.alert("æ¥å£è¯·æ±å¤±è´¥!", { icon: 5 }); |
| | | } |
| | | }); |
| | | } |
| | | |
| | | //æµè½¬å¡å车æ¥è¯¢ï¼æ¥è¯¢æµè½¬å¡ç¸å
³ä¿¡æ¯ï¼ |
| | | function get_ProcessExchangeList(HBarCode) { |
| | | var ajaxLoad = layer.load(); |
| | | $.ajax({ |
| | | url: GetWEBURL() + '/Sc_KeyElementBinding/GetProcessExchangeList', |
| | | async: false, |
| | | type: "GET", |
| | | data: { "HBillNo": HBarCode, "user": sessionStorage["HUserName"] }, |
| | | success: function (data1) { |
| | | if (data1.count == 1) { |
| | | var data = data1.data; |
| | | |
| | | $("#HICMOInterID").val(data[0].HICMOInterID); |
| | | $("#HICMOEntryID").val(data[0].HICMOEntryID); |
| | | $("#HICMOBillNo").val(data[0].ç产订åå·); |
| | | $("#HSeOrderBillNo").val(data[0].éå®è®¢åå·); |
| | | $("#HMaterID").val(data[0].HMaterID); |
| | | $("#HMaterNumber").val(data[0].ç©æä»£ç ); |
| | | $("#HMaterName").val(data[0].ç©æåç§°); |
| | | $("#HMaterModel").val(data[0].è§æ ¼åå·); |
| | | $("#HDeptID").val(data[0].HDeptID); |
| | | $("#HDeptName").val(data[0].ç产车é´åç§°); |
| | | |
| | | |
| | | //ç¦ç¨è¾å
¥æ¡,èæ¯è²åç° |
| | | $("#HDate").prop('disabled', true);//ç¦ç¨ |
| | | $("#HDate").css('background', '#EDEDED')//èæ¯è²åç° |
| | | $("#HProcessExchangeBillNo").attr('disabled', 'disabled')//ç¦ç¨ |
| | | $("#HProcessExchangeBillNo").css('background', '#EDEDED')//èæ¯è²åç° |
| | | $("#HProcNo").attr('disabled', 'disabled')//ç¦ç¨ |
| | | $("#HProcNo").css('background', '#EDEDED')//èæ¯è²åç° |
| | | //æé®ç¦ç¨ |
| | | $("#btnHSource").addClass("layui-btn-disabled").attr("disabled", true);//çäº§èµæºæé®ç¦ç¨ |
| | | $("#btnHDept").addClass("layui-btn-disabled").attr("disabled", true);//çäº§è½¦é´æé®ç¦ç¨ |
| | | $("#btnHGroup").addClass("layui-btn-disabled").attr("disabled", true);//ç产çç»æé®ç¦ç¨ |
| | | $("#btnHEmp").addClass("layui-btn-disabled").attr("disabled", true);//æä½åæé®ç¦ç¨ |
| | | $("#btnHCheckEmp").addClass("layui-btn-disabled").attr("disabled", true);//è´¨æ£åæé®ç¦ç¨ |
| | | $("#btnHProc").addClass("layui-btn-disabled").attr("disabled", true);//å·¥åºæé®ç¦ç¨ |
| | | |
| | | //å
æ 跳转è³äº§åç è¾å
¥æ¡ä½ç½® |
| | | $("#HBarCode_P").focus(); |
| | | |
| | | layer.close(ajaxLoad); |
| | | } else { |
| | | layer.close(ajaxLoad); |
| | | layer.alert(data1.code + data1.Message, { icon: 5 }); |
| | | } |
| | | }, error: function () { |
| | | layer.close(ajaxLoad); |
| | | layer.alert("æ¥å£è¯·æ±å¤±è´¥!" + data1.Message, { icon: 5 }); |
| | | } |
| | | }); |
| | | } |
| | | |
| | | //产åç å车æ¥è¯¢ |
| | | function txtHProductBarCode_KeyDown(HBarCode) { |
| | | var HProcExchBillNo = $("#HProcessExchangeBillNo").val(); |
| | | var HBillNo = $("#HBillNo").val(); |
| | | var indexs = layer.load(); |
| | | $.ajax({ |
| | | type: "GET", |
| | | url: GetWEBURL() + "/Sc_KeyElementBinding/ProductBardCode_JX", |
| | | async: false, |
| | | data: { "HBarCode": HBarCode, "HProcExchBillNo": HProcExchBillNo, "HBillNo": HBillNo, "user": sessionStorage["HUserName"], "HOrgID": sessionStorage["OrganizationID"] }, |
| | | dataType: "json", |
| | | success: function (data1) { |
| | | if (data1.count == 1) { |
| | | var data = data1.data |
| | | var rowarr = []; |
| | | |
| | | for (var i = 0; i < data.length; i++) { |
| | | rowarr.push({ |
| | | "HBarCode_P": data[i].产åç , "HPartsBarCode": "", "HPartsQty": data[i].ååå项ç¨é, "HBindingQty": 0 |
| | | , "HMaterID": data[i].åé¡¹ç©æID, "HMaterNumber": "", "HMaterName": "", "HMaterModel": "", "HBatchNo": "" |
| | | , "HSourceID": $("#HSourceID").val(), "HEquipID": 0, "HGroupID": $("#HGroupID").val(), "HWorkerID": $("#HEmpID").val() |
| | | , "HScanDate": new Date(), "HSourceInterID": $("#HICMOInterID").val() |
| | | , "HSourceEntryID": $("#HICMOEntryID").val(), "HSourceBillNo": $("#HICMOBillNo").val() |
| | | }); |
| | | } |
| | | |
| | | option.data = rowarr; |
| | | |
| | | table.render(option); |
| | | |
| | | layer.close(indexs); |
| | | |
| | | //ç¦ç¨è¾å
¥æ¡,èæ¯è²åç° |
| | | $("#HBarCode_P").attr('disabled', 'disabled')//ç¦ç¨ |
| | | $("#HBarCode_P").css('background', '#EDEDED')//èæ¯è²åç° |
| | | //å
æ 跳转å°é
ä»¶ç ææ¬æ¡ä¸ |
| | | $("#HBarCode").focus(); |
| | | } |
| | | else { |
| | | layer.close(indexs); |
| | | layer.msg(data1.Message); |
| | | } |
| | | }, |
| | | error: function (err) { |
| | | layer.close(indexs); |
| | | layer.msg("é误:" + err, { icon: 5, btn: ['确认'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "温馨æç¤º" }); |
| | | } |
| | | }); |
| | | } |
| | | |
| | | //é
ä»¶ç å车æ¥è¯¢ |
| | | function txtHPartsBarCode_KeyDown(HBarCode) { |
| | | var indexs = layer.load(); |
| | | var HProcExchBillNo = $("#HProcessExchangeBillNo").val(); |
| | | var HBillNo = $("#HBillNo").val(); |
| | | $.ajax({ |
| | | type: "GET", |
| | | url: GetWEBURL() + "/Sc_KeyElementBinding/PartsBardCode_JX", |
| | | async: false, |
| | | data: { "HBarCode": HBarCode, "HProcExchBillNo": HProcExchBillNo, "HBillNo": HBillNo, "user": sessionStorage["HUserName"], "HOrgID": sessionStorage["OrganizationID"] }, |
| | | dataType: "json", |
| | | success: function (data1) { |
| | | if (data1.count == 1) { |
| | | var data = data1.data |
| | | |
| | | for (var i = 0; i < option.data.length; i++) { |
| | | if (data[0].HMaterID == option.data[i].HMaterID && option.data[i].HBindingQty < option.data[i].HPartsQty) { |
| | | option.data[i].HMaterID = data[0].HMaterID |
| | | option.data[i].HMaterNumber = data[0].ç©æä»£ç |
| | | option.data[i].HMaterName = data[0].ç©æåç§° |
| | | option.data[i].HMaterModel = data[0].è§æ ¼åå· |
| | | option.data[i].HBarCode = data[0].é
ä»¶ç |
| | | option.data[i].HBindingQty = option.data[i].HBindingQty + 1 |
| | | |
| | | break; |
| | | } else if (data[0].HMaterID == option.data[i].HMaterID && i == option.data.length - 1) { |
| | | layer.msg("第" + (i + 1) + "è¡å·²å
¨é¨ç»å®ï¼è¯·å¿è¶
éç»å®"); |
| | | } else if (data[0].HMaterID != option.data[i].HMaterID && i == option.data.length - 1) { |
| | | layer.msg("ææ«é
ä»¶ç ï¼" + HBarCode + " ,对åºç©æä¸å¨çäº§ç¨ææ¸
åä¸ï¼"); |
| | | } |
| | | } |
| | | |
| | | //option.data = rowarr; |
| | | |
| | | table.render(option); |
| | | //å
æ 跳转å°é
ä»¶ç ææ¬æ¡ä¸ |
| | | $("#HBarCode").focus(); |
| | | $("#HBarCode").val(""); |
| | | |
| | | layer.close(indexs); |
| | | } |
| | | else { |
| | | layer.close(indexs); |
| | | layer.msg(data1.Message); |
| | | } |
| | | }, |
| | | error: function (err) { |
| | | layer.close(indexs); |
| | | layer.msg("é误:" + err, { icon: 5, btn: ['确认'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "温馨æç¤º" }); |
| | | } |
| | | }); |
| | | } |
| | | |
| | | //è¡¨æ ¼è¡å
äºä»¶å é¤ |
| | | function set_GridDelete(obj) { |
| | | var data = obj.data; |
| | | var rowIndex = $(obj.tr).attr("data-index"); |
| | | if (obj.event === 'del') { |
| | | layer.confirm('ççå é¤è¡åï¼', function (index) { |
| | | |
| | | var wait = layer.load(); |
| | | //å é¤ä¸´æ¶è¡¨æ°æ® |
| | | $.ajax({ |
| | | url: GetWEBURL() + 'Deltet_Sc_AssemblyBill_BindBarCodeTemp', |
| | | type: "GET", |
| | | data: { "HBillNo": $("#HBillNo").val(), "HBarCode": option.data[rowIndex].HBarCode , "user": sessionStorage["HUserName"] }, |
| | | success: function (result) { |
| | | if (result.count == 1) { |
| | | layer.msg(result.Message,{ icon: 1 ,time: 500}, function () { |
| | | //å
³éå½åframe |
| | | layer.close(wait); |
| | | }); |
| | | } else { |
| | | layer.alert(result.code + result.Message, { icon: 5 }); |
| | | layer.close(wait); |
| | | } |
| | | }, error: function () { |
| | | layer.alert("æ¥å£è¯·æ±å¤±è´¥!", { icon: 5 }); |
| | | layer.close(wait); |
| | | } |
| | | }); |
| | | |
| | | |
| | | //å·æ°è¡¨æ ¼æ°æ® |
| | | option.data[rowIndex].HBarCode = ""; |
| | | option.data[rowIndex].HBindingQty = option.data[rowIndex].HBindingQty - 1; |
| | | //option.data[rowIndex].HMaterID = 0; |
| | | option.data[rowIndex].HMaterNumber = ""; |
| | | option.data[rowIndex].HMaterName = ""; |
| | | option.data[rowIndex].HMaterModel = ""; |
| | | option.data[rowIndex].HBarCode = ""; |
| | | |
| | | table.render(option); |
| | | layer.close(index); |
| | | }); |
| | | } |
| | | } |
| | | |
| | | //#region åºç¡èµæéæ©å¼¹æ¡ |
| | | //è´¨æ£åéæ©é¡µé¢ |
| | | function btnHCheckEmp() { |
| | | layer.open({ |
| | | type: 2//å¼¹çªç±»å |
| | | , skin: 'layui-layer-rim' //å ä¸è¾¹æ¡ |
| | | , area: ['90%', '90%']//å¤§å° |
| | | , title: 'è´¨æ£åå表'//æ é¢ |
| | | , shift: 2//å¼¹åºå¨ç» |
| | | , content: ['../../åºç¡èµæ/å
¬ç¨åºç¡èµæ/Gy_EmployeeList.html', 'yes'] |
| | | , btn: ['ç¡®å®', 'åæ¶'] |
| | | , btn1: function (index, layero) {//æé®ãæé®ä¸ãçåè° |
| | | var iframeWindow = window['layui-layer-iframe' + index] //è·åå¼¹æ¡é¡µé¢ |
| | | var checkStatus = iframeWindow.layui.table.checkStatus('mainTable');//è·åtableçelem:"#test" |
| | | if (checkStatus.data.length === 0) { |
| | | return layer.msg('è¯·éæ©æ°æ®'); |
| | | } |
| | | //è·åæ°æ® |
| | | $("#HCheckEmpID").val(checkStatus.data[0].HItemID); |
| | | $("#HCheckEmpName").val(checkStatus.data[0].èååç§°); |
| | | |
| | | layer.close(index); //å®è·åçå§ç»æ¯ææ°å¼¹åºçæä¸ªå±ï¼å¼æ¯ç±layerå
é¨å¨æéå¢è®¡ç®ç |
| | | } |
| | | }) |
| | | } |
| | | |
| | | //æä½åéæ©é¡µé¢ |
| | | function btnHEmp() { |
| | | layer.open({ |
| | | type: 2//å¼¹çªç±»å |
| | | , skin: 'layui-layer-rim' //å ä¸è¾¹æ¡ |
| | | , area: ['90%', '90%']//å¤§å° |
| | | , title: 'æä½åå表'//æ é¢ |
| | | , shift: 2//å¼¹åºå¨ç» |
| | | , content: ['../../åºç¡èµæ/å
¬ç¨åºç¡èµæ/Gy_EmployeeList.html', 'yes'] |
| | | , btn: ['ç¡®å®', 'åæ¶'] |
| | | , btn1: function (index, layero) {//æé®ãæé®ä¸ãçåè° |
| | | var iframeWindow = window['layui-layer-iframe' + index] //è·åå¼¹æ¡é¡µé¢ |
| | | var checkStatus = iframeWindow.layui.table.checkStatus('mainTable');//è·åtableçelem:"#test" |
| | | if (checkStatus.data.length === 0) { |
| | | return layer.msg('è¯·éæ©æ°æ®'); |
| | | } |
| | | //è·åæ°æ® |
| | | $("#HEmpID").val(checkStatus.data[0].HItemID); |
| | | $("#HEmpName").val(checkStatus.data[0].èååç§°); |
| | | |
| | | layer.close(index); //å®è·åçå§ç»æ¯ææ°å¼¹åºçæä¸ªå±ï¼å¼æ¯ç±layerå
é¨å¨æéå¢è®¡ç®ç |
| | | } |
| | | }) |
| | | } |
| | | |
| | | //çäº§èµæºéæ©é¡µé¢ |
| | | function btnHSource() { |
| | | layer.open({ |
| | | type: 2//å¼¹çªç±»å |
| | | , skin: 'layui-layer-rim' //å ä¸è¾¹æ¡ |
| | | , area: ['90%', '90%']//å¤§å° |
| | | , title: 'çäº§èµæºå表'//æ é¢ |
| | | , shift: 2//å¼¹åºå¨ç» |
| | | , content: ['../../åºç¡èµæ/ç产åºç¡èµæ/Gy_Source.html', 'yes'] |
| | | , btn: ['ç¡®å®', 'åæ¶'] |
| | | , btn1: function (index, layero) {//æé®ãæé®ä¸ãçåè° |
| | | var iframeWindow = window['layui-layer-iframe' + index] //è·åå¼¹æ¡é¡µé¢ |
| | | var checkStatus = iframeWindow.layui.table.checkStatus('mainTable');//è·åtableçelem:"#test" |
| | | if (checkStatus.data.length === 0) { |
| | | return layer.msg('è¯·éæ©æ°æ®'); |
| | | } |
| | | //è·åæ°æ® |
| | | $("#HSourceID").val(checkStatus.data[0].HItemID); |
| | | $("#HSourceName").val(checkStatus.data[0].çäº§èµæºåç§°); |
| | | |
| | | layer.close(index); //å®è·åçå§ç»æ¯ææ°å¼¹åºçæä¸ªå±ï¼å¼æ¯ç±layerå
é¨å¨æéå¢è®¡ç®ç |
| | | } |
| | | , btn2: function (index, layero) { } |
| | | }) |
| | | } |
| | | |
| | | //ç产çç»éæ©é¡µé¢ |
| | | function btnHGroup() { |
| | | layer.open({ |
| | | type: 2//å¼¹çªç±»å |
| | | , skin: 'layui-layer-rim' //å ä¸è¾¹æ¡ |
| | | , area: ['90%', '90%']//å¤§å° |
| | | , title: 'çç»è¡¨'//æ é¢ |
| | | , shift: 2//å¼¹åºå¨ç» |
| | | , content: ['../../åºç¡èµæ/å·¥èµåºç¡èµæ/Gy_Group.html', 'yes'] |
| | | , btn: ['ç¡®å®', 'åæ¶'] |
| | | , btn1: function (index, layero) {//æé®ãæé®ä¸ãçåè° |
| | | var iframeWindow = window['layui-layer-iframe' + index] //è·åå¼¹æ¡é¡µé¢ |
| | | var checkStatus = iframeWindow.layui.table.checkStatus('mainTable');//è·åtableçelem:"#test" |
| | | if (checkStatus.data.length != 1) { |
| | | return layer.msg('è¯·éæ©ä¸æ¡æ°æ®'); |
| | | } |
| | | //è·åæ°æ® |
| | | $("#HGroupID").val(checkStatus.data[0].HItemID);//çç»id |
| | | $("#HGroupName").val(checkStatus.data[0].çç»åç§°);//计éåä½åç§° |
| | | |
| | | layer.close(index); //å®è·åçå§ç»æ¯ææ°å¼¹åºçæä¸ªå±ï¼å¼æ¯ç±layerå
é¨å¨æéå¢è®¡ç®ç |
| | | } |
| | | , btn2: function (index, layero) { } |
| | | }) |
| | | } |
| | | |
| | | //ç产车é´éæ©é¡µé¢ |
| | | function btnHDept() { |
| | | layer.open({ |
| | | type: 2//å¼¹çªç±»å |
| | | , skin: 'layui-layer-rim' //å ä¸è¾¹æ¡ |
| | | , area: ['90%', '90%']//å¤§å° |
| | | , title: 'ç产车é´å表'//æ é¢ |
| | | , shift: 2//å¼¹åºå¨ç» |
| | | , content: ['../../åºç¡èµæ/å
¬ç¨åºç¡èµæ/Gy_DepartmentList.html', 'yes'] |
| | | , btn: ['ç¡®å®', 'åæ¶'] |
| | | , btn1: function (index, layero) {//æé®ãæé®ä¸ãçåè° |
| | | var iframeWindow = window['layui-layer-iframe' + index] //è·åå¼¹æ¡é¡µé¢ |
| | | var checkStatus = iframeWindow.layui.table.checkStatus('mainTable');//è·åtableçelem:"#test" |
| | | if (checkStatus.data.length != 1) { |
| | | return layer.msg('è¯·éæ©ä¸æ¡æ°æ®'); |
| | | } |
| | | //è·åæ°æ® |
| | | $("#HDeptID").val(checkStatus.data[0].HItemID);// |
| | | $("#HDeptName").val(checkStatus.data[0].é¨é¨åç§°);// |
| | | |
| | | layer.close(index); //å®è·åçå§ç»æ¯ææ°å¼¹åºçæä¸ªå±ï¼å¼æ¯ç±layerå
é¨å¨æéå¢è®¡ç®ç |
| | | } |
| | | , btn2: function (index, layero) { } |
| | | }) |
| | | } |
| | | |
| | | //å·¥åºéæ©é¡µé¢ |
| | | function btnHProc() { |
| | | layer.open({ |
| | | type: 2//å¼¹çªç±»å |
| | | , skin: 'layui-layer-rim' //å ä¸è¾¹æ¡ |
| | | , area: ['90%', '90%']//å¤§å° |
| | | , title: 'å·¥åºå表'//æ é¢ |
| | | , shift: 2//å¼¹åºå¨ç» |
| | | , content: ['../../åºç¡èµæ/ç产åºç¡èµæ/Gy_Process.html', 'yes'] |
| | | , btn: ['ç¡®å®', 'åæ¶'] |
| | | , btn1: function (index, layero) {//æé®ãæé®ä¸ãçåè° |
| | | var iframeWindow = window['layui-layer-iframe' + index] //è·åå¼¹æ¡é¡µé¢ |
| | | var checkStatus = iframeWindow.layui.table.checkStatus('mainTable');//è·åtableçelem:"#test" |
| | | if (checkStatus.data.length != 1) { |
| | | return layer.msg('è¯·éæ©ä¸æ¡æ°æ®'); |
| | | } |
| | | //è·åæ°æ® |
| | | $("#HProcID").val(checkStatus.data[0].HItemID);// |
| | | $("#HProcName").val(checkStatus.data[0].å·¥åºåç§°);// |
| | | |
| | | layer.close(index); //å®è·åçå§ç»æ¯ææ°å¼¹åºçæä¸ªå±ï¼å¼æ¯ç±layerå
é¨å¨æéå¢è®¡ç®ç |
| | | } |
| | | , btn2: function (index, layero) { } |
| | | }) |
| | | } |
| | | //#endregion |
| | | |
| | | //é空éªè¯ |
| | | function AllowLoadData() { |
| | | var HBarCode = $("#HBarCode_P").val(); |
| | | if (HBarCode == "") { |
| | | layer.msg("产åç ä¸è½ä¸ºç©º!") |
| | | return false; |
| | | } |
| | | |
| | | var sSubStr = JSON.stringify(table.cache['mainTable']); |
| | | |
| | | if (typeof (sSubStr) != "undefined" && typeof (sSubStr) != "") { |
| | | sSubStr = JSON.parse(sSubStr); |
| | | for (var i = 0; i < sSubStr.length; i++) { |
| | | if (sSubStr[i].HBarCode == "" || sSubStr[i].HBarCode == undefined || sSubStr[i].HBarCode == null) { |
| | | layer.msg("æç»è®°å½ç¬¬" + (i + 1) + "è¡,é
ä»¶ç æªç»å®!", { icon: 5, btn: ['确认'], time: 4000, offset: 't', skin: 'layui-layer-lan', title: "温馨æç¤º" }); |
| | | return Result = false; |
| | | } |
| | | } |
| | | } |
| | | |
| | | return true; |
| | | } |
| | | //#endregion |
| | | }); |
| | | </script> |