index.vue 20 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735
  1. <template>
  2. <view class="page">
  3. <image src="/static/image/indexback.png" mode="" style="width: 100%;height: 622rpx;"></image>
  4. <view class="dept dis a-c j-c" @click="deptSelect">
  5. <text class="mr-1">{{ deptradioName }}</text>
  6. <u-icon name="arrow-down" color="#333333" size="14"></u-icon>
  7. </view>
  8. <view class="Service dis f-c a-c j-c " @click="Service">
  9. <image class="" src="/static/icon/customerService.png" mode=""></image>
  10. <text>客服</text>
  11. </view>
  12. <view class="content">
  13. <uni-tab :tabList="tabList" :value="activeTab" noactivebackgroundColor="rgba(254, 249, 239, 55%)">
  14. <!-- 第一个标签内容 -->
  15. <template #content0>
  16. <view class=" dis f-c " style="padding: 20rpx 30rpx 30rpx;">
  17. <text class="imgtitle">请上传车辆行驶证正反页面</text>
  18. <view class="colorBlock"> </view>
  19. <view class="imageUpload" @click="OCRUploadShow = true">
  20. <image src="/static/image/Frame 1321319407.png" mode="aspectFill"></image>
  21. </view>
  22. <view class="quotebtn dis a-c j-c font-weight" @click="manualQuote">
  23. 手动报价
  24. </view>
  25. </view>
  26. </template>
  27. <!-- 第二个标签内容 -->
  28. <template #content1>
  29. <view class=" dis f-c " style="padding: 40rpx 30rpx 30rpx ;">
  30. <view class="license dis f-c ">
  31. <view class="dis a-c ">
  32. <image src="/static/image/licensePlateicon.png" mode=""></image>
  33. <text class="title">车牌号</text>
  34. </view>
  35. <view class="licensePlateRegion mt-2 dis a-c ">
  36. <view class="Region dis a-c j-c " @click="Regionselect">
  37. {{ licenseActiveName }}
  38. </view>
  39. <u--input v-model="licenseValue" placeholder="请输入" border="bottom" clearable
  40. maxlength="7" @input="handleInput"
  41. :customStyle="{ borderColor: '#FDE935 !important' }"></u--input>
  42. </view>
  43. </view>
  44. <view class="license dis f-c mt-3">
  45. <view class="dis ">
  46. <image src="/static/image/caricon.png" mode=""></image>
  47. <text class="title">车辆种类</text>
  48. </view>
  49. <view class="u--input dis a-c j-s" @tap="carTypeShow = true">
  50. <text v-if="carTypeCode" style="font-size: 30rpx; color: #303133;line-height: 52rpx;">{{
  51. carTypeCode }}</text>
  52. <text v-else style="font-size: 30rpx; color: #999;line-height: 52rpx;">请选择车辆类型</text>
  53. <u-icon name="arrow-down" color="#333333" size="14"></u-icon>
  54. </view>
  55. </view>
  56. <view class="licenslist dis mt-3">
  57. <view class="item dis a-c j-c" v-for="(items, index) in historicalVehicle" :key="index"
  58. @click="licensePlateQuery(items.licenseNo)">
  59. <text>{{ items.licenseNo }}</text>
  60. </view>
  61. </view>
  62. <view class="quotebtn dis a-c j-c font-weight" @click="manualQuote1">
  63. 手动报价
  64. </view>
  65. </view>
  66. </template>
  67. </uni-tab>
  68. </view>
  69. <view class="swiper">
  70. <u-swiper :list="bannerList" indicator height="180rpx" radius="10" imgMode="heightFix"></u-swiper>
  71. </view>
  72. <!-- 车牌地区选择 -->
  73. <uni-Popup :show="licenseShow" bgColor="#F8F8F8" @close='licenseclose'>
  74. <template #content>
  75. <view class="licenselist dis f-wrap j-s">
  76. <view class="item dis a-c j-c" :class="{ active: item === licenseActiveName }"
  77. v-for="item in licenselist" :key="item" @tap="licenseItem(item)">
  78. <text>{{ item }}</text>
  79. </view>
  80. </view>
  81. </template>
  82. </uni-Popup>
  83. <!-- 租户机构选择 -->
  84. <uni-Popup :show="deptSelectShow" @close='deptclose' headerTitle="选择出单机构" overflow="auto" maxHeight="580rpx">
  85. <template #content>
  86. <view class="overflow">
  87. <view class="deptselect dis f-c ">
  88. <u-radio-group v-model="deptradiovalue" placement="column" iconPlacement="right"
  89. @change="deptchange">
  90. <view class="item dis a-c " v-for="(item, index) in tenantOrglist" :key="index">
  91. <u-radio activeColor="#FDE935" iconColor='#333' :name="item.systemCode"
  92. style="width: 100%;">
  93. <view class="textregion dis f-c ">
  94. <text>{{ item.sysName }}</text>
  95. <text>{{ item.deptName }}</text>
  96. </view>
  97. <image :src="item.iconAddress" mode=""></image>
  98. </u-radio>
  99. </view>
  100. </u-radio-group>
  101. </view>
  102. </view>
  103. </template>
  104. </uni-Popup>
  105. <!-- 车型选择 -->
  106. <u-picker :show="carTypeShow" :columns="car_kind_codeoptions" keyName="label" @cancel="carTypeShow = false"
  107. @confirm="carTypeconfirm"></u-picker>
  108. <uni-OCRUploadPopup :show="OCRUploadShow" :list='carPopuptablist' @close="OCRUploadShow = false"
  109. :checkType="checkType" @carCallback="carCallback">
  110. </uni-OCRUploadPopup>
  111. </view>
  112. </template>
  113. <script>
  114. import {
  115. mapState,
  116. mapMutations
  117. } from "vuex"
  118. import store from '@/store';
  119. export default {
  120. data() {
  121. return {
  122. //历史车辆信息
  123. historicalVehicle: [],
  124. //车辆信息
  125. carInfo: {
  126. licenseNo: "", //车牌号
  127. brandName: "", //车辆品牌型号
  128. vinNo: "", //车架号
  129. engineNo: "", //发动机号
  130. modelCode: "", //车型编码
  131. seatCount: "", //核定载客量 核定载人数
  132. purchasePrice: "", //新车购置价最低,行业实际价值,协商价值
  133. carBrand: "", //车型品牌
  134. ciCarName: "", //行业车型名称
  135. ciModelCode: "", //行业车型编码
  136. completeKerbMass: "", //整备质量
  137. exhaustScale: "", //排量
  138. factory: "", //工厂名称
  139. factoryid: "", //工厂编码
  140. frameNo: "", //车架号
  141. licenseKindCode: "02", //号牌种类
  142. vehicleclass: "", //车辆类型
  143. familyName: "", //车型
  144. modelcname: "", //车型名称
  145. powertypecode: "", //燃料类型编码
  146. vehicleweight: "", //总质量
  147. limitLoad: "", //核定载质量
  148. carYear: "", //年款
  149. carKindCode: "A0", //车辆种类
  150. powertype: "汽油", //燃料类型
  151. energyTypeCode: "0", //能源种类
  152. displacement: "", //排量
  153. powerScale: "", //功率
  154. registerDate: "", //注册日期
  155. issueDate: "", //发证日期
  156. transferFlag: false, //过户标志
  157. transferFlagBi: false, //商业过户标志
  158. transferDate: "", //过户日期
  159. loanStatus: 0, //贷款标志
  160. firstBeneMan: "", //第一受益人
  161. noLicenseFlag: false, //是否新车
  162. carTypeCode: "K33", //客车A0 货车H0          
  163. carNatureCode: "02", //使用性质 家庭自用8A 非营业企业8B 非营业党政机关,事业团体8C 非营业货车8D
  164. propertyCode: "1", //所属性质 1个人 2企业 3个人
  165. outOfInsurance: false, //脱保
  166. usedCar: false, //二手车
  167. vehicleUseCode: "05" //车辆用途
  168. },
  169. ownersInfo: {}, //车主
  170. policyHolderInfo: {}, //投保人
  171. insuredPersonInfo: {}, //被保人
  172. checkType: "carInfo",
  173. OCRUploadShow: false, //上传弹窗
  174. carPopuptablist: [{
  175. name: '行车本正页',
  176. }, {
  177. name: '行车本副页',
  178. }],
  179. licenseNo: "", //车牌号
  180. carTypeCode: "客车", //车辆类型
  181. carTypeCodeValue: "A0",
  182. carTypeShow: false, //选择车型
  183. tenantOrglist: [], //租户机构列表
  184. tenantLoaded: false, //机构列表是否已加载(防止 onShow 补加载与 onLoad 重复执行)
  185. tenantLoading: false, //机构列表是否加载中(防重入)
  186. historyLoaded: false, //历史报价车牌是否已加载
  187. loadedToken: '', //数据加载时的token(用于检测登录账号变化,401重登/换账号时重置并重载)
  188. deptradiovalue: '',
  189. deptradioName: '',
  190. licenseActiveName: '晋', //车牌选中
  191. licenseValue: "",
  192. licenseShow: false, //车牌选择
  193. deptSelectShow: false, //机构选择弹窗显示/隐藏
  194. bannerList: [ //轮播图
  195. "/static/image/banner.png",
  196. ],
  197. activeTab: 0, //
  198. tabList: [{
  199. label: '传图报价',
  200. id: 0
  201. },
  202. {
  203. label: '车牌号报价',
  204. id: 1
  205. }
  206. ],
  207. licenselist: ["京", "沪", "粤", "津", "冀", "豫", "云", "辽", "黑", "湘", "皖", "鲁", "苏",
  208. "浙", "赣", "鄂", "桂", "甘", "晋", "陕", "蒙", "吉", "闽", "贵", "渝", "川",
  209. "青", "琼", "宁", "挂", "藏", "港", "澳", "新", "使", "学"
  210. ],
  211. carInfoImgViewList: [],
  212. //影像id
  213. carImageListId: [], //车辆
  214. ownerImageListId: [], //车主
  215. policyHolderImageListId: [], //投保人
  216. insuredPersonImageListId: [], //被保人
  217. car_kind_codeoptions: [],
  218. }
  219. },
  220. async onShow() {
  221. if (!store.state.token) {
  222. // 未登录先跳登录页,避免在首页发起需要登录态的请求;已在登录页时不重复跳转
  223. let pages = getCurrentPages();
  224. let currentPage = pages[pages.length - 1];
  225. if (!(currentPage && currentPage.route === 'pages/login/login')) {
  226. uni.navigateTo({
  227. url: "/pages/login/login"
  228. });
  229. }
  230. return;
  231. }
  232. // 登录账号变化(401重登/换账号)时重置加载标志并清空旧数据,重新拉取
  233. // 注意:不重置 tenantLoading,避免打断执行中 onLoad 的防重入(否则会重复请求/重复签到)
  234. if (this.loadedToken !== store.state.token) {
  235. this.tenantLoaded = false;
  236. this.historyLoaded = false;
  237. this.tenantOrglist = [];
  238. this.historicalVehicle = [];
  239. this.bannerList = [];
  240. this.deptradiovalue = '';
  241. this.deptradioName = '';
  242. }
  243. // 已登录但首页数据未加载(如未登录时进入过首页后再登录,onLoad 不会重新执行),补加载
  244. if (!this.tenantLoaded) {
  245. await this.onLoad();
  246. } else if (!this.historyLoaded) {
  247. this.loadHistoryQuote(); //机构已加载但历史车牌失败过,单独补
  248. }
  249. await this.getDicType("car_kind_code"); //车辆种类
  250. },
  251. async onLoad() {
  252. if (!store.state.token) {
  253. return; // 未登录不发请求(onShow 会跳转登录页),避免 getTenantList 等接口 401 弹“登录已失效”
  254. }
  255. if (this.tenantLoading || this.tenantLoaded) {
  256. return; // 防重入:加载中或已加载过则不再执行,避免重复请求/重复签到
  257. }
  258. const loadToken = store.state.token; // 快照本次加载的token,完成时校验账号是否已变化
  259. this.tenantLoading = true;
  260. try {
  261. let res = await this.$http.post('/userInfo/getTenantList'); //获取机构列表
  262. if (res.code == '200') {
  263. if (res.data && res.data.length) {
  264. if (res.data.length > 1) {
  265. this.tenantOrglist = res.data;
  266. if (!store.state.system_code) {
  267. this.deptSelectShow = true; //多个租户弹窗选择
  268. } else {
  269. this.deptradiovalue = store.state.system_code;
  270. this.deptradioName = store.state.system_Name;
  271. }
  272. } else {
  273. //单个租户赋值第一个(仅组件内数据,写store/签到等副作用在校验通过后执行)
  274. this.tenantOrglist = res.data;
  275. this.deptradiovalue = res.data[0].systemCode;
  276. this.deptradioName = res.data[0].deptName;
  277. }
  278. }
  279. // 账号校验前置:加载期间账号已变化则放弃并清理,避免旧账号数据污染store/重复签到
  280. if (store.state.token !== loadToken) {
  281. this.tenantOrglist = [];
  282. this.deptradiovalue = '';
  283. this.deptradioName = '';
  284. this.deptSelectShow = false;
  285. return;
  286. }
  287. // 校验通过后才执行写store与签到等副作用操作
  288. if (res.data && res.data.length === 1) {
  289. store.commit('setUserModules', {
  290. title: 'system_code',
  291. data: this.tenantOrglist[0].systemCode
  292. })
  293. store.commit('setUserModules', {
  294. title: 'system_Name',
  295. data: this.tenantOrglist[0].sysName
  296. })
  297. await this.bannerquery(); //获取轮播图
  298. await this.getUserInfo(); //获取人员信息
  299. await this.$http.post('/signIn/doSignIn')
  300. }
  301. // 整条初始化链成功后才置位(任一环节失败则不置位,onShow 下次可重试)
  302. this.tenantLoaded = true;
  303. this.loadedToken = loadToken;
  304. }
  305. } catch (e) {
  306. // 静默:401 由 dataFactory 统一处理,网络异常不中断;tenantLoaded 保持 false,下次 onShow 可重试
  307. } finally {
  308. this.tenantLoading = false;
  309. }
  310. try {
  311. await this.loadHistoryQuote(); //获取历史报价车牌
  312. } catch (e) {
  313. // 静默:历史报价车牌加载失败不影响主流程
  314. }
  315. },
  316. beforeCreate() {
  317. // setTimeout(() => {
  318. // this.$refs.app_update.update(); //调用子组件检查更新方法
  319. // }, 500)
  320. },
  321. methods: {
  322. ...mapMutations(['activelicenseNo']),
  323. //获取历史报价车牌(独立方法,失败后 onShow 可单独重试)
  324. async loadHistoryQuote() {
  325. const loadToken = store.state.token; // 快照token,完成时校验账号是否已变化
  326. let res1 = await this.$http.get('/supplementOrder/getHistoryQuote');
  327. if (res1.code == '200') {
  328. if (store.state.token !== loadToken) {
  329. return; // 加载期间账号已变化,放弃(数据属于旧账号)
  330. }
  331. this.historicalVehicle = res1.data;
  332. this.historyLoaded = true;
  333. }
  334. },
  335. arr() {
  336. uni.navigateTo({
  337. url: '/pages/reward/benefitPackage'
  338. })
  339. },
  340. //车牌号查询相关历史订单
  341. licensePlateQuery(item) {
  342. // this.activelicenseNo(item);
  343. uni.navigateTo({
  344. url: '/pages/quote/quoteRecords?license=' + item,
  345. })
  346. },
  347. //获取登录人信息
  348. async getUserInfo() {
  349. let userInfoRes = await this.$http.get('/appUser/userInfoGet', {}); //用户信息
  350. store.commit('setUserModules', { //用户信息
  351. title: 'userInfo',
  352. data: {
  353. sysUser: {
  354. ...userInfoRes.data
  355. }
  356. }
  357. })
  358. },
  359. //获取轮播图
  360. async bannerquery() {
  361. let res = await this.$http.post('/poster/queryPage');
  362. if (res.code == '200') {
  363. let list = res.data.records.map(val => {
  364. return val.previewUrl;
  365. })
  366. this.bannerList = list;
  367. }
  368. },
  369. //数据字典
  370. async getDicType(type, vehicle) {
  371. if (vehicle) {
  372. let res = await this.$http.get(`/dict/get?dictCode=${type}&parentValue=${vehicle}`);
  373. this[type + vehicle + "options"] = [res.data];
  374. } else {
  375. let res = await this.$http.get('/dict/get?dictCode=' + type);
  376. this[type + "options"] = [res.data];
  377. }
  378. },
  379. //影像识别回调事件
  380. carCallback(obj) {
  381. this.carInfoImgViewList = [];
  382. if (obj.frontImg) {
  383. this.carInfoImgViewList.push({
  384. img: obj.frontImg,
  385. deg: 0,
  386. })
  387. }
  388. if (obj.backImg) {
  389. this.carInfoImgViewList.push({
  390. img: obj.backImg,
  391. deg: 0,
  392. })
  393. }
  394. this.carImageListId = obj.ImgList;
  395. Object.assign(this.carInfo, obj.Info);
  396. this.OCRUploadShow = false;
  397. let params = {
  398. carInfo: this.carInfo,
  399. carInfoImgViewList: this.carInfoImgViewList,
  400. carImageListId: this.carImageListId,
  401. }
  402. uni.navigateTo({
  403. url: '/pages/quote/quoteInfo?info=' + JSON.stringify(params)
  404. })
  405. },
  406. //用户机构选择
  407. deptSelect() {
  408. this.deptSelectShow = true;
  409. },
  410. //车牌地区选择
  411. Regionselect() {
  412. this.licenseShow = true;
  413. },
  414. licenseItem(item) {
  415. this.licenseActiveName = item;
  416. this.licenseShow = false;
  417. },
  418. licenseclose() {
  419. this.licenseShow = false;
  420. },
  421. deptclose() {
  422. this.deptSelectShow = false;
  423. },
  424. handleInput(event) {
  425. // 将过滤后的值转换为大写
  426. this.licenseValue = event.toUpperCase();
  427. },
  428. carTypeconfirm(value) {
  429. this.carTypeCode = value.value[0].label;
  430. this.carTypeCodeValue = value.value[0].value;
  431. this.carTypeShow = false;
  432. },
  433. //选择机构
  434. async deptchange(name) {
  435. let info = this.tenantOrglist.find(val => val.systemCode == name);
  436. this.deptradiovalue = info.systemCode;
  437. this.deptradioName = info.sysName;
  438. await store.commit('setUserModules', {
  439. title: 'system_code',
  440. data: info.systemCode,
  441. })
  442. store.commit('setUserModules', {
  443. title: 'system_Name',
  444. data: info.sysName
  445. })
  446. this.deptSelectShow = false;
  447. await this.bannerquery();
  448. await this.getUserInfo();
  449. let res1 = await this.$http.post('/signIn/doSignIn',)
  450. },
  451. async manualQuote() {
  452. uni.navigateTo({
  453. url: '/pages/quote/quoteInfo'
  454. })
  455. },
  456. async manualQuote1() {
  457. if (this.licenseValue !== "" && this.carTypeCodeValue !== "") {
  458. let params = {
  459. licenseNo: this.licenseActiveName + this.licenseValue,
  460. carKindCode: this.carTypeCodeValue,
  461. }
  462. let res = await this.$http.get('/supplementOrder/getCarRecord', params);
  463. if (res.code == '200') {
  464. Object.assign(this.carInfo, res.data.carInfoVo);
  465. Object.assign(this.ownersInfo, res.data.ownersInfo);
  466. Object.assign(this.policyHolderInfo, res.data.policyHolderInfo);
  467. Object.assign(this.insuredPersonInfo, res.data.insuredPersonInfo);
  468. uni.navigateTo({
  469. url: '/pages/quote/quoteInfo',
  470. success: (res) => {
  471. res.eventChannel
  472. .emit(
  473. "acceptData", {
  474. carInfo: this.carInfo,
  475. ownersInfo: this.ownersInfo,
  476. policyHolderInfo: this.policyHolderInfo,
  477. insuredPersonInfo: this.insuredPersonInfo,
  478. })
  479. }
  480. })
  481. } else {
  482. uni.navigateTo({
  483. url: '/pages/quote/quoteInfo'
  484. })
  485. }
  486. } else {
  487. uni.showToast({
  488. title: "请输入车牌号",
  489. icon: 'none',
  490. });
  491. }
  492. },
  493. Service() {
  494. uni.navigateTo({
  495. url: '/pages/tool/helpAndSupport'
  496. })
  497. }
  498. }
  499. }
  500. </script>
  501. <style lang="scss" scoped>
  502. .page {
  503. background-color: #F8F8F8;
  504. height: 100vh;
  505. }
  506. .content {
  507. position: absolute;
  508. top: 327rpx;
  509. left: 0;
  510. right: 0;
  511. padding: 20rpx 30rpx 30rpx;
  512. box-sizing: border-box;
  513. .imgtitle {
  514. font-size: 26rpx;
  515. color: #333;
  516. }
  517. .block {
  518. width: 85%;
  519. height: 50%;
  520. background: #FFFFFF;
  521. border-radius: 10rpx;
  522. border: 1px solid #FFFCB5;
  523. }
  524. .colorBlock {
  525. position: absolute;
  526. top: 52rpx; // 根据实际图片高度调整
  527. left: 50%;
  528. transform: translateX(-50%);
  529. width: 80%;
  530. height: 300rpx;
  531. margin: 0 auto;
  532. margin-top: 16rpx;
  533. background: #fff;
  534. border-radius: 10rpx 10rpx 10rpx 10rpx;
  535. border: 2rpx solid #FFFCB5;
  536. }
  537. .imageUpload {
  538. position: relative;
  539. width: 100%;
  540. height: 376rpx;
  541. background: #fff;
  542. box-shadow: 0px 0px 16px 0px rgba(146, 141, 97, 0.1);
  543. border-radius: 10rpx 10rpx 10rpx 10rpx;
  544. border: 1px solid #FFFCB5;
  545. margin-top: 40rpx;
  546. padding: 30rpx;
  547. box-sizing: border-box;
  548. >image {
  549. width: 100%;
  550. height: 100%;
  551. }
  552. }
  553. .quotebtn {
  554. background: #FDE935;
  555. padding: 19rpx 147rpx;
  556. box-sizing: border-box;
  557. border-radius: 58rpx;
  558. font-size: 36rpx;
  559. color: #1F1F1F;
  560. margin: 60rpx 17rpx 0 17rpx;
  561. }
  562. }
  563. .dept {
  564. position: absolute;
  565. top: 103rpx;
  566. left: 30rpx;
  567. text {
  568. font-size: 30rpx;
  569. color: #333333;
  570. }
  571. }
  572. .Service {
  573. position: absolute;
  574. top: 85rpx;
  575. right: 30rpx;
  576. font-size: 20rpx;
  577. color: #333;
  578. image {
  579. width: 48rpx;
  580. height: 48rpx;
  581. }
  582. }
  583. .swiper {
  584. padding: 30rpx;
  585. margin-top: 480rpx;
  586. box-sizing: border-box;
  587. }
  588. .license {
  589. image {
  590. width: 40rpx;
  591. height: 40rpx;
  592. margin-right: 10rpx;
  593. }
  594. .title {
  595. font-size: 30rpx;
  596. color: #333;
  597. }
  598. .licensePlateRegion {
  599. .Region {
  600. width: 80rpx;
  601. height: 75rpx;
  602. border-radius: 4rpx;
  603. border: 1px solid #FDE935;
  604. padding: 17rpx 25rpx;
  605. font-size: 30rpx;
  606. box-sizing: border-box;
  607. color: #333;
  608. font-weight: bold;
  609. margin-right: 27rpx;
  610. }
  611. }
  612. }
  613. ::v-deep {
  614. .input-placeholder {
  615. font-size: 30rpx;
  616. color: #999 !important;
  617. }
  618. }
  619. //车牌地区选择
  620. .licenselist {
  621. .item {
  622. padding: 12rpx 10rpx;
  623. background-color: #fff;
  624. border-radius: 8rpx;
  625. margin: 8rpx;
  626. font-size: 40rpx;
  627. color: #333;
  628. font-weight: 500;
  629. box-sizing: border-box;
  630. }
  631. .active {
  632. background-color: #FDE935;
  633. }
  634. }
  635. //出单机构选择
  636. .overflow {
  637. padding: 30rpx;
  638. box-sizing: border-box;
  639. .deptselect {
  640. .item {
  641. border-radius: 10rpx;
  642. border: 1px solid #EEEEEE;
  643. padding: 24rpx 25rpx;
  644. margin-bottom: 30rpx;
  645. width: 100%;
  646. box-sizing: border-box;
  647. image {
  648. width: 72rpx;
  649. height: 72rpx;
  650. margin-right: 20rpx;
  651. }
  652. .textregion {
  653. margin-right: auto;
  654. text:first-child {
  655. font-size: 32rpx;
  656. color: #333;
  657. font-weight: bold;
  658. }
  659. text:last-child {
  660. font-size: 30rpx;
  661. color: #666;
  662. }
  663. }
  664. }
  665. }
  666. }
  667. .licenslist {
  668. overflow-x: auto;
  669. /* 超出后可以左右滑动 */
  670. white-space: nowrap;
  671. /* 防止子元素换行 */
  672. padding: 10rpx 0;
  673. /* 添加一些内边距 */
  674. .item {
  675. flex: 0 0 auto;
  676. /* 防止子元素被压缩 */
  677. padding: 8rpx 20rpx;
  678. box-sizing: border-box;
  679. background: linear-gradient(270deg, rgba(253, 233, 53, 0.2) 0%, rgba(220, 238, 111, 0.2) 100%);
  680. border-radius: 2rpx;
  681. margin-right: 10rpx;
  682. font-size: 26rpx;
  683. color: #000;
  684. }
  685. }
  686. .u--input {
  687. padding: 12rpx 18rpx;
  688. border-bottom: 0.5px solid rgb(253, 233, 53);
  689. }
  690. </style>