addVehicle.vue 60 KB

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