From 21218a55cb4c9f66ef2aa5a3f6a45039ffc3eacc Mon Sep 17 00:00:00 2001 From: liuning <807852472@qq.com> Date: Thu, 12 Mar 2026 17:48:34 +0800 Subject: [PATCH] =?UTF-8?q?=C2=96=E4=BA=A4=E6=8E=A5=E9=A1=B5=E9=9D=A2?= =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E6=94=B6=E9=9B=86=E4=BA=BA=EF=BC=8C=E8=A2=8B?= =?UTF-8?q?=E6=95=B0=E5=8E=BB=E6=8E=89=E5=B0=8F=E6=95=B0=E7=82=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/plugin/handList.vue | 58 ++++++++++++++++++++++++--------------- 1 file changed, 36 insertions(+), 22 deletions(-) diff --git a/pages/plugin/handList.vue b/pages/plugin/handList.vue index fbf6629..be7ea2f 100644 --- a/pages/plugin/handList.vue +++ b/pages/plugin/handList.vue @@ -33,6 +33,7 @@ 类型 袋数 重量 + 收集人 交接人 操作 @@ -43,6 +44,7 @@ {{item.totalCount}} {{item.totalWeight}} + {{item.reclName}} {{item.handName}} @@ -81,13 +83,13 @@ groups[item.department].totalWeight += parseFloat(item.totalWeight) || 0; groups[item.department].items.push({ ...item, - totalCount: (parseFloat(item.totalCount) || 0).toFixed(2), + totalCount: Math.round(parseFloat(item.totalCount) || 0), totalWeight: (parseFloat(item.totalWeight) || 0).toFixed(2) }); }); return Object.values(groups).map(group => ({ ...group, - totalCount: group.totalCount.toFixed(2), + totalCount: Math.round(group.totalCount), totalWeight: group.totalWeight.toFixed(2) })); } @@ -113,7 +115,7 @@ getHandDetailsInfo(){ let that = this; uni.request({ - url: "https://lekapi.opmonitor.com/?c=app_api&a=getHandDetailsInfo", + url: "https://mtx.mini.opmonitor.com/?c=app_api&a=getHandDetailsInfo", data: {hospital: that.hospital, sortHospital: that.sortHospital, department: that.department, duty: that.duty}, header: { 'Content-type': 'application/json' @@ -275,32 +277,36 @@ background: linear-gradient(90deg, #2980b9 0%, #1a5276 100%); color: #fff; font-weight: 700; - font-size: 28rpx; + font-size: 22rpx; letter-spacing: 2rpx; padding-top: 4rpx; + position: sticky; + top: 0; + z-index: 10; } - + /* 表格行 */ .table-row { display: flex; border-bottom: 1px dashed #d0dbe6; background-color: #fff; transition: all 0.3s ease; + min-height: 56rpx; } - + .table-row:last-child { border-bottom: none; } - + .table-row:hover { background-color: #eaf2f8; transform: translateX(4rpx); } - + /* 表格单元格 */ .table-cell { - padding: 24rpx 16rpx; - font-size: 28rpx; + padding: 10rpx 8rpx; + font-size: 22rpx; color: #2c3e50; display: flex; align-items: center; @@ -308,35 +314,43 @@ text-align: center; word-break: break-all; font-weight: 500; + overflow: hidden; + text-overflow: ellipsis; + white-space: nowrap; } - + .table-cell-type { - flex: 2; + flex: 1.8; justify-content: flex-start; - padding-left: 24rpx; + padding-left: 12rpx; + min-width: 120rpx; } - + .table-cell-count { - flex: 1; + flex: 0.7; color: #2980b9; font-weight: 600; + min-width: 60rpx; } - + .table-cell-weight { - flex: 1; + flex: 0.7; color: #c0392b; font-weight: 600; + min-width: 60rpx; } - + .table-cell-hand { - flex: 1.5; + flex: 1.2; color: #666; font-weight: 500; - font-size: 26rpx; + font-size: 20rpx; + min-width: 90rpx; } - + .table-cell-action { - flex: 1; + flex: 0.8; + min-width: 70rpx; } /* 类型图标 */