custormerDetail.vue 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120
  1. <template>
  2. <view class="page-container">
  3. <!-- 公共组件-每个页面必须引入 -->
  4. <public-module></public-module>
  5. <view class="row d-flex a-center">
  6. <view class="left">交强保单号:</view>
  7. <span class="right d-flex flex-1">
  8. {{orderInfo.jqpolicyno}}
  9. </span>
  10. </view>
  11. <view class="row d-flex a-center">
  12. <view class="left">商业保单号:</view>
  13. <span class="right d-flex flex-1">
  14. {{orderInfo.sypolicyno}}
  15. </span>
  16. </view>
  17. <view class="row d-flex a-center">
  18. <view class="left">车牌号</view>
  19. <span class="right d-flex flex-1">
  20. {{orderInfo.licenseno}}
  21. </span>
  22. </view>
  23. <view class="row d-flex a-center">
  24. <view class="left">车架号</view>
  25. <span class="right d-flex flex-1">
  26. {{orderInfo.frameno}}
  27. </span>
  28. </view>
  29. <view class="row d-flex a-center">
  30. <view class="left">投保人</view>
  31. <span class="right d-flex flex-1">
  32. {{orderInfo.ownerinfo.name}}
  33. </span>
  34. </view>
  35. <view class="row d-flex a-center">
  36. <view class="left">电话</view>
  37. <span class="right d-flex flex-1">
  38. {{orderInfo.ownerinfo.mobile}}
  39. </span>
  40. </view>
  41. <block v-for="(riskItem,riskIndex) in orderInfo.riskinfo" :key="riskIndex">
  42. <template v-if="riskItem.riskCode == '0507'">
  43. <view class="row d-flex a-center">
  44. <view class="left">交强险</view>
  45. <span class="right d-flex flex-1">
  46. ¥{{riskItem.premium}}
  47. </span>
  48. </view>
  49. <view class="row d-flex a-center">
  50. <view class="left">车船税</view>
  51. <span class="right d-flex flex-1">
  52. ¥{{orderInfo.taxamount}}
  53. </span>
  54. </view>
  55. </template>
  56. </block>
  57. <block v-for="(riskItem,riskIndex) in orderInfo.riskinfo" :key="riskIndex">
  58. <template v-if="riskItem.riskCode == '0510'">
  59. <view class="row d-flex a-center">
  60. <view class="left">商业险</view>
  61. <span class="right d-flex flex-1">
  62. ¥{{riskItem.premium}}
  63. </span>
  64. </view>
  65. </template>
  66. </block>
  67. <view class="row d-flex a-center">
  68. <view class="left" style="font-size: 30upx;font-weight: bold;">合计金额</view>
  69. <span class="right d-flex flex-1" style="font-size: 34upx;font-weight: bold; color: #DCAD32;">
  70. ¥{{orderInfo.sumpremium}}
  71. </span>
  72. </view>
  73. </view>
  74. </template>
  75. <script>
  76. export default {
  77. data() {
  78. return {
  79. orderInfo: {},
  80. companyId: "",
  81. }
  82. },
  83. onLoad() {
  84. const eventChannel = this.getOpenerEventChannel()
  85. // 监听acceptData事件,获取上一页面通过eventChannel传送到当前页面的数据
  86. eventChannel.on('acceptData', async (data) => {
  87. this.companyId = data.item;
  88. let res = await this.$http.post('/insurance/order/getByCompanyId', {
  89. companyId: "1731851057502945281",
  90. });
  91. if (res.code == 200) {
  92. this.orderInfo = res.data;
  93. }
  94. })
  95. },
  96. methods: {
  97. }
  98. }
  99. </script>
  100. <style>
  101. .page-container .row {
  102. padding: 0upx 50upx;
  103. height: 80upx;
  104. border-bottom: 1px solid #F9F9F9;
  105. }
  106. .page-container .row .left {
  107. width: 200upx;
  108. flex-shrink: 0;
  109. font-size: 28upx;
  110. }
  111. .page-container .row .right {
  112. font-size: 28upx;
  113. text-align: end;
  114. }
  115. </style>