premiumCalc1.vue 41 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318
  1. <template>
  2. <view class="page">
  3. <!-- 头部吸顶区域 -->
  4. <u-sticky zIndex="999" customNavHeight="0">
  5. <uni-NavBar headerTitle="计算保费" background="#fff" :isSlot="false" :rightSlot="true">
  6. <template #rightSlot>
  7. <view class="dis f-c a-c mr-3" @click="getWechatCustomer">
  8. <image src="/static/icon/customerService.png" mode="" style="width: 48rpx;height: 48rpx;">
  9. </image>
  10. <text style="font-size: 20rpx;color: #333;">客服</text>
  11. </view>
  12. <view class="dis f-c a-c " @click="home">
  13. <image src="/static/icon/home.png" mode="" style="width: 48rpx;height: 48rpx;"></image>
  14. <text style="font-size: 20rpx;color: #333;">首页</text>
  15. </view>
  16. </template>
  17. </uni-NavBar>
  18. <!-- 修改信息提示 -->
  19. <view class="hint dis a-start j-s">
  20. <text>{{carInfo.licenseNo}}的被保人为:{{insuredPersonInfo.name}}</text>
  21. <view class="rightBtn dis a-c j-c " @click="toCarInfo">点击修改</view>
  22. </view>
  23. </u-sticky>
  24. <!-- 报价区域 -->
  25. <view class="quoteArea">
  26. <!-- 投保配置信息 -->
  27. <view class="insuranceConfig">
  28. <u--form labelPosition="left" ref="ownerForm" labelWidth="100" errorType="message">
  29. <u-form-item label="即时起保" borderBottom>
  30. <u-radio-group placement="row" v-model="immediateCoverage" @change="immediateCoverageChange">
  31. <u-radio v-for="(item, index) in immediateCoverageList" :key="index" :label="item.label"
  32. :name="item.value" activeColor="#FDE935" iconColor='#333' labelColor="#333"
  33. style="margin-left: 10px">
  34. </u-radio>
  35. </u-radio-group>
  36. </u-form-item>
  37. <u-form-item label="交强起保日期" borderBottom @click="jqstartShow = true"
  38. v-if="['0330','0330034002','0330034001'].includes(productId)">
  39. <u--input v-model="jqstartDate" disabled disabledColor="#ffffff" clearable
  40. suffixIconStyle="color:#333;font-size:40rpx" placeholder="请选择起保日期"
  41. placeholderStyle="text-align:right;" border="none" style="pointer-events: none">
  42. </u--input>
  43. <image src="/static/icon/quote/dateIcon.png"
  44. style="width: 30rpx;height: 30rpx;margin-left: 10rpx;" mode="">
  45. </image>
  46. </u-form-item>
  47. <u-form-item label="商业起保日期" borderBottom @click="systartShow = true"
  48. v-if="['034001','034002','0330034002','0330034001'].includes(productId)">
  49. <u--input v-model="systartDate" disabled disabledColor="#ffffff" clearable
  50. suffixIconStyle="color:#333;font-size:40rpx" placeholder="请选择起保日期"
  51. placeholderStyle="text-align:right;" border="none" style="pointer-events: none">
  52. </u--input>
  53. <image src="/static/icon/quote/dateIcon.png"
  54. style="width: 30rpx;height: 30rpx;margin-left: 10rpx;" mode="">
  55. </image>
  56. </u-form-item>
  57. <u-form-item label="报价车型" borderBottom @click="brandModelPopup=true">
  58. <u--text :lines="1" bold :text="carInfo.brandName"></u--text>
  59. <u-icon class="ml-1" name="arrow-right" color="#333" size="11"></u-icon>
  60. </u-form-item>
  61. <u-form-item label="是否过户车" borderBottom>
  62. <u-radio-group placement="row" v-model="transferScene"
  63. @change="val=>transferChange(val,'transfer')">
  64. <u-radio v-for="(item, index) in transferList" :key="index" :label="item.label"
  65. :name="item.value" activeColor="#FDE935" iconColor='#333' labelColor="#333"
  66. style="margin-left: 10px">
  67. </u-radio>
  68. </u-radio-group>
  69. </u-form-item>
  70. <u-form-item label="是否商业过户" borderBottom>
  71. <u-radio-group placement="row" v-model="biTransferScene"
  72. @change="val=>transferChange(val,'biTransfer')">
  73. <u-radio v-for="(item, index) in biTransferList" :key="index" :label="item.label"
  74. :name="item.value" activeColor="#FDE935" iconColor='#333' labelColor="#333"
  75. style="margin-left: 10px">
  76. </u-radio>
  77. </u-radio-group>
  78. </u-form-item>
  79. <u-form-item label="是否二手车" :borderBottom="carInfo.transfer?true:false">
  80. <u-radio-group placement="row" v-model="secondHandCarScene"
  81. @change="val=>transferChange(val,'secondHandCar')">
  82. <u-radio v-for="(item, index) in secondHandCarList" :key="index" :label="item.label"
  83. :name="item.value" activeColor="#FDE935" iconColor='#333' labelColor="#333"
  84. style="margin-left: 10px">
  85. </u-radio>
  86. </u-radio-group>
  87. </u-form-item>
  88. <u-form-item label="转移登记日期" v-if="carInfo.transfer==true">
  89. <u--input v-model="carInfo.transferDate" disabled disabledColor="#ffffff" clearable
  90. suffixIconStyle="color:#333;font-size:40rpx" placeholder="请选择起保日期"
  91. placeholderStyle="text-align:right;" border="none" style="pointer-events: none">
  92. </u--input>
  93. <image src="/static/icon/quote/dateIcon.png"
  94. style="width: 30rpx;height: 30rpx;margin-left: 10rpx;" mode="">
  95. </image>
  96. </u-form-item>
  97. </u--form>
  98. </view>
  99. <view class="quoteCompany mt-2">
  100. <view class="quoteCompanyItem dis f-c mb-2" v-for="(companyItem,compamyIndex) in quotableCompanyList"
  101. :key="compamyIndex" @click="dorderDetails(companyItem.result.ordersNo)">
  102. <view class="dis a-c j-s ">
  103. <!-- 左侧信息 -->
  104. <view class="dis a-c">
  105. <!-- 保险公司logo -->
  106. <image class="companyIcon mr-2" :src="companyItem.logo" mode=""></image>
  107. <view class="dis f-c ">
  108. <!-- 保险公司名称 -->
  109. <text class="companyName">{{companyItem.nameSimple}}</text>
  110. <!-- 选择方案 -->
  111. <view class="dis a-c">
  112. <view class="solution dis a-c" v-if="!companyItem.insurancePlanInfo"
  113. @click.stop="SchemeSelection(companyItem)">
  114. <text>选择方案</text>
  115. <u-icon name="arrow-right" color="#333" size="11"></u-icon>
  116. </view>
  117. <view class="solution dis a-c" @click.stop="checkSelection(compamyIndex)"
  118. v-if="companyItem.insurancePlanInfo">
  119. <text>查看方案</text>
  120. <u-icon name="arrow-right" color="#333" size="11"></u-icon>
  121. </view>
  122. <view class="solution dis a-c ml-2" @click.stop="SchemeSelection(companyItem)"
  123. v-if="companyItem.insurancePlanInfo">
  124. <text>重选</text>
  125. <u-icon name="arrow-right" color="#333" size="11"></u-icon>
  126. </view>
  127. </view>
  128. </view>
  129. </view>
  130. <!-- 右侧价格信息 -->
  131. <view class="sum-price dis f-c a-end" v-if="companyItem.quoteCode=='200'">
  132. <view class="totalPrice mb-1">
  133. <text>¥</text>
  134. <text>{{companyItem.result.costs.sumPremium}}</text>
  135. </view>
  136. <text class="discountedPrice">优惠 {{ companyItem.result.insFeeOrders.totalPayablePremium }}</text>
  137. </view>
  138. <!-- 右侧loading加载组件 -->
  139. <lsLoading v-if="companyItem.quoteCode=='1'"></lsLoading>
  140. <!-- 右侧报价按钮 -->
  141. <view class="quoteBtn dis a-c j-c"
  142. v-if="companyItem.quoteCode=='0' || companyItem.quoteCode=='3'"
  143. @click.stop="individualQuote(companyItem)">
  144. 立即报价
  145. </view>
  146. </view>
  147. <!-- 报价失败原因 -->
  148. <view class="quoteFailureReason dis a-end " v-if="companyItem.quoteCode=='3'">
  149. <view class="iconText dis a-c ">
  150. <u-icon name="error-circle-fill" color="#F74141" size="16"></u-icon>
  151. <text>报价失败</text>
  152. </view>
  153. <u--text :lines="3" size="14" color="#666" style="text-indent: 160rpx;"
  154. :text="companyItem.msg ||'程序异常,请联系管理员'"></u--text>
  155. <view class="viewReason dis a-c j-end" @click.stop="quoteFailedReason(compamyIndex)">查看</view>
  156. </view>
  157. </view>
  158. </view>
  159. </view>
  160. <!-- 底部操作栏 -->
  161. <view class="footer dis a-c ">
  162. <view class="btn dis f-c a-c" @click="back">
  163. <image src="/static/icon/quote/back.png" mode=""></image>
  164. <text>上一步</text>
  165. </view>
  166. <view class="btn dis f-c a-c" @click="findOptimal">
  167. <image src="/static/icon/quote/optimal.png" mode=""></image>
  168. <text>查最优</text>
  169. </view>
  170. <view class="btn dis f-c a-c">
  171. <image src="/static/icon/quote/temporaryStorage.png" mode=""></image>
  172. <text>暂存</text>
  173. </view>
  174. <!-- 多家报价 -->
  175. <view class="batchQuotes dis a-c j-c" @click="multipleQuotes">
  176. <text>多家报价</text>
  177. <text class="sum" v-if="selectedInsurerCount>0">(已选{{selectedInsurerCount}}家)</text>
  178. </view>
  179. </view>
  180. <!-- 查看方案弹窗 -->
  181. <uni-Popup v-if="currentCompanyInfo" :show="checkSelectionPopup" @close="checkSelectionPopup=false"
  182. :closeable="false" headerTitle="厂牌型号" :headerSlot="true" overflow="auto" :headerStyle="{fontSize:'36rpx'}"
  183. maxHeight="1160rpx" mode="bottom" class="checkSelectionPopupClass">
  184. <template #header>
  185. <view class="dis a-c j-c">
  186. <image class="company-icon" :src="currentCompanyInfo.logo" mode=""></image>
  187. <text class="companyName">{{currentCompanyInfo.nameSimple}}</text>
  188. </view>
  189. </template>
  190. <template #content>
  191. <view class="checkSelectionPopup-body" v-if="currentCompanyInfo.insurancePlanInfo">
  192. <!-- 滚动区域 -->
  193. <view class="yellow-content">
  194. <!-- 交强险内容 -->
  195. <view class="content-item dis ">
  196. <!-- 标题 -->
  197. <view class="title dis j-c a-c ">
  198. <text>交强险/车船税</text>
  199. </view>
  200. <view class="right">
  201. <view class="riskView dis a-c j-s">
  202. <text>交强险</text>
  203. <text>投保</text>
  204. </view>
  205. <view class="riskView dis a-c j-s">
  206. <text>车船税</text>
  207. <text v-if="vehicleAndVesselTaxVo.taxRelifFlag=='1'">正常缴税</text>
  208. <view v-else class="dis a-c loadMore"
  209. @click="vehicleTaxIsExpanded=!vehicleTaxIsExpanded">
  210. <text>{{vehicleTaxIsExpanded?'收起':'展开'}}</text>
  211. <text>{{vehicleAndVesselTaxModel.taxRelifFlag}}信息</text>
  212. <u-icon :name="vehicleTaxIsExpanded?'arrow-up':'arrow-down'" class="ml-1 mr-1"
  213. color="#333" size="12"></u-icon>
  214. </view>
  215. </view>
  216. <view class="vehicleTaxInfo" v-if="vehicleTaxIsExpanded">
  217. <view class="item dis a-c j-s "
  218. v-if="vehicleAndVesselTaxVo.taxRelifFlag == 2 || vehicleAndVesselTaxVo.taxRelifFlag == 3">
  219. <text>减免税凭证号</text>
  220. <text>{{vehicleAndVesselTaxVo.extendChar2}}</text>
  221. </view>
  222. <view class="item dis a-c j-s" v-if="vehicleAndVesselTaxVo.taxRelifFlag == 4">
  223. <text>完税凭证号</text>
  224. <text>{{vehicleAndVesselTaxVo.paidFreeCertificate}}</text>
  225. </view>
  226. <view class="item dis a-c j-s "
  227. v-if="vehicleAndVesselTaxVo.taxRelifFlag == 2 || vehicleAndVesselTaxVo.taxRelifFlag == 3">
  228. <text>减免税原因</text>
  229. <text>{{vehicleAndVesselTaxModel.relifReason}}</text>
  230. </view>
  231. <view class="item dis a-c j-s " v-if="vehicleAndVesselTaxVo.taxRelifFlag == 3">
  232. <text>减税比例</text>
  233. <text>{{vehicleAndVesselTaxVo.taxRelief}}</text>
  234. </view>
  235. <view class="item dis a-c j-s " v-if="vehicleAndVesselTaxVo.taxRelifFlag !=1">
  236. <text>税务机关代码</text>
  237. <text>{{vehicleAndVesselTaxVo.taxComCode}}</text>
  238. </view>
  239. <view class="item dis a-c j-s " v-if="vehicleAndVesselTaxVo.taxRelifFlag !=1">
  240. <text>税务机关名称</text>
  241. <text>{{vehicleAndVesselTaxVo.taxComName}}</text>
  242. </view>
  243. <view class="item dis a-c j-s " v-if="vehicleAndVesselTaxVo.taxRelifFlag ==4">
  244. <text>完税凭证填发日期</text>
  245. <text>{{vehicleAndVesselTaxVo.taxDocumentDate}}</text>
  246. </view>
  247. <view class="item dis a-c j-s " v-if="vehicleAndVesselTaxVo.taxRelifFlag ==4">
  248. <text>完税凭证地区</text>
  249. <text>{{vehicleAndVesselTaxModel.taxPaidAreaCode}}</text>
  250. </view>
  251. </view>
  252. </view>
  253. </view>
  254. <!-- 商业险内容 -->
  255. <view class="content-item dis " style="border-color: #E3D5FF;"
  256. v-if="currentCompanyInfo.insurancePlanInfo.kinds.length">
  257. <!-- 标题 -->
  258. <view class="title dis j-c a-c " style="background-color:#F9F6FF;border-color:#F0E9FF;">
  259. <text>商业险</text>
  260. </view>
  261. <view class="right">
  262. <view class="riskView dis a-c j-s"
  263. v-for="(kindsItem,kindsIndex) in currentCompanyInfo.insurancePlanInfo.kinds"
  264. :key="kindsIndex">
  265. <text>{{kindsItem.kindName}}</text>
  266. <text v-if="['A','SY_WBDWGZ'].includes(kindsItem.kindCode)">投保</text>
  267. <text v-else-if="['D4', 'SY_FJ_YBW2'].includes(kindsItem.kindCode)"
  268. class="td">{{convertedValue(kindsItem.unitAmount)}}</text>
  269. <text v-else-if="['MJ1', 'MJ2', 'MJ3', 'MJ4'].includes(kindsItem.kindCode)"
  270. class="td">{{kindsItem.deductibleRate}}%</text>
  271. <text v-else-if="['TY1', 'TY2', 'TY3', 'TY4'].includes(kindsItem.kindCode)"
  272. class="td">{{kindsItem.serviceTimes}}次</text>
  273. <text v-else class="td">{{convertedValue(kindsItem.amount)}}</text>
  274. </view>
  275. </view>
  276. </view>
  277. <!-- 驾意险内容 -->
  278. <view class="content-item dis " style="border-color: #FFE1A4;"
  279. v-if="currentCompanyInfo.insurancePlanInfo.drivings.length">
  280. <!-- 标题 -->
  281. <view class="title dis j-c a-c " style="background-color:#FFFEF0;border-color:#FFF1D5;">
  282. <text>意外险</text>
  283. </view>
  284. <view class="right">
  285. <view class="riskView dis a-c j-s"
  286. v-for="(drivingsItem,drivingsIndex) in currentCompanyInfo.insurancePlanInfo.drivings"
  287. :key="drivingsIndex">
  288. <text style="width: 80%;">{{drivingsItem.productName}}</text>
  289. <text>x{{drivingsItem.quantity}}份</text>
  290. </view>
  291. </view>
  292. </view>
  293. </view>
  294. <view class="footer-btn dis a-c j-s">
  295. <view class="btn btns dis a-c j-c" @click="updateScheme">
  296. 修改方案
  297. </view>
  298. <view class="btn dis a-c j-c " @click="checkSelectionPopup=false">
  299. 关闭
  300. </view>
  301. </view>
  302. </view>
  303. </template>
  304. </uni-Popup>
  305. <!-- 车牌型号弹窗 -->
  306. <uni-Popup :show="brandModelPopup" @close="brandModelPopup=false" :closeable="false" headerTitle="厂牌型号"
  307. overflow="auto" :headerStyle="{fontSize:'36rpx'}" maxHeight="980rpx" mode="center" width="90%">
  308. <template #content>
  309. <view class="brandModelClass">
  310. <view class="cellView">
  311. <text>车系</text>
  312. <text>{{carInfo.modelCode}}</text>
  313. </view>
  314. <view class="cellView">
  315. <text>排量</text>
  316. <text>{{carInfo.displacement}}/L</text>
  317. </view>
  318. <view class="cellView">
  319. <text>座位数</text>
  320. <text>{{carInfo.seatCount}}/座</text>
  321. </view>
  322. <view class="cellView">
  323. <text>年款</text>
  324. <text>{{carInfo.carYear}}</text>
  325. </view>
  326. <view class="cellView">
  327. <text>新车购置价</text>
  328. <text>{{carInfo.purchasePrice}}/元</text>
  329. </view>
  330. <view class="footer-btn dis a-c j-c" @click="brandModelPopup=false">
  331. 关闭
  332. </view>
  333. </view>
  334. </template>
  335. </uni-Popup>
  336. <!-- 报价失败原因弹窗 -->
  337. <uni-Popup v-if="currentCompanyInfo" :show="quoteFailedReasonPopup" @close="quoteFailedReasonPopup=false"
  338. :closeable="false" headerTitle="厂牌型号" :headerSlot="true" overflow="auto" :headerStyle="{fontSize:'36rpx'}"
  339. maxHeight="980rpx" mode="center" width="90%" class="quoteFailedReasonClass">
  340. <template #header>
  341. <!-- 保险公司信息 -->
  342. <view class=" dis a-c ">
  343. <image class="company-icon" :src="currentCompanyInfo.logo" mode=""></image>
  344. <text class="companyName">{{currentCompanyInfo.nameSimple}}</text>
  345. <view class="quote-status">
  346. 报价失败
  347. </view>
  348. </view>
  349. </template>
  350. <template #content>
  351. <!-- 失败原因 -->
  352. <view class="quoteFailedReason-content">
  353. <view style="overflow-y: auto;max-height: 340rpx;">
  354. <u--text size="15" color="#666" :text="currentCompanyInfo.msg || '程序异常,请联系管理员'"></u--text>
  355. </view>
  356. <view class="PopupClose-Btn dis a-c j-c " @click="quoteFailedReasonPopup=false">
  357. 关闭
  358. </view>
  359. </view>
  360. </template>
  361. </uni-Popup>
  362. <!-- 查最优弹窗 -->
  363. <uni-Popup :show="findOptimalShow" @close='findOptimalShow=false' headerTitle="查最优">
  364. <template #content>
  365. <!-- 比价列表 -->
  366. <view class="findOptimalPopup">
  367. <zb-table style="border: 1rpx solid #FDE935;border-radius: 4rpx;" :columns="optimalColumn"
  368. :formatter="tableformatter" :border="false" :cell-header-style="cellheaderStyle"
  369. :data="optimalData"></zb-table>
  370. </view>
  371. </template>
  372. </uni-Popup>
  373. <!-- 自定义加载动画 -->
  374. <u-overlay :show="loadingShow" style="background-color: rgba(255, 255, 255, 0.6);">
  375. <view class="dis f-c a-c j-c " style="height: 100%;">
  376. <u-loading-icon></u-loading-icon>
  377. <text style="color: #909399;" class="mt-1">加载中</text>
  378. </view>
  379. </u-overlay>
  380. <!-- 交强起保日期 -->
  381. <u-datetime-picker :show="jqstartShow" v-model="jqstartvalue" mode="datetime" :formatter="formatter"
  382. @cancel="jqstartShow=false" @close="jqstartShow=false" :closeOnClickOverlay="true" @confirm="jqstartconfirm"
  383. confirmText="确定"></u-datetime-picker>
  384. <!-- 商业起保日期 -->
  385. <u-datetime-picker :show="systartShow" v-model="systartvalue" mode="datetime" :formatter="formatter"
  386. @cancel="systartShow=false" @close="systartShow=false" :closeOnClickOverlay="true" @confirm="systartconfirm"
  387. confirmText="确定"></u-datetime-picker>
  388. <!-- 自定义加载动画 -->
  389. <u-overlay :show="loadingShow" style="background-color: rgba(255, 255, 255, 0.6);">
  390. <view class="dis f-c a-c j-c " style="height: 100%;">
  391. <u-loading-icon></u-loading-icon>
  392. <text style="color: #909399;" class="mt-1">{{loadingText}}</text>
  393. </view>
  394. </u-overlay>
  395. </view>
  396. </template>
  397. <script>
  398. import lsLoading from '@/components/ls-loading/ls-loading.vue';
  399. import Mixin from './Mixin.js';
  400. export default {
  401. components: {
  402. lsLoading,
  403. },
  404. mixins: [Mixin], // 注入 Mixin
  405. data() {
  406. return {
  407. loadingShow: false, //加载
  408. loadingText: '加载中', //加载提示文字
  409. jqstartvalue: Number(new Date().setHours(0, 0, 0)), //交强起期
  410. systartvalue: Number(new Date().setHours(0, 0, 0)), //商业起期
  411. jqstartShow: false, //交强日期选择器
  412. systartShow: false, //商业日期选择器
  413. brandModelPopup: false, //厂牌型号弹窗
  414. findOptimalShow: false, //查最优弹窗
  415. quoteFailedReasonPopup: false, //报价失败原因弹窗
  416. checkSelectionPopup: false, //查看方案弹窗
  417. vehicleTaxIsExpanded: false, //车船税展开收起
  418. carInfo: {}, //车辆信息
  419. ownerInfo: {}, //车主信息
  420. policyHolderInfo: {}, //投保人信息
  421. insuredPersonInfo: {}, //被保人信息
  422. jqstartDate: "", //交强起保时日期
  423. jqendDate: "", //交强终保日期
  424. systartDate: "", //商业起保日期
  425. syendDate: "", //商业终保日期
  426. companyindex: 0,
  427. currentCompanyInfo: {},
  428. insCompanyVo: {},
  429. }
  430. },
  431. onShow() {},
  432. async onLoad(params) {
  433. this.loadingShow = true;
  434. try {
  435. if (params.ordersNo) {
  436. let res = await this.$http.get('/supplementOrder/getOrderDetail', {
  437. ordersNo: params.ordersNo
  438. });
  439. this.productId = res.data.order.productId; //险种id
  440. this.productName = res.data.order.productsName; //险种name
  441. this.quotableCompanyList = JSON.parse(JSON.stringify(res.data.insCompanyVo));
  442. this.order = res.data.order;
  443. this.costs = res.data.costs; //价格
  444. this.carInfo = res.data.carInfoVo; //车辆信息
  445. this.ownerInfo = res.data.ownersInfo; //车主信息
  446. this.policyHolderInfo = res.data.policyHolderInfo; //投保人信息
  447. this.insuredPersonInfo = res.data.insuredPersonInfo; //被保人信息
  448. this.kindInfoVo = res.data.kindInfoVo; //险种大类
  449. this.ciRiskInfoVo = res.data.ciRiskInfoVo; //交强险
  450. this.biRiskInfoVo = res.data.biRiskInfoVo; //商业险
  451. this.vehicleAndVesselTaxVo = res.data.vehicleAndVesselTaxVo; //车船税信息
  452. this.orderno = res.data.order.ordersNo;
  453. this.quoteno = res.data.order.quoteNo;
  454. this.insCompanyVo = res.data.insCompanyVo[0]; //历史保险公司
  455. await this.ruleFilterCompany();
  456. await this.commpanyList(res.data);
  457. this.imageEcho(res.data.imageVoList) // 影像获取完毕
  458. if (this.ciRiskInfoVo) {
  459. if (this.isDateBeforeToday(this.ciRiskInfoVo.startDate)) {
  460. this.jqstartDate = this.nextday();
  461. this.jqendDate = this.oneYearPast(this.jqstartDate)
  462. this.ciRiskInfoVo.startDate = this.nextday()
  463. this.ciRiskInfoVo.endDate = this.oneYearPast(this.jqstartDate)
  464. } else {
  465. this.jqstartDate = this.ciRiskInfoVo.startDate;
  466. this.jqendDate = this.ciRiskInfoVo.endDate;
  467. }
  468. }
  469. if (this.biRiskInfoVo) {
  470. if (this.isDateBeforeToday(this.biRiskInfoVo.startDate)) {
  471. this.systartDate = this.nextday();
  472. this.syendDate = this.oneYearPast(this.systartDate)
  473. this.biRiskInfoVo.startDate = this.nextday()
  474. this.biRiskInfoVo.endDate = this.oneYearPast(this.systartDate)
  475. } else {
  476. this.systartDate = this.biRiskInfoVo.startDate;
  477. this.syendDate = this.biRiskInfoVo.endDate;
  478. }
  479. }
  480. } else {
  481. this.jqstartDate = this.nextday();
  482. this.jqendDate = this.oneYearPast(this.jqstartDate);
  483. this.systartDate = this.nextday();
  484. this.syendDate = this.oneYearPast(this.jqstartDate);
  485. const eventChannel = this.getOpenerEventChannel()
  486. // 监听acceptData事件,获取上一页面通过eventChannel传送到当前页面的数据
  487. await eventChannel.on('acceptData', (data) => {
  488. console.log(data);
  489. this.carInfo = data.carInfo; //车辆信息
  490. this.ownerInfo = data.ownerInfo; //车主信息
  491. this.policyHolderInfo = data.policyHolderInfo; //投保人信息
  492. this.vehicleAndVesselTaxVo.identifyNumber = this.policyHolderInfo.identifyNumber;
  493. this.vehicleAndVesselTaxVo.taxpayerName = this.policyHolderInfo.name;
  494. this.insuredPersonInfo = data.insuredPersonInfo; //被保人信息
  495. this.carImageListId = data.carImageListId; //车辆
  496. this.ownerImageListId = data.ownerImageListId; //车主
  497. this.policyHolderImageListId = data.policyHolderImageListId; //投保
  498. this.insuredPersonImageListId = data.insuredPersonImageListId; //被保人
  499. this.productId = data.productId; //险种id
  500. this.productName = data.productName; //险种name
  501. this.riskTypeEchoProcessing(this.productId)
  502. this.quotableCompanyList = JSON.parse(JSON.stringify(data
  503. .quotableCompanyList)); //可报价公司
  504. this.commpanyList(); //保险公司数据结构处理
  505. console.log(this.quotableCompanyList);
  506. })
  507. }
  508. this.loadingShow = false;
  509. } catch (error) {
  510. this.loadingShow = false;
  511. }
  512. },
  513. computed: {
  514. //已选保险公司数量
  515. selectedInsurerCount() {
  516. return this.quotableCompanyList.filter(val => val.insurancePlanInfo !== null).length;
  517. },
  518. //获取车船税类型
  519. taxRelifFlagName() {
  520. let info = this.car_tax_codeoptions.find(ele => ele.value === this.vehicleAndVesselTaxVo.taxRelifFlag)
  521. return info?.description;
  522. },
  523. },
  524. methods: {
  525. // 保险公司列表过滤回显
  526. async ruleFilterCompany() {
  527. let params = {
  528. carInfo: this.carInfo,
  529. ownerInfo: this.ownerInfo,
  530. applyInfo: this.policyHolderInfo,
  531. insureInfo: this.insuredPersonInfo,
  532. productId: this.productId
  533. }
  534. let res = await this.$http.post('/scheme/ruleFilterCompanyApp', params);
  535. if (res.code == '200') {
  536. this.quotableCompanyList = res.data.filter(val => val.id == this.insCompanyVo.id);
  537. } else {
  538. this.quotableCompanyList = [];
  539. uni.showToast({
  540. icon: 'none',
  541. title: res.msg,
  542. });
  543. }
  544. },
  545. // 跳转报价详情
  546. dorderDetails(orderno) {
  547. console.log(orderno);
  548. uni.navigateTo({
  549. url: '/pages/quote/quoteRecordDetail?ordersNo=' + orderno
  550. })
  551. },
  552. // 修改信息
  553. toCarInfo() {
  554. uni.navigateTo({
  555. url: '/pages/quote/quoteInfo',
  556. success: (res) => {
  557. res.eventChannel.emit(
  558. "acceptData", {
  559. carInfo: this
  560. .carInfo, //车辆信息
  561. ownerInfo: this
  562. .ownerInfo, //车主信息
  563. policyHolderInfo: this
  564. .policyHolderInfo, //投保人信息
  565. insuredPersonInfo: this
  566. .insuredPersonInfo, //被保人信息
  567. carImageListId: this
  568. .carImageListId, //车辆
  569. ownerImageListId: this
  570. .ownerImageListId, //车主
  571. policyHolderImageListId: this
  572. .policyHolderImageListId, //投保
  573. insuredPersonImageListId: this
  574. .insuredPersonImageListId, //被保人
  575. productId: this.productId, //险种id
  576. productName: this.productName, //险种名称
  577. quoteno: this.quoteno,
  578. })
  579. }
  580. }, "navigateTo", true);
  581. },
  582. // 单独报价
  583. async individualQuote(item) {
  584. if (this.carInfo.licenseNo.length == '8' && this.carInfo.energyTypeCode == '0') {
  585. return uni.showToast({
  586. icon: "none",
  587. title: '检测到能源种类错误,与车辆信息不符。请修改后继续操作',
  588. duration: 3000
  589. });
  590. }
  591. if (!item.insurancePlanInfo) {
  592. uni.showToast({
  593. title: "请选择方案后,在进行报价",
  594. icon: 'none',
  595. });
  596. } else {
  597. this.riskTypeEchoProcessing(this.productId); //更新险种大类日期
  598. let param = {
  599. licenseNo: this.carInfo.licenseNo,
  600. vinNo: this.carInfo.vinNo,
  601. engineNo: this.carInfo.engineNo,
  602. };
  603. let orders = await this.$http.get('/unify/order/getQuoteNo', param);
  604. if (orders.code == '200') {
  605. this.quoteno = orders.msg;
  606. let mergedArray = [];
  607. let mergedArrayList = mergedArray.concat(this.carImageListId, this
  608. .ownerImageListId, this
  609. .policyHolderImageListId, this.insuredPersonImageListId)
  610. if (mergedArrayList.length > 0) {
  611. await this.$http.post('/unify/order/imageSave', {
  612. imageVoList: mergedArrayList,
  613. order: {
  614. quoteNo: this.quoteno,
  615. }
  616. })
  617. }
  618. this.quotableCompanyList = this.quotableCompanyList.map((ele, index) => {
  619. if (ele.id == item.id) {
  620. // 动态调用报价接口
  621. ele.quoteCode = '1';
  622. this.quoteInsurance(index, ele.id);
  623. }
  624. return ele
  625. });
  626. } else if (orders.code == '1001') {
  627. this.Generateshow = true;
  628. } else {
  629. uni.showToast({
  630. title: orders.msg,
  631. icon: 'none',
  632. });
  633. }
  634. }
  635. },
  636. // 多家报价
  637. async multipleQuotes() {
  638. var allAreFalse = this.quotableCompanyList.every(function(element) {
  639. return element.insurancePlanInfo == null;
  640. });
  641. if (!allAreFalse) {
  642. if (this.carInfo.licenseNo.length == '8' && this.carInfo.energyTypeCode == '0') {
  643. return uni.showToast({
  644. icon: "none",
  645. title: '检测到能源种类错误,与车辆信息不符。请修改后继续操作',
  646. duration: 3000
  647. });
  648. }
  649. this.riskTypeEchoProcessing(this.productId); //更新险种大类日期
  650. let param = {
  651. licenseNo: this.carInfo.licenseNo,
  652. vinNo: this.carInfo.vinNo,
  653. engineNo: this.carInfo.engineNo,
  654. };
  655. let orders = await this.$http.get('/unify/order/getQuoteNo', param);
  656. if (orders.code == '200') {
  657. this.quoteno = orders.msg;
  658. let mergedArray = [];
  659. let mergedArrayList = mergedArray.concat(this.carImageListId, this
  660. .ownerImageListId, this
  661. .policyHolderImageListId, this.insuredPersonImageListId)
  662. console.log(mergedArrayList);
  663. if (mergedArrayList.length > 0) {
  664. await this.$http.post('/unify/order/imageSave', {
  665. imageVoList: mergedArrayList,
  666. order: {
  667. quoteNo: this.quoteno,
  668. }
  669. })
  670. }
  671. this.quotableCompanyList = this.quotableCompanyList.map((ele, index) => {
  672. if (ele.insurancePlanInfo !== null) {
  673. // 动态调用报价接口
  674. ele.quoteCode = '1';
  675. this.quoteInsurance(index, ele.id);
  676. }
  677. return ele
  678. });
  679. } else if (orders.code == '1001') {
  680. this.Generateshow = true;
  681. } else {
  682. uni.showToast({
  683. title: orders.msg,
  684. icon: 'none',
  685. });
  686. }
  687. } else {
  688. uni.showToast({
  689. title: "请选择方案后,在进行报价",
  690. icon: 'none',
  691. });
  692. }
  693. },
  694. // 调用统一报价接口
  695. async quoteInsurance(companyIndex, companyId) {
  696. const company = this.quotableCompanyList[companyIndex];
  697. console.log(company);
  698. const isTaxSource = company.isTaxSource;
  699. const params = {
  700. order: {
  701. agreementId: company.dispatchAgreementId,
  702. insuranceCompanyCode: companyId,
  703. quoteNo: this.quoteno,
  704. productId: this.productId,
  705. orderSource: '1',
  706. },
  707. accidentalDrivings: company.insurancePlanInfo.drivings,
  708. kindInfoVo: this.productId === '0330' ? [] : company.insurancePlanInfo.kinds,
  709. ciRiskInfoVo: ['0330', '0330034002', '0330034001'].includes(this.productId) ? this
  710. .ciRiskInfoVo : null,
  711. biRiskInfoVo: ['034001', '034002', '0330034002', '0330034001'].includes(this.productId) ? this
  712. .biRiskInfoVo : null,
  713. carInfoVo: this.carInfo,
  714. ownersInfo: this.ownerInfo,
  715. policyHolderInfo: this.policyHolderInfo,
  716. insuredPersonInfo: this.insuredPersonInfo,
  717. vehicleAndVesselTaxVo: this.vehicleAndVesselTaxVo,
  718. isTaxSource: isTaxSource == 1 ? isTaxSource : null,
  719. systemType: '2'
  720. };
  721. try {
  722. let res = await this.$http.post('/unify/order/quote', params);
  723. company.msg = res.msg;
  724. if (res.code == "200") {
  725. company.result = res.data;
  726. const updatedItem = {
  727. ...company,
  728. quoteCode: 200
  729. };
  730. this.quotableCompanyList.splice(companyIndex, 1, updatedItem);
  731. } else {
  732. company.msg = res.msg;
  733. const updatedItem = {
  734. ...company,
  735. quoteCode: '3'
  736. };
  737. this.quotableCompanyList.splice(companyIndex, 1, updatedItem);
  738. return;
  739. }
  740. } catch (error) {
  741. const updatedItem = {
  742. ...company,
  743. quoteCode: '3'
  744. };
  745. this.quotableCompanyList.splice(companyIndex, 1, updatedItem);
  746. company.msg = '接口请求超时,请重新尝试';
  747. }
  748. },
  749. //选择方案
  750. async SchemeSelection(item) {
  751. uni.navigateTo({
  752. url: '/pages/quote/chooseOption1',
  753. success: (res) => {
  754. res.eventChannel.emit("acceptData", {
  755. params: {
  756. companyId: item.id,
  757. productId: this.productId,
  758. seatCount: this.carInfo.seatCount,
  759. energyType: this.carInfo.energyTypeCode,
  760. vehicleType: this.carInfo.carKindCode,
  761. carnature: this.carInfo.carNatureCode,
  762. },
  763. nameSimple: item.nameSimple,
  764. logo: item.logo,
  765. cnName: item.cnName,
  766. jqstartDate: this.jqstartDate,
  767. jqendDate: this.jqendDate,
  768. systartDate: this.systartDate,
  769. syendDate: this.syendDate,
  770. productName: this.productName,
  771. quotableCompanyList: this.quotableCompanyList,
  772. identifyNumber: this.policyHolderInfo.identifyNumber,
  773. taxpayerName: this.policyHolderInfo.name,
  774. })
  775. }
  776. }, "navigateTo", true);
  777. },
  778. // 修改方案
  779. updateScheme() {
  780. uni.navigateTo({
  781. url: '/pages/quote/chooseOption1',
  782. success: (res) => {
  783. res.eventChannel.emit("acceptData", {
  784. params: {
  785. companyId: this.currentCompanyInfo.id,
  786. productId: this.productId,
  787. },
  788. nameSimple: this.currentCompanyInfo.nameSimple,
  789. logo: this.currentCompanyInfo.logo,
  790. cnName: this.currentCompanyInfo.cnName,
  791. jqstartDate: this.jqstartDate,
  792. jqendDate: this.jqendDate,
  793. systartDate: this.systartDate,
  794. syendDate: this.syendDate,
  795. productName: this.productName,
  796. quotableCompanyList: this.quotableCompanyList,
  797. identifyNumber: this.policyHolderInfo.identifyNumber,
  798. taxpayerName: this.policyHolderInfo.name,
  799. })
  800. }
  801. }, "navigateTo", true);
  802. this.checkSelectionPopup = false;
  803. },
  804. //查最优
  805. async findOptimal() {
  806. let res = await this.$http.get('/supplementOrder/comparePrice?quoteNo=' + this.quoteno);
  807. if (res.code == '200') {
  808. this.optimalData = res.data;
  809. this.findOptimalShow = true;
  810. }
  811. },
  812. //查看方案弹窗
  813. checkSelection(index) {
  814. this.currentCompanyInfo = this.quotableCompanyList[index];
  815. console.log(this.currentCompanyInfo);
  816. this.checkSelectionPopup = true;
  817. },
  818. // 报价原因弹窗
  819. quoteFailedReason(index) {
  820. this.currentCompanyInfo = this.quotableCompanyList[index];
  821. this.quoteFailedReasonPopup = true;
  822. },
  823. //即时投保切换更新投保日期
  824. immediateCoverageChange(e) {
  825. if (e == 1) {
  826. const date = new Date();
  827. date.setHours(date.getHours() + 2);
  828. date.setMinutes(0)
  829. date.setSeconds(0)
  830. this.jqstartDate = this.transformTime(date)
  831. this.jqendDate = this.oneYearPast(date);
  832. this.systartDate = this.transformTime(date)
  833. this.syendDate = this.oneYearPast(date);
  834. } else {
  835. this.jqstartDate = this.nextday();
  836. this.jqendDate = this.oneYearPast(this.jqstartDate);
  837. this.systartDate = this.nextday();
  838. this.syendDate = this.oneYearPast(this.systartDate);
  839. }
  840. },
  841. //交强日期事件
  842. jqstartconfirm(e) {
  843. this.jqstartDate = uni.$u.timeFormat(e.value, 'yyyy-mm-dd hh:MM') + ':00';
  844. this.jqendDate = this.oneYearPast(this.jqstartDate)
  845. this.jqstartShow = false;
  846. },
  847. // 商业日期事件
  848. systartconfirm(e) {
  849. this.systartDate = uni.$u.timeFormat(e.value, 'yyyy-mm-dd hh:MM') + ':00';
  850. this.syendDate = this.oneYearPast(this.systartDate)
  851. this.systartShow = false;
  852. },
  853. //数字格式化
  854. convertedValue(num) {
  855. if (!num) {
  856. return "-";
  857. }
  858. if (num < 10000) {
  859. return num.toString();
  860. } else if (num < 100000000) {
  861. return (Math.floor(num / 10000 * 10) / 10) + '万';
  862. } else {
  863. return (Math.floor(num / 100000000 * 10) / 10) + '亿';
  864. }
  865. },
  866. }
  867. }
  868. </script>
  869. <style lang="scss" scoped>
  870. ::v-deep {
  871. .u-input__content__subfix-icon {
  872. margin-left: 12rpx;
  873. image {
  874. width: 30rpx;
  875. height: 30rpx;
  876. }
  877. }
  878. /* 调整输入框光标靠右 */
  879. .uni-input-input {
  880. text-align: right !important;
  881. font-weight: bold;
  882. }
  883. /* 设置表单项非input元素靠右布局 */
  884. .u-form-item__body__right {
  885. margin-left: auto;
  886. flex: unset;
  887. }
  888. .u-form-item__body {
  889. padding: 24rpx 0;
  890. box-sizing: border-box;
  891. }
  892. .u-form-item__body__left__content__label {
  893. color: #333;
  894. }
  895. /* 覆盖表单下边框颜色 */
  896. .u-form-item .u-line {
  897. border-bottom: 1rpx solid #eee;
  898. }
  899. }
  900. page {
  901. background-color: #f8f8f8;
  902. }
  903. .page {
  904. background-color: #f8f8f8;
  905. height: 100%;
  906. /* 提示信息样式 */
  907. .hint {
  908. padding: 16rpx 30rpx;
  909. box-sizing: border-box;
  910. background: #FFFBD7;
  911. border-radius: 0rpx 0rpx 0rpx 0rpx;
  912. font-size: 30rpx;
  913. color: #333;
  914. .rightBtn {
  915. padding: 6rpx 20rpx;
  916. box-sizing: border-box;
  917. background: rgba(253, 233, 53, 0.3);
  918. border-radius: 40rpx 40rpx 40rpx 40rpx;
  919. border: 1rpx solid #FDE935;
  920. font-size: 26rpx;
  921. color: #333;
  922. }
  923. }
  924. .quoteArea {
  925. padding: 20rpx 30rpx 170rpx;
  926. box-sizing: border-box;
  927. }
  928. /* 投保配置 */
  929. .insuranceConfig {
  930. padding: 0 30rpx;
  931. box-sizing: border-box;
  932. width: 100%;
  933. background: #FFFFFF;
  934. border-radius: 10rpx 10rpx 10rpx 10rpx;
  935. }
  936. }
  937. /* 厂牌型号弹窗 */
  938. .brandModelClass {
  939. padding: 30rpx 40rpx 40rpx;
  940. box-sizing: border-box;
  941. .cellView {
  942. padding: 10rpx 0;
  943. box-sizing: border-box;
  944. font-size: 30rpx;
  945. display: flex;
  946. justify-content: space-between;
  947. align-items: center;
  948. text:first-child {
  949. color: #666;
  950. }
  951. text:last-child {
  952. color: #333;
  953. font-weight: bold;
  954. }
  955. }
  956. .footer-btn {
  957. width: 100%;
  958. padding: 20rpx;
  959. box-sizing: border-box;
  960. background: rgba(253, 233, 53, 0.1);
  961. border-radius: 45rpx 45rpx 45rpx 45rpx;
  962. border: 1rpx solid #FDE935;
  963. margin-top: 30rpx;
  964. }
  965. }
  966. /* 报价公司 */
  967. .quoteCompany {
  968. .quoteCompanyItem {
  969. padding: 30rpx;
  970. box-sizing: border-box;
  971. background: #FFFFFF;
  972. border-radius: 10rpx 10rpx 10rpx 10rpx;
  973. .companyIcon {
  974. width: 90rpx;
  975. height: 90rpx;
  976. }
  977. .companyName {
  978. font-size: 34rpx;
  979. color: #333;
  980. font-weight: bold;
  981. margin-bottom: 18rpx;
  982. }
  983. .solution {
  984. font-size: 28rpx;
  985. color: #666;
  986. }
  987. .sum-price {
  988. color: #FF540A;
  989. .totalPrice {
  990. font-weight: bold;
  991. text:first-child {
  992. font-size: 26rpx;
  993. }
  994. text:last-child {
  995. font-size: 40rpx;
  996. }
  997. }
  998. .discountedPrice {
  999. font-size: 24rpx;
  1000. }
  1001. }
  1002. // 报价按钮
  1003. .quoteBtn {
  1004. padding: 11rpx 22rpx;
  1005. box-sizing: border-box;
  1006. background: #FDE935;
  1007. border-radius: 50rpx 50rpx 50rpx 50rpx;
  1008. font-size: 30rpx;
  1009. color: #1F1F1F;
  1010. }
  1011. .quoteFailureReason {
  1012. width: 100%;
  1013. background: #FAFAFA;
  1014. margin-top: 20rpx;
  1015. border-radius: 10rpx 10rpx 10rpx 10rpx;
  1016. padding: 10rpx;
  1017. box-sizing: border-box;
  1018. font-size: 28rpx;
  1019. color: #F74141;
  1020. position: relative;
  1021. .iconText {
  1022. position: absolute;
  1023. top: 10rpx;
  1024. left: 10rpx;
  1025. text {
  1026. margin-left: 5rpx;
  1027. }
  1028. }
  1029. .viewReason {
  1030. background: #FAFAFA;
  1031. position: absolute;
  1032. bottom: 10rpx;
  1033. right: 10rpx;
  1034. color: #FFAC1D;
  1035. }
  1036. }
  1037. }
  1038. }
  1039. // 报价失败原因弹窗
  1040. .quoteFailedReasonClass {
  1041. .company-icon {
  1042. width: 50rpx;
  1043. height: 50rpx;
  1044. }
  1045. .companyName {
  1046. font-size: 36rpx;
  1047. color: #333;
  1048. font-weight: bold;
  1049. margin-left: 10rpx;
  1050. margin-right: 20rpx;
  1051. }
  1052. .quote-status {
  1053. padding: 4rpx 10rpx;
  1054. box-sizing: border-box;
  1055. background: #FFECEC;
  1056. border-radius: 2rpx 2rpx 2rpx 2rpx;
  1057. font-size: 24rpx;
  1058. color: #F74141;
  1059. font-weight: bold;
  1060. }
  1061. .quoteFailedReason-content {
  1062. padding: 40rpx;
  1063. box-sizing: border-box;
  1064. .PopupClose-Btn {
  1065. background: rgba(253, 233, 53, 0.1);
  1066. border: 1rpx solid #FDE935;
  1067. padding: 22rpx 20rpx;
  1068. box-sizing: border-box;
  1069. border-radius: 45rpx;
  1070. font-size: 30rpx;
  1071. color: #333;
  1072. margin-top: 40rpx;
  1073. }
  1074. }
  1075. }
  1076. // 查看方案弹窗
  1077. .checkSelectionPopupClass {
  1078. .company-icon {
  1079. width: 50rpx;
  1080. height: 50rpx;
  1081. }
  1082. .companyName {
  1083. font-size: 36rpx;
  1084. color: #333;
  1085. font-weight: bold;
  1086. margin-left: 10rpx;
  1087. }
  1088. .checkSelectionPopup-body {
  1089. padding: 30rpx 40rpx;
  1090. box-sizing: border-box;
  1091. .yellow-content {
  1092. overflow-y: auto;
  1093. padding-bottom: 116rpx;
  1094. }
  1095. .content-item {
  1096. border-radius: 4rpx;
  1097. border: 1rpx solid #FFD9D9;
  1098. margin-bottom: 30rpx;
  1099. .title {
  1100. width: 16%;
  1101. padding: 10rpx;
  1102. box-sizing: border-box;
  1103. background: #FFF8F8;
  1104. border-right: 1rpx solid #FFE5E5;
  1105. border-radius: 4rpx 0 0 4rpx;
  1106. font-size: 28rpx;
  1107. color: #333;
  1108. font-weight: bold;
  1109. text {
  1110. text-align: center;
  1111. }
  1112. }
  1113. .right {
  1114. flex: 1;
  1115. padding: 0 20rpx;
  1116. box-sizing: border-box;
  1117. .riskView {
  1118. margin: 15rpx 0;
  1119. >text:first-child {
  1120. font-size: 28rpx;
  1121. color: #666;
  1122. }
  1123. >text:last-child {
  1124. font-size: 28rpx;
  1125. color: #333;
  1126. font-weight: bold;
  1127. }
  1128. .loadMore {
  1129. font-size: 28rpx;
  1130. color: #333;
  1131. font-weight: bold;
  1132. }
  1133. }
  1134. .vehicleTaxInfo {
  1135. flex: 1;
  1136. width: 100%;
  1137. background: #F9F9F9;
  1138. padding: 0 10rpx;
  1139. box-sizing: border-box;
  1140. border-radius: 10rpx 10rpx 10rpx 10rpx;
  1141. margin-bottom: 15rpx;
  1142. .item {
  1143. padding: 15rpx 0;
  1144. box-sizing: border-box;
  1145. text:first-child {
  1146. font-size: 28rpx;
  1147. color: #666;
  1148. }
  1149. text:last-child {
  1150. font-size: 28rpx;
  1151. color: #333;
  1152. font-weight: bold;
  1153. }
  1154. }
  1155. }
  1156. }
  1157. }
  1158. .footer-btn {
  1159. position: fixed;
  1160. bottom: 0;
  1161. left: 0;
  1162. right: 0;
  1163. padding: 25rpx 30rpx 55rpx;
  1164. box-sizing: border-box;
  1165. background: linear-gradient(0deg, #FFFFFF 0%, rgba(255, 254, 245, 0.7) 100%);
  1166. border-radius: 0rpx 0rpx 0rpx 0rpx;
  1167. backdrop-filter: blur(12rpx);
  1168. .btn {
  1169. width: 100%;
  1170. background: #FDE935;
  1171. padding: 20rpx 20rpx;
  1172. box-sizing: border-box;
  1173. border-radius: 58rpx 58rpx 58rpx 58rpx;
  1174. font-size: 36rpx;
  1175. color: #1F1F1F;
  1176. }
  1177. //操作按钮特殊样式
  1178. .btns {
  1179. background: transparent;
  1180. border: 1rpx solid #FDE935;
  1181. padding: 19rpx 20rpx;
  1182. margin-right: 30rpx;
  1183. }
  1184. }
  1185. }
  1186. }
  1187. .footer {
  1188. position: fixed;
  1189. bottom: 0;
  1190. left: 0;
  1191. right: 0;
  1192. padding: 25rpx 30rpx 55rpx;
  1193. box-sizing: border-box;
  1194. backdrop-filter: blur(12rpx);
  1195. background: linear-gradient(0deg, #FFFFFF 0%, rgba(255, 254, 245, 0.7) 100%);
  1196. .btn {
  1197. margin-right: 36rpx;
  1198. image {
  1199. width: 48rpx;
  1200. height: 48rpx;
  1201. }
  1202. text {
  1203. font-size: 20rpx;
  1204. color: #333;
  1205. }
  1206. }
  1207. .batchQuotes {
  1208. flex: 1;
  1209. background: #FDE935;
  1210. border-radius: 58rpx 58rpx 58rpx 58rpx;
  1211. padding: 26rpx 60rpx;
  1212. box-sizing: border-box;
  1213. color: #1F1F1F;
  1214. text:first-child {
  1215. font-size: 36rpx;
  1216. font-weight: bold;
  1217. line-height: 1;
  1218. }
  1219. .sum {
  1220. font-size: 28rpx;
  1221. }
  1222. }
  1223. }
  1224. // 查最优弹窗
  1225. .findOptimalPopup {
  1226. height: 1200rpx;
  1227. padding: 30rpx 40rpx;
  1228. box-sizing: border-box;
  1229. }
  1230. .suffixClass {
  1231. margin-left: 10rpx;
  1232. font-size: 30rpx;
  1233. }
  1234. </style>