您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

car-release.vue 36KB

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