index.vue 38 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427
  1. <template>
  2. <view class="basic-data">
  3. <view class="basic-top">
  4. <view class="service_header_left">
  5. <view class="btn" :class="isSelect===0?'active':''" @click="handleData(0)">车辆管理</view>
  6. <view class="btn" :class="isSelect===2?'active':''" @click="handleData(2)">电池管理</view>
  7. <view class="btn" :class="isSelect===1?'active':''" @click="handleData(1)" v-if="$storage.getJson('userId')==1">站控配置</view>
  8. </view>
  9. <view class="basci-header-right" v-if="isSelect===0">
  10. <view class="times">最近同步时间:{{synchronizationTime || '-'}}</view>
  11. <view class="sync-btn" @click="syncCloud">云端同步</view>
  12. <!-- <view class="title">车辆管理</view> -->
  13. </view>
  14. </view>
  15. <view v-if="isSelect===0">
  16. <view class="basic-search">
  17. <uni-forms ref="form" :modelValue="queryParams" class="searchForm">
  18. <uni-forms-item label="车牌号码:" label-width="72px" label-align="right" name="vehiclePlate">
  19. <uni-easyinput type="text" v-model="queryParams.vehiclePlate" placeholder="请输入车牌号码" />
  20. </uni-forms-item>
  21. <uni-forms-item label="车辆识别码:" label-width="128px" label-align="right" name="vehicleVin">
  22. <uni-easyinput type="text" v-model="queryParams.vehicleVin" placeholder="请输入车辆识别码" />
  23. </uni-forms-item>
  24. <uni-forms-item label="来源:" label-width="80px" label-align="right">
  25. <uni-data-select v-model="queryParams.source" :localdata="formSelect" style="width: 100px;"
  26. @change="change"></uni-data-select>
  27. </uni-forms-item>
  28. </uni-forms>
  29. <view class="search-btn" @click="handleQuery">查询</view>
  30. <view class="reset-btn" @click="resetForm">重置</view>
  31. </view>
  32. <view class="basic-table">
  33. <!-- <view class="search-btn marginZero" @click="OpenAddDrawer">新增</view> -->
  34. <baseDateTable @DelCarData="DelCarData" @EditCarData="EditCarData" @bindHandle="bindHandle" :isBind="true" :headerFixed="true"
  35. :showLoadMore="showLoadMore" :loadMore="loadMore" :columnFixed=1 :contents="datalist" :headers="carheaders"
  36. @onPullup="pullup">
  37. </baseDateTable>
  38. </view>
  39. </view>
  40. <view v-else-if="isSelect===1">
  41. <view class="basic-zkset">
  42. <view class="setTitle">配置管理:</view>
  43. <view class="setCont">
  44. <uni-forms ref="formSet" :modelValue="queryParamsSet" class="formSet">
  45. <uni-forms-item label="充电机温度(°C):" label-width="116px" label-align="left">
  46. <uni-easyinput type="text" class="tempIpt" @blur="regTemp" :maxlength="3" placeholder="充电机温度" :clearable="false" v-model="queryParamsSet.temp" />
  47. <view class="search-temp" @click="resetTemp">恢复默认</view>
  48. </uni-forms-item>
  49. <uni-forms-item label="换电站连接方式:" label-width="128px" label-align="right">
  50. <uni-data-checkbox v-model="connWayArr" multiple :localdata="connWays" />
  51. </uni-forms-item>
  52. <uni-forms-item label="中转仓:" label-width="116px" label-align="right">
  53. <uni-data-checkbox v-model="queryParamsSet.transitWarehouse" :localdata="transitWarehouse" />
  54. </uni-forms-item>
  55. <uni-forms-item v-if="queryParamsSet.transitWarehouse==1">
  56. <uni-easyinput type="text" class="tempIpt" :clearable="false" :maxlength="2" v-model.trim="queryParamsSet.positionNumber" placeholder="中转仓仓位号" />
  57. </uni-forms-item>
  58. <uni-forms-item label="雷达:" label-width="116px" qlabel-align="right">
  59. <uni-data-checkbox v-model="queryParamsSet.radar" :localdata="radarList" />
  60. </uni-forms-item>
  61. <view class="search-btn" @click="handleSave">保存</view>
  62. </uni-forms>
  63. </view>
  64. </view>
  65. <view class="basic-table">
  66. <view class="search-temp marginZero" @click="AddCangDrawer">新增仓位</view>
  67. <cangDateTable @DelCangData="DelCangData" @EditCangData="EditCangData" :isEdit="1" :headerFixed="true"
  68. :showLoadMore="showLoadMore" :loadMore="loadMore" :contents="dataCanglist" :headers="headers"
  69. @onPullup="pullCangup">
  70. </cangDateTable>
  71. </view>
  72. </view>
  73. <view v-else>
  74. <view class="basic-search">
  75. <uni-forms ref="form" :modelValue="batteryParams" class="searchForm">
  76. <uni-forms-item label="电池编号:" label-width="72px" label-align="right" name="sn">
  77. <uni-easyinput type="text" v-model="batteryParams.sn" placeholder="请输入电池编号" />
  78. </uni-forms-item>
  79. </uni-forms>
  80. <view class="search-btn" @click="handleBatteryQuery">查询</view>
  81. <view class="reset-btn" @click="resetBatteryForm">重置</view>
  82. </view>
  83. <view class="basic-table">
  84. <view class="search-temp marginZero" @click="AddBatteryDrawer">新增</view>
  85. <baseDateTable @DelBatteryData="DelBatteryData" @EditBatteryData="EditBatteryData" :isEdit="2" :headerFixed="true"
  86. :showLoadMore="showLoadMore" :loadMore="loadMore" :columnFixed=1 :contents="dataBatterylist" :headers="batteryheaders"
  87. @onPullup="pullBatteryup">
  88. </baseDateTable>
  89. </view>
  90. </view>
  91. <!--右侧抽屉 -->
  92. <uni-drawer ref="BasicDrawer" mode="right" :width="400" :mask-click="true">
  93. <scroll-view style="height: 100%;" scroll-y="true" v-if="isSelect===0">
  94. <PublicDrawer :flag="false" :title="dialogType=='new'?'新增车辆':'编辑车辆'" @closeDrawer="closeDrawer"
  95. @AddCarinfo="AddCarinfo" @EditCarInfo="EditCarInfo">
  96. <view class="drawer_main">
  97. <view>
  98. <BasicDrawer :basicFrom="basicFrom" :range="range" @redHandle="redHandle"></BasicDrawer>
  99. </view>
  100. </view>
  101. </PublicDrawer>
  102. </scroll-view>
  103. <scroll-view style="height: 100%;" scroll-y="true" v-else-if="isSelect===1">
  104. <PublicDrawer :flag="false" :title="dialogCangType=='new'?'新增仓位':'编辑仓位'" @closeDrawer="closeDrawer"
  105. @AddCanginfo="AddCanginfo" @EditCangInfo="EditCangInfo">
  106. <view class="drawer_main">
  107. <view>
  108. <ChargeDrawer ref="addSetForm" @changeChargerId="changeChargerId" :setForm="setForm" :rangeCharge="rangeCharge" :rangePower="rangePower" :rules="rules"></ChargeDrawer>
  109. </view>
  110. </view>
  111. </PublicDrawer>
  112. </scroll-view>
  113. <scroll-view style="height: 100%;" scroll-y="true" v-else>
  114. <PublicDrawer :flag="false" :title="dialogBatteryType=='new'?'新增电池':'编辑电池'" @closeDrawer="closeDrawer"
  115. @AddBatteryinfo="AddBatteryinfo" @EditBatteryInfo="EditBatteryInfo">
  116. <view class="drawer_main">
  117. <view>
  118. <BatteryDrawer ref="addBatteryForm" :BatteryForm="BatteryForm" :rules="batteryRules"></BatteryDrawer>
  119. </view>
  120. </view>
  121. </PublicDrawer>
  122. </scroll-view>
  123. </uni-drawer>
  124. <uni-drawer ref="BindDrawer" mode="right" :width="400" :mask-click="true">
  125. <scroll-view style="height: 100%;" scroll-y="true" v-if="isSelect===0">
  126. <PublicDrawer :flag="false" :title="'绑定RFID'" @closeDrawer="closeDrawer" @BindFRIDHandle="BindFRIDHandle">
  127. <view class="drawer_main">
  128. <view>
  129. <BindDrawer :basicFrom="basicFrom" :range="range" @redHandle="redHandle" @inputHandle="inputHandle"></BindDrawer>
  130. </view>
  131. </view>
  132. </PublicDrawer>
  133. </scroll-view>
  134. </uni-drawer>
  135. <!-- 右侧抽屉结束 -->
  136. <!-- 顶部公共提示信息 -->
  137. <uni-popup ref="Exchangepopup" type="message">
  138. <uni-popup-message :type="popupType" :message="popupMessage" :duration="2000"></uni-popup-message>
  139. </uni-popup>
  140. <!-- 顶部提示信息结束-->
  141. </view>
  142. </template>
  143. <script>
  144. import baseDateTable from './baseData-table/baseDateTable'
  145. import cangDateTable from './baseData-table/cangDateTable'
  146. import BasicDrawer from './BasicDrawer'
  147. import BindDrawer from './BindDrawer'
  148. import ChargeDrawer from './ChargeDrawer'
  149. import BatteryDrawer from './BatteryDrawer'
  150. export default {
  151. name: 'BasicData',
  152. components: {
  153. baseDateTable,
  154. cangDateTable,
  155. BasicDrawer,
  156. ChargeDrawer,
  157. BatteryDrawer,
  158. BindDrawer
  159. },
  160. data() {
  161. return {
  162. popupMessage: '成功消息',
  163. popupType: 'success',
  164. formSelect: [{
  165. value: 0,
  166. text: "站控"
  167. },
  168. {
  169. value: 1,
  170. text: "云端"
  171. },
  172. ],
  173. //站控配置
  174. queryParamsSet:{
  175. temp:null,
  176. oneLink:0,//单连:0未启用,1启用
  177. fourLink:0,//四连:0未启用,1启用
  178. transitWarehouse:null,//中转仓:0无中转仓,1有固定中转仓
  179. positionNumber:null,//固定中转仓位号
  180. radar: null,//雷达 0-无, 1-有
  181. },
  182. connWayArr:[],
  183. basicFrom: {
  184. id: 0,
  185. CarDistance: null,
  186. CarPlate: undefined,
  187. CarVin: undefined,
  188. state: undefined,
  189. rfidEpc: undefined,
  190. epcFour: undefined,
  191. frid: undefined,
  192. },
  193. //充电机仓位抽屉
  194. setForm:{
  195. chargerId:null,//仓位号
  196. chargerCode:null,//桩编号
  197. isSwap:null,//是否可以换电(0不支持 1支持)
  198. isCheck:null,//连接器类型(-1空架子 0单四连可切换 1单连 4四连)
  199. },
  200. //电池抽屉数据
  201. BatteryForm:{
  202. sn:null,//编号
  203. length:null,//长
  204. width:null,//宽
  205. height:null,//高
  206. weight:null,//重量
  207. },
  208. batteryRules:{
  209. sn:{
  210. rules:[
  211. {
  212. required: true,
  213. errorMessage: '请输入电池编号',
  214. },
  215. ]
  216. },
  217. length:{
  218. rules:[
  219. {
  220. required: true,
  221. errorMessage: '请输入长度',
  222. },
  223. {
  224. validateFunction:function(rule,value,data,callback){
  225. let reg=/^[1-9]\d*$/
  226. if (!reg.test(value)) {
  227. callback('请输入正整数')
  228. }
  229. return true
  230. },
  231. }
  232. ]
  233. },
  234. width:{
  235. rules:[
  236. {
  237. required: true,
  238. errorMessage: '请输入宽度',
  239. },
  240. {
  241. validateFunction:function(rule,value,data,callback){
  242. let reg=/^[1-9]\d*$/
  243. if (!reg.test(value)) {
  244. callback('请输入正整数')
  245. }
  246. return true
  247. },
  248. }
  249. ]
  250. },
  251. height:{
  252. rules:[
  253. {
  254. required: true,
  255. errorMessage: '请输入高度',
  256. },
  257. {
  258. validateFunction:function(rule,value,data,callback){
  259. let reg=/^[1-9]\d*$/
  260. if (!reg.test(value)) {
  261. callback('请输入正整数')
  262. }
  263. return true
  264. },
  265. }
  266. ]
  267. },
  268. weight:{
  269. rules:[
  270. {
  271. required: true,
  272. errorMessage: '请输入重量',
  273. },
  274. {
  275. validateFunction:function(rule,value,data,callback){
  276. let reg=/^[1-9]\d*$/
  277. if (!reg.test(value)) {
  278. callback('请输入正整数')
  279. }
  280. return true
  281. },
  282. }
  283. ]
  284. }
  285. },
  286. rules:{
  287. chargerId:{
  288. rules:[
  289. {
  290. required: true,
  291. errorMessage: '请输入仓位号',
  292. },
  293. {
  294. format: 'number',
  295. errorMessage: '请输入数字'
  296. },
  297. ]
  298. },
  299. chargerCode:{
  300. rules:[
  301. {
  302. required: true,
  303. errorMessage: '请输入桩编号',
  304. },
  305. {
  306. pattern:/^[A-Za-z0-9]+$/,
  307. errorMessage:'请输入正确的桩编号'
  308. }
  309. ]
  310. },
  311. isSwap:{
  312. rules:[
  313. {
  314. required: true,
  315. errorMessage: '请选择是否可换电',
  316. },
  317. ]
  318. },
  319. isCheck:{
  320. rules:[
  321. {
  322. required: true,
  323. errorMessage: '请选择充电连接控制方式',
  324. },
  325. ]
  326. }
  327. },
  328. range: [{
  329. value: 0,
  330. text: "停用"
  331. },
  332. {
  333. value: 1,
  334. text: "启用"
  335. },
  336. ],
  337. //中转仓
  338. transitWarehouse: [{
  339. text: '无中转仓',
  340. value: 0
  341. }, {
  342. text: '有中转仓',
  343. value: 1
  344. }],
  345. //连接方式
  346. connWays: [{
  347. text: '单连',
  348. value: 1
  349. }, {
  350. text: '四连',
  351. value: 4
  352. }],
  353. //雷达
  354. radarList: [{
  355. text: '有雷达',
  356. value: 1
  357. }, {
  358. text: '无雷达',
  359. value: 0
  360. }],
  361. //是否可换电
  362. rangePower: [{
  363. value: 1,
  364. text: "是"
  365. },
  366. {
  367. value: 0,
  368. text: "否"
  369. },
  370. ],
  371. //是否切换充电
  372. rangeCharge: [{
  373. value: 1,
  374. text: "单连不可切换"
  375. },
  376. {
  377. value: 4,
  378. text: "四连不可切换"
  379. },
  380. {
  381. value: 0,
  382. text: "单四联切换"
  383. },
  384. {
  385. value: -1,
  386. text: "无"
  387. }
  388. ],
  389. datalist: [],//车辆列表
  390. dataCanglist: [],//仓位列表
  391. dataBatterylist: [],//电池列表
  392. queryParams: {
  393. page: 1, //当前页
  394. pageSize: 10, //每页条数
  395. source: undefined, //来源
  396. vehiclePlate: undefined, //车牌号
  397. vehicleVin: undefined, //VIN码
  398. orderByField: 'id', //排序字段
  399. orderByWays: 'desc' //排序方式
  400. },
  401. cangParams: {
  402. page: 1, //当前页
  403. pageSize: 10, //每页条数
  404. orderByField: 'id', //排序字段
  405. orderByWays: 'desc' //排序方式
  406. },
  407. batteryParams: {
  408. page: 1, //当前页
  409. pageSize: 10, //每页条数
  410. orderByField: 'id', //排序字段
  411. orderByWays: 'desc' ,//排序方式
  412. sn:null,//电池编号
  413. },
  414. total: 0, //总条数,
  415. cangTotal: 0, //仓位总条数,
  416. batteryTotal: 0, //电池总条数,
  417. loading: false,
  418. headers: [{
  419. label: '仓位号',
  420. key: 'chargerId',
  421. widtd: 98,
  422. }, {
  423. label: '桩编号',
  424. key: 'chargerCode',
  425. widtd: 315,
  426. }, {
  427. label: '是否可换电',
  428. key: 'isSwap',
  429. widtd: 200,
  430. }, {
  431. label: '充电连接控制方式',
  432. key: 'isCheck',
  433. widtd: 218,
  434. },
  435. {
  436. label: '操作',
  437. key: 'id',
  438. widtd: 118,
  439. },
  440. ],
  441. batteryheaders: [{
  442. label: '电池编号',
  443. key: 'sn',
  444. widtd: 278
  445. }, {
  446. label: '长(cm)',
  447. key: 'length',
  448. widtd: 148
  449. }, {
  450. label: '宽(cm)',
  451. key: 'width',
  452. widtd: 148
  453. },{
  454. label: '高(cm)',
  455. key: 'height',
  456. widtd: 148,
  457. },
  458. {
  459. label: '重量(kg)',
  460. key: 'weight',
  461. widtd: 148,
  462. },
  463. {
  464. label: '操作',
  465. key: 'id',
  466. widtd: 88,
  467. },
  468. ],
  469. //车辆列表
  470. carheaders: [{
  471. label: '车牌号',
  472. key: 'vehiclePlate',
  473. widtd: 130
  474. }, {
  475. label: '车辆识别码(VIN码)',
  476. key: 'vehicleVin',
  477. widtd: 225
  478. }, {
  479. label: 'RFID',
  480. key: 'rfidEpc',
  481. widtd: 255,
  482. }, {
  483. label: '前端电池距离(mm)',
  484. key: 'modelDistance',
  485. widtd: 200
  486. },
  487. {
  488. label: '供电接口',
  489. key: 'link',
  490. widtd: 100,
  491. },
  492. // {
  493. // label: '来源',
  494. // key: 'source',
  495. // widtd: 100,
  496. // },
  497. {
  498. label: '操作',
  499. key: 'id',
  500. widtd: 108,
  501. },
  502. ],
  503. showLoadMore: false,
  504. loadMore: 'more',
  505. dialogType: 'new', // 按钮类型(new、edit)
  506. EditCarForm: {}, //编辑车辆表单数据接收
  507. synchronizationTime:'',//同步时间
  508. isSelect:0,
  509. dialogCangType:'new',
  510. dialogBatteryType:'new',
  511. }
  512. },
  513. mounted() {
  514. this.vehicleList();
  515. this.getsynchronization()
  516. },
  517. methods: {
  518. //充电机温度正则
  519. regTemp(e){
  520. const reg=/^\d*$/
  521. if(!reg.test(e.detail.value) || e.detail.value==0){
  522. this.queryParamsSet.temp=90
  523. }
  524. },
  525. //温度恢复默认
  526. resetTemp(){
  527. this.$http.setTemp(90+'').then((res) => {
  528. if(res.code===0){
  529. this.queryParamsSet.temp=90
  530. this.ExchangeMessage('success','恢复成功!')
  531. }
  532. })
  533. },
  534. //设置温度
  535. handleSettemp(){
  536. this.$http.setTemp(this.queryParamsSet.temp).then((res) => {
  537. if(res.code!==0){
  538. this.ExchangeMessage('error',res.msg)
  539. }else{
  540. this.getCurrentTemp()
  541. }
  542. })
  543. },
  544. //获取站控配置
  545. getStationConfig(){
  546. this.$http.getOtherStation(4+'').then((res) => {
  547. if(res.data.content==1){
  548. this.connWayArr.push(1)
  549. }
  550. });
  551. this.$http.getOtherStation(8+'').then((res) => {
  552. if(res.data && res.data.content && (res.data.content=='0' || res.data.content=='1')){
  553. this.queryParamsSet.radar = Number(res.data.content)
  554. }
  555. });
  556. this.$http.getOtherStation(5+'').then((res) => {
  557. if(res.data.content==1){
  558. this.connWayArr.push(4)
  559. }
  560. });
  561. this.$http.getOtherStation(6+'').then((res) => {
  562. if(res.data.content==1){
  563. this.queryParamsSet.transitWarehouse=1
  564. this.$http.getOtherStation(7+'').then((res) => {
  565. this.queryParamsSet.positionNumber=res.data.content*1
  566. });
  567. }else{
  568. this.queryParamsSet.transitWarehouse=0
  569. }
  570. });
  571. this.getCurrentTemp()
  572. },
  573. //获取温度
  574. getCurrentTemp(){
  575. //获取温度
  576. this.$http.serchTemp().then((res) => {
  577. if(res.code===0){
  578. this.queryParamsSet.temp=res.data*1
  579. }
  580. });
  581. },
  582. //读取frid
  583. redHandle() {
  584. this.$http.getEpc().then((res) => {
  585. if(res.code===0){
  586. let frid = res.data
  587. this.basicFrom.frid=frid.replace(/.{4}$/, '****')
  588. this.basicFrom.rfidEpc=frid
  589. } else {
  590. return this.ExchangeMessage('warn', '未获取FRID卡号')
  591. }
  592. });
  593. },
  594. inputHandle(data) {
  595. console.log(data.toUpperCase(), '000')
  596. this.basicFrom.epcFour = data.toUpperCase()
  597. console.log(this.basicFrom, '333')
  598. },
  599. //保存站控配置
  600. handleSave(){
  601. const reg=/^\d*$/
  602. if(!this.queryParamsSet.temp){
  603. this.ExchangeMessage('warn', '请输入充电机温度!')
  604. return
  605. }
  606. if(this.connWayArr.length===0){
  607. this.ExchangeMessage('warn', '请选择换电站连接方式!')
  608. return
  609. }
  610. if(this.queryParamsSet.transitWarehouse==null){
  611. this.ExchangeMessage('warn', '请选择中转仓!')
  612. return
  613. }
  614. if(this.queryParamsSet.radar==null){
  615. this.ExchangeMessage('warn', '请选择是否有雷达!')
  616. return
  617. }
  618. if(this.queryParamsSet.transitWarehouse==1){
  619. if(!this.queryParamsSet.positionNumber){
  620. this.ExchangeMessage('warn', '请输入中转仓仓位号!')
  621. return
  622. }else{
  623. if(!reg.test(this.queryParamsSet.positionNumber) || this.queryParamsSet.positionNumber<=0){
  624. this.ExchangeMessage('warn', '请输入正整数!')
  625. return
  626. }
  627. }
  628. this.queryParamsSet.positionNumber=this.queryParamsSet.positionNumber*1
  629. }else{
  630. this.queryParamsSet.positionNumber=undefined
  631. }
  632. if(this.connWayArr.length===2){
  633. this.queryParamsSet.oneLink=1
  634. this.queryParamsSet.fourLink=1
  635. }else{
  636. if(this.connWayArr[0]===1){
  637. this.queryParamsSet.oneLink=1
  638. this.queryParamsSet.fourLink=0
  639. }else{
  640. this.queryParamsSet.oneLink=0
  641. this.queryParamsSet.fourLink=1
  642. }
  643. }
  644. this.$http.setStation(this.queryParamsSet).then((res) => {
  645. if(res.code === 0){
  646. this.getStationConfig()
  647. this.handleSettemp()
  648. }
  649. this.ExchangeMessage(res.code === 0 ? 'success' : 'error', res.code === 0 ? '设置成功' : res.msg)
  650. });
  651. },
  652. //切换数据按钮
  653. handleData(num){
  654. this.showLoadMore=false
  655. this.isSelect=num
  656. if(num===0){
  657. this.vehicleList()
  658. }else if(num===1){
  659. this.getStationConfig()
  660. this.encodeList()
  661. }else{
  662. this.batteryList()
  663. }
  664. },
  665. //顶部公共消息提示
  666. ExchangeMessage(type, message) {
  667. this.popupType = type
  668. this.popupMessage = message ? message : '后端接口404错误!'
  669. this.$refs.Exchangepopup.open()
  670. },
  671. //获取最近同步时间
  672. getsynchronization(){
  673. this.$http.getSyncTime().then(res=>{
  674. if(res.code == 0){
  675. this.synchronizationTime = res.data
  676. }
  677. })
  678. },
  679. //删除车辆
  680. DelCarData(id) {
  681. let that = this
  682. uni.showModal({
  683. title: `确认删除车辆信息吗?`,
  684. content: '',
  685. success: function(res) {
  686. if (res.confirm) {
  687. that.$http.delvehicle(id + '')
  688. .then(res => {
  689. if (res.code === 0) {
  690. that.vehicleList()
  691. }
  692. that.ExchangeMessage(res.code === 0 ? 'success' : 'error', res.code === 0 ? '删除车辆成功' : '删除车辆失败')
  693. }).catch(err => {
  694. console.error(err)
  695. })
  696. } else if (res.cancel) {
  697. return false
  698. //用户点击取消按钮触发
  699. }
  700. }
  701. })
  702. },
  703. //删除充电机仓位
  704. DelCangData(id) {
  705. let that = this
  706. uni.showModal({
  707. title: `确认删除仓位吗?`,
  708. content: '',
  709. success: function(res) {
  710. if (res.confirm) {
  711. that.$http.delEncode(id+'')
  712. .then(res => {
  713. if (res.code === 0) {
  714. that.encodeList()
  715. }
  716. that.ExchangeMessage(res.code === 0 ? 'success' : 'error', res.code === 0 ? '删除成功' : res.msg)
  717. }).catch(err => {
  718. console.error(err)
  719. })
  720. } else if (res.cancel) {
  721. return false
  722. //用户点击取消按钮触发
  723. }
  724. }
  725. })
  726. },
  727. //删除电池
  728. DelBatteryData(id) {
  729. let that = this
  730. uni.showModal({
  731. title: `确认删除电池信息吗?`,
  732. content: '',
  733. success: function(res) {
  734. if (res.confirm) {
  735. that.$http.delBattery(id+'')
  736. .then(res => {
  737. if (res.code === 0) {
  738. that.batteryList()
  739. }
  740. that.ExchangeMessage(res.code === 0 ? 'success' : 'error', res.code === 0 ? '删除成功' : res.msg)
  741. }).catch(err => {
  742. console.error(err)
  743. })
  744. } else if (res.cancel) {
  745. return false
  746. //用户点击取消按钮触发
  747. }
  748. }
  749. })
  750. },
  751. // 打开添加车辆抽屉
  752. OpenAddDrawer() {
  753. this.dialogType = 'new'
  754. this.basicFrom = {
  755. id: 0,
  756. CarDistance: null,
  757. CarPlate: undefined,
  758. CarVin: undefined,
  759. state: undefined,
  760. }
  761. this.$refs.BasicDrawer.open();
  762. },
  763. //新增仓位抽屉
  764. AddCangDrawer(){
  765. this.dialogCangType='new'
  766. this.setForm={
  767. cangNum:null,//桩编号
  768. isPower:null,//是否可换电
  769. isCharger:null,//是否切换充电连接
  770. },
  771. this.$refs.BasicDrawer.open()
  772. },
  773. //新增电池抽屉
  774. AddBatteryDrawer(){
  775. this.dialogBatteryType='new'
  776. this.BatteryForm={
  777. sn:null,//编号
  778. length:null,//长
  779. width:null,//宽
  780. height:null,//高
  781. weight:null,//重量
  782. },
  783. this.$refs.BasicDrawer.open()
  784. },
  785. //编辑充电仓位抽屉
  786. EditCangData(row){
  787. this.dialogCangType='edit'
  788. this.$refs.BasicDrawer.open()
  789. this.setForm={...row}
  790. },
  791. //编辑电池抽屉
  792. EditBatteryData(row){
  793. this.dialogBatteryType='edit'
  794. this.$refs.BasicDrawer.open()
  795. this.BatteryForm={...row}
  796. },
  797. //编辑充电仓位请求接口
  798. EditCangInfo() {
  799. this.$refs.addSetForm.$refs.setvalueForm.validate().then(res=>{
  800. const params = {
  801. id: this.setForm.id,
  802. chargerId: this.setForm.chargerId*1,
  803. chargerCode: this.setForm.chargerCode,
  804. isSwap: this.setForm.isSwap,
  805. isCheck: this.setForm.isCheck,
  806. }
  807. this.$http.editEncode(params)
  808. .then(res => {
  809. this.closeDrawer()
  810. this.ExchangeMessage(res.code === 0 ? 'success' : 'error', res.code === 0 ? '修改成功!' : res.msg)
  811. if (res.code === 0) {
  812. this.encodeList()
  813. }
  814. }).catch(err => {
  815. console.error(err)
  816. })
  817. })
  818. // if (!this.basicFrom.CarDistance || !this.basicFrom.CarPlate || !this.basicFrom.CarVin) {
  819. // this.ExchangeMessage('warn', '请填写完整!')
  820. // } else {
  821. // const params = {
  822. // modelDistance: this.basicFrom.CarDistance,
  823. // vehiclePlate: this.basicFrom.CarPlate,
  824. // vehicleVin: this.basicFrom.CarVin,
  825. // state: this.basicFrom.state * 1,
  826. // id: this.basicFrom.id
  827. // }
  828. // this.$http.Editvehicle(params)
  829. // .then(res => {
  830. // this.closeDrawer()
  831. // this.ExchangeMessage(res.code === 0 ? 'success' : 'error', res.msg)
  832. // if (res.code === 0) {
  833. // this.vehicleList()
  834. // }
  835. // }).catch(err => {
  836. // console.error(err)
  837. // })
  838. // }
  839. },
  840. //编辑电池
  841. EditBatteryInfo() {
  842. this.$refs.addBatteryForm.$refs.valueForm.validate().then(res=>{
  843. const params = {
  844. id: this.BatteryForm.id,
  845. sn: this.BatteryForm.sn,
  846. length: this.BatteryForm.length*1,
  847. width: this.BatteryForm.width*1,
  848. height: this.BatteryForm.height*1,
  849. weight: this.BatteryForm.weight*1,
  850. }
  851. this.$http.editBattery(params)
  852. .then(res => {
  853. this.closeDrawer()
  854. this.ExchangeMessage(res.code === 0 ? 'success' : 'error', res.code === 0 ? '修改成功!' : res.msg)
  855. if (res.code === 0) {
  856. this.batteryList()
  857. }
  858. }).catch(err => {
  859. console.error(err)
  860. })
  861. })
  862. },
  863. //添加充电仓位请求接口
  864. AddCanginfo() {
  865. this.$refs.addSetForm.$refs.setvalueForm.validate().then(res=>{
  866. const params = {
  867. chargerId: this.setForm.chargerId*1,
  868. chargerCode: this.setForm.chargerCode,
  869. isSwap: this.setForm.isSwap,
  870. isCheck: this.setForm.isCheck,
  871. }
  872. this.$http.addEncode(params)
  873. .then(res => {
  874. this.closeDrawer()
  875. this.ExchangeMessage(res.code === 0 ? 'success' : 'error', res.code === 0 ? '新增仓位成功' : res.msg)
  876. if (res.code === 0) {
  877. this.encodeList()
  878. }
  879. }).catch(err => {
  880. console.error(err)
  881. })
  882. })
  883. },
  884. //添加电池请求接口
  885. AddBatteryinfo() {
  886. this.$refs.addBatteryForm.$refs.valueForm.validate().then(res=>{
  887. const params = {
  888. sn: this.BatteryForm.sn,
  889. length: this.BatteryForm.length*1,
  890. width: this.BatteryForm.width*1,
  891. height: this.BatteryForm.height*1,
  892. weight: this.BatteryForm.weight*1,
  893. }
  894. this.$http.addBattery(params)
  895. .then(res => {
  896. this.closeDrawer()
  897. this.ExchangeMessage(res.code === 0 ? 'success' : 'error', res.code === 0 ? '新增电池成功' : res.msg)
  898. if (res.code === 0) {
  899. this.batteryList()
  900. }
  901. }).catch(err => {
  902. console.error(err)
  903. })
  904. })
  905. },
  906. //打开编辑车辆抽屉
  907. EditCarData(row) {
  908. this.dialogType = 'edit'
  909. this.$refs.BasicDrawer.open();
  910. this.basicFrom.CarDistance = row.modelDistance
  911. this.basicFrom.CarPlate = row.vehiclePlate
  912. this.basicFrom.CarVin = row.vehicleVin
  913. this.basicFrom.state = row.state
  914. this.basicFrom.id = row.id
  915. },
  916. //打开绑定frid
  917. bindHandle(row) {
  918. let _that = this
  919. if(row.rfidEpc) {
  920. uni.showModal({
  921. title:`该车已经绑定FRID,是否继续绑定?`,
  922. content:'',
  923. success: function(res) {
  924. if (res.confirm) {
  925. _that.$refs.BindDrawer.open();
  926. _that.basicFrom.CarDistance = row.modelDistance
  927. _that.basicFrom.CarPlate = row.vehiclePlate
  928. _that.basicFrom.CarVin = row.vehicleVin
  929. _that.basicFrom.state = row.state
  930. _that.basicFrom.id = row.id
  931. _that.basicFrom.rfidEpc = row.rfidEpc
  932. _that.basicFrom.frid = row.rfidEpc.replace(/.{4}$/, '****')
  933. } else if (res.cancel) {
  934. return false
  935. //用户点击取消按钮触发
  936. }
  937. }
  938. })
  939. } else {
  940. _that.$refs.BindDrawer.open();
  941. _that.basicFrom.CarDistance = row.modelDistance
  942. _that.basicFrom.CarPlate = row.vehiclePlate
  943. _that.basicFrom.CarVin = row.vehicleVin
  944. _that.basicFrom.state = row.state
  945. _that.basicFrom.id = row.id
  946. _that.basicFrom.rfidEpc = row.rfidEpc
  947. _that.basicFrom.frid = row.rfidEpc.replace(/.{4}$/, '****')
  948. }
  949. },
  950. //绑定建权
  951. BindFRIDHandle() {
  952. if (!this.basicFrom.rfidEpc || !this.basicFrom.epcFour) {
  953. this.ExchangeMessage('warn', '请填写完整!')
  954. } else {
  955. const params = {
  956. id: this.basicFrom.id,
  957. rfidEpc: this.basicFrom.rfidEpc,
  958. epcFour: this.basicFrom.epcFour
  959. }
  960. this.$http.vehicleBind(params)
  961. .then(res => {
  962. this.closeDrawer()
  963. this.ExchangeMessage(res.code === 0 ? 'success' : 'error', res.msg)
  964. if (res.code === 0) {
  965. this.vehicleList()
  966. }
  967. }).catch(err => {
  968. console.error(err)
  969. })
  970. }
  971. },
  972. //编辑车辆请求接口
  973. EditCarInfo() {
  974. if (!this.basicFrom.CarDistance || !this.basicFrom.CarPlate || !this.basicFrom.CarVin) {
  975. this.ExchangeMessage('warn', '请填写完整!')
  976. } else {
  977. const params = {
  978. modelDistance: this.basicFrom.CarDistance,
  979. vehiclePlate: this.basicFrom.CarPlate,
  980. vehicleVin: this.basicFrom.CarVin,
  981. state: this.basicFrom.state * 1,
  982. id: this.basicFrom.id
  983. }
  984. this.$http.Editvehicle(params)
  985. .then(res => {
  986. this.closeDrawer()
  987. this.ExchangeMessage(res.code === 0 ? 'success' : 'error', res.msg)
  988. if (res.code === 0) {
  989. this.vehicleList()
  990. }
  991. }).catch(err => {
  992. console.error(err)
  993. })
  994. }
  995. },
  996. // 添加车辆请求接口
  997. AddCarinfo() {
  998. if (!this.basicFrom.CarDistance || !this.basicFrom.CarPlate || !this.basicFrom.CarVin) {
  999. this.ExchangeMessage('warn', '请填写完整!')
  1000. } else {
  1001. const params = {
  1002. modelDistance: this.basicFrom.CarDistance,
  1003. vehiclePlate: this.basicFrom.CarPlate,
  1004. vehicleVin: this.basicFrom.CarVin,
  1005. source: 0,
  1006. }
  1007. this.$http.addvehicle(params)
  1008. .then(res => {
  1009. this.closeDrawer()
  1010. this.ExchangeMessage(res.code === 0 ? 'success' : 'error', res.code === 0 ? '新增车辆成功' : '新增车辆失败')
  1011. if (res.code === 0) {
  1012. this.vehicleList()
  1013. }
  1014. }).catch(err => {
  1015. console.error(err)
  1016. })
  1017. }
  1018. },
  1019. //查询
  1020. handleQuery() {
  1021. this.queryParams.page = 1
  1022. this.datalist = []
  1023. this.showLoadMore = false
  1024. this.vehicleList()
  1025. },
  1026. //查询电池
  1027. handleBatteryQuery () {
  1028. this.batteryParams.page = 1
  1029. this.dataBatterylist = []
  1030. this.showLoadMore = false
  1031. this.batteryList()
  1032. },
  1033. //重置
  1034. resetForm() {
  1035. this.queryParams = {
  1036. page: 1,
  1037. pageSize: 10,
  1038. source: undefined, //来源
  1039. vehiclePlate: undefined, //车牌号
  1040. vehicleVin: undefined, //VIN码
  1041. }
  1042. this.vehicleList()
  1043. },
  1044. //重置电池
  1045. resetBatteryForm() {
  1046. this.batteryParams = {
  1047. page: 1,
  1048. pageSize: 10,
  1049. orderByField: 'id', //排序字段
  1050. orderByWays: 'desc' ,//排序方式
  1051. sn: null, //来源
  1052. }
  1053. this.batteryList()
  1054. },
  1055. //车辆列表,
  1056. vehicleList() {
  1057. uni.showLoading({
  1058. title:'数据加载中...'
  1059. })
  1060. this.$http.vehicleList(this.queryParams).then((res) => {
  1061. this.datalist = res.data.records;
  1062. this.total = res.data.total;
  1063. uni.hideLoading()
  1064. }).catch(err => {uni.hideLoading()});
  1065. },
  1066. //仓位列表
  1067. encodeList() {
  1068. uni.showLoading({
  1069. title:'数据加载中...'
  1070. })
  1071. this.$http.encodeList(this.cangParams).then((res) => {
  1072. this.dataCanglist = res.data;
  1073. uni.hideLoading()
  1074. }).catch(err => {uni.hideLoading()});
  1075. },
  1076. //电池列表
  1077. batteryList() {
  1078. uni.showLoading({
  1079. title:'数据加载中...'
  1080. })
  1081. this.$http.batteryList(this.batteryParams).then((res) => {
  1082. this.dataBatterylist = res.data.records;
  1083. this.batteryTotal=res.data.total
  1084. uni.hideLoading()
  1085. }).catch(err => {uni.hideLoading()});
  1086. },
  1087. //关闭抽屉
  1088. closeDrawer() {
  1089. this.$refs.BasicDrawer.close();
  1090. this.$refs.BindDrawer.close();
  1091. },
  1092. //车辆触底加载数据
  1093. pullup() {
  1094. this.showLoadMore = true
  1095. if(this.isSelect!==0){
  1096. this.loadMore = 'no-more'
  1097. }else{
  1098. if (this.total == this.datalist.length) {
  1099. this.loadMore = 'no-more'
  1100. return
  1101. } else {
  1102. this.queryParams.page++
  1103. this.vehicleList()
  1104. this.loadMore = 'loading'
  1105. }
  1106. }
  1107. },
  1108. //仓位触底加载数据
  1109. pullCangup() {
  1110. this.showLoadMore = true
  1111. if(this.isSelect!==1){
  1112. this.loadMore = 'no-more'
  1113. }else{
  1114. if (this.cangTotal == this.dataCanglist.length) {
  1115. this.loadMore = 'no-more'
  1116. return
  1117. } else {
  1118. this.cangParams.page++
  1119. this.encodeList()
  1120. this.loadMore = 'loading'
  1121. }
  1122. }
  1123. },
  1124. //仓位触底加载数据
  1125. pullBatteryup() {
  1126. this.showLoadMore = true
  1127. if(this.isSelect!==2){
  1128. this.loadMore = 'no-more'
  1129. }else{
  1130. if (this.batteryTotal == this.dataBatterylist.length) {
  1131. this.loadMore = 'no-more'
  1132. return
  1133. } else {
  1134. this.batteryParams.page++
  1135. this.batteryList()
  1136. this.loadMore = 'loading'
  1137. }
  1138. }
  1139. },
  1140. //同步云端
  1141. syncCloud() {
  1142. let that = this
  1143. uni.showModal({
  1144. title: "是否云端同步",
  1145. content: "",
  1146. success: function(res) {
  1147. if (res.confirm) {
  1148. that.$http.getSync().then(res=>{
  1149. that.ExchangeMessage(res.code === 0 ? 'success' : 'error', res.code === 0 ? '同步成功':'同步失败')
  1150. })
  1151. //用户点击确认按钮触发
  1152. } else if (res.cancel) {
  1153. return
  1154. //用户点击取消按钮触发
  1155. }
  1156. }
  1157. })
  1158. },
  1159. //chargerId等于0时更改为1
  1160. changeChargerId(){
  1161. this.setForm.chargerId=1
  1162. }
  1163. }
  1164. }
  1165. </script>
  1166. <style lang="scss" scoped>
  1167. ::v-deep .uni-forms-item__content {
  1168. .is-input-error-border .uni-easyinput__placeholder-class{
  1169. color: #999;
  1170. }
  1171. .uni-easyinput,.uni-select{
  1172. background: rgba(255, 255, 255, 0);
  1173. border-radius: 2px;
  1174. border: 1px solid #263042;
  1175. }
  1176. .uni-select__selector {
  1177. background: none;
  1178. border: 1px solid #263042;
  1179. }
  1180. .uni-select__selector-item {
  1181. font-size: 14px;
  1182. font-weight: 400;
  1183. color: #A8ADC8;
  1184. }
  1185. .uni-popper__arrow {
  1186. display: none;
  1187. }
  1188. .uni-select__input-text {
  1189. color: white;
  1190. }
  1191. .uni-easyinput__content {
  1192. background: none !important;
  1193. border: none !important;
  1194. color: #fff;
  1195. width: 188px;
  1196. }
  1197. .tempIpt{
  1198. .uni-easyinput__content{
  1199. width: 92px !important;
  1200. }
  1201. }
  1202. }
  1203. ::v-deep .uni-forms-item__label {
  1204. font-size: 14px;
  1205. font-weight: 400;
  1206. color: #FFFFFF;
  1207. }
  1208. ::v-deep .uni-select__selector {
  1209. background: #111827 !important;
  1210. border: 1px solid #263042;
  1211. color: #606266;
  1212. z-index: 9999999;
  1213. }
  1214. .basic-data {
  1215. width: 100%;
  1216. height: 100%;
  1217. color: white;
  1218. font-size: 24px;
  1219. overflow: hidden;
  1220. .basic-top {
  1221. display: flex;
  1222. justify-content: space-between;
  1223. .service_header_left {
  1224. display: flex;
  1225. .btn {
  1226. width: 100px;
  1227. height: 48px;
  1228. background: #263042;
  1229. border-radius: 0px 2px 2px 0px;
  1230. font-size: 16px;
  1231. text-align: center;
  1232. line-height: 48px;
  1233. }
  1234. .active {
  1235. background: #91FDB9;
  1236. border-radius: 2px 0px 0px 2px;
  1237. color: black;
  1238. }
  1239. }
  1240. .basci-header-right{
  1241. display:flex;
  1242. align-items: center;
  1243. }
  1244. .times {
  1245. font-size: 14px;
  1246. font-weight: 400;
  1247. color: #A8ADC8;
  1248. line-height: 32px;
  1249. }
  1250. .sync-btn {
  1251. width: 88px;
  1252. height: 32px;
  1253. border-radius: 2px;
  1254. line-height: 32px;
  1255. text-align: center;
  1256. border: 1px solid #91FDB9;
  1257. font-size: 14px;
  1258. font-weight: 400;
  1259. color: #91FDB9;
  1260. margin-left: 20px;
  1261. }
  1262. .title {
  1263. margin-left: auto;
  1264. line-height: 32px;
  1265. font-size: 16px;
  1266. font-weight: 600;
  1267. color: rgba(255, 255, 255, 0.85);
  1268. line-height: 19px;
  1269. text-shadow: 0px 0px 4px #0027D8
  1270. }
  1271. }
  1272. .basic-search {
  1273. display: flex;
  1274. padding: 16px 20px;
  1275. width: 100%;
  1276. height: 66px;
  1277. box-sizing: border-box;
  1278. background: #111827;
  1279. box-shadow: 0px 0px 10px 0px rgba(0, 0, 0, 0.1);
  1280. border-radius: 2px;
  1281. border: 1px solid #192337;
  1282. // margin-top: 20px;
  1283. ::v-deep .searchForm {
  1284. span {
  1285. display: flex;
  1286. }
  1287. }
  1288. }
  1289. .basic-zkset{
  1290. display: flex;
  1291. padding: 16px 20px;
  1292. width: 100%;
  1293. min-height: 66px;
  1294. box-sizing: border-box;
  1295. background: #111827;
  1296. box-shadow: 0px 0px 10px 0px rgba(0, 0, 0, 0.1);
  1297. border-radius: 2px;
  1298. border: 1px solid #192337;
  1299. flex-direction: column;
  1300. .setTitle{
  1301. font-size: 15px;
  1302. font-weight: bold;
  1303. }
  1304. .setCont{
  1305. .tempIpt{
  1306. width: 88px;
  1307. }
  1308. ::v-deep .uni-data-checklist{
  1309. margin-top: 5px !important;
  1310. .checklist-box{
  1311. margin-right: 12px;
  1312. }
  1313. .checklist-text{
  1314. color: white
  1315. }
  1316. .checklist-group .checklist-box.is--default.is-checked .checklist-text{
  1317. color: #91FDB9;
  1318. }
  1319. .checklist-group .checklist-box.is--default.is-checked .radio__inner{
  1320. border-color:#91FDB9;
  1321. }
  1322. .checklist-group .checklist-box.is--default.is-checked .radio__inner .radio__inner-icon{
  1323. background-color:#91FDB9;
  1324. }
  1325. .checklist-group .checklist-box.is--default.is-checked .checkbox__inner{
  1326. border-color:#91FDB9;
  1327. background-color:#91FDB9;
  1328. }
  1329. }
  1330. ::v-deep .formSet {
  1331. span {
  1332. display: flex;
  1333. flex-wrap: wrap;
  1334. align-items: center;
  1335. }
  1336. .uni-forms-item__content{
  1337. display: flex;
  1338. }
  1339. .uni-forms-item{
  1340. margin-bottom: 0;
  1341. }
  1342. }
  1343. }
  1344. }
  1345. .search-btn {
  1346. width: 60px;
  1347. height: 34px;
  1348. background: #91FDB9;
  1349. border-radius: 2px;
  1350. font-size: 14px;
  1351. font-weight: 400;
  1352. color: #000000;
  1353. text-align: center;
  1354. line-height: 34px;
  1355. margin-left: 20px;
  1356. margin-top: 1px;
  1357. }
  1358. .search-temp {
  1359. width: 68px;
  1360. height: 34px;
  1361. background: #91FDB9;
  1362. border-radius: 2px;
  1363. font-size: 14px;
  1364. font-weight: 400;
  1365. color: #000000;
  1366. text-align: center;
  1367. line-height: 34px;
  1368. margin-left: 20px;
  1369. margin-top: 1px;
  1370. margin-right: 15px;
  1371. }
  1372. .reset-btn {
  1373. width: 60px;
  1374. height: 32px;
  1375. border-radius: 2px;
  1376. font-size: 14px;
  1377. font-weight: 400;
  1378. color: #FFFFFF;
  1379. text-align: center;
  1380. line-height: 32px;
  1381. margin-left: 20px;
  1382. margin-top: 1px;
  1383. border: 1px solid #263042;
  1384. }
  1385. .basic-table {
  1386. width: 100%;
  1387. height: 576px;
  1388. background: #111827;
  1389. box-shadow: 0px 0px 10px 0px rgba(0, 0, 0, 0.1);
  1390. border-radius: 2px;
  1391. border: 1px solid #192337;
  1392. margin-top: 16px;
  1393. box-sizing: border-box;
  1394. padding: 16px 20px;
  1395. display: flex;
  1396. flex-direction: column;
  1397. .marginZero {
  1398. margin-left: 0px;
  1399. margin-bottom: 15px;
  1400. }
  1401. }
  1402. }
  1403. </style>