| | |
| | | <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=0"> |
| | | <link rel="stylesheet" href="../../layuiadmin/layui/css/layui.css" media="all"> |
| | | <link rel="stylesheet" href="../../layuiadmin/style/admin.css" media="all"> |
| | | <script src="../../layuiadmin/PageTitle.js"></script> |
| | | <style type="text/css"> |
| | | .layui-form-label { |
| | | width: 85px; |
| | |
| | | </style> |
| | | </head> |
| | | <body> |
| | | |
| | | <div id="layout1" class="layui-fluid"> |
| | | <div class="layui-row layui-col-space15"> |
| | | <div class="layui-col-md12"> |
| | |
| | | <button type="button" class="layui-btn layui-btn-normal layui-btn-radius" lay-submit="" lay-filter="view">é¢è§</button> |
| | | <button type="button" class="layui-btn layui-btn-normal layui-btn-radius" lay-submit="" lay-filter="print">æå°</button> |
| | | <button type="button" class="layui-btn layui-btn-normal layui-btn-radius" lay-submit="" lay-filter="Exit">éåº</button> |
| | | |
| | | </div> |
| | | |
| | | </div> |
| | | <div class="layui-card-body"> |
| | | <div class="layui-tab layui-tab-brief" lay-filter="docDemoTabBrief"> |
| | | <!--<ul class="layui-tab-title"> |
| | | <li class="layui-this">åºæ¬ä¿¡æ¯</li>--> |
| | | <!--<li>å
¶ä»ä¿¡æ¯</li>--> |
| | | <!--</ul>--> |
| | | <h1 style="text-align:center;"><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> |
| | | </ul> |
| | | <div class="layui-tab-content"> |
| | | <div class="layui-tab-item layui-show"> |
| | | <div class="layui-form-item"> |
| | | <div class="layui-row"> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label">åæ®å·</label> |
| | | <div class="layui-input-inline"> |
| | | <input class="layui-input" name="HBillNo" lay-verify="HBillNo" id="HBillNo"> |
| | | <input id="HInterID" name="HInterID" type="hidden" /> |
| | | <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:#efefef4d;" readonly> |
| | | <input type="hidden" name="HInterID" id="HInterID" lay-verify="HInterID"> |
| | | <input id="HMaker" name="HMaker" type="hidden" /><!--å¶å人--> |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label">æ¥æ</label> |
| | | <div class="layui-input-inline"> |
| | | <label class="layui-form-label" style="width: 85px;">æ¥æ</label> |
| | | <div class="layui-input-block" style="margin-left: 120px;"> |
| | | <input class="layui-input" name="HDate" id="HDate" autocomplete="off" model="datetime" dateFormat="yyyy-MM-dd" placeholder="yyyy-MM-dd"> |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label">å
é¨åæ®å·</label> |
| | | <div class="layui-input-inline"> |
| | | <input type="text" name="HInnerBillNo" id="HInnerBillNo" class="layui-input"> |
| | | <label class="layui-form-label" style="width: 85px;">ä¿å
»å¨æ<label style="color:red"> * </label></label> |
| | | <div class="layui-input-block" style="margin-left: 120px;"> |
| | | <input type="text" class="layui-input" name="HCheckCycle" lay-verify="HCheckCycle" id="HCheckCycle"> |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label">设å¤<label style="color:red"> * </label></label> |
| | | <div class="layui-input-inline"> |
| | | <input type="hidden" name="HEquipID" id="HEquipID" class="layui-input" value="" style="float:left;width:150px;"> |
| | | <input type="text" name="HEquipName" id="HEquipName" class="layui-input" value="" style="float:left;width:150px;"> |
| | | <button type="button" lay-submit="" class="layui-btn" lay-filter="ProductModulList" 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-form-item"> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label">卿åä½</label> |
| | | <div class="layui-input-inline"> |
| | | <label class="layui-form-label" style="width: 85px;">卿åä½</label> |
| | | <div class="layui-input-block" style="margin-left: 120px;width: 185px;"> |
| | | <select name="HCycleUnit" lay-filter="aihao" id="HCycleUnit"> |
| | | <option value="天">天</option> |
| | | <!--<option value="å¨">å¨</option>--> |
| | | <option value="æ">æ</option> |
| | | <option value="å¨">å¨</option> |
| | | <option value="å¹´">å¹´</option> |
| | | </select> |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline" style="display:none;"> |
| | | <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="HInnerBillNo" lay-verify="HInnerBillNo" id="HInnerBillNo" style="background-color:#efefef4d;" readonly> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | <div class="layui-row" style="margin-top:10px;"> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label">ä¿å
»å¨æ</label> |
| | | <div class="layui-input-inline"> |
| | | <input type="text" name="HCheckCycle" id="HCheckCycle" class="layui-input" value="0"> |
| | | <label class="layui-form-label" style="width: 85px;padding: 9px 18px;">设å¤<label style="color:red"> * </label></label> |
| | | <div class="layui-input-block" style="margin-left: 77px;"> |
| | | <input type="text" class="layui-input" lay-verify="HEquipName" name="HEquipName" id="HEquipName" style="background-color:#efefef4d;width: 60%;display: inline-block;" readonly> |
| | | <input type="hidden" name="HEquipID" id="HEquipID" lay-verify="HEquipID" value="0"> |
| | | <button class="layui-btn layuiadmin-btn-order" type="button" lay-submit="" lay-filter="HEquipList" id="HEquipList" 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">å¼å§æ¥æ</label> |
| | | <div class="layui-input-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="HMouldMaintainRuleNo" name="HMouldMaintainRuleNo" id="HMouldMaintainRuleNo" style="background-color:#efefef4d;width: 60%;display: inline-block;" readonly> |
| | | <input type="hidden" name="HMouldMaintainRuleID" id="HMouldMaintainRuleID" lay-verify="HMouldMaintainRuleID" value="0"> |
| | | <button class="layui-btn layuiadmin-btn-order" type="button" lay-submit="" lay-filter="HEquipDotCheckRuleInterList" id="HEquipDotCheckRuleInterList" 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 class="layui-input" name="HBeginDate" id="HBeginDate" autocomplete="off" model="datetime" dateFormat="yyyy-MM-dd" placeholder="yyyy-MM-dd"> |
| | | |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label">ç»ææ¥æ</label> |
| | | <div class="layui-input-inline"> |
| | | <label class="layui-form-label" style="width: 85px;">计åç»ææ¥æ</label> |
| | | <div class="layui-input-block" style="margin-left: 120px;"> |
| | | <input class="layui-input" name="HEndDate" id="HEndDate" autocomplete="off" model="datetime" dateFormat="yyyy-MM-dd" placeholder="yyyy-MM-dd"> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | <div class="layui-form-item"> |
| | | <div class="layui-row" style="margin-top:10px;"> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label">设å¤ä¿å
»è§ç¨<label style="color:red"></label></label> |
| | | <div class="layui-input-inline"> |
| | | <input type="hidden" name="HMouldMaintainRuleID" id="HMouldMaintainRuleID" class="layui-input" value="0" style="float:left;width:150px;"> |
| | | <input type="text" name="HMouldMaintainRuleNo" id="HMouldMaintainRuleNo" class="layui-input" value="" style="float:left;width:150px;background-color:#efefef4d;" readonly> |
| | | <button type="button" lay-submit="" class="layui-btn" lay-filter="HEquipDotCheckRuleInterList" style="width:40px;"> |
| | | <i class="layui-icon layui-icon-search layuiadmin-button-btn" style="margin-left:-9px;"></i> |
| | | <label class="layui-form-label" style="width: 85px;">æè¦</label> |
| | | <div class="layui-input-block" style="margin-left: 120px;"> |
| | | <textarea placeholder="请è¾å
¥æè¦" class="layui-textarea" name="HExplanation" id="HExplanation" style="width:493px;"></textarea> |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label" style="width: 85px;">夿³¨</label> |
| | | <div class="layui-input-block" style="margin-left: 120px;"> |
| | | <textarea placeholder="请è¾å
¥å¤æ³¨" class="layui-textarea" name="HRemark" id="HRemark" style="width:493px;"></textarea> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | <div class="layui-row" style="margin-top:10px;"> |
| | | <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="HMaintainLevName" id="HMaintainLevName" style="float:left;width:60%;background-color:#efefef4d;" readonly> |
| | | <input type="hidden" class="layui-input" name="HMaintainLevID" id="HMaintainLevID" value="0" style="float:left;width:150px;"> |
| | | <button class="layui-btn layuiadmin-btn-order" type="button" lay-submit="" lay-filter="btnMaintainLev" id="btnMaintainLev" 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">æè¦</label> |
| | | <div class="layui-input-inline"> |
| | | <textarea placeholder="请è¾å
¥æè¦" class="layui-textarea" name="HExplanation" id="HExplanation"></textarea> |
| | | <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:#efefef4d;width: 60%;display: inline-block;" readonly> |
| | | <input type="hidden" name="HDeptID" id="HDeptID" lay-verify="HDeptID" value="0"> |
| | | <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">夿³¨</label> |
| | | <div class="layui-input-inline"> |
| | | <textarea placeholder="请è¾å
¥å¤æ³¨" class="layui-textarea" name="HRemark" id="HRemark"></textarea> |
| | | <label class="layui-form-label" style="width: 85px;">使ç¨ç»ç»</label> |
| | | <div class="layui-input-block" style="margin-left: 120px; width: 185px;"> |
| | | <input type="hidden" class="layui-input" lay-verify="HCREATEORGID" name="HCREATEORGID" id="HCREATEORGID" value="0"> |
| | | <select name="HUSEORGID" id="HUSEORGID" lay-verify="HUSEORGID"> |
| | | <!--å¨ææ¸²æç»ç»--> |
| | | </select> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | <!--å¶åä¿¡æ¯--> |
| | | <div class="layui-tab-item"> |
| | | <div class="layui-form-item"> |
| | | <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="HMaker" id="HMaker" 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="HChecker" id="HChecker" 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="HCloseMan" id="HCloseMan" 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="HUpDater" id="HUpDater" style="background-color:#efefef4d;" readonly> |
| | | </div> |
| | | </div> |
| | | |
| | | </div> |
| | | <div class="layui-form-item"> |
| | | <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="HMakeDate" id="HMakeDate" 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="HCheckDate" id="HCheckDate" 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="HCloseDate" id="HCloseDate" 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="HUpDateDate" id="HUpDateDate" style="background-color:#efefef4d;" readonly> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | <div class="layui-form-item"> |
| | | <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="HDeleteMan" id="HDeleteMan" 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="HDeleteDate" id="HDeleteDate" style="background-color:#efefef4d;" readonly> |
| | | </div> |
| | | </div> |
| | | </div> |
| | |
| | | |
| | | <button type="button" class="layui-btn layui-btn-sm" lay-event="btn-AddLine"><i class="layui-icon layui-icon-form"></i>å¢å ä¸è¡</button> |
| | | <button type="button" class="layui-btn layui-btn-sm" lay-event="btn-CopyLine"><i class="layui-icon layui-icon-form"></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> |
| | | </script> |
| | | <script type="text/html" id="toolbarDemo1"> |
| | |
| | | |
| | | <button type="button" class="layui-btn layui-btn-sm" lay-event="btn-AddLine1"><i class="layui-icon layui-icon-form"></i>å¢å ä¸è¡</button> |
| | | <button type="button" class="layui-btn layui-btn-sm" lay-event="btn-CopyLine1"><i class="layui-icon layui-icon-form"></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> |
| | | </script> |
| | | <script type="text/html" id="xuhao"> |
| | |
| | | <script src="../../layuiadmin/Scripts/jquery-1.4.1.js"></script> |
| | | <script src="../../layuiadmin/Scripts/webConfig.js"></script> |
| | | <script src="../../layuiadmin/PubCustom.js"></script> |
| | | <script src="../../layuiadmin/zgqCustom/zgqCustom.js"></script> |
| | | <script> |
| | | //è·ååæ° |
| | | var params = get_UrlVars(); |
| | |
| | | var OperationType = params[params[0]];//æä½ç±»å |
| | | var linterid = params[params[1]];//æºåid |
| | | var HSouceBillType = params[params[2]];//æºåç±»å |
| | | } |
| | | |
| | | } |
| | | var OptionData = []; |
| | | |
| | | layui.config({ |
| | | base: '../../layuiadmin/' //éæèµæºæå¨è·¯å¾ |
| | |
| | | var option1 = [];//é
ä»¶ |
| | | var option_plan = [];//计å |
| | | var sBillType = "3902"; |
| | | var HModName = "Sb_EquipMaintainPlanBillEdit"; |
| | | //var TabRow = { "HMaintainItemID": 0, "HMaintainItemNumber": " ", "HMaintainItem": " ", "HMaintainPart": " ", "HClaim": " ", "HManagerID": "0 ", "HManagerNumber": " ", "HManagerName": " ", "HRemark": " " };//ä¿å
» |
| | | //var TabRow1 = { "HMaterID": 0, "HMaterNumber": "", "HMaterName": "", "HUnitID": 0, "HUnitNumber": "", "HUnitName": "", "HManagerID": "0 ", "HManagerNumber": " ", "HManagerName": " ", "HQty": "", "HRemark": "" };//é
ä»¶ |
| | | //#endregion |
| | |
| | | |
| | | //#region è¿å
¥é¡µé¢å³å è½½ |
| | | |
| | | //#region ã卿è·å模ååç§°ã |
| | | var HModuleType = "3902"; |
| | | //éè¿åæ®ç±»åï¼ä»æ°æ®åºå¨æè·ååæ®æ¨¡åå½å,å¼ç¨jsæä»¶ PageTitle.js |
| | | var HPageTitle = get_PageTitle(HModuleType) == "" ? $("h1").html() : get_PageTitle(HModuleType); |
| | | $("h1").html('<b>' + HPageTitle + '</b>'); |
| | | //#endregion |
| | | |
| | | //åå§å表åæä»¶ |
| | | set_InitFrom(); |
| | | //åå§åè¡¨æ ¼ |
| | | set_InitGrid(); |
| | | |
| | | //卿å è½½ç»ç» |
| | | Organ(); |
| | | $("#HCREATEORGID").val(sessionStorage["OrganizationID"]); |
| | | //夿æä½ç±»å |
| | | if (OperationType == 1) {//æ æºæ°å¢ |
| | | set_AddFNew(); |
| | | } |
| | | else if (OperationType == 2) {//å¦æä¿®æ¹åèµ°ä¸é¢ new //å¤å¶ |
| | | OperationType = 1; |
| | | set_EditFromGrid(linterid); |
| | | //è·åæå¤§åæ®å· |
| | | get_MAXNum(); |
| | | } |
| | | else if (OperationType == 3) {//ç¼è¾ |
| | | set_EditFromGrid(linterid); |
| | |
| | | var checkStatus = table.checkStatus('mainTable') |
| | | , data = checkStatus.data;; |
| | | var AddRow = table.cache['mainTable']; |
| | | var NewRow = { "HMaintainItemID": 0, "HMaintainItemNumber": " ", "HMaintainItem": " ", "HMaintainPart": " ", "HClaim": " ", "HManagerID": "0 ", "HManagerNumber": " ", "HManagerName": " ", "HRemark": " " }; |
| | | var NewRow = { "HMaintainItemID": 0, "HMaintainItemNumber": " ", "HMaintainItem": " ", "HMaintainPart": " ", "HClaim": " ", "HManagerID": sessionStorage["HEmpID"], "HManagerNumber": sessionStorage["HEmpNumber"], "HManagerName": sessionStorage["HEmpName"], "HRemark": " " }; |
| | | switch (obj.event) { |
| | | //æ°å¢ä¸è¡ |
| | | case 'btn-AddLine': btnAddLine(NewRow); |
| | | break; |
| | | //å¤å¶ä¸è¡ |
| | | case 'btn-CopyLine': btnCopyLine(data); |
| | | break; |
| | | //å设置 |
| | | case 'set_HideColumn': |
| | | get_HideColumn(0); |
| | | break; |
| | | } |
| | | }); |
| | |
| | | table.on('toolbar(mainTable1)', function (obj) { |
| | | var checkStatus = table.checkStatus('mainTable1') |
| | | , data = checkStatus.data; |
| | | var NewRow = { "HMaterID": 0, "HMaterNumber": "", "HMaterName": "", "HUnitID": 0, "HUnitNumber": "", "HUnitName": "", "HManagerID": "0 ", "HManagerNumber": " ", "HManagerName": " ", "HQty": "0", "HRemark": "" }; |
| | | var NewRow = { "HMaterID": 0, "HMaterNumber": "", "HMaterName": "", "HUnitID": 0, "HUnitNumber": "", "HUnitName": "", "HManagerID": sessionStorage["HEmpID"], "HManagerNumber": sessionStorage["HEmpNumber"], "HManagerName": sessionStorage["HEmpName"], "HQty": "0", "HRemark": "" }; |
| | | switch (obj.event) { |
| | | //æ°å¢ä¸è¡ |
| | | case 'btn-AddLine1': btnAddLine1(NewRow); |
| | | break; |
| | | //å¤å¶ä¸è¡ |
| | | case 'btn-CopyLine1': btnCopyLine1(data); |
| | | break; |
| | | //å设置 |
| | | case 'set_HideColumn': |
| | | get_HideColumn(1); |
| | | break; |
| | | } |
| | | }); |
| | | |
| | | //头工å
·æ äºä»¶ |
| | | table.on('toolbar(mainTable_plan)', function (obj) { |
| | | var checkStatus = table.checkStatus('mainTable_plan') |
| | | , data = checkStatus.data; |
| | | var NewRow = { "HMaterID": 0, "HMaterNumber": "", "HMaterName": "", "HUnitID": 0, "HUnitNumber": "", "HUnitName": "", "HManagerID": sessionStorage["HEmpID"], "HManagerNumber": sessionStorage["HEmpNumber"], "HManagerName": sessionStorage["HEmpName"], "HQty": "0", "HRemark": "" }; |
| | | switch (obj.event) { |
| | | //æ°å¢ä¸è¡ |
| | | case 'btn-AddLine1': btnAddLine1(NewRow); |
| | | break; |
| | | //å¤å¶ä¸è¡ |
| | | case 'btn-CopyLine1': btnCopyLine1(data); |
| | | break; |
| | | //å设置 |
| | | case 'set_HideColumn': |
| | | get_HideColumn(2); |
| | | break; |
| | | } |
| | | }); |
| | |
| | | set_GridDelete1(obj); //è¡å
å é¤ |
| | | set_GridCellCheck1(obj); //è¡å
å¿«æ·é®çé |
| | | }); |
| | | //è¡å
äºä»¶ |
| | | table.on('tool(mainTable_plan)', function (obj) { |
| | | set_GridDelete1(obj); //è¡å
å é¤ |
| | | set_GridCellCheck1(obj); //è¡å
å¿«æ·é®çé |
| | | }); |
| | | |
| | | //表头信æ¯è®¾å¤å¼¹çª |
| | | form.on('submit(ProductModulList)', function () { |
| | | form.on('submit(HEquipList)', function () { |
| | | //页é¢å±-èªå®ä¹ |
| | | layer.open({ |
| | | type: 2, |
| | | skin: 'layui-layer-rim', //å ä¸è¾¹æ¡ |
| | | title: '车é´å表', |
| | | title: '设å¤å表', |
| | | closeBtn: 1, |
| | | shift: 2, |
| | | area: ['80%', '80%'], |
| | | maxmin: true, |
| | | content: ['../PublicPage/EqpInformation.html', 'yes'], |
| | | content: ['../设å¤ç®¡ç/è®¾å¤æ¡£æ¡/Gy_EquipFileMainList.html?openType=2', 'yes'], |
| | | btn: ['ç¡®å®', 'åæ¶'] |
| | | , btn1: function (index, layero) { |
| | | //æé®ãæé®ä¸ãçåè° |
| | |
| | | if (checkStatus.data.length === 0) { |
| | | return layer.msg('è¯·éæ©æ°æ®'); |
| | | } |
| | | $("#HEquipName").val(checkStatus.data[0].HName); |
| | | $("#HEquipID").val(checkStatus.data[0].HInterID); |
| | | $("#HEquipName").val(checkStatus.data[0].设å¤åç§°); |
| | | $("#HEquipID").val(checkStatus.data[0].hmainid); |
| | | layer.close(layer.index); //å®è·åçå§ç»æ¯ææ°å¼¹åºçæä¸ªå±ï¼å¼æ¯ç±layerå
é¨å¨æéå¢è®¡ç®ç |
| | | } |
| | | , btn2: function (index, layero) { |
| | |
| | | shift: 2, |
| | | area: ['80%', '80%'], |
| | | maxmin: true, |
| | | content: ['../设å¤ç®¡ç/设å¤è§ç¨å/Sb_EquipMaintainRuleList.html', 'yes'], |
| | | content: ['../设å¤ç®¡ç/设å¤è§ç¨å/Sb_EquipMaintainRuleList.html?openType=2', 'yes'], |
| | | btn: ['ç¡®å®', 'åæ¶'] |
| | | , btn1: function (index, layero) { |
| | | //æé®ãæé®ä¸ãçåè° |
| | |
| | | } |
| | | $("#HMouldMaintainRuleNo").val(checkStatus.data[0].åæ®å·); |
| | | $("#HMouldMaintainRuleID").val(checkStatus.data[0].hmainid); |
| | | $("#HCycleUnit").val(checkStatus.data[0].卿åä½); |
| | | $("#HCheckCycle").val(checkStatus.data[0].ä¿å
»å¨æ); |
| | | $("#HMaintainLevName").val(checkStatus.data[0].ä¿å
»çº§å«åç§°); |
| | | $("#HMaintainLevID").val(checkStatus.data[0].HMaintainLevID == null ? 0 : checkStatus.data[0].HMaintainLevID); |
| | | form.render('select'); |
| | | get_DocCheckItem2(checkStatus.data[0].hmainid); |
| | | layer.close(layer.index); //å®è·åçå§ç»æ¯ææ°å¼¹åºçæä¸ªå±ï¼å¼æ¯ç±layerå
é¨å¨æéå¢è®¡ç®ç |
| | | } |
| | | }); |
| | | }); |
| | | //表头信æ¯ä¿å
»çº§å«å¼¹çª |
| | | form.on('submit(btnMaintainLev)', function () { |
| | | //页é¢å±-èªå®ä¹ |
| | | layer.open({ |
| | | type: 2, |
| | | skin: 'layui-layer-rim', //å ä¸è¾¹æ¡ |
| | | title: 'ä¿å
»çº§å«å表', |
| | | closeBtn: 1, |
| | | shift: 2, |
| | | area: ['90%', '90%'], |
| | | maxmin: true, |
| | | content: ['../åºç¡èµæ/å
¬ç¨åºç¡èµæ/Gy_MaintainLev.html?openType=2', '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('è¯·éæ©æ°æ®'); |
| | | } |
| | | $("#HMaintainLevName").val(checkStatus.data[0].ä¿å
»çº§å«åç§°); |
| | | $("#HMaintainLevID").val(checkStatus.data[0].HItemID); |
| | | layer.close(layer.index); //å®è·åçå§ç»æ¯ææ°å¼¹åºçæä¸ªå±ï¼å¼æ¯ç±layerå
é¨å¨æéå¢è®¡ç®ç |
| | | } |
| | | , btn2: function (index, layero) { |
| | | //æé®ãæé®äºãçåè° |
| | | //return false å¼å¯è¯¥ä»£ç å¯ç¦æ¢ç¹å»è¯¥æé®å
³é |
| | | }, |
| | | end: function () { |
| | | |
| | | }, |
| | | success: function (layero, index) { |
| | | |
| | | } |
| | | }); |
| | | }); |
| | | |
| | | //表头设å¤ç¹æ£è§ç¨ä¿¡æ¯ |
| | | form.on('submit(btnHDept)', function () { |
| | | //页é¢å±-èªå®ä¹ |
| | | layer.open({ |
| | | type: 2, |
| | | skin: 'layui-layer-rim', //å ä¸è¾¹æ¡ |
| | | title: 'é¨é¨å表', |
| | | closeBtn: 1, |
| | | shift: 2, |
| | | area: ['80%', '80%'], |
| | | maxmin: true, |
| | | content: ['../åºç¡èµæ/å
¬ç¨åºç¡èµæ/Gy_DepartmentList.html?openType=2&HOrgName=' + sessionStorage["Organization"], '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('è¯·éæ©æ°æ®'); |
| | | } |
| | | $("#HDeptID").val(checkStatus.data[0].HItemID); |
| | | $("#HDeptName").val(checkStatus.data[0].é¨é¨åç§°); |
| | | layer.close(layer.index); //å®è·åçå§ç»æ¯ææ°å¼¹åºçæä¸ªå±ï¼å¼æ¯ç±layerå
é¨å¨æéå¢è®¡ç®ç |
| | | } |
| | | }); |
| | |
| | | function Table() { |
| | | //表头 |
| | | columns = [ |
| | | { type: 'checkbox', fixed: 'left' } |
| | | , { templet: '#xuhao', title: 'åºå·', sort: true, fixed: 'left', event: "qwe" } |
| | | { type: 'checkbox', fixed: 'left', totalRowText: 'å计è¡' } |
| | | , { |
| | | templet: '#xuhao', title: 'åºå·', sort: true, fixed: 'left', event: "qwe", style: 'background-color: #f0f9ff;' } |
| | | , { field: 'HMaintainItemID', title: 'ä¿å
»é¡¹ç®ID', edit: 'text', hide: true } |
| | | , { field: 'HMaintainItemNumber', title: 'ä¿å
»é¡¹ç®ä»£ç ', edit: 'text', event: 'HMaintainItemNumber' } |
| | | , { field: 'HMaintainItem', title: 'ä¿å
»é¡¹ç®' } |
| | | , { field: 'HMaintainItem', title: 'ä¿å
»é¡¹ç®',style: 'background-color: #f0f9ff;' } |
| | | , { field: 'HMaintainPart', title: 'ä¿å
»é¨ä½', edit: 'text' } |
| | | , { field: 'HClaim', title: 'å
·ä½è¦æ±', edit: 'text' } |
| | | , { field: 'HManagerID', title: 'è´è´£äººID', edit: 'text', hide: true } |
| | | , { field: 'HManagerNumber', title: 'è´è´£äººä»£ç ', edit: 'text', event: 'HManagerNumber' } |
| | | , { field: 'HManagerName', title: 'è´è´£äºº' } |
| | | , { field: 'HManagerName', title: 'è´è´£äºº', style: 'background-color: #f0f9ff;' } |
| | | , { field: 'HRemark', title: '夿³¨', edit: 'text' } |
| | | , { fixed: 'right', title: 'æä½', toolbar: '#barDemo' } |
| | | ]; |
| | |
| | | , elem: '#mainTable' |
| | | , toolbar: '#toolbarDemo' |
| | | , page: false |
| | | , limit: 100 |
| | | , totalRow: true |
| | | , cellMinWidth: 120 |
| | | , height: 500 |
| | | , cols: [columns] |
| | |
| | | |
| | | } |
| | | }; |
| | | |
| | | } |
| | | //åå§åé
件项å表 |
| | | function Table1() { |
| | | //表头 |
| | | columns = [ |
| | | { type: 'checkbox', fixed: 'left' } |
| | | , { templet: '#xuhao', title: 'åºå·', sort: true, fixed: 'left', event: "qwe" } |
| | | { type: 'checkbox', fixed: 'left', totalRowText: 'å计è¡' } |
| | | , { templet: '#xuhao', title: 'åºå·', sort: true, fixed: 'left', event: "qwe", style: 'background-color: #f0f9ff;' } |
| | | , { field: 'HMaterID', title: 'é
ä»¶ID', edit: 'text', hide: true } |
| | | , { field: 'HMaterNumber', title: 'é
件代ç ', edit: 'text', event: "HMaterCode" } |
| | | , { field: 'HMaterName', title: 'é
ä»¶åç§°', edit: 'text', event: "" } |
| | |
| | | //, { field: 'HManagerID', title: 'è´è´£äººID', edit: 'text', hide: true } |
| | | //, { field: 'HManagerNumber', title: 'è´è´£äººä»£ç ', edit: 'text', event: 'HManagerNumber' } |
| | | //, { field: 'HManagerName', title: 'è´è´£äºº', edit: 'text' } |
| | | , { field: 'HQty', title: 'ç¨é', edit: 'text' } |
| | | , { field: 'HQty', title: 'ç¨é', edit: 'text', totalRow: true } |
| | | , { field: 'HRemark', title: '夿³¨', edit: 'text' } |
| | | , { fixed: 'right', title: 'æä½', toolbar: '#barDemo1', width: 150 } |
| | | ]; |
| | |
| | | , toolbar: '#toolbarDemo1' |
| | | , height: 500 |
| | | , page: true |
| | | , totalRow: true |
| | | , limit: 500 |
| | | , cellMinWidth: 120 |
| | | , height: 500 |
| | |
| | | function Table3() { |
| | | //ç¹æ£è®¡å |
| | | columns_plan = [ |
| | | { type: 'checkbox', fixed: 'left' } |
| | | , { templet: '#xuhao', title: 'åºå·', sort: true, event: "qwe" } |
| | | , { field: 'HPlanDate', title: 'è®¡åæ¥æ' } |
| | | , { field: 'HPlanBeginTime', title: '计åå¼å§æ¶é´ç¹' } |
| | | , { field: 'HPlanEndTime', title: '计åç»ææ¶é´ç¹' } |
| | | , { field: 'HRelationFlag', title: 'å
³èæ è®°' } |
| | | , { field: 'DiffDate', title: 'ç¸å·®é´é' } |
| | | { type: 'checkbox', fixed: 'left', totalRowText: 'å计è¡' } |
| | | , { templet: '#xuhao', title: 'åºå·', sort: true, event: "qwe", style: 'background-color: #f0f9ff;' } |
| | | , { field: 'HPlanDate', title: 'è®¡åæ¥æ', style: 'background-color: #f0f9ff;' } |
| | | , { field: 'HPlanBeginTime', title: '计åå¼å§æ¶é´ç¹', style: 'background-color: #f0f9ff;' } |
| | | , { field: 'HPlanEndTime', title: '计åç»ææ¶é´ç¹', style: 'background-color: #f0f9ff;' } |
| | | , { field: 'HSafeEndTime', title: 'å®å
¨ç»ææ¶é´ç¹', style: 'background-color: #f0f9ff;' } |
| | | , { field: 'HErrBeginTime', title: 'é¢è¦å¼å§æ¶é´ç¹', style: 'background-color: #f0f9ff;' } |
| | | , { field: 'HRelationFlag', title: 'å
³èæ è®°', style: 'background-color: #f0f9ff;' } |
| | | , { field: 'DiffDate', title: 'ç¸å·®é´é', style: 'background-color: #f0f9ff;' } |
| | | ]; |
| | | option_plan = { |
| | | id: 'mainTable_plan' |
| | | , elem: '#mainTable_plan' |
| | | , toolbar: '#toolbarDemo' |
| | | , page: true |
| | | , totalRow: true |
| | | , limit: 500 |
| | | , limits: [50, 200, 500, 1000, 3000] |
| | | , cellMinWidth: 120 |
| | |
| | | function set_AddFNew() { |
| | | //è·åæå¤§åæ®å· |
| | | get_MAXNum(); |
| | | option.data = [{ "HMaintainItemID": 0, "HMaintainItemNumber": " ", "HMaintainItem": " ", "HMaintainPart": " ", "HClaim": " ", "HManagerID": "0 ", "HManagerNumber": " ", "HManagerName": " ", "HRemark": " " }]; |
| | | option1.data = [{ "HMaterID": 0, "HMaterNumber": "", "HMaterName": "", "HUnitID": 0, "HUnitNumber": "", "HUnitName": "", "HManagerID": "0 ", "HManagerNumber": " ", "HManagerName": " ", "HQty": "0", "HRemark": "" }]; |
| | | option.data = [{ "HMaintainItemID": 0, "HMaintainItemNumber": " ", "HMaintainItem": " ", "HMaintainPart": " ", "HClaim": " ", "HManagerID": sessionStorage["HEmpID"], "HManagerNumber": sessionStorage["HEmpNumber"], "HManagerName": sessionStorage["HEmpName"], "HRemark": " " }]; |
| | | option1.data = [{ "HMaterID": 0, "HMaterNumber": "", "HMaterName": "", "HUnitID": 0, "HUnitNumber": "", "HUnitName": "", "HManagerID": sessionStorage["HEmpID"], "HManagerNumber": sessionStorage["HEmpNumber"], "HManagerName": sessionStorage["HEmpName"], "HQty": "0", "HRemark": "" }]; |
| | | table.render(option); |
| | | table.render(option1); |
| | | } |
| | |
| | | $.ajax({ |
| | | url: GetWEBURL() + "/Web/GetMAXNum", |
| | | type: "GET", |
| | | async: false, |
| | | data: { "HBillType": sBillType }, |
| | | success: function (d) { |
| | | //console.log(d.data); |
| | |
| | | } |
| | | }); |
| | | } |
| | | //è·åç»ç» |
| | | function Organ() { |
| | | //è·åç»å½é¡µç»ç»å |
| | | var Organization = ''; |
| | | $.ajax({ |
| | | type: "get", |
| | | url: GetWEBURL() + "/Web/GetOrganizations", |
| | | success: function (result) { |
| | | if (result.count == 1) { // 说æéªè¯æåäºï¼ |
| | | var data = result.data; |
| | | for (var i = 0; i < data.length; i++) { |
| | | Organization += '<option style="color:blue;" value="' + data[i].ID + '">' + data[i].Name + '</option>'; |
| | | } |
| | | $("#HUSEORGID").append(Organization); |
| | | $("#HUSEORGID").val(sessionStorage["OrganizationID"]) |
| | | form.render('select'); |
| | | } |
| | | layer.closeAll("loading"); |
| | | } |
| | | }) |
| | | } |
| | | //ç¼è¾ |
| | | function set_EditFromGrid(linterid) { |
| | | set_EditForm(linterid); //ç¼è¾è·å表头 |
| | | set_EditGrid(linterid); //ç¼è¾è·åè¡¨ä½ |
| | | option.data = [{ "HMaintainItemID": 0, "HMaintainItemNumber": " ", "HMaintainItem": " ", "HMaintainPart": " ", "HClaim": " ", "HManagerID": "0 ", "HManagerNumber": " ", "HManagerName": " ", "HRemark": " " }]; |
| | | table.render(option); |
| | | //option.data = [{ "HMaintainItemID": 0, "HMaintainItemNumber": " ", "HMaintainItem": " ", "HMaintainPart": " ", "HClaim": " ", "HManagerID": "0 ", "HManagerNumber": " ", "HManagerName": " ", "HRemark": " " }]; |
| | | //table.render(option); |
| | | |
| | | option1.data = [{ "HMaterID": 0, "HMaterNumber": "", "HMaterName": "", "HUnitID": 0, "HUnitNumber": "", "HUnitName": "", "HManagerID": "0 ", "HManagerNumber": " ", "HManagerName": " ", "HQty": "0", "HRemark": "" }]; |
| | | table.render(option1); |
| | | //option1.data = [{ "HMaterID": 0, "HMaterNumber": "", "HMaterName": "", "HUnitID": 0, "HUnitNumber": "", "HUnitName": "", "HManagerID": "0 ", "HManagerNumber": " ", "HManagerName": " ", "HQty": "0", "HRemark": "" }]; |
| | | //table.render(option1); |
| | | |
| | | set_EditGrid_Plan(linterid); //ç¼è¾è·å表ä½--ç¹æ£è®¡å |
| | | option.data = [{ "HPlanDate": "", "HPlanBeginTime": "", "HPlanEndTime": "", "HRelationFlag": "æªç¹æ£", "DiffDate": 0 }]; |
| | | table.render(option_plan); |
| | | //option.data = [{ "HPlanDate": "", "HPlanBeginTime": "", "HPlanEndTime": "", "HSafeEndTime": "", "HErrBeginTime": "","HRelationFlag": "æªç¹æ£", "DiffDate": 0 }]; |
| | | //table.render(option_plan); |
| | | } |
| | | //ç¼è¾è·å表头 |
| | | function set_EditForm(linterid) { |
| | | $.ajax({ |
| | | url: GetWEBURL() + "Sb_EquipMaintainPlanBill/Sb_EquipMaintainPlanBillListCheckDetai", |
| | | url: GetWEBURL() + "/Sb_EquipMaintainPlanBill/Sb_EquipMaintainPlanBillListCheckDetai", |
| | | type: "GET", |
| | | async: false, |
| | | data: { |
| | | "HID": linterid |
| | | }, |
| | | success: function (result) { |
| | | //console.log(result.code) |
| | | if (result.code == 1) { // 说æéªè¯æåäºï¼ |
| | | console.log(result) |
| | | var data = result.data.h_v_Sb_EquipMaintainPlanBillList[0]; |
| | | var data = result.data.h_v_Sb_EquipMaintainPlanBill_Edit[0]; |
| | | form.val("component-form-group", { //formTest å³ class="layui-form" æå¨å
ç´ å±æ§ lay-filter="" 对åºçå¼ |
| | | "HBillNo": data.åæ®å· |
| | | "HInterID": OperationType == 2 ? "" : linterid |
| | | , "HBillNo": OperationType == 2 ? "" : data.åæ®å· |
| | | , "HDate": formatDate(data.æ¥æ) |
| | | , "HInnerBillNo": data.å
é¨åæ®å· |
| | | , "HEquipID": data.设å¤ID |
| | |
| | | , "HCheckCycle": data.ä¿å
»å¨æ |
| | | , "HMouldMaintainRuleID": data.HMouldMaintainRuleID |
| | | , "HMouldMaintainRuleNo": data.设å¤ä¿å
»è§ç¨ |
| | | , "HMaintainLevID": data.HMaintainLevID |
| | | , "HMaintainLevName": data.ä¿å
»çº§å«åç§° |
| | | , "HCREATEORGID": data.HCREATEORGID |
| | | , "HUSEORGID": data.HUSEORGID |
| | | , "HDeptID": data.HDeptID |
| | | , "HDeptName": data.é¨é¨åç§° |
| | | , "HMaker": data.å¶å人 |
| | | , "HMakeDate": data.å¶åæ¥æ == null ? "" : Format(new Date(data.å¶åæ¥æ), "yyyy-MM-dd") |
| | | , "HChecker": data.å®¡æ ¸äºº |
| | | , "HCheckDate": data.å®¡æ ¸æ¥æ == null ? "" : Format(new Date(data.å®¡æ ¸æ¥æ), "yyyy-MM-dd") |
| | | , "HUpDater": data.ä¿®æ¹äºº |
| | | , "HUpDateDate": data.ä¿®æ¹æ¥æ == null ? "" : Format(new Date(data.ä¿®æ¹æ¥æ), "yyyy-MM-dd") |
| | | , "HCloseMan": data.å
³é人 |
| | | , "HCloseDate": data.å
³éæ¥æ == null ? "" : Format(new Date(data.å
³éæ¥æ), "yyyy-MM-dd") |
| | | , "HDeleteMan": data.ä½åºäºº |
| | | , "HDeleteDate": data.ä½åºæ¥æ == null ? "" : Format(new Date(data.ä½åºæ¥æ), "yyyy-MM-dd") |
| | | }); |
| | | |
| | | if ($("#HUSEORGID").val() == null || $("#HUSEORGID").val() == "" || $("#HUSEORGID").val() == undefined) { |
| | | $("#HUSEORGID").val(sessionStorage["OrganizationID"]) |
| | | } |
| | | } else { |
| | | layer.alert(result.msg, { icon: 5, btn: ['éåº'], time: 100000, offset: 't' }); |
| | | } |
| | |
| | | } |
| | | //ç¼è¾è·åè¡¨ä½ |
| | | function set_EditGrid(linterid) { |
| | | $("#HInterID").val(linterid);//ä¿®æ¹æ¶ä¸»è¡¨ID |
| | | //ç¼è¾å è½½æ°æ® |
| | | $.ajax({ |
| | | url: GetWEBURL() + 'Sb_EquipMaintainPlanBill/Sb_EquipMaintainPlanBillListProjectDetaiNew', |
| | | url: GetWEBURL() + '/Sb_EquipMaintainPlanBill/Sb_EquipMaintainPlanBillListProjectDetaiNew', |
| | | type: "GET", |
| | | async: false, |
| | | data: { "HInterID": linterid }, |
| | | success: function (result) { |
| | | if (result.count == 1) { |
| | |
| | | |
| | | // ç¼è¾è·å表ä½--ç¹æ£è®¡å |
| | | function set_EditGrid_Plan(linterid) { |
| | | $("#HInterID").val(linterid);//ä¿®æ¹æ¶ä¸»è¡¨ID |
| | | //ç¼è¾å è½½æ°æ® |
| | | $.ajax({ |
| | | url: GetWEBURL() + 'Sb_EquipMaintainPlanBill/GetPlanList', |
| | | url: GetWEBURL() + '/Sb_EquipMaintainPlanBill/GetPlanList', |
| | | type: "GET", |
| | | async: false, |
| | | data: { "sqlWhere": "and hmainid=" + linterid }, |
| | | success: function (result) { |
| | | if (result.count == 1) { |
| | |
| | | for (let i = 0; i < data.length; i++) { |
| | | rowdata.push( |
| | | { |
| | | "HPlanDate": Pub_Format(data[i].è®¡åæ¥æ, "yyyy-MM-dd"), "HPlanBeginTime": Pub_Format(data[i].计åå¼å§æ¶é´ç¹, "yyyy-MM-dd hh:mm:ss"), "HPlanEndTime": Pub_Format(data[i].计åç»ææ¶é´ç¹, "yyyy-MM-dd hh:mm:ss") |
| | | , "HRelationFlag": data[i].å
³èæ è®°, "DiffDate": data[i].ç¸å·®é´é |
| | | "HPlanDate": Pub_Format(data[i].è®¡åæ¥æ, "yyyy-MM-dd"), "HPlanBeginTime": Pub_Format(data[i].计åå¼å§æ¶é´ç¹, "yyyy-MM-dd hh:mm:ss"), "HPlanEndTime": Pub_Format(data[i].计åç»ææ¶é´ç¹, "yyyy-MM-dd hh:mm:ss"), "HSafeEndTime": Pub_Format(data[i].å®å
¨ç»ææ¶é´ç¹, "yyyy-MM-dd hh:mm:ss") |
| | | , "HErrBeginTime": Pub_Format(data[i].é¢è¦å¼å§æ¶é´ç¹, "yyyy-MM-dd hh:mm:ss"), "HRelationFlag": data[i].å
³èæ è®°, "DiffDate": data[i].ç¸å·®é´é |
| | | } |
| | | ) |
| | | } |
| | |
| | | shift: 2, |
| | | area: ['90%', '90%'], |
| | | maxmin: true, |
| | | content: ['../PublicPage/Gy_Maintain.html', 'yes'], |
| | | content: ['../åºç¡èµæ/åºç¡èµæ/Gy_MaintainList.html?openType=2', 'yes'], |
| | | btn: ['ç¡®å®', 'åæ¶'] |
| | | , btn1: function (index, layero) { |
| | | //æé®ãæé®ä¸ãçåè° |
| | |
| | | if (checkStatus.data.length === 0) { |
| | | return layer.msg('è¯·éæ©æ°æ®'); |
| | | } |
| | | if (checkStatus.data.length === 1) { |
| | | //åæ¥æ´æ°è¡¨æ ¼åç¼å对åºçå¼ |
| | | obj.update({ |
| | | HMaintainItemID: checkStatus.data[0].HItemID, |
| | | HMaintainItemNumber: checkStatus.data[0].ä¿å
»é¡¹ç®ä»£ç , |
| | | HMaintainItem: checkStatus.data[0].ä¿å
»é¡¹ç®åç§°, |
| | | }); |
| | | layer.close(layer.index); //å®è·åçå§ç»æ¯ææ°å¼¹åºçæä¸ªå±ï¼å¼æ¯ç±layerå
é¨å¨æéå¢è®¡ç®ç |
| | | } else { |
| | | //(å¤éè¡) |
| | | //å°åæè¡¨ä½æ°æ®åå
¥æ°ç» |
| | | var tableBak = table.cache["mainTable"]; //è·åä¹åç¼è¾è¿çè¡¨æ ¼æ°æ® |
| | | buttonArr = [];//æ¸
空æ°ç» |
| | | for (var i = 0; i < tableBak.length; i++) { |
| | | if (tableBak[i]["HMaintainItemID"] != 0 && tableBak[i]["HMaintainItemID"] != "" && tableBak[i]["HMaintainItemID"] != undefined && tableBak[i]["HMaintainItemID"] != null) { |
| | | buttonArr.push(tableBak[i]); //妿å
³é®å段ä¸ä¸ºç©ºï¼åå°ä¹åçæ°æ®åå¨ |
| | | } |
| | | } |
| | | //å°æ¹ééæ©çæ°æ®åå
¥æ°ç»ï¼å¤éè¡ï¼ |
| | | for (var i = 0; i < checkStatus.data.length; i++) { |
| | | buttonArr.push({ "HMaintainItemID": checkStatus.data[i].HItemID, "HMaintainItemNumber": checkStatus.data[i].ä¿å
»é¡¹ç®ä»£ç , "HMaintainItem": checkStatus.data[i].ä¿å
»é¡¹ç®åç§°, "HMaintainPart": "", "HClaim": "", "HManagerID": sessionStorage["HEmpID"], "HManagerNumber": sessionStorage["HEmpNumber"], "HManagerName": sessionStorage["HEmpName"], "HRemark": "" }); |
| | | } |
| | | |
| | | //åæ¥æ´æ°è¡¨æ ¼åç¼å对åºçå¼ |
| | | obj.update({ |
| | | HMaintainItemID: checkStatus.data[0].HItemID, |
| | | HMaintainItemNumber: checkStatus.data[0].HNumber, |
| | | HMaintainItem: checkStatus.data[0].HName, |
| | | }); |
| | | layer.close(layer.index); //å®è·åçå§ç»æ¯ææ°å¼¹åºçæä¸ªå±ï¼å¼æ¯ç±layerå
é¨å¨æéå¢è®¡ç®ç |
| | | table.reload("mainTable", { |
| | | data: buttonArr //å°æ°æ®éæ°è½½å
¥è¡¨æ ¼ |
| | | }) |
| | | |
| | | layer.close(layer.index); //å®è·åçå§ç»æ¯ææ°å¼¹åºçæä¸ªå±ï¼å¼æ¯ç±layerå
é¨å¨æéå¢è®¡ç®ç |
| | | } |
| | | } |
| | | , btn2: function (index, layero) { |
| | | //æé®ãæé®äºãçåè° |
| | | //return false å¼å¯è¯¥ä»£ç å¯ç¦æ¢ç¹å»è¯¥æé®å
³é |
| | | }, |
| | | end: function () { |
| | | if (OptionData) { |
| | | //æ´æ°è¡¨æ ¼ç¼åçæ°æ® |
| | | obj.update({ |
| | | HMaintainItemID: OptionData.HItemID, |
| | | HMaintainItemNumber: OptionData.ä¿å
»é¡¹ç®ä»£ç , |
| | | HMaintainItem: OptionData.ä¿å
»é¡¹ç®åç§°, |
| | | }); |
| | | OptionData = []; |
| | | } |
| | | } |
| | | }); |
| | | } |
| | |
| | | shift: 2, |
| | | area: ['90%', '90%'], |
| | | maxmin: true, |
| | | content: ['../PublicPage/UserInformation.html', 'yes'], |
| | | content: ['../åºç¡èµæ/å
¬ç¨åºç¡èµæ/Gy_EmployeeList.html?Type=HManager', 'yes'], |
| | | btn: ['ç¡®å®', 'åæ¶'] |
| | | , btn1: function (index, layero) { |
| | | |
| | |
| | | //åæ¥æ´æ°è¡¨æ ¼åç¼å对åºçå¼ |
| | | obj.update({ |
| | | HManagerID: checkStatus.data[0].HItemID, |
| | | HManagerNumber: checkStatus.data[0].HNumber, |
| | | HManagerName: checkStatus.data[0].HName |
| | | HManagerNumber: checkStatus.data[0].èå代ç , |
| | | HManagerName: checkStatus.data[0].èååç§° |
| | | }); |
| | | |
| | | layer.close(layer.index); //å®è·åçå§ç»æ¯ææ°å¼¹åºçæä¸ªå±ï¼å¼æ¯ç±layerå
é¨å¨æéå¢è®¡ç®ç |
| | |
| | | //return false å¼å¯è¯¥ä»£ç å¯ç¦æ¢ç¹å»è¯¥æé®å
³é |
| | | }, |
| | | end: function () { |
| | | |
| | | if (OptionData) { |
| | | //æ´æ°è¡¨æ ¼ç¼åçæ°æ® |
| | | obj.update({ |
| | | HManagerID: OptionData[0].HItemID, |
| | | HManagerNumber: OptionData[0].èå代ç , |
| | | HManagerName: OptionData[0].èååç§° |
| | | }); |
| | | OptionData = []; |
| | | } |
| | | } |
| | | }); |
| | | } |
| | |
| | | shift: 2, |
| | | area: ['90%', '90%'], |
| | | maxmin: true, |
| | | content: ['../PublicPage/UnitInformation.html', 'yes'], |
| | | content: ['../../views/åºç¡èµæ/å
¬ç¨åºç¡èµæ/Gy_Unit.html?Type=HUnitList', 'yes'], |
| | | btn: ['ç¡®å®', 'åæ¶'] |
| | | , btn1: function (index, layero) { |
| | | //æé®ãæé®ä¸ãçåè° |
| | |
| | | //åæ¥æ´æ°è¡¨æ ¼åç¼å对åºçå¼ |
| | | obj.update({ |
| | | HUnitID: checkStatus.data[0].HItemID, |
| | | HUnitNumber: checkStatus.data[0].HNumber, |
| | | HUnitName: checkStatus.data[0].HName |
| | | HUnitNumber: checkStatus.data[0].计éåä½ä»£ç , |
| | | HUnitName: checkStatus.data[0].计éåä½åç§° |
| | | }); |
| | | layer.close(layer.index); //å®è·åçå§ç»æ¯ææ°å¼¹åºçæä¸ªå±ï¼å¼æ¯ç±layerå
é¨å¨æéå¢è®¡ç®ç |
| | | } |
| | |
| | | layer.open({ |
| | | type: 2, |
| | | skin: 'layui-layer-rim', //å ä¸è¾¹æ¡ |
| | | title: 'åä½å表', |
| | | title: 'ç©æå表', |
| | | closeBtn: 1, |
| | | shift: 2, |
| | | area: ['90%', '90%'], |
| | | maxmin: true, |
| | | content: ['../PublicPage/PartInformation.html', 'yes'], |
| | | content: ['../åºç¡èµæ/å
¬ç¨åºç¡èµæ/Gy_Material.html?openType=2', 'yes'], |
| | | btn: ['ç¡®å®', 'åæ¶'] |
| | | , btn1: function (index, layero) { |
| | | //æé®ãæé®ä¸ãçåè° |
| | |
| | | //åæ¥æ´æ°è¡¨æ ¼åç¼å对åºçå¼ |
| | | obj.update({ |
| | | HMaterID: checkStatus.data[0].HItemID, |
| | | HMaterNumber: checkStatus.data[0].HNumber, |
| | | HMaterName: checkStatus.data[0].HName |
| | | HMaterNumber: checkStatus.data[0].ç©æä»£ç , |
| | | HMaterName: checkStatus.data[0].ç©æåç§° |
| | | }); |
| | | layer.close(layer.index); //å®è·åçå§ç»æ¯ææ°å¼¹åºçæä¸ªå±ï¼å¼æ¯ç±layerå
é¨å¨æéå¢è®¡ç®ç |
| | | } |
| | |
| | | shift: 2, |
| | | area: ['90%', '90%'], |
| | | maxmin: true, |
| | | content: ['../PublicPage/UserInformation.html', 'yes'], |
| | | content: ['../åºç¡èµæ/å
¬ç¨åºç¡èµæ/Gy_Material.html?Type=HEmp', 'yes'], |
| | | btn: ['ç¡®å®', 'åæ¶'] |
| | | , btn1: function (index, layero) { |
| | | |
| | |
| | | //åæ¥æ´æ°è¡¨æ ¼åç¼å对åºçå¼ |
| | | obj.update({ |
| | | HManagerID: checkStatus.data[0].HItemID, |
| | | HManagerNumber: checkStatus.data[0].HNumber, |
| | | HManagerName: checkStatus.data[0].HName |
| | | HManagerNumber: checkStatus.data[0].èå代ç , |
| | | HManagerName: checkStatus.data[0].èååç§° |
| | | }); |
| | | |
| | | layer.close(layer.index); //å®è·åçå§ç»æ¯ææ°å¼¹åºçæä¸ªå±ï¼å¼æ¯ç±layerå
é¨å¨æéå¢è®¡ç®ç |
| | |
| | | |
| | | } |
| | | } |
| | | //if (typeof (sSubStr1) == "undefined" || sSubStr1 == "" || sSubStr1 == "[]") { |
| | | // layer.msg("é
件项æç»è®°å½ä¸è½ä¸ºç©º", { icon: 5, btn: ['确认'], time: 2000, offset: 't', skin: 'layui-layer-lan', title: "温馨æç¤º" }); |
| | | // return false; |
| | | //} |
| | | //if (typeof (sSubStr1) != "undefined" && typeof (sSubStr1) != "") { |
| | | // sSubStr1 = JSON.parse(sSubStr1); |
| | | // for (var i = 0; i < sSubStr1.length; i++) { |
| | | // if (sSubStr1[i].HMaterNumber == "") { |
| | | // layer.msg("é
件项æç»è®°å½ç¬¬" + (i + 1) + "è¡,é
件代ç 为空!", { icon: 5, btn: ['确认'], time: 2000, offset: 't', skin: 'layui-layer-lan', title: "温馨æç¤º" }); |
| | | // return false; |
| | | // } |
| | | // if (sSubStr1[i].HUnitNumber == "") { |
| | | // layer.msg("é
件项æç»è®°å½ç¬¬" + (i + 1) + "è¡,åä½ä»£ç ä¿¡æ¯ä¸ºç©º!", { icon: 5, btn: ['确认'], time: 2000, offset: 't', skin: 'layui-layer-lan', title: "温馨æç¤º" }); |
| | | // return false; |
| | | // } |
| | | // if (sSubStr[i].HManagerNumber == "") { |
| | | // layer.msg("ä¿å
»é¡¹æç»è®°å½ç¬¬" + (i + 1) + "è¡,è´è´£äººä¿¡æ¯ä¸ºç©º!", { icon: 5, btn: ['确认'], time: 2000, offset: 't', skin: 'layui-layer-lan', title: "温馨æç¤º" }); |
| | | // return false; |
| | | // } |
| | | // } |
| | | //} |
| | | |
| | | else { |
| | | |
| | | return Result = true; |
| | | } |
| | | |
| | | return Result; |
| | | } |
| | | function f_alert(sMsg) { |
| | | layer.alert(sMsg, { icon: 5 }); |
| | | } |
| | | |
| | | |
| | | //#region å表1ï¼éèå设置 |
| | | function get_HideColumn(num) { |
| | | var colName = ""; |
| | | var contentUrl = ""; |
| | | if (num == 0) { |
| | | for (var i = 1; i < option.cols[0].length - 1; i++) { |
| | | colName += option.cols[0][i]["title"] + ","; |
| | | } |
| | | } |
| | | if (num == 1) { |
| | | for (var i = 1; i < option1.cols[0].length - 1; i++) { |
| | | colName += option1.cols[0][i]["title"] + ","; |
| | | } |
| | | } |
| | | if (num == 2) { |
| | | for (var i = 1; i < option_plan.cols[0].length - 1; i++) { |
| | | colName += option_plan.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(num); |
| | | //æ´æ°è¡¨æ ¼ç¼åçæ°æ® |
| | | layer.close(index);//å
³éå¼¹çª |
| | | } |
| | | }) |
| | | } |
| | | //#endregion |
| | | |
| | | |
| | | //#region å表1ï¼æ¾ç¤ºåæ°æ® |
| | | function DisPlay_HideColumn(num) { |
| | | $.ajax({ |
| | | url: GetWEBURL() + '/Xt_grdAlignment_WMES/grdAlignmentWMESList', |
| | | async: false, |
| | | type: "GET", |
| | | data: { "HModName": HModName, "user": sessionStorage["HUserName"] }, |
| | | async: false, |
| | | success: function (data1) { |
| | | if (data1.data.length != 0) { |
| | | var dataCol = [];//æ°æ®åºæ¥è¯¢åºçåæ°æ® |
| | | var titleData = ["HQCCheckItemID", "HInspectInstruMentID"]; |
| | | |
| | | dataCol = data1.data[0].HGridString.split(','); |
| | | var currentOption; |
| | | if (num == 0) { |
| | | currentOption = option; |
| | | } else if (num == 1) { |
| | | currentOption = option1; |
| | | } else if (num == 2) { |
| | | currentOption = option_plan; |
| | | } |
| | | for (var i = 0; i < currentOption.cols[0].length - 2; i++) { |
| | | if (dataCol.length <= i) { |
| | | break; |
| | | } |
| | | var dataCols = dataCol[i].split('|'); |
| | | //éèå |
| | | if (dataCols[1] == 1) { |
| | | currentOption.cols[0][i + 1]["hide"] = true; |
| | | } |
| | | //设置å宽 |
| | | if (dataCols[3] > 0) { |
| | | currentOption.cols[0][i + 1]["width"] = dataCols[3]; |
| | | } |
| | | //设置å
容åä½å¤§å° |
| | | if (data1.data[0].HFontSize != 0) { |
| | | currentOption.cols[0][i + 1]["style"] += "font-size:" + data1.data[0].HFontSize + "px;"; |
| | | } else { |
| | | currentOption.cols[0][i + 1]["style"] += "font-size:100%"; |
| | | } |
| | | //æ¾ç¤ºå |
| | | if (dataCols[1] == 0 && $.inArray(currentOption.cols[0][i + 1]["title"], titleData) == -1) { |
| | | currentOption.cols[0][i + 1]["hide"] = false; |
| | | } |
| | | //å使å¨ä½ç½®(å·¦ å±
ä¸ å³) |
| | | switch (dataCols[2]) { |
| | | case "L": |
| | | currentOption.cols[0][i + 1]["align"] = "left"; |
| | | break; |
| | | case "M": |
| | | currentOption.cols[0][i + 1]["align"] = "center"; |
| | | break; |
| | | case "R": |
| | | currentOption.cols[0][i + 1]["align"] = "right"; |
| | | break; |
| | | } |
| | | //è®¾ç½®è¡¨æ ¼title屿§æ¾ç¤ºå«å |
| | | if (dataCols[4] != null && dataCols[4] != "") { |
| | | currentOption.cols[0][i + 1]["title"] = dataCols[4]; |
| | | } |
| | | } |
| | | |
| | | //åæ¶å»ç»å |
| | | for (var i = 1; i < currentOption.cols[0].length - 1; i++) { |
| | | if (currentOption.cols[0][i]["fixed"] != null) { |
| | | currentOption.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(currentOption.cols[0][i + 1]["title"], titleData) != -1) { |
| | | data1.data[0].HFixCols += 1; |
| | | } |
| | | currentOption.cols[0][i + 1]["fixed"] = "left"; |
| | | } |
| | | } |
| | | table.render(currentOption); |
| | | } else { |
| | | if (num == 0) { |
| | | table.render(option); |
| | | } else if (num == 1) { |
| | | table.render(option1); |
| | | } else if (num == 2) { |
| | | table.render(option_plan); |
| | | } |
| | | } |
| | | }, error: function () { |
| | | layer.alert("æ¥å£è¯·æ±å¤±è´¥!", { icon: 5 }); |
| | | } |
| | | }) |
| | | } |
| | | //#endregion |
| | | |
| | | |
| | | |
| | | }); |
| | | //ä¿å
»çº§å« |
| | | function GetEquipMaintainRuleListValue(obj) { |
| | | //$("#HMouldMaintainRuleID").val(obj[0].hmainid); |
| | | var se=$("#HMaintainLevID").val(); |
| | | $("#HMaintainLevID").val(obj.HMaintainLevID); |
| | | $("#HMouldMaintainRuleNo").val(obj.åæ®å·); |
| | | $("#HCheckCycle").val(obj.ä¿å
»å¨æ); |
| | | } |
| | | |
| | | function GetEquipFileValue(obj) { //è¿åè®¾å¤ |
| | | $("#HEquipID").val(obj[0].hmainid);//id |
| | | //$("#HEquipNumber").val(obj[0].设å¤ä»£ç );//设å¤ä»£ç |
| | | $("#HEquipName").val(obj[0].设å¤åç§°);//设å¤åç§° |
| | | //$("#HEquipModel").val(obj[0].设å¤è§æ ¼);//设å¤åå· |
| | | } |
| | | //ä¿å
»çº§å« |
| | | function GetMaintainLevValue(obj) { |
| | | $("#HMaintainLevName").val(obj[0].ä¿å
»çº§å«åç§°); |
| | | $("#HMaintainLevID").val(obj[0].HItemID); |
| | | } |
| | | |
| | | function GetHDeptNameValue(obj) //è¿åéè´é¨é¨ |
| | | { |
| | | $("#HDeptName").val(obj[0].é¨é¨åç§°); |
| | | $("#HDeptID").val(obj[0].HItemID); |
| | | } |
| | | |
| | | //ä¿å
»é¡¹ç® |
| | | function GetMaintainListValue(obj) { |
| | | //option.data.ä¿å
»é¡¹ç®ä»£ç = obj.ä¿å
»é¡¹ç®ä»£ç |
| | | // option[0].ä¿å
»é¡¹ç® = obj.ä¿å
»é¡¹ç®åç§° |
| | | //option[0].HItemID = obj.HItemID |
| | | OptionData = obj; |
| | | |
| | | } |
| | | function GetHManagerValue(obj) { |
| | | OptionData = obj; |
| | | } |
| | | </script> |
| | | </body> |
| | | </html> |