d793ca6b by 杨炀

no message

1 parent ce2e4083
...@@ -245,14 +245,17 @@ ...@@ -245,14 +245,17 @@
245 </div> 245 </div>
246 </el-col> 246 </el-col>
247 <el-col :lg="24"> 247 <el-col :lg="24">
248 <el-button round class="mt20 btn-lineG" size="large" v-if="form.viewStatus=='1'||form.viewStatus=='5'" type="primary" @click="exportPdf"> 248 <div class="text-center">
249 <el-icon><Upload /></el-icon> 249 <el-button round class="mt20 btn-lineG" size="large" v-if="(form.viewStatus=='1'||form.viewStatus=='5')&&type == 'hotel'" type="primary" @click="exportPdf">
250 {{ language==0?'导出酒店预订单':'Export PDF' }} 250 <el-icon><Upload /></el-icon>
251 </el-button> 251 {{ language==0?'导出酒店预订单':'Export PDF' }}
252 <el-button round class="mt20 btn-lineG" size="large" v-if="form.viewStatus=='1'||form.viewStatus=='5'" type="primary" 252 </el-button>
253 @click="exportPdf"> 253 <el-button round class="mt20 btn-lineG" size="large" v-if="(form.viewStatus=='1'||form.viewStatus=='5')&&(type=='makeUp'||type=='hotel')" type="primary"
254 {{ language==0?'下载收据':'Upload Invoice' }} 254 @click="downInvoice">
255 </el-button> 255 <el-icon><Download /></el-icon>
256 {{ language==0?'下载收据':'DownLoad Invoice' }}
257 </el-button>
258 </div>
256 </el-col> 259 </el-col>
257 </el-row> 260 </el-row>
258 </div> 261 </div>
...@@ -374,6 +377,24 @@ ...@@ -374,6 +377,24 @@
374 </el-result> 377 </el-result>
375 </div> 378 </div>
376 <Dialog ref="DialogRef" /> 379 <Dialog ref="DialogRef" />
380
381 <el-dialog :title="language==0?'开收据':'Issue a receipt'" v-model="showSJDialog" width="460px"
382 :close-on-click-modal="false" :close-on-press-escape="false">
383 <div class="flex">
384 <el-form-item :label="language==0?'开票人':'Name'">
385 <div class="flex">
386 <el-input v-model="lpName" :placeholder="language==0?'请输入开票人':'Please enter your name'"></el-input>
387 <el-button type="primary" @click="submitSJ">{{ language == 0 ? '提交并下载' : 'Submit' }}</el-button>
388 </div>
389 </el-form-item>
390 </div>
391 <div class="tip mt20" v-if="remark">
392 <label>{{ language == 0 ? '开电子收据须知' : 'Receipt notice' }}:</label>
393 <div class="pd10">
394 {{ remark }}
395 </div>
396 </div>
397 </el-dialog>
377 </div> 398 </div>
378 </template> 399 </template>
379 400
...@@ -400,10 +421,10 @@ const groupId = ref() ...@@ -400,10 +421,10 @@ const groupId = ref()
400 import useUserStore from "@/store/modules/user"; 421 import useUserStore from "@/store/modules/user";
401 import FileUpload from "@/components/FileUpload"; 422 import FileUpload from "@/components/FileUpload";
402 import {useStorage} from "@vueuse/core/index"; 423 import {useStorage} from "@vueuse/core/index";
403 import {ElMessage} from "element-plus"; 424 import {ElMessage, ElMessageBox} from "element-plus";
404 import { 425 import {
405 cancelOrder, 426 cancelOrder,
406 cancelOrder2, 427 cancelOrder2, getBaseInfoByActiveId,
407 getCarBilldetailbyId, 428 getCarBilldetailbyId,
408 getFoodBilldetailbyId, 429 getFoodBilldetailbyId,
409 getMealOrderInfoByLogex, getPhotoOrderInfo, getPhotoOrderInfoByLogex 430 getMealOrderInfoByLogex, getPhotoOrderInfo, getPhotoOrderInfoByLogex
...@@ -420,6 +441,10 @@ const formInfo=ref({}) ...@@ -420,6 +441,10 @@ const formInfo=ref({})
420 const type = ref('') 441 const type = ref('')
421 const errorBox = ref(false) 442 const errorBox = ref(false)
422 const hideconfirmbtn = ref(false) 443 const hideconfirmbtn = ref(false)
444 const remark = ref('')
445 const showSJDialog = ref(false)
446 const loading = ref(false)
447 const lpName = ref('')
423 448
424 const user = useUserStore().user 449 const user = useUserStore().user
425 if (useUserStore().user) { 450 if (useUserStore().user) {
...@@ -453,7 +478,9 @@ onMounted(() => { ...@@ -453,7 +478,9 @@ onMounted(() => {
453 break 478 break
454 } 479 }
455 } 480 }
456 481 if(route.query.matchId){
482 matchId.value = route.query.matchId
483 }
457 getData() 484 getData()
458 }) 485 })
459 486
...@@ -583,6 +610,7 @@ function MakeUpOrder(){ ...@@ -583,6 +610,7 @@ function MakeUpOrder(){
583 return booking.getMealOrderInfo({orderId: orderId.value}).then(res => { 610 return booking.getMealOrderInfo({orderId: orderId.value}).then(res => {
584 form.value=res.data 611 form.value=res.data
585 totalFee.value=language.value==0?form.value.total:form.value.totalEn 612 totalFee.value=language.value==0?form.value.total:form.value.totalEn
613 matchId.value = form.value.activeId
586 MakeUpIno() 614 MakeUpIno()
587 console.log(res) 615 console.log(res)
588 }).catch(err => { 616 }).catch(err => {
...@@ -590,7 +618,6 @@ function MakeUpOrder(){ ...@@ -590,7 +618,6 @@ function MakeUpOrder(){
590 errorBox.value = true 618 errorBox.value = true
591 }) 619 })
592 } 620 }
593
594 function MakeUpIno(){ 621 function MakeUpIno(){
595 booking.getMealOrderInfoByLogex({asmId: form.value.asmId}).then(res=>{ 622 booking.getMealOrderInfoByLogex({asmId: form.value.asmId}).then(res=>{
596 formInfo.value=res.data 623 formInfo.value=res.data
...@@ -670,6 +697,48 @@ function handleView(){ ...@@ -670,6 +697,48 @@ function handleView(){
670 proxy.$refs['DialogRef'].open(language.value==0? form.value.details:form.value.detailsEn) 697 proxy.$refs['DialogRef'].open(language.value==0? form.value.details:form.value.detailsEn)
671 } 698 }
672 699
700 function downInvoice() {
701 getremark()
702 if (form.value.receiptFlag == '0') {
703 showSJDialog.value = true
704 } else {
705 showSJ()
706 }
707 }
708
709 function getremark(){
710 getBaseInfoByActiveId(matchId.value).then(res => {
711 if (res.data) {
712 remark.value = res.data.remarks
713 }
714 })
715 }
716 function submitSJ() {
717 loading.value = true
718 ElMessageBox.confirm(language.value == 0 ? '提交后无法修改开票人,确认提交吗?' : 'Confirm to submit ?', {
719 confirmButtonText: language.value == 0 ? '确定' : 'Confirm',
720 cancelButtonText: language.value == 0 ? '取消' : 'Cancel',
721 type: 'warning'
722 }).then(() => {
723 showSJ()
724 })
725 }
726 const showSJ = () => {
727 // 查看电子收据预览信息
728 var obj = {
729 orderId: orderId.value,
730 type: 1
731 }
732 if (form.value.receiptFlag == '0') {
733 obj.receiptInfo = lpName.value
734 }
735 // 报名
736 proxy.download(`/ota/norder/getReceipt/${obj.orderId}`, {
737 ...obj
738 }, `Receipt_${new Date().getTime()}.pdf`)
739 showSJDialog.value = false
740 getData()
741 }
673 </script> 742 </script>
674 743
675 <style scoped lang="scss"> 744 <style scoped lang="scss">
......
...@@ -152,7 +152,8 @@ function goDetail(b) { ...@@ -152,7 +152,8 @@ function goDetail(b) {
152 name: 'bookingPay', 152 name: 'bookingPay',
153 query: { 153 query: {
154 orderId: b.id, 154 orderId: b.id,
155 orderType: b.orderType 155 orderType: b.orderType,
156 activeId:b.activeId
156 } 157 }
157 }) 158 })
158 } 159 }
......
1 <template> 1 <template>
2 <el-dialog 2 <el-dialog
3 v-model="show" :close-on-click-modal="false" :title="language==0?'背号查询':'Back Number'" append-to-body 3 v-model="show" :close-on-click-modal="false" :title="language==0?'背号查询':'Competition Number'" append-to-body
4 center class="pcloginpop" 4 center class="pcloginpop"
5 close-icon="CircleClose" destroy-on-close 5 close-icon="CircleClose" destroy-on-close
6 width="460px" 6 width="460px"
...@@ -8,8 +8,8 @@ ...@@ -8,8 +8,8 @@
8 <div style="min-height: 300px"> 8 <div style="min-height: 300px">
9 9
10 <div v-if="!type||type==''"> 10 <div v-if="!type||type==''">
11 <div @click="type='0'" class="rItem">个人查询</div> 11 <div @click="type='0'" class="rItem">{{ language == 0 ? '个人查询':'Personal Query' }}</div>
12 <div @click="type='1'" class="rItem">团队查询</div> 12 <div @click="type='1'" class="rItem">{{ language == 0 ? '团队查询':'Team Query' }}</div>
13 </div> 13 </div>
14 14
15 <div v-if="type=='0'"> 15 <div v-if="type=='0'">
...@@ -59,7 +59,7 @@ ...@@ -59,7 +59,7 @@
59 {{language == 0 ? '查询' : 'Search' }} 59 {{language == 0 ? '查询' : 'Search' }}
60 </el-button> 60 </el-button>
61 </div> 61 </div>
62 <span class="tip">*模糊查询</span> 62 <span class="tip">*{{ language == 0 ?'模糊查询':'Fuzzy query' }}</span>
63 63
64 <div v-if="teamlist.length>0" class="temell mt20"> 64 <div v-if="teamlist.length>0" class="temell mt20">
65 <el-collapse v-model="activeNames" accordion> 65 <el-collapse v-model="activeNames" accordion>
......
...@@ -313,7 +313,7 @@ ...@@ -313,7 +313,7 @@
313 </div> 313 </div>
314 <div> 314 <div>
315 <a target="_blank" class="text-primary" 315 <a target="_blank" class="text-primary"
316 href="https://wdsfwuxicenter.com/stage-api/fs/file/Schedule-WDSF_ASIAN_DANCESPORT_FESTIVAL_2024.WUXI.pdf"> 316 href="https://wdsfwuxicenter.com/stage-api/fs/file/WUXI_COMPETITION_TIMETABLE.pdf">
317 <el-icon style="position: relative;top: 2px"> 317 <el-icon style="position: relative;top: 2px">
318 <download/> 318 <download/>
319 </el-icon> 319 </el-icon>
......
...@@ -142,7 +142,7 @@ ...@@ -142,7 +142,7 @@
142 <!-- <a class="zn-btn ml20 btn-q forPc" v-show="matchData?.id=='1778253367748993026'" style="font-size: 15px;margin-right: 20px" @click="popMaster">--> 142 <!-- <a class="zn-btn ml20 btn-q forPc" v-show="matchData?.id=='1778253367748993026'" style="font-size: 15px;margin-right: 20px" @click="popMaster">-->
143 <!-- Junior &Youth Camp REGISTER<el-icon><Edit /></el-icon>--> 143 <!-- Junior &Youth Camp REGISTER<el-icon><Edit /></el-icon>-->
144 <!-- </a>--> 144 <!-- </a>-->
145 <a class="zn-btn ml20 btn-q" v-show="matchData?.id=='1778253367748993026'" @click="backNumberSearch">Back Number</a> 145 <a class="zn-btn ml20 btn-q" v-show="matchData?.id=='1778253367748993026'" @click="backNumberSearch">Competition Number</a>
146 <!-- <div>--> 146 <!-- <div>-->
147 <!-- <a class=" ding" style="font-size: 15px;margin-top: 10px" @click="handlePickup">Pick-up/drop-off service--> 147 <!-- <a class=" ding" style="font-size: 15px;margin-top: 10px" @click="handlePickup">Pick-up/drop-off service-->
148 <!-- </a>--> 148 <!-- </a>-->
......
...@@ -83,14 +83,14 @@ export default defineConfig(({ mode, command }) => { ...@@ -83,14 +83,14 @@ export default defineConfig(({ mode, command }) => {
83 }, 83 },
84 '/dev-api': { 84 '/dev-api': {
85 // target: 'http://192.168.1.118:8081/', 85 // target: 'http://192.168.1.118:8081/',
86 // target: 'http://192.168.1.131:8081/', 86 target: 'http://192.168.1.131:8081/',
87 // target: 'https://jijin.wtwuxicenter.com/stage-api', 87 // target: 'https://jijin.wtwuxicenter.com/stage-api',
88 target: 'https://wdsfwuxicenter.com/stage-api/', 88 // target: 'https://wdsfwuxicenter.com/stage-api/',
89 changeOrigin: true, 89 changeOrigin: true,
90 rewrite: (p) => p.replace(/^\/dev-api/, '') 90 rewrite: (p) => p.replace(/^\/dev-api/, '')
91 }, 91 },
92 '/ticket': { 92 '/ticket': {
93 target: 'http://192.168.1.118:8098/', 93 target: 'http://192.168.1.131:8081/',
94 // target: 'http://192.168.1.131:8081/', 94 // target: 'http://192.168.1.131:8081/',
95 // target: 'https://jijin.wtwuxicenter.com/h5', 95 // target: 'https://jijin.wtwuxicenter.com/h5',
96 // target: 'https://ticketh5.wdsfwuxicenter.com/h5/stage-api', 96 // target: 'https://ticketh5.wdsfwuxicenter.com/h5/stage-api',
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!