sureOrder.vue 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899
  1. <template>
  2. <view>
  3. <view class="box">
  4. <view class="item">
  5. <view class="l">订单号:</view>
  6. <view class="r">
  7. {{ form.no }}
  8. </view>
  9. </view>
  10. <view class="item-line">
  11. 业务项
  12. </view>
  13. <view class="item" v-for="item in form.items" :key="item.id">
  14. <view class="l" style="flex: 7;">{{ item.itemTypeName }}:</view>
  15. <view class="r">
  16. {{ item.itemName }}({{ item.itemPrice }}x{{ item.num }}={{ item.total }}元)
  17. </view>
  18. </view>
  19. <view class="item">
  20. <view class="l" style="flex: 7;">业务费:</view>
  21. <view class="r">
  22. {{ form.itemPrice }}
  23. <text>(元)</text>
  24. </view>
  25. </view>
  26. <view class="item">
  27. <view class="l" style="flex: 7;">境外车停车费:</view>
  28. <view class="r">
  29. {{ form.partMoney }}
  30. <text>(元)</text>
  31. </view>
  32. </view>
  33. <view class="item">
  34. <view class="l" style="flex: 7;">中国车停车费:</view>
  35. <view class="r">
  36. {{ form.chinaPartMoney }}
  37. <text>(元)</text>
  38. </view>
  39. </view>
  40. <view class="item">
  41. <view class="l" style="flex: 7;">合计费用:</view>
  42. <view class="r">
  43. {{ form.totalMoney }}元
  44. </view>
  45. </view>
  46. </view>
  47. <u-button type="primary" @click="confirmFn">马上支付</u-button>
  48. </view>
  49. </template>
  50. <script>
  51. export default {
  52. data() {
  53. return {
  54. id: '',
  55. form: {
  56. partMoney: 0
  57. },
  58. }
  59. },
  60. onLoad(options) {
  61. this.id = options.id;
  62. },
  63. onShow() {
  64. this.getBusinessById();
  65. },
  66. methods: {
  67. getBusinessById() {
  68. this.$api.getBusinessById({
  69. id: this.id
  70. }).then(resp => {
  71. this.form = resp.data;
  72. })
  73. },
  74. confirmFn() {
  75. this.$api.confirmBusiness({ids: this.form.id}).then(Resp => {
  76. this.$common.toast('已确认');
  77. setTimeout(() => {
  78. this.$common.back()
  79. }, 500)
  80. })
  81. }
  82. }
  83. }
  84. </script>
  85. <style lang="scss">
  86. page {
  87. background-color: #fff;
  88. }
  89. .item-line {
  90. color: #a2a2a2;
  91. padding: 5px 0 10px 29px;
  92. border-bottom: 1px solid #E5E5E5;
  93. }
  94. @import '@/common/common.scss'
  95. </style>