订单头
Showing
3 changed files
with
75 additions
and
13 deletions
| ... | @@ -19,16 +19,14 @@ | ... | @@ -19,16 +19,14 @@ |
| 19 | <label class="purpleTag" v-if="b.orderType == 2"> {{ language==0?'餐饮订单':'DINING' }}</label> | 19 | <label class="purpleTag" v-if="b.orderType == 2"> {{ language==0?'餐饮订单':'DINING' }}</label> |
| 20 | <label class="pinkTag" v-if="b.orderType == 3"> {{ language==0?'化妆订单':'MakeUp' }}</label> | 20 | <label class="pinkTag" v-if="b.orderType == 3"> {{ language==0?'化妆订单':'MakeUp' }}</label> |
| 21 | <label class="yellowTag" v-if="b.orderType == 4"> {{ language==0?'拍摄订单':'Shooting'}}</label> | 21 | <label class="yellowTag" v-if="b.orderType == 4"> {{ language==0?'拍摄订单':'Shooting'}}</label> |
| 22 | <label class="yellowTag" v-if="orderType == 6"> {{ language==0?'票务':'Ticket'}}</label> | 22 | <label class="yellowTag" v-if="!b.orderType">{{ language==0?'赛事报名':'REGISTRATION' }}</label> |
| 23 | <label class="bg-primary" v-if="orderType==5"> {{ language==0?'赛事报名':'REGISTRATION' }}</label> | ||
| 24 | |||
| 25 | <h3 v-if="b.name">{{ b.name }}</h3> | 23 | <h3 v-if="b.name">{{ b.name }}</h3> |
| 26 | <h3 v-if="b.cptName">{{ b.cptName }}</h3> | 24 | <h3 v-if="b.cptName">{{ b.cptName }}</h3> |
| 27 | 25 | ||
| 28 | <div v-if="!b.orderType"> | 26 | <div v-if="!b.orderType&&orderType==5"> |
| 29 | <p v-if="b.groupName">{{ language==0?'团队名称':'Team name' }}:{{b.groupName}}</p> | 27 | <p v-if="b.groupName">{{ language==0?'团队名称':'Team name' }}:{{b.groupName}}</p> |
| 30 | <p v-if="b.payTime">{{ language==0?'支付时间':'Payment time' }}:{{b.payTime}}</p> | 28 | <p v-if="b.payTime">{{ language==0?'支付时间':'Payment time' }}:{{b.payTime}}</p> |
| 31 | <p class="poPrice" v-if="b.totalPayAmount">{{ b.paymentType==3?'€' :'¥' }} {{b.totalPayAmount}}</p> | 29 | <p class="poPrice" v-if="b.totalPayAmount">{{paymentType!=2?'¥':'€'}} {{b.totalPayAmount}}</p> |
| 32 | </div> | 30 | </div> |
| 33 | <!-- 酒店订单--> | 31 | <!-- 酒店订单--> |
| 34 | <div v-if="b.orderType == 0"> | 32 | <div v-if="b.orderType == 0"> |
| ... | @@ -63,6 +61,17 @@ | ... | @@ -63,6 +61,17 @@ |
| 63 | </div> | 61 | </div> |
| 64 | </div> | 62 | </div> |
| 65 | 63 | ||
| 64 | <div class="border-info" v-if="orderType==6"> | ||
| 65 | <label class="blueTag" >{{language==0?'票务订单':'Ticket'}}</label> | ||
| 66 | <h3>{{ formDate.name }}</h3> | ||
| 67 | <div> | ||
| 68 | <p>地点:{{formDate.placeName}}</p> | ||
| 69 | <p>单价:{{formDate.singlePrice}}</p> | ||
| 70 | <p>数量:{{formDate.seatList?.length}}张</p> | ||
| 71 | <p class="poPrice">{{paymentType!=2?'¥':'€'}}{{formDate.payAmount}}</p> | ||
| 72 | </div> | ||
| 73 | </div> | ||
| 74 | |||
| 66 | <div class="leftboderTT">{{ language == 0 ? '开票信息' : 'Invoice information' }}</div> | 75 | <div class="leftboderTT">{{ language == 0 ? '开票信息' : 'Invoice information' }}</div> |
| 67 | <div class="border-rr mt20 pd20"> | 76 | <div class="border-rr mt20 pd20"> |
| 68 | <el-form class="mw500" :model="form" :label-width="language == 0 ?'100':'150'" :rules="rules" ref="formRef"> | 77 | <el-form class="mw500" :model="form" :label-width="language == 0 ?'100':'150'" :rules="rules" ref="formRef"> |
| ... | @@ -169,6 +178,9 @@ import { | ... | @@ -169,6 +178,9 @@ import { |
| 169 | getInvoiceDetail, | 178 | getInvoiceDetail, |
| 170 | submitCptInvoice, getBaseInfoByActiveId, getLeagueInvoiceDetail, getLeagueInvoiceDetailPC,getInvoiceDetailMatch | 179 | submitCptInvoice, getBaseInfoByActiveId, getLeagueInvoiceDetail, getLeagueInvoiceDetailPC,getInvoiceDetailMatch |
| 171 | } from "@/apiPc/booking"; | 180 | } from "@/apiPc/booking"; |
| 181 | import {getOrderDetail} from "@/viewsPc/seat/api/index"; | ||
| 182 | |||
| 183 | |||
| 172 | const {proxy} = getCurrentInstance() | 184 | const {proxy} = getCurrentInstance() |
| 173 | 185 | ||
| 174 | const user = useUserStore().user | 186 | const user = useUserStore().user |
| ... | @@ -179,6 +191,7 @@ const form = ref({ | ... | @@ -179,6 +191,7 @@ const form = ref({ |
| 179 | invoiceForm: '1', | 191 | invoiceForm: '1', |
| 180 | invoiceType: '0' | 192 | invoiceType: '0' |
| 181 | }) | 193 | }) |
| 194 | const formDate = ref({}) | ||
| 182 | const orderType=ref(1) | 195 | const orderType=ref(1) |
| 183 | const paymentType=ref(1) | 196 | const paymentType=ref(1) |
| 184 | const list = ref([]) | 197 | const list = ref([]) |
| ... | @@ -222,7 +235,6 @@ let cptId | ... | @@ -222,7 +235,6 @@ let cptId |
| 222 | 235 | ||
| 223 | 236 | ||
| 224 | onMounted(() => { | 237 | onMounted(() => { |
| 225 | console.log(route.query) | ||
| 226 | orderType.value=route.query.orderType | 238 | orderType.value=route.query.orderType |
| 227 | paymentType.value=route.query.paymentType | 239 | paymentType.value=route.query.paymentType |
| 228 | if(route.query.orders){ | 240 | if(route.query.orders){ |
| ... | @@ -276,16 +288,21 @@ onMounted(() => { | ... | @@ -276,16 +288,21 @@ onMounted(() => { |
| 276 | } | 288 | } |
| 277 | }) | 289 | }) |
| 278 | 290 | ||
| 291 | async function getDataInfo(){ | ||
| 292 | const res =await getOrderDetail({orderSn:route.query.orderSn}) | ||
| 293 | formDate.value=res.data | ||
| 294 | } | ||
| 295 | |||
| 279 | function getList() { | 296 | function getList() { |
| 280 | if(route.query.type=='5'){ | 297 | if(route.query.type=='5'){ |
| 281 | getLeagueInvoiceDetailPC(invoiceId).then(res => { | 298 | getLeagueInvoiceDetailPC(invoiceId).then(res => { |
| 282 | // 订单 | 299 | // 订单 |
| 283 | list.value = res.data; | 300 | list.value = res.rows |
| 284 | console.log(list.value) | 301 | console.log(list.value) |
| 285 | cptId = res.rows[0].activeId||res.rows[0].cptId | 302 | cptId = res.rows[0].activeId||res.rows[0].cptId |
| 286 | getRemark() | 303 | getRemark() |
| 287 | for (var bill of list.value) { | 304 | for (var bill of list.value) { |
| 288 | bill.messageObj = JSON.parse(bill.message) | 305 | if (bill.messageObj)bill.messageObj = JSON.parse(bill.message) |
| 289 | } | 306 | } |
| 290 | }); | 307 | }); |
| 291 | } else { | 308 | } else { | ... | ... |
| ... | @@ -18,8 +18,14 @@ | ... | @@ -18,8 +18,14 @@ |
| 18 | <label class="purpleTag" v-if="b.orderType == 2"> 餐饮订单</label> | 18 | <label class="purpleTag" v-if="b.orderType == 2"> 餐饮订单</label> |
| 19 | <label class="pinkTag" v-if="b.orderType == 3">化妆订单</label> | 19 | <label class="pinkTag" v-if="b.orderType == 3">化妆订单</label> |
| 20 | <label class="yellowTag" v-if="b.orderType == 4">拍照订单</label> | 20 | <label class="yellowTag" v-if="b.orderType == 4">拍照订单</label> |
| 21 | 21 | <label class="yellowTag" v-if="!b.orderType">{{ language==0?'赛事报名':'REGISTRATION' }}</label> | |
| 22 | <h3>{{ b.name }}</h3> | 22 | <h3>{{ b.name }}</h3> |
| 23 | <h3 v-if="b.cptName">{{ b.cptName }}</h3> | ||
| 24 | <div v-if="!b.orderType&&orderType==5"> | ||
| 25 | <p v-if="b.groupName">{{ language==0?'团队名称':'Team name' }}:{{b.groupName}}</p> | ||
| 26 | <p v-if="b.payTime">{{ language==0?'支付时间':'Payment time' }}:{{b.payTime}}</p> | ||
| 27 | <p class="poPrice" v-if="b.totalPayAmount">{{paymentType!=2?'¥':'€'}} {{b.totalPayAmount}}</p> | ||
| 28 | </div> | ||
| 23 | <!-- 酒店订单--> | 29 | <!-- 酒店订单--> |
| 24 | <div v-if="b.orderType == 0"> | 30 | <div v-if="b.orderType == 0"> |
| 25 | <p>{{b.messageObj.roomInfo}}</p> | 31 | <p>{{b.messageObj.roomInfo}}</p> |
| ... | @@ -52,7 +58,16 @@ | ... | @@ -52,7 +58,16 @@ |
| 52 | <p class="poPrice">{{ b.paymentType==3?'€' :'¥' }}{{b.totalStr}}</p> | 58 | <p class="poPrice">{{ b.paymentType==3?'€' :'¥' }}{{b.totalStr}}</p> |
| 53 | </div> | 59 | </div> |
| 54 | </div> | 60 | </div> |
| 55 | 61 | <div class="border-info" v-if="orderType==6"> | |
| 62 | <label class="blueTag" >票务订单</label> | ||
| 63 | <h3>{{ formDate.name }}</h3> | ||
| 64 | <div> | ||
| 65 | <p>地点:{{formDate.placeName}}</p> | ||
| 66 | <p>单价:{{formDate.singlePrice}}</p> | ||
| 67 | <p>数量:{{formDate.seatList?.length}}张</p> | ||
| 68 | <p class="poPrice">{{paymentType!=2?'¥':'€'}}{{formDate.payAmount}}</p> | ||
| 69 | </div> | ||
| 70 | </div> | ||
| 56 | <div class="leftboderTT">{{ language == 0 ? '开票信息' : 'Invoice information' }}</div> | 71 | <div class="leftboderTT">{{ language == 0 ? '开票信息' : 'Invoice information' }}</div> |
| 57 | <div class="border-rr mt20 pd20"> | 72 | <div class="border-rr mt20 pd20"> |
| 58 | <el-form class="mw500" :model="form" :label-width="language == 0 ?'100':'150'" :rules="rules" ref="formRef"> | 73 | <el-form class="mw500" :model="form" :label-width="language == 0 ?'100':'150'" :rules="rules" ref="formRef"> |
| ... | @@ -125,8 +140,17 @@ import dayjs from 'dayjs' | ... | @@ -125,8 +140,17 @@ import dayjs from 'dayjs' |
| 125 | import {ElMessage,ElMessageBox} from "element-plus"; | 140 | import {ElMessage,ElMessageBox} from "element-plus"; |
| 126 | import useUserStore from "@/store/modules/user"; | 141 | import useUserStore from "@/store/modules/user"; |
| 127 | import {getCurrentInstance} from "@vue/runtime-core"; | 142 | import {getCurrentInstance} from "@vue/runtime-core"; |
| 128 | import {addressList, editInvoice, submitInvoice,getInvoiceDetailBills,getInvoiceDetail,getInvoiceDetailMatch} from "@/apiPc/booking"; | 143 | import { |
| 144 | addressList, | ||
| 145 | editInvoice, | ||
| 146 | submitInvoice, | ||
| 147 | getInvoiceDetailBills, | ||
| 148 | getInvoiceDetail, | ||
| 149 | getInvoiceDetailMatch, | ||
| 150 | getLeagueInvoiceDetailPC | ||
| 151 | } from "@/apiPc/booking"; | ||
| 129 | import {submitTitckInvoice, invoice, TitckUpdateInvoice} from '@/viewsPc/seat/api/index' | 152 | import {submitTitckInvoice, invoice, TitckUpdateInvoice} from '@/viewsPc/seat/api/index' |
| 153 | import {getOrderDetail} from "@/viewsPc/seat/api/index"; | ||
| 130 | 154 | ||
| 131 | const {proxy} = getCurrentInstance() | 155 | const {proxy} = getCurrentInstance() |
| 132 | 156 | ||
| ... | @@ -141,6 +165,7 @@ const nowAddress = ref({}) | ... | @@ -141,6 +165,7 @@ const nowAddress = ref({}) |
| 141 | const totalMoney = ref(0) | 165 | const totalMoney = ref(0) |
| 142 | const orderType=ref(0) | 166 | const orderType=ref(0) |
| 143 | const form = ref({}) | 167 | const form = ref({}) |
| 168 | const formDate = ref({}) | ||
| 144 | const rules = ref({ | 169 | const rules = ref({ |
| 145 | invoiceType: [ | 170 | invoiceType: [ |
| 146 | {required: true, message: language.value==0?'请选择发票类型':'Please select invoice type', trigger: 'change'} | 171 | {required: true, message: language.value==0?'请选择发票类型':'Please select invoice type', trigger: 'change'} |
| ... | @@ -179,9 +204,24 @@ onMounted(() => { | ... | @@ -179,9 +204,24 @@ onMounted(() => { |
| 179 | paymentType.value=route.query.paymentType | 204 | paymentType.value=route.query.paymentType |
| 180 | invoiceId = route.query.invoiceId | 205 | invoiceId = route.query.invoiceId |
| 181 | getList() | 206 | getList() |
| 182 | 207 | route.query.orderSn&&getDataInfo() | |
| 183 | }) | 208 | }) |
| 209 | |||
| 210 | async function getDataInfo(){ | ||
| 211 | const res =await getOrderDetail({orderSn:route.query.orderSn}) | ||
| 212 | formDate.value=res.data | ||
| 213 | } | ||
| 184 | function getList() { | 214 | function getList() { |
| 215 | if(route.query.type=='5'){ | ||
| 216 | getLeagueInvoiceDetailPC(invoiceId).then(res => { | ||
| 217 | // 订单 | ||
| 218 | list.value = res.rows | ||
| 219 | console.log(list.value) | ||
| 220 | for (var bill of list.value) { | ||
| 221 | if (bill.messageObj)bill.messageObj = JSON.parse(bill.message) | ||
| 222 | } | ||
| 223 | }); | ||
| 224 | } else{ | ||
| 185 | getInvoiceDetailBills(invoiceId).then(res => { | 225 | getInvoiceDetailBills(invoiceId).then(res => { |
| 186 | // 订单 | 226 | // 订单 |
| 187 | list.value = res.rows; | 227 | list.value = res.rows; |
| ... | @@ -189,6 +229,7 @@ function getList() { | ... | @@ -189,6 +229,7 @@ function getList() { |
| 189 | bill.messageObj = JSON.parse(bill.message) | 229 | bill.messageObj = JSON.parse(bill.message) |
| 190 | } | 230 | } |
| 191 | }); | 231 | }); |
| 232 | } | ||
| 192 | if (orderType.value==6){ | 233 | if (orderType.value==6){ |
| 193 | invoice(invoiceId).then(res=>{ | 234 | invoice(invoiceId).then(res=>{ |
| 194 | // console.log(res) | 235 | // console.log(res) | ... | ... |
| ... | @@ -251,6 +251,7 @@ onMounted(() => { | ... | @@ -251,6 +251,7 @@ onMounted(() => { |
| 251 | } | 251 | } |
| 252 | query.value.orderType= activeName.value=userStore.activeName||'5' | 252 | query.value.orderType= activeName.value=userStore.activeName||'5' |
| 253 | getList() | 253 | getList() |
| 254 | route.query.orderSn&&getDataInfo() | ||
| 254 | }) | 255 | }) |
| 255 | const getList = () => { | 256 | const getList = () => { |
| 256 | loading.value = true | 257 | loading.value = true |
| ... | @@ -304,7 +305,8 @@ const gokp = (item) => { | ... | @@ -304,7 +305,8 @@ const gokp = (item) => { |
| 304 | orders: encodeURIComponent(JSON.stringify(item)), | 305 | orders: encodeURIComponent(JSON.stringify(item)), |
| 305 | totalMoney:item.totalStr||item.totalPayAmount||item.payAmount||item.totalAmount, | 306 | totalMoney:item.totalStr||item.totalPayAmount||item.payAmount||item.totalAmount, |
| 306 | paymentType:query.value.orderType==6||query.value.orderType==5?item.payType:item.paymentType, | 307 | paymentType:query.value.orderType==6||query.value.orderType==5?item.payType:item.paymentType, |
| 307 | orderType:query.value.orderType | 308 | orderType:query.value.orderType, |
| 309 | orderSn:query.value.orderType==6?item.orderSn:null | ||
| 308 | } | 310 | } |
| 309 | }) | 311 | }) |
| 310 | } | 312 | } |
| ... | @@ -317,6 +319,7 @@ const editkp = (item) => { | ... | @@ -317,6 +319,7 @@ const editkp = (item) => { |
| 317 | isEdit:true, | 319 | isEdit:true, |
| 318 | orderType:query.value.orderType, | 320 | orderType:query.value.orderType, |
| 319 | paymentType:query.value.orderType==6||query.value.orderType==5?item.payType:item.paymentType, | 321 | paymentType:query.value.orderType==6||query.value.orderType==5?item.payType:item.paymentType, |
| 322 | orderSn:query.value.orderType==6?item.orderSn:null | ||
| 320 | } | 323 | } |
| 321 | }) | 324 | }) |
| 322 | } | 325 | } |
| ... | @@ -328,6 +331,7 @@ const showDetail = (item) => { | ... | @@ -328,6 +331,7 @@ const showDetail = (item) => { |
| 328 | type:activeName.value, | 331 | type:activeName.value, |
| 329 | orderType:query.value.orderType, | 332 | orderType:query.value.orderType, |
| 330 | paymentType:query.value.orderType==6||query.value.orderType==5?item.payType:item.paymentType, | 333 | paymentType:query.value.orderType==6||query.value.orderType==5?item.payType:item.paymentType, |
| 334 | orderSn:query.value.orderType==6?item.orderSn:null | ||
| 331 | } | 335 | } |
| 332 | }) | 336 | }) |
| 333 | } | 337 | } | ... | ... |
-
Please register or sign in to post a comment