|
@@ -228,7 +228,7 @@
|
|
</template>
|
|
</template>
|
|
|
|
|
|
<script>
|
|
<script>
|
|
-import { mapState, mapMutations } from "vuex";
|
|
|
|
|
|
+import { mapState, mapMutations, mapActions } from "vuex";
|
|
import {
|
|
import {
|
|
taskFlowDetail,
|
|
taskFlowDetail,
|
|
taskFlowNodeInfo,
|
|
taskFlowNodeInfo,
|
|
@@ -250,7 +250,6 @@ export default {
|
|
exchangeUsers: [],
|
|
exchangeUsers: [],
|
|
selectUserType: "exchange", // exchange:转审,approve:下一节点审核
|
|
selectUserType: "exchange", // exchange:转审,approve:下一节点审核
|
|
curSelectedUsers: [],
|
|
curSelectedUsers: [],
|
|
- auditLogCache: { paper: {}, card: {} },
|
|
|
|
// 选择下一节点审批人
|
|
// 选择下一节点审批人
|
|
IS_NEED_SELECT_APPROVE_USER: false,
|
|
IS_NEED_SELECT_APPROVE_USER: false,
|
|
nextFlowTaskResult: {}, //下一节点信息
|
|
nextFlowTaskResult: {}, //下一节点信息
|
|
@@ -309,10 +308,22 @@ export default {
|
|
};
|
|
};
|
|
},
|
|
},
|
|
computed: {
|
|
computed: {
|
|
- ...mapState("exam", ["editType", "examTask", "curTaskApply", "taskStatus"]),
|
|
|
|
|
|
+ ...mapState("exam", [
|
|
|
|
+ "editType",
|
|
|
|
+ "examTask",
|
|
|
|
+ "curTaskApply",
|
|
|
|
+ "taskStatus",
|
|
|
|
+ "auditLogCache",
|
|
|
|
+ ]),
|
|
},
|
|
},
|
|
methods: {
|
|
methods: {
|
|
- ...mapMutations("exam", ["setEditType", "setExamTask", "setCurTaskApply"]),
|
|
|
|
|
|
+ ...mapMutations("exam", [
|
|
|
|
+ "setEditType",
|
|
|
|
+ "setExamTask",
|
|
|
|
+ "setCurTaskApply",
|
|
|
|
+ "setAuditLogCache",
|
|
|
|
+ ]),
|
|
|
|
+ ...mapActions("exam", ["addPreviewLog"]),
|
|
async initData() {
|
|
async initData() {
|
|
const paperAttachments = this.curTaskApply.paperAttachmentIds
|
|
const paperAttachments = this.curTaskApply.paperAttachmentIds
|
|
? JSON.parse(this.curTaskApply.paperAttachmentIds)
|
|
? JSON.parse(this.curTaskApply.paperAttachmentIds)
|
|
@@ -328,7 +339,7 @@ export default {
|
|
if (paper.cardId && this.curTaskApply.auditContent.includes("CARD"))
|
|
if (paper.cardId && this.curTaskApply.auditContent.includes("CARD"))
|
|
auditLogCache.card[paper.cardId] = false;
|
|
auditLogCache.card[paper.cardId] = false;
|
|
});
|
|
});
|
|
- this.auditLogCache = auditLogCache;
|
|
|
|
|
|
+ this.setAuditLogCache(auditLogCache);
|
|
|
|
|
|
if (this.curTaskApply.flowStatus === "START") {
|
|
if (this.curTaskApply.flowStatus === "START") {
|
|
await this.getFlowList();
|
|
await this.getFlowList();
|
|
@@ -431,7 +442,7 @@ export default {
|
|
},
|
|
},
|
|
async downloadPaper(attachment) {
|
|
async downloadPaper(attachment) {
|
|
if (!attachment.attachmentId) return;
|
|
if (!attachment.attachmentId) return;
|
|
- this.addPreviewLog(attachment, "paper");
|
|
|
|
|
|
+ this.addPreviewLog({ attachment, type: "paper" });
|
|
const data = await attachmentPreview(attachment.attachmentId);
|
|
const data = await attachmentPreview(attachment.attachmentId);
|
|
window.open(data.url);
|
|
window.open(data.url);
|
|
},
|
|
},
|