underwriting1.vue 50 KB

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