348487be by 杨炀

no message

1 parent afb2ff46
...@@ -162,4 +162,11 @@ export function queryScheduleSingle(qy) { ...@@ -162,4 +162,11 @@ export function queryScheduleSingle(qy) {
162 }) 162 })
163 } 163 }
164 164
165 export function queryTicket(qy) {
166 return request({
167 url: `/ota/orderCustomer/getOrderCustomerListByCard`,
168 method: 'get',
169 params: qy
170 })
171 }
165 172
......
...@@ -61,6 +61,12 @@ export const constantRoutes = [ ...@@ -61,6 +61,12 @@ export const constantRoutes = [
61 hidden: true 61 hidden: true
62 }, 62 },
63 { 63 {
64 path: '/ticketSearch',
65 component: () => import('@/viewsPc/booking/ticketSearch'),
66 name: 'ticketSearch',
67 meta: {title: '票务订单查询'}
68 },
69 {
64 path: '/index', 70 path: '/index',
65 redirect: '/' 71 redirect: '/'
66 }, 72 },
......
1 <template>
2 <div>
3 <div class="pd20">
4 <el-form>
5 <el-form-item>
6 <el-input type="text" size="large" placeholder="请输入证件号查询"
7 v-model="query.idCard" clearable @keyup.enter="search"
8 @clear="search"
9 />
10 </el-form-item>
11 </el-form>
12 <div class="list">
13 <div class="nowteamItem " v-for="(n,i) in list" :key="i">
14 <div class="p9 f12">订单编号: {{n.id}}</div>
15 <div>{{n.ticketName}} </div>
16 <div>场次:{{n.ticketTypeName}} </div>
17 <div>票型:{{language==0? n.typeName:n.typeNameEn }}
18 <el-tag v-if="n.discount == 1">优惠</el-tag>
19 </div>
20 <div>
21 <!-- 观看人:-->
22 <div>
23 <div class="customer">
24 <div class="name">{{ n.name }}
25 <span class="fr fwb text-warning" v-if="language==0&&n.discount == 0"> ¥{{n.price}} </span>
26 <span class="fr fwb text-warning" v-if="language==1&&n.discount == 0">{{n.priceEn}} </span>
27 <span class="fr fwb text-warning" v-if="language==0&&n.discount == 1"> ¥{{n.rebatePrice}} </span>
28 <span class="fr fwb text-warning" v-if="language==1&&n.discount == 1">{{n.rebatePriceEn}} </span>
29 </div>
30 <p>
31 <label v-if="n.idcType == 0">身份证:</label>
32 <label v-if="n.idcType == 1">护照:</label>
33 <label v-if="n.idcType == 2">其他:</label>
34 <span v-html="n.idCard"></span>
35 </p>
36 </div>
37 </div>
38
39 </div>
40 </div>
41 </div>
42 <div style="height: 100px"></div>
43 <el-empty v-if="list.length==0" />
44 </div>
45
46 <div class="fixed-bottom">
47 <el-button @click="search" v-loading="loading" round type="primary" class="btn-lineG">查询</el-button>
48 </div>
49 </div>
50 </template>
51
52 <script setup>
53 import {queryTicket} from "@/apiPc/common";
54 import {ElMessage} from "element-plus";
55 import {useStorage} from "@vueuse/core/index";
56 const language = useStorage('language', 0)
57 const form = ref({})
58 const list = ref([])
59 const query = ref({
60 status:1
61 })
62 const loading = ref(false)
63 function search() {
64 if(!query.value.idCard){
65 ElMessage.warning('请输入证件号')
66 return
67 }
68 loading.value = true
69 queryTicket(query.value).then(res=>{
70 list.value = res.data
71 for(let bill of list.value){
72 // p.idCard = p.idCard.substring(0,4)+'****'+p.idCard.substring(8,p.idCard.length)
73 const pattern = new RegExp(query.value.idCard, 'gi')
74 bill.idCard = bill.idCard.replace(pattern, `<span class="highlight">$&</span>`)
75
76 }
77 loading.value = false
78 })
79 }
80 </script>
81
82 <style scoped lang="scss">
83 .highlight{background: yellow;}
84 .fixed-bottom{position: fixed;bottom: 30px;padding: 0 30px;width: 100%;
85 .btn-lineG{display: block;width: 100%;font-size: 18px;line-height: 2;height: auto;
86 border-radius: 50px;
87 }
88 }
89 .list{
90 .nowteamItem {line-height: 1.6;font-size: 16px;
91 width: 100%;border: 1px solid #c8c5ff; margin-top: 20px;
92 position: relative;border-radius: 4px;padding:10px 15px;
93 background: #FFFFFF;
94 box-sizing: border-box;
95 &>div{flex-wrap: nowrap;white-space: nowrap;
96 }
97 .p9{color: #999;}
98 .f12{font-size: 14px}
99
100 .customer{margin: 10px 0 0px;background: #f1f0ff;padding: 4px 12px;border-radius: 4px;
101 .name{font-size: 17px}
102 p{margin: 0;
103 label{color: #666;font-weight: normal;}
104 }
105 }
106 }
107 }
108 </style>
...@@ -81,9 +81,9 @@ export default defineConfig(({ mode, command }) => { ...@@ -81,9 +81,9 @@ export default defineConfig(({ mode, command }) => {
81 rewrite: (p) => p.replace(/^\/dev-api\/ztx-webSite/, '') 81 rewrite: (p) => p.replace(/^\/dev-api\/ztx-webSite/, '')
82 }, 82 },
83 '/dev-api': { 83 '/dev-api': {
84 // target: 'http://192.168.1.118:8081/', 84 target: 'http://192.168.1.118:8081/',
85 // target: 'http://192.168.1.131:8081/', 85 // target: 'http://192.168.1.131:8081/',
86 target: 'https://jijin.wtwuxicenter.com/stage-api', 86 // target: 'https://jijin.wtwuxicenter.com/stage-api',
87 // target: 'http://124.70.181.90:1880/stage-api', 87 // target: 'http://124.70.181.90:1880/stage-api',
88 // target: 'https://wdsfwuxicenter.com/stage-api/', 88 // target: 'https://wdsfwuxicenter.com/stage-api/',
89 changeOrigin: true, 89 changeOrigin: true,
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!