underwriting1.vue 49 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608
  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 store from '@/store';
  487. import previewImage from '@/components/common/previewImage/previewImage.vue'; //引用插件
  488. // import wPicker from "@/components/w-picker/w-picker.vue";
  489. import {
  490. pathToBase64,
  491. base64ToPath
  492. } from '@/common/image-tools-base64.js';
  493. import * as imageConversion from 'image-conversion'
  494. export default {
  495. components: {
  496. // wPicker,
  497. previewImage
  498. },
  499. computed: {
  500. getHeight() {
  501. let height = uni.getSystemInfoSync().windowHeight;
  502. return `minHeight: ${height}px;`;
  503. }
  504. },
  505. data() {
  506. return {
  507. ziJinshow: false,
  508. huaTaishow: false,
  509. quoteno: "", //报价号
  510. previewImgs: [],
  511. sumPermium: "",
  512. carInfo: {},
  513. vehicleModel: {},
  514. companyId: "",
  515. licenseNo: "",
  516. riskList: [],
  517. kindList: [],
  518. name: "",
  519. icon: "",
  520. taxAmount: "",
  521. jqpremium: "",
  522. sypremium: "",
  523. jypremium: "",
  524. ownerInfo: {},
  525. policyHolderInfo: {},
  526. insuredPersonInfo: {},
  527. agree: false,
  528. jqappoint: "", //交强险特别约定
  529. syappoint: "", //商业特别约定
  530. identifyList: [{
  531. label: '身份证',
  532. id: "01"
  533. },
  534. {
  535. label: '护照',
  536. id: "02"
  537. },
  538. {
  539. label: '港澳台居民居住证',
  540. id: "03"
  541. },
  542. {
  543. label: '组织机构代码证',
  544. id: "04"
  545. },
  546. {
  547. label: '统一社会信用代码证',
  548. id: "05"
  549. },
  550. {
  551. label: '营业执照',
  552. id: "06"
  553. }
  554. ],
  555. showOwerInfo: false, //展示车主信息
  556. showPolicyHolderInfo: false, //展示投保人信息
  557. showInsuredPersonInfo: false, //展示被保人信息
  558. showProposalWay: false, //获取保单方式
  559. showAdvancePayment: false, //展示保费
  560. showAppoint: false, //展示特约
  561. showCarImageInfo: false, //显示车辆影像
  562. carImageListId: [],
  563. showOwnerImageInfo: false, //显示车主影像
  564. ownerImageListId: [],
  565. showPolicyImageInfo: false, //显示投保人影像
  566. policyImageListId: [],
  567. showInsuredImageInfo: false, //显示被保人影像
  568. insuredImageListId: [],
  569. showCarCheckImageInfo: false, //显示验车照影像
  570. imgRelationshipid: [],
  571. showNewCarImageInfo: false, //显示新车影像
  572. imgNewCarinvoiceId: [],
  573. existenceimg: 0,
  574. token: "",
  575. imgList1: [],
  576. imgList2: [],
  577. imgList3: [],
  578. imgList4: [],
  579. imgList5: [],
  580. imgList6: [],
  581. imgList7: [],
  582. imgList8: [],
  583. imgRelationship: [], //其他证明
  584. imgNewCarQualified: [], //合格证
  585. imgNewCarInvoice: [], //发票
  586. ziJinengageListData: [],
  587. ziJinengageList: [],
  588. huaTaiengageListData: [],
  589. huaTaiengageList: [],
  590. }
  591. },
  592. async onLoad(params) {
  593. this.token = store.state.token
  594. if (!!params.companyId) {
  595. this.companyId = params.companyId;
  596. let param = {
  597. companyId: params.companyId
  598. };
  599. let res = await this.$http.post('/insurance/order/getByCompanyId', param);
  600. //获取前一个页面传过来的信息(车辆信息,人员信息,险种信息)
  601. this.icon = "";
  602. this.name = res.data.inscompany;
  603. this.quoteno = res.data.quoteno;
  604. this.carInfo = res.data.carinfo;
  605. this.ownerInfo = res.data.ownerinfo;
  606. this.policyHolderInfo = res.data.applyinfo;
  607. this.insuredPersonInfo = res.data.insureinfo;
  608. this.riskList = res.data.riskinfo;
  609. this.kindList = res.data.kindinfo;
  610. this.licenseNo = res.data.licenseno;
  611. this.sumPermium = res.data.sumpremium;
  612. this.taxAmount = res.data.taxamount;
  613. this.jqpremium = res.data.jqpremium;
  614. this.sypremium = res.data.sypremium;
  615. this.jypremium = res.data.jypremium;
  616. // 图片类型(C01车辆影像,C02车主身份证,C03投保人身份证,C04被保人身份证,C05验车照)
  617. this.imageEcho(this.quoteno)
  618. if (this.name == '紫金财险') {
  619. let Zijinres = await this.$http.post('/order/zijin/queryClauseData', param);
  620. this.ziJinengageListData = Zijinres.data;
  621. let data = this.ziJinengageListData.find(val => val.optType == 3)
  622. if (data) {
  623. this.ziJinengageList.push({
  624. clauseCode: data.clauseCode,
  625. clauseName: data.clauseName,
  626. clauses: data.clauseContent,
  627. riskCode: data.riskCode,
  628. modifyFlag: data.modifyFlag,
  629. optType: data.optType,
  630. })
  631. }
  632. }
  633. if (this.name == '华泰财险') {
  634. let huaTaires = await this.$http.post('/order/huaTaiApi/queryClauseData', param);
  635. this.huaTaiengageListData = huaTaires.data;
  636. }
  637. // 影像获取完毕
  638. } else {
  639. uni.showModal({
  640. showCancel: false,
  641. title: "未查询到该订单"
  642. })
  643. }
  644. },
  645. methods: {
  646. ziJincontributingChange(param) {
  647. this.ziJinengageList = [];
  648. param.map(val => {
  649. let list = this.ziJinengageListData.find(item => item.clauseCode == val)
  650. this.ziJinengageList.push({
  651. clauseCode: list.clauseCode,
  652. clauseName: list.clauseName,
  653. clauses: list.clauseContent,
  654. riskCode: list.riskCode,
  655. modifyFlag: list.modifyFlag,
  656. optType: list.optType,
  657. })
  658. })
  659. },
  660. huaTaicontributingChange(param) {
  661. this.huaTaiengageList = [];
  662. param.map(val => {
  663. let list = this.huaTaiengageListData.find(item => item.engageCode == val)
  664. this.huaTaiengageList.push({
  665. engageCode: list.engageCode,
  666. engageDetail: list.engageDetail,
  667. engageTitle: list.engageTitle,
  668. riskCode: list.riskCode,
  669. modifyFlag: list.modifyFlag,
  670. })
  671. })
  672. },
  673. //影像查询
  674. async imageEcho(quotenos) {
  675. let imgres = await this.$http.get('/ins/taskImage/findByQuoteNo?quoteNo=' + quotenos);
  676. if (imgres.code == "200") {
  677. Object.keys(imgres.data).forEach((keys) => {
  678. if (imgres.data[keys].url) {
  679. imgres.data[keys].url = this.$base.baseUrl + imgres.data[keys].url;
  680. switch (keys) {
  681. case 'C01':
  682. this.carImageListId.push({
  683. imageId: imgres.data[keys].imageId,
  684. imageType: imgres.data[keys].imageType,
  685. })
  686. this.imgList1.push(imgres.data[keys]);
  687. break;
  688. case 'D01':
  689. this.carImageListId.push({
  690. imageId: imgres.data[keys].imageId,
  691. imageType: imgres.data[keys].imageType,
  692. })
  693. this.imgList2.push(imgres.data[keys]);
  694. break;
  695. case 'C02':
  696. this.ownerImageListId.push({
  697. imageId: imgres.data[keys].imageId,
  698. imageType: imgres.data[keys].imageType,
  699. })
  700. this.imgList3.push(imgres.data[keys]);
  701. break;
  702. case 'D02':
  703. this.ownerImageListId.push({
  704. imageId: imgres.data[keys].imageId,
  705. imageType: imgres.data[keys].imageType,
  706. })
  707. this.imgList4.push(imgres.data[keys]);
  708. break;
  709. case 'C03':
  710. this.policyImageListId.push({
  711. imageId: imgres.data[keys].imageId,
  712. imageType: imgres.data[keys].imageType,
  713. })
  714. this.imgList5.push(imgres.data[keys]);
  715. break;
  716. case 'D03':
  717. this.policyImageListId.push({
  718. imageId: imgres.data[keys].imageId,
  719. imageType: imgres.data[keys].imageType,
  720. })
  721. this.imgList6.push(imgres.data[keys]);
  722. break;
  723. case 'C04':
  724. this.insuredImageListId.push({
  725. imageId: imgres.data[keys].imageId,
  726. imageType: imgres.data[keys].imageType,
  727. })
  728. this.imgList7.push(imgres.data[keys]);
  729. break;
  730. case 'D04':
  731. this.insuredImageListId.push({
  732. imageId: imgres.data[keys].imageId,
  733. imageType: imgres.data[keys].imageType,
  734. })
  735. this.imgList8.push(imgres.data[keys]);
  736. break;
  737. default:
  738. break;
  739. }
  740. }
  741. });
  742. }
  743. },
  744. // 重新选择车型
  745. toCarInfo() {
  746. this.navigate({
  747. url: '/pages/carInsure1/carInfo1',
  748. success: (res) => {
  749. res.eventChannel.emit("acceptData", {
  750. carInfo: this.carInfo,
  751. ownerInfo: this.ownerInfo,
  752. policyHolderInfo: this.policyHolderInfo,
  753. insuredPersonInfo: this.insuredPersonInfo,
  754. riskList: this.riskList,
  755. kindList: this.kindList
  756. })
  757. }
  758. }, "navigateTo", true);
  759. },
  760. //控制详情的展开和收起
  761. controlShow(type) {
  762. this[type] = !this[type];
  763. },
  764. //阅读并同意协议
  765. agreed() {
  766. if (this.agree == false) {
  767. this.agree = true;
  768. } else {
  769. this.agree = false;
  770. }
  771. },
  772. async chooseImage(type, imageIdList, imgurl) {
  773. let [chooseImageErr, chooseImageRes] = await uni.chooseImage({
  774. count: 1,
  775. sizeType: ['compressed']
  776. });
  777. chooseImageRes.tempFilePaths.map((ele, index) => {
  778. uni.uploadFile({
  779. url: this.$base.baseUrl + '/ins/taskImage/uploadFile',
  780. filePath: ele,
  781. name: "multipartFile",
  782. formData: {
  783. 'type': 'image',
  784. },
  785. header: {
  786. Authorization: this.token,
  787. },
  788. success: async (imgRes) => {
  789. let data = JSON.parse(imgRes.data);
  790. data.data.url = this.$base.baseUrl + data.data.url;
  791. if (data.code == "200") {
  792. console.log()
  793. if (this[imageIdList].some(v => v.imageType == type)) {
  794. this[imageIdList].map(val => {
  795. if (val.imageType == type) {
  796. val.imageId = data.data.id;
  797. }
  798. })
  799. } else {
  800. this[imageIdList].push({
  801. imageId: data.data.id,
  802. imageType: type,
  803. })
  804. }
  805. this[imgurl].push(data.data)
  806. }
  807. }
  808. });
  809. })
  810. },
  811. previewImage(e, type) {
  812. this.previewImgs = this[type];
  813. var current = e.currentTarget.dataset.src;
  814. this.$refs.previewImage.open(current); // 传入当前选中的图片地址或序号
  815. },
  816. //删除图片
  817. delCheckImage(param, IdList, srcList) {
  818. this[IdList].map((ele, index) => {
  819. if (param.imageId === ele.imageId) {
  820. this[IdList].splice(index, 1);
  821. }
  822. return ele;
  823. });
  824. this[srcList].map((ele, index) => {
  825. if (param.imageId === ele.imageId) {
  826. this[srcList].splice(index, 1);
  827. }
  828. return ele;
  829. });
  830. },
  831. // 上传影像并提交核保
  832. async submitAudit() {
  833. if (!this.agree) {
  834. return uni.showToast({
  835. title: '请阅读并同意协议',
  836. icon: "none",
  837. duration: 2000
  838. });
  839. }
  840. const mergedArray = [...this.carImageListId, ...this.ownerImageListId, ...this
  841. .policyImageListId, ...this.insuredImageListId, ...this.imgRelationshipid
  842. ];
  843. if (mergedArray.length > 0) {
  844. await this.$http.post('/ins/taskImage/uploadImages', {
  845. imageList: mergedArray,
  846. quoteNo: this.quoteno,
  847. })
  848. }
  849. uni.showModal({
  850. content: '是否确认提交核保?',
  851. success: async (res) => {
  852. if (res.confirm) {
  853. switch (this.name) {
  854. case "永安财险":
  855. let yaimage = await this.$http.post(
  856. '/order/yongAn/submitImage', {
  857. companyId: this.companyId
  858. });
  859. if (yaimage.code == '200') {
  860. let yaaudit = await this.$http.post(
  861. '/order/yongAn/audit', {
  862. companyId: this.companyId,
  863. jqappoint: "",
  864. syappoint: ""
  865. });
  866. if (yaaudit.code == '200') {
  867. uni.showModal({
  868. content: '订单自核成功',
  869. cancelText: '暂不缴费',
  870. confirmText: '立即缴费',
  871. success: (res1) => {
  872. if (res1.confirm) {
  873. uni.navigateTo({
  874. url: "/pages/carInsure1/payCode1?companyId=" +
  875. this
  876. .companyId
  877. })
  878. } else {
  879. this.navigate({
  880. url: "/pages/orders/orders"
  881. }, "switchTab",
  882. true);
  883. }
  884. }
  885. });
  886. } else {
  887. uni.showModal({
  888. content: '核保失败(' + yaaudit.msg + ')',
  889. cancelText: '返回订单',
  890. confirmText: '继续核保',
  891. success: async (res2) => {
  892. if (res2.confirm) {
  893. } else {
  894. this.navigate({
  895. url: "/pages/orders/orders"
  896. }, "switchTab",
  897. true);
  898. }
  899. }
  900. });
  901. }
  902. } else {
  903. uni.showModal({
  904. content: '影像上传失败(' + yaimage.msg + ')',
  905. cancelText: '返回订单',
  906. confirmText: '修改',
  907. success: async (res3) => {
  908. if (res3.confirm) {
  909. } else {
  910. this.navigate({
  911. url: "/pages/orders/orders"
  912. }, "switchTab",
  913. true);
  914. }
  915. }
  916. });
  917. }
  918. break;
  919. case "中煤财险":
  920. let zmimage = await this.$http.post(
  921. '/order/zhongMeiApi/submitImage', {
  922. companyId: this.companyId
  923. });
  924. if (zmimage.code == '200') {
  925. let zmaudit = await this.$http.post(
  926. '/order/zhongMeiApi/audit', {
  927. companyId: this.companyId,
  928. jqappoint: "",
  929. syappoint: ""
  930. });
  931. if (zmaudit.code == '200') {
  932. uni.showModal({
  933. content: '订单自核成功',
  934. cancelText: '暂不缴费',
  935. confirmText: '立即缴费',
  936. success: (res1) => {
  937. if (res1.confirm) {
  938. uni.navigateTo({
  939. url: "/pages/carInsure1/payCode1?companyId=" +
  940. this
  941. .companyId
  942. })
  943. } else {
  944. this.navigate({
  945. url: "/pages/orders/orders"
  946. }, "switchTab",
  947. true);
  948. }
  949. }
  950. });
  951. } else {
  952. uni.showModal({
  953. content: '核保失败(' + zmaudit.msg + ')',
  954. cancelText: '返回订单',
  955. confirmText: '修改',
  956. success: async (res2) => {
  957. if (res2.confirm) {
  958. } else {
  959. this.navigate({
  960. url: "/pages/orders/orders"
  961. }, "switchTab",
  962. true);
  963. }
  964. }
  965. });
  966. }
  967. } else {
  968. uni.showModal({
  969. content: '影像上传失败(' + zmimage.msg + ')',
  970. cancelText: '返回订单',
  971. confirmText: '修改',
  972. success: async (res3) => {
  973. if (res3.confirm) {
  974. } else {
  975. this.navigate({
  976. url: "/pages/orders/orders"
  977. }, "switchTab",
  978. true);
  979. }
  980. }
  981. });
  982. }
  983. break;
  984. case "永诚财险":
  985. let ycimage = await this.$http.post(
  986. '/api/yongCheng/uploadImage', {
  987. companyId: this.companyId
  988. });
  989. if (ycimage.code == '200') {
  990. let ycaudit = await this.$http.post(
  991. '/api/yongCheng/audit', {
  992. companyId: this.companyId,
  993. });
  994. if (ycaudit.code == '200') {
  995. uni.showModal({
  996. content: '订单自核成功',
  997. cancelText: '暂不缴费',
  998. confirmText: '立即缴费',
  999. success: (res1) => {
  1000. if (res1.confirm) {
  1001. uni.navigateTo({
  1002. url: "/pages/carInsure1/payCode1?companyId=" +
  1003. this
  1004. .companyId
  1005. })
  1006. } else {
  1007. this.navigate({
  1008. url: "/pages/orders/orders"
  1009. }, "switchTab",
  1010. true);
  1011. }
  1012. }
  1013. });
  1014. } else {
  1015. uni.showModal({
  1016. content: '核保失败(' + ycaudit.msg + ')',
  1017. cancelText: '返回订单',
  1018. confirmText: '修改',
  1019. success: async (res2) => {
  1020. if (res2.confirm) {
  1021. } else {
  1022. this.navigate({
  1023. url: "/pages/orders/orders"
  1024. }, "switchTab",
  1025. true);
  1026. }
  1027. }
  1028. });
  1029. }
  1030. } else {
  1031. uni.showModal({
  1032. content: '影像上传失败(' + ycimage.msg + ')',
  1033. cancelText: '返回订单',
  1034. confirmText: '修改',
  1035. success: async (res3) => {
  1036. if (res3.confirm) {
  1037. } else {
  1038. this.navigate({
  1039. url: "/pages/orders/orders"
  1040. }, "switchTab",
  1041. true);
  1042. }
  1043. }
  1044. });
  1045. }
  1046. break;
  1047. case "国任财险":
  1048. let grimage = await this.$http.post(
  1049. '/api/guoRen/uploadImage', {
  1050. companyId: this.companyId
  1051. });
  1052. if (grimage.code == '200') {
  1053. let graudit = await this.$http.post(
  1054. '/api/guoRen/audit', {
  1055. companyId: this.companyId,
  1056. });
  1057. if (graudit.code == '200') {
  1058. uni.showModal({
  1059. content: '订单自核成功',
  1060. cancelText: '暂不缴费',
  1061. confirmText: '立即缴费',
  1062. success: (res1) => {
  1063. if (res1.confirm) {
  1064. uni.navigateTo({
  1065. url: "/pages/carInsure1/payCode1?companyId=" +
  1066. this
  1067. .companyId
  1068. })
  1069. } else {
  1070. this.navigate({
  1071. url: "/pages/orders/orders"
  1072. }, "switchTab",
  1073. true);
  1074. }
  1075. }
  1076. });
  1077. } else {
  1078. uni.showModal({
  1079. content: '核保失败(' + graudit.msg + ')',
  1080. cancelText: '返回订单',
  1081. confirmText: '修改',
  1082. success: async (res2) => {
  1083. if (res2.confirm) {
  1084. } else {
  1085. this.navigate({
  1086. url: "/pages/orders/orders"
  1087. }, "switchTab",
  1088. true);
  1089. }
  1090. }
  1091. });
  1092. }
  1093. } else {
  1094. uni.showModal({
  1095. content: '影像上传失败(' + grimage.msg + ')',
  1096. cancelText: '返回订单',
  1097. confirmText: '修改',
  1098. success: async (res3) => {
  1099. if (res3.confirm) {
  1100. } else {
  1101. this.navigate({
  1102. url: "/pages/orders/orders"
  1103. }, "switchTab",
  1104. true);
  1105. }
  1106. }
  1107. });
  1108. }
  1109. break;
  1110. case "大家财险":
  1111. let djimage = await this.$http.post(
  1112. '/api/dajia/submitImage', {
  1113. companyId: this.companyId
  1114. });
  1115. if (djimage.code == '200') {
  1116. let djaudit = await this.$http.post(
  1117. '/api/dajia/audit', {
  1118. companyId: this.companyId,
  1119. });
  1120. if (djaudit.code == '200') {
  1121. uni.showModal({
  1122. content: '订单自核成功',
  1123. cancelText: '暂不缴费',
  1124. confirmText: '立即缴费',
  1125. success: (res1) => {
  1126. if (res1.confirm) {
  1127. uni.navigateTo({
  1128. url: "/pages/carInsure1/payCode1?companyId=" +
  1129. this
  1130. .companyId
  1131. })
  1132. } else {
  1133. this.navigate({
  1134. url: "/pages/orders/orders"
  1135. }, "switchTab",
  1136. true);
  1137. }
  1138. }
  1139. });
  1140. } else {
  1141. uni.showModal({
  1142. content: '核保失败(' + djaudit.msg + ')',
  1143. cancelText: '返回订单',
  1144. confirmText: '修改',
  1145. success: async (res2) => {
  1146. if (res2.confirm) {
  1147. } else {
  1148. this.navigate({
  1149. url: "/pages/orders/orders"
  1150. }, "switchTab",
  1151. true);
  1152. }
  1153. }
  1154. });
  1155. }
  1156. } else {
  1157. uni.showModal({
  1158. content: '影像上传失败(' + djimage.msg + ')',
  1159. cancelText: '返回订单',
  1160. confirmText: '修改',
  1161. success: async (res3) => {
  1162. if (res3.confirm) {
  1163. } else {
  1164. this.navigate({
  1165. url: "/pages/orders/orders"
  1166. }, "switchTab",
  1167. true);
  1168. }
  1169. }
  1170. });
  1171. }
  1172. break;
  1173. case "紫金财险":
  1174. let zjimage = await this.$http.post(
  1175. '/order/zijin/submitImage', {
  1176. companyId: this.companyId
  1177. });
  1178. if (zjimage.code == '200') {
  1179. let zjaudit = await this.$http.post(
  1180. '/order/zijin/audit', {
  1181. companyId: this.companyId,
  1182. engageList: this.ziJinengageList,
  1183. });
  1184. if (zjaudit.code == '200') {
  1185. uni.showModal({
  1186. content: '订单自核成功',
  1187. cancelText: '暂不缴费',
  1188. confirmText: '立即缴费',
  1189. success: (res1) => {
  1190. if (res1.confirm) {
  1191. uni.navigateTo({
  1192. url: "/pages/carInsure1/payCode1?companyId=" +
  1193. this
  1194. .companyId
  1195. })
  1196. } else {
  1197. this.navigate({
  1198. url: "/pages/orders/orders"
  1199. }, "switchTab",
  1200. true);
  1201. }
  1202. }
  1203. });
  1204. } else {
  1205. uni.showModal({
  1206. content: '核保失败(' + zjaudit.msg + ')',
  1207. cancelText: '返回订单',
  1208. confirmText: '修改',
  1209. success: async (res2) => {
  1210. if (res2.confirm) {
  1211. } else {
  1212. this.navigate({
  1213. url: "/pages/orders/orders"
  1214. }, "switchTab",
  1215. true);
  1216. }
  1217. }
  1218. });
  1219. }
  1220. } else {
  1221. uni.showModal({
  1222. content: '影像上传失败(' + zjimage.msg + ')',
  1223. cancelText: '返回订单',
  1224. confirmText: '修改',
  1225. success: async (res3) => {
  1226. if (res3.confirm) {
  1227. } else {
  1228. this.navigate({
  1229. url: "/pages/orders/orders"
  1230. }, "switchTab",
  1231. true);
  1232. }
  1233. }
  1234. });
  1235. }
  1236. break;
  1237. case "华泰财险":
  1238. let htimage = await this.$http.post(
  1239. '/order/huaTaiApi/submitImage', {
  1240. companyId: this.companyId
  1241. });
  1242. if (htimage.code == '200') {
  1243. let htaudit = await this.$http.post(
  1244. '/order/huaTaiApi/audit', {
  1245. companyId: this.companyId,
  1246. engageList: this.huaTaiengageList,
  1247. });
  1248. if (htaudit.code == '200') {
  1249. uni.showModal({
  1250. content: '订单自核成功',
  1251. cancelText: '暂不缴费',
  1252. confirmText: '立即缴费',
  1253. success: (res1) => {
  1254. if (res1.confirm) {
  1255. uni.navigateTo({
  1256. url: "/pages/carInsure1/payCode1?companyId=" +
  1257. this
  1258. .companyId
  1259. })
  1260. } else {
  1261. this.navigate({
  1262. url: "/pages/orders/orders"
  1263. }, "switchTab",
  1264. true);
  1265. }
  1266. }
  1267. });
  1268. } else {
  1269. uni.showModal({
  1270. content: '核保失败(' + htaudit.msg + ')',
  1271. cancelText: '返回订单',
  1272. confirmText: '修改',
  1273. success: async (res2) => {
  1274. if (res2.confirm) {
  1275. } else {
  1276. this.navigate({
  1277. url: "/pages/orders/orders"
  1278. }, "switchTab",
  1279. true);
  1280. }
  1281. }
  1282. });
  1283. }
  1284. } else {
  1285. uni.showModal({
  1286. content: '影像上传失败(' + htimage.msg + ')',
  1287. cancelText: '返回订单',
  1288. confirmText: '修改',
  1289. success: async (res3) => {
  1290. if (res3.confirm) {
  1291. } else {
  1292. this.navigate({
  1293. url: "/pages/orders/orders"
  1294. }, "switchTab",
  1295. true);
  1296. }
  1297. }
  1298. });
  1299. }
  1300. break;
  1301. case "恒邦财险":
  1302. case "安盛天平":
  1303. case "众安财险":
  1304. case "中国人寿":
  1305. let pythonimage = await this.$http.post(
  1306. '/insurance/crawler/submitImage', {
  1307. subOrderNo: this.companyId
  1308. });
  1309. if (pythonimage.code == '200') {
  1310. let pythonaudit = await this.$http.post(
  1311. '/insurance/crawler/audit', {
  1312. subOrderNo: this.companyId,
  1313. });
  1314. if (pythonaudit.code == '200') {
  1315. uni.showModal({
  1316. content: '订单自核成功',
  1317. cancelText: '暂不缴费',
  1318. confirmText: '立即缴费',
  1319. success: (res1) => {
  1320. if (res1.confirm) {
  1321. uni.navigateTo({
  1322. url: "/pages/carInsure1/payCode1?companyId=" +
  1323. this
  1324. .companyId
  1325. })
  1326. } else {
  1327. this.navigate({
  1328. url: "/pages/orders/orders"
  1329. }, "switchTab",
  1330. true);
  1331. }
  1332. }
  1333. });
  1334. } else {
  1335. uni.showModal({
  1336. content: '核保失败(' + pythonaudit.msg + ')',
  1337. cancelText: '返回订单',
  1338. confirmText: '修改',
  1339. success: async (res2) => {
  1340. if (res2.confirm) {
  1341. } else {
  1342. this.navigate({
  1343. url: "/pages/orders/orders"
  1344. }, "switchTab",
  1345. true);
  1346. }
  1347. }
  1348. });
  1349. }
  1350. } else {
  1351. uni.showModal({
  1352. content: '影像上传失败(' + pythonimage.msg + ')',
  1353. cancelText: '返回订单',
  1354. confirmText: '修改',
  1355. success: async (res3) => {
  1356. if (res3.confirm) {
  1357. } else {
  1358. this.navigate({
  1359. url: "/pages/orders/orders"
  1360. }, "switchTab",
  1361. true);
  1362. }
  1363. }
  1364. });
  1365. }
  1366. break;
  1367. }
  1368. } else if (res.cancel) {}
  1369. }
  1370. });
  1371. }
  1372. }
  1373. }
  1374. </script>
  1375. <style lang="scss" scoped>
  1376. @import '@/style/mixin.scss';
  1377. /* 头部车辆信息和特权Start */
  1378. .carInfo {
  1379. height: 290upx;
  1380. background: -webkit-linear-gradient(0deg, rgba($themeColor, 0.6), rgba($themeColor, 0.8));
  1381. background-size: 100% 100%;
  1382. }
  1383. .carInfo .topLeft {
  1384. width: 120upx;
  1385. font-size: 90upx;
  1386. color: #FFFFFF;
  1387. }
  1388. .carInfo .topRight .brandName {
  1389. width: 400upx;
  1390. overflow: hidden;
  1391. text-overflow: ellipsis;
  1392. white-space: nowrap;
  1393. }
  1394. .carInfo .other {
  1395. background-color: #FFFFFF;
  1396. height: 80upx;
  1397. border-radius: 15upx;
  1398. box-sizing: border-box;
  1399. }
  1400. .carInfo .other .privilege {
  1401. background-color: rgba($themeColor, 0.6);
  1402. font-size: 24upx;
  1403. color: #FFFFFF;
  1404. font-weight: bold;
  1405. width: 60upx;
  1406. }
  1407. .carInfo .other .content {
  1408. width: 460upx;
  1409. margin-left: 15upx;
  1410. overflow: hidden;
  1411. text-overflow: ellipsis;
  1412. white-space: nowrap;
  1413. }
  1414. .carInfo .other .icon {
  1415. width: 30upx;
  1416. }
  1417. /* 头部车辆信息和特权End */
  1418. /* 人员信息Start */
  1419. .personInfo,
  1420. .advancePayment,
  1421. .imageInfo,
  1422. .appoint {
  1423. margin-bottom: 20upx;
  1424. background: #FFFFFF;
  1425. padding: 0upx 30upx;
  1426. }
  1427. .personInfo .title,
  1428. .advancePayment .title,
  1429. .imageInfo .title,
  1430. .appoint .title {
  1431. height: 80upx;
  1432. font-size: 32upx;
  1433. box-shadow: inset 0 -3upx 0px #fafafa;
  1434. }
  1435. .showStatus {
  1436. font-size: 26upx;
  1437. color: $themeColor;
  1438. }
  1439. .personInfo .content .row,
  1440. .advancePayment .content .row {
  1441. height: 80upx;
  1442. border-bottom: 1px solid #F9F9F9;
  1443. }
  1444. .personInfo .content .row .left,
  1445. .advancePayment .content .row .left {
  1446. width: 170upx;
  1447. flex-shrink: 0;
  1448. font-size: 28upx;
  1449. }
  1450. .appoint .content .row {
  1451. height: auto;
  1452. margin-top: 10upx;
  1453. }
  1454. .appoint .content .row>view {
  1455. width: 240upx;
  1456. flex-shrink: 1;
  1457. font-size: 28upx;
  1458. }
  1459. .appoint .content .row>textarea {
  1460. padding: 15upx;
  1461. box-sizing: border-box;
  1462. font-size: 26upx;
  1463. min-height: 160upx;
  1464. height: 100upx;
  1465. border: 1px solid #fafafa;
  1466. }
  1467. .personInfo .content .row .right,
  1468. .advancePayment .content .row .right,
  1469. .appoint .content .row .right {
  1470. font-size: 28upx;
  1471. }
  1472. /* 人员信息End */
  1473. .uni-uploader__file {
  1474. position: relative;
  1475. }
  1476. .delImgIcon {
  1477. width: 40upx;
  1478. height: 40upx;
  1479. background-color: #999;
  1480. position: absolute;
  1481. right: 0upx;
  1482. top: 0upx;
  1483. color: #FFFFFF;
  1484. }
  1485. /* 底部按钮Start */
  1486. .bottomBtn {
  1487. z-index: 99;
  1488. position: fixed;
  1489. bottom: 0;
  1490. left: 0;
  1491. right: 0;
  1492. border-top: 1px solid #F1F1F1;
  1493. background-color: #FFFFFF;
  1494. height: 150upx;
  1495. }
  1496. .bottomBtn .agree {
  1497. height: 60upx;
  1498. font-size: 24upx;
  1499. }
  1500. .bottomBtn .agree .tip {
  1501. color: $themeColor;
  1502. margin: 0upx 10upx;
  1503. }
  1504. .bottomBtn .btnView {
  1505. height: 100upx;
  1506. border-top: 1px solid #F1F1F1;
  1507. }
  1508. .bottomBtn .listener {
  1509. width: 120upx;
  1510. font-size: 20upx;
  1511. line-height: 1;
  1512. color: #999;
  1513. }
  1514. .bottomBtn .listener .icon {
  1515. font-size: 40upx;
  1516. padding: 0;
  1517. line-height: 1.2;
  1518. }
  1519. .bottomBtn .btn {
  1520. font-size: 34upx;
  1521. background-color: $themeColor;
  1522. color: #fff;
  1523. width: 280upx;
  1524. flex-shrink: 0;
  1525. }
  1526. .contributing {
  1527. width: 100%;
  1528. margin: 4px 0;
  1529. font-size: 14px;
  1530. text:nth-child(1) {
  1531. font-weight: bold;
  1532. color: #ff9000;
  1533. }
  1534. }
  1535. .slot-content {
  1536. padding: 10px;
  1537. box-sizing: border-box;
  1538. }
  1539. /* 底部按钮End */
  1540. </style>