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

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