60778e70 by zhangmeng

保险

1 parent f8237179
......@@ -481,7 +481,7 @@ function submitForm(n) {
function commit() {
if (language.value == 0 && insuranceFlag.value == 2 && checked.value == '0') {
ElMessageBox.confirm(language.value == 0 ? '你是否同意赛事帮忙购买保险?' : 'Do you agree to have the event organizer help purchase insurance?',
ElMessageBox.confirm(language.value == 0 ? '你是否同意赛事帮忙购买保险?' : 'Do you agree to have the event organizer help purchase insurance?',
language.value == 0 ? '提示' : 'Tip', {
confirmButtonText: language.value == 0 ? '是' : 'Yes',
cancelButtonText: language.value == 0 ? '否,进入下一步' : 'NO,Go Next',
......
......@@ -437,7 +437,7 @@ function submitForm() {
type: 'warning'
})
} else if (language.value == 0 && insuranceFlag.value == '2' && checked.value == 0) {
ElMessageBox.confirm(language.value == 0 ? '你是否同意赛事帮忙购买保险?' : 'Do you agree to have the event organizer help purchase insurance?',
ElMessageBox.confirm(language.value == 0 ? '你是否同意赛事帮忙购买保险?' : 'Do you agree to have the event organizer help purchase insurance?',
language.value == 0 ? '提示' : 'Tip', {
confirmButtonText: language.value == 0 ? '是' : 'Yes',
cancelButtonText: language.value == 0 ? '否,进入下一步' : 'NO,Go Next',
......
......@@ -3,7 +3,9 @@
<div v-if="!errorBox" class="box">
<el-card :body-style="{ padding: '0px' }" class="mt20">
<div slot="header">
<div class="bg-lineg">{{ language == 0 ? '报名缴费清单' : 'Registration Payment List' }}</div>
<div class="bg-lineg">
{{ language == 0 ? '报名缴费清单' : 'Registration Payment List' }}
</div>
</div>
<match-info-row v-if="matchId" :match-id="matchId" />
<div v-if="isLogin">
......@@ -11,7 +13,8 @@
<coach-info-row v-if="groupId" :group-id="groupId" :match-id="matchId" />
<div v-if="user.utype=='1'&&myMemberTable.length>0" class="pd20">
<div class="leftboderTT">{{ language == 0 ? '随行人员清单' : 'List of accompanying personnel' }}
<div class="leftboderTT">
{{ language == 0 ? '随行人员清单' : 'List of accompanying personnel' }}
</div>
<div>
<el-table :data="myMemberTable" border class="mt20">
......@@ -41,7 +44,9 @@
</div>
</div>
<div v-if="signInfoList?.length>0||zuQuery.athName" class="pd20">
<div class="leftboderTT">{{ language == 0 ? '参赛人员保险费' : 'Participant Insurance Fee' }}
<div class="leftboderTT">
<!-- {{ language == 0 ? '' + '参赛人员保险费' : 'Participant Insurance Fee' }}-->
{{ language == 0 ? '' + '参赛人员' : 'Participant' }}
<div class="fr">
<el-input
v-model="zuQuery.athName" :prefix-icon="Search" clearable
......@@ -51,12 +56,18 @@
</div>
<!-- 人员列表-->
<sign-info-table
v-if="matchId" :has-action="false" :list="signInfoList" :match-id="matchId"
:show-summary="true" :total="insuranceFeeTotal" class="mt20"
v-if="matchId"
:has-action="false"
:list="signInfoList"
:match-id="matchId"
:show-summary="buy==1"
:total="insuranceFeeTotal"
class="mt20"
/>
</div>
<div v-if="zuTableList?.length>0||zuQuery.groName" class="pd20">
<div class="leftboderTT">{{ language == 0 ? '参赛设项服务费' : 'Registration Fee for Event Entry' }}
<div class="leftboderTT">
{{ language == 0 ? '参赛设项服务费' : 'Registration Fee for Event Entry' }}
<div class="fr">
<el-input
v-model="zuQuery.groName" :prefix-icon="Search" clearable
......@@ -65,7 +76,10 @@
</div>
</div>
<zu-table
:has-action="false" :list="zuTableList" :show-summary="true" :total="serviceFeeTotal"
:has-action="false"
:list="zuTableList"
:show-summary="true"
:total="serviceFeeTotal"
class="mt20"
/>
</div>
......@@ -96,12 +110,13 @@
<div v-if="signInfoList?.length>0" class="item"><label>{{
language == 0 ? '参赛服务费' : 'REGISTRATION FEE'
}}:</label><span>{{ language == 0 ? '¥' : '€' }}{{ serviceFeeTotal }}</span></div>
<div v-if="zuTableList?.length>0" class="item"><label>{{
<div v-if="zuTableList?.length>0 &&buy!='0'" class="item"><label>{{
language == 0 ? '保险费' : 'INSURANCE'
}}:</label><span>{{ language == 0 ? '¥' : '€' }}{{ insuranceFeeTotal }}</span></div>
<div class="item"><label>{{ language == 0 ? '费用总计' : 'Total Cost' }}:</label><span
class="size26"
>{{ language == 0 ? '¥' : '€' }}{{ form.totalFee }}</span></div>
<div class="item">
<label>{{ language == 0 ? '费用总计' : 'Total Cost' }}:</label>
<span class="size26">{{ language == 0 ? '¥' : '€' }}{{ form.totalFee }}</span>
</div>
</div>
</el-col>
</el-row>
......@@ -162,7 +177,9 @@
</el-row>
</el-card>
<el-card v-if="form.auditStatus=='2'&&form.payStatus=='0'&&Number(form.totalFee)>0" class="mb60">
<div class="leftboderTT">{{ language == 0 ? '选择支付方式' : 'Choose payment method' }}</div>
<div class="leftboderTT">
{{ language == 0 ? '选择支付方式' : 'Choose payment method' }}
</div>
<div class="mt20">
<el-radio-group v-model="payType" @change="changePaytype">
<!-- 0 线下 1 支付宝 2 微信 3 paypal-->
......@@ -291,6 +308,7 @@
<div v-if="payType == '3'">
<table cellpadding="0" cellspacing="0" class="table-border table">
<tbody>
<tr>
<th class="head" colspan="2">
{{ language == 0 ? '线下缴费的收款信息' : 'Offline Payment Collection Information' }}
......@@ -358,6 +376,8 @@
<span v-else class="text-danger size12">*You can confirm with the contact person by phone after uploading the remittance form. The specific payment results can be viewed in the My Registration section of the personal center to check the progress</span>
</td>
</tr>
</tbody>
</table>
<div class="text-center">
......@@ -432,7 +452,9 @@
</el-form-item>
</div>
<div class="tip mt20">
<label>{{ language == 0 ? '开电子收据须知' : 'Receipt notice' }}:</label>
<label>
{{ language == 0 ? '开电子收据须知' : 'Receipt notice' }}:
</label>
<div class="pd10">
{{ remark }}
</div>
......@@ -467,6 +489,7 @@ import { useStorage } from '@vueuse/core/index'
import { ElMessage, ElMessageBox } from 'element-plus'
import { getBaseInfoByActiveId, getReceipt } from '@/apiPc/booking'
const buy = ref(route.query.buy || '0')
const isLogin = ref(false)
const language = useStorage('language', 0)
const signInfoList = ref([])
......@@ -486,7 +509,8 @@ const insuranceFeeTotal = ref(0)
const serviceFeeTotal = ref(0)
const zuQuery = ref({
cptId: matchId.value,
groupId: groupId.value
groupId: groupId.value,
buy: route.query.buy || '0'
})
const user = useUserStore().user
const remark = ref('')
......@@ -521,7 +545,10 @@ if (useUserStore().user) {
}
function getData() {
return match.getMyOrderDetail({ orderId: orderId.value }).then(res => {
return match.getMyOrderDetail({
orderId: orderId.value,
buy: buy.value
}).then(res => {
totalFee.value = res.data.totalFee
form.value = res.data
form.value.payTypeArr = res.data.payType.split(',')
......@@ -560,6 +587,7 @@ function upRR() {
function getSignList() {
match.getMySignInfoList(zuQuery.value).then(res => {
console.log(res)
insuranceFeeTotal.value = 0
serviceFeeTotal.value = 0
signInfoList.value = res.data?.singleData || []
......@@ -571,6 +599,7 @@ function getSignList() {
serviceFeeTotal.value = serviceFeeTotal.value + Number(z.project.serviceFee)
}
}).catch(err => {
console.log(err)
if (isLogin.value) {
router.push({ name: 'myMatch' })
}
......@@ -740,6 +769,7 @@ function downloadAndSend() {
showSJ()
})
}).catch(err => {
console.log(err)
loading.value = false
})
}
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!