premiumCalc.vue 41 KB

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