quoteHistory.vue 5.3 KB

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