From e0b9244f94708e391cbd7c4e4d773b161d7546da Mon Sep 17 00:00:00 2001 From: fengchenchen Date: Tue, 10 May 2022 10:21:43 +0800 Subject: [PATCH] =?UTF-8?q?[update]=20-=20=E8=AF=81=E4=B9=A6=E7=BC=B4?= =?UTF-8?q?=E8=B4=B9-=E6=A0=B8=E5=AF=B9=E5=87=AD=E8=AF=81=E7=9A=84?= =?UTF-8?q?=E6=97=B6=E5=80=99=20=E5=85=88=E8=B0=83=E7=94=A8=E7=BC=96?= =?UTF-8?q?=E8=BE=91=E6=8E=A5=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/incomePaymentsApi.js | 7 +++++-- .../arriveAndInvoicing/modules/AuditProofModule.vue | 9 +++++---- 2 files changed, 10 insertions(+), 6 deletions(-) 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