premiumCalc1.vue 40 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322
  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" :headerStyle="{ fontSize: '36rpx' }"
  192. 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'" class="ml-1 mr-1"
  222. 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.unitAmount) }}</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" :headerStyle="{ fontSize: '36rpx' }"
  348. maxHeight="980rpx" mode="center" width="90%" class="quoteFailedReasonClass">
  349. <template #header>
  350. <!-- 保险公司信息 -->
  351. <view class=" dis a-c ">
  352. <image class="company-icon" :src="currentCompanyInfo.logo" mode=""></image>
  353. <text class="companyName">{{ currentCompanyInfo.nameSimple }}</text>
  354. <view class="quote-status">
  355. 报价失败
  356. </view>
  357. </view>
  358. </template>
  359. <template #content>
  360. <!-- 失败原因 -->
  361. <view class="quoteFailedReason-content">
  362. <view style="overflow-y: auto;max-height: 340rpx;">
  363. <u--text size="15" color="#666" :text="currentCompanyInfo.msg || '程序异常,请联系管理员'"></u--text>
  364. </view>
  365. <view class="PopupClose-Btn dis a-c j-c " @click="quoteFailedReasonPopup = false">
  366. 关闭
  367. </view>
  368. </view>
  369. </template>
  370. </uni-Popup>
  371. <!-- 查最优弹窗 -->
  372. <uni-Popup :show="findOptimalShow" @close='findOptimalShow = false' headerTitle="查最优">
  373. <template #content>
  374. <!-- 比价列表 -->
  375. <view class="findOptimalPopup">
  376. <zb-table style="border: 1rpx solid #FDE935;border-radius: 4rpx;" :columns="optimalColumn"
  377. :formatter="tableformatter" :border="false" :cell-header-style="cellheaderStyle"
  378. :data="optimalData"></zb-table>
  379. </view>
  380. </template>
  381. </uni-Popup>
  382. <!-- 交强起保日期 -->
  383. <u-datetime-picker :show="jqstartShow" v-model="jqstartvalue" mode="datetime" :formatter="formatter"
  384. @cancel="jqstartShow = false" @close="jqstartShow = false" :closeOnClickOverlay="true" @confirm="jqstartconfirm"
  385. confirmText="确定"></u-datetime-picker>
  386. <!-- 商业起保日期 -->
  387. <u-datetime-picker :show="systartShow" v-model="systartvalue" mode="datetime" :formatter="formatter"
  388. @cancel="systartShow = false" @close="systartShow = false" :closeOnClickOverlay="true" @confirm="systartconfirm"
  389. confirmText="确定"></u-datetime-picker>
  390. <!-- 自定义加载动画 -->
  391. <global-loading :show="loadingShow" :text="loadingText"></global-loading>
  392. </view>
  393. </template>
  394. <script>
  395. import lsLoading from '@/components/ls-loading/ls-loading.vue';
  396. import Mixin from './Mixin.js';
  397. export default {
  398. components: {
  399. lsLoading,
  400. },
  401. mixins: [Mixin], // 注入 Mixin
  402. data() {
  403. return {
  404. loadingShow: false, //加载
  405. loadingText: '加载中', //加载提示文字
  406. jqstartvalue: Number(new Date().setHours(0, 0, 0)), //交强起期
  407. systartvalue: Number(new Date().setHours(0, 0, 0)), //商业起期
  408. jqstartShow: false, //交强日期选择器
  409. systartShow: false, //商业日期选择器
  410. brandModelPopup: false, //厂牌型号弹窗
  411. findOptimalShow: false, //查最优弹窗
  412. quoteFailedReasonPopup: false, //报价失败原因弹窗
  413. checkSelectionPopup: false, //查看方案弹窗
  414. vehicleTaxIsExpanded: false, //车船税展开收起
  415. carInfo: {}, //车辆信息
  416. ownerInfo: {}, //车主信息
  417. policyHolderInfo: {}, //投保人信息
  418. insuredPersonInfo: {}, //被保人信息
  419. jqstartDate: "", //交强起保时日期
  420. jqendDate: "", //交强终保日期
  421. systartDate: "", //商业起保日期
  422. syendDate: "", //商业终保日期
  423. companyindex: 0,
  424. currentCompanyInfo: {},
  425. insCompanyVo: {},
  426. }
  427. },
  428. onShow() { },
  429. async onLoad(params) {
  430. this.loadingShow = true;
  431. try {
  432. if (params.ordersNo) {
  433. let res = await this.$http.get('/supplementOrder/getOrderDetail', {
  434. ordersNo: params.ordersNo
  435. });
  436. this.productId = res.data.order.productId; //险种id
  437. this.productName = res.data.order.productsName; //险种name
  438. this.quotableCompanyList = JSON.parse(JSON.stringify(res.data.insCompanyVo));
  439. this.order = res.data.order;
  440. this.costs = res.data.costs; //价格
  441. this.carInfo = res.data.carInfoVo; //车辆信息
  442. this.ownerInfo = res.data.ownersInfo; //车主信息
  443. this.policyHolderInfo = res.data.policyHolderInfo; //投保人信息
  444. this.insuredPersonInfo = res.data.insuredPersonInfo; //被保人信息
  445. this.kindInfoVo = res.data.kindInfoVo; //险种大类
  446. this.ciRiskInfoVo = res.data.ciRiskInfoVo; //交强险
  447. this.biRiskInfoVo = res.data.biRiskInfoVo; //商业险
  448. this.vehicleAndVesselTaxVo = res.data.vehicleAndVesselTaxVo; //车船税信息
  449. this.orderno = res.data.order.ordersNo;
  450. this.quoteno = res.data.order.quoteNo;
  451. this.insCompanyVo = res.data.insCompanyVo[0]; //历史保险公司
  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. console.log(data);
  486. this.carInfo = data.carInfo; //车辆信息
  487. this.ownerInfo = data.ownerInfo; //车主信息
  488. this.policyHolderInfo = data.policyHolderInfo; //投保人信息
  489. this.vehicleAndVesselTaxVo.identifyNumber = this.policyHolderInfo.identifyNumber;
  490. this.vehicleAndVesselTaxVo.taxpayerName = this.policyHolderInfo.name;
  491. this.insuredPersonInfo = data.insuredPersonInfo; //被保人信息
  492. this.carImageListId = data.carImageListId; //车辆
  493. this.ownerImageListId = data.ownerImageListId; //车主
  494. this.policyHolderImageListId = data.policyHolderImageListId; //投保
  495. this.insuredPersonImageListId = data.insuredPersonImageListId; //被保人
  496. this.productId = data.productId; //险种id
  497. this.productName = data.productName; //险种name
  498. this.riskTypeEchoProcessing(this.productId)
  499. this.quotableCompanyList = JSON.parse(JSON.stringify(data
  500. .quotableCompanyList)); //可报价公司
  501. this.commpanyList(); //保险公司数据结构处理
  502. console.log(this.quotableCompanyList);
  503. })
  504. }
  505. this.loadingShow = false;
  506. } catch (error) {
  507. this.loadingShow = false;
  508. }
  509. },
  510. computed: {
  511. //已选保险公司数量
  512. selectedInsurerCount() {
  513. return this.quotableCompanyList.filter(val => val.insurancePlanInfo !== null).length;
  514. },
  515. //获取车船税类型
  516. taxRelifFlagName() {
  517. let info = this.car_tax_codeoptions.find(ele => ele.value === this.vehicleAndVesselTaxVo.taxRelifFlag)
  518. return info?.description;
  519. },
  520. },
  521. methods: {
  522. // 保险公司列表过滤回显
  523. async ruleFilterCompany() {
  524. let params = {
  525. carInfo: this.carInfo,
  526. ownerInfo: this.ownerInfo,
  527. applyInfo: this.policyHolderInfo,
  528. insureInfo: this.insuredPersonInfo,
  529. productId: this.productId
  530. }
  531. let res = await this.$http.post('/scheme/ruleFilterCompanyApp', params);
  532. if (res.code == '200') {
  533. this.quotableCompanyList = res.data.filter(val => val.id == this.insCompanyVo.id);
  534. } else {
  535. this.quotableCompanyList = [];
  536. uni.showToast({
  537. icon: 'none',
  538. title: res.msg,
  539. });
  540. }
  541. },
  542. // 跳转报价详情
  543. dorderDetails(orderno) {
  544. console.log(orderno);
  545. if (orderno) {
  546. uni.navigateTo({
  547. url: '/pages/quote/quoteRecordDetail?ordersNo=' + orderno
  548. })
  549. }
  550. },
  551. // 修改信息
  552. toCarInfo() {
  553. uni.navigateTo({
  554. url: '/pages/quote/quoteInfo',
  555. success: (res) => {
  556. res.eventChannel.emit(
  557. "acceptData", {
  558. carInfo: this
  559. .carInfo, //车辆信息
  560. ownerInfo: this
  561. .ownerInfo, //车主信息
  562. policyHolderInfo: this
  563. .policyHolderInfo, //投保人信息
  564. insuredPersonInfo: this
  565. .insuredPersonInfo, //被保人信息
  566. carImageListId: this
  567. .carImageListId, //车辆
  568. ownerImageListId: this
  569. .ownerImageListId, //车主
  570. policyHolderImageListId: this
  571. .policyHolderImageListId, //投保
  572. insuredPersonImageListId: this
  573. .insuredPersonImageListId, //被保人
  574. productId: this.productId, //险种id
  575. productName: this.productName, //险种名称
  576. quoteno: this.quoteno,
  577. })
  578. }
  579. }, "navigateTo", true);
  580. },
  581. // 单独报价
  582. async individualQuote(item) {
  583. if (this.carInfo.licenseNo.length == '8' && this.carInfo.energyTypeCode == '0') {
  584. return uni.showToast({
  585. icon: "none",
  586. title: '检测到能源种类错误,与车辆信息不符。请修改后继续操作',
  587. duration: 3000
  588. });
  589. }
  590. if (!item.insurancePlanInfo) {
  591. uni.showToast({
  592. title: "请选择方案后,在进行报价",
  593. icon: 'none',
  594. });
  595. } else {
  596. this.riskTypeEchoProcessing(this.productId); //更新险种大类日期
  597. let param = {
  598. licenseNo: this.carInfo.licenseNo,
  599. vinNo: this.carInfo.vinNo,
  600. engineNo: this.carInfo.engineNo,
  601. };
  602. let orders = await this.$http.get('/unify/order/getQuoteNo', param);
  603. if (orders.code == '200') {
  604. this.quoteno = orders.msg;
  605. let mergedArray = [];
  606. let mergedArrayList = mergedArray.concat(this.carImageListId, this
  607. .ownerImageListId, this
  608. .policyHolderImageListId, this.insuredPersonImageListId)
  609. if (mergedArrayList.length > 0) {
  610. await this.$http.post('/unify/order/imageSave', {
  611. imageVoList: mergedArrayList,
  612. order: {
  613. quoteNo: this.quoteno,
  614. }
  615. })
  616. }
  617. this.quotableCompanyList = this.quotableCompanyList.map((ele, index) => {
  618. if (ele.id == item.id) {
  619. // 动态调用报价接口
  620. ele.quoteCode = '1';
  621. this.quoteInsurance(index, ele.id);
  622. }
  623. return ele
  624. });
  625. } else if (orders.code == '1001') {
  626. this.Generateshow = true;
  627. } else {
  628. uni.showToast({
  629. title: orders.msg,
  630. icon: 'none',
  631. });
  632. }
  633. }
  634. },
  635. // 多家报价
  636. async multipleQuotes() {
  637. var allAreFalse = this.quotableCompanyList.every(function (element) {
  638. return element.insurancePlanInfo == null;
  639. });
  640. if (!allAreFalse) {
  641. if (this.carInfo.licenseNo.length == '8' && this.carInfo.energyTypeCode == '0') {
  642. return uni.showToast({
  643. icon: "none",
  644. title: '检测到能源种类错误,与车辆信息不符。请修改后继续操作',
  645. duration: 3000
  646. });
  647. }
  648. this.riskTypeEchoProcessing(this.productId); //更新险种大类日期
  649. let param = {
  650. licenseNo: this.carInfo.licenseNo,
  651. vinNo: this.carInfo.vinNo,
  652. engineNo: this.carInfo.engineNo,
  653. };
  654. let orders = await this.$http.get('/unify/order/getQuoteNo', param);
  655. if (orders.code == '200') {
  656. this.quoteno = orders.msg;
  657. let mergedArray = [];
  658. let mergedArrayList = mergedArray.concat(this.carImageListId, this
  659. .ownerImageListId, this
  660. .policyHolderImageListId, this.insuredPersonImageListId)
  661. console.log(mergedArrayList);
  662. if (mergedArrayList.length > 0) {
  663. await this.$http.post('/unify/order/imageSave', {
  664. imageVoList: mergedArrayList,
  665. order: {
  666. quoteNo: this.quoteno,
  667. }
  668. })
  669. }
  670. this.quotableCompanyList = this.quotableCompanyList.map((ele, index) => {
  671. if (ele.insurancePlanInfo !== null) {
  672. // 动态调用报价接口
  673. ele.quoteCode = '1';
  674. this.quoteInsurance(index, ele.id);
  675. }
  676. return ele
  677. });
  678. } else if (orders.code == '1001') {
  679. this.Generateshow = true;
  680. } else {
  681. uni.showToast({
  682. title: orders.msg,
  683. icon: 'none',
  684. });
  685. }
  686. } else {
  687. uni.showToast({
  688. title: "请选择方案后,在进行报价",
  689. icon: 'none',
  690. });
  691. }
  692. },
  693. // 调用统一报价接口
  694. async quoteInsurance(companyIndex, companyId) {
  695. const company = this.quotableCompanyList[companyIndex];
  696. console.log(company);
  697. const isTaxSource = company.isTaxSource;
  698. const params = {
  699. order: {
  700. agreementId: company.dispatchAgreementId,
  701. insuranceCompanyCode: companyId,
  702. quoteNo: this.quoteno,
  703. productId: this.productId,
  704. orderSource: '1',
  705. },
  706. accidentalDrivings: company.insurancePlanInfo.drivings,
  707. kindInfoVo: this.productId === '0330' ? [] : company.insurancePlanInfo.kinds,
  708. ciRiskInfoVo: ['0330', '0330034002', '0330034001'].includes(this.productId) ? this
  709. .ciRiskInfoVo : null,
  710. biRiskInfoVo: ['034001', '034002', '0330034002', '0330034001'].includes(this.productId) ? this
  711. .biRiskInfoVo : null,
  712. carInfoVo: this.carInfo,
  713. ownersInfo: this.ownerInfo,
  714. policyHolderInfo: this.policyHolderInfo,
  715. insuredPersonInfo: this.insuredPersonInfo,
  716. vehicleAndVesselTaxVo: this.vehicleAndVesselTaxVo,
  717. isTaxSource: isTaxSource == 1 ? isTaxSource : null,
  718. systemType: '2'
  719. };
  720. try {
  721. let res = await this.$http.post('/unify/order/quote', params);
  722. company.msg = res.msg;
  723. if (res.code == "200") {
  724. company.result = res.data;
  725. const updatedItem = {
  726. ...company,
  727. quoteCode: 200,
  728. isReSelect: false // 清除重选标记,回到“仅展示价格”状态
  729. };
  730. this.quotableCompanyList.splice(companyIndex, 1, updatedItem);
  731. console.log(this.quotableCompanyList);
  732. } else {
  733. company.msg = res.msg;
  734. const updatedItem = {
  735. ...company,
  736. quoteCode: '3',
  737. isReSelect: false // 清除重选标记,回到“仅展示价格”状态
  738. };
  739. this.quotableCompanyList.splice(companyIndex, 1, updatedItem);
  740. return;
  741. }
  742. } catch (error) {
  743. const updatedItem = {
  744. ...company,
  745. quoteCode: '3'
  746. };
  747. this.quotableCompanyList.splice(companyIndex, 1, updatedItem);
  748. company.msg = '接口请求超时,请重新尝试';
  749. }
  750. },
  751. //选择方案
  752. async SchemeSelection(item) {
  753. uni.navigateTo({
  754. url: '/pages/quote/chooseOption1',
  755. success: (res) => {
  756. res.eventChannel.emit("acceptData", {
  757. params: {
  758. companyId: item.id,
  759. productId: this.productId,
  760. seatCount: this.carInfo.seatCount,
  761. energyType: this.carInfo.energyTypeCode,
  762. vehicleType: this.carInfo.carKindCode,
  763. carnature: this.carInfo.carNatureCode,
  764. },
  765. nameSimple: item.nameSimple,
  766. logo: item.logo,
  767. cnName: item.cnName,
  768. jqstartDate: this.jqstartDate,
  769. jqendDate: this.jqendDate,
  770. systartDate: this.systartDate,
  771. syendDate: this.syendDate,
  772. productName: this.productName,
  773. quotableCompanyList: this.quotableCompanyList,
  774. identifyNumber: this.policyHolderInfo.identifyNumber,
  775. taxpayerName: this.policyHolderInfo.name,
  776. })
  777. }
  778. }, "navigateTo", true);
  779. },
  780. // 修改方案
  781. updateScheme() {
  782. uni.navigateTo({
  783. url: '/pages/quote/chooseOption1',
  784. success: (res) => {
  785. res.eventChannel.emit("acceptData", {
  786. params: {
  787. companyId: this.currentCompanyInfo.id,
  788. productId: this.productId,
  789. },
  790. nameSimple: this.currentCompanyInfo.nameSimple,
  791. logo: this.currentCompanyInfo.logo,
  792. cnName: this.currentCompanyInfo.cnName,
  793. jqstartDate: this.jqstartDate,
  794. jqendDate: this.jqendDate,
  795. systartDate: this.systartDate,
  796. syendDate: this.syendDate,
  797. productName: this.productName,
  798. quotableCompanyList: this.quotableCompanyList,
  799. identifyNumber: this.policyHolderInfo.identifyNumber,
  800. taxpayerName: this.policyHolderInfo.name,
  801. })
  802. }
  803. }, "navigateTo", true);
  804. this.checkSelectionPopup = false;
  805. },
  806. //查最优
  807. async findOptimal() {
  808. let res = await this.$http.get('/supplementOrder/comparePrice?quoteNo=' + this.quoteno);
  809. if (res.code == '200') {
  810. this.optimalData = res.data;
  811. this.findOptimalShow = true;
  812. }
  813. },
  814. //查看方案弹窗
  815. checkSelection(index) {
  816. this.currentCompanyInfo = this.quotableCompanyList[index];
  817. console.log(this.currentCompanyInfo);
  818. this.checkSelectionPopup = true;
  819. },
  820. // 报价原因弹窗
  821. quoteFailedReason(index) {
  822. this.currentCompanyInfo = this.quotableCompanyList[index];
  823. this.quoteFailedReasonPopup = true;
  824. },
  825. //即时投保切换更新投保日期
  826. immediateCoverageChange(e) {
  827. if (e == 1) {
  828. const date = new Date();
  829. date.setHours(date.getHours() + 2);
  830. date.setMinutes(0)
  831. date.setSeconds(0)
  832. this.jqstartDate = this.transformTime(date)
  833. this.jqendDate = this.oneYearPast(date);
  834. this.systartDate = this.transformTime(date)
  835. this.syendDate = this.oneYearPast(date);
  836. } else {
  837. this.jqstartDate = this.nextday();
  838. this.jqendDate = this.oneYearPast(this.jqstartDate);
  839. this.systartDate = this.nextday();
  840. this.syendDate = this.oneYearPast(this.systartDate);
  841. }
  842. },
  843. //交强日期事件
  844. jqstartconfirm(e) {
  845. this.jqstartDate = uni.$u.timeFormat(e.value, 'yyyy-mm-dd hh:MM') + ':00';
  846. this.jqendDate = this.oneYearPast(this.jqstartDate)
  847. this.jqstartShow = false;
  848. },
  849. // 商业日期事件
  850. systartconfirm(e) {
  851. this.systartDate = uni.$u.timeFormat(e.value, 'yyyy-mm-dd hh:MM') + ':00';
  852. this.syendDate = this.oneYearPast(this.systartDate)
  853. this.systartShow = false;
  854. },
  855. //数字格式化
  856. convertedValue(num) {
  857. if (!num) {
  858. return "-";
  859. }
  860. if (num < 10000) {
  861. return num.toString();
  862. } else if (num < 100000000) {
  863. return (Math.floor(num / 10000 * 10) / 10) + '万';
  864. } else {
  865. return (Math.floor(num / 100000000 * 10) / 10) + '亿';
  866. }
  867. },
  868. }
  869. }
  870. </script>
  871. <style lang="scss" scoped>
  872. ::v-deep {
  873. .u-input__content__subfix-icon {
  874. margin-left: 12rpx;
  875. image {
  876. width: 30rpx;
  877. height: 30rpx;
  878. }
  879. }
  880. /* 调整输入框光标靠右 */
  881. .uni-input-input {
  882. text-align: right !important;
  883. font-weight: bold;
  884. }
  885. /* 设置表单项非input元素靠右布局 */
  886. .u-form-item__body__right {
  887. margin-left: auto;
  888. flex: unset;
  889. }
  890. .u-form-item__body {
  891. padding: 24rpx 0;
  892. box-sizing: border-box;
  893. }
  894. .u-form-item__body__left__content__label {
  895. color: #333;
  896. }
  897. /* 覆盖表单下边框颜色 */
  898. .u-form-item .u-line {
  899. border-bottom: 1rpx solid #eee;
  900. }
  901. }
  902. page {
  903. background-color: #f8f8f8;
  904. }
  905. .page {
  906. background-color: #f8f8f8;
  907. height: 100%;
  908. /* 提示信息样式 */
  909. .hint {
  910. padding: 16rpx 30rpx;
  911. box-sizing: border-box;
  912. background: #FFFBD7;
  913. border-radius: 0rpx 0rpx 0rpx 0rpx;
  914. font-size: 30rpx;
  915. color: #333;
  916. .rightBtn {
  917. padding: 6rpx 20rpx;
  918. box-sizing: border-box;
  919. background: rgba(253, 233, 53, 0.3);
  920. border-radius: 40rpx 40rpx 40rpx 40rpx;
  921. border: 1rpx solid #FDE935;
  922. font-size: 26rpx;
  923. color: #333;
  924. }
  925. }
  926. .quoteArea {
  927. padding: 20rpx 30rpx 170rpx;
  928. box-sizing: border-box;
  929. }
  930. /* 投保配置 */
  931. .insuranceConfig {
  932. padding: 0 30rpx;
  933. box-sizing: border-box;
  934. width: 100%;
  935. background: #FFFFFF;
  936. border-radius: 10rpx 10rpx 10rpx 10rpx;
  937. }
  938. }
  939. /* 厂牌型号弹窗 */
  940. .brandModelClass {
  941. padding: 30rpx 40rpx 40rpx;
  942. box-sizing: border-box;
  943. .cellView {
  944. padding: 10rpx 0;
  945. box-sizing: border-box;
  946. font-size: 30rpx;
  947. display: flex;
  948. justify-content: space-between;
  949. align-items: center;
  950. text:first-child {
  951. color: #666;
  952. }
  953. text:last-child {
  954. color: #333;
  955. font-weight: bold;
  956. }
  957. }
  958. .footer-btn {
  959. width: 100%;
  960. padding: 20rpx;
  961. box-sizing: border-box;
  962. background: rgba(253, 233, 53, 0.1);
  963. border-radius: 45rpx 45rpx 45rpx 45rpx;
  964. border: 1rpx solid #FDE935;
  965. margin-top: 30rpx;
  966. }
  967. }
  968. /* 报价公司 */
  969. .quoteCompany {
  970. .quoteCompanyItem {
  971. padding: 30rpx;
  972. box-sizing: border-box;
  973. background: #FFFFFF;
  974. border-radius: 10rpx 10rpx 10rpx 10rpx;
  975. .companyIcon {
  976. width: 90rpx;
  977. height: 90rpx;
  978. }
  979. .companyName {
  980. font-size: 34rpx;
  981. color: #333;
  982. font-weight: bold;
  983. margin-bottom: 18rpx;
  984. }
  985. .solution {
  986. font-size: 28rpx;
  987. color: #666;
  988. }
  989. .sum-price {
  990. color: #FF540A;
  991. .totalPrice {
  992. font-weight: bold;
  993. text:first-child {
  994. font-size: 26rpx;
  995. }
  996. text:last-child {
  997. font-size: 40rpx;
  998. }
  999. }
  1000. .discountedPrice {
  1001. font-size: 24rpx;
  1002. }
  1003. }
  1004. // 报价按钮
  1005. .quoteBtn {
  1006. padding: 11rpx 22rpx;
  1007. box-sizing: border-box;
  1008. background: #FDE935;
  1009. border-radius: 50rpx 50rpx 50rpx 50rpx;
  1010. font-size: 30rpx;
  1011. color: #1F1F1F;
  1012. }
  1013. .quoteFailureReason {
  1014. width: 100%;
  1015. background: #FAFAFA;
  1016. margin-top: 20rpx;
  1017. border-radius: 10rpx 10rpx 10rpx 10rpx;
  1018. padding: 10rpx;
  1019. box-sizing: border-box;
  1020. font-size: 28rpx;
  1021. color: #F74141;
  1022. position: relative;
  1023. .iconText {
  1024. position: absolute;
  1025. top: 10rpx;
  1026. left: 10rpx;
  1027. text {
  1028. margin-left: 5rpx;
  1029. }
  1030. }
  1031. .viewReason {
  1032. background: #FAFAFA;
  1033. position: absolute;
  1034. bottom: 10rpx;
  1035. right: 10rpx;
  1036. color: #FFAC1D;
  1037. }
  1038. }
  1039. }
  1040. }
  1041. // 报价失败原因弹窗
  1042. .quoteFailedReasonClass {
  1043. .company-icon {
  1044. width: 50rpx;
  1045. height: 50rpx;
  1046. }
  1047. .companyName {
  1048. font-size: 36rpx;
  1049. color: #333;
  1050. font-weight: bold;
  1051. margin-left: 10rpx;
  1052. margin-right: 20rpx;
  1053. }
  1054. .quote-status {
  1055. padding: 4rpx 10rpx;
  1056. box-sizing: border-box;
  1057. background: #FFECEC;
  1058. border-radius: 2rpx 2rpx 2rpx 2rpx;
  1059. font-size: 24rpx;
  1060. color: #F74141;
  1061. font-weight: bold;
  1062. }
  1063. .quoteFailedReason-content {
  1064. padding: 40rpx;
  1065. box-sizing: border-box;
  1066. .PopupClose-Btn {
  1067. background: rgba(253, 233, 53, 0.1);
  1068. border: 1rpx solid #FDE935;
  1069. padding: 22rpx 20rpx;
  1070. box-sizing: border-box;
  1071. border-radius: 45rpx;
  1072. font-size: 30rpx;
  1073. color: #333;
  1074. margin-top: 40rpx;
  1075. }
  1076. }
  1077. }
  1078. // 查看方案弹窗
  1079. .checkSelectionPopupClass {
  1080. .company-icon {
  1081. width: 50rpx;
  1082. height: 50rpx;
  1083. }
  1084. .companyName {
  1085. font-size: 36rpx;
  1086. color: #333;
  1087. font-weight: bold;
  1088. margin-left: 10rpx;
  1089. }
  1090. .checkSelectionPopup-body {
  1091. padding: 30rpx 40rpx;
  1092. box-sizing: border-box;
  1093. .yellow-content {
  1094. overflow-y: auto;
  1095. padding-bottom: 116rpx;
  1096. }
  1097. .content-item {
  1098. border-radius: 4rpx;
  1099. border: 1rpx solid #FFD9D9;
  1100. margin-bottom: 30rpx;
  1101. .title {
  1102. width: 16%;
  1103. padding: 10rpx;
  1104. box-sizing: border-box;
  1105. background: #FFF8F8;
  1106. border-right: 1rpx solid #FFE5E5;
  1107. border-radius: 4rpx 0 0 4rpx;
  1108. font-size: 28rpx;
  1109. color: #333;
  1110. font-weight: bold;
  1111. text {
  1112. text-align: center;
  1113. }
  1114. }
  1115. .right {
  1116. flex: 1;
  1117. padding: 0 20rpx;
  1118. box-sizing: border-box;
  1119. .riskView {
  1120. margin: 15rpx 0;
  1121. >text:first-child {
  1122. font-size: 28rpx;
  1123. color: #666;
  1124. }
  1125. >text:last-child {
  1126. font-size: 28rpx;
  1127. color: #333;
  1128. font-weight: bold;
  1129. }
  1130. .loadMore {
  1131. font-size: 28rpx;
  1132. color: #333;
  1133. font-weight: bold;
  1134. }
  1135. }
  1136. .vehicleTaxInfo {
  1137. flex: 1;
  1138. width: 100%;
  1139. background: #F9F9F9;
  1140. padding: 0 10rpx;
  1141. box-sizing: border-box;
  1142. border-radius: 10rpx 10rpx 10rpx 10rpx;
  1143. margin-bottom: 15rpx;
  1144. .item {
  1145. padding: 15rpx 0;
  1146. box-sizing: border-box;
  1147. text:first-child {
  1148. font-size: 28rpx;
  1149. color: #666;
  1150. }
  1151. text:last-child {
  1152. font-size: 28rpx;
  1153. color: #333;
  1154. font-weight: bold;
  1155. }
  1156. }
  1157. }
  1158. }
  1159. }
  1160. .footer-btn {
  1161. position: fixed;
  1162. bottom: 0;
  1163. left: 0;
  1164. right: 0;
  1165. padding: 25rpx 30rpx 55rpx;
  1166. box-sizing: border-box;
  1167. background: linear-gradient(0deg, #FFFFFF 0%, rgba(255, 254, 245, 0.7) 100%);
  1168. border-radius: 0rpx 0rpx 0rpx 0rpx;
  1169. backdrop-filter: blur(12rpx);
  1170. .btn {
  1171. width: 100%;
  1172. background: #FDE935;
  1173. padding: 20rpx 20rpx;
  1174. box-sizing: border-box;
  1175. border-radius: 58rpx 58rpx 58rpx 58rpx;
  1176. font-size: 36rpx;
  1177. color: #1F1F1F;
  1178. }
  1179. //操作按钮特殊样式
  1180. .btns {
  1181. background: transparent;
  1182. border: 1rpx solid #FDE935;
  1183. padding: 19rpx 20rpx;
  1184. margin-right: 30rpx;
  1185. }
  1186. }
  1187. }
  1188. }
  1189. .footer {
  1190. position: fixed;
  1191. bottom: 0;
  1192. left: 0;
  1193. right: 0;
  1194. padding: 25rpx 30rpx 55rpx;
  1195. box-sizing: border-box;
  1196. backdrop-filter: blur(12rpx);
  1197. background: linear-gradient(0deg, #FFFFFF 0%, rgba(255, 254, 245, 0.7) 100%);
  1198. .btn {
  1199. margin-right: 36rpx;
  1200. image {
  1201. width: 48rpx;
  1202. height: 48rpx;
  1203. }
  1204. text {
  1205. font-size: 20rpx;
  1206. color: #333;
  1207. }
  1208. }
  1209. .batchQuotes {
  1210. flex: 1;
  1211. background: #FDE935;
  1212. border-radius: 58rpx 58rpx 58rpx 58rpx;
  1213. padding: 26rpx 60rpx;
  1214. box-sizing: border-box;
  1215. color: #1F1F1F;
  1216. text:first-child {
  1217. font-size: 36rpx;
  1218. font-weight: bold;
  1219. line-height: 1;
  1220. }
  1221. .sum {
  1222. font-size: 28rpx;
  1223. }
  1224. }
  1225. }
  1226. // 查最优弹窗
  1227. .findOptimalPopup {
  1228. height: 1200rpx;
  1229. padding: 30rpx 40rpx;
  1230. box-sizing: border-box;
  1231. }
  1232. .suffixClass {
  1233. margin-left: 10rpx;
  1234. font-size: 30rpx;
  1235. }
  1236. </style>