| | |
| | | var params = get_UrlVars(); |
| | | var HProcID = params[params[0]]; //ä»åæ°ä¸è·å å·¥åºid |
| | | var HSourceID = params[params[1]]; //ä»åæ°ä¸è·å çäº§èµæºid |
| | | |
| | | var HMaterID = params[params[2]];//ä»åæ°ä¸è·åç©æID |
| | | form.on('submit(HQuery)', function () {//éæ©åä½ |
| | | //var sMainStr = JSON.stringify(table.cache['mainTable']); |
| | | RoadQuery($('#Value').val()); |
| | |
| | | if (Value != "") { |
| | | sWhere = " and åæ®å· like '%" + Value + "%' "; |
| | | } |
| | | if (HProcID != '' && HSourceID != '' && HProcID != undefined && HSourceID != undefined) { |
| | | sWhere += ' and HProcID=' + HProcID + ' and HSourceID=' + HSourceID+'' |
| | | if (HProcID != '' && HProcID != undefined && HProcID != 0) { |
| | | sWhere += ' and HProcID=' + HProcID |
| | | } |
| | | if (HSourceID != '' && HSourceID != undefined && HSourceID != 0) { |
| | | sWhere += ' and HSourceID=' + HSourceID + '' |
| | | } |
| | | if (HMaterID != '' && HMaterID != undefined && HMaterID != 0) { |
| | | sWhere += ' and HMaterID=' + HMaterID |
| | | } |
| | | $.ajax({ |
| | | type: "get", |
| | |
| | | } else if (openType2 == "SeOrder") { |
| | | sWhere += " and ç©æå±æ§='èªå¶' " |
| | | } |
| | | Organ(HOrgID); |
| | | if (typeof (HOrgID) != "undefined") { |
| | | Organ(HOrgID); |
| | | } |
| | | |
| | | } |
| | | } |
| | | //#endregion |
| | |
| | | <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> |
| | | <li lay-id="2" style="padding:1px;">å¶åä¿¡æ¯</li> |
| | | </ul> |
| | | <div class="layui-tab-content"> |
| | | <!--åºæ¬ä¿¡æ¯--> |
| | |
| | | </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:#efefef4d;" readonly> |
| | | </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="HMaterModel" lay-verify="HMaterModel" id="HMaterModel" style="background-color:#efefef4d;" readonly> |
| | | </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="HProcName" name="HProcName" id="HProcName" style="background-color:#efefef4d;width: 60%;display: inline-block;" readonly> |
| | |
| | | </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="HSourceName" name="HSourceName" id="HSourceName" style="background-color:#efefef4d;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="btnSearchHSource" id="btnSearchHSource" 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;">äºä¸é¨<label style="color:red"> * </label></label> |
| | | <div class="layui-input-block" style="margin-left: 128px; width: 185px;"> |
| | |
| | | <input type="text" class="layui-input" lay-verify="HRemark" name="HRemark" id="HRemark"> |
| | | </div> |
| | | </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="HSourceName" name="HSourceName" id="HSourceName" style="background-color:#efefef4d;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="btnSearchHSource" id="btnSearchHSource" 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> |
| | | </div> |
| | | <!--å
¶ä»ä¿¡æ¯--> |
| | |
| | | $("#HMaker").val(sessionStorage["HUserName"]); |
| | | $("#HMakerDate").val(Format(new Date(), "yyyy-MM-dd")); |
| | | |
| | | //åå§åæ¥æ |
| | | $("#HDate").val(Format(new Date(), "yyyy-MM-dd")); |
| | | } else if (OperationType == 2) { //å¤å¶ |
| | | //ç¦ç¨ç»ç»é项 |
| | | $("#HOrgID").attr("disabled", true); |
| | | //åå§å项ç®é¶æ®µè¡¨ |
| | | get_InitGrid(); |
| | | RoadBillMain(linterid); |
| | | //çæå¹¶è®¾ç½®ä¸»è¡¨çå
ç ååæ®å· |
| | | createBillNo(); |
| | | |
| | | //åå§åå¶å人åå¶åæ¶é´ |
| | | $("#HMaker").val(sessionStorage["HUserName"]); |
| | | $("#HMakerDate").val(Format(new Date(), "yyyy-MM-dd")); |
| | | $("#HUpdater").val(); |
| | | $("#HUpdaterDate").val(); |
| | | $("#HChecker").val(); |
| | | $("#HCheckerDate").val(); |
| | | $("#HCloseMan").val(); |
| | | $("#HCloseManDate").val(); |
| | | $("#HDeleteMan").val(); |
| | | $("#HDeleteManDate").val(); |
| | | $("#HBacker").val(); |
| | | $("#HBackerDate").val(); |
| | | //åå§åæ¥æ |
| | | $("#HDate").val(Format(new Date(), "yyyy-MM-dd")); |
| | | } |
| | |
| | | , { type: 'numbers', title: 'åºå·', style: 'background-color: #f9f9f9;' } |
| | | , { field: 'HEmpID', title: 'èè¯äººID', hide: true } |
| | | , { field: 'HEmpNumber', title: 'èè¯äººä»£ç ', edit: 'text', event: "HEmpNumber" }//f7 |
| | | , { field: 'HEmpName', title: 'èè¯äººåç§°' } |
| | | , { field: 'HEmpName', title: 'èè¯äººåç§°', style: 'background-color:#efefef4d;' } |
| | | , { field: 'HLowMark', title: 'æä½è¦æ±åæ°', edit: 'text' } |
| | | , { field: 'HMark', title: 'åæ°', edit: 'text' } |
| | | , { field: 'HRemark', title: '夿³¨', edit: 'text' } |
| | |
| | | , area: ['90%', '90%']//å¤§å° |
| | | , title: 'é¨é¨å表'//æ é¢ |
| | | , shift: 2//å¼¹åºå¨ç» |
| | | , content: ['../../åºç¡èµæ/å
¬ç¨åºç¡èµæ/Gy_DepartmentList.html', 'yes'] |
| | | , content: ['../../åºç¡èµæ/å
¬ç¨åºç¡èµæ/Gy_DepartmentList.html?HType=2&HOrgName='+sessionStorage["Organization"], 'yes'] |
| | | , btn: ['ç¡®å®', 'åæ¶'] |
| | | , btn1: function (index, layero) {//æé®ãæé®ä¸ãçåè° |
| | | var iframeWindow = window['layui-layer-iframe' + index] //è·åå¼¹æ¡é¡µé¢ |
| | |
| | | , area: ['90%', '90%']//å¤§å° |
| | | , title: 'ç©æå表'//æ é¢ |
| | | , shift: 2//å¼¹åºå¨ç» |
| | | , content: ['../../åºç¡èµæ/å
¬ç¨åºç¡èµæ/Gy_Material.html', 'yes'] |
| | | , content: ['../../åºç¡èµæ/å
¬ç¨åºç¡èµæ/Gy_Material.html?Type=2', 'yes'] |
| | | , btn: ['ç¡®å®', 'åæ¶'] |
| | | , btn1: function (index, layero) {//æé®ãæé®ä¸ãçåè° |
| | | var iframeWindow = window['layui-layer-iframe' + index] //è·åå¼¹æ¡é¡µé¢ |
| | |
| | | //è·åæ°æ® |
| | | $("#HMaterID").val(checkStatus.data[0].HItemID);//ç©æid |
| | | $("#HMaterNumber").val(checkStatus.data[0].ç©æä»£ç );//ç©æä»£ç |
| | | |
| | | $("#HMaterName").val(checkStatus.data[0].ç©æåç§°); |
| | | $("#HMaterModel").val(checkStatus.data[0].è§æ ¼åå·); |
| | | layer.close(index); //å®è·åçå§ç»æ¯ææ°å¼¹åºçæä¸ªå±ï¼å¼æ¯ç±layerå
é¨å¨æéå¢è®¡ç®ç |
| | | } |
| | | , btn2: function (index, layero) { } |
| | |
| | | , area: ['90%', '90%']//å¤§å° |
| | | , title: 'å·¥åºå表'//æ é¢ |
| | | , shift: 2//å¼¹åºå¨ç» |
| | | , content: ['../../åºç¡èµæ/ç产åºç¡èµæ/Gy_Process.html', 'yes'] |
| | | , content: ['../../åºç¡èµæ/ç产åºç¡èµæ/Gy_Process.html?Type=2', 'yes'] |
| | | , btn: ['ç¡®å®', 'åæ¶'] |
| | | , btn1: function (index, layero) {//æé®ãæé®ä¸ãçåè° |
| | | var iframeWindow = window['layui-layer-iframe' + index] //è·åå¼¹æ¡é¡µé¢ |
| | |
| | | , area: ['90%', '90%']//å¤§å° |
| | | , title: 'çäº§èµæºå表'//æ é¢ |
| | | , shift: 2//å¼¹åºå¨ç» |
| | | , content: ['../../åºç¡èµæ/ç产åºç¡èµæ/Gy_Source.html', 'yes'] |
| | | , content: ['../../åºç¡èµæ/ç产åºç¡èµæ/Gy_Source.html?Type=&Type2=2', 'yes'] |
| | | , btn: ['ç¡®å®', 'åæ¶'] |
| | | , btn1: function (index, layero) {//æé®ãæé®ä¸ãçåè° |
| | | var iframeWindow = window['layui-layer-iframe' + index] //è·åå¼¹æ¡é¡µé¢ |
| | |
| | | , "HCheckEmpName": data[0]["è¯å®äººåç§°"] |
| | | , "HMaterID": data[0]["HMaterID"] |
| | | , "HMaterNumber": data[0]["ç©æä»£ç "] |
| | | , "HMaterName": data[0]["ç©æåç§°"] |
| | | , "HMaterModel": data[0]["è§æ ¼åå·"] |
| | | , "HProcID": data[0]["HProcID"] |
| | | , "HProcName": data[0]["å·¥åºåç§°"] |
| | | , "HSourceID": data[0]["HSourceID"] |
| | | , "HSourceName": data[0]["çäº§èµæºåç§°"] |
| | | , "HRemark": data[0]["è¡¨å¤´å¤æ³¨"] |
| | | , "HMaker": data[0]["å¶å人"] |
| | | , "HMakeDate": data[0]["å¶åæ¥æ"] == null ? "" : Format(new Date(data[0]["å¶åæ¥æ"]), "yyyy-MM-dd") |
| | | , "HUpDater": data[0]["ä¿®æ¹äºº"] |
| | | , "HUpDateDate": data[0]["ä¿®æ¹æ¥æ"] == null ? "" : Format(new Date(data[0]["ä¿®æ¹æ¥æ"]), "yyyy-MM-dd") |
| | | , "HMakerDate": data[0]["å¶åæ¥æ"] == null ? "" : Format(new Date(data[0]["å¶åæ¥æ"]), "yyyy-MM-dd") |
| | | , "HUpdater": data[0]["ä¿®æ¹äºº"] |
| | | , "HUpdaterDate": data[0]["ä¿®æ¹æ¥æ"] == null ? "" : Format(new Date(data[0]["ä¿®æ¹æ¥æ"]), "yyyy-MM-dd") |
| | | , "HChecker": data[0]["å®¡æ ¸äºº"] |
| | | , "HCheckDate": data[0]["å®¡æ ¸æ¥æ"] == null ? "" : Format(new Date(data[0]["å®¡æ ¸æ¥æ"]), "yyyy-MM-dd") |
| | | , "HCheckerDate": data[0]["å®¡æ ¸æ¥æ"] == null ? "" : Format(new Date(data[0]["å®¡æ ¸æ¥æ"]), "yyyy-MM-dd") |
| | | , "HCloseMan": data[0]["å
³é人"] |
| | | , "HCloseDate": data[0]["å
³éæ¥æ"] == null ? "" : Format(new Date(data[0]["å
³éæ¥æ"]), "yyyy-MM-dd") |
| | | , "HCloseManDate": data[0]["å
³éæ¥æ"] == null ? "" : Format(new Date(data[0]["å
³éæ¥æ"]), "yyyy-MM-dd") |
| | | , "HDeleteMan": data[0]["ä½åºäºº"] |
| | | , "HDeleteDate": data[0]["ä½åºæ¥æ"] == null ? "" : Format(new Date(data[0]["ä½åºæ¥æ"]), "yyyy-MM-dd") |
| | | , "HDeleteManDate": data[0]["ä½åºæ¥æ"] == null ? "" : Format(new Date(data[0]["ä½åºæ¥æ"]), "yyyy-MM-dd") |
| | | }); |
| | | |
| | | //ç»ç»çå¼HOrgIDååï¼éæ°æ¸²æ |
| | |
| | | function GetGyMaterial(obj) { |
| | | $("#HMaterID").val(obj.HItemID);//ç©æid |
| | | $("#HMaterNumber").val(obj.ç©æä»£ç );//ç©æåç§° |
| | | $("#HMaterName").val(obj.ç©æåç§°); |
| | | $("#HMaterModel").val(obj.è§æ ¼åå·); |
| | | } |
| | | //å·¥åº |
| | | function GetProcessValue(obj) { |
| | |
| | | <script src="../../../layuiadmin/PubCustom.js"></script> |
| | | <script src="../../../layuiadmin/zgqCustom/zgqCustom.js"></script> |
| | | <script src="../../../layuiadmin/PageTitle.js"></script> |
| | | |
| | | <script src="../../../layuiadmin/HideButton_New.js"></script> |
| | | <script src="../../../layuiadmin/SetColumn.js"></script> |
| | | </head> |
| | | <body> |
| | | <div class="layui-fluid"> |
| | |
| | | <span>æ´å¤</span> |
| | | </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="HBillNo" id="HBillNo"> |
| | | <label class="layui-form-label">æ¥æé´é</label> |
| | | <div class="layui-input-block"> |
| | | <select name="HInitTimeCycle" id="HInitTimeCycle" class="ForFilteringSchemes" lay-filter="HInitTimeCycle" style="width:190px;"> |
| | | </select> |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline"> |
| | |
| | | <input type="date" class="layui-input ForFilteringSchemes" id="HEndDate" style="width:190px;"> |
| | | </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="HBillNo" id="HBillNo"> |
| | | </div> |
| | | </div> |
| | | |
| | | <button class="layui-btn layuiadmin-btn-order" type="button" lay-submit="" lay-filter="btnSearch" id="btnSearch"> |
| | | <i class="layui-icon layui-icon-search layuiadmin-button-btn"></i> |
| | | </button> |
| | |
| | | </div> |
| | | <table class="" id="mainTable" lay-filter="mainTable"></table> |
| | | <script type="text/html" id="toolbarDemo"> |
| | | <div class="layui-btn-container"> |
| | | <button type="button" class="layui-btn layui-btn-sm" lay-event="set_AddNew"><i class="layui-icon layui-icon-file-b"></i>æ°å¢</button> |
| | | <button type="button" class="layui-btn layui-btn-sm" lay-event="set_ShowBill"><i class="layui-icon layui-icon-form"></i>ç¼è¾</button> |
| | | <button type="button" class="layui-btn layui-btn-sm" lay-event="set_DeleteBill"><i class="layui-icon layui-icon-delete"></i>å é¤</button> |
| | | <button type="button" class="layui-btn layui-btn-sm" lay-event="get_Refresh"><i class="layui-icon layui-icon-refresh-3"></i>å·æ°</button> |
| | | <button type="button" class="layui-btn layui-btn-sm" lay-event="btn-Audit"><i class="layui-icon layui-icon-radio"></i>å®¡æ ¸</button> |
| | | <button type="button" class="layui-btn layui-btn-sm" lay-event="btn-DeAudit"><i class="layui-icon layui-icon-circle"></i>åå®¡æ ¸</button> |
| | | <button type="button" class="layui-btn layui-btn-sm" lay-event="btn-Close"><i class="layui-icon layui-icon-radio"></i>å
³é</button> |
| | | <button type="button" class="layui-btn layui-btn-sm" lay-event="btn-DeClose"><i class="layui-icon layui-icon-radio"></i>åå
³é</button> |
| | | <button type="button" class="layui-btn layui-btn-sm" lay-event="btn-Drop"><i class="layui-icon layui-icon-radio"></i>ä½åº</button> |
| | | <button type="button" class="layui-btn layui-btn-sm" lay-event="btn-DeDrop"><i class="layui-icon layui-icon-radio"></i>åä½åº</button> |
| | | <button type="button" class="layui-btn layui-btn-sm" lay-event="get_Exit"><i class="layui-icon layui-icon-logout"></i>éåº</button> |
| | | <button type="button" class="layui-btn layui-btn-sm" lay-event="set_HideColumn"><i class="layui-icon layui-icon-form"></i>å设置</button> |
| | | <div class="layui-btn-container" id="toolbarDemo_ButtonSet"> |
| | | <button type="button" class="layui-btn layui-btn-sm" lay-event="set_AddNew" id="set_AddNew"><i class="layui-icon layui-icon-file-b"></i>æ°å¢</button> |
| | | <button type="button" class="layui-btn layui-btn-sm" lay-event="set_Copy" id="set_Copy"><i class="layui-icon layui-icon-form"></i>å¤å¶</button> |
| | | <button type="button" class="layui-btn layui-btn-sm" lay-event="set_ShowBill" id="set_ShowBill"><i class="layui-icon layui-icon-form"></i>ç¼è¾</button> |
| | | <button type="button" class="layui-btn layui-btn-sm" lay-event="set_DeleteBill" id="set_DeleteBill"><i class="layui-icon layui-icon-delete"></i>å é¤</button> |
| | | <button type="button" class="layui-btn layui-btn-sm" lay-event="get_Refresh" id="get_Refresh"><i class="layui-icon layui-icon-refresh-3"></i>å·æ°</button> |
| | | <button type="button" class="layui-btn layui-btn-sm" lay-event="btn-Audit" id="Audit"><i class="layui-icon layui-icon-radio"></i>å®¡æ ¸</button> |
| | | <button type="button" class="layui-btn layui-btn-sm" lay-event="btn-DeAudit" id="DeAudit"><i class="layui-icon layui-icon-circle"></i>åå®¡æ ¸</button> |
| | | <button type="button" class="layui-btn layui-btn-sm" lay-event="btn-Close" id="Close"><i class="layui-icon layui-icon-radio"></i>å
³é</button> |
| | | <button type="button" class="layui-btn layui-btn-sm" lay-event="btn-DeClose" id="DeClose"><i class="layui-icon layui-icon-radio"></i>åå
³é</button> |
| | | <button type="button" class="layui-btn layui-btn-sm" lay-event="btn-Drop" id="Drop"><i class="layui-icon layui-icon-radio"></i>ä½åº</button> |
| | | <button type="button" class="layui-btn layui-btn-sm" lay-event="btn-DeDrop" id="DeDrop"><i class="layui-icon layui-icon-radio"></i>åä½åº</button> |
| | | <button type="button" class="layui-btn layui-btn-sm" lay-event="get_Exit" id="get_Exit"><i class="layui-icon layui-icon-logout"></i>éåº</button> |
| | | <button type="button" class="layui-btn layui-btn-sm" lay-event="get_export" id="get_export"><i class="layui-icon layui-icon-export"></i>导åº</button> |
| | | <button type="button" class="layui-btn layui-btn-sm" lay-event="set_HideColumn" id="set_HideColumn"><i class="layui-icon layui-icon-form"></i>å设置</button> |
| | | <button type="button" class="layui-btn layui-btn-sm" lay-event="set_HideButton" id="set_HideButton"><i class="layui-icon layui-icon-form"></i>æé®è®¾ç½®</button> |
| | | <button type="button" class="layui-btn layui-btn-sm" lay-event="set_SaveScheme" id="set_SaveScheme"><i class="layui-icon layui-icon-template"></i>ä¿åæ¹æ¡</button> |
| | | <button type="button" class="layui-btn layui-btn-sm" lay-event="set_ReadScheme" id="set_ReadScheme"><i class="layui-icon layui-icon-set"></i>è¯»åæ¹æ¡</button> |
| | | </div> |
| | |
| | | var option = []; |
| | | var sWhere = ""; |
| | | var HModName = "HR_EmployeeSkillExamBillList"; |
| | | |
| | | var HBillType = "2332"; |
| | | var set_HideButton_ID = "toolbarDemo_ButtonSet"; |
| | | //ä¸éè¦æ¾ç¤ºçåæ®µ 坿©å± |
| | | var titleData = ["hmainid", "HEntryID", "HPostID", "HDeptID", "HPostSkillid", "HOrgID", "HProcID","HMaterID"]; |
| | | |
| | |
| | | //æ°å¢ |
| | | case 'set_AddNew': set_AddNew(); |
| | | break; |
| | | //å¤å¶ |
| | | case 'set_Copy': set_Copy(); |
| | | break; |
| | | //ç¼è¾ |
| | | case 'set_ShowBill': set_ShowBill(); |
| | | break; |
| | |
| | | //éåºæé® |
| | | case 'get_Exit': Pub_Close(2); |
| | | break; |
| | | //导åºexcel |
| | | case 'get_export': |
| | | get_Export(); |
| | | break; |
| | | //å设置 |
| | | case 'set_HideColumn': get_HideColumn(); |
| | | case 'set_HideColumn': get_HideColumnNoPage(HModName, sessionStorage["HUserName"], option, get_FastQuery); |
| | | break; |
| | | //ä¿åæ¹æ¡ |
| | | case 'set_SaveScheme': set_SaveScheme(); |
| | |
| | | //è¯»åæ¹æ¡ |
| | | case 'set_ReadScheme': set_ReadScheme(); |
| | | break; |
| | | //æé®è®¾ç½® |
| | | case 'set_HideButton': |
| | | get_HideButton(set_HideButton_ID, HBillType, HModName, sessionStorage["HUserName"]); |
| | | break; |
| | | }; |
| | | }); |
| | | //#endregion |
| | | |
| | | //#region æ¥æé´é䏿å表çå¬ |
| | | form.on('select(HInitTimeCycle)', function (data) { |
| | | var HInitTimeCycle = $("#HInitTimeCycle").val() * 1; |
| | | //è¥æ¥æé´éä¸ä¸º ä»»æé´éï¼åç¦ç¨å¼å§æ¥æä¸ç»ææ¥æçéæ© |
| | | if (HInitTimeCycle != -1) { |
| | | //$('#HDate').prop('disabled', true); |
| | | //$('#HDate1').prop('disabled', true); |
| | | |
| | | $("#HBeginDate").val(Format(new Date().setDate(new Date().getDate()), "yyyy-MM-dd"));//æ¬ ææ¥æ |
| | | $("#HEndDate").val(Format(new Date().setDate(new Date().getDate() + HInitTimeCycle), "yyyy-MM-dd"));//è³ |
| | | |
| | | //æ§è¡æ¥è¯¢æ¹æ³ |
| | | get_FastQuery(2); |
| | | } else { |
| | | //$('#HDate').prop('disabled', false); |
| | | //$('#HDate1').prop('disabled', false); |
| | | } |
| | | }); |
| | | //#endregion |
| | | |
| | |
| | | get_FastQuery(2); |
| | | }); |
| | | //#endregion |
| | | //è¶
龿¥è·³è½¬ |
| | | table.on('tool(mainTable)', function (obj) { |
| | | var data = obj.data; |
| | | if (obj.event == 'åæ®å·') { |
| | | var HInterID = obj.data.HInterID.toString(); |
| | | //if (AllowLoadData(sSubStr) != false) {//é空éªè¯ |
| | | layer.open({ |
| | | type: 2 |
| | | , area: ['100%', '100%'] |
| | | , title: 'æè½èæ ¸è®°å½-ç¼è¾' |
| | | , shade: 0.6 //é®ç½©éæåº¦ |
| | | , maxmin: true //å
许å
¨å±æå°å |
| | | , anim: 0 //0-6çå¨ç»å½¢å¼ï¼-1ä¸å¼å¯ |
| | | , content: '../../å·¥èµç®¡ç/æè½èæ ¸/HR_EmployeeSkillExamBill.html?OperationType=3&linterid=' + HInterID + '&HSouceBillType=' |
| | | , resize: false |
| | | , cancel: function () { |
| | | //$(".layui-btn").removeClass("layui-btn-disabled"); |
| | | } |
| | | , end: function () { |
| | | //å·æ°é¡µé¢, |
| | | get_FastQuery(table, option); |
| | | } |
| | | }) |
| | | } |
| | | }); |
| | | |
| | | //#endregion |
| | | |
| | |
| | | |
| | | //#region åå§åçé¢ |
| | | function set_ClearBill() { |
| | | $("#HBeginDate").val(Format(new Date(new Date() - 1000 * 60 * 60 * 24 * 7), "yyyy-MM-dd")); |
| | | $("#HEndDate").val(Format(new Date(), "yyyy-MM-dd")); |
| | | //åå§åæ¥æé´éãå¼å§æ¥æãç»ææ¥æ |
| | | setSelect_HInitTimeCycle(); |
| | | //è¥æ¥æé´éä¸ä¸º ä»»æé´éï¼åç¦ç¨å¼å§æ¥æä¸ç»ææ¥æçéæ© |
| | | var HInitTimeCycle = $("#HInitTimeCycle").val() * 1; |
| | | //åå§åæ¥æ |
| | | $("#HBeginDate").val(Format(new Date(new Date()), "yyyy-MM-dd"));//æææ¥æ |
| | | $("#HEndDate").val(Format(new Date().setDate(new Date().getDate() + HInitTimeCycle), "yyyy-MM-dd"));//è³ |
| | | //åå§åè¡¨æ ¼ |
| | | set_InitGrid(); |
| | | //æ¥è¯¢ |
| | | get_FastQuery(1); |
| | | get_FastQuery(2); |
| | | //Organ(); |
| | | |
| | | //æ¥è¯¢å½åç»å½ç¨æ·ææ²¡æå¨å½å模å设置é»è®¤è¿æ»¤æ¹æ¡ |
| | |
| | | // if (data[i].name == 'HInterID' || data[i].name == 'HBillType' || data[i].name == 'hmainid') { |
| | | if ($.inArray(data[i].name, titleData) > -1) { |
| | | col.push({ field: data[i].id, title: data[i].name, align: 'center', hide: true }); //éèidå |
| | | } else if (data[i].name == 'åæ®å·') {//æ·»å è¶
龿¥ |
| | | col.push({ |
| | | field: data[i].id, title: data[i].name, align: 'center', sort: true, width: 200, event: 'åæ®å·', templet: function (d) { |
| | | return '<span style="color: blue;">' + d.åæ®å· + '</span>' |
| | | }, style: 'cursor: pointer;' |
| | | }); |
| | | } |
| | | else { |
| | | switch (data[i].Type) { |
| | |
| | | table.render(option); |
| | | |
| | | //å·æ°è¡¨æ ¼æ°æ® |
| | | DisPlay_HideColumn(); |
| | | DisPlay_HideColumn(HModName, sessionStorage["HUserName"], option, titleData); |
| | | ins = table.render(option); |
| | | |
| | | if ($("#Comparator").val() == 0 && $("#ColContent").val() == "") { |
| | | ColFilter(); |
| | | } |
| | | |
| | | Display_HideButton(set_HideButton_ID, HBillType, HModName, sessionStorage["HUserName"]); |
| | | layer.close(ajaxLoad); |
| | | |
| | | //layer.alert("æ¥è¯¢æå", { icon: 1 }); |
| | |
| | | } |
| | | //#endregion |
| | | |
| | | //#region å¤å¶ |
| | | function set_Copy() { |
| | | var checkStatus = table.checkStatus('mainTable') |
| | | , data = checkStatus.data; |
| | | if (checkStatus.data.length === 1) { |
| | | var HInterID = data[0].HInterID.toString(); |
| | | layer.open({ |
| | | type: 2 |
| | | , area: ['100%', '100%'] |
| | | , title: 'å¤å¶-æè½èæ ¸è®°å½' |
| | | , shade: 0.6 //é®ç½©éæåº¦ |
| | | , maxmin: true //å
许å
¨å±æå°å |
| | | , anim: 0 //0-6çå¨ç»å½¢å¼ï¼-1ä¸å¼å¯ |
| | | , content: '../../å·¥èµç®¡ç/æè½èæ ¸/HR_EmployeeSkillExamBill.html?OperationType=2&linterid=' + HInterID + '&HSouceBillType=' |
| | | , resize: false, |
| | | end: function () { |
| | | //å·æ°é¡µé¢, |
| | | $("#btnSearch").trigger('click'); |
| | | } |
| | | , cancel: function () { |
| | | } |
| | | }) |
| | | } else { |
| | | layer.msg('è¯·éæ©ä¸è¡æ°æ®ç¼è¾ï¼'); |
| | | } |
| | | } |
| | | //#endregion |
| | | |
| | | //#region ç¼è¾ |
| | | function set_ShowBill() { |
| | | var checkStatus = table.checkStatus('mainTable') |
| | |
| | | } |
| | | //#endregion |
| | | |
| | | //#region 导åºExecel |
| | | function get_Export() { |
| | | var ModRightNameCheck = ""; |
| | | option.data.forEach((item) => { |
| | | for (let itemobj in item) { |
| | | if (item[itemobj] == null) { |
| | | item[itemobj] = ""; |
| | | } |
| | | if (item[itemobj].length > 0) { // åè®¾åæ®µå为field |
| | | item[itemobj] = item[itemobj].toString().replaceAll(/[\r\n]+/g, ''); // å°æ¢è¡ç¬¦æ¿æ¢ä¸ºç©ºå符串 |
| | | } |
| | | } |
| | | }); |
| | | table.exportFile(ins.config.id, option.data, "xlsx"); |
| | | //é»è¾å®¡æ ¸æ¹æ³ |
| | | //$.ajax({ |
| | | // type: "GET", |
| | | // url: GetWEBURL() + "/LMES/getReportByModRightNameCheck", //æ¹æ³æå¨é¡µé¢åæ¹æ³å |
| | | // data: { "ModRightNameCheck": ModRightNameCheck, "user": sessionStorage["HUserName"] }, |
| | | // success: function (result) { |
| | | // if (result.count == 1) { |
| | | |
| | | // } else { |
| | | // layer.alert("å½åæ¨¡åæ²¡æå¯¼åºæé!", { icon: 5 }); |
| | | // } |
| | | // }, error: function () { |
| | | // layer.alert("æ¥å£è¯·æ±å¤±è´¥!", { icon: 5 }); |
| | | // } |
| | | //}); |
| | | } |
| | | //#endregion |
| | | |
| | | //#region å é¤ |
| | | function set_DeleteBill() { |
| | | var checkStatus = table.checkStatus('mainTable') |
| | | , data = checkStatus.data; |
| | | if (checkStatus.data.length === 1) { |
| | | if (checkStatus.data.length === 1 && data[0].å®¡æ ¸äºº=="") { |
| | | var HInterID = data[0].hmainid.toString(); |
| | | layer.confirm("确认è¦å é¤åï¼å é¤åä¸è½æ¢å¤", { title: "å é¤ç¡®è®¤" }, function (index) { |
| | | var wait = layer.load(); |
| | |
| | | }) |
| | | } |
| | | else { |
| | | layer.msg('è¯·éæ©ä¸è¡æ°æ®å é¤ï¼'); |
| | | layer.msg('è¯·éæ©ä¸è¡æªå®¡æ ¸æ°æ®å é¤ï¼'); |
| | | } |
| | | |
| | | } |
| | |
| | | } |
| | | //#endregion |
| | | |
| | | //#region éèå设置 |
| | | function get_HideColumn() { |
| | | var colName = ""; |
| | | var contentUrl = ""; |
| | | for (var i = 1; i < option.cols[0].length; i++) { |
| | | colName += option.cols[0][i]["title"] + ","; |
| | | } |
| | | var urlStr = window.document.location.pathname;//è·åæä»¶è·¯å¾ |
| | | var urlLen = urlStr.split('/'); |
| | | for (var i = 0; i < urlLen.length - 4; i++) { |
| | | contentUrl += "../"; |
| | | } |
| | | colName = encodeURI(colName.substring(0, colName.length - 1));//对 URI è¿è¡ç¼ç |
| | | |
| | | contentUrl += 'åºç¡èµæ/éèå设置/Gy_GridView_Hide.html?HModName=' + HModName + '&colName=' + colName; |
| | | |
| | | layer.open({ |
| | | type: 2 |
| | | , skin: "layui-layer-rim" //å ä¸è¾¹æ¡ |
| | | , title: "éèå设置" //æ é¢ |
| | | , closeBtn: 1 //çªä½å³ä¸è§å
³é ç æ ·å¼ |
| | | , shift: 2 //å¼¹åºå¨ç» |
| | | , area: ["50%", "90%"] //çªä½å¤§å° |
| | | , maxmin: true //设置æå¤§æå°æé®æ¯å¦æ¾ç¤º |
| | | , content: [contentUrl, "yes"] |
| | | , btn: ["ç¡®å®", "åæ¶"] |
| | | , btn1: function (index, laero) { |
| | | //å·æ°è¡¨æ ¼æ°æ® |
| | | DisPlay_HideColumn(); |
| | | //æ´æ°è¡¨æ ¼ç¼åçæ°æ® |
| | | layer.close(index);//å
³éå¼¹çª |
| | | } |
| | | }) |
| | | } |
| | | //#endregion |
| | | |
| | | //#region æ¾ç¤ºåæ°æ® |
| | | function DisPlay_HideColumn() { |
| | | $.ajax({ |
| | | url: GetWEBURL() + '/Xt_grdAlignment_WMES/grdAlignmentWMESList', |
| | | type: "GET", |
| | | data: { "HModName": HModName, "user": sessionStorage["HUserName"] }, |
| | | success: function (data1) { |
| | | if (data1.data.length != 0) { |
| | | |
| | | var dataCol = [];//æ°æ®åºæ¥è¯¢åºçåæ°æ® |
| | | //var titleData = ["åæ®ID", "HMouldID", "hsubid", "HManagerID", "æºå主å
ç ", "æºååå
ç "];//ä¸éè¦æ¾ç¤ºçåæ®µ 坿©å± |
| | | |
| | | dataCol = data1.data[0].HGridString.split(','); |
| | | |
| | | for (var i = 0; i < option.cols[0].length - 1; i++) { |
| | | var dataCols = dataCol[i].split('|'); |
| | | //éèå |
| | | if (dataCols[1] == 1) { |
| | | option.cols[0][i + 1]["hide"] = true; |
| | | } |
| | | //设置å宽 |
| | | if (dataCols[3] > 0) { |
| | | option.cols[0][i + 1]["width"] = dataCols[3]; |
| | | } |
| | | //设置å
容åä½å¤§å° |
| | | if (data1.data[0].HFontSize != 0) { |
| | | option.cols[0][i + 1]["style"] = "font-size:" + data1.data[0].HFontSize + "px;"; |
| | | } else { |
| | | option.cols[0][i + 1]["style"] = "font-size:100%"; |
| | | } |
| | | //设置å宽 |
| | | //if (data1.data[0].HColumnWidth != 0) { |
| | | // option.cols[0][i + 1]["width"] = data1.data[0].HColumnWidth + "px;"; |
| | | //} else { |
| | | // option.cols[0][i + 1]["width"] = ""; |
| | | //} |
| | | //æ¾ç¤ºå |
| | | if (dataCols[1] == 0 && $.inArray(option.cols[0][i + 1]["title"], titleData) == -1) { |
| | | option.cols[0][i + 1]["hide"] = false; |
| | | } |
| | | //å使å¨ä½ç½®(å·¦ å±
ä¸ å³) |
| | | switch (dataCols[2]) { |
| | | case "L": |
| | | option.cols[0][i + 1]["align"] = "left"; |
| | | break; |
| | | case "M": |
| | | option.cols[0][i + 1]["align"] = "center"; |
| | | break; |
| | | case "R": |
| | | option.cols[0][i + 1]["align"] = "right"; |
| | | break; |
| | | } |
| | | } |
| | | |
| | | //åæ¶å»ç»å |
| | | for (var i = 1; i < option.cols[0].length - 1; i++) { |
| | | if (option.cols[0][i]["fixed"] != null) { |
| | | option.cols[0][i]["fixed"] = null; |
| | | } |
| | | else { |
| | | break; |
| | | } |
| | | } |
| | | //å»ç»å |
| | | if (data1.data[0].HFixCols != 0) { |
| | | for (var i = 0; i < data1.data[0].HFixCols; i++) { |
| | | if ($.inArray(option.cols[0][i + 1]["title"], titleData) != -1) { |
| | | data1.data[0].HFixCols += 1; |
| | | } |
| | | option.cols[0][i + 1]["fixed"] = "left"; |
| | | } |
| | | } |
| | | table.render(option); |
| | | } else { |
| | | table.render(option); |
| | | } |
| | | }, error: function () { |
| | | layer.alert("æ¥å£è¯·æ±å¤±è´¥!", { icon: 5 }); |
| | | } |
| | | }) |
| | | } |
| | | //#endregion |
| | | |
| | | //#region åææ¾ç¤ºä¸ææ¡ |
| | | function ColFilter() { |
| | | var Organization = '<option value="0" selected="selected" ></option>'; |
| | |
| | | $("#ColName1").append(Organization); |
| | | $("#ColName2").empty(); |
| | | $("#ColName2").append(Organization); |
| | | form.render('select'); |
| | | } |
| | | //#endregion |
| | | |
| | | //#region åå§æ¥æé´é 䏿å表 |
| | | function setSelect_HInitTimeCycle() { |
| | | var valueList = [7, 30, 45, 60]; |
| | | var titleList = ["è¿7天", "è¿ä¸æ", "è¿45天", "è¿60天"]; |
| | | |
| | | var HInitTimeCycle_ArrayList = '<option value="-1" selected="selected" >ä»»æé´é</option>'; |
| | | for (var i = 0; i < valueList.length; i++) { |
| | | HInitTimeCycle_ArrayList += '<option style="color:blue;" value="' + valueList[i] + '">' + titleList[i] + '</option>'; |
| | | } |
| | | |
| | | $("#HInitTimeCycle").empty(); |
| | | $("#HInitTimeCycle").append(HInitTimeCycle_ArrayList); |
| | | |
| | | |
| | | $("#HInitTimeCycle").val("30"); |
| | | form.render('select'); |
| | | } |
| | | //#endregion |
| | |
| | | //éèæ¾ç¤ºè¿æ»¤æ¹æ¡çæ ç¾ä¿¡æ¯ |
| | | document.getElementById("HFilterScheme_Now").style.display = "none"; |
| | | //æ§è¡æ¥è¯¢æ¹æ³ |
| | | get_FastQuery(1) |
| | | form.render("select"); |
| | | } |
| | | }, error: function () { |
| | |
| | | set_InitGrid(); |
| | | //æ¥è¯¢ |
| | | get_FastQuery(); |
| | | //æ¥è¯¢å½åç»å½ç¨æ·ææ²¡æå¨å½å模å设置é»è®¤è¿æ»¤æ¹æ¡ |
| | | get_DefaultModule(); |
| | | |
| | | } |
| | | |
| | | |
| | |
| | | if (obj.event == 'åæ®å·') { //æ£æ¥ obj.event æ¯å¦çäºå符串 'åæ®å·'ã妿çäºï¼åæ§è¡ifå¾ªç¯ |
| | | var linterid = data.hmainid.toString(); //声æåélinterid 为 data.hmainid |
| | | //if (AllowLoadData(sSubStr) != false) {//é空éªè¯ |
| | | var HBillStatus = data.åæ®ç¶æ.toString(); |
| | | if (HBillStatus != "å建") { |
| | | layer.msg('åæ®ç¶æä¸ä¸ºæªå®¡æ ¸ç¶æ,ä¸å
许ç¼è¾ï¼'); |
| | | return false; |
| | | } |
| | | layer.open({ //ä½¿ç¨ layerçopenæå¼å¼¹åº å± |
| | | type: 2 //表示弹åºå±çå
容æ¯ä¸ä¸ª iframe |
| | | , area: ['100%', '100%'] |
| | |
| | | if ($.inArray(data[i].name, titleData) > -1) { |
| | | col.push({ field: data[i].id, title: data[i].name, align: 'center', hide: true }); //éèidå |
| | | } else if (data[i].name == 'åæ®å·') { |
| | | col.push({ field: data[i].id, title: data[i].name, align: 'center', sort: true, width: 200, event: 'åæ®å·' }); |
| | | col.push({ |
| | | field: data[i].id, title: data[i].name, align: 'center', sort: true, width: 200, event: 'åæ®å·', templet: function (d) { |
| | | return '<span style="color: blue;">' + d.åæ®å· + '</span>' |
| | | }, style: 'cursor: pointer;' |
| | | }); |
| | | } |
| | | else { |
| | | switch (data[i].Type) { |
| | |
| | | Display_HideButton(set_HideButton_ID, HBillType, HModName, sessionStorage["HUserName"]); |
| | | |
| | | layer.close(ajaxLoad); |
| | | if ($("#Comparator").val() == 0 && $("#ColContent").val() == "") { |
| | | if ($("#ColName option").length < 1) { |
| | | ColFilter(); |
| | | //æ¥è¯¢å½åç»å½ç¨æ·ææ²¡æå¨å½å模å设置é»è®¤è¿æ»¤æ¹æ¡ |
| | | get_DefaultModule(); |
| | | } |
| | | } else { |
| | | layer.close(ajaxLoad); |
| | |
| | | , data = checkStatus.data; |
| | | if (checkStatus.data.length === 1) { |
| | | var linterid = data[0].hmainid.toString(); |
| | | var HBillStatus = data[0].HBillStatus.toString(); |
| | | if (HBillStatus != "1") { |
| | | var HBillStatus = data[0].åæ®ç¶æ.toString(); |
| | | if (HBillStatus != "å建") { |
| | | layer.msg('åæ®ç¶æä¸ä¸ºæªå®¡æ ¸ç¶æ,ä¸å
许ç¼è¾ï¼'); |
| | | return false; |
| | | } |
| | |
| | | , data = checkStatus.data; |
| | | if (checkStatus.data.length === 1) { |
| | | var InterID = data[0].hmainid.toString(); |
| | | var HBillStatus = data[0].HBillStatus.toString(); |
| | | if (HBillStatus != "1") { |
| | | layer.msg('åæ®ç¶æä¸ä¸ºæªå®¡æ ¸ç¶æ,ä¸å
许å é¤ï¼'); |
| | | var HBillStatus = data[0].åæ®ç¶æ.toString(); |
| | | if (HBillStatus != "å建") { |
| | | layer.msg('åæ®ç¶æä¸ä¸ºæªå®¡æ ¸ç¶æ,ä¸å
许ç¼è¾ï¼'); |
| | | return false; |
| | | } |
| | | //é»è¾å 餿¹æ³ |
| | |
| | | <input type="text" class="layui-input ForFilteringSchemes" name="HSource" id="HSource"> |
| | | </div> |
| | | </div> |
| | | <button class="layui-btn layuiadmin-btn-order" type="button" lay-submit="" style="display:none;" lay-filter="btnSearch" id="btnSearch"> |
| | | <button class="layui-btn layuiadmin-btn-order" type="button" lay-submit="" lay-filter="btnSearch" id="btnSearch"> |
| | | <i class="layui-icon layui-icon-search layuiadmin-button-btn"></i> |
| | | </button> |
| | | <button class="layui-btn layuiadmin-btn-order" type="button" lay-submit="" lay-filter="btnReSearch" id="btnReSearch" style="padding: 0 5px; display: none;">éç½®</button> |
| | | <button class="layui-btn layuiadmin-btn-order" type="button" lay-submit="" lay-filter="btnReSearch" id="btnReSearch" style="padding: 0 5px; ">éç½®</button> |
| | | <!--æ¾ç¤ºå½åè¿æ»¤æ¹æ¡--> |
| | | <div class="layui-inline" style="margin-left:5px;"> |
| | | <div style="text-align:center;font-size:15px;font-weight:bold;color:#fc9393" id="HFilterScheme_Now"></div> |
| | |
| | | //è¿æ»¤æ¡ä»¶çclassç±» |
| | | var HClassTag = "ForFilteringSchemes"; |
| | | //模ååç§°ï¼ä¸æçï¼ æ¯ä¸ªæ¨¡å页é¢é½éè¦ä¿®æ¹ |
| | | window.HModuleName = "åå·¥åç»´æ¤"; |
| | | window.HModuleName = "å®å·¥åç»´æ¤"; |
| | | //æ¯å¦å·²ç»éæ©äºè¿æ»¤æ¹æ¡ï¼å
¨å±åéï¼ |
| | | window.HDefaultFilter = ""; |
| | | //éæ©çè¿æ»¤æ¹æ¡å
ç ï¼å
¨å±åéï¼ |
| | |
| | | set_InitGrid(); |
| | | //æ¥è¯¢ |
| | | get_FastQuery(); |
| | | //æ¥è¯¢å½åç»å½ç¨æ·ææ²¡æå¨å½å模å设置é»è®¤è¿æ»¤æ¹æ¡ |
| | | get_DefaultModule(); |
| | | |
| | | } |
| | | |
| | | //åå§åè¡¨æ ¼ |
| | |
| | | if (obj.event == 'åæ®å·') { //æ£æ¥ obj.event æ¯å¦çäºå符串 'åæ®å·'ã妿çäºï¼åæ§è¡ifå¾ªç¯ |
| | | var linterid = data.hmainid.toString(); //声æåélinterid 为 data.hmainid |
| | | //if (AllowLoadData(sSubStr) != false) {//é空éªè¯ |
| | | var HBillStatus = data.åæ®ç¶æ.toString(); |
| | | if (HBillStatus != "å建") { |
| | | layer.msg('åæ®ç¶æä¸ä¸ºæªå®¡æ ¸ç¶æ,ä¸å
许ç¼è¾ï¼'); |
| | | return false; |
| | | } |
| | | layer.open({ //ä½¿ç¨ layerçopenæå¼å¼¹åº å± |
| | | type: 2 //表示弹åºå±çå
容æ¯ä¸ä¸ª iframe |
| | | , area: ['100%', '100%'] |
| | |
| | | if ($.inArray(data[i].name, titleData) > -1) { |
| | | col.push({ field: data[i].id, title: data[i].name, align: 'center', hide: true }); //éèidå |
| | | } else if (data[i].name == 'åæ®å·') { |
| | | col.push({ field: data[i].id, title: data[i].name, align: 'center', sort: true, width: 200, event: 'åæ®å·' }); |
| | | col.push({ |
| | | field: data[i].id, title: data[i].name, align: 'center', sort: true, width: 200, event: 'åæ®å·', templet: function (d) { |
| | | return '<span style="color: blue;">' + d.åæ®å· + '</span>' |
| | | }, style: 'cursor: pointer;' |
| | | }); |
| | | } |
| | | else { |
| | | switch (data[i].Type) { |
| | |
| | | Display_HideButton(set_HideButton_ID, HBillType, HModName, sessionStorage["HUserName"]); |
| | | |
| | | layer.close(ajaxLoad); |
| | | if ($("#Comparator").val() == 0 && $("#ColContent").val() == "") { |
| | | if ($("#ColName option").length < 1) { |
| | | ColFilter(); |
| | | //æ¥è¯¢å½åç»å½ç¨æ·ææ²¡æå¨å½å模å设置é»è®¤è¿æ»¤æ¹æ¡ |
| | | get_DefaultModule(); |
| | | } |
| | | } else { |
| | | layer.close(ajaxLoad); |
| | |
| | | , data = checkStatus.data; |
| | | if (checkStatus.data.length === 1) { |
| | | var linterid = data[0].hmainid.toString(); |
| | | var HBillStatus = data[0].HBillStatus.toString(); |
| | | if (HBillStatus != "1") { |
| | | var HBillStatus = data[0].åæ®ç¶æ.toString(); |
| | | if (HBillStatus != "å建") { |
| | | layer.msg('åæ®ç¶æä¸ä¸ºæªå®¡æ ¸ç¶æ,ä¸å
许ç¼è¾ï¼'); |
| | | return false; |
| | | } |
| | |
| | | , data = checkStatus.data; |
| | | if (checkStatus.data.length === 1) { |
| | | var InterID = data[0].hmainid.toString(); |
| | | var HBillStatus = data[0].HBillStatus.toString(); |
| | | if (HBillStatus != "1") { |
| | | var HBillStatus = data[0].åæ®ç¶æ.toString(); |
| | | if (HBillStatus != "å建") { |
| | | layer.msg('åæ®ç¶æä¸ä¸ºæªå®¡æ ¸ç¶æ,ä¸å
许ç¼è¾ï¼'); |
| | | return false; |
| | | } |
| | |
| | | //å½åç¨æ·æ²¡æè®¾ç½®é»è®¤çè¿æ»¤æ¹æ¡ |
| | | //éèæ¾ç¤ºè¿æ»¤æ¹æ¡çæ ç¾ä¿¡æ¯ |
| | | document.getElementById("HFilterScheme_Now").style.display = "none"; |
| | | //æ§è¡æ¥è¯¢æ¹æ³ |
| | | get_FastQuery() |
| | | |
| | | form.render("select"); |
| | | } |
| | | }, error: function () { |
| | |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label">å¶åæ¥æ:</label> |
| | | <div class="layui-input-inline"> |
| | | <input type="datetime" class="layui-input" name="HMakeDate" id="HMakeDate" style="background-color:#efefef4d;" dateFormat="yyyy-MM-dd" placeholder="yyyy-MM-dd" disabled> |
| | | <input type="datetime" class="layui-input" name="HMakeDate" id="HMakeDate" style="background-color:#efefef4d;" dateFormat="yyyy-MM-dd" disabled> |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label">ä¿®æ¹æ¥æ:</label> |
| | | <div class="layui-input-inline"> |
| | | <input type="datetime" class="layui-input" name="HUpDateDate" id="HUpDateDate" style="background-color:#efefef4d;" dateFormat="yyyy-MM-dd" placeholder="yyyy-MM-dd" disabled> |
| | | <input type="datetime" class="layui-input" name="HUpDateDate" id="HUpDateDate" style="background-color:#efefef4d;" dateFormat="yyyy-MM-dd" disabled> |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label">å®¡æ ¸æ¥æ:</label> |
| | | <div class="layui-input-inline"> |
| | | <input type="datetime" class="layui-input" name="HCheckDate" id="HCheckDate" style="background-color:#efefef4d;" dateFormat="yyyy-MM-dd" placeholder="yyyy-MM-dd" disabled> |
| | | <input type="datetime" class="layui-input" name="HCheckDate" id="HCheckDate" style="background-color:#efefef4d;" dateFormat="yyyy-MM-dd"disabled> |
| | | </div> |
| | | </div> |
| | | </div> |
| | |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label">å
³éæ¥æ:</label> |
| | | <div class="layui-input-inline"> |
| | | <input type="datetime" class="layui-input" name="HCloseDate" id="HCloseDate" style="background-color:#efefef4d;" dateFormat="yyyy-MM-dd" placeholder="yyyy-MM-dd" disabled> |
| | | <input type="datetime" class="layui-input" name="HCloseDate" id="HCloseDate" style="background-color:#efefef4d;" dateFormat="yyyy-MM-dd"disabled> |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label">ä½åºæ¥æ:</label> |
| | | <div class="layui-input-inline"> |
| | | <input type="datetime" class="layui-input" name="HDeleteDate" id="HDeleteDate" style="background-color:#efefef4d;" dateFormat="yyyy-MM-dd" placeholder="yyyy-MM-dd" disabled> |
| | | <input type="datetime" class="layui-input" name="HDeleteDate" id="HDeleteDate" style="background-color:#efefef4d;" dateFormat="yyyy-MM-dd" disabled> |
| | | </div> |
| | | </div> |
| | | </div> |
| | |
| | | //éåº |
| | | form.on('submit(Exit)', function (data) { |
| | | Pub_Close(1); |
| | | window.parent.location.reload(); |
| | | }); |
| | | |
| | | |
| | |
| | | set_InitGrid(); |
| | | //æ¥è¯¢ |
| | | get_FastQuery(); |
| | | //æ¥è¯¢å½åç»å½ç¨æ·ææ²¡æå¨å½å模å设置é»è®¤è¿æ»¤æ¹æ¡ |
| | | get_DefaultModule(); |
| | | |
| | | } |
| | | |
| | | |
| | |
| | | |
| | | //åæ®å·è¶
龿¥ |
| | | if (obj.event == 'åæ®å·') { //æ£æ¥ obj.event æ¯å¦çäºå符串 'åæ®å·'ã妿çäºï¼åæ§è¡ifå¾ªç¯ |
| | | var linterid = data.hmainid.toString(); //声æåélinterid 为 data.hmainid |
| | | var linterid = data.hmainid.toString(); //声æåélinterid 为 data.hmainid |
| | | var HBillStatus = data.åæ®ç¶æ.toString(); |
| | | if (HBillStatus != "å建") { |
| | | layer.msg('åæ®ç¶æä¸ä¸ºæªå®¡æ ¸ç¶æ,ä¸å
许ç¼è¾ï¼'); |
| | | return false; |
| | | } |
| | | //if (AllowLoadData(sSubStr) != false) {//é空éªè¯ |
| | | layer.open({ //ä½¿ç¨ layerçopenæå¼å¼¹åº å± |
| | | type: 2 //表示弹åºå±çå
容æ¯ä¸ä¸ª iframe |
| | |
| | | for (var i = 0; i < data.length; i++) { |
| | | if ($.inArray(data[i].name, titleData) > -1) { |
| | | col.push({ field: data[i].id, title: data[i].name, align: 'center', hide: true }); //éèidå |
| | | } else if (data[i].name == 'åæ®å·') {//æ·»å è¶
龿¥ |
| | | col.push({ |
| | | field: data[i].id, title: data[i].name, align: 'center', sort: true, width: 200, event: 'åæ®å·', templet: function (d) { |
| | | return '<span style="color: blue;">' + d.åæ®å· + '</span>' |
| | | }, style: 'cursor: pointer;' |
| | | }); |
| | | } |
| | | else { |
| | | switch (data[i].Type) { |
| | |
| | | Display_HideButton(set_HideButton_ID, HBillType, HModName, sessionStorage["HUserName"]); |
| | | |
| | | layer.close(ajaxLoad); |
| | | if ($("#Comparator").val() == 0 && $("#ColContent").val() == "") { |
| | | if ($("#ColName option").length < 1) { |
| | | ColFilter(); |
| | | //æ¥è¯¢å½åç»å½ç¨æ·ææ²¡æå¨å½å模å设置é»è®¤è¿æ»¤æ¹æ¡ |
| | | get_DefaultModule(); |
| | | } |
| | | } else { |
| | | layer.close(ajaxLoad); |
| | |
| | | , data = checkStatus.data; |
| | | if (checkStatus.data.length === 1) { |
| | | var linterid = data[0].hmainid.toString(); |
| | | var HBillStatus = data[0].HBillStatus.toString(); |
| | | if (HBillStatus != "1") |
| | | var HBillStatus = data[0].åæ®ç¶æ.toString(); |
| | | if (HBillStatus != "å建") |
| | | { |
| | | layer.msg('åæ®ç¶æä¸ä¸ºæªå®¡æ ¸ç¶æ,ä¸å
许ç¼è¾ï¼'); |
| | | return false; |
| | |
| | | , data = checkStatus.data; |
| | | if (checkStatus.data.length === 1) { |
| | | var InterID = data[0].hmainid.toString(); |
| | | var HBillStatus = data[0].HBillStatus.toString(); |
| | | if (HBillStatus != "1") { |
| | | var HBillStatus = data[0].åæ®ç¶æ.toString(); |
| | | if (HBillStatus != "å建") { |
| | | layer.msg('åæ®ç¶æä¸ä¸ºæªå®¡æ ¸ç¶æ,ä¸å
许å é¤ï¼'); |
| | | return false; |
| | | } |
| | |
| | | <div class="layui-input-inline"> |
| | | <input class="layui-input" name="HBillNo" lay-verify="HBillNo" id="HBillNo" disabled autocomplete="off"> |
| | | <input id="HInterID" name="HInterID" type="hidden" /> |
| | | <input id="HMaker" name="HMaker" type="hidden" /><!--å¶å人--> |
| | | <!--<input id="HMaker" name="HMaker" type="hidden" />--><!--å¶å人--> |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline"> |
| | |
| | | </div> |
| | | </div> |
| | | </div> |
| | | <div class="layui-tab-item"> |
| | | <div class="layui-form-item"> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label">å¶å人:</label> |
| | | <div class="layui-input-inline"> |
| | | <input type="text" class="layui-input" name="HMaker" id="HMaker" style="background-color:#efefef4d;" disabled> |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label">ä¿®æ¹äºº:</label> |
| | | <div class="layui-input-inline"> |
| | | <input type="text" class="layui-input" name="HUpDater" id="HUpDater" style="background-color:#efefef4d;" disabled> |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label">å®¡æ ¸äºº:</label> |
| | | <div class="layui-input-inline"> |
| | | <input type="text" class="layui-input" name="HChecker" id="HChecker" style="background-color:#efefef4d;" disabled> |
| | | </div> |
| | | |
| | | </div> |
| | | <div class="layui-tab-item"> |
| | | <div class="layui-form-item"> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label">å¶å人:</label> |
| | | <div class="layui-input-inline"> |
| | | <input type="text" class="layui-input" name="HMaker" id="HMaker" style="background-color:#efefef4d;" disabled> |
| | | </div> |
| | | </div> |
| | | <div class="layui-form-item"> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label">å¶åæ¥æ:</label> |
| | | <div class="layui-input-inline"> |
| | | <input type="datetime" class="layui-input" name="HMakeDate" id="HMakeDate" style="background-color:#efefef4d;" dateFormat="yyyy-MM-dd" placeholder="yyyy-MM-dd" disabled> |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label">ä¿®æ¹æ¥æ:</label> |
| | | <div class="layui-input-inline"> |
| | | <input type="datetime" class="layui-input" name="HUpDateDate" id="HUpDateDate" style="background-color:#efefef4d;" dateFormat="yyyy-MM-dd" placeholder="yyyy-MM-dd" disabled> |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label">å®¡æ ¸æ¥æ:</label> |
| | | <div class="layui-input-inline"> |
| | | <input type="datetime" class="layui-input" name="HCheckDate" id="HCheckDate" style="background-color:#efefef4d;" dateFormat="yyyy-MM-dd" placeholder="yyyy-MM-dd" disabled> |
| | | </div> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label">ä¿®æ¹äºº:</label> |
| | | <div class="layui-input-inline"> |
| | | <input type="text" class="layui-input" name="HUpDater" id="HUpDater" style="background-color:#efefef4d;" disabled> |
| | | </div> |
| | | </div> |
| | | <div class="layui-form-item"> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label">å
³é人:</label> |
| | | <div class="layui-input-inline"> |
| | | <input type="text" class="layui-input" name="HCloseMan" id="HCloseMan" style="background-color:#efefef4d;" disabled> |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label">ä½åºäºº:</label> |
| | | <div class="layui-input-inline"> |
| | | <input type="text" class="layui-input" name="HDeleteMan" id="HDeleteMan" style="background-color:#efefef4d;" disabled> |
| | | </div> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label">å®¡æ ¸äºº:</label> |
| | | <div class="layui-input-inline"> |
| | | <input type="text" class="layui-input" name="HChecker" id="HChecker" style="background-color:#efefef4d;" disabled> |
| | | </div> |
| | | </div> |
| | | <div class="layui-form-item"> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label">å
³éæ¥æ:</label> |
| | | <div class="layui-input-inline"> |
| | | <input type="datetime" class="layui-input" name="HCloseDate" id="HCloseDate" style="background-color:#efefef4d;" dateFormat="yyyy-MM-dd" placeholder="yyyy-MM-dd" disabled> |
| | | </div> |
| | | </div> |
| | | <div class="layui-form-item"> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label">å¶åæ¥æ:</label> |
| | | <div class="layui-input-inline"> |
| | | <input type="datetime" class="layui-input" name="HMakeDate" id="HMakeDate" style="background-color:#efefef4d;" dateFormat="yyyy-MM-dd" disabled> |
| | | </div> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label">ä½åºæ¥æ:</label> |
| | | <div class="layui-input-inline"> |
| | | <input type="datetime" class="layui-input" name="HDeleteDate" id="HDeleteDate" style="background-color:#efefef4d;" dateFormat="yyyy-MM-dd" placeholder="yyyy-MM-dd" disabled> |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label">ä¿®æ¹æ¥æ:</label> |
| | | <div class="layui-input-inline"> |
| | | <input type="datetime" class="layui-input" name="HUpDateDate" id="HUpDateDate" style="background-color:#efefef4d;" dateFormat="yyyy-MM-dd" disabled> |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label">å®¡æ ¸æ¥æ:</label> |
| | | <div class="layui-input-inline"> |
| | | <input type="datetime" class="layui-input" name="HCheckDate" id="HCheckDate" style="background-color:#efefef4d;" dateFormat="yyyy-MM-dd" disabled> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | <div class="layui-form-item"> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label">å
³é人:</label> |
| | | <div class="layui-input-inline"> |
| | | <input type="text" class="layui-input" name="HCloseMan" id="HCloseMan" style="background-color:#efefef4d;" disabled> |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label">ä½åºäºº:</label> |
| | | <div class="layui-input-inline"> |
| | | <input type="text" class="layui-input" name="HDeleteMan" id="HDeleteMan" style="background-color:#efefef4d;" disabled> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | <div class="layui-form-item"> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label">å
³éæ¥æ:</label> |
| | | <div class="layui-input-inline"> |
| | | <input type="datetime" class="layui-input" name="HCloseDate" id="HCloseDate" style="background-color:#efefef4d;" dateFormat="yyyy-MM-dd" disabled> |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label">ä½åºæ¥æ:</label> |
| | | <div class="layui-input-inline"> |
| | | <input type="datetime" class="layui-input" name="HDeleteDate" id="HDeleteDate" style="background-color:#efefef4d;" dateFormat="yyyy-MM-dd" disabled> |
| | | </div> |
| | | </div> |
| | | </div> |
| | |
| | | return Result = false; |
| | | } |
| | | //if ($("#HStopReason").val() == '' || $("#HStopReason").val() == null) { |
| | | // layer.msg("åå·¥åå ä¸è½ä¸ºç©ºï¼", { icon: 5, btn: ['确认'], time: 2000, offset: 't', skin: 'layui-layer-lan', title: "温馨æç¤º" }); |
| | | // layer.msg("åå·¥æè¿°ä¸è½ä¸ºç©ºï¼", { icon: 5, btn: ['确认'], time: 2000, offset: 't', skin: 'layui-layer-lan', title: "温馨æç¤º" }); |
| | | // return Result = false; |
| | | //} |
| | | return Result; |
| | |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label">å¶åæ¥æ:</label> |
| | | <div class="layui-input-inline"> |
| | | <input type="datetime" class="layui-input" name="HMakeDate" id="HMakeDate" style="background-color:#efefef4d;" dateFormat="yyyy-MM-dd" placeholder="yyyy-MM-dd" disabled> |
| | | <input type="datetime" class="layui-input" name="HMakeDate" id="HMakeDate" style="background-color:#efefef4d;" dateFormat="yyyy-MM-dd" disabled> |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label">ä¿®æ¹æ¥æ:</label> |
| | | <div class="layui-input-inline"> |
| | | <input type="datetime" class="layui-input" name="HUpDateDate" id="HUpDateDate" style="background-color:#efefef4d;" dateFormat="yyyy-MM-dd" placeholder="yyyy-MM-dd" disabled> |
| | | <input type="datetime" class="layui-input" name="HUpDateDate" id="HUpDateDate" style="background-color:#efefef4d;" dateFormat="yyyy-MM-dd" disabled> |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label">å®¡æ ¸æ¥æ:</label> |
| | | <div class="layui-input-inline"> |
| | | <input type="datetime" class="layui-input" name="HCheckDate" id="HCheckDate" style="background-color:#efefef4d;" dateFormat="yyyy-MM-dd" placeholder="yyyy-MM-dd" disabled> |
| | | <input type="datetime" class="layui-input" name="HCheckDate" id="HCheckDate" style="background-color:#efefef4d;" dateFormat="yyyy-MM-dd" disabled> |
| | | </div> |
| | | </div> |
| | | </div> |
| | |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label">å
³éæ¥æ:</label> |
| | | <div class="layui-input-inline"> |
| | | <input type="datetime" class="layui-input" name="HCloseDate" id="HCloseDate" style="background-color:#efefef4d;" dateFormat="yyyy-MM-dd" placeholder="yyyy-MM-dd" disabled> |
| | | <input type="datetime" class="layui-input" name="HCloseDate" id="HCloseDate" style="background-color:#efefef4d;" dateFormat="yyyy-MM-dd" disabled> |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label">ä½åºæ¥æ:</label> |
| | | <div class="layui-input-inline"> |
| | | <input type="datetime" class="layui-input" name="HDeleteDate" id="HDeleteDate" style="background-color:#efefef4d;" dateFormat="yyyy-MM-dd" placeholder="yyyy-MM-dd" disabled> |
| | | <input type="datetime" class="layui-input" name="HDeleteDate" id="HDeleteDate" style="background-color:#efefef4d;" dateFormat="yyyy-MM-dd" disabled> |
| | | </div> |
| | | </div> |
| | | </div> |
| | |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label">å¶åæ¥æ:</label> |
| | | <div class="layui-input-inline"> |
| | | <input type="datetime" class="layui-input" name="HMakeDate" id="HMakeDate" style="background-color:#efefef4d;" dateFormat="yyyy-MM-dd" placeholder="yyyy-MM-dd" disabled> |
| | | <input type="datetime" class="layui-input" name="HMakeDate" id="HMakeDate" style="background-color:#efefef4d;" dateFormat="yyyy-MM-dd" disabled> |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label">ä¿®æ¹æ¥æ:</label> |
| | | <div class="layui-input-inline"> |
| | | <input type="datetime" class="layui-input" name="HUpDateDate" id="HUpDateDate" style="background-color:#efefef4d;" dateFormat="yyyy-MM-dd" placeholder="yyyy-MM-dd" disabled> |
| | | <input type="datetime" class="layui-input" name="HUpDateDate" id="HUpDateDate" style="background-color:#efefef4d;" dateFormat="yyyy-MM-dd" disabled> |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label">å®¡æ ¸æ¥æ:</label> |
| | | <div class="layui-input-inline"> |
| | | <input type="datetime" class="layui-input" name="HCheckDate" id="HCheckDate" style="background-color:#efefef4d;" dateFormat="yyyy-MM-dd" placeholder="yyyy-MM-dd" disabled> |
| | | <input type="datetime" class="layui-input" name="HCheckDate" id="HCheckDate" style="background-color:#efefef4d;" dateFormat="yyyy-MM-dd"disabled> |
| | | </div> |
| | | </div> |
| | | </div> |
| | |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label">å
³éæ¥æ:</label> |
| | | <div class="layui-input-inline"> |
| | | <input type="datetime" class="layui-input" name="HCloseDate" id="HCloseDate" style="background-color:#efefef4d;" dateFormat="yyyy-MM-dd" placeholder="yyyy-MM-dd" disabled> |
| | | <input type="datetime" class="layui-input" name="HCloseDate" id="HCloseDate" style="background-color:#efefef4d;" dateFormat="yyyy-MM-dd" disabled> |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label">ä½åºæ¥æ:</label> |
| | | <div class="layui-input-inline"> |
| | | <input type="datetime" class="layui-input" name="HDeleteDate" id="HDeleteDate" style="background-color:#efefef4d;" dateFormat="yyyy-MM-dd" placeholder="yyyy-MM-dd" disabled> |
| | | <input type="datetime" class="layui-input" name="HDeleteDate" id="HDeleteDate" style="background-color:#efefef4d;" dateFormat="yyyy-MM-dd"disabled> |
| | | </div> |
| | | </div> |
| | | </div> |
| | |
| | | , { field: 'HICMOBillNo', title: 'ç产订åå·', style: 'background-color: #f9f9f9;' } |
| | | , { field: 'HProcExchInterID', title: 'å·¥åºæµè½¬å¡å
ç ', hide: true } |
| | | , { field: 'HProcExchEntryID', title: 'å·¥åºæµè½¬å¡åå
ç ', hide: true } |
| | | , { field: 'HProcExchBillNo', title: 'å·¥åºæµè½¬å¡å·', templet: "#HProcExchInterID" } |
| | | , { field: 'HProcExchBillNo', title: 'å·¥åºæµè½¬å¡å·', templet: "#HProcExchInterID", style: 'background-color: #f9f9f9;' } |
| | | , { field: 'HRemark', title: '夿³¨', edit: 'text' } |
| | | , { field: 'HSourceInterID', title: 'æºåå
ç ', hide: true } |
| | | , { field: 'HSourceEntryID', title: 'æºååå
ç ', hide: true } |
| | |
| | | if (obj.event == "HRelationBillNo") { |
| | | var HProcID = $("#HProcID").val(); |
| | | var HSourceID = $("#HSourceID").val(); |
| | | var HMaterID = $("#HMaterID").val(); |
| | | layer.open({ |
| | | type: 2 |
| | | , skin: "layui-layer-rim" //å ä¸è¾¹æ¡ |
| | |
| | | , shift: 2 //å¼¹åºå¨ç» |
| | | , area: ["90%", "90%"] //çªä½å¤§å° |
| | | , maxmin: true //设置æå¤§æå°æé®æ¯å¦æ¾ç¤º |
| | | , content: ['../../../views/Baseset/åºç¡èµæ/Sc_ProcessExchangeBillListView.html?HProcID=' + HProcID + '&HSourceID=' + HSourceID+'', 'yes'] |
| | | , content: ['../../../views/Baseset/åºç¡èµæ/Sc_ProcessExchangeBillListView.html?HProcID=' + HProcID + '&HSourceID=' + HSourceID + '&HMaterID=' + HMaterID, 'yes'] |
| | | , btn: ["ç¡®å®", "åæ¶"] |
| | | , btn1: function (index, laero) { |
| | | //æé®ä¸ çåè° |
| | |
| | | , btn2: function (index, layero) { } |
| | | , end: function () { |
| | | |
| | | } |
| | | }) |
| | | } |
| | | obj.event = ""; |
| | | return false; |
| | | } |
| | | if (event.key == "F6") { |
| | | if (obj.event == "HRelationBillNo") { |
| | | var HProcID = $("#HProcID").val(); |
| | | var HSourceID = $("#HSourceID").val(); |
| | | var HMaterID = $("#HMaterID").val(); |
| | | layer.open({ |
| | | type: 2 |
| | | , skin: "layui-layer-rim" //å ä¸è¾¹æ¡ |
| | | , title: "å¯äº§è®¡åå" //æ é¢ |
| | | , closeBtn: 1 //çªä½å³ä¸è§å
³é ç æ ·å¼ |
| | | , shift: 2 //å¼¹åºå¨ç» |
| | | , area: ["90%", "90%"] //çªä½å¤§å° |
| | | , maxmin: true //设置æå¤§æå°æé®æ¯å¦æ¾ç¤º |
| | | , content: ['../../../views/Baseset/åºç¡èµæ/Sc_ProcessExchangeBillListView.html?HProcID=' + HProcID, '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("è¯·éæ©ä¸æ¡æ°æ®"); |
| | | } |
| | | if ($("#HSourceName").val() == checkStatus.data[0].çäº§èµæº && $("#HProcName").val() == checkStatus.data[0].å·¥åº) { |
| | | obj.update({ |
| | | "HProcExchInterID": checkStatus.data[0].hmainid |
| | | , "HProcExchEntryID": checkStatus.data[0].hsubid |
| | | , "HProcExchBillNo": checkStatus.data[0].åæ®å· |
| | | , "HRelationBillInterID": checkStatus.data[0].hmainid |
| | | , "HRelationBillEntryID": checkStatus.data[0].hsubid |
| | | , "HRelationBillNo": checkStatus.data[0].åæ®å· |
| | | , "HICMOInterID": checkStatus.data[0].hicmointerid |
| | | , "HICMOEntryID": checkStatus.data[0].HICMOEntryID |
| | | , "HICMOBillNo": checkStatus.data[0].ç产订åå· |
| | | , "HMaterID": checkStatus.data[0].HMaterID |
| | | , "HMaterName": checkStatus.data[0].产å |
| | | , "HProcID": checkStatus.data[0].HProcID |
| | | , "HProcName": checkStatus.data[0].å·¥åº |
| | | , "HSourceInterID": checkStatus.data[0].hmainid |
| | | , "HSourceEntryID": checkStatus.data[0].hsubid |
| | | , "HSourceBillNo": checkStatus.data[0].åæ®å· |
| | | , "HSourceBillType": 3772 |
| | | |
| | | }) |
| | | } |
| | | else { |
| | | return layer.msg("éæ©å¯äº§è®¡ååççäº§èµæºä¸å·¥åº,è·å½åçäº§èµæºä¸å·¥åºä¸å¹é
"); |
| | | } |
| | | |
| | | layer.close(index);//å
³éå¼¹çª |
| | | } |
| | | , btn2: function (index, layero) { } |
| | | , end: function () { |
| | | if ($("#HSourceName").val() == OptionData[0].çäº§èµæº && $("#HProcName").val() == OptionData[0].å·¥åº) { |
| | | obj.update({ |
| | | "HProcExchInterID": OptionData[0].hmainid |
| | | , "HProcExchEntryID": OptionData[0].hsubid |
| | | , "HProcExchBillNo": OptionData[0].åæ®å· |
| | | , "HRelationBillInterID": OptionData[0].hmainid |
| | | , "HRelationBillEntryID": OptionData[0].hsubid |
| | | , "HRelationBillNo": OptionData[0].åæ®å· |
| | | , "HICMOInterID": OptionData[0].hicmointerid |
| | | , "HICMOEntryID": OptionData[0].HICMOEntryID |
| | | , "HICMOBillNo": OptionData[0].ç产订åå· |
| | | , "HMaterID": OptionData[0].HMaterID |
| | | , "HMaterName": OptionData[0].产å |
| | | , "HProcID": OptionData[0].HProcID |
| | | , "HProcName": OptionData[0].å·¥åº |
| | | , "HSourceInterID": OptionData[0].hmainid |
| | | , "HSourceEntryID": OptionData[0].hsubid |
| | | , "HSourceBillNo": OptionData[0].åæ®å· |
| | | , "HSourceBillType": 3772 |
| | | |
| | | }) |
| | | } else { |
| | | return layer.msg("éæ©å¯äº§è®¡ååççäº§èµæºä¸å·¥åº,è·å½åçäº§èµæºä¸å·¥åºä¸å¹é
"); |
| | | } |
| | | |
| | | OptionData = []; |
| | | } |
| | | }) |
| | | } |
| | |
| | | |
| | | //çäº§çæ¬¡ |
| | | function GetHWorkShiftsValue(obj) { |
| | | $("#HWorkShiftID").val(obj[0].HInterID); //å½åå·¥åºID |
| | | $("#HWorkShiftName").val(obj[0].çæ¬¡åç§°); //å½åå·¥åº |
| | | $("#HWorkShiftID").val(obj[0].HInterID); //å½åçæ¬¡ |
| | | $("#HWorkShiftName").val(obj[0].çæ¬¡åç§°); //å½åçæ¬¡åç§° |
| | | } |
| | | |
| | | function GetSwipeCardStart(obj) { |