addVehicle.vue 60 KB

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