Ви не можете вибрати більше 25 тем Теми мають розпочинатися з літери або цифри, можуть містити дефіси (-) і не повинні перевищувати 35 символів.

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