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.

unsuspend-confirm.vue 22KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850
  1. <template>
  2. <view class="selectCar-box">
  3. <view class="details">
  4. <view class="title"> 基础信息 </view>
  5. <view class="details-item">
  6. <view> 订单编号: </view>
  7. <text>{{ orderInfos.orderId }}</text>
  8. </view>
  9. <view class="details-item">
  10. <view> 用户名称: </view>
  11. <text>{{ orderInfos.ownerName }}</text>
  12. </view>
  13. <view class="details-item">
  14. <view> 用户证件类型: </view>
  15. <text>{{ getCodeName('CERTIFICATE_TYPE',orderInfos.ownerIdtype) }}</text>
  16. </view>
  17. <view class="details-item">
  18. <view> 用户证件号: </view>
  19. <text>{{ orderInfos.ownerIdnum }}</text>
  20. </view>
  21. <view class="details-item">
  22. <view> 订单车牌号: </view>
  23. <text style="color: #00b38b">{{ orderInfos.vehiclePlate }}</text>
  24. </view>
  25. <view class="details-item">
  26. <view> 车牌颜色: </view>
  27. <text style="color: #00b38b">{{
  28. orderInfos.vehiclePlateColorStr
  29. }}</text>
  30. </view>
  31. <view class="details-item">
  32. <view> 收费车型: </view>
  33. <text>{{ orderInfos.vehicleType }}</text>
  34. </view>
  35. </view>
  36. <view class="title"> 卡信息 </view>
  37. <view class="card">
  38. <view class="card-left">
  39. <image :src="`${$imgUrl}card2.png`" mode=""></image>
  40. <view class="card-center">
  41. <view class="card-center-head"> {{orderInfos.cardId}} </view>
  42. <view class="tips">
  43. <!-- <text>储蓄卡</text> -->
  44. <text class="tips-card">{{getCodeName('CARD_STATE_TYPE',orderInfos.cardStatus)}}</text>
  45. </view>
  46. <view class="choose-item1"> 有效期:{{orderInfos.cardExpireTime }}</view>
  47. </view>
  48. </view>
  49. <view class="choose-item" @click="choose(1)">
  50. <view class="active" v-if="flag.includes(1)">
  51. </view>
  52. </view>
  53. </view>
  54. <view class="title"> OBU设备信息 </view>
  55. <view class="card">
  56. <view class="card-left">
  57. <image :src="`${$imgUrl}card1.png`" mode=""></image>
  58. <view class="card-center">
  59. <view class="card-center-head"> {{orderInfos.obuId}} </view>
  60. <view class="tips">
  61. <!-- <text>储蓄卡</text> -->
  62. <text class="tips-card">{{getCodeName('OBU_STATE_TYPE',orderInfos.obuStatus)}}</text>
  63. </view>
  64. <view class="choose-item1"> 有效期:{{orderInfos.obuExpireTime }} </view>
  65. </view>
  66. </view>
  67. <view class="choose-item" @click="choose(2)">
  68. <view class="active" v-if="flag.includes(2)">
  69. </view>
  70. </view>
  71. </view>
  72. <button class="submit" @click="toPage" v-if="!state.flag">卡签续期</button>
  73. <button class="submit" @click="toBack" v-else="state.flag">返回服务中心</button>
  74. <view class="mask" v-show="state.showPopup">
  75. <view class="main">
  76. <view class="top">
  77. <image class="icon-close" :src="`${$imgUrl}common/icon-close.png`" @click="cancel"></image>
  78. </view>
  79. <image class="icon-success" :src="`${$imgUrl}bluetooth/card-success.png`"></image>
  80. <view class="title">{{state.successName}}续期成功!</view>
  81. </view>
  82. </view>
  83. </view>
  84. </template>
  85. <script setup>
  86. import {
  87. getCodeName
  88. } from "@/datas/queryKey.js";
  89. import {
  90. reactive,
  91. ref
  92. } from "vue";
  93. import {
  94. navTo
  95. } from "@/utils/utils";
  96. import {
  97. onLoad,
  98. onUnload,
  99. onShow
  100. } from "@dcloudio/uni-app";
  101. import {
  102. request
  103. } from "@/utils/network/request.js";
  104. import {
  105. orderDetail,
  106. cardRenewal,
  107. writeCardBack,
  108. cardModifyConfirm,
  109. obuRenewal,
  110. modifyObuVehicleInfo,
  111. obuActivation,
  112. renewalTimeApi
  113. } from "@/utils/network/api.js";
  114. import {
  115. getVehiclePlateColor
  116. } from "@/datas/vehiclePlateColor";
  117. import {
  118. searchVehicleInfoQuery
  119. } from "@/subpackage/after-sale/js/publicRequest";
  120. const cmd = require("../../../static/etcUtil/cmdConfig.js");
  121. import {
  122. IntegerToHexString,
  123. AsciToHexString,
  124. } from "@/utils/util/fileData.js";
  125. import {
  126. stringToJson
  127. } from "@/utils/network/encryption";
  128. const tools = require("../../../static/etcUtil/tools.js");
  129. const bluetoothUtil = require("../../../static/etcUtil/index.js");
  130. const state = reactive({
  131. showPopup: false,
  132. flag: false,
  133. successName: ""
  134. })
  135. const flag = reactive([])
  136. const type = ref('')
  137. const fileDataStrings = reactive({
  138. approvedCount: 0, //核载人数
  139. cardId: "", //卡号
  140. obuId: "", //obu号
  141. obuId: "", //obu号
  142. packageNum: "", //套餐编号
  143. axleCount: 0, //轴数
  144. axleDistance: "", //轴距
  145. engineNum: "", //发动机
  146. vehicleVin: "",
  147. vehicleEngineNum: "",
  148. cardStatus: "",
  149. obuStatus: "",
  150. type: 0, //类型
  151. userType: 0, //用户类型
  152. vehiclePlate: "", //车牌
  153. vehiclePlateColor: 0, //车牌颜色
  154. vehicleDimensions: "",
  155. outlineL: 0, //外廓 长
  156. outlineW: 0, //外廓 宽
  157. outlineH: 0, //外廓 高
  158. wheelCount: "", //车轮数
  159. vehicleIdNo: "", //车牌号
  160. vehiclePlateColorStr: "",
  161. customerTel: "",
  162. customerId: "",
  163. orderId: ""
  164. });
  165. let cmdRandNum = '';
  166. const orderInfos = reactive({
  167. orderId: "",
  168. ownerName: "",
  169. ownerIdtype: "",
  170. ownerIdnum: "",
  171. vehiclePlate: "",
  172. vehiclePlateColorStr: "",
  173. vehiclePlateColor: "",
  174. vehicleType: "",
  175. cardId: "",
  176. cardStatus: "",
  177. obuId: "",
  178. obuStatus: "",
  179. cardEnableTime: "",
  180. obuEnableTime: "",
  181. cardExpireTime: "",
  182. obuExpireTime: ""
  183. });
  184. let orderInfo = {};
  185. onLoad((option) => {
  186. //请求订单详情
  187. queryOrderDetail(option.id);
  188. getOrderDetails(option.id)
  189. });
  190. onShow((option) => {
  191. uni.$on('bluetoothLink', res => {
  192. console.log(res);
  193. if (res.status) {
  194. // 分别写
  195. if (flag.length == 1) {
  196. for (var i = 0; i < flag.length; i++) {
  197. if (flag[i] == 1) {
  198. state.successName = '卡'
  199. getCardRenewal()
  200. } else {
  201. state.successName = '签'
  202. getObuRenewal()
  203. }
  204. }
  205. } else {
  206. state.successName = '卡签'
  207. // 两个都要写,
  208. getCardRenewal()
  209. }
  210. }
  211. })
  212. })
  213. onUnload(() => {
  214. //移除监听
  215. uni.$off('bluetoothLink')
  216. })
  217. const choose = (data) => {
  218. if (!flag.includes(data)) {
  219. flag.push(data)
  220. console.log(flag);
  221. } else {
  222. flag.splice(flag.indexOf(data), 1)
  223. console.log(flag);
  224. }
  225. if (flag.length == 2) {
  226. type.value = '3'
  227. } else if (flag[0] == 1) {
  228. type.value = '1'
  229. } else {
  230. type.value = '2'
  231. }
  232. }
  233. //获取订单详情
  234. const queryOrderDetail = (id) => {
  235. const options = {
  236. type: 2,
  237. data: {
  238. id: id,
  239. },
  240. method: "POST",
  241. showLoading: true,
  242. };
  243. request(orderDetail, options).then((res) => {
  244. let orderInfo = JSON.parse(res.bizContent);
  245. console.log("orderInfo", orderInfo);
  246. orderInfos.orderId = orderInfo.orderId;
  247. orderInfos.ownerName = orderInfo.ownerName;
  248. orderInfos.ownerIdtype = orderInfo.ownerIdtype;
  249. orderInfos.ownerIdnum = orderInfo.ownerIdnum;
  250. orderInfos.vehiclePlate = orderInfo.vehiclePlate;
  251. orderInfos.vehiclePlateColorStr = orderInfo.vehiclePlateColorStr;
  252. orderInfos.vehiclePlateColor = orderInfo.vehiclePlateColor;
  253. orderInfos.vehicleType = orderInfo.vehicleType;
  254. orderInfos.cardId = orderInfo.cardId;
  255. orderInfos.cardStatus = orderInfo.cardStatus;
  256. orderInfos.obuId = orderInfo.obuId;
  257. orderInfos.obuStatus = orderInfo.obuStatus;
  258. orderInfos.cardExpireTime = orderInfo.cardExpireTime;
  259. orderInfos.obuExpireTime = orderInfo.obuExpireTime;
  260. console.log("orderInfos.cardExpiretime", orderInfos.cardExpiretime, orderInfo.cardExpiretime)
  261. });
  262. };
  263. //卡续期 请求
  264. const getCardRenewal = () => {
  265. const options = {
  266. type: 2,
  267. data: {
  268. cardId: orderInfos.cardId,
  269. },
  270. method: "POST",
  271. showLoading: true,
  272. };
  273. request(cardRenewal, options).then((res) => {
  274. let result = stringToJson(res.bizContent);
  275. let cmdArray = result.command.split(",");
  276. console.log(cmdArray);
  277. console.log(result.cosRecordId);
  278. if (cmdArray.length > 0) {
  279. tools.showLoadingAlert("正在执行指令");
  280. bluetoothUtil.transCmd(cmdArray, "10", function(res) {
  281. tools.hideLoadingAlert();
  282. let status = res[cmdArray.length - 1].substring(res[cmdArray.length - 1].length -
  283. 4, res[cmdArray.length - 1].length);
  284. if (status == "9000") {
  285. getCommandBack(result.command, result.cosRecordId, res.toString());
  286. }
  287. })
  288. }
  289. })
  290. };
  291. /**
  292. * 写卡指令返回 请求
  293. */
  294. const getCommandBack = (command, cosRecordId, response) => {
  295. console.log('======循环写卡指令中======')
  296. tools.showLoadingAlert("加载中");
  297. let options = {
  298. type: 2, //type: 2,JSON格式提交数据(默认表单形式提交)
  299. data: {
  300. cardId: orderInfos.cardId,
  301. orderId: orderInfos.orderId,
  302. command: command,
  303. response: response,
  304. cosRecordId: cosRecordId,
  305. cosType: 2
  306. }, //请求参数
  307. method: "POST", //提交方式(默认POST)
  308. showLoading: true, //是否显示加载中(默认显示)
  309. };
  310. //调用方式
  311. request(writeCardBack, options)
  312. .then((res) => {
  313. tools.hideLoadingAlert();
  314. let result = JSON.parse(res.bizContent);
  315. if (result.orderStatus == 1 || result.orderStatus == "1") {
  316. tools.showLoadingAlert("执行指令中");
  317. bluetoothUtil.transCmd(result.command.split(","), "10", function(res) {
  318. tools.hideLoadingAlert();
  319. let response = res.toString();
  320. getCommandBack(result.command, cosRecordId, response);
  321. });
  322. } else {
  323. getCardModifyConfirm(cosRecordId)
  324. }
  325. })
  326. };
  327. //卡信息变更确认
  328. const getCardModifyConfirm = (cosRecordId) => {
  329. const options = {
  330. type: 2,
  331. data: {
  332. cardId: orderInfos.cardId,
  333. operation: 1,
  334. cosRecordId: cosRecordId
  335. },
  336. method: "POST",
  337. showLoading: true,
  338. };
  339. request(cardModifyConfirm, options).then((res) => {
  340. // 只写卡
  341. if (flag.length == 1) {
  342. sure(1)
  343. state.showPopup = true;
  344. } else {
  345. // 为2要写签
  346. getObuRenewal()
  347. }
  348. })
  349. }
  350. //去连接蓝牙
  351. const toPage = () => {
  352. console.log("flag.length", flag, type)
  353. if (flag.length == 0) {
  354. uni.showToast({
  355. title: '请至少勾选一项',
  356. icon: 'none'
  357. });
  358. } else {
  359. console.log("getCurrentPages()", getCurrentPages())
  360. navTo("/pages/bluetooth/bluetooth?routeType=5"); //去连接蓝牙
  361. }
  362. };
  363. //返回列表
  364. const toBack = () => {
  365. uni.redirectTo({
  366. url: "/pages/service/service"
  367. })
  368. }
  369. //关闭弹窗
  370. const cancel = () => {
  371. state.flag = true;
  372. state.showPopup = false;
  373. uni.navigateTo({
  374. url: `/subpackage/after-sale/deviceInfo/deviceInfo`
  375. })
  376. }
  377. //签续期 请求
  378. const getObuRenewal = () => {
  379. let cmdArray1 = [cmd.HOME_DIRECTORY, cmd.OBU_SYSTEM_FILE, cmd.RANDOM_NUMBER];
  380. tools.showLoadingAlert("正在执行指令");
  381. bluetoothUtil.transCmd(cmdArray1, "20", function(res) {
  382. tools.hideLoadingAlert();
  383. var str = res[2].substring(res[2].length - 4, res[2].length);
  384. if (str == "9000") {
  385. cmdRandNum = res[2].substring(0, res[2].length - 4);
  386. const options = {
  387. type: 2,
  388. data: {
  389. obuId: orderInfos.obuId,
  390. random: cmdRandNum
  391. },
  392. method: "POST",
  393. showLoading: true,
  394. };
  395. request(obuRenewal, options).then((res) => {
  396. let datas = stringToJson(res.bizContent);
  397. console.log("899", datas, datas.data.APDU);
  398. if (datas.data.APDU) {
  399. tools.showLoadingAlert("正在执行指令");
  400. bluetoothUtil.transCmd([datas.data.APDU], "20", function(res) {
  401. tools.hideLoadingAlert();
  402. console.log("res=====", res, res[0])
  403. let cmdArr = [cmd.HOME_DIRECTORY, cmd.OBU_DF01, cmd.OBU_EF01, cmd
  404. .RANDOM_NUMBER
  405. ];
  406. bluetoothUtil.transCmd(cmdArr, "20", function(res) {
  407. console.log("chelaing======", res)
  408. var str = res[3].substring(res[3].length - 4, res[3]
  409. .length);
  410. if (str == "9000") {
  411. cmdRandNum = res[3].substring(0, res[3].length -
  412. 4);
  413. console.log("0000000000000000000000000")
  414. getFileData((demos) => {
  415. modifyVehicle(demos);
  416. })
  417. } else {
  418. tools.alertF("RANDOM_NUMBER指令长度不符" + res[1]);
  419. }
  420. })
  421. })
  422. }
  423. })
  424. } else {
  425. tools.alertF("RANDOM_NUMBER指令长度不符" + res[1]);
  426. }
  427. })
  428. };
  429. //获取fileData
  430. const getFileData = (fun) => {
  431. //调用方式
  432. request('6ed853e432fb4811a3c0d7d27034bd39', {
  433. type: 2, //type: 2,JSON格式提交数据(默认表单形式提交)
  434. data: {
  435. fileData: fileDataStrings.vehiclePlate,
  436. nLen: 24
  437. }, //请求参数
  438. method: "POST", //提交方式(默认POST)
  439. showLoading: true, //是否显示加载中(默认显示)
  440. }).then((les) => {
  441. let result = stringToJson(les.bizContent);
  442. console.log(result, '=========123')
  443. let res1 = result.gbkFileData; //车牌号
  444. let res2 = IntegerToHexString(fileDataStrings.vehiclePlateColor, 4); //车牌颜色
  445. let res3 = IntegerToHexString(fileDataStrings.type, 2); //类型
  446. let userTypeNumber = fileDataStrings.userType == 'PERSONAL_USER' ? 1 : 2
  447. let res4 = IntegerToHexString(userTypeNumber, 2); //用户类型
  448. let res5 = IntegerToHexString(fileDataStrings.outlineL, 4); //车辆尺寸 长
  449. let res6 = IntegerToHexString(fileDataStrings.outlineW, 2); //车辆尺寸 宽
  450. let res7 = IntegerToHexString(fileDataStrings.outlineH, 2); //车辆尺寸 高
  451. let res8 = IntegerToHexString(4, 2); //获取轮数
  452. let res9 = IntegerToHexString(fileDataStrings.axleCount, 2); //轴数
  453. let res10 = IntegerToHexString(null, 4); //轴距32
  454. let res11 = IntegerToHexString(fileDataStrings.approvedCount, 6); //核载人数
  455. let res12 = AsciToHexString(fileDataStrings.vehicleVin, 32); //车编号
  456. let res13 = AsciToHexString(fileDataStrings.vehicleEngineNum, 32); //发动机
  457. fun(res1 + res2 + res3 + res4 + res5 + res6 + res7 + res8 + res9 + res10 + res11 + res12 + res13);
  458. })
  459. };
  460. /**
  461. * 修改车辆信息 请求
  462. */
  463. const modifyVehicle = (ites) => {
  464. tools.showLoadingAlert("加载中");
  465. console.log('======修改车辆信息======', ites)
  466. let options = {
  467. type: 2, //type: 2,JSON格式提交数据(默认表单形式提交)
  468. data: {
  469. Status: "0",
  470. random: cmdRandNum,
  471. obuSerailNo: orderInfos.obuId,
  472. fileData: ites,
  473. orderId: orderInfos.orderId,
  474. }, //请求参数
  475. method: "POST", //提交方式(默认POST)
  476. showLoading: true, //是否显示加载中(默认显示)
  477. };
  478. //调用方式
  479. request(modifyObuVehicleInfo, options)
  480. .then((res) => {
  481. tools.hideLoadingAlert();
  482. const datas = stringToJson(res.bizContent);
  483. console.log("modifyObuVehicleInfo", modifyObuVehicleInfo, datas)
  484. tools.showLoadingAlert("正在执行指令");
  485. if (datas.data.APDU) {
  486. bluetoothUtil.transCmd([datas.data.APDU], "20", function(res) {
  487. console.log('执行指令结果', res)
  488. tools.hideLoadingAlert();
  489. if (res[0] == "9000") {
  490. //再次获取随机数
  491. let cmdArr = [cmd.HOME_DIRECTORY, cmd.RANDOM_NUMBER];
  492. bluetoothUtil.transCmd(cmdArr, '20', function(res) {
  493. var str = res[1].substring(res[1].length - 4, res[1].length);
  494. if (str == "9000") {
  495. cmdRandNum = res[1].substring(0, res[1].length - 4);
  496. getObuActivation();
  497. } else {
  498. tools.alertF("RANDOM_NUMBER指令长度不符" + res[1]);
  499. }
  500. })
  501. }
  502. });
  503. }
  504. })
  505. };
  506. /**
  507. * VFJ-OBU在线激活 请求
  508. */
  509. const getObuActivation = () => {
  510. console.log('======VFJ-OBU在线激活======')
  511. tools.showLoadingAlert("加载中");
  512. let options = {
  513. type: 2, //type: 2,JSON格式提交数据(默认表单形式提交)
  514. data: {
  515. random: cmdRandNum,
  516. obuSerailNo: orderInfos.obuId,
  517. orderId: orderInfos.orderId,
  518. }, //请求参数
  519. method: "POST", //提交方式(默认POST)
  520. showLoading: true, //是否显示加载中(默认显示)
  521. };
  522. //调用方式
  523. request(obuActivation, options)
  524. .then((res) => {
  525. tools.hideLoadingAlert();
  526. console.log("在线激活 请求");
  527. console.log(stringToJson(res.bizContent));
  528. const datas = stringToJson(res.bizContent);
  529. tools.showLoadingAlert("执行指令");
  530. console.log("在线激活 请求==========================", datas, datas.data.APDU);
  531. bluetoothUtil.transCmd([datas.data.APDU], "20", function(res) {
  532. tools.hideLoadingAlert();
  533. console.log("在线激活 请求", res);
  534. if (res[0] == "9000") {
  535. sure(2)
  536. state.showPopup = true;
  537. }
  538. });
  539. })
  540. .catch((err) => {
  541. console.log(err);
  542. });
  543. };
  544. //获取订单详情
  545. const getOrderDetails = (id) => {
  546. console.log('======获取订单信息======')
  547. const options = {
  548. type: 2,
  549. data: {
  550. id: id,
  551. },
  552. method: "POST",
  553. showLoading: true,
  554. };
  555. request(orderDetail, options).then((res) => {
  556. orderInfo = JSON.parse(res.bizContent);
  557. console.log("orderInfo", orderInfo);
  558. console.log("orderInfores", res);
  559. if (orderInfo) {
  560. fileDataStrings.userType = orderInfo.userType; //用户类型
  561. fileDataStrings.cardId = orderInfo.cardId;
  562. fileDataStrings.packageNum = orderInfo.packageNum;
  563. fileDataStrings.obuId = orderInfo.obuId;
  564. fileDataStrings.customerTel = orderInfo.customerTel;
  565. fileDataStrings.customerId = orderInfo.customerId;
  566. fileDataStrings.orderId = orderInfo.orderId;
  567. let vehicleId = orderInfo.vehiclePlate + "_" + orderInfo.vehiclePlateColor
  568. searchVehicleInfoQuery(vehicleId).then((orderInfo) => {
  569. fileDataStrings.approvedCount = parseInt(orderInfo.approvedCount); //核载人数
  570. fileDataStrings.vehicleVin = orderInfo.vin;
  571. fileDataStrings.vehicleEngineNum = orderInfo.engineNum;
  572. fileDataStrings.axleCount = parseInt(orderInfo.axleCount); //轴数
  573. fileDataStrings.engineNum = orderInfo.engineNum; //发动机
  574. fileDataStrings.type = parseInt(orderInfo.type); //类型
  575. fileDataStrings.vehiclePlate = orderInfo.vehiclePlate; //车牌
  576. fileDataStrings.vehiclePlateColor = orderInfo.vehiclePlateColor; //车牌颜色
  577. console.log("车辆信息", orderInfo)
  578. fileDataStrings.vehicleDimensions = orderInfo.vehicleDimensions;
  579. let arr = orderInfo.vehicleDimensions.split("X");
  580. console.log("orderInfo.vehicleDimensions", orderInfo.vehicleDimensions.split("X"))
  581. fileDataStrings.outlineL = parseInt(arr[0]); //外廓 长
  582. fileDataStrings.outlineW = parseInt(arr[1]); //外廓 宽
  583. fileDataStrings.outlineH = parseInt(arr[2].substring(0, arr[2].length - 2)); //外廓 高
  584. fileDataStrings.vehicleIdNo = orderInfo.vehicleEngineNum; //车编号
  585. fileDataStrings.vehiclePlateColorStr = getVehiclePlateColor(orderInfo
  586. .vehiclePlateColor);
  587. console.log("fileDataStrings", fileDataStrings);
  588. })
  589. }
  590. });
  591. };
  592. const sure = (val) => {
  593. var data = {}
  594. if (val == 1) {
  595. data = {
  596. type: "1",
  597. cardId: fileDataStrings.cardId,
  598. }
  599. } else {
  600. data = {
  601. type: "2",
  602. obuId: fileDataStrings.obuId,
  603. }
  604. }
  605. const options = {
  606. type: 2,
  607. data: data,
  608. method: "POST",
  609. showLoading: true,
  610. };
  611. request(renewalTimeApi, options).then((res) => {
  612. })
  613. }
  614. </script>
  615. <style>
  616. page {
  617. width: 100%;
  618. height: 100%;
  619. background-color: #fff;
  620. }
  621. </style>
  622. <style lang="scss" scoped>
  623. .mask {
  624. background: rgba(0, 0, 0, .35);
  625. position: fixed;
  626. left: 0;
  627. top: 0;
  628. bottom: 0;
  629. right: 0;
  630. }
  631. .main {
  632. width: 560rpx;
  633. padding: 25rpx 20rpx 55rpx;
  634. text-align: center;
  635. background: #fff;
  636. position: absolute;
  637. left: 50%;
  638. top: 50%;
  639. transform: translate(-50%, -50%);
  640. border-radius: 20rpx;
  641. .top {
  642. text-align: right;
  643. .icon-close {
  644. width: 48rpx;
  645. height: 48rpx;
  646. }
  647. }
  648. .icon-success {
  649. width: 500rpx;
  650. height: 320rpx;
  651. margin-top: 22rpx;
  652. }
  653. .title {
  654. color: #333333;
  655. font-size: 40rpx;
  656. font-weight: 600;
  657. text-align: center;
  658. margin-top: 55rpx;
  659. }
  660. }
  661. .selectCar-box {
  662. // width: 100%;
  663. // height: 100%;
  664. padding: 30rpx;
  665. .title {
  666. font-size: 30rpx;
  667. font-family: Microsoft YaHei UI;
  668. font-weight: 400;
  669. color: #333333;
  670. margin-bottom: 30rpx;
  671. }
  672. .details {
  673. .title {
  674. font-size: 30rpx;
  675. font-family: Microsoft YaHei UI;
  676. font-weight: 400;
  677. color: #333333;
  678. margin-bottom: 30rpx;
  679. }
  680. .details-item {
  681. display: flex;
  682. font-size: 26rpx;
  683. font-family: Noto Sans S Chinese;
  684. font-weight: 400;
  685. color: #999999;
  686. margin-bottom: 30rpx;
  687. text {
  688. font-size: 26rpx;
  689. font-family: Noto Sans S Chinese;
  690. font-weight: 400;
  691. color: #333333;
  692. }
  693. }
  694. }
  695. .card {
  696. height: 150rpx;
  697. background: #ffffff;
  698. box-shadow: 0rpx 4rpx 13rpx 3rpx rgba(223, 223, 223, 0.8);
  699. border-radius: 20rpx;
  700. padding: 30rpx;
  701. display: flex;
  702. justify-content: space-between;
  703. align-items: center;
  704. margin-bottom: 60rpx;
  705. .card-left {
  706. display: flex;
  707. align-items: center;
  708. image {
  709. width: 100rpx;
  710. height: 90rpx;
  711. }
  712. .card-center {
  713. margin-left: 30rpx;
  714. .card-center-head {
  715. font-size: 32rpx;
  716. font-family: Noto Sans S Chinese;
  717. font-weight: 400;
  718. color: #333333;
  719. }
  720. .tips {
  721. font-size: 26rpx;
  722. font-family: Noto Sans S Chinese;
  723. font-weight: 400;
  724. color: #666666;
  725. .tips-card {
  726. width: 70rpx;
  727. height: 40rpx;
  728. background: #d3f2ef;
  729. border-radius: 6rpx;
  730. font-size: 20rpx;
  731. font-family: Noto Sans S Chinese;
  732. font-weight: 400;
  733. color: #0a8f8a;
  734. padding: 5rpx 10rpx;
  735. margin-left: 20rpx;
  736. }
  737. }
  738. }
  739. }
  740. .choose-item1 {
  741. margin-right: 20rpx;
  742. /* width: 50rpx; */
  743. // height: 50rpx;
  744. /* border: 1rpx solid #00B38B; */
  745. border-radius: 50%;
  746. // display: flex;
  747. // justify-content: center;
  748. // align-items: center;
  749. font-size: 25rpx;
  750. // align-self: end;
  751. .active {
  752. width: 38rpx;
  753. height: 38rpx;
  754. background: #00b38b;
  755. border-radius: 50%;
  756. }
  757. }
  758. .choose-item {
  759. margin-right: 20rpx;
  760. width: 50rpx;
  761. height: 50rpx;
  762. border: 1rpx solid #00B38B;
  763. border-radius: 50%;
  764. display: flex;
  765. justify-content: center;
  766. align-items: center;
  767. .active {
  768. width: 38rpx;
  769. height: 38rpx;
  770. background: #00B38B;
  771. border-radius: 50%;
  772. }
  773. }
  774. }
  775. .remark {
  776. font-size: 26rpx;
  777. font-family: Microsoft YaHei UI;
  778. font-weight: 400;
  779. color: #666666;
  780. text-indent: 30rpx;
  781. margin-bottom: 30rpx;
  782. }
  783. .submit {
  784. margin-top: 100rpx;
  785. width: 670rpx;
  786. height: 80rpx;
  787. background: linear-gradient(-90deg, #43a1e0 0%, #13e7c1 100%);
  788. border-radius: 40rpx;
  789. font-size: 32rpx;
  790. font-family: Noto Sans S Chinese;
  791. font-weight: 400;
  792. color: #ffffff;
  793. line-height: 80rpx;
  794. }
  795. }
  796. </style>