feat: превью маппинга — сметчик видит откуда/куда идут значения
Claude генерирует preview[] в batch_summary.json: - source_file + извлечённые значения (руб) - target_sheet + target_row (лист и строка назначения) - target_values (конвертированные тыс.руб по столбцам D-G) UI показывает таблицу маппинга перед запуском обработки. Протестировано на сервере — 2/2 файла с корректным превью. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
+12
-1
@@ -227,9 +227,20 @@ JSON with these fields (in Russian):
|
||||
}},
|
||||
"units": "тыс.руб"
|
||||
}},
|
||||
"conversion": "делить на 1000 (руб → тыс.руб)" или "без конвертации"
|
||||
"conversion": "делить на 1000 (руб → тыс.руб)" или "без конвертации",
|
||||
"preview": [
|
||||
{{
|
||||
"source_file": "имя файла источника",
|
||||
"source_values": {{"строительные работы": 15460805.77, "монтажные работы": 0}},
|
||||
"target_sheet": "ССРСС ТУЦ",
|
||||
"target_row": "строка 17 (ЛС-01-02-2-00-01 Устройство насыпи)",
|
||||
"target_values": {{"D": 15460.81, "E": 0, "F": 0, "G": 0}}
|
||||
}}
|
||||
]
|
||||
}}
|
||||
```
|
||||
The "preview" array must contain entries for ALL sample files — show the actual extracted values
|
||||
and where they will go in the target. This is the most important part for the user to verify!
|
||||
|
||||
### File 2: /data/batch_script.py — Python script
|
||||
|
||||
|
||||
Reference in New Issue
Block a user