Browse Source

机台日报表表格高度优化 日报表附加 机器检验 其他计件三个页面静态

zck 1 year ago
parent
commit
2d6bdf5882

+ 17 - 17
src/view/performance/07-otherDocuments/index.vue

@@ -241,23 +241,23 @@
 
 
 	// 侧边栏数据请求
 	// 侧边栏数据请求
 	const treeData = reactive([])
 	const treeData = reactive([])
-	const getSideData = async () => {
-		const response = await getSide()
-		if (response.code === 0) {
-			const transformedData = response.data.map(item => ({
-				label: `${item.date.replace(/-/g, '.')}【产量合计: ${item.counts}】`,
-				children: item.sys.map(sysItem => ({
-					label: `${sysItem.Sczl_bh1}(${sysItem.name}) 【产量合计: ${sysItem.count}】`,
-					params: {
-						date: item.date.substring(0, 4) + '-' + item.date.substring(4),
-						Sczl_bh1: sysItem.Sczl_bh1,
-					},
-				})),
-			}))
-			treeData.splice(0, treeData.length, ...transformedData)
-		}
-	}
-	getSideData()
+	// const getSideData = async () => {
+	// 	const response = await getSide()
+	// 	if (response.code === 0) {
+	// 		const transformedData = response.data.map(item => ({
+	// 			label: `${item.date.replace(/-/g, '.')}【产量合计: ${item.counts}】`,
+	// 			children: item.sys.map(sysItem => ({
+	// 				label: `${sysItem.Sczl_bh1}(${sysItem.name}) 【产量合计: ${sysItem.count}】`,
+	// 				params: {
+	// 					date: item.date.substring(0, 4) + '-' + item.date.substring(4),
+	// 					Sczl_bh1: sysItem.Sczl_bh1,
+	// 				},
+	// 			})),
+	// 		}))
+	// 		treeData.splice(0, treeData.length, ...transformedData)
+	// 	}
+	// }
+	// getSideData()
 
 
 	const elFormRef = ref()
 	const elFormRef = ref()
 
 

+ 21 - 21
src/view/performance/Dayreportattached.vue

@@ -197,27 +197,27 @@
 	// 侧边栏数据请求
 	// 侧边栏数据请求
 	const treeData = reactive([]);
 	const treeData = reactive([]);
 
 
-	const getTabdata = async () => {
-		//接口调用函数
-		const response = await getproductionaddCount();
-
-		const transformedData = response.data.map(item => ({
-			label: `${item.date.replace(/-/g, '.')}【单据数: ${item.counts}张】`,
-			children: item.sys.map(sysItem => ({
-				label: `${sysItem.sys_id} 【记录数: ${sysItem.count}张】`,
-				params: {
-					date: item.date.replace(/\./g, '-'),
-					sys_id: sysItem.sys_id,
-					total: sysItem.count,
-				},
-			})),
-		}));
-		treeData.splice(0, treeData.length, ...transformedData);
-
-
-	}
-
-	getTabdata();
+	// const getTabdata = async () => {
+	// 	//接口调用函数
+	// 	const response = await getproductionaddCount();
+
+	// 	const transformedData = response.data.map(item => ({
+	// 		label: `${item.date.replace(/-/g, '.')}【单据数: ${item.counts}张】`,
+	// 		children: item.sys.map(sysItem => ({
+	// 			label: `${sysItem.sys_id} 【记录数: ${sysItem.count}张】`,
+	// 			params: {
+	// 				date: item.date.replace(/\./g, '-'),
+	// 				sys_id: sysItem.sys_id,
+	// 				total: sysItem.count,
+	// 			},
+	// 		})),
+	// 	}));
+	// 	treeData.splice(0, treeData.length, ...transformedData);
+
+
+	// }
+
+	// getTabdata();
 
 
 	// 自动化生成的字典(可能为空)以及字段
 	// 自动化生成的字典(可能为空)以及字段
 	const formData = ref({
 	const formData = ref({

+ 4 - 5
src/view/performance/Dayreports.vue

@@ -63,16 +63,15 @@
             <!-- 数据展示 -->
             <!-- 数据展示 -->
             <el-table
             <el-table
               ref="multipleTable"
               ref="multipleTable"
-              style="width: 100%"
+              style="width: 100%;height: 65vh"
               tooltip-effect="dark"
               tooltip-effect="dark"
               :data="tableData"
               :data="tableData"
               id="tab"
               id="tab"
               row-key="ID"
               row-key="ID"
               highlight-current-row="true"
               highlight-current-row="true"
               border  
               border  
-              :row-style="{ height: '0px' }"
-              :header-row-style="{ height: '20px' }"
-              :header-cell-style="{ padding: '0px' }"
+              :row-style="{ height: '20px' }"  :header-cell-style="{ padding: '0px' }"
+              :cell-style="{ padding: '0px' }" :header-row-style="{ height: '20px' }"
               :show-overflow-tooltip="true"
               :show-overflow-tooltip="true"
               @row-click="Click"
               @row-click="Click"
               @selection-change="handleSelectionChange"
               @selection-change="handleSelectionChange"
@@ -114,7 +113,7 @@
                 sortable
                 sortable
                 label="机台"
                 label="机台"
                 prop="sczl_jtbh"
                 prop="sczl_jtbh"
-                width="77"
+                width="85"
               />
               />
               <el-table-column
               <el-table-column
                 align="left"
                 align="left"

File diff suppressed because it is too large
+ 418 - 418
src/view/performance/MachineDocuments.vue


Some files were not shown because too many files changed in this diff