From 2fc58fbb10745abd97168b8da21d4142e11d7f2e Mon Sep 17 00:00:00 2001
From: chenhj <1263187585@qq.com>
Date: 星期四, 18 十二月 2025 13:36:43 +0800
Subject: [PATCH] 新增设备维修保养过程描述,上传对应附件
---
src/views/procurementManagement/procurementReport/index.vue | 42 ++++++++++++++++++++++++------------------
1 files changed, 24 insertions(+), 18 deletions(-)
diff --git a/src/views/procurementManagement/procurementReport/index.vue b/src/views/procurementManagement/procurementReport/index.vue
index a12b4ba..d421c67 100644
--- a/src/views/procurementManagement/procurementReport/index.vue
+++ b/src/views/procurementManagement/procurementReport/index.vue
@@ -112,9 +112,9 @@
</div>
</div>
- <el-table :data="orderSummaryData" border v-loading="loading" stripe>
+ <el-table :data="orderSummaryData" border v-loading="loading" stripe style="width: 100%">
<el-table-column label="璁㈠崟缂栧彿" prop="orderNo" width="180" fixed="left" />
- <el-table-column label="渚涘簲鍟嗗悕绉�" prop="supplierName" width="150" />
+ <el-table-column label="渚涘簲鍟嗗悕绉�" prop="supplierName" min-width="150" />
<el-table-column label="璁㈠崟鏃ユ湡" prop="orderDate" width="120" />
<el-table-column label="璁″垝浜ゆ湡" prop="plannedDelivery" width="120" />
<el-table-column label="瀹為檯浜ゆ湡" prop="actualDelivery" width="120" />
@@ -160,11 +160,11 @@
</div>
</div>
- <el-table :data="orderDetailData" border v-loading="loading" stripe>
+ <el-table :data="orderDetailData" border v-loading="loading" stripe style="width: 100%">
<el-table-column label="璁㈠崟缂栧彿" prop="orderNo" width="150" fixed="left" />
<el-table-column label="鍟嗗搧缂栫爜" prop="productCode" width="120" />
- <el-table-column label="鍟嗗搧鍚嶇О" prop="productName" width="200" />
- <el-table-column label="瑙勬牸鍨嬪彿" prop="specification" width="150" />
+ <el-table-column label="鍟嗗搧鍚嶇О" prop="productName" min-width="200" />
+ <el-table-column label="瑙勬牸鍨嬪彿" prop="specification" min-width="150" />
<el-table-column label="鍗曚綅" prop="unit" width="80" />
<el-table-column label="璁″垝鏁伴噺" prop="plannedQuantity" width="100" />
<el-table-column label="宸叉敹璐ф暟閲�" prop="receivedQuantity" width="120" />
@@ -204,11 +204,11 @@
</div>
</div>
- <el-table :data="businessSummaryData" border v-loading="loading" stripe>
+ <el-table :data="businessSummaryData" border v-loading="loading" stripe style="width: 100%">
<el-table-column label="鍟嗗搧绫诲埆" prop="category" width="150" fixed="left" />
<el-table-column label="鍟嗗搧缂栫爜" prop="productCode" width="120" />
- <el-table-column label="鍟嗗搧鍚嶇О" prop="productName" width="200" />
- <el-table-column label="瑙勬牸鍨嬪彿" prop="specification" width="150" />
+ <el-table-column label="鍟嗗搧鍚嶇О" prop="productName" min-width="200" />
+ <el-table-column label="瑙勬牸鍨嬪彿" prop="specification" min-width="150" />
<el-table-column label="閲囪喘鏁伴噺" prop="purchaseQuantity" width="120" />
<el-table-column label="閲囪喘閲戦" prop="purchaseAmount" width="120">
<template #default="{ row }">楼{{ row.purchaseAmount.toLocaleString() }}</template>
@@ -217,7 +217,7 @@
<template #default="{ row }">楼{{ row.avgPrice.toFixed(2) }}</template>
</el-table-column>
<el-table-column label="閲囪喘娆℃暟" prop="purchaseCount" width="100" />
- <el-table-column label="涓昏渚涘簲鍟�" prop="mainSupplier" width="150" />
+ <el-table-column label="涓昏渚涘簲鍟�" prop="mainSupplier" min-width="150" />
<el-table-column label="鏈�鍚庨噰璐棩鏈�" prop="lastPurchaseDate" width="120" />
</el-table>
</div>
@@ -242,9 +242,9 @@
</div>
</div>
- <el-table :data="supplierSummaryData" border v-loading="loading" stripe>
+ <el-table :data="supplierSummaryData" border v-loading="loading" stripe style="width: 100%">
<el-table-column label="渚涘簲鍟嗙紪鐮�" prop="supplierCode" width="120" fixed="left" />
- <el-table-column label="渚涘簲鍟嗗悕绉�" prop="supplierName" width="200" />
+ <el-table-column label="渚涘簲鍟嗗悕绉�" prop="supplierName" min-width="200" />
<el-table-column label="鑱旂郴浜�" prop="contactPerson" width="120" />
<el-table-column label="鑱旂郴鐢佃瘽" prop="phone" width="130" />
<el-table-column label="渚涜揣璁㈠崟鏁�" prop="orderCount" width="120" />
@@ -280,6 +280,7 @@
import { ref, reactive, onMounted } from 'vue'
import { ElMessage } from 'element-plus'
import { Document, List, TrendCharts, Shop, Search, Refresh, Download } from '@element-plus/icons-vue'
+import dayjs from "dayjs";
// 鍝嶅簲寮忔暟鎹�
const loading = ref(false)
@@ -690,14 +691,10 @@
}
onMounted(() => {
- // 璁剧疆榛樿鏃堕棿鑼冨洿涓烘渶杩�30澶�
- const endDate = new Date()
- const startDate = new Date()
- startDate.setDate(startDate.getDate() - 30)
-
+ // 璁剧疆榛樿鏃堕棿鑼冨洿涓哄綋澶�
searchForm.dateRange = [
- startDate.toISOString().split('T')[0],
- endDate.toISOString().split('T')[0]
+ dayjs().startOf('day').format('YYYY-MM-DD'),
+ dayjs().endOf('day').format('YYYY-MM-DD')
]
})
</script>
@@ -805,6 +802,15 @@
:deep(.el-table) {
border-radius: 8px;
overflow: hidden;
+ width: 100% !important;
+}
+
+:deep(.el-table__body-wrapper) {
+ width: 100% !important;
+}
+
+:deep(.el-table__header-wrapper) {
+ width: 100% !important;
}
:deep(.el-table th) {
--
Gitblit v1.9.3