imageData.vue 64 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589
  1. <template>
  2. <div class="imageData">
  3. <h3>车辆信息</h3>
  4. <el-row :gutter="20">
  5. <el-col class="col-m-b-16" :span="8">
  6. <el-upload v-if="!drivingLicenseHomePage" :auto-upload="false" :show-file-list="false"@change="uploadImage($event, 1)">
  7. <div class="upload-box">
  8. <div class="icon-box">
  9. <el-icon style="font-size: 20px"><Camera /></el-icon>
  10. <p>行驶证主页</p>
  11. </div>
  12. </div>
  13. </el-upload>
  14. <div class="fileInfo" v-else>
  15. <div class="file-box">
  16. <div class="btn-top">
  17. <img class="image-close" @click="deleteImage(1)" src="@/assets/images/close.png" />
  18. </div>
  19. <img class="file-img" :src="drivingLicenseHomePage" />
  20. <div class="btn-bottom">
  21. <el-upload class="width-50" :show-file-list="false" :auto-upload="false" accept=".png, .jpg, .jpeg" @change="uploadImage($event, 1)" style="display: flex; align-items: center; justify-content: center; color: white">
  22. <el-icon><Upload /></el-icon>重新上传
  23. </el-upload>
  24. <div class="width-50" style="display: flex; align-items: center; justify-content: center; color: white; cursor:pointer;" @click="downloadImage(1)">
  25. <el-icon><Download /></el-icon>下载资料
  26. </div>
  27. </div>
  28. </div>
  29. </div>
  30. </el-col>
  31. <el-col class="col-m-b-16" :span="8">
  32. <el-upload v-if="!drivingLicenseReversePage" :auto-upload="false" :show-file-list="false" @change="uploadImage($event, 2)">
  33. <div class="upload-box">
  34. <div class="icon-box">
  35. <el-icon style="font-size: 20px"><Camera /></el-icon>
  36. <p>行驶证副页</p>
  37. </div>
  38. </div>
  39. </el-upload>
  40. <div class="fileInfo" v-else>
  41. <div class="file-box">
  42. <div class="btn-top">
  43. <img class="image-close" @click="deleteImage(2)" src="@/assets/images/close.png" />
  44. </div>
  45. <img class="file-img" :src="drivingLicenseReversePage" />
  46. <div class="btn-bottom">
  47. <el-upload class="width-50" :show-file-list="false" :auto-upload="false" accept=".png, .jpg, .jpeg" @change="uploadImage($event, 2)" style="display: flex; align-items: center; justify-content: center; color: white">
  48. <el-icon><Upload /></el-icon>重新上传
  49. </el-upload>
  50. <div class="width-50" style="display: flex; align-items: center; justify-content: center; color: white; cursor:pointer;" @click="downloadImage(2)">
  51. <el-icon><Download /></el-icon>下载资料
  52. </div>
  53. </div>
  54. </div>
  55. </div>
  56. </el-col>
  57. <el-col class="col-m-b-16" :span="8">
  58. <el-upload v-if="!vehicleRegistrationCertificate" :auto-upload="false" :show-file-list="false" @change="uploadImage($event, 3)">
  59. <div class="upload-box">
  60. <div class="icon-box">
  61. <el-icon style="font-size: 20px"><Camera /></el-icon>
  62. <p>机动车辆登记证书</p>
  63. </div>
  64. </div>
  65. </el-upload>
  66. <div class="fileInfo" v-else>
  67. <div class="file-box">
  68. <div class="btn-top">
  69. <img class="image-close" @click="deleteImage(3)" src="@/assets/images/close.png" />
  70. </div>
  71. <img class="file-img" :src="vehicleRegistrationCertificate" />
  72. <div class="btn-bottom">
  73. <el-upload class="width-50" :show-file-list="false" :auto-upload="false" accept=".png, .jpg, .jpeg" @change="uploadImage($event, 3)" style="display: flex; align-items: center; justify-content: center; color: white">
  74. <el-icon><Upload /></el-icon>重新上传
  75. </el-upload>
  76. <div class="width-50" style="display: flex; align-items: center; justify-content: center; color: white; cursor:pointer;" @click="downloadImage(3)">
  77. <el-icon><Download /></el-icon>下载资料
  78. </div>
  79. </div>
  80. </div>
  81. </div>
  82. </el-col>
  83. <el-col class="col-m-b-16" :span="8">
  84. <el-upload v-if="!carCertificate" :auto-upload="false" :show-file-list="false" @change="uploadImage($event, 4)">
  85. <div class="upload-box">
  86. <div class="icon-box">
  87. <el-icon style="font-size: 20px"><Camera /></el-icon>
  88. <p>新车合格证</p>
  89. </div>
  90. </div>
  91. </el-upload>
  92. <div class="fileInfo" v-else>
  93. <div class="file-box">
  94. <div class="btn-top">
  95. <img class="image-close" @click="deleteImage(4)" src="@/assets/images/close.png" />
  96. </div>
  97. <img class="file-img" :src="carCertificate" />
  98. <div class="btn-bottom">
  99. <el-upload class="width-50" :show-file-list="false" :auto-upload="false" accept=".png, .jpg, .jpeg" @change="uploadImage($event, 4)" style="display: flex; align-items: center; justify-content: center; color: white">
  100. <el-icon><Upload /></el-icon>重新上传
  101. </el-upload>
  102. <div class="width-50" style="display: flex; align-items: center; justify-content: center; color: white; cursor:pointer;" @click="downloadImage(4)">
  103. <el-icon><Download /></el-icon>下载资料
  104. </div>
  105. </div>
  106. </div>
  107. </div>
  108. </el-col>
  109. <el-col class="col-m-b-16" :span="8">
  110. <el-upload v-if="!purchaseInvoice" :auto-upload="false" :show-file-list="false" @change="uploadImage($event, 5)">
  111. <div class="upload-box">
  112. <div class="icon-box">
  113. <el-icon style="font-size: 20px"><Camera /></el-icon>
  114. <p>购车发票</p>
  115. </div>
  116. </div>
  117. </el-upload>
  118. <div class="fileInfo" v-else>
  119. <div class="file-box">
  120. <div class="btn-top">
  121. <img class="image-close" @click="deleteImage(5)" src="@/assets/images/close.png" />
  122. </div>
  123. <img class="file-img" :src="purchaseInvoice" />
  124. <div class="btn-bottom">
  125. <el-upload class="width-50" :show-file-list="false" :auto-upload="false" accept=".png, .jpg, .jpeg" @change="uploadImage($event, 5)" style="display: flex; align-items: center; justify-content: center; color: white">
  126. <el-icon><Upload /></el-icon>重新上传
  127. </el-upload>
  128. <div class="width-50" style="display: flex; align-items: center; justify-content: center; color: white; cursor:pointer;" @click="downloadImage(5)">
  129. <el-icon><Download /></el-icon>下载资料
  130. </div>
  131. </div>
  132. </div>
  133. </div>
  134. </el-col>
  135. </el-row>
  136. <h3>车主信息</h3>
  137. <el-row :gutter="20">
  138. <el-col class="col-m-b-16" :span="8">
  139. <el-upload v-if="!IDCardFront" :auto-upload="false" :show-file-list="false" @change="uploadImage($event, 6)">
  140. <div class="upload-box">
  141. <div class="icon-box">
  142. <el-icon style="font-size: 20px"><Camera /></el-icon>
  143. <p>车主身份证(正面)</p>
  144. </div>
  145. </div>
  146. </el-upload>
  147. <div class="fileInfo" v-else>
  148. <div class="file-box">
  149. <div class="btn-top">
  150. <img class="image-close" @click="deleteImage(6)" src="@/assets/images/close.png" />
  151. </div>
  152. <img class="file-img" :src="IDCardFront" />
  153. <div class="btn-bottom">
  154. <el-upload class="width-50" :show-file-list="false" :auto-upload="false" accept=".png, .jpg, .jpeg" @change="uploadImage($event, 6)" style="display: flex; align-items: center; justify-content: center; color: white">
  155. <el-icon><Upload /></el-icon>重新上传
  156. </el-upload>
  157. <div class="width-50" style="display: flex; align-items: center; justify-content: center; color: white; cursor:pointer;" @click="downloadImage(6)">
  158. <el-icon><Download /></el-icon>下载资料
  159. </div>
  160. </div>
  161. </div>
  162. </div>
  163. </el-col>
  164. <el-col class="col-m-b-16" :span="8">
  165. <el-upload v-if="!IDCardBack" :auto-upload="false" :show-file-list="false" @change="uploadImage($event, 7)">
  166. <div class="upload-box">
  167. <div class="icon-box">
  168. <el-icon style="font-size: 20px"><Camera /></el-icon>
  169. <p>车主身份证(反面)</p>
  170. </div>
  171. </div>
  172. </el-upload>
  173. <div class="fileInfo" v-else>
  174. <div class="file-box">
  175. <div class="btn-top">
  176. <img class="image-close" @click="deleteImage(7)" src="@/assets/images/close.png" />
  177. </div>
  178. <img class="file-img" :src="IDCardBack" />
  179. <div class="btn-bottom">
  180. <el-upload class="width-50" :show-file-list="false" :auto-upload="false" accept=".png, .jpg, .jpeg" @change="uploadImage($event, 7)" style="display: flex; align-items: center; justify-content: center; color: white">
  181. <el-icon><Upload /></el-icon>重新上传
  182. </el-upload>
  183. <div class="width-50" style="display: flex; align-items: center; justify-content: center; color: white; cursor:pointer;" @click="downloadImage(7)">
  184. <el-icon><Download /></el-icon>下载资料
  185. </div>
  186. </div>
  187. </div>
  188. </div>
  189. </el-col>
  190. <el-col class="col-m-b-16" :span="8">
  191. <el-upload v-if="!carBusinessLicense" :auto-upload="false" :show-file-list="false" @change="uploadImage($event, 8)">
  192. <div class="upload-box">
  193. <div class="icon-box">
  194. <el-icon style="font-size: 20px"><Camera /></el-icon>
  195. <p>车主营业执照</p>
  196. </div>
  197. </div>
  198. </el-upload>
  199. <div class="fileInfo" v-else>
  200. <div class="file-box">
  201. <div class="btn-top">
  202. <img class="image-close" @click="deleteImage(8)" src="@/assets/images/close.png" />
  203. </div>
  204. <img class="file-img" :src="carBusinessLicense" />
  205. <div class="btn-bottom">
  206. <el-upload class="width-50" :show-file-list="false" :auto-upload="false" accept=".png, .jpg, .jpeg" @change="uploadImage($event, 8)" style="display: flex; align-items: center; justify-content: center; color: white">
  207. <el-icon><Upload /></el-icon>重新上传
  208. </el-upload>
  209. <div class="width-50" style="display: flex; align-items: center; justify-content: center; color: white; cursor:pointer;" @click="downloadImage(8)">
  210. <el-icon><Download /></el-icon>下载资料
  211. </div>
  212. </div>
  213. </div>
  214. </div>
  215. </el-col>
  216. </el-row>
  217. <h3>投保人信息</h3>
  218. <el-row :gutter="20">
  219. <el-col class="col-m-b-16" :span="8">
  220. <el-upload v-if="!insuredIDCardFront" :auto-upload="false" :show-file-list="false" @change="uploadImage($event, 9)">
  221. <div class="upload-box">
  222. <div class="icon-box">
  223. <el-icon style="font-size: 20px"><Camera /></el-icon>
  224. <p>投保人身份证(正面)</p>
  225. </div>
  226. </div>
  227. </el-upload>
  228. <div class="fileInfo" v-else>
  229. <div class="file-box">
  230. <div class="btn-top">
  231. <img class="image-close" @click="deleteImage(9)" src="@/assets/images/close.png" />
  232. </div>
  233. <img class="file-img" :src="insuredIDCardFront" />
  234. <div class="btn-bottom">
  235. <el-upload class="width-50" :show-file-list="false" :auto-upload="false" accept=".png, .jpg, .jpeg" @change="uploadImage($event, 9)" style="display: flex; align-items: center; justify-content: center; color: white">
  236. <el-icon><Upload /></el-icon>重新上传
  237. </el-upload>
  238. <div class="width-50" style="display: flex; align-items: center; justify-content: center; color: white; cursor:pointer;" @click="downloadImage(9)">
  239. <el-icon><Download /></el-icon>下载资料
  240. </div>
  241. </div>
  242. </div>
  243. </div>
  244. </el-col>
  245. <el-col class="col-m-b-16" :span="8">
  246. <el-upload v-if="!insuredIDCardBack" :auto-upload="false" :show-file-list="false" @change="uploadImage($event, 10)">
  247. <div class="upload-box">
  248. <div class="icon-box">
  249. <el-icon style="font-size: 20px"><Camera /></el-icon>
  250. <p>投保人身份证(反面)</p>
  251. </div>
  252. </div>
  253. </el-upload>
  254. <div class="fileInfo" v-else>
  255. <div class="file-box">
  256. <div class="btn-top">
  257. <img class="image-close" @click="deleteImage(10)" src="@/assets/images/close.png" />
  258. </div>
  259. <img class="file-img" :src="insuredIDCardBack" />
  260. <div class="btn-bottom">
  261. <el-upload class="width-50" :show-file-list="false" :auto-upload="false" accept=".png, .jpg, .jpeg" @change="uploadImage($event, 10)" style="display: flex; align-items: center; justify-content: center; color: white">
  262. <el-icon><Upload /></el-icon>重新上传
  263. </el-upload>
  264. <div class="width-50" style="display: flex; align-items: center; justify-content: center; color: white; cursor:pointer;" @click="downloadImage(10)">
  265. <el-icon><Download /></el-icon>下载资料
  266. </div>
  267. </div>
  268. </div>
  269. </div>
  270. </el-col>
  271. <el-col class="col-m-b-16" :span="8">
  272. <el-upload v-if="!insuredCarBusinessLicense" :auto-upload="false" :show-file-list="false" @change="uploadImage($event, 11)">
  273. <div class="upload-box">
  274. <div class="icon-box">
  275. <el-icon style="font-size: 20px"><Camera /></el-icon>
  276. <p>投保人营业执照</p>
  277. </div>
  278. </div>
  279. </el-upload>
  280. <div class="fileInfo" v-else>
  281. <div class="file-box">
  282. <div class="btn-top">
  283. <img class="image-close" @click="deleteImage(11)" src="@/assets/images/close.png" />
  284. </div>
  285. <img class="file-img" :src="insuredCarBusinessLicense" />
  286. <div class="btn-bottom">
  287. <el-upload class="width-50" :show-file-list="false" :auto-upload="false" accept=".png, .jpg, .jpeg" @change="uploadImage($event, 11)" style="display: flex; align-items: center; justify-content: center; color: white">
  288. <el-icon><Upload /></el-icon>重新上传
  289. </el-upload>
  290. <div class="width-50" style="display: flex; align-items: center; justify-content: center; color: white; cursor:pointer;" @click="downloadImage(11)">
  291. <el-icon><Download /></el-icon>下载资料
  292. </div>
  293. </div>
  294. </div>
  295. </div>
  296. </el-col>
  297. </el-row>
  298. <h3>被保人信息</h3>
  299. <el-row :gutter="20">
  300. <el-col class="col-m-b-16" :span="8">
  301. <el-upload v-if="!insuredPersonIDCardFront" :auto-upload="false" :show-file-list="false" @change="uploadImage($event, 12)">
  302. <div class="upload-box">
  303. <div class="icon-box">
  304. <el-icon style="font-size: 20px"><Camera /></el-icon>
  305. <p>被投保人身份证(正面)</p>
  306. </div>
  307. </div>
  308. </el-upload>
  309. <div class="fileInfo" v-else>
  310. <div class="file-box">
  311. <div class="btn-top">
  312. <img class="image-close" @click="deleteImage(12)" src="@/assets/images/close.png" />
  313. </div>
  314. <img class="file-img" :src="insuredPersonIDCardFront" />
  315. <div class="btn-bottom">
  316. <el-upload class="width-50" :show-file-list="false" :auto-upload="false" accept=".png, .jpg, .jpeg" @change="uploadImage($event, 12)" style="display: flex; align-items: center; justify-content: center; color: white">
  317. <el-icon><Upload /></el-icon>重新上传
  318. </el-upload>
  319. <div class="width-50" style="display: flex; align-items: center; justify-content: center; color: white; cursor:pointer;" @click="downloadImage(12)">
  320. <el-icon><Download /></el-icon>下载资料
  321. </div>
  322. </div>
  323. </div>
  324. </div>
  325. </el-col>
  326. <el-col class="col-m-b-16" :span="8">
  327. <el-upload v-if="!insuredPersonIDCardBack" :auto-upload="false" :show-file-list="false" @change="uploadImage($event, 13)">
  328. <div class="upload-box">
  329. <div class="icon-box">
  330. <el-icon style="font-size: 20px"><Camera /></el-icon>
  331. <p>被投保人身份证(反面)</p>
  332. </div>
  333. </div>
  334. </el-upload>
  335. <div class="fileInfo" v-else>
  336. <div class="file-box">
  337. <div class="btn-top">
  338. <img class="image-close" @click="deleteImage(13)" src="@/assets/images/close.png" />
  339. </div>
  340. <img class="file-img" :src="insuredPersonIDCardBack" />
  341. <div class="btn-bottom">
  342. <el-upload class="width-50" :show-file-list="false" :auto-upload="false" accept=".png, .jpg, .jpeg" @change="uploadImage($event, 13)" style="display: flex; align-items: center; justify-content: center; color: white">
  343. <el-icon><Upload /></el-icon>重新上传
  344. </el-upload>
  345. <div class="width-50" style="display: flex; align-items: center; justify-content: center; color: white; cursor:pointer;" @click="downloadImage(13)">
  346. <el-icon><Download /></el-icon>下载资料
  347. </div>
  348. </div>
  349. </div>
  350. </div>
  351. </el-col>
  352. <el-col class="col-m-b-16" :span="8">
  353. <el-upload v-if="!insuredPersonCarBusinessLicense" :auto-upload="false" :show-file-list="false" @change="uploadImage($event, 14)">
  354. <div class="upload-box">
  355. <div class="icon-box">
  356. <el-icon style="font-size: 20px"><Camera /></el-icon>
  357. <p>被投保人营业执照</p>
  358. </div>
  359. </div>
  360. </el-upload>
  361. <div class="fileInfo" v-else>
  362. <div class="file-box">
  363. <div class="btn-top">
  364. <img class="image-close" @click="deleteImage(14)" src="@/assets/images/close.png" />
  365. </div>
  366. <img class="file-img" :src="insuredPersonCarBusinessLicense" />
  367. <div class="btn-bottom">
  368. <el-upload class="width-50" :show-file-list="false" :auto-upload="false" accept=".png, .jpg, .jpeg" @change="uploadImage($event, 14)" style="display: flex; align-items: center; justify-content: center; color: white">
  369. <el-icon><Upload /></el-icon>重新上传
  370. </el-upload>
  371. <div class="width-50" style="display: flex; align-items: center; justify-content: center; color: white; cursor:pointer;" @click="downloadImage(14)">
  372. <el-icon><Download /></el-icon>下载资料
  373. </div>
  374. </div>
  375. </div>
  376. </div>
  377. </el-col>
  378. </el-row>
  379. <h3>关系证明</h3>
  380. <el-row :gutter="20">
  381. <el-col class="col-m-b-16" :span="8">
  382. <el-upload v-if="!relationship" :auto-upload="false" :show-file-list="false" @change="uploadImage($event, 15)">
  383. <div class="upload-box">
  384. <div class="icon-box">
  385. <el-icon style="font-size: 20px"><Camera /></el-icon>
  386. <p>关系证明</p>
  387. </div>
  388. </div>
  389. </el-upload>
  390. <div class="fileInfo" v-else>
  391. <div class="file-box">
  392. <div class="btn-top">
  393. <img class="image-close" @click="deleteImage(15)" src="@/assets/images/close.png" />
  394. </div>
  395. <img class="file-img" :src="relationship" />
  396. <div class="btn-bottom">
  397. <el-upload class="width-50" :show-file-list="false" :auto-upload="false" accept=".png, .jpg, .jpeg" @change="uploadImage($event, 15)" style="display: flex; align-items: center; justify-content: center; color: white">
  398. <el-icon><Upload /></el-icon>重新上传
  399. </el-upload>
  400. <div class="width-50" style="display: flex; align-items: center; justify-content: center; color: white; cursor:pointer;" @click="downloadImage(15)">
  401. <el-icon><Download /></el-icon>下载资料
  402. </div>
  403. </div>
  404. </div>
  405. </div>
  406. </el-col>
  407. </el-row>
  408. <h3>验车照</h3>
  409. <el-row :gutter="20">
  410. <el-col class="col-m-b-16" :span="8">
  411. <el-upload v-if="!vehicleCarFrame" :auto-upload="false" :show-file-list="false" @change="uploadImage($event, 16)">
  412. <div class="upload-box">
  413. <div class="icon-box">
  414. <el-icon style="font-size: 20px"><Camera /></el-icon>
  415. <p>验车照(车架)</p>
  416. </div>
  417. </div>
  418. </el-upload>
  419. <div class="fileInfo" v-else>
  420. <div class="file-box">
  421. <div class="btn-top">
  422. <img class="image-close" @click="deleteImage(16)" src="@/assets/images/close.png" />
  423. </div>
  424. <img class="file-img" :src="vehicleCarFrame" />
  425. <div class="btn-bottom">
  426. <el-upload class="width-50" :show-file-list="false" :auto-upload="false" accept=".png, .jpg, .jpeg" @change="uploadImage($event, 16)" style="display: flex; align-items: center; justify-content: center; color: white">
  427. <el-icon><Upload /></el-icon>重新上传
  428. </el-upload>
  429. <div class="width-50" style="display: flex; align-items: center; justify-content: center; color: white; cursor:pointer;" @click="downloadImage(16)">
  430. <el-icon><Download /></el-icon>下载资料
  431. </div>
  432. </div>
  433. </div>
  434. </div>
  435. </el-col>
  436. <el-col class="col-m-b-16" :span="8">
  437. <el-upload v-if="!vehicleCarBL" :auto-upload="false" :show-file-list="false" @change="uploadImage($event, 17)">
  438. <div class="upload-box">
  439. <div class="icon-box">
  440. <el-icon style="font-size: 20px"><Camera /></el-icon>
  441. <p>验车照(后左)</p>
  442. </div>
  443. </div>
  444. </el-upload>
  445. <div class="fileInfo" v-else>
  446. <div class="file-box">
  447. <div class="btn-top">
  448. <img class="image-close" @click="deleteImage(17)" src="@/assets/images/close.png" />
  449. </div>
  450. <img class="file-img" :src="vehicleCarBL" />
  451. <div class="btn-bottom">
  452. <el-upload class="width-50" :show-file-list="false" :auto-upload="false" accept=".png, .jpg, .jpeg" @change="uploadImage($event, 17)" style="display: flex; align-items: center; justify-content: center; color: white">
  453. <el-icon><Upload /></el-icon>重新上传
  454. </el-upload>
  455. <div class="width-50" style="display: flex; align-items: center; justify-content: center; color: white; cursor:pointer;" @click="downloadImage(17)">
  456. <el-icon><Download /></el-icon>下载资料
  457. </div>
  458. </div>
  459. </div>
  460. </div>
  461. </el-col>
  462. <el-col class="col-m-b-16" :span="8">
  463. <el-upload v-if="!vehicleCarBR" :auto-upload="false" :show-file-list="false" @change="uploadImage($event, 18)">
  464. <div class="upload-box">
  465. <div class="icon-box">
  466. <el-icon style="font-size: 20px"><Camera /></el-icon>
  467. <p>验车照(后右)</p>
  468. </div>
  469. </div>
  470. </el-upload>
  471. <div class="fileInfo" v-else>
  472. <div class="file-box">
  473. <div class="btn-top">
  474. <img class="image-close" @click="deleteImage(18)" src="@/assets/images/close.png" />
  475. </div>
  476. <img class="file-img" :src="vehicleCarBR" />
  477. <div class="btn-bottom">
  478. <el-upload class="width-50" :show-file-list="false" :auto-upload="false" accept=".png, .jpg, .jpeg" @change="uploadImage($event, 18)" style="display: flex; align-items: center; justify-content: center; color: white">
  479. <el-icon><Upload /></el-icon>重新上传
  480. </el-upload>
  481. <div class="width-50" style="display: flex; align-items: center; justify-content: center; color: white; cursor:pointer;" @click="downloadImage(18)">
  482. <el-icon><Download /></el-icon>下载资料
  483. </div>
  484. </div>
  485. </div>
  486. </div>
  487. </el-col>
  488. <el-col class="col-m-b-16" :span="8">
  489. <el-upload v-if="!vehicleCarFR" :auto-upload="false" :show-file-list="false" @change="uploadImage($event, 19)">
  490. <div class="upload-box">
  491. <div class="icon-box">
  492. <el-icon style="font-size: 20px"><Camera /></el-icon>
  493. <p>验车照(前右)</p>
  494. </div>
  495. </div>
  496. </el-upload>
  497. <div class="fileInfo" v-else>
  498. <div class="file-box">
  499. <div class="btn-top">
  500. <img class="image-close" @click="deleteImage(19)" src="@/assets/images/close.png" />
  501. </div>
  502. <img class="file-img" :src="vehicleCarFR" />
  503. <div class="btn-bottom">
  504. <el-upload class="width-50" :show-file-list="false" :auto-upload="false" accept=".png, .jpg, .jpeg" @change="uploadImage($event, 19)" style="display: flex; align-items: center; justify-content: center; color: white">
  505. <el-icon><Upload /></el-icon>重新上传
  506. </el-upload>
  507. <div class="width-50" style="display: flex; align-items: center; justify-content: center; color: white; cursor:pointer;" @click="downloadImage(19)">
  508. <el-icon><Download /></el-icon>下载资料
  509. </div>
  510. </div>
  511. </div>
  512. </div>
  513. </el-col>
  514. <el-col class="col-m-b-16" :span="8">
  515. <el-upload v-if="!vehicleCarFL" :auto-upload="false" :show-file-list="false" @change="uploadImage($event, 20)">
  516. <div class="upload-box">
  517. <div class="icon-box">
  518. <el-icon style="font-size: 20px"><Camera /></el-icon>
  519. <p>验车照(前左)</p>
  520. </div>
  521. </div>
  522. </el-upload>
  523. <div class="fileInfo" v-else>
  524. <div class="file-box">
  525. <div class="btn-top">
  526. <img class="image-close" @click="deleteImage(20)" src="@/assets/images/close.png" />
  527. </div>
  528. <img class="file-img" :src="vehicleCarFL" />
  529. <div class="btn-bottom">
  530. <el-upload class="width-50" :show-file-list="false" :auto-upload="false" accept=".png, .jpg, .jpeg" @change="uploadImage($event, 20)" style="display: flex; align-items: center; justify-content: center; color: white">
  531. <el-icon><Upload /></el-icon>重新上传
  532. </el-upload>
  533. <div class="width-50" style="display: flex; align-items: center; justify-content: center; color: white; cursor:pointer;" @click="downloadImage(20)">
  534. <el-icon><Download /></el-icon>下载资料
  535. </div>
  536. </div>
  537. </div>
  538. </div>
  539. </el-col>
  540. <el-col class="col-m-b-16" :span="8">
  541. <el-upload v-if="!vehicleCarFrant" :auto-upload="false" :show-file-list="false" @change="uploadImage($event, 21)">
  542. <div class="upload-box">
  543. <div class="icon-box">
  544. <el-icon style="font-size: 20px"><Camera /></el-icon>
  545. <p>验车照(正前)</p>
  546. </div>
  547. </div>
  548. </el-upload>
  549. <div class="fileInfo" v-else>
  550. <div class="file-box">
  551. <div class="btn-top">
  552. <img class="image-close" @click="deleteImage(21)" src="@/assets/images/close.png" />
  553. </div>
  554. <img class="file-img" :src="vehicleCarFrant" />
  555. <div class="btn-bottom">
  556. <el-upload class="width-50" :show-file-list="false" :auto-upload="false" accept=".png, .jpg, .jpeg" @change="uploadImage($event, 21)" style="display: flex; align-items: center; justify-content: center; color: white">
  557. <el-icon><Upload /></el-icon>重新上传
  558. </el-upload>
  559. <div class="width-50" style="display: flex; align-items: center; justify-content: center; color: white; cursor:pointer;" @click="downloadImage(21)">
  560. <el-icon><Download /></el-icon>下载资料
  561. </div>
  562. </div>
  563. </div>
  564. </div>
  565. </el-col>
  566. <el-col class="col-m-b-16" :span="8">
  567. <el-upload v-if="!vehicleCarBack" :auto-upload="false" :show-file-list="false" @change="uploadImage($event, 22)">
  568. <div class="upload-box">
  569. <div class="icon-box">
  570. <el-icon style="font-size: 20px"><Camera /></el-icon>
  571. <p>验车照(正后)</p>
  572. </div>
  573. </div>
  574. </el-upload>
  575. <div class="fileInfo" v-else>
  576. <div class="file-box">
  577. <div class="btn-top">
  578. <img class="image-close" @click="deleteImage(22)" src="@/assets/images/close.png" />
  579. </div>
  580. <img class="file-img" :src="vehicleCarBack" />
  581. <div class="btn-bottom">
  582. <el-upload class="width-50" :show-file-list="false" :auto-upload="false" accept=".png, .jpg, .jpeg" @change="uploadImage($event, 22)" style="display: flex; align-items: center; justify-content: center; color: white">
  583. <el-icon><Upload /></el-icon>重新上传
  584. </el-upload>
  585. <div class="width-50" style="display: flex; align-items: center; justify-content: center; color: white; cursor:pointer;" @click="downloadImage(22)">
  586. <el-icon><Download /></el-icon>下载资料
  587. </div>
  588. </div>
  589. </div>
  590. </div>
  591. </el-col>
  592. <el-col class="col-m-b-16" :span="8">
  593. <el-upload v-if="!vehicleCarPC" :auto-upload="false" :show-file-list="false" @change="uploadImage($event, 23)">
  594. <div class="upload-box">
  595. <div class="icon-box">
  596. <el-icon style="font-size: 20px"><Camera /></el-icon>
  597. <p>验车照(人车合影)</p>
  598. </div>
  599. </div>
  600. </el-upload>
  601. <div class="fileInfo" v-else>
  602. <div class="file-box">
  603. <div class="btn-top">
  604. <img class="image-close" @click="deleteImage(23)" src="@/assets/images/close.png" />
  605. </div>
  606. <img class="file-img" :src="vehicleCarPC" />
  607. <div class="btn-bottom">
  608. <el-upload class="width-50" :show-file-list="false" :auto-upload="false" accept=".png, .jpg, .jpeg" @change="uploadImage($event, 23)" style="display: flex; align-items: center; justify-content: center; color: white">
  609. <el-icon><Upload /></el-icon>重新上传
  610. </el-upload>
  611. <div class="width-50" style="display: flex; align-items: center; justify-content: center; color: white; cursor:pointer;" @click="downloadImage(23)">
  612. <el-icon><Download /></el-icon>下载资料
  613. </div>
  614. </div>
  615. </div>
  616. </div>
  617. </el-col>
  618. <el-col class="col-m-b-16" :span="8">
  619. <el-upload v-if="!vehicleCarLogo" :auto-upload="false" :show-file-list="false" @change="uploadImage($event, 24)">
  620. <div class="upload-box">
  621. <div class="icon-box">
  622. <el-icon style="font-size: 20px"><Camera /></el-icon>
  623. <p>验车照(地标合影)</p>
  624. </div>
  625. </div>
  626. </el-upload>
  627. <div class="fileInfo" v-else>
  628. <div class="file-box">
  629. <div class="btn-top">
  630. <img class="image-close" @click="deleteImage(24)" src="@/assets/images/close.png" />
  631. </div>
  632. <img class="file-img" :src="vehicleCarLogo" />
  633. <div class="btn-bottom">
  634. <el-upload class="width-50" :show-file-list="false" :auto-upload="false" accept=".png, .jpg, .jpeg" @change="uploadImage($event, 24)" style="display: flex; align-items: center; justify-content: center; color: white">
  635. <el-icon><Upload /></el-icon>重新上传
  636. </el-upload>
  637. <div class="width-50" style="display: flex; align-items: center; justify-content: center; color: white; cursor:pointer;" @click="downloadImage(24)">
  638. <el-icon><Download /></el-icon>下载资料
  639. </div>
  640. </div>
  641. </div>
  642. </div>
  643. </el-col>
  644. <el-col class="col-m-b-16" :span="8">
  645. <el-upload v-if="!vehicleCarWork" :auto-upload="false" :show-file-list="false" @change="uploadImage($event, 25)">
  646. <div class="upload-box">
  647. <div class="icon-box">
  648. <el-icon style="font-size: 20px"><Camera /></el-icon>
  649. <p>验车照(工作台)</p>
  650. </div>
  651. </div>
  652. </el-upload>
  653. <div class="fileInfo" v-else>
  654. <div class="file-box">
  655. <div class="btn-top">
  656. <img class="image-close" @click="deleteImage(25)" src="@/assets/images/close.png" />
  657. </div>
  658. <img class="file-img" :src="vehicleCarWork" />
  659. <div class="btn-bottom">
  660. <el-upload class="width-50" :show-file-list="false" :auto-upload="false" accept=".png, .jpg, .jpeg" @change="uploadImage($event, 25)" style="display: flex; align-items: center; justify-content: center; color: white">
  661. <el-icon><Upload /></el-icon>重新上传
  662. </el-upload>
  663. <div class="width-50" style="display: flex; align-items: center; justify-content: center; color: white; cursor:pointer;" @click="downloadImage(25)">
  664. <el-icon><Download /></el-icon>下载资料
  665. </div>
  666. </div>
  667. </div>
  668. </div>
  669. </el-col>
  670. <el-col class="col-m-b-16" :span="8">
  671. <el-upload v-if="!vehicleCarWindow" :auto-upload="false" :show-file-list="false" @change="uploadImage($event, 26)">
  672. <div class="upload-box">
  673. <div class="icon-box">
  674. <el-icon style="font-size: 20px"><Camera /></el-icon>
  675. <p>验车照(天窗)</p>
  676. </div>
  677. </div>
  678. </el-upload>
  679. <div class="fileInfo" v-else>
  680. <div class="file-box">
  681. <div class="btn-top">
  682. <img class="image-close" @click="deleteImage(26)" src="@/assets/images/close.png" />
  683. </div>
  684. <img class="file-img" :src="vehicleCarWindow" />
  685. <div class="btn-bottom">
  686. <el-upload class="width-50" :show-file-list="false" :auto-upload="false" accept=".png, .jpg, .jpeg" @change="uploadImage($event, 26)" style="display: flex; align-items: center; justify-content: center; color: white">
  687. <el-icon><Upload /></el-icon>重新上传
  688. </el-upload>
  689. <div class="width-50" style="display: flex; align-items: center; justify-content: center; color: white; cursor:pointer;" @click="downloadImage(26)">
  690. <el-icon><Download /></el-icon>下载资料
  691. </div>
  692. </div>
  693. </div>
  694. </div>
  695. </el-col>
  696. </el-row>
  697. <h3>上年商业险保单</h3>
  698. <el-row :gutter="20">
  699. <el-col class="col-m-b-16" :span="8">
  700. <el-upload v-if="!insuranceFile" :auto-upload="false" :show-file-list="false" @change="uploadImage($event, 27)">
  701. <div class="upload-box">
  702. <div class="icon-box">
  703. <el-icon style="font-size: 20px"><Camera /></el-icon>
  704. <p>上年商业险保单</p>
  705. </div>
  706. </div>
  707. </el-upload>
  708. <div class="fileInfo" v-else>
  709. <div class="file-box">
  710. <div class="btn-top">
  711. <img class="image-close" @click="deleteImage(27)" src="@/assets/images/close.png" />
  712. </div>
  713. <img class="file-img" :src="insuranceFile" />
  714. <div class="btn-bottom">
  715. <el-upload class="width-50" :show-file-list="false" :auto-upload="false" accept=".png, .jpg, .jpeg" @change="uploadImage($event, 27)" style="display: flex; align-items: center; justify-content: center; color: white">
  716. <el-icon><Upload /></el-icon>重新上传
  717. </el-upload>
  718. <div class="width-50" style="display: flex; align-items: center; justify-content: center; color: white; cursor:pointer;" @click="downloadImage(27)">
  719. <el-icon><Download /></el-icon>下载资料
  720. </div>
  721. </div>
  722. </div>
  723. </div>
  724. </el-col>
  725. </el-row>
  726. <div class="footer">
  727. <el-button plain @click="handleCancel">取消</el-button>
  728. <el-button type="primary" @click="handleConfirm">确定</el-button>
  729. </div>
  730. </div>
  731. </template>
  732. <script setup lang="ts">
  733. import api from "@/api";
  734. import { ElMessage } from "element-plus";
  735. let fileForm = ref({})
  736. const emits = defineEmits(['close'])
  737. // 车辆信息
  738. let drivingLicenseHomePage = ref('') // 行驶证主页
  739. let drivingLicenseHomePageUrl = ref('') // 行驶证主页地址
  740. let drivingLicenseReversePage = ref('') // 行驶证副页
  741. let drivingLicenseReversePageUrl = ref('') // 行驶证副页地址
  742. let vehicleRegistrationCertificate = ref('') // 机动车辆登记证书
  743. let vehicleRegistrationCertificateUrl = ref('') // 机动车辆登记证书地址
  744. let carCertificate = ref('') // 新车合格证
  745. let carCertificateUrl = ref('') // 新车合格证地址
  746. let purchaseInvoice = ref('') // 购车发票
  747. let purchaseInvoiceUrl = ref('') // 购车发票地址
  748. // 车主信息
  749. let IDCardFront = ref('') // 身份证正面
  750. let IDCardFrontUrl = ref('') // 身份证正面地址
  751. let IDCardBack = ref('') // 身份证反面
  752. let IDCardBackUrl = ref('') // 身份证反面地址
  753. let carBusinessLicense = ref('') // 车主营业执照
  754. let carBusinessLicenseUrl = ref('') // 车主营业执照地址
  755. // 投保人信息
  756. let insuredIDCardFront = ref('') // 身份证正面
  757. let insuredIDCardFrontUrl = ref('') // 身份证正面地址
  758. let insuredIDCardBack = ref('') // 身份证反面
  759. let insuredIDCardBackUrl = ref('') // 身份证反面地址
  760. let insuredCarBusinessLicense = ref('') // 投保人营业执照
  761. let insuredCarBusinessLicenseUrl = ref('') // 投保人营业执照地址
  762. // 被投保人信息
  763. let insuredPersonIDCardFront = ref('') // 身份证正面
  764. let insuredPersonIDCardFrontUrl = ref('') // 身份证正面地址
  765. let insuredPersonIDCardBack = ref('') // 身份证反面
  766. let insuredPersonIDCardBackUrl = ref('') // 身份证反面地址
  767. let insuredPersonCarBusinessLicense = ref('') // 被投保人营业执照
  768. let insuredPersonCarBusinessLicenseUrl = ref('') // 被投保人营业执照地址
  769. // 关系证明
  770. let relationship = ref('') // 关系证明
  771. let relationshipUrl = ref('') // 关系证明地址
  772. //验车照
  773. let vehicleCarFrame = ref('') // 验车照车架
  774. let vehicleCarFrameUrl = ref('') // 验车照车架地址
  775. let vehicleCarBL = ref('') // 验车照后左
  776. let vehicleCarBLUrl = ref('') // 验车照后左地址
  777. let vehicleCarBR = ref('') // 验车照后右
  778. let vehicleCarBRUrl = ref('') // 验车照后右地址
  779. let vehicleCarFR = ref('') // 验车照前右
  780. let vehicleCarFRUrl = ref('') // 验车照前右地址
  781. let vehicleCarFL = ref('') // 验车照前左
  782. let vehicleCarFLUrl = ref('') // 验车照前左地址
  783. let vehicleCarFrant = ref('') // 验车照正前
  784. let vehicleCarFrantUrl = ref('') // 验车照正前地址
  785. let vehicleCarBack = ref('') // 验车照正后
  786. let vehicleCarBackUrl = ref('') // 验车照正后地址
  787. let vehicleCarPC = ref('') // 验车照人车合影
  788. let vehicleCarPCUrl = ref('') // 验车照人车合影地址
  789. let vehicleCarLogo = ref('') // 验车照地标合影
  790. let vehicleCarLogoUrl = ref('') // 验车照地标合影地址
  791. let vehicleCarWork = ref('') // 验车照工作台
  792. let vehicleCarWorkUrl = ref('') // 验车照工作台地址
  793. let vehicleCarWindow = ref('') // 验车照天窗
  794. let vehicleCarWindowUrl = ref('') // 验车照天窗地址
  795. // 上年商业险保单
  796. let insuranceFile = ref('') // 上年商业险保单
  797. let insuranceFileUrl = ref('') // 上年商业险保单地址
  798. // 图片删除
  799. const deleteImage = (type) => {
  800. switch (type) {
  801. case 1:
  802. drivingLicenseHomePage.value = ''
  803. drivingLicenseHomePageUrl.value = ''
  804. break;
  805. case 2:
  806. drivingLicenseReversePage.value = ''
  807. drivingLicenseReversePageUrl.value = ''
  808. break;
  809. case 3:
  810. vehicleRegistrationCertificate.value = ''
  811. vehicleRegistrationCertificateUrl.value = ''
  812. break;
  813. case 4:
  814. carCertificate.value = ''
  815. carCertificateUrl.value = ''
  816. break;
  817. case 5:
  818. purchaseInvoice.value = ''
  819. purchaseInvoiceUrl.value = ''
  820. break;
  821. case 6:
  822. IDCardFront.value = ''
  823. IDCardFrontUrl.value = ''
  824. break;
  825. case 7:
  826. IDCardBack.value = ''
  827. IDCardBackUrl.value = ''
  828. break;
  829. case 8:
  830. carBusinessLicense.value = ''
  831. carBusinessLicenseUrl.value = ''
  832. break;
  833. case 9:
  834. insuredIDCardFront.value = ''
  835. insuredIDCardFrontUrl.value = ''
  836. break;
  837. case 10:
  838. insuredIDCardBack.value = ''
  839. insuredIDCardBackUrl.value = ''
  840. break;
  841. case 11:
  842. insuredCarBusinessLicense.value = ''
  843. insuredCarBusinessLicenseUrl.value = ''
  844. break;
  845. case 12:
  846. insuredPersonIDCardFront.value = ''
  847. insuredPersonIDCardFrontUrl.value = ''
  848. break;
  849. case 13:
  850. insuredPersonIDCardBack.value = ''
  851. insuredPersonIDCardBackUrl.value = ''
  852. break;
  853. case 14:
  854. insuredPersonCarBusinessLicense.value = ''
  855. insuredPersonCarBusinessLicenseUrl.value = ''
  856. break;
  857. case 15:
  858. relationship.value = ''
  859. relationshipUrl.value = ''
  860. break;
  861. case 16:
  862. vehicleCarFrame.value = ''
  863. vehicleCarFrameUrl.value = ''
  864. break;
  865. case 17:
  866. vehicleCarBL.value = ''
  867. vehicleCarBLUrl.value = ''
  868. break;
  869. case 18:
  870. vehicleCarBR.value = ''
  871. vehicleCarBRUrl.value = ''
  872. break;
  873. case 19:
  874. vehicleCarFR.value = ''
  875. vehicleCarFRUrl.value = ''
  876. break;
  877. case 20:
  878. vehicleCarFL.value = ''
  879. vehicleCarFLUrl.value = ''
  880. break;
  881. case 21:
  882. vehicleCarFrant.value = ''
  883. vehicleCarFrantUrl.value = ''
  884. break;
  885. case 22:
  886. vehicleCarBack.value = ''
  887. vehicleCarBackUrl.value = ''
  888. break;
  889. case 23:
  890. vehicleCarPC.value = ''
  891. vehicleCarPCUrl.value = ''
  892. break;
  893. case 24:
  894. vehicleCarLogo.value = ''
  895. vehicleCarLogoUrl.value = ''
  896. break;
  897. case 25:
  898. vehicleCarWork.value = ''
  899. vehicleCarWorkUrl.value = ''
  900. break;
  901. case 26:
  902. vehicleCarWindow.value = ''
  903. vehicleCarWindowUrl.value = ''
  904. break;
  905. case 27:
  906. insuranceFile.value = ''
  907. insuranceFileUrl.value = ''
  908. break;
  909. }
  910. }
  911. // 上传图片
  912. const uploadImage = async (file, type) => {
  913. let files = file.raw
  914. const params = new FormData(); // 声明formData数据类型
  915. params.append("file", files);
  916. params.append("type", "image");
  917. const { code, data, msg } = await api.commonApi.fileUpload(params)
  918. if(code == 200) {
  919. let result: any = {...data}
  920. switch (type) {
  921. case 1:
  922. drivingLicenseHomePage.value = result.downloadUrl
  923. drivingLicenseHomePageUrl.value = result.fileName
  924. fileForm.value.drivingLicenseHomePage = result.id
  925. break;
  926. case 2:
  927. drivingLicenseReversePage.value = result.downloadUrl
  928. drivingLicenseReversePageUrl.value = result.fileName
  929. fileForm.value.drivingLicenseReversePage = result.id
  930. break;
  931. case 3:
  932. vehicleRegistrationCertificate.value = result.downloadUrl
  933. vehicleRegistrationCertificateUrl.value = result.fileName
  934. fileForm.value.vehicleRegistrationCertificate = result.id
  935. break;
  936. case 4:
  937. carCertificate.value = result.downloadUrl
  938. carCertificateUrl.value = result.fileName
  939. fileForm.value.carCertificate = result.id
  940. break;
  941. case 5:
  942. purchaseInvoice.value = result.downloadUrl
  943. purchaseInvoiceUrl.value = result.fileName
  944. fileForm.value.purchaseInvoice = result.id
  945. break;
  946. case 6:
  947. IDCardFront.value = result.downloadUrl
  948. IDCardFrontUrl.value = result.fileName
  949. fileForm.value.IDCardFront = result.id
  950. break;
  951. case 7:
  952. IDCardBack.value = result.downloadUrl
  953. IDCardBackUrl.value = result.fileName
  954. fileForm.value.IDCardBack = result.id
  955. break;
  956. case 8:
  957. carBusinessLicense.value = result.downloadUrl
  958. carBusinessLicenseUrl.value = result.fileName
  959. fileForm.value.carBusinessLicense = result.id
  960. break;
  961. case 9:
  962. insuredIDCardFront.value = result.downloadUrl
  963. insuredIDCardFrontUrl.value = result.fileName
  964. fileForm.value.insuredIDCardFront = result.id
  965. break;
  966. case 10:
  967. insuredIDCardBack.value = result.downloadUrl
  968. insuredIDCardBackUrl.value = result.fileName
  969. fileForm.value.insuredIDCardBack = result.id
  970. break;
  971. case 11:
  972. insuredCarBusinessLicense.value = result.downloadUrl
  973. insuredCarBusinessLicenseUrl.value = result.fileName
  974. fileForm.value.insuredCarBusinessLicense = result.id
  975. break;
  976. case 12:
  977. insuredPersonIDCardFront.value = result.downloadUrl
  978. insuredPersonIDCardFrontUrl.value = result.fileName
  979. fileForm.value.insuredPersonIDCardFront = result.id
  980. break;
  981. case 13:
  982. insuredPersonIDCardBack.value = result.downloadUrl
  983. insuredPersonIDCardBackUrl.value = result.fileName
  984. fileForm.value.insuredPersonIDCardBack = result.id
  985. break;
  986. case 14:
  987. insuredPersonCarBusinessLicense.value = result.downloadUrl
  988. insuredPersonCarBusinessLicenseUrl.value = result.fileName
  989. fileForm.value.insuredPersonCarBusinessLicense = result.id
  990. break;
  991. case 15:
  992. relationship.value = result.downloadUrl
  993. relationshipUrl.value = result.fileName
  994. fileForm.value.relationship = result.id
  995. break;
  996. case 16:
  997. vehicleCarFrame.value = result.downloadUrl
  998. vehicleCarFrameUrl.value = result.fileName
  999. fileForm.value.vehicleCarFrame = result.id
  1000. break;
  1001. case 17:
  1002. vehicleCarBL.value = result.downloadUrl
  1003. vehicleCarBLUrl.value = result.fileName
  1004. fileForm.value.vehicleCarBL = result.id
  1005. break;
  1006. case 18:
  1007. vehicleCarBR.value = result.downloadUrl
  1008. vehicleCarBRUrl.value = result.fileName
  1009. fileForm.value.vehicleCarBR = result.id
  1010. break;
  1011. case 19:
  1012. vehicleCarFR.value = result.downloadUrl
  1013. vehicleCarFRUrl.value = result.fileName
  1014. fileForm.value.vehicleCarFR = result.id
  1015. break;
  1016. case 20:
  1017. vehicleCarFL.value = result.downloadUrl
  1018. vehicleCarFLUrl.value = result.fileName
  1019. fileForm.value.vehicleCarFL = result.id
  1020. break;
  1021. case 21:
  1022. vehicleCarFrant.value = result.downloadUrl
  1023. vehicleCarFrantUrl.value = result.fileName
  1024. fileForm.value.vehicleCarFrant = result.id
  1025. break;
  1026. case 22:
  1027. vehicleCarBack.value = result.downloadUrl
  1028. vehicleCarBackUrl.value = result.fileName
  1029. fileForm.value.vehicleCarBack = result.id
  1030. break;
  1031. case 23:
  1032. vehicleCarPC.value = result.downloadUrl
  1033. vehicleCarPCUrl.value = result.fileName
  1034. fileForm.value.vehicleCarPC = result.id
  1035. break;
  1036. case 24:
  1037. vehicleCarLogo.value = result.downloadUrl
  1038. vehicleCarLogoUrl.value = result.fileName
  1039. fileForm.value.vehicleCarLogo = result.id
  1040. break;
  1041. case 25:
  1042. vehicleCarWork.value = result.downloadUrl
  1043. vehicleCarWorkUrl.value = result.fileName
  1044. fileForm.value.vehicleCarWork = result.id
  1045. break;
  1046. case 26:
  1047. vehicleCarWindow.value = result.downloadUrl
  1048. vehicleCarWindowUrl.value = result.fileName
  1049. fileForm.value.vehicleCarWindow = result.id
  1050. break;
  1051. case 27:
  1052. insuranceFile.value = result.downloadUrl
  1053. insuranceFileUrl.value = result.fileName
  1054. fileForm.value.insuranceFile = result.id
  1055. break;
  1056. }
  1057. } else {
  1058. ElMessage({
  1059. message: msg,
  1060. type: 'error'
  1061. })
  1062. }
  1063. }
  1064. // 下载
  1065. // 图片下载
  1066. const download = (url, name) => {
  1067. let image = new Image();
  1068. // 解决跨域 Canvas 污染问题
  1069. image.setAttribute("crossOrigin", "anonymous");
  1070. image.onload = function () {
  1071. let canvas = document.createElement("canvas");
  1072. canvas.width = image.width;
  1073. canvas.height = image.height;
  1074. let context = canvas.getContext("2d");
  1075. context.drawImage(image, 0, 0, image.width, image.height);
  1076. let url = canvas.toDataURL("image/png"); //得到图片的base64编码数据
  1077. let a = document.createElement("a"); // 生成一个a元素
  1078. let event = new MouseEvent("click"); // 创建一个单击事件
  1079. a.download = name; // 设置图片名称
  1080. a.href = url; // 将生成的URL设置为a.href属性
  1081. a.dispatchEvent(event); // 触发a的单击事件
  1082. }
  1083. image.src = url
  1084. }
  1085. const downloadImage = (type) => {
  1086. switch (type) {
  1087. case 1:
  1088. download(drivingLicenseHomePage.value,drivingLicenseHomePageUrl.value)
  1089. break;
  1090. case 2:
  1091. download(drivingLicenseReversePage.value,drivingLicenseReversePageUrl.value)
  1092. break;
  1093. case 3:
  1094. download(vehicleRegistrationCertificate.value,vehicleRegistrationCertificateUrl.value)
  1095. break;
  1096. case 4:
  1097. download(carCertificate.value,carCertificateUrl.value)
  1098. break;
  1099. case 5:
  1100. download(purchaseInvoice.value,purchaseInvoiceUrl.value)
  1101. break;
  1102. case 6:
  1103. download(IDCardFront.value,IDCardFrontUrl.value)
  1104. break;
  1105. case 7:
  1106. download(IDCardBack.value,IDCardBackUrl.value)
  1107. break;
  1108. case 8:
  1109. download(carBusinessLicense.value,carBusinessLicenseUrl.value)
  1110. break;
  1111. case 9:
  1112. download(insuredIDCardFront.value,insuredIDCardFrontUrl.value)
  1113. break;
  1114. case 10:
  1115. download(insuredIDCardBack.value,insuredIDCardBackUrl.value)
  1116. break;
  1117. case 11:
  1118. download(insuredCarBusinessLicense.value,insuredCarBusinessLicenseUrl.value)
  1119. break;
  1120. case 12:
  1121. download(insuredPersonIDCardFront.value,insuredPersonIDCardFrontUrl.value)
  1122. break;
  1123. case 13:
  1124. download(insuredPersonIDCardBack.value,insuredPersonIDCardBackUrl.value)
  1125. break;
  1126. case 14:
  1127. download(insuredPersonCarBusinessLicense.value,insuredPersonCarBusinessLicenseUrl.value)
  1128. break;
  1129. case 15:
  1130. download(relationship.value,relationshipUrl.value)
  1131. break;
  1132. case 16:
  1133. download(vehicleCarFrame.value,vehicleCarFrameUrl.value)
  1134. break;
  1135. case 17:
  1136. download(vehicleCarBL.value,vehicleCarBLUrl.value)
  1137. break;
  1138. case 18:
  1139. download(vehicleCarBR.value,vehicleCarBRUrl.value)
  1140. break;
  1141. case 19:
  1142. download(vehicleCarFR.value,vehicleCarFRUrl.value)
  1143. break;
  1144. case 20:
  1145. download(vehicleCarFL.value,vehicleCarFLUrl.value)
  1146. break;
  1147. case 21:
  1148. download(vehicleCarFrant.value,vehicleCarFrantUrl.value)
  1149. break;
  1150. case 22:
  1151. download(vehicleCarBack.value,vehicleCarBackUrl.value)
  1152. break;
  1153. case 23:
  1154. download(vehicleCarPC.value,vehicleCarPCUrl.value)
  1155. break;
  1156. case 24:
  1157. download(vehicleCarLogo.value,vehicleCarLogoUrl.value)
  1158. break;
  1159. case 25:
  1160. download(vehicleCarWork.value,vehicleCarWorkUrl.value)
  1161. break;
  1162. case 26:
  1163. download(vehicleCarWindow.value,vehicleCarWindowUrl.value)
  1164. break;
  1165. case 27:
  1166. download(insuranceFile.value,insuranceFileUrl.value)
  1167. break;
  1168. }
  1169. }
  1170. // 取消
  1171. const handleCancel = () => {
  1172. emits('close', [])
  1173. }
  1174. // 确定
  1175. const handleConfirm = () => {
  1176. let images = [
  1177. {
  1178. imageType: 'C01',
  1179. imageId: fileForm.value.drivingLicenseHomePage
  1180. },
  1181. {
  1182. imageType: 'D01',
  1183. imageId: fileForm.value.drivingLicenseReversePage
  1184. },
  1185. {
  1186. imageType: 'TAR05',
  1187. imageId: fileForm.value.vehicleRegistrationCertificate
  1188. },
  1189. {
  1190. imageType: 'XC00',
  1191. imageId: fileForm.value.carCertificate
  1192. },
  1193. {
  1194. imageType: 'GC00',
  1195. imageId: fileForm.value.purchaseInvoice
  1196. },
  1197. {
  1198. imageType: 'C02',
  1199. imageId: fileForm.value.IDCardFront
  1200. },
  1201. {
  1202. imageType: 'D02',
  1203. imageId: fileForm.value.IDCardBack
  1204. },
  1205. {
  1206. imageType: 'Y02',
  1207. imageId: fileForm.value.carBusinessLicense
  1208. },
  1209. {
  1210. imageType: 'C03',
  1211. imageId: fileForm.value.insuredIDCardFront
  1212. },
  1213. {
  1214. imageType: 'D03',
  1215. imageId: fileForm.value.insuredIDCardBack
  1216. },
  1217. {
  1218. imageType: 'Y03',
  1219. imageId: fileForm.value.insuredCarBusinessLicense
  1220. },
  1221. {
  1222. imageType: 'C04',
  1223. imageId: fileForm.value.insuredPersonIDCardFront
  1224. },
  1225. {
  1226. imageType: 'D04',
  1227. imageId: fileForm.value.insuredPersonIDCardBack
  1228. },
  1229. {
  1230. imageType: 'Y04',
  1231. imageId: fileForm.value.insuredPersonCarBusinessLicense
  1232. },
  1233. {
  1234. imageType: 'GX00',
  1235. imageId: fileForm.value.relationship
  1236. },
  1237. {
  1238. imageType: 'C0500',
  1239. imageId: fileForm.value.vehicleCarFrame
  1240. },
  1241. {
  1242. imageType: 'C0501',
  1243. imageId: fileForm.value.vehicleCarBL
  1244. },
  1245. {
  1246. imageType: 'C0502',
  1247. imageId: fileForm.value.vehicleCarBR
  1248. },
  1249. {
  1250. imageType: 'C0503',
  1251. imageId: fileForm.value.vehicleCarFR
  1252. },
  1253. {
  1254. imageType: 'C0504',
  1255. imageId: fileForm.value.vehicleCarFL
  1256. },
  1257. {
  1258. imageType: 'C0506',
  1259. imageId: fileForm.value.vehicleCarFrant
  1260. },
  1261. {
  1262. imageType: 'C0507',
  1263. imageId: fileForm.value.vehicleCarBack
  1264. },
  1265. {
  1266. imageType: 'C0505',
  1267. imageId: fileForm.value.vehicleCarPC
  1268. },
  1269. {
  1270. imageType: 'C0508',
  1271. imageId: fileForm.value.vehicleCarLogo
  1272. },
  1273. {
  1274. imageType: 'C0509',
  1275. imageId: fileForm.value.vehicleCarWork
  1276. },
  1277. {
  1278. imageType: 'C0510',
  1279. imageId: fileForm.value.vehicleCarWindow
  1280. },
  1281. {
  1282. imageType: 'LAST_INSURANCE_POLICY',
  1283. imageId: fileForm.value.insuranceFile
  1284. },
  1285. ]
  1286. emits('close', [...images])
  1287. }
  1288. // 回显
  1289. const initData = (data, type) => {
  1290. if(type) {
  1291. if(data) {
  1292. if(data.find(a => a.imageType === 'C01')) {
  1293. let result = data.find(a => a.imageType === 'C01')
  1294. console.log(123, result)
  1295. drivingLicenseHomePage.value = result.previewUrl
  1296. drivingLicenseHomePageUrl.value = result.fileName
  1297. fileForm.value.drivingLicenseHomePage = result.id
  1298. }
  1299. if(data.find(a => a.imageType === 'D01')) {
  1300. let result = data.find(a => a.imageType === 'D01')
  1301. drivingLicenseReversePage.value = result.previewUrl
  1302. drivingLicenseReversePageUrl.value = result.fileName
  1303. fileForm.value.drivingLicenseReversePage = result.id
  1304. }
  1305. if(data.find(a => a.imageType === 'TAR05')) {
  1306. let result = data.find(a => a.imageType === 'TAR05')
  1307. vehicleRegistrationCertificate.value = result.previewUrl
  1308. vehicleRegistrationCertificateUrl.value = result.fileName
  1309. fileForm.value.vehicleRegistrationCertificate = result.id
  1310. }
  1311. if(data.find(a => a.imageType === 'XC00')) {
  1312. let result = data.find(a => a.imageType === 'XC00')
  1313. carCertificate.value = result.previewUrl
  1314. carCertificateUrl.value = result.fileName
  1315. fileForm.value.carCertificate = result.id
  1316. }
  1317. if(data.find(a => a.imageType === 'GC00')) {
  1318. let result = data.find(a => a.imageType === 'GC00')
  1319. purchaseInvoice.value = result.previewUrl
  1320. purchaseInvoiceUrl.value = result.fileName
  1321. fileForm.value.purchaseInvoice = result.id
  1322. }
  1323. if(data.find(a => a.imageType === 'C02')) {
  1324. let result = data.find(a => a.imageType === 'C02')
  1325. IDCardFront.value = result.previewUrl
  1326. IDCardFrontUrl.value = result.fileName
  1327. fileForm.value.IDCardFront = result.id
  1328. }
  1329. if(data.find(a => a.imageType === 'D02')) {
  1330. let result = data.find(a => a.imageType === 'D02')
  1331. IDCardBack.value = result.previewUrl
  1332. IDCardBackUrl.value = result.fileName
  1333. fileForm.value.IDCardBack = result.id
  1334. }
  1335. if(data.find(a => a.imageType === 'Y02')) {
  1336. let result = data.find(a => a.imageType === 'Y02')
  1337. carBusinessLicense.value = result.previewUrl
  1338. carBusinessLicenseUrl.value = result.fileName
  1339. fileForm.value.carBusinessLicense = result.id
  1340. }
  1341. if(data.find(a => a.imageType === 'C03')) {
  1342. let result = data.find(a => a.imageType === 'C03')
  1343. insuredIDCardFront.value = result.previewUrl
  1344. insuredIDCardFrontUrl.value = result.fileName
  1345. fileForm.value.insuredIDCardFront = result.id
  1346. }
  1347. if(data.find(a => a.imageType === 'D03')) {
  1348. let result = data.find(a => a.imageType === 'D03')
  1349. insuredIDCardBack.value = result.previewUrl
  1350. insuredIDCardBackUrl.value = result.fileName
  1351. fileForm.value.insuredIDCardBack = result.id
  1352. }
  1353. if(data.find(a => a.imageType === 'Y03')) {
  1354. let result = data.find(a => a.imageType === 'Y03')
  1355. insuredCarBusinessLicense.value = result.previewUrl
  1356. insuredCarBusinessLicenseUrl.value = result.fileName
  1357. fileForm.value.insuredCarBusinessLicense = result.id
  1358. }
  1359. if(data.find(a => a.imageType === 'C04')) {
  1360. let result = data.find(a => a.imageType === 'C04')
  1361. insuredPersonIDCardFront.value = result.previewUrl
  1362. insuredPersonIDCardFrontUrl.value = result.fileName
  1363. fileForm.value.insuredPersonIDCardFront = result.id
  1364. }
  1365. if(data.find(a => a.imageType === 'D04')) {
  1366. let result = data.find(a => a.imageType === 'D04')
  1367. insuredPersonIDCardBack.value = result.previewUrl
  1368. insuredPersonIDCardBackUrl.value = result.fileName
  1369. fileForm.value.insuredPersonIDCardBack = result.id
  1370. }
  1371. if(data.find(a => a.imageType === 'Y04')) {
  1372. let result = data.find(a => a.imageType === 'Y04')
  1373. insuredPersonCarBusinessLicense.value = result.previewUrl
  1374. insuredPersonCarBusinessLicenseUrl.value = result.fileName
  1375. fileForm.value.insuredPersonCarBusinessLicense = result.id
  1376. }
  1377. if(data.find(a => a.imageType === 'GX00')) {
  1378. let result = data.find(a => a.imageType === 'GX00')
  1379. relationship.value = result.previewUrl
  1380. relationshipUrl.value = result.fileName
  1381. fileForm.value.relationship = result.id
  1382. }
  1383. if(data.find(a => a.imageType === 'C0500')) {
  1384. let result = data.find(a => a.imageType === 'C0500')
  1385. vehicleCarFrame.value = result.previewUrl
  1386. vehicleCarFrameUrl.value = result.fileName
  1387. fileForm.value.vehicleCarFrame = result.id
  1388. }
  1389. if(data.find(a => a.imageType === 'C0501')) {
  1390. let result = data.find(a => a.imageType === 'C0501')
  1391. vehicleCarBL.value = result.previewUrl
  1392. vehicleCarBLUrl.value = result.fileName
  1393. fileForm.value.vehicleCarBL = result.id
  1394. }
  1395. if(data.find(a => a.imageType === 'C0502')) {
  1396. let result = data.find(a => a.imageType === 'C0502')
  1397. vehicleCarBR.value = result.previewUrl
  1398. vehicleCarBRUrl.value = result.fileName
  1399. fileForm.value.vehicleCarBR = result.id
  1400. }
  1401. if(data.find(a => a.imageType === 'C0503')) {
  1402. let result = data.find(a => a.imageType === 'C0503')
  1403. vehicleCarFR.value = result.previewUrl
  1404. vehicleCarFRUrl.value = result.fileName
  1405. fileForm.value.vehicleCarFR = result.id
  1406. }
  1407. if(data.find(a => a.imageType === 'C0504')) {
  1408. let result = data.find(a => a.imageType === 'C0504')
  1409. vehicleCarFL.value = result.previewUrl
  1410. vehicleCarFLUrl.value = result.fileName
  1411. fileForm.value.vehicleCarFL = result.id
  1412. }
  1413. if(data.find(a => a.imageType === 'C0505')) {
  1414. let result = data.find(a => a.imageType === 'C0505')
  1415. vehicleCarFrant.value = result.previewUrl
  1416. vehicleCarFrantUrl.value = result.fileName
  1417. fileForm.value.vehicleCarFrant = result.id
  1418. }
  1419. if(data.find(a => a.imageType === 'C0506')) {
  1420. let result = data.find(a => a.imageType === 'C0506')
  1421. vehicleCarBack.value = result.previewUrl
  1422. vehicleCarBackUrl.value = result.fileName
  1423. fileForm.value.vehicleCarBack = result.id
  1424. }
  1425. if(data.find(a => a.imageType === 'C0507')) {
  1426. let result = data.find(a => a.imageType === 'C0507')
  1427. vehicleCarPC.value = result.previewUrl
  1428. vehicleCarPCUrl.value = result.fileName
  1429. fileForm.value.vehicleCarPC = result.id
  1430. }
  1431. if(data.find(a => a.imageType === 'C0508')) {
  1432. let result = data.find(a => a.imageType === 'C0508')
  1433. vehicleCarLogo.value = result.previewUrl
  1434. vehicleCarLogoUrl.value = result.fileName
  1435. fileForm.value.vehicleCarLogo = result.id
  1436. }
  1437. if(data.find(a => a.imageType === 'C0509')) {
  1438. let result = data.find(a => a.imageType === 'C0509')
  1439. vehicleCarWork.value = result.previewUrl
  1440. vehicleCarWorkUrl.value = result.fileName
  1441. fileForm.value.vehicleCarWork = result.id
  1442. }
  1443. if(data.find(a => a.imageType === 'C0510')) {
  1444. let result = data.find(a => a.imageType === 'C0510')
  1445. vehicleCarWindow.value = result.previewUrl
  1446. vehicleCarWindowUrl.value = result.fileName
  1447. fileForm.value.vehicleCarWindow = result.id
  1448. }
  1449. if(data.find(a => a.imageType === 'LAST_INSURANCE_POLICY')) {
  1450. let result = data.find(a => a.imageType === 'LAST_INSURANCE_POLICY')
  1451. insuranceFile.value = result.previewUrl
  1452. insuranceFileUrl.value = result.fileName
  1453. fileForm.value.insuranceFile = result.id
  1454. }
  1455. }
  1456. } else {
  1457. if(data) {
  1458. drivingLicenseHomePage.value = data.xszFrontResult.downloadUrl
  1459. drivingLicenseHomePageUrl.value = data.xszFrontResult.fileName
  1460. drivingLicenseReversePage.value = data.xszBackResult.downloadUrl
  1461. drivingLicenseReversePageUrl.value = data.xszBackResult.fileName
  1462. IDCardFront.value = data.sfzFrontResult.downloadUrl
  1463. IDCardFrontUrl.value = data.sfzFrontResult.fileName
  1464. IDCardBack.value = data.sfzBackResult.downloadUrl
  1465. IDCardBackUrl.value = data.sfzBackResult.fileName
  1466. insuredIDCardFront.value = data.sfz1FrontResult.downloadUrl
  1467. insuredIDCardFrontUrl.value = data.sfz1FrontResult.fileName
  1468. insuredIDCardBack.value = data.sfz1BackResult.downloadUrl
  1469. insuredIDCardBackUrl.value = data.sfz1BackResult.fileName
  1470. insuredPersonIDCardFront.value = data.sfz2FrontResult.downloadUrl
  1471. insuredPersonIDCardFrontUrl.value = data.sfz2FrontResult.fileName
  1472. insuredPersonIDCardBack.value = data.sfz2BackResult.downloadUrl
  1473. insuredPersonIDCardBackUrl.value = data.sfz2BackResult.fileName
  1474. fileForm.value = {
  1475. drivingLicenseHomePage: data.xszFrontResult.id,
  1476. drivingLicenseReversePage: data.xszBackResult.id,
  1477. IDCardFront: data.sfzFrontResult.id,
  1478. IDCardBack: data.sfzBackResult.id,
  1479. insuredIDCardFront: data.sfz1FrontResult.id,
  1480. insuredIDCardBack: data.sfz1BackResult.id,
  1481. insuredPersonIDCardFront: data.sfz2FrontResult.id,
  1482. insuredPersonIDCardBack: data.sfz2BackResult.id,
  1483. }
  1484. }
  1485. }
  1486. }
  1487. defineExpose({
  1488. initData
  1489. })
  1490. </script>
  1491. <style scoped lang="scss">
  1492. @use "@/assets/styles/common/style";
  1493. .fileInfo{
  1494. display: flex;
  1495. align-items: center;
  1496. justify-content: flex-start;
  1497. border-radius: 5px;
  1498. margin: 0 0 16px;
  1499. .fileName{
  1500. width: 200px;
  1501. overflow: hidden;
  1502. text-overflow: ellipsis;
  1503. white-space: nowrap;
  1504. }
  1505. .fileBtn{
  1506. display: flex;
  1507. align-items: center;
  1508. .btn-icon{
  1509. margin: 0 10px;
  1510. font-size: 16px;
  1511. cursor: pointer;
  1512. &:hover{
  1513. color: #00a0f4;
  1514. }
  1515. }
  1516. }
  1517. .file-box{
  1518. position: relative;
  1519. .btn-top{
  1520. width: 100%;
  1521. display: flex;
  1522. align-items: center;
  1523. justify-content: flex-end;
  1524. position: absolute;
  1525. top: 0;
  1526. left: 0;
  1527. .image-close{
  1528. display: block;
  1529. width: 12px;
  1530. height: 12px;
  1531. cursor: pointer;
  1532. }
  1533. }
  1534. .file-img{
  1535. display: block;
  1536. width: 208px;
  1537. height: 130px;
  1538. border-radius: 5px;
  1539. }
  1540. .btn-bottom{
  1541. position: absolute;
  1542. left: 0;
  1543. bottom: 0;
  1544. z-index: 1000;
  1545. display: flex;
  1546. align-items: center;
  1547. height: 24px;
  1548. width: 100%;
  1549. background: url("@/assets/images/btn-bg.png") no-repeat;
  1550. background-size: 100% 100%;
  1551. .width-50{
  1552. width: 50%;
  1553. }
  1554. }
  1555. }
  1556. }
  1557. .upload-box{
  1558. width: 208px;
  1559. height: 130px;
  1560. background: #EEEEEE;
  1561. border: 1px solid #EEEEEE;
  1562. border-radius: 4px;
  1563. display: flex;
  1564. align-items: center;
  1565. justify-content: center;
  1566. .icon-box{
  1567. text-align: center;
  1568. color: #999999;
  1569. p{
  1570. margin: 0 0;
  1571. font-size: 14px;
  1572. }
  1573. }
  1574. }
  1575. </style>