Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.

car-release.vue 38KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285
  1. <template>
  2. <navBar title="行驶证信息上传" :scrollTop="scrollTop" navbgClass="nav-bgXin" fontColor='#fff'></navBar>
  3. <navBgCar :activeNum='4'></navBgCar>
  4. <view class="content">
  5. <view class="t-card">
  6. <view class="item-tips">
  7. <view class="title"> 上传后请核对识别信息 </view>
  8. <view class="tip"> 如有错误请及时手动修改 </view>
  9. </view>
  10. <view class="picture-wrapper" @click="takePhotoMode('3')">
  11. <view class="bg">
  12. <view class="">
  13. <view class="name"> 行驶证主页 </view>
  14. <view class="value"> 上传行驶证的主页 </view>
  15. <view class="tip">
  16. <view class="tip-value"> 拍摄规范 </view>
  17. </view>
  18. </view>
  19. <image v-if="!state.form.vehPosImgUrl" class="icon" :src="`${$imgUrl}issuance/xz.png`"
  20. :style="{'--bgimg':`url(${$imgUrl}issuance/bg-border.png)`}">
  21. </image>
  22. <image v-else class="icon" :src="strReplace(state.form.vehPosImgUrl)"
  23. :style="{'--bgimg':`url(${$imgUrl}issuance/bg-border.png)`}"></image>
  24. </view>
  25. </view>
  26. <view class="picture-wrapper" @click="takePhotoMode('4')">
  27. <view class="bg">
  28. <view class="">
  29. <view class="name"> 行驶证副页 </view>
  30. <view class="value"> 上传行驶证的副页 </view>
  31. <view class="tip">
  32. <view class="tip-value"> 拍摄规范 </view>
  33. </view>
  34. </view>
  35. <image v-if="!state.form.vehNegImgUrl" class="icon" :src="`${$imgUrl}issuance/xf.png`"
  36. :style="{'--bgimg':`url(${$imgUrl}issuance/bg-border.png)`}">
  37. </image>
  38. <image v-else class="icon" :src="strReplace(state.form.vehNegImgUrl)"
  39. :style="{'--bgimg':`url(${$imgUrl}issuance/bg-border.png)`}"></image>
  40. </view>
  41. </view>
  42. <view class="picture-wrapper" @click="cardFileImageUpdate(1)">
  43. <view class="bg">
  44. <view class="">
  45. <view class="name"> 车头照 </view>
  46. <view class="value"> 上传汽车的45度车头照片 </view>
  47. <view class="tip">
  48. <view class="tip-value"> 拍摄规范 </view>
  49. </view>
  50. </view>
  51. <image v-if="!state.form.vehBodyUrl" class="icon" :src="`${$imgUrl}issuance/chetou.png`"
  52. :style="{'--bgimg':`url(${$imgUrl}issuance/bg-border.png)`}">
  53. </image>
  54. <image v-else class="icon" :src="strReplace(state.form.vehBodyUrl)"
  55. :style="{'--bgimg':`url(${$imgUrl}issuance/bg-border.png)`}"></image>
  56. </view>
  57. </view>
  58. <view class="uni-list tractor">
  59. <radio-group @change="radioChange" v-if="state.form.vanType==2">
  60. <text class="title">是否是牵引车</text>
  61. <label style="margin-right: 60rpx;" class="uni-list-cell uni-list-cell-pd "
  62. v-for="(item, index) in state.items" :key="item.value">
  63. <radio :value="item.value" :checked="index === state.current" />{{item.name}}
  64. </label>
  65. </radio-group>
  66. </view>
  67. <!-- 货车 牵引车 需要传道路运输许可证-->
  68. <view class="picture-wrapper" v-if="state.form.vanType==2 && state.form.tractorSign==1"
  69. @click="cardFileImageUpdate(2)">
  70. <view class="bg">
  71. <view class="">
  72. <view class="name"> 道路运输许可证 </view>
  73. <view class="value"> 上传道路运输许可证 </view>
  74. <view class="tip">
  75. <view class="tip-value"> 拍摄规范 </view>
  76. </view>
  77. </view>
  78. <image v-if="!state.form.roadTransportPermitPicUrl" class="icon" :src="`${$imgUrl}issuance/chetou.png`"
  79. :style="{'--bgimg':`url(${$imgUrl}issuance/bg-border.png)`}">
  80. </image>
  81. <image v-else class="icon" :src="strReplace(state.form.roadTransportPermitPicUrl)"
  82. :style="{'--bgimg':`url(${$imgUrl}issuance/bg-border.png)`}"></image>
  83. </view>
  84. </view>
  85. </view>
  86. <view class="shibie-wrapper">
  87. <view class="title"> 识别内容如下 </view>
  88. <view class="">
  89. <u-form label-width="200" :model="state.form" ref="uForm" :label-style='labelStyle'>
  90. <u-form-item label="车牌号" :left-icon='`${$imgUrl}issuance/point-form.png`' :left-icon-style='leftIcon'>
  91. <car-number-input @numberInputResult="carNumber" :defaultStr="state.form.vehiclePlate"></car-number-input>
  92. </u-form-item>
  93. <u-form-item label="所有人" :left-icon='`${$imgUrl}issuance/point-form.png`' :left-icon-style='leftIcon'>
  94. <u-input inputAlign="right" placeholder="请输入所有人" v-model="state.form.ownerName"
  95. :disabled="state.isEnableChangeOCRCarInfo" maxlength="20" />
  96. </u-form-item>
  97. <u-form-item label="车辆类型" :left-icon='`${$imgUrl}issuance/point-form.png`' :left-icon-style='leftIcon'>
  98. <u-input inputAlign="right" placeholder="请输入车辆类型" v-model="state.form.vehicleType"
  99. :disabled="state.isEnableChangeOCRCarInfo" maxlength="20" />
  100. </u-form-item>
  101. <u-form-item label="品牌型号" :left-icon='`${$imgUrl}issuance/point-form.png`' :left-icon-style='leftIcon'>
  102. <u-input inputAlign="right" placeholder="请输入品牌型号" v-model="state.form.vehicleModel"
  103. :disabled="state.isEnableChangeOCRCarInfo" maxlength="30" />
  104. </u-form-item>
  105. <u-form-item label="使用性质" :left-icon='`${$imgUrl}issuance/point-form.png`' :left-icon-style='leftIcon'>
  106. <u-input inputAlign="right" placeholder="请输入使用性质" v-model="state.form.character"
  107. :disabled="state.isEnableChangeOCRCarInfo" maxlength="20" />
  108. </u-form-item>
  109. <u-form-item label="车辆识别代号" :left-icon='`${$imgUrl}issuance/point-form.png`' :left-icon-style='leftIcon'>
  110. <u-input inputAlign="right" placeholder="请输入车辆识别代号" v-model="state.form.vin"
  111. :disabled="state.isEnableChangeOCRCarInfo" maxlength="50" />
  112. </u-form-item>
  113. <u-form-item label="发动机号码" :left-icon='`${$imgUrl}issuance/point-form.png`' :left-icon-style='leftIcon'>
  114. <u-input inputAlign="right" placeholder="请输入发动机号码" v-model="state.form.engineNum"
  115. :disabled="state.isEnableChangeOCRCarInfo" maxlength="20" />
  116. </u-form-item>
  117. <u-form-item label="注册日期" :left-icon='`${$imgUrl}issuance/point-form.png`' :left-icon-style='leftIcon'>
  118. <picker mode="date" :value="state.form.registerDate" @change="bindDateChange1"
  119. :disabled="state.isEnableChangeOCRCarInfo">
  120. <view class="uni-input" style="text-align: right;" :class="state.changeColor?'hei':'hui'">
  121. {{state.form.registerDate}}
  122. </view>
  123. </picker>
  124. </u-form-item>
  125. <u-form-item label="发证日期" :left-icon='`${$imgUrl}issuance/point-form.png`' :left-icon-style='leftIcon'>
  126. <picker mode="date" :value="state.form.issueDate" @change="bindDateChange2"
  127. :disabled="state.isEnableChangeOCRCarInfo">
  128. <view class="uni-input" style="text-align: right;" :class="state.changeColor?'hei':'hui'">
  129. {{state.form.issueDate}}
  130. </view>
  131. </picker>
  132. </u-form-item>
  133. <u-form-item label="核定载人数" :left-icon='`${$imgUrl}issuance/point-form.png`' :left-icon-style='leftIcon'>
  134. <u-input inputAlign="right" placeholder="请输入核定载人数" v-model="state.form.approvedCountShow"
  135. :disabled="state.isEnableChangeOCRCarInfo" maxlength="3" />
  136. </u-form-item>
  137. <u-form-item label="整备质量" :left-icon='`${$imgUrl}issuance/point-form.png`' :left-icon-style='leftIcon'>
  138. <u-input inputAlign="right" placeholder="请输入整备质量" v-model="state.form.maintenaceMassShow"
  139. :disabled="state.isEnableChangeOCRCarInfo" maxlength="7" />
  140. </u-form-item>
  141. <view class="form-item">
  142. <label class='l-label'>
  143. <image class="icon-img" :src="`${$imgUrl}issuance/point-form.png`" /><text>外廊尺寸</text>
  144. </label>
  145. <view class="input-box">
  146. <text class="sub-label">长</text>
  147. <input v-model="state.outlineL" @input="outlineInput" :disabled="state.isEnableChangeOCRCarInfo"
  148. type="number" maxlength="5" />
  149. <text class="sub-label">宽</text>
  150. <input v-model="state.outlineW" @input="outlineInput" :disabled="state.isEnableChangeOCRCarInfo"
  151. type="number" maxlength="5" />
  152. <text class="sub-label">高</text>
  153. <input v-model="state.outlineH" @input="outlineInput" :disabled="state.isEnableChangeOCRCarInfo"
  154. type="number" maxlength="5" />
  155. <text class="sub-text">mm</text>
  156. </view>
  157. </view>
  158. <u-form-item label="总质量" :left-icon='`${$imgUrl}issuance/point-form.png`' :left-icon-style='leftIcon'>
  159. <u-input inputAlign="right" placeholder="请输入总质量" v-model="state.form.totalMassShow"
  160. :disabled="state.isEnableChangeOCRCarInfo" />
  161. </u-form-item>
  162. <u-form-item label="核定载质量" v-if="state.form.permittedWeight" :left-icon='`${$imgUrl}issuance/point-form.png`'
  163. :left-icon-style='leftIcon'>
  164. <u-input inputAlign="right" placeholder="核定载质量" v-model="state.form.permittedWeight"
  165. :disabled="state.isEnableChangeOCRCarInfo" />
  166. </u-form-item>
  167. <u-form-item label="车轴数" :left-icon='`${$imgUrl}issuance/point-form.png`' :left-icon-style='leftIcon'>
  168. <u-input inputAlign="right" placeholder="请输入车轴数" v-model="state.form.axleCount" type="number"
  169. maxlength="2" />
  170. </u-form-item>
  171. <view class="form-item">
  172. <label class='l-label'>
  173. <image class="icon-img" :src="`${$imgUrl}issuance/point-form.png`" /><text>车辆用户类型</text>
  174. </label>
  175. <view class="select" @click="state.actionSheetShow = true">{{state.form.useUserTypeName}}</view>
  176. <image :src="`${$imgUrl}common/arror-down.png`" class="icon" @click="state.actionSheetShow = true">
  177. </image>
  178. </view>
  179. </u-form>
  180. </view>
  181. </view>
  182. <view class="action">
  183. <view class="btn-tip">
  184. 如识别信息有误,请手动修改,确认无误后,点击下一步!
  185. </view>
  186. <button type="default" class="ui-btn" @click="savaHandle()">
  187. 下一步
  188. </button>
  189. </view>
  190. </view>
  191. <!-- 车辆类型弹窗 -->
  192. <u-popup mode="bottom" v-model="state.actionSheetShow">
  193. <view class="window">
  194. <view class="window-item" v-for="item in state.actionSheetList" :key="item.value" @click="userType(item)">
  195. {{item.text}}
  196. </view>
  197. </view>
  198. </u-popup>
  199. <u-popup mode="bottom" v-model="state.show">
  200. <view v-if="state.data.transferLogs && state.data.transferLogs.length" class="">
  201. <view class="bettwen-center">
  202. <view style="padding: 20rpx" class="title"> 选择卡签 </view>
  203. <view class="goto" @click="pass"> 直接跳过,不使用此套卡签 </view>
  204. </view>
  205. <view @click="guohuAction(item)" class="card" v-for="(item, index) in state.data.transferLogs" :key="index"
  206. style="margin-top: 30rpx; margin-bottom: 30rpx">
  207. <view v-if="item.status === 'WAITING'" class="card-left">
  208. <image :src="`${$imgUrl}card2.png`" mode=""></image>
  209. <view class="card-center">
  210. <view class="flex">
  211. <view class=""> 卡号: </view>
  212. <view class="card-center-head">
  213. {{ item.cardId }}
  214. </view>
  215. </view>
  216. <view style="margin-top: 10rpx" class="flex">
  217. <view class=""> OBU编号: </view>
  218. <view class="card-center-head">
  219. {{ item.obuId }}
  220. </view>
  221. </view>
  222. </view>
  223. </view>
  224. </view>
  225. </view>
  226. </u-popup>
  227. <view class="choice-takePhoto-wrap" v-if="state.isTakePhotoModeShow" @click="cancle">
  228. <view class="choice-takePhoto">
  229. <view @click.stop="takePhoto(state.choiceIndex)" style="border-radius: 20rpx 20rpx 0 0;">拍照</view>
  230. <view @click.stop="xiangce(state.choiceIndex)">从手机相册选择</view>
  231. <view @click.stop="cancle">取消</view>
  232. </view>
  233. </view>
  234. <viewfinder v-if="state.phoneType" :phoneType="state.phoneType" :images="state.images" :showStartPhoto="state.showImg"
  235. @confirmReturn="confirmReturn" @camera="camera"></viewfinder>
  236. </template>
  237. <script setup lang="ts">
  238. import { reactive, ref } from "vue";
  239. import viewfinder from "../../components/viewfinder.vue"
  240. import navBgCar from "./components/nav-bg-car1";
  241. import navBar from "@/components/nav-bar/nav-bar2.vue";
  242. import carNumberInput from "@/components/car-number-input/car-number-input.vue";
  243. import {
  244. etcCarCardInfoSubmit,
  245. queryGuoHuJianCe,
  246. queryGuoHuCaoZuo,
  247. carMessageApi,
  248. vehicleUpload, vehicleLicenseOcr
  249. } from "@/utils/network/api.js";
  250. import { request, requestNew } from "@/utils/network/request.js";
  251. import { stringToJson } from "@/utils/network/encryption";
  252. import { onLoad, onPageScroll } from "@dcloudio/uni-app";
  253. import { getItem, StorageKeys } from "@/utils/storage";
  254. import { msg, strReplace, hasLogin, uploadFile, compressImage, chooseImageCompress } from "@/utils/utils";
  255. import {navTo } from "@/utils/utils";
  256. import {
  257. getCodeName
  258. } from "@/datas/queryKey.js";
  259. const scrollTop = ref(0);
  260. const labelStyle = {
  261. color: "#004576",
  262. fontSize: "28rpx",
  263. }
  264. const leftIcon = {
  265. height: '100%',
  266. width: '8rpx',
  267. display: 'flex',
  268. 'align-items': 'center',
  269. 'margin-right': '3rpx',
  270. }
  271. //监听页面滚动
  272. onPageScroll((e) => {
  273. scrollTop.value = e.scrollTop;
  274. });
  275. //车牌号输入
  276. const carNumber = (val : any) => {
  277. state.form.vehiclePlate = val.trim();
  278. };
  279. const camera = () => {
  280. state.phoneType = 0
  281. }
  282. //提交车辆信息
  283. const savaHandle = () => {
  284. if (!state.form.vehPosImgUrl) {
  285. msg("请上传行驶证的主页");
  286. return;
  287. }
  288. if (!state.form.vehNegImgUrl) {
  289. msg("请上传行驶证的副页");
  290. return;
  291. }
  292. if (!state.form.vehBodyUrl) {
  293. msg("请上传车头照");
  294. return;
  295. }
  296. if (!state.form.ownerName) {
  297. msg("请输入所有人");
  298. return;
  299. }
  300. if (!state.form.vehicleType) {
  301. msg("请输入车辆类型");
  302. return;
  303. }
  304. if (!state.form.character) {
  305. msg("请输入使用性质");
  306. return;
  307. }
  308. if (!state.form.vin) {
  309. msg("请输入车辆识别代号");
  310. return;
  311. }
  312. if (!state.form.engineNum) {
  313. msg("请输入发动机号码");
  314. return;
  315. }
  316. if (!state.form.approvedCountShow) {
  317. msg("请输入核定载人数");
  318. return;
  319. }
  320. if (!state.outlineL || state.outlineL == '0') {
  321. msg("请输入外廊尺寸长");
  322. return;
  323. }
  324. if (!state.outlineW || state.outlineW == '0') {
  325. msg("请输入外廊尺寸宽");
  326. return;
  327. }
  328. if (!state.outlineH || state.outlineH == '0') {
  329. msg("请输入外廊尺寸高");
  330. return;
  331. }
  332. console.log("state.form.tractorSign", state.form.tractorSign, state.form.roadTransportPermitPicUrl)
  333. if (state.form.tractorSign == 1 && !state.form.roadTransportPermitPicUrl) {
  334. msg("请上传道路运输许可证");
  335. return;
  336. }
  337. if (state.form.vanType == 1) {
  338. state.form.axleCount = 2;
  339. } else {
  340. if (!state.form.axleCount) {
  341. msg("请输入车轴数");
  342. return;
  343. }
  344. }
  345. state.form.vehicleId =
  346. state.form.vehiclePlate + "_" + state.vehiclePlateColor;
  347. state.form.opId = getItem(StorageKeys.OpenId);
  348. state.form.approvedCount = parseFloat(state.form.approvedCount);
  349. state.form.maintenaceMass = parseFloat(state.form.maintenaceMass);
  350. // state.form.totalMass = parseFloat(state.form.totalMass);
  351. state.form.permittedWeight = parseFloat(state.form.permittedWeight);
  352. state.form.permittedTowWeight = parseFloat(state.form.permittedTowWeight);
  353. console.log("state.form.approvedCountShow", state.form.approvedCountShow, state.form.approvedCountShow.toString().indexOf('人'))
  354. // return;
  355. if (state.form.approvedCountShow.toString().indexOf('人') > 0) {
  356. state.form.approvedCount = state.form.approvedCountShow.replace("人", "");
  357. } else {
  358. state.form.approvedCount = state.form.approvedCountShow;
  359. }
  360. if (state.form.maintenaceMassShow.toString().indexOf('kg') > 0) {
  361. state.form.maintenaceMass = state.form.maintenaceMassShow.replace("kg", "");
  362. } else {
  363. state.form.maintenaceMass = state.form.maintenaceMassShow;
  364. }
  365. console.log("state.form.totalMassShow", state.form.totalMassShow)
  366. if (state.form.totalMassShow.toString().indexOf('kg') > 0) {
  367. state.form.totalMass = state.form.totalMassShow.replace("kg", "");
  368. } else {
  369. state.form.totalMass = state.form.totalMassShow;
  370. }
  371. const options = {
  372. type: 2,
  373. data: state.form,
  374. method: "POST",
  375. showLoading: true,
  376. };
  377. requestNew(vehicleUpload, options)
  378. .then((res) => {
  379. navTo(
  380. `/subpackage/orders/product-detail?orderId=${state.form.orderId}&&clientFee=${getItem("clientFee")}&&id=${getItem("productId")}&&isValueCard=${getItem("isValueCard")}&vehicleId=${state.form.vehicleId}`,
  381. );
  382. })
  383. .catch((res) => {
  384. console.log(res);
  385. });
  386. };
  387. const pass = () => {
  388. state.show = false
  389. state.form.vehicleId =
  390. state.form.vehiclePlate + "_" + state.vehiclePlateColor;
  391. state.form.opId = getItem(StorageKeys.OpenId);
  392. state.form.approvedCount = parseFloat(state.form.approvedCount);
  393. state.form.maintenaceMass = parseFloat(state.form.maintenaceMass);
  394. state.form.totalMass = parseFloat(state.form.totalMass);
  395. state.form.permittedWeight = parseFloat(state.form.permittedWeight);
  396. state.form.permittedTowWeight = parseFloat(state.form.permittedTowWeight);
  397. const options = {
  398. type: 2,
  399. data: state.form,
  400. method: "POST",
  401. showLoading: true,
  402. };
  403. request(etcCarCardInfoSubmit, options).then((res) => {
  404. uni.redirectTo({
  405. url: `/subpackage/orders/product-detail?orderId=${state.form.orderId}&&clientFee=${getItem("clientFee")}&&id=${getItem("productId")}&&isValueCard=${getItem("isValueCard")}&vehicleId=${state.form.vehicleId}`,
  406. });
  407. })
  408. }
  409. const selectConfirm = (index : any) => {
  410. console.log(index);
  411. state.form.useUserType = state.actionSheetList[index].value;
  412. state.form.useUserTypeName = state.actionSheetList[index].text;
  413. };
  414. //选择车辆用户类型
  415. const userType = (item : any) => {
  416. state.form.useUserType = item.value;
  417. state.form.useUserTypeName = item.text;
  418. state.actionSheetShow = false;
  419. }
  420. //车头照图片上传 val 1 车头照 2 道路运输证
  421. const cardFileImageUpdate = (val) => {
  422. uni.chooseImage({
  423. count: 1, //只能选取一张照片
  424. sizeType: ["original", "compressed"], //可以指定是原图还是压缩图,默认二者都有
  425. sourceType: ["camera", "album"], //从相册选择
  426. success: function (res) {
  427. uploadFile(res.tempFilePaths[0], "", "").then((data) => {
  428. if (val == 1) {
  429. state.form.vehBodyUrl = data;
  430. } else {
  431. state.form.roadTransportPermitPicUrl = data;
  432. }
  433. })
  434. },
  435. });
  436. };
  437. const state = reactive({
  438. phoneType: 0, // 1 身份证正面 2 身份证反面 3行驶证正面 4行驶证反面
  439. choiceIndex: 1, // 1 身份证正面 2 身份证反面
  440. isTakePhotoModeShow: false, //选择拍照方式是否出来
  441. changeColor: false,
  442. showImg: true,
  443. images: '',
  444. data: {
  445. transferLogs: [],
  446. },
  447. actionSheetShow: false,
  448. actionSheetList: [],
  449. form: {
  450. orderId: "", //订单ID
  451. character: "", //使用性质
  452. registerDate: "请输入注册日期", //注册日期
  453. customerId: "", //用户编号
  454. vehicleId: "",
  455. vehiclePlate: "", //车牌编号
  456. issueDate: "请输入发证日期", //发证日期
  457. vehPosImgUrl: "", //行驶证正面
  458. vehNegImgUrl: "", //行驶证证反面
  459. vanType: 1, //1,客车 2.货车
  460. useUserType: 0, //车辆用户类型
  461. useUserTypeName: "普通车",
  462. vehicleSign: 2, //前/后装标识
  463. vin: "", //车辆识别代号
  464. engineNum: "", //发动机号码
  465. vehicleType: "", //车辆类型
  466. vehicleModel: "", //行驶证品牌型号
  467. approvedCount: undefined, //核定人数
  468. approvedCountShow: undefined,//展示的
  469. totalMass: undefined, //总质量
  470. totalMassShow: undefined, //总质量
  471. maintenaceMass: undefined, //整备质量
  472. maintenaceMassShow: undefined, //整备质量展示的
  473. permittedWeight: "", //核定载质量
  474. vehicleDimensions: "", //车辆尺寸
  475. permittedTowWeight: "", //准牵引总质量
  476. axleCount: "", //车轴数
  477. ownerName: "", //车主姓名
  478. ownerIdType: "", //车主证件类型
  479. ownerIdNum: "", //车主证件号码
  480. ownPosImgUrl: "", //车主证件正面图片
  481. ownNegImgUrl: "", //车主证件反面图片
  482. agreementId: "", //签约编号
  483. channelId: "5201018892300000001", //编号渠道
  484. scenePayType: "", //
  485. transportIdNum: "", //道路运输证编号
  486. licenseIdNum: "", //经营许可证编号
  487. vehBodyUrl: "", //车身照片
  488. proxyUrl: "", //委托书地址
  489. roadTransportPermitPicUrl: "", //道路运输许可证
  490. opId: "",
  491. tractorSign: 0, //是否是牵引车 1 是 0 不是
  492. },
  493. vehiclePlateColor: undefined,
  494. orderId: "",
  495. // type: undefined, //标记来源是否登录 1为未登录数据 - 需要新增地址
  496. show: false,
  497. isMyPeopple: true,
  498. outlineL: "",
  499. outlineW: "",
  500. outlineH: "",
  501. isEnableChangeOCRCarInfo: true, //申办时是否允许修改OCR识别出来的车辆信息数据
  502. items: [{
  503. value: '1',
  504. name: '是',
  505. },
  506. {
  507. value: '0',
  508. name: '否',
  509. checked: 'true'
  510. }],
  511. current: 1,
  512. });
  513. onLoad((option : any) => {
  514. state.form.orderId = option.orderId;
  515. state.form.vanType = Number(option.vanType);
  516. state.vehiclePlateColor = option.vehiclePlateColor;
  517. if (option.vehicleId) {
  518. state.form.vehicleId = option.vehicleId;
  519. }
  520. console.log("option", option)
  521. getGlobalParam();
  522. if (option.vanType == 1) {
  523. state.actionSheetList = [{
  524. text: "普通车",
  525. value: 0,
  526. }]
  527. } else {
  528. state.actionSheetList = [{
  529. text: "普通车",
  530. value: 0,
  531. },
  532. {
  533. text: "道路运输证经营范围仅有“货物专用运输(集装箱) ”的牵引车办理J类型集装箱",
  534. value: 24,
  535. },
  536. {
  537. text: "道路运输证经营范围不含“货物专用运输(集装箱)”的牵引车",
  538. value: 27,
  539. },
  540. {
  541. text: '道路运输证经营范围除“货物专用运输 (集装 箱)"外,还有“普通货运”等其他项目的牵引车办理J2类型集装箱',
  542. value: 28,
  543. }]
  544. }
  545. });
  546. //外廓尺寸输入框
  547. const outlineInput = (e) => {
  548. state.form.vehicleDimensions =
  549. state.outlineL + "X" + state.outlineW + "X" + state.outlineH + "mm";
  550. };
  551. //过户检测
  552. const queryGuoHuJianCeAction = () => {
  553. var data = {
  554. orderId: state.form.orderId,
  555. };
  556. const options = {
  557. type: 2,
  558. data: data,
  559. method: "POST",
  560. showLoading: true,
  561. };
  562. return new Promise(async (resolve, reject) => {
  563. const res = await request(queryGuoHuJianCe, options);
  564. const data = stringToJson(res.bizContent);
  565. console.log("过户检测111", data)
  566. resolve(data);
  567. }).catch((error) => {
  568. reject(error);
  569. });
  570. };
  571. //过户操作
  572. const guohuAction = (val) => {
  573. var data = {
  574. orderId: state.form.orderId,
  575. serviceType: "USE",
  576. obuId: val.obuId,
  577. cardId: val.cardId,
  578. };
  579. const options = {
  580. type: 2,
  581. data: data,
  582. method: "POST",
  583. showLoading: true,
  584. };
  585. return new Promise(async (resolve, reject) => {
  586. const res = await request(queryGuoHuCaoZuo, options);
  587. const data = stringToJson(res.bizContent);
  588. state.show = false;
  589. uni.redirectTo({
  590. url: `/subpackage/orders/product-detail?orderId=${state.form.orderId}&&clientFee=${getItem("clientFee")}&&id=${getItem("productId")}&&isValueCard=${getItem("isValueCard")}&vehicleId=${state.form.vehicleId}`,
  591. });
  592. }).catch((error) => {
  593. reject(error);
  594. });
  595. };
  596. const getGlobalParam = () => {
  597. const data = getItem('globalParam')
  598. console.log("全局配置数据", getCodeName('IS_ENABLE', data.applyChangeOCRCarInfo))
  599. // 申办时是否允许修改OCR识别出来的车辆信息数据
  600. if (getCodeName('IS_ENABLE', data.applyChangeOCRCarInfo) == '启用') {
  601. state.isEnableChangeOCRCarInfo = false;
  602. } else {
  603. state.isEnableChangeOCRCarInfo = true;
  604. }
  605. // 中办时是否允许带出车辆信息
  606. console.log("11", getCodeName('IS_ENABLE', data.applyCarInfo))
  607. if (getCodeName('IS_ENABLE', data.applyCarInfo) == '启用') {
  608. // 获取车辆信息
  609. getCarMessage()
  610. console.log("11")
  611. }
  612. }
  613. const getCarMessage = () => {
  614. const options = {
  615. type: 2,
  616. data: {
  617. vehicleId: state.form.vehicleId,
  618. },
  619. method: "POST",
  620. showLoading: true,
  621. };
  622. request(carMessageApi, options).then((res) => {
  623. const data = stringToJson(res.bizContent);
  624. console.log("通过vehicleId查询车辆信息", data)
  625. if (data.data) {
  626. writeMsg(data.data)
  627. }
  628. })
  629. }
  630. const writeMsg = (allData) => {
  631. console.log("车辆信息", allData);
  632. state.form.ownPosImgUrl = allData['ownerPosImgUrl']
  633. state.form.ownNegImgUrl = allData['ownerNegImgUrl']
  634. state.form.userName = allData['contacts']
  635. state.form.userIdNum = allData['ownerIdNum']
  636. state.form.ownerIdNum = allData['ownerIdNum']
  637. state.form.address = allData['ownerAddress']
  638. state.form.tel = allData['ownerTel']
  639. state.form.vehPosImgUrl = allData['vehPosImgUrl']
  640. state.form.vehNegImgUrl = allData['vehNegImgUrl']
  641. state.form.vehBodyUrl = allData['vehBodyUrl']
  642. state.form.vehiclePlate = allData['vehiclePlate']
  643. state.form.ownerName = allData['ownerName']
  644. state.form.vehicleType = allData['vehicleType']
  645. if (allData['useCharacter'] == 1) {
  646. state.form.character = "营运" //使用性质
  647. } else if (allData['useCharacter'] == 2) {
  648. state.form.character = "非营运" //使用性质
  649. } else {
  650. state.form.character = "未知" //使用性质
  651. }
  652. state.form.vin = allData['vin']
  653. state.form.engineNum = allData['engineNum']
  654. state.form.registerDate = allData['registerDate']
  655. state.form.issueDate = allData['issueDate']
  656. state.form.approvedCountShow = allData['approvedCount']
  657. state.form.maintenaceMassShow = allData['maintenaceMass']
  658. state.form.approvedCount = allData['approvedCount']
  659. state.form.maintenaceMass = allData['maintenaceMass']
  660. allData['vehicleDimensions']
  661. state.form.vehicleDimensions = allData['vehicleDimensions']
  662. let arr = allData['vehicleDimensions'].split("X");
  663. state.outlineL = parseInt(arr[0]); //外廓 长
  664. state.outlineW = parseInt(arr[1]); //外廓 宽
  665. state.outlineH = parseInt(arr[2].substring(0, arr[2].length - 2)); //外廓 高
  666. state.form.totalMassShow = allData['totalMass']
  667. state.form.totalMass = allData['totalMass']
  668. state.form.axleCount = allData['axleCount'] ? allData['axleCount'] : 2
  669. if (allData['useUserType'] == 0) {
  670. state.form.useUserTypeName = "普通车"
  671. } else if (allData['useUserType'] == 24) {
  672. state.form.useUserTypeName = "道路运输证经营范围仅有“货物专用运输(集装箱) ”的牵引车办理J类型集装箱"
  673. } else if (allData['useUserType'] == 27) {
  674. state.form.useUserTypeName = "道路运输证经营范围不含“货物专用运输(集装箱)”的牵引车"
  675. } else if (allData['useUserType'] == 28) {
  676. state.form.useUserTypeName = "道路运输证经营范围除'货物专用运输 (集装 箱)'外,还有“普通货运”等其他项目的牵引车办理J2类型集装箱"
  677. }
  678. state.vehiclePlateColor = allData['vehiclePlateColor']
  679. state.form.customerId = allData['customerId']
  680. state.form.vehicleModel = allData['vehicleModel']
  681. state.form.permittedWeight = allData['permittedWeight'] ? allData['permittedWeight'] : 0;
  682. state.form.permittedTowWeight = allData['permittedTowWeight']
  683. state.changeColor = true
  684. if (allData['tractorSign'] == "1") {
  685. qian()
  686. state.form.roadTransportPermitPicUrl = allData['roadTransportPermitPicUrl']
  687. } else {
  688. notQian()
  689. }
  690. }
  691. const bindDateChange1 = (e) => {
  692. state.form.registerDate = e.detail.value
  693. state.changeColor = true;
  694. }
  695. const bindDateChange2 = (e) => {
  696. state.form.issueDate = e.detail.value
  697. state.changeColor = true;
  698. }
  699. const xiangce = (val) => {
  700. console.log("val", val)
  701. if (state.choiceIndex == 3) {
  702. var imageType = 1;
  703. } else {
  704. var imageType = 2;
  705. }
  706. state.changeColor = true;
  707. chooseImageCompress((res) => {
  708. state.images = res.tempFilePath ? res.tempFilePath : res.tempFilePaths[0]
  709. state.showImg = false
  710. state.phoneType = state.choiceIndex
  711. state.isTakePhotoModeShow = false
  712. })
  713. }
  714. const takePhoto = (val) => {
  715. console.log("拍照", val)
  716. state.phoneType = val;
  717. state.showImg = true;
  718. }
  719. const confirmReturn = (val) => {
  720. if (state.choiceIndex == 3) {
  721. var imageType = 1;
  722. } else {
  723. var imageType = 2;
  724. }
  725. state.changeColor = true;
  726. state.phoneType = 0
  727. state.isTakePhotoModeShow = false
  728. uploadFile(val.tempImagePath, imageType, vehicleLicenseOcr).then((data) => {
  729. console.log('输出内容=====================', state.choiceIndex)
  730. if (state.choiceIndex === "3") {
  731. if (data.plate_a.length > 8) {
  732. state.form.vehiclePlate = data.plate_a.substring(0, 8);
  733. } else {
  734. state.form.vehiclePlate = data.plate_a;
  735. }
  736. state.form.ownerName = data.man;
  737. state.form.vehicleType = data.vehicle;
  738. state.form.character = data.character;
  739. state.form.vin = data.vin;
  740. state.form.engineNum = data.engine;
  741. state.form.registerDate = data.register;
  742. state.form.issueDate = data.issue;
  743. state.form.vehPosImgUrl = data.imageUrl;
  744. state.form.vehicleModel = data.model;
  745. console.log("走不是牵引车的", data.vehicle.indexOf('牵引车'), data.vehicle)
  746. if (data.vehicle.indexOf('牵引车') > 0) {
  747. console.log("是牵引车的")
  748. qian()
  749. } else {
  750. console.log("走不是牵引车的")
  751. notQian()
  752. }
  753. } else {
  754. state.form.approvedCount = data.apc;
  755. state.form.approvedCountShow = data.apc;
  756. state.form.maintenaceMass = data.unladen;
  757. state.form.maintenaceMassShow = data.unladen;
  758. // 91接口差
  759. // // #ifdef MP-WEIXIN
  760. // state.form.vehicleDimensions = data.overall.replaceAll("×", "X");
  761. // // #endif
  762. // // #ifdef MP-ALIPAY
  763. // state.form.vehicleDimensions = data.overall.replace(/×/g, "X");
  764. // // #endif
  765. // let arr = data.overall.split("×");
  766. // #ifdef MP-WEIXIN
  767. state.form.vehicleDimensions = data.overall.replaceAll("x", "X");
  768. // #endif
  769. // #ifdef MP-ALIPAY
  770. state.form.vehicleDimensions = data.overall.replace(/x/g, "X");
  771. // #endif
  772. let arr = state.form.vehicleDimensions.split("X");
  773. state.outlineL = arr[0]; //外廓 长
  774. state.outlineW = arr[1]; //外廓 宽
  775. state.outlineH = arr[2].substring(0, arr[2].length - 2); //外廓 高
  776. state.form.totalMass = data.gross ? data.gross : 0;
  777. state.form.totalMassShow = data.gross ? data.gross : 0;
  778. console.log("state.form.totalMassShow", state.form.totalMassShow)
  779. state.form.vehNegImgUrl = data.imageUrl;
  780. state.form.permittedWeight = data.alc ? data.alc : 0;
  781. state.form.permittedTowWeight = data.towing ? data.towing : 0;
  782. console.log('=====================', state.form.vehNegImgUrl, state)
  783. }
  784. state.isTakePhotoModeShow = false
  785. })
  786. console.log("图片地址val", val.tempImagePath)
  787. }
  788. const takePhotoMode = (index) => {
  789. console.log("index", index)
  790. state.isTakePhotoModeShow = true
  791. state.choiceIndex = index
  792. }
  793. const cancle = () => {
  794. state.isTakePhotoModeShow = false
  795. }
  796. const radioChange = (evt) => {
  797. console.log("evt.detail.value", evt.detail.value)
  798. for (let i = 0; i < state.items.length; i++) {
  799. if (state.items[i].value === evt.detail.value) {
  800. state.current = i;
  801. state.form.tractorSign = evt.detail.value;
  802. break;
  803. }
  804. }
  805. }
  806. // 牵引车
  807. const qian = () => {
  808. state.items = [{
  809. value: '1',
  810. name: '是',
  811. checked: 'true'
  812. },
  813. {
  814. value: '0',
  815. name: '否',
  816. }]
  817. for (let i = 0; i < state.items.length; i++) {
  818. console.log("")
  819. if (state.items[i].value === '1') {
  820. state.current = i;
  821. state.form.tractorSign = 1;
  822. break;
  823. }
  824. }
  825. }
  826. // 不是牵引车
  827. const notQian = () => {
  828. state.items = [{
  829. value: '1',
  830. name: '是',
  831. },
  832. {
  833. value: '0',
  834. name: '否',
  835. checked: 'true'
  836. }]
  837. for (let i = 0; i < state.items.length; i++) {
  838. console.log("不是牵引车", state.items[i].value, state.items[i].value === '0')
  839. if (state.items[i].value === '0') {
  840. state.current = i;
  841. state.form.tractorSign = 0;
  842. break;
  843. }
  844. }
  845. }
  846. </script>
  847. <style lang="scss" scoped>
  848. .content-warp {}
  849. .hui {
  850. color: #ccc;
  851. }
  852. .hei {
  853. color: black;
  854. }
  855. .goto {
  856. margin-right: 20rpx;
  857. padding: 10rpx;
  858. color: #00b38b;
  859. border: 1rpx solid #00b38b;
  860. border-radius: 20rpx;
  861. }
  862. .flex {
  863. display: flex;
  864. align-items: center;
  865. }
  866. .bettwen-center {
  867. display: flex;
  868. align-items: center;
  869. justify-content: space-between;
  870. }
  871. .card {
  872. margin: 20rpx;
  873. height: 150rpx;
  874. background: #ffffff;
  875. box-shadow: 0rpx 4rpx 13rpx 3rpx rgba(223, 223, 223, 0.8);
  876. border-radius: 20rpx;
  877. padding: 20rpx;
  878. display: flex;
  879. justify-content: space-between;
  880. align-items: center;
  881. margin-bottom: 30rpx;
  882. .card-left {
  883. display: flex;
  884. align-items: center;
  885. image {
  886. width: 100rpx;
  887. height: 90rpx;
  888. }
  889. .card-center {
  890. margin-left: 30rpx;
  891. .card-center-head {
  892. font-size: 32rpx;
  893. font-family: Noto Sans S Chinese;
  894. font-weight: 400;
  895. color: #333333;
  896. }
  897. .tips {
  898. font-size: 26rpx;
  899. font-family: Noto Sans S Chinese;
  900. font-weight: 400;
  901. color: #666666;
  902. .tips-card {
  903. width: 70rpx;
  904. height: 40rpx;
  905. background: #d3f2ef;
  906. border-radius: 6rpx;
  907. font-size: 20rpx;
  908. font-family: Noto Sans S Chinese;
  909. font-weight: 400;
  910. color: #0a8f8a;
  911. padding: 5rpx 10rpx;
  912. margin-left: 20rpx;
  913. }
  914. }
  915. }
  916. }
  917. .choose-item {
  918. margin-right: 20rpx;
  919. width: 50rpx;
  920. height: 50rpx;
  921. border: 1rpx solid #00b38b;
  922. border-radius: 50%;
  923. display: flex;
  924. justify-content: center;
  925. align-items: center;
  926. .active {
  927. width: 38rpx;
  928. height: 38rpx;
  929. background: #00b38b;
  930. border-radius: 50%;
  931. }
  932. }
  933. }
  934. .content {
  935. position: absolute;
  936. top: 370rpx;
  937. width: 100%;
  938. min-height: calc(100% - 370rpx);
  939. box-sizing: border-box;
  940. padding: 0 30rpx 210rpx;
  941. .t-card {
  942. width: 100%;
  943. background-color: #fff;
  944. border-radius: 12rpx;
  945. padding: 40rpx 30rpx 30rpx;
  946. box-sizing: border-box;
  947. }
  948. .img-pos {
  949. position: absolute;
  950. left: 270rpx;
  951. top: -38rpx;
  952. right: 50rpx;
  953. .img-flex {
  954. display: flex;
  955. justify-content: space-between;
  956. align-items: center;
  957. .car-img {
  958. width: 86rpx;
  959. height: 42rpx;
  960. }
  961. .flag-img {
  962. width: 30rpx;
  963. height: 35rpx;
  964. }
  965. }
  966. }
  967. .action {
  968. position: absolute;
  969. bottom: 0rpx;
  970. left: 0;
  971. height: 188rpx;
  972. background-color: #fff;
  973. border-radius: 30rpx 30rpx 0 0;
  974. width: 100vw;
  975. display: flex;
  976. align-items: center;
  977. justify-content: center;
  978. flex-direction: column;
  979. .btn-tip {
  980. font-family: SourceHanSansSC, SourceHanSansSC;
  981. font-weight: 400;
  982. font-size: 24rpx;
  983. color: #CCB375;
  984. margin-bottom: 14rpx;
  985. }
  986. }
  987. .item-tips {
  988. .title {
  989. font-size: 30rpx;
  990. font-family: Microsoft YaHei;
  991. font-weight: 500;
  992. color: #01243A;
  993. line-height: 30rpx;
  994. }
  995. .tip {
  996. margin-top: 16rpx;
  997. font-size: 24rpx;
  998. font-family: Microsoft YaHei;
  999. font-weight: 400;
  1000. color: #999999;
  1001. line-height: 24rpx;
  1002. }
  1003. }
  1004. .picture-wrapper {
  1005. margin-top: 30rpx;
  1006. .bg {
  1007. background: #F5F9FB;
  1008. border-radius: 10rpx;
  1009. padding: 40rpx 30rpx;
  1010. display: flex;
  1011. // align-items: center;
  1012. justify-content: space-between;
  1013. .name {
  1014. padding-top: 30rpx;
  1015. font-size: 32rpx;
  1016. font-family: SourceHanSansSC, SourceHanSansSC;
  1017. font-weight: 500;
  1018. color: #111;
  1019. line-height: 34rpx;
  1020. }
  1021. .value {
  1022. margin-top: 20rpx;
  1023. font-size: 22rpx;
  1024. font-family: SourceHanSansSC, SourceHanSansSC;
  1025. font-weight: 400;
  1026. color: #999999;
  1027. line-height: 24rpx;
  1028. }
  1029. .tip {
  1030. margin-top: 20rpx;
  1031. text-align: center;
  1032. width: 100rpx;
  1033. height: 30rpx;
  1034. // background: rgba(204, 179, 117);
  1035. border-radius: 6rpx;
  1036. border: 1rpx solid #CCB375;
  1037. .tip-value {
  1038. font-size: 20rpx;
  1039. font-family: Microsoft YaHei;
  1040. font-weight: 400;
  1041. color: #CCB375;
  1042. line-height: 30rpx;
  1043. opacity: 1;
  1044. }
  1045. }
  1046. }
  1047. .icon {
  1048. width: 304rpx;
  1049. height: 190rpx;
  1050. background-image: var(--bgimg);
  1051. background-size: 100% 100%;
  1052. background-repeat: no-repeat;
  1053. }
  1054. }
  1055. .shibie-wrapper {
  1056. margin-top: 30rpx;
  1057. border-radius: 12rpx;
  1058. background-color: #fff;
  1059. width: 100%;
  1060. padding: 30rpx;
  1061. box-sizing: border-box;
  1062. .title {
  1063. font-size: 30rpx;
  1064. font-family: Microsoft YaHei;
  1065. font-weight: 500;
  1066. color: #01243A;
  1067. line-height: 30rpx;
  1068. }
  1069. }
  1070. .buchong-wrapper {
  1071. margin-top: 60rpx;
  1072. .title {
  1073. font-size: 30rpx;
  1074. font-family: Microsoft YaHei;
  1075. font-weight: 400;
  1076. color: #000000;
  1077. line-height: 30rpx;
  1078. }
  1079. }
  1080. .green-tip {
  1081. margin-top: 50rpx;
  1082. font-size: 24rpx;
  1083. font-family: Microsoft YaHei;
  1084. font-weight: 400;
  1085. color: #00b38b;
  1086. line-height: 24rpx;
  1087. margin-bottom: 60rpx;
  1088. }
  1089. }
  1090. .form-item {
  1091. display: flex;
  1092. font-size: 28rpx;
  1093. justify-content: space-between;
  1094. align-items: center;
  1095. height: 70rpx;
  1096. .l-label {
  1097. font-size: 28rpx;
  1098. color: #004576;
  1099. display: flex;
  1100. align-items: center;
  1101. .icon-img {
  1102. align-items: center;
  1103. margin-right: 8rpx;
  1104. width: 8rpx;
  1105. height: 8rpx;
  1106. display: flex;
  1107. }
  1108. }
  1109. }
  1110. .form-item label {}
  1111. .form-item .input-box {
  1112. display: flex;
  1113. align-items: center;
  1114. }
  1115. .form-item .select {
  1116. flex: 1;
  1117. background: #f1f1f1;
  1118. padding: 6rpx 20rpx;
  1119. margin: 0 10rpx;
  1120. min-height: 48rpx;
  1121. line-height: 48rpx;
  1122. border-radius: 8rpx;
  1123. }
  1124. .form-item .icon {
  1125. width: 28rpx;
  1126. height: 32rpx;
  1127. }
  1128. .form-item .input-box input {
  1129. width: 90rpx;
  1130. background: #f1f1f1;
  1131. border-radius: 8rpx;
  1132. padding: 0 5rpx;
  1133. }
  1134. .form-item .sub-text {
  1135. color: #808080;
  1136. padding-left: 10rpx;
  1137. }
  1138. .form-item .sub-label {
  1139. padding: 0 10rpx;
  1140. }
  1141. .window {
  1142. padding: 60rpx 30rpx;
  1143. }
  1144. .window .window-item {
  1145. border: 1px solid #00b38b;
  1146. background: rgba(0, 179, 139, .1);
  1147. border-radius: 10rpx;
  1148. padding: 16rpx 30rpx;
  1149. font-size: 30rpx;
  1150. margin-bottom: 10rpx;
  1151. }
  1152. ::v-deep .u-input__input {
  1153. background: transparent;
  1154. }
  1155. .choice-takePhoto {
  1156. position: absolute;
  1157. bottom: 0;
  1158. background-color: white;
  1159. width: 100%;
  1160. border-radius: 20rpx 20rpx 0 0;
  1161. }
  1162. .choice-takePhoto>view:first-child {
  1163. text-align: center;
  1164. height: 80rpx;
  1165. line-height: 80rpx;
  1166. border-bottom: 1rpx solid rgba(127, 127, 127, 0.3);
  1167. background-color: white;
  1168. }
  1169. .choice-takePhoto>view:last-child {
  1170. text-align: center;
  1171. height: 80rpx;
  1172. line-height: 80rpx;
  1173. border-top: 6rpx solid rgba(127, 127, 127, 0.1);
  1174. background-color: white;
  1175. }
  1176. .choice-takePhoto>view {
  1177. text-align: center;
  1178. height: 80rpx;
  1179. line-height: 80rpx;
  1180. background-color: white;
  1181. }
  1182. .choice-takePhoto-wrap {
  1183. width: 100%;
  1184. height: 100vh;
  1185. background-color: rgba(127, 127, 127, 0.2);
  1186. position: fixed;
  1187. left: 0;
  1188. top: 0;
  1189. z-index: 11111;
  1190. }
  1191. .tractor {
  1192. font-size: 32rpx;
  1193. margin-top: 40rpx;
  1194. }
  1195. .tractor .title {
  1196. margin-right: 60rpx;
  1197. }
  1198. // .tractor .title .label {
  1199. // margin-right: 40rpx !important;
  1200. // }
  1201. </style>