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

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