home.vue 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558
  1. <template>
  2. <div class="mod-home">
  3. <el-row :span="24" class="sample-bg">
  4. <el-col :span="6" class="bg1-1">
  5. <el-row :span="24" class="bg1-1-1">
  6. <div class="box-company-title">
  7. <div class="company-title">东齐公司大数据看板</div>
  8. </div>
  9. </el-row>
  10. <el-row :span="24" class="bg1-1-2">
  11. <div class="box-custom-number">
  12. <div class="custom-number">客户数:10</div>
  13. </div>
  14. </el-row>
  15. <el-row :span="24" class="bg1-1-1">
  16. <div class="box-contract-number">
  17. <div class="contract-number">合同数:10</div>
  18. </div>
  19. </el-row>
  20. <el-row :span="24" class="bg1-1-2">
  21. <div class="box-contract-amount">
  22. <div class="contract-amount">合同总金额:10</div>
  23. </div>
  24. </el-row>
  25. </el-col>
  26. <el-col :span="12" class="bg1-2">
  27. <el-row :span="24" class="bg1-2-1">
  28. <div class="box-notice-title">
  29. <div class="notice-title">通知:热烈欢迎领导莅临考察</div>
  30. </div>
  31. </el-row>
  32. <el-row :span="24" class="bg1-2-2">
  33. <div class="box-stat-number">
  34. <div class="stat-number">
  35. <div class="item">
  36. <div class="title">在制产品总数</div>
  37. <div class="number">100</div>
  38. </div>
  39. <div class="item">
  40. <div class="title">已完成数量</div>
  41. <div class="number">1000</div>
  42. </div>
  43. <div class="item">
  44. <div class="title">损坏数量</div>
  45. <div class="number">19</div>
  46. </div>
  47. <div class="item">
  48. <div class="title">生产总值</div>
  49. <div class="number">9988221</div>
  50. </div>
  51. </div>
  52. </div>
  53. </el-row>
  54. <el-row :span="24" class="bg1-2-3">
  55. <div class="box-contract-table">
  56. <div class="contract-table table">
  57. <el-table :data="contractList" height="100%" row-class-name="custom-ranking-table-row" style="width:100%;">
  58. <el-table-column prop="no" label="序号"></el-table-column>
  59. <el-table-column prop="contractNo" label="合同号"></el-table-column>
  60. <el-table-column prop="productName" label="产品名称"></el-table-column>
  61. <el-table-column prop="productNo" label="产品编号"></el-table-column>
  62. <el-table-column prop="batchNo" label="批次号"></el-table-column>
  63. <el-table-column prop="progress" label="生产进度" width="180">
  64. <template slot-scope="scope">
  65. <el-progress :percentage="100" status="success"></el-progress>
  66. </template>
  67. </el-table-column>
  68. <el-table-column prop="customName" label="客户名称"></el-table-column>
  69. <el-table-column prop="operatorName" label="当前操作人"></el-table-column>
  70. </el-table>
  71. </div>
  72. </div>
  73. </el-row>
  74. </el-col>
  75. <el-col :span="6" class="bg1-3">
  76. <el-row :span="24" class="bg1-3-1">
  77. <div class="box-custom-ranking">
  78. <div class="custom-ranking">客户排名</div>
  79. </div>
  80. </el-row>
  81. <el-row :span="24" class="bg1-3-2">
  82. <div class="box-custom-ranking">
  83. <div class="custom-ranking">
  84. <div class="table">
  85. <el-table :data="contractList" height="100%" row-class-name="custom-ranking-table-row" style="width:100%;">
  86. <el-table-column prop="productName" label="客户名称"></el-table-column>
  87. <el-table-column prop="progress" label="合同金额占比">
  88. <template slot-scope="scope">
  89. <el-progress :text-inside="true" :stroke-width="16" :percentage="90" status="success"></el-progress>
  90. </template>
  91. </el-table-column>
  92. <el-table-column prop="no" label="增长率" width="80" :fixed="right"></el-table-column>
  93. </el-table>
  94. </div>
  95. </div>
  96. </div>
  97. </el-row>
  98. </el-col>
  99. </el-row>
  100. <el-row :span="24" class="sample-bg1">
  101. <el-col :span="6" class="bg2-1">
  102. <el-row :span="24" class="bg2-3-1">
  103. <div class="box-contract-alert">
  104. <div class="contract-alert">合同预警</div>
  105. </div>
  106. </el-row>
  107. <el-row :span="24" class="bg2-3-2">
  108. <div class="box-contract-alert">
  109. <div class="contract-alert">
  110. <div class="table">
  111. <el-table :data="contractList" height="100%" row-class-name="custom-ranking-table-row" style="width:100%;">
  112. <el-table-column prop="no" label="序号"></el-table-column>
  113. <el-table-column prop="contractNo" label="合同号"></el-table-column>
  114. <el-table-column prop="contractNo" label="订单号"></el-table-column>
  115. <el-table-column prop="progress" label="剩余时间"></el-table-column>
  116. <el-table-column prop="progress" label="交付日期"></el-table-column>
  117. <el-table-column prop="customName" label="客户名称"></el-table-column>
  118. <el-table-column prop="customName" label="业务员"></el-table-column>
  119. </el-table>
  120. </div>
  121. </div>
  122. </div>
  123. </el-row>
  124. </el-col>
  125. <el-col :span="6" class="bg2-2">
  126. <el-row :span="24" class="bg2-3-1">
  127. <div class="box-contract-alert">
  128. <div class="contract-alert">报损记录</div>
  129. </div>
  130. </el-row>
  131. <el-row :span="24" class="bg2-3-2">
  132. <div class="box-contract-alert">
  133. <div class="contract-alert">
  134. <div class="table">
  135. <el-table :data="contractList" height="100%" row-class-name="custom-ranking-table-row" style="width:100%;">
  136. <el-table-column prop="no" label="序号"></el-table-column>
  137. <el-table-column prop="contractNo" label="合同号"></el-table-column>
  138. <el-table-column prop="contractNo" label="订单号"></el-table-column>
  139. <el-table-column prop="progress" label="剩余时间"></el-table-column>
  140. <el-table-column prop="progress" label="交付日期"></el-table-column>
  141. <el-table-column prop="customName" label="客户名称"></el-table-column>
  142. <el-table-column prop="customName" label="业务员"></el-table-column>
  143. </el-table>
  144. </div>
  145. </div>
  146. </div>
  147. </el-row>
  148. </el-col>
  149. <el-col :span="6" class="bg2-1">
  150. <el-row :span="24" class="bg2-3-1">
  151. <div class="box-contract-alert">
  152. <div class="contract-alert">报工</div>
  153. </div>
  154. </el-row>
  155. <el-row :span="24" class="bg2-3-2">
  156. <div class="box-contract-alert">
  157. <div class="contract-alert">
  158. <div class="table">
  159. <el-table :data="contractList" height="100%" row-class-name="custom-ranking-table-row" style="width:100%;">
  160. <el-table-column prop="no" label="序号"></el-table-column>
  161. <el-table-column prop="contractNo" label="合同号"></el-table-column>
  162. <el-table-column prop="contractNo" label="订单号"></el-table-column>
  163. <el-table-column prop="progress" label="剩余时间"></el-table-column>
  164. <el-table-column prop="progress" label="交付日期"></el-table-column>
  165. <el-table-column prop="customName" label="客户名称"></el-table-column>
  166. <el-table-column prop="customName" label="业务员"></el-table-column>
  167. </el-table>
  168. </div>
  169. </div>
  170. </div>
  171. </el-row>
  172. </el-col>
  173. <el-col :span="6" class="bg2-2">
  174. <el-row :span="24" class="bg2-3-1">
  175. <div class="box-contract-alert">
  176. <div class="contract-alert">出库记录</div>
  177. </div>
  178. </el-row>
  179. <el-row :span="24" class="bg2-3-2">
  180. <div class="box-contract-alert">
  181. <div class="contract-alert">
  182. <div class="table">
  183. <el-table :data="contractList" height="100%" row-class-name="custom-ranking-table-row" style="width:100%;">
  184. <el-table-column prop="no" label="序号"></el-table-column>
  185. <el-table-column prop="contractNo" label="合同号"></el-table-column>
  186. <el-table-column prop="contractNo" label="订单号"></el-table-column>
  187. <el-table-column prop="progress" label="剩余时间"></el-table-column>
  188. <el-table-column prop="progress" label="交付日期"></el-table-column>
  189. <el-table-column prop="customName" label="客户名称"></el-table-column>
  190. <el-table-column prop="customName" label="业务员"></el-table-column>
  191. </el-table>
  192. </div>
  193. </div>
  194. </div>
  195. </el-row>
  196. </el-col>
  197. </el-row>
  198. </div>
  199. </template>
  200. <script>
  201. export default {
  202. name: 'home',
  203. components: {
  204. },
  205. data () {
  206. return {
  207. contractList:[
  208. {no:"1",contractNo:"NKDI98SDF",productName:"课桌粉笔",productNo:"KIHDSDF",batchNo:"N23",progress:"80",customName:"中国联通",operatorName:"小王"},
  209. {no:"1",contractNo:"NKDI98SDF",productName:"课桌粉笔",productNo:"KIHDSDF",batchNo:"N23",progress:"80",customName:"中国联通",operatorName:"小王"},
  210. {no:"1",contractNo:"NKDI98SDF",productName:"课桌粉笔",productNo:"KIHDSDF",batchNo:"N23",progress:"80",customName:"中国联通",operatorName:"小王"},
  211. {no:"1",contractNo:"NKDI98SDF",productName:"课桌粉笔",productNo:"KIHDSDF",batchNo:"N23",progress:"80",customName:"中国联通",operatorName:"小王"},
  212. {no:"1",contractNo:"NKDI98SDF",productName:"课桌粉笔",productNo:"KIHDSDF",batchNo:"N23",progress:"80",customName:"中国联通",operatorName:"小王"},
  213. {no:"1",contractNo:"NKDI98SDF",productName:"课桌粉笔",productNo:"KIHDSDF",batchNo:"N23",progress:"80",customName:"中国联通",operatorName:"小王"},
  214. {no:"1",contractNo:"NKDI98SDF",productName:"课桌粉笔",productNo:"KIHDSDF",batchNo:"N23",progress:"80",customName:"中国联通",operatorName:"小王"}
  215. ]
  216. }
  217. },
  218. methods: {
  219. }
  220. }
  221. </script>
  222. <style>
  223. html,
  224. body,
  225. .site-wrapper,
  226. .site-content__wrapper,
  227. .site-content,
  228. .el-card,
  229. .el-card__body {
  230. height: 100%;
  231. }
  232. .mod-home {
  233. /* line-height: 1.5; */
  234. height: 100%;
  235. }
  236. .sample-bg {
  237. background-color: #021327;
  238. height: 60%;
  239. }
  240. .sample-bg1 {
  241. background-color: #021327;
  242. height: 40%;
  243. }
  244. .bg1-1 {
  245. /* background-color: yellow; */
  246. height: 100%;
  247. }
  248. .bg1-2 {
  249. /* background-color: orange; */
  250. height: 100%;
  251. }
  252. .bg1-3 {
  253. /* background-color: orchid; */
  254. height: 100%;
  255. }
  256. .bg2-1 {
  257. /* background-color: red; */
  258. height: 100%;
  259. }
  260. .bg2-2 {
  261. /* background-color: aqua; */
  262. height: 100%;
  263. }
  264. .bg1-1-1 {
  265. height: 25%;
  266. padding: 10px 10px;
  267. /* border: 1px solid black; */
  268. }
  269. .bg1-1-2 {
  270. height: 25%;
  271. padding: 10px;
  272. /* border: 1px solid black; */
  273. }
  274. .box-company-title {
  275. background-color: #094198;
  276. display: flex;
  277. height: 100%;
  278. }
  279. .company-title {
  280. font-size: 20px;
  281. color: aliceblue;
  282. margin: 0 auto;
  283. align-items: center;
  284. display: flex;
  285. }
  286. .box-custom-number {
  287. background-color: #D65246;
  288. display: flex;
  289. height: 100%;
  290. }
  291. .custom-number {
  292. font-size: 20px;
  293. color: aliceblue;
  294. margin: 0 auto;
  295. align-items: center;
  296. display: flex;
  297. }
  298. .box-contract-number {
  299. background-color: #11D2B7;
  300. display: flex;
  301. height: 100%;
  302. }
  303. .contract-number {
  304. font-size: 20px;
  305. color: aliceblue;
  306. margin: 0 auto;
  307. align-items: center;
  308. display: flex;
  309. }
  310. .box-contract-amount {
  311. background-color: #F6A647;
  312. display: flex;
  313. height: 100%;
  314. }
  315. .contract-amount {
  316. font-size: 20px;
  317. color: aliceblue;
  318. margin: 0 auto;
  319. align-items: center;
  320. display: flex;
  321. }
  322. /*中间通知区域*/
  323. .bg1-2-1 {
  324. height: 15%;
  325. padding: 10px;
  326. /* border: 1px solid black; */
  327. }
  328. .bg1-2-2 {
  329. height: 25%;
  330. padding: 10px;
  331. /* border: 1px solid black; */
  332. }
  333. .bg1-2-3 {
  334. height: 60%;
  335. padding: 10px;
  336. /* border: 1px solid black; */
  337. }
  338. .box-notice-title {
  339. background-color: #2FB5F2;
  340. display: flex;
  341. height: 100%;
  342. }
  343. .notice-title {
  344. font-size: 20px;
  345. color: red;
  346. margin: 0 auto;
  347. align-items: center;
  348. display: flex;
  349. }
  350. .box-stat-number {
  351. background-color: #415065;
  352. display: flex;
  353. height: 100%;
  354. }
  355. .stat-number {
  356. font-size: 20px;
  357. color: aliceblue;
  358. margin: 0 auto;
  359. align-items: center;
  360. display: flex;
  361. justify-content: space-around;
  362. width: 100%;
  363. }
  364. .stat-number > .item {
  365. height: 80%;
  366. display: flex;
  367. flex-direction: column;
  368. justify-content: space-around;
  369. }
  370. .stat-number > .item > .title{
  371. color:darkturquoise;
  372. }
  373. .stat-number > .item > .number {
  374. text-align: center;
  375. }
  376. /*合同列表*/
  377. .box-contract-table {
  378. background-color: #415065;
  379. display: flex;
  380. height: 100%;
  381. }
  382. .contract-table {
  383. font-size: 20px;
  384. color: aliceblue;
  385. margin: 0 auto;
  386. align-items: center;
  387. display: flex;
  388. justify-content: space-around;
  389. width: 100%;
  390. }
  391. .bg1-3-1 {
  392. height: 10%;
  393. /* min-height: 45px; */
  394. padding: 10px;
  395. /* border: 1px solid black; */
  396. }
  397. .bg1-3-2 {
  398. height: 90%;
  399. padding: 10px;
  400. /* border: 1px solid black; */
  401. }
  402. /*客户排名*/
  403. .box-custom-ranking {
  404. background-color: #415065;
  405. height: 100%;
  406. }
  407. .custom-ranking {
  408. font-size: 14px;
  409. color: aliceblue;
  410. display: flex;
  411. flex-direction: column;
  412. align-items:center;
  413. justify-content:center;
  414. text-align:justify;
  415. width: 100%;
  416. height: 100%;
  417. }
  418. .custom-ranking > .table {
  419. background-color:darkturquoise;
  420. height: 100%;
  421. width: 100%;
  422. }
  423. .custom-ranking-table-row {
  424. font-size: 8px;
  425. }
  426. .bg2-3-1 {
  427. height: 10%;
  428. padding: 5px 10px;
  429. /* border: 1px solid black; */
  430. }
  431. .bg2-3-2 {
  432. height: 90%;
  433. padding: 10px;
  434. /* border: 1px solid black; */
  435. }
  436. /*合同预警*/
  437. .box-contract-alert {
  438. background-color: #415065;
  439. height: 100%;
  440. }
  441. .contract-alert {
  442. font-size: 14px;
  443. color: aliceblue;
  444. display: flex;
  445. flex-direction: column;
  446. align-items:center;
  447. justify-content:center;
  448. text-align:justify;
  449. width: 100%;
  450. height: 100%;
  451. }
  452. .contract-alert > .title > div {
  453. background-color: #415065;
  454. width: 100%;
  455. display:flex;
  456. align-items:center;
  457. justify-content:center;
  458. text-align:justify;
  459. }
  460. .contract-alert > .table {
  461. background-color:darkturquoise;
  462. height: 100%;
  463. width: 100%;
  464. }
  465. .table thead .cell {
  466. font-size: 12px;
  467. -webkit-transform: scale(0.8) !important;
  468. }
  469. .table tbody .cell {
  470. font-size: 12px;
  471. -webkit-transform: scale(0.8) !important;
  472. }
  473. /* 设置滚动条的样式 */
  474. ::-webkit-scrollbar {
  475. width:6px;
  476. height: 6px;
  477. }
  478. /* 滚动槽 */
  479. ::-webkit-scrollbar-track {
  480. -webkit-box-shadow:inset006pxrgba(0,0,0,0.3);
  481. border-radius:10px;
  482. }
  483. /* 滚动条滑块 */
  484. ::-webkit-scrollbar-thumb {
  485. border-radius:10px;
  486. background:rgba(0,0,0,0.1);
  487. -webkit-box-shadow:inset006pxrgba(0,0,0,0.5);
  488. }
  489. ::-webkit-scrollbar-thumb:window-inactive {
  490. background:rgba(161, 156, 156, 0.2);
  491. }
  492. </style>