|
|
@@ -1857,15 +1857,27 @@ const handleSubmitAudit = async () => {
|
|
|
approvalUserVisible.value = true
|
|
|
|
|
|
} else {
|
|
|
- let res = await UserApi.getApprovalDetail({}) // 判断是否有审批信息
|
|
|
+ // 确定审核人:使用当前用户,否则使用默认审核人
|
|
|
+ // const approveId = userStore.user.id
|
|
|
+ const approveId = 'b5369aeb73954430eef53a9c8b7586ee'
|
|
|
|
|
|
- if (res && res.approveUser) {
|
|
|
- form.value.recheckUser = res.approveUser
|
|
|
- }
|
|
|
-
|
|
|
- schemaFlag.value = 'audit'
|
|
|
- isShowAuditDialog.value = true
|
|
|
- // isShowReportAuditDialog.value = true
|
|
|
+ ElMessageBox.confirm('确定提交审核吗?', '提示', {
|
|
|
+ confirmButtonText: '确定',
|
|
|
+ cancelButtonText: '取消',
|
|
|
+ type: 'warning'
|
|
|
+ }).then(async () => {
|
|
|
+ const submitResult = await BoilerTaskOrderApi.submitReportAudit({
|
|
|
+ id: templateParams.value?.id,
|
|
|
+ approveId
|
|
|
+ })
|
|
|
+ if (submitResult) {
|
|
|
+ ElMessage.success('提交审核成功!')
|
|
|
+ selectNextItem([props.selectedItem])
|
|
|
+ emit('template-confirm')
|
|
|
+ }
|
|
|
+ }).catch(() => {
|
|
|
+ console.log('用户取消提交审核')
|
|
|
+ })
|
|
|
}
|
|
|
}
|
|
|
|