You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

68 lines
2.7 KiB

2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
  1. <template>
  2. <div
  3. class="PaymentDetails tw-bg-neutrals-0 tw-rounded-[20px] tw-text-base-primary tw-p-5 tw-h-auto"
  4. v-if="BookingOrder.Payment"
  5. >
  6. <div class="tw-body-3 tw-font-bold tw-mb-[11.5px]">{{ $t('Payment Details') }}</div>
  7. <div class="tw-mb-[10px]">
  8. <div class="tw-py-[20px] t14 tw-font-bold tw-inline-block tw-mr-[40px]">
  9. <div class="tw-mb-[12px]">{{ $t('Payment Method') }}</div>
  10. <div class="tw-mb-[12px]">{{ $t('Payment Terms') }}</div>
  11. <div class="tw-mb-[12px]">{{ $t('Payment Date') }}</div>
  12. <div>{{ $t('Total Amount') }}</div>
  13. </div>
  14. <div class="t14 tw-inline-block">
  15. <div class="tw-mb-[12px]">
  16. {{ BookingOrder.Payment.PaymentMethod ? paymentMethodMap(BookingOrder.Payment.PaymentMethod) : "尚未確認付款方式" }}
  17. </div>
  18. <div class="tw-mb-[12px]">
  19. {{ BookingOrder.Payment.PaymentTerms ? paymentTermMap(BookingOrder.Payment.PaymentTerms) : "尚未確認" }}
  20. </div>
  21. <div class="tw-mb-[12px]">
  22. {{ BookingOrder.Payment.PaymentDate ? new Date(BookingOrder.Payment.PaymentDate).toLocaleString() : "尚未付款" }}
  23. </div>
  24. <div>
  25. ${{ BookingOrder.TotalPrice }} {{ BookingOrder.Currency.CurrencyName }}
  26. </div>
  27. </div>
  28. </div>
  29. <div
  30. class="tw-grid tw-grid-rows-[40px_40px_auto] tw-gap-[10px_12px] md:tw-grid-cols-[129px_175px_auto] md:tw-grid-rows-none md:tw-items-center md:tw-gap-[24px]"
  31. >
  32. <button
  33. class="t14 tw-text-complementary-1 tw-p-[11px] tw-font-bold tw-bg-[#EFF3FF] tw-max-w-[129px] tw-rounded-[10px] hover:tw-text-[#A0B5FF] no-print"
  34. @click="$emit('banking-details')"
  35. >
  36. {{ $t('Banking Details') }}
  37. </button>
  38. <button v-if="BookingOrder.BookingStatus == '02' && BookingOrder.PaymentStatus == '01'"
  39. class="button-border t14 tw-text-primary-1 tw-p-[11px] tw-font-bold tw-border tw-border-solid tw-rounded-[10px] tw-border-primary-1 tw-max-w-[175px] hover:tw-bg-primary-3 no-print"
  40. @click="$emit('upload-remittanceSlip')"
  41. >
  42. {{ $t('Upload Remittance Slip') }}
  43. </button>
  44. <div v-if="BookingOrder.BookingStatus == '02' && BookingOrder.PaymentStatus == '01'" class="t14 tw-font-normal tw-text-[#EE9546]">
  45. {{ $t('Please upload your remittance slip as soon as the bill has been transferred.') }}
  46. </div>
  47. </div>
  48. </div>
  49. </template>
  50. <script>
  51. import { paymentMethodMap, paymentTermMap } from '@/plugins/util.js'
  52. export default {
  53. components: {
  54. paymentMethodMap,
  55. paymentTermMap
  56. },
  57. props: {
  58. BookingOrder: {
  59. type: Object,
  60. },
  61. },
  62. methods: {
  63. paymentMethodMap,
  64. paymentTermMap
  65. }
  66. };
  67. </script>
  68. <style lang="scss" scoped></style>