fix(numbering-rule): 채번 미리보기 순번 수정 및 저장 시 재할당 로직 추가

- 미리보기 시 currentSequence + 1로 다음 순번 표시
- UniversalFormModal에서 미리보기/실제할당 분리
- _needsAllocation 플래그로 저장 시 재할당 여부 판단
- RepeatScreenModal 외부 데이터 소스 조인/필터 설정 UI 추가
This commit is contained in:
SeongHyun Kim
2025-12-11 18:26:33 +09:00
parent 6a676dcf5c
commit 038c5a0973
3 changed files with 256 additions and 28 deletions

View File

@@ -898,9 +898,10 @@ class NumberingRuleService {
switch (part.partType) {
case "sequence": {
// 순번 (현재 순번으로 미리보기, 증가 안 함)
// 순번 (다음 할당될 순번으로 미리보기, 실제 증가는 allocate 시)
const length = autoConfig.sequenceLength || 3;
return String(rule.currentSequence || 1).padStart(length, "0");
const nextSequence = (rule.currentSequence || 0) + 1;
return String(nextSequence).padStart(length, "0");
}
case "number": {