开票
Showing
4 changed files
with
50 additions
and
0 deletions
| ... | @@ -362,6 +362,18 @@ export const constantRoutes = [ | ... | @@ -362,6 +362,18 @@ export const constantRoutes = [ |
| 362 | meta: {title: 'peopleManage'} | 362 | meta: {title: 'peopleManage'} |
| 363 | }, | 363 | }, |
| 364 | { | 364 | { |
| 365 | path: 'ticket/addInvoice', | ||
| 366 | component: () => import('@/viewsPc/booking/ticket/addInvoice.vue'), | ||
| 367 | name: 'ticketAddInvoice', | ||
| 368 | meta: {title: 'ticketAddInvoice'} | ||
| 369 | }, | ||
| 370 | { | ||
| 371 | path: 'ticket/invoiceDetail', | ||
| 372 | component: () => import('@/viewsPc/booking/ticket/invoiceDetail.vue'), | ||
| 373 | name: 'ticketInvoiceDetail', | ||
| 374 | meta: {title: 'ticketInvoiceDetail'} | ||
| 375 | }, | ||
| 376 | { | ||
| 365 | path: 'hotel/:cptId', | 377 | path: 'hotel/:cptId', |
| 366 | component: () => import('@/viewsPc/booking/hotel'), | 378 | component: () => import('@/viewsPc/booking/hotel'), |
| 367 | name: 'hotel', | 379 | name: 'hotel', | ... | ... |
src/viewsPc/booking/ticket/addInvoice.vue
0 → 100644
This diff is collapsed.
Click to expand it.
src/viewsPc/booking/ticket/invoiceDetail.vue
0 → 100644
This diff is collapsed.
Click to expand it.
| ... | @@ -326,6 +326,18 @@ const handleClick = (e) => { | ... | @@ -326,6 +326,18 @@ const handleClick = (e) => { |
| 326 | 326 | ||
| 327 | } | 327 | } |
| 328 | const gokp = (item) => { | 328 | const gokp = (item) => { |
| 329 | if (query.value.orderType) { | ||
| 330 | router.push({ | ||
| 331 | name: 'ticketAddInvoice', | ||
| 332 | query: { | ||
| 333 | orders: encodeURIComponent(JSON.stringify(item)), | ||
| 334 | totalMoney: item.totalStr || item.totalPayAmount || item.payAmount || item.totalAmount, | ||
| 335 | orderId: item.id, | ||
| 336 | paymentType: item.paymentType, | ||
| 337 | orderType: query.value.orderType, | ||
| 338 | } | ||
| 339 | }) | ||
| 340 | } else { | ||
| 329 | router.push({ | 341 | router.push({ |
| 330 | path: '/booking/addInvoice', | 342 | path: '/booking/addInvoice', |
| 331 | query: { | 343 | query: { |
| ... | @@ -337,8 +349,20 @@ const gokp = (item) => { | ... | @@ -337,8 +349,20 @@ const gokp = (item) => { |
| 337 | orderSn: query.value.orderType == 6 ? item.orderSn : null | 349 | orderSn: query.value.orderType == 6 ? item.orderSn : null |
| 338 | } | 350 | } |
| 339 | }) | 351 | }) |
| 352 | } | ||
| 353 | |||
| 340 | } | 354 | } |
| 341 | const editkp = (item) => { | 355 | const editkp = (item) => { |
| 356 | if (query.value.orderType == 6) { | ||
| 357 | router.push({ | ||
| 358 | name: 'ticketAddInvoice', | ||
| 359 | query: { | ||
| 360 | invoiceId: item.invoiceId, | ||
| 361 | orderId: item.id, | ||
| 362 | isEdit: true, | ||
| 363 | } | ||
| 364 | }) | ||
| 365 | } else { | ||
| 342 | router.push({ | 366 | router.push({ |
| 343 | name: 'addInvoice', | 367 | name: 'addInvoice', |
| 344 | query: { | 368 | query: { |
| ... | @@ -351,8 +375,20 @@ const editkp = (item) => { | ... | @@ -351,8 +375,20 @@ const editkp = (item) => { |
| 351 | // orderSn: query.value.orderType == 6 ? item.orderSn : null | 375 | // orderSn: query.value.orderType == 6 ? item.orderSn : null |
| 352 | } | 376 | } |
| 353 | }) | 377 | }) |
| 378 | } | ||
| 379 | |||
| 354 | } | 380 | } |
| 355 | const showDetail = (item) => { | 381 | const showDetail = (item) => { |
| 382 | if (query.value.orderType == 6) { | ||
| 383 | router.push({ | ||
| 384 | name: 'ticketInvoiceDetail', | ||
| 385 | query: { | ||
| 386 | invoiceId: item.invoiceId, | ||
| 387 | orderId: item.id, | ||
| 388 | } | ||
| 389 | }) | ||
| 390 | |||
| 391 | } else { | ||
| 356 | router.push({ | 392 | router.push({ |
| 357 | name: 'invoiceDetail', | 393 | name: 'invoiceDetail', |
| 358 | query: { | 394 | query: { |
| ... | @@ -363,6 +399,8 @@ const showDetail = (item) => { | ... | @@ -363,6 +399,8 @@ const showDetail = (item) => { |
| 363 | // orderSn: query.value.orderType == 6 ? item.orderSn : null | 399 | // orderSn: query.value.orderType == 6 ? item.orderSn : null |
| 364 | } | 400 | } |
| 365 | }) | 401 | }) |
| 402 | |||
| 403 | } | ||
| 366 | } | 404 | } |
| 367 | let nowSj = {} | 405 | let nowSj = {} |
| 368 | const goSj = (item) => { | 406 | const goSj = (item) => { | ... | ... |
-
Please register or sign in to post a comment