entry.vue 44 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318
  1. <template>
  2. <view class="page">
  3. <view class="banner mb-3">
  4. <image src="/static/image/car-insure/carban.png" mode=""></image>
  5. </view>
  6. <view class="carinfo">
  7. <view class="title dis a-c j-s mb-3">
  8. <text>车辆信息</text>
  9. <view class="rounded dis a-c j-c">
  10. <view class="left dis a-c j-c" :class="insuranceType==1? 'active':''" @click="insuranceType=1">
  11. <text>车牌号</text>
  12. </view>
  13. <view class="center"></view>
  14. <view class="right dis a-c j-c" :class="insuranceType==2? 'active':''" @click="insuranceType=2">
  15. <text>行驶证</text>
  16. </view>
  17. </view>
  18. </view>
  19. <view class="carinput" v-show="insuranceType==1">
  20. <view class="top dis a-c j-s mb-3">
  21. <text>车牌号码</text>
  22. <u-switch v-model="checked" active-color="#0052FF" inactive-color="#eee" size='30'
  23. @change="switchChange"></u-switch>
  24. </view>
  25. <view class="btn dis a-c j-s">
  26. <view class="so-plate-word dis a-c j-c" data-index="0" :class="currentInputIndex==0?'actives':''"
  27. @tap="inputSwitch">
  28. <text>{{LicenseInputValue[0]}}</text>
  29. </view>
  30. <view class="so-plate-word dis a-c j-c" data-index="1" :class="currentInputIndex==1?'actives':''"
  31. @tap="inputSwitch">
  32. <text>{{LicenseInputValue[1]}}</text>
  33. </view>
  34. <view class="so-plate-dot"></view>
  35. <view class="so-plate-word dis a-c j-c" data-index="2" :class="currentInputIndex==2?'actives':''"
  36. @tap="inputSwitch">
  37. <text>{{LicenseInputValue[2]}}</text>
  38. </view>
  39. <view class="so-plate-word dis a-c j-c" data-index="3" :class="currentInputIndex==3?'actives':''"
  40. @tap="inputSwitch">
  41. <text>{{LicenseInputValue[3]}}</text>
  42. </view>
  43. <view class="so-plate-word dis a-c j-c" data-index="4" :class="currentInputIndex==4?'actives':''"
  44. @tap="inputSwitch">
  45. <text>{{LicenseInputValue[4]}}</text>
  46. </view>
  47. <view class="so-plate-word dis a-c j-c" data-index="5" :class="currentInputIndex==5?'actives':''"
  48. @tap="inputSwitch">
  49. <text>{{LicenseInputValue[5]}}</text>
  50. </view>
  51. <view class="so-plate-word dis a-c j-c" data-index="6" :class="currentInputIndex==6?'actives':''"
  52. @tap="inputSwitch">
  53. <text>{{LicenseInputValue[6]}}</text>
  54. </view>
  55. <view class="so-plate-word dis a-c j-c" data-index="7" :class="currentInputIndex==7?'newactives':''"
  56. @tap="inputSwitch">
  57. <text v-if="LicenseInputValue[7]">{{LicenseInputValue[7]}}</text>
  58. <view v-else class="newEnergy dis f-c a-c j-c">
  59. <image src="/static/image/car-insure/leaf.png" mode="">
  60. </image>
  61. <text>新能源</text>
  62. </view>
  63. </view>
  64. </view>
  65. </view>
  66. <view v-show="insuranceType==2" class="OCRcar">
  67. <view class="title dis j-s a-c">
  68. <view class="dis a-c">
  69. <text>行驶证识别</text>
  70. <view class="switch-container ml-2" @tap="toggleSwitch" v-if="carbackImg">
  71. <view class="switch-track">
  72. <view class="switch-thumb dis a-c j-c" :class="{ thumbactive: !isActive }"></view>
  73. <view class="switch-thumb1 dis a-c j-c" :class="{ thumbactive1: isActive }">主</view>
  74. <view class="switch-thumb2 dis a-c j-c" :class="{ thumbactive1: !isActive }">副</view>
  75. </view>
  76. </view>
  77. </view>
  78. <text @click="carSwitching=!carSwitching">{{carSwitching?'手动输入':'拍照识别'}}</text>
  79. </view>
  80. <view v-show="carSwitching" class="ocr mt-2">
  81. <image v-if="!carfrontImg" @tap="ocrIdentify" src="/static/image/car-insure/carbg.png" mode=""
  82. style="width: 100%;height: 198px;">
  83. </image>
  84. <template v-else>
  85. <view v-if=" carfrontImg" class="movable-view dis f-c a-c">
  86. <movable-area>
  87. <movable-view direction="all" :out-of-bounds="true" :scale="true" :damping="30"
  88. :friction="10">
  89. <image v-if="isActive" :src="carfrontImg" mode="widthFix"
  90. :style="{width:'100%',height:'100%',transform:`rotate(-${cardeg}deg)`}">
  91. </image>
  92. <image v-else :src="carbackImg" mode="widthFix"
  93. :style="{width:'100%',height:'100%',transform:`rotate(-${cardeg}deg)`}">
  94. </image>
  95. </movable-view>
  96. </movable-area>
  97. <view class="operate-img dis j-s a-c">
  98. <view class="dis a-c" @tap="rotatefront('cardeg')">
  99. <image src="/static/image/car-insure/rotate1.png" mode=""></image>
  100. 左转
  101. </view>
  102. <view class="dis a-c" @tap="ocrIdentify('carInfo')">
  103. <image src="/static/image/car-insure/upload.png" mode=""></image>
  104. 上传
  105. </view>
  106. <view class="dis a-c" @tap="rotateback('cardeg')">
  107. <image src="/static/image/car-insure/rotate2.png" mode=""></image>
  108. 右转
  109. </view>
  110. </view>
  111. </view>
  112. <view class="">
  113. <uni-forms :rules="carRules" :value="carInfo" ref="carForm" validate-trigger="bind"
  114. err-show-type="toast" label-width="100" style="padding: 0 15px;">
  115. <uni-forms-item label="车牌号: ">
  116. <input class="uni-input-input textColor" placeholder="输入车牌号"
  117. v-model="carInfo.licenseNo" placeholder-style="font-size:28upx"
  118. @input="upperCaseType('licenseNo')" />
  119. </uni-forms-item>
  120. <uni-forms-item name="frameNo" required label="车辆识别码:">
  121. <view class="d-flex a-center" style="height: 100%;">
  122. <input class="uni-input-input flex-1 textColor" placeholder="请输入车辆识别码"
  123. v-model="carInfo.frameNo" maxlength="17" placeholder-style="font-size:28upx"
  124. @input="upperCaseType('frameNo')" />
  125. <image src="/static/image/car-insure/search.png" mode=""
  126. style="width: 20px;height: 20px;" @tap="toChooseVin(carInfo.frameNo)">
  127. </image>
  128. </view>
  129. </uni-forms-item>
  130. <uni-forms-item name="modelcname" required label="品牌型号: ">
  131. <view class="d-flex a-center textColor" style="height: 100%;">
  132. <input class="uni-input-input flex-1 textColor" placeholder="请输入品牌型号"
  133. v-model="carInfo.modelcname"
  134. @blur="binddata('modelcname', $event.detail.value,'carForm')"
  135. placeholder-style="font-size:28upx" @input="upperCaseType('modelcname')" />
  136. <image src="/static/image/car-insure/search.png" mode=""
  137. style="width: 20px;height: 20px;"
  138. @tap="toChooseVehicleType(carInfo.modelcname)">
  139. </image>
  140. </view>
  141. </uni-forms-item>
  142. <uni-forms-item name="engineNo" required label="发动机号: ">
  143. <input class="uni-input-input textColor" placeholder="请输入发动机号"
  144. v-model="carInfo.engineNo"
  145. @blur="binddata('engineNo', $event.detail.value,'carForm')"
  146. placeholder-style="font-size:28upx" @input="upperCaseType('engineNo')" />
  147. </uni-forms-item>
  148. <uni-forms-item required label="注册日期" name="registerDate">
  149. <u-input type="select" :custom-style="{textAlign:'right'}"
  150. :select-open="registerDateShow" v-model="carInfo.registerDate"
  151. placeholder="请选择注册日期" @click="registerDateShow = true"
  152. placeholder-style="color:#808080"></u-input>
  153. <u-picker v-model="registerDateShow" mode="time" :params="params"
  154. :end-year="endYear" :end-month="endMonth"
  155. @confirm="e=> Dateconfirm(e,'carInfo','registerDate')"></u-picker>
  156. </uni-forms-item>
  157. <uni-forms-item required label="发证日期" name="issueDate">
  158. <u-input type="select" :custom-style="{textAlign:'right'}"
  159. :select-open="issueDateShow" v-model="carInfo.issueDate" placeholder="请选择发证日期"
  160. @click="issueDateShow = true" placeholder-style="color:#808080"></u-input>
  161. <u-picker v-model="issueDateShow" mode="time" :params="params"
  162. @confirm="e=> Dateconfirm(e,'carInfo','issueDate')"></u-picker>
  163. </uni-forms-item>
  164. <uni-forms-item label="整备质量: " required name="completeKerbMass">
  165. <input class="uni-input-input textColor" placeholder="请输入整备质量"
  166. v-model="carInfo.completeKerbMass" placeholder-style="font-size:28upx" />
  167. </uni-forms-item>
  168. <uni-forms-item label="核定载质量: ">
  169. <input class="uni-input-input textColor" placeholder="请输入核定载质量"
  170. v-model="carInfo.limitLoad" placeholder-style="font-size:28upx" />
  171. </uni-forms-item>
  172. <uni-forms-item label="使用性质: " required name="carnature">
  173. <u-input v-model="carInfo1.carnature" type="select" :select-open="carnatureShow"
  174. @click="carnatureShow = true" :custom-style="{textAlign:'right'}"
  175. placeholder-style="color:#808080" placeholder="请选择使用性质" />
  176. <u-select mode="single-column" :list="natureOfVehicleUseoptions"
  177. v-model="carnatureShow" label-name="dictTag" value-name="dictValue"
  178. @confirm="dictionaryConfirm($event,'carnature')"></u-select>
  179. </uni-forms-item>
  180. <uni-forms-item label="能源种类: " required name="energyType">
  181. <u-input v-model="carInfo1.energyType" type="select" :select-open="energyTypeShow"
  182. @click="energyTypeShow = true" :custom-style="{textAlign:'right'}"
  183. placeholder-style="color:#808080" placeholder="请选择能源种类" />
  184. <u-select mode="single-column" :list="energyTypeoptions" v-model="energyTypeShow"
  185. label-name="dictTag" value-name="dictValue"
  186. @confirm="dictionaryConfirm($event,'energyType')"></u-select>
  187. </uni-forms-item>
  188. <uni-forms-item label="车辆用途: " required name="vehicleUse">
  189. <u-input v-model="carInfo1.vehicleUse" type="select" :select-open="vehicleUseShow"
  190. @click="vehicleUseShow = true" :custom-style="{textAlign:'right'}"
  191. placeholder-style="color:#808080" placeholder="请选择车辆用途" />
  192. <u-select v-if="carInfo.carnature=='01'" mode="single-column"
  193. :list="businessVehicleUseoptions" v-model="vehicleUseShow" label-name="dictTag"
  194. value-name="dictValue"
  195. @confirm="dictionaryConfirm($event,'vehicleUse')"></u-select>
  196. <u-select v-else mode="single-column" :list="outOfBusinessVehicleUseoptions"
  197. v-model="vehicleUseShow" label-name="dictTag" value-name="dictValue"
  198. @confirm="dictionaryConfirm($event,'vehicleUse')"></u-select>
  199. </uni-forms-item>
  200. <uni-forms-item label="车辆类型: " required name="cartype">
  201. <u-input v-model="carInfo1.cartype" type="select" :select-open="cartypeShow"
  202. @click="cartypeShow = true" :custom-style="{textAlign:'right'}"
  203. placeholder-style="color:#808080" placeholder="请选择车辆类型" />
  204. <u-select mode="single-column" :searchShow="true"
  205. :list="trafficManagementVehicleTypeoptions" v-model="cartypeShow"
  206. label-name="dictTag" value-name="dictValue"
  207. @confirm="dictionaryConfirm($event,'cartype')"></u-select>
  208. </uni-forms-item>
  209. <uni-forms-item label="车辆种类: " required name="cimodelclass">
  210. <u-input v-model="carInfo1.cimodelclass" type="select"
  211. :select-open="cimodelclassShow" @click="cimodelclassShow = true"
  212. :custom-style="{textAlign:'right'}" placeholder-style="color:#808080"
  213. placeholder="请选择车辆种类" />
  214. <u-select mode="single-column" :list="vehicleTypeoptions" v-model="cimodelclassShow"
  215. label-name="dictTag" value-name="dictValue"
  216. @confirm="dictionaryConfirm($event,'cimodelclass')"></u-select>
  217. </uni-forms-item>
  218. <uni-forms-item label="年款: ">
  219. <input class="uni-input-input textColor" placeholder="请输入年款"
  220. v-model="carInfo.caryear" placeholder-style="font-size:28upx" />
  221. </uni-forms-item>
  222. <uni-forms-item label="座位数: ">
  223. <input class="uni-input-input textColor" placeholder="请输入座位数"
  224. v-model="carInfo.seatCount" maxlength="1" placeholder-style="font-size:28upx" />
  225. </uni-forms-item>
  226. <uni-forms-item label="排量: ">
  227. <input class="uni-input-input textColor" placeholder="请输入排量"
  228. v-model="carInfo.enginedesc" placeholder-style="font-size:28upx" />
  229. </uni-forms-item>
  230. <uni-forms-item label="功率: ">
  231. <input class="uni-input-input textColor" placeholder="请输入功率"
  232. v-model="carInfo.powerScale" placeholder-style="font-size:28upx" />
  233. </uni-forms-item>
  234. <uni-forms-item label="新车购置价: " required name="purchasePrice">
  235. <input class="uni-input-input textColor" placeholder="请输入新车购置价"
  236. v-model="carInfo.purchasePrice" placeholder-style="font-size:28upx"
  237. @blur="binddata('purchasePrice', $event.detail.value,'carForm')"
  238. @input="upperCaseType('purchasePrice')" />
  239. </uni-forms-item>
  240. <uni-forms-item label="是否过户: ">
  241. <view class="d-flex j-end a-c" style="height:100%">
  242. <u-switch v-model="carInfo.transferFlag" active-color="#0052FF " size="30"
  243. @change="transferFlagchange"></u-switch>
  244. </view>
  245. </uni-forms-item>
  246. <uni-forms-item v-if="carInfo.transferFlag" required label="转移登记日期" name="transferDate">
  247. <u-input type="select" :select-open="transferDateShow"
  248. :custom-style="{textAlign:'right'}" v-model="carInfo.transferDate"
  249. placeholder="请选择过户日期" @click="transferDateShow = true"
  250. placeholder-style="color:#808080"></u-input>
  251. <u-picker v-model="transferDateShow" mode="time" :params="params"
  252. :end-year="endYear" :end-month="endMonth"
  253. @confirm="e=> Dateconfirm(e,'carInfo','transferDate')"></u-picker>
  254. </uni-forms-item>
  255. </uni-forms>
  256. </view>
  257. </template>
  258. </view>
  259. <view v-show="!carSwitching" class="content mt-2">
  260. <uni-forms :rules="carRules" :value="carInfo" ref="carForm" validate-trigger="bind"
  261. style="padding: 0 15px;" err-show-type="toast" label-width="100">
  262. <uni-forms-item label="车牌号: ">
  263. <input class="uni-input-input textColor" placeholder="输入车牌号" v-model="carInfo.licenseNo"
  264. placeholder-style="font-size:28upx" @input="upperCaseType('licenseNo')" />
  265. </uni-forms-item>
  266. <uni-forms-item name="frameNo" required label="车辆识别码:">
  267. <view class="d-flex a-center" style="height: 100%;">
  268. <input class="uni-input-input flex-1 textColor" placeholder="请输入车辆识别码"
  269. v-model="carInfo.frameNo" maxlength="17" placeholder-style="font-size:28upx"
  270. @input="upperCaseType('frameNo')" />
  271. <image src="/static/image/car-insure/search.png" mode=""
  272. style="width: 20px;height: 20px;" @tap="toChooseVin(carInfo.frameNo)">
  273. </image>
  274. </view>
  275. </uni-forms-item>
  276. <uni-forms-item name="modelcname" required label="品牌型号: ">
  277. <view class="d-flex a-center textColor" style="height: 100%;">
  278. <input class="uni-input-input flex-1 textColor" placeholder="请输入品牌型号"
  279. v-model="carInfo.modelcname"
  280. @blur="binddata('modelcname', $event.detail.value,'carForm')"
  281. placeholder-style="font-size:28upx" @input="upperCaseType('modelcname')" />
  282. <image src="/static/image/car-insure/search.png" mode=""
  283. style="width: 20px;height: 20px;" @tap="toChooseVehicleType(carInfo.modelcname)">
  284. </image>
  285. </view>
  286. </uni-forms-item>
  287. <uni-forms-item name="engineNo" required label="发动机号: ">
  288. <input class="uni-input-input textColor" placeholder="请输入发动机号" v-model="carInfo.engineNo"
  289. @blur="binddata('engineNo', $event.detail.value,'carForm')"
  290. placeholder-style="font-size:28upx" @input="upperCaseType('engineNo')" />
  291. </uni-forms-item>
  292. <uni-forms-item required label="注册日期" name="registerDate">
  293. <u-input type="select" :custom-style="{textAlign:'right'}" :select-open="registerDateShow"
  294. v-model="carInfo.registerDate" placeholder="请选择注册日期" @click="registerDateShow = true"
  295. placeholder-style="color:#808080"></u-input>
  296. <u-picker v-model="registerDateShow" mode="time" :params="params" :end-year="endYear"
  297. :end-month="endMonth" @confirm="e=> Dateconfirm(e,'carInfo','registerDate')"></u-picker>
  298. </uni-forms-item>
  299. <uni-forms-item required label="发证日期" name="issueDate">
  300. <u-input type="select" :custom-style="{textAlign:'right'}" :select-open="issueDateShow"
  301. v-model="carInfo.issueDate" placeholder="请选择发证日期" @click="issueDateShow = true"
  302. placeholder-style="color:#808080"></u-input>
  303. <u-picker v-model="issueDateShow" mode="time" :params="params"
  304. @confirm="e=> Dateconfirm(e,'carInfo','issueDate')"></u-picker>
  305. </uni-forms-item>
  306. <uni-forms-item label="整备质量: " required name="completeKerbMass">
  307. <input class="uni-input-input textColor" placeholder="请输入整备质量"
  308. v-model="carInfo.completeKerbMass" placeholder-style="font-size:28upx" />
  309. </uni-forms-item>
  310. <uni-forms-item label="核定载质量: ">
  311. <input class="uni-input-input textColor" placeholder="请输入核定载质量" v-model="carInfo.limitLoad"
  312. placeholder-style="font-size:28upx" />
  313. </uni-forms-item>
  314. <uni-forms-item label="使用性质: " required name="carnature">
  315. <u-input v-model="carInfo1.carnature" type="select" :select-open="carnatureShow"
  316. @click="carnatureShow = true" :custom-style="{textAlign:'right'}"
  317. placeholder-style="color:#808080" placeholder="请选择使用性质" />
  318. <u-select mode="single-column" :list="natureOfVehicleUseoptions" v-model="carnatureShow"
  319. label-name="dictTag" value-name="dictValue"
  320. @confirm="dictionaryConfirm($event,'carnature')"></u-select>
  321. </uni-forms-item>
  322. <uni-forms-item label="能源种类: " required name="energyType">
  323. <u-input v-model="carInfo1.energyType" type="select" :select-open="energyTypeShow"
  324. @click="energyTypeShow = true" :custom-style="{textAlign:'right'}"
  325. placeholder-style="color:#808080" placeholder="请选择能源种类" />
  326. <u-select mode="single-column" :list="energyTypeoptions" v-model="energyTypeShow"
  327. label-name="dictTag" value-name="dictValue"
  328. @confirm="dictionaryConfirm($event,'energyType')"></u-select>
  329. </uni-forms-item>
  330. <uni-forms-item label="车辆用途: " required name="vehicleUse">
  331. <u-input v-model="carInfo1.vehicleUse" type="select" :select-open="vehicleUseShow"
  332. @click="vehicleUseShow = true" :custom-style="{textAlign:'right'}"
  333. placeholder-style="color:#808080" placeholder="请选择车辆用途" />
  334. <u-select v-if="carInfo.carnature=='01'" mode="single-column"
  335. :list="businessVehicleUseoptions" v-model="vehicleUseShow" label-name="dictTag"
  336. value-name="dictValue" @confirm="dictionaryConfirm($event,'vehicleUse')"></u-select>
  337. <u-select v-else mode="single-column" :list="outOfBusinessVehicleUseoptions"
  338. v-model="vehicleUseShow" label-name="dictTag" value-name="dictValue"
  339. @confirm="dictionaryConfirm($event,'vehicleUse')"></u-select>
  340. </uni-forms-item>
  341. <uni-forms-item label="车辆类型: " required name="cartype">
  342. <u-input v-model="carInfo1.cartype" type="select" :select-open="cartypeShow"
  343. @click="cartypeShow = true" :custom-style="{textAlign:'right'}"
  344. placeholder-style="color:#808080" placeholder="请选择车辆类型" />
  345. <u-select mode="single-column" :searchShow="true"
  346. :list="trafficManagementVehicleTypeoptions" v-model="cartypeShow" label-name="dictTag"
  347. value-name="dictValue" @confirm="dictionaryConfirm($event,'cartype')"></u-select>
  348. </uni-forms-item>
  349. <uni-forms-item label="车辆种类: " required name="cimodelclass">
  350. <u-input v-model="carInfo1.cimodelclass" type="select" :select-open="cimodelclassShow"
  351. @click="cimodelclassShow = true" :custom-style="{textAlign:'right'}"
  352. placeholder-style="color:#808080" placeholder="请选择车辆种类" />
  353. <u-select mode="single-column" :list="vehicleTypeoptions" v-model="cimodelclassShow"
  354. label-name="dictTag" value-name="dictValue"
  355. @confirm="dictionaryConfirm($event,'cimodelclass')"></u-select>
  356. </uni-forms-item>
  357. <uni-forms-item label="年款: ">
  358. <input class="uni-input-input textColor" placeholder="请输入年款" v-model="carInfo.caryear"
  359. placeholder-style="font-size:28upx" />
  360. </uni-forms-item>
  361. <uni-forms-item label="座位数: ">
  362. <input class="uni-input-input textColor" maxlength="1" placeholder="请输入座位数"
  363. v-model="carInfo.seatCount" placeholder-style="font-size:28upx" />
  364. </uni-forms-item>
  365. <uni-forms-item label="排量: ">
  366. <input class="uni-input-input textColor" placeholder="请输入排量" v-model="carInfo.enginedesc"
  367. placeholder-style="font-size:28upx" />
  368. </uni-forms-item>
  369. <uni-forms-item label="功率: ">
  370. <input class="uni-input-input textColor" placeholder="请输入功率" v-model="carInfo.powerScale"
  371. placeholder-style="font-size:28upx" />
  372. </uni-forms-item>
  373. <uni-forms-item label="新车购置价: " required name="purchasePrice">
  374. <input class="uni-input-input textColor" placeholder="请输入新车购置价"
  375. v-model="carInfo.purchasePrice" placeholder-style="font-size:28upx"
  376. @blur="binddata('purchasePrice', $event.detail.value,'carForm')"
  377. @input="upperCaseType('purchasePrice')" />
  378. </uni-forms-item>
  379. <!-- <uni-forms-item label="是否过户: ">
  380. <view class="d-flex j-end a-c" style="height:100%">
  381. <u-switch v-model="carInfo.transferFlag" active-color="#0052FF " size="30"
  382. @change="transferFlagchange"></u-switch>
  383. </view>
  384. </uni-forms-item>
  385. <uni-forms-item v-if="carInfo.transferFlag" required label="转移登记日期" name="transferDate">
  386. <u-input type="select" :select-open="transferDateShow" v-model="carInfo.transferDate"
  387. placeholder="请选择过户日期" @click="transferDateShow = true"
  388. :custom-style="{textAlign:'right'}" placeholder-style="color:#808080"></u-input>
  389. <u-picker v-model="transferDateShow" mode="time" :params="params" :end-year="endYear"
  390. :end-month="endMonth" @confirm="e=> Dateconfirm(e,'carInfo','transferDate')"></u-picker>
  391. </uni-forms-item> -->
  392. </uni-forms>
  393. </view>
  394. </view>
  395. </view>
  396. <view class="fixed dis a-c j-c">
  397. <u-button type="warning" class="fiexdbtn" shape="circle" @click="toNext">立即投保</u-button>
  398. </view>
  399. <OCRComponent :showModal='OCRShow' @closePopup="closePopup" :tabslist="tabslist" @tabschange="OCRtabschange"
  400. :tabsCurrent="tabsCurrent" :checkType='checkType' @carCallback="carCallback">
  401. </OCRComponent>
  402. <u-keyboard ref="uKeyboard" mode="car" :keyboardType="keyboardType" v-model="keyboardShow"
  403. @change="keyboardchange" @backspace="backspacesss" @confirm="backsconfirm"></u-keyboard>
  404. <u-toast ref="uToast" />
  405. </view>
  406. </template>
  407. <script>
  408. import OCRComponent from '@/components/modules/carInsure/OCRComponent/OCRComponent.vue'; //引用图片信息检查插件
  409. var dateTime = new Date();
  410. let Year = dateTime.getFullYear();
  411. let Month = Number(dateTime.getMonth() + 1);
  412. export default {
  413. components: {
  414. OCRComponent,
  415. },
  416. data() {
  417. return {
  418. isActive: true,
  419. vehicleType: false, //车型查询调用标识
  420. keyboardType: false, //键盘中/英切换标识
  421. endYear: Year,
  422. endMonth: Month,
  423. params: {
  424. year: true, //年
  425. month: true, //月
  426. day: true, //日
  427. hour: false, //时
  428. minute: false, //分
  429. second: false, //秒
  430. },
  431. carRules: {
  432. frameNo: {
  433. rules: [{
  434. required: true,
  435. errorMessage: '请输入车辆识别码',
  436. }, {
  437. pattern: /^([0-9A-Z]){17}$/,
  438. errorMessage: '请输入正确的车辆识别码',
  439. }]
  440. },
  441. modelcname: {
  442. rules: [{
  443. required: true,
  444. errorMessage: '请输入品牌型号',
  445. }, ]
  446. },
  447. engineNo: {
  448. rules: [{
  449. required: true,
  450. errorMessage: '请输入发动机号',
  451. }, ]
  452. },
  453. purchasePrice: {
  454. rules: [{
  455. required: true,
  456. errorMessage: '请输入新车购置价',
  457. }, {
  458. validateField: function(rule, value, data, callback) {
  459. if (value == 0) {
  460. callback('新车购置价不能为零')
  461. }
  462. return true
  463. }
  464. }]
  465. },
  466. completeKerbMass: {
  467. rules: [{
  468. required: true,
  469. errorMessage: '请输入整备质量',
  470. }, ]
  471. },
  472. carnature: {
  473. rules: [{
  474. required: true,
  475. errorMessage: '使用性质必选',
  476. }, ]
  477. },
  478. vehicleUse: {
  479. rules: [{
  480. required: true,
  481. errorMessage: '车辆用途必选',
  482. }, ]
  483. },
  484. registerDate: {
  485. rules: [{
  486. required: true,
  487. errorMessage: '请选择注册日期',
  488. }, {
  489. pattern: /^\d{4}-\d{2}-\d{2}$/,
  490. errorMessage: '注册日期格式错误',
  491. }]
  492. },
  493. issueDate: {
  494. rules: [{
  495. required: true,
  496. errorMessage: '请选择发证日期',
  497. }, {
  498. pattern: /^\d{4}-\d{2}-\d{2}$/,
  499. errorMessage: '发证日期日期格式错误',
  500. }]
  501. }
  502. },
  503. //影像信息
  504. carSwitching: true, //true识别 false录入
  505. keyboardShow: false,
  506. insuranceType: 2,
  507. checked: true,
  508. LicenseInputValue: ['晋', 'A', '', '', '', '', '', ''],
  509. currentInputIndex: 0,
  510. carInfoPositiveList: [], //车辆
  511. ownerInfoPositiveList: [], //车主
  512. policyHolderInfoPositiveList: [], //投保人
  513. insuredPersonInfoPositiveList: [], //被保人
  514. ownerInfo: {
  515. name: "",
  516. identifyType: "01",
  517. identifyNumber: "",
  518. addr: "",
  519. gender: "", //性别
  520. email: "", //邮箱
  521. mobile: "",
  522. identifyValidDate: "", //有效期起期
  523. identifyValidEndDate: "", //有效期止期
  524. age: "", //年龄
  525. },
  526. policyHolderInfo: {
  527. name: "",
  528. identifyType: "01",
  529. identifyNumber: "",
  530. addr: "",
  531. gender: "", //性别
  532. email: "",
  533. mobile: "",
  534. identifyValidDate: "", //有效期起期
  535. identifyValidEndDate: "", //有效期止期
  536. age: "", //年龄
  537. },
  538. insuredPersonInfo: {
  539. name: "",
  540. identifyType: "01",
  541. identifyNumber: "",
  542. addr: "",
  543. gender: "", //性别
  544. email: "",
  545. mobile: "",
  546. identifyValidDate: "", //有效期起期
  547. identifyValidEndDate: "", //有效期止期
  548. age: "", //年龄
  549. },
  550. //车辆信息
  551. carInfo: {
  552. licenseNo: "", //车牌号
  553. brandName: "", //车辆品牌型号
  554. vinNo: "", //车架号
  555. engineNo: "", //发动机号
  556. modelCode: "", //车型编码
  557. seatCount: "0", //核定载客量 核定载人数
  558. purchasePrice: "", //新车购置价最低,行业实际价值,协商价值
  559. carBrand: "", //车型品牌
  560. ciCarName: "", //行业车型名称
  561. ciModelCode: "", //行业车型编码
  562. completeKerbMass: "", //整备质量
  563. exhaustScale: "", //排量
  564. factory: "", //工厂名称
  565. factoryid: "", //工厂编码
  566. frameNo: "", //车架号
  567. licenseTypeCode: "02", //号牌种类
  568. vehicleclass: "", //车辆类型
  569. familyName: "", //车型
  570. modelcname: "", //车型名称
  571. powertypecode: "", //燃料类型编码
  572. vehicleweight: "", //总质量
  573. limitLoad: "", //核定载质量
  574. caryear: "0", //年款
  575. cimodelclass: "A0", //车辆种类客车A0 货车H0
  576. cartype: "K33", //车辆类型
  577. powertype: "汽油", //燃料类型
  578. energyType: "0", //能源种类
  579. enginedesc: "", //排量
  580. powerScale: "", //功率
  581. registerDate: "", //注册日期
  582. issueDate: "", //发证日期
  583. transferFlag: false, //过户标志
  584. transferFlagBi: false, //商业过户标志
  585. transferDate: "", //过户日期
  586. loanStatus: 0, //贷款标志
  587. firstBeneMan: "", //第一受益人
  588. noLicenseFlag: false, //是否新车
  589. carnature: "02", //使用性质 家庭自用8A 非营业企业8B 非营业党政机关,事业团体8C 非营业货车8D
  590. property: "1", //所属性质 1个人 2企业 3个人
  591. outOfInsurance: false, //脱保
  592. usedCar: false, //二手车
  593. vehicleUse: "05" //车辆用途
  594. },
  595. carInfo1: {
  596. carnature: "非营业",
  597. energyType: "燃油",
  598. vehicleUse: "家庭自用",
  599. cartype: "轿车",
  600. cimodelclass: "客车",
  601. },
  602. registerDateShow: false, //注册日期
  603. issueDateShow: false, //发证日期
  604. transferDateShow: false, //转移登记日期
  605. carnatureShow: false, //使用性质
  606. energyTypeShow: false, //能源种类
  607. vehicleUseShow: false, //车辆用途
  608. cartypeShow: false, //车辆类型
  609. cimodelclassShow: false, //车辆种类
  610. /* 数据字典 */
  611. natureOfVehicleUseoptions: [],
  612. vehicleTypeoptions: [],
  613. trafficManagementVehicleTypeoptions: [],
  614. energyTypeoptions: [],
  615. businessVehicleUseoptions: [],
  616. outOfBusinessVehicleUseoptions: [],
  617. /* 数据字典 */
  618. tabslist: [{
  619. name: '行驶证识别'
  620. }, ],
  621. OCRShow: false,
  622. tabsCurrent: 0,
  623. checkType: "carInfo", //组件类型
  624. carfrontImg: null, //展示图片
  625. carbackImg: null, //展示图片
  626. cardeg: 0, //旋转角度
  627. word: "word",
  628. }
  629. },
  630. async onLoad() {
  631. this.$http.get('/sysMenuRecord/add?type=1&menuType=1')
  632. this.getDicType("businessVehicleUse"); //车辆用途(营业)
  633. this.getDicType("outOfBusinessVehicleUse"); //车辆用途(非营业)
  634. this.getDicType("natureOfVehicleUse"); //车辆性质
  635. this.getDicType("vehicleType"); //车辆种类
  636. this.getDicType("trafficManagementVehicleType"); //车辆类型
  637. this.getDicType("energyType"); //能源种类
  638. if (this.checked) {
  639. this.LicenseInputValue.forEach((val, index) => {
  640. if (index < 7) {
  641. this.$set(this.LicenseInputValue, index, "*");
  642. }
  643. })
  644. let valueList = this.LicenseInputValue;
  645. const str = valueList.join("")
  646. this.carInfo.licenseNo = str;
  647. } else {
  648. this.LicenseInputValue.forEach((val, index) => {
  649. this.$set(this.LicenseInputValue, index, "");
  650. })
  651. this.carInfo.licenseNo = "";
  652. }
  653. },
  654. onShow() {
  655. let historyInfo = uni.getStorageSync('historyInfo');
  656. if (historyInfo) {
  657. this.carInfo = historyInfo.carInfo;
  658. this.ownerInfo = historyInfo.ownerInfo;
  659. this.policyHolderInfo = historyInfo.policyHolderInfo;
  660. this.insuredPersonInfo = historyInfo.insuredPersonInfo;
  661. this.carInfoPositiveList = historyInfo.carInfoPositiveList;
  662. this.ownerInfoPositiveList = historyInfo.ownerInfoPositiveList;
  663. this.policyHolderInfoPositiveList = historyInfo.policyHolderInfoPositiveList;
  664. this.insuredPersonInfoPositiveList = historyInfo.insuredPersonInfoPositiveList;
  665. }
  666. },
  667. watch: {
  668. currentInputIndex(newVal) {
  669. switch (newVal) {
  670. case 0:
  671. this.keyboardType = false;
  672. break;
  673. default:
  674. this.keyboardType = true;
  675. }
  676. },
  677. "carInfo.energyType": {
  678. handler(val) {
  679. if (val) {
  680. this.carInfo1.energyType = this.dictionaryMatching(this.energyTypeoptions,
  681. this
  682. .carInfo
  683. .energyType);
  684. }
  685. },
  686. deep: true
  687. },
  688. "carInfo.cartype": {
  689. handler(val) {
  690. if (val) {
  691. this.carInfo1.cartype = this.dictionaryMatching(this.trafficManagementVehicleTypeoptions,
  692. this
  693. .carInfo
  694. .cartype);
  695. }
  696. },
  697. deep: true
  698. },
  699. },
  700. methods: {
  701. toggleSwitch() {
  702. this.isActive = !this.isActive;
  703. },
  704. rotatefront(int) {
  705. this[int] = this[int] == 270 ? 0 : this[int] + 90;
  706. },
  707. rotateback(int) {
  708. this[int] = this[int] == 0 ? 270 : this[int] - 90;
  709. },
  710. dictionaryConfirm(e, name) {
  711. if (name == 'carnature') {
  712. this.carInfo1['vehicleUse'] = "";
  713. this.carInfo['vehicleUse'] = "";
  714. }
  715. this.carInfo[name] = e[0].value;
  716. this.carInfo1[name] = e[0].label;
  717. },
  718. async getDicType(type) {
  719. let res = await this.$http.get('/sysDict/dictDetails/' + type);
  720. if (res.code == 200) {
  721. this[type + 'options'] = res.data.ddList;
  722. // if (type == "trafficManagementVehicleType") {
  723. // this.carInfo1.cartype = this.dictionaryMatching(this.trafficManagementVehicleTypeoptions, this
  724. // .carInfo
  725. // .cartype)
  726. // this.carInfo1.cimodelclass = this.dictionaryMatching(this.vehicleTypeoptions,
  727. // this
  728. // .carInfo
  729. // .cimodelclass)
  730. // }
  731. }
  732. },
  733. //字典name匹配
  734. dictionaryMatching(list, value) {
  735. let obj = list.find(val => val.dictValue == value);
  736. return obj.dictTag;
  737. },
  738. //OC识别返回信息
  739. carCallback(obj) {
  740. this.carfrontImg = obj.frontImg;
  741. this.carbackImg = obj.backImg;
  742. this.carInfoPositiveList = obj.ImgList;
  743. Object.assign(this.carInfo, obj.Info);
  744. this.carInfo1.cimodelclass = this.dictionaryMatching(this.vehicleTypeoptions,
  745. this
  746. .carInfo
  747. .cimodelclass)
  748. this.carInfo1.cartype = this.dictionaryMatching(this.trafficManagementVehicleTypeoptions,
  749. this
  750. .carInfo
  751. .cartype);
  752. this.carInfo1.carnature = this.carInfo.carnature ? this.dictionaryMatching(this
  753. .natureOfVehicleUseoptions,
  754. this
  755. .carInfo
  756. .carnature) : "";
  757. if (this.carInfo.carnature && this.carInfo.vehicleUse) {
  758. this.carInfo1.vehicleUse = this.carInfo.carnature == '02' ? this.dictionaryMatching(this
  759. .outOfBusinessVehicleUseoptions,
  760. this
  761. .carInfo
  762. .vehicleUse) : this.dictionaryMatching(this
  763. .BusinessVehicleUseoptions,
  764. this
  765. .carInfo
  766. .vehicleUse);
  767. } else {
  768. this.carInfo1.vehicleUse = "";
  769. }
  770. this.OCRShow = false;
  771. },
  772. upperCaseType(type) {
  773. this.carInfo[type] = this.carInfo[type].toUpperCase();
  774. if (type == 'frameNo') {
  775. this.carInfo.vinNo = this.carInfo.frameNo.trim();
  776. }
  777. },
  778. //
  779. transferFlagchange(status) {
  780. if (status) {
  781. this.carInfo.transferDate = this.carInfo.issueDate;
  782. } else {
  783. this.carInfo.transferDate = ""
  784. }
  785. },
  786. Dateconfirm(e, obj, param) {
  787. this[obj][param] = e.year + '-' + e.month + '-' + e.day;
  788. },
  789. //下一步
  790. toNext() {
  791. switch (this.insuranceType) {
  792. case 1:
  793. if (!this.carInfo.licenseNo && !this.islicense(this.carInfo.licenseNo)) {
  794. return uni.showToast({
  795. icon: "none",
  796. title: '请填写正确的车牌号码',
  797. duration: 1500
  798. });
  799. }
  800. let params = {
  801. carInfo: this
  802. .carInfo,
  803. ownerInfo: this
  804. .ownerInfo,
  805. policyHolderInfo: this
  806. .policyHolderInfo,
  807. insuredPersonInfo: this
  808. .insuredPersonInfo,
  809. carInfoPositiveList: this
  810. .carInfoPositiveList, //车辆
  811. ownerInfoPositiveList: this
  812. .ownerInfoPositiveList, //车主
  813. policyHolderInfoPositiveList: this
  814. .policyHolderInfoPositiveList, //投保人
  815. insuredPersonInfoPositiveList: this
  816. .insuredPersonInfoPositiveList, //被保人
  817. }
  818. this.navigate({
  819. url: "/pages/carInsure/Information?licenseNo=" + encodeURIComponent(this.carInfo
  820. .licenseNo) + '&historyInfo=' + `${JSON.stringify(params)}`
  821. }, "navigateTo", true)
  822. break;
  823. case 2:
  824. if (!this.carInfo.licenseNo && !this.carfrontImg) {
  825. return uni.showToast({
  826. icon: "none",
  827. title: '请上传资料或录入信息后再投保',
  828. duration: 1500
  829. });
  830. }
  831. this.$refs.carForm.submit().then(res => {
  832. if (this.vehicleType) {
  833. this.navigate({
  834. url: '/pages/carInsure/Information',
  835. success: (res) => {
  836. res.eventChannel.emit(
  837. "acceptData", {
  838. carInfo: this
  839. .carInfo,
  840. ownerInfo: this
  841. .ownerInfo,
  842. policyHolderInfo: this
  843. .policyHolderInfo,
  844. insuredPersonInfo: this
  845. .insuredPersonInfo,
  846. carInfoPositiveList: this
  847. .carInfoPositiveList, //车辆
  848. ownerInfoPositiveList: this
  849. .ownerInfoPositiveList, //车主
  850. policyHolderInfoPositiveList: this
  851. .policyHolderInfoPositiveList, //投保人
  852. insuredPersonInfoPositiveList: this
  853. .insuredPersonInfoPositiveList, //被保人
  854. })
  855. }
  856. }, "navigateTo", true);
  857. } else {
  858. this.$refs.uToast.show({
  859. title: '检测到未精准校验车型,即将跳转到车型界面选择,请等待。。。',
  860. type: 'warning',
  861. icon: false,
  862. })
  863. setTimeout(() => {
  864. this.navigate({
  865. url: '/pages/carInsure/carType?frameNo=' +
  866. encodeURIComponent(this.carInfo.frameNo) +
  867. '&vehicleType=true'
  868. }, "navigateTo", true);
  869. }, 2000)
  870. }
  871. })
  872. break;
  873. default:
  874. break;
  875. }
  876. },
  877. switchChange(value) {
  878. if (value) {
  879. this.LicenseInputValue.forEach((val, index) => {
  880. if (index < 7) {
  881. this.$set(this.LicenseInputValue, index, "*");
  882. }
  883. })
  884. let valueList = this.LicenseInputValue;
  885. const str = valueList.join("")
  886. this.carInfo.licenseNo = str;
  887. } else {
  888. this.LicenseInputValue.forEach((val, index) => {
  889. this.$set(this.LicenseInputValue, index, "");
  890. })
  891. this.carInfo.licenseNo = "";
  892. }
  893. },
  894. // 通过车架号获取车型
  895. async toChooseVin(cctype) {
  896. this.vehicleType = true;
  897. if (cctype == '' || cctype == null) {
  898. return uni.showToast({
  899. icon: 'none',
  900. title: '请输入车架号',
  901. duration: 1500
  902. });
  903. } else {
  904. if (!this.isFrameno(cctype.trim())) {
  905. return uni.showToast({
  906. title: '请输入正确的车辆识别码',
  907. icon: "none"
  908. });
  909. }
  910. this.navigate({
  911. url: '/pages/carInsure/carType?frameNo=' + encodeURIComponent(cctype)
  912. }, "navigateTo", true);
  913. }
  914. },
  915. //跳转选择车辆类型页面
  916. toChooseVehicleType(cctype) {
  917. if (cctype == '' || cctype == null) {
  918. uni.showToast({
  919. icon: 'none',
  920. title: '请输入车型名称',
  921. duration: 1500
  922. });
  923. } else {
  924. let cctypeName = cctype.replace(/[^u4e00-u9fa5|,]+/ig, '')
  925. this.navigate({
  926. url: '/pages/carInsure/carType?modelName=' + encodeURIComponent(cctypeName)
  927. }, "navigateTo", true);
  928. }
  929. },
  930. //验证车牌号
  931. islicense(val) {
  932. let mPattern = /^[京津沪渝冀豫云辽黑湘皖鲁新苏浙赣鄂桂甘晋蒙陕吉闽贵粤青藏川宁琼使领A-Z]{1}[A-Z]{1}[A-Z0-9]{4,5}[A-Z0-9挂学警港澳]{1}$/;
  933. return mPattern.test(val);
  934. },
  935. //验证车架号
  936. isFrameno(str) {
  937. let mPattern = /^([0-9A-Z]){17}$/;
  938. return mPattern.test(str);
  939. },
  940. //OCR识别
  941. ocrIdentify() {
  942. this.OCRShow = !this.OCRShow;
  943. },
  944. closePopup() {
  945. this.OCRShow = false;
  946. },
  947. OCRtabschange(e) {
  948. this.tabsCurrent = e;
  949. },
  950. keyboardchange(val) {
  951. this.$set(this.LicenseInputValue, this.currentInputIndex, val);
  952. if (this.currentInputIndex < 7) {
  953. this.currentInputIndex++;
  954. }
  955. },
  956. backsconfirm() {
  957. let valueList = this.LicenseInputValue;
  958. const str = valueList.join("")
  959. this.carInfo.licenseNo = str;
  960. },
  961. //键盘退格键
  962. backspacesss() {
  963. this.$set(this.LicenseInputValue, this.currentInputIndex, '')
  964. if (this.currentInputIndex != 0) this.currentInputIndex--
  965. },
  966. inputSwitch(e) {
  967. const {
  968. index
  969. } = e.currentTarget.dataset;
  970. this.currentInputIndex = parseInt(index);
  971. this.keyboardShow = true;
  972. console.log(this.currentInputIndex);
  973. },
  974. }
  975. }
  976. </script>
  977. <style lang="scss" scoped>
  978. .uni-forms-item .uni-input-input {
  979. text-align: end;
  980. }
  981. ::v-deep .uni-forms-item {
  982. border-bottom: 1px solid #f2f2f2;
  983. }
  984. ::v-deep .uni-forms-item:last-child {
  985. border: none;
  986. }
  987. page {
  988. height: 100vh;
  989. background: #F8FAFE;
  990. }
  991. .page {
  992. padding: 16px 16px 50px 16px;
  993. }
  994. .banner {
  995. width: 100%;
  996. height: 202px;
  997. image {
  998. width: 100%;
  999. height: 100%;
  1000. }
  1001. }
  1002. .carinfo {
  1003. width: 100%;
  1004. height: auto;
  1005. >.title {
  1006. padding: 10px;
  1007. border-bottom: 1px solid #f2f2f2;
  1008. >text {
  1009. font-weight: bold;
  1010. font-size: 15px;
  1011. }
  1012. .rounded {
  1013. width: 120px;
  1014. height: 28px;
  1015. background: #0052FF;
  1016. border-radius: 15px;
  1017. padding: 1px;
  1018. box-sizing: border-box;
  1019. position: relative;
  1020. .left {
  1021. width: 50%;
  1022. height: 100%;
  1023. background-color: white;
  1024. border-top-left-radius: 15px;
  1025. border-bottom-left-radius: 15px;
  1026. font-size: 24rpx;
  1027. color: #0052FF;
  1028. }
  1029. .right {
  1030. width: 50%;
  1031. height: 100%;
  1032. background-color: #fff;
  1033. border-top-right-radius: 15px;
  1034. border-bottom-right-radius: 15px;
  1035. font-size: 24rpx;
  1036. color: #0052FF;
  1037. }
  1038. .center {
  1039. width: 8px;
  1040. height: 100%;
  1041. background-color: white;
  1042. position: absolute;
  1043. border-left: 1px solid #0052FF;
  1044. border-right: 1px solid #0052FF;
  1045. top: 50%;
  1046. left: 50%;
  1047. transform: translate(-50%, -50%) skewX(-10deg);
  1048. }
  1049. .active {
  1050. background-color: #0052FF;
  1051. color: #fff;
  1052. }
  1053. }
  1054. }
  1055. .carinput {
  1056. width: 100%;
  1057. height: auto;
  1058. background: #FFFFFF;
  1059. box-shadow: 0px 4px 10px 0px #DAE3F4;
  1060. border-radius: 12px;
  1061. padding: 10px;
  1062. .top {
  1063. font-weight: bold;
  1064. font-size: 15px;
  1065. }
  1066. .so-plate-word {
  1067. width: 40px;
  1068. height: 40px;
  1069. background-color: #f8f8fa;
  1070. border-radius: 5px;
  1071. margin: 0 4px;
  1072. box-sizing: border-box;
  1073. text {
  1074. font-size: 18px;
  1075. font-weight: bold;
  1076. }
  1077. .newEnergy {
  1078. image {
  1079. width: 12px;
  1080. height: 12px;
  1081. }
  1082. text {
  1083. font-size: 16rpx;
  1084. color: #0eb78e;
  1085. }
  1086. }
  1087. }
  1088. .so-plate-dot {
  1089. width: 15upx;
  1090. height: 15upx;
  1091. background: #ccc;
  1092. border-radius: 50%;
  1093. margin: 0 5upx
  1094. }
  1095. .actives {
  1096. border: 1px solid #0052FF;
  1097. background-color: rgba(0, 82, 255, 0.1);
  1098. }
  1099. .newactives {
  1100. border: 1px solid #0eb78e;
  1101. background-color: rgba(14, 183, 142, 0.1);
  1102. }
  1103. }
  1104. .OCRcar {
  1105. width: 100%;
  1106. height: auto;
  1107. .title {
  1108. color: #FF5600;
  1109. text:nth-child(1) {
  1110. font-size: 15px;
  1111. font-weight: bold;
  1112. color: #232832;
  1113. }
  1114. }
  1115. .ocr {
  1116. width: 100%;
  1117. height: auto;
  1118. background-color: white;
  1119. box-shadow: 0px 4px 10px 0px #DAE3F4;
  1120. border-radius: 12px;
  1121. .content {
  1122. padding: 0 15px;
  1123. }
  1124. .movable-view {
  1125. .operate-img {
  1126. width: 90%;
  1127. height: 38px;
  1128. background-color: #F9F9F9;
  1129. border-radius: 8px;
  1130. padding: 10px 25px;
  1131. margin-top: 10px;
  1132. >view:nth-child(2) {
  1133. background-color: rgba(0, 82, 255, 0.06);
  1134. border-radius: 4px 4px 4px 4px;
  1135. border: 1px solid #0052FF;
  1136. color: #0052FF;
  1137. padding: 3px 5px;
  1138. }
  1139. >view {
  1140. font-size: 14px;
  1141. }
  1142. image {
  1143. width: 22px;
  1144. height: 22px;
  1145. margin-right: 5px;
  1146. }
  1147. }
  1148. }
  1149. }
  1150. .content {
  1151. width: 100%;
  1152. height: auto;
  1153. background-color: white;
  1154. box-shadow: 0px 4px 10px 0px #DAE3F4;
  1155. border-radius: 12px;
  1156. .input-align-right {
  1157. padding: 20px;
  1158. }
  1159. }
  1160. }
  1161. }
  1162. .fixed {
  1163. width: 100%;
  1164. height: 80px;
  1165. padding: 10px;
  1166. position: fixed;
  1167. bottom: 0;
  1168. left: 0;
  1169. right: 0;
  1170. background: white;
  1171. z-index: 9;
  1172. border-top: 1px solid #f2f2f2;
  1173. .fiexdbtn {
  1174. width: 50%;
  1175. background: linear-gradient(to bottom, #FFF9F5, #FCD4C0, #F8A67D);
  1176. color: #FF5600;
  1177. font-weight: bold;
  1178. font-size: 18px;
  1179. border: 1px solid #F8A67D;
  1180. }
  1181. }
  1182. movable-area {
  1183. height: 220px;
  1184. width: 100%;
  1185. border-top-left-radius: 12px;
  1186. border-top-right-radius: 12px;
  1187. background-color: #D8D8D8;
  1188. overflow: hidden;
  1189. }
  1190. movable-view {
  1191. display: flex;
  1192. align-items: center;
  1193. justify-content: center;
  1194. height: 100%;
  1195. width: 100%;
  1196. }
  1197. .switch-container {
  1198. width: 60px;
  1199. height: 30px;
  1200. background-color: #E6EEFF;
  1201. border-radius: 15px;
  1202. position: relative;
  1203. cursor: pointer;
  1204. }
  1205. .switch-track {
  1206. width: 100%;
  1207. height: 100%;
  1208. background-color: #E6EEFF;
  1209. border-radius: 4px;
  1210. position: relative;
  1211. transition: background-color 0.3s ease;
  1212. }
  1213. .switch-thumb {
  1214. width: 26px;
  1215. height: 26px;
  1216. background-color: #0052FF;
  1217. border-radius: 4px;
  1218. position: absolute;
  1219. top: 2px;
  1220. left: 2px;
  1221. transition: transform 0.3s ease;
  1222. font-size: 13px;
  1223. color: #fff;
  1224. }
  1225. .switch-thumb1 {
  1226. width: 26px;
  1227. height: 26px;
  1228. position: absolute;
  1229. top: 2px;
  1230. left: 2px;
  1231. font-size: 13px;
  1232. color: rgba(0, 82, 255, 0.8);
  1233. }
  1234. .switch-thumb2 {
  1235. width: 26px;
  1236. height: 26px;
  1237. position: absolute;
  1238. top: 2px;
  1239. right: 2px;
  1240. font-size: 13px;
  1241. color: rgba(0, 82, 255, 0.8);
  1242. }
  1243. .thumbactive {
  1244. background-color: #0052FF;
  1245. transform: translateX(30px);
  1246. }
  1247. .thumbactive1 {
  1248. color: #fff;
  1249. }
  1250. </style>