diff options
| author | joonhoekim <26rote@gmail.com> | 2025-11-13 17:33:50 +0900 |
|---|---|---|
| committer | joonhoekim <26rote@gmail.com> | 2025-11-13 17:33:50 +0900 |
| commit | 517a3e91a899c54a70de76d380eda5f73e8133e9 (patch) | |
| tree | 8a81bf1b7ae9dce6d23c2a53265964a424cd562e /lib/forms | |
| parent | 44e86e16e4a5bf81696b101a7dbd53d55441e1cb (diff) | |
(김준회) 벤더데이터: 출처 표시 (가져온 건 S-EDP, 만든 건 EVCP), EVCP에서 만든 태그만 삭제 버튼 활성화화
Diffstat (limited to 'lib/forms')
| -rw-r--r-- | lib/forms/services.ts | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/forms/services.ts b/lib/forms/services.ts index 49255cdc..2e40ffa8 100644 --- a/lib/forms/services.ts +++ b/lib/forms/services.ts @@ -740,12 +740,13 @@ export async function updateFormDataInDB( }; } - // 5) 병합 (status 필드 추가) + // 5) 병합 (status 필드 추가, source 필드 보존) const oldItem = dataArray[idx]; const updatedItem = { ...oldItem, ...newData, TAG_NO: oldItem.TAG_NO, // TAG_NO 변경 불가 시 유지 + source: oldItem.source, // 출처 필드 보존 (불변) status: "Updated" // Excel에서 가져온 데이터임을 표시 }; |
