premiumCalc1.vue 41 KB

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