productionSchedule.vue 25 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868
  1. <template>
  2. <vue-fullscreen
  3. class="box-container"
  4. v-model="isFullscreen"
  5. fullscreenClass="box-container"
  6. :exit-on-click-wrapper="false"
  7. v-cloak
  8. >
  9. <div class="box-container">
  10. <div class="box-header">
  11. <div class="logo"> </div>
  12. <div class="title"> 生产进度看板 </div>
  13. <div class="time">
  14. <span
  15. style="color: #7fa7ce; margin: 5px 10px 15px 0; cursor: pointer"
  16. @click.passive="onFullscreen"
  17. >
  18. <i
  19. v-if="isFullscreen"
  20. title="取消全屏"
  21. class="el-icon-_screen-restore"
  22. ></i>
  23. <i v-else title="全屏" class="el-icon-_screen-full"></i>
  24. </span>
  25. <div style="margin-right: 10px">
  26. <span style="color: #7fa7ce">{{ date }}</span>
  27. <span style="color: rgb(210 215 221); padding: 0 5px">{{
  28. time
  29. }}</span>
  30. <span style="color: #7fa7ce">{{ week }} </span>
  31. </div>
  32. </div>
  33. </div>
  34. <div class="box-middle">
  35. <template v-for="item in borderData">
  36. <div class="box-middle-content">
  37. <dvBorderContent :objD="item"></dvBorderContent>
  38. </div>
  39. </template>
  40. </div>
  41. <div class="box-footer">
  42. <div class="box-footer-left">
  43. <div class="box-echarts">
  44. <div class="box-echarts-top">
  45. <span class="box-top-name">合格数统计</span>
  46. <!-- <span class="box-top-unit">(万元)</span> -->
  47. </div>
  48. <div class="monthly_sales_volume">
  49. <div
  50. v-if="isFlag"
  51. id="monthly_sales_volume"
  52. ref="monthly_sales_volume"
  53. ></div>
  54. </div>
  55. </div>
  56. <div class="box-echarts">
  57. <div class="box-echarts-top">
  58. <span class="box-top-name">月度产量统计</span>
  59. <!-- <span class="box-top-unit">(KG)</span> -->
  60. </div>
  61. <div class="monthly_output">
  62. <div v-if="isFlag" id="monthly_output" ref="monthly_output"></div>
  63. </div>
  64. </div>
  65. </div>
  66. <div class="box-footer-right">
  67. <div class="box-echarts-top">
  68. <span class="box-top-name">生产工单进度</span>
  69. </div>
  70. <dv-scroll-board
  71. v-if="isFlag"
  72. :config="config"
  73. ref="dvScrollBoard"
  74. style="width: 90%; height: 87%; transform: translate(5%, 1%)"
  75. />
  76. </div>
  77. </div>
  78. </div>
  79. </vue-fullscreen>
  80. </template>
  81. <script>
  82. import dvBorderContent from './dv-border-content.vue';
  83. import * as echarts from 'echarts';
  84. import { component } from 'vue-fullscreen';
  85. import { isFullscreen } from 'ele-admin';
  86. import {
  87. count,
  88. getSalesFinishListAPI,
  89. completionCount
  90. } from '@/api/mes/productionSchedule';
  91. export default {
  92. name: 'index',
  93. components: {
  94. dvBorderContent,
  95. VueFullscreen: component
  96. },
  97. computed: {
  98. contentWidth() {
  99. return this.$store.state.theme.contentWidth;
  100. }
  101. },
  102. watch: {
  103. isFullscreen: {
  104. handler() {
  105. this.isFlag = false;
  106. this.$nextTick(() => {
  107. let { clientWidth: deviceWidth, clientHeight: deviceHeight } =
  108. document.documentElement;
  109. let eleAdminHeaderHeight =
  110. (!this.isFullscreen &&
  111. document.getElementsByClassName('ele-admin-header')[0]
  112. ?.offsetHeight) ||
  113. 0;
  114. let eleAdminSidebarWidth =
  115. (!this.isFullscreen &&
  116. document.getElementsByClassName('ele-admin-sidebar')[0]
  117. ?.offsetWidth) ||
  118. 0;
  119. let eleAdminTabsWidth =
  120. (!this.isFullscreen &&
  121. document.getElementsByClassName('ele-admin-tabs')[0]
  122. ?.offsetHeight) ||
  123. 0;
  124. const setContainerSize = (item) => {
  125. item.style.height =
  126. deviceHeight - eleAdminHeaderHeight - eleAdminTabsWidth + 'px';
  127. item.style.width = deviceWidth - eleAdminSidebarWidth + 'px';
  128. };
  129. let boxContainer = [
  130. ...document.getElementsByClassName('box-container')
  131. ];
  132. boxContainer.forEach(setContainerSize);
  133. document.documentElement.style.fontSize = this.isFullscreen
  134. ? '24px'
  135. : '16px';
  136. this.isFlag = true;
  137. this.$nextTick(() => {
  138. let chartDom = this.$refs.monthly_sales_volume;
  139. this.salesChart = echarts.init(chartDom);
  140. let chartDom2 = this.$refs.monthly_output;
  141. this.outputChart = echarts.init(chartDom2);
  142. this.getMonthlySalesStatistic();
  143. this.getMonthlyProduceStatistic();
  144. });
  145. });
  146. },
  147. immediate: true
  148. },
  149. contentWidth: {
  150. handler() {
  151. this.isFlag = false;
  152. this.$nextTick(() => {
  153. let { clientWidth: deviceWidth, clientHeight: deviceHeight } =
  154. document.documentElement;
  155. let eleAdminHeaderHeight =
  156. (!this.isFullscreen &&
  157. document.getElementsByClassName('ele-admin-header')[0]
  158. ?.offsetHeight) ||
  159. 0;
  160. let eleAdminSidebarWidth =
  161. (!this.isFullscreen &&
  162. document.getElementsByClassName('ele-admin-sidebar')[0]
  163. ?.offsetWidth) ||
  164. 0;
  165. let eleAdminTabsWidth =
  166. (!this.isFullscreen &&
  167. document.getElementsByClassName('ele-admin-tabs')[0]
  168. ?.offsetHeight) ||
  169. 0;
  170. const setContainerSize = (item) => {
  171. item.style.height =
  172. deviceHeight - eleAdminHeaderHeight - eleAdminTabsWidth + 'px';
  173. item.style.width = deviceWidth - eleAdminSidebarWidth + 'px';
  174. };
  175. let boxContainer = [
  176. ...document.getElementsByClassName('box-container')
  177. ];
  178. boxContainer.forEach(setContainerSize);
  179. document.documentElement.style.fontSize = this.isFullscreen
  180. ? '24px'
  181. : '16px';
  182. this.isFlag = true;
  183. this.$nextTick(() => {
  184. let chartDom = this.$refs.monthly_sales_volume;
  185. this.salesChart = echarts.init(chartDom);
  186. let chartDom2 = this.$refs.monthly_output;
  187. this.outputChart = echarts.init(chartDom2);
  188. this.getMonthlySalesStatistic();
  189. this.getMonthlyProduceStatistic();
  190. });
  191. });
  192. },
  193. immediate: true
  194. }
  195. },
  196. deactivated() {
  197. clearInterval(this.updateTimer);
  198. },
  199. data() {
  200. return {
  201. isFullscreen: false, // 是否是全屏
  202. isFlag: false, // 是否展示图表
  203. date: '',
  204. time: '',
  205. week: '',
  206. signedTotal: 0,
  207. deliveryTotal: 0,
  208. salesTotal: 0,
  209. WeightGainTotal: 0,
  210. WeightStorageTotal: 0,
  211. salesChart: null,
  212. outputChart: null,
  213. borderData: [
  214. {
  215. titleName: '生产总数',
  216. titleUnit: '',
  217. value: '0'
  218. },
  219. {
  220. titleName: '待生产数量',
  221. titleUnit: '',
  222. value: '0'
  223. },
  224. {
  225. titleName: '已完成数量',
  226. titleUnit: '',
  227. value: '0'
  228. },
  229. // {
  230. // titleName: '工时统计',
  231. // titleUnit: '',
  232. // value: '0',
  233. // fun: () => getIncreaseWeightAPI()
  234. // },
  235. {
  236. titleName: '生产中数量',
  237. titleUnit: '',
  238. value: ''
  239. }
  240. ],
  241. monthlySalesVolumeOption: {
  242. legend: {
  243. left: 'center',
  244. selectedMode: false,
  245. itemGap: 30,
  246. textStyle: {
  247. fontSize: '0.7rem',
  248. color: '#fff',
  249. lineHeight: 0,
  250. padding: [10, 0, 0, 0]
  251. }
  252. },
  253. grid: {
  254. bottom: '5%', // 组件离容器底部的距离
  255. containLabel: true // 包含坐标轴的标签
  256. },
  257. xAxis: {
  258. type: 'category',
  259. data: [],
  260. axisLabel: {
  261. interval: 0,
  262. formatter: function (value, index) {
  263. let month = value.split('-');
  264. return month[1] + '月';
  265. },
  266. textStyle: {
  267. color: '#fff', // 修改字体颜色为红色
  268. fontSize: '0.7rem',
  269. fontFamily: 'AlibabaPuHuiTi' // 修改字体为Arial
  270. }
  271. }
  272. },
  273. yAxis: [
  274. {
  275. type: 'value',
  276. axisLabel: {
  277. textStyle: {
  278. color: '#fff', // 修改字体颜色为红色
  279. fontSize: '0.7rem',
  280. fontFamily: 'AlibabaPuHuiTi' // 修改字体为Arial
  281. }
  282. }
  283. },
  284. {
  285. type: 'value',
  286. max: 100,
  287. min: 0,
  288. axisLabel: {
  289. textStyle: {
  290. color: '#fff', // 修改字体颜色为红色
  291. fontSize: '0.7rem',
  292. fontFamily: 'AlibabaPuHuiTi' // 修改字体为Arial
  293. },
  294. show: true,
  295. formatter: '{value}%' //右侧Y轴文字显示
  296. }
  297. }
  298. ],
  299. series: []
  300. },
  301. monthlyOutputOption: {
  302. legend: {
  303. left: 'center',
  304. selectedMode: false,
  305. itemGap: 40,
  306. textStyle: {
  307. color: '#fff',
  308. lineHeight: 0,
  309. fontSize: '0.7rem',
  310. padding: [10, 0, 0, 0]
  311. }
  312. },
  313. grid: {
  314. bottom: '5%', // 组件离容器底部的距离
  315. containLabel: true // 包含坐标轴的标签
  316. },
  317. xAxis: {
  318. type: 'category',
  319. data: [],
  320. axisLabel: {
  321. interval: 0,
  322. formatter: function (value, index) {
  323. let month = value.split('-');
  324. return month[1] + '月';
  325. },
  326. textStyle: {
  327. color: '#fff', // 修改字体颜色为红色
  328. fontSize: '0.7rem',
  329. fontFamily: 'AlibabaPuHuiTi' // 修改字体为Arial
  330. }
  331. }
  332. },
  333. yAxis: {
  334. type: 'value',
  335. axisLabel: {
  336. textStyle: {
  337. color: '#fff', // 修改字体颜色为红色
  338. fontSize: '0.7rem',
  339. fontFamily: 'AlibabaPuHuiTi' // 修改字体为Arial
  340. }
  341. }
  342. },
  343. series: []
  344. },
  345. tableHeader: [
  346. '客户代号',
  347. '生产工单号',
  348. '编码',
  349. '名称',
  350. '当前工序',
  351. '交付状态'
  352. ],
  353. config: {
  354. header: [],
  355. data: [],
  356. align: ['center', 'center', 'center', 'center', 'center', 'center'],
  357. headerBGC: '#031d42',
  358. // columnWidth: [90,160,160],
  359. headerHeight: 20,
  360. oddRowBGC: '#031d42',
  361. evenRowBGC: '#031d42',
  362. waitTime: 5000,
  363. rowNum: 12
  364. },
  365. // 1未交付2提前3按时4延期
  366. deliveryStatusList: [
  367. {
  368. dictKey: 1,
  369. dictValue: '未交付'
  370. },
  371. {
  372. dictKey: 2,
  373. dictValue: '提前'
  374. },
  375. {
  376. dictKey: 3,
  377. dictValue: '按时'
  378. },
  379. {
  380. dictKey: 4,
  381. dictValue: '延期'
  382. }
  383. ],
  384. //1未生产2已生产3已完成
  385. produceStatusList: [
  386. {
  387. dictKey: 1,
  388. dictValue: '未生产'
  389. },
  390. {
  391. dictKey: 2,
  392. dictValue: '已生产'
  393. },
  394. {
  395. dictKey: 3,
  396. dictValue: '已完成'
  397. }
  398. ],
  399. //1未采购2已采购3已入库
  400. purchaseStatusList: [
  401. {
  402. dictKey: 1,
  403. dictValue: '未采购'
  404. },
  405. {
  406. dictKey: 2,
  407. dictValue: '已采购'
  408. },
  409. {
  410. dictKey: 3,
  411. dictValue: '已入库'
  412. }
  413. ],
  414. //scheduleStatus 排产状态 1待排产2已排产 integer(int32)*/
  415. scheduleStatusList: [
  416. {
  417. dictKey: 1,
  418. dictValue: '待排产'
  419. },
  420. {
  421. dictKey: 2,
  422. dictValue: '已排产'
  423. }
  424. ]
  425. };
  426. },
  427. created() {
  428. this.updateTimer = setInterval(this.updateTime, 1000);
  429. },
  430. mounted() {
  431. this.getAllAmount();
  432. this.getSalesFinishList();
  433. setInterval(() => {
  434. this.getAllAmount();
  435. this.getSalesFinishList();
  436. }, 600000);
  437. },
  438. methods: {
  439. /* 全屏切换 */
  440. onFullscreen() {
  441. this.isFullscreen = !this.isFullscreen;
  442. this.$nextTick(() => {
  443. setTimeout(() => {
  444. let width =
  445. this.$refs.dvScrollBoard && this.$refs.dvScrollBoard.width;
  446. if (width) {
  447. console.log(width);
  448. this.$set(
  449. this.config,
  450. 'columnWidth',
  451. [10, 18, 13, 37, 12, 10].map((value) => (value * width) / 100)
  452. );
  453. }
  454. });
  455. });
  456. },
  457. //获取头部统计
  458. async getAllAmount() {
  459. let rest = await count({ factoriesId: 0 });
  460. this.borderData.forEach(async (item) => {
  461. if (item.titleName === '生产总数') {
  462. item.value = rest.formingNum || 0;
  463. } else if (item.titleName === '待生产数量') {
  464. item.value = rest.pendingProductionCount || 0;
  465. } else if (item.titleName === '已完成数量') {
  466. item.value = rest.formedNum || 0;
  467. } else if (item.titleName === '生产中数量') {
  468. item.value = rest.inProgressWorkOrderCount || 0;
  469. }
  470. });
  471. // console.log(rest, 'rest');
  472. },
  473. //获取合格数统计
  474. async getMonthlySalesStatistic() {
  475. let params = {
  476. startDate: new Date().getFullYear() + '-01-01',
  477. endDate: new Date().getFullYear() + '-12-31',
  478. factoriesId: 0
  479. };
  480. let data = await completionCount(params);
  481. let series = [
  482. {
  483. field: 'formedNum',
  484. name: '合格数量',
  485. data: [],
  486. type: 'bar',
  487. itemStyle: {
  488. color: '#03c391'
  489. }
  490. },
  491. {
  492. field: 'noQualifiedSum',
  493. name: '不合格数量',
  494. data: [],
  495. type: 'bar',
  496. itemStyle: {
  497. color: '#ea5082'
  498. }
  499. },
  500. {
  501. field: 'qualifiedRate',
  502. name: '合格率',
  503. data: [],
  504. type: 'line',
  505. yAxisIndex: 1
  506. }
  507. ];
  508. this.monthlySalesVolumeOption.xAxis.data = data.map(
  509. (item) => item.inProductDate
  510. );
  511. series.forEach((item) => {
  512. item.data = data.map((i) => {
  513. if (item.field === 'qualifiedRate' && i['formedNum'] > 0) {
  514. return 100;
  515. }
  516. return i[item.field];
  517. });
  518. });
  519. this.monthlySalesVolumeOption.series = series;
  520. this.salesChart.setOption(this.monthlySalesVolumeOption);
  521. },
  522. //获取月度产量统计
  523. async getMonthlyProduceStatistic() {
  524. let params = {
  525. startDate: new Date().getFullYear() + '-01-01',
  526. endDate: new Date().getFullYear() + '-12-31',
  527. factoriesId: 0
  528. };
  529. let data = await completionCount(params);
  530. let series = [
  531. {
  532. field: 'formedNum',
  533. name: '成品入库数量(PCS)',
  534. data: [],
  535. type: 'bar',
  536. itemStyle: {
  537. color: '#e9ac80'
  538. }
  539. },
  540. {
  541. field: 'formedWeight',
  542. name: '成品入库重量(KG)',
  543. data: [],
  544. type: 'bar',
  545. itemStyle: {
  546. color: '#03c391'
  547. }
  548. }
  549. ];
  550. this.monthlyOutputOption.xAxis.data = data.map(
  551. (item) => item.inProductDate
  552. );
  553. series.forEach((item) => {
  554. item.data = data.map((i) => i[item.field]);
  555. });
  556. this.monthlyOutputOption.series = series;
  557. this.outputChart.setOption(this.monthlyOutputOption);
  558. },
  559. //生产工单
  560. async getSalesFinishList() {
  561. /*serialNo 客户代号 string
  562. days 交付状态 N剩余N天 0已完成 -1延期 integer(int32)
  563. productName 名称 integer(int32)
  564. productCode 设备编码 1未采购2已采购3已入库 integer(int32)
  565. code 工单号 string
  566. taskName 当前工序 */
  567. let data = await getSalesFinishListAPI({ factoriesId: 0 });
  568. this.config = {
  569. header: this.tableHeader.map(
  570. (item) =>
  571. `<div style="color: #f4d29c;font-size: 0.9rem;font-weight: bold">${item}</div>`
  572. ),
  573. data:
  574. data.map((item) => {
  575. let list = [];
  576. for (let i in item) {
  577. let div = '';
  578. if (i === 'serialNo') {
  579. div = `<div class="white" style="font-size: 0.8rem;" title="${item[i]}">${
  580. item[i] || '无'
  581. }</div>`;
  582. list[0] = div;
  583. }
  584. if (i === 'code') {
  585. div = `<div class="white" style="font-size: 0.8rem;" title="${item[i]}">${item[i]}</div>`;
  586. list[1] = div;
  587. }
  588. if (i === 'productCode') {
  589. div = `<div class="yellow" style="font-size: 0.8rem;" title="${item[i]}">${item[i]}</div>`;
  590. list[2] = div;
  591. }
  592. if (i === 'productName') {
  593. div = `<div class="white" style="font-size: 0.8rem;" title="${item[i]}">${item[i]}</div>`;
  594. list[3] = div;
  595. }
  596. if (i === 'taskName') {
  597. div = `<div class="yellow" style="font-size: 0.8rem;" title="${item[i]}">${item[i]}</div>`;
  598. list[4] = div;
  599. }
  600. if (i === 'days') {
  601. //0已完成,-1延期,大于0剩余N天
  602. if (item[i] == '-1') {
  603. div = `<div class="white" style="font-size: 0.8rem;color:red">已延期</div>`;
  604. list[5] = div;
  605. }
  606. if (item[i] == '0') {
  607. div = `<div class="green" style="font-size: 0.8rem;">已完成</div>`;
  608. list[5] = div;
  609. }
  610. if (item[i] > 0) {
  611. div = `<div class="yellow" style="font-size: 0.8rem;">剩余${item[i]}天</div>`;
  612. list[5] = div;
  613. }
  614. }
  615. }
  616. return list;
  617. }) ?? [],
  618. align: ['center', 'center', 'center', 'center', 'center', 'center'],
  619. headerBGC: '#031d42',
  620. // columnWidth: [100,200,150,350,100,100],
  621. headerHeight: 30,
  622. oddRowBGC: '#031d42',
  623. evenRowBGC: '#031d42',
  624. waitTime: 5000,
  625. rowNum: 10
  626. };
  627. this.$nextTick(() => {
  628. let width = this.$refs.dvScrollBoard.width;
  629. if (width) {
  630. this.$set(
  631. this.config,
  632. 'columnWidth',
  633. [10, 18, 13, 37, 12, 10].map((value) => (value * width) / 100)
  634. );
  635. }
  636. });
  637. },
  638. //实时更新日期
  639. updateTime() {
  640. let now = new Date();
  641. let hours = now.getHours();
  642. let minutes = now.getMinutes();
  643. let seconds = now.getSeconds();
  644. this.time =
  645. hours.toString().padStart(2, '0') +
  646. ':' +
  647. minutes.toString().padStart(2, '0') +
  648. ':' +
  649. seconds.toString().padStart(2, '0');
  650. let year = now.getFullYear();
  651. let month = now.getMonth() + 1;
  652. let day = now.getDate();
  653. this.date = year + '年' + month + '月' + day + '日';
  654. let weekInfo = {
  655. 1: '一',
  656. 2: '二',
  657. 3: '三',
  658. 4: '四',
  659. 5: '五',
  660. 6: '六',
  661. 0: '日'
  662. };
  663. this.week = '星期' + weekInfo[now.getDay()];
  664. }
  665. }
  666. };
  667. </script>
  668. <style lang="scss" scoped>
  669. :deep(.ceil) {
  670. // min-width: 100px;
  671. > div {
  672. overflow: hidden;
  673. text-overflow: ellipsis;
  674. white-space: nowrap;
  675. }
  676. }
  677. .box-container {
  678. font-size: 16px;
  679. font-family: 'AlibabaPuHuiTi';
  680. background: #011635;
  681. display: flex;
  682. flex-direction: column;
  683. .box-header {
  684. background-image: url('@/assets/border2.png');
  685. background-repeat: no-repeat;
  686. background-size: 100% 100%;
  687. display: flex;
  688. width: 100% !important;
  689. height: 10%;
  690. justify-content: space-between;
  691. .title {
  692. font-family: '优设标题黑';
  693. font-size: 2.75rem;
  694. flex: 1;
  695. display: flex;
  696. justify-content: center;
  697. align-items: center;
  698. color: #fff;
  699. transform: translateY(-10%);
  700. letter-spacing: 0.4rem;
  701. }
  702. .logo {
  703. display: inline-block;
  704. width: 20%;
  705. }
  706. .time {
  707. width: 20%;
  708. display: flex;
  709. align-items: center;
  710. justify-content: space-around;
  711. flex-direction: column;
  712. align-items: flex-end;
  713. justify-content: flex-start;
  714. font-size: 0.8rem;
  715. }
  716. }
  717. .box-middle {
  718. width: 100% !important;
  719. height: 10% !important;
  720. display: flex;
  721. justify-content: space-evenly;
  722. margin: 5px 0 10px 0;
  723. .box-middle-content {
  724. width: 15%;
  725. height: 100%;
  726. background-image: url('@/assets/border1.png');
  727. background-repeat: no-repeat;
  728. background-size: 100% 100%;
  729. margin: 0px 28px 10px 0px;
  730. }
  731. .border-box-content {
  732. }
  733. }
  734. .box-footer {
  735. flex: 1;
  736. display: flex;
  737. justify-content: space-around;
  738. .box-footer-left {
  739. width: 50%;
  740. height: 100%;
  741. .box-echarts {
  742. width: 100%;
  743. height: 50%;
  744. display: flex;
  745. flex-direction: column;
  746. background-image: url('@/assets/border3.png');
  747. background-repeat: no-repeat;
  748. background-size: 100% 100%;
  749. .box-echarts-top {
  750. height: 20%;
  751. width: 100%;
  752. display: flex;
  753. align-items: center;
  754. /* justify-content: space-around; */
  755. transform: translateX(6%);
  756. color: #fff;
  757. .box-top-name {
  758. display: inline-block;
  759. font-size: 1.3rem;
  760. font-weight: bold;
  761. }
  762. .box-top-unit {
  763. display: inline-block;
  764. font-size: 0.75rem;
  765. transform: translate(0px, 20%);
  766. letter-spacing: 1px;
  767. font-weight: bold;
  768. }
  769. }
  770. .monthly_sales_volume {
  771. transform: translateX(-7%);
  772. flex: 1;
  773. //width: 100%;
  774. //height: 100%;
  775. #monthly_sales_volume {
  776. width: 113%;
  777. height: 100%;
  778. }
  779. }
  780. .monthly_output {
  781. transform: translateX(-7%);
  782. flex: 1;
  783. #monthly_output {
  784. width: 113%;
  785. height: 100%;
  786. //width: 100%;
  787. //height: 100%;
  788. }
  789. }
  790. }
  791. }
  792. .box-footer-right {
  793. width: 50%;
  794. height: 100%;
  795. background-image: url('@/assets/border4.png');
  796. background-repeat: no-repeat;
  797. background-size: 100% 100%;
  798. .box-echarts-top {
  799. height: 10.5%;
  800. width: 100%;
  801. display: flex;
  802. align-items: center;
  803. /* justify-content: space-around; */
  804. transform: translateX(8%);
  805. color: #fff;
  806. font-size: 1.1rem;
  807. letter-spacing: 2px;
  808. .box-top-name {
  809. display: inline-block;
  810. font-size: 1.3rem;
  811. font-weight: bold;
  812. }
  813. }
  814. }
  815. }
  816. }
  817. [v-cloak] {
  818. display: none;
  819. }
  820. </style>
  821. <style>
  822. .white {
  823. color: #ffffff;
  824. }
  825. .yellow {
  826. color: #ffd16c;
  827. }
  828. .green {
  829. color: green;
  830. }
  831. .red {
  832. color: red;
  833. }
  834. </style>