|
@@ -1,7 +1,26 @@
|
|
|
<template>
|
|
|
<div class="app-container">
|
|
|
<el-row :gutter="10" class="mb8">
|
|
|
-
|
|
|
+ <!--<el-col :span="1.5">-->
|
|
|
+ <!--<el-button-->
|
|
|
+ <!--type="success"-->
|
|
|
+ <!--icon="el-icon-edit"-->
|
|
|
+ <!--size="small"-->
|
|
|
+ <!--:disabled="single"-->
|
|
|
+ <!--@click="handleUpdate1"-->
|
|
|
+ <!--v-hasPermi="['system:info:edit']"-->
|
|
|
+ <!-->修改</el-button>-->
|
|
|
+ <!--</el-col>-->
|
|
|
+ <!--<el-col :span="1.5">-->
|
|
|
+ <!--<el-button-->
|
|
|
+ <!--type="danger"-->
|
|
|
+ <!--icon="el-icon-delete"-->
|
|
|
+ <!--size="small"-->
|
|
|
+ <!--:disabled="multiple"-->
|
|
|
+ <!--@click="handleDelete"-->
|
|
|
+ <!--v-hasPermi="['system:info:remove']"-->
|
|
|
+ <!-->删除</el-button>-->
|
|
|
+ <!--</el-col>-->
|
|
|
<el-col :span="1.5">
|
|
|
<el-form :model="queryParams" ref="queryForm" :inline="true" label-width="68px">
|
|
|
<el-form-item label="名称" prop="mailTheme">
|
|
@@ -49,12 +68,12 @@
|
|
|
icon="el-icon-edit"
|
|
|
@click="detern(scope.row)"
|
|
|
>详情</el-button>
|
|
|
- <!-- <el-button
|
|
|
+ <el-button
|
|
|
size="small"
|
|
|
type="text"
|
|
|
icon="el-icon-share"
|
|
|
@click="details(scope.row)"
|
|
|
- >审批进度</el-button>-->
|
|
|
+ >审批进度</el-button>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
</el-table>
|
|
@@ -65,13 +84,56 @@
|
|
|
:limit.sync="queryParams.pageSize"
|
|
|
@pagination="getList"
|
|
|
/>
|
|
|
+ <el-dialog title="审批跟踪记录" :visible.sync="dialogVisible" width="1200px">
|
|
|
+
|
|
|
+ <el-tabs :tab-position="tabPosition" style="min-height: 200px;">
|
|
|
+ <el-tab-pane>
|
|
|
+ <span slot="label"><i class="el-icon-date"></i> 审批记录</span>
|
|
|
+ <img :src="picUrl">
|
|
|
+ </el-tab-pane>
|
|
|
+ <el-tab-pane>
|
|
|
+ <span slot="label"><i class="el-icon-date"></i> 审批历史</span>
|
|
|
+
|
|
|
+
|
|
|
+ <el-table border :data="historyExamine" @selection-change="handleSelectionChange">
|
|
|
+ <el-table-column label="序号" type="index" width="130" align="center"></el-table-column>
|
|
|
+ <el-table-column label="任务名称" width="180" align="center" prop="activityName"/>
|
|
|
+ <el-table-column label="处理人" align="center" prop="assigneeName"/>
|
|
|
+ <el-table-column label="审批意见" align="center" prop="comment"/>
|
|
|
|
|
|
+ <el-table-column label="申请时间" width="180" align="center" prop="startTime">
|
|
|
+ <template slot-scope="scope">
|
|
|
+ <span>{{scope.row.startTime | format('yyyy-MM-dd hh:mm')}}</span>
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
+
|
|
|
+ <el-table-column label="结束时间" width="180" align="center" prop="endTime">
|
|
|
+ <template slot-scope="scope">
|
|
|
+ <span>{{scope.row.endTime | format('yyyy-MM-dd hh:mm')}}</span>
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
+
|
|
|
+ <el-table-column label="耗时" width="180" align="center" prop="activityType">
|
|
|
+ <template slot-scope="scope">
|
|
|
+ <span>{{scope.row.activityType }}</span>
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
+ </el-table>
|
|
|
+ <!-- formatTotalDateSub()-->
|
|
|
+
|
|
|
+ </el-tab-pane>
|
|
|
+ </el-tabs>
|
|
|
+ <span slot="footer" class="dialog-footer">
|
|
|
+ <el-button @click="cancel">关 闭</el-button>
|
|
|
+ </span>
|
|
|
+ </el-dialog>
|
|
|
</div>
|
|
|
</template>
|
|
|
|
|
|
<script>
|
|
|
|
|
|
- import { havedInfo } from "@/api/activiti/form/fw";
|
|
|
+ import { havedInfo } from "@/api/activiti/form/fw";
|
|
|
+ import { recordImg, examineHistory } from '@/api/system/meapply/meapply'
|
|
|
export default {
|
|
|
name: 'havedone',
|
|
|
data(){
|
|
@@ -104,7 +166,25 @@
|
|
|
form: {},
|
|
|
// 表单校验
|
|
|
rules: {
|
|
|
- }
|
|
|
+ },
|
|
|
+ picUrl: '',
|
|
|
+ tabPosition: 'left',
|
|
|
+
|
|
|
+ //弹窗
|
|
|
+ dialogVisible:false,
|
|
|
+ //审批历史
|
|
|
+ historyExamine: [
|
|
|
+ {
|
|
|
+ activityName: '',
|
|
|
+ assignee: '',
|
|
|
+ assigneeName: '',
|
|
|
+ comment: '',
|
|
|
+ startTime: '',
|
|
|
+ endTime: '',
|
|
|
+ activityType: ''
|
|
|
+ }
|
|
|
+
|
|
|
+ ],
|
|
|
};
|
|
|
},
|
|
|
created() {
|
|
@@ -112,17 +192,32 @@
|
|
|
},
|
|
|
methods: {
|
|
|
|
|
|
- detern(row){
|
|
|
- this.reset();
|
|
|
- const actkey = row.taskid || this.ids
|
|
|
- const form = row || this.form
|
|
|
- this.$router.push({path:'/actwork/havedone/havedetails',query: {bd:form,id:actkey }})
|
|
|
- },
|
|
|
+ detern(row){
|
|
|
+ this.reset();
|
|
|
+ const actkey = row.taskid || this.ids
|
|
|
+ const form = row || this.form
|
|
|
+ this.$router.push({path:'/actwork/havedone/havedetails',query: {bd:form,id:actkey }})
|
|
|
+ },
|
|
|
+ details(row){
|
|
|
+ this.dialogVisible = true
|
|
|
+ //查看图片
|
|
|
+ var formdata = new FormData
|
|
|
+ formdata.append('pProcessInstanceId', row.taskid)
|
|
|
+ recordImg(formdata).then(response => {
|
|
|
+ this.picUrl = window.URL.createObjectURL(response)
|
|
|
+ })
|
|
|
+ examineHistory(row.taskid).then(response => {
|
|
|
+ this.historyExamine = response.rows;
|
|
|
+ console.log(response.rows)
|
|
|
+ })
|
|
|
+
|
|
|
+ },
|
|
|
+
|
|
|
|
|
|
/** 查询【请填写功能名称】列表 */
|
|
|
getList() {
|
|
|
this.loading = true;
|
|
|
- havedInfo(this.queryParams).then(response => {
|
|
|
+ havedInfo(this.queryParams).then(response => {
|
|
|
this.infoList = response.rows;
|
|
|
this.total = response.total;
|
|
|
this.loading = false;
|
|
@@ -131,6 +226,7 @@
|
|
|
// 取消按钮
|
|
|
cancel() {
|
|
|
this.open = false;
|
|
|
+ this.dialogVisible = false;
|
|
|
this.reset();
|
|
|
},
|
|
|
// 表单重置
|