quoteHistory.vue 4.7 KB

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