premiumCalc1.vue 41 KB

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