瀏覽代碼

长阳智慧校园 我的审批差旅审批 bug修改(没有指派审核人继续下一步)

新疆警官学校中职
lb01 2 年之前
父節點
當前提交
4235706c8b
共有 1 個文件被更改,包括 27 次插入9 次删除
  1. +27
    -9
      Learun.Framework.Ultimate V7/LearunApp-2.2.0/pages/nworkflow/myflow/sign.vue

+ 27
- 9
Learun.Framework.Ultimate V7/LearunApp-2.2.0/pages/nworkflow/myflow/sign.vue 查看文件

@@ -82,6 +82,7 @@ export default {
// 页面初始化
async init() {
this.taskParam = this.GET_PARAM()
console.log(this.taskParam)
this.type = this.taskParam.type
this.typeText = this.taskParam.type === 'sign' ? '加签' : '审核'

@@ -218,23 +219,40 @@ export default {
operationCode: this.taskParam.code,
}
const userList = await this.HTTP_GET('learun/adms/newwf/auditer', params, `获取审核人时发生错误`)
if (!userList) {
return
}
// if (!userList) {
// return
// }
if(Object.keys(userList).length==0){
console.log('为空')
const success = await this.HTTP_POST(
this.type === 'sign' ? 'learun/adms/newwf/sign' : 'learun/adms/newwf/audit',
postData,
`提交[${this.typeText}]时发生错误`
)
if (!success) {
return
}
this.EMIT('task-list-change')
this.NAV_BACK(2)
this.TOAST(`已成功提交${this.typeText}`, 'success')
}
let arr = Object.entries(userList)
this.reviewerListId = arr[0][0]
this.reviewerList = arr[0][1].map(item => {
return {
text: item.Name,
value: item.Id
}
})
return {
text: item.Name,
value: item.Id
}
})
this.submitPostData = postData
if(this.reviewerList.length>1){
this.modal = true
return
}
}
}

const success = await this.HTTP_POST(


Loading…
取消
儲存