From da410f71b0abf77bd36ef1136d6fb0b855057c38 Mon Sep 17 00:00:00 2001 From: liuyunqin Date: Tue, 25 Aug 2026 13:32:12 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E4=BD=93=E9=87=8D=E7=AE=A1=E7=90=86?= =?UTF-8?q?=E5=8E=9F=E5=9E=8B=E6=9B=B4=E6=96=B0=EF=BC=88=E4=B8=89=E6=B5=8B?= =?UTF-8?q?=E5=8F=A3=E5=BE=84=E8=B0=83=E6=95=B4=E3=80=81=E8=AE=BE=E5=A4=87?= =?UTF-8?q?=E5=8E=82=E5=95=86=E7=BB=9F=E4=B8=80=E4=B8=BA=E8=9A=81=E7=86=8A?= =?UTF-8?q?=E3=80=81=E5=8E=86=E5=8F=B2=E6=96=B9=E6=A1=88=E8=AF=A6=E6=83=85?= =?UTF-8?q?=E6=94=B9=E7=89=88=E7=AD=89=EF=BC=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../weight-management/action-record.html | 24 +- .../bluetooth-device-add.html | 2 +- .../weight-management/bluetooth-device.html | 12 +- .../weight-management/fat-device-add.html | 2 +- web-admin/weight-management/fat-device.html | 12 +- .../history-personnel-detail.html | 16 +- .../history-plan-detail.html | 754 ++++++++---------- .../personal-target-data.html | 10 +- .../personnel-measure-record.html | 24 +- .../registration-tracking.html | 92 --- .../weight-management/scale-device-add.html | 2 +- web-admin/weight-management/scale-device.html | 12 +- .../target-weight-review.html | 42 - 13 files changed, 400 insertions(+), 604 deletions(-) diff --git a/web-admin/weight-management/action-record.html b/web-admin/weight-management/action-record.html index 61d51ed..0c76fe3 100644 --- a/web-admin/weight-management/action-record.html +++ b/web-admin/weight-management/action-record.html @@ -1046,7 +1046,7 @@ tbody tr:hover td:nth-child(4){background:#F8FBFF;} - +
序号活动名称姓名员工编号单位部门体重记录饮食记录运动记录三测完成
序号活动名称姓名员工编号单位部门体重记录体脂记录腰围记录三测完成
@@ -2967,10 +2967,9 @@ function openUnitDetailDialog(org, type){ measureData.weight.forEach(function(w,i){ if(w.org !== org) return; if(selectedPlanId && w.planId !== selectedPlanId) return; - var dRec = measureData.diet[i], exRec = measureData.exercise[i]; var key = w.empId; if(!empMap[key]){ - empMap[key] = {planName:w.planName,name:w.name,empId:w.empId,org:w.org,dept:w.dept,hasWeight:false,hasDiet:false,hasExercise:false}; + empMap[key] = {planName:w.planName,name:w.name,empId:w.empId,org:w.org,dept:w.dept,hasWeight:false,hasFat:false,hasWaist:false}; } function inRange(rec){ if(!rec.hasRecord) return false; @@ -2978,12 +2977,17 @@ function openUnitDetailDialog(org, type){ if(dateTo && rec.firstDate > dateTo) return false; return true; } - if(inRange(w)) empMap[key].hasWeight = true; - if(inRange(dRec)) empMap[key].hasDiet = true; - if(inRange(exRec)) empMap[key].hasExercise = true; + // 三测 = 体重/体脂/腰围,均来自体重测量记录;是否含体脂/腰围取决于记录来源 + if(inRange(w)){ + empMap[key].hasWeight = true; + // 蓝牙称只有体重;身高称缺体脂;体脂仪/体重秤/自记数据完整 + if(w.source !== '蓝牙称' && w.source !== '身高称') empMap[key].hasFat = true; + if(w.source === '体脂仪' || w.source === '自记') empMap[key].hasWaist = true; + } }); var empList = []; - for(var k in empMap){ empMap[k].allDone = empMap[k].hasWeight && empMap[k].hasDiet && empMap[k].hasExercise; empList.push(empMap[k]); } + // 体重/体脂/腰围中有任一项记录即视为三测完成 + for(var k in empMap){ empMap[k].allDone = empMap[k].hasWeight || empMap[k].hasFat || empMap[k].hasWaist; empList.push(empMap[k]); } // 三测人数弹窗只显示三测完成的员工 if(type === 'measured'){ empList = empList.filter(function(e){ return e.allDone; }); } var tbody = document.getElementById('unitDetailTbody'); @@ -3000,9 +3004,9 @@ function openUnitDetailDialog(org, type){ html += ''+esc(e.org)+''; html += ''+esc(e.dept)+''; html += ''+(e.hasWeight?'':'')+''; - html += ''+(e.hasDiet?'':'')+''; - html += ''+(e.hasExercise?'':'')+''; - html += ''+(e.allDone?'':'')+''; + html += ''+(e.hasFat?'':'')+''; + html += ''+(e.hasWaist?'':'')+''; + html += ''+(e.allDone?'':'')+''; html += ''; }); tbody.innerHTML = html; diff --git a/web-admin/weight-management/bluetooth-device-add.html b/web-admin/weight-management/bluetooth-device-add.html index a5ef9e2..ac0d008 100644 --- a/web-admin/weight-management/bluetooth-device-add.html +++ b/web-admin/weight-management/bluetooth-device-add.html @@ -137,7 +137,7 @@
-
+
diff --git a/web-admin/weight-management/bluetooth-device.html b/web-admin/weight-management/bluetooth-device.html index c5c63c4..04fa0d3 100644 --- a/web-admin/weight-management/bluetooth-device.html +++ b/web-admin/weight-management/bluetooth-device.html @@ -183,7 +183,7 @@
-
+
@@ -204,11 +204,11 @@ - - - - - + + + + +
序号设备编码设备名称设备厂商设备型号所属单位布放位置入库日期设备状态操作
1BT-2024-001蓝牙称A1华为HW-S100采油一厂职工活动中心1F2024-03-15正常详情 成员管理 编辑 删除
2BT-2024-002蓝牙称A2小米MI-Scale2采油一厂办公楼2F健身房2024-03-18正常详情 成员管理 编辑 删除
3BT-2024-003蓝牙称B1乐心LX-Pro采油二厂员工食堂入口2024-04-02维护中详情 成员管理 编辑 删除
4BT-2024-004蓝牙称B2华为HW-S100采油二厂宿舍楼大厅2024-04-10正常详情 成员管理 编辑 删除
5BT-2024-005蓝牙称C1小米MI-Scale2采气厂综合办公楼1F2024-05-08已停用详情 成员管理 编辑 删除
1BT-2024-001蓝牙称A1蚁熊HW-S100采油一厂职工活动中心1F2024-03-15正常详情 成员管理 编辑 删除
2BT-2024-002蓝牙称A2蚁熊MI-Scale2采油一厂办公楼2F健身房2024-03-18正常详情 成员管理 编辑 删除
3BT-2024-003蓝牙称B1蚁熊LX-Pro采油二厂员工食堂入口2024-04-02维护中详情 成员管理 编辑 删除
4BT-2024-004蓝牙称B2蚁熊HW-S100采油二厂宿舍楼大厅2024-04-10正常详情 成员管理 编辑 删除
5BT-2024-005蓝牙称C1蚁熊MI-Scale2采气厂综合办公楼1F2024-05-08已停用详情 成员管理 编辑 删除
diff --git a/web-admin/weight-management/fat-device-add.html b/web-admin/weight-management/fat-device-add.html index ee20b93..aaf5cca 100644 --- a/web-admin/weight-management/fat-device-add.html +++ b/web-admin/weight-management/fat-device-add.html @@ -137,7 +137,7 @@
-
+
diff --git a/web-admin/weight-management/fat-device.html b/web-admin/weight-management/fat-device.html index df59859..816badd 100644 --- a/web-admin/weight-management/fat-device.html +++ b/web-admin/weight-management/fat-device.html @@ -133,7 +133,7 @@
-
+
@@ -153,11 +153,11 @@ - - - - - + + + + +
序号设备编码设备名称设备厂商设备型号所属单位布放位置入库日期设备状态操作
1FT-2024-001体脂仪A1华为HW-S100采油一厂职工活动中心1F2024-03-15正常详情 编辑 删除
2FT-2024-002体脂仪A2小米MI-Scale2采油一厂办公楼2F健身房2024-03-18正常详情 编辑 删除
3FT-2024-003体脂仪B1乐心LX-Pro采油二厂员工食堂入口2024-04-02维护中详情 编辑 删除
4FT-2024-004体脂仪B2华为HW-S100采油二厂宿舍楼大厅2024-04-10正常详情 编辑 删除
5FT-2024-005体脂仪C1小米MI-Scale2采气厂综合办公楼1F2024-05-08已停用详情 编辑 删除
1FT-2024-001体脂仪A1InBodyHW-S100采油一厂职工活动中心1F2024-03-15正常详情 编辑 删除
2FT-2024-002体脂仪A2InBodyMI-Scale2采油一厂办公楼2F健身房2024-03-18正常详情 编辑 删除
3FT-2024-003体脂仪B1InBodyLX-Pro采油二厂员工食堂入口2024-04-02维护中详情 编辑 删除
4FT-2024-004体脂仪B2InBodyHW-S100采油二厂宿舍楼大厅2024-04-10正常详情 编辑 删除
5FT-2024-005体脂仪C1InBodyMI-Scale2采气厂综合办公楼1F2024-05-08已停用详情 编辑 删除
diff --git a/web-admin/weight-management/history-personnel-detail.html b/web-admin/weight-management/history-personnel-detail.html index 34b4256..ebbfef3 100644 --- a/web-admin/weight-management/history-personnel-detail.html +++ b/web-admin/weight-management/history-personnel-detail.html @@ -118,8 +118,8 @@ tbody tr:hover{background:#F8FBFF;} 活动管理 报名管理 过程管理 - 历史活动 - 人员数据 + 历史活动 + 人员数据 个人体重管理 设备管理 异常事件 @@ -133,9 +133,9 @@ tbody tr:hover{background:#F8FBFF;} @@ -255,8 +255,14 @@ tbody tr:hover{background:#F8FBFF;}