refactor(stmate-test): 원본에 없는 「자재 기준자료 엑셀 내보내기·불러오기」 걷음
- 원본 wM_JajeXLS = 재료비 수량집계표 엑셀 내보내기 한 방향뿐(REA 37 · TWM_JAJEXLS 0x5658bc) — 추측으로 만든 자재 기준자료 왕복 메뉴·API·시험 삭제 - 남김: 「재료비 수량집계표를 엑셀파일로 만들기」(conv_jaje · scr_jaje) - 낡은 시험 test_jaje_xlsx_roundtrip_and_edit · conv_api 의 jaje 왕복 삭제 — 원본에 없는 기능 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -21,9 +21,7 @@ from conv_xls_apply import import_boq, register
|
||||
from conv_xls_out import (
|
||||
export_boq_xlsx,
|
||||
export_code_xlsx,
|
||||
export_jaje_xlsx,
|
||||
import_code_xlsx,
|
||||
import_jaje_xlsx,
|
||||
)
|
||||
from conv_xml import xml_to_project
|
||||
from conv_xml_cfg import apply_settings, options, validate
|
||||
@@ -118,11 +116,6 @@ class SrcReq(BaseModel):
|
||||
table: str = ""
|
||||
|
||||
|
||||
class JajeImportReq(BaseModel):
|
||||
source_path: str
|
||||
xlsx: FileIn
|
||||
|
||||
|
||||
class CodeChgReq(BaseModel):
|
||||
source_path: str
|
||||
mapping: dict[str, str] = {}
|
||||
@@ -256,20 +249,6 @@ def api_boq_xlsx(req: SrcReq):
|
||||
return _xlsx(_guard(export_boq_xlsx, s.files, req.table), f"{s.path.stem}_기준BOQ.xlsx")
|
||||
|
||||
|
||||
@router.post("/api/conv/jaje-xlsx")
|
||||
def api_jaje_xlsx(req: SrcReq):
|
||||
s = _src(req.source_path)
|
||||
return _xlsx(_guard(export_jaje_xlsx, s.files), f"{s.path.stem}_자재기준자료.xlsx")
|
||||
|
||||
|
||||
@router.post("/api/conv/jaje-import")
|
||||
def api_jaje_import(req: JajeImportReq):
|
||||
"""자재 기준자료 엑셀 → costn_updates(바뀐 칸만) — 화면이 /api/save 로 넘김."""
|
||||
s = _src(req.source_path)
|
||||
ups = _guard(import_jaje_xlsx, s.files, _blob(**req.xlsx.model_dump()))
|
||||
return {"costn_updates": ups, "count": len(ups)}
|
||||
|
||||
|
||||
@router.post("/api/conv/code-xlsx")
|
||||
def api_code_xlsx(req: SrcReq):
|
||||
s = _src(req.source_path)
|
||||
|
||||
Reference in New Issue
Block a user