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

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