copy from "WebTM/views/\350\275\246\351\227\264\347\256\241\347\220\206/\345\220\257\345\212\250\346\243\200\346\237\245\345\215\225/Sc_WorkBeginDotCheckBill.html"
copy to "WebTM/views/\350\275\246\351\227\264\347\256\241\347\220\206/\345\220\257\345\212\250\347\202\271\346\243\200\345\215\225/Gy_WorkBeginDotCheckListBill.html"
| File was copied from WebTM/views/³µ¼ä¹ÜÀí/Æô¶¯¼ì²éµ¥/Sc_WorkBeginDotCheckBill.html |
| | |
| | | <html> |
| | | <head> |
| | | <meta charset="utf-8" /> |
| | | <title>å¯å¨ç¹æ£å</title> |
| | | <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"> |
| | |
| | | <button class="layui-btn layui-btn-normal" style="margin-left: 0px" type="button" lay-submit="" lay-filter="btnEdit" id="btnEdit">éåº</button> |
| | | </div> |
| | | <div class="layui-tab" lay-filter="tab-POStockInBill"> |
| | | <h1 style="text-align: center; padding: 10px 0;"><b>å¯å¨æ£æ¥å</b></h1> |
| | | <h1 style="text-align: center; padding: 10px 0;"><b>设å¤å¯å¨ç¹æ£æ¸
å</b></h1> |
| | | <ul class="layui-tab-title" lay-filter="tab-all"> |
| | | <li lay-id="1" style="padding:1px;" class="layui-this">åºæ¬ä¿¡æ¯</li> |
| | | <li lay-id="2" style="padding:1px;">å
¶ä»ä¿¡æ¯</li> |
| | |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label">ç产订å<label style="color:red"> * </label></label> |
| | | <label class="layui-form-label">ç©æ<label style="color:red"> * </label></label> |
| | | <div class="layui-input-block"> |
| | | <input type="text" class="layui-input" lay-verify="HICMOBillNo" name="HICMOBillNo" id="HICMOBillNo" style="float: left; width: 150px; background-color: #efefef4d;" readonly> |
| | | <input type="hidden" name="HICMOInterID" id="HICMOInterID" lay-verify="HICMOInterID" value="0"> |
| | | <input type="hidden" name="HICMOEntryID" id="HICMOEntryID" lay-verify="HICMOEntryID" value="0"> |
| | | <button class="layui-btn layuiadmin-btn-order" type="button" lay-submit="" lay-filter="btnSearchHICMO" id="btnSearchHICMO" style="width:40px;"> |
| | | <i class="layui-icon layui-icon-search layuiadmin-button-btn" style="margin-left:-9px;"></i> |
| | | </button> |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label">æµè½¬å¡<label style="color:red"> * </label></label> |
| | | <div class="layui-input-block"> |
| | | <input type="text" class="layui-input" lay-verify="HProcExchBillNo" name="HProcExchBillNo" id="HProcExchBillNo" style="float: left; width: 150px; background-color: #efefef4d;" readonly> |
| | | <input type="hidden" name="HProcExchInterID" id="HProcExchInterID" lay-verify="HProcExchInterID" value="0"> |
| | | <input type="hidden" name="HProcExchEntryID" id="HProcExchEntryID" lay-verify="HProcExchEntryID" value="0"> |
| | | <button class="layui-btn layuiadmin-btn-order" type="button" lay-submit="" lay-filter="btnSearchHProcExch" id="btnSearchHProcExch" style="width:40px;"> |
| | | <input type="text" class="layui-input" lay-verify="HMaterName" name="HMaterName" id="HMaterName" style="float: left; width: 150px; background-color: #efefef4d;" readonly> |
| | | <input type="hidden" name="HMaterID" id="HMaterID" lay-verify="HMaterID" value="0"> |
| | | <button class="layui-btn layuiadmin-btn-order" type="button" lay-submit="" lay-filter="btnSearchHMater" id="btnSearchHMater" style="width:40px;"> |
| | | <i class="layui-icon layui-icon-search layuiadmin-button-btn" style="margin-left:-9px;"></i> |
| | | </button> |
| | | </div> |
| | |
| | | </div> |
| | | <div class="layui-row"> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label">ç©æ<label style="color:red"> * </label></label> |
| | | <label class="layui-form-label">å·¥åº<label style="color:red"> * </label></label> |
| | | <div class="layui-input-block"> |
| | | <input type="text" class="layui-input" lay-verify="HMaterName" name="HMaterName" id="HMaterName" style="float: left; width: 150px; background-color: #efefef4d;" readonly> |
| | | <input type="hidden" name="HMaterID" id="HMaterID" lay-verify="HMaterID" value="0"> |
| | | <button class="layui-btn layuiadmin-btn-order" type="button" lay-submit="" lay-filter="btnSearchHMater" id="btnSearchHMater" style="width:40px;"> |
| | | <input type="text" class="layui-input" lay-verify="HProcName" name="HProcName" id="HProcName" style="float: left; width: 150px; background-color: #efefef4d;" readonly> |
| | | <input type="hidden" name="HProcID" id="HProcID" lay-verify="HProcID" value="0"> |
| | | <button class="layui-btn" type="button" lay-submit="" lay-filter="btnSearchHProc" id="btnSearchHProc" style="width:40px;"> |
| | | <i class="layui-icon layui-icon-search layuiadmin-button-btn" style="margin-left:-9px;"></i> |
| | | </button> |
| | | </div> |
| | |
| | | </button> |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label">ç¹æ£ä½ä¸å<label style="color:red"> * </label></label> |
| | | <div class="layui-input-inline"> |
| | | <input type="text" class="layui-input" lay-verify="HCheckEmpName" name="HCheckEmpName" id="HCheckEmpName" value="" style="float: left; width: 150px; background-color: #efefef4d;" readonly> |
| | | <input type="hidden" name="HCheckEmpID" id="HCheckEmpID" class="layui-input" value="0" style="float:left;width:150px;"> |
| | | <button type="button" lay-submit="" class="layui-btn" lay-filter="btnSearchHCheckEmp" id="btnSearchHCheckEmp" style="width:40px;"> |
| | | <i class="layui-icon layui-icon-search layuiadmin-button-btn" style="margin-left:-9px;"></i> |
| | | </button> |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label">ç产çç»<label style="color:red"> * </label></label> |
| | | <div class="layui-input-block"> |
| | | <input type="text" class="layui-input" lay-verify="HGroupName" name="HGroupName" id="HGroupName" style="float: left; width: 150px; background-color: #efefef4d;" readonly> |
| | | <input type="hidden" name="HGroupID" id="HGroupID" lay-verify="HGroupID" value="0"> |
| | | <button class="layui-btn" type="button" lay-submit="" lay-filter="btnSearchHGroup" id="btnSearchHGroup" style="width:40px;"> |
| | | <i class="layui-icon layui-icon-search layuiadmin-button-btn" style="margin-left:-9px;"></i> |
| | | </button> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | <div class="layui-row"> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label">çç»é¿<label style="color:red"> * </label></label> |
| | | <div class="layui-input-block"> |
| | | <input type="text" class="layui-input" lay-verify="HGroupLeaderName" name="HGroupLeaderName" id="HGroupLeaderName" style="float: left; width: 150px; background-color: #efefef4d;" readonly> |
| | | <input type="hidden" name="HGroupLeaderID" id="HGroupLeaderID" lay-verify="HGroupLeaderID" value="0"> |
| | | <button class="layui-btn" type="button" lay-submit="" lay-filter="btnSearchHGroupLeader" id="btnSearchHGroupLeader" style="width:40px;"> |
| | | <i class="layui-icon layui-icon-search layuiadmin-button-btn" style="margin-left:-9px;"></i> |
| | | </button> |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline" style="width:400px"> |
| | | <label class="layui-form-label">æç»ç»è®º</label> |
| | | <div class="layui-input-inline"> |
| | | <select name="HLastResult" id="HLastResult" lay-filter="HLastResult"> |
| | | <option value="OK" selected="selected">OK</option> |
| | | <option value="NG">NG</option> |
| | | </select> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | |
| | | <div class="layui-row"> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label">è®°å½äºé¡¹</label> |
| | |
| | | <!--<a class="layui-btn layui-btn-xs" lay-event="edit">ç¼è¾</a>--> |
| | | <a class="layui-btn layui-btn-danger layui-btn-xs" lay-event="del">å é¤</a> |
| | | </script> |
| | | <!--è¡ä¸æéæ©(ç»æ)--> |
| | | <script type="text/html" id="HCheckResult"> |
| | | <select name="HCheckResult" lay-filter="HCheckResult" id="HCheckResult{{d.LAY_TABLE_INDEX+1}}"> |
| | | <option value="OK" selected>OK</option> |
| | | <option value="X">X</option> |
| | | </select> |
| | | </script> |
| | | |
| | | <script> |
| | | |
| | |
| | | , upload = layui.upload; |
| | | |
| | | //模åå |
| | | var HModName = "Sc_WorkBeginDotCheckBill"; |
| | | var HModName = "Gy_WorkBeginDotCheckListBill"; |
| | | //#region |
| | | |
| | | //å
¨å±åé |
| | |
| | | //#endregion |
| | | |
| | | //#region ã卿è·å模ååç§°ã |
| | | var HModuleType = "3744"; |
| | | var HModuleType = "3337"; |
| | | //éè¿åæ®ç±»åï¼ä»æ°æ®åºå¨æè·ååæ®æ¨¡åå½å,å¼ç¨jsæä»¶ PageTitle.js |
| | | var HPageTitle = get_PageTitle(HModuleType) == "" ? $("h1").html() : get_PageTitle(HModuleType); |
| | | $("h1").html('<b>' + HPageTitle + '</b>'); |
| | |
| | | |
| | | //#region 触åäºä»¶ï¼å
æ¬form.on(){}æ ¼å¼çææç¹å»äºä»¶ãéæ©äºä»¶ç |
| | | |
| | | //#region å¼¹çªéæ©è§¦åäºä»¶ |
| | | |
| | | //#region éæ©ç产订åæé® |
| | | form.on('submit(btnSearchHICMO)', function () { |
| | | get_checkSearchHICMO(); |
| | | }); |
| | | //#endregion |
| | | |
| | | //#region éæ©æµè½¬å¡æé® |
| | | form.on('submit(btnSearchHProcExch)', function () { |
| | | get_checkSearchHProcExch(); |
| | | }); |
| | | //#endregion |
| | | //#region å¼¹çªéæ©è§¦åäºä»¶ |
| | | |
| | | //#region éæ©ç©ææé® |
| | | form.on('submit(btnSearchHMater)', function () { |
| | |
| | | form.on('submit(btnSearchHSource)', function () { |
| | | get_checkSearchHSource(); |
| | | }); |
| | | //#endregion |
| | | //#endregion |
| | | |
| | | //#region éæ©ç¹æ£ä½ä¸åæé® |
| | | form.on('submit(btnSearchHCheckEmp)', function () { |
| | | get_checkSearchHCheckEmp(); |
| | | }); |
| | | //#endregion |
| | | |
| | | //#region éæ©ç产çç»æé® |
| | | form.on('submit(btnSearchHGroup)', function () { |
| | | get_checkSearchHGroup(); |
| | | }); |
| | | //#endregion |
| | | |
| | | //#region éæ©çç»é¿æé® |
| | | form.on('submit(btnSearchHGroupLeader)', function () { |
| | | get_checkSearchHGroupLeader(); |
| | | //#region éæ©å·¥åºæé® |
| | | form.on('submit(btnSearchHProc)', function () { |
| | | get_checkSearchHProc(); |
| | | }); |
| | | //#endregion |
| | | |
| | |
| | | //æ°å¢è¡è¡¨æ ¼æ°æ® |
| | | |
| | | var NewRow = { |
| | | "HCheckNoteItemID": "0", "HCheckNoteItemName": "", "HCheckPostID": "0", "HCheckPostName": "", "HCheckResult": "","HRemark":"", |
| | | "HCheckNoteItemID": "0", "HCheckNoteItemName": "", "HCheckPostID": "0", "HCheckPostName": "","HRemark":"", |
| | | "HSourceBillNo": 0, "HSourceBillType": 0, "HSourceInterID": 0, "HSourceEntryID": 0, |
| | | }; |
| | | switch (obj.event) { |
| | |
| | | table.cache["mainTable"].push(NewRow); |
| | | option.data = table.cache["mainTable"]; |
| | | |
| | | table.render(option); |
| | | for (var i = 1; i <= option.data.length; i++) { |
| | | $('#HCheckResult' + i + '').find("option[value='" + option.data[i - 1].HCheckResult + "']").attr("selected", true); |
| | | |
| | | } |
| | | form.render('select'); |
| | | table.render(option); |
| | | break; |
| | | case 'btn-CopyLine': |
| | | var copydata = JSON.stringify(data); |
| | |
| | | var copyrow = copydata2.substring(0, copydata2.length - 1);//å»é¤æ«å°¾å符']' |
| | | table.cache["mainTable"].push(JSON.parse(copyrow));//å°å¤å¶çè¡å¼ºè½¬æjson追å å°è¡¨æ ¼ä¸ |
| | | option.data = table.cache["mainTable"];//å°æ°æ®ç»å®å°dataä¸ |
| | | table.render(option);//å°æ°æ®æ¸²æå°è¡¨æ ¼ä¸ |
| | | for (var i = 1; i <= option.data.length; i++) { |
| | | $('#HCheckResult' + i + '').find("option[value='" + option.data[i - 1].HCheckResult + "']").attr("selected", true); |
| | | |
| | | } |
| | | form.render('select'); |
| | | table.render(option);//å°æ°æ®æ¸²æå°è¡¨æ ¼ä¸ |
| | | } |
| | | break; |
| | | |
| | |
| | | , { field: 'HCheckNoteItemName', title: 'æ£æ¥é¡¹ç®', edit: 'text', event: "HCheckNoteItemID", style: 'background-color: #f9f9f9;' } //f7 |
| | | , { field: 'HCheckPostID', title: 'HCheckPostID', hide: true, style: 'background-color: #f9f9f9;'} |
| | | , { field: 'HCheckPostName', title: '确认è
è§è²', edit: 'text', event: "HCheckPostID", style: 'background-color: #f9f9f9;' } |
| | | , { field: 'HCheckResult', title: 'ç»æ', templet: '#HCheckResult' } |
| | | , { field: 'HRemark', title: '夿³¨', edit: 'text' } |
| | | , { field: 'HSourceInterID', title: 'æºåå
ç ', hide: true, style: 'background-color: #f9f9f9;' } |
| | | , { field: 'HSourceEntryID', title: 'æºååå
ç ', hide: true, style: 'background-color: #f9f9f9;' } |
| | |
| | | , "HCheckNoteItemName": "" |
| | | , "HCheckPostID": "0" |
| | | , "HCheckPostName": "" |
| | | , "HCheckResult": "" |
| | | , "HRemark":"" |
| | | , "HSourceInterID": "0" |
| | | , "HSourceEntryID": "0" |
| | |
| | | option.data = rowdata; |
| | | table.render(option); |
| | | } |
| | | //#endregion |
| | | |
| | | //#region è¡¨æ ¼è¡éæ©å¤ç |
| | | form.on('select(HCheckResult)', function (data) { |
| | | //è·å䏿æ¡éä¸çå¼ |
| | | var elem = data.othis.parents('tr'); |
| | | var dataindex = elem.attr("data-index"); |
| | | $.each(option.data, function (index, value) { |
| | | if (value.LAY_TABLE_INDEX == dataindex) { |
| | | value.HCheckResult = data.value;//æéä¸ä¸ææ¡idå¼èµå¼ç»è¡¨æ ¼ç¼å |
| | | } |
| | | }); |
| | | }); |
| | | //#endregion |
| | | //#endregion |
| | | |
| | | //#region è·ååæ° |
| | | function getUrlVars() { |
| | |
| | | url: GetWEBURL() + "/Web/GetMAXNum", |
| | | async: false, |
| | | type: "GET", |
| | | data: { "HBillType": '3744' }, |
| | | data: { "HBillType": '3337' }, |
| | | success: function (d) { |
| | | //console.log(d.data); |
| | | $("#HInterID").val(d.data[0].HInterID); |
| | |
| | | }); |
| | | } |
| | | //#endregion |
| | | |
| | | //#region ç产订åéæ©é¡µé¢ |
| | | function get_checkSearchHICMO() { |
| | | |
| | | //æå¼ç产订åå°çªä½ |
| | | layer.open({ |
| | | type: 2 |
| | | , skin: "layui-layer-rim" //å ä¸è¾¹æ¡ |
| | | , title: "ç产订åå表" //æ é¢ |
| | | , closeBtn: 1 //çªä½å³ä¸è§å
³é ç æ ·å¼ |
| | | , shift: 2 //å¼¹åºå¨ç» |
| | | , area: ["90%", "90%"] //çªä½å¤§å° |
| | | , maxmin: true //设置æå¤§æå°æé®æ¯å¦æ¾ç¤º |
| | | , content: ["../../ç产管ç/ç产任å¡å/Sc_ICMOBillList.html", "yes"] |
| | | , btn: ["ç¡®å®", "åæ¶"] |
| | | , btn1: function (index, laero) { |
| | | //æé®ä¸ çåè° |
| | | var iframeWindow = window["layui-layer-iframe" + index];//è·åå¼¹æ¡é¡µé¢ |
| | | var checkStatus = iframeWindow.layui.table.checkStatus("mainTable");//è·åéä¸çæ°æ® |
| | | |
| | | if (checkStatus.data.length != 1) { |
| | | return layer.msg("è¯·éæ©ä¸æ¡æ°æ®"); |
| | | } |
| | | |
| | | $("#HICMOInterID").val(checkStatus.data[0].hmainid); |
| | | $("#HICMOEntryID").val(checkStatus.data[0].HEntryID); |
| | | $("#HICMOBillNo").val(checkStatus.data[0].åæ®å·); |
| | | |
| | | layer.close(index);//å
³éå¼¹çª |
| | | } |
| | | , btn2: function (index, layero) { } |
| | | }) |
| | | } |
| | | //#endregion |
| | | |
| | | //#region æµè½¬å¡éæ©é¡µé¢ |
| | | function get_checkSearchHProcExch() { |
| | | //æå¼æµè½¬å¡å°çªä½ |
| | | layer.open({ |
| | | type: 2 |
| | | , skin: "layui-layer-rim" //å ä¸è¾¹æ¡ |
| | | , title: "æµè½¬å¡å表" //æ é¢ |
| | | , closeBtn: 1 //çªä½å³ä¸è§å
³é ç æ ·å¼ |
| | | , shift: 2 //å¼¹åºå¨ç» |
| | | , area: ["90%", "90%"] //çªä½å¤§å° |
| | | , maxmin: true //设置æå¤§æå°æé®æ¯å¦æ¾ç¤º |
| | | , content: ["../../车é´ç®¡ç/å·¥åºæµè½¬å¡/Sc_ProcessExchangeBillList.html", "yes"] |
| | | , btn: ["ç¡®å®", "åæ¶"] |
| | | , btn1: function (index, laero) { |
| | | //æé®ä¸ çåè° |
| | | var iframeWindow = window["layui-layer-iframe" + index];//è·åå¼¹æ¡é¡µé¢ |
| | | var checkStatus = iframeWindow.layui.table.checkStatus("mainTable");//è·åéä¸çæ°æ® |
| | | |
| | | if (checkStatus.data.length != 1) { |
| | | return layer.msg("è¯·éæ©ä¸æ¡æ°æ®"); |
| | | } |
| | | |
| | | $("#HProcExchInterID").val(checkStatus.data[0].hmainid); |
| | | $("#HProcExchEntryID").val(checkStatus.data[0].HEntryID); |
| | | $("#HProcExchBillNo").val(checkStatus.data[0].åæ®å·); |
| | | |
| | | layer.close(index);//å
³éå¼¹çª |
| | | } |
| | | , btn2: function (index, layero) { } |
| | | }) |
| | | } |
| | | //#endregion |
| | | |
| | | |
| | | //#region ç©æéæ©é¡µé¢ |
| | | function get_checkSearchHMater() { |
| | | layer.open({ |
| | |
| | | } |
| | | //#endregion |
| | | |
| | | //#region ç¹æ£ä½ä¸åéæ©é¡µé¢ |
| | | function get_checkSearchHCheckEmp() { |
| | | //#region å·¥åºéæ©é¡µé¢ |
| | | function get_checkSearchHProc() { |
| | | layer.open({ |
| | | type: 2//å¼¹çªç±»å |
| | | , skin: 'layui-layer-rim' //å ä¸è¾¹æ¡ |
| | | , area: ['90%', '90%']//å¤§å° |
| | | , title: 'ç¹æ£ä½ä¸åå表'//æ é¢ |
| | | , title: 'å·¥åºå表'//æ é¢ |
| | | , shift: 2//å¼¹åºå¨ç» |
| | | , content: ['../../åºç¡èµæ/å
¬ç¨åºç¡èµæ/Gy_EmployeeList.html?Type=HEmp', 'yes'] |
| | | , content: ['../../åºç¡èµæ/ç产åºç¡èµæ/Gy_Process.html', 'yes'] |
| | | , btn: ['ç¡®å®', 'åæ¶'] |
| | | , btn1: function (index, layero) {//æé®ãæé®ä¸ãçåè° |
| | | var iframeWindow = window['layui-layer-iframe' + index] //è·åå¼¹æ¡é¡µé¢ |
| | |
| | | if (checkStatus.data.length === 0) { |
| | | return layer.msg('è¯·éæ©æ°æ®'); |
| | | } |
| | | $("#HCheckEmpName").val(checkStatus.data[0].èååç§°); |
| | | $("#HCheckEmpID").val(checkStatus.data[0].HItemID); |
| | | |
| | | |
| | | layer.close(index); //å®è·åçå§ç»æ¯ææ°å¼¹åºçæä¸ªå±ï¼å¼æ¯ç±layerå
é¨å¨æéå¢è®¡ç®ç |
| | | } |
| | | , btn2: function (index, layero) { } |
| | | }) |
| | | } |
| | | //#endregion |
| | | |
| | | //#region ç产çç»éæ©é¡µé¢ |
| | | function get_checkSearchHGroup() { |
| | | layer.open({ |
| | | type: 2//å¼¹çªç±»å |
| | | , skin: 'layui-layer-rim' //å ä¸è¾¹æ¡ |
| | | , area: ['90%', '90%']//å¤§å° |
| | | , title: 'ç产çç»å表'//æ é¢ |
| | | , shift: 2//å¼¹åºå¨ç» |
| | | , content: ['../../åºç¡èµæ/å·¥èµåºç¡èµæ/Gy_Group.html?Type=HGroup', '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('è¯·éæ©æ°æ®'); |
| | | } |
| | | $("#HGroupName").val(checkStatus.data[0].çç»åç§°); |
| | | $("#HGroupID").val(checkStatus.data[0].HItemID); |
| | | |
| | | layer.close(index); //å®è·åçå§ç»æ¯ææ°å¼¹åºçæä¸ªå±ï¼å¼æ¯ç±layerå
é¨å¨æéå¢è®¡ç®ç |
| | | } |
| | | , btn2: function (index, layero) { } |
| | | }) |
| | | } |
| | | //#endregion |
| | | |
| | | //#region çç»é¿éæ©é¡µé¢ |
| | | function get_checkSearchHGroupLeader() { |
| | | layer.open({ |
| | | type: 2//å¼¹çªç±»å |
| | | , skin: 'layui-layer-rim' //å ä¸è¾¹æ¡ |
| | | , area: ['90%', '90%']//å¤§å° |
| | | , title: 'çç»é¿å表'//æ é¢ |
| | | , shift: 2//å¼¹åºå¨ç» |
| | | , content: ['../../åºç¡èµæ/å
¬ç¨åºç¡èµæ/Gy_EmployeeList.html?Type=HManager', '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('è¯·éæ©æ°æ®'); |
| | | } |
| | | $("#HGroupLeaderName").val(checkStatus.data[0].èååç§°); |
| | | $("#HGroupLeaderID").val(checkStatus.data[0].HItemID); |
| | | $("#HProcName").val(checkStatus.data[0].å·¥åºåç§°); |
| | | $("#HProcID").val(checkStatus.data[0].HItemID); |
| | | |
| | | |
| | | layer.close(index); //å®è·åçå§ç»æ¯ææ°å¼¹åºçæä¸ªå±ï¼å¼æ¯ç±layerå
é¨å¨æéå¢è®¡ç®ç |
| | |
| | | var index = layer.load(); |
| | | $.ajax({ |
| | | type: "POST", |
| | | url: GetWEBURL() + "/Sc_WorkBeginDotCheckBill/SaveSc_WorkBeginDotCheckBillMain", |
| | | url: GetWEBURL() + "/Sc_WorkBeginDotCheckBill/SaveGy_WorkBeginDotCheckListBillMain", |
| | | async: true, |
| | | data: { "sMainSub": sMainSub }, |
| | | dataType: "json", |
| | |
| | | function RoadBillMain(linterid)//å 载表头 |
| | | { |
| | | $.ajax({ |
| | | url: GetWEBURL() + "/Sc_WorkBeginDotCheckBill/Sc_WorkBeginDotCheckBillMainEditList", |
| | | url: GetWEBURL() + "/Sc_WorkBeginDotCheckBill/Gy_WorkBeginDotCheckListBillMainEditList", |
| | | type: "GET", |
| | | async: false, |
| | | data: { "HInterID": linterid, "user": sessionStorage["HUserName"] }, |
| | |
| | | "HInterID": tableMain[0]["HInterID"] |
| | | , "HBillNo": tableMain[0]["åæ®å·"] |
| | | , "HDate": Format(new Date(tableMain[0]["æ¥æ"]), "yyyy-MM-dd") |
| | | |
| | | , "HICMOInterID": tableMain[0]["HICMOInterID"] |
| | | , "HICMOEntryID": tableMain[0]["HICMOEntryID"] |
| | | , "HICMOBillNo": tableMain[0]["ç产订å"] |
| | | , "HProcExchInterID": tableMain[0]["HProcExchInterID"] |
| | | , "HProcExchEntryID": tableMain[0]["HProcExchEntryID"] |
| | | , "HProcExchBillNo": tableMain[0]["æµè½¬å¡"] |
| | | |
| | | |
| | | , "HMaterID": tableMain[0]["HMaterID"] |
| | | , "HMaterName": tableMain[0]["ç©æåç§°"] |
| | | , "HSourceID": tableMain[0]["HSourceID"] |
| | | , "HSourceName": tableMain[0]["çäº§èµæº"] |
| | | , "HCheckEmpID": tableMain[0]["HCheckEmpID"] |
| | | , "HCheckEmpName": tableMain[0]["ç¹æ£ä½ä¸å"] |
| | | , "HGroupID": tableMain[0]["HGroupID"] |
| | | , "HGroupName": tableMain[0]["ç产çç»"] |
| | | , "HGroupLeaderID": tableMain[0]["HGroupLeaderID"] |
| | | , "HGroupLeaderName": tableMain[0]["çç»é¿"] |
| | | |
| | | , "HProcID": tableMain[0]["HProcID"] |
| | | , "HProcName": tableMain[0]["å·¥åº"] |
| | | , "HNote": tableMain[0]["è®°å½äºé¡¹"] |
| | | , "HLastResult": tableMain[0]["æç»ç»è®º"] |
| | | |
| | | |
| | | , "HRemark": tableMain[0]["è¡¨å¤´å¤æ³¨"] |
| | |
| | | "HCheckNoteItemName": tableSub[i]["æ£æ¥é¡¹ç®"], |
| | | "HCheckPostID": tableSub[i]["HCheckPostID"], |
| | | "HCheckPostName": tableSub[i]["确认è
è§è²"], |
| | | "HCheckResult": tableSub[i]["ç»æ"], |
| | | "HRemark": tableSub[i]["表ä½å¤æ³¨"] |
| | | } |
| | | ); |
| | | } |
| | | option.data = rowdata; |
| | | table.render(option); |
| | | for (var i = 0; i < rowdata.length; i++) { |
| | | $('#HCheckResult' + (i + 1)).find("option[value='" + tableSub[i].ç»æ + "']").attr("selected", true); |
| | | } |
| | | form.render('select'); |
| | | form.render('checkbox'); |
| | | table.render(option); |
| | | } |
| | | }) |
| | | } |
| | |
| | | if ($("#HDate").val() == "") { |
| | | layer.msg("æ¥æä¸è½ä¸ºç©º!"); |
| | | return false; |
| | | } |
| | | if ($("#HSourceID").val() == "0") { |
| | | layer.msg("çäº§èµæºä¸è½ä¸ºç©º!"); |
| | | } |
| | | if ($("#HProcID").val() == "0") { |
| | | layer.msg("å·¥åºä¸è½ä¸ºç©º!"); |
| | | return false; |
| | | } |
| | | if ($("#HGroupID").val() == "0") { |
| | | layer.msg("ç产çç»ä¸è½ä¸ºç©º!"); |
| | | return false; |
| | | } |
| | | if ($("#HGroupLeaderID").val() == "0") { |
| | | layer.msg("çç»é¿ä¸è½ä¸ºç©º!"); |
| | | return false; |
| | | } |
| | | if ($("#HCheckEmpID").val() == "0") { |
| | | layer.msg("ç¹æ£ä½ä¸åä¸è½ä¸ºç©º!"); |
| | | return false; |
| | | } |
| | | |
| | | |
| | | //#region å表 æ°æ®æ£éª |
| | | |
| | |
| | | $("#HMaterName").val(obj.ç©æåç§°); |
| | | } |
| | | |
| | | //çæèµæº |
| | | //çäº§èµæº |
| | | function GetGySource(obj) { |
| | | $("#HSourceID").val(obj[0].HItemID); |
| | | $("#HSourceName").val(obj[0].çäº§èµæºåç§°); |
| | | } |
| | | |
| | | //ç¹æ£ä½ä¸å |
| | | function GetHEmpValue(obj) { |
| | | $("#HCheckEmpName").val(obj[0].èååç§°); |
| | | $("#HCheckEmpID").val(obj[0].HItemID); |
| | | } |
| | | |
| | | //ç产çç» |
| | | function GetHGroupValue(obj) { |
| | | $("#HGroupName").val(obj[0].çç»åç§°); |
| | | $("#HGroupID").val(obj[0].HItemID); |
| | | } |
| | | |
| | | //çç»é¿ |
| | | function GetHManagerValue(obj) |
| | | |
| | | //å·¥åº |
| | | function GetProcessValue(obj) |
| | | { |
| | | $("#HGroupLeaderName").val(obj[0].èååç§°); |
| | | $("#HGroupLeaderID").val(obj[0].HItemID); |
| | | $("#HProcName").val(obj[0].å·¥åºåç§°); |
| | | $("#HProcID").val(obj[0].HItemID); |
| | | } |
| | | |
| | | //æ£æ¥é¡¹ç® |