quoteHistory.vue 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191
  1. <template>
  2. <view>
  3. <view class="car-header dis a-c">
  4. <view class="icon-radius">
  5. <image src="../../static/icon/insurance.png" mode=""></image>
  6. </view>
  7. <view class="dis f-c head-name">
  8. <text>{{licenseno}}</text>
  9. <view class="name1">
  10. <text style="margin-right: 10px;">{{insuredname}}</text>
  11. <text>{{modelcname}}</text>
  12. </view>
  13. </view>
  14. </view>
  15. <view class="pdd" style="padding-top: 120px;">
  16. <view class="sub-orders " v-for="(item,index) in sublist" :key="index">
  17. <view class="orders-upper dis f-c">
  18. <view class="dis a-end j-s">
  19. <text class="strong">{{item.inscompany}}</text>
  20. <text class="strong">{{item.createtime}}</text>
  21. </view>
  22. </view>
  23. <view class="orders-centre dis f-c strong">
  24. <view class="dis j-s a-c">
  25. <text>¥{{item.sumpremium}}</text>
  26. <view v-for="(statusitem,statusindex) in statusList" :key="statusindex"
  27. v-if="item.orderstatus==statusitem.value" :style="{color:statusitem.color}">
  28. {{statusitem.label}}
  29. </view>
  30. </view>
  31. <view class="dis" style="font-size: 12px;color: #276D6F;">
  32. <text v-if="item.jqpremium">交强险:¥{{item.jqpremium}}</text>
  33. <text v-if="item.sypremium">商业险:¥{{item.sypremium}}</text>
  34. <text>车船税:¥{{item.taxamount}}</text>
  35. </view>
  36. </view>
  37. </view>
  38. </view>
  39. </view>
  40. </template>
  41. <script>
  42. export default {
  43. data() {
  44. return {
  45. modelcname: "",
  46. orderno: "",
  47. insuredname: "",
  48. licenseno: "",
  49. sublist: [],
  50. statusList: [{
  51. label: '报价中',
  52. value: 0,
  53. color: "#1E9600"
  54. },
  55. {
  56. label: '待核保',
  57. value: 1,
  58. color: "#f5af19"
  59. },
  60. {
  61. label: '已核保待缴费',
  62. value: 2,
  63. color: "#f12711"
  64. },
  65. {
  66. label: '已承保',
  67. value: 3,
  68. color: "#7F7FD5"
  69. },
  70. {
  71. label: '核保退回',
  72. value: 4,
  73. color: "#bdc3c7"
  74. }
  75. ],
  76. }
  77. },
  78. onLoad(params) {
  79. let item = JSON.parse(params.orderno);
  80. this.orderno = item.orderno;
  81. this.modelcname = item.modelcname;
  82. this.insuredname = item.insuredname;
  83. this.licenseno = item.licenseno;
  84. this.querylist();
  85. },
  86. methods: {
  87. async querylist() {
  88. let params = {
  89. orderNo: this.orderno,
  90. orderStatus: ""
  91. }
  92. let res = await this.$http.post('/insurance/order/queryQuoteHistory', params)
  93. this.sublist = res.data;
  94. }
  95. }
  96. }
  97. </script>
  98. <style>
  99. page {
  100. background: #f2f2f2;
  101. }
  102. </style>
  103. <style lang="scss" scoped>
  104. .car-header {
  105. width: 100%;
  106. height: auto;
  107. background: linear-gradient(to right, #ede574, #e1f5c4);
  108. padding: 20px;
  109. box-sizing: border-box;
  110. position: fixed;
  111. z-index: 99;
  112. .icon-radius {
  113. width: 70px;
  114. height: 70px;
  115. background: white;
  116. border-radius: 50%;
  117. box-shadow: 0 0 4px 1px #999;
  118. padding: 12px;
  119. margin-right: 20px;
  120. image {
  121. width: 100%;
  122. height: 100%;
  123. }
  124. }
  125. .head-name {
  126. &>text {
  127. font-weight: bold;
  128. font-size: 20px;
  129. }
  130. .name1 text {
  131. font-weight: bold;
  132. }
  133. }
  134. }
  135. .sub-orders {
  136. width: 100%;
  137. background: white;
  138. border-radius: 6px;
  139. padding: 20px;
  140. box-shadow: 0 0 4px 1px #dfdfdf;
  141. padding-bottom: 0;
  142. margin-bottom: 10px;
  143. .orders-upper {
  144. view {
  145. &>text:first-child {
  146. margin-right: 10px;
  147. }
  148. &>text:last-child {
  149. font-size: 12px;
  150. }
  151. }
  152. }
  153. .orders-centre {
  154. color: #ff9000;
  155. padding: 10px 0;
  156. .dis {
  157. & text {
  158. margin-right: 5px;
  159. }
  160. }
  161. }
  162. .orders-below {
  163. padding: 10px 0;
  164. & button {
  165. margin-left: 10px;
  166. }
  167. }
  168. }
  169. .pdd {
  170. padding: 10px;
  171. }
  172. .strong {
  173. font-weight: bold;
  174. }
  175. </style>