b96f8beb by 杨炀

隐藏 :接送机登记、邀请函

add :背号查询
1 parent c32ed264
<?xml version="1.0" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg fill="#bec3c6" t="1720521921471" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="8890" width="30" height="30" xmlns:xlink="http://www.w3.org/1999/xlink"><path d="M775.1168 100.9664H272.4352c-70.4512 0-127.5392 57.088-127.5392 127.5392v610.048c0 35.8912 38.8608 58.368 69.9904 40.4992l108.544-62.3616a46.7456 46.7456 0 0 1 54.3744 5.632L493.056 925.184a46.67904 46.67904 0 0 0 62.1056 0.0512l116.3776-103.5264a46.72512 46.72512 0 0 1 54.5792-5.4272l106.24 62.0032c31.1296 18.176 70.2464-4.3008 70.2464-40.3456V228.5056c0.0512-70.4-57.0368-127.5392-127.488-127.5392z m-133.9392 448.0512a29.8496 29.8496 0 1 1 0 59.6992h-87.5008v53.8624a29.8496 29.8496 0 1 1-59.6992 0V608.768h-87.552a29.8496 29.8496 0 1 1 0-59.6992h87.5008v-36.4544H406.4256a29.8496 29.8496 0 1 1 0-59.6992h58.9312l-77.312-122.5216a29.9008 29.9008 0 0 1 9.3184-41.216 29.9008 29.9008 0 0 1 41.216 9.3184l84.736 134.2464L609.024 296.96c8.8064-13.9264 27.2896-18.1248 41.216-9.3184 13.9264 8.8064 18.1248 27.2896 9.3184 41.216l-78.336 123.9552h59.9552a29.8496 29.8496 0 1 1 0 59.6992h-87.5008v36.4544h87.5008z" p-id="8891"></path></svg>
\ No newline at end of file
<?xml version="1.0" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg fill="#ffffff" t="1720521921471" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="8890" width="30" height="30" xmlns:xlink="http://www.w3.org/1999/xlink"><path d="M775.1168 100.9664H272.4352c-70.4512 0-127.5392 57.088-127.5392 127.5392v610.048c0 35.8912 38.8608 58.368 69.9904 40.4992l108.544-62.3616a46.7456 46.7456 0 0 1 54.3744 5.632L493.056 925.184a46.67904 46.67904 0 0 0 62.1056 0.0512l116.3776-103.5264a46.72512 46.72512 0 0 1 54.5792-5.4272l106.24 62.0032c31.1296 18.176 70.2464-4.3008 70.2464-40.3456V228.5056c0.0512-70.4-57.0368-127.5392-127.488-127.5392z m-133.9392 448.0512a29.8496 29.8496 0 1 1 0 59.6992h-87.5008v53.8624a29.8496 29.8496 0 1 1-59.6992 0V608.768h-87.552a29.8496 29.8496 0 1 1 0-59.6992h87.5008v-36.4544H406.4256a29.8496 29.8496 0 1 1 0-59.6992h58.9312l-77.312-122.5216a29.9008 29.9008 0 0 1 9.3184-41.216 29.9008 29.9008 0 0 1 41.216 9.3184l84.736 134.2464L609.024 296.96c8.8064-13.9264 27.2896-18.1248 41.216-9.3184 13.9264 8.8064 18.1248 27.2896 9.3184 41.216l-78.336 123.9552h59.9552a29.8496 29.8496 0 1 1 0 59.6992h-87.5008v36.4544h87.5008z" p-id="8891"></path></svg>
\ No newline at end of file
......@@ -140,6 +140,13 @@ export function getCanInvoiceBills(query) {
params: query
})
}
export function getCanInvoiceBm(query) {
return request({
url: `/league/signOrder/getMyPayedCptOrder`,
method: 'get',
params: query
})
}
export function cancelOrder(orderId) {
return request({
// url: `/logex/norder/unSubscribeOrderBack/${orderId}`,
......
......@@ -112,7 +112,13 @@ export function addPickup(data) {
data
})
}
export function getBackNumber(qy) {
return request({
url: `/league/backNumber/query`,
method: 'get',
params: qy
})
}
......
......@@ -120,12 +120,12 @@ const menus = ref([
picUrl1: '/img/nav_30.png',
picUrl2: '/img/nav_30_dwn.png',
isActive: false
}
},
// {
// name: language.value==0?'电子发票':'System messages',
// name: language.value==0?'电子发票':'Electronic invoice',
// routeName: 'myKP',
// picUrl1: '/img/nav_30.png',
// picUrl2: '/img/nav_30_dwn.png',
// picUrl1: '/img/fp.svg',
// picUrl2: '/img/fp_dwn.svg',
// isActive: false
// }
])
......
<template>
<div>
<el-card :body-style="{'padding':'10px 0 0'}">
<el-card :body-style="{'padding':'10px 0 0'}" class="mb60">
<!-- <div class="indexTitle">-->
<!-- <h3 class="leftboderTT">{{ language==0?'电子发票':'E-invoice' }}-->
<!-- </h3>-->
......@@ -16,6 +16,9 @@
</el-tabs>
<el-empty :image="`/img/order_no.png`" :image-size="228" v-if="list?.length == 0"/>
<div v-if="activeName=='5'">
<!-- languageSource=='100'-->
</div>
<div class="pd20">
<div v-for="b in list" class="item">
<div class="title">
......@@ -63,19 +66,19 @@
</el-col>
<el-col :lg="6" :md="16" :sm="16" :xs="16">
<div class="text-right">
<el-button type="primary" plain round v-if="b.isInvoice == '0'&&!b.invoiceId" @click.stop="gokp(b)">
<el-button type="primary" plain round v-if="b.isInvoice == '0'&&!b.invoiceId&&b.paymentType!='3'" @click.stop="gokp(b)">
{{ language == 0 ? '开发票' : 'Edit' }}
</el-button>
<el-button type="primary" plain round v-if="b.isInvoice == '0'&&b.invoiceId" @click.stop="editkp(b)">
<el-button type="primary" plain round v-if="b.isInvoice == '0'&&b.invoiceId&&b.paymentType!='3'" @click.stop="editkp(b)">
{{ language == 0 ? '重开发票' : 'Edit' }}
</el-button>
<el-button type="primary" plain round v-if="b.invoiceId"
<el-button type="primary" plain round v-if="b.invoiceId&&b.paymentType!='3'"
@click.stop="showDetail(b)">{{ language == 0 ? '查看发票' : 'Detail' }}
</el-button>
<el-button type="primary" v-if="b.isInvoice == '0'&&!b.invoiceId" plain round @click.stop="goSj(b)">
<el-button type="primary" v-if="b.isInvoice == '0'&&!b.invoiceId&&b.paymentType=='3'" plain round @click.stop="goSj(b)">
{{ language == 0 ? '开收据' : 'Edit' }}
</el-button>
<el-button type="primary" plain round v-if="b.invoiceId"
<el-button type="primary" plain round v-if="b.invoiceId&&b.paymentType=='3'"
@click.stop="showSJ(b)">{{ language == 0 ? '查看收据' : 'Detail' }}
</el-button>
</div>
......@@ -112,7 +115,7 @@
<script setup>
import {useStorage} from "@vueuse/core/index";
import useUserStore from "@/store/modules/user";
import {getCanInvoiceBills, getInvoiceByActiveId} from "@/apiPc/booking";
import {getCanInvoiceBills, getCanInvoiceBm, getInvoiceByActiveId} from "@/apiPc/booking";
import {onMounted, ref} from "vue";
const router = useRouter()
const route = useRoute()
......@@ -130,13 +133,19 @@ onMounted(() => {
getList()
})
const getList = () => {
getCanInvoiceBills(query.value).then(res=>{
list.value = res.rows
if(query.value.orderType=='5'){
getCanInvoiceBm().then(res=>{
list.value = res.rows
})
}else {
getCanInvoiceBills(query.value).then(res=>{
list.value = res.rows
for (let b of list.value) {
b.messageObj = JSON.parse(b.message)
}
})
}
for (let b of list.value) {
b.messageObj = JSON.parse(b.message)
}
})
}
const handleClick = (e) => {
console.log(e.paneName)
......
<template>
<el-dialog
v-model="show" :close-on-click-modal="false" :title="language==0?'背号查询':'Back Number'" append-to-body
center class="pcloginpop"
close-icon="CircleClose" destroy-on-close
width="460px"
>
<div style="min-height: 300px">
<div class="flex mt30">
<el-input :placeholder="language==0?'输入会员号 / 姓名查询':'Enter WDSF MIN / Name to Query'" v-model="query" clearable
@enter="search" @blur="search" @empty="search"/>
<el-button @click="search" class="btn-lineG" style="color: #fff">{{
language == 0 ? '查询' : 'Search'
}}
</el-button>
</div>
<div v-if="list.length>0">
<div class="nowteamItem" v-for="(form, index) in list" :key="index">
<div class="info">
<div class="nowName text-center">
<span class="text-primary">{{ form.number }}</span>
</div>
<div>
<label>{{ language==0?'选手1':'Name1' }}</label>{{ form.maleName }}
<span v-if="form.maleWdsf"> - {{ form.maleWdsf }}</span>
</div>
<div>
<label>{{ language==0?'选手2':'Name2' }}</label>{{ form.femaleName }}
<span v-if="form.femaleWdsf"> - {{ form.femaleWdsf }}</span>
</div>
<div>
<label>{{ language==0?'代表队':'Represent' }}</label>
{{ form.groupName }}
</div>
<div v-if="form.zuInfo">
<label> {{ language==0?'组别':'Event' }}</label>{{ form.zuInfo }}
</div>
</div>
</div>
</div>
<div v-else>
<el-empty/>
</div>
</div>
</el-dialog>
</template>
<script setup>
import {ref} from "vue";
import {ElMessage} from "element-plus";
import {getBackNumber} from "@/apiPc/common";
import {useStorage} from "@vueuse/core/index";
const language = useStorage('language', 0)
const show = ref(false)
// const form = ref({})
const list = ref([])
const query = ref('')
const search = () => {
if (!query.value) {
ElMessage.warning(language.value == 0 ? '请输入会员号/姓名' : 'Please enter WDSF MIN / Name')
return
}
getBackNumber({query: query.value}).then(res => {
if (!res.data||res.data.length==0) {
list.value = []
//提示 '未找到结果,请重新查询'
ElMessage.warning(language.value == 0 ? '未找到结果,请重新查询' : 'No result')
return
}
list.value = res.data
})
}
const open = (param) => {
show.value = true
list.value = []
query.value = ''
}
defineExpose({
open
})
</script>
<style scoped lang="scss">
.nowteamItem {
width: 100%;border: 1px solid #c8c5ff; margin-top: 20px;
position: relative;border-radius: 4px;padding: 0 0 20px;
background: #FFFFFF;
box-sizing: border-box;
.info {
.nowName {
font-family: "DIN Alternate";
font-size: 60px;
font-weight: bold;
overflow: hidden;
display: block;
margin: 10px;
}
label {
text-align: right;
font-size: 14px;
padding-left: 7%
}
div {
font-size: 14px;
color: #333;
margin: 6px 0 0;
}
}
}
</style>
<template>
<div>
<index-Ch v-if="language ==0" @pop="openMaster" @pickup="openPickup"/>
<index-En v-else @pop="openMaster" @pickup="openPickup"/>
<index-Ch v-if="language ==0" @pop="openMaster" @pickup="openPickup" @backNumber="openBackNumber"/>
<index-En v-else @pop="openMaster" @pickup="openPickup" @backNumber="openBackNumber"/>
<div v-if="showgg" class="fixed_gg">
<!--天气-->
<el-icon class="cclose" @click.stop="showgg=false"><circle-close /></el-icon>
......@@ -63,7 +63,8 @@
<el-image :preview-src-list="['/img/code.jpg']" hide-on-click-modal="true" style="width: 120px;height: 120px;" src="/img/code.jpg"/>
</div>
<dialog-master-class ref="masterClassRef"/>
<pickup ref="pickupRef"></pickup>
<pick-up ref="pickupRef"></pick-up>
<back-number ref="backNumberRef"></back-number>
</div>
</template>
......@@ -73,7 +74,8 @@ import IndexCh from '/src/viewsPc/index'
import IndexEn from '/src/viewsPc/index_en'
import WeatherIcon from '@/viewsPc/components/weatherIcon'
import DialogMasterClass from '@/viewsPc/components/masterClass'
import pickup from '@/viewsPc/components/pickup'
import PickUp from '@/viewsPc/components/pickup'
import BackNumber from '@/viewsPc/components/querybackNumber'
import {useStorage} from "@vueuse/core/index";
import {ref} from "vue";
import {getWeather} from "@/apiPc/webSite";
......@@ -116,6 +118,14 @@ const openPickup= (params) => {
}
proxy.$refs['pickupRef'].open(obj)
}
const openBackNumber = (params) => {
console.log(params)
const obj = {
title:'背号查询',
cptId:params.cptId
}
proxy.$refs['backNumberRef'].open(obj)
}
</script>
<style scoped lang="scss">
......
......@@ -92,13 +92,8 @@
<download/>
</el-icon>
</a>
<!-- <el-button type="primary" @click="popMaster">青少年公益课</el-button>-->
<a class="zn-btn ml20 btn-q forPc" v-show="matchData?.id=='1778253367748993026'" @click="popMaster">青少年公益课报名</a>
<!-- <div>-->
<!-- <a class="ding" @click="handlePickup">接/送机服务</a>-->
<!-- </div>-->
<!-- <a class="zn-btn ml20 btn-q forPc" v-show="matchData?.id=='1778253367748993026'" @click="popMaster">青少年公益课报名</a>-->
<a class="zn-btn ml20 btn-q" v-show="matchData?.id=='1778253367748993026'" @click="backNumberSearch">背号查询</a>
</div>
</el-col>
<el-col :sm="24" :lg="14">
......@@ -379,7 +374,7 @@ const navigationPic = ref({
})
const router = useRouter()
const {proxy} = getCurrentInstance()
const emit = defineEmits(['pop','pickup'])
const emit = defineEmits(['pop','pickup','backNumber'])
const time = ref(0)
const personList = ref([
{ name: 'Wolfgang Eliasch', pp: '拉丁舞裁判长 奥地利', src: '/img/1.png' },
......@@ -500,7 +495,12 @@ const popMaster = () => {
}
emit('pop',params)
}
const backNumberSearch = () => {
var params = {
cptId:matchData.value.id
}
emit('backNumber',params)
}
const handlePickup=()=>{
const params={
cptId :matchData.value.id
......
......@@ -90,9 +90,10 @@
GUIDELINE
<el-icon><download /></el-icon>
</a>
<a class="zn-btn ml20 btn-q forPc" v-show="matchData?.id=='1778253367748993026'" style="font-size: 15px;margin-right: 20px" @click="popMaster">
Junior &Youth Camp REGISTER<el-icon><Edit /></el-icon>
</a>
<!-- <a class="zn-btn ml20 btn-q forPc" v-show="matchData?.id=='1778253367748993026'" style="font-size: 15px;margin-right: 20px" @click="popMaster">-->
<!-- Junior &Youth Camp REGISTER<el-icon><Edit /></el-icon>-->
<!-- </a>-->
<a class="zn-btn ml20 btn-q" v-show="matchData?.id=='1778253367748993026'" @click="backNumberSearch">Back Number</a>
<!-- <div>-->
<!-- <a class=" ding" style="font-size: 15px;margin-top: 10px" @click="handlePickup">Pick-up/drop-off service-->
<!-- </a>-->
......@@ -396,7 +397,7 @@ const navigationPic = ref({
})
const router = useRouter()
const { proxy } = getCurrentInstance()
const emit = defineEmits(['pop'])
const emit = defineEmits(['pop','backNumber'])
const time = ref(0)
const personList = ref([
......@@ -516,7 +517,12 @@ const popMaster = () => {
}
emit('pop',params)
}
const backNumberSearch = () => {
var params = {
cptId:matchData.value.id
}
emit('backNumber',params)
}
const handlePickup=()=>{
const params={
cptId :matchData.value.id
......
......@@ -287,10 +287,10 @@
</el-row>
</div>
<div class="fixed_gg_l" @click="applyInvitation" v-if="matchData.leagueId==0">
<img src="@/assets/logo/Invitation_c.png" v-if="language==0"/>
<img src="@/assets/logo/Invitation_e.png" v-else/>
</div>
<!-- <div class="fixed_gg_l" @click="applyInvitation" v-if="matchData.leagueId==0">-->
<!-- <img src="@/assets/logo/Invitation_c.png" v-if="language==0"/>-->
<!-- <img src="@/assets/logo/Invitation_e.png" v-else/>-->
<!-- </div>-->
<affix-invitation ref="dialogInvitationRef"/>
<div style="height: 50px"></div>
......@@ -318,7 +318,7 @@
</div>
</el-dialog>
<a class="ding" @click="openPickup" v-if="matchData.leagueId==0">{{ language==0?'接 / 送机服务':'Pick-up/drop-off service' }}</a>
<!-- <a class="ding" @click="openPickup" v-if="matchData.leagueId==0">{{ language==0?'接 / 送机服务':'Pick-up/drop-off service' }}</a>-->
<pickup ref="pickupRef"></pickup>
</div>
</template>
......
<template>
<el-dialog v-model="show" :title="language==0?'快捷注册':'Quick Login'" close-icon="CircleClose"
width="600" :append-to-body="true" destroy-on-close @close="close">
<div class="pt30">
<el-form class="d-form" size="large" :label-width="language==0?120:150" style="max-width: 500px;margin: auto">
width="480" :append-to-body="true" destroy-on-close @close="close">
<div>
<el-form class="d-form" size="large" :label-width="language==0?80:150" :label-position="language==0?'right':'top'" style="max-width: 500px;margin: auto">
<el-form-item :label="language==0?'邮箱':'E-mail'" required>
<el-input type="text" v-model="form.account" @change="resetCode" @blur="verifyCode"
/>
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!