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 25KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886
  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="cardImageOcr('1')">
  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="cardImageOcr('2')">
  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()">
  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="shibie-wrapper">
  52. <view class="title"> 识别内容如下 </view>
  53. <view class="">
  54. <u-form label-width="200" :model="state.form" ref="uForm">
  55. <u-form-item label="车牌号">
  56. <!-- <u-input inputAlign="right" placeholder='请输入车牌号' v-model="state.form.vehicleIdNum" /> -->
  57. <car-number-input @numberInputResult="carNumber"
  58. :defaultStr="state.form.vehicleIdNum"></car-number-input>
  59. </u-form-item>
  60. <u-form-item label="所有人">
  61. <u-input inputAlign="right" placeholder="请输入所有人" v-model="state.form.man"
  62. :disabled="state.isEnableChangeOCRCarInfo" />
  63. </u-form-item>
  64. <u-form-item label="车辆类型">
  65. <u-input inputAlign="right" placeholder="请输入车辆类型" v-model="state.form.vehicleType"
  66. :disabled="state.isEnableChangeOCRCarInfo" />
  67. </u-form-item>
  68. <u-form-item label="使用性质">
  69. <u-input inputAlign="right" placeholder="请输入使用性质" v-model="state.form.character"
  70. :disabled="state.isEnableChangeOCRCarInfo" />
  71. </u-form-item>
  72. <u-form-item label="车辆识别代号">
  73. <u-input inputAlign="right" placeholder="请输入车辆识别代号" v-model="state.form.vin"
  74. :disabled="state.isEnableChangeOCRCarInfo" />
  75. </u-form-item>
  76. <u-form-item label="发动机号码">
  77. <u-input inputAlign="right" placeholder="请输入发动机号码" v-model="state.form.engineNum"
  78. :disabled="state.isEnableChangeOCRCarInfo" />
  79. </u-form-item>
  80. <u-form-item label="注册日期">
  81. <picker mode="date" :value="state.form.register" @change="bindDateChange1"
  82. :disabled="state.isEnableChangeOCRCarInfo">
  83. <view class="uni-input" style="text-align: right;" :class="state.changeColor?'hei':'hui'">
  84. {{state.form.register}}
  85. </view>
  86. </picker>
  87. <!-- <u-input inputAlign="right" placeholder="请输入注册日期" v-model="state.form.register" :disabled="state.isEnableChangeOCRCarInfo" /> -->
  88. </u-form-item>
  89. <u-form-item label="发证日期">
  90. <picker mode="date" :value="state.form.issueDate" @change="bindDateChange2"
  91. :disabled="state.isEnableChangeOCRCarInfo">
  92. <view class="uni-input" style="text-align: right;" :class="state.changeColor?'hei':'hui'">
  93. {{state.form.issueDate}}
  94. </view>
  95. </picker>
  96. <!-- <u-input inputAlign="right" placeholder="请输入发证日期" v-model="state.form.issueDate" :disabled="state.isEnableChangeOCRCarInfo"/> -->
  97. </u-form-item>
  98. <u-form-item label="核定载人数">
  99. <u-input inputAlign="right" placeholder="请输入核定载人数" v-model="state.form.approvedCount"
  100. :disabled="state.isEnableChangeOCRCarInfo" />
  101. </u-form-item>
  102. <u-form-item label="整备质量">
  103. <u-input inputAlign="right" placeholder="请输入整备质量" v-model="state.form.maintenaceMass"
  104. :disabled="state.isEnableChangeOCRCarInfo" />
  105. </u-form-item>
  106. <!-- <u-form-item label="外廊尺寸">
  107. <u-input inputAlign="right" placeholder='请输入外廊尺寸' v-model="state.form.vehicleDimensions" />
  108. </u-form-item> -->
  109. <view class="form-item">
  110. <label>外廊尺寸</label>
  111. <view class="input-box">
  112. <text class="sub-label">长</text>
  113. <input v-model="state.outlineL" @input="outlineInput"
  114. :disabled="state.isEnableChangeOCRCarInfo" />
  115. <text class="sub-text">X</text>
  116. <text class="sub-label">宽</text>
  117. <input v-model="state.outlineW" @input="outlineInput"
  118. :disabled="state.isEnableChangeOCRCarInfo" />
  119. <text class="sub-text">X</text>
  120. <text class="sub-label">高</text>
  121. <input v-model="state.outlineH" @input="outlineInput"
  122. :disabled="state.isEnableChangeOCRCarInfo" />
  123. <text class="sub-text">mm</text>
  124. </view>
  125. </view>
  126. <u-form-item label="总质量">
  127. <u-input inputAlign="right" placeholder="请输入总质量" v-model="state.form.totalMass"
  128. :disabled="state.isEnableChangeOCRCarInfo" />
  129. </u-form-item>
  130. <view class="form-item">
  131. <label>车辆用户类型</label>
  132. <view class="select" @click="state.actionSheetShow = true">{{state.form.useUserTypeName}}</view>
  133. <image :src="`${$imgUrl}common/arror-down.png`" class="icon"
  134. @click="state.actionSheetShow = true"></image>
  135. </view>
  136. <!-- <u-form-item label="车辆用户类型">
  137. <u-input @click="state.actionSheetShow = true" placeholder="请输入车辆用户类型" inputAlign="right"
  138. v-model="state.form.useUserTypeName" height="38" type="textarea" :autoHeight="true" />
  139. </u-form-item> -->
  140. </u-form>
  141. </view>
  142. </view>
  143. <view class="green-tip">
  144. 如识别信息有误,请手动修改,确认无误后,点击下一步!
  145. </view>
  146. <view class="action">
  147. <button type="default" class="button" @click="savaHandle()">
  148. 下一步
  149. </button>
  150. </view>
  151. <!-- <u-select v-model="state.actionSheetShow" :list="state.actionSheetList" @confirm="selectConfirm"></u-select>
  152. <u-action-sheet @click="selectConfirm" :list="state.actionSheetList" v-model="state.actionSheetShow">
  153. </u-action-sheet> -->
  154. <!-- 车辆类型弹窗 -->
  155. <u-popup mode="bottom" v-model="state.actionSheetShow">
  156. <view class="window">
  157. <view class="window-item" v-for="item in state.actionSheetList" :key="item.value"
  158. @click="userType(item)">{{item.text}}</view>
  159. </view>
  160. </u-popup>
  161. <u-popup mode="bottom" v-model="state.show">
  162. <view v-if="state.data.transferLogs && state.data.transferLogs.length" class="">
  163. <view class="bettwen-center">
  164. <view style="padding: 20rpx" class="title"> 选择卡签 </view>
  165. <view class="goto"> 直接跳过,不使用此套卡签 </view>
  166. </view>
  167. <view @click="guohuAction(item)" class="card" v-for="(item, index) in state.data.transferLogs"
  168. :key="index" style="margin-top: 30rpx; margin-bottom: 30rpx">
  169. <view v-if="item.status === 'WAITING'" class="card-left">
  170. <image :src="`${$imgUrl}card2.png`" mode=""></image>
  171. <view class="card-center">
  172. <view class="flex">
  173. <view class=""> 卡号: </view>
  174. <view class="card-center-head">
  175. {{ item.cardId }}
  176. </view>
  177. </view>
  178. <view style="margin-top: 10rpx" class="flex">
  179. <view class=""> OBU编号: </view>
  180. <view class="card-center-head">
  181. {{ item.obuId }}
  182. </view>
  183. </view>
  184. </view>
  185. </view>
  186. </view>
  187. </view>
  188. </u-popup>
  189. </view>
  190. </template>
  191. <script setup lang="ts">
  192. import { reactive, ref } from "vue";
  193. import navBgCar from "./components/nav-bg-car4";
  194. import navBar from "@/components/nav-bar/nav-bar2.vue";
  195. import carNumberInput from "@/components/car-number-input/car-number-input.vue";
  196. import { pathToBase64 } from "@/utils/util/imageTool.js";
  197. import {
  198. etcCarCardInfoSubmit,
  199. etcCarOcrCard,
  200. fileUpload,
  201. envs,
  202. queryGuoHuJianCe,
  203. queryGuoHuCaoZuo,
  204. } from "@/utils/network/api.js";
  205. import { request } from "@/utils/network/request.js";
  206. import { stringToJson } from "@/utils/network/encryption";
  207. import { onLoad, onPageScroll } from "@dcloudio/uni-app";
  208. import { getObuStatus } from "@/datas/obuStatus.js";
  209. import { getEtcCardStatus } from "@/datas/etcCardStatus.js";
  210. import { getItem, StorageKeys } from "@/utils/storage";
  211. import { hasLogin } from "@/utils/utils.ts"
  212. import {
  213. getCodeName
  214. } from "@/datas/queryKey.js";
  215. const scrollTop = ref(0);
  216. //监听页面滚动
  217. onPageScroll((e) => {
  218. scrollTop.value = e.scrollTop;
  219. });
  220. //车牌号输入
  221. const carNumber = (val : any) => {
  222. state.form.vehicleIdNum = val.trim();
  223. };
  224. //提交车辆信息
  225. const savaHandle = () => {
  226. state.form.vehicleId =
  227. state.form.vehicleIdNum + "_" + state.vehiclePlateColor;
  228. state.form.opId = getItem(StorageKeys.OpenId);
  229. const options = {
  230. type: 2,
  231. data: state.form,
  232. method: "POST",
  233. showLoading: true,
  234. };
  235. request(etcCarCardInfoSubmit, options)
  236. .then((res) => {
  237. const data = stringToJson(res.bizContent);
  238. queryGuoHuJianCeAction().then((value) => {
  239. if (value.transferLogs && value.transferLogs.length > 0) {
  240. state.data.transferLogs = value.transferLogs;
  241. state.show = true;
  242. } else {
  243. // 签约
  244. if (state.isSign == 2 || state.isSign == 3) {
  245. if (!hasLogin()) {
  246. uni.redirectTo({
  247. url: `/subpackage/orders/addAddress?orderId=${state.form.orderId
  248. }&clientFee=${getItem("clientFee")}&&id=${getItem("productId")}`,
  249. });
  250. } else {
  251. // uni.redirectTo({
  252. // url: `/subpackage/orders/release-products?orderId=${state.form.orderId
  253. // }&clientFee=${getItem("clientFee")}&&id=${getItem("productId")}`,
  254. // });
  255. // #ifdef MP-ALIPAY
  256. uni.redirectTo({
  257. url: `/subpackage/orders/order_payment?orderId=${state.form.orderId}`,
  258. });
  259. // #endif
  260. // #ifdef MP-WEIXIN
  261. uni.redirectTo({
  262. url: `/subpackage/orders/interestsList?orderId=${state.form.orderId}&&clientFee=${getItem("clientFee")}&&id=${getItem("productId")}`// url: `/subpackage/orders/sign-up?orderId=${state.form.orderId}&&clientFee=${getItem("clientFee")}&&id=${getItem("productId")}`,
  263. });
  264. // #endif
  265. }
  266. } else {
  267. // 不签约
  268. // uni.redirectTo({
  269. // url: `/subpackage/orders/sign-up?orderId=${state.form.orderId}&&clientFee=${getItem("clientFee")}&&id=${getItem("productId")}`,
  270. // });
  271. uni.redirectTo({
  272. url: `/subpackage/orders/interestsList?orderId=${state.form.orderId}&&clientFee=${getItem("clientFee")}&&id=${getItem("productId")}`
  273. });
  274. // uni.redirectTo({
  275. // url: `/subpackage/orders/release-products?orderId=${state.form.orderId}&clientFee=${getItem('clientFee')}&&id=${getItem('productId')}`,
  276. // });
  277. }
  278. }
  279. });
  280. })
  281. .catch((res) => {
  282. console.log(res);
  283. });
  284. };
  285. const selectConfirm = (index : any) => {
  286. console.log(index);
  287. state.form.useUserType = state.actionSheetList[index].value;
  288. state.form.useUserTypeName = state.actionSheetList[index].text;
  289. };
  290. //选择车辆用户类型
  291. const userType = (item : any) => {
  292. state.form.useUserType = item.value;
  293. state.form.useUserTypeName = item.text;
  294. state.actionSheetShow = false;
  295. }
  296. //车头照图片上传
  297. const cardFileImageUpdate = () => {
  298. uni.chooseImage({
  299. count: 1, //只能选取一张照片
  300. sizeType: ["original", "compressed"], //可以指定是原图还是压缩图,默认二者都有
  301. sourceType: ["camera", "album"], //从相册选择
  302. success: function (res) {
  303. pathToBase64(res.tempFilePaths[0])
  304. .then((path) => {
  305. var data = {
  306. fileBase64: path,
  307. };
  308. const options = {
  309. type: 2,
  310. data: data,
  311. method: "POST",
  312. showLoading: true,
  313. };
  314. request(fileUpload, options).then((res) => {
  315. const data = stringToJson(res.bizContent);
  316. console.log(data);
  317. state.form.vehBodyUrl = data.data.url;
  318. });
  319. })
  320. .catch((error) => { });
  321. },
  322. });
  323. };
  324. const state = reactive({
  325. changeColor: false,
  326. data: {
  327. transferLogs: [],
  328. },
  329. actionSheetShow: false,
  330. actionSheetList: [],
  331. form: {
  332. orderId: "", //订单ID
  333. man: "", //所有人
  334. character: "", //使用性质
  335. register: "请输入注册日期", //注册日期
  336. customerId: "", //用户编号
  337. vehicleId: "",
  338. vehicleIdNum: "", //车牌编号
  339. issueDate: "请输入发证日期", //发证日期
  340. vehPosImgUrl: "", //行驶证正面
  341. vehNegImgUrl: "", //行驶证证反面
  342. type: "0", //0,客车 1.货车
  343. useUserType: 0, //车辆用户类型
  344. useUserTypeName: "普通车",
  345. vehicleSign: 2, //前/后装标识
  346. vin: "", //车辆识别代号
  347. engineNum: "", //发动机号码
  348. vehicleType: "", //车辆类型
  349. vehicleModel: "", //行驶证品牌型号
  350. approvedCount: undefined, //核定人数
  351. totalMass: undefined, //总质量
  352. maintenaceMass: undefined, //整备质量
  353. permittedWeight: "", //核定载质量
  354. vehicleDimensions: "", //车辆尺寸
  355. permittedTowWeight: "", //准牵引总质量
  356. axleCount: "", //车轴数
  357. ownerName: "", //车主姓名
  358. ownerIdType: "", //车主证件类型
  359. ownerIdNum: "", //车主证件号码
  360. ownPosImgUrl: "", //车主证件正面图片
  361. ownNegImgUrl: "", //车主证件反面图片
  362. agreementId: "", //签约编号
  363. channelId: "5201018892300000001", //编号渠道
  364. scenePayType: "", //
  365. transportIdNum: "", //道路运输证编号
  366. licenseIdNum: "", //经营许可证编号
  367. vehBodyUrl: "", //车身照片
  368. proxyUrl: "", //委托书地址
  369. opId: "",
  370. },
  371. vehiclePlateColor: undefined,
  372. orderId: "",
  373. // type: undefined, //标记来源是否登录 1为未登录数据 - 需要新增地址
  374. show: false,
  375. isMyPeopple: true,
  376. outlineL: "",
  377. outlineW: "",
  378. outlineH: "",
  379. isSign: '',
  380. isEnableChangeOCRCarInfo: true, //申办时是否允许修改OCR识别出来的车辆信息数据
  381. });
  382. onLoad((option : any) => {
  383. state.form.orderId = option.orderId;
  384. // state.type = option.type;
  385. state.form.type = option.type;
  386. state.vehiclePlateColor = option.vehiclePlateColor;
  387. state.isSign = option.isSign
  388. console.log("option", option)
  389. getGlobalParam();
  390. if (option.type == 1) {
  391. state.actionSheetList = [{
  392. text: "普通车",
  393. value: 0,
  394. }]
  395. } else {
  396. state.actionSheetList = [{
  397. text: "普通车",
  398. value: 0,
  399. },
  400. {
  401. text: "道路运输证经营范围仅有“货物专用运输(集装箱) ”的牵引车办理J类型集装箱",
  402. value: 24,
  403. },
  404. {
  405. text: "道路运输证经营范围不含“货物专用运输(集装箱)”的牵引车",
  406. value: 27,
  407. },
  408. {
  409. text: '道路运输证经营范围除“货物专用运输 (集装 箱)"外,还有“普通货运”等其他项目的牵引车办理J2类型集装箱',
  410. value: 28,
  411. }]
  412. }
  413. });
  414. //外廓尺寸输入框
  415. const outlineInput = (e) => {
  416. state.form.vehicleDimensions =
  417. state.outlineL + "X" + state.outlineW + "X" + state.outlineH + "mm";
  418. };
  419. //orc接口调用
  420. const cardImageOcr = (val : any) => {
  421. state.changeColor = true;
  422. var imageType = val;
  423. uni.chooseImage({
  424. count: 1, //只能选取一张照片
  425. sizeType: ["original", "compressed"], //可以指定是原图还是压缩图,默认二者都有
  426. sourceType: ["camera", "album"], //从相册选择
  427. success: function (res) {
  428. pathToBase64(res.tempFilePaths[0])
  429. .then((path) => {
  430. console.log("Base64返回", path)
  431. var data = {
  432. source: "1",
  433. agencyId: "52010106004",
  434. imageType: imageType,
  435. fileName: res.tempFilePaths[0],
  436. imageBase64: path,
  437. };
  438. const options = {
  439. type: 2,
  440. data: data,
  441. method: "POST",
  442. showLoading: true,
  443. };
  444. request(etcCarOcrCard, options).then((res) => {
  445. const data = stringToJson(res.bizContent);
  446. console.log(data);
  447. if (val === "1") {
  448. state.form.vehicleIdNum = data.plate_a;
  449. state.form.man = data.man;
  450. state.form.vehicleType = data.vehicle;
  451. state.form.character = data.character;
  452. state.form.vin = data.vin;
  453. state.form.engineNum = data.engine;
  454. state.form.register = data.register;
  455. state.form.issueDate = data.issue;
  456. state.form.vehPosImgUrl = data.imageUrl;
  457. state.form.vehicleModel = data.model;
  458. } else {
  459. state.form.approvedCount = parseFloat(data.apc);
  460. state.form.maintenaceMass = parseFloat(data.unladen);
  461. state.form.vehicleDimensions = data.overall.replaceAll("x", "X");
  462. let arr = data.overall.split("x");
  463. state.outlineL = arr[0]; //外廓 长
  464. state.outlineW = arr[1]; //外廓 宽
  465. state.outlineH = arr[2].substring(0, arr[2].length - 2); //外廓 高
  466. state.form.totalMass = parseFloat(data.gross);
  467. state.form.vehNegImgUrl = data.imageUrl;
  468. }
  469. });
  470. })
  471. .catch((error) => { console.log("Base64异常", error) });
  472. },
  473. });
  474. };
  475. //过户检测
  476. const queryGuoHuJianCeAction = () => {
  477. var data = {
  478. orderId: state.form.orderId,
  479. };
  480. const options = {
  481. type: 2,
  482. data: data,
  483. method: "POST",
  484. showLoading: true,
  485. };
  486. return new Promise(async (resolve, reject) => {
  487. const res = await request(queryGuoHuJianCe, options);
  488. const data = stringToJson(res.bizContent);
  489. resolve(data);
  490. }).catch((error) => {
  491. reject(error);
  492. });
  493. };
  494. //过户操作
  495. const guohuAction = (val) => {
  496. var data = {
  497. orderId: state.form.orderId,
  498. serviceType: "USE",
  499. obuId: val.obuId,
  500. cardId: val.cardId,
  501. };
  502. const options = {
  503. type: 2,
  504. data: data,
  505. method: "POST",
  506. showLoading: true,
  507. };
  508. return new Promise(async (resolve, reject) => {
  509. const res = await request(queryGuoHuCaoZuo, options);
  510. const data = stringToJson(res.bizContent);
  511. state.show = false;
  512. uni.navigateTo({
  513. url: `/subpackage/orders/choice-product?orderId=${state.form.orderId}`,
  514. });
  515. }).catch((error) => {
  516. reject(error);
  517. });
  518. };
  519. //替换图片地址
  520. const strReplace = (str : string) => {
  521. let imgUrl = str.replace("http://192.168.101.145:9000", envs[process.env.NODE_ENV].baseUrl);
  522. imgUrl = imgUrl.replace("http://100.64.2.113:9000", envs[process.env.NODE_ENV].baseUrl);
  523. return imgUrl;
  524. };
  525. const getGlobalParam = () => {
  526. const data = getItem('globalParam')
  527. console.log("全局配置数据", getCodeName('IS_ENABLE', data.applyChangeOCRCarInfo))
  528. // 申办时是否允许修改OCR识别出来的车辆信息数据
  529. if (getCodeName('IS_ENABLE', data.applyChangeOCRCarInfo) == '启用') {
  530. state.isEnableChangeOCRCarInfo = true;
  531. } else {
  532. state.isEnableChangeOCRCarInfo = false;
  533. }
  534. }
  535. const bindDateChange1 = (e) => {
  536. state.form.register = e.detail.value
  537. state.changeColor = true;
  538. }
  539. const bindDateChange2 = (e) => {
  540. state.form.issueDate = e.detail.value
  541. state.changeColor = true;
  542. }
  543. </script>
  544. <style lang="scss" scoped>
  545. .hui {
  546. color: #ccc;
  547. }
  548. .hei {
  549. color: black;
  550. }
  551. .goto {
  552. margin-right: 20rpx;
  553. padding: 10rpx;
  554. color: #00b38b;
  555. border: 1rpx solid #00b38b;
  556. border-radius: 20rpx;
  557. }
  558. .flex {
  559. display: flex;
  560. align-items: center;
  561. }
  562. .bettwen-center {
  563. display: flex;
  564. align-items: center;
  565. justify-content: space-between;
  566. }
  567. .card {
  568. margin: 20rpx;
  569. height: 150rpx;
  570. background: #ffffff;
  571. box-shadow: 0rpx 4rpx 13rpx 3rpx rgba(223, 223, 223, 0.8);
  572. border-radius: 20rpx;
  573. padding: 20rpx;
  574. display: flex;
  575. justify-content: space-between;
  576. align-items: center;
  577. margin-bottom: 30rpx;
  578. .card-left {
  579. display: flex;
  580. align-items: center;
  581. image {
  582. width: 100rpx;
  583. height: 90rpx;
  584. }
  585. .card-center {
  586. margin-left: 30rpx;
  587. .card-center-head {
  588. font-size: 32rpx;
  589. font-family: Noto Sans S Chinese;
  590. font-weight: 400;
  591. color: #333333;
  592. }
  593. .tips {
  594. font-size: 26rpx;
  595. font-family: Noto Sans S Chinese;
  596. font-weight: 400;
  597. color: #666666;
  598. .tips-card {
  599. width: 70rpx;
  600. height: 40rpx;
  601. background: #d3f2ef;
  602. border-radius: 6rpx;
  603. font-size: 20rpx;
  604. font-family: Noto Sans S Chinese;
  605. font-weight: 400;
  606. color: #0a8f8a;
  607. padding: 5rpx 10rpx;
  608. margin-left: 20rpx;
  609. }
  610. }
  611. }
  612. }
  613. .choose-item {
  614. margin-right: 20rpx;
  615. width: 50rpx;
  616. height: 50rpx;
  617. border: 1rpx solid #00b38b;
  618. border-radius: 50%;
  619. display: flex;
  620. justify-content: center;
  621. align-items: center;
  622. .active {
  623. width: 38rpx;
  624. height: 38rpx;
  625. background: #00b38b;
  626. border-radius: 50%;
  627. }
  628. }
  629. }
  630. .content {
  631. position: relative;
  632. margin-top: -50rpx;
  633. padding: 0rpx 30rpx;
  634. position: relative;
  635. .img-pos {
  636. position: absolute;
  637. left: 270rpx;
  638. top: -38rpx;
  639. right: 50rpx;
  640. .img-flex {
  641. display: flex;
  642. justify-content: space-between;
  643. align-items: center;
  644. .car-img {
  645. width: 86rpx;
  646. height: 42rpx;
  647. }
  648. .flag-img {
  649. width: 30rpx;
  650. height: 35rpx;
  651. }
  652. }
  653. }
  654. .action {
  655. padding-left: 20rpx;
  656. padding-right: 20rpx;
  657. padding-bottom: 30rpx;
  658. .button {
  659. height: 80rpx;
  660. background: linear-gradient(-90deg, #43a1e0 0%, #13e7c1 100%);
  661. border-radius: 40rpx;
  662. font-size: 32rpx;
  663. font-weight: 400;
  664. color: #ffffff;
  665. line-height: 80rpx;
  666. }
  667. }
  668. .item-tips {
  669. .title {
  670. font-size: 30rpx;
  671. font-family: Microsoft YaHei;
  672. font-weight: 400;
  673. color: #000000;
  674. line-height: 24rpx;
  675. }
  676. .tip {
  677. margin-top: 16rpx;
  678. font-size: 24rpx;
  679. font-family: Microsoft YaHei;
  680. font-weight: 400;
  681. color: #999999;
  682. line-height: 24rpx;
  683. }
  684. }
  685. .picture-wrapper {
  686. margin-top: 40rpx;
  687. .bg {
  688. background: #ffffff;
  689. box-shadow: 0rpx 4rpx 13rpx 3rpx rgba(223, 223, 223, 0.8);
  690. border-radius: 20rpx;
  691. padding: 40rpx;
  692. display: flex;
  693. // align-items: center;
  694. justify-content: space-between;
  695. .name {
  696. font-size: 34rpx;
  697. font-family: Microsoft YaHei;
  698. font-weight: 400;
  699. color: #000000;
  700. line-height: 34rpx;
  701. }
  702. .value {
  703. margin-top: 20rpx;
  704. font-size: 24rpx;
  705. font-family: Microsoft YaHei;
  706. font-weight: 400;
  707. color: #999999;
  708. line-height: 24rpx;
  709. }
  710. .tip {
  711. margin-top: 20rpx;
  712. text-align: center;
  713. width: 110rpx;
  714. height: 40rpx;
  715. background: rgba(33, 190, 177, 0.2);
  716. border-radius: 6rpx;
  717. .tip-value {
  718. font-size: 20rpx;
  719. font-family: Microsoft YaHei;
  720. font-weight: 400;
  721. color: #0a8f8a;
  722. line-height: 40rpx;
  723. opacity: 1;
  724. }
  725. }
  726. }
  727. .icon {
  728. width: 294rpx;
  729. height: 188rpx;
  730. }
  731. }
  732. .shibie-wrapper {
  733. margin-top: 60rpx;
  734. .title {
  735. font-size: 30rpx;
  736. font-family: Microsoft YaHei;
  737. font-weight: 400;
  738. color: #000000;
  739. line-height: 30rpx;
  740. }
  741. }
  742. .buchong-wrapper {
  743. margin-top: 60rpx;
  744. .title {
  745. font-size: 30rpx;
  746. font-family: Microsoft YaHei;
  747. font-weight: 400;
  748. color: #000000;
  749. line-height: 30rpx;
  750. }
  751. }
  752. .green-tip {
  753. margin-top: 50rpx;
  754. font-size: 24rpx;
  755. font-family: Microsoft YaHei;
  756. font-weight: 400;
  757. color: #00b38b;
  758. line-height: 24rpx;
  759. margin-bottom: 60rpx;
  760. }
  761. }
  762. .form-item {
  763. display: flex;
  764. font-size: 28rpx;
  765. justify-content: space-between;
  766. align-items: center;
  767. }
  768. .form-item label {}
  769. .form-item .input-box {
  770. display: flex;
  771. align-items: center;
  772. }
  773. .form-item .select {
  774. flex: 1;
  775. background: #f1f1f1;
  776. padding: 6rpx 20rpx;
  777. margin: 0 10rpx;
  778. min-height: 48rpx;
  779. line-height: 48rpx;
  780. border-radius: 8rpx;
  781. }
  782. .form-item .icon {
  783. width: 28rpx;
  784. height: 32rpx;
  785. }
  786. .form-item .input-box input {
  787. width: 90rpx;
  788. background: #f1f1f1;
  789. border-radius: 8rpx;
  790. padding: 0 5rpx;
  791. }
  792. .form-item .sub-text {
  793. color: #808080;
  794. padding-left: 10rpx;
  795. }
  796. .form-item .sub-label {
  797. padding: 0 10rpx;
  798. }
  799. .window {
  800. padding: 60rpx 30rpx;
  801. }
  802. .window .window-item {
  803. border: 1px solid #00b38b;
  804. background: rgba(0, 179, 139, .1);
  805. border-radius: 10rpx;
  806. padding: 16rpx 30rpx;
  807. font-size: 30rpx;
  808. margin-bottom: 10rpx;
  809. }
  810. ::v-deep .u-input__input {
  811. background: transparent;
  812. }
  813. </style>