quoteHistory.vue 4.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217
  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 class="orders-below dis j-end">
  38. <u-button size="mini" type="error" :plain="true" :hair-line="false" shape="circle"
  39. @click="bjdpreview(item.id)">报价单</u-button>
  40. <u-button v-if="item.orderstatus==2" size="mini" type="error" :plain="true" :hair-line="false"
  41. shape="circle" @click="Payment(item.id)">付款码</u-button>
  42. <u-button size="mini" type="primary" :plain="true" :hair-line="false" shape="circle"
  43. @click="detial(item.id)">查看详情</u-button>
  44. </view>
  45. </view>
  46. </view>
  47. </view>
  48. </template>
  49. <script>
  50. export default {
  51. data() {
  52. return {
  53. modelcname: "",
  54. orderno: "",
  55. insuredname: "",
  56. licenseno: "",
  57. sublist: [],
  58. statusList: [{
  59. label: '报价中',
  60. value: 0,
  61. color: "#1E9600"
  62. },
  63. {
  64. label: '待核保',
  65. value: 1,
  66. color: "#f5af19"
  67. },
  68. {
  69. label: '已核保待缴费',
  70. value: 2,
  71. color: "#f12711"
  72. },
  73. {
  74. label: '已承保',
  75. value: 3,
  76. color: "#7F7FD5"
  77. },
  78. {
  79. label: '核保退回',
  80. value: 4,
  81. color: "#bdc3c7"
  82. }
  83. ],
  84. }
  85. },
  86. onLoad(params) {
  87. let item = JSON.parse(params.orderno);
  88. this.orderno = item.orderno;
  89. this.modelcname = item.modelcname;
  90. this.insuredname = item.insuredname;
  91. this.licenseno = item.licenseno;
  92. this.querylist();
  93. },
  94. methods: {
  95. async querylist() {
  96. let params = {
  97. orderNo: this.orderno,
  98. orderStatus: ""
  99. }
  100. let res = await this.$http.post('/insurance/order/queryQuoteHistory', params)
  101. this.sublist = res.data;
  102. },
  103. //查看详情
  104. detial(id) {
  105. uni.navigateTo({
  106. url: "/pages/carInsure1/quoteDetail1?companyId=" + id
  107. })
  108. },
  109. //付款码
  110. Payment(id) {
  111. uni.navigateTo({
  112. url: "/pages/carInsure1/payCode1?companyId=" + id
  113. })
  114. },
  115. //报价单
  116. bjdpreview(id) {
  117. uni.navigateTo({
  118. url: "/pages/orders/quotation?companyId=" + id
  119. })
  120. },
  121. }
  122. }
  123. </script>
  124. <style>
  125. page {
  126. background: #f2f2f2;
  127. }
  128. </style>
  129. <style lang="scss" scoped>
  130. .car-header {
  131. width: 100%;
  132. height: auto;
  133. background: linear-gradient(to right, #ede574, #e1f5c4);
  134. padding: 20px;
  135. box-sizing: border-box;
  136. position: fixed;
  137. z-index: 99;
  138. .icon-radius {
  139. width: 70px;
  140. height: 70px;
  141. background: white;
  142. border-radius: 50%;
  143. box-shadow: 0 0 4px 1px #999;
  144. padding: 12px;
  145. margin-right: 20px;
  146. image {
  147. width: 100%;
  148. height: 100%;
  149. }
  150. }
  151. .head-name {
  152. &>text {
  153. font-weight: bold;
  154. font-size: 20px;
  155. }
  156. .name1 text {
  157. font-weight: bold;
  158. }
  159. }
  160. }
  161. .sub-orders {
  162. width: 100%;
  163. background: white;
  164. border-radius: 6px;
  165. padding: 20px;
  166. box-shadow: 0 0 4px 1px #dfdfdf;
  167. padding-bottom: 0;
  168. margin-bottom: 10px;
  169. .orders-upper {
  170. view {
  171. &>text:first-child {
  172. margin-right: 10px;
  173. }
  174. &>text:last-child {
  175. font-size: 12px;
  176. }
  177. }
  178. }
  179. .orders-centre {
  180. color: #ff9000;
  181. padding: 10px 0;
  182. border-bottom: 2px dashed #dfdfdf;
  183. .dis {
  184. & text {
  185. margin-right: 5px;
  186. }
  187. }
  188. }
  189. .orders-below {
  190. padding: 10px 0;
  191. & button {
  192. margin-left: 10px;
  193. }
  194. }
  195. }
  196. .pdd {
  197. padding: 10px;
  198. }
  199. .strong {
  200. font-weight: bold;
  201. }
  202. </style>