| | |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label" style="width: 85px;">ä¿å
»å¨æ</label> |
| | | <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" style="width: 85px;">卿åä½</label> |
| | | <div class="layui-input-block" style="margin-left: 120px;width: 185px;" "> |
| | | <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> |
| | | </select> |
| | | </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> |
| | | <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"> |
| | |
| | | $("#HCycleUnit").val(checkStatus.data[0].卿åä½); |
| | | $("#HCheckCycle").val(checkStatus.data[0].ä¿å
»å¨æ); |
| | | $("#HMaintainLevName").val(checkStatus.data[0].ä¿å
»çº§å«åç§°); |
| | | $("#HMaintainLevID").val(checkStatus.data[0].HMaintainLevID); |
| | | |
| | | $("#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å
é¨å¨æéå¢è®¡ç®ç |
| | | } |
| | |
| | | , { field: 'HPlanDate', title: 'è®¡åæ¥æ' } |
| | | , { field: 'HPlanBeginTime', title: '计åå¼å§æ¶é´ç¹' } |
| | | , { field: 'HPlanEndTime', title: '计åç»ææ¶é´ç¹' } |
| | | , { field: 'HSafeEndTime', title: 'å®å
¨ç»ææ¶é´ç¹' } |
| | | , { field: 'HRelationFlag', title: 'å
³èæ è®°' } |
| | | , { field: 'DiffDate', title: 'ç¸å·®é´é' } |
| | | ]; |
| | |
| | | table.render(option1); |
| | | |
| | | set_EditGrid_Plan(linterid); //ç¼è¾è·å表ä½--ç¹æ£è®¡å |
| | | option.data = [{ "HPlanDate": "", "HPlanBeginTime": "", "HPlanEndTime": "", "HRelationFlag": "æªç¹æ£", "DiffDate": 0 }]; |
| | | option.data = [{ "HPlanDate": "", "HPlanBeginTime": "", "HPlanEndTime": "", "HSafeEndTime": "","HRelationFlag": "æªç¹æ£", "DiffDate": 0 }]; |
| | | table.render(option_plan); |
| | | } |
| | | //ç¼è¾è·å表头 |
| | |
| | | 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") |
| | | "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") |
| | | , "HRelationFlag": data[i].å
³èæ è®°, "DiffDate": data[i].ç¸å·®é´é |
| | | } |
| | | ) |
| | |
| | | var checkStatus = iframeWindow.layui.table.checkStatus('mainTable');//è·åtableçelem:"#test" |
| | | if (checkStatus.data.length === 0) { |
| | | return layer.msg('è¯·éæ©æ°æ®'); |
| | | } |
| | | } |
| | | if (checkStatus.data.length === 1) { |
| | | //åæ¥æ´æ°è¡¨æ ¼åç¼å对åºçå¼ |
| | | obj.update({ |