wr: 수요처 pk변경 1

This commit is contained in:
2026-07-06 17:37:28 +09:00
parent defba2962d
commit a29d1f0cc2
21 changed files with 383 additions and 143 deletions
@@ -10,6 +10,7 @@ import { SearchAddressModal } from "../search_address/SearchAddressModal";
// 수요처 정보
export type DemandCompType = {
index: number | "";
dmdCoSn?: number | "";
dmdInfoId: string | "";
bzmnNo: string | "";
dmdCoNm: string | "";
@@ -348,10 +349,10 @@ export function SdmRegForm({
<Input
placeholder="사업자등록번호를 입력하세요"
type="text"
className={getReadonlyInputClassName(!!updateList?.dmdInfoId)}
className={getReadonlyInputClassName(readOnly)}
onChange={(e) => bznNoChange(e, "dmdInfoId", field)}
value={formatBusinessNumber(field.value ?? "")}
readOnly={!!updateList?.dmdInfoId}
readOnly={!!readOnly}
/>
),
},
@@ -367,12 +368,12 @@ export function SdmRegForm({
<Input
placeholder="여러사업장이 있을 경우 입력해주세요"
type="text"
className={`${getReadonlyInputClassName(!!updateList?.dmdInfoId)} !mt-5`}
className={`${getReadonlyInputClassName(readOnly)} !mt-5`}
disabled={isBznmTotNoDisabled}
onChange={(e) => bznNoChange(e, "bznmTotNo", field)}
// {...field}
value={field.value ?? ""}
readOnly={!!updateList?.dmdInfoId}
readOnly={!!readOnly}
/>
</FormUi>
),
@@ -140,6 +140,7 @@ export default function SdmInsertForm({selectSidoData, selectSigunData, dataList
const dmdInfoId = data.dmdInfoId + (data.bznmTotNo || '0000');
const formData = {
...data,
dmdCoSn: updateList?.dmdCoSn ?? "",
dmdInfoId,
bzmnNo: data.dmdInfoId,
daddr: data.daddr?.trim() || "",