addVehicle.vue 61 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838
  1. <!-- 管理车辆 -->
  2. <template>
  3. <view @click='hidden' class="content">
  4. <view class="flex s-row container">
  5. <view class="flex row">
  6. <view class="left-text">车型</view>
  7. <view class="color" @click="selectCarModel">{{dataDetails.carCategory}} {{dataDetails.carType}}</view>
  8. <view>></view>
  9. <u-picker :show="carModel" :columns="carModelColumns" :closeOnClickOverlay='true' @close='carModelClose'
  10. @cancel='carModelClose' @confirm='confirmCarModel' @change="changeCarModel"></u-picker>
  11. </view>
  12. <view class="title">道路运输证</view>
  13. <view @click="uploadImg(8)" class="picture picture8" v-if="!dataDetails.operationCertificate">
  14. <image class="xj-image" src="@/static/images/mine/ic_shanchuan@2x.png"></image>
  15. <view class="text">上传道路运输证</view>
  16. </view>
  17. <view v-if="dataDetails.operationCertificate" @click.stop="uploadImg(8)" class="preview-card-img picture">
  18. <view @click.stop="delCard(1)">
  19. <image class='del-card' src="@/static/images/common/quxiao@2x.png">
  20. </image>
  21. </view>
  22. <image class="" :src="dataDetails.operationCertificate" mode="aspectFit"></image>
  23. </view>
  24. <view class="flex row">
  25. <view class="left-text">道路运输证号</view>
  26. <u--input maxlength='12' placeholder="输入道路运输证号" inputAlign='right' border="none"
  27. v-model="dataDetails.operationCertificateNumber">
  28. </u--input>
  29. </view>
  30. <view class="flex row flex-space-between">
  31. <view class="left-text">道路运输证有效期</view>
  32. <view class="" @click="selectValidityPeriod(4)">
  33. <view :style="{'color':dataDetails.operationCertificateValidityDate?'#000':'rgb(192, 196, 204)'}">
  34. {{dataDetails.operationCertificateValidityDate?dataDetails.operationCertificateValidityDate:'选择有效期'}}
  35. <image v-if='!dataDetails.operationCertificateValidityDate' style='width:12px;height:12px;'
  36. src="../../../static/right.png" mode=""></image>
  37. </view>
  38. </view>
  39. </view>
  40. <view v-if="sign == '挂车'">
  41. <view class="title">挂车道路运输证</view>
  42. <view @click="uploadImg(9)" class="picture picture9" v-if="!dataDetails.trailerOperationCertificate">
  43. <image class="xj-image" src="@/static/images/mine/ic_shanchuan@2x.png"></image>
  44. <view class="text">上传挂车道路运输证</view>
  45. </view>
  46. <view v-if="dataDetails.trailerOperationCertificate" @click.stop="uploadImg(9)"
  47. class="preview-card-img picture">
  48. <view @click.stop="delCard(2)">
  49. <image class='del-card' src="@/static/images/common/quxiao@2x.png">
  50. </image>
  51. </view>
  52. <image class="" :src="dataDetails.trailerOperationCertificate" mode="aspectFit"></image>
  53. </view>
  54. </view>
  55. <view class="flex row" v-if="sign == '挂车'">
  56. <view class="left-text">挂车道路运输证号</view>
  57. <u--input maxlength='12' placeholder="输入挂车道路运输证号" inputAlign='right' border="none"
  58. v-model="dataDetails.trailerOperationCertificateNumber">
  59. </u--input>
  60. </view>
  61. <view class="flex row flex-space-between" v-if="sign == '挂车'">
  62. <view class="left-text">挂车道路运输证有效期</view>
  63. <view class="" @click="selectValidityPeriod(5)">
  64. <view
  65. :style="{'color':dataDetails.trailerOperationCertificateValidityDate?'#000':'rgb(192, 196, 204)'}">
  66. {{dataDetails.trailerOperationCertificateValidityDate?dataDetails.trailerOperationCertificateValidityDate:'选择有效期'}}
  67. <image v-if='!dataDetails.trailerOperationCertificateValidityDate'
  68. style='width:12px;height:12px;' src="../../../static/right.png" mode=""></image>
  69. </view>
  70. </view>
  71. </view>
  72. <view class="title" v-if="sign == '挂车'">牵引车行驶证主页</view>
  73. <view class="title" v-if="sign == '非挂车'">行驶证主页</view>
  74. <view @click="uploadImg(3)" class="picture picture3" v-if="!dataDetails.drivingLicenseHomePage">
  75. <image class="xj-image" src="@/static/images/mine/ic_shanchuan@2x.png"></image>
  76. <view class="text" v-if="sign == '挂车'">上传牵引车行驶证主页</view>
  77. <view class="text" v-else>上传行驶证主页</view>
  78. </view>
  79. <view v-if="dataDetails.drivingLicenseHomePage" @click.stop="uploadImg(3)" class="preview-card-img picture">
  80. <view @click.stop="delCard(3)">
  81. <image class='del-card' src="@/static/images/common/quxiao@2x.png">
  82. </image>
  83. </view>
  84. <image class="" :src="dataDetails.drivingLicenseHomePage" mode="aspectFit"></image>
  85. </view>
  86. <view class="title" v-if="sign == '挂车'">牵引车行驶证副页</view>
  87. <view class="title" v-if="sign == '非挂车'">行驶证副页</view>
  88. <view @click="uploadImg(4)" class="picture picture4" v-if="!dataDetails.drivingLicenseBackPage">
  89. <image class="xj-image" src="@/static/images/mine/ic_shanchuan@2x.png"></image>
  90. <view class="text" v-if="sign == '挂车'">上传牵引车行驶证副页</view>
  91. <view class="text" v-else>上传行驶证副页</view>
  92. </view>
  93. <view v-if="dataDetails.drivingLicenseBackPage" @click.stop="uploadImg(4)" class="preview-card-img picture">
  94. <view @click.stop="delCard(4)">
  95. <image class='del-card' src="@/static/images/common/quxiao@2x.png">
  96. </image>
  97. </view>
  98. <image class="" :src="dataDetails.drivingLicenseBackPage" mode="aspectFit"></image>
  99. </view>
  100. <view class="flex row flex-space-between">
  101. <view class="left-text">行驶证车辆类型</view>
  102. <u--input maxlength='10' placeholder="输入行驶证上的车辆类型" inputAlign='right' border="none"
  103. v-model="dataDetails.vehicleType">
  104. </u--input>
  105. </view>
  106. <view class="flex row flex-space-between">
  107. <view class="left-text">行驶证车辆识别代号</view>
  108. <u--input maxlength='25' placeholder="输入行驶证车辆识别代号" inputAlign='right' border="none"
  109. v-model="dataDetails.carCode">
  110. </u--input>
  111. </view>
  112. <view class="flex row flex-space-between">
  113. <view class="left-text">行驶证档案编号</view>
  114. <u--input maxlength='12' placeholder="输入行驶证档案编号" inputAlign='right' border="none"
  115. v-model="dataDetails.drivingLicenseNumber">
  116. </u--input>
  117. </view>
  118. <view class="flex row flex-space-between">
  119. <view class="left-text">注册日期</view>
  120. <view class="" @click="selectValidityPeriod(6)">
  121. <view :style="{'color':dataDetails.drivingLicenseRegistrationDate?'#000':'rgb(192, 196, 204)'}">
  122. {{dataDetails.drivingLicenseRegistrationDate?dataDetails.drivingLicenseRegistrationDate:'选择注册日期'}}
  123. <image v-if='!dataDetails.drivingLicenseRegistrationDate' style='width:12px;height:12px;'
  124. src="../../../static/right.png" mode=""></image>
  125. </view>
  126. </view>
  127. </view>
  128. <view class="flex row flex-space-between">
  129. <view class="left-text">发证日期</view>
  130. <view class="" @click="selectValidityPeriod(7)">
  131. <view :style="{'color':dataDetails.drivingLicenseIssueDate?'#000':'rgb(192, 196, 204)'}">
  132. {{dataDetails.drivingLicenseIssueDate?dataDetails.drivingLicenseIssueDate:'选择发证日期'}}
  133. <image v-if='!dataDetails.drivingLicenseIssueDate' style='width:12px;height:12px;'
  134. src="../../../static/right.png" mode=""></image>
  135. </view>
  136. </view>
  137. </view>
  138. <view class="flex row flex-space-between">
  139. <view class="left-text">行驶证有效期</view>
  140. <view class="" @click="selectValidityPeriod(1)">
  141. <view :style="{'color':dataDetails.drivingLicenseValidityDate?'#000':'rgb(192, 196, 204)'}">
  142. {{dataDetails.drivingLicenseValidityDate?dataDetails.drivingLicenseValidityDate:'选择有效截止日期'}}
  143. <image v-if='!dataDetails.drivingLicenseValidityDate' style='width:12px;height:12px;'
  144. src="../../../static/right.png" mode=""></image>
  145. </view>
  146. </view>
  147. </view>
  148. <view class="flex row flex-space-between">
  149. <view class="left-text">使用性质</view>
  150. {{dataDetails.useNature?dataDetails.useNature:'输入使用性质'}}
  151. <!-- <u--input placeholder="输入使用性质" inputAlign='right' border="none" v-model="dataDetails.useNature"
  152. disabled>
  153. </u--input> -->
  154. </view>
  155. <view class="flex row flex-space-between">
  156. <view class="left-text">发证机关</view>
  157. <u--input placeholder="输入发证机关" inputAlign='right' border="none" maxlength="25"
  158. v-model="dataDetails.lssuingAuthority">
  159. </u--input>
  160. </view>
  161. <view class="flex row noborder">
  162. <view class="left-text">车辆能源类型</view>
  163. <view style='text-align:right;width:50%;' class="" @click="driveType">
  164. <view :style="{'color':dataDetails.energyType?'#000':'rgb(192, 196, 204)'}">
  165. {{dataDetails.energyType?dataDetails.energyType:'选择车辆能源类型'}}
  166. <image v-if='!dataDetails.energyType' style='width:12px;height:12px;'
  167. src="../../../static/right.png" mode=""></image>
  168. </view>
  169. <!-- {{dataDetails.energyType?dataDetails.energyType:'选择车辆能源类型>'}}> -->
  170. </view>
  171. </view>
  172. <view class="" v-if="sign == '挂车'">
  173. <view class="title">挂车行驶证主页</view>
  174. <view @click="uploadImg(5)" class="picture picture5" v-if="!dataDetails.trailerLicenseHomePage">
  175. <image class="xj-image" src="@/static/images/mine/ic_shanchuan@2x.png"></image>
  176. <view class="text">上传挂车行驶证主页</view>
  177. </view>
  178. <view v-if="dataDetails.trailerLicenseHomePage" @click.stop="uploadImg(5)"
  179. class="preview-card-img picture">
  180. <view @click.stop="delCard(5)">
  181. <image class='del-card' src="@/static/images/common/quxiao@2x.png">
  182. </image>
  183. </view>
  184. <image class="" :src="dataDetails.trailerLicenseHomePage" mode="aspectFit"></image>
  185. </view>
  186. </view>
  187. <view v-if="sign == '挂车'">
  188. <view class="title">挂车行驶证副页</view>
  189. <view @click="uploadImg(6)" class="picture picture6" v-if="!dataDetails.trailerLicenseBackPage">
  190. <image class="xj-image" src="@/static/images/mine/ic_shanchuan@2x.png"></image>
  191. <view class="text">上传挂车行驶证副页</view>
  192. </view>
  193. <view v-if="dataDetails.trailerLicenseBackPage" @click.stop="uploadImg(6)"
  194. class="preview-card-img picture">
  195. <view @click.stop="delCard(6)">
  196. <image class='del-card' src="@/static/images/common/quxiao@2x.png">
  197. </image>
  198. </view>
  199. <image class="" :src="dataDetails.trailerLicenseBackPage" mode="aspectFit"></image>
  200. </view>
  201. </view>
  202. <view class="flex row flex-space-between" v-if="sign == '挂车'">
  203. <view class="left-text" style="width: 150px !important;">挂车行驶证车辆类型</view>
  204. <u--input maxlength='12' placeholder="输入挂车行驶证车辆类型" inputAlign='right' border="none"
  205. v-model="dataDetails.trailerVehicleType">
  206. </u--input>
  207. <u-icon name="arrow-down-fill" @click="selectCarType"></u-icon>
  208. </view>
  209. <view class="flex row flex-space-between" v-if="sign == '挂车'">
  210. <view class="left-text">挂车行驶证车辆识别代号</view>
  211. <u--input maxlength='25' placeholder="输入挂车车辆识别代码" inputAlign='right' border="none"
  212. v-model="dataDetails.trailerCarCode">
  213. </u--input>
  214. </view>
  215. <view class="flex row flex-space-between" v-if="sign == '挂车'">
  216. <view class="left-text">挂车行驶证档案编号</view>
  217. <u--input maxlength='12' placeholder="输入挂车行驶证档案编号" inputAlign='right' border="none"
  218. v-model="dataDetails.trailerLicenseNumber">
  219. </u--input>
  220. </view>
  221. <view class="flex row flex-space-between" v-if="sign == '挂车'">
  222. <view class="left-text">注册日期</view>
  223. <view class="" @click="selectValidityPeriod(8)">
  224. <view :style="{'color':dataDetails.trailerLicenseRegistrationDate?'#000':'rgb(192, 196, 204)'}">
  225. {{dataDetails.trailerLicenseRegistrationDate?dataDetails.trailerLicenseRegistrationDate:'选择注册日期'}}
  226. <image v-if='!dataDetails.trailerLicenseRegistrationDate' style='width:12px;height:12px;'
  227. src="../../../static/right.png" mode=""></image>
  228. </view>
  229. <!-- {{dataDetails.trailerLicenseRegistrationDate?dataDetails.trailerLicenseRegistrationDate:'选择注册日期>'}} -->
  230. </view>
  231. </view>
  232. <view class="flex row flex-space-between" v-if="sign == '挂车'">
  233. <view class="left-text">发证日期</view>
  234. <view class="" @click="selectValidityPeriod(9)">
  235. <view :style="{'color':dataDetails.trailerLicenseIssueDate?'#000':'rgb(192, 196, 204)'}">
  236. {{dataDetails.trailerLicenseIssueDate?dataDetails.trailerLicenseIssueDate:'选择发证日期'}}
  237. <image v-if='!dataDetails.trailerLicenseIssueDate' style='width:12px;height:12px;'
  238. src="../../../static/right.png" mode=""></image>
  239. </view>
  240. <!-- {{dataDetails.trailerLicenseIssueDate?dataDetails.trailerLicenseIssueDate:'选择发证日期>'}} -->
  241. </view>
  242. </view>
  243. <view class="flex row flex-space-between" v-if="sign == '挂车'">
  244. <view class="left-text">挂车行驶证有效期</view>
  245. <view class="" @click="selectValidityPeriod(2)">
  246. <view :style="{'color':dataDetails.trailerLicenseValidityDate?'#000':'rgb(192, 196, 204)'}">
  247. {{dataDetails.trailerLicenseValidityDate?dataDetails.trailerLicenseValidityDate:'选择有效截止日期'}}
  248. <image v-if='!dataDetails.trailerLicenseValidityDate' style='width:12px;height:12px;'
  249. src="../../../static/right.png" mode=""></image>
  250. </view>
  251. <!-- {{dataDetails.trailerLicenseValidityDate?dataDetails.trailerLicenseValidityDate:'选择有效截止日期>'}} -->
  252. </view>
  253. </view>
  254. <view class="flex row flex-space-between" v-if="sign == '挂车'">
  255. <view class="left-text">使用性质</view>
  256. {{dataDetails.guaUseNature?dataDetails.guaUseNature:'输入使用性质'}}
  257. <!-- <u--input placeholder="输入使用性质" inputAlign='right' border="none" v-model="dataDetails.guaUseNature"
  258. disabled>
  259. </u--input> -->
  260. </view>
  261. <view class="flex row flex-space-between" v-if="sign == '挂车'">
  262. <view class="left-text">发证机关</view>
  263. <u--input placeholder="输入发证机关" inputAlign='right' border="none" maxlength="25"
  264. v-model="dataDetails.guaLssuingAuthority">
  265. </u--input>
  266. </view>
  267. <!-- 牵引车 -->
  268. <view class="flex row" v-if="sign == '挂车'">
  269. <view class="left left-text">牵引车车牌号</view>
  270. <view class="right flex">
  271. <input class="car-uumber" v-model='dataDetails.carNumber' @click.stop="handleShowKeyboard(index)"
  272. :disabled="true" placeholder="输入牵引车车牌号" name="input"></input>
  273. </view>
  274. </view>
  275. <view class="flex row" v-if="sign == '非挂车'">
  276. <view class="left left-text">车牌号</view>
  277. <view class="right flex">
  278. <input class="car-uumber" v-model='dataDetails.carNumber' @click.stop="handleShowKeyboard(index)"
  279. :disabled="true" placeholder="输入车牌号" name="input"></input>
  280. </view>
  281. </view>
  282. <view class="flex row flex-space-between">
  283. <view class="left-text">车牌颜色</view>
  284. <view class='flex'>
  285. <view class="color" @click="selectNoColor">{{dataDetails.carNumberColour}}</view>
  286. <view>
  287. <image v-if='!dataDetails.carNumberColour' style='width:12px;height:12px;'
  288. src="../../../static/right.png" mode=""></image>
  289. </view>
  290. </view>
  291. </view>
  292. <view class="flex row">
  293. <view class="left-text">车辆所属车主</view>
  294. <input style='text-align:right;' placeholder="输入车主姓名" v-model="dataDetails.owner" type="text">
  295. <!-- <u--input inputAlign='left' border="none"> -->
  296. <!-- </u--input> -->
  297. </view>
  298. <view class="flex row" v-if="sign == '非挂车'">
  299. <view class="left-text">总质量(千克)</view>
  300. <u--input type='number' placeholder="输入总质量" inputAlign='right' border="none"
  301. v-model="dataDetails.carTotalWeight">
  302. </u--input>
  303. </view>
  304. <view class="flex row" v-if="sign == '非挂车'">
  305. <view class="left-text">核定载质量(千克)</view>
  306. <u--input placeholder="输入核定载质量" inputAlign='left' border="none" v-model="dataDetails.carApprovedWeight">
  307. </u--input>
  308. </view>
  309. <view class="flex row" v-if="sign == '挂车'">
  310. <view class="left-text">整备质量(千克)</view>
  311. <u--input type='number' placeholder="输入整备质量" inputAlign='right' border="none"
  312. v-model="dataDetails.servicingWeight">
  313. </u--input>
  314. </view>
  315. <view class="flex row noborder" v-if="sign == '挂车'">
  316. <view style='width:390rpx;' class="left-text">牵引车外廓尺寸(毫米)</view>
  317. </view>
  318. <view class="flex row noborder" v-if="sign == '非挂车'">
  319. <view class="left-text">外廓尺寸(毫米)</view>
  320. </view>
  321. <view class="flex row noborder input-ckg">
  322. <view class="input-positon">
  323. <!-- <input type='number' class="input" placeholder="长" border="none"
  324. v-model="dataDetails.carLong"> -->
  325. <u--input type='number' class="input" placeholder="长" inputAlign='left' border="none"
  326. v-model="dataDetails.carLong">
  327. </u--input>
  328. <view class="position-right">
  329. mm
  330. </view>
  331. </view>
  332. <view class="star">*</view>
  333. <view class="input-positon">
  334. <!-- <input type='number' class="input" placeholder="宽" border="none"
  335. v-model="dataDetails.carWidth"> -->
  336. <u--input type='number' placeholder="宽" inputAlign='left' border="none"
  337. v-model="dataDetails.carWidth">
  338. </u--input>
  339. <view class="position-right">
  340. mm
  341. </view>
  342. </view>
  343. <view class="star">*</view>
  344. <view class="input-positon">
  345. <!-- <input type='number' class="input" placeholder="高" border="none"
  346. v-model="dataDetails.carHeight"> -->
  347. <u--input type='number' placeholder="高" inputAlign='left' border="none"
  348. v-model="dataDetails.carHeight">
  349. </u--input>
  350. <view class="position-right">
  351. mm
  352. </view>
  353. </view>
  354. </view>
  355. <view class="flex row noborder s-row">
  356. <view class="left-text" style="width: 100%;" v-if="sign == '挂车'">上传人和牵引车合影(牵引车牌号可见)</view>
  357. <view class="left-text" style="width: 100%;" v-if="sign == '非挂车'">上传人车合影(车头车牌号可见)</view>
  358. <u-upload class="uview-upload" :fileList="fileList1" @afterRead="afterRead($event,'1')"
  359. @delete="deletePic" name="1" multiple :maxCount="1"></u-upload>
  360. </view>
  361. <!-- 挂车 -->
  362. <view v-if="sign == '挂车'">
  363. <view class="flex row">
  364. <view class="left left-text">挂车车牌号</view>
  365. <view class="right flex">
  366. <input class="car-uumber" v-model='dataDetails.guaCarNumber1'
  367. @click.stop="handleShowKeyboard1(index)" :disabled="true" placeholder-class="phsy"
  368. placeholder="输入挂车牌号" name="input"></input>
  369. </view>
  370. </view>
  371. <view class="flex row">
  372. <view class="left-text">挂车车辆所属车主</view>
  373. <u--input placeholder="输入车主姓名" inputAlign='right' border="none" v-model="dataDetails.guaOwner">
  374. </u--input>
  375. </view>
  376. <view class="flex row">
  377. <view class="left-text">挂车总质量(千克)</view>
  378. <u--input type='number' placeholder="输入挂车总质量" inputAlign='right' border="none"
  379. v-model="dataDetails.carTotalWeight">
  380. </u--input>
  381. </view>
  382. <view class="flex row">
  383. <view class="left-text">挂车整备质量(千克)</view>
  384. <u--input type='number' placeholder="输入整备质量" inputAlign='right' border="none"
  385. v-model="dataDetails.guaServicingWeight">
  386. </u--input>
  387. </view>
  388. <view class="flex row">
  389. <view style='width:180px' class="left-text">挂车核定载质量(千克)</view>
  390. <u--input type='number' placeholder="输入核定载质量" inputAlign='right' border="none"
  391. v-model="dataDetails.guaCarApprovedWeight">
  392. </u--input>
  393. </view>
  394. <view class="flex row noborder">
  395. <view style='width:390rpx;' class="left-text">挂车外廓尺寸(毫米)</view>
  396. </view>
  397. <view class="flex row noborder input-ckg">
  398. <view class="input-positon">
  399. <u--input type='number' class="input" placeholder="长" inputAlign='left' border="none"
  400. v-model="dataDetails.guaCarLong">
  401. </u--input>
  402. <view class="position-right">
  403. mm
  404. </view>
  405. </view>
  406. <view class="star">*</view>
  407. <view class="input-positon">
  408. <u--input type='number' placeholder="宽" inputAlign='left' border="none"
  409. v-model="dataDetails.guaCarWidth">
  410. </u--input>
  411. <view class="position-right">
  412. mm
  413. </view>
  414. </view>
  415. <view class="star">*</view>
  416. <view class="input-positon">
  417. <u--input type='number' placeholder="高" inputAlign='left' border="none"
  418. v-model="dataDetails.guaCarHeight">
  419. </u--input>
  420. <view class="position-right">
  421. mm
  422. </view>
  423. </view>
  424. </view>
  425. <view class="flex row noborder s-row">
  426. <view class="left-text" style="width: 100%;">上传人和挂车合影(挂车车牌号可见)</view>
  427. <u-upload class="uview-upload" :fileList="fileList2" @afterRead="afterRead1($event,'2')"
  428. @delete="deletePic" name="2" multiple :maxCount="1"></u-upload>
  429. </view>
  430. </view>
  431. <!-- <view class="level1-title">证件信息</view> -->
  432. </view>
  433. <view class='submit-btn-wrap'>
  434. <view class="submit-btn" @click="$u.throttle(submit, 1000)">提交</view>
  435. </view>
  436. <master-keyboard ref="keyboard" keyboardtype="car" :show="keyShow" :randomNumber="true" :newCar="false"
  437. :defaultValue="carNumber" @keyboardClick="handleClick"></master-keyboard>
  438. <master-keyboard ref="keyboard1" :guastatus='true' keyboardtype="car" :show="keyShow1" :randomNumber="true"
  439. :newCar="false" :defaultValue="carNumber1" @keyboardClick="handleClick1"></master-keyboard>
  440. <u-toast ref="uToast"></u-toast>
  441. <u-action-sheet :actions="$helper.imgTypeList" :title="$helper.imgType" :show="isShowimgType"
  442. @select="imgTypeSelect" :closeOnClickOverlay="true" :closeOnClickAction="true" @close="isShowimgType=false">
  443. </u-action-sheet>
  444. <u-picker :show="carColor" :columns="colorColumns" :closeOnClickOverlay='true' @close='colorClose'
  445. @cancel='colorClose' @confirm='confirmColor'></u-picker>
  446. <!-- <u-picker :show="isShowValidity" ref="uPicker" :columns="validityPeriod" @confirm="confirmValidityPeriod"
  447. :closeOnClickOverlay='true' @close='isShowValidity=false' @cancel='isShowValidity=false'>
  448. </u-picker> -->
  449. <itmister-date-picker :overdueContent="overdueContent" :dateStatus="0" :periodOfValidity="true" ref="dateEl"
  450. :startYear="1999" :futureYear="6" @dateConfirm="confirmValidityPeriod"></itmister-date-picker>
  451. <itmister-date-picker :overdueContent="overdueContent" :dateStatus="1" :periodOfValidity="true" ref="dateXSZEl"
  452. :startYear="1999" :futureYear="10" @dateConfirm="confirmValidityPeriod"></itmister-date-picker>
  453. <itmister-date-picker :dateStatus="0" ref="daterestsEl" :startYear="1980" :futureYear="0"
  454. @dateConfirm="confirmValidityPeriod"></itmister-date-picker>
  455. <u-picker :show="isShowCarType" ref="uPicker" :columns="carTypeList" @confirm="confirmCarType"
  456. :closeOnClickOverlay='true' @close='isShowCarType=false' @cancel='isShowCarType=false'>
  457. </u-picker>
  458. <u-picker :show="carTypeShow" :closeOnClickOverlay='true' ref="uPicker" :columns="tcarTypeList"
  459. @close="carTypeShow = false" @cancel='carTypeShow=false' @confirm="tCarType"></u-picker>
  460. </view>
  461. </template>
  462. <script>
  463. import uploadImage from '@/components/ossutil/uploadFile.js';
  464. import permision from "@/js_sdk/wa-permission/permission.js"
  465. import keyboard from "@/components/master-keyboard/master-keyboard.vue";
  466. var _this;
  467. import {
  468. mapState
  469. } from 'vuex';
  470. export default {
  471. data() {
  472. return {
  473. index: '',
  474. keyShow: false,
  475. keyShow1: false,
  476. carNumber: '',
  477. carNumber1: "",
  478. overdueContent: '',
  479. dataDetails: {
  480. // driverId: '',
  481. // carNumber: '',
  482. carNumberColour: '黄色',
  483. carCategory: '挂车',
  484. carType: '高栏',
  485. useNature: "营业特种车",
  486. guaUseNature: "营运挂车",
  487. energyType: "汽油",
  488. owner: ''
  489. // carTotalWeight: '',
  490. // carApprovedWeight: '',
  491. // carLong: '',
  492. // carWidth: '',
  493. // carHeight: '',
  494. // addressUrl: ''
  495. },
  496. startYear: 1980,
  497. carTypeList: [
  498. ["汽油", "柴油", "油电混合", "纯电动", "插电式混合动力", "增程式"]
  499. ],
  500. isShowCarType: false,
  501. carModelColumns: [
  502. ['挂车', '非挂车'],
  503. ['高栏', '集装箱', '自卸车']
  504. ],
  505. carModelColumnData: [
  506. ['高栏', '集装箱', '自卸车'],
  507. ['重型仓栏']
  508. ],
  509. colorColumns: [
  510. ['黄色', '蓝色']
  511. ],
  512. carColor: false,
  513. carModel: false,
  514. fileList1: [],
  515. fileList2: [],
  516. ValidityPeriodType: "",
  517. validityPeriod: [],
  518. isShowValidity: false,
  519. uploadType: '',
  520. isShowimgType: false,
  521. sign: "挂车",
  522. carTypeShow: false,
  523. tcarTypeList: [],
  524. };
  525. },
  526. computed: {
  527. ...mapState(['hasLogin', 'userInfo', 'firstAuthentication']),
  528. },
  529. onLoad(options) {
  530. _this = this;
  531. this.dataDetails.commonId = this.userInfo.id
  532. this.xiala() //挂车行驶证车辆类型
  533. this.get_camera_permission()
  534. },
  535. onShow() {
  536. this.startYear = new Date().getFullYear() - 30
  537. },
  538. methods: {
  539. async get_camera_permission() {
  540. var photol = await permision.requestAndroidPermission("android.permission.CAMERA")
  541. if (photol == false) {
  542. uni.showModal({
  543. title: '提示',
  544. content: '您已经关闭相册权限,去设置',
  545. success: function(res) {
  546. if (res.confirm) {
  547. permision.gotoAppPermissionSetting()
  548. // plus.runtime.openURL("app-settings:");
  549. } else if (res.cancel) {
  550. console.log('用户点击取消');
  551. }
  552. }
  553. });
  554. }
  555. },
  556. tCarType(e) {
  557. this.dataDetails.trailerVehicleType = e.value[0]
  558. this.carTypeShow = false
  559. },
  560. xiala() {
  561. this.$request.baseRequest('get', '/commonSysParameter/getInfo', {
  562. constId: "TRAILER1",
  563. }).then(res => {
  564. var list = []
  565. for (let i = 0; i < res.data.length; i++) {
  566. list.push(res.data[i].constValue)
  567. }
  568. this.tcarTypeList.push(list)
  569. })
  570. .catch(res => {
  571. // uni.$u.toast(res.message);
  572. });
  573. },
  574. selectCarType() {
  575. this.carTypeShow = true
  576. },
  577. driveType() {
  578. this.isShowCarType = true
  579. },
  580. confirmCarType(e) {
  581. this.dataDetails.energyType = e.value[0]
  582. this.isShowCarType = false
  583. },
  584. hidden() {
  585. this.$refs.keyboard.open(false)
  586. this.$refs.keyboard1.open(false)
  587. },
  588. //挂车牌号弹出键盘
  589. handleShowKeyboard1(index) {
  590. if (this.dataDetails.guaCarNumber1 == '') {
  591. this.carNumber1 = ''
  592. } else {
  593. this.carNumber1 = this.dataDetails.guaCarNumber1
  594. }
  595. if (this.$refs.keyboard1.open) {
  596. this.$refs.keyboard1.open(false) //true 键盘显示 false 键盘隐藏
  597. } else {
  598. this.$refs.keyboard1[0].open(false)
  599. }
  600. this.index = index
  601. if (this.$refs.keyboard1.open) {
  602. this.$refs.keyboard1.open(true) //true 键盘显示 false 键盘隐藏
  603. } else {
  604. this.$refs.keyboard1[0].open(true)
  605. }
  606. },
  607. handleClick1(e) {
  608. this.carNumber1 = e.value
  609. this.dataDetails.guaCarNumber1 = e.value //键盘输入值
  610. },
  611. delCard(type) {
  612. switch (type) {
  613. case 1:
  614. _this.dataDetails.operationCertificate = "" //道路运输证
  615. break;
  616. case 2:
  617. _this.dataDetails.trailerOperationCertificate = "" //挂车道路运输证
  618. break;
  619. case 3:
  620. _this.dataDetails.drivingLicenseHomePage = "" //牵引车行驶证
  621. break;
  622. case 4:
  623. _this.dataDetails.drivingLicenseBackPage = "" //牵引车行驶证副页
  624. break;
  625. case 5:
  626. _this.dataDetails.trailerLicenseHomePage = "" //挂车行驶证
  627. break;
  628. case 6:
  629. _this.dataDetails.trailerLicenseBackPage = "" //挂车行驶证副页
  630. break;
  631. }
  632. _this.$forceUpdate()
  633. },
  634. uploadImg(type) {
  635. this.uploadType = type
  636. this.imgTypeSelect()
  637. // this.isShowimgType = true
  638. },
  639. selectValidityPeriod(type) {
  640. this.ValidityPeriodType = type
  641. switch (this.ValidityPeriodType) {
  642. case 1:
  643. this.overdueContent = '行驶证已过期'
  644. this.$refs.dateXSZEl.show()
  645. break;
  646. case 2:
  647. this.overdueContent = '挂车行驶证已过期'
  648. this.$refs.dateXSZEl.show()
  649. break;
  650. case 4:
  651. this.overdueContent = '道路运输证已过期'
  652. this.$refs.dateEl.show()
  653. break;
  654. case 5:
  655. this.overdueContent = '挂车道路运输证已过期'
  656. this.$refs.dateEl.show()
  657. break;
  658. case 6:
  659. this.$refs.daterestsEl.show()
  660. break;
  661. case 7:
  662. this.$refs.daterestsEl.show()
  663. break;
  664. case 8:
  665. this.$refs.daterestsEl.show()
  666. break;
  667. case 9:
  668. this.$refs.daterestsEl.show()
  669. break;
  670. }
  671. // this.isShowValidity = true
  672. },
  673. // 上传图片
  674. imgTypeSelect(val) {
  675. // if (val.name == '相册') {
  676. uni.chooseImage({
  677. count: 1,
  678. sizeType: ['compressed'],
  679. success: function(res) {
  680. uploadImage("images", res.tempFilePaths[0], 'appData/',
  681. result => {
  682. // 上传成功回调函数
  683. console.log('图片地址-----', result)
  684. switch (_this.uploadType) {
  685. case 1:
  686. _this.dataDetails.driverLicenseHomePage = result
  687. break;
  688. case 2:
  689. _this.dataDetails.driverLicenseBackPage = result
  690. break;
  691. case 3:
  692. _this.dataDetails.drivingLicenseHomePage = result
  693. _this.$request.baseRequest('get',
  694. '/driverCarInfo/api/driveringLicenseShibie', {
  695. image: result,
  696. flag: 1
  697. }).then(res => {
  698. if (res.data) {
  699. _this.dataDetails.carNumber = res.data
  700. .carNum //车牌号
  701. _this.dataDetails.vehicleType = res.data
  702. .vehicleType
  703. _this.dataDetails.carCode = res.data.carCode
  704. _this.dataDetails.owner = res.data
  705. .owner //车辆所有人
  706. if (res.data.lssuingAuthority) { //行驶证发证机关
  707. _this.dataDetails.lssuingAuthority = res
  708. .data.lssuingAuthority
  709. }
  710. if (res.data.licenseRegistrationDate) { //行驶证注册日期
  711. _this.dataDetails
  712. .drivingLicenseRegistrationDate = res
  713. .data.licenseRegistrationDate
  714. }
  715. if (res.data.licenseIssueDate) { //行驶证发证日期
  716. _this.dataDetails.drivingLicenseIssueDate =
  717. res.data.licenseIssueDate
  718. }
  719. _this.$forceUpdate()
  720. }
  721. })
  722. .catch(res => {
  723. uni.$u.toast(res.message);
  724. });
  725. break;
  726. case 4:
  727. _this.dataDetails.drivingLicenseBackPage = result
  728. _this.$request.baseRequest('get',
  729. '/driverCarInfo/api/driveringLicenseShibie', {
  730. image: result,
  731. flag: 2
  732. }).then(res => {
  733. if (res.data) {
  734. if (res.data.issuingAuthority) { //行驶证发证机关
  735. _this.dataDetails.lssuingAuthority = res
  736. .data.issuingAuthority
  737. }
  738. if (res.data
  739. .licenseRegistrationDate) { //行驶证注册日期
  740. _this.dataDetails
  741. .drivingLicenseRegistrationDate = res
  742. .data.licenseRegistrationDate
  743. }
  744. if (res.data.licenseIssueDate) { //行驶证发证日期
  745. _this.dataDetails.drivingLicenseIssueDate =
  746. res.data.licenseIssueDate
  747. }
  748. _this.dataDetails.drivingLicenseValidityDate =
  749. res.data.driveringEndDate //行驶证有效期
  750. _this.dataDetails.drivingLicenseNumber = res
  751. .data.driveringNum.replace(/\s*/g,
  752. "") //行驶证档案编号
  753. if (_this.sign == "非挂车") {
  754. if (res.data.servicingMass && res.data
  755. .servicingMass.indexOf("kg") != -1) {
  756. res.data.servicingMass = res.data
  757. .servicingMass.slice(0, res.data
  758. .servicingMass.length - 2)
  759. }
  760. _this.dataDetails.carTotalWeight = res.data
  761. .servicingMass //总质量
  762. }
  763. if (res.data.approvedLoadMass.indexOf("kg") != -
  764. 1) {
  765. res.data.approvedLoadMass = res.data
  766. .approvedLoadMass.slice(0, res.data
  767. .approvedLoadMass.length - 2)
  768. }
  769. if (res.data.approvedLoadMass && !isNaN(res.data
  770. .approvedLoadMass)) {
  771. _this.dataDetails.carApprovedWeight = res.data
  772. .approvedLoadMass //核定载质量
  773. }
  774. if (res.data.size && res.data.size.indexOf(
  775. "mm") != -1) {
  776. res.data.size = res.data.size.slice(0, res
  777. .data.size.length - 2);
  778. }
  779. _this.dataDetails.carLong = res.data.size
  780. .split("X")[0] //车长
  781. _this.dataDetails.carWidth = res.data.size
  782. .split("X")[1] //车宽
  783. _this.dataDetails.carHeight = res.data.size
  784. .split("X")[2] //车高
  785. _this.$forceUpdate()
  786. }
  787. })
  788. .catch(res => {
  789. uni.$u.toast(res.message);
  790. });
  791. break;
  792. case 5: //挂车行驶证
  793. _this.dataDetails.trailerLicenseHomePage = result
  794. _this.$request.baseRequest('get',
  795. '/driverCarInfo/api/driveringLicenseShibie', {
  796. image: result,
  797. flag: 1
  798. }).then(res => {
  799. if (res.data) {
  800. if (res.data.lssuingAuthority) { //行驶证发证机关
  801. _this.dataDetails.guaLssuingAuthority = res
  802. .data.lssuingAuthority
  803. }
  804. if (res.data.licenseRegistrationDate) { //行驶证注册日期
  805. _this.dataDetails
  806. .trailerLicenseRegistrationDate = res.data
  807. .licenseRegistrationDate
  808. }
  809. if (res.data.licenseIssueDate) { //行驶证发证日期
  810. _this.dataDetails.trailerLicenseIssueDate = res
  811. .data.licenseIssueDate
  812. }
  813. if (res.data
  814. .carNum) {
  815. _this.dataDetails.guaCarNumber1 = res.data
  816. .carNum.substring(0, 6)
  817. }
  818. //车牌号
  819. _this.dataDetails.guaOwner = res.data.owner //车辆所有人
  820. _this.dataDetails.trailerVehicleType = res.data
  821. .vehicleType
  822. _this.dataDetails.trailerCarCode = res.data.carCode
  823. _this.$forceUpdate()
  824. }
  825. })
  826. .catch(res => {
  827. uni.$u.toast(res.message);
  828. });
  829. break;
  830. case 6:
  831. _this.dataDetails.trailerLicenseBackPage = result
  832. _this.$request.baseRequest('get',
  833. '/driverCarInfo/api/driveringLicenseShibie', {
  834. image: result,
  835. flag: 2
  836. }).then(res => {
  837. if (res.data) {
  838. _this.dataDetails.trailerLicenseValidityDate =
  839. res.data.driveringEndDate //挂车行驶证有效期
  840. _this.dataDetails.trailerLicenseNumber = res
  841. .data.driveringNum.replace(/\s*/g,
  842. "") //挂车行驶证档案编号
  843. if (res.data.servicingMass && res.data
  844. .servicingMass.indexOf("kg") != -1) {
  845. res.data.servicingMass = res.data
  846. .servicingMass.slice(0, res.data
  847. .servicingMass.length - 2)
  848. }
  849. if (res.data.approvedLoadMass.indexOf("kg") != -
  850. 1) {
  851. res.data.approvedLoadMass = res.data
  852. .approvedLoadMass.slice(0, res.data
  853. .approvedLoadMass.length - 2)
  854. }
  855. _this.dataDetails.carTotalWeight = res.data
  856. .totalMass.split("kg").join("") //挂车总质量
  857. _this.dataDetails.guaServicingWeight = res.data
  858. .servicingMass //总质量
  859. _this.dataDetails.guaCarApprovedWeight = res.data
  860. .approvedLoadMass //核定载质量
  861. if (res.data.size && res.data.size.indexOf(
  862. "mm") != -1) {
  863. res.data.size = res.data.size.slice(0, res
  864. .data.size.length - 2);
  865. }
  866. _this.dataDetails.guaCarLong = res.data.size
  867. .split("X")[0] //车长
  868. _this.dataDetails.guaCarWidth = res.data.size
  869. .split("X")[1] //车宽
  870. _this.dataDetails.guaCarHeight = res.data.size
  871. .split("X")[2] //车高
  872. _this.$forceUpdate()
  873. }
  874. })
  875. .catch(res => {
  876. uni.$u.toast(res.message);
  877. });
  878. break;
  879. case 7:
  880. _this.dataDetails.qualificationCertificate = result
  881. break;
  882. case 8:
  883. _this.dataDetails.operationCertificate = result
  884. _this.$request.baseRequest('get',
  885. '/driverCarInfo/api/tranLicenseShibie', {
  886. image: result
  887. }).then(res => {
  888. if (res.data) {
  889. _this.dataDetails.operationCertificateNumber =
  890. res.data.tranNumber.replace(/\s*/g, "")
  891. _this.dataDetails
  892. .operationCertificateValidityDate = res
  893. .data.tranEndDate
  894. _this.$forceUpdate()
  895. }
  896. })
  897. .catch(res => {
  898. uni.$u.toast(res.message);
  899. });
  900. break;
  901. case 9:
  902. _this.dataDetails.trailerOperationCertificate = result
  903. _this.$request.baseRequest('get',
  904. '/driverCarInfo/api/tranLicenseShibie', {
  905. image: result
  906. }).then(res => {
  907. if (res.data) {
  908. _this.dataDetails
  909. .trailerOperationCertificateNumber = res
  910. .data.tranNumber.replace(/\s*/g, "")
  911. _this.dataDetails
  912. .trailerOperationCertificateValidityDate =
  913. res.data.tranEndDate
  914. _this.$forceUpdate()
  915. }
  916. })
  917. .catch(res => {
  918. uni.$u.toast(res.message);
  919. });
  920. break;
  921. }
  922. _this.$forceUpdate()
  923. }
  924. )
  925. },
  926. fail: function(req) {
  927. console.log(req, 11111)
  928. },
  929. complete: function(req1) {
  930. console.log(req1, 22222)
  931. },
  932. });
  933. // }
  934. },
  935. confirmValidityPeriod(date) {
  936. switch (this.ValidityPeriodType) {
  937. case 0:
  938. this.dataDetails.driverLicenseValidityDate = date.date
  939. break
  940. case 1:
  941. this.dataDetails.drivingLicenseValidityDate = date.date
  942. break
  943. case 2:
  944. this.dataDetails.trailerLicenseValidityDate = date.date
  945. break
  946. case 3:
  947. this.dataDetails.qualificationCertificateValidityDate = date.date
  948. break
  949. case 4:
  950. this.dataDetails.operationCertificateValidityDate = date.date
  951. break
  952. case 5:
  953. this.dataDetails.trailerOperationCertificateValidityDate = date.date
  954. case 6: //行驶证注册日期
  955. this.dataDetails.drivingLicenseRegistrationDate = date.date
  956. break
  957. case 7: //行驶证发证日期
  958. this.dataDetails.drivingLicenseIssueDate = date.date
  959. break
  960. case 8: //挂车行驶证注册日期
  961. this.dataDetails.trailerLicenseRegistrationDate = date.date
  962. break
  963. case 9: //挂车行驶证发证日期
  964. this.dataDetails.trailerLicenseIssueDate = date.date
  965. break
  966. }
  967. this.$forceUpdate()
  968. },
  969. // 车型切换
  970. changeCarModel(e) {
  971. const {
  972. columnIndex,
  973. index,
  974. // 微信小程序无法将picker实例传出来,只能通过ref操作
  975. picker = this.$refs.carTypePicker
  976. } = e
  977. if (columnIndex === 0) {
  978. // 模拟网络请求
  979. picker.setColumnValues(1, this.carModelColumnData[index])
  980. }
  981. },
  982. // 删除图片
  983. deletePic(event) {
  984. this[`fileList${event.name}`].splice(event.index, 1)
  985. },
  986. // 新增图片
  987. async afterRead(event, num) {
  988. // 当设置 mutiple 为 true 时, file 为数组格式,否则为对象格式
  989. let lists = [].concat(event.file)
  990. let fileListLen = this[`fileList${event.name}`].length
  991. lists.map((item) => {
  992. this[`fileList${event.name}`].push({
  993. ...item,
  994. status: 'uploading',
  995. message: '上传中'
  996. })
  997. })
  998. for (let i = 0; i < lists.length; i++) {
  999. const result = await this.uploadFilePromise(lists[i].url, num)
  1000. let item = this[`fileList${event.name}`][fileListLen]
  1001. this[`fileList${event.name}`].splice(fileListLen, 1, Object.assign(item, {
  1002. status: 'success',
  1003. message: '',
  1004. url: result
  1005. }))
  1006. fileListLen++
  1007. }
  1008. },
  1009. // 新增图片
  1010. async afterRead1(event, num) {
  1011. // 当设置 mutiple 为 true 时, file 为数组格式,否则为对象格式
  1012. let lists = [].concat(event.file)
  1013. let fileListLen = this[`fileList${event.name}`].length
  1014. lists.map((item) => {
  1015. this[`fileList${event.name}`].push({
  1016. ...item,
  1017. status: 'uploading',
  1018. message: '上传中'
  1019. })
  1020. })
  1021. for (let i = 0; i < lists.length; i++) {
  1022. const result = await this.uploadFilePromise(lists[i].url, num)
  1023. let item = this[`fileList${event.name}`][fileListLen]
  1024. this[`fileList${event.name}`].splice(fileListLen, 1, Object.assign(item, {
  1025. status: 'success',
  1026. message: '',
  1027. url: result
  1028. }))
  1029. fileListLen++
  1030. }
  1031. },
  1032. uploadFilePromise(url, num) {
  1033. uploadImage('image', url, 'appData/',
  1034. result => {
  1035. // 上传成功回调函数
  1036. console.log('图片地址', result)
  1037. if (num == 1) {
  1038. if (!this.dataDetails.addressUrl) {
  1039. this.dataDetails.addressUrl = result
  1040. } else {
  1041. this.dataDetails.addressUrl = this.dataDetails.addressUrl + ',' + result
  1042. }
  1043. } else if (num == 2) {
  1044. if (!this.dataDetails.guaAddressUrl) {
  1045. this.dataDetails.guaAddressUrl = result
  1046. } else {
  1047. this.dataDetails.guaAddressUrl = this.dataDetails.guaAddressUrl + ',' + result
  1048. }
  1049. }
  1050. }
  1051. )
  1052. },
  1053. //车牌号弹出键盘
  1054. handleShowKeyboard(index) {
  1055. if (this.dataDetails.carNumber == '') {
  1056. this.carNumber = ''
  1057. } else {
  1058. this.carNumber = this.dataDetails.carNumber
  1059. }
  1060. if (this.$refs.keyboard.open) {
  1061. this.$refs.keyboard.open(false) //true 键盘显示 false 键盘隐藏
  1062. } else {
  1063. this.$refs.keyboard[0].open(false)
  1064. }
  1065. this.index = index
  1066. if (this.$refs.keyboard.open) {
  1067. this.$refs.keyboard.open(true) //true 键盘显示 false 键盘隐藏
  1068. } else {
  1069. this.$refs.keyboard[0].open(true)
  1070. }
  1071. },
  1072. //车牌号弹出键盘
  1073. handleClick(e) {
  1074. this.carNumber = e.value
  1075. this.dataDetails.carNumber = e.value //键盘输入值
  1076. },
  1077. confirmColor(val) {
  1078. this.dataDetails.carNumberColour = val.value[0]
  1079. this.carColor = false
  1080. },
  1081. colorClose() {
  1082. this.carColor = false
  1083. },
  1084. selectNoColor() {
  1085. this.carColor = true
  1086. },
  1087. confirmCarModel(val) {
  1088. if (val.value[0] == '挂车') {
  1089. this.dataDetails.useNature = "营业特种车"
  1090. this.dataDetails.guaUseNature = "营运挂车"
  1091. } else if (val.value[0] == '非挂车') {
  1092. this.dataDetails.useNature = "营运货车"
  1093. }
  1094. this.sign = val.value[0]
  1095. // this.dataDetails.carType = val.value[0] + ' ' + val.value[1]
  1096. this.dataDetails.carCategory = val.value[0]
  1097. this.dataDetails.carType = val.value[1]
  1098. this.carModel = false
  1099. },
  1100. carModelClose() {
  1101. this.carModel = false
  1102. },
  1103. selectCarModel() {
  1104. this.carModel = true
  1105. },
  1106. selectNoColor() {
  1107. this.carColor = true
  1108. },
  1109. unloadGroupPhoto() {
  1110. uni.chooseImage({
  1111. count: 1,
  1112. sizeType: ['compressed'],
  1113. success: function(res) {
  1114. uploadImage('image', res.tempFilePaths[0], 'appData/',
  1115. result => {
  1116. // 上传成功
  1117. console.log('图片地址', result)
  1118. }
  1119. )
  1120. }
  1121. });
  1122. },
  1123. validate() {
  1124. if (uni.$u.test.isEmpty(this.dataDetails.operationCertificate)) {
  1125. this.$refs.uToast.show({
  1126. type: 'error',
  1127. message: "道路运输证不能为空!",
  1128. })
  1129. return true
  1130. }
  1131. if (uni.$u.test.isEmpty(this.dataDetails.operationCertificateNumber)) {
  1132. this.$refs.uToast.show({
  1133. type: 'error',
  1134. message: "道路运输证号不能为空!",
  1135. })
  1136. return true
  1137. }
  1138. if (this.dataDetails.operationCertificateNumber.length != 12) {
  1139. this.$refs.uToast.show({
  1140. type: 'error',
  1141. message: "道路运输证号输入错误!",
  1142. })
  1143. return true
  1144. }
  1145. if (uni.$u.test.isEmpty(this.dataDetails.operationCertificateValidityDate)) {
  1146. this.$refs.uToast.show({
  1147. type: 'error',
  1148. message: "道路运输证有效期不能为空!",
  1149. })
  1150. return true
  1151. }
  1152. if (this.sign == '挂车') {
  1153. if (uni.$u.test.isEmpty(this.dataDetails.trailerOperationCertificate)) {
  1154. this.$refs.uToast.show({
  1155. type: 'error',
  1156. message: "挂车道路运输证不能为空!",
  1157. })
  1158. return true
  1159. }
  1160. if (uni.$u.test.isEmpty(this.dataDetails.trailerOperationCertificateNumber)) {
  1161. this.$refs.uToast.show({
  1162. type: 'error',
  1163. message: "挂车道路运输证号不能为空!",
  1164. })
  1165. return true
  1166. }
  1167. if (this.dataDetails.trailerOperationCertificateNumber.length != 12) {
  1168. this.$refs.uToast.show({
  1169. type: 'error',
  1170. message: "挂车道路运输证号输入错误!",
  1171. })
  1172. return true
  1173. }
  1174. if (uni.$u.test.isEmpty(this.dataDetails.trailerOperationCertificateValidityDate)) {
  1175. this.$refs.uToast.show({
  1176. type: 'error',
  1177. message: "挂车道路运输证有效期不能为空!",
  1178. })
  1179. return true
  1180. }
  1181. }
  1182. if (uni.$u.test.isEmpty(this.dataDetails.drivingLicenseHomePage)) {
  1183. this.$refs.uToast.show({
  1184. type: 'error',
  1185. message: "行驶证主页不能为空!",
  1186. })
  1187. return true
  1188. }
  1189. if (!this.dataDetails.vehicleType) {
  1190. this.$refs.uToast.show({
  1191. type: 'error',
  1192. message: "行驶证车辆类型不能为空!",
  1193. })
  1194. return true
  1195. }
  1196. if (!this.dataDetails.carCode) {
  1197. this.$refs.uToast.show({
  1198. type: 'error',
  1199. message: "行驶证车辆识别代号不能为空!",
  1200. })
  1201. return true
  1202. }
  1203. if (this.dataDetails.vehicleType.length < 2 || this.dataDetails.vehicleType.length > 10) {
  1204. this.$refs.uToast.show({
  1205. type: 'error',
  1206. message: "行驶证车辆类型输入错误!",
  1207. })
  1208. return true
  1209. }
  1210. if (uni.$u.test.isEmpty(this.dataDetails.drivingLicenseNumber)) {
  1211. this.$refs.uToast.show({
  1212. type: 'error',
  1213. message: "行驶证档案编号不能为空!",
  1214. })
  1215. return true
  1216. }
  1217. if (uni.$u.test.isEmpty(this.dataDetails.drivingLicenseNumber)) {
  1218. this.$refs.uToast.show({
  1219. type: 'error',
  1220. message: "行驶证档案编号不能为空!",
  1221. })
  1222. return true
  1223. }
  1224. if (this.dataDetails.drivingLicenseNumber.length != 12) {
  1225. this.$refs.uToast.show({
  1226. type: 'error',
  1227. message: "行驶证档案编号输入错误!",
  1228. })
  1229. return true
  1230. }
  1231. if (uni.$u.test.isEmpty(this.dataDetails.drivingLicenseRegistrationDate)) {
  1232. this.$refs.uToast.show({
  1233. type: 'error',
  1234. message: "行驶证注册日期不能为空!",
  1235. })
  1236. return true
  1237. }
  1238. if (uni.$u.test.isEmpty(this.dataDetails.drivingLicenseIssueDate)) {
  1239. this.$refs.uToast.show({
  1240. type: 'error',
  1241. message: "行驶证发证日期不能为空!",
  1242. })
  1243. return true
  1244. }
  1245. if (uni.$u.test.isEmpty(this.dataDetails.drivingLicenseValidityDate)) {
  1246. this.$refs.uToast.show({
  1247. type: 'error',
  1248. message: "行驶证有效期不能为空!",
  1249. })
  1250. return true
  1251. }
  1252. if (this.dataDetails.drivingLicenseValidityDate != '长期') {
  1253. var arr = this.dataDetails.drivingLicenseValidityDate.split('-')
  1254. if (!this.$helper.periodOfValidity(arr[0], arr[1], arr[2])) {
  1255. this.$refs.uToast.show({
  1256. type: 'error',
  1257. message: "行驶证已过期!",
  1258. })
  1259. return true
  1260. }
  1261. }
  1262. if (uni.$u.test.isEmpty(this.dataDetails.lssuingAuthority)) {
  1263. this.$refs.uToast.show({
  1264. type: 'error',
  1265. message: "行驶证发证机关不能为空!",
  1266. })
  1267. return true
  1268. }
  1269. if (this.dataDetails.lssuingAuthority.length < 5 || this.dataDetails.lssuingAuthority.length > 25) {
  1270. this.$refs.uToast.show({
  1271. type: 'error',
  1272. message: "行驶证发证机关输入错误!",
  1273. })
  1274. return true
  1275. }
  1276. if (uni.$u.test.isEmpty(this.dataDetails.energyType)) {
  1277. this.$refs.uToast.show({
  1278. type: 'error',
  1279. message: "能源类型不能为空!",
  1280. })
  1281. return true
  1282. }
  1283. if (this.sign == '挂车') {
  1284. if (uni.$u.test.isEmpty(this.dataDetails.trailerLicenseHomePage)) {
  1285. this.$refs.uToast.show({
  1286. type: 'error',
  1287. message: "挂车行驶证主页不能为空!",
  1288. })
  1289. return true
  1290. }
  1291. if (uni.$u.test.isEmpty(this.dataDetails.trailerLicenseBackPage)) {
  1292. this.$refs.uToast.show({
  1293. type: 'error',
  1294. message: "挂车行驶证副页不能为空!",
  1295. })
  1296. return true
  1297. }
  1298. if (uni.$u.test.isEmpty(this.dataDetails.trailerVehicleType)) {
  1299. this.$refs.uToast.show({
  1300. type: 'error',
  1301. message: "挂车行驶证车辆类型不能为空!",
  1302. })
  1303. return true
  1304. }
  1305. if (uni.$u.test.isEmpty(this.dataDetails.trailerCarCode)) {
  1306. this.$refs.uToast.show({
  1307. type: 'error',
  1308. message: "挂车行驶证识别代号不能为空!",
  1309. })
  1310. return true
  1311. }
  1312. if (uni.$u.test.isEmpty(this.dataDetails.trailerLicenseNumber)) {
  1313. this.$refs.uToast.show({
  1314. type: 'error',
  1315. message: "挂车行驶证档案编号不能为空!",
  1316. })
  1317. return true
  1318. }
  1319. if (this.dataDetails.trailerLicenseNumber.length != 12) {
  1320. this.$refs.uToast.show({
  1321. type: 'error',
  1322. message: "挂车行驶证档案编号输入错误!",
  1323. })
  1324. return true
  1325. }
  1326. if (uni.$u.test.isEmpty(this.dataDetails.trailerLicenseRegistrationDate)) {
  1327. this.$refs.uToast.show({
  1328. type: 'error',
  1329. message: "挂车行驶证注册日期不能为空!",
  1330. })
  1331. return true
  1332. }
  1333. if (uni.$u.test.isEmpty(this.dataDetails.trailerLicenseIssueDate)) {
  1334. this.$refs.uToast.show({
  1335. type: 'error',
  1336. message: "挂车行驶证发证日期不能为空!!",
  1337. })
  1338. return true
  1339. }
  1340. if (uni.$u.test.isEmpty(this.dataDetails.trailerLicenseValidityDate)) {
  1341. this.$refs.uToast.show({
  1342. type: 'error',
  1343. message: "挂车行驶证有效期不能为空!",
  1344. })
  1345. return true
  1346. }
  1347. if (this.dataDetails.trailerLicenseValidityDate != '长期') {
  1348. var arr = this.dataDetails.trailerLicenseValidityDate.split('-')
  1349. if (!this.$helper.periodOfValidity(arr[0], arr[1], arr[2])) {
  1350. this.$refs.uToast.show({
  1351. type: 'error',
  1352. message: "挂车行驶证已过期!",
  1353. })
  1354. return true
  1355. }
  1356. }
  1357. if (uni.$u.test.isEmpty(this.dataDetails.guaLssuingAuthority)) {
  1358. this.$refs.uToast.show({
  1359. type: 'error',
  1360. message: "挂车行驶证发证机关不能为空!",
  1361. })
  1362. return true
  1363. }
  1364. if (this.dataDetails.guaLssuingAuthority.length < 5 || this.dataDetails.guaLssuingAuthority.length >
  1365. 25) {
  1366. this.$refs.uToast.show({
  1367. type: 'error',
  1368. message: "挂车行驶证发证机关输入错误!",
  1369. })
  1370. return true
  1371. }
  1372. }
  1373. // true 为校验不通过
  1374. if (uni.$u.test.isEmpty(this.dataDetails.carNumber)) {
  1375. this.$refs.uToast.show({
  1376. type: 'error',
  1377. message: "车牌号不能为空!",
  1378. })
  1379. return true
  1380. }
  1381. if (uni.$u.test.isEmpty(this.dataDetails.owner)) {
  1382. this.$refs.uToast.show({
  1383. type: 'error',
  1384. message: "车辆所属车主不能为空!",
  1385. })
  1386. return true
  1387. }
  1388. if (uni.$u.test.isEmpty(this.dataDetails.carTotalWeight) && this.sign == '非挂车') {
  1389. this.$refs.uToast.show({
  1390. type: 'error',
  1391. message: "总质量不能为空!",
  1392. })
  1393. return true
  1394. }
  1395. if (uni.$u.test.isEmpty(this.dataDetails.carTotalWeight) && this.sign == '非挂车' && this.dataDetails
  1396. .carTotalWeight < 500 ||
  1397. uni.$u.test.isEmpty(this.dataDetails.carTotalWeight) && this.sign == '非挂车' && this.dataDetails
  1398. .carTotalWeight > 60000) {
  1399. this.$refs.uToast.show({
  1400. type: 'error',
  1401. message: "总质量输入错误!",
  1402. })
  1403. return true
  1404. }
  1405. if (uni.$u.test.isEmpty(this.dataDetails.carApprovedWeight) && this.sign == '非挂车') {
  1406. this.$refs.uToast.show({
  1407. type: 'error',
  1408. message: "核定载质量不能为空!",
  1409. })
  1410. return true
  1411. }
  1412. if (uni.$u.test.isEmpty(this.dataDetails.carApprovedWeight) && this.sign == '非挂车' && this.dataDetails
  1413. .carApprovedWeight < 500 ||
  1414. uni.$u.test.isEmpty(this.dataDetails.carApprovedWeight) && this.sign == '非挂车' && this.dataDetails
  1415. .carApprovedWeight > 60000) {
  1416. this.$refs.uToast.show({
  1417. type: 'error',
  1418. message: "核定载质量输入错误!",
  1419. })
  1420. return true
  1421. }
  1422. if (uni.$u.test.isEmpty(this.dataDetails.servicingWeight) && this.sign == '挂车') {
  1423. this.$refs.uToast.show({
  1424. type: 'error',
  1425. message: "整备质量不能为空!",
  1426. })
  1427. return true
  1428. }
  1429. if (this.dataDetails.servicingWeight > 100000) {
  1430. this.$refs.uToast.show({
  1431. type: 'error',
  1432. message: "整备质量输入错误!",
  1433. })
  1434. return true
  1435. }
  1436. if (uni.$u.test.isEmpty(this.dataDetails.carLong) || uni.$u.test.isEmpty(this.dataDetails.carWidth) || uni
  1437. .$u.test.isEmpty(this.dataDetails.carHeight)) {
  1438. this.$refs.uToast.show({
  1439. type: 'error',
  1440. message: "外廓尺寸不能为空!",
  1441. })
  1442. return true
  1443. }
  1444. if (this.sign == '挂车') {
  1445. if (uni.$u.test.isEmpty(this.dataDetails.trailerLicenseHomePage)) {
  1446. this.$refs.uToast.show({
  1447. type: 'error',
  1448. message: "挂车行驶证主页不能为空!",
  1449. })
  1450. return true
  1451. }
  1452. if (uni.$u.test.isEmpty(this.dataDetails.trailerLicenseBackPage)) {
  1453. this.$refs.uToast.show({
  1454. type: 'error',
  1455. message: "挂车行驶证副页不能为空!",
  1456. })
  1457. return true
  1458. }
  1459. if (uni.$u.test.isEmpty(this.dataDetails.trailerLicenseNumber)) {
  1460. this.$refs.uToast.show({
  1461. type: 'error',
  1462. message: "挂车行驶证档案编号不能为空!",
  1463. })
  1464. return true
  1465. }
  1466. if (uni.$u.test.isEmpty(this.dataDetails.guaCarNumber1)) {
  1467. this.$refs.uToast.show({
  1468. type: 'error',
  1469. message: "挂车车牌号不能为空!",
  1470. })
  1471. return true
  1472. }
  1473. if (uni.$u.test.isEmpty(this.dataDetails.guaOwner)) {
  1474. this.$refs.uToast.show({
  1475. type: 'error',
  1476. message: "车辆所属车主不能为空!",
  1477. })
  1478. return true
  1479. }
  1480. if (uni.$u.test.isEmpty(this.dataDetails.carTotalWeight)) {
  1481. this.$refs.uToast.show({
  1482. type: 'error',
  1483. message: "挂车总质量不能为空!",
  1484. })
  1485. return true
  1486. }
  1487. if (uni.$u.test.isEmpty(this.dataDetails.guaServicingWeight)) {
  1488. this.$refs.uToast.show({
  1489. type: 'error',
  1490. message: "挂车整备质量不能为空!",
  1491. })
  1492. return true
  1493. }
  1494. if (uni.$u.test.isEmpty(this.dataDetails.guaServicingWeight)) {
  1495. this.$refs.uToast.show({
  1496. type: 'error',
  1497. message: "挂车整备质量不能为空!",
  1498. })
  1499. return true
  1500. }
  1501. if (uni.$u.test.isEmpty(this.dataDetails.guaCarApprovedWeight)) {
  1502. this.$refs.uToast.show({
  1503. type: 'error',
  1504. message: "挂车核定载质量不能为空!",
  1505. })
  1506. return true
  1507. }
  1508. if (this.dataDetails.guaCarApprovedWeight < 500 || this.dataDetails.guaCarApprovedWeight > 60000) {
  1509. this.$refs.uToast.show({
  1510. type: 'error',
  1511. message: "挂车核定载质量输入错误!",
  1512. })
  1513. return true
  1514. }
  1515. if (uni.$u.test.isEmpty(this.dataDetails.guaCarLong) || uni.$u.test.isEmpty(this.dataDetails
  1516. .guaCarWidth) || uni.$u.test.isEmpty(this.dataDetails.guaCarHeight)) {
  1517. this.$refs.uToast.show({
  1518. type: 'error',
  1519. message: "挂车外廓尺寸不能为空!",
  1520. })
  1521. return true
  1522. }
  1523. if (this.fileList1.length == 0) {
  1524. this.$refs.uToast.show({
  1525. type: 'error',
  1526. message: "请上传人和牵引车合影!",
  1527. })
  1528. return true
  1529. }
  1530. if (this.fileList2.length == 0) {
  1531. this.$refs.uToast.show({
  1532. type: 'error',
  1533. message: "请上传人和挂车合影!",
  1534. })
  1535. return true
  1536. }
  1537. }
  1538. return false
  1539. },
  1540. submit() {
  1541. this.dataDetails.driverId = uni.getStorageSync("firstAuthentication").id
  1542. // 校验
  1543. if (this.validate()) return
  1544. if (!this.dataDetails.carApprovedWeight) {
  1545. delete this.dataDetails.carApprovedWeight
  1546. }
  1547. if (this.dataDetails.carCategory == "非挂车") {
  1548. delete this.dataDetails.guaUseNature
  1549. }
  1550. if (this.dataDetails.carCategory == "挂车") {
  1551. if (this.dataDetails.guaCarNumber1.indexOf('挂') == -1) {
  1552. this.dataDetails.guaCarNumber = this.dataDetails.guaCarNumber1 + '挂'
  1553. }
  1554. }
  1555. uni.showLoading({
  1556. mask: true,
  1557. title: '加载中'
  1558. })
  1559. this.$request.baseRequest('post', '/driverCarInfo/api/addInfo', this.dataDetails).then(res => {
  1560. uni.hideLoading()
  1561. if (res.code == '200') {
  1562. this.$refs.uToast.show({
  1563. type: 'success',
  1564. message: "提交成功!",
  1565. complete() {
  1566. uni.navigateBack({
  1567. delta: 1
  1568. });
  1569. // uni.$u.route('/pages/mine/manageVehicles/index');
  1570. }
  1571. })
  1572. // this.$refs.uToast.show({
  1573. // ...params
  1574. // })
  1575. // uni.$u.route('/pages/mine/manageVehicles/index');
  1576. } else if (res.code == '400') {
  1577. uni.$u.toast('您输入的内容有问题,请检查后重新提交');
  1578. } else {
  1579. uni.$u.toast(res.message);
  1580. }
  1581. })
  1582. .catch(res => {
  1583. uni.hideLoading()
  1584. uni.$u.toast(res.message);
  1585. });
  1586. },
  1587. },
  1588. }
  1589. </script>
  1590. <style lang="scss" scoped>
  1591. .container {
  1592. margin: 20rpx;
  1593. background: white;
  1594. padding: 0 20rpx;
  1595. border-radius: 20rpx;
  1596. padding-bottom: 200rpx;
  1597. .left-text {
  1598. // background: red;
  1599. width: 176px;
  1600. color: #333333;
  1601. display: flex;
  1602. align-items: center;
  1603. }
  1604. .row {
  1605. border-bottom: 1px solid #EEEEEE;
  1606. padding-bottom: 28rpx;
  1607. margin-top: 26rpx;
  1608. .ch-style {}
  1609. }
  1610. .row-ch {
  1611. padding-right: 250rpx;
  1612. box-sizing: border-box;
  1613. }
  1614. .row {
  1615. border-bottom: 1px solid #EEEEEE;
  1616. padding-bottom: 28rpx;
  1617. margin-top: 26rpx;
  1618. }
  1619. .left-text {
  1620. // background: red;
  1621. width: 320rpx;
  1622. color: #333333;
  1623. display: flex;
  1624. align-items: center;
  1625. }
  1626. .picture {
  1627. position: relative;
  1628. width: 100%;
  1629. height: 440rpx;
  1630. display: flex;
  1631. justify-content: center;
  1632. flex-direction: column;
  1633. align-items: center;
  1634. .text {
  1635. margin-top: 20rpx;
  1636. }
  1637. }
  1638. .picture1 {
  1639. background: url(../../../static/images/mine/jzz.png);
  1640. background-size: 100% 100%;
  1641. }
  1642. .picture2 {
  1643. background: url(../../../static/images/mine/jzf.png);
  1644. background-size: 100% 100%;
  1645. }
  1646. .picture3 {
  1647. background: url(../../../static/images/mine/xsz.png);
  1648. background-size: 100% 100%;
  1649. }
  1650. .picture4 {
  1651. background: url(../../../static/images/mine/xsf.png);
  1652. background-size: 100% 100%;
  1653. }
  1654. .picture5 {
  1655. background: url(../../../static/images/mine/gcxsz.png);
  1656. background-size: 100% 100%;
  1657. }
  1658. .picture6 {
  1659. background: url(../../../static/images/mine/gcxsf.png);
  1660. background-size: 100% 100%;
  1661. }
  1662. .picture7 {
  1663. background: url(../../../static/images/mine/cy.png);
  1664. background-size: 100% 100%;
  1665. }
  1666. .picture8 {
  1667. background: url(../../../static/images/mine/cy.png);
  1668. background-size: 100% 100%;
  1669. }
  1670. .picture9 {
  1671. background: url(../../../static/images/mine/cy.png);
  1672. background-size: 100% 100%;
  1673. }
  1674. .xj-image {
  1675. width: 100rpx;
  1676. height: 100rpx;
  1677. }
  1678. .title {
  1679. color: #000;
  1680. margin: 20rpx 0;
  1681. }
  1682. }
  1683. .input-ckg {
  1684. height: 86rpx;
  1685. margin-top: 0 !important;
  1686. padding-bottom: 0 !important;
  1687. .u-input {
  1688. height: 100%;
  1689. background: #F7F8FA;
  1690. padding-left: 10rpx !important;
  1691. padding-right: 85rpx !important;
  1692. }
  1693. .star {
  1694. display: flex;
  1695. align-items: center;
  1696. margin: 0 10rpx;
  1697. }
  1698. .input-positon {
  1699. position: relative;
  1700. }
  1701. .position-right {
  1702. position: absolute;
  1703. right: 20rpx;
  1704. top: 0;
  1705. width: 60rpx;
  1706. height: 50rpx;
  1707. bottom: 0;
  1708. margin: auto;
  1709. }
  1710. }
  1711. .picture {
  1712. margin-top: 20rpx;
  1713. background: #F5F6FA;
  1714. width: 212rpx;
  1715. height: 212rpx;
  1716. border-radius: 10rpx;
  1717. display: flex;
  1718. flex-direction: column;
  1719. justify-content: center;
  1720. align-items: center;
  1721. color: #6A7282;
  1722. }
  1723. .submit-btn-wrap {
  1724. position: fixed;
  1725. z-index: 1000;
  1726. bottom: 0;
  1727. left: 0;
  1728. width: 100%;
  1729. padding: 40rpx 0;
  1730. background: #fff;
  1731. }
  1732. .submit-btn {
  1733. bottom: 40rpx;
  1734. width: 90%;
  1735. background: #2772FB;
  1736. color: white;
  1737. text-align: center;
  1738. margin: 0 auto;
  1739. padding: 30rpx 0;
  1740. border-radius: 50rpx;
  1741. }
  1742. .del-card {
  1743. position: absolute;
  1744. top: -10rpx;
  1745. right: -6rpx;
  1746. width: 80rpx;
  1747. height: 80rpx;
  1748. z-index: 9;
  1749. }
  1750. /deep/.uni-input-input:disabled {
  1751. background: transparent;
  1752. }
  1753. .phsy {
  1754. // font-size: 20px !important;
  1755. color: #999 !important
  1756. }
  1757. .car-uumber {
  1758. text-align: right;
  1759. }
  1760. .content {
  1761. font-size: 15px;
  1762. }
  1763. </style>