Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.

car-message-change.vue 35KB

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