| | |
| | | <div class="form-group" style="font-size: 25px;color: #4CAF50;"> |
| | | <label class="col-sm-3 control-label">按期改:<span id="onTimeRectifyNum"></span></label> |
| | | <label class="col-sm-3 control-label">按期率:<span id="onTimeRectifyRate"></span></label> |
| | | <label class="col-sm-3 control-label">超期改:<span>0</span></label> |
| | | <label class="col-sm-3 control-label">超期率:<span>0%</span></label> |
| | | <label class="col-sm-3 control-label">超期改:<span id="overdueRectifyNum"></span></label> |
| | | <label class="col-sm-3 control-label">超期率:<span id="overdueRectifyRate"></span></label> |
| | | </div> |
| | | |
| | | <div class="form-group" style="font-size: 25px;color: #4CAF50;"> |
| | |
| | | </li> |
| | | <li style="display: flex;align-items: center"> |
| | | <label>整改部门:</label> |
| | | <div class="input-group" style="width: 200px"> |
| | | <input name="rectifyDeptIdLedger" type="hidden" id="rectifyDeptIdLedger"> |
| | | <div class="input-group" style="width: 200px;position: relative"> |
| | | <input name="rectifyDeptIdLedger" id="rectifyDeptIdLedger" style="position: absolute;z-index: -1;top: 0;left: 0"> |
| | | <input onclick="selectDangerDeptTree()" id="dangerDeptName" type="text" |
| | | placeholder="请选择部门" class="form-control" required |
| | | readonly="readonly"> |
| | |
| | | </li> |
| | | <li style="display: flex;align-items: center"> |
| | | <label>隐患登记人:</label> |
| | | <div class="input-group" style="width: 200px"> |
| | | <input id="registerUserName" name="registerUserName" placeholder="请选择登记人" class="form-control" type="text" onclick="selectAcceptUser()" maxlength="30" readonly="true" required> |
| | | <input id="registerUserId" name="registerUserId" type="hidden"> |
| | | <div class="input-group" style="width: 200px;position: relative"> |
| | | <input id="registerUserId" name="registerUserId" style="position: absolute;z-index: -1;top: 0;left: 0"> |
| | | <input id="registerUserName" placeholder="请选择登记人" class="form-control" type="text" onclick="selectAcceptUser()" maxlength="30" readonly="true" required> |
| | | <span class="input-group-addon"><i class="fa fa-search"></i></span> |
| | | </div> |
| | | </li> |
| | |
| | | field: 'id', |
| | | title: '隐患检查点ID', |
| | | visible: false |
| | | }, |
| | | { |
| | | field: 'registerCreateTime', |
| | | title: '登记时间' |
| | | }, |
| | | { |
| | | field: 'checkType', |
| | |
| | | if (row.stage) { |
| | | if (row.stage == 3) { |
| | | actions.push('<a class="btn btn-warning btn-xs" href="javascript:void(0)" onclick="detailDangerExamine(\'' + row.id + '\')"><i class="fa fa-search"></i>查看</a> '); |
| | | actions.push('<a class="btn btn-success btn-xs" href="javascript:void(0)" onclick="editType(\'' + row.id + '\')"><i class="fa fa-edit"></i>修改</a>'); |
| | | if (common == "common") { |
| | | actions.push('<a class="btn btn-danger btn-xs " href="javascript:void(0)" onclick="$.operate.remove(\'' + row.id + '\')"><i class="fa fa-remove"></i>删除</a>'); |
| | | } |
| | |
| | | return actions.join(''); |
| | | } else if (row.stage == 4) { |
| | | actions.push('<a class="btn btn-warning btn-xs" href="javascript:void(0)" onclick="detailDangerRectify(\'' + row.id + '\')"><i class="fa fa-search"></i>查看</a> '); |
| | | actions.push('<a class="btn btn-success btn-xs" href="javascript:void(0)" onclick="editType(\'' + row.id + '\')"><i class="fa fa-edit"></i>修改</a>'); |
| | | if (common == "common") { |
| | | actions.push('<a class="btn btn-danger btn-xs " href="javascript:void(0)" onclick="$.operate.remove(\'' + row.id + '\')"><i class="fa fa-remove"></i>删除</a>'); |
| | | } |
| | |
| | | return actions.join(''); |
| | | } else if (row.stage == 5) { |
| | | actions.push('<a class="btn btn-warning btn-xs" href="javascript:void(0)" onclick="detailDangerAccept(\'' + row.id + '\')"><i class="fa fa-search"></i>查看</a> '); |
| | | |
| | | actions.push('<a class="btn btn-success btn-xs" href="javascript:void(0)" onclick="editType(\'' + row.id + '\')"><i class="fa fa-edit"></i>修改</a>'); |
| | | if (common == "common") { |
| | | actions.push('<a class="btn btn-danger btn-xs " href="javascript:void(0)" onclick="$.operate.remove(\'' + row.id + '\')"><i class="fa fa-remove"></i>删除</a>'); |
| | | } |
| | | |
| | | return actions.join(''); |
| | | } |
| | | } |
| | |
| | | $.modal.open("隐患核查", editDangerExamineUrl.replace("{id}", id)); |
| | | } |
| | | |
| | | /* 隐患核查--修改 */ |
| | | function editType(id) { |
| | | var editTypeUrl = prefix + "/editDangerLevel/{id}"; |
| | | console.log(id,'id') |
| | | $.modal.open("修改", editTypeUrl.replace("{id}", id)); |
| | | } |
| | | |
| | | /* 隐患核查--查看 */ |
| | | function detailDangerExamine(id) { |
| | | var detailDangerExamineUrl = ctx + "tr/hiddenDangerCheck/dangerExamine/detailDangerExamine/{id}"; |