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 = {