AIGeneratedvue.vue 6.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201
  1. <template>
  2. <div>
  3. <layout>
  4. <layout-header>
  5. <div class="">
  6. <!-- 按钮部分-->
  7. <el-form ref="elSearchFormRef" class="demo-form-inline" :rules="searchRule" >
  8. <!-- <el-form-item>
  9. <el-input v-model="searchInfo" placeholder="搜索工单编号" clearable style="width: 200px;margin: 5px"></el-input>
  10. <el-button type="primary" class="bt" icon="download" @click="hzToExcel" >导出到Excel(汇总)</el-button>
  11. <el-button type="primary" class="bt" icon="download" @click="mxToExcel" >导出到Excel(明细)</el-button>
  12. </el-form-item> -->
  13. <h3>页面正在建设中</h3>
  14. </el-form>
  15. </div>
  16. </layout-header>
  17. <layout>
  18. <!-- 左侧树侧形结构-->
  19. <!-- <layout-sider :resize-directions="['right']" :width="190" style="margin-right: 10px;">
  20. <div class="JKWTree-tree" style="height: 200px">
  21. <h3>生产进程查询</h3>
  22. <el-tree :data="treeData" :props="defaultProps" @node-click="handleNodeClick" @node-expand="handleNodeExpand">
  23. </el-tree>
  24. </div>
  25. </layout-sider>
  26. -->
  27. <!-- 右侧区域 -->
  28. <layout-content >
  29. <!-- <el-main>
  30. <div class="gva-table-box">
  31. <el-table ref="multipleTable" style="width: 100%;height: 33vh" tooltip-effect="dark"
  32. :row-style="{ height: '25px' }" :header-cell-style="{ padding: '0px' }"
  33. :cell-style="{ padding: '0px' }" :header-row-style="{ height: '20px' }"
  34. :data="hztableData" border row-key="ID"
  35. size="small"
  36. :cell-class-name="gxbgCellClass"
  37. highlight-current-row="true" @row-dblclick="updateCompanyFunc"
  38. @row-click="tableRowClick" :show-overflow-tooltip="true"
  39. @selection-change="handleSelectionChange">
  40. <el-table-column sortable align="center" label="设备编号" prop="工单编号" width="120" />
  41. <el-table-column sortable align="center" label="设备名称" prop="印件代号" width="120" />
  42. <el-table-column align="center" label="上月末主电表读数" prop="印件名称" width="200" />
  43. <el-table-column align="center" label="本月末主电表读数" prop="联数" width="200" />
  44. <el-table-column align="center" label="主电表耗电量" prop="投料大箱" width="110" />
  45. <el-table-column align="center" label="上月末辅电表读数" prop="计划投料" width="200" />
  46. <el-table-column align="center" label="本月末本电表读数" prop="工序1" width="200" />
  47. <el-table-column align="center" label="辅电表耗电量" prop="工序2" width="110" />
  48. </el-table>
  49. <div class="gva-pagination">
  50. <el-pagination layout="total" :current-page="page" :page-size="pageSize"
  51. :total="total" @current-change="handleCurrentChange" @size-change="handleSizeChange" />
  52. </div>
  53. </div>
  54. <div class="gva-table-box">
  55. <el-table ref="multipleTable" style="width: 100%;height: 45vh" tooltip-effect="dark"
  56. :row-style="{ height: '25px' }" :header-cell-style="{ padding: '0px' }"
  57. :cell-style="{ padding: '0px' }" :header-row-style="{ height: '20px' }"
  58. :data="mxtableData" border row-key="ID"
  59. size="small"
  60. :cell-class-name="gxbgCellClass"
  61. highlight-current-row="true" @row-dblclick="updateCompanyFunc"
  62. @row-click="tableRowClick" :show-overflow-tooltip="true"
  63. @selection-change="handleSelectionChange">
  64. <el-table-column sortable align="center" label="机台编号" prop="机台编号" width="120" />
  65. <el-table-column sortable align="center" label="开工时间" prop="开工时间" width="120" />
  66. <el-table-column sortable align="center" label="主电表" prop="主电表" width="200" />
  67. <el-table-column sortable align="center" label="辅电表" prop="辅电表" width="100" />
  68. </el-table>
  69. <div class="gva-pagination">
  70. <el-pagination layout="total" :current-page="page" :page-size="pageSize"
  71. :total="total" @current-change="handleCurrentChange" @size-change="handleSizeChange" />
  72. </div>
  73. </div>
  74. </el-main> -->
  75. </layout-content>
  76. </layout>
  77. </layout>
  78. </div>
  79. </template>
  80. <script setup>
  81. // 全量引入格式化工具 请按需保留
  82. import { Layout, LayoutSider, LayoutContent } from '@arco-design/web-vue';
  83. import {ref, reactive} from 'vue'
  84. import { exportExcelFile } from '@/utils/excel'
  85. import {ElMessage} from "element-plus";
  86. defineOptions({name: 'Company'})
  87. // =========== 获取左侧树侧形结构 ===========
  88. </script>
  89. <style scoped>
  90. .form-container {
  91. display: flex;
  92. flex-wrap: wrap;
  93. }
  94. .form-column {
  95. /*flex: 1;*/
  96. margin-right: 15px; /* 调整列之间的间距 */
  97. }
  98. /* 左侧输入框宽度调整 */
  99. .form-column .el-form-item .el-input {
  100. width: 150px; /* 调整左侧输入框的宽度 */
  101. }
  102. :deep(.hui-plan-usage-lows div) {
  103. color: #8c939d !important;
  104. }
  105. :deep(.lan-plan-usage-lows div) {
  106. color: blue !important;
  107. font-weight: bold;
  108. }
  109. /* 媒体查询,根据需要调整断点 */
  110. @media screen and (max-width: 768px) {
  111. .form-column {
  112. flex: 1 0 100%; /* 在小屏幕下变成单列布局 */
  113. margin-right: 0;
  114. }
  115. }
  116. /*:deep(.el-table td .cell) {*/
  117. /* line-height: 30px !important;*/
  118. /*}*/
  119. .JKWTree-container {
  120. display: flex;
  121. }
  122. .JKWTree-tree {
  123. /*width: 300px;*/
  124. background-color: #fff;
  125. padding: 10px;
  126. margin-right: 20px;
  127. }
  128. .JKWTree-tree h3 {
  129. font-size: 15px;
  130. font-weight: 700;
  131. margin: 10px 0;
  132. }
  133. .JKWTree-content {
  134. flex: 1;
  135. }
  136. /* 选中某行时的背景色 */
  137. :deep(.el-table__body tr.current-row) > td {
  138. background: #ff80ff !important;
  139. }
  140. </style>
  141. <style scoped>
  142. :deep(.el-table td .cell) {
  143. line-height: 20px !important;
  144. }
  145. :deep(.el-tabs__header){
  146. margin-bottom: 0;
  147. }
  148. .search{
  149. margin-left: 0px !important;
  150. margin-right: 10px !important;
  151. }
  152. .bt{
  153. margin-left: 2px !important;
  154. padding: 3px !important;
  155. font-size: 12px;
  156. }
  157. .el-tabs__header{
  158. margin: 0px !important;
  159. }
  160. .gva-table-box{
  161. padding: 0px !important;
  162. }
  163. .mab{
  164. margin-bottom: 5px;
  165. }
  166. </style>