From 841873812c954a70509776ed605fd38f73cfd7e2 Mon Sep 17 00:00:00 2001 From: lideqin <694785430@qq.com> Date: Thu, 14 Mar 2024 09:42:25 +0800 Subject: [PATCH] =?UTF-8?q?[update]=20=E4=BC=9A=E5=91=98=E7=AE=A1=E7=90=86?= =?UTF-8?q?-=E6=A0=87=E5=8D=8F=E4=BC=9A=E8=AE=AE=E6=8A=A5=E5=90=8D?= =?UTF-8?q?=E4=BF=A1=E6=81=AF=E7=BB=B4=E6=8A=A4=E8=81=94=E8=B0=83?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../StardsMemberProjectMeetingApplyInfo.vue | 39 +++++++++++++++---- 1 file changed, 31 insertions(+), 8 deletions(-) diff --git a/src/views/incomePayments/memberManage/StardsMemberProjectMeetingApplyInfo.vue b/src/views/incomePayments/memberManage/StardsMemberProjectMeetingApplyInfo.vue index 116fe56..f37ed2b 100644 --- a/src/views/incomePayments/memberManage/StardsMemberProjectMeetingApplyInfo.vue +++ b/src/views/incomePayments/memberManage/StardsMemberProjectMeetingApplyInfo.vue @@ -181,6 +181,7 @@ import PageHeaderTitle from '@/components/layouts/PageHeaderTitle' import JYearDate from '@/components/jero/JYearDate' import StatusSlot from '@/components/tools/StatusSlot' import { formatMoney } from '@/utils/formatMoney' +import { getMeetInfoById } from '@/api/incomeMeetingApi' export default { name: 'StardsMemberProjectMeetingApplyInfo', @@ -313,7 +314,9 @@ export default { disableMixinCreated: true, url: { list: '/meeting/standardsMeetingSituation/standardPage', - exportXlsUrl: '/meeting/standardsMeetingSituation/exportStandardXls' + exportXlsUrl: '/meeting/standardsMeetingSituation/exportStandardXls', + delete: '/meeting/standardsMeetingSituation/delete', + deleteBatch: '/meeting/standardsMeetingSituation/deleteBatch' } } }, @@ -355,13 +358,33 @@ export default { * 编辑参会人 * */ handleEdit(record) { - this.$router.push({ - path: '/incomePayments/meetManage/SignUpInfoEdit', - query: { - id: record.id, - meetingId: record.meetingId, - meetingType: record.tbMeetingType, - costBool: this.meetingCostBool + let meetingCostBool + getMeetInfoById({id: record.meetingId}).then(res => { + if (res.success) { + const currentMeetingInfo = Object.assign({}, res.result) + let vipCost = currentMeetingInfo.meetingCostsVip + // 判断标协会员的费用是否是0 + let flagVip = vipCost === 0 || vipCost === '0.00' + let cost = currentMeetingInfo.meetingCosts + // 判断普通会员的费用是否是0 + let flag = cost === 0 || cost === '0.00' + if (flag && flagVip) { + // 说明会议费用为0 + meetingCostBool = true + } else { + meetingCostBool = false + } + this.$router.push({ + path: '/incomePayments/meetManage/SignUpInfoEdit', + query: { + id: record.id, + meetingId: record.meetingId, + meetingType: '2', + costBool: meetingCostBool + } + }) + } else { + this.$message.warning(res.message) } }) },