[update 标准解读流程] 加签按钮(没有接口)
This commit is contained in:
@@ -150,6 +150,7 @@ module.exports = {
|
|||||||
turnTo: 'Turn To',
|
turnTo: 'Turn To',
|
||||||
agree: 'agree',
|
agree: 'agree',
|
||||||
reject: 'Reject',
|
reject: 'Reject',
|
||||||
|
countersign: 'Countersign',
|
||||||
basicInformation: 'Basic Information',
|
basicInformation: 'Basic Information',
|
||||||
personalInformation: 'Personnel Information',
|
personalInformation: 'Personnel Information',
|
||||||
finishDate: 'Finish Date',
|
finishDate: 'Finish Date',
|
||||||
|
|||||||
@@ -152,6 +152,7 @@ module.exports = {
|
|||||||
turnTo: '转办',
|
turnTo: '转办',
|
||||||
agree: '同意',
|
agree: '同意',
|
||||||
reject: '驳回',
|
reject: '驳回',
|
||||||
|
countersign: '加签',
|
||||||
basicInformation: '基础信息',
|
basicInformation: '基础信息',
|
||||||
personalInformation: '人员信息',
|
personalInformation: '人员信息',
|
||||||
rangeOfApplication: '适用范围',
|
rangeOfApplication: '适用范围',
|
||||||
|
|||||||
+46
-3
@@ -125,7 +125,7 @@
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<!--转办选人-->
|
<!--转办选人-->
|
||||||
<user-select-modal ref="userSelectModal" check-required @change="continueTurnTo" />
|
<user-select-modal ref="userSelectModal" check-required @change="userSelectCallback" />
|
||||||
</internal-detail-page>
|
</internal-detail-page>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
@@ -247,7 +247,7 @@ export default {
|
|||||||
},
|
},
|
||||||
created () {
|
created () {
|
||||||
const { projectId, nodeId, taskName, snapshotId, isLook } = this.$route.query
|
const { projectId, nodeId, taskName, snapshotId, isLook } = this.$route.query
|
||||||
this.isLook = isLook
|
this.disabled = isLook === '1'
|
||||||
// 发起、草稿进来没有nodeId,就默认发起节点
|
// 发起、草稿进来没有nodeId,就默认发起节点
|
||||||
this.currentNodeId = nodeId || StandardInterpretationNodes.initiated.value
|
this.currentNodeId = nodeId || StandardInterpretationNodes.initiated.value
|
||||||
this.currentNodeName = taskName || StandardInterpretationNodes.initiated.text
|
this.currentNodeName = taskName || StandardInterpretationNodes.initiated.text
|
||||||
@@ -470,14 +470,57 @@ export default {
|
|||||||
}
|
}
|
||||||
return params
|
return params
|
||||||
},
|
},
|
||||||
|
/**
|
||||||
|
* 加签
|
||||||
|
*/
|
||||||
|
handleCountersign () {
|
||||||
|
this.selectUserType = '1'
|
||||||
|
this.$refs.userSelectModal.open()
|
||||||
|
},
|
||||||
/**
|
/**
|
||||||
* 转办弹框
|
* 转办弹框
|
||||||
*/
|
*/
|
||||||
handleTurnTo () {
|
handleTurnTo () {
|
||||||
|
this.selectUserType = '2'
|
||||||
this.$refs.userSelectModal.open()
|
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
|
if (this.loading) return
|
||||||
this.loading = true
|
this.loading = true
|
||||||
const params = {
|
const params = {
|
||||||
|
|||||||
Reference in New Issue
Block a user