| | |
| | | <!DOCTYPE html> |
| | | <html> |
| | | |
| | | <head> |
| | | <meta charset="utf-8" /> |
| | | <title>æ°å¢/ç¼è¾å·¡æ£å·¡æ£è®°å½å</title> |
| | | <meta name="renderer" content="webkit"> |
| | | <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"> |
| | | <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=0"> |
| | | <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/layui/layui.js"></script> |
| | |
| | | <script src="../../layuiadmin/PubCustom.js"></script> |
| | | <script src="../../layuiadmin/PageTitle.js"></script> |
| | | <script src="../../layuiadmin/zgqCustom/zgqCustom.js"></script> |
| | | <script src="../../layuiadmin/common.js"></script> |
| | | <script src="../../layuiadmin/layui-common-custom.js"></script> |
| | | <script src="../../layuiadmin/SetColumn.js"></script> |
| | | <style type="text/css"> |
| | | .layui-form-label { |
| | | width: 95px; |
| | | } |
| | | |
| | | /* 鲿¢ä¸ææ¡ç䏿å表被éè---å¿
须设置--- */ |
| | | .layui-table-cell { |
| | | overflow: visible !important; |
| | | } |
| | | |
| | | /* 使å¾ä¸ææ¡ä¸åå
æ ¼å好åé */ |
| | | td .layui-form-select { |
| | | margin-top: -10px; |
| | |
| | | } |
| | | </style> |
| | | </head> |
| | | |
| | | <body> |
| | | <div id="layout1" class="layui-fluid"> |
| | | <div class="layui-row layui-col-space15"> |
| | |
| | | <form id="form0" class="layui-form" lay-filter="component-form-group" action=""> |
| | | <div class="layui-card-header"> |
| | | <div class="layui-btn-group"> |
| | | <button type="button" id="add-btn" class="layui-btn layui-btn-normal layui-btn-radius" lay-submit="" lay-filter="set_SaveBill">ä¿å</button> |
| | | <button type="button" class="layui-btn layui-btn-normal layui-btn-radius" lay-submit="" lay-filter="Cancel">éåº</button> |
| | | <button type="button" id="add-btn" class="layui-btn layui-btn-normal layui-btn-radius" |
| | | lay-submit="" lay-filter="set_SaveBill">ä¿å</button> |
| | | <button type="button" id="check-btn" class="layui-btn layui-btn-normal layui-btn-radius" |
| | | lay-submit="" lay-filter="set_CheckBill">å®¡æ ¸</button> |
| | | <button type="button" class="layui-btn layui-btn-normal layui-btn-radius" lay-submit="" |
| | | lay-filter="Cancel">éåº</button> |
| | | </div> |
| | | </div> |
| | | <div class="layui-card-body"> |
| | |
| | | <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" style="background-color:#efefef4d;" readonly> |
| | | <input class="layui-input" name="HBillNo" lay-verify="HBillNo" |
| | | id="HBillNo" style="background-color:#efefef4d;" readonly> |
| | | <input id="HInterID" name="HInterID" type="hidden" /> |
| | | <input id="HMaker" name="HMaker" type="hidden" /><!--å¶å人--> |
| | | </div> |
| | |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label">æ¥æ</label> |
| | | <div class="layui-input-inline"> |
| | | <input class="layui-input" name="HDate" id="HDate" autocomplete="off" model="datetime" dateFormat="yyyy-MM-dd" placeholder="yyyy-MM-dd"> |
| | | <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"> |
| | | <input type="text" name="HInnerBillNo" id="HInnerBillNo" |
| | | class="layui-input"> |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label">设å¤<label style="color:red"> * </label></label> |
| | | <label class="layui-form-label">设å¤<label style="color:red"> * |
| | | </label></label> |
| | | <div class="layui-input-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;background-color:#efefef4d;" readonly="readonly"> |
| | | <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> |
| | | <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;background-color:#efefef4d;" |
| | | readonly="readonly"> |
| | | <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 style="color:red"></label></label> |
| | | <label class="layui-form-label">å·¡æ£è®¡åç¼å·<label |
| | | style="color:red"></label></label> |
| | | <div class="layui-input-inline"> |
| | | <input type="hidden" name="HPlanNo" id="HPlanNo" class="layui-input" value="0" style="float:left;width:150px;"> |
| | | <input type="hidden" name="HEquipPatrolCheckPlanEntryID" id="HEquipPatrolCheckPlanEntryID" class="layui-input" value="0" style="float:left;width:150px;"> |
| | | <input type="hidden" name="HEquipPatrolCheckPlanInterID" id="HEquipPatrolCheckPlanInterID" class="layui-input" value="0" style="float:left;width:150px;"> |
| | | <input type="text" name="HPlanName" id="HPlanName" class="layui-input" value="" style="float:left;width:150px;background-color:#efefef4d;" readonly="readonly"> |
| | | <button type="button" lay-submit="" class="layui-btn" lay-filter="HPlanList" style="width:40px;"> |
| | | <i class="layui-icon layui-icon-search layuiadmin-button-btn" style="margin-left:-9px;"></i> |
| | | <input type="hidden" name="HPlanNo" id="HPlanNo" class="layui-input" |
| | | value="0" style="float:left;width:150px;"> |
| | | <input type="hidden" name="HEquipPatrolCheckPlanEntryID" |
| | | id="HEquipPatrolCheckPlanEntryID" class="layui-input" value="0" |
| | | style="float:left;width:150px;"> |
| | | <input type="hidden" name="HEquipPatrolCheckPlanInterID" |
| | | id="HEquipPatrolCheckPlanInterID" class="layui-input" value="0" |
| | | style="float:left;width:150px;"> |
| | | <input type="text" name="HPlanName" id="HPlanName" |
| | | class="layui-input" value="" |
| | | style="float:left;width:150px;background-color:#efefef4d;" |
| | | readonly="readonly"> |
| | | <button type="button" lay-submit="" class="layui-btn" |
| | | lay-filter="HPlanList" style="width:40px;"> |
| | | <i class="layui-icon layui-icon-search layuiadmin-button-btn" |
| | | style="margin-left:-9px;"></i> |
| | | </button> |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label">计åå¼å§æ¥æ</label> |
| | | <div class="layui-input-inline"> |
| | | <input class="layui-input" name="HBeginDate" id="HBeginDate" autocomplete="off" model="datetime" dateFormat="yyyy-MM-dd" placeholder="yyyy-MM-dd"> |
| | | <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"> |
| | | <input class="layui-input" name="HEndDate" id="HEndDate" autocomplete="off" model="datetime" dateFormat="yyyy-MM-dd" placeholder="yyyy-MM-dd"> |
| | | <input class="layui-input" name="HEndDate" id="HEndDate" |
| | | autocomplete="off" model="datetime" dateFormat="yyyy-MM-dd" |
| | | placeholder="yyyy-MM-dd"> |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label">设å¤å·¡æ£è§ç¨<label style="color:red"></label></label> |
| | | <label class="layui-form-label">设å¤å·¡æ£è§ç¨<label |
| | | style="color:red"></label></label> |
| | | <div class="layui-input-inline"> |
| | | <input type="hidden" name="HEquipPatrolCheckRuleInterID" id="HEquipPatrolCheckRuleInterID" class="layui-input" value="0" style="float:left;width:150px;"> |
| | | <input type="text" name="HEquipPatrolCheckRuleInterNo" id="HEquipPatrolCheckRuleInterNo" class="layui-input" value="" style="float:left;width:150px;background-color:#efefef4d;" readonly> |
| | | <button type="button" lay-submit="" class="layui-btn" lay-filter="HEquipPatrolCheckRuleInterList" style="width:40px;"> |
| | | <i class="layui-icon layui-icon-search layuiadmin-button-btn" style="margin-left:-9px;"></i> |
| | | <input type="hidden" name="HEquipPatrolCheckRuleInterID" |
| | | id="HEquipPatrolCheckRuleInterID" class="layui-input" value="0" |
| | | style="float:left;width:150px;"> |
| | | <input type="text" name="HEquipPatrolCheckRuleInterNo" |
| | | id="HEquipPatrolCheckRuleInterNo" class="layui-input" value="" |
| | | style="float:left;width:150px;background-color:#efefef4d;" |
| | | readonly> |
| | | <button type="button" lay-submit="" class="layui-btn" |
| | | lay-filter="HEquipPatrolCheckRuleInterList" style="width:40px;"> |
| | | <i class="layui-icon layui-icon-search layuiadmin-button-btn" |
| | | style="margin-left:-9px;"></i> |
| | | </button> |
| | | </div> |
| | | </div> |
| | |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label">å¼å¸¸æ
åµè®°å½</label> |
| | | <div class="layui-input-inline"> |
| | | <input type="text" name="HErrNote" id="HErrNote" class="layui-input"> |
| | | <input type="text" name="HErrNote" id="HErrNote" |
| | | class="layui-input"> |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label">é大å®å
¨<br />éæ£è®°å½</label> |
| | | <div class="layui-input-inline" style="margin-top:10px;"> |
| | | <input type="text" name="HBigSafeNote" id="HBigSafeNote" class="layui-input"> |
| | | <input type="text" name="HBigSafeNote" id="HBigSafeNote" |
| | | class="layui-input"> |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label">å·¡æ£æ°æ®</label> |
| | | <div class="layui-input-inline"> |
| | | <input type="text" name="HPatrolCheckNote" id="HPatrolCheckNote" class="layui-input"> |
| | | <input type="text" name="HPatrolCheckNote" id="HPatrolCheckNote" |
| | | class="layui-input"> |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label">çäº§çæ¬¡</label> |
| | | <div class="layui-input-inline"> |
| | | <input type="hidden" name="HShiftsID" id="HShiftsID" class="layui-input" value="0" style="float:left;width:150px;"> |
| | | <input type="text" name="HShiftsName" id="HShiftsName" class="layui-input" value="" style="float:left;width:150px;background-color:#efefef4d;" readonly="readonly"> |
| | | <button type="button" lay-submit="" class="layui-btn" lay-filter="btnHShifts" style="width:40px;"> |
| | | <i class="layui-icon layui-icon-search layuiadmin-button-btn" style="margin-left:-9px;"></i> |
| | | <input type="hidden" name="HShiftsID" id="HShiftsID" |
| | | class="layui-input" value="0" style="float:left;width:150px;"> |
| | | <input type="text" name="HShiftsName" id="HShiftsName" |
| | | class="layui-input" value="" |
| | | style="float:left;width:150px;background-color:#efefef4d;" |
| | | readonly="readonly"> |
| | | <button type="button" lay-submit="" class="layui-btn" |
| | | lay-filter="btnHShifts" style="width:40px;"> |
| | | <i class="layui-icon layui-icon-search layuiadmin-button-btn" |
| | | style="margin-left:-9px;"></i> |
| | | </button> |
| | | </div> |
| | | </div> |
| | |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label">æè¦</label> |
| | | <div class="layui-input-inline"> |
| | | <textarea placeholder="请è¾å
¥æè¦" class="layui-textarea" name="HExplanation" id="HExplanation"></textarea> |
| | | <textarea placeholder="请è¾å
¥æè¦" class="layui-textarea" |
| | | name="HExplanation" id="HExplanation"></textarea> |
| | | </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> |
| | | <textarea placeholder="请è¾å
¥å¤æ³¨" class="layui-textarea" name="HRemark" |
| | | id="HRemark"></textarea> |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label">æç»ç»è®º</label> |
| | | <div class="layui-input-inline"> |
| | | <input type="radio" name="HLastResult" id="HLastResult" value="OK" title="OK" checked> |
| | | <input type="radio" name="HLastResult" id="HLastResult" value="NG" title="NG"> |
| | | <input type="radio" name="HLastResult" id="HLastResult" value="OK" |
| | | title="OK" checked> |
| | | <input type="radio" name="HLastResult" id="HLastResult" value="NG" |
| | | title="NG"> |
| | | </div> |
| | | </div> |
| | | </div> |
| | |
| | | <div class="layui-tab-item"> |
| | | <div class="layui-form-item" style="padding-top: 10px;"> |
| | | <div class="layui-upload"> |
| | | <button type="button" class="layui-btn" id="testList">éæ©æä»¶</button><input class="layui-upload-file" type="file" accept="" name="file" multiple=""> |
| | | <button type="button" class="layui-btn" |
| | | id="testList">éæ©æä»¶</button><input class="layui-upload-file" |
| | | type="file" accept="" name="file" multiple=""> |
| | | <div class="layui-upload-list"> |
| | | <table class="layui-table" lay-filter="fileTable"> |
| | | <thead> |
| | |
| | | <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> |
| | | <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> |
| | | <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> |
| | | <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> |
| | | <input type="text" class="layui-input" name="HUpDater" id="HUpDater" |
| | | 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="HMakeDate" id="HMakeDate" style="background-color:#efefef4d;" readonly> |
| | | <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> |
| | | <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> |
| | | <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> |
| | | <input type="text" class="layui-input" name="HUpDateDate" |
| | | id="HUpDateDate" style="background-color:#efefef4d;" readonly> |
| | | </div> |
| | | </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="HDeleteMan" id="HDeleteMan" style="background-color:#efefef4d;" readonly> |
| | | <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> |
| | | <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" id="HideColumn"><i class="layui-icon layui-icon-form"></i>å设置</button> |
| | | |
| | | </div> |
| | | </script> |
| | |
| | | </div> |
| | | <script type="text/html" id="barDemo"> |
| | | <!--<a class="layui-btn layui-btn-xs" lay-event="edit">ç¼è¾</a>--> |
| | | <a class="layui-btn layui-btn-danger layui-btn-xs" lay-event="del">å é¤</a> |
| | | <a class="layui-btn layui-btn-danger layui-btn-xs" lay-event="del">å é¤</a> |
| | | </script> |
| | | <!--è¡ä¸æéæ©(å·¡æ£ç»æ)--> |
| | | <script type="text/html" id="HPatrolCheckResult"> |
| | |
| | | |
| | | var option = []; |
| | | var sBillType = "5014"; |
| | | var HModName = 'Sb_EquipPatrolCheckBillEdit' |
| | | var uneditable = ['HPatrolCheckItem', 'HManagerName']; |
| | | var titleData = []; |
| | | //var TabRow = { "HPatrolCheckItemID": 0, "HPatrolCheckCode": "","HPatrolCheckItem": "", "HPatrolCheckPart": "", "HClaim": "", "HManagerID": 0, "HManagerCode": "", "HManagerName": "", "HRemark": "" }; |
| | | |
| | | //#endregion |
| | |
| | | table.on('toolbar(mainTable)', function (obj) { |
| | | var checkStatus = table.checkStatus('mainTable') |
| | | , data = checkStatus.data; |
| | | var NewRow = { "HPatrolCheckItemID": 0, "HPatrolCheckCode": "", "HPatrolCheckItem": "", "HPatrolCheckPart": "", "HClaim": "", "HManagerID": sessionStorage["HEmpID"], "HManagerCode": sessionStorage["HEmpNumber"], "HManagerName": sessionStorage["HEmpName"], "HRemark": "", "HPatrolCheckItemClassID": 0, "HPatrolCheckItemClassName": "", "HPatrolCheckItemMethodID": 0, "HPatrolCheckItemMethodName": "","HPatrolCheckResult":"Y"}; |
| | | var NewRow = { "HPatrolCheckItemID": 0, "HPatrolCheckCode": "", "HPatrolCheckItem": "", "HPatrolCheckPart": "", "HClaim": "", "HManagerID": sessionStorage["HEmpID"], "HManagerCode": sessionStorage["HEmpNumber"], "HManagerName": sessionStorage["HEmpName"], "HRemark": "", "HPatrolCheckItemClassID": 0, "HPatrolCheckItemClassName": "", "HPatrolCheckItemMethodID": 0, "HPatrolCheckItemMethodName": "", "HPatrolCheckResult": "Y" }; |
| | | switch (obj.event) { |
| | | //æ°å¢ä¸è¡ |
| | | case 'btn-AddLine': btnAddLine(NewRow); |
| | | break; |
| | | //å¤å¶ä¸è¡ |
| | | case 'btn-CopyLine': btnCopyLine(data); |
| | | break; |
| | | //å设置 |
| | | case 'set_HideColumn': get_HideColumnEditWithCallback(HModName, sessionStorage["HUserName"], option, table, |
| | | function () { |
| | | setUneditableCol_WithUneditable(option, uneditable, titleData) |
| | | table.render(option) |
| | | } |
| | | ); |
| | | break; |
| | | } |
| | | }); |
| | |
| | | }); |
| | | }); |
| | | |
| | | //å®¡æ ¸ |
| | | form.on('submit(set_CheckBill)', function () { |
| | | var wait = layer.load(); |
| | | var HInterID = linterid; |
| | | $.ajax({ |
| | | url: GetWEBURL() + '/Sb_EquipPatrolCheckBill/CheckSb_EquipPatrolCheckBill', |
| | | type: "GET", |
| | | data: { "HInterID": HInterID, "Type": 1, "user": sessionStorage["HUserName"] }, |
| | | success: function (result) { |
| | | if (result.count == 1) { |
| | | // get_FastQuery(); |
| | | $('#add-btn').addClass('layui-btn-disabled').attr('disabled', true) |
| | | $('#check-btn').addClass('layui-btn-disabled').attr('disabled', true) |
| | | layer.msg(result.Message, { icon: 1 }); |
| | | layer.close(wait); |
| | | } else { |
| | | layer.alert(result.code + result.Message, { icon: 5 }); |
| | | layer.close(wait); |
| | | } |
| | | }, error: function () { |
| | | layer.alert("æ¥å£è¯·æ±å¤±è´¥!", { icon: 5 }); |
| | | layer.close(wait); |
| | | } |
| | | }); |
| | | }) |
| | | |
| | | //表头信æ¯çäº§çæ¬¡å¼¹çª |
| | | form.on('submit(btnHShifts)', function () { |
| | | //页é¢å±-èªå®ä¹ |
| | |
| | | shift: 2, |
| | | area: ['80%', '80%'], |
| | | maxmin: true |
| | | , content: ['../åºç¡èµæ/ç产åºç¡èµæ/Gy_ShiftsList.html?openType=2', 'yes'] |
| | | , content: ['../åºç¡èµæ/ç产åºç¡èµæ/Gy_ShiftsList.html?Type=HShiftsList&operationType=2', 'yes'] |
| | | , btn: ['ç¡®å®', 'åæ¶'] |
| | | , btn1: function (index, layero) { |
| | | //æé®ãæé®ä¸ãçåè° |
| | |
| | | if (result.count == 1) { |
| | | var DJData = result;// |
| | | var rowdate1 = layui.table.cache["mainTable"]; |
| | | option.data = [{ "HPatrolCheckItemID": 0, "HPatrolCheckCode": " ", "HPatrolCheckItem": " ", "HPatrolCheckPart": " ", "HClaim": " ", "HManagerID": 0, "HManagerCode": " ", "HManagerName": " ", "HRemark": " ", "HPatrolCheckItemClassID": 0, "HPatrolCheckItemClassName": "", "HPatrolCheckItemMethodID": 0, "HPatrolCheckItemMethodName": "", "HPatrolCheckResult": "Y"}]; |
| | | option.data = [{ "HPatrolCheckItemID": 0, "HPatrolCheckCode": " ", "HPatrolCheckItem": " ", "HPatrolCheckPart": " ", "HClaim": " ", "HManagerID": 0, "HManagerCode": " ", "HManagerName": " ", "HRemark": " ", "HPatrolCheckItemClassID": 0, "HPatrolCheckItemClassName": "", "HPatrolCheckItemMethodID": 0, "HPatrolCheckItemMethodName": "", "HPatrolCheckResult": "Y" }]; |
| | | table.render(option); |
| | | $("#HEquipPatrolCheckRuleInterID").val(DJData.data[0].HInterID); |
| | | $("#HEquipPatrolCheckRuleInterNo").val(DJData.data[0].HBillNo); |
| | |
| | | if (result.count == 1) { |
| | | var DJData = result;// |
| | | var rowdate1 = layui.table.cache["mainTable"]; |
| | | option.data = [{ "HPatrolCheckItemID": 0, "HPatrolCheckCode": " ", "HPatrolCheckItem": " ", "HPatrolCheckPart": " ", "HClaim": " ", "HManagerID": 0, "HManagerCode": " ", "HManagerName": " ", "HRemark": " ", "HPatrolCheckItemClassID": 0, "HPatrolCheckItemClassName": "", "HPatrolCheckItemMethodID": 0, "HPatrolCheckItemMethodName": "", "HPatrolCheckResult": "Y"}]; |
| | | option.data = [{ "HPatrolCheckItemID": 0, "HPatrolCheckCode": " ", "HPatrolCheckItem": " ", "HPatrolCheckPart": " ", "HClaim": " ", "HManagerID": 0, "HManagerCode": " ", "HManagerName": " ", "HRemark": " ", "HPatrolCheckItemClassID": 0, "HPatrolCheckItemClassName": "", "HPatrolCheckItemMethodID": 0, "HPatrolCheckItemMethodName": "", "HPatrolCheckResult": "Y" }]; |
| | | table.render(option); |
| | | |
| | | if (DJData.data.length != 0) //è¡¨ä½æ°æ®ä¸ºç©ºæ¶ |
| | |
| | | } |
| | | } |
| | | else { |
| | | option.data = [{ "HPatrolCheckItemID": 0, "HPatrolCheckCode": "", "HPatrolCheckItem": "", "HPatrolCheckPart": "", "HClaim": "", "HManagerID": 0, "HManagerCode": "", "HManagerName": "", "HRemark": "", "HPatrolCheckItemClassID": 0, "HPatrolCheckItemClassName": "", "HPatrolCheckItemMethodID": 0, "HPatrolCheckItemMethodName": "", "HPatrolCheckResult": "Y"}]; |
| | | option.data = [{ "HPatrolCheckItemID": 0, "HPatrolCheckCode": "", "HPatrolCheckItem": "", "HPatrolCheckPart": "", "HClaim": "", "HManagerID": 0, "HManagerCode": "", "HManagerName": "", "HRemark": "", "HPatrolCheckItemClassID": 0, "HPatrolCheckItemClassName": "", "HPatrolCheckItemMethodID": 0, "HPatrolCheckItemMethodName": "", "HPatrolCheckResult": "Y" }]; |
| | | table.render(option); |
| | | //layer.alert("è¯¥è®¾å¤ææ é»è®¤å·¡æ£è®°å½", { icon: 5 }); |
| | | } |
| | |
| | | } |
| | | $("#HPlanName").val(checkStatus.data[0].åæ®å·); |
| | | $("#HPlanNo").val(checkStatus.data[0].åæ®å·); |
| | | $("#HEquipPatrolCheckPlanInterID").val(checkStatus.data[0].hmainid); |
| | | $("#HEquipPatrolCheckPlanInterID").val(checkStatus.data[0].hmainid); |
| | | //$("#HEquipName").val(checkStatus.data[0].设å¤åç§°); |
| | | //$("#HEquipID").val(checkStatus.data[0].设å¤ID); |
| | | $("#HEquipPatrolCheckRuleInterID").val(checkStatus.data[0].HMouldPatrolCheckRuleID); |
| | |
| | | } |
| | | } |
| | | else { |
| | | option.data = [{ "HPatrolCheckItemID": 0, "HPatrolCheckCode": "", "HPatrolCheckItem": "", "HPatrolCheckPart": "", "HClaim": "", "HManagerID": 0, "HManagerCode": "", "HManagerName": "", "HRemark": "", "HPatrolCheckItemClassID": 0, "HPatrolCheckItemClassName": "", "HPatrolCheckItemMethodID": 0, "HPatrolCheckItemMethodName": "", "HPatrolCheckResult": "Y"}]; |
| | | option.data = [{ "HPatrolCheckItemID": 0, "HPatrolCheckCode": "", "HPatrolCheckItem": "", "HPatrolCheckPart": "", "HClaim": "", "HManagerID": 0, "HManagerCode": "", "HManagerName": "", "HRemark": "", "HPatrolCheckItemClassID": 0, "HPatrolCheckItemClassName": "", "HPatrolCheckItemMethodID": 0, "HPatrolCheckItemMethodName": "", "HPatrolCheckResult": "Y" }]; |
| | | table.render(option); |
| | | //layer.alert("è¯¥è®¾å¤ææ é»è®¤å·¡æ£è®°å½", { icon: 5 }); |
| | | } |
| | |
| | | //#region æ¬é¡µé¢ææè¢«è°ç¨çæ¹æ³ |
| | | //åå§å表å |
| | | function set_InitFrom() { |
| | | $("#check-btn").addClass('layui-btn-disabled').attr('disabled', true) |
| | | laydate.render({ |
| | | elem: '#HDate', |
| | | }); |
| | |
| | | } |
| | | //åå§åè¡¨æ ¼ |
| | | function set_InitGrid() { |
| | | let uneditableStyle = 'background-color: #eeeeee;' |
| | | //表头 |
| | | columns = [ |
| | | { type: 'checkbox', fixed: 'left', totalRowText: 'å计è¡' } |
| | | , { templet: '#xuhao', title: 'åºå·', sort: true, fixed: 'left', event: "qwe" } |
| | | , { templet: '#xuhao', title: 'åºå·', sort: true, fixed: 'left', event: "qwe" , style: uneditableStyle } |
| | | , { field: 'HPatrolCheckItemID', title: 'å·¡æ£é¡¹ç®ID', edit: 'text', hide: true } |
| | | , { field: 'HPatrolCheckCode', title: 'å·¡æ£é¡¹ç®ä»£ç ', edit: 'text', event: "HPatrolCheckCode" } |
| | | , { field: 'HPatrolCheckItem', title: 'å·¡æ£é¡¹ç®', edit: 'text', event: "" } |
| | | , { field: 'HPatrolCheckItem', title: 'å·¡æ£é¡¹ç®', style: uneditableStyle, event: "" } |
| | | , { field: 'HPatrolCheckItemClassID', title: 'å·¡æ£é¡¹ç®åç±»ID', edit: 'text', hide: true } |
| | | , { field: 'HPatrolCheckItemClassName', title: 'å·¡æ£é¡¹ç®åç±»', edit: 'text', event: 'HPatrolCheckItemClassName' } |
| | | , { field: 'HPatrolCheckItemMethodID', title: 'å·¡æ£æ¹æ³ID', edit: 'text', hide: true } |
| | |
| | | , { field: 'HClaim', title: 'å
·ä½è¦æ±', edit: 'text' } |
| | | , { field: 'HManagerID', title: 'è´è´£äººä»£ç ', edit: 'text', hide: true } |
| | | , { field: 'HManagerCode', title: 'è´è´£äººä»£ç ', edit: 'text', event: 'HManagerCode' } |
| | | , { field: 'HManagerName', title: 'è´è´£äººåç§°', edit: 'text' } |
| | | , { field: 'HManagerName', title: 'è´è´£äººåç§°', style: uneditableStyle} |
| | | , { field: 'HRemark', title: '夿³¨', event: "", edit: 'text' } |
| | | , { fixed: 'right', title: 'æä½', toolbar: '#barDemo', width: 150 } |
| | | ]; |
| | |
| | | } |
| | | //å°æ¹ééæ©çæ°æ®åå
¥æ°ç»ï¼å¤éè¡ï¼ |
| | | for (var i = 0; i < checkStatus.data.length; i++) { |
| | | buttonArr.push({ "HPatrolCheckItemID": checkStatus.data[i].HItemID, "HPatrolCheckCode": checkStatus.data[i].å·¡æ£é¡¹ç®ä»£ç , "HPatrolCheckItem": checkStatus.data[i].å·¡æ£é¡¹ç®åç§°, "HPatrolCheckPart": "", "HClaim": "", "HManagerID": sessionStorage["HEmpID"], "HManagerCode": sessionStorage["HEmpNumber"], "HManagerName": sessionStorage["HEmpName"], "HRemark": "", "HPatrolCheckItemClassID": 0, "HPatrolCheckItemClassName": "", "HPatrolCheckItemMethodID": 0, "HPatrolCheckItemMethodName": "", "HPatrolCheckResult": "Y" }); |
| | | buttonArr.push({ |
| | | "HPatrolCheckItemID": checkStatus.data[i].HItemID, |
| | | "HPatrolCheckCode": checkStatus.data[i].å·¡æ£é¡¹ç®ä»£ç , |
| | | "HPatrolCheckItem": checkStatus.data[i].å·¡æ£é¡¹ç®åç§°, |
| | | "HPatrolCheckPart": "", |
| | | "HClaim": "", |
| | | "HManagerID": sessionStorage["HEmpID"], |
| | | "HManagerCode": sessionStorage["HEmpNumber"], |
| | | "HManagerName": sessionStorage["HEmpName"], |
| | | "HRemark": "", |
| | | "HPatrolCheckItemClassID": checkStatus.data[i].HPatrolCheckItemClassID, |
| | | "HPatrolCheckItemClassName": checkStatus.data[i].å·¡æ£é¡¹ç®åç±»åç§°, |
| | | "HPatrolCheckItemMethodID": 0, |
| | | "HPatrolCheckItemMethodName": "", |
| | | "HPatrolCheckResult": "Y" |
| | | }); |
| | | } |
| | | option.data = buttonArr; |
| | | table.render(option); |
| | |
| | | //æé®ãæé®äºãçåè° |
| | | //return false å¼å¯è¯¥ä»£ç å¯ç¦æ¢ç¹å»è¯¥æé®å
³é |
| | | } |
| | | , end: function () { |
| | | if (OptionData.length > 0) { |
| | | //æ´æ°è¡¨æ ¼ç¼åçæ°æ® |
| | | obj.update({ |
| | | HPatrolCheckItemMethodID: OptionData[0].HItemID, |
| | | HPatrolCheckItemMethodName: OptionData[0].å·¡æ£æ¹æ³åç§° |
| | | }); |
| | | OptionData = []; |
| | | } |
| | | } |
| | | }); |
| | | } |
| | | |
| | |
| | | , "HEquipID": data.设å¤ID //设å¤ID |
| | | , "HEquipName": data.设å¤åç§° //设å¤åç§° |
| | | , "HExplanation": data.æè¦ //æè¦ |
| | | , "HBeginDate": data.å¼å§æ¥æ // å¼å§æ¥æ |
| | | , "HEndDate": data.ç»ææ¥æ // ç»ææ¥æ |
| | | , "HBeginDate": isEmpty(data.å¼å§æ¥æ) === true ? "" : Pub_Format(data.å¼å§æ¥æ, 'yyyy-MM-dd') // å¼å§æ¥æ |
| | | , "HEndDate": isEmpty(data.ç»ææ¥æ) === true ? "" : Pub_Format(data.ç»ææ¥æ, 'yyyy-MM-dd') // ç»ææ¥æ |
| | | , "HPlanNo": data.å·¡æ£è®¡åç¼å· //å·¡æ£è®¡åç¼å· |
| | | , "HPlanName": data.å·¡æ£è®¡å //å·¡æ£è®¡åç¼å· |
| | | , "HRemark": data.è¡¨å¤´å¤æ³¨ //夿³¨ |
| | |
| | | document.querySelectorAll("[name='HLastResult']")[1].removeAttribute('checked'); //å é¤éæ©å±æ§ |
| | | $("input:radio[name=HLastResult][value=" + "OK" + "]").attr("checked", "true"); //æ·»å 鿩屿§ |
| | | } |
| | | |
| | | if (OperationType != 2) { |
| | | if (isEmpty(data['å®¡æ ¸äºº']) === false) { |
| | | $("#add-btn").addClass('layui-btn-disabled').attr('disabled', true) |
| | | } else { |
| | | $("#check-btn").removeClass('layui-btn-disabled').attr('disabled', false) |
| | | } |
| | | } |
| | | form.render('radio'); |
| | | |
| | | } else { |
| | |
| | | url: GetWEBURL() + '/Sb_EquipPatrolCheckBill/Sb_EquipPatrolCheckBillListProjectDetai', |
| | | type: "GET", |
| | | data: { "sqlWhere": "and hmainid=" + linterid }, |
| | | success: function (result) { |
| | | success: function (result) { |
| | | if (result.count == 1) { |
| | | var data = result.data; |
| | | var subarr = []; |
| | |
| | | } |
| | | |
| | | option.data = subarr; |
| | | DisPlay_HideColumn(HModName, sessionStorage['HUserName'], option, table) |
| | | table.render(option); |
| | | for (let j = 0; j < data.length; j++) { |
| | | $("#HPatrolCheckResult" + (j + 1)).val(data[j].å·¡æ£ç»æ == "åæ ¼" ? 'Y' : 'X') |
| | |
| | | |
| | | }); |
| | | |
| | | //è®¾å¤ |
| | | function GetEquipFileValue(obj) { |
| | | $("#HEquipName").val(obj[0].设å¤åç§°); |
| | | $("#HEquipID").val(obj[0].hmainid); |
| | | } |
| | | //å·¡æ£è§ç¨ |
| | | function GetSb_EquipPatrolCheckRuleListValue(obj) { |
| | | $("#HEquipPatrolCheckRuleInterNo").val(obj.åæ®å·); |
| | | $("#HEquipPatrolCheckRuleInterID").val(obj.hmainid); |
| | | get_DocCheckItem2(); |
| | | } |
| | | //å·¡æ£é¡¹ç® |
| | | function GetPatrolCheckListValue(obj) { |
| | | OptionData[0] = obj; |
| | | } |
| | | //责任人 |
| | | function GetHManagerValue(obj) { |
| | | OptionData = obj; |
| | | } |
| | | |
| | | function previewImg(obj) { |
| | | var img = new Image(); |
| | |
| | | }) |
| | | } |
| | | //#endregion |
| | | //#region åè° |
| | | //è®¾å¤ |
| | | function GetEquipFileValue(obj) { |
| | | $("#HEquipName").val(obj[0].设å¤åç§°); |
| | | $("#HEquipID").val(obj[0].hmainid); |
| | | } |
| | | //å·¡æ£è§ç¨ |
| | | function GetSb_EquipPatrolCheckRuleListValue(obj) { |
| | | $("#HEquipPatrolCheckRuleInterNo").val(obj.åæ®å·); |
| | | $("#HEquipPatrolCheckRuleInterID").val(obj.hmainid); |
| | | get_DocCheckItem2(); |
| | | } |
| | | //å·¡æ£é¡¹ç® |
| | | function GetPatrolCheckListValue(obj) { |
| | | OptionData[0] = obj; |
| | | } |
| | | //责任人 |
| | | function GetHManagerValue(obj) { |
| | | OptionData = obj; |
| | | } |
| | | |
| | | function GetHShiftsListValue(obj) { // çæ¬¡é¡µé¢åè°å½æ° |
| | | debugger |
| | | $("#HShiftsID").val(obj.HItemID); |
| | | $("#HShiftsName").val(obj.çæ¬¡åç§°); |
| | | } |
| | | |
| | | |
| | | function GetEquipPatrolCheckPlanBillValue(obj) { // å·¡æ£è®¡åç¼å·é¡µé¢ åè°å½æ° |
| | | $("#HPlanName").val(obj[0].åæ®å·); |
| | | $("#HPlanNo").val(obj[0].åæ®å·); |
| | | $("#HEquipPatrolCheckPlanInterID").val(obj[0].hmainid); |
| | | $("#HEquipPatrolCheckRuleInterID").val(obj[0].HMouldPatrolCheckRuleID); |
| | | $("#HEquipPatrolCheckRuleInterNo").val(obj[0].设å¤å·¡æ£è§ç¨); |
| | | } |
| | | |
| | | function GetPatrolCheckListValue(data) { |
| | | OptionData[0] = data |
| | | } |
| | | //#endregion |
| | | |
| | | //#region éèå设置ç¼è¾é¡µé¢ 带åè°ï¼ç¨äºè®¾ç½®ä¸å¯ç¼è¾å |
| | | function get_HideColumnEditWithCallback(HModName, user, option, table, callback) { |
| | | var colName = ""; |
| | | for (var i = 1; i < option.cols[0].length - 1; i++) { |
| | | colName += option.cols[0][i]["field"] + ","; |
| | | } |
| | | var colTitleName = ""; |
| | | for (var i = 1; i < option.cols[0].length - 1; i++) { |
| | | colTitleName += option.cols[0][i]["title"] + ","; |
| | | } |
| | | colName = encodeURI(colName.substring(0, colName.length - 1));//对 URI è¿è¡ç¼ç |
| | | colTitleName = encodeURI(colTitleName.substring(0, colTitleName.length - 1)); |
| | | /*urlStr.replace(/%/g, '%25');*/ |
| | | layer.open({ |
| | | type: 2 |
| | | , skin: "layui-layer-rim" //å ä¸è¾¹æ¡ |
| | | , title: "éèå设置" //æ é¢ |
| | | , closeBtn: 1 //çªä½å³ä¸è§å
³é ç æ ·å¼ |
| | | , shift: 2 //å¼¹åºå¨ç» |
| | | , area: ["50%", "90%"] //çªä½å¤§å° |
| | | , maxmin: true //设置æå¤§æå°æé®æ¯å¦æ¾ç¤º |
| | | , content: ['../åºç¡èµæ/éèå设置/Gy_GridView_Hide_New.html?HModName=' + HModName + '&colName=' + colName + '&colTitleName = ' + colTitleName, "yes"] |
| | | , btn: ["ç¡®å®", "åæ¶"] |
| | | , btn1: function (index, laero) { |
| | | //å·æ°è¡¨æ ¼æ°æ® |
| | | DisPlay_HideColumnEdit(HModName, user, option, table); |
| | | //æ´æ°è¡¨æ ¼ç¼åçæ°æ® |
| | | layer.close(index);//å
³éå¼¹çª |
| | | callback.call() |
| | | } |
| | | }) |
| | | } |
| | | //#endregion |
| | | </script> |
| | | </body> |
| | | |
| | | </html> |