customer.vue 25 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990
  1. <template>
  2. <div class="mod-home" id="customer-content">
  3. <el-button @click="fullScreen" class="full-screen-btn">全屏</el-button>
  4. <el-row :span="24" style="height: 100%">
  5. <el-col :span="18" style="height: 100%">
  6. <el-row :span="24" class="sample-bg">
  7. <el-col :span="6" class="bg1-1">
  8. <el-row :span="24" class="bg1-1-1">
  9. <div class="box-company-title">
  10. <div class="company-title">生产现场时时看板</div>
  11. </div>
  12. </el-row>
  13. <el-row :span="24" class="bg1-1-2">
  14. <div class="box-custom-number">
  15. <div class="custom-number">在制物料数:{{ produceCensus.produceNum }}</div>
  16. </div>
  17. </el-row>
  18. <el-row :span="24" class="bg1-1-1">
  19. <div class="box-contract-number">
  20. <div class="contract-number">已完成数:{{ produceCensus.completeNum }}</div>
  21. </div>
  22. </el-row>
  23. <el-row :span="24" class="bg1-1-2">
  24. <div class="box-contract-amount">
  25. <div class="contract-amount">
  26. 报损数量:{{ produceCensus.damageNum }}
  27. </div>
  28. </div>
  29. </el-row>
  30. </el-col>
  31. <el-col :span="18" class="bg1-2">
  32. <el-row :span="24" class="bg1-2-1">
  33. <div ref="boxnoticetitle" class="box-notice-title" @dblclick="doubleClick">
  34. <div ref="noticetitle" :class="isTran ? 'notice-title notice-title-animation' : 'notice-title'">{{ noticeContent }}</div>
  35. </div>
  36. </el-row>
  37. <!-- <el-row :span="24" class="bg1-2-2">
  38. <div class="box-stat-number">
  39. <div class="stat-number">
  40. <div class="item">
  41. <div class="title">在制物料总数</div>
  42. <div class="number">{{ produceCensus.produceNum }}</div>
  43. </div>
  44. <div class="item">
  45. <div class="title">已完成数量</div>
  46. <div class="number">{{ produceCensus.completeNum }}</div>
  47. </div>
  48. <div class="item">
  49. <div class="title">损坏数量</div>
  50. <div class="number">{{ produceCensus.damageNum }}</div>
  51. </div>
  52. <div class="item">
  53. <div class="title">生产总值</div>
  54. <div class="number">
  55. {{ produceCensus.totalOutputValue }}
  56. </div>
  57. </div>
  58. </div>
  59. </div>
  60. </el-row> -->
  61. <el-row :span="24" class="bg1-2-3">
  62. <el-col :span="12" class="bg2-1">
  63. <el-row :span="24" class="bg2-3-1">
  64. <div class="box-contract-alert">
  65. <div class="contract-alert">合同预警</div>
  66. </div>
  67. </el-row>
  68. <el-row :span="24" class="bg2-3-2">
  69. <div class="box-contract-alert">
  70. <div class="contract-alert">
  71. <div class="table">
  72. <el-table
  73. ref="contractAlarmTable"
  74. :data="contractAlarmList"
  75. height="100%"
  76. row-class-name="custom-ranking-table-row"
  77. style="width: 100%"
  78. >
  79. <el-table-column
  80. type="index"
  81. label="序号"
  82. ></el-table-column>
  83. <el-table-column
  84. prop="contractNumber"
  85. label="合同号"
  86. ></el-table-column>
  87. <!-- <el-table-column prop="orderCode" label="任务单号"></el-table-column> -->
  88. <el-table-column
  89. prop="remainTime"
  90. label="剩余时间(天)"
  91. min-width="100"
  92. ></el-table-column>
  93. <el-table-column
  94. prop="deliveryTime"
  95. label="交付日期"
  96. ></el-table-column>
  97. <el-table-column
  98. prop="customerName"
  99. label="客户名称"
  100. ></el-table-column>
  101. <!-- <el-table-column prop="salesmenName" label="业务员"></el-table-column> -->
  102. </el-table>
  103. </div>
  104. </div>
  105. </div>
  106. </el-row>
  107. </el-col>
  108. <el-col :span="12" class="bg2-2">
  109. <el-row :span="24" class="bg2-3-11">
  110. <div class="box-contract-alert">
  111. <div class="contract-alert">报损记录</div>
  112. </div>
  113. </el-row>
  114. <el-row :span="24" class="bg2-3-3">
  115. <div class="box-contract-alert">
  116. <div class="contract-alert">
  117. <div class="table">
  118. <el-table
  119. ref="damageTable"
  120. :data="damageList"
  121. height="100%"
  122. row-class-name="custom-ranking-table-row"
  123. style="width: 100%"
  124. >
  125. <el-table-column
  126. type="index"
  127. label="序号"
  128. ></el-table-column>
  129. <el-table-column
  130. prop="productName"
  131. label="物料"
  132. ></el-table-column>
  133. <el-table-column
  134. prop="prodCode"
  135. label="编号"
  136. ></el-table-column>
  137. <!-- <el-table-column prop="damageReason" label="原因"></el-table-column> -->
  138. <el-table-column
  139. prop="liableUserName"
  140. label="报损人"
  141. width="80"
  142. ></el-table-column>
  143. <el-table-column
  144. prop="createTime"
  145. label="报损时间"
  146. ></el-table-column>
  147. </el-table>
  148. </div>
  149. </div>
  150. </div>
  151. </el-row>
  152. </el-col>
  153. </el-row>
  154. </el-col>
  155. <el-col :span="9"></el-col>
  156. </el-row>
  157. <el-row :span="24" class="sample-bg1">
  158. <div class="box-contract-table">
  159. <div class="contract-table table">
  160. <el-table
  161. ref="contractProdTable"
  162. :data="contractProdList"
  163. height="100%"
  164. :row-class-name="contractProdListAddClass"
  165. style="width: 100%"
  166. >
  167. <el-table-column type="index" label="序号"></el-table-column>
  168. <el-table-column
  169. prop="orderCode"
  170. label="合同号"
  171. ></el-table-column>
  172. <el-table-column
  173. prop="productName"
  174. label="物料名称"
  175. ></el-table-column>
  176. <el-table-column
  177. prop="prodCode"
  178. label="物料编号"
  179. ></el-table-column>
  180. <el-table-column
  181. prop="batchNo"
  182. label="批次号"
  183. ></el-table-column>
  184. <el-table-column label="生产进度" width="180">
  185. <template slot-scope="scope">
  186. <el-progress
  187. :percentage="parseInt(scope.row.progressBar)"
  188. ></el-progress>
  189. </template>
  190. </el-table-column>
  191. <el-table-column
  192. prop="customerName"
  193. label="客户名称"
  194. ></el-table-column>
  195. <el-table-column
  196. prop="curOperator"
  197. label="当前操作人"
  198. ></el-table-column>
  199. </el-table>
  200. </div>
  201. </div>
  202. </el-row>
  203. </el-col>
  204. <el-col :span="6" class="left-bg">
  205. <el-row :span="24" class="bg1-3-1">
  206. <div class="box-custom-ranking">
  207. <div class="custom-ranking">报工列表</div>
  208. </div>
  209. </el-row>
  210. <el-row :span="24" class="bg1-3-2">
  211. <div class="box-custom-ranking">
  212. <div class="custom-ranking">
  213. <div class="table">
  214. <el-table
  215. ref="customerRankTable"
  216. :data="submittedRecordList"
  217. height="100%"
  218. row-class-name="custom-ranking-table-row"
  219. style="width: 100%"
  220. >
  221. <el-table-column type="index" label="序号"></el-table-column>
  222. <el-table-column
  223. prop="nodeName"
  224. label="工序"
  225. width="70"
  226. ></el-table-column>
  227. <el-table-column
  228. prop="taskName"
  229. label="物料名字"
  230. ></el-table-column>
  231. <el-table-column
  232. prop="endTime"
  233. label="完成时间"
  234. ></el-table-column>
  235. <el-table-column
  236. prop="operatorName"
  237. label="操作人"
  238. ></el-table-column>
  239. </el-table>
  240. </div>
  241. </div>
  242. </div>
  243. </el-row>
  244. </el-col>
  245. </el-row>
  246. <el-dialog title="设置通知内容" :visible.sync="dialogFormVisible">
  247. <el-form :model="noticeForm">
  248. <el-form-item label="通知内容">
  249. <el-input v-model="noticeForm.content" autocomplete="off"></el-input>
  250. </el-form-item>
  251. </el-form>
  252. <div slot="footer">
  253. <el-button @click="dialogFormVisible = false">取 消</el-button>
  254. <el-button type="primary" @click="dialogSubmit">确 定</el-button>
  255. </div>
  256. </el-dialog>
  257. </div>
  258. </template>
  259. <script>
  260. import {
  261. getAnalytics,
  262. getContractAlarmList,
  263. getCustomerRankList,
  264. getDamageList,
  265. getOutboundRecordList,
  266. getContractProdList,
  267. getSubmittedRecordList,
  268. getProduceCensus
  269. } from '@/api/home'
  270. export default {
  271. name: 'customer',
  272. components: {},
  273. data () {
  274. return {
  275. analytics: {
  276. clients: '', // 客户数
  277. num: '', // 合同数
  278. totalAmount: '' // 合同总金额
  279. },
  280. analyticsTimer: null,
  281. // 合同预警列表
  282. contractAlarmList: [],
  283. contractAlarmListTimer: null,
  284. // 客户排名列表
  285. customerRankList: [],
  286. customerRankListTimer: null,
  287. // 报损记录列表
  288. damageList: [],
  289. damageListTimer: null,
  290. // 出库记录列表
  291. outboundRecordList: [],
  292. outboundRecordListTimer: null,
  293. // 合同生产记录列表
  294. contractProdList: [],
  295. contractProdListTimer: null,
  296. // 报工列表
  297. submittedRecordList: [],
  298. submittedRecordListTimer: null,
  299. // 生产统计
  300. produceCensus: {
  301. produceNum: 0, // 在制物料总数
  302. completeNum: 0, // 已完成数量
  303. damageNum: 0, // 损坏数量
  304. totalOutputValue: 0 // 生产总值
  305. },
  306. produceCensusTimer: null,
  307. dialogFormVisible: false,
  308. noticeForm: {
  309. content: ''
  310. },
  311. noticeContent: '',
  312. isTran: false
  313. }
  314. },
  315. created () {
  316. this.getAnalytics()
  317. this.analyticsTimer = setInterval(this.getAnalytics, 1000 * 3600) // 1小时刷新
  318. this.getContractAlarmList()
  319. this.contractAlarmListTimer = setInterval(
  320. this.getContractAlarmList,
  321. 1000 * 60 * 10
  322. ) // 10分钟刷新
  323. this.getDamageList()
  324. this.customerRankListTimer = setInterval(
  325. this.getDamageList,
  326. 1000 * 60 * 10
  327. ) // 10分钟刷新
  328. this.getContractProdList()
  329. this.contractProdListTimer = setInterval(
  330. this.getContractProdList,
  331. 1000 * 60 * 10
  332. ) // 10分钟刷新
  333. this.getSubmittedRecordList()
  334. this.submittedRecordListTimer = setInterval(
  335. this.getSubmittedRecordList,
  336. 1000 * 60 * 5
  337. ) // 5分钟刷新
  338. this.getProduceCensus()
  339. this.produceCensusTimer = setInterval(this.getProduceCensus, 1000 * 60 * 5) // 5分钟刷新
  340. this.getNoticeContent()
  341. this.setTitleScroll()
  342. },
  343. mounted () {
  344. this.contractProdTableScroll()
  345. this.customerRankTableScroll()
  346. this.contractAlarmTableScroll()
  347. // this.outboundRecordTableScroll();
  348. // this.submittedRecordTableScroll();
  349. this.damageTableScroll()
  350. },
  351. beforeDestroy () {
  352. clearInterval(this.analyticsTimer)
  353. clearInterval(this.contractAlarmListTimer)
  354. clearInterval(this.damageListTimer)
  355. clearInterval(this.customerRankListTimer)
  356. clearInterval(this.outboundRecordListTimer)
  357. clearInterval(this.contractProdListTimer)
  358. clearInterval(this.submittedRecordListTimer)
  359. clearInterval(this.produceCensusTimer)
  360. },
  361. methods: {
  362. setTitleScroll () {
  363. this.$nextTick(() => {
  364. let boxWidth = this.$refs.boxnoticetitle.offsetWidth
  365. let contentWidth = this.$refs.noticetitle.offsetWidth
  366. if (contentWidth > boxWidth) {
  367. // 设置水平滚动效果
  368. this.isTran = true
  369. }
  370. })
  371. },
  372. getNoticeContent () {
  373. let content = sessionStorage.getItem('customer-noticeContent')
  374. if (content == null || content === '') {
  375. content = '双击此处修改通知内容'
  376. }
  377. this.noticeContent = content
  378. },
  379. doubleClick () {
  380. this.dialogFormVisible = true
  381. },
  382. dialogSubmit () {
  383. this.noticeContent = this.noticeForm.content
  384. this.dialogFormVisible = false
  385. sessionStorage.setItem('customer-noticeContent', this.noticeContent)
  386. this.setTitleScroll()
  387. },
  388. // 合同统计
  389. getAnalytics () {
  390. getAnalytics({}).then(({ data }) => {
  391. if (data && data.code === '200') {
  392. this.analytics = { ...data.data }
  393. }
  394. })
  395. },
  396. // 合同预警列表
  397. getContractAlarmList () {
  398. let params = {
  399. current: 1,
  400. size: 20
  401. }
  402. getContractAlarmList(params).then(({ data }) => {
  403. if (data && data.code === '200') {
  404. this.contractAlarmList = data.data.records
  405. }
  406. })
  407. },
  408. // 客户排名列表
  409. getCustomerRankList () {
  410. let params = {
  411. current: 1,
  412. size: 20
  413. }
  414. getCustomerRankList(params).then(({ data }) => {
  415. if (data && data.code === '200') {
  416. this.customerRankList = data.data
  417. }
  418. })
  419. },
  420. // 报损记录列表
  421. getDamageList () {
  422. let params = {
  423. current: 1,
  424. size: 20
  425. }
  426. getDamageList(params).then(({ data }) => {
  427. if (data && data.code === '200') {
  428. this.damageList = data.data.records
  429. }
  430. })
  431. },
  432. // 出库记录列表
  433. getOutboundRecordList () {
  434. let params = {
  435. current: 1,
  436. size: 20
  437. }
  438. getOutboundRecordList(params).then(({ data }) => {
  439. if (data && data.code === '200') {
  440. this.outboundRecordList = data.data.records
  441. }
  442. })
  443. },
  444. // 合同生产记录列表
  445. getContractProdList () {
  446. let params = {
  447. current: 1,
  448. size: 20
  449. }
  450. getContractProdList(params).then(({ data }) => {
  451. if (data && data.code === '200') {
  452. this.contractProdList = data.data.records
  453. }
  454. })
  455. },
  456. // 报工列表
  457. getSubmittedRecordList () {
  458. let params = {
  459. current: 1,
  460. size: 20
  461. }
  462. getSubmittedRecordList(params).then(({ data }) => {
  463. if (data && data.code === '200') {
  464. this.submittedRecordList = data.data.records
  465. }
  466. })
  467. },
  468. // 生产统计
  469. getProduceCensus () {
  470. getProduceCensus({}).then(({ data }) => {
  471. if (data && data.code === '200') {
  472. this.produceCensus = data.data
  473. }
  474. })
  475. },
  476. contractProdTableScroll () {
  477. this.$nextTick(() => {
  478. const divData = this.$refs.contractProdTable.bodyWrapper
  479. setInterval(() => {
  480. divData.scrollTop += 1
  481. if (
  482. divData.clientHeight + divData.scrollTop + 1 >
  483. divData.scrollHeight
  484. ) {
  485. divData.scrollTop = 0
  486. }
  487. }, 50)
  488. })
  489. },
  490. customerRankTableScroll () {
  491. this.$nextTick(() => {
  492. const divData = this.$refs.customerRankTable.bodyWrapper
  493. setInterval(() => {
  494. divData.scrollTop += 1
  495. if (
  496. divData.clientHeight + divData.scrollTop + 1 >
  497. divData.scrollHeight
  498. ) {
  499. divData.scrollTop = 0
  500. }
  501. }, 50)
  502. })
  503. },
  504. contractAlarmTableScroll () {
  505. this.$nextTick(() => {
  506. const divData = this.$refs.contractAlarmTable.bodyWrapper
  507. setInterval(() => {
  508. divData.scrollTop += 1
  509. if (
  510. divData.clientHeight + divData.scrollTop + 1 >
  511. divData.scrollHeight
  512. ) {
  513. divData.scrollTop = 0
  514. }
  515. }, 50)
  516. })
  517. },
  518. contractProdListAddClass ({row, rowIndex}) {
  519. if (row.warningState === '3') {
  520. return 'custom-ranking-table-row overdue-row'
  521. }
  522. if (row.warningState === '2') {
  523. return 'custom-ranking-table-row warning-row'
  524. }
  525. return 'custom-ranking-table-row'
  526. },
  527. outboundRecordTableScroll () {
  528. this.$nextTick(() => {
  529. const divData = this.$refs.outboundRecordTable.bodyWrapper
  530. setInterval(() => {
  531. divData.scrollTop += 1
  532. if (
  533. divData.clientHeight + divData.scrollTop + 1 >
  534. divData.scrollHeight
  535. ) {
  536. divData.scrollTop = 0
  537. }
  538. }, 50)
  539. })
  540. },
  541. submittedRecordTableScroll () {
  542. this.$nextTick(() => {
  543. const divData = this.$refs.submittedRecordTable.bodyWrapper
  544. setInterval(() => {
  545. divData.scrollTop += 1
  546. if (
  547. divData.clientHeight + divData.scrollTop + 1 >
  548. divData.scrollHeight
  549. ) {
  550. divData.scrollTop = 0
  551. }
  552. }, 50)
  553. })
  554. },
  555. damageTableScroll () {
  556. this.$nextTick(() => {
  557. const divData = this.$refs.damageTable.bodyWrapper
  558. setInterval(() => {
  559. divData.scrollTop += 1
  560. if (
  561. divData.clientHeight + divData.scrollTop + 1 >
  562. divData.scrollHeight
  563. ) {
  564. divData.scrollTop = 0
  565. }
  566. }, 50)
  567. })
  568. },
  569. // 全屏显示
  570. fullScreen () {
  571. const element = document.getElementById('customer-content')
  572. element.requestFullscreen()
  573. }
  574. }
  575. }
  576. </script>
  577. <style>
  578. html,
  579. body,
  580. .site-wrapper,
  581. .site-content__wrapper,
  582. .site-content,
  583. .el-tabs--top,
  584. .el-tabs__content,
  585. .el-tab-pane,
  586. .el-card,
  587. .el-card__body {
  588. height: 100%;
  589. }
  590. .custom-ranking-table-row {
  591. font-size: 8px;
  592. }
  593. .el-table .warning-row {
  594. color:#FFD700;
  595. }
  596. .el-table .overdue-row {
  597. color: #FF0000;
  598. }
  599. </style>
  600. <style scoped>
  601. .mod-home {
  602. /* line-height: 1.5; */
  603. height: 100%;
  604. position: relative;
  605. }
  606. .full-screen-btn {
  607. position: absolute;
  608. top: 0;
  609. right: 0;
  610. z-index: 9;
  611. padding: 0 0;
  612. border-radius: 0;
  613. }
  614. .sample-bg {
  615. background-color: #021327;
  616. height: 60%;
  617. }
  618. .sample-bg1 {
  619. background-color: #021327;
  620. height: 40%;
  621. }
  622. .bg1-1 {
  623. /* background-color: yellow; */
  624. height: 100%;
  625. }
  626. .bg1-2 {
  627. /* background-color: orange; */
  628. height: 100%;
  629. }
  630. .bg1-3 {
  631. /* background-color: orchid; */
  632. height: 100%;
  633. }
  634. .bg2-1 {
  635. /* background-color: red; */
  636. height: 100%;
  637. }
  638. .bg2-2 {
  639. /* background-color: aqua; */
  640. height: 100%;
  641. }
  642. .bg1-1-1 {
  643. height: 25%;
  644. padding: 10px 10px;
  645. /* border: 1px solid black; */
  646. }
  647. .bg1-1-2 {
  648. height: 25%;
  649. padding: 10px;
  650. /* border: 1px solid black; */
  651. }
  652. .left-bg{
  653. height: 100%;
  654. background-color: #021327;
  655. }
  656. .box-company-title {
  657. background-color: #094198;
  658. display: flex;
  659. height: 100%;
  660. }
  661. .company-title {
  662. font-size: 20px;
  663. color: aliceblue;
  664. margin: 0 auto;
  665. align-items: center;
  666. display: flex;
  667. }
  668. .box-custom-number {
  669. background-color: #d65246;
  670. display: flex;
  671. height: 100%;
  672. }
  673. .custom-number {
  674. font-size: 20px;
  675. color: aliceblue;
  676. margin: 0 auto;
  677. align-items: center;
  678. display: flex;
  679. }
  680. .box-contract-number {
  681. background-color: #11d2b7;
  682. display: flex;
  683. height: 100%;
  684. }
  685. .contract-number {
  686. font-size: 20px;
  687. color: aliceblue;
  688. margin: 0 auto;
  689. align-items: center;
  690. display: flex;
  691. }
  692. .box-contract-amount {
  693. background-color: #f6a647;
  694. display: flex;
  695. height: 100%;
  696. }
  697. .contract-amount {
  698. font-size: 20px;
  699. color: aliceblue;
  700. margin: 0 auto;
  701. align-items: center;
  702. display: flex;
  703. }
  704. /*中间通知区域*/
  705. .bg1-2-1 {
  706. height: 15%;
  707. padding: 10px;
  708. /* border: 1px solid black; */
  709. }
  710. .bg1-2-2 {
  711. height: 25%;
  712. padding: 10px;
  713. /* border: 1px solid black; */
  714. }
  715. .bg1-2-3 {
  716. height: 85%;
  717. padding: 10px;
  718. /* border: 1px solid black; */
  719. }
  720. .box-notice-title {
  721. background-color: #2fb5f2;
  722. display: flex;
  723. height: 100%;
  724. width: 100%;
  725. margin: 0 auto;
  726. overflow: hidden;
  727. }
  728. .notice-title {
  729. font-size: 20px;
  730. color: red;
  731. margin: 0 auto;
  732. align-items: center;
  733. display: flex;
  734. white-space: nowrap;
  735. }
  736. .notice-title-animation {
  737. animation: wordsLoop 25s linear infinite normal;
  738. }
  739. @keyframes wordsLoop{
  740. 0% {
  741. transform: translateX(0);
  742. -webkit-transform: translateX(0);
  743. }
  744. 100% {
  745. transform: translateX(-51%);
  746. -webkit-transform: translateX(-51%);
  747. }
  748. }
  749. @-webkit-keyframes wordsLoop{
  750. 0% {
  751. transform: translateX(0);
  752. -webkit-transform: translateX(0);
  753. }
  754. 100% {
  755. transform: translateX(-51%);
  756. -webkit-transform: translateX(-51%);
  757. }
  758. }
  759. .box-stat-number {
  760. background-color: #415065;
  761. display: flex;
  762. height: 100%;
  763. }
  764. .stat-number {
  765. font-size: 20px;
  766. color: aliceblue;
  767. margin: 0 auto;
  768. align-items: center;
  769. display: flex;
  770. justify-content: space-around;
  771. width: 100%;
  772. }
  773. .stat-number > .item {
  774. height: 80%;
  775. display: flex;
  776. flex-direction: column;
  777. justify-content: space-around;
  778. }
  779. .stat-number > .item > .title {
  780. color: darkturquoise;
  781. }
  782. .stat-number > .item > .number {
  783. text-align: center;
  784. }
  785. /*合同列表*/
  786. .box-contract-table {
  787. background-color: #021327;
  788. display: flex;
  789. height: 100%;
  790. padding: 10px;
  791. }
  792. .contract-table {
  793. font-size: 20px;
  794. color: aliceblue;
  795. margin: 0 auto;
  796. align-items: center;
  797. display: flex;
  798. justify-content: space-around;
  799. width: 100%;
  800. }
  801. .bg1-3-1 {
  802. height: 10%;
  803. /* min-height: 45px; */
  804. padding: 10px;
  805. /* border: 1px solid black; */
  806. }
  807. .bg1-3-2 {
  808. height: 90%;
  809. padding: 2px 10px 10px;
  810. /* border: 1px solid black; */
  811. }
  812. /*客户排名*/
  813. .box-custom-ranking {
  814. background-color: #415065;
  815. height: 100%;
  816. }
  817. .custom-ranking {
  818. font-size: 14px;
  819. color: aliceblue;
  820. display: flex;
  821. flex-direction: column;
  822. align-items: center;
  823. justify-content: center;
  824. text-align: justify;
  825. width: 100%;
  826. height: 100%;
  827. }
  828. .custom-ranking > .table {
  829. background-color: darkturquoise;
  830. height: 100%;
  831. width: 100%;
  832. }
  833. .custom-ranking-table-row {
  834. font-size: 8px;
  835. }
  836. .bg2-3-1 {
  837. height: 15%;
  838. padding: 5px 5px 5px 0px;
  839. /* border: 1px solid black; */
  840. }
  841. .bg2-3-11 {
  842. height: 15%;
  843. padding: 5px 0px 5px 5px;
  844. /* border: 1px solid black; */
  845. }
  846. .bg2-3-2 {
  847. height: 85%;
  848. padding: 2px 5px 0px 0px;
  849. /* border: 1px solid black; */
  850. }
  851. .bg2-3-3 {
  852. height: 85%;
  853. padding: 2px 0px 0px 5px;
  854. /* border: 1px solid black; */
  855. }
  856. /*合同预警*/
  857. .box-contract-alert {
  858. background-color: #415065;
  859. height: 100%;
  860. }
  861. .contract-alert {
  862. font-size: 14px;
  863. color: aliceblue;
  864. display: flex;
  865. flex-direction: column;
  866. align-items: center;
  867. justify-content: center;
  868. text-align: justify;
  869. width: 100%;
  870. height: 100%;
  871. }
  872. .contract-alert > .title > div {
  873. background-color: #415065;
  874. width: 100%;
  875. display: flex;
  876. align-items: center;
  877. justify-content: center;
  878. text-align: justify;
  879. }
  880. .contract-alert > .table {
  881. background-color: darkturquoise;
  882. height: 100%;
  883. width: 100%;
  884. }
  885. .table thead .cell {
  886. font-size: 12px;
  887. -webkit-transform: scale(0.8) !important;
  888. }
  889. .table tbody .cell {
  890. font-size: 12px;
  891. -webkit-transform: scale(0.8) !important;
  892. }
  893. /* 设置滚动条的样式 */
  894. ::-webkit-scrollbar {
  895. width: 6px;
  896. height: 6px;
  897. }
  898. /* 滚动槽 */
  899. ::-webkit-scrollbar-track {
  900. -webkit-box-shadow: inset006pxrgba(0, 0, 0, 0.3);
  901. border-radius: 10px;
  902. }
  903. /* 滚动条滑块 */
  904. ::-webkit-scrollbar-thumb {
  905. border-radius: 10px;
  906. background: rgba(0, 0, 0, 0.1);
  907. -webkit-box-shadow: inset006pxrgba(0, 0, 0, 0.5);
  908. }
  909. ::-webkit-scrollbar-thumb:window-inactive {
  910. background: rgba(161, 156, 156, 0.2);
  911. }
  912. </style>