|
@@ -65,7 +65,7 @@
|
|
</el-col>
|
|
</el-col>
|
|
<!--列表-->
|
|
<!--列表-->
|
|
<el-table :data="list" ref="multipleTable" v-if="showTable" highlight-current-row v-loading="listLoading" :height="tableHeight" style="width: 100%;"
|
|
<el-table :data="list" ref="multipleTable" v-if="showTable" highlight-current-row v-loading="listLoading" :height="tableHeight" style="width: 100%;"
|
|
- @selection-change="handleSelectionChange" :default-expand-all="defaultExpandAllFlg">
|
|
|
|
|
|
+ @selection-change="handleSelectionChange" :default-expand-all="defaultExpandAllFlg" @expand-change="expandChange">
|
|
<el-table-column type="selection" width="55"></el-table-column>
|
|
<el-table-column type="selection" width="55"></el-table-column>
|
|
<el-table-column type="expand" :label="''">
|
|
<el-table-column type="expand" :label="''">
|
|
<template slot="header">
|
|
<template slot="header">
|
|
@@ -105,6 +105,10 @@
|
|
]
|
|
]
|
|
</span>
|
|
</span>
|
|
</b></p>
|
|
</b></p>
|
|
|
|
+ <p v-if="user.timeType.reportAuditType == 6" >审核流程:<span v-if="item.auditorList && item.auditorList.length == 1">一层审核(<span style="color:#20A0ff;">{{ item.auditorList[0].name }}</span>)</span>
|
|
|
|
+ <span v-if="item.auditorList && item.auditorList.length == 2">两层审核(<span style="color:#20A0ff;">{{ item.auditorList[0].name }}->{{ item.auditorList[1].name }}</span>)</span>
|
|
|
|
+ <el-button size="small" @click="viewOneReport(item)" v-if="!item.auditorList">查看</el-button>
|
|
|
|
+ </p>
|
|
<p v-if="user.timeType.customDegreeActive==1 && item.degree_id != null">{{user.timeType.customDegreeName}}:{{item.degreeName}}</p>
|
|
<p v-if="user.timeType.customDegreeActive==1 && item.degree_id != null">{{user.timeType.customDegreeName}}:{{item.degreeName}}</p>
|
|
<p v-if="user.timeType.customDataActive==1">{{user.timeType.customDataName}}:{{item.customData}}</p>
|
|
<p v-if="user.timeType.customDataActive==1">{{user.timeType.customDataName}}:{{item.customData}}</p>
|
|
<p v-if="user.timeType.customTextActive==1">{{user.timeType.customTextName}}:{{item.customText}}</p>
|
|
<p v-if="user.timeType.customTextActive==1">{{user.timeType.customTextName}}:{{item.customText}}</p>
|
|
@@ -498,6 +502,41 @@
|
|
}
|
|
}
|
|
},
|
|
},
|
|
methods: {
|
|
methods: {
|
|
|
|
+ viewOneReport(r) {
|
|
|
|
+ this.http.post("/report/getAuditWorkflowList", {reportId:r.id},
|
|
|
|
+ res => {
|
|
|
|
+ if (res.code == "ok") {
|
|
|
|
+ this.$set(r,'auditorList', res.data);
|
|
|
|
+ }
|
|
|
|
+ },
|
|
|
|
+ error => {
|
|
|
|
+ this.undoFormLoading = false
|
|
|
|
+ this.$message({
|
|
|
|
+ message: error,
|
|
|
|
+ type: "error"
|
|
|
|
+ });
|
|
|
|
+ });
|
|
|
|
+ },
|
|
|
|
+ expandChange(row, expandedRows) {
|
|
|
|
+ var reportList = row.data;
|
|
|
|
+ for (var i=0;i<reportList.length; i++) {
|
|
|
|
+ var r = reportList[i];
|
|
|
|
+ if (r.auditorList) continue;
|
|
|
|
+ this.http.post("/report/getAuditWorkflowList", {reportId:r.id},
|
|
|
|
+ res => {
|
|
|
|
+ if (res.code == "ok") {
|
|
|
|
+ this.$set(r,'auditorList', res.data);
|
|
|
|
+ }
|
|
|
|
+ },
|
|
|
|
+ error => {
|
|
|
|
+ this.undoFormLoading = false
|
|
|
|
+ this.$message({
|
|
|
|
+ message: error,
|
|
|
|
+ type: "error"
|
|
|
|
+ });
|
|
|
|
+ });
|
|
|
|
+ }
|
|
|
|
+ },
|
|
detailsClick(item, i) {
|
|
detailsClick(item, i) {
|
|
this.detailsDialog = true
|
|
this.detailsDialog = true
|
|
this.detailsList = item.membdateList
|
|
this.detailsList = item.membdateList
|