update 工作组催款邮件发送提示

This commit is contained in:
zhaoxiao
2022-05-05 14:58:55 +08:00
parent efcf9a9cb8
commit 87d76c5de1
@@ -168,6 +168,8 @@
<working-group-member-unit-module ref="modalForm" @ok="modalFormOk"></working-group-member-unit-module>
<working-group-member-set-charge-notice ref="setChargeNotic"
@ok="modalFormOk"></working-group-member-set-charge-notice>
<email-error-msg-modal ref="emailError"></email-error-msg-modal>
</div>
</template>
@@ -183,6 +185,7 @@ import WorkingGroupMemberSetChargeNotice from './modules/WorkingGroupMemberSetCh
import Vue from 'vue'
import { ACCESS_TOKEN } from '../../store/mutation-types'
import PreviewFile from '../../components/jero/PreviewFile'
import EmailErrorMsgModal from './modules/EmailErrorMsgModal'
// eslint-disable-next-line no-undef,no-unused-vars
const Base64 = require('js-base64').Base64
@@ -196,7 +199,8 @@ export default {
ProjectDetailModal,
WorkingGroupMemberUnitModule,
WorkingGroupMemberSetChargeNotice,
PreviewFile
PreviewFile,
EmailErrorMsgModal
},
mixins: [JeroListMixin],
computed: {
@@ -483,6 +487,13 @@ export default {
dunningReminder(param).then((res) => {
if (res.success) {
that.$message.success(res.message)
// 是否有邮件发送失败 有就给出提示信息
if (Array.isArray(res.result) && res.result.length > 0) {
// msgWarn(this,res.result,0)
that.$refs.emailError.open()
that.$refs.emailError.msgList = res.result
console.log(that.$refs.emailError.msgList, 'that.$refs.emailError.msgList ')
}
that.loadData()
that.onClearSelected()
} else {