quoteHistory.vue 5.9 KB

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