underwriting1.vue 52 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706
  1. <template>
  2. <view :style="getHeight" style="background-color: #F5F5F5;">
  3. <!-- 公共组件-每个页面必须引入 -->
  4. <public-module></public-module>
  5. <!-- 头部 -->
  6. <view class="carInfo w-100 px-3 box-sizing">
  7. <view class="d-flex">
  8. <view class="icon iconfont icon-tree-round-car flex-shrink topLeft"></view>
  9. <view class="topRight d-flex flex-1 p-3 flex-column" style="color: #FFFFFF;">
  10. <view class="d-flex flex-1">
  11. <view class="font-lg d-flex a-center">{{this.licenseNo}}
  12. <view class="icon iconfont icon-bianji1 ml-2" @tap="toCarInfo"></view>
  13. </view>
  14. </view>
  15. <view class="brandName">{{carInfo.modelcname}}</view>
  16. </view>
  17. </view>
  18. <view class="other d-flex j-sb px-3">
  19. <view class="d-flex flex-1 a-center">
  20. <view class="privilege d-flex a-center j-center flex-shrink px-2">特权</view>
  21. <view class="content">每月自动查违章,无违章领奖励</view>
  22. </view>
  23. <view class="flex-shrink icon iconfont icon-youjiantou d-flex a-center font-sm"></view>
  24. </view>
  25. </view>
  26. <!-- 车主信息 -->
  27. <view>
  28. <view class="personInfo">
  29. <view class="title d-flex a-center j-center j-sb">
  30. <text style="font-weight: bold;">车主</text>
  31. <view class="showStatus" @tap="controlShow('showOwerInfo')">{{showOwerInfo?'收起':'展开'}}</view>
  32. </view>
  33. <view class="content" v-if="showOwerInfo">
  34. <view class="row d-flex a-center">
  35. <view class="left">姓名:</view>
  36. <view class="right d-flex flex-1">{{ownerInfo.name}}</view>
  37. </view>
  38. <view class="row d-flex a-center">
  39. <view class="left">证件类型:</view>
  40. <view class="right d-flex flex-1">{{ownerInfo.identifyType}}</view>
  41. </view>
  42. <view class="row d-flex a-center">
  43. <view class="left">手机号:</view>
  44. <view class="right d-flex flex-1">{{ownerInfo.mobile}}</view>
  45. </view>
  46. <view class="row d-flex a-center">
  47. <view class="left">证件号:</view>
  48. <view class="right d-flex flex-1">{{ownerInfo.identifyNumber}}</view>
  49. </view>
  50. <view class="row d-flex a-center"
  51. style="height:auto;min-height: 80upx;padding: 15upx 0;box-sizing: border-box; ">
  52. <view class="left">地址:</view>
  53. <view class="right d-flex flex-1">{{ownerInfo.addr}}</view>
  54. </view>
  55. </view>
  56. </view>
  57. <!-- 投保人信息 -->
  58. <view class="personInfo">
  59. <view class="title d-flex a-center j-sb">
  60. <text style="font-weight: bold;">投保人</text>
  61. <view class="showStatus" @tap="controlShow('showPolicyHolderInfo')">
  62. {{showPolicyHolderInfo?'收起':'展开'}}
  63. </view>
  64. </view>
  65. <view class="content" v-if="showPolicyHolderInfo">
  66. <view class="row d-flex a-center">
  67. <view class="left">姓名:</view>
  68. <view class="right d-flex flex-1">{{policyHolderInfo.name}}</view>
  69. </view>
  70. <view class="row d-flex a-center">
  71. <view class="left">证件类型:</view>
  72. <view class="right d-flex flex-1">{{policyHolderInfo.identifyType}}</view>
  73. </view>
  74. <view class="row d-flex a-center">
  75. <view class="left">手机号:</view>
  76. <view class="right d-flex flex-1">{{policyHolderInfo.mobile}}</view>
  77. </view>
  78. <view class="row d-flex a-center">
  79. <view class="left">证件号:</view>
  80. <view class="right d-flex flex-1">{{policyHolderInfo.identifyNumber}}</view>
  81. </view>
  82. <view class="row d-flex a-center"
  83. style="height:auto;min-height: 80upx;padding: 15upx 0;box-sizing: border-box; ">
  84. <view class="left">地址:</view>
  85. <view class="right d-flex flex-1">{{policyHolderInfo.addr}}</view>
  86. </view>
  87. </view>
  88. </view>
  89. <!-- 被保人信息 -->
  90. <view class="personInfo">
  91. <view class="title d-flex a-center j-sb">
  92. <text style="font-weight: bold;">被保人</text>
  93. <view class="showStatus" @tap="controlShow('showInsuredPersonInfo')">
  94. {{showInsuredPersonInfo?'收起':'展开'}}
  95. </view>
  96. </view>
  97. <view class="content" v-if="showInsuredPersonInfo">
  98. <view class="row d-flex a-center">
  99. <view class="left">姓名:</view>
  100. <view class="right d-flex flex-1">{{insuredPersonInfo.name}}</view>
  101. </view>
  102. <view class="row d-flex a-center">
  103. <view class="left">证件类型:</view>
  104. <view class="right d-flex flex-1">{{insuredPersonInfo.identifyType}}</view>
  105. </view>
  106. <view class="row d-flex a-center">
  107. <view class="left">手机号:</view>
  108. <view class="right d-flex flex-1">{{insuredPersonInfo.mobile}}</view>
  109. </view>
  110. <view class="row d-flex a-center">
  111. <view class="left">证件号:</view>
  112. <view class="right d-flex flex-1">{{insuredPersonInfo.identifyNumber}}</view>
  113. </view>
  114. <view class="row d-flex a-center"
  115. style="height:auto;min-height: 80upx;padding: 15upx 0;box-sizing: border-box; ">
  116. <view class="left">地址:</view>
  117. <view class="right d-flex flex-1">{{insuredPersonInfo.addr}}</view>
  118. </view>
  119. </view>
  120. </view>
  121. <!-- 车辆影像信息Start -->
  122. <view class="imageInfo">
  123. <view class="title d-flex a-center j-sb">
  124. <text style="font-weight: bold;">车辆影像信息</text>
  125. <view class="showStatus" @tap="controlShow('showCarImageInfo')">{{showCarImageInfo?'收起':'展开'}}
  126. </view>
  127. </view>
  128. <view class="uni-uploader" v-if="showCarImageInfo">
  129. <view class="uni-uploader-body dis ">
  130. <view class="uni-uploader__files f-c dis a-c">
  131. <text>行驶证主页</text>
  132. <block v-for="(image,index) in imgList1" :key="index">
  133. <view class="uni-uploader__file">
  134. <image class="uni-uploader__img" :src="image.url" :data-src="image.url"
  135. @tap="previewImage($event,'imgList1')"></image>
  136. <view class="delImgIcon iconfont icon-cuo d-flex a-center j-center"
  137. @tap="delCheckImage(image,'carImageListId','imgList1')"></view>
  138. </view>
  139. </block>
  140. <view v-if="imgList1.length==0" class="uni-uploader__input-box"
  141. style="box-sizing: border-box;">
  142. <view class="uni-uploader__input" @tap="chooseImage('C01','carImageListId','imgList1')">
  143. </view>
  144. </view>
  145. </view>
  146. <view class="uni-uploader__files f-c dis a-c">
  147. <text>行驶证副本</text>
  148. <block v-for="(image,index) in imgList2" :key="index">
  149. <view class="uni-uploader__file">
  150. <image class="uni-uploader__img" :src="image.url" :data-src="image.url"
  151. @tap="previewImage($event,'imgList2')"></image>
  152. <view class="delImgIcon iconfont icon-cuo d-flex a-center j-center"
  153. @tap="delCheckImage(image,'carImageListId','imgList2')"></view>
  154. </view>
  155. </block>
  156. <view v-if="imgList2.length==0" class="uni-uploader__input-box"
  157. style="box-sizing: border-box;">
  158. <view class="uni-uploader__input" @tap="chooseImage('D01','carImageListId','imgList2')">
  159. </view>
  160. </view>
  161. </view>
  162. </view>
  163. </view>
  164. </view>
  165. <!-- 车辆影像信息End -->
  166. <!-- 车主影像信息Start -->
  167. <view class="imageInfo">
  168. <view class="title d-flex a-center j-sb">
  169. <text style="font-weight: bold;">车主影像信息</text>
  170. <view class="showStatus" @tap="controlShow('showOwnerImageInfo')">{{showOwnerImageInfo?'收起':'展开'}}
  171. </view>
  172. </view>
  173. <view class="uni-uploader" v-if="showOwnerImageInfo">
  174. <view class="uni-uploader-body dis ">
  175. <view class="uni-uploader__files dis f-c a-c">
  176. <text>正面</text>
  177. <block v-for="(image,index) in imgList3" :key="index">
  178. <view class="uni-uploader__file">
  179. <image class="uni-uploader__img" :src="image.url" :data-src="image.url"
  180. @tap="previewImage($event,'imgList3')"></image>
  181. <view class="delImgIcon iconfont icon-cuo d-flex a-center j-center"
  182. @tap="delCheckImage(image,'ownerImageListId','imgList3')"></view>
  183. </view>
  184. </block>
  185. <view v-if="imgList3.length==0" class="uni-uploader__input-box"
  186. style="box-sizing: border-box;">
  187. <view class="uni-uploader__input"
  188. @tap="chooseImage('C02','ownerImageListId','imgList3')"></view>
  189. </view>
  190. </view>
  191. <view class="uni-uploader__files dis f-c a-c">
  192. <text>反面</text>
  193. <block v-for="(image,index) in imgList4" :key="index">
  194. <view class="uni-uploader__file">
  195. <image class="uni-uploader__img" :src="image.url" :data-src="image.url"
  196. @tap="previewImage($event,'imgList4')"></image>
  197. <view class="delImgIcon iconfont icon-cuo d-flex a-center j-center"
  198. @tap="delCheckImage(image,'ownerImageListId','imgList4')"></view>
  199. </view>
  200. </block>
  201. <view v-if="imgList4.length==0" class="uni-uploader__input-box"
  202. style="box-sizing: border-box;">
  203. <view class="uni-uploader__input"
  204. @tap="chooseImage('D02','ownerImageListId','imgList4')"></view>
  205. </view>
  206. </view>
  207. </view>
  208. </view>
  209. </view>
  210. <!-- 车主影像信息End -->
  211. <!-- 投保人影像信息Start -->
  212. <view class="imageInfo">
  213. <view class="title d-flex a-center j-sb">
  214. <text style="font-weight: bold;">投保人影像信息</text>
  215. <view class="showStatus" @tap="controlShow('showPolicyImageInfo')">
  216. {{showPolicyImageInfo?'收起':'展开'}}
  217. </view>
  218. </view>
  219. <view class="uni-uploader" v-if="showPolicyImageInfo">
  220. <view class="uni-uploader-body dis ">
  221. <view class="uni-uploader__files dis f-c a-c">
  222. <text>正面</text>
  223. <block v-for="(image,index) in imgList5" :key="index">
  224. <view class="uni-uploader__file">
  225. <image class="uni-uploader__img" :src="image.url" :data-src="image.url"
  226. @tap="previewImage($event,'imgList5')"></image>
  227. <view class="delImgIcon iconfont icon-cuo d-flex a-center j-center"
  228. @tap="delCheckImage(image,'policyImageListId','imgList5')"></view>
  229. </view>
  230. </block>
  231. <view v-if="imgList5.length==0" class="uni-uploader__input-box"
  232. style="box-sizing: border-box;">
  233. <view class="uni-uploader__input"
  234. @tap="chooseImage('C03','policyImageListId','imgList5')"></view>
  235. </view>
  236. </view>
  237. <view class="uni-uploader__files dis f-c a-c">
  238. <text>反面</text>
  239. <block v-for="(image,index) in imgList6" :key="index">
  240. <view class="uni-uploader__file">
  241. <image class="uni-uploader__img" :src="image.url" :data-src="image.url"
  242. @tap="previewImage($event,'imgList6')"></image>
  243. <view class="delImgIcon iconfont icon-cuo d-flex a-center j-center"
  244. @tap="delCheckImage(image,'policyImageListId','imgList6')"></view>
  245. </view>
  246. </block>
  247. <view v-if="imgList6.length==0" class="uni-uploader__input-box"
  248. style="box-sizing: border-box;">
  249. <view class="uni-uploader__input"
  250. @tap="chooseImage('D03','policyImageListId','imgList6')"></view>
  251. </view>
  252. </view>
  253. </view>
  254. </view>
  255. </view>
  256. <!-- 投保人影像信息End -->
  257. <!-- 被保人影像信息Start -->
  258. <view class="imageInfo">
  259. <view class="title d-flex a-center j-sb">
  260. <text style="font-weight: bold;">被保人影像信息</text>
  261. <view class="showStatus" @tap="controlShow('showInsuredImageInfo')">
  262. {{showInsuredImageInfo?'收起':'展开'}}
  263. </view>
  264. </view>
  265. <view class="uni-uploader" v-if="showInsuredImageInfo">
  266. <view class="uni-uploader-body dis ">
  267. <view class="uni-uploader__files dis f-c a-c">
  268. <text>正面</text>
  269. <block v-for="(image,index) in imgList7" :key="index">
  270. <view class="uni-uploader__file">
  271. <image class="uni-uploader__img" :src="image.url" :data-src="image.url"
  272. @tap="previewImage($event,'imgList7')"></image>
  273. <view class="delImgIcon iconfont icon-cuo d-flex a-center j-center"
  274. @tap="delCheckImage(image,'insuredImageListId','imgList7')"></view>
  275. </view>
  276. </block>
  277. <view v-if="imgList7.length==0" class="uni-uploader__input-box"
  278. style="box-sizing: border-box;">
  279. <view class="uni-uploader__input"
  280. @tap="chooseImage('C04','insuredImageListId','imgList7')"></view>
  281. </view>
  282. </view>
  283. <view class="uni-uploader__files dis f-c a-c">
  284. <text>反面</text>
  285. <block v-for="(image,index) in imgList8" :key="index">
  286. <view class="uni-uploader__file">
  287. <image class="uni-uploader__img" :src="image.url" :data-src="image.url"
  288. @tap="previewImage($event,'imgList8')"></image>
  289. <view class="delImgIcon iconfont icon-cuo d-flex a-center j-center"
  290. @tap="delCheckImage(image,'insuredImageListId','imgList8')"></view>
  291. </view>
  292. </block>
  293. <view v-if="imgList8.length==0" class="uni-uploader__input-box"
  294. style="box-sizing: border-box;">
  295. <view class="uni-uploader__input"
  296. @tap="chooseImage('D04','insuredImageListId','imgList8')"></view>
  297. </view>
  298. </view>
  299. </view>
  300. </view>
  301. </view>
  302. <!-- 被保人影像信息End -->
  303. <!-- 新车影像信息Start -->
  304. <view class="imageInfo">
  305. <view class="title d-flex a-center j-sb">
  306. <text style="font-weight: bold;">新车照片</text>
  307. <view class="showStatus" @tap="controlShow('showNewCarImageInfo')">
  308. {{showNewCarImageInfo?'收起':'展开'}}
  309. </view>
  310. </view>
  311. <view class="uni-uploader" v-if="showNewCarImageInfo">
  312. <view class="uni-uploader-body dis ">
  313. <view class="uni-uploader__files dis f-c a-c">
  314. <text>新车合格证</text>
  315. <block v-for="(image,index) in imgNewCarQualified" :key="index">
  316. <view class="uni-uploader__file">
  317. <image class="uni-uploader__img" :src="image.url" :data-src="image.url"
  318. @tap="previewImage($event,'imgNewCarQualified')"></image>
  319. <view class="delImgIcon iconfont icon-cuo d-flex a-center j-center"
  320. @tap="delCheckImage(image,'imgNewCarinvoiceId','imgNewCarQualified')"></view>
  321. </view>
  322. </block>
  323. <view v-if="imgNewCarQualified.length==0" class="uni-uploader__input-box"
  324. style="box-sizing: border-box;">
  325. <view class="uni-uploader__input"
  326. @tap="chooseImage('XC00','imgNewCarinvoiceId','imgNewCarQualified')"></view>
  327. </view>
  328. </view>
  329. <view class="uni-uploader__files dis f-c a-c">
  330. <text>购车发票</text>
  331. <block v-for="(image,index) in imgNewCarInvoice" :key="index">
  332. <view class="uni-uploader__file">
  333. <image class="uni-uploader__img" :src="image.url" :data-src="image.url"
  334. @tap="previewImage($event,'imgNewCarInvoice')"></image>
  335. <view class="delImgIcon iconfont icon-cuo d-flex a-center j-center"
  336. @tap="delCheckImage(image,'imgNewCarinvoiceId','imgNewCarInvoice')"></view>
  337. </view>
  338. </block>
  339. <view v-if="imgNewCarInvoice.length==0" class="uni-uploader__input-box"
  340. style="box-sizing: border-box;">
  341. <view class="uni-uploader__input"
  342. @tap="chooseImage('GC00','imgNewCarinvoiceId','imgNewCarInvoice')"></view>
  343. </view>
  344. </view>
  345. </view>
  346. </view>
  347. </view>
  348. <!-- 新车影像信息End -->
  349. <!-- 验车照Start -->
  350. <view class="imageInfo">
  351. <view class="title d-flex a-center j-sb">
  352. <text style="font-weight: bold;">其他关系证明</text>
  353. <view class="showStatus" @tap="controlShow('showCarCheckImageInfo')">
  354. {{showCarCheckImageInfo?'收起':'展开'}}
  355. </view>
  356. </view>
  357. <view class="uni-uploader" v-if="showCarCheckImageInfo">
  358. <view class="uni-uploader-body">
  359. <view class="uni-uploader__files">
  360. <block v-for="(image,index) in imgRelationship" :key="index">
  361. <view class="uni-uploader__file">
  362. <image class="uni-uploader__img" :src="image.url" :data-src="image.url"
  363. @tap="previewImage($event,'imgRelationship')"></image>
  364. <view class="delImgIcon iconfont icon-cuo d-flex a-center j-center "
  365. @tap="delCheckImage('imgRelationship',index)"></view>
  366. </view>
  367. </block>
  368. <view class="uni-uploader__input-box" style="box-sizing: border-box;">
  369. <view class="uni-uploader__input"
  370. @tap="chooseImage('GX00','imgRelationshipid','imgRelationship')"></view>
  371. </view>
  372. </view>
  373. </view>
  374. </view>
  375. </view>
  376. <!-- 验车照End -->
  377. <!-- 特约 -->
  378. <block v-if="['紫金财险','华泰财险'].includes(this.name)">
  379. <template>
  380. <view class="appoint">
  381. <view class="title d-flex a-center j-sb">
  382. <text style="font-weight: bold;">特约</text>
  383. <view class="showStatus" @tap="controlShow('showAppoint')">{{showAppoint?'收起':'展开'}}</view>
  384. </view>
  385. <view class="content dis f-c j-c a-end" v-if="showAppoint">
  386. <template v-if="this.name=='紫金财险'">
  387. <u-button type="warning" size="mini" style="width: 80px;margin-top: 5px;"
  388. @click="ziJinshow=true">特约选择</u-button>
  389. <view class="contributing dis f-c" v-for="(item,index) in ziJinengageList">
  390. <text>{{item.clauseName}}</text>
  391. <u-input v-if="item.modifyFlag==1" :border="true" v-model="item.clauses" size="mini"
  392. type="textarea" :custom-style="{fontSize:'14px'}" />
  393. <text v-else>{{item.clauses}}</text>
  394. </view>
  395. </template>
  396. <template v-if="this.name=='华泰财险'">
  397. <u-button type="warning" size="mini" style="width: 80px;margin-top: 5px;"
  398. @click="huaTaishow=true">特约选择</u-button>
  399. <view class="contributing dis f-c" v-for="(item,index) in huaTaiengageList">
  400. <text>{{item.engageTitle}}</text>
  401. <u-input v-if="item.modifyFlag==1" :border="true" v-model="item.engageDetail"
  402. size="mini" type="textarea" :custom-style="{fontSize:'14px'}" />
  403. <text v-else>{{item.engageDetail}}</text>
  404. </view>
  405. </template>
  406. </view>
  407. </view>
  408. </template>
  409. </block>
  410. <view class="advancePayment">
  411. <view class="title d-flex a-center j-sb">
  412. <text style="font-weight: bold;">保费</text>
  413. <view class="showStatus" @tap="controlShow('showAdvancePayment')">{{showAdvancePayment?'收起':'展开'}}
  414. </view>
  415. </view>
  416. <view class="content" v-if="showAdvancePayment">
  417. <block v-for="(item,index) in riskList" :key="index">
  418. <template v-if="item.riskCode == '0507'">
  419. <view class="row d-flex a-center j-sb">
  420. <view class="d-flex a-center">交强险</view>
  421. <view>¥{{jqpremium}}</view>
  422. </view>
  423. </template>
  424. </block>
  425. <view class="row d-flex a-center j-sb">
  426. <view>车船税</view>
  427. <view>¥{{taxAmount}}</view>
  428. </view>
  429. <block>
  430. <view class="row d-flex a-center j-sb">
  431. <view class="d-flex a-center">驾意险</view>
  432. <view>¥{{jypremium}}</view>
  433. </view>
  434. </block>
  435. <block v-for="(item,index) in riskList" :key="index">
  436. <template v-if="item.riskCode == '0510'">
  437. <view class="row d-flex a-center j-sb">
  438. <view class="d-flex a-center">商业险</view>
  439. <view>¥{{sypremium}}</view>
  440. </view>
  441. </template>
  442. </block>
  443. </view>
  444. </view>
  445. </view>
  446. <view style="height: 160upx;"></view>
  447. <view class="bottomBtn">
  448. <view class="agree d-flex a-center">
  449. <checkbox @tap="agreed" :checked="agree" style="transform:scale(0.6)"></checkbox> 我已确认并同意 <text
  450. class="tip">保险条款</text> | <text class="tip">投保须知</text> | <text class="tip">隐私条款</text>
  451. </view>
  452. <view class="btnView d-flex">
  453. <view class="d-flex flex-1 a-center">
  454. <view class="d-flex flex-column a-center listener">
  455. <view class="icon iconfont icon-xiaomishu"></view> 客服
  456. </view>
  457. <view style="font-weight: bold;font-size: 34upx;color: #333; ">¥{{sumPermium}}</view>
  458. </view>
  459. <view class="btn d-flex a-center j-center" @tap="submitAudit">申请核保</view>
  460. </view>
  461. </view>
  462. <u-modal v-model="ziJinshow" title="紫金特约选择" :title-style="{fontWeight: 'bold'}"
  463. :scroll-height="{height: '300px'}">
  464. <view class="slot-content">
  465. <u-checkbox-group @change="ziJincontributingChange">
  466. <u-checkbox v-model="item.checked" active-color="rgb(255, 153, 0)"
  467. v-for="(item, index) in ziJinengageListData" :key="index"
  468. :name="item.clauseCode">{{item.clauseName}}</u-checkbox>
  469. </u-checkbox-group>
  470. </view>
  471. </u-modal>
  472. <u-modal v-model="huaTaishow" title="华泰特约选择" :title-style="{fontWeight: 'bold'}"
  473. :scroll-height="{height: '300px'}">
  474. <view class="slot-content">
  475. <u-checkbox-group @change="huaTaicontributingChange">
  476. <u-checkbox v-model="item.checked" active-color="rgb(255, 153, 0)"
  477. v-for="(item, index) in huaTaiengageListData" :key="index"
  478. :name="item.engageCode">{{item.engageTitle}}</u-checkbox>
  479. </u-checkbox-group>
  480. </view>
  481. </u-modal>
  482. <previewImage ref="previewImage" :opacity="0.8" :circular="true" :imgs="previewImgs"></previewImage>
  483. </view>
  484. </template>
  485. <script>
  486. import {
  487. mapState
  488. } from "vuex"
  489. import store from '@/store';
  490. import previewImage from '@/components/common/previewImage/previewImage.vue'; //引用插件
  491. // import wPicker from "@/components/w-picker/w-picker.vue";
  492. import {
  493. pathToBase64,
  494. base64ToPath
  495. } from '@/common/image-tools-base64.js';
  496. import * as imageConversion from 'image-conversion'
  497. export default {
  498. components: {
  499. // wPicker,
  500. previewImage
  501. },
  502. computed: {
  503. ...mapState(['userInfo']),
  504. getHeight() {
  505. let height = uni.getSystemInfoSync().windowHeight;
  506. return `minHeight: ${height}px;`;
  507. }
  508. },
  509. data() {
  510. return {
  511. ziJinshow: false,
  512. huaTaishow: false,
  513. quoteno: "", //报价号
  514. previewImgs: [],
  515. sumPermium: "",
  516. carInfo: {},
  517. vehicleModel: {},
  518. companyId: "",
  519. licenseNo: "",
  520. riskList: [],
  521. kindList: [],
  522. name: "",
  523. icon: "",
  524. taxAmount: "",
  525. jqpremium: "",
  526. sypremium: "",
  527. jypremium: "",
  528. ownerInfo: {},
  529. policyHolderInfo: {},
  530. insuredPersonInfo: {},
  531. agree: false,
  532. jqappoint: "", //交强险特别约定
  533. syappoint: "", //商业特别约定
  534. identifyList: [{
  535. label: '身份证',
  536. id: "01"
  537. },
  538. {
  539. label: '护照',
  540. id: "02"
  541. },
  542. {
  543. label: '港澳台居民居住证',
  544. id: "03"
  545. },
  546. {
  547. label: '组织机构代码证',
  548. id: "04"
  549. },
  550. {
  551. label: '统一社会信用代码证',
  552. id: "05"
  553. },
  554. {
  555. label: '营业执照',
  556. id: "06"
  557. }
  558. ],
  559. showOwerInfo: false, //展示车主信息
  560. showPolicyHolderInfo: false, //展示投保人信息
  561. showInsuredPersonInfo: false, //展示被保人信息
  562. showProposalWay: false, //获取保单方式
  563. showAdvancePayment: false, //展示保费
  564. showAppoint: false, //展示特约
  565. showCarImageInfo: false, //显示车辆影像
  566. carImageListId: [],
  567. showOwnerImageInfo: false, //显示车主影像
  568. ownerImageListId: [],
  569. showPolicyImageInfo: false, //显示投保人影像
  570. policyImageListId: [],
  571. showInsuredImageInfo: false, //显示被保人影像
  572. insuredImageListId: [],
  573. showCarCheckImageInfo: false, //显示验车照影像
  574. imgRelationshipid: [],
  575. showNewCarImageInfo: false, //显示新车影像
  576. imgNewCarinvoiceId: [],
  577. existenceimg: 0,
  578. token: "",
  579. imgList1: [],
  580. imgList2: [],
  581. imgList3: [],
  582. imgList4: [],
  583. imgList5: [],
  584. imgList6: [],
  585. imgList7: [],
  586. imgList8: [],
  587. imgRelationship: [], //其他证明
  588. imgNewCarQualified: [], //合格证
  589. imgNewCarInvoice: [], //发票
  590. ziJinengageListData: [],
  591. ziJinengageList: [],
  592. huaTaiengageListData: [],
  593. huaTaiengageList: [],
  594. }
  595. },
  596. async onLoad(params) {
  597. this.token = store.state.token
  598. if (!!params.companyId) {
  599. this.companyId = params.companyId;
  600. let param = {
  601. companyId: params.companyId
  602. };
  603. let res = await this.$http.post('/insurance/order/getByCompanyId', param);
  604. //获取前一个页面传过来的信息(车辆信息,人员信息,险种信息)
  605. this.icon = "";
  606. this.name = res.data.inscompany;
  607. this.quoteno = res.data.quoteno;
  608. this.carInfo = res.data.carinfo;
  609. this.ownerInfo = res.data.ownerinfo;
  610. this.policyHolderInfo = res.data.applyinfo;
  611. this.insuredPersonInfo = res.data.insureinfo;
  612. this.riskList = res.data.riskinfo;
  613. this.kindList = res.data.kindinfo;
  614. this.licenseNo = res.data.licenseno;
  615. this.sumPermium = res.data.sumpremium;
  616. this.taxAmount = res.data.taxamount;
  617. this.jqpremium = res.data.jqpremium;
  618. this.sypremium = res.data.sypremium;
  619. this.jypremium = res.data.jypremium;
  620. // 图片类型(C01车辆影像,C02车主身份证,C03投保人身份证,C04被保人身份证,C05验车照)
  621. this.imageEcho(this.quoteno)
  622. if (this.name == '紫金财险') {
  623. let Zijinres = await this.$http.post('/order/zijin/queryClauseData', param);
  624. this.ziJinengageListData = Zijinres.data;
  625. let data = this.ziJinengageListData.find(val => val.optType == 3)
  626. if (data) {
  627. this.ziJinengageList.push({
  628. clauseCode: data.clauseCode,
  629. clauseName: data.clauseName,
  630. clauses: data.clauseContent,
  631. riskCode: data.riskCode,
  632. modifyFlag: data.modifyFlag,
  633. optType: data.optType,
  634. })
  635. }
  636. }
  637. if (this.name == '华泰财险') {
  638. let huaTaires = await this.$http.post('/order/huaTaiApi/queryClauseData', param);
  639. this.huaTaiengageListData = huaTaires.data;
  640. huaTaires.data.map(val => {
  641. if (val.optType == '2') {
  642. this.huaTaiengageList.push({
  643. engageCode: val.engageCode,
  644. engageDetail: val.engageDetail,
  645. engageTitle: val.engageTitle,
  646. riskCode: val.riskCode,
  647. modifyFlag: val.modifyFlag,
  648. })
  649. }
  650. })
  651. }
  652. // 影像获取完毕
  653. } else {
  654. uni.showModal({
  655. showCancel: false,
  656. title: "未查询到该订单"
  657. })
  658. }
  659. },
  660. methods: {
  661. ziJincontributingChange(param) {
  662. this.ziJinengageList = [];
  663. param.map(val => {
  664. let list = this.ziJinengageListData.find(item => item.clauseCode == val)
  665. this.ziJinengageList.push({
  666. clauseCode: list.clauseCode,
  667. clauseName: list.clauseName,
  668. clauses: list.clauseContent,
  669. riskCode: list.riskCode,
  670. modifyFlag: list.modifyFlag,
  671. optType: list.optType,
  672. })
  673. })
  674. },
  675. huaTaicontributingChange(param) {
  676. this.huaTaiengageList = [];
  677. param.map(val => {
  678. let list = this.huaTaiengageListData.find(item => item.engageCode == val)
  679. this.huaTaiengageList.push({
  680. engageCode: list.engageCode,
  681. engageDetail: list.engageDetail,
  682. engageTitle: list.engageTitle,
  683. riskCode: list.riskCode,
  684. modifyFlag: list.modifyFlag,
  685. })
  686. })
  687. },
  688. //影像查询
  689. async imageEcho(quotenos) {
  690. let imgres = await this.$http.get('/ins/taskImage/findByQuoteNo?quoteNo=' + quotenos);
  691. if (imgres.code == "200") {
  692. Object.keys(imgres.data).forEach((keys) => {
  693. if (imgres.data[keys].url) {
  694. imgres.data[keys].url = this.$base.baseUrl + imgres.data[keys].url;
  695. switch (keys) {
  696. case 'C01':
  697. this.carImageListId.push({
  698. imageId: imgres.data[keys].imageId,
  699. imageType: imgres.data[keys].imageType,
  700. })
  701. this.imgList1.push(imgres.data[keys]);
  702. break;
  703. case 'D01':
  704. this.carImageListId.push({
  705. imageId: imgres.data[keys].imageId,
  706. imageType: imgres.data[keys].imageType,
  707. })
  708. this.imgList2.push(imgres.data[keys]);
  709. break;
  710. case 'C02':
  711. this.ownerImageListId.push({
  712. imageId: imgres.data[keys].imageId,
  713. imageType: imgres.data[keys].imageType,
  714. })
  715. this.imgList3.push(imgres.data[keys]);
  716. break;
  717. case 'D02':
  718. this.ownerImageListId.push({
  719. imageId: imgres.data[keys].imageId,
  720. imageType: imgres.data[keys].imageType,
  721. })
  722. this.imgList4.push(imgres.data[keys]);
  723. break;
  724. case 'C03':
  725. this.policyImageListId.push({
  726. imageId: imgres.data[keys].imageId,
  727. imageType: imgres.data[keys].imageType,
  728. })
  729. this.imgList5.push(imgres.data[keys]);
  730. break;
  731. case 'D03':
  732. this.policyImageListId.push({
  733. imageId: imgres.data[keys].imageId,
  734. imageType: imgres.data[keys].imageType,
  735. })
  736. this.imgList6.push(imgres.data[keys]);
  737. break;
  738. case 'C04':
  739. this.insuredImageListId.push({
  740. imageId: imgres.data[keys].imageId,
  741. imageType: imgres.data[keys].imageType,
  742. })
  743. this.imgList7.push(imgres.data[keys]);
  744. break;
  745. case 'D04':
  746. this.insuredImageListId.push({
  747. imageId: imgres.data[keys].imageId,
  748. imageType: imgres.data[keys].imageType,
  749. })
  750. this.imgList8.push(imgres.data[keys]);
  751. break;
  752. default:
  753. break;
  754. }
  755. }
  756. });
  757. }
  758. },
  759. // 重新选择车型
  760. toCarInfo() {
  761. this.navigate({
  762. url: '/pages/carInsure1/carInfo1',
  763. success: (res) => {
  764. res.eventChannel.emit("acceptData", {
  765. carInfo: this.carInfo,
  766. ownerInfo: this.ownerInfo,
  767. policyHolderInfo: this.policyHolderInfo,
  768. insuredPersonInfo: this.insuredPersonInfo,
  769. riskList: this.riskList,
  770. kindList: this.kindList
  771. })
  772. }
  773. }, "navigateTo", true);
  774. },
  775. //控制详情的展开和收起
  776. controlShow(type) {
  777. this[type] = !this[type];
  778. },
  779. //阅读并同意协议
  780. agreed() {
  781. if (this.agree == false) {
  782. this.agree = true;
  783. } else {
  784. this.agree = false;
  785. }
  786. },
  787. async chooseImage(type, imageIdList, imgurl) {
  788. let [chooseImageErr, chooseImageRes] = await uni.chooseImage({
  789. count: 1,
  790. sizeType: ['compressed']
  791. });
  792. chooseImageRes.tempFilePaths.map((ele, index) => {
  793. uni.uploadFile({
  794. url: this.$base.baseUrl + '/ins/taskImage/uploadFile',
  795. filePath: ele,
  796. name: "multipartFile",
  797. formData: {
  798. 'type': 'image',
  799. },
  800. header: {
  801. Authorization: this.token,
  802. },
  803. success: async (imgRes) => {
  804. let data = JSON.parse(imgRes.data);
  805. data.data.url = this.$base.baseUrl + data.data.url;
  806. if (data.code == "200") {
  807. console.log()
  808. if (this[imageIdList].some(v => v.imageType == type)) {
  809. this[imageIdList].map(val => {
  810. if (val.imageType == type) {
  811. val.imageId = data.data.id;
  812. }
  813. })
  814. } else {
  815. this[imageIdList].push({
  816. imageId: data.data.id,
  817. imageType: type,
  818. })
  819. }
  820. this[imgurl].push(data.data)
  821. }
  822. }
  823. });
  824. })
  825. },
  826. previewImage(e, type) {
  827. this.previewImgs = this[type];
  828. var current = e.currentTarget.dataset.src;
  829. this.$refs.previewImage.open(current); // 传入当前选中的图片地址或序号
  830. },
  831. //删除图片
  832. delCheckImage(param, IdList, srcList) {
  833. this[IdList].map((ele, index) => {
  834. if (param.imageId === ele.imageId) {
  835. this[IdList].splice(index, 1);
  836. }
  837. return ele;
  838. });
  839. this[srcList].map((ele, index) => {
  840. if (param.imageId === ele.imageId) {
  841. this[srcList].splice(index, 1);
  842. }
  843. return ele;
  844. });
  845. },
  846. // 上传影像并提交核保
  847. async submitAudit() {
  848. if (!this.agree) {
  849. return uni.showToast({
  850. title: '请阅读并同意协议',
  851. icon: "none",
  852. duration: 2000
  853. });
  854. }
  855. const mergedArray = [...this.carImageListId, ...this.ownerImageListId, ...this
  856. .policyImageListId, ...this.insuredImageListId, ...this.imgRelationshipid
  857. ];
  858. if (mergedArray.length > 0) {
  859. await this.$http.post('/ins/taskImage/uploadImages', {
  860. imageList: mergedArray,
  861. quoteNo: this.quoteno,
  862. })
  863. }
  864. uni.showModal({
  865. content: '是否确认提交核保?',
  866. success: async (res) => {
  867. if (res.confirm) {
  868. switch (this.name) {
  869. case "永安财险":
  870. let yaimage = await this.$http.post(
  871. '/order/yongAn/submitImage', {
  872. companyId: this.companyId
  873. });
  874. if (yaimage.code == '200') {
  875. let yaaudit = await this.$http.post(
  876. '/order/yongAn/audit', {
  877. companyId: this.companyId,
  878. jqappoint: "",
  879. syappoint: ""
  880. });
  881. if (yaaudit.code == '200') {
  882. uni.showModal({
  883. content: '订单自核成功',
  884. cancelText: '暂不缴费',
  885. confirmText: '立即缴费',
  886. success: (res1) => {
  887. if (res1.confirm) {
  888. let pro = this.userInfo.sysUser
  889. .managementSource;
  890. if (pro == "3") {
  891. uni.navigateTo({
  892. url: "/pages/carInsure1/payCode2?companyId=" +
  893. this
  894. .companyId
  895. })
  896. } else {
  897. uni.navigateTo({
  898. url: "/pages/carInsure1/payCode1?companyId=" +
  899. this
  900. .companyId
  901. })
  902. }
  903. } else {
  904. this.navigate({
  905. url: "/pages/orders/orders"
  906. }, "switchTab",
  907. true);
  908. }
  909. }
  910. });
  911. } else {
  912. uni.showModal({
  913. content: '核保失败(' + yaaudit.msg + ')',
  914. cancelText: '返回订单',
  915. confirmText: '继续核保',
  916. success: async (res2) => {
  917. if (res2.confirm) {
  918. } else {
  919. this.navigate({
  920. url: "/pages/orders/orders"
  921. }, "switchTab",
  922. true);
  923. }
  924. }
  925. });
  926. }
  927. } else {
  928. uni.showModal({
  929. content: '影像上传失败(' + yaimage.msg + ')',
  930. cancelText: '返回订单',
  931. confirmText: '修改',
  932. success: async (res3) => {
  933. if (res3.confirm) {
  934. } else {
  935. this.navigate({
  936. url: "/pages/orders/orders"
  937. }, "switchTab",
  938. true);
  939. }
  940. }
  941. });
  942. }
  943. break;
  944. case "中煤财险":
  945. let zmimage = await this.$http.post(
  946. '/order/zhongMeiApi/submitImage', {
  947. companyId: this.companyId
  948. });
  949. if (zmimage.code == '200') {
  950. let zmaudit = await this.$http.post(
  951. '/order/zhongMeiApi/audit', {
  952. companyId: this.companyId,
  953. jqappoint: "",
  954. syappoint: ""
  955. });
  956. if (zmaudit.code == '200') {
  957. uni.showModal({
  958. content: '订单自核成功',
  959. cancelText: '暂不缴费',
  960. confirmText: '立即缴费',
  961. success: (res1) => {
  962. if (res1.confirm) {
  963. let pro = this.userInfo.sysUser
  964. .managementSource;
  965. if (pro == "3") {
  966. uni.navigateTo({
  967. url: "/pages/carInsure1/payCode2?companyId=" +
  968. this
  969. .companyId
  970. })
  971. } else {
  972. uni.navigateTo({
  973. url: "/pages/carInsure1/payCode1?companyId=" +
  974. this
  975. .companyId
  976. })
  977. }
  978. } else {
  979. this.navigate({
  980. url: "/pages/orders/orders"
  981. }, "switchTab",
  982. true);
  983. }
  984. }
  985. });
  986. } else {
  987. uni.showModal({
  988. content: '核保失败(' + zmaudit.msg + ')',
  989. cancelText: '返回订单',
  990. confirmText: '修改',
  991. success: async (res2) => {
  992. if (res2.confirm) {
  993. } else {
  994. this.navigate({
  995. url: "/pages/orders/orders"
  996. }, "switchTab",
  997. true);
  998. }
  999. }
  1000. });
  1001. }
  1002. } else {
  1003. uni.showModal({
  1004. content: '影像上传失败(' + zmimage.msg + ')',
  1005. cancelText: '返回订单',
  1006. confirmText: '修改',
  1007. success: async (res3) => {
  1008. if (res3.confirm) {
  1009. } else {
  1010. this.navigate({
  1011. url: "/pages/orders/orders"
  1012. }, "switchTab",
  1013. true);
  1014. }
  1015. }
  1016. });
  1017. }
  1018. break;
  1019. case "永诚财险":
  1020. let ycimage = await this.$http.post(
  1021. '/api/yongCheng/uploadImage', {
  1022. companyId: this.companyId
  1023. });
  1024. if (ycimage.code == '200') {
  1025. let ycaudit = await this.$http.post(
  1026. '/api/yongCheng/audit', {
  1027. companyId: this.companyId,
  1028. });
  1029. if (ycaudit.code == '200') {
  1030. uni.showModal({
  1031. content: '订单自核成功',
  1032. cancelText: '暂不缴费',
  1033. confirmText: '立即缴费',
  1034. success: (res1) => {
  1035. if (res1.confirm) {
  1036. let pro = this.userInfo.sysUser
  1037. .managementSource;
  1038. if (pro == "3") {
  1039. uni.navigateTo({
  1040. url: "/pages/carInsure1/payCode2?companyId=" +
  1041. this
  1042. .companyId
  1043. })
  1044. } else {
  1045. uni.navigateTo({
  1046. url: "/pages/carInsure1/payCode1?companyId=" +
  1047. this
  1048. .companyId
  1049. })
  1050. }
  1051. } else {
  1052. this.navigate({
  1053. url: "/pages/orders/orders"
  1054. }, "switchTab",
  1055. true);
  1056. }
  1057. }
  1058. });
  1059. } else {
  1060. uni.showModal({
  1061. content: '核保失败(' + ycaudit.msg + ')',
  1062. cancelText: '返回订单',
  1063. confirmText: '修改',
  1064. success: async (res2) => {
  1065. if (res2.confirm) {
  1066. } else {
  1067. this.navigate({
  1068. url: "/pages/orders/orders"
  1069. }, "switchTab",
  1070. true);
  1071. }
  1072. }
  1073. });
  1074. }
  1075. } else {
  1076. uni.showModal({
  1077. content: '影像上传失败(' + ycimage.msg + ')',
  1078. cancelText: '返回订单',
  1079. confirmText: '修改',
  1080. success: async (res3) => {
  1081. if (res3.confirm) {
  1082. } else {
  1083. this.navigate({
  1084. url: "/pages/orders/orders"
  1085. }, "switchTab",
  1086. true);
  1087. }
  1088. }
  1089. });
  1090. }
  1091. break;
  1092. case "国任财险":
  1093. let grimage = await this.$http.post(
  1094. '/api/guoRen/uploadImage', {
  1095. companyId: this.companyId
  1096. });
  1097. if (grimage.code == '200') {
  1098. let graudit = await this.$http.post(
  1099. '/api/guoRen/audit', {
  1100. companyId: this.companyId,
  1101. });
  1102. if (graudit.code == '200') {
  1103. uni.showModal({
  1104. content: '订单自核成功',
  1105. cancelText: '暂不缴费',
  1106. confirmText: '立即缴费',
  1107. success: (res1) => {
  1108. if (res1.confirm) {
  1109. let pro = this.userInfo.sysUser
  1110. .managementSource;
  1111. if (pro == "3") {
  1112. uni.navigateTo({
  1113. url: "/pages/carInsure1/payCode2?companyId=" +
  1114. this
  1115. .companyId
  1116. })
  1117. } else {
  1118. uni.navigateTo({
  1119. url: "/pages/carInsure1/payCode1?companyId=" +
  1120. this
  1121. .companyId
  1122. })
  1123. }
  1124. } else {
  1125. this.navigate({
  1126. url: "/pages/orders/orders"
  1127. }, "switchTab",
  1128. true);
  1129. }
  1130. }
  1131. });
  1132. } else {
  1133. uni.showModal({
  1134. content: '核保失败(' + graudit.msg + ')',
  1135. cancelText: '返回订单',
  1136. confirmText: '修改',
  1137. success: async (res2) => {
  1138. if (res2.confirm) {
  1139. } else {
  1140. this.navigate({
  1141. url: "/pages/orders/orders"
  1142. }, "switchTab",
  1143. true);
  1144. }
  1145. }
  1146. });
  1147. }
  1148. } else {
  1149. uni.showModal({
  1150. content: '影像上传失败(' + grimage.msg + ')',
  1151. cancelText: '返回订单',
  1152. confirmText: '修改',
  1153. success: async (res3) => {
  1154. if (res3.confirm) {
  1155. } else {
  1156. this.navigate({
  1157. url: "/pages/orders/orders"
  1158. }, "switchTab",
  1159. true);
  1160. }
  1161. }
  1162. });
  1163. }
  1164. break;
  1165. case "大家财险":
  1166. let djimage = await this.$http.post(
  1167. '/api/dajia/submitImage', {
  1168. companyId: this.companyId
  1169. });
  1170. if (djimage.code == '200') {
  1171. let djaudit = await this.$http.post(
  1172. '/api/dajia/audit', {
  1173. companyId: this.companyId,
  1174. });
  1175. if (djaudit.code == '200') {
  1176. uni.showModal({
  1177. content: '订单自核成功',
  1178. cancelText: '暂不缴费',
  1179. confirmText: '立即缴费',
  1180. success: (res1) => {
  1181. if (res1.confirm) {
  1182. let pro = this.userInfo.sysUser
  1183. .managementSource;
  1184. if (pro == "3") {
  1185. uni.navigateTo({
  1186. url: "/pages/carInsure1/payCode2?companyId=" +
  1187. this
  1188. .companyId
  1189. })
  1190. } else {
  1191. uni.navigateTo({
  1192. url: "/pages/carInsure1/payCode1?companyId=" +
  1193. this
  1194. .companyId
  1195. })
  1196. }
  1197. } else {
  1198. this.navigate({
  1199. url: "/pages/orders/orders"
  1200. }, "switchTab",
  1201. true);
  1202. }
  1203. }
  1204. });
  1205. } else {
  1206. uni.showModal({
  1207. content: '核保失败(' + djaudit.msg + ')',
  1208. cancelText: '返回订单',
  1209. confirmText: '修改',
  1210. success: async (res2) => {
  1211. if (res2.confirm) {
  1212. } else {
  1213. this.navigate({
  1214. url: "/pages/orders/orders"
  1215. }, "switchTab",
  1216. true);
  1217. }
  1218. }
  1219. });
  1220. }
  1221. } else {
  1222. uni.showModal({
  1223. content: '影像上传失败(' + djimage.msg + ')',
  1224. cancelText: '返回订单',
  1225. confirmText: '修改',
  1226. success: async (res3) => {
  1227. if (res3.confirm) {
  1228. } else {
  1229. this.navigate({
  1230. url: "/pages/orders/orders"
  1231. }, "switchTab",
  1232. true);
  1233. }
  1234. }
  1235. });
  1236. }
  1237. break;
  1238. case "紫金财险":
  1239. let zjimage = await this.$http.post(
  1240. '/order/zijin/submitImage', {
  1241. companyId: this.companyId
  1242. });
  1243. if (zjimage.code == '200') {
  1244. let zjaudit = await this.$http.post(
  1245. '/order/zijin/audit', {
  1246. companyId: this.companyId,
  1247. engageList: this.ziJinengageList,
  1248. });
  1249. if (zjaudit.code == '200') {
  1250. uni.showModal({
  1251. content: '订单自核成功',
  1252. cancelText: '暂不缴费',
  1253. confirmText: '立即缴费',
  1254. success: (res1) => {
  1255. if (res1.confirm) {
  1256. let pro = this.userInfo.sysUser
  1257. .managementSource;
  1258. if (pro == "3") {
  1259. uni.navigateTo({
  1260. url: "/pages/carInsure1/payCode2?companyId=" +
  1261. this
  1262. .companyId
  1263. })
  1264. } else {
  1265. uni.navigateTo({
  1266. url: "/pages/carInsure1/payCode1?companyId=" +
  1267. this
  1268. .companyId
  1269. })
  1270. }
  1271. } else {
  1272. this.navigate({
  1273. url: "/pages/orders/orders"
  1274. }, "switchTab",
  1275. true);
  1276. }
  1277. }
  1278. });
  1279. } else {
  1280. uni.showModal({
  1281. content: '核保失败(' + zjaudit.msg + ')',
  1282. cancelText: '返回订单',
  1283. confirmText: '修改',
  1284. success: async (res2) => {
  1285. if (res2.confirm) {
  1286. } else {
  1287. this.navigate({
  1288. url: "/pages/orders/orders"
  1289. }, "switchTab",
  1290. true);
  1291. }
  1292. }
  1293. });
  1294. }
  1295. } else {
  1296. uni.showModal({
  1297. content: '影像上传失败(' + zjimage.msg + ')',
  1298. cancelText: '返回订单',
  1299. confirmText: '修改',
  1300. success: async (res3) => {
  1301. if (res3.confirm) {
  1302. } else {
  1303. this.navigate({
  1304. url: "/pages/orders/orders"
  1305. }, "switchTab",
  1306. true);
  1307. }
  1308. }
  1309. });
  1310. }
  1311. break;
  1312. case "华泰财险":
  1313. let htimage = await this.$http.post(
  1314. '/order/huaTaiApi/submitImage', {
  1315. companyId: this.companyId
  1316. });
  1317. if (htimage.code == '200') {
  1318. let htaudit = await this.$http.post(
  1319. '/order/huaTaiApi/audit', {
  1320. companyId: this.companyId,
  1321. engageList: this.huaTaiengageList,
  1322. });
  1323. if (htaudit.code == '200') {
  1324. uni.showModal({
  1325. content: '订单自核成功',
  1326. cancelText: '暂不缴费',
  1327. confirmText: '立即缴费',
  1328. success: (res1) => {
  1329. if (res1.confirm) {
  1330. let pro = this.userInfo.sysUser
  1331. .managementSource;
  1332. if (pro == "3") {
  1333. uni.navigateTo({
  1334. url: "/pages/carInsure1/payCode2?companyId=" +
  1335. this
  1336. .companyId
  1337. })
  1338. } else {
  1339. uni.navigateTo({
  1340. url: "/pages/carInsure1/payCode1?companyId=" +
  1341. this
  1342. .companyId
  1343. })
  1344. }
  1345. } else {
  1346. this.navigate({
  1347. url: "/pages/orders/orders"
  1348. }, "switchTab",
  1349. true);
  1350. }
  1351. }
  1352. });
  1353. } else {
  1354. uni.showModal({
  1355. content: '核保失败(' + htaudit.msg + ')',
  1356. cancelText: '返回订单',
  1357. confirmText: '修改',
  1358. success: async (res2) => {
  1359. if (res2.confirm) {
  1360. } else {
  1361. this.navigate({
  1362. url: "/pages/orders/orders"
  1363. }, "switchTab",
  1364. true);
  1365. }
  1366. }
  1367. });
  1368. }
  1369. } else {
  1370. uni.showModal({
  1371. content: '影像上传失败(' + htimage.msg + ')',
  1372. cancelText: '返回订单',
  1373. confirmText: '修改',
  1374. success: async (res3) => {
  1375. if (res3.confirm) {
  1376. } else {
  1377. this.navigate({
  1378. url: "/pages/orders/orders"
  1379. }, "switchTab",
  1380. true);
  1381. }
  1382. }
  1383. });
  1384. }
  1385. break;
  1386. case "恒邦财险":
  1387. case "安盛天平":
  1388. case "众安财险":
  1389. case "中国人寿":
  1390. case "太平财险":
  1391. case "华农财险":
  1392. let pythonimage = await this.$http.post(
  1393. '/insurance/crawler/submitImage', {
  1394. subOrderNo: this.companyId
  1395. });
  1396. if (pythonimage.code == '200') {
  1397. let pythonaudit = await this.$http.post(
  1398. '/insurance/crawler/audit', {
  1399. subOrderNo: this.companyId,
  1400. });
  1401. if (pythonaudit.code == '200') {
  1402. uni.showModal({
  1403. content: '订单自核成功',
  1404. cancelText: '暂不缴费',
  1405. confirmText: '立即缴费',
  1406. success: (res1) => {
  1407. if (res1.confirm) {
  1408. let pro = this.userInfo.sysUser
  1409. .managementSource;
  1410. if (pro == "3") {
  1411. uni.navigateTo({
  1412. url: "/pages/carInsure1/payCode2?companyId=" +
  1413. this
  1414. .companyId
  1415. })
  1416. } else {
  1417. uni.navigateTo({
  1418. url: "/pages/carInsure1/payCode1?companyId=" +
  1419. this
  1420. .companyId
  1421. })
  1422. }
  1423. } else {
  1424. this.navigate({
  1425. url: "/pages/orders/orders"
  1426. }, "switchTab",
  1427. true);
  1428. }
  1429. }
  1430. });
  1431. } else {
  1432. uni.showModal({
  1433. content: '核保失败(' + pythonaudit.msg + ')',
  1434. cancelText: '返回订单',
  1435. confirmText: '修改',
  1436. success: async (res2) => {
  1437. if (res2.confirm) {
  1438. } else {
  1439. this.navigate({
  1440. url: "/pages/orders/orders"
  1441. }, "switchTab",
  1442. true);
  1443. }
  1444. }
  1445. });
  1446. }
  1447. } else {
  1448. uni.showModal({
  1449. content: '影像上传失败(' + pythonimage.msg + ')',
  1450. cancelText: '返回订单',
  1451. confirmText: '修改',
  1452. success: async (res3) => {
  1453. if (res3.confirm) {
  1454. } else {
  1455. this.navigate({
  1456. url: "/pages/orders/orders"
  1457. }, "switchTab",
  1458. true);
  1459. }
  1460. }
  1461. });
  1462. }
  1463. break;
  1464. }
  1465. } else if (res.cancel) {}
  1466. }
  1467. });
  1468. }
  1469. }
  1470. }
  1471. </script>
  1472. <style lang="scss" scoped>
  1473. @import '@/style/mixin.scss';
  1474. /* 头部车辆信息和特权Start */
  1475. .carInfo {
  1476. height: 290upx;
  1477. background: -webkit-linear-gradient(0deg, rgba($themeColor, 0.6), rgba($themeColor, 0.8));
  1478. background-size: 100% 100%;
  1479. }
  1480. .carInfo .topLeft {
  1481. width: 120upx;
  1482. font-size: 90upx;
  1483. color: #FFFFFF;
  1484. }
  1485. .carInfo .topRight .brandName {
  1486. width: 400upx;
  1487. overflow: hidden;
  1488. text-overflow: ellipsis;
  1489. white-space: nowrap;
  1490. }
  1491. .carInfo .other {
  1492. background-color: #FFFFFF;
  1493. height: 80upx;
  1494. border-radius: 15upx;
  1495. box-sizing: border-box;
  1496. }
  1497. .carInfo .other .privilege {
  1498. background-color: rgba($themeColor, 0.6);
  1499. font-size: 24upx;
  1500. color: #FFFFFF;
  1501. font-weight: bold;
  1502. width: 60upx;
  1503. }
  1504. .carInfo .other .content {
  1505. width: 460upx;
  1506. margin-left: 15upx;
  1507. overflow: hidden;
  1508. text-overflow: ellipsis;
  1509. white-space: nowrap;
  1510. }
  1511. .carInfo .other .icon {
  1512. width: 30upx;
  1513. }
  1514. /* 头部车辆信息和特权End */
  1515. /* 人员信息Start */
  1516. .personInfo,
  1517. .advancePayment,
  1518. .imageInfo,
  1519. .appoint {
  1520. margin-bottom: 20upx;
  1521. background: #FFFFFF;
  1522. padding: 0upx 30upx;
  1523. }
  1524. .personInfo .title,
  1525. .advancePayment .title,
  1526. .imageInfo .title,
  1527. .appoint .title {
  1528. height: 80upx;
  1529. font-size: 32upx;
  1530. box-shadow: inset 0 -3upx 0px #fafafa;
  1531. }
  1532. .showStatus {
  1533. font-size: 26upx;
  1534. color: $themeColor;
  1535. }
  1536. .personInfo .content .row,
  1537. .advancePayment .content .row {
  1538. height: 80upx;
  1539. border-bottom: 1px solid #F9F9F9;
  1540. }
  1541. .personInfo .content .row .left,
  1542. .advancePayment .content .row .left {
  1543. width: 170upx;
  1544. flex-shrink: 0;
  1545. font-size: 28upx;
  1546. }
  1547. .appoint .content .row {
  1548. height: auto;
  1549. margin-top: 10upx;
  1550. }
  1551. .appoint .content .row>view {
  1552. width: 240upx;
  1553. flex-shrink: 1;
  1554. font-size: 28upx;
  1555. }
  1556. .appoint .content .row>textarea {
  1557. padding: 15upx;
  1558. box-sizing: border-box;
  1559. font-size: 26upx;
  1560. min-height: 160upx;
  1561. height: 100upx;
  1562. border: 1px solid #fafafa;
  1563. }
  1564. .personInfo .content .row .right,
  1565. .advancePayment .content .row .right,
  1566. .appoint .content .row .right {
  1567. font-size: 28upx;
  1568. }
  1569. /* 人员信息End */
  1570. .uni-uploader__file {
  1571. position: relative;
  1572. }
  1573. .delImgIcon {
  1574. width: 40upx;
  1575. height: 40upx;
  1576. background-color: #999;
  1577. position: absolute;
  1578. right: 0upx;
  1579. top: 0upx;
  1580. color: #FFFFFF;
  1581. }
  1582. /* 底部按钮Start */
  1583. .bottomBtn {
  1584. z-index: 99;
  1585. position: fixed;
  1586. bottom: 0;
  1587. left: 0;
  1588. right: 0;
  1589. border-top: 1px solid #F1F1F1;
  1590. background-color: #FFFFFF;
  1591. height: 150upx;
  1592. }
  1593. .bottomBtn .agree {
  1594. height: 60upx;
  1595. font-size: 24upx;
  1596. }
  1597. .bottomBtn .agree .tip {
  1598. color: $themeColor;
  1599. margin: 0upx 10upx;
  1600. }
  1601. .bottomBtn .btnView {
  1602. height: 100upx;
  1603. border-top: 1px solid #F1F1F1;
  1604. }
  1605. .bottomBtn .listener {
  1606. width: 120upx;
  1607. font-size: 20upx;
  1608. line-height: 1;
  1609. color: #999;
  1610. }
  1611. .bottomBtn .listener .icon {
  1612. font-size: 40upx;
  1613. padding: 0;
  1614. line-height: 1.2;
  1615. }
  1616. .bottomBtn .btn {
  1617. font-size: 34upx;
  1618. background-color: $themeColor;
  1619. color: #fff;
  1620. width: 280upx;
  1621. flex-shrink: 0;
  1622. }
  1623. .contributing {
  1624. width: 100%;
  1625. margin: 4px 0;
  1626. font-size: 14px;
  1627. text:nth-child(1) {
  1628. font-weight: bold;
  1629. color: #ff9000;
  1630. }
  1631. }
  1632. .slot-content {
  1633. padding: 10px;
  1634. box-sizing: border-box;
  1635. }
  1636. /* 底部按钮End */
  1637. </style>