From c499a18741f6e30bea6d417a8739e920087e6faf Mon Sep 17 00:00:00 2001 From: danshihao Date: Fri, 12 Jul 2024 20:49:10 +0800 Subject: [PATCH] =?UTF-8?q?[update=20=E6=A0=87=E5=87=86=E8=A7=A3=E8=AF=BB?= =?UTF-8?q?=E6=B5=81=E7=A8=8B]=20=E5=8A=A0=E7=AD=BE=E6=8C=89=E9=92=AE?= =?UTF-8?q?=EF=BC=88=E6=B2=A1=E6=9C=89=E6=8E=A5=E5=8F=A3=EF=BC=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/common/lang/en-us.js | 1 + src/common/lang/zh-cn.js | 1 + .../StandardInterpretationProcess.vue | 49 +++++++++++++++++-- 3 files changed, 48 insertions(+), 3 deletions(-) diff --git a/src/common/lang/en-us.js b/src/common/lang/en-us.js index 037a01b..b23a585 100644 --- a/src/common/lang/en-us.js +++ b/src/common/lang/en-us.js @@ -150,6 +150,7 @@ module.exports = { turnTo: 'Turn To', agree: 'agree', reject: 'Reject', + countersign: 'Countersign', basicInformation: 'Basic Information', personalInformation: 'Personnel Information', finishDate: 'Finish Date', diff --git a/src/common/lang/zh-cn.js b/src/common/lang/zh-cn.js index a814b88..24652f9 100644 --- a/src/common/lang/zh-cn.js +++ b/src/common/lang/zh-cn.js @@ -152,6 +152,7 @@ module.exports = { turnTo: '转办', agree: '同意', reject: '驳回', + countersign: '加签', basicInformation: '基础信息', personalInformation: '人员信息', rangeOfApplication: '适用范围', diff --git a/src/views/workCenter/standardInterpretationProcess/StandardInterpretationProcess.vue b/src/views/workCenter/standardInterpretationProcess/StandardInterpretationProcess.vue index e432e04..cb6a3ab 100644 --- a/src/views/workCenter/standardInterpretationProcess/StandardInterpretationProcess.vue +++ b/src/views/workCenter/standardInterpretationProcess/StandardInterpretationProcess.vue @@ -125,7 +125,7 @@ - + @@ -247,7 +247,7 @@ export default { }, created () { const { projectId, nodeId, taskName, snapshotId, isLook } = this.$route.query - this.isLook = isLook + this.disabled = isLook === '1' // 发起、草稿进来没有nodeId,就默认发起节点 this.currentNodeId = nodeId || StandardInterpretationNodes.initiated.value this.currentNodeName = taskName || StandardInterpretationNodes.initiated.text @@ -470,14 +470,57 @@ export default { } return params }, + /** + * 加签 + */ + handleCountersign () { + this.selectUserType = '1' + this.$refs.userSelectModal.open() + }, /** * 转办弹框 */ handleTurnTo () { + this.selectUserType = '2' this.$refs.userSelectModal.open() }, + /** + * 人员选择回调 + */ + userSelectCallback (userId) { + switch (this.selectUserType) { + case '1': + this.countersignCallback() + break + case '2': + this.continueTurnToCallback(userId) + } + }, + // 加签 + countersignCallback (userId) { + if (this.loading) return + this.loading = true + const params = { + taskId: this.$route.query.taskId, + userId + } + // interpretFlowTransfer(params).then(res => { + // if (res.success) { + // this.$message.success(res.message) + // this.goBack() + // } else { + // this.$message.warn(res.message) + // } + // }).catch(() => { + // this.loading = false + // }).finally(() => { + // setTimeout(() => { + // this.loading = false + // }, 1000) + // }) + }, // 转办 - continueTurnTo (userId) { + continueTurnToCallback (userId) { if (this.loading) return this.loading = true const params = {