diff --git a/web-admin/nutrition/doc/CHANGELOG.md b/web-admin/nutrition/doc/CHANGELOG.md
index e04f8a0..c4191c7 100644
--- a/web-admin/nutrition/doc/CHANGELOG.md
+++ b/web-admin/nutrition/doc/CHANGELOG.md
@@ -1,5 +1,19 @@
# 营养用餐管理端 CHANGELOG
+## [2026-05-25]
+
+### 修复 — 绿色种采 · 土地环境页面结构修正
+
+- **`farm-land.html`** 土地环境
+ - 种植环境表格列顺序调整:「土壤类型/负责人/地块状态」前置,「种植作物/灌溉方式」后移,与详情 Drawer 取值逻辑保持一致
+ - 养殖环境表格列顺序调整:「负责人/养殖状态」前置,「动物种类/养殖方式」后移
+ - 筛选栏「种植作物」由固定 select 改为自由文本输入框,「动物种类」同步调整
+ - 新增地块弹窗精简字段:移除「种植作物(搜索选择框)」「地块状态」「灌溉方式」三项(由后续流程维护)
+ - 新增养殖区弹窗精简字段:移除「动物种类」「养殖方式」「养殖状态」三项
+ - 移除种植作物搜索选择框(search-select)及其 JS 初始化逻辑
+ - 修正 `showPlotDetail` / `showBreedDetail` 函数中 td 索引,与调整后列顺序保持一致
+ - 休耕/空置状态行的「种植作物」「灌溉方式」(或「动物种类」「养殖方式」)数据清空,避免显示旧的脏数据
+
## [2026-05-22]
### 增强 — 营养用餐模块多页面交互优化
diff --git a/web-admin/nutrition/farm-land.html b/web-admin/nutrition/farm-land.html
index 839d5d6..ccb4f7d 100644
--- a/web-admin/nutrition/farm-land.html
+++ b/web-admin/nutrition/farm-land.html
@@ -221,9 +221,7 @@ table thead .sub-header th{font-size:12px;font-weight:500;}
-
-
-
+
@@ -249,7 +247,7 @@ table thead .sub-header th{font-size:12px;font-weight:500;}
- | 地块编号 | 地块名称 | 面积(亩) | 种植作物 | 灌溉方式 | 土壤类型 | 负责人 | 地块状态 |
+ 地块编号 | 地块名称 | 面积(亩) | 土壤类型 | 负责人 | 地块状态 | 种植作物 | 灌溉方式 |
最新监测数据 |
操作 |
@@ -260,16 +258,16 @@ table thead .sub-header th{font-size:12px;font-weight:500;}
- | LAND-001 | A区蔬菜基地 | 12.5 | 菠菜/白菜 | 滴灌 | 壤土 | 张三 | 种植中 |
+
| LAND-001 | A区蔬菜基地 | 12.5 | 壤土 | 张三 | 种植中 | 菠菜/白菜 | 滴灌 |
17.2 | 72 | 6.8 | 142 | 38 | 186 | 0.02 |
优 | 2026-04-22 10:05 | 正常 | 详情编辑采集记录删除 |
- | LAND-002 | B区根茎基地 | 8.0 | 胡萝卜 | 喷灌 | 砂土 | 李四 | 种植中 |
+
| LAND-002 | B区根茎基地 | 8.0 | 砂土 | 李四 | 种植中 | 胡萝卜 | 喷灌 |
18.4 | 65 | 7.1 | 128 | 42 | 210 | 0.01 |
良 | 2026-04-22 10:05 | 中 | 详情编辑采集记录删除 |
- | LAND-003 | C区菌菇大棚 | 3.2 | 香菇 | 滴灌 | 壤土 | 李四 | 种植中 |
+
| LAND-003 | C区菌菇大棚 | 3.2 | 壤土 | 李四 | 种植中 | 香菇 | 滴灌 |
22.1 | 85 | 6.5 | 168 | 52 | 224 | 0.00 |
优 | 2026-04-22 10:04 | 低 | 详情编辑采集记录删除 |
- | LAND-004 | D区豆类基地 | 6.8 | 四季豆 | 漫灌 | 黏土 | 王五 | 休耕中 |
+
| LAND-004 | D区豆类基地 | 6.8 | 黏土 | 王五 | 休耕中 | | |
16.8 | 58 | 6.9 | 96 | 28 | 158 | 0.03 |
良 | 2026-04-22 10:05 | 正常 | 详情编辑采集记录删除 |
@@ -294,9 +292,7 @@ table thead .sub-header th{font-size:12px;font-weight:500;}
-
-
-
+
@@ -322,7 +318,7 @@ table thead .sub-header th{font-size:12px;font-weight:500;}
- | 养殖区编号 | 养殖区名称 | 面积(㎡) | 动物种类 | 养殖方式 | 负责人 | 养殖状态 |
+ 养殖区编号 | 养殖区名称 | 面积(㎡) | 负责人 | 养殖状态 | 动物种类 | 养殖方式 |
最新监测数据 |
操作 |
@@ -332,19 +328,19 @@ table thead .sub-header th{font-size:12px;font-weight:500;}
- | BREED-A1 | A1-猪舍 | 1,200 | 猪(杜洛克) | 圈养 | 王建国 | 养殖中 |
+
| BREED-A1 | A1-猪舍 | 1,200 | 王建国 | 养殖中 | 猪(杜洛克) | 圈养 |
22.4 | 68 | 8.2 | 1,240 | 180 |
正常 | 优 | 正常 |
2026-04-22 10:05 | 正常 | 详情编辑采集记录删除 |
- | BREED-B3 | B3-鸡舍 | 860 | 鸡(黄羽鸡) | 散养 | 李秀芳 | 养殖中 |
+
| BREED-B3 | B3-鸡舍 | 860 | 李秀芳 | 养殖中 | 鸡(黄羽鸡) | 散养 |
24.6 | 62 | 12.5 | 1,580 | 320 |
正常 | 良 | 正常 |
2026-04-22 10:05 | 正常 | 详情编辑采集记录删除 |
- | BREED-C2 | C2-鸭舍 | 640 | 鸭(麻鸭) | 散养 | 陈大明 | 养殖中 |
+
| BREED-C2 | C2-鸭舍 | 640 | 陈大明 | 养殖中 | 鸭(麻鸭) | 散养 |
23.8 | 70 | 18.6 | 1,820 | 210 |
告警 | 良 | 异常 |
2026-04-22 10:04 | 高 | 详情编辑采集记录删除 |
- | BREED-D1 | D1-羊舍 | 480 | 羊(湖羊) | 圈养 | 赵志强 | 空置 |
+
| BREED-D1 | D1-羊舍 | 480 | 赵志强 | 空置 | | |
20.2 | 55 | 6.4 | 860 | 150 |
正常 | 优 | 正常 |
2026-04-22 10:05 | 正常 | 详情编辑采集记录删除 |
@@ -374,18 +370,6 @@ table thead .sub-header th{font-size:12px;font-weight:500;}
-
-
-
-
-
-
-
@@ -412,15 +396,6 @@ table thead .sub-header th{font-size:12px;font-weight:500;}
-
-
-
-
-
-
-
-
-
@@ -543,12 +518,10 @@ function openPlotModal(mode, id, name, area, crop, status){
document.getElementById('plotId').value=id||'';
document.getElementById('plotName').value=name||'';
document.getElementById('plotArea').value=area||'';
- document.getElementById('plotCrop').value=crop||'';
- document.getElementById('plotStatus').value=status||'种植中';
document.getElementById('plotId').readOnly=true;
} else {
document.getElementById('plotId').value='';document.getElementById('plotName').value='';
- document.getElementById('plotArea').value='';document.getElementById('plotCrop').value='';
+ document.getElementById('plotArea').value='';
document.getElementById('plotId').readOnly=false;
}
document.getElementById('plotModal').style.display='flex';
@@ -563,9 +536,7 @@ function openBreedModal(mode, id, name, area, animal, method, status){
document.getElementById('breedId').value=id||'';
document.getElementById('breedName').value=name||'';
document.getElementById('breedArea').value=area||'';
- document.getElementById('breedAnimal').value=animal||'猪';
document.getElementById('breedMethod').value=method||'圈养';
- document.getElementById('breedStatus').value=status||'养殖中';
document.getElementById('breedId').readOnly=true;
} else {
document.getElementById('breedId').value='';document.getElementById('breedName').value='';
@@ -581,8 +552,8 @@ function showPlotDetail(el){
var tr=el.closest('tr');
var cells=tr.querySelectorAll('td');
var id=cells[0].textContent, name=cells[1].textContent, area=cells[2].textContent;
- var crop=cells[3].textContent, irrigation=cells[4].textContent, soil=cells[5].textContent;
- var person=cells[6].textContent, status=cells[7].textContent;
+ var soil=cells[3].textContent, person=cells[4].textContent;
+ var status=cells[5].textContent, crop=cells[6].textContent, irrigation=cells[7].textContent;
var temp=cells[8].textContent, hum=cells[9].textContent, ph=cells[10].textContent;
var n=cells[11].textContent, p=cells[12].textContent, k=cells[13].textContent;
var pest=cells[14].textContent, water=cells[15].textContent;
@@ -631,8 +602,9 @@ function showBreedDetail(el){
var tr=el.closest('tr');
var cells=tr.querySelectorAll('td');
var id=cells[0].textContent, name=cells[1].textContent, area=cells[2].textContent;
- var animal=cells[3].textContent, method=cells[4].textContent, person=cells[5].textContent;
- var status=cells[6].textContent, temp=cells[7].textContent, hum=cells[8].textContent;
+ var person=cells[3].textContent, status=cells[4].textContent;
+ var animal=cells[5].textContent, method=cells[6].textContent;
+ var temp=cells[7].textContent, hum=cells[8].textContent;
var nh3=cells[9].textContent, co2=cells[10].textContent, lux=cells[11].textContent;
var vent=cells[12].textContent, water=cells[13].textContent, waste=cells[14].textContent;
var time=cells[15].textContent, warn=cells[16].textContent;
@@ -674,35 +646,6 @@ function showBreedDetail(el){
}
function closeBreedDetail(){document.getElementById('breedDetailDrawer').classList.remove('open');}
-// --- 种植作物搜索选择框 ---
-(function(){
- var cropOptions=['菠菜','白菜','胡萝卜','香菇','四季豆','番茄','黄瓜','茄子','辣椒','西兰花','芹菜','生菜','土豆','红薯','玉米','小麦','水稻','大豆','花生','油菜'];
- var input=document.getElementById('plotCrop');
- var dropdown=document.getElementById('plotCropDropdown');
- function renderOptions(keyword){
- var filtered=keyword?cropOptions.filter(function(c){return c.indexOf(keyword)>-1;}):cropOptions;
- if(filtered.length===0){
- dropdown.innerHTML='无匹配结果
';
- } else {
- dropdown.innerHTML=filtered.map(function(c){return ''+c+'
';}).join('');
- }
- dropdown.classList.add('show');
- }
- input.addEventListener('focus',function(){renderOptions(this.value);});
- input.addEventListener('input',function(){renderOptions(this.value);});
- dropdown.addEventListener('click',function(e){
- if(e.target.classList.contains('search-select__option')){
- input.value=e.target.textContent;
- dropdown.classList.remove('show');
- }
- });
- document.addEventListener('click',function(e){
- if(!document.getElementById('plotCropSelect').contains(e.target)){
- dropdown.classList.remove('show');
- }
- });
-})();
-
// --- 预警记录弹窗逻辑 ---
var alarmData={
'LAND-001':[],