|
@@ -160,8 +160,10 @@
|
|
|
</div>
|
|
|
</div>
|
|
|
<div class="right-card">
|
|
|
+
|
|
|
<el-tabs v-model="activeName" class="demo-tabs">
|
|
|
<el-tab-pane label="审批记录" name="first">
|
|
|
+
|
|
|
<ul class="flow-chart">
|
|
|
<li
|
|
|
v-for="item in recordList"
|
|
@@ -207,7 +209,18 @@
|
|
|
</div>
|
|
|
<div class="line"></div>
|
|
|
</li>
|
|
|
+
|
|
|
</ul>
|
|
|
+ <div>
|
|
|
+ <el-button
|
|
|
+ type="primary"
|
|
|
+ :loading="btnLoading"
|
|
|
+ style="margin: 20px 150px;"
|
|
|
+ v-if="isRevocation"
|
|
|
+ @click="handleSubmit(3)"
|
|
|
+ >撤回</el-button
|
|
|
+ >
|
|
|
+ </div>
|
|
|
</el-tab-pane>
|
|
|
<el-tab-pane
|
|
|
label="决策辅助"
|
|
@@ -718,6 +731,7 @@ const fileObj = ref({});
|
|
|
const approvalRecordData = ref({
|
|
|
buttonInfoList: [],
|
|
|
});
|
|
|
+let isRevocation = ref(false);
|
|
|
const getRecords = (_id) => {
|
|
|
if (_id) {
|
|
|
proxy
|
|
@@ -731,6 +745,16 @@ const getRecords = (_id) => {
|
|
|
fileIds.value = res.recordList.map((item) => {
|
|
|
return item.flowExampleDetailId;
|
|
|
});
|
|
|
+ for (let i = 0; i < res.recordList.length; i++) {
|
|
|
+ const element = res.recordList[i];
|
|
|
+ if(element.status == 2) {
|
|
|
+ // 2为审批中
|
|
|
+ if(element.processedUser === res.recordList[i - 1].processedUser) {
|
|
|
+ // 当前审批人和上一条审批人相同,开启撤回开关
|
|
|
+ isRevocation.value = true;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
proxy
|
|
|
.post("fileInfo/getList", { businessIdList: fileIds.value })
|
|
|
.then((res2) => {
|
|
@@ -821,9 +845,11 @@ onMounted(async () => {
|
|
|
padding: 0 20px 20px;
|
|
|
width: 400px;
|
|
|
box-sizing: border-box;
|
|
|
+ height: calc(100vh - 130px);
|
|
|
+ overflow: auto;
|
|
|
.flow-chart {
|
|
|
overflow: auto;
|
|
|
- height: calc(100vh - 200px);
|
|
|
+ //height: calc(100vh - 200px);
|
|
|
padding: 0;
|
|
|
margin: 0;
|
|
|
li {
|