MicroCommunityWeb/public/pages/property/newOaWorkflowDetail/newOaWorkflowDetail.html
2021-12-03 13:12:06 +08:00

176 lines
9.5 KiB
HTML
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-primary btn-sm" v-on:click="_goBack()">返回</button>
</div>
</div>
<div class="ibox-content">
<div>
<div>
<div class="row" v-if="newOaWorkflowDetailInfo.pools">
<div class="col-sm-4">
<div class="form-group">
<label class="col-form-label">申请人:</label>
<label class="">{{newOaWorkflowDetailInfo.pools.create_user_name}}</label>
</div>
</div>
<div class="col-sm-4">
<div class="form-group">
<label class="col-form-label">申请时间:</label>
<label class="">{{newOaWorkflowDetailInfo.pools.create_time}}</label>
</div>
</div>
<div class="col-sm-4">
<div class="form-group">
<label class="col-form-label">状态:</label>
<label class="">{{_getNewOaWorkflowDetailState(newOaWorkflowDetailInfo.pools)}}</label>
</div>
</div>
</div>
<div class="row">
<div class="col-sm-4" v-for="(item,index) in newOaWorkflowDetailInfo.formJson" v-if="item.type != 'text' && item.type != 'button' ">
<div class="form-group">
<label class="col-form-label">{{item.label}}</label>
<label class="">{{newOaWorkflowDetailInfo.pools[item.key]}}</label>
</div>
</div>
</div>
<div class="row">
<div class="col-sm-4" v-for="(item,index) in newOaWorkflowDetailInfo.files">
<div class="form-group">
<a class="col-form-label" :href="item.realFileName">{{item.fileName}}</a>
</div>
</div>
</div>
</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="table table-stripped">
<thead>
<tr>
<th scope="col" class="text-center">序号</th>
<th scope="col" class="text-center">部门</th>
<th scope="col" class="text-center">处理人</th>
<th scope="col" class="text-center">状态</th>
<th scope="col" class="text-center">耗时</th>
<th scope="col" class="text-center">意见</th>
</tr>
</thead>
<tbody>
<tr v-for="(item,index) in newOaWorkflowDetailInfo.comments">
<td scope="row" class="text-center">{{index+1}}</td>
<td scope="row" class="text-center" v-if="item.orgName">{{item.orgName}}</td>
<td scope="row" class="text-center" v-else>管理员</td>
<td class="text-center">{{item.staffName}}</td>
<td class="text-center" v-if="item.endTime">处理完成</td>
<td class="text-center" v-else>正在处理</td>
<td class="text-center">{{item.duration}}</td>
<td class="text-center">{{item.context}}</td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
</div>
<div class="row" v-if="newOaWorkflowDetailInfo.action">
<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">
<div>
<div class="form-group row">
<label class="col-sm-2 col-form-label text-right">动作</label>
<div class="col-sm-10">
<select class="custom-select" v-model="newOaWorkflowDetailInfo.audit.auditCode">
<option selected disabled value="">请选择</option>
<option value="1100" v-if="newOaWorkflowDetailInfo.nextAudit.next">办理</option>
<option value="1200" v-if="newOaWorkflowDetailInfo.nextAudit.back">退回</option>
<option value="1400" v-if="newOaWorkflowDetailInfo.nextAudit.backIndex">退回至提交者
</option>
<option value="1500" v-if="newOaWorkflowDetailInfo.nextAudit.exit">结束
</option>
<option value="1300">转单</option>
</select>
</div>
</div>
<div class="form-group row">
<label class="col-sm-2 col-form-label text-right">工单说明</label>
<div class="col-sm-10">
<textarea placeholder="必填,请填写工单说明" class="form-control" v-model="newOaWorkflowDetailInfo.audit.auditMessage">
</textarea>
</div>
</div>
<!-- 办理时 判断是否指定 委托人 如果指定了 则不显示 -->
<div class="form-group row" v-if="newOaWorkflowDetailInfo.audit.auditCode == '1100' && newOaWorkflowDetailInfo.nextAudit.assignee == '-2'">
<label class="col-sm-2 col-form-label text-right">下一处理人</label>
<div class="col-sm-8">
<input type="text" class="form-control" placeholder="必填,请选择下一处理人" disabled v-model="newOaWorkflowDetailInfo.audit.staffName">
</div>
<div class="col-sm-2">
<button class="btn btn-white " type="button" v-on:click="chooseStaff()">
选择
</button>
</div>
</div>
<!-- 转单时 必须指定 委托人 -->
<div class="form-group row" v-if="newOaWorkflowDetailInfo.audit.auditCode == '1300'">
<label class="col-sm-2 col-form-label text-right">下一处理人</label>
<div class="col-sm-8">
<input type="text" class="form-control" placeholder="必填,请选择下一处理人" disabled v-model="newOaWorkflowDetailInfo.audit.staffName">
</div>
<div class="col-sm-2">
<button class="btn btn-white " type="button" v-on:click="chooseStaff()">
选择
</button>
</div>
</div>
<div class="ibox-content">
<button class="btn btn-primary float-right" type="button" v-on:click="_auditSubmit()">
提交
</button>
</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 text-center">
<img :src="newOaWorkflowDetailInfo.imgData" alt="" height="300px">
</div>
</div>
</div>
</div>
<vc:create path="property/selectStaff"></vc:create>
</div>