|
@@ -1,32 +1,5 @@
|
|
|
<template>
|
|
|
<div class="apply-content task-detail">
|
|
|
- <div class="mb-4" v-if="flows.length">
|
|
|
- <el-steps align-center>
|
|
|
- <el-step
|
|
|
- v-for="flow in flows"
|
|
|
- :key="flow.taskKey"
|
|
|
- :title="flow.taskName"
|
|
|
- :status="flow.status"
|
|
|
- >
|
|
|
- <div slot="description">
|
|
|
- <p class="step-desc">{{ flow.desc }}</p>
|
|
|
- <div class="step-info" v-if="flow.firstUser">
|
|
|
- <span>{{ flow.firstUser }}</span>
|
|
|
- <el-popover
|
|
|
- v-if="flow.moreUser"
|
|
|
- placement="top-start"
|
|
|
- width="300"
|
|
|
- trigger="hover"
|
|
|
- :content="flow.moreUser"
|
|
|
- >
|
|
|
- <span class="color-primary ml-1" slot="reference">更多</span>
|
|
|
- </el-popover>
|
|
|
- </div>
|
|
|
- </div>
|
|
|
- </el-step>
|
|
|
- </el-steps>
|
|
|
- </div>
|
|
|
-
|
|
|
<div class="task-body">
|
|
|
<div v-if="IS_APPLY" class="mb-2 text-right">
|
|
|
<el-button
|
|
@@ -471,8 +444,10 @@ export default {
|
|
|
if (
|
|
|
!this.curTaskApply.flowId ||
|
|
|
(this.curTaskApply.setup !== null && this.curTaskApply.setup <= 0)
|
|
|
- )
|
|
|
+ ) {
|
|
|
+ this.$emit("step-change", []);
|
|
|
return;
|
|
|
+ }
|
|
|
|
|
|
const flowStatus = {
|
|
|
wait: "待进行",
|
|
@@ -520,6 +495,7 @@ export default {
|
|
|
};
|
|
|
});
|
|
|
}
|
|
|
+ this.$emit("step-change", this.flows);
|
|
|
},
|
|
|
addAtachment() {
|
|
|
if (this.paperAttachments.length >= this.attachmentLimitCount) return;
|
|
@@ -739,7 +715,7 @@ export default {
|
|
|
if (!valid) return;
|
|
|
|
|
|
const actionName =
|
|
|
- this.auditModal.approvePass === "REJECT" ? "不通过" : "通过";
|
|
|
+ this.auditModal.approvePass === "REJECT" ? "驳回" : "通过";
|
|
|
const result = await this.$confirm(
|
|
|
`确定${actionName}该申请吗?`,
|
|
|
"提示",
|