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

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