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

car-release.vue 25KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887
  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.orderId}&&clientFee=${state.clientFee}&&id=${state.id}`
  263. // url: `/subpackage/orders/sign-up?orderId=${state.form.orderId}&&clientFee=${getItem("clientFee")}&&id=${getItem("productId")}`,
  264. });
  265. // #endif
  266. }
  267. } else {
  268. // 不签约
  269. // uni.redirectTo({
  270. // url: `/subpackage/orders/sign-up?orderId=${state.form.orderId}&&clientFee=${getItem("clientFee")}&&id=${getItem("productId")}`,
  271. // });
  272. uni.redirectTo({
  273. url: `/subpackage/orders/interestsList?orderId=${state.form.orderId}&&clientFee=${getItem("clientFee")}&&id=${getItem("productId")}`
  274. });
  275. // uni.redirectTo({
  276. // url: `/subpackage/orders/release-products?orderId=${state.form.orderId}&clientFee=${getItem('clientFee')}&&id=${getItem('productId')}`,
  277. // });
  278. }
  279. }
  280. });
  281. })
  282. .catch((res) => {
  283. console.log(res);
  284. });
  285. };
  286. const selectConfirm = (index : any) => {
  287. console.log(index);
  288. state.form.useUserType = state.actionSheetList[index].value;
  289. state.form.useUserTypeName = state.actionSheetList[index].text;
  290. };
  291. //选择车辆用户类型
  292. const userType = (item : any) => {
  293. state.form.useUserType = item.value;
  294. state.form.useUserTypeName = item.text;
  295. state.actionSheetShow = false;
  296. }
  297. //车头照图片上传
  298. const cardFileImageUpdate = () => {
  299. uni.chooseImage({
  300. count: 1, //只能选取一张照片
  301. sizeType: ["original", "compressed"], //可以指定是原图还是压缩图,默认二者都有
  302. sourceType: ["camera", "album"], //从相册选择
  303. success: function (res) {
  304. pathToBase64(res.tempFilePaths[0])
  305. .then((path) => {
  306. var data = {
  307. fileBase64: path,
  308. };
  309. const options = {
  310. type: 2,
  311. data: data,
  312. method: "POST",
  313. showLoading: true,
  314. };
  315. request(fileUpload, options).then((res) => {
  316. const data = stringToJson(res.bizContent);
  317. console.log(data);
  318. state.form.vehBodyUrl = data.data.url;
  319. });
  320. })
  321. .catch((error) => { });
  322. },
  323. });
  324. };
  325. const state = reactive({
  326. changeColor: false,
  327. data: {
  328. transferLogs: [],
  329. },
  330. actionSheetShow: false,
  331. actionSheetList: [],
  332. form: {
  333. orderId: "", //订单ID
  334. man: "", //所有人
  335. character: "", //使用性质
  336. register: "请输入注册日期", //注册日期
  337. customerId: "", //用户编号
  338. vehicleId: "",
  339. vehicleIdNum: "", //车牌编号
  340. issueDate: "请输入发证日期", //发证日期
  341. vehPosImgUrl: "", //行驶证正面
  342. vehNegImgUrl: "", //行驶证证反面
  343. type: "0", //0,客车 1.货车
  344. useUserType: 0, //车辆用户类型
  345. useUserTypeName: "普通车",
  346. vehicleSign: 2, //前/后装标识
  347. vin: "", //车辆识别代号
  348. engineNum: "", //发动机号码
  349. vehicleType: "", //车辆类型
  350. vehicleModel: "", //行驶证品牌型号
  351. approvedCount: undefined, //核定人数
  352. totalMass: undefined, //总质量
  353. maintenaceMass: undefined, //整备质量
  354. permittedWeight: "", //核定载质量
  355. vehicleDimensions: "", //车辆尺寸
  356. permittedTowWeight: "", //准牵引总质量
  357. axleCount: "", //车轴数
  358. ownerName: "", //车主姓名
  359. ownerIdType: "", //车主证件类型
  360. ownerIdNum: "", //车主证件号码
  361. ownPosImgUrl: "", //车主证件正面图片
  362. ownNegImgUrl: "", //车主证件反面图片
  363. agreementId: "", //签约编号
  364. channelId: "5201018892300000001", //编号渠道
  365. scenePayType: "", //
  366. transportIdNum: "", //道路运输证编号
  367. licenseIdNum: "", //经营许可证编号
  368. vehBodyUrl: "", //车身照片
  369. proxyUrl: "", //委托书地址
  370. opId: "",
  371. },
  372. vehiclePlateColor: undefined,
  373. orderId: "",
  374. // type: undefined, //标记来源是否登录 1为未登录数据 - 需要新增地址
  375. show: false,
  376. isMyPeopple: true,
  377. outlineL: "",
  378. outlineW: "",
  379. outlineH: "",
  380. isSign: '',
  381. isEnableChangeOCRCarInfo: true, //申办时是否允许修改OCR识别出来的车辆信息数据
  382. });
  383. onLoad((option : any) => {
  384. state.form.orderId = option.orderId;
  385. // state.type = option.type;
  386. state.form.type = option.type;
  387. state.vehiclePlateColor = option.vehiclePlateColor;
  388. state.isSign = option.isSign
  389. console.log("option", option)
  390. getGlobalParam();
  391. if (option.type == 1) {
  392. state.actionSheetList = [{
  393. text: "普通车",
  394. value: 0,
  395. }]
  396. } else {
  397. state.actionSheetList = [{
  398. text: "普通车",
  399. value: 0,
  400. },
  401. {
  402. text: "道路运输证经营范围仅有“货物专用运输(集装箱) ”的牵引车办理J类型集装箱",
  403. value: 24,
  404. },
  405. {
  406. text: "道路运输证经营范围不含“货物专用运输(集装箱)”的牵引车",
  407. value: 27,
  408. },
  409. {
  410. text: '道路运输证经营范围除“货物专用运输 (集装 箱)"外,还有“普通货运”等其他项目的牵引车办理J2类型集装箱',
  411. value: 28,
  412. }]
  413. }
  414. });
  415. //外廓尺寸输入框
  416. const outlineInput = (e) => {
  417. state.form.vehicleDimensions =
  418. state.outlineL + "X" + state.outlineW + "X" + state.outlineH + "mm";
  419. };
  420. //orc接口调用
  421. const cardImageOcr = (val : any) => {
  422. state.changeColor = true;
  423. var imageType = val;
  424. uni.chooseImage({
  425. count: 1, //只能选取一张照片
  426. sizeType: ["original", "compressed"], //可以指定是原图还是压缩图,默认二者都有
  427. sourceType: ["camera", "album"], //从相册选择
  428. success: function (res) {
  429. pathToBase64(res.tempFilePaths[0])
  430. .then((path) => {
  431. console.log("Base64返回", path)
  432. var data = {
  433. source: "1",
  434. agencyId: "52010106004",
  435. imageType: imageType,
  436. fileName: res.tempFilePaths[0],
  437. imageBase64: path,
  438. };
  439. const options = {
  440. type: 2,
  441. data: data,
  442. method: "POST",
  443. showLoading: true,
  444. };
  445. request(etcCarOcrCard, options).then((res) => {
  446. const data = stringToJson(res.bizContent);
  447. console.log(data);
  448. if (val === "1") {
  449. state.form.vehicleIdNum = data.plate_a;
  450. state.form.man = data.man;
  451. state.form.vehicleType = data.vehicle;
  452. state.form.character = data.character;
  453. state.form.vin = data.vin;
  454. state.form.engineNum = data.engine;
  455. state.form.register = data.register;
  456. state.form.issueDate = data.issue;
  457. state.form.vehPosImgUrl = data.imageUrl;
  458. state.form.vehicleModel = data.model;
  459. } else {
  460. state.form.approvedCount = parseFloat(data.apc);
  461. state.form.maintenaceMass = parseFloat(data.unladen);
  462. state.form.vehicleDimensions = data.overall.replaceAll("x", "X");
  463. let arr = data.overall.split("x");
  464. state.outlineL = arr[0]; //外廓 长
  465. state.outlineW = arr[1]; //外廓 宽
  466. state.outlineH = arr[2].substring(0, arr[2].length - 2); //外廓 高
  467. state.form.totalMass = parseFloat(data.gross);
  468. state.form.vehNegImgUrl = data.imageUrl;
  469. }
  470. });
  471. })
  472. .catch((error) => { console.log("Base64异常", error) });
  473. },
  474. });
  475. };
  476. //过户检测
  477. const queryGuoHuJianCeAction = () => {
  478. var data = {
  479. orderId: state.form.orderId,
  480. };
  481. const options = {
  482. type: 2,
  483. data: data,
  484. method: "POST",
  485. showLoading: true,
  486. };
  487. return new Promise(async (resolve, reject) => {
  488. const res = await request(queryGuoHuJianCe, options);
  489. const data = stringToJson(res.bizContent);
  490. resolve(data);
  491. }).catch((error) => {
  492. reject(error);
  493. });
  494. };
  495. //过户操作
  496. const guohuAction = (val) => {
  497. var data = {
  498. orderId: state.form.orderId,
  499. serviceType: "USE",
  500. obuId: val.obuId,
  501. cardId: val.cardId,
  502. };
  503. const options = {
  504. type: 2,
  505. data: data,
  506. method: "POST",
  507. showLoading: true,
  508. };
  509. return new Promise(async (resolve, reject) => {
  510. const res = await request(queryGuoHuCaoZuo, options);
  511. const data = stringToJson(res.bizContent);
  512. state.show = false;
  513. uni.navigateTo({
  514. url: `/subpackage/orders/choice-product?orderId=${state.form.orderId}`,
  515. });
  516. }).catch((error) => {
  517. reject(error);
  518. });
  519. };
  520. //替换图片地址
  521. const strReplace = (str : string) => {
  522. let imgUrl = str.replace("http://192.168.101.145:9000", envs[process.env.NODE_ENV].baseUrl);
  523. imgUrl = imgUrl.replace("http://100.64.2.113:9000", envs[process.env.NODE_ENV].baseUrl);
  524. return imgUrl;
  525. };
  526. const getGlobalParam = () => {
  527. const data = getItem('globalParam')
  528. console.log("全局配置数据", getCodeName('IS_ENABLE', data.applyChangeOCRCarInfo))
  529. // 申办时是否允许修改OCR识别出来的车辆信息数据
  530. if (getCodeName('IS_ENABLE', data.applyChangeOCRCarInfo) == '启用') {
  531. state.isEnableChangeOCRCarInfo = true;
  532. } else {
  533. state.isEnableChangeOCRCarInfo = false;
  534. }
  535. }
  536. const bindDateChange1 = (e) => {
  537. state.form.register = e.detail.value
  538. state.changeColor = true;
  539. }
  540. const bindDateChange2 = (e) => {
  541. state.form.issueDate = e.detail.value
  542. state.changeColor = true;
  543. }
  544. </script>
  545. <style lang="scss" scoped>
  546. .hui {
  547. color: #ccc;
  548. }
  549. .hei {
  550. color: black;
  551. }
  552. .goto {
  553. margin-right: 20rpx;
  554. padding: 10rpx;
  555. color: #00b38b;
  556. border: 1rpx solid #00b38b;
  557. border-radius: 20rpx;
  558. }
  559. .flex {
  560. display: flex;
  561. align-items: center;
  562. }
  563. .bettwen-center {
  564. display: flex;
  565. align-items: center;
  566. justify-content: space-between;
  567. }
  568. .card {
  569. margin: 20rpx;
  570. height: 150rpx;
  571. background: #ffffff;
  572. box-shadow: 0rpx 4rpx 13rpx 3rpx rgba(223, 223, 223, 0.8);
  573. border-radius: 20rpx;
  574. padding: 20rpx;
  575. display: flex;
  576. justify-content: space-between;
  577. align-items: center;
  578. margin-bottom: 30rpx;
  579. .card-left {
  580. display: flex;
  581. align-items: center;
  582. image {
  583. width: 100rpx;
  584. height: 90rpx;
  585. }
  586. .card-center {
  587. margin-left: 30rpx;
  588. .card-center-head {
  589. font-size: 32rpx;
  590. font-family: Noto Sans S Chinese;
  591. font-weight: 400;
  592. color: #333333;
  593. }
  594. .tips {
  595. font-size: 26rpx;
  596. font-family: Noto Sans S Chinese;
  597. font-weight: 400;
  598. color: #666666;
  599. .tips-card {
  600. width: 70rpx;
  601. height: 40rpx;
  602. background: #d3f2ef;
  603. border-radius: 6rpx;
  604. font-size: 20rpx;
  605. font-family: Noto Sans S Chinese;
  606. font-weight: 400;
  607. color: #0a8f8a;
  608. padding: 5rpx 10rpx;
  609. margin-left: 20rpx;
  610. }
  611. }
  612. }
  613. }
  614. .choose-item {
  615. margin-right: 20rpx;
  616. width: 50rpx;
  617. height: 50rpx;
  618. border: 1rpx solid #00b38b;
  619. border-radius: 50%;
  620. display: flex;
  621. justify-content: center;
  622. align-items: center;
  623. .active {
  624. width: 38rpx;
  625. height: 38rpx;
  626. background: #00b38b;
  627. border-radius: 50%;
  628. }
  629. }
  630. }
  631. .content {
  632. position: relative;
  633. margin-top: -50rpx;
  634. padding: 0rpx 30rpx;
  635. position: relative;
  636. .img-pos {
  637. position: absolute;
  638. left: 270rpx;
  639. top: -38rpx;
  640. right: 50rpx;
  641. .img-flex {
  642. display: flex;
  643. justify-content: space-between;
  644. align-items: center;
  645. .car-img {
  646. width: 86rpx;
  647. height: 42rpx;
  648. }
  649. .flag-img {
  650. width: 30rpx;
  651. height: 35rpx;
  652. }
  653. }
  654. }
  655. .action {
  656. padding-left: 20rpx;
  657. padding-right: 20rpx;
  658. padding-bottom: 30rpx;
  659. .button {
  660. height: 80rpx;
  661. background: linear-gradient(-90deg, #43a1e0 0%, #13e7c1 100%);
  662. border-radius: 40rpx;
  663. font-size: 32rpx;
  664. font-weight: 400;
  665. color: #ffffff;
  666. line-height: 80rpx;
  667. }
  668. }
  669. .item-tips {
  670. .title {
  671. font-size: 30rpx;
  672. font-family: Microsoft YaHei;
  673. font-weight: 400;
  674. color: #000000;
  675. line-height: 24rpx;
  676. }
  677. .tip {
  678. margin-top: 16rpx;
  679. font-size: 24rpx;
  680. font-family: Microsoft YaHei;
  681. font-weight: 400;
  682. color: #999999;
  683. line-height: 24rpx;
  684. }
  685. }
  686. .picture-wrapper {
  687. margin-top: 40rpx;
  688. .bg {
  689. background: #ffffff;
  690. box-shadow: 0rpx 4rpx 13rpx 3rpx rgba(223, 223, 223, 0.8);
  691. border-radius: 20rpx;
  692. padding: 40rpx;
  693. display: flex;
  694. // align-items: center;
  695. justify-content: space-between;
  696. .name {
  697. font-size: 34rpx;
  698. font-family: Microsoft YaHei;
  699. font-weight: 400;
  700. color: #000000;
  701. line-height: 34rpx;
  702. }
  703. .value {
  704. margin-top: 20rpx;
  705. font-size: 24rpx;
  706. font-family: Microsoft YaHei;
  707. font-weight: 400;
  708. color: #999999;
  709. line-height: 24rpx;
  710. }
  711. .tip {
  712. margin-top: 20rpx;
  713. text-align: center;
  714. width: 110rpx;
  715. height: 40rpx;
  716. background: rgba(33, 190, 177, 0.2);
  717. border-radius: 6rpx;
  718. .tip-value {
  719. font-size: 20rpx;
  720. font-family: Microsoft YaHei;
  721. font-weight: 400;
  722. color: #0a8f8a;
  723. line-height: 40rpx;
  724. opacity: 1;
  725. }
  726. }
  727. }
  728. .icon {
  729. width: 294rpx;
  730. height: 188rpx;
  731. }
  732. }
  733. .shibie-wrapper {
  734. margin-top: 60rpx;
  735. .title {
  736. font-size: 30rpx;
  737. font-family: Microsoft YaHei;
  738. font-weight: 400;
  739. color: #000000;
  740. line-height: 30rpx;
  741. }
  742. }
  743. .buchong-wrapper {
  744. margin-top: 60rpx;
  745. .title {
  746. font-size: 30rpx;
  747. font-family: Microsoft YaHei;
  748. font-weight: 400;
  749. color: #000000;
  750. line-height: 30rpx;
  751. }
  752. }
  753. .green-tip {
  754. margin-top: 50rpx;
  755. font-size: 24rpx;
  756. font-family: Microsoft YaHei;
  757. font-weight: 400;
  758. color: #00b38b;
  759. line-height: 24rpx;
  760. margin-bottom: 60rpx;
  761. }
  762. }
  763. .form-item {
  764. display: flex;
  765. font-size: 28rpx;
  766. justify-content: space-between;
  767. align-items: center;
  768. }
  769. .form-item label {}
  770. .form-item .input-box {
  771. display: flex;
  772. align-items: center;
  773. }
  774. .form-item .select {
  775. flex: 1;
  776. background: #f1f1f1;
  777. padding: 6rpx 20rpx;
  778. margin: 0 10rpx;
  779. min-height: 48rpx;
  780. line-height: 48rpx;
  781. border-radius: 8rpx;
  782. }
  783. .form-item .icon {
  784. width: 28rpx;
  785. height: 32rpx;
  786. }
  787. .form-item .input-box input {
  788. width: 90rpx;
  789. background: #f1f1f1;
  790. border-radius: 8rpx;
  791. padding: 0 5rpx;
  792. }
  793. .form-item .sub-text {
  794. color: #808080;
  795. padding-left: 10rpx;
  796. }
  797. .form-item .sub-label {
  798. padding: 0 10rpx;
  799. }
  800. .window {
  801. padding: 60rpx 30rpx;
  802. }
  803. .window .window-item {
  804. border: 1px solid #00b38b;
  805. background: rgba(0, 179, 139, .1);
  806. border-radius: 10rpx;
  807. padding: 16rpx 30rpx;
  808. font-size: 30rpx;
  809. margin-bottom: 10rpx;
  810. }
  811. ::v-deep .u-input__input {
  812. background: transparent;
  813. }
  814. </style>