You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

car-release.vue 37KB

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