[update 标准解读流程] 加签按钮(没有接口)

This commit is contained in:
danshihao
2024-07-12 20:49:10 +08:00
parent 9ad65220ea
commit c499a18741
3 changed files with 48 additions and 3 deletions
+1
View File
@@ -150,6 +150,7 @@ module.exports = {
turnTo: 'Turn To',
agree: 'agree',
reject: 'Reject',
countersign: 'Countersign',
basicInformation: 'Basic Information',
personalInformation: 'Personnel Information',
finishDate: 'Finish Date',
+1
View File
@@ -152,6 +152,7 @@ module.exports = {
turnTo: '转办',
agree: '同意',
reject: '驳回',
countersign: '加签',
basicInformation: '基础信息',
personalInformation: '人员信息',
rangeOfApplication: '适用范围',
@@ -125,7 +125,7 @@
</div>
<!--转办选人-->
<user-select-modal ref="userSelectModal" check-required @change="continueTurnTo" />
<user-select-modal ref="userSelectModal" check-required @change="userSelectCallback" />
</internal-detail-page>
</template>
@@ -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 = {