index1.html 7.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="UTF-8">
  5. <meta http-equiv="X-UA-Compatible" content="IE=edge">
  6. <meta name="viewport" content="width=device-width, initial-scale=1.0">
  7. <title>生产大屏可视化系统</title>
  8. <link rel="stylesheet" href="./css/index1.css">
  9. <link rel="stylesheet" href="./css/animate.css" />
  10. <link rel="stylesheet" href="./css/element-ui@2.15.9.css" />
  11. <script src="./libs/vue.js"></script>
  12. <script src="./libs/axios.min.js"></script>
  13. <script src="./js/request.js"></script>
  14. <script src="./libs/element-ui@2.15.9.js"></script>
  15. <script src="./libs/datav.min.vue.js"></script>
  16. <script src="./libs/echatrs.js"></script>
  17. <script src="./libs/echarts-tooltip-carousel.js"></script>
  18. <script src="./libs/day.js"></script>
  19. <script src="./libs/tailwindcss.js"></script>
  20. </head>
  21. <body>
  22. <div id="app">
  23. <div class="main">
  24. <div class="top-border">
  25. <img src="./image/index1/top_text.png" class="top-text">
  26. <div class="flex justify-between absolute items-center" style="width: 30%; top: 25px;left: 35%;">
  27. <div class="top-content">生产计划完成率:{{planCompletionRate}}%</div>
  28. <div class="top-content">生产良品率:{{productionGoodProductRate}}%</div>
  29. </div>
  30. <div class="top-time absolute" style="right: 20px;top: 35px;">
  31. {{time}}
  32. </div>
  33. </div>
  34. <div class="flex justitfy-between p-5">
  35. <div>
  36. <div class="box-border p-5">
  37. <div class="small-top">
  38. <div class="pl-12 small-title">领料库存情况</div>
  39. </div>
  40. <div class="flex justify-between mt-5" style="flex-wrap: wrap;height: 85%;overflow: auto;">
  41. <div v-for="(item,index) in comprehensive" :key="index" class="flex w-[427px] h-[170px] mb-3" style="background-color: #126EFE20;">
  42. <div class="p-3 w-full">
  43. <div class="flex justify-between w-full items-center mb-2">
  44. <div class="text-[#fff] text-[16px]">{{item.materialName}} ( {{item.specification}} )</div>
  45. <div class="data-type">{{item.status}}</div>
  46. </div>
  47. <table>
  48. <tr style="background-color: #35B3CE15;" class="text-[#12B1EB]">
  49. <th>物料</th>
  50. <th>所需物料数量</th>
  51. <th>可用库存数量</th>
  52. </tr>
  53. <tr v-for="(itm,idx) in item.details" :key="idx" class="text-[#D0E9FF] text-[14px]">
  54. <td>{{itm.materialName}}</td>
  55. <td>{{itm.needQty}}</td>
  56. <td>{{itm.stockQty}}</td>
  57. </tr>
  58. </table>
  59. </div>
  60. </div>
  61. </div>
  62. </div>
  63. <div class="box-border p-5" style="height: 50%;">
  64. <div class="small-top relative">
  65. <div class="pl-12 small-title">报工情况</div>
  66. <div style="position: absolute;right: 10px;top: 10px;">当日填报</div>
  67. </div>
  68. <div style="height: 390px;">
  69. <table>
  70. <tr style="background-color: #35B3CE15;" class="text-[#12B1EB]">
  71. <th>姓名</th>
  72. <th>工单编号</th>
  73. <th>生产产品</th>
  74. <th>当天生产数量</th>
  75. <th>当天生产时长</th>
  76. <th>填报时间</th>
  77. </tr>
  78. <tr v-for="(itm,idx) in shortageConfig" :key="idx" class="text-[#D0E9FF] text-[14px]">
  79. <td>{{itm.name}}</td>
  80. <td>{{itm.code}}</td>
  81. <td>{{itm.product}}</td>
  82. <td>{{itm.number}}</td>
  83. <td>{{itm.date}}</td>
  84. <td>{{itm.datetime}}</td>
  85. </tr>
  86. </table>
  87. </div>
  88. </div>
  89. </div>
  90. <div>
  91. <div class="box-right p-5">
  92. <div class="small-top relative">
  93. <div class="pl-12 small-title">生产排产情况</div>
  94. <div style="position: absolute;right: 10px;top: 10px;">计划生产单据:{{dataCount}}个</div>
  95. </div>
  96. <div style="overflow: auto;height: 96%;">
  97. <div v-for="(item,index) in dataList" class="p-5 mb-3" style="background-color: #126EFE20;">
  98. <div>
  99. <div class="flex justify-between w-full items-center mb-2">
  100. <div class="text-[#fff] text-[16px]">{{item.productionPlanOrderNo}}</div>
  101. <div>计划生产日期:{{item.planDate}}</div>
  102. </div>
  103. <table>
  104. <tr style="background-color: #35B3CE15;" class="text-[#12B1EB]">
  105. <th>产品名称</th>
  106. <th>计划生产数量</th>
  107. <th>已排产数量</th>
  108. <th>已生产数量</th>
  109. <th>已排质检数量</th>
  110. <th>已入库数量</th>
  111. </tr>
  112. <tr v-for="(itm,idx) in item.details" :key="idx" class="text-[#D0E9FF] text-[14px]">
  113. <td>{{itm.materialName}}</td>
  114. <td>{{itm.planQty}}</td>
  115. <td>{{itm.scheduledQty}}</td>
  116. <td>{{itm.producedQty}}</td>
  117. <td>{{itm.inspectedQty}}</td>
  118. <td>{{itm.inQty}}</td>
  119. </tr>
  120. </table>
  121. </div>
  122. </div>
  123. </div>
  124. </div>
  125. </div>
  126. </div>
  127. </div>
  128. </div>
  129. <script src="./js/index1.js"></script>
  130. </body>
  131. </html>