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;}