[update] - 证书缴费-核对凭证的时候 先调用编辑接口

This commit is contained in:
fengchenchen
2022-05-10 10:21:43 +08:00
parent 4372760bbc
commit e0b9244f94
2 changed files with 10 additions and 6 deletions
+5 -2
View File
@@ -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
}
@@ -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