【开发】增加会员缴费与证书缴费撤回

This commit is contained in:
fengachen
2022-07-13 17:53:13 +08:00
parent 298f3996ed
commit 48522a2601
4 changed files with 96 additions and 35 deletions
+1 -1
View File
@@ -23,7 +23,7 @@ export function httpAction(url,parameter,method) {
export function putAction(url,parameter) { export function putAction(url,parameter) {
return axios({ return axios({
url: url, url: url,
method:'post', method:'put',
data: parameter data: parameter
}) })
} }
+7 -1
View File
@@ -3,7 +3,7 @@ import Vue from 'vue'
// eslint-disable-next-line no-unused-vars // eslint-disable-next-line no-unused-vars
import { getAction as incomeGetAction, postAction as incomePostAction } from '@api/manage' import { getAction as incomeGetAction, postAction as incomePostAction } from '@api/manage'
// eslint-disable-next-line no-unused-vars // eslint-disable-next-line no-unused-vars
import { getAction, postAction } from '@api/memberManage' import { getAction, postAction,putAction } from '@api/memberManage'
import { ACCESS_TOKEN } from '@/store/mutation-types' import { ACCESS_TOKEN } from '@/store/mutation-types'
@@ -63,6 +63,8 @@ const getCertificateByMemberId = (params) => getAction('/vinCertificate/vinCerti
const getMemberInfoById = (params) => getAction('/memberInfo/memberInfo/queryById', params) const getMemberInfoById = (params) => getAction('/memberInfo/memberInfo/queryById', params)
const getCheckInfo = (params) => getAction('/paymentInfo/paymentCheckinfo/queryByPaymentId', params) const getCheckInfo = (params) => getAction('/paymentInfo/paymentCheckinfo/queryByPaymentId', params)
const getByMemberTime = (params) => getAction('/threshold/thresholdSetting/getByMemberTime', params) const getByMemberTime = (params) => getAction('/threshold/thresholdSetting/getByMemberTime', params)
// 撤回会员缴费
const withDrawPayment = (params) => putAction('/paymentInfo/withdraw', params)
// 判断会员是否有未审核的缴费 // 判断会员是否有未审核的缴费
const judgeMemberNotApprove = (params) => getAction('/paymentInfo/existNotApproved', params) const judgeMemberNotApprove = (params) => getAction('/paymentInfo/existNotApproved', params)
// 会员下载缴费通知单 // 会员下载缴费通知单
@@ -71,6 +73,8 @@ const downNewestNotice = (params) => getAction('/approvalDocumentNumber/approval
/****证书缴费 列表页所用接口-开始 ****/ /****证书缴费 列表页所用接口-开始 ****/
// 证书缴费 // 证书缴费
const getCertificateById = (params) => getAction('/vinCertificate/vinCertificate/getCertificateById', params) const getCertificateById = (params) => getAction('/vinCertificate/vinCertificate/getCertificateById', params)
// 撤回收费证书
const withDrawChargeCertificate = (params) => postAction('/vinCertificate/vinCertificate/withdrawChargeCertificate', params)
/****证书缴费 列表页所用接口-结束 ****/ /****证书缴费 列表页所用接口-结束 ****/
@@ -92,6 +96,7 @@ export {
ajaxGetDictItems, ajaxGetDictItems,
getLastPaymentByMemberId, getLastPaymentByMemberId,
getCertificateByMemberId, getCertificateByMemberId,
withDrawPayment,
getMemberInfoById, getMemberInfoById,
getCheckInfo, getCheckInfo,
@@ -99,6 +104,7 @@ export {
judgeMemberNotApprove, judgeMemberNotApprove,
downNewestNotice, downNewestNotice,
getCertificateById, getCertificateById,
withDrawChargeCertificate,
application, application,
determineOrCancel, determineOrCancel,
@@ -109,6 +109,8 @@
</template> </template>
<span slot="action" class="action-span-cell" slot-scope="text, record"> <span slot="action" class="action-span-cell" slot-scope="text, record">
<!-- 待支付 不显示 -->
<a v-if="record.certificateStatus !== '0' " @click="handleWithdraw(record)">撤回</a>
<a @click="handleDetail(record)">查看</a> <a @click="handleDetail(record)">查看</a>
<a v-show="record.certificateStatus == 4"> <a v-show="record.certificateStatus == 4">
<a href="javascript:;" @click="(record.certificateStatus == 4) && bindMember(record)">绑定会员</a> <a href="javascript:;" @click="(record.certificateStatus == 4) && bindMember(record)">绑定会员</a>
@@ -215,6 +217,7 @@ import { RangeDateMixin } from '@/mixins/RangeDateMixin'
import JDictSelectTag from '../../components/standardsAssociation/JDictSelectTag' import JDictSelectTag from '../../components/standardsAssociation/JDictSelectTag'
// eslint-disable-next-line no-unused-vars // eslint-disable-next-line no-unused-vars
import {downloadFile, getAction, getFileAccessHttpUrl} from '@/api/memberManage' import {downloadFile, getAction, getFileAccessHttpUrl} from '@/api/memberManage'
import {withDrawChargeCertificate} from '@api/standardsAssociationApi'
import {CertificateModalityEnums, CertificateStatusEnums, ChargeTypeEnums} from '../../enums/memberEnums' import {CertificateModalityEnums, CertificateStatusEnums, ChargeTypeEnums} from '../../enums/memberEnums'
import CheckCertificateModel from '@views/standardsAssociation/model/CheckCertificateModel' import CheckCertificateModel from '@views/standardsAssociation/model/CheckCertificateModel'
import BindMemberModel from '@views/standardsAssociation/model/BindMemberModel' import BindMemberModel from '@views/standardsAssociation/model/BindMemberModel'
@@ -227,6 +230,7 @@ import FreeCertificateEditModel from '@views/standardsAssociation/model/FreeCert
import ChargeCertificateEditModel from '@views/standardsAssociation/model/ChargeCertificateEditModel' import ChargeCertificateEditModel from '@views/standardsAssociation/model/ChargeCertificateEditModel'
import RenewChargeEditModel from '@views/standardsAssociation/model/RenewChargeEditModel' import RenewChargeEditModel from '@views/standardsAssociation/model/RenewChargeEditModel'
import FreeCertificateReplaceEditModel from '@views/standardsAssociation/model/FreeCertificateReplaceEditModel' import FreeCertificateReplaceEditModel from '@views/standardsAssociation/model/FreeCertificateReplaceEditModel'
export default { export default {
name: 'CertificateManagement', name: 'CertificateManagement',
mixins: [JeroListMixin, mixinDevice, RangeDateMixin, StandardListMixin], mixins: [JeroListMixin, mixinDevice, RangeDateMixin, StandardListMixin],
@@ -399,6 +403,31 @@ export default {
} }
}, },
methods: { methods: {
/**
* 撤回证书缴费
* */
handleWithdraw(record) {
const that = this
this.$confirm({
title: '确定撤回',
onOk() {
const param = {
id: record.id,
memberId: record.memberId,
certificateStatus: '2',
code: record.code
}
withDrawChargeCertificate(param).then(res => {
if (res.success) {
that.$message.success(res.message)
that.loadData()
} else {
that.$message.warning(res.message)
}
})
}
})
},
// 显示换证确认 窗口 // 显示换证确认 窗口
handleAffirm() { handleAffirm() {
this.$refs.replaceMentAffirmModelForm.title = '提交成功' this.$refs.replaceMentAffirmModelForm.title = '提交成功'
@@ -104,6 +104,8 @@
</template> </template>
<span slot="action" class="action-span-cell" slot-scope="text, record"> <span slot="action" class="action-span-cell" slot-scope="text, record">
<!--已支付显示 撤回-->
<a v-if="record.paymentStatus === 1 " @click="handleWithdraw(record)">撤回</a>
<a v-show="record.paymentStatus<1 ||record.paymentStatus==2" <a v-show="record.paymentStatus<1 ||record.paymentStatus==2"
@click="(record.paymentStatus<1 ||record.paymentStatus==2) && handleEdit(record)">编辑</a> @click="(record.paymentStatus<1 ||record.paymentStatus==2) && handleEdit(record)">编辑</a>
<a v-show="record.paymentStatus<1||record.paymentStatus==2"> <a v-show="record.paymentStatus<1||record.paymentStatus==2">
@@ -134,7 +136,7 @@ import PaymentInfoModal from './modules/PaymentInfoModal'
import JDictSelectTag from '@/components/standardsAssociation/JDictSelectTag.vue' import JDictSelectTag from '@/components/standardsAssociation/JDictSelectTag.vue'
import JDate from '@/components/tools/JDate.vue' import JDate from '@/components/tools/JDate.vue'
import { getMemberInfoById } from '@/api/standardsAssociationApi' import { getMemberInfoById,withDrawPayment } from '@/api/standardsAssociationApi'
import { RangeDateMixin } from '@/mixins/RangeDateMixin' import { RangeDateMixin } from '@/mixins/RangeDateMixin'
import { getAction, getFileAccessHttpUrl } from '@/api/memberManage' import { getAction, getFileAccessHttpUrl } from '@/api/memberManage'
@@ -188,6 +190,30 @@ export default {
methods: { methods: {
initDictConfig() { initDictConfig() {
}, },
/**
* 撤回会员缴费
* */
handleWithdraw(record) {
const that = this
this.$confirm({
title: '确定撤回',
onOk() {
const param = {
id: record.id,
memberId: record.memberId,
paymentStatus: '1'
}
withDrawPayment(param).then(res => {
if (res.success) {
that.$message.success(res.message)
that.loadData()
} else {
that.$message.warning(res.message)
}
})
}
})
},
// 根据会员id获取会员信息 // 根据会员id获取会员信息
loadMember() { loadMember() {
getMemberInfoById({ id: this.userId }).then((res) => { getMemberInfoById({ id: this.userId }).then((res) => {