Browse Source

在三位经理全部审批通过并进入计划员排产节点时,向计划员发送与下达时相同的邮件,并向试验负责人发送审批通过通知

ecss-tx
han\hanst 3 weeks ago
parent
commit
033ce1623b
  1. 10
      src/views/modules/erf/expApplyApproval.vue

10
src/views/modules/erf/expApplyApproval.vue

@ -1,5 +1,9 @@
<template> <template>
<div class="approval-container">
<div
class="approval-container"
v-loading="approvalLoading"
element-loading-text="审批提交中..."
element-loading-background="rgba(255, 255, 255, 0.7)">
<!-- 页面标题和统计 --> <!-- 页面标题和统计 -->
<div class="page-header"> <div class="page-header">
<div class="header-left"> <div class="header-left">
@ -633,6 +637,7 @@ export default {
cancelButtonText: '取消', cancelButtonText: '取消',
type: 'success' type: 'success'
}).then(() => { }).then(() => {
this.approvalLoading = true
// //
getCurrentNodeCode({ applyNo: row.applyNo }).then(({data}) => { getCurrentNodeCode({ applyNo: row.applyNo }).then(({data}) => {
if (data && data.code === 0) { if (data && data.code === 0) {
@ -645,7 +650,6 @@ export default {
operatorName: this.$store.state.user.userDisplay operatorName: this.$store.state.user.userDisplay
} }
this.approvalLoading = true
approveExpApply(approvalData).then(({data}) => { approveExpApply(approvalData).then(({data}) => {
this.approvalLoading = false this.approvalLoading = false
if (data && data.code === 0) { if (data && data.code === 0) {
@ -659,9 +663,11 @@ export default {
this.$message.error('审批异常') this.$message.error('审批异常')
}) })
} else { } else {
this.approvalLoading = false
this.$message.error('获取节点信息失败') this.$message.error('获取节点信息失败')
} }
}).catch(error => { }).catch(error => {
this.approvalLoading = false
this.$message.error('获取节点信息异常') this.$message.error('获取节点信息异常')
}) })
}).catch(() => { }).catch(() => {

Loading…
Cancel
Save