addVehicle.vue 59 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750
  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. _this.$forceUpdate()
  654. }
  655. })
  656. .catch(res => {
  657. uni.$u.toast(res.message);
  658. });
  659. break;
  660. case 4:
  661. _this.dataDetails.drivingLicenseBackPage = result
  662. _this.$request.baseRequest('get',
  663. '/driverCarInfo/api/driveringLicenseShibie', {
  664. image: result,
  665. flag: 2
  666. }).then(res => {
  667. if (res.data) {
  668. if (res.data.issuingAuthority) { //行驶证发证机关
  669. _this.dataDetails.lssuingAuthority = res
  670. .data.issuingAuthority
  671. }
  672. if (res.data
  673. .licenseRegistrationDate) { //行驶证注册日期
  674. _this.dataDetails
  675. .drivingLicenseRegistrationDate = res
  676. .data.licenseRegistrationDate
  677. }
  678. if (res.data.licenseIssueDate) { //行驶证发证日期
  679. _this.dataDetails.drivingLicenseIssueDate =
  680. res.data.licenseIssueDate
  681. }
  682. _this.dataDetails.drivingLicenseValidityDate =
  683. res.data.driveringEndDate //行驶证有效期
  684. _this.dataDetails.drivingLicenseNumber = res
  685. .data.driveringNum.replace(/\s*/g,"") //行驶证档案编号
  686. if (_this.sign == "非挂车") {
  687. if (res.data.servicingMass && res.data
  688. .servicingMass.indexOf("kg") != -1) {
  689. res.data.servicingMass = res.data
  690. .servicingMass.slice(0, res.data
  691. .servicingMass.length - 2)
  692. }
  693. _this.dataDetails.carTotalWeight = res.data
  694. .servicingMass //总质量
  695. }
  696. if(res.data.approvedLoadMass.indexOf("kg") != -1){
  697. res.data.approvedLoadMass = res.data.approvedLoadMass.slice(0, res.data.approvedLoadMass.length - 2)
  698. }
  699. _this.dataDetails.carApprovedWeight = res.data
  700. .approvedLoadMass //核定载质量
  701. if (res.data.size && res.data.size.indexOf(
  702. "mm") != -1) {
  703. res.data.size = res.data.size.slice(0, res
  704. .data.size.length - 2);
  705. }
  706. _this.dataDetails.carLong = res.data.size
  707. .split("X")[0] //车长
  708. _this.dataDetails.carWidth = res.data.size
  709. .split("X")[1] //车宽
  710. _this.dataDetails.carHeight = res.data.size
  711. .split("X")[2] //车高
  712. _this.$forceUpdate()
  713. }
  714. })
  715. .catch(res => {
  716. uni.$u.toast(res.message);
  717. });
  718. break;
  719. case 5: //挂车行驶证
  720. _this.dataDetails.trailerLicenseHomePage = result
  721. _this.$request.baseRequest('get',
  722. '/driverCarInfo/api/driveringLicenseShibie', {
  723. image: result,
  724. flag: 1
  725. }).then(res => {
  726. if (res.data) {
  727. if (res.data.issuingAuthority) { //行驶证发证机关
  728. _this.dataDetails.guaLssuingAuthority = res
  729. .data.issuingAuthority
  730. }
  731. if (res.data.licenseRegistrationDate) { //行驶证注册日期
  732. _this.dataDetails
  733. .trailerLicenseRegistrationDate = res.data
  734. .licenseRegistrationDate
  735. }
  736. if (res.data.licenseIssueDate) { //行驶证发证日期
  737. _this.dataDetails.trailerLicenseIssueDate = res
  738. .data.licenseIssueDate
  739. }
  740. if(res.data
  741. .carNum){
  742. _this.dataDetails.guaCarNumber1 = res.data
  743. .carNum.substring(0,6)
  744. }
  745. //车牌号
  746. _this.dataDetails.guaOwner = res.data.owner //车辆所有人
  747. _this.dataDetails.trailerVehicleType = res.data.vehicleType
  748. _this.dataDetails.trailerCarCode =res.data.carCode
  749. _this.$forceUpdate()
  750. }
  751. })
  752. .catch(res => {
  753. uni.$u.toast(res.message);
  754. });
  755. break;
  756. case 6:
  757. _this.dataDetails.trailerLicenseBackPage = result
  758. _this.$request.baseRequest('get',
  759. '/driverCarInfo/api/driveringLicenseShibie', {
  760. image: result,
  761. flag: 2
  762. }).then(res => {
  763. if (res.data) {
  764. _this.dataDetails.trailerLicenseValidityDate =
  765. res.data.driveringEndDate //挂车行驶证有效期
  766. _this.dataDetails.trailerLicenseNumber = res
  767. .data.driveringNum.replace(/\s*/g,"")//挂车行驶证档案编号
  768. if (res.data.servicingMass && res.data
  769. .servicingMass.indexOf("kg") != -1) {
  770. res.data.servicingMass = res.data
  771. .servicingMass.slice(0, res.data
  772. .servicingMass.length - 2)
  773. }
  774. if(res.data.approvedLoadMass.indexOf("kg") != -1){
  775. res.data.approvedLoadMass = res.data.approvedLoadMass.slice(0, res.data.approvedLoadMass.length - 2)
  776. }
  777. _this.dataDetails.carTotalWeight = res.data.totalMass.split("kg").join("") //挂车总质量
  778. _this.dataDetails.guaServicingWeight = res.data.servicingMass //总质量
  779. _this.dataDetails.guaCarApprovedWeight = res.data.approvedLoadMass //核定载质量
  780. if (res.data.size && res.data.size.indexOf(
  781. "mm") != -1) {
  782. res.data.size = res.data.size.slice(0, res
  783. .data.size.length - 2);
  784. }
  785. _this.dataDetails.guaCarLong = res.data.size
  786. .split("X")[0] //车长
  787. _this.dataDetails.guaCarWidth = res.data.size
  788. .split("X")[1] //车宽
  789. _this.dataDetails.guaCarHeight = res.data.size
  790. .split("X")[2] //车高
  791. _this.$forceUpdate()
  792. }
  793. })
  794. .catch(res => {
  795. uni.$u.toast(res.message);
  796. });
  797. break;
  798. case 7:
  799. _this.dataDetails.qualificationCertificate = result
  800. break;
  801. case 8:
  802. _this.dataDetails.operationCertificate = result
  803. _this.$request.baseRequest('get',
  804. '/driverCarInfo/api/tranLicenseShibie', {
  805. image: result
  806. }).then(res => {
  807. if (res.data) {
  808. _this.dataDetails.operationCertificateNumber =
  809. res.data.tranNumber.replace(/\s*/g,"")
  810. _this.dataDetails
  811. .operationCertificateValidityDate = res
  812. .data.tranEndDate
  813. _this.$forceUpdate()
  814. }
  815. })
  816. .catch(res => {
  817. uni.$u.toast(res.message);
  818. });
  819. break;
  820. case 9:
  821. _this.dataDetails.trailerOperationCertificate = result
  822. _this.$request.baseRequest('get',
  823. '/driverCarInfo/api/tranLicenseShibie', {
  824. image: result
  825. }).then(res => {
  826. if (res.data) {
  827. _this.dataDetails
  828. .trailerOperationCertificateNumber = res
  829. .data.tranNumber.replace(/\s*/g,"")
  830. _this.dataDetails
  831. .trailerOperationCertificateValidityDate =
  832. res.data.tranEndDate
  833. _this.$forceUpdate()
  834. }
  835. })
  836. .catch(res => {
  837. uni.$u.toast(res.message);
  838. });
  839. break;
  840. }
  841. _this.$forceUpdate()
  842. }
  843. )
  844. },
  845. fail: function(req){
  846. console.log(req,11111)
  847. },
  848. complete: function(req1){
  849. console.log(req1,22222)
  850. },
  851. });
  852. // }
  853. },
  854. confirmValidityPeriod(date) {
  855. console.log('confirm', date)
  856. switch (this.ValidityPeriodType) {
  857. case 0:
  858. this.dataDetails.driverLicenseValidityDate = date.date
  859. break
  860. case 1:
  861. this.dataDetails.drivingLicenseValidityDate = date.date
  862. break
  863. case 2:
  864. this.dataDetails.trailerLicenseValidityDate = date.date
  865. break
  866. case 3:
  867. this.dataDetails.qualificationCertificateValidityDate = date.date
  868. break
  869. case 4:
  870. this.dataDetails.operationCertificateValidityDate = date.date
  871. break
  872. case 5:
  873. this.dataDetails.trailerOperationCertificateValidityDate = date.date
  874. case 6: //行驶证注册日期
  875. this.dataDetails.drivingLicenseRegistrationDate = date.date
  876. break
  877. case 7: //行驶证发证日期
  878. this.dataDetails.drivingLicenseIssueDate = date.date
  879. break
  880. case 8: //挂车行驶证注册日期
  881. this.dataDetails.trailerLicenseRegistrationDate = date.date
  882. break
  883. case 9: //挂车行驶证发证日期
  884. this.dataDetails.trailerLicenseIssueDate = date.date
  885. break
  886. }
  887. this.$forceUpdate()
  888. },
  889. // 车型切换
  890. changeCarModel(e) {
  891. const {
  892. columnIndex,
  893. index,
  894. // 微信小程序无法将picker实例传出来,只能通过ref操作
  895. picker = this.$refs.carTypePicker
  896. } = e
  897. if (columnIndex === 0) {
  898. // 模拟网络请求
  899. picker.setColumnValues(1, this.carModelColumnData[index])
  900. }
  901. },
  902. // 删除图片
  903. deletePic(event) {
  904. this[`fileList${event.name}`].splice(event.index, 1)
  905. },
  906. // 新增图片
  907. async afterRead(event, num) {
  908. // 当设置 mutiple 为 true 时, file 为数组格式,否则为对象格式
  909. let lists = [].concat(event.file)
  910. let fileListLen = this[`fileList${event.name}`].length
  911. lists.map((item) => {
  912. this[`fileList${event.name}`].push({
  913. ...item,
  914. status: 'uploading',
  915. message: '上传中'
  916. })
  917. })
  918. for (let i = 0; i < lists.length; i++) {
  919. const result = await this.uploadFilePromise(lists[i].url, num)
  920. let item = this[`fileList${event.name}`][fileListLen]
  921. this[`fileList${event.name}`].splice(fileListLen, 1, Object.assign(item, {
  922. status: 'success',
  923. message: '',
  924. url: result
  925. }))
  926. fileListLen++
  927. }
  928. },
  929. // 新增图片
  930. async afterRead1(event, num) {
  931. console.log(event)
  932. // 当设置 mutiple 为 true 时, file 为数组格式,否则为对象格式
  933. let lists = [].concat(event.file)
  934. let fileListLen = this[`fileList${event.name}`].length
  935. lists.map((item) => {
  936. this[`fileList${event.name}`].push({
  937. ...item,
  938. status: 'uploading',
  939. message: '上传中'
  940. })
  941. })
  942. for (let i = 0; i < lists.length; i++) {
  943. const result = await this.uploadFilePromise(lists[i].url, num)
  944. let item = this[`fileList${event.name}`][fileListLen]
  945. this[`fileList${event.name}`].splice(fileListLen, 1, Object.assign(item, {
  946. status: 'success',
  947. message: '',
  948. url: result
  949. }))
  950. fileListLen++
  951. }
  952. },
  953. uploadFilePromise(url, num) {
  954. uploadImage('image', url, 'appData/',
  955. result => {
  956. // 上传成功回调函数
  957. console.log('图片地址', result)
  958. if (num == 1) {
  959. if (!this.dataDetails.addressUrl) {
  960. this.dataDetails.addressUrl = result
  961. } else {
  962. this.dataDetails.addressUrl = this.dataDetails.addressUrl + ',' + result
  963. }
  964. } else if (num == 2) {
  965. if (!this.dataDetails.guaAddressUrl) {
  966. this.dataDetails.guaAddressUrl = result
  967. } else {
  968. this.dataDetails.guaAddressUrl = this.dataDetails.guaAddressUrl + ',' + result
  969. }
  970. }
  971. }
  972. )
  973. },
  974. //车牌号弹出键盘
  975. handleShowKeyboard(index) {
  976. if (this.dataDetails.carNumber == '') {
  977. this.carNumber = ''
  978. } else {
  979. this.carNumber = this.dataDetails.carNumber
  980. }
  981. if (this.$refs.keyboard.open) {
  982. this.$refs.keyboard.open(false) //true 键盘显示 false 键盘隐藏
  983. } else {
  984. this.$refs.keyboard[0].open(false)
  985. }
  986. this.index = index
  987. if (this.$refs.keyboard.open) {
  988. this.$refs.keyboard.open(true) //true 键盘显示 false 键盘隐藏
  989. } else {
  990. this.$refs.keyboard[0].open(true)
  991. }
  992. },
  993. //车牌号弹出键盘
  994. handleClick(e) {
  995. this.carNumber = e.value
  996. this.dataDetails.carNumber = e.value //键盘输入值
  997. },
  998. confirmColor(val) {
  999. this.dataDetails.carNumberColour = val.value[0]
  1000. this.carColor = false
  1001. },
  1002. colorClose() {
  1003. this.carColor = false
  1004. },
  1005. selectNoColor() {
  1006. this.carColor = true
  1007. },
  1008. confirmCarModel(val) {
  1009. if (val.value[0] == '挂车') {
  1010. this.dataDetails.useNature = "营业特种车"
  1011. this.dataDetails.guaUseNature = "营运挂车"
  1012. } else if (val.value[0] == '非挂车') {
  1013. this.dataDetails.useNature = "营运货车"
  1014. }
  1015. this.sign = val.value[0]
  1016. // this.dataDetails.carType = val.value[0] + ' ' + val.value[1]
  1017. this.dataDetails.carCategory = val.value[0]
  1018. this.dataDetails.carType = val.value[1]
  1019. this.carModel = false
  1020. },
  1021. carModelClose() {
  1022. this.carModel = false
  1023. },
  1024. selectCarModel() {
  1025. this.carModel = true
  1026. },
  1027. selectNoColor() {
  1028. this.carColor = true
  1029. },
  1030. unloadGroupPhoto() {
  1031. uni.chooseImage({
  1032. count: 1,
  1033. success: function(res) {
  1034. console.log(JSON.stringify(res.tempFilePaths));
  1035. uploadImage('image', res.tempFilePaths[0], 'appData/',
  1036. result => {
  1037. // 上传成功
  1038. console.log('图片地址', result)
  1039. }
  1040. )
  1041. }
  1042. });
  1043. },
  1044. validate() {
  1045. if (uni.$u.test.isEmpty(this.dataDetails.operationCertificate)) {
  1046. this.$refs.uToast.show({
  1047. type: 'error',
  1048. message: "道路运输证不能为空!",
  1049. })
  1050. return true
  1051. }
  1052. if (uni.$u.test.isEmpty(this.dataDetails.operationCertificateNumber)) {
  1053. this.$refs.uToast.show({
  1054. type: 'error',
  1055. message: "道路运输证号不能为空!",
  1056. })
  1057. return true
  1058. }
  1059. if (this.dataDetails.operationCertificateNumber.length!=12) {
  1060. this.$refs.uToast.show({
  1061. type: 'error',
  1062. message: "道路运输证号输入错误!",
  1063. })
  1064. return true
  1065. }
  1066. if (uni.$u.test.isEmpty(this.dataDetails.operationCertificateValidityDate)) {
  1067. this.$refs.uToast.show({
  1068. type: 'error',
  1069. message: "道路运输证有效期不能为空!",
  1070. })
  1071. return true
  1072. }
  1073. if (this.sign == '挂车') {
  1074. if (uni.$u.test.isEmpty(this.dataDetails.trailerOperationCertificate)) {
  1075. this.$refs.uToast.show({
  1076. type: 'error',
  1077. message: "挂车道路运输证不能为空!",
  1078. })
  1079. return true
  1080. }
  1081. if (uni.$u.test.isEmpty(this.dataDetails.trailerOperationCertificateNumber)) {
  1082. this.$refs.uToast.show({
  1083. type: 'error',
  1084. message: "挂车道路运输证号不能为空!",
  1085. })
  1086. return true
  1087. }
  1088. if (this.dataDetails.trailerOperationCertificateNumber.length!=12) {
  1089. this.$refs.uToast.show({
  1090. type: 'error',
  1091. message: "挂车道路运输证号输入错误!",
  1092. })
  1093. return true
  1094. }
  1095. if (uni.$u.test.isEmpty(this.dataDetails.trailerOperationCertificateValidityDate)) {
  1096. this.$refs.uToast.show({
  1097. type: 'error',
  1098. message: "挂车道路运输证有效期不能为空!",
  1099. })
  1100. return true
  1101. }
  1102. }
  1103. if (uni.$u.test.isEmpty(this.dataDetails.drivingLicenseHomePage)) {
  1104. this.$refs.uToast.show({
  1105. type: 'error',
  1106. message: "行驶证主页不能为空!",
  1107. })
  1108. return true
  1109. }
  1110. if(!this.dataDetails.vehicleType){
  1111. this.$refs.uToast.show({
  1112. type: 'error',
  1113. message: "行驶证车辆类型不能为空!",
  1114. })
  1115. return true
  1116. }
  1117. if(!this.dataDetails.carCode){
  1118. this.$refs.uToast.show({
  1119. type: 'error',
  1120. message: "行驶证车辆识别代号不能为空!",
  1121. })
  1122. return true
  1123. }
  1124. if (this.dataDetails.vehicleType.length<2||this.dataDetails.vehicleType.length>10) {
  1125. this.$refs.uToast.show({
  1126. type: 'error',
  1127. message: "行驶证车辆类型输入错误!",
  1128. })
  1129. return true
  1130. }
  1131. if (uni.$u.test.isEmpty(this.dataDetails.drivingLicenseNumber)) {
  1132. this.$refs.uToast.show({
  1133. type: 'error',
  1134. message: "行驶证档案编号不能为空!",
  1135. })
  1136. return true
  1137. }
  1138. if (uni.$u.test.isEmpty(this.dataDetails.drivingLicenseNumber)) {
  1139. this.$refs.uToast.show({
  1140. type: 'error',
  1141. message: "行驶证档案编号不能为空!",
  1142. })
  1143. return true
  1144. }
  1145. if (this.dataDetails.drivingLicenseNumber.length!=12) {
  1146. this.$refs.uToast.show({
  1147. type: 'error',
  1148. message: "行驶证档案编号输入错误!",
  1149. })
  1150. return true
  1151. }
  1152. if (uni.$u.test.isEmpty(this.dataDetails.drivingLicenseRegistrationDate)) {
  1153. this.$refs.uToast.show({
  1154. type: 'error',
  1155. message: "行驶证注册日期不能为空!",
  1156. })
  1157. return true
  1158. }
  1159. if (uni.$u.test.isEmpty(this.dataDetails.drivingLicenseIssueDate)) {
  1160. this.$refs.uToast.show({
  1161. type: 'error',
  1162. message: "行驶证发证日期不能为空!",
  1163. })
  1164. return true
  1165. }
  1166. if (uni.$u.test.isEmpty(this.dataDetails.drivingLicenseValidityDate)) {
  1167. this.$refs.uToast.show({
  1168. type: 'error',
  1169. message: "行驶证有效期不能为空!",
  1170. })
  1171. return true
  1172. }
  1173. if(this.dataDetails.drivingLicenseValidityDate!='长期'){
  1174. var arr=this.dataDetails.drivingLicenseValidityDate.split('-')
  1175. if(!this.$helper.periodOfValidity(arr[0],arr[1],arr[2])){
  1176. this.$refs.uToast.show({
  1177. type: 'error',
  1178. message: "行驶证已过期!",
  1179. })
  1180. return true
  1181. }
  1182. }
  1183. if (uni.$u.test.isEmpty(this.dataDetails.lssuingAuthority)) {
  1184. this.$refs.uToast.show({
  1185. type: 'error',
  1186. message: "行驶证发证机关不能为空!",
  1187. })
  1188. return true
  1189. }
  1190. if (this.dataDetails.lssuingAuthority.length<5||this.dataDetails.lssuingAuthority.length>25) {
  1191. this.$refs.uToast.show({
  1192. type: 'error',
  1193. message: "行驶证发证机关输入错误!",
  1194. })
  1195. return true
  1196. }
  1197. if (uni.$u.test.isEmpty(this.dataDetails.energyType)) {
  1198. this.$refs.uToast.show({
  1199. type: 'error',
  1200. message: "能源类型不能为空!",
  1201. })
  1202. return true
  1203. }
  1204. if (this.sign == '挂车') {
  1205. if (uni.$u.test.isEmpty(this.dataDetails.trailerLicenseHomePage)) {
  1206. this.$refs.uToast.show({
  1207. type: 'error',
  1208. message: "挂车行驶证主页不能为空!",
  1209. })
  1210. return true
  1211. }
  1212. if (uni.$u.test.isEmpty(this.dataDetails.trailerLicenseBackPage)) {
  1213. this.$refs.uToast.show({
  1214. type: 'error',
  1215. message: "挂车行驶证副页不能为空!",
  1216. })
  1217. return true
  1218. }
  1219. if (uni.$u.test.isEmpty(this.dataDetails.trailerVehicleType)) {
  1220. this.$refs.uToast.show({
  1221. type: 'error',
  1222. message: "挂车行驶证车辆类型不能为空!",
  1223. })
  1224. return true
  1225. }
  1226. if (uni.$u.test.isEmpty(this.dataDetails.trailerCarCode)) {
  1227. this.$refs.uToast.show({
  1228. type: 'error',
  1229. message: "挂车行驶证识别代号不能为空!",
  1230. })
  1231. return true
  1232. }
  1233. if (uni.$u.test.isEmpty(this.dataDetails.trailerLicenseNumber)) {
  1234. this.$refs.uToast.show({
  1235. type: 'error',
  1236. message: "挂车行驶证档案编号不能为空!",
  1237. })
  1238. return true
  1239. }
  1240. if (this.dataDetails.trailerLicenseNumber.length!=12) {
  1241. this.$refs.uToast.show({
  1242. type: 'error',
  1243. message: "挂车行驶证档案编号输入错误!",
  1244. })
  1245. return true
  1246. }
  1247. if (uni.$u.test.isEmpty(this.dataDetails.trailerLicenseRegistrationDate)) {
  1248. this.$refs.uToast.show({
  1249. type: 'error',
  1250. message: "挂车行驶证注册日期不能为空!",
  1251. })
  1252. return true
  1253. }
  1254. if (uni.$u.test.isEmpty(this.dataDetails.trailerLicenseIssueDate)) {
  1255. this.$refs.uToast.show({
  1256. type: 'error',
  1257. message: "挂车行驶证发证日期不能为空!!",
  1258. })
  1259. return true
  1260. }
  1261. if (uni.$u.test.isEmpty(this.dataDetails.trailerLicenseValidityDate)) {
  1262. this.$refs.uToast.show({
  1263. type: 'error',
  1264. message: "挂车行驶证有效期不能为空!",
  1265. })
  1266. return true
  1267. }
  1268. if(this.dataDetails.trailerLicenseValidityDate!='长期'){
  1269. var arr=this.dataDetails.trailerLicenseValidityDate.split('-')
  1270. if(!this.$helper.periodOfValidity(arr[0],arr[1],arr[2])){
  1271. this.$refs.uToast.show({
  1272. type: 'error',
  1273. message: "挂车行驶证已过期!",
  1274. })
  1275. return true
  1276. }
  1277. }
  1278. if (uni.$u.test.isEmpty(this.dataDetails.guaLssuingAuthority)) {
  1279. this.$refs.uToast.show({
  1280. type: 'error',
  1281. message: "挂车行驶证发证机关不能为空!",
  1282. })
  1283. return true
  1284. }
  1285. if (this.dataDetails.guaLssuingAuthority.length<5||this.dataDetails.guaLssuingAuthority.length>25) {
  1286. this.$refs.uToast.show({
  1287. type: 'error',
  1288. message: "挂车行驶证发证机关输入错误!",
  1289. })
  1290. return true
  1291. }
  1292. }
  1293. // true 为校验不通过
  1294. if (uni.$u.test.isEmpty(this.dataDetails.carNumber)) {
  1295. this.$refs.uToast.show({
  1296. type: 'error',
  1297. message: "车牌号不能为空!",
  1298. })
  1299. return true
  1300. }
  1301. if (uni.$u.test.isEmpty(this.dataDetails.owner)) {
  1302. console.log(this.dataDetails.owner)
  1303. this.$refs.uToast.show({
  1304. type: 'error',
  1305. message: "车辆所属车主不能为空!",
  1306. })
  1307. return true
  1308. }
  1309. if (uni.$u.test.isEmpty(this.dataDetails.carTotalWeight) && this.sign == '非挂车') {
  1310. this.$refs.uToast.show({
  1311. type: 'error',
  1312. message: "总质量不能为空!",
  1313. })
  1314. return true
  1315. }
  1316. if (uni.$u.test.isEmpty(this.dataDetails.carTotalWeight)&& this.sign == '非挂车' && this.dataDetails.carTotalWeight<500
  1317. ||uni.$u.test.isEmpty(this.dataDetails.carTotalWeight)&& this.sign == '非挂车' && this.dataDetails.carTotalWeight>60000) {
  1318. this.$refs.uToast.show({
  1319. type: 'error',
  1320. message: "总质量输入错误!",
  1321. })
  1322. return true
  1323. }
  1324. if (uni.$u.test.isEmpty(this.dataDetails.carApprovedWeight) && this.sign == '非挂车') {
  1325. this.$refs.uToast.show({
  1326. type: 'error',
  1327. message: "核定载质量不能为空!",
  1328. })
  1329. return true
  1330. }
  1331. if (uni.$u.test.isEmpty(this.dataDetails.carApprovedWeight)&& this.sign == '非挂车' && this.dataDetails.carApprovedWeight<500||
  1332. uni.$u.test.isEmpty(this.dataDetails.carApprovedWeight) && this.sign == '非挂车' && this.dataDetails.carApprovedWeight>60000) {
  1333. this.$refs.uToast.show({
  1334. type: 'error',
  1335. message: "核定载质量输入错误!",
  1336. })
  1337. return true
  1338. }
  1339. if (uni.$u.test.isEmpty(this.dataDetails.servicingWeight) && this.sign == '挂车') {
  1340. this.$refs.uToast.show({
  1341. type: 'error',
  1342. message: "整备质量不能为空!",
  1343. })
  1344. return true
  1345. }
  1346. if (this.dataDetails.servicingWeight>100000) {
  1347. this.$refs.uToast.show({
  1348. type: 'error',
  1349. message: "整备质量输入错误!",
  1350. })
  1351. return true
  1352. }
  1353. if (uni.$u.test.isEmpty(this.dataDetails.carLong) || uni.$u.test.isEmpty(this.dataDetails.carWidth) || uni
  1354. .$u.test.isEmpty(this.dataDetails.carHeight)) {
  1355. this.$refs.uToast.show({
  1356. type: 'error',
  1357. message: "外廓尺寸不能为空!",
  1358. })
  1359. return true
  1360. }
  1361. if (this.sign == '挂车') {
  1362. if (uni.$u.test.isEmpty(this.dataDetails.trailerLicenseHomePage)) {
  1363. this.$refs.uToast.show({
  1364. type: 'error',
  1365. message: "挂车行驶证主页不能为空!",
  1366. })
  1367. return true
  1368. }
  1369. if (uni.$u.test.isEmpty(this.dataDetails.trailerLicenseBackPage)) {
  1370. this.$refs.uToast.show({
  1371. type: 'error',
  1372. message: "挂车行驶证副页不能为空!",
  1373. })
  1374. return true
  1375. }
  1376. if (uni.$u.test.isEmpty(this.dataDetails.trailerLicenseNumber)) {
  1377. this.$refs.uToast.show({
  1378. type: 'error',
  1379. message: "挂车行驶证档案编号不能为空!",
  1380. })
  1381. return true
  1382. }
  1383. if (uni.$u.test.isEmpty(this.dataDetails.guaCarNumber1)) {
  1384. this.$refs.uToast.show({
  1385. type: 'error',
  1386. message: "挂车车牌号不能为空!",
  1387. })
  1388. return true
  1389. }
  1390. if (uni.$u.test.isEmpty(this.dataDetails.guaOwner)) {
  1391. this.$refs.uToast.show({
  1392. type: 'error',
  1393. message: "车辆所属车主不能为空!",
  1394. })
  1395. return true
  1396. }
  1397. if (uni.$u.test.isEmpty(this.dataDetails.carTotalWeight)) {
  1398. this.$refs.uToast.show({
  1399. type: 'error',
  1400. message: "挂车总质量不能为空!",
  1401. })
  1402. return true
  1403. }
  1404. if (uni.$u.test.isEmpty(this.dataDetails.guaServicingWeight)) {
  1405. this.$refs.uToast.show({
  1406. type: 'error',
  1407. message: "挂车整备质量不能为空!",
  1408. })
  1409. return true
  1410. }
  1411. if (uni.$u.test.isEmpty(this.dataDetails.guaServicingWeight)) {
  1412. this.$refs.uToast.show({
  1413. type: 'error',
  1414. message: "挂车整备质量不能为空!",
  1415. })
  1416. return true
  1417. }
  1418. if (uni.$u.test.isEmpty(this.dataDetails.guaCarApprovedWeight)) {
  1419. this.$refs.uToast.show({
  1420. type: 'error',
  1421. message: "挂车核定载质量不能为空!",
  1422. })
  1423. return true
  1424. }
  1425. if (this.dataDetails.guaCarApprovedWeight<500||this.dataDetails.guaCarApprovedWeight>60000) {
  1426. this.$refs.uToast.show({
  1427. type: 'error',
  1428. message: "挂车核定载质量输入错误!",
  1429. })
  1430. return true
  1431. }
  1432. if (uni.$u.test.isEmpty(this.dataDetails.guaCarLong) || uni.$u.test.isEmpty(this.dataDetails.guaCarWidth) || uni.$u.test.isEmpty(this.dataDetails.guaCarHeight)) {
  1433. this.$refs.uToast.show({
  1434. type: 'error',
  1435. message: "挂车外廓尺寸不能为空!",
  1436. })
  1437. return true
  1438. }
  1439. if (this.fileList1.length == 0) {
  1440. this.$refs.uToast.show({
  1441. type: 'error',
  1442. message: "请上传人和牵引车合影!",
  1443. })
  1444. return true
  1445. }
  1446. if (this.fileList2.length == 0) {
  1447. this.$refs.uToast.show({
  1448. type: 'error',
  1449. message: "请上传人和挂车合影!",
  1450. })
  1451. return true
  1452. }
  1453. }
  1454. return false
  1455. },
  1456. submit() {
  1457. this.dataDetails.driverId = uni.getStorageSync("firstAuthentication").id
  1458. // 校验
  1459. if (this.validate()) return
  1460. if (!this.dataDetails.carApprovedWeight) {
  1461. delete this.dataDetails.carApprovedWeight
  1462. }
  1463. if(this.dataDetails.carCategory == "非挂车"){
  1464. delete this.dataDetails.guaUseNature
  1465. }
  1466. if(this.dataDetails.carCategory == "挂车"){
  1467. if(this.dataDetails.guaCarNumber1.indexOf('挂')==-1){
  1468. this.dataDetails.guaCarNumber=this.dataDetails.guaCarNumber1+'挂'
  1469. }
  1470. }
  1471. uni.showLoading({
  1472. mask: true,
  1473. title: '加载中'
  1474. })
  1475. this.$request.baseRequest('post', '/driverCarInfo/api/addInfo', this.dataDetails).then(res => {
  1476. uni.hideLoading()
  1477. if (res.code == '200') {
  1478. this.$refs.uToast.show({
  1479. type: 'success',
  1480. message: "提交成功!",
  1481. complete() {
  1482. uni.navigateBack({
  1483. delta: 1
  1484. });
  1485. // uni.$u.route('/pages/mine/manageVehicles/index');
  1486. }
  1487. })
  1488. // this.$refs.uToast.show({
  1489. // ...params
  1490. // })
  1491. // uni.$u.route('/pages/mine/manageVehicles/index');
  1492. } else if (res.code == '400'){
  1493. uni.$u.toast('您输入的内容有问题,请检查后重新提交');
  1494. }else{
  1495. uni.$u.toast(res.message);
  1496. }
  1497. })
  1498. .catch(res => {
  1499. uni.hideLoading()
  1500. console.log(res)
  1501. uni.$u.toast(res.message);
  1502. });
  1503. },
  1504. },
  1505. }
  1506. </script>
  1507. <style lang="scss" scoped>
  1508. .container {
  1509. margin: 20rpx;
  1510. background: white;
  1511. padding: 0 20rpx;
  1512. border-radius: 20rpx;
  1513. padding-bottom: 200rpx;
  1514. .left-text {
  1515. // background: red;
  1516. width: 176px;
  1517. color: #333333;
  1518. display: flex;
  1519. align-items: center;
  1520. }
  1521. .row {
  1522. border-bottom: 1px solid #EEEEEE;
  1523. padding-bottom: 28rpx;
  1524. margin-top: 26rpx;
  1525. .ch-style {}
  1526. }
  1527. .row-ch {
  1528. padding-right: 250rpx;
  1529. box-sizing: border-box;
  1530. }
  1531. .row {
  1532. border-bottom: 1px solid #EEEEEE;
  1533. padding-bottom: 28rpx;
  1534. margin-top: 26rpx;
  1535. }
  1536. .left-text {
  1537. // background: red;
  1538. width: 320rpx;
  1539. color: #333333;
  1540. display: flex;
  1541. align-items: center;
  1542. }
  1543. .picture {
  1544. position: relative;
  1545. width: 100%;
  1546. height: 440rpx;
  1547. display: flex;
  1548. justify-content: center;
  1549. flex-direction: column;
  1550. align-items: center;
  1551. .text {
  1552. margin-top: 20rpx;
  1553. }
  1554. }
  1555. .picture1 {
  1556. background: url(../../../static/images/mine/jzz.png);
  1557. background-size: 100% 100%;
  1558. }
  1559. .picture2 {
  1560. background: url(../../../static/images/mine/jzf.png);
  1561. background-size: 100% 100%;
  1562. }
  1563. .picture3 {
  1564. background: url(../../../static/images/mine/xsz.png);
  1565. background-size: 100% 100%;
  1566. }
  1567. .picture4 {
  1568. background: url(../../../static/images/mine/xsf.png);
  1569. background-size: 100% 100%;
  1570. }
  1571. .picture5 {
  1572. background: url(../../../static/images/mine/gcxsz.png);
  1573. background-size: 100% 100%;
  1574. }
  1575. .picture6 {
  1576. background: url(../../../static/images/mine/gcxsf.png);
  1577. background-size: 100% 100%;
  1578. }
  1579. .picture7 {
  1580. background: url(../../../static/images/mine/cy.png);
  1581. background-size: 100% 100%;
  1582. }
  1583. .picture8 {
  1584. background: url(../../../static/images/mine/cy.png);
  1585. background-size: 100% 100%;
  1586. }
  1587. .picture9 {
  1588. background: url(../../../static/images/mine/cy.png);
  1589. background-size: 100% 100%;
  1590. }
  1591. .xj-image {
  1592. width: 100rpx;
  1593. height: 100rpx;
  1594. }
  1595. .title {
  1596. color: #000;
  1597. margin: 20rpx 0;
  1598. }
  1599. }
  1600. .input-ckg {
  1601. height: 86rpx;
  1602. margin-top: 0 !important;
  1603. padding-bottom: 0 !important;
  1604. .u-input {
  1605. height: 100%;
  1606. background: #F7F8FA;
  1607. padding-left: 10rpx !important;
  1608. padding-right: 85rpx !important;
  1609. }
  1610. .star {
  1611. display: flex;
  1612. align-items: center;
  1613. margin: 0 10rpx;
  1614. }
  1615. .input-positon {
  1616. position: relative;
  1617. }
  1618. .position-right {
  1619. position: absolute;
  1620. right: 20rpx;
  1621. top: 0;
  1622. width: 60rpx;
  1623. height: 50rpx;
  1624. bottom: 0;
  1625. margin: auto;
  1626. }
  1627. }
  1628. .picture {
  1629. margin-top: 20rpx;
  1630. background: #F5F6FA;
  1631. width: 212rpx;
  1632. height: 212rpx;
  1633. border-radius: 10rpx;
  1634. display: flex;
  1635. flex-direction: column;
  1636. justify-content: center;
  1637. align-items: center;
  1638. color: #6A7282;
  1639. }
  1640. .submit-btn-wrap{
  1641. position: fixed;
  1642. z-index:1000;
  1643. bottom:0;left:0;
  1644. width:100%;
  1645. padding:40rpx 0;
  1646. background:#fff;
  1647. }
  1648. .submit-btn {
  1649. bottom: 40rpx;
  1650. width: 90%;
  1651. background: #2772FB;
  1652. color: white;
  1653. text-align: center;
  1654. margin:0 auto;
  1655. padding: 30rpx 0;
  1656. border-radius: 50rpx;
  1657. }
  1658. .del-card {
  1659. position: absolute;
  1660. top: -10rpx;
  1661. right: -6rpx;
  1662. width: 80rpx;
  1663. height: 80rpx;
  1664. z-index: 9;
  1665. }
  1666. /deep/.uni-input-input:disabled{
  1667. background:transparent;
  1668. }
  1669. .phsy {
  1670. // font-size: 20px !important;
  1671. color: #999 !important
  1672. }
  1673. .car-uumber{
  1674. text-align:right;
  1675. }
  1676. .content{
  1677. font-size:15px;
  1678. }
  1679. </style>