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-message-change.vue 36KB

1 年之前
1 年之前
1 年之前
1 年之前
1 年之前
1 年之前
1 年之前
1 年之前
1 年之前
1 年之前
1 年之前
1 年之前
1 年之前
1 年之前
1 年之前
1 年之前
1 年之前
1 年之前
1 年之前
1 年之前
1 年之前
1 年之前
1 年之前
1 年之前
1 年之前
1 年之前
1 年之前
1 年之前
1 年之前
1 年之前
1 年之前
1 年之前
1 年之前
1 年之前
1 年之前
1 年之前
1 年之前
1 年之前
1 年之前
1 年之前
1 年之前
1 年之前
1 年之前
1 年之前
1 年之前
1 年之前
1 年之前
1 年之前
1 年之前
1 年之前
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330
  1. <template>
  2. <view v-if="state.isMyPeopple" class="content">
  3. <view class="item-tips">
  4. <view class="title"> 上传后请核对识别信息 </view>
  5. <view class="tip"> 如有错误请及时手动修改 </view>
  6. </view>
  7. <view class="picture-wrapper" @click="takePhotoMode('1','my')">
  8. <view class="bg">
  9. <view class="">
  10. <view class="name"> 人像面 </view>
  11. <view class="value"> 上传身份证的人像面 </view>
  12. <view class="tip">
  13. <view class="tip-value"> 拍摄规范 </view>
  14. </view>
  15. </view>
  16. <image v-if="!state.form.ownPosImgUrl" class="icon" :src="`${$imgUrl}applyCard/renxiang.png`">
  17. </image>
  18. <image v-else class="icon" :src="strReplace(state.form.ownPosImgUrl)"></image>
  19. </view>
  20. </view>
  21. <view class="picture-wrapper" @click="takePhotoMode('2','my')">
  22. <view class="bg">
  23. <view class="">
  24. <view class="name"> 国徽面 </view>
  25. <view class="value"> 上传身份证的国徽面 </view>
  26. <view class="tip">
  27. <view class="tip-value"> 拍摄规范 </view>
  28. </view>
  29. </view>
  30. <image v-if="!state.form.ownNegImgUrl" class="icon" :src="`${$imgUrl}applyCard/guohui.png`">
  31. </image>
  32. <image v-else class="icon" :src="strReplace(state.form.ownNegImgUrl)"></image>
  33. </view>
  34. </view>
  35. <view class="shibie-wrapper">
  36. <view class="title"> 识别内容如下 </view>
  37. <u-form label-width="230" :model="state.form" ref="uForm">
  38. <u-form-item label="姓名">
  39. <u-input v-model="state.form.userName" placeholder='请输入姓名' :disabled="state.isEnableOCRData"
  40. maxlength="20" @input="replaceInput" />
  41. </u-form-item>
  42. <u-form-item label="身份证号">
  43. <u-input placeholder='请输入身份证' type="idcard" v-model="state.form.userIdNum"
  44. :disabled="state.isEnableOCRData" maxlength="18" />
  45. </u-form-item>
  46. <u-form-item label="地址">
  47. <u-input placeholder='请输入地址' :autoHeight='true' v-model="state.form.address"
  48. :disabled="state.isEnableOCRData" maxlength="100" />
  49. </u-form-item>
  50. <u-form-item label="联系方式">
  51. <u-input placeholder='请输入联系方式' type="number" v-model="state.form.tel" maxlength="11" />
  52. </u-form-item>
  53. </u-form>
  54. </view>
  55. <view class="picture-wrapper" @click="takePhotoMode('3')">
  56. <view class="bg">
  57. <view class="">
  58. <view class="name"> 行驶证主页 </view>
  59. <view class="value"> 上传行驶证的主页 </view>
  60. <view class="tip">
  61. <view class="tip-value"> 拍摄规范 </view>
  62. </view>
  63. </view>
  64. <image v-if="!state.form.vehPosImgUrl" class="icon" :src="`${$imgUrl}applyCard/car-zhu.png`">
  65. </image>
  66. <image v-else class="icon" :src="strReplace(state.form.vehPosImgUrl)"></image>
  67. </view>
  68. </view>
  69. <view class="picture-wrapper" @click="takePhotoMode('4')">
  70. <view class="bg">
  71. <view class="">
  72. <view class="name"> 行驶证副页 </view>
  73. <view class="value"> 上传行驶证的副页 </view>
  74. <view class="tip">
  75. <view class="tip-value"> 拍摄规范 </view>
  76. </view>
  77. </view>
  78. <image v-if="!state.form.vehNegImgUrl" class="icon" :src="`${$imgUrl}applyCard/car-fu.png`">
  79. </image>
  80. <image v-else class="icon" :src="strReplace(state.form.vehNegImgUrl)"></image>
  81. </view>
  82. </view>
  83. <view class="picture-wrapper" @click="cardFileImageUpdate()">
  84. <view class="bg">
  85. <view class="">
  86. <view class="name"> 车头照 </view>
  87. <view class="value"> 上传汽车的车头照片 </view>
  88. <view class="tip">
  89. <view class="tip-value"> 拍摄规范 </view>
  90. </view>
  91. </view>
  92. <image v-if="!state.form.vehBodyUrl" class="icon" :src="`${$imgUrl}applyCard/chetou.png`">
  93. </image>
  94. <image v-else class="icon" :src="strReplace(state.form.vehBodyUrl)"></image>
  95. </view>
  96. </view>
  97. <view class="shibie-wrapper">
  98. <view class="title"> 识别内容如下 </view>
  99. <view class="">
  100. <u-form label-width="200" :model="state.form" ref="uForm">
  101. <u-form-item label="车牌号">
  102. <!-- <car-number-input @numberInputResult="carNumber"
  103. :defaultStr="state.form.vehicleIdNum" ></car-number-input> -->
  104. <u-input inputAlign="right" placeholder="请输入车牌号" v-model="state.form.vehicleIdNum" disabled />
  105. </u-form-item>
  106. <u-form-item label="所有人">
  107. <u-input inputAlign="right" placeholder="请输入所有人" v-model="state.form.ownerName"
  108. :disabled="state.isEnableChangeOCRCarInfo" />
  109. </u-form-item>
  110. <u-form-item label="车辆类型">
  111. <u-input inputAlign="right" placeholder="请输入车辆类型" v-model="state.form.vehicleType"
  112. :disabled="state.isEnableChangeOCRCarInfo" />
  113. </u-form-item>
  114. <!-- <u-form-item label="使用性质">
  115. <u-input inputAlign="right" placeholder="请输入使用性质" v-model="state.form.character"
  116. :disabled="state.isEnableChangeOCRCarInfo" />
  117. </u-form-item> -->
  118. <u-form-item label="车辆识别代号">
  119. <u-input inputAlign="right" placeholder="请输入车辆识别代号" v-model="state.form.vin"
  120. :disabled="state.isEnableChangeOCRCarInfo" />
  121. </u-form-item>
  122. <u-form-item label="发动机号码">
  123. <u-input inputAlign="right" placeholder="请输入发动机号码" v-model="state.form.engineNum"
  124. :disabled="state.isEnableChangeOCRCarInfo" />
  125. </u-form-item>
  126. <u-form-item label="注册日期">
  127. <picker mode="date" :value="state.form.register" @change="bindDateChange1"
  128. :disabled="state.isEnableChangeOCRCarInfo">
  129. <view class="uni-input" style="text-align: right;">
  130. {{state.form.register}}
  131. </view>
  132. </picker>
  133. </u-form-item>
  134. <u-form-item label="发证日期">
  135. <picker mode="date" :value="state.form.issueDate" @change="bindDateChange2"
  136. :disabled="state.isEnableChangeOCRCarInfo">
  137. <view class="uni-input" style="text-align: right;">
  138. {{state.form.issueDate}}
  139. </view>
  140. </picker>
  141. </u-form-item>
  142. <u-form-item label="核定载人数">
  143. <u-input inputAlign="right" placeholder="请输入核定载人数" v-model="state.form.approvedCountShow"
  144. :disabled="state.isEnableChangeOCRCarInfo" />
  145. </u-form-item>
  146. <u-form-item label="整备质量">
  147. <u-input inputAlign="right" placeholder="请输入整备质量" v-model="state.form.maintenaceMassShow"
  148. :disabled="state.isEnableChangeOCRCarInfo" />
  149. </u-form-item>
  150. <view class="form-item">
  151. <label>外廊尺寸</label>
  152. <view class="input-box">
  153. <text class="sub-label">长</text>
  154. <input v-model="state.outlineL" @input="outlineInput"
  155. :disabled="state.isEnableChangeOCRCarInfo" />
  156. <text class="sub-text">X</text>
  157. <text class="sub-label">宽</text>
  158. <input v-model="state.outlineW" @input="outlineInput"
  159. :disabled="state.isEnableChangeOCRCarInfo" />
  160. <text class="sub-text">X</text>
  161. <text class="sub-label">高</text>
  162. <input v-model="state.outlineH" @input="outlineInput"
  163. :disabled="state.isEnableChangeOCRCarInfo" />
  164. <text class="sub-text">mm</text>
  165. </view>
  166. </view>
  167. <u-form-item label="总质量">
  168. <u-input inputAlign="right" placeholder="请输入总质量" v-model="state.form.totalMassShow"
  169. :disabled="state.isEnableChangeOCRCarInfo" />
  170. </u-form-item>
  171. <u-form-item label="车轴数">
  172. <u-input inputAlign="right" placeholder="请输入车轴数" v-model="state.form.axleCount" type="number"
  173. maxlength="2" />
  174. </u-form-item>
  175. <view class="form-item">
  176. <label>车辆用户类型</label>
  177. <view class="select" @click="state.actionSheetShow = true">{{state.form.useUserTypeName}}</view>
  178. <image :src="`${$imgUrl}common/arror-down.png`" class="icon"
  179. @click="state.actionSheetShow = true"></image>
  180. </view>
  181. </u-form>
  182. </view>
  183. </view>
  184. <view class="green-tip">
  185. 如识别信息有误,请手动修改,确认无误后,点击下一步!
  186. </view>
  187. <view class="action">
  188. <button type="default" class="button" @click="savaHandleCar()">
  189. 提交
  190. </button>
  191. </view>
  192. <!-- 车辆类型弹窗 -->
  193. <u-popup mode="bottom" v-model="state.actionSheetShow">
  194. <view class="window">
  195. <view class="window-item" v-for="item in state.actionSheetList" :key="item.value"
  196. @click="userType(item)">{{item.text}}</view>
  197. </view>
  198. </u-popup>
  199. </view>
  200. <u-select mode="single-column" :list="state.genderList" v-model="state.genderShow" @confirm="genderSelectConfirm">
  201. </u-select>
  202. <view class="choice-takePhoto-wrap" v-if="state.isTakePhotoModeShow" @click="cancle">
  203. <view class="choice-takePhoto">
  204. <view @click.stop="takePhoto(state.choiceIndex)" style="border-radius: 20rpx 20rpx 0 0;">拍照</view>
  205. <view @click.stop="xiangce(state.choiceIndex)">从手机相册选择</view>
  206. <view @click.stop="cancle">取消</view>
  207. </view>
  208. </view>
  209. <viewfinder v-if="state.phoneType" :phoneType="state.phoneType" :images="state.images"
  210. :showStartPhoto="state.showImg" @confirmReturn="confirmReturn" @camera="camera"></viewfinder>
  211. </template>
  212. <script setup lang="ts">
  213. import viewfinder from "../../components/viewfinder.vue"
  214. import {
  215. reactive,
  216. ref,
  217. } from "vue";
  218. import {
  219. msg,
  220. checkStr,
  221. strReplace,
  222. uploadFile, hasLogin
  223. } from "@/utils/utils";
  224. import {
  225. onLoad,
  226. onPageScroll,
  227. } from "@dcloudio/uni-app";
  228. import {
  229. etcOcrCard,
  230. etcUserCardInfoSubmit,
  231. fileUpload,
  232. register,
  233. envs,
  234. getUserMsg,
  235. ocrAllQuery,
  236. etcCarOcrCard,
  237. searchVehicleInfo,
  238. carChangeApi,
  239. creactWorkOrder
  240. } from "@/utils/network/api.js";
  241. import {
  242. request
  243. } from "@/utils/network/request.js";
  244. import {
  245. stringToJson
  246. } from "@/utils/network/encryption";
  247. import {
  248. setItem,
  249. getItem,
  250. StorageKeys
  251. } from "@/utils/storage";
  252. import {
  253. getCodeName
  254. } from "@/datas/queryKey.js";
  255. import navBar from "@/components/nav-bar/nav-bar2.vue";
  256. import carNumberInput from "@/components/car-number-input/car-number-input.vue";
  257. import { getObuStatus } from "@/datas/obuStatus.js";
  258. import { getEtcCardStatus } from "@/datas/etcCardStatus.js";
  259. const scrollTop = ref(0)
  260. const state = reactive({
  261. showImg: true,
  262. isMy: "",//自己办理 他人办理
  263. phoneType: 0, // 1 身份证正面 2 身份证反面 3行驶证正面 4行驶证反面
  264. choiceIndex: 1, // 1 身份证正面 2 身份证反面
  265. isTakePhotoModeShow: false, //选择拍照方式是否出来
  266. images: '',
  267. genderList: [{
  268. value: '男',
  269. label: '男'
  270. },
  271. {
  272. value: '女',
  273. label: '女'
  274. }
  275. ],
  276. form: {
  277. orderId: "", //订单ID
  278. userName: "", //开户人姓名
  279. userIdType: "101", //用户证件类型 101//身份证
  280. userIdNum: "", //用户证件号码
  281. tel: "", //开户人手机号
  282. address: "", //开户人地址
  283. sceneType: "", //用户协议支撑服务场景(发行服务机构和用户签订的协议)
  284. channelId: "", //渠道id
  285. gender: "",
  286. customerIdVld: "",
  287. agentName: "",
  288. agentGender: "",
  289. agentTel: '',
  290. agentPhone: "",
  291. agentIdType: "101",
  292. agentIdNum: "",
  293. agentPosImgUrl: "",
  294. agentNegImgUrl: "",
  295. proxyUrl: "",
  296. agentAddress: "",
  297. agentIdVld: '',
  298. opId: '',
  299. orderSource: 'WECHAT',
  300. ownerName: "", //所有人
  301. character: "", //使用性质
  302. register: "请输入注册日期", //注册日期
  303. customerId: "", //用户编号
  304. vehicleId: "",
  305. vehicleIdNum: "", //车牌编号
  306. issueDate: "请输入发证日期", //发证日期
  307. vehPosImgUrl: "", //行驶证正面
  308. vehNegImgUrl: "", //行驶证证反面
  309. type: "0", //0,客车 1.货车
  310. useUserType: 0, //车辆用户类型
  311. useUserTypeName: "普通车",
  312. vehicleSign: 2, //前/后装标识
  313. vin: "", //车辆识别代号
  314. engineNum: "", //发动机号码
  315. vehicleType: "", //车辆类型
  316. vehicleModel: "", //行驶证品牌型号
  317. approvedCount: undefined, //核定人数
  318. approvedCountShow: undefined,//展示的
  319. totalMass: undefined, //总质量
  320. totalMassShow: undefined, //总质量
  321. maintenaceMass: undefined, //整备质量
  322. maintenaceMassShow: undefined, //整备质量展示的
  323. permittedWeight: "", //核定载质量
  324. vehicleDimensions: "", //车辆尺寸
  325. permittedTowWeight: "", //准牵引总质量
  326. axleCount: "", //车轴数
  327. ownerName: "", //车主姓名
  328. ownerIdType: "", //车主证件类型
  329. ownerIdNum: "", //车主证件号码
  330. ownPosImgUrl: "", //车主证件正面图片
  331. ownNegImgUrl: "", //车主证件反面图片
  332. agreementId: "", //签约编号
  333. // channelId: "5201018892300000001", //编号渠道
  334. scenePayType: "", //
  335. transportIdNum: "", //道路运输证编号
  336. licenseIdNum: "", //经营许可证编号
  337. vehBodyUrl: "", //车身照片
  338. // proxyUrl: "", //委托书地址
  339. },
  340. genderShow: false,
  341. orderId: "",
  342. vehiclePlateColor: undefined,
  343. isMyPeopple: true,
  344. isSign: '',
  345. type: 1,
  346. isEnableOther: true, //小程序是否支持他人办理
  347. isEnableBook: true, //他人办理时是否上传委托书
  348. isEnableInfo: true, //小程序信息带出
  349. isEnableOCRData: true, //允许修改OCR识别出来的数据
  350. changeColor: false,
  351. data: {
  352. transferLogs: [],
  353. },
  354. actionSheetShow: false,
  355. actionSheetList: [{
  356. text: "普通车",
  357. value: 0,
  358. },
  359. {
  360. text: "道路运输证经营范围仅有“货物专用运输(集装箱) ”的牵引车办理J类型集装箱",
  361. value: 24,
  362. },
  363. {
  364. text: "道路运输证经营范围不含“货物专用运输(集装箱)”的牵引车",
  365. value: 27,
  366. },
  367. {
  368. text: '道路运输证经营范围除“货物专用运输 (集装 箱)"外,还有“普通货运”等其他项目的牵引车办理J2类型集装箱',
  369. value: 28,
  370. }],
  371. orderId: "",
  372. // type: undefined, //标记来源是否登录 1为未登录数据 - 需要新增地址
  373. show: false,
  374. isMyPeopple: true,
  375. outlineL: "",
  376. outlineW: "",
  377. outlineH: "",
  378. isEnableChangeOCRCarInfo: false, //申办时是否允许修改OCR识别出来的车辆信息数据
  379. // allData: {}
  380. businessType: "",
  381. });
  382. const searchVehicleInfoQuery = () => {
  383. const options = {
  384. type: 2,
  385. data: {
  386. vehicleId: state.form.vehicleId
  387. },
  388. method: "POST",
  389. showLoading: true,
  390. };
  391. request(searchVehicleInfo, options).then((res) => {
  392. let result = stringToJson(res.bizContent);
  393. // state.allData = result.vehicles[0]
  394. writeMsg(result.vehicles[0])
  395. });
  396. }
  397. const writeMsg = (allData) => {
  398. console.log("车辆信息", allData);
  399. state.form.ownPosImgUrl = allData['ownerPosImgUrl']
  400. state.form.ownNegImgUrl = allData['ownerNegImgUrl']
  401. state.form.userName = allData['contacts']
  402. state.form.userIdNum = allData['ownerIdNum']
  403. state.form.ownerIdNum = allData['ownerIdNum']
  404. state.form.address = allData['ownerAddress']
  405. state.form.tel = allData['ownerTel']
  406. state.form.vehPosImgUrl = allData['vehPosImgUrl']
  407. state.form.vehNegImgUrl = allData['vehNegImgUrl']
  408. state.form.vehBodyUrl = allData['vehBodyUrl']
  409. state.form.vehicleIdNum = allData['vehiclePlate']
  410. state.form.ownerName = allData['ownerName']
  411. state.form.vehicleType = allData['vehicleType']
  412. // state.form.character = allData['vehicleType'] //使用性质
  413. state.form.vin = allData['vin']
  414. state.form.engineNum = allData['engineNum']
  415. state.form.register = allData['registerDate']
  416. state.form.issueDate = allData['issueDate']
  417. state.form.approvedCountShow = allData['approvedCount']
  418. state.form.maintenaceMassShow = allData['maintenaceMass']
  419. state.form.approvedCount = allData['approvedCount']
  420. state.form.maintenaceMass = allData['maintenaceMass']
  421. allData['vehicleDimensions']
  422. let arr = allData['vehicleDimensions'].split("X");
  423. state.outlineL = parseInt(arr[0]); //外廓 长
  424. state.outlineW = parseInt(arr[1]); //外廓 宽
  425. state.outlineH = parseInt(arr[2].substring(0, arr[2].length - 2)); //外廓 高
  426. state.form.totalMassShow = allData['totalMass']
  427. state.form.totalMass = allData['totalMass']
  428. state.form.axleCount = allData['axleCount'] ? allData['axleCount'] : 2
  429. if (allData['useUserType'] == 0) {
  430. state.form.useUserTypeName = "普通车"
  431. } else if (allData['useUserType'] == 24) {
  432. state.form.useUserTypeName = "道路运输证经营范围仅有“货物专用运输(集装箱) ”的牵引车办理J类型集装箱"
  433. } else if (allData['useUserType'] == 27) {
  434. state.form.useUserTypeName = "道路运输证经营范围不含“货物专用运输(集装箱)”的牵引车"
  435. } else if (allData['useUserType'] == 28) {
  436. state.form.useUserTypeName = "道路运输证经营范围除'货物专用运输 (集装 箱)'外,还有“普通货运”等其他项目的牵引车办理J2类型集装箱"
  437. }
  438. state.vehiclePlateColor = allData['vehiclePlateColor']
  439. state.form.customerId = allData['customerId']
  440. }
  441. const userGenderAction = () => {
  442. state.genderShow = true;
  443. };
  444. const genderSelectConfirm = (e) => {
  445. state.form.gender = ''
  446. e.map((val, index) => {
  447. state.form.gender = val.label;
  448. })
  449. };
  450. const camera = () => {
  451. state.phoneType = 0
  452. }
  453. onLoad((option : any) => {
  454. state.form.vehicleId = option.vehicleId;
  455. state.form.opId = getItem('openId') ? getItem('openId') : '';
  456. getGlobalParam(); //全局配置数据
  457. console.log("option", option)
  458. searchVehicleInfoQuery(); //车辆信息查询
  459. state.businessType = getItem('key')['DASP_PUSH_TYPE'][0]['code']
  460. console.log("getItem('key')['DASP_PUSH_TYPE']", getItem('key')['DASP_PUSH_TYPE'])
  461. });
  462. //监听页面滚动
  463. onPageScroll((e) => {
  464. scrollTop.value = e.scrollTop;
  465. });
  466. const replaceInput = (event) => {
  467. console.log("event", event)
  468. const screeningStr = /[^\u4E00-\u9FA5]/g; //想禁止什么类型,在这里替换正则就可以了
  469. if (screeningStr.test(event)) {
  470. setTimeout(() => {
  471. state.form.userName = event.replace(screeningStr, '');
  472. }, 100)
  473. } else {
  474. setTimeout(() => {
  475. state.form.userName = event;
  476. }, 100)
  477. }
  478. console.log("event.replace(screeningStr, '')", event.replace(screeningStr, ''), event, state.form.userName)
  479. }
  480. const getGlobalParam = () => {
  481. const data = getItem('globalParam')
  482. console.log("全局配置数据", getCodeName('IS_ENABLE', data.miniSupportOther), getCodeName('IS_ENABLE', data.otherUploadProxy), getCodeName('IS_ENABLE', data.miniInfoShow), getCodeName('IS_ENABLE', data.changeOCRData))
  483. // 小程序是否支持他人办理
  484. if (getCodeName('IS_ENABLE', data.miniSupportOther) == '启用') {
  485. state.isEnableOther = true;
  486. } else {
  487. state.isEnableOther = false;
  488. }
  489. // 他人办理时是否上传委托书
  490. if (getCodeName('IS_ENABLE', data.otherUploadProxy) == '启用') {
  491. state.isEnableBook = true;
  492. } else {
  493. state.isEnableBook = false;
  494. }
  495. // 小程序信息带出
  496. if (getCodeName('IS_ENABLE', data.miniInfoShow) == '启用') {
  497. state.isEnableInfo = true;
  498. uni.showModal({
  499. // title: '提示',
  500. content: '是否允许带出用户信息',
  501. success: function (res) {
  502. if (res.confirm) {
  503. console.log('用户点击确定');
  504. } else if (res.cancel) {
  505. console.log('用户点击取消');
  506. }
  507. }
  508. });
  509. } else {
  510. state.isEnableInfo = false;
  511. }
  512. // 允许修改OCR识别出来的数据
  513. if (getCodeName('IS_ENABLE', data.changeOCRData) == '启用') {
  514. state.isEnableOCRData = false;
  515. } else {
  516. state.isEnableOCRData = true;
  517. }
  518. // 申办时是否允许修改OCR识别出来的车辆信息数据
  519. // if (getCodeName('IS_ENABLE', data.applyChangeOCRCarInfo) == '启用') {
  520. // state.isEnableChangeOCRCarInfo = true;
  521. // } else {
  522. // state.isEnableChangeOCRCarInfo = false;
  523. // }
  524. }
  525. const takePhotoMode = (index, isMy) => {
  526. console.log("index", index, isMy)
  527. state.isTakePhotoModeShow = true
  528. state.choiceIndex = index
  529. state.isMy = isMy
  530. }
  531. const xiangce = (val) => {
  532. console.log("val", val)
  533. var imageType = val;
  534. if (state.choiceIndex == 3) {
  535. var imageType = 1;
  536. } else {
  537. var imageType = 2;
  538. }
  539. uni.chooseImage({
  540. count: 1, //只能选取一张照片
  541. sizeType: ["original", "compressed"], //可以指定是原图还是压缩图,默认二者都有
  542. sourceType: ["album"], //从相册选择
  543. success: function (res) {
  544. state.showImg = false
  545. state.images = res.tempFilePaths[0]
  546. state.phoneType = state.choiceIndex
  547. state.isTakePhotoModeShow = false
  548. if (state.choiceIndex == 3 || state.choiceIndex == 4) {
  549. state.showImg = false
  550. state.images = res.tempFilePaths[0]
  551. state.phoneType = state.choiceIndex
  552. state.isTakePhotoModeShow = false
  553. return
  554. }
  555. console.log("tempFilePaths[0].startsWith('file://')", res.tempFilePaths[0], res.tempFilePaths[0].startsWith('file://'))
  556. },
  557. })
  558. }
  559. const takePhoto = (val) => {
  560. state.showImg = true
  561. console.log("拍照", val)
  562. state.phoneType = val;
  563. }
  564. const confirmReturn = (val) => {
  565. console.log("图片地址val", val)
  566. state.phoneType = 0
  567. state.isTakePhotoModeShow = false
  568. // var imageType = state.choiceIndex;
  569. if (state.choiceIndex == 1) {
  570. var imageType = 1;
  571. var queryCode = etcOcrCard
  572. } else if (state.choiceIndex == 2) {
  573. var imageType = 2;
  574. var queryCode = etcOcrCard
  575. }
  576. if (state.choiceIndex == 3) {
  577. var imageType = 1;
  578. var queryCode = etcCarOcrCard
  579. } else if (state.choiceIndex == 4) {
  580. var imageType = 2;
  581. var queryCode = etcCarOcrCard
  582. }
  583. // uploadFile(val.tempImagePath, imageType, ocrAllQuery).then((data) => {
  584. uploadFile(val.tempImagePath, imageType, queryCode).then((data) => {
  585. if (state.isMy == "my") {
  586. if (state.choiceIndex == "1") {
  587. console.log("身份证上传", data)
  588. state.form.userName = data.name;
  589. state.form.gender = data.gender;
  590. state.form.userIdNum = data.idno;
  591. state.form.ownPosImgUrl = data.imageUrl;
  592. state.form.address = data.address;
  593. } else {
  594. state.form.customerIdVld = data.enddate;
  595. state.form.ownNegImgUrl = data.imageUrl;
  596. }
  597. state.isTakePhotoModeShow = false
  598. } else {
  599. if (state.choiceIndex == "1") {
  600. state.form.agentName = data.name;
  601. state.form.agentGender = data.gender;
  602. state.form.agentIdNum = data.idno;
  603. state.form.agentPosImgUrl = data.imageUrl;
  604. state.form.agentAddress = data.address;
  605. } else if (state.choiceIndex == "2") {
  606. console.log("state.isMy", state.isMy, state.choiceIndex, state.choiceIndex == "1", data)
  607. state.form.agentIdVld = data.enddate;
  608. state.form.agentNegImgUrl = data.imageUrl;
  609. } else if (state.choiceIndex == "3") {
  610. if (data.plate_a.length > 8) {
  611. state.form.vehicleIdNum = data.plate_a.substring(0, 8);
  612. } else {
  613. state.form.vehicleIdNum = data.plate_a;
  614. }
  615. state.form.ownerName = data.man;
  616. state.form.vehicleType = data.vehicle;
  617. state.form.character = data.character;
  618. state.form.vin = data.vin;
  619. state.form.engineNum = data.engine;
  620. state.form.register = data.register;
  621. state.form.issueDate = data.issue;
  622. state.form.vehPosImgUrl = data.imageUrl;
  623. state.form.vehicleModel = data.model;
  624. } else {
  625. state.form.approvedCount = data.apc;
  626. state.form.approvedCountShow = data.apc;
  627. state.form.maintenaceMass = data.unladen;
  628. state.form.maintenaceMassShow = data.unladen;
  629. // 91接口差
  630. // // #ifdef MP-WEIXIN
  631. // state.form.vehicleDimensions = data.overall.replaceAll("×", "X");
  632. // // #endif
  633. // // #ifdef MP-ALIPAY
  634. // state.form.vehicleDimensions = data.overall.replace(/×/g, "X");
  635. // // #endif
  636. // let arr = data.overall.split("×");
  637. // #ifdef MP-WEIXIN
  638. state.form.vehicleDimensions = data.overall.replaceAll("x", "X");
  639. // #endif
  640. // #ifdef MP-ALIPAY
  641. state.form.vehicleDimensions = data.overall.replace(/x/g, "X");
  642. // #endif
  643. let arr = data.overall.split("x");
  644. state.outlineL = arr[0]; //外廓 长
  645. state.outlineW = arr[1]; //外廓 宽
  646. state.outlineH = arr[2].substring(0, arr[2].length - 2); //外廓 高
  647. state.form.totalMass = data.gross;
  648. state.form.totalMassShow = data.gross;
  649. state.form.vehNegImgUrl = data.imageUrl;
  650. state.form.permittedWeight = data.alc ? data.alc : 0;
  651. state.form.permittedTowWeight = data.towing ? data.towing : 0;
  652. console.log('=====================', state.form.vehNegImgUrl, state)
  653. }
  654. state.isTakePhotoModeShow = false
  655. }
  656. })
  657. }
  658. const cancle = () => {
  659. state.isTakePhotoModeShow = false
  660. }
  661. // 车辆信息
  662. //车牌号输入
  663. const carNumber = (val : any) => {
  664. state.form.vehicleIdNum = val.trim();
  665. };
  666. //提交车辆信息
  667. const savaHandleCar = () => {
  668. if (!checkStr(state.form.userIdNum, 'card')) {
  669. msg('请输入正确身份证');
  670. return;
  671. }
  672. if (!checkStr(state.form.tel, 'mobile')) {
  673. msg('请输入正确手机号');
  674. return;
  675. }
  676. if (!state.form.vehBodyUrl) {
  677. msg("请上传车头照");
  678. return;
  679. }
  680. if (state.form.type == 1) {
  681. state.form.axleCount = 2;
  682. } else {
  683. if (!state.form.axleCount) {
  684. msg("请输入车轴数");
  685. return;
  686. }
  687. }
  688. state.form.vehicleId =
  689. state.form.vehicleIdNum + "_" + state.vehiclePlateColor;
  690. state.form.opId = getItem(StorageKeys.OpenId);
  691. state.form.approvedCount = parseFloat(state.form.approvedCount);
  692. state.form.maintenaceMass = parseFloat(state.form.maintenaceMass);
  693. state.form.totalMass = parseFloat(state.form.totalMass);
  694. state.form.permittedWeight = parseFloat(state.form.permittedWeight);
  695. state.form.permittedTowWeight = parseFloat(state.form.permittedTowWeight);
  696. const options = {
  697. type: 2,
  698. data: state.form,
  699. method: "POST",
  700. showLoading: true,
  701. };
  702. request(carChangeApi, options)
  703. .then((res) => {
  704. const data = stringToJson(res.bizContent);
  705. // 创建工单
  706. creactWorkOrderRequest().then((val : any) => {
  707. msg("车辆信息变更成功")
  708. setTimeout(() => {
  709. uni.navigateBack({
  710. delta: 2
  711. })
  712. }, 2000)
  713. })
  714. })
  715. .catch((res) => {
  716. console.log(res);
  717. });
  718. };
  719. const creactWorkOrderRequest = () => {
  720. const options = {
  721. type: 2,
  722. data: {
  723. businessType: state.businessType,
  724. vehiclePlate: state.form.vehicleIdNum,
  725. vehiclePlateColor: state.vehiclePlateColor,
  726. customerId: state.form.customerId
  727. },
  728. method: "POST",
  729. showLoading: true,
  730. };
  731. return new Promise(async (resolve, reject) => {
  732. const res = await request(creactWorkOrder, options);
  733. const data = stringToJson(res.bizContent);
  734. resolve(data);
  735. }).catch((error) => {
  736. reject(error);
  737. });
  738. }
  739. const selectConfirm = (index : any) => {
  740. console.log(index);
  741. state.form.useUserType = state.actionSheetList[index].value;
  742. state.form.useUserTypeName = state.actionSheetList[index].text;
  743. };
  744. //选择车辆用户类型
  745. const userType = (item : any) => {
  746. state.form.useUserType = item.value;
  747. state.form.useUserTypeName = item.text;
  748. state.actionSheetShow = false;
  749. }
  750. // 车头照图片上传
  751. const cardFileImageUpdate = () => {
  752. uni.chooseImage({
  753. count: 1, //只能选取一张照片
  754. sizeType: ["original", "compressed"], //可以指定是原图还是压缩图,默认二者都有
  755. sourceType: ["camera", "album"], //从相册选择
  756. success: function (res) {
  757. uploadFile(res.tempFilePaths[0], "", "").then((data) => {
  758. state.form.vehBodyUrl = data;
  759. })
  760. },
  761. });
  762. };
  763. //外廓尺寸输入框
  764. const outlineInput = (e) => {
  765. state.form.vehicleDimensions =
  766. state.outlineL + "X" + state.outlineW + "X" + state.outlineH + "mm";
  767. };
  768. const bindDateChange1 = (e) => {
  769. state.form.register = e.detail.value
  770. state.changeColor = true;
  771. }
  772. const bindDateChange2 = (e) => {
  773. state.form.issueDate = e.detail.value
  774. state.changeColor = true;
  775. }
  776. </script>
  777. <style lang="scss" scoped>
  778. .title {
  779. font-size: 35rpx;
  780. font-family: Microsoft YaHei;
  781. font-weight: 400;
  782. color: #000000;
  783. line-height: 80rpx;
  784. margin-bottom: 10rpx;
  785. }
  786. .content-wrap {
  787. position: relative;
  788. // margin-top: -50rpx;
  789. padding: 0rpx 30rpx;
  790. display: flex;
  791. .big {
  792. font-size: 30rpx;
  793. font-family: Microsoft YaHei;
  794. font-weight: 400;
  795. color: #333333;
  796. line-height: 24rpx;
  797. }
  798. .nomal {
  799. font-size: 26rpx;
  800. font-family: Microsoft YaHei;
  801. font-weight: 400;
  802. color: #666666;
  803. line-height: 24rpx;
  804. }
  805. .tip {
  806. margin-top: -5px;
  807. width: 117rpx;
  808. height: 16rpx;
  809. background: #00b38b;
  810. opacity: 0.3;
  811. }
  812. }
  813. .content {
  814. padding: 50rpx 30rpx 50rpx 30rpx;
  815. .action {
  816. padding-left: 20rpx;
  817. padding-right: 20rpx;
  818. padding-bottom: 30rpx;
  819. .button {
  820. height: 80rpx;
  821. background: linear-gradient(-90deg, #43a1e0 0%, #13e7c1 100%);
  822. border-radius: 40rpx;
  823. font-size: 32rpx;
  824. font-weight: 400;
  825. color: #ffffff;
  826. line-height: 80rpx;
  827. }
  828. }
  829. .item-tips {
  830. .title {
  831. font-size: 30rpx;
  832. font-family: Microsoft YaHei;
  833. font-weight: 400;
  834. color: #000000;
  835. line-height: 24rpx;
  836. }
  837. .tip {
  838. margin-top: 16rpx;
  839. font-size: 24rpx;
  840. font-family: Microsoft YaHei;
  841. font-weight: 400;
  842. color: #999999;
  843. line-height: 24rpx;
  844. }
  845. }
  846. .picture-wrapper {
  847. margin-top: 40rpx;
  848. .bg {
  849. background: #ffffff;
  850. box-shadow: 0rpx 4rpx 13rpx 3rpx rgba(223, 223, 223, 0.8);
  851. border-radius: 20rpx;
  852. padding: 40rpx;
  853. display: flex;
  854. // align-items: center;
  855. justify-content: space-between;
  856. .name {
  857. font-size: 34rpx;
  858. font-family: Microsoft YaHei;
  859. font-weight: 400;
  860. color: #000000;
  861. line-height: 34rpx;
  862. }
  863. .value {
  864. margin-top: 20rpx;
  865. font-size: 24rpx;
  866. font-family: Microsoft YaHei;
  867. font-weight: 400;
  868. color: #999999;
  869. line-height: 24rpx;
  870. }
  871. .tip {
  872. margin-top: 20rpx;
  873. text-align: center;
  874. width: 110rpx;
  875. height: 40rpx;
  876. background: rgba(33, 190, 177, 0.2);
  877. border-radius: 6rpx;
  878. .tip-value {
  879. font-size: 20rpx;
  880. font-family: Microsoft YaHei;
  881. font-weight: 400;
  882. color: #0a8f8a;
  883. line-height: 40rpx;
  884. opacity: 1;
  885. }
  886. }
  887. }
  888. .icon {
  889. width: 294rpx;
  890. height: 188rpx;
  891. }
  892. }
  893. .shibie-wrapper {
  894. margin-top: 60rpx;
  895. .title {
  896. font-size: 30rpx;
  897. font-family: Microsoft YaHei;
  898. font-weight: 400;
  899. color: #000000;
  900. line-height: 30rpx;
  901. }
  902. }
  903. .buchong-wrapper {
  904. margin-top: 60rpx;
  905. .title {
  906. font-size: 30rpx;
  907. font-family: Microsoft YaHei;
  908. font-weight: 400;
  909. color: #000000;
  910. line-height: 30rpx;
  911. }
  912. }
  913. .green-tip {
  914. margin-top: 50rpx;
  915. font-size: 24rpx;
  916. font-family: Microsoft YaHei;
  917. font-weight: 400;
  918. color: #00b38b;
  919. line-height: 24rpx;
  920. margin-bottom: 60rpx;
  921. }
  922. }
  923. .choice-takePhoto {
  924. position: absolute;
  925. bottom: 0;
  926. background-color: white;
  927. width: 100%;
  928. border-radius: 20rpx 20rpx 0 0;
  929. }
  930. .choice-takePhoto>view:first-child {
  931. text-align: center;
  932. height: 80rpx;
  933. line-height: 80rpx;
  934. border-bottom: 1rpx solid rgba(127, 127, 127, 0.3);
  935. background-color: white;
  936. }
  937. .choice-takePhoto>view:last-child {
  938. text-align: center;
  939. height: 80rpx;
  940. line-height: 80rpx;
  941. border-top: 6rpx solid rgba(127, 127, 127, 0.1);
  942. background-color: white;
  943. }
  944. .choice-takePhoto>view {
  945. text-align: center;
  946. height: 80rpx;
  947. line-height: 80rpx;
  948. background-color: white;
  949. }
  950. .choice-takePhoto-wrap {
  951. width: 100%;
  952. height: 100vh;
  953. background-color: rgba(127, 127, 127, 0.2);
  954. position: fixed;
  955. left: 0;
  956. top: 0;
  957. z-index: 11111;
  958. }
  959. .hui {
  960. color: #ccc;
  961. }
  962. .hei {
  963. color: black;
  964. }
  965. .goto {
  966. margin-right: 20rpx;
  967. padding: 10rpx;
  968. color: #00b38b;
  969. border: 1rpx solid #00b38b;
  970. border-radius: 20rpx;
  971. }
  972. .flex {
  973. display: flex;
  974. align-items: center;
  975. }
  976. .bettwen-center {
  977. display: flex;
  978. align-items: center;
  979. justify-content: space-between;
  980. }
  981. .card {
  982. margin: 20rpx;
  983. height: 150rpx;
  984. background: #ffffff;
  985. box-shadow: 0rpx 4rpx 13rpx 3rpx rgba(223, 223, 223, 0.8);
  986. border-radius: 20rpx;
  987. padding: 20rpx;
  988. display: flex;
  989. justify-content: space-between;
  990. align-items: center;
  991. margin-bottom: 30rpx;
  992. .card-left {
  993. display: flex;
  994. align-items: center;
  995. image {
  996. width: 100rpx;
  997. height: 90rpx;
  998. }
  999. .card-center {
  1000. margin-left: 30rpx;
  1001. .card-center-head {
  1002. font-size: 32rpx;
  1003. font-family: Noto Sans S Chinese;
  1004. font-weight: 400;
  1005. color: #333333;
  1006. }
  1007. .tips {
  1008. font-size: 26rpx;
  1009. font-family: Noto Sans S Chinese;
  1010. font-weight: 400;
  1011. color: #666666;
  1012. .tips-card {
  1013. width: 70rpx;
  1014. height: 40rpx;
  1015. background: #d3f2ef;
  1016. border-radius: 6rpx;
  1017. font-size: 20rpx;
  1018. font-family: Noto Sans S Chinese;
  1019. font-weight: 400;
  1020. color: #0a8f8a;
  1021. padding: 5rpx 10rpx;
  1022. margin-left: 20rpx;
  1023. }
  1024. }
  1025. }
  1026. }
  1027. .choose-item {
  1028. margin-right: 20rpx;
  1029. width: 50rpx;
  1030. height: 50rpx;
  1031. border: 1rpx solid #00b38b;
  1032. border-radius: 50%;
  1033. display: flex;
  1034. justify-content: center;
  1035. align-items: center;
  1036. .active {
  1037. width: 38rpx;
  1038. height: 38rpx;
  1039. background: #00b38b;
  1040. border-radius: 50%;
  1041. }
  1042. }
  1043. }
  1044. .content {
  1045. // position: relative;
  1046. // margin-top: -50rpx;
  1047. // padding: 0rpx 30rpx;
  1048. // position: relative;
  1049. .img-pos {
  1050. position: absolute;
  1051. left: 270rpx;
  1052. top: -38rpx;
  1053. right: 50rpx;
  1054. .img-flex {
  1055. display: flex;
  1056. justify-content: space-between;
  1057. align-items: center;
  1058. .car-img {
  1059. width: 86rpx;
  1060. height: 42rpx;
  1061. }
  1062. .flag-img {
  1063. width: 30rpx;
  1064. height: 35rpx;
  1065. }
  1066. }
  1067. }
  1068. .action {
  1069. padding-left: 20rpx;
  1070. padding-right: 20rpx;
  1071. padding-bottom: 30rpx;
  1072. .button {
  1073. height: 80rpx;
  1074. background: linear-gradient(-90deg, #43a1e0 0%, #13e7c1 100%);
  1075. border-radius: 40rpx;
  1076. font-size: 32rpx;
  1077. font-weight: 400;
  1078. color: #ffffff;
  1079. line-height: 80rpx;
  1080. }
  1081. }
  1082. .item-tips {
  1083. .title {
  1084. font-size: 30rpx;
  1085. font-family: Microsoft YaHei;
  1086. font-weight: 400;
  1087. color: #000000;
  1088. line-height: 24rpx;
  1089. }
  1090. .tip {
  1091. margin-top: 16rpx;
  1092. font-size: 24rpx;
  1093. font-family: Microsoft YaHei;
  1094. font-weight: 400;
  1095. color: #999999;
  1096. line-height: 24rpx;
  1097. }
  1098. }
  1099. .picture-wrapper {
  1100. margin-top: 40rpx;
  1101. .bg {
  1102. background: #ffffff;
  1103. box-shadow: 0rpx 4rpx 13rpx 3rpx rgba(223, 223, 223, 0.8);
  1104. border-radius: 20rpx;
  1105. padding: 40rpx;
  1106. display: flex;
  1107. // align-items: center;
  1108. justify-content: space-between;
  1109. .name {
  1110. font-size: 34rpx;
  1111. font-family: Microsoft YaHei;
  1112. font-weight: 400;
  1113. color: #000000;
  1114. line-height: 34rpx;
  1115. }
  1116. .value {
  1117. margin-top: 20rpx;
  1118. font-size: 24rpx;
  1119. font-family: Microsoft YaHei;
  1120. font-weight: 400;
  1121. color: #999999;
  1122. line-height: 24rpx;
  1123. }
  1124. .tip {
  1125. margin-top: 20rpx;
  1126. text-align: center;
  1127. width: 110rpx;
  1128. height: 40rpx;
  1129. background: rgba(33, 190, 177, 0.2);
  1130. border-radius: 6rpx;
  1131. .tip-value {
  1132. font-size: 20rpx;
  1133. font-family: Microsoft YaHei;
  1134. font-weight: 400;
  1135. color: #0a8f8a;
  1136. line-height: 40rpx;
  1137. opacity: 1;
  1138. }
  1139. }
  1140. }
  1141. .icon {
  1142. width: 294rpx;
  1143. height: 188rpx;
  1144. }
  1145. }
  1146. .shibie-wrapper {
  1147. margin-top: 60rpx;
  1148. .title {
  1149. font-size: 30rpx;
  1150. font-family: Microsoft YaHei;
  1151. font-weight: 400;
  1152. color: #000000;
  1153. line-height: 30rpx;
  1154. }
  1155. }
  1156. .buchong-wrapper {
  1157. margin-top: 60rpx;
  1158. .title {
  1159. font-size: 30rpx;
  1160. font-family: Microsoft YaHei;
  1161. font-weight: 400;
  1162. color: #000000;
  1163. line-height: 30rpx;
  1164. }
  1165. }
  1166. .green-tip {
  1167. margin-top: 50rpx;
  1168. font-size: 24rpx;
  1169. font-family: Microsoft YaHei;
  1170. font-weight: 400;
  1171. color: #00b38b;
  1172. line-height: 24rpx;
  1173. margin-bottom: 60rpx;
  1174. }
  1175. }
  1176. .form-item {
  1177. display: flex;
  1178. font-size: 28rpx;
  1179. justify-content: space-between;
  1180. align-items: center;
  1181. }
  1182. .form-item label {}
  1183. .form-item .input-box {
  1184. display: flex;
  1185. align-items: center;
  1186. }
  1187. .form-item .select {
  1188. flex: 1;
  1189. background: #f1f1f1;
  1190. padding: 6rpx 20rpx;
  1191. margin: 0 10rpx;
  1192. min-height: 48rpx;
  1193. line-height: 48rpx;
  1194. border-radius: 8rpx;
  1195. }
  1196. .form-item .icon {
  1197. width: 28rpx;
  1198. height: 32rpx;
  1199. }
  1200. .form-item .input-box input {
  1201. width: 90rpx;
  1202. background: #f1f1f1;
  1203. border-radius: 8rpx;
  1204. padding: 0 5rpx;
  1205. }
  1206. .form-item .sub-text {
  1207. color: #808080;
  1208. padding-left: 10rpx;
  1209. }
  1210. .form-item .sub-label {
  1211. padding: 0 10rpx;
  1212. }
  1213. .window {
  1214. padding: 60rpx 30rpx;
  1215. }
  1216. .window .window-item {
  1217. border: 1px solid #00b38b;
  1218. background: rgba(0, 179, 139, .1);
  1219. border-radius: 10rpx;
  1220. padding: 16rpx 30rpx;
  1221. font-size: 30rpx;
  1222. margin-bottom: 10rpx;
  1223. }
  1224. ::v-deep .u-input__input {
  1225. background: transparent;
  1226. }
  1227. </style>