[需求]标协会员、证书不可来款;必须审核通过才能开票

This commit is contained in:
zhaoxiao
2021-12-23 14:35:37 +08:00
parent ae40db5ebb
commit 45b902aad5
3 changed files with 11 additions and 5 deletions
@@ -340,8 +340,8 @@ export default {
*/
invoicing(record) {
// 标协会员项目必须先到账后开票
if (record.projectType === 5 && record.inAccount !== 1) {
this.$message.warn('标协会员项目必须先到账才可开票。')
if ((Number(record.projectType) === 5 || Number(record.projectType) === 6) && record.paymentStatus !== 'completed') {
this.$message.warn(`标协${Number(record.projectType) === 5 ? '会员' : '证书'}项目必须先审核通过才可开票。`)
return
}
this.mailContactsId = record.mailContactsId
@@ -57,7 +57,7 @@ export default {
},
// 项目类型
projectType: {
type: Number,
type: [Number, String],
required: false,
default: null
},
@@ -52,10 +52,10 @@
<a-empty v-else></a-empty>
<template slot="footer">
<a-button type="primary" @click="handleAdd" v-preventclick>添加阶段</a-button>
<a-button type="primary" @click="handleAdd" v-preventclick v-if="Number(projectType) !== 5 && Number(projectType) !== 6">添加阶段</a-button>
</template>
<arrive-module ref="arriveModal" :project-id="projectId" @ok="addArriveOk" v-bind="$attrs"></arrive-module>
<arrive-module ref="arriveModal" :project-id="projectId" @ok="addArriveOk" v-bind="$attrs" :project-type="projectType"></arrive-module>
<!-- 缴费凭证预览-->
<preview-img-modal ref="previewImg"></preview-img-modal>
@@ -81,6 +81,12 @@ export default {
type: Boolean,
required: false,
default: false
},
// 项目类型,标协会员、证书项目不可来款,来款的添加阶段按钮隐藏
projectType: {
type: [Number, String],
required: false,
default: null
}
},
data() {