MicroCommunityWeb/public/pages/property/inspectionTaskManage/inspectionTaskManage.html
2022-03-16 11:42:30 +08:00

136 lines
8.2 KiB
HTML
Executable File
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<div>
<div class="row">
<div class="col-lg-12">
<div class="ibox ">
<div class="ibox-title">
<h5>查询条件</h5>
<div class="ibox-tools" style="top:10px;">
<button type="button" class="btn btn-link btn-sm" style="margin-right:10px;" v-on:click="_moreCondition()">
{{inspectionTaskManageInfo.moreCondition == true?'隐藏':'更多'}}
</button>
</div>
</div>
<div class="ibox-content">
<div class="row">
<div class="col-sm-3">
<div class="form-group">
<input type="text" placeholder="请输入执行人" v-model="inspectionTaskManageInfo.conditions.planUserName" class=" form-control">
</div>
</div>
<div class="col-sm-4">
<div class="form-group">
<input type="text" placeholder="请输入实际巡检开始时间" v-model="inspectionTaskManageInfo.conditions.startTime" class=" form-control startTime">
</div>
</div>
<div class="col-sm-3">
<div class="form-group">
<input type="text" placeholder="请输入实际巡检结束时间" v-model="inspectionTaskManageInfo.conditions.endTime" class=" form-control endTime">
</div>
</div>
<div class="col-sm-2">
<button type="button" class="btn btn-primary btn-sm" v-on:click="_queryInspectionTaskMethod()">
<i class="fa fa-search"></i> 查询
</button>
<button type="button" class="btn btn-white btn-sm" v-on:click="_resetInspectionTaskMethod()">
<i class="fa fa-repeat"></i> 重置
</button>
</div>
</div>
<div class="row" v-show="inspectionTaskManageInfo.moreCondition == true">
<div class="col-sm-3">
<div class="form-group">
<input type="text" placeholder="请输入巡检计划ID" v-model="inspectionTaskManageInfo.conditions.inspectionPlanId" class=" form-control">
</div>
</div>
<div class="col-sm-4">
<div class="form-group">
<input type="text" placeholder="请输入巡检计划名称" v-model="inspectionTaskManageInfo.conditions.inspectionPlanName" class=" form-control">
</div>
</div>
<div class="col-sm-3">
<select class="custom-select" v-model="inspectionTaskManageInfo.conditions.state">
<option selected value="">请选择巡检状态</option>
<option v-for="(item,index) in inspectionTaskManageInfo.stateTypes" :key="index" :value="item.statusCd">
{{item.name}}
</option>
</select>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="row">
<div class="col-lg-12">
<div class="ibox">
<div class="ibox-title">
<h5>巡检任务</h5>
<div class="ibox-tools" style="top:10px;">
</div>
</div>
<div class="ibox-content">
<table class="footable table table-stripped toggle-arrow-tiny" data-page-size="15">
<thead>
<tr>
<th class="text-center">任务编码</th>
<th class="text-center">巡检计划</th>
<th class="text-center">巡检人<br/>开始/结束时间</th>
<th class="text-center">实际巡检时间</th>
<th class="text-center">计划巡检人</th>
<th class="text-center">当前巡检人</th>
<th class="text-center">转移描述</th>
<th class="text-center">巡检方式</th>
<th class="text-center">巡检状态</th>
<th class="text-center">操作</th>
</tr>
</thead>
<tbody>
<tr v-for="inspectionTask in inspectionTaskManageInfo.inspectionTasks">
<td class="text-center">{{inspectionTask.taskId}}</td>
<td class="text-center">{{inspectionTask.inspectionPlanName}}</td>
<td class="text-center">{{inspectionTask.planInsTime}}<br/>{{inspectionTask.planEndTime}}</td>
<td class="text-center">{{inspectionTask.actInsTime ? inspectionTask.actInsTime : '-'}}</td>
<td class="text-center">{{inspectionTask.originalPlanUserName ? inspectionTask.originalPlanUserName : '-'}}</td>
<td class="text-center">{{inspectionTask.planUserName}}</td>
<td class="text-center">{{inspectionTask.transferDesc ? inspectionTask.transferDesc : '-'}}</td>
<td class="text-center">{{inspectionTask.signTypeName}}</td>
<td class="text-center text-danger font-bold" v-if="inspectionTask.state == '20200408'">{{inspectionTask.stateName}}</td>
<td class="text-center" v-else>{{inspectionTask.stateName}}</td>
<td class="text-center">
<div class="btn-group">
<button class="btn-white btn btn-xs" v-on:click="_openInspectionTaskTransfer(inspectionTask)" v-if="inspectionTask.state == '20200406' || inspectionTask.state == '20200405'">流转
</button>
<button class="btn-white btn btn-xs" v-on:click="_openInspectionTaskDetail(inspectionTask)">详情
</button>
<button class="btn-white btn btn-xs" v-if="vc.hasPrivilege('502022031612550001')" v-on:click="_openDeleteInspectionTask(inspectionTask)">删除
</button>
</div>
</td>
</tr>
</tbody>
<tfoot>
<tr>
<td colspan="11">
<ul class="pagination float-right"></ul>
</td>
</tr>
</tfoot>
</table>
<!-- 分页 -->
<div class="row margin-top-xs">
<div class="col-sm-9">
<div>巡检任务是根据巡检计划每天晚上2点钟自动生成如果没有生成 请确认是否开启了定时任务,或者巡检计划是否设置正确</div>
</div>
<div class="col-sm-3 float-right">
<vc:create path="frame/pagination"></vc:create>
</div>
</div>
</div>
</div>
</div>
</div>
<vc:create path="property/inspectionTaskDetail"></vc:create>
<vc:create path="property/inspectionTaskTransfer"></vc:create>
<vc:create path="property/deleteInspectionTask"></vc:create>
</div>