underwriting1.vue 54 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781
  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-start">
  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.clauseId">{{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.clauseId == val)
  665. this.ziJinengageList.push({
  666. clauseCode: list.clauseCode,
  667. clauseName: list.clauseName,
  668. clauses: list.clauseContent,
  669. riskCode: list.riskCode,
  670. })
  671. })
  672. },
  673. huaTaicontributingChange(param) {
  674. this.huaTaiengageList = [];
  675. param.map(val => {
  676. let list = this.huaTaiengageListData.find(item => item.engageCode == val)
  677. this.huaTaiengageList.push({
  678. engageCode: list.engageCode,
  679. engageDetail: list.engageDetail,
  680. engageTitle: list.engageTitle,
  681. riskCode: list.riskCode,
  682. modifyFlag: list.modifyFlag,
  683. })
  684. })
  685. },
  686. //影像查询
  687. async imageEcho(quotenos) {
  688. let imgres = await this.$http.get('/ins/taskImage/findByQuoteNo?quoteNo=' + quotenos);
  689. if (imgres.code == "200") {
  690. Object.keys(imgres.data).forEach((keys) => {
  691. if (imgres.data[keys].url) {
  692. imgres.data[keys].url = this.$base.baseUrl + imgres.data[keys].url;
  693. switch (keys) {
  694. case 'C01':
  695. this.carImageListId.push({
  696. imageId: imgres.data[keys].imageId,
  697. imageType: imgres.data[keys].imageType,
  698. })
  699. this.imgList1.push(imgres.data[keys]);
  700. break;
  701. case 'D01':
  702. this.carImageListId.push({
  703. imageId: imgres.data[keys].imageId,
  704. imageType: imgres.data[keys].imageType,
  705. })
  706. this.imgList2.push(imgres.data[keys]);
  707. break;
  708. case 'C02':
  709. this.ownerImageListId.push({
  710. imageId: imgres.data[keys].imageId,
  711. imageType: imgres.data[keys].imageType,
  712. })
  713. this.imgList3.push(imgres.data[keys]);
  714. break;
  715. case 'D02':
  716. this.ownerImageListId.push({
  717. imageId: imgres.data[keys].imageId,
  718. imageType: imgres.data[keys].imageType,
  719. })
  720. this.imgList4.push(imgres.data[keys]);
  721. break;
  722. case 'C03':
  723. this.policyImageListId.push({
  724. imageId: imgres.data[keys].imageId,
  725. imageType: imgres.data[keys].imageType,
  726. })
  727. this.imgList5.push(imgres.data[keys]);
  728. break;
  729. case 'D03':
  730. this.policyImageListId.push({
  731. imageId: imgres.data[keys].imageId,
  732. imageType: imgres.data[keys].imageType,
  733. })
  734. this.imgList6.push(imgres.data[keys]);
  735. break;
  736. case 'C04':
  737. this.insuredImageListId.push({
  738. imageId: imgres.data[keys].imageId,
  739. imageType: imgres.data[keys].imageType,
  740. })
  741. this.imgList7.push(imgres.data[keys]);
  742. break;
  743. case 'D04':
  744. this.insuredImageListId.push({
  745. imageId: imgres.data[keys].imageId,
  746. imageType: imgres.data[keys].imageType,
  747. })
  748. this.imgList8.push(imgres.data[keys]);
  749. break;
  750. default:
  751. break;
  752. }
  753. }
  754. });
  755. }
  756. },
  757. // 重新选择车型
  758. toCarInfo() {
  759. this.navigate({
  760. url: '/pages/carInsure1/carInfo1',
  761. success: (res) => {
  762. res.eventChannel.emit("acceptData", {
  763. carInfo: this.carInfo,
  764. ownerInfo: this.ownerInfo,
  765. policyHolderInfo: this.policyHolderInfo,
  766. insuredPersonInfo: this.insuredPersonInfo,
  767. riskList: this.riskList,
  768. kindList: this.kindList
  769. })
  770. }
  771. }, "navigateTo", true);
  772. },
  773. //控制详情的展开和收起
  774. controlShow(type) {
  775. this[type] = !this[type];
  776. },
  777. //阅读并同意协议
  778. agreed() {
  779. if (this.agree == false) {
  780. this.agree = true;
  781. } else {
  782. this.agree = false;
  783. }
  784. },
  785. async chooseImage(type, imageIdList, imgurl) {
  786. let [chooseImageErr, chooseImageRes] = await uni.chooseImage({
  787. count: 1,
  788. sizeType: ['compressed']
  789. });
  790. chooseImageRes.tempFilePaths.map((ele, index) => {
  791. uni.uploadFile({
  792. url: this.$base.baseUrl + '/ins/taskImage/uploadFile',
  793. filePath: ele,
  794. name: "multipartFile",
  795. formData: {
  796. 'type': 'image',
  797. },
  798. header: {
  799. Authorization: this.token,
  800. },
  801. success: async (imgRes) => {
  802. let data = JSON.parse(imgRes.data);
  803. data.data.url = this.$base.baseUrl + data.data.url;
  804. if (data.code == "200") {
  805. console.log()
  806. if (this[imageIdList].some(v => v.imageType == type)) {
  807. this[imageIdList].map(val => {
  808. if (val.imageType == type) {
  809. val.imageId = data.data.id;
  810. }
  811. })
  812. } else {
  813. this[imageIdList].push({
  814. imageId: data.data.id,
  815. imageType: type,
  816. })
  817. }
  818. this[imgurl].push(data.data)
  819. }
  820. }
  821. });
  822. })
  823. },
  824. previewImage(e, type) {
  825. this.previewImgs = this[type];
  826. var current = e.currentTarget.dataset.src;
  827. this.$refs.previewImage.open(current); // 传入当前选中的图片地址或序号
  828. },
  829. //删除图片
  830. delCheckImage(param, IdList, srcList) {
  831. this[IdList].map((ele, index) => {
  832. if (param.imageId === ele.imageId) {
  833. this[IdList].splice(index, 1);
  834. }
  835. return ele;
  836. });
  837. this[srcList].map((ele, index) => {
  838. if (param.imageId === ele.imageId) {
  839. this[srcList].splice(index, 1);
  840. }
  841. return ele;
  842. });
  843. },
  844. // 上传影像并提交核保
  845. async submitAudit() {
  846. if (!this.agree) {
  847. return uni.showToast({
  848. title: '请阅读并同意协议',
  849. icon: "none",
  850. duration: 2000
  851. });
  852. }
  853. const mergedArray = [...this.carImageListId, ...this.ownerImageListId, ...this
  854. .policyImageListId, ...this.insuredImageListId, ...this.imgRelationshipid
  855. ];
  856. if (mergedArray.length > 0) {
  857. await this.$http.post('/ins/taskImage/uploadImages', {
  858. imageList: mergedArray,
  859. quoteNo: this.quoteno,
  860. })
  861. }
  862. uni.showModal({
  863. content: '是否确认提交核保?',
  864. success: async (res) => {
  865. if (res.confirm) {
  866. switch (this.name) {
  867. case "永安财险":
  868. let yaimage = await this.$http.post(
  869. '/order/yongAn/submitImage', {
  870. companyId: this.companyId
  871. });
  872. if (yaimage.code == '200') {
  873. let yaaudit = await this.$http.post(
  874. '/order/yongAn/audit', {
  875. companyId: this.companyId,
  876. jqappoint: "",
  877. syappoint: ""
  878. });
  879. if (yaaudit.code == '200') {
  880. uni.showModal({
  881. content: '订单自核成功',
  882. cancelText: '暂不缴费',
  883. confirmText: '立即缴费',
  884. success: (res1) => {
  885. if (res1.confirm) {
  886. let pro = this.userInfo.sysUser
  887. .managementSource;
  888. if (pro == "3") {
  889. uni.navigateTo({
  890. url: "/pages/carInsure1/payCode2?companyId=" +
  891. this
  892. .companyId
  893. })
  894. } else {
  895. uni.navigateTo({
  896. url: "/pages/carInsure1/payCode1?companyId=" +
  897. this
  898. .companyId
  899. })
  900. }
  901. } else {
  902. this.navigate({
  903. url: "/pages/orders/orders"
  904. }, "switchTab",
  905. true);
  906. }
  907. }
  908. });
  909. } else {
  910. uni.showModal({
  911. content: '核保失败(' + yaaudit.msg + ')',
  912. cancelText: '返回订单',
  913. confirmText: '继续核保',
  914. success: async (res2) => {
  915. if (res2.confirm) {
  916. } else {
  917. this.navigate({
  918. url: "/pages/orders/orders"
  919. }, "switchTab",
  920. true);
  921. }
  922. }
  923. });
  924. }
  925. } else {
  926. uni.showModal({
  927. content: '影像上传失败(' + yaimage.msg + ')',
  928. cancelText: '返回订单',
  929. confirmText: '修改',
  930. success: async (res3) => {
  931. if (res3.confirm) {
  932. } else {
  933. this.navigate({
  934. url: "/pages/orders/orders"
  935. }, "switchTab",
  936. true);
  937. }
  938. }
  939. });
  940. }
  941. break;
  942. case "中煤财险":
  943. let zmimage = await this.$http.post(
  944. '/order/zhongMeiApi/submitImage', {
  945. companyId: this.companyId
  946. });
  947. if (zmimage.code == '200') {
  948. let zmaudit = await this.$http.post(
  949. '/order/zhongMeiApi/audit', {
  950. companyId: this.companyId,
  951. jqappoint: "",
  952. syappoint: ""
  953. });
  954. if (zmaudit.code == '200') {
  955. uni.showModal({
  956. content: '订单自核成功',
  957. cancelText: '暂不缴费',
  958. confirmText: '立即缴费',
  959. success: (res1) => {
  960. if (res1.confirm) {
  961. let pro = this.userInfo.sysUser
  962. .managementSource;
  963. if (pro == "3") {
  964. uni.navigateTo({
  965. url: "/pages/carInsure1/payCode2?companyId=" +
  966. this
  967. .companyId
  968. })
  969. } else {
  970. uni.navigateTo({
  971. url: "/pages/carInsure1/payCode1?companyId=" +
  972. this
  973. .companyId
  974. })
  975. }
  976. } else {
  977. this.navigate({
  978. url: "/pages/orders/orders"
  979. }, "switchTab",
  980. true);
  981. }
  982. }
  983. });
  984. } else {
  985. uni.showModal({
  986. content: '核保失败(' + zmaudit.msg + ')',
  987. cancelText: '返回订单',
  988. confirmText: '修改',
  989. success: async (res2) => {
  990. if (res2.confirm) {
  991. } else {
  992. this.navigate({
  993. url: "/pages/orders/orders"
  994. }, "switchTab",
  995. true);
  996. }
  997. }
  998. });
  999. }
  1000. } else {
  1001. uni.showModal({
  1002. content: '影像上传失败(' + zmimage.msg + ')',
  1003. cancelText: '返回订单',
  1004. confirmText: '修改',
  1005. success: async (res3) => {
  1006. if (res3.confirm) {
  1007. } else {
  1008. this.navigate({
  1009. url: "/pages/orders/orders"
  1010. }, "switchTab",
  1011. true);
  1012. }
  1013. }
  1014. });
  1015. }
  1016. break;
  1017. case "永诚财险":
  1018. let ycimage = await this.$http.post(
  1019. '/api/yongCheng/uploadImage', {
  1020. companyId: this.companyId
  1021. });
  1022. if (ycimage.code == '200') {
  1023. let ycaudit = await this.$http.post(
  1024. '/api/yongCheng/audit', {
  1025. companyId: this.companyId,
  1026. });
  1027. if (ycaudit.code == '200') {
  1028. uni.showModal({
  1029. content: '订单自核成功',
  1030. cancelText: '暂不缴费',
  1031. confirmText: '立即缴费',
  1032. success: (res1) => {
  1033. if (res1.confirm) {
  1034. let pro = this.userInfo.sysUser
  1035. .managementSource;
  1036. if (pro == "3") {
  1037. uni.navigateTo({
  1038. url: "/pages/carInsure1/payCode2?companyId=" +
  1039. this
  1040. .companyId
  1041. })
  1042. } else {
  1043. uni.navigateTo({
  1044. url: "/pages/carInsure1/payCode1?companyId=" +
  1045. this
  1046. .companyId
  1047. })
  1048. }
  1049. } else {
  1050. this.navigate({
  1051. url: "/pages/orders/orders"
  1052. }, "switchTab",
  1053. true);
  1054. }
  1055. }
  1056. });
  1057. } else {
  1058. uni.showModal({
  1059. content: '核保失败(' + ycaudit.msg + ')',
  1060. cancelText: '返回订单',
  1061. confirmText: '修改',
  1062. success: async (res2) => {
  1063. if (res2.confirm) {
  1064. } else {
  1065. this.navigate({
  1066. url: "/pages/orders/orders"
  1067. }, "switchTab",
  1068. true);
  1069. }
  1070. }
  1071. });
  1072. }
  1073. } else {
  1074. uni.showModal({
  1075. content: '影像上传失败(' + ycimage.msg + ')',
  1076. cancelText: '返回订单',
  1077. confirmText: '修改',
  1078. success: async (res3) => {
  1079. if (res3.confirm) {
  1080. } else {
  1081. this.navigate({
  1082. url: "/pages/orders/orders"
  1083. }, "switchTab",
  1084. true);
  1085. }
  1086. }
  1087. });
  1088. }
  1089. break;
  1090. case "国任财险":
  1091. let grimage = await this.$http.post(
  1092. '/api/guoRen/uploadImage', {
  1093. companyId: this.companyId
  1094. });
  1095. if (grimage.code == '200') {
  1096. let graudit = await this.$http.post(
  1097. '/api/guoRen/audit', {
  1098. companyId: this.companyId,
  1099. });
  1100. if (graudit.code == '200') {
  1101. uni.showModal({
  1102. content: '订单自核成功',
  1103. cancelText: '暂不缴费',
  1104. confirmText: '立即缴费',
  1105. success: (res1) => {
  1106. if (res1.confirm) {
  1107. let pro = this.userInfo.sysUser
  1108. .managementSource;
  1109. if (pro == "3") {
  1110. uni.navigateTo({
  1111. url: "/pages/carInsure1/payCode2?companyId=" +
  1112. this
  1113. .companyId
  1114. })
  1115. } else {
  1116. uni.navigateTo({
  1117. url: "/pages/carInsure1/payCode1?companyId=" +
  1118. this
  1119. .companyId
  1120. })
  1121. }
  1122. } else {
  1123. this.navigate({
  1124. url: "/pages/orders/orders"
  1125. }, "switchTab",
  1126. true);
  1127. }
  1128. }
  1129. });
  1130. } else {
  1131. uni.showModal({
  1132. content: '核保失败(' + graudit.msg + ')',
  1133. cancelText: '返回订单',
  1134. confirmText: '修改',
  1135. success: async (res2) => {
  1136. if (res2.confirm) {
  1137. } else {
  1138. this.navigate({
  1139. url: "/pages/orders/orders"
  1140. }, "switchTab",
  1141. true);
  1142. }
  1143. }
  1144. });
  1145. }
  1146. } else {
  1147. uni.showModal({
  1148. content: '影像上传失败(' + grimage.msg + ')',
  1149. cancelText: '返回订单',
  1150. confirmText: '修改',
  1151. success: async (res3) => {
  1152. if (res3.confirm) {
  1153. } else {
  1154. this.navigate({
  1155. url: "/pages/orders/orders"
  1156. }, "switchTab",
  1157. true);
  1158. }
  1159. }
  1160. });
  1161. }
  1162. break;
  1163. case "大家财险":
  1164. let djimage = await this.$http.post(
  1165. '/api/dajia/submitImage', {
  1166. companyId: this.companyId
  1167. });
  1168. if (djimage.code == '200') {
  1169. let djaudit = await this.$http.post(
  1170. '/api/dajia/audit', {
  1171. companyId: this.companyId,
  1172. });
  1173. if (djaudit.code == '200') {
  1174. uni.showModal({
  1175. content: '订单自核成功',
  1176. cancelText: '暂不缴费',
  1177. confirmText: '立即缴费',
  1178. success: (res1) => {
  1179. if (res1.confirm) {
  1180. let pro = this.userInfo.sysUser
  1181. .managementSource;
  1182. if (pro == "3") {
  1183. uni.navigateTo({
  1184. url: "/pages/carInsure1/payCode2?companyId=" +
  1185. this
  1186. .companyId
  1187. })
  1188. } else {
  1189. uni.navigateTo({
  1190. url: "/pages/carInsure1/payCode1?companyId=" +
  1191. this
  1192. .companyId
  1193. })
  1194. }
  1195. } else {
  1196. this.navigate({
  1197. url: "/pages/orders/orders"
  1198. }, "switchTab",
  1199. true);
  1200. }
  1201. }
  1202. });
  1203. } else {
  1204. uni.showModal({
  1205. content: '核保失败(' + djaudit.msg + ')',
  1206. cancelText: '返回订单',
  1207. confirmText: '修改',
  1208. success: async (res2) => {
  1209. if (res2.confirm) {
  1210. } else {
  1211. this.navigate({
  1212. url: "/pages/orders/orders"
  1213. }, "switchTab",
  1214. true);
  1215. }
  1216. }
  1217. });
  1218. }
  1219. } else {
  1220. uni.showModal({
  1221. content: '影像上传失败(' + djimage.msg + ')',
  1222. cancelText: '返回订单',
  1223. confirmText: '修改',
  1224. success: async (res3) => {
  1225. if (res3.confirm) {
  1226. } else {
  1227. this.navigate({
  1228. url: "/pages/orders/orders"
  1229. }, "switchTab",
  1230. true);
  1231. }
  1232. }
  1233. });
  1234. }
  1235. break;
  1236. case "紫金财险":
  1237. let zjimage = await this.$http.post(
  1238. '/order/zijin/submitImage', {
  1239. companyId: this.companyId
  1240. });
  1241. if (zjimage.code == '200') {
  1242. let zjaudit = await this.$http.post(
  1243. '/order/zijin/audit', {
  1244. companyId: this.companyId,
  1245. engageList: this.ziJinengageList,
  1246. });
  1247. if (zjaudit.code == '200') {
  1248. uni.showModal({
  1249. content: '订单自核成功',
  1250. cancelText: '暂不缴费',
  1251. confirmText: '立即缴费',
  1252. success: (res1) => {
  1253. if (res1.confirm) {
  1254. let pro = this.userInfo.sysUser
  1255. .managementSource;
  1256. if (pro == "3") {
  1257. uni.navigateTo({
  1258. url: "/pages/carInsure1/payCode2?companyId=" +
  1259. this
  1260. .companyId
  1261. })
  1262. } else {
  1263. uni.navigateTo({
  1264. url: "/pages/carInsure1/payCode1?companyId=" +
  1265. this
  1266. .companyId
  1267. })
  1268. }
  1269. } else {
  1270. this.navigate({
  1271. url: "/pages/orders/orders"
  1272. }, "switchTab",
  1273. true);
  1274. }
  1275. }
  1276. });
  1277. } else {
  1278. uni.showModal({
  1279. content: '核保失败(' + zjaudit.msg + ')',
  1280. cancelText: '返回订单',
  1281. confirmText: '修改',
  1282. success: async (res2) => {
  1283. if (res2.confirm) {
  1284. } else {
  1285. this.navigate({
  1286. url: "/pages/orders/orders"
  1287. }, "switchTab",
  1288. true);
  1289. }
  1290. }
  1291. });
  1292. }
  1293. } else {
  1294. uni.showModal({
  1295. content: '影像上传失败(' + zjimage.msg + ')',
  1296. cancelText: '返回订单',
  1297. confirmText: '修改',
  1298. success: async (res3) => {
  1299. if (res3.confirm) {
  1300. } else {
  1301. this.navigate({
  1302. url: "/pages/orders/orders"
  1303. }, "switchTab",
  1304. true);
  1305. }
  1306. }
  1307. });
  1308. }
  1309. break;
  1310. case "华泰财险":
  1311. let htimage = await this.$http.post(
  1312. '/order/huaTaiApi/submitImage', {
  1313. companyId: this.companyId
  1314. });
  1315. if (htimage.code == '200') {
  1316. let htaudit = await this.$http.post(
  1317. '/order/huaTaiApi/audit', {
  1318. companyId: this.companyId,
  1319. engageList: this.huaTaiengageList,
  1320. });
  1321. if (htaudit.code == '200') {
  1322. uni.showModal({
  1323. content: '订单自核成功',
  1324. cancelText: '暂不缴费',
  1325. confirmText: '立即缴费',
  1326. success: (res1) => {
  1327. if (res1.confirm) {
  1328. let pro = this.userInfo.sysUser
  1329. .managementSource;
  1330. if (pro == "3") {
  1331. uni.navigateTo({
  1332. url: "/pages/carInsure1/payCode2?companyId=" +
  1333. this
  1334. .companyId
  1335. })
  1336. } else {
  1337. uni.navigateTo({
  1338. url: "/pages/carInsure1/payCode1?companyId=" +
  1339. this
  1340. .companyId
  1341. })
  1342. }
  1343. } else {
  1344. this.navigate({
  1345. url: "/pages/orders/orders"
  1346. }, "switchTab",
  1347. true);
  1348. }
  1349. }
  1350. });
  1351. } else {
  1352. uni.showModal({
  1353. content: '核保失败(' + htaudit.msg + ')',
  1354. cancelText: '返回订单',
  1355. confirmText: '修改',
  1356. success: async (res2) => {
  1357. if (res2.confirm) {
  1358. } else {
  1359. this.navigate({
  1360. url: "/pages/orders/orders"
  1361. }, "switchTab",
  1362. true);
  1363. }
  1364. }
  1365. });
  1366. }
  1367. } else {
  1368. uni.showModal({
  1369. content: '影像上传失败(' + htimage.msg + ')',
  1370. cancelText: '返回订单',
  1371. confirmText: '修改',
  1372. success: async (res3) => {
  1373. if (res3.confirm) {
  1374. } else {
  1375. this.navigate({
  1376. url: "/pages/orders/orders"
  1377. }, "switchTab",
  1378. true);
  1379. }
  1380. }
  1381. });
  1382. }
  1383. break;
  1384. case "渤海财险":
  1385. let bhimage = await this.$http.post(
  1386. '/order/boHaiApi/submitImage', {
  1387. companyId: this.companyId
  1388. });
  1389. if (bhimage.code == '200') {
  1390. let bhaudit = await this.$http.post(
  1391. '/order/boHaiApi/audit', {
  1392. companyId: this.companyId,
  1393. jqappoint: "",
  1394. syappoint: ""
  1395. });
  1396. if (bhaudit.code == '200') {
  1397. uni.showModal({
  1398. content: '订单自核成功',
  1399. cancelText: '暂不缴费',
  1400. confirmText: '立即缴费',
  1401. success: (res1) => {
  1402. if (res1.confirm) {
  1403. let pro = this.userInfo.sysUser
  1404. .managementSource;
  1405. if (pro == "3") {
  1406. uni.navigateTo({
  1407. url: "/pages/carInsure1/payCode2?companyId=" +
  1408. this
  1409. .companyId
  1410. })
  1411. } else {
  1412. uni.navigateTo({
  1413. url: "/pages/carInsure1/payCode1?companyId=" +
  1414. this
  1415. .companyId
  1416. })
  1417. }
  1418. } else {
  1419. this.navigate({
  1420. url: "/pages/orders/orders"
  1421. }, "switchTab",
  1422. true);
  1423. }
  1424. }
  1425. });
  1426. } else {
  1427. uni.showModal({
  1428. content: '核保失败(' + bhaudit.msg + ')',
  1429. cancelText: '返回订单',
  1430. confirmText: '修改',
  1431. success: async (res2) => {
  1432. if (res2.confirm) {
  1433. } else {
  1434. this.navigate({
  1435. url: "/pages/orders/orders"
  1436. }, "switchTab",
  1437. true);
  1438. }
  1439. }
  1440. });
  1441. }
  1442. } else {
  1443. uni.showModal({
  1444. content: '影像上传失败(' + bhimage.msg + ')',
  1445. cancelText: '返回订单',
  1446. confirmText: '修改',
  1447. success: async (res3) => {
  1448. if (res3.confirm) {
  1449. } else {
  1450. this.navigate({
  1451. url: "/pages/orders/orders"
  1452. }, "switchTab",
  1453. true);
  1454. }
  1455. }
  1456. });
  1457. }
  1458. break;
  1459. case "恒邦财险":
  1460. case "安盛天平":
  1461. case "众安财险":
  1462. case "中国人寿":
  1463. case "太平财险":
  1464. case "华农财险":
  1465. let pythonimage = await this.$http.post(
  1466. '/insurance/crawler/submitImage', {
  1467. subOrderNo: this.companyId
  1468. });
  1469. if (pythonimage.code == '200') {
  1470. let pythonaudit = await this.$http.post(
  1471. '/insurance/crawler/audit', {
  1472. subOrderNo: this.companyId,
  1473. });
  1474. if (pythonaudit.code == '200') {
  1475. uni.showModal({
  1476. content: '订单自核成功',
  1477. cancelText: '暂不缴费',
  1478. confirmText: '立即缴费',
  1479. success: (res1) => {
  1480. if (res1.confirm) {
  1481. let pro = this.userInfo.sysUser
  1482. .managementSource;
  1483. if (pro == "3") {
  1484. uni.navigateTo({
  1485. url: "/pages/carInsure1/payCode2?companyId=" +
  1486. this
  1487. .companyId
  1488. })
  1489. } else {
  1490. uni.navigateTo({
  1491. url: "/pages/carInsure1/payCode1?companyId=" +
  1492. this
  1493. .companyId
  1494. })
  1495. }
  1496. } else {
  1497. this.navigate({
  1498. url: "/pages/orders/orders"
  1499. }, "switchTab",
  1500. true);
  1501. }
  1502. }
  1503. });
  1504. } else {
  1505. uni.showModal({
  1506. content: '核保失败(' + pythonaudit.msg + ')',
  1507. cancelText: '返回订单',
  1508. confirmText: '修改',
  1509. success: async (res2) => {
  1510. if (res2.confirm) {
  1511. } else {
  1512. this.navigate({
  1513. url: "/pages/orders/orders"
  1514. }, "switchTab",
  1515. true);
  1516. }
  1517. }
  1518. });
  1519. }
  1520. } else {
  1521. uni.showModal({
  1522. content: '影像上传失败(' + pythonimage.msg + ')',
  1523. cancelText: '返回订单',
  1524. confirmText: '修改',
  1525. success: async (res3) => {
  1526. if (res3.confirm) {
  1527. } else {
  1528. this.navigate({
  1529. url: "/pages/orders/orders"
  1530. }, "switchTab",
  1531. true);
  1532. }
  1533. }
  1534. });
  1535. }
  1536. break;
  1537. }
  1538. } else if (res.cancel) {}
  1539. }
  1540. });
  1541. }
  1542. }
  1543. }
  1544. </script>
  1545. <style lang="scss" scoped>
  1546. @import '@/style/mixin.scss';
  1547. /* 头部车辆信息和特权Start */
  1548. .carInfo {
  1549. height: 290upx;
  1550. background: -webkit-linear-gradient(0deg, rgba($themeColor, 0.6), rgba($themeColor, 0.8));
  1551. background-size: 100% 100%;
  1552. }
  1553. .carInfo .topLeft {
  1554. width: 120upx;
  1555. font-size: 90upx;
  1556. color: #FFFFFF;
  1557. }
  1558. .carInfo .topRight .brandName {
  1559. width: 400upx;
  1560. overflow: hidden;
  1561. text-overflow: ellipsis;
  1562. white-space: nowrap;
  1563. }
  1564. .carInfo .other {
  1565. background-color: #FFFFFF;
  1566. height: 80upx;
  1567. border-radius: 15upx;
  1568. box-sizing: border-box;
  1569. }
  1570. .carInfo .other .privilege {
  1571. background-color: rgba($themeColor, 0.6);
  1572. font-size: 24upx;
  1573. color: #FFFFFF;
  1574. font-weight: bold;
  1575. width: 60upx;
  1576. }
  1577. .carInfo .other .content {
  1578. width: 460upx;
  1579. margin-left: 15upx;
  1580. overflow: hidden;
  1581. text-overflow: ellipsis;
  1582. white-space: nowrap;
  1583. }
  1584. .carInfo .other .icon {
  1585. width: 30upx;
  1586. }
  1587. /* 头部车辆信息和特权End */
  1588. /* 人员信息Start */
  1589. .personInfo,
  1590. .advancePayment,
  1591. .imageInfo,
  1592. .appoint {
  1593. margin-bottom: 20upx;
  1594. background: #FFFFFF;
  1595. padding: 0upx 30upx;
  1596. }
  1597. .personInfo .title,
  1598. .advancePayment .title,
  1599. .imageInfo .title,
  1600. .appoint .title {
  1601. height: 80upx;
  1602. font-size: 32upx;
  1603. box-shadow: inset 0 -3upx 0px #fafafa;
  1604. }
  1605. .showStatus {
  1606. font-size: 26upx;
  1607. color: $themeColor;
  1608. }
  1609. .personInfo .content .row,
  1610. .advancePayment .content .row {
  1611. height: 80upx;
  1612. border-bottom: 1px solid #F9F9F9;
  1613. }
  1614. .personInfo .content .row .left,
  1615. .advancePayment .content .row .left {
  1616. width: 170upx;
  1617. flex-shrink: 0;
  1618. font-size: 28upx;
  1619. }
  1620. .appoint .content .row {
  1621. height: auto;
  1622. margin-top: 10upx;
  1623. }
  1624. .appoint .content .row>view {
  1625. width: 240upx;
  1626. flex-shrink: 1;
  1627. font-size: 28upx;
  1628. }
  1629. .appoint .content .row>textarea {
  1630. padding: 15upx;
  1631. box-sizing: border-box;
  1632. font-size: 26upx;
  1633. min-height: 160upx;
  1634. height: 100upx;
  1635. border: 1px solid #fafafa;
  1636. }
  1637. .personInfo .content .row .right,
  1638. .advancePayment .content .row .right,
  1639. .appoint .content .row .right {
  1640. font-size: 28upx;
  1641. }
  1642. /* 人员信息End */
  1643. .uni-uploader__file {
  1644. position: relative;
  1645. }
  1646. .delImgIcon {
  1647. width: 40upx;
  1648. height: 40upx;
  1649. background-color: #999;
  1650. position: absolute;
  1651. right: 0upx;
  1652. top: 0upx;
  1653. color: #FFFFFF;
  1654. }
  1655. /* 底部按钮Start */
  1656. .bottomBtn {
  1657. z-index: 99;
  1658. position: fixed;
  1659. bottom: 0;
  1660. left: 0;
  1661. right: 0;
  1662. border-top: 1px solid #F1F1F1;
  1663. background-color: #FFFFFF;
  1664. height: 150upx;
  1665. }
  1666. .bottomBtn .agree {
  1667. height: 60upx;
  1668. font-size: 24upx;
  1669. }
  1670. .bottomBtn .agree .tip {
  1671. color: $themeColor;
  1672. margin: 0upx 10upx;
  1673. }
  1674. .bottomBtn .btnView {
  1675. height: 100upx;
  1676. border-top: 1px solid #F1F1F1;
  1677. }
  1678. .bottomBtn .listener {
  1679. width: 120upx;
  1680. font-size: 20upx;
  1681. line-height: 1;
  1682. color: #999;
  1683. }
  1684. .bottomBtn .listener .icon {
  1685. font-size: 40upx;
  1686. padding: 0;
  1687. line-height: 1.2;
  1688. }
  1689. .bottomBtn .btn {
  1690. font-size: 34upx;
  1691. background-color: $themeColor;
  1692. color: #fff;
  1693. width: 280upx;
  1694. flex-shrink: 0;
  1695. }
  1696. .contributing {
  1697. width: 100%;
  1698. margin: 4px 0;
  1699. font-size: 14px;
  1700. text:nth-child(1) {
  1701. font-weight: bold;
  1702. color: #ff9000;
  1703. }
  1704. }
  1705. .slot-content {
  1706. padding: 10px;
  1707. box-sizing: border-box;
  1708. }
  1709. /* 底部按钮End */
  1710. </style>