- {(
- form.getValues(
- `items.${indexMng}.fcBizs.${indexBiz}.fcDemands`
- ) || []
- ).map((field, index) => (
-
-
- (
-
- {
- f.onChange(val);
- if (val && val.length > 2) {
- getDemandCompList(val, 3);
- }
- }}
- setRtnData={(valList: any) => {
- if (valList) {
- form.setValue(
- `items.${indexMng}.fcBizs.${indexBiz}.fcDemands.${index}.dmdInfoFk`,
- valList.dmdInfoPk
- );
- form.setValue(
- `items.${indexMng}.fcBizs.${indexBiz}.fcDemands.${index}.daddr`,
- valList.daddr
- );
- form.setValue(
- `items.${indexMng}.fcBizs.${indexBiz}.fcDemands.${index}.useUsgCd`,
- valList.useUsgCd
- );
- form.setValue(
- `items.${indexMng}.fcBizs.${indexBiz}.fcDemands.${index}.splyCpct`,
- valList.splyCpct
- );
- form.setValue(
- `items.${indexMng}.fcBizs.${indexBiz}.fcDemands.${index}.dmdInfoFk`,
- valList.dmdInfoPk?.toString()
- );
- }
- }}
- searchList={demandCompList?.map((item) => {
- return {
- ...item,
- searchNm: item.dmdCoNm,
- searchPk: item.dmdInfoPk,
- };
- })}
- >
-
- )}
- />
-
-
- (
-
- f.onChange(e.target.value)}
- value={f.value}
- className={selectClass}
- />
-
- )}
- />
-
-
- (
-
-
-
- )}
- />
-
-
- (
-
-
- f.onChange(date)
- }
- className={"rounded-lg !w-full"}
- />
-
- )}
- />
-
-
- (
-
-
- f.onChange(date)
- }
- className={"rounded-lg !w-full"}
- />
-
- )}
- />
-
-
- (
-
- {
- f.onChange(Number(e.target.value));
- }}
- />
-
- )}
- />
-
-
- (
-
-
- f.onChange(val)
- }
- value={f.value}
- />
-
- )}
- />
-
+
+
+ {"하수처리수 재이용수 수요처"}
+
+
+
+
- ))}
-
-
-
+ {(
+ form.getValues(
+ `items.${indexMng}.fcBizs.${indexBiz}.fcDemands`
+ ) || []
+ ).map((field, index) => (
+
+
+ (
+
+ {
+ f.onChange(val);
+ if (val && val.length > 2) {
+ getDemandCompList(val, 3);
+ }
+ }}
+ setRtnData={(valList: any) => {
+ if (valList) {
+ form.setValue(
+ `items.${indexMng}.fcBizs.${indexBiz}.fcDemands.${index}.daddr`,
+ valList.daddr
+ );
+ form.setValue(
+ `items.${indexMng}.fcBizs.${indexBiz}.fcDemands.${index}.useUsgCd`,
+ valList.useUsgCd
+ );
+ form.setValue(
+ `items.${indexMng}.fcBizs.${indexBiz}.fcDemands.${index}.splyCpct`,
+ valList.splyCpct
+ );
+ form.setValue(
+ `items.${indexMng}.fcBizs.${indexBiz}.fcDemands.${index}.dmdInfoPk`,
+ valList.dmdInfoPk?.toString()
+ );
+ }
+ }}
+ searchList={demandCompList?.map((item) => {
+ return {
+ ...item,
+ searchNm: item.dmdCoNm,
+ searchPk: item.dmdInfoPk,
+ };
+ })}
+ >
+
+ )}
+ />
+
+
+ (
+
+ f.onChange(e.target.value)}
+ value={f.value}
+ className={selectClass}
+ />
+
+ )}
+ />
+
+
+ (
+
+
+
+ )}
+ />
+
+
+ (
+
+
+ f.onChange(date),
+ }}
+ selectClass={"rounded-lg !w-full"}
+ />
+
+ )}
+ />
+
+
+ (
+
+
+ f.onChange(date)
+ }
+ field={{
+ value: safeDate(f.value) || new Date(),
+ onChange: (date: Date | undefined) =>
+ f.onChange(date),
+ }}
+ selectClass={"rounded-lg !w-full"}
+ />
+
+ )}
+ />
+
+
+ (
+
+ {
+ f.onChange(Number(e.target.value));
+ }}
+ />
+
+ )}
+ />
+
+
+ (
+
+
+ f.onChange(val)
+ }
+ value={f.value ?? code.yn[0]?.val}
+ />
+
+ )}
+ />
+
+
+ ))}
+