fix(numbering-rule): 채번 미리보기 순번 수정 및 저장 시 재할당 로직 추가
- 미리보기 시 currentSequence + 1로 다음 순번 표시 - UniversalFormModal에서 미리보기/실제할당 분리 - _needsAllocation 플래그로 저장 시 재할당 여부 판단 - RepeatScreenModal 외부 데이터 소스 조인/필터 설정 UI 추가
This commit is contained in:
@@ -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": {
|
||||
|
||||
Reference in New Issue
Block a user