diff --git a/src/api/incomePaymentsApi.js b/src/api/incomePaymentsApi.js index dfe1caa..9fedd24 100644 --- a/src/api/incomePaymentsApi.js +++ b/src/api/incomePaymentsApi.js @@ -111,8 +111,10 @@ const updateInternalEnterprise = (param) => postAction('/company/payCompanyManag // 判断当前企业是否是内部企业 const judgeInternalEnterprise = (param) => getAction('/company/payCompanyManagement/getInternalEnterprise', param) -// 更新会员系统 会员缴费、证书缴费的发票信息 +// 更新会员系统 会员缴费的发票信息 const incomingUpdatePayment = (param) => postAction('/member/tbMemberProjectSubitem/incomingUpdatePayment', param) +// 更新会员系统 证书缴费的发票信息 +const incomingUpdateCertificate = (param) => postAction('/member/tbCertificatePayment/incomingUpdateCertificate', param) export { getWorkingGroupById, @@ -171,5 +173,6 @@ export { updateInternalEnterprise, judgeInternalEnterprise, - incomingUpdatePayment + incomingUpdatePayment, + incomingUpdateCertificate } diff --git a/src/views/financialManagement/arriveAndInvoicing/modules/AuditProofModule.vue b/src/views/financialManagement/arriveAndInvoicing/modules/AuditProofModule.vue index ed6a2b8..bc7981c 100644 --- a/src/views/financialManagement/arriveAndInvoicing/modules/AuditProofModule.vue +++ b/src/views/financialManagement/arriveAndInvoicing/modules/AuditProofModule.vue @@ -185,7 +185,7 @@ import pick from 'lodash.pick' import { postAction } from '../../../../api/manage' import Vue from 'vue' import { USER_INFO } from '../../../../store/mutation-types' -import { getLastProofInfo, getStanderMemberLastProofInfo, getCertificateLastProofInfo, incomingUpdatePayment } from '../../../../api/incomePaymentsApi' +import { getLastProofInfo, getStanderMemberLastProofInfo, getCertificateLastProofInfo, incomingUpdatePayment, incomingUpdateCertificate } from '../../../../api/incomePaymentsApi' import PreviewFile from '../../../../components/jero/PreviewFile.vue' import PreviewImgModal from '@/components/PreviewImgModal' @@ -379,10 +379,11 @@ export default { } }, - updateMemberPaymentInfo(params) { + updateMemberPaymentInfo(params, projectType) { return new Promise(resolve => { + let request = projectType === 5 && incomingUpdatePayment || incomingUpdateCertificate let isSuccess = false - incomingUpdatePayment(params).then(res => { + request(params).then(res => { if(res.success) { isSuccess = true } else { @@ -410,7 +411,7 @@ export default { console.log(formData) // 标协会员缴费、证书缴费 需要先调用 编辑的接口,编辑成功后在调用审核的接口 if(this.proofInfo.projectType + '' === '5' || this.proofInfo.projectType + '' === '6') { - let updateResult = await this.updateMemberPaymentInfo(formData) + let updateResult = await this.updateMemberPaymentInfo(formData, Number(this.proofInfo.projectType)) if(!updateResult) { setTimeout(() => { this.confirmLoading = false