@bwg-ui/core 1.2.25 → 1.2.26

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (31) hide show
  1. package/dist/chunks/{MenuReport-B7wOCWJH.js → MenuReport-CWRL14FP.js} +1 -1
  2. package/dist/chunks/{MenuReport-DWUqzoE_.cjs → MenuReport-CdDOPy5D.cjs} +1 -1
  3. package/dist/chunks/{common-components-DN-4Ydi7.js → common-components-BR1s1Oaw.js} +1269 -756
  4. package/dist/chunks/{common-components-1B6Dgw0G.cjs → common-components-DaKdhIi2.cjs} +4 -4
  5. package/dist/chunks/{layout-components-CQYHdg88.cjs → layout-components-EmNfHHRC.cjs} +2 -2
  6. package/dist/chunks/{layout-components-BO9fKUG7.js → layout-components-JbKkWhw7.js} +2 -2
  7. package/dist/components/common/ButtonAccessController.d.ts.map +1 -1
  8. package/dist/components/common/index.cjs +1 -1
  9. package/dist/components/common/index.js +1 -1
  10. package/dist/components/guide/index.cjs +1 -1
  11. package/dist/components/guide/index.js +1 -1
  12. package/dist/components/layout/index.cjs +1 -1
  13. package/dist/components/layout/index.js +1 -1
  14. package/dist/components/pages/auth/CMRoleMstrM01.d.ts.map +1 -1
  15. package/dist/components/pages/syst/SystemCodeManage.d.ts +1 -1
  16. package/dist/components/pages/syst/SystemCodeManage.d.ts.map +1 -1
  17. package/dist/components/popup/index.cjs +1 -1
  18. package/dist/components/popup/index.js +1 -1
  19. package/dist/index.cjs +1 -1
  20. package/dist/index.js +134 -134
  21. package/dist/stores/index.cjs +1 -1
  22. package/dist/stores/index.js +1 -1
  23. package/dist/types/bwg-global.d.ts +1 -0
  24. package/dist/utils/apiUtils.d.ts +37 -2
  25. package/dist/utils/apiUtils.d.ts.map +1 -1
  26. package/dist/utils/gwUtils.d.ts.map +1 -1
  27. package/dist/utils/index.cjs +1 -1
  28. package/dist/utils/index.d.ts +2 -2
  29. package/dist/utils/index.d.ts.map +1 -1
  30. package/dist/utils/index.js +951 -956
  31. package/package.json +1 -1
@@ -15,11 +15,15 @@ import Ph, { createPortal as rd } from "react-dom";
15
15
  import { RowState as Vi, LocalDataProvider as T0, LocalTreeDataProvider as M0, SortMode as XI, TreeView as N0, TreeExpanderIconStyle as ZI, ExpandWhenSetData as QI, GridFitStyle as JI, SelectionStyle as eT, GridView as tT } from "realgrid";
16
16
  import { RealGridReact as rT, RealTreeReact as nT } from "realgrid-react";
17
17
  import { Rnd as iT } from "react-rnd";
18
- import { L as oT } from "./layout-components-BO9fKUG7.js";
18
+ import { L as oT } from "./layout-components-JbKkWhw7.js";
19
19
  import { BwgForm as oo, BwgInput as We, BwgSelect as Ue, BwgFormItem as tt, BwgSearch as Lt, BwgTextArea as Pr, BwgNumber as Mr, BwgMultiSelect as ci, BwgDatePicker as mn, BwgRangePicker as Dn, BwgCheck as tn, BwgCheckList as Co, BwgRadio as gn, BwgUploader as ya, BwgLargeUploader as cg, BwgButton as jn, BwgMaskedPicker as aT, BwgMaskedInput as lT, BwgSwitch as sT } from "../components/core/index.js";
20
20
  import { useNavigate as cT, useLocation as uT } from "react-router-dom";
21
21
  import Lc from "dayjs";
22
- const R0 = ({ checkAuth: e = !1, buttons: t, gap: r = 8 }) => {
22
+ const R0 = ({
23
+ checkAuth: e = !1,
24
+ buttons: t,
25
+ gap: r = 8
26
+ }) => {
23
27
  const { user: n, getButtonAuth: i, setButtonAuth: o } = gs(), a = sg("AUTH_BTNS"), [s, c] = K({});
24
28
  ge(() => {
25
29
  const u = e ? e.menuId : void 0, f = e ? e.grpId : void 0;
@@ -74,7 +78,10 @@ const R0 = ({ checkAuth: e = !1, buttons: t, gap: r = 8 }) => {
74
78
  },
75
79
  u.id
76
80
  );
77
- const m = !(Object.prototype.hasOwnProperty.call(s, u.id) ? !!s[u.id] : !1), y = f || m, g = /* @__PURE__ */ l(
81
+ const m = !(Object.prototype.hasOwnProperty.call(
82
+ s,
83
+ u.id
84
+ ) ? !!s[u.id] : !1), y = f || m, g = /* @__PURE__ */ l(
78
85
  re,
79
86
  {
80
87
  type: u.type,
@@ -90,14 +97,36 @@ const R0 = ({ checkAuth: e = !1, buttons: t, gap: r = 8 }) => {
90
97
  );
91
98
  if (m) {
92
99
  const b = /* @__PURE__ */ v("div", { style: { display: "flex", alignItems: "center", gap: 8 }, children: [
93
- /* @__PURE__ */ l(dI, { style: { color: "#faad14", fontSize: 16 } }),
94
- /* @__PURE__ */ l("span", { style: { fontWeight: 600 }, children: `'${u.label}' 버튼에 대한 사용 권한이 없습니다.` })
100
+ /* @__PURE__ */ l(
101
+ dI,
102
+ {
103
+ style: { color: "#faad14", fontSize: 16 }
104
+ }
105
+ ),
106
+ /* @__PURE__ */ l(
107
+ "span",
108
+ {
109
+ style: { fontWeight: 600 },
110
+ children: `'${u.label}' 버튼에 대한 사용 권한이 없습니다.`
111
+ }
112
+ )
95
113
  ] });
96
114
  return /* @__PURE__ */ l(
97
115
  vs,
98
116
  {
99
117
  title: b,
100
- content: /* @__PURE__ */ l("div", { style: { display: "flex", flexDirection: "column", gap: 4, paddingLeft: 24 }, children: /* @__PURE__ */ l("span", { style: { fontSize: 12 }, children: "관리자에게 문의하세요." }) }),
118
+ content: /* @__PURE__ */ l(
119
+ "div",
120
+ {
121
+ style: {
122
+ display: "flex",
123
+ flexDirection: "column",
124
+ gap: 4,
125
+ paddingLeft: 24
126
+ },
127
+ children: /* @__PURE__ */ l("span", { style: { fontSize: 12 }, children: "관리자에게 문의하세요." })
128
+ }
129
+ ),
101
130
  placement: "bottom",
102
131
  styles: { body: { backgroundColor: "#fffbe6" } },
103
132
  children: /* @__PURE__ */ l("span", { children: g })
@@ -14728,15 +14757,14 @@ const b3 = ({ reqRows: e, subRows: t }) => {
14728
14757
  Ve(
14729
14758
  "SCMAUTH00101",
14730
14759
  { crprCd: kr() },
14731
- {},
14732
- e.appCd
14760
+ {}
14733
14761
  ).then((A) => {
14734
14762
  n.current?.addAllData(A.data);
14735
14763
  });
14736
14764
  },
14737
14765
  // 권한 목록 저장
14738
14766
  SCMAUTH00102: (A) => {
14739
- Ve("SCMAUTH00102", { ...A }, {}, e.appCd).then(
14767
+ Ve("SCMAUTH00102", { ...A }, {}).then(
14740
14768
  (R) => {
14741
14769
  R.result || r.current?.setFields([
14742
14770
  {
@@ -14748,7 +14776,7 @@ const b3 = ({ reqRows: e, subRows: t }) => {
14748
14776
  );
14749
14777
  },
14750
14778
  SCMAUTH00201: (A) => {
14751
- Ve("SCMAUTH00201", { ...A }, {}, e.appCd).then((R) => {
14779
+ Ve("SCMAUTH00201", { ...A }, {}).then((R) => {
14752
14780
  d === "common" ? i.current?.addAllData(R.data) : o.current?.addAllData(R.data);
14753
14781
  }).catch((R) => {
14754
14782
  console.error("SCMAUTH00201 호출 실패:", R);
@@ -14760,8 +14788,7 @@ const b3 = ({ reqRows: e, subRows: t }) => {
14760
14788
  const R = await Ve(
14761
14789
  "SCMAUTH00301",
14762
14790
  { ...A, crprCd: kr() },
14763
- {},
14764
- e.appCd
14791
+ {}
14765
14792
  );
14766
14793
  return console.log("권한 정보 저장 성공:", R), w(!1), $.SCMAUTH00101(), R;
14767
14794
  } catch (R) {
@@ -14774,8 +14801,7 @@ const b3 = ({ reqRows: e, subRows: t }) => {
14774
14801
  const R = await Ve(
14775
14802
  "SCMAUTH00401",
14776
14803
  { ...A, crprCd: kr() },
14777
- {},
14778
- e.appCd
14804
+ {}
14779
14805
  );
14780
14806
  return console.log("권한 정보 수정 성공:", R), w(!1), $.SCMAUTH00101(), R;
14781
14807
  } catch (R) {
@@ -25118,8 +25144,7 @@ const Parent = () => {
25118
25144
  fileGrpKey: b.fileGrpKey,
25119
25145
  fileKey: b.fileKey
25120
25146
  },
25121
- {},
25122
- e.appCd
25147
+ {}
25123
25148
  ).then((w) => {
25124
25149
  n.current?.addAllData(w.sub);
25125
25150
  }) : n.current?.dp?.clearRows();
@@ -25139,8 +25164,7 @@ const Parent = () => {
25139
25164
  crprCd: zl()?.crprCd,
25140
25165
  sysCd: __SYS_CD__
25141
25166
  },
25142
- {},
25143
- e.appCd
25167
+ {}
25144
25168
  ).then((m) => {
25145
25169
  r.current?.addAllData(m.sub);
25146
25170
  }).catch((m) => {
@@ -26152,7 +26176,7 @@ const Parent = () => {
26152
26176
  crprCd: kr(),
26153
26177
  ...o()
26154
26178
  };
26155
- console.log("Search data:", k), Ve("SCMMENU00101", k, {}, e.appCd).then((D) => {
26179
+ console.log("Search data:", k), Ve("SCMMENU00101", k, {}).then((D) => {
26156
26180
  n.current?.addAllData(D.menus, {
26157
26181
  treeOption: {
26158
26182
  isExpand: !0,
@@ -26171,7 +26195,7 @@ const Parent = () => {
26171
26195
  crprCd: kr(),
26172
26196
  ...r?.current?.getFieldsValue()
26173
26197
  };
26174
- delete k.scrnNm, delete k.menuPrntNm, Ve("SCMMENU00102", k, {}, e.appCd).then((D) => {
26198
+ delete k.scrnNm, delete k.menuPrntNm, Ve("SCMMENU00102", k, {}).then((D) => {
26175
26199
  console.log("Save response:", D), D.result > 0 && (g(), S.SCMMENU00101());
26176
26200
  }).catch((D) => {
26177
26201
  console.error("저장 오류:", D);
@@ -26189,7 +26213,7 @@ const Parent = () => {
26189
26213
  menuId: I.menuId,
26190
26214
  menuGbCd: I.menuGbCd
26191
26215
  });
26192
- }), k.sub = $, Ve("SCMMENU00103", k, {}, e.appCd).then(
26216
+ }), k.sub = $, Ve("SCMMENU00103", k, {}).then(
26193
26217
  (T) => {
26194
26218
  console.log(T), T?.result > 0 && S.SCMMENU00101();
26195
26219
  }
@@ -26555,21 +26579,21 @@ const Parent = () => {
26555
26579
  }
26556
26580
  }, D = {
26557
26581
  SCMPOPU00101: () => {
26558
- Ve("SCMPOPU00101", {}, {}, e.appCd).then((H) => {
26582
+ Ve("SCMPOPU00101", {}, {}).then((H) => {
26559
26583
  console.log("SCMPOPU00101:", H.data);
26560
26584
  }).catch((H) => {
26561
26585
  console.error("오류:", H);
26562
26586
  });
26563
26587
  },
26564
26588
  SCMPOPU00102: (H) => {
26565
- Ve("SCMPOPU00102", H, {}, e.appCd).then((F) => {
26589
+ Ve("SCMPOPU00102", H, {}).then((F) => {
26566
26590
  console.log("SCMPOPU00102:", F.data), t.current?.addAllData(F.data);
26567
26591
  }).catch((F) => {
26568
26592
  console.error("오류:", F);
26569
26593
  });
26570
26594
  },
26571
26595
  SCMPOPU00103: (H) => {
26572
- console.log("save params:", H), Ve("SCMPOPU00103", H, {}, e.appCd).then((F) => {
26596
+ console.log("save params:", H), Ve("SCMPOPU00103", H, {}).then((F) => {
26573
26597
  console.log("response:", F), F.result ? (iI(
26574
26598
  d === "new" ? "팝업이 등록되었습니다." : "팝업이 수정되었습니다."
26575
26599
  ), c(!1), p(null), m([]), g(""), n.current?.resetFields(), D.SCMPOPU00102()) : (oI("팝업코드"), n.current?.setFields([
@@ -27690,7 +27714,7 @@ const Parent = () => {
27690
27714
  }, P = {
27691
27715
  /** 프로그램 목록 조회 */
27692
27716
  SCMPRGR00101: () => {
27693
- Ve("SCMPRGR00101", i(), {}, e.appCd).then(
27717
+ Ve("SCMPRGR00101", i(), {}).then(
27694
27718
  (C) => {
27695
27719
  t.current?.addAllData(C.data);
27696
27720
  }
@@ -27702,7 +27726,7 @@ const Parent = () => {
27702
27726
  iudFlag: u === "EDIT" ? "U" : "I",
27703
27727
  ...n.current?.getFieldsValue() ?? {}
27704
27728
  };
27705
- Ve("SCMPRGR00102", C, {}, e.appCd).then((O) => {
27729
+ Ve("SCMPRGR00102", C, {}).then((O) => {
27706
27730
  O.result > 0 ? (y(), P.SCMPRGR00101()) : Al(O.message);
27707
27731
  }).catch((O) => {
27708
27732
  console.error("오류:", O);
@@ -28254,8 +28278,7 @@ const Parent = () => {
28254
28278
  t && Ve(
28255
28279
  "SCMSYST00101",
28256
28280
  { crprCd: kr(), applCd: t },
28257
- {},
28258
- e.appCd
28281
+ {}
28259
28282
  ).then((b) => {
28260
28283
  console.log({ SCMSYST00101: b.data }), s.current?.addAllData(b.data);
28261
28284
  });
@@ -28266,8 +28289,7 @@ const Parent = () => {
28266
28289
  crprCd: kr(),
28267
28290
  srchGb: n === "group" ? "group" : "detail"
28268
28291
  },
28269
- {},
28270
- e.appCd
28292
+ {}
28271
28293
  ).then((b) => {
28272
28294
  console.log({ SCMCODE00101: b.data }), n === "group" ? c.current?.addAllData(b.data) : d.current?.addAllData(b.data);
28273
28295
  });
@@ -45833,8 +45855,24 @@ var Wq = {
45833
45855
  ref: t
45834
45856
  });
45835
45857
  });
45836
- const Yi = ["#4285F4", "#34A853", "#FBBC05", "#EA4335", "#9C27B0", "#00ACC1", "#8D6E63"], NC = "28%", ZG = ({ sysCd: e, appItCd: t, appCd: r }) => {
45837
- const { getFormData: n } = uo(), i = Ju(), o = cI(), [a] = K(""), [s] = K(null), [c, d] = K(!1), [u, f] = K(!1), [p, h] = K(!1), [m, y] = K(!1), [g, b] = K(null), [w, P] = K([]), [E, S] = K(null), [C, O] = K(!1), [k, D] = K({}), [$, T] = K(!1), [I, _] = K({}), j = le(null), M = le(null);
45858
+ const Yi = [
45859
+ "#4285F4",
45860
+ "#34A853",
45861
+ "#FBBC05",
45862
+ "#EA4335",
45863
+ "#9C27B0",
45864
+ "#00ACC1",
45865
+ "#8D6E63"
45866
+ ], NC = "28%", ZG = ({
45867
+ sysCd: e,
45868
+ appItCd: t,
45869
+ appCd: r
45870
+ }) => {
45871
+ const { getFormData: n } = uo(), i = Ju(), o = cI(), [a] = K(""), [s] = K(null), [c, d] = K(!1), [u, f] = K(!1), [p, h] = K(!1), [m, y] = K(!1), [g, b] = K(null), [w, P] = K([]), [E, S] = K(
45872
+ null
45873
+ ), [C, O] = K(!1), [k, D] = K({}), [$, T] = K(!1), [I, _] = K(
45874
+ {}
45875
+ ), j = le(null), M = le(null);
45838
45876
  le(null);
45839
45877
  const A = le(null), R = le(null), L = le(null), z = le({}), J = ce(() => async (Y) => {
45840
45878
  const ie = Y.target.value?.trim();
@@ -45852,13 +45890,17 @@ const Yi = ["#4285F4", "#34A853", "#FBBC05", "#EA4335", "#9C27B0", "#00ACC1", "#
45852
45890
  appItCd: Se,
45853
45891
  appCd: fe,
45854
45892
  grpCd: ie
45855
- }) ? (A.current?.setFields([{
45856
- name: "grpCd",
45857
- errors: ["이미 사용중인 그룹코드입니다."]
45858
- }]), Ee.error("이미 사용중인 그룹코드입니다."), T(!1)) : (A.current?.setFields([{
45859
- name: "grpCd",
45860
- errors: []
45861
- }]), Ee.success("사용 가능한 그룹코드입니다."), T(!0));
45893
+ }) ? (A.current?.setFields([
45894
+ {
45895
+ name: "grpCd",
45896
+ errors: ["이미 사용중인 그룹코드입니다."]
45897
+ }
45898
+ ]), Ee.error("이미 사용중인 그룹코드입니다."), T(!1)) : (A.current?.setFields([
45899
+ {
45900
+ name: "grpCd",
45901
+ errors: []
45902
+ }
45903
+ ]), Ee.success("사용 가능한 그룹코드입니다."), T(!0));
45862
45904
  } catch (ne) {
45863
45905
  console.error("그룹코드 중복 체크 실패:", ne), Ee.error("중복 체크 중 오류가 발생했습니다."), T(!1);
45864
45906
  } finally {
@@ -45884,16 +45926,20 @@ const Yi = ["#4285F4", "#34A853", "#FBBC05", "#EA4335", "#9C27B0", "#00ACC1", "#
45884
45926
  appCd: R.current?.getFieldValue("appCd") || g?.appCd || "CM",
45885
45927
  grpCd: R.current?.getFieldValue("grpCd") || "",
45886
45928
  dtlCd: Se
45887
- }) ? (R.current?.setFields([{
45888
- name: "dtlCd",
45889
- errors: ["이미 사용중인 상세코드입니다."]
45890
- }]), Ee.error("이미 사용중인 상세코드입니다."), _((be) => {
45929
+ }) ? (R.current?.setFields([
45930
+ {
45931
+ name: "dtlCd",
45932
+ errors: ["이미 사용중인 상세코드입니다."]
45933
+ }
45934
+ ]), Ee.error("이미 사용중인 상세코드입니다."), _((be) => {
45891
45935
  const ve = { ...be };
45892
45936
  return delete ve[-1], ve;
45893
- })) : (R.current?.setFields([{
45894
- name: "dtlCd",
45895
- errors: []
45896
- }]), Ee.success("사용 가능한 상세코드입니다."), _((be) => ({ ...be, [-1]: !0 })));
45937
+ })) : (R.current?.setFields([
45938
+ {
45939
+ name: "dtlCd",
45940
+ errors: []
45941
+ }
45942
+ ]), Ee.success("사용 가능한 상세코드입니다."), _((be) => ({ ...be, [-1]: !0 })));
45897
45943
  } catch (fe) {
45898
45944
  console.error("상세코드 중복 체크 실패:", fe), Ee.error("중복 체크 중 오류가 발생했습니다."), _((be) => {
45899
45945
  const ve = { ...be };
@@ -45914,10 +45960,12 @@ const Yi = ["#4285F4", "#34A853", "#FBBC05", "#EA4335", "#9C27B0", "#00ACC1", "#
45914
45960
  if ((R.current?.getFieldValue("details") || []).some(
45915
45961
  (ve, $e) => $e !== ie && ve.dtlCd?.trim() === ne
45916
45962
  )) {
45917
- R.current?.setFields([{
45918
- name: ["details", ie, "dtlCd"],
45919
- errors: ["같은 상세코드가 이미 입력되었습니다."]
45920
- }]), Ee.error("같은 상세코드가 이미 입력되었습니다."), _((ve) => {
45963
+ R.current?.setFields([
45964
+ {
45965
+ name: ["details", ie, "dtlCd"],
45966
+ errors: ["같은 상세코드가 이미 입력되었습니다."]
45967
+ }
45968
+ ]), Ee.error("같은 상세코드가 이미 입력되었습니다."), _((ve) => {
45921
45969
  const $e = { ...ve };
45922
45970
  return delete $e[ie], $e;
45923
45971
  }), D((ve) => ({ ...ve, [ie]: !1 }));
@@ -45930,16 +45978,20 @@ const Yi = ["#4285F4", "#34A853", "#FBBC05", "#EA4335", "#9C27B0", "#00ACC1", "#
45930
45978
  appCd: g.appCd || "CM",
45931
45979
  grpCd: g.grpCd || "",
45932
45980
  dtlCd: ne
45933
- }) ? (R.current?.setFields([{
45934
- name: ["details", ie, "dtlCd"],
45935
- errors: ["이미 사용중인 상세코드입니다."]
45936
- }]), Ee.error("이미 사용중인 상세코드입니다."), _((ve) => {
45981
+ }) ? (R.current?.setFields([
45982
+ {
45983
+ name: ["details", ie, "dtlCd"],
45984
+ errors: ["이미 사용중인 상세코드입니다."]
45985
+ }
45986
+ ]), Ee.error("이미 사용중인 상세코드입니다."), _((ve) => {
45937
45987
  const $e = { ...ve };
45938
45988
  return delete $e[ie], $e;
45939
- })) : (R.current?.setFields([{
45940
- name: ["details", ie, "dtlCd"],
45941
- errors: []
45942
- }]), Ee.success("사용 가능한 상세코드입니다."), _((ve) => ({ ...ve, [ie]: !0 })));
45989
+ })) : (R.current?.setFields([
45990
+ {
45991
+ name: ["details", ie, "dtlCd"],
45992
+ errors: []
45993
+ }
45994
+ ]), Ee.success("사용 가능한 상세코드입니다."), _((ve) => ({ ...ve, [ie]: !0 })));
45943
45995
  } catch (Se) {
45944
45996
  console.error("상세코드 중복 체크 실패:", Se), Ee.error("중복 체크 중 오류가 발생했습니다."), _((fe) => {
45945
45997
  const be = { ...fe };
@@ -45998,10 +46050,22 @@ const Yi = ["#4285F4", "#34A853", "#FBBC05", "#EA4335", "#9C27B0", "#00ACC1", "#
45998
46050
  });
45999
46051
  };
46000
46052
  fe.render(
46001
- /* @__PURE__ */ v(Xe, { style: { justifyContent: "center", alignItems: "center", gap: 8 }, children: [
46002
- /* @__PURE__ */ l(re, { icon: /* @__PURE__ */ l(Hl, {}), onClick: $e }),
46003
- /* @__PURE__ */ l(re, { icon: /* @__PURE__ */ l(Nl, { style: { color: "red" } }), onClick: qe })
46004
- ] })
46053
+ /* @__PURE__ */ v(
46054
+ Xe,
46055
+ {
46056
+ style: { justifyContent: "center", alignItems: "center", gap: 8 },
46057
+ children: [
46058
+ /* @__PURE__ */ l(re, { icon: /* @__PURE__ */ l(Hl, {}), onClick: $e }),
46059
+ /* @__PURE__ */ l(
46060
+ re,
46061
+ {
46062
+ icon: /* @__PURE__ */ l(Nl, { style: { color: "red" } }),
46063
+ onClick: qe
46064
+ }
46065
+ )
46066
+ ]
46067
+ }
46068
+ )
46005
46069
  );
46006
46070
  }
46007
46071
  ),
@@ -46042,7 +46106,13 @@ const Yi = ["#4285F4", "#34A853", "#FBBC05", "#EA4335", "#9C27B0", "#00ACC1", "#
46042
46106
  title: "삭제 확인",
46043
46107
  content: /* @__PURE__ */ v("div", { children: [
46044
46108
  /* @__PURE__ */ l("div", { children: `정말 "${ue.cmmnCdNm} [${ue.dtlCd}]" 을(를) 삭제하시겠습니까?` }),
46045
- /* @__PURE__ */ l("div", { style: { marginTop: 8, fontSize: "12px", color: "#999" }, children: "해당 작업이 진행되면 다시 되돌릴 수 없습니다." })
46109
+ /* @__PURE__ */ l(
46110
+ "div",
46111
+ {
46112
+ style: { marginTop: 8, fontSize: "12px", color: "#999" },
46113
+ children: "해당 작업이 진행되면 다시 되돌릴 수 없습니다."
46114
+ }
46115
+ )
46046
46116
  ] }),
46047
46117
  centered: !0,
46048
46118
  okText: "확인",
@@ -46069,10 +46139,22 @@ const Yi = ["#4285F4", "#34A853", "#FBBC05", "#EA4335", "#9C27B0", "#00ACC1", "#
46069
46139
  });
46070
46140
  };
46071
46141
  fe.render(
46072
- /* @__PURE__ */ v(Xe, { style: { justifyContent: "center", alignItems: "center", gap: 8 }, children: [
46073
- /* @__PURE__ */ l(re, { icon: /* @__PURE__ */ l(Hl, {}), onClick: $e }),
46074
- /* @__PURE__ */ l(re, { icon: /* @__PURE__ */ l(Nl, { style: { color: "red" } }), onClick: qe })
46075
- ] })
46142
+ /* @__PURE__ */ v(
46143
+ Xe,
46144
+ {
46145
+ style: { justifyContent: "center", alignItems: "center", gap: 8 },
46146
+ children: [
46147
+ /* @__PURE__ */ l(re, { icon: /* @__PURE__ */ l(Hl, {}), onClick: $e }),
46148
+ /* @__PURE__ */ l(
46149
+ re,
46150
+ {
46151
+ icon: /* @__PURE__ */ l(Nl, { style: { color: "red" } }),
46152
+ onClick: qe
46153
+ }
46154
+ )
46155
+ ]
46156
+ }
46157
+ )
46076
46158
  );
46077
46159
  }
46078
46160
  ),
@@ -46080,31 +46162,47 @@ const Yi = ["#4285F4", "#34A853", "#FBBC05", "#EA4335", "#9C27B0", "#00ACC1", "#
46080
46162
  ), oe = ce(
46081
46163
  () => Bn(
46082
46164
  (Y, ie, ne, Se, fe) => {
46083
- Y.getValue(ie.index?.itemIndex, "sysLockYn") === "Y" ? fe.render(
46084
- /* @__PURE__ */ l(TI, {})
46085
- ) : fe.render(
46086
- /* @__PURE__ */ l(MI, {})
46087
- );
46165
+ Y.getValue(ie.index?.itemIndex, "sysLockYn") === "Y" ? fe.render(/* @__PURE__ */ l(TI, {})) : fe.render(/* @__PURE__ */ l(MI, {}));
46088
46166
  }
46089
46167
  ),
46090
46168
  []
46091
46169
  ), he = ce(
46092
46170
  () => [
46093
46171
  { fieldName: "crprCd", visible: !1 },
46094
- { fieldName: "metaYn", header: { text: "메타" }, width: 80, styleName: "center" },
46172
+ {
46173
+ fieldName: "metaYn",
46174
+ header: { text: "메타" },
46175
+ width: 80,
46176
+ styleName: "center"
46177
+ },
46095
46178
  { fieldName: "sysCd", header: { text: "시스템코드" }, width: 80 },
46096
46179
  { fieldName: "appItCd", header: { text: "앱 통합코드" }, width: 80 },
46097
46180
  { fieldName: "appCd", header: { text: "앱 코드" }, width: 120 },
46098
46181
  { fieldName: "grpCd", header: { text: "그룹코드" }, width: 140 },
46099
- { fieldName: "grpNm", header: { text: "그룹명칭" }, width: 220, styleName: "left" },
46100
- { fieldName: "enblYn", header: { text: "사용여부" }, width: 100, styleName: "center", renderer: no.checkYdisabled },
46182
+ {
46183
+ fieldName: "grpNm",
46184
+ header: { text: "그룹명칭" },
46185
+ width: 220,
46186
+ styleName: "left"
46187
+ },
46188
+ {
46189
+ fieldName: "enblYn",
46190
+ header: { text: "사용여부" },
46191
+ width: 100,
46192
+ styleName: "center",
46193
+ renderer: no.checkYdisabled
46194
+ },
46101
46195
  { fieldName: "sortOrd", visible: !1 },
46102
46196
  { fieldName: "rmrk", visible: !1 },
46103
46197
  { fieldName: "inptDt", visible: !1 },
46104
46198
  { fieldName: "inptId", visible: !1 },
46105
46199
  { fieldName: "chngDt", visible: !1 },
46106
46200
  { fieldName: "chngId", visible: !1 },
46107
- { fieldName: "moreActions", header: { text: "액션" }, renderer: "moreActions" }
46201
+ {
46202
+ fieldName: "moreActions",
46203
+ header: { text: "액션" },
46204
+ renderer: "moreActions"
46205
+ }
46108
46206
  ],
46109
46207
  []
46110
46208
  ), de = ce(
@@ -46114,54 +46212,167 @@ const Yi = ["#4285F4", "#34A853", "#FBBC05", "#EA4335", "#9C27B0", "#00ACC1", "#
46114
46212
  { fieldName: "appItCd", visible: !1 },
46115
46213
  { fieldName: "appCd", visible: !1 },
46116
46214
  { fieldName: "grpCd", visible: !1 },
46117
- { fieldName: "dtlCd", header: { text: "상세코드" }, width: 140, styleName: "left", footer: {
46118
- valueCallback: (Y) => {
46119
- const ie = Y.getDataSource();
46120
- return ie ? ie.getRowCount() + "건" : "0";
46215
+ {
46216
+ fieldName: "dtlCd",
46217
+ header: { text: "상세코드" },
46218
+ width: 140,
46219
+ styleName: "left",
46220
+ footer: {
46221
+ valueCallback: (Y) => {
46222
+ const ie = Y.getDataSource();
46223
+ return ie ? ie.getRowCount() + "건" : "0";
46224
+ }
46121
46225
  }
46122
- } },
46123
- { fieldName: "cmmnCd", header: { text: "공통코드" }, width: 160, styleName: "left" },
46124
- { fieldName: "cmmnCdNm", header: { text: "공통코드명" }, width: 220, styleName: "left" },
46226
+ },
46227
+ {
46228
+ fieldName: "cmmnCd",
46229
+ header: { text: "공통코드" },
46230
+ width: 160,
46231
+ styleName: "left"
46232
+ },
46233
+ {
46234
+ fieldName: "cmmnCdNm",
46235
+ header: { text: "공통코드명" },
46236
+ width: 220,
46237
+ styleName: "left"
46238
+ },
46125
46239
  { fieldName: "cmmnCdClr", visible: !1 },
46126
- { fieldName: "cmmnAbrv", header: { text: "약어" }, width: 120, styleName: "left" },
46127
- { fieldName: "sysLockYn", header: { text: "시스템잠금" }, width: 110, styleName: "center", renderer: "sysLockYn" },
46128
- { fieldName: "enblYn", header: { text: "사용여부" }, width: 100, styleName: "center", renderer: no.checkYdisabled },
46240
+ {
46241
+ fieldName: "cmmnAbrv",
46242
+ header: { text: "약어" },
46243
+ width: 120,
46244
+ styleName: "left"
46245
+ },
46246
+ {
46247
+ fieldName: "sysLockYn",
46248
+ header: { text: "시스템잠금" },
46249
+ width: 110,
46250
+ styleName: "center",
46251
+ renderer: "sysLockYn"
46252
+ },
46253
+ {
46254
+ fieldName: "enblYn",
46255
+ header: { text: "사용여부" },
46256
+ width: 100,
46257
+ styleName: "center",
46258
+ renderer: no.checkYdisabled
46259
+ },
46129
46260
  { fieldName: "sortOrd", visible: !1 },
46130
46261
  { fieldName: "rmrk", visible: !1 },
46131
46262
  { fieldName: "inptDt", visible: !1 },
46132
46263
  { fieldName: "inptId", visible: !1 },
46133
46264
  { fieldName: "chngDt", visible: !1 },
46134
46265
  { fieldName: "chngId", visible: !1 },
46135
- { fieldName: "moreActions", header: { text: "액션" }, renderer: "moreActions" }
46266
+ {
46267
+ fieldName: "moreActions",
46268
+ header: { text: "액션" },
46269
+ renderer: "moreActions"
46270
+ }
46136
46271
  ],
46137
46272
  []
46138
46273
  ), Ce = ce(
46139
- () => ({ container: { indicator: !0, check: !0, page: !0 }, display: {
46140
- rowHeight: 30
46141
- } }),
46274
+ () => ({
46275
+ container: { indicator: !0, check: !0, page: !0 },
46276
+ display: {
46277
+ rowHeight: 30
46278
+ }
46279
+ }),
46142
46280
  []
46143
46281
  ), V = ce(
46144
- () => ({ container: { indicator: !0, page: !0 }, display: {
46145
- rowHeight: 20
46146
- } }),
46282
+ () => ({
46283
+ container: { indicator: !0, page: !0 },
46284
+ display: {
46285
+ rowHeight: 20
46286
+ }
46287
+ }),
46147
46288
  []
46148
46289
  );
46149
46290
  ce(
46150
46291
  () => [
46151
- { fieldName: "crprCd", header: { text: "회사코드" }, width: 120, styleName: "left" },
46152
- { fieldName: "sysCd", header: { text: "시스템코드" }, width: 120, styleName: "left" },
46153
- { fieldName: "appItCd", header: { text: "앱 통합코드" }, width: 140, styleName: "left" },
46154
- { fieldName: "appCd", header: { text: "앱 코드" }, width: 120, styleName: "left" },
46155
- { fieldName: "cmmnCd", header: { text: "공통코드" }, width: 140, styleName: "left" },
46156
- { fieldName: "optnCd", header: { text: "옵션코드" }, width: 140, styleName: "left" },
46157
- { fieldName: "optnNm", header: { text: "옵션명" }, width: 200, styleName: "left" },
46158
- { fieldName: "optnDesc", header: { text: "옵션설명" }, width: 250, styleName: "left" },
46159
- { fieldName: "enblYn", header: { text: "사용여부" }, width: 100, styleName: "center" },
46160
- { fieldName: "sortOrd", header: { text: "정렬순서" }, width: 100, styleName: "right" },
46161
- { fieldName: "inptDt", header: { text: "입력일시" }, width: 150, styleName: "center" },
46162
- { fieldName: "inptId", header: { text: "입력자" }, width: 120, styleName: "left" },
46163
- { fieldName: "chngDt", header: { text: "변경일시" }, width: 150, styleName: "center" },
46164
- { fieldName: "chngId", header: { text: "변경자" }, width: 120, styleName: "left" }
46292
+ {
46293
+ fieldName: "crprCd",
46294
+ header: { text: "회사코드" },
46295
+ width: 120,
46296
+ styleName: "left"
46297
+ },
46298
+ {
46299
+ fieldName: "sysCd",
46300
+ header: { text: "시스템코드" },
46301
+ width: 120,
46302
+ styleName: "left"
46303
+ },
46304
+ {
46305
+ fieldName: "appItCd",
46306
+ header: { text: "앱 통합코드" },
46307
+ width: 140,
46308
+ styleName: "left"
46309
+ },
46310
+ {
46311
+ fieldName: "appCd",
46312
+ header: { text: "앱 코드" },
46313
+ width: 120,
46314
+ styleName: "left"
46315
+ },
46316
+ {
46317
+ fieldName: "cmmnCd",
46318
+ header: { text: "공통코드" },
46319
+ width: 140,
46320
+ styleName: "left"
46321
+ },
46322
+ {
46323
+ fieldName: "optnCd",
46324
+ header: { text: "옵션코드" },
46325
+ width: 140,
46326
+ styleName: "left"
46327
+ },
46328
+ {
46329
+ fieldName: "optnNm",
46330
+ header: { text: "옵션명" },
46331
+ width: 200,
46332
+ styleName: "left"
46333
+ },
46334
+ {
46335
+ fieldName: "optnDesc",
46336
+ header: { text: "옵션설명" },
46337
+ width: 250,
46338
+ styleName: "left"
46339
+ },
46340
+ {
46341
+ fieldName: "enblYn",
46342
+ header: { text: "사용여부" },
46343
+ width: 100,
46344
+ styleName: "center"
46345
+ },
46346
+ {
46347
+ fieldName: "sortOrd",
46348
+ header: { text: "정렬순서" },
46349
+ width: 100,
46350
+ styleName: "right"
46351
+ },
46352
+ {
46353
+ fieldName: "inptDt",
46354
+ header: { text: "입력일시" },
46355
+ width: 150,
46356
+ styleName: "center"
46357
+ },
46358
+ {
46359
+ fieldName: "inptId",
46360
+ header: { text: "입력자" },
46361
+ width: 120,
46362
+ styleName: "left"
46363
+ },
46364
+ {
46365
+ fieldName: "chngDt",
46366
+ header: { text: "변경일시" },
46367
+ width: 150,
46368
+ styleName: "center"
46369
+ },
46370
+ {
46371
+ fieldName: "chngId",
46372
+ header: { text: "변경자" },
46373
+ width: 120,
46374
+ styleName: "left"
46375
+ }
46165
46376
  ],
46166
46377
  []
46167
46378
  ), ce(
@@ -46183,11 +46394,15 @@ const Yi = ["#4285F4", "#34A853", "#FBBC05", "#EA4335", "#9C27B0", "#00ACC1", "#
46183
46394
  ve = be.length > 0;
46184
46395
  else if (Y === "N") {
46185
46396
  const $e = i.codeData;
46186
- $e && $e[fe] && (ve = Object.values($e[fe]).some((qe) => qe.systemCodeYn !== "Y"));
46397
+ $e && $e[fe] && (ve = Object.values($e[fe]).some(
46398
+ (qe) => qe.systemCodeYn !== "Y"
46399
+ ));
46187
46400
  }
46188
46401
  ve && ne.push({ grpCd: fe, grpNm: "" });
46189
46402
  });
46190
- const Se = a ? ne.filter((fe) => fe.grpCd.toLowerCase().includes(a.toLowerCase())) : ne;
46403
+ const Se = a ? ne.filter(
46404
+ (fe) => fe.grpCd.toLowerCase().includes(a.toLowerCase())
46405
+ ) : ne;
46191
46406
  j.current?.addAllData(Se);
46192
46407
  }, X = (Y, ie) => {
46193
46408
  if (!Y) {
@@ -46212,7 +46427,7 @@ const Yi = ["#4285F4", "#34A853", "#FBBC05", "#EA4335", "#9C27B0", "#00ACC1", "#
46212
46427
  M.current?.addAllData(be);
46213
46428
  };
46214
46429
  le(!1), ge(() => {
46215
- Ae.SCMCODE00101();
46430
+ console.log("SystemCodeManage useEffect"), Ae.SCMCODE00101();
46216
46431
  }, []), ge(() => {
46217
46432
  const Y = n()?.sysLockYn || "";
46218
46433
  B(Y), X(s, Y);
@@ -46223,7 +46438,10 @@ const Yi = ["#4285F4", "#34A853", "#FBBC05", "#EA4335", "#9C27B0", "#00ACC1", "#
46223
46438
  () => Array.from(new Set(o.systemMap.map((Y) => Y.sysCd))).slice(0, 6),
46224
46439
  [o.systemMap]
46225
46440
  ), G = ce(
46226
- () => Array.from(new Set(o.systemMap.map((Y) => Y.appItCd))).slice(0, 8),
46441
+ () => Array.from(new Set(o.systemMap.map((Y) => Y.appItCd))).slice(
46442
+ 0,
46443
+ 8
46444
+ ),
46227
46445
  [o.systemMap]
46228
46446
  ), W = ce(
46229
46447
  () => Array.from(new Set(o.systemMap.map((Y) => Y.appCd))).slice(0, 8),
@@ -46240,13 +46458,22 @@ const Yi = ["#4285F4", "#34A853", "#FBBC05", "#EA4335", "#9C27B0", "#00ACC1", "#
46240
46458
  ];
46241
46459
  }, []), me = ce(() => {
46242
46460
  const Y = te(N.length);
46243
- return N.map((ie, ne) => ({ name: ie, value: Y[ne] ?? 0 }));
46461
+ return N.map((ie, ne) => ({
46462
+ name: ie,
46463
+ value: Y[ne] ?? 0
46464
+ }));
46244
46465
  }, [N]), xe = ce(() => {
46245
46466
  const Y = te(G.length);
46246
- return G.map((ie, ne) => ({ name: ie, value: Y[ne] ?? 0 }));
46467
+ return G.map((ie, ne) => ({
46468
+ name: ie,
46469
+ value: Y[ne] ?? 0
46470
+ }));
46247
46471
  }, [G]), Oe = ce(() => {
46248
46472
  const Y = te(W.length);
46249
- return W.map((ie, ne) => ({ name: ie, value: Y[ne] ?? 0 }));
46473
+ return W.map((ie, ne) => ({
46474
+ name: ie,
46475
+ value: Y[ne] ?? 0
46476
+ }));
46250
46477
  }, [W]), ze = ce(() => {
46251
46478
  const ie = [
46252
46479
  { sysCd: "KE", sysNm: "K-ERP" },
@@ -46325,75 +46552,84 @@ const Yi = ["#4285F4", "#34A853", "#FBBC05", "#EA4335", "#9C27B0", "#00ACC1", "#
46325
46552
  value: ne.code
46326
46553
  }));
46327
46554
  return [{ label: "전체", value: "" }, ...ie];
46328
- }, []), Ae = ce(() => ({
46329
- SCMCODE00101: () => {
46330
- const Y = n(), ie = {
46331
- crprCd: Y?.crprCd || "100",
46332
- sysCd: Y?.sysCd || "",
46333
- appItCd: Y?.appItCd || "",
46334
- appCd: Y?.appCd || "",
46335
- sysLockYn: Y?.sysLockYn || "",
46336
- keyword: Y?.keyword || ""
46337
- };
46338
- Ve("SCMCODE00101", ie).then((ne) => {
46339
- j.current?.addAllData(ne.data || []);
46340
- }).catch((ne) => {
46341
- Ee.error("그룹코드 조회에 실패했습니다.");
46342
- });
46343
- },
46344
- SCMCODE00102: (Y) => {
46345
- Ve("SCMCODE00102", Y, {
46555
+ }, []), Ae = ce(
46556
+ () => ({
46557
+ SCMCODE00101: () => {
46558
+ const Y = n(), ie = {
46559
+ crprCd: Y?.crprCd || "100",
46560
+ sysCd: Y?.sysCd || "",
46561
+ appItCd: Y?.appItCd || "",
46562
+ appCd: Y?.appCd || "",
46563
+ sysLockYn: Y?.sysLockYn || "",
46564
+ keyword: Y?.keyword || ""
46565
+ };
46566
+ Ve("SCMCODE00101", ie).then((ne) => {
46567
+ j.current?.addAllData(ne.data || []);
46568
+ }).catch((ne) => {
46569
+ Ee.error("그룹코드 조회에 실패했습니다.");
46570
+ });
46571
+ },
46572
+ SCMCODE00102: (Y) => {
46573
+ Ve("SCMCODE00102", Y, {
46574
+ showLoading: !1
46575
+ }).then((ie) => {
46576
+ M.current?.addAllData(ie.data || []);
46577
+ }).catch((ie) => {
46578
+ Ee.error("상세코드 조회에 실패했습니다.");
46579
+ });
46580
+ },
46581
+ SCMCODE00104: (Y) => Ve("SCMCODE00104", {
46582
+ grp: Y
46583
+ }, {
46346
46584
  showLoading: !1
46347
- }).then((ie) => {
46348
- M.current?.addAllData(ie.data || []);
46349
- }).catch((ie) => {
46350
- Ee.error("상세코드 조회에 실패했습니다.");
46351
- });
46352
- },
46353
- SCMCODE00104: (Y) => Ve("SCMCODE00104", {
46354
- grp: Y
46355
- }, {
46356
- showLoading: !1
46357
- }).then((ne) => ne.dup === !0).catch((ne) => (console.error("그룹코드 중복 체크 실패:", ne), !1)),
46358
- SCMCODE00105: (Y) => Ve("SCMCODE00105", {
46359
- dtl: Y
46360
- }, {
46361
- showLoading: !1
46362
- }).then((ne) => ne.dup === !0).catch((ne) => (console.error("상세코드 중복 체크 실패:", ne), !1)),
46363
- SCMCODE00201: (Y, ie) => Ve("SCMCODE00201", {
46364
- flag: Y,
46365
- grp: ie
46366
- }).then((Se) => (Ee.success(Y === "I" ? "그룹코드가 등록되었습니다." : "그룹코드가 수정되었습니다."), Ae.SCMCODE00101(), Se)).catch((Se) => {
46367
- throw console.error("그룹코드 저장 실패:", Se), Se;
46368
- }),
46369
- SCMCODE00202: (Y) => Ve("SCMCODE00202", {
46370
- grp: Y
46371
- }).then((ne) => (Ee.success("그룹코드가 삭제되었습니다."), Ae.SCMCODE00101(), ne)).catch((ne) => {
46372
- throw Ee.error("그룹코드 삭제에 실패했습니다."), ne;
46373
- }),
46374
- SCMCODE00203: (Y, ie, ne) => Ve("SCMCODE00203", {
46375
- flag: Y,
46376
- dtlCnt: ie,
46377
- dtl: ne
46378
- }).then((fe) => (Ee.success(Y === "I" ? "상세코드가 등록되었습니다." : "상세코드가 수정되었습니다."), g && Ae.SCMCODE00102({
46379
- sysCd: g.sysCd,
46380
- appItCd: g.appItCd,
46381
- appCd: g.appCd,
46382
- grpCd: g.grpCd
46383
- }), fe)).catch((fe) => {
46384
- throw console.error("상세코드 저장 실패:", fe), Ee.error(Y === "I" ? "상세코드 등록에 실패했습니다." : "상세코드 수정에 실패했습니다."), fe;
46585
+ }).then((ne) => ne.dup === !0).catch((ne) => (console.error("그룹코드 중복 체크 실패:", ne), !1)),
46586
+ SCMCODE00105: (Y) => Ve("SCMCODE00105", {
46587
+ dtl: Y
46588
+ }, {
46589
+ showLoading: !1
46590
+ }).then((ne) => ne.dup === !0).catch((ne) => (console.error("상세코드 중복 체크 실패:", ne), !1)),
46591
+ SCMCODE00201: (Y, ie) => Ve("SCMCODE00201", {
46592
+ flag: Y,
46593
+ grp: ie
46594
+ }).then((Se) => (Ee.success(
46595
+ Y === "I" ? "그룹코드가 등록되었습니다." : "그룹코드가 수정되었습니다."
46596
+ ), Ae.SCMCODE00101(), Se)).catch((Se) => {
46597
+ throw console.error("그룹코드 저장 실패:", Se), Se;
46598
+ }),
46599
+ SCMCODE00202: (Y) => Ve("SCMCODE00202", {
46600
+ grp: Y
46601
+ }).then((ne) => (Ee.success("그룹코드가 삭제되었습니다."), Ae.SCMCODE00101(), ne)).catch((ne) => {
46602
+ throw Ee.error("그룹코드 삭제에 실패했습니다."), ne;
46603
+ }),
46604
+ SCMCODE00203: (Y, ie, ne) => Ve("SCMCODE00203", {
46605
+ flag: Y,
46606
+ dtlCnt: ie,
46607
+ dtl: ne
46608
+ }).then((fe) => (Ee.success(
46609
+ Y === "I" ? "상세코드가 등록되었습니다." : "상세코드가 수정되었습니다."
46610
+ ), g && Ae.SCMCODE00102({
46611
+ sysCd: g.sysCd,
46612
+ appItCd: g.appItCd,
46613
+ appCd: g.appCd,
46614
+ grpCd: g.grpCd
46615
+ }), fe)).catch((fe) => {
46616
+ throw console.error("상세코드 저장 실패:", fe), Ee.error(
46617
+ Y === "I" ? "상세코드 등록에 실패했습니다." : "상세코드 수정에 실패했습니다."
46618
+ ), fe;
46619
+ }),
46620
+ SCMCODE00204: (Y) => Ve("SCMCODE00204", {
46621
+ dtl: Y
46622
+ }).then((ne) => (Ee.success("상세코드가 삭제되었습니다."), g && Ae.SCMCODE00102({
46623
+ sysCd: g.sysCd,
46624
+ appItCd: g.appItCd,
46625
+ appCd: g.appCd,
46626
+ grpCd: g.grpCd
46627
+ }), ne)).catch((ne) => {
46628
+ throw Ee.error("상세코드 삭제에 실패했습니다."), ne;
46629
+ })
46385
46630
  }),
46386
- SCMCODE00204: (Y) => Ve("SCMCODE00204", {
46387
- dtl: Y
46388
- }).then((ne) => (Ee.success("상세코드가 삭제되었습니다."), g && Ae.SCMCODE00102({
46389
- sysCd: g.sysCd,
46390
- appItCd: g.appItCd,
46391
- appCd: g.appCd,
46392
- grpCd: g.grpCd
46393
- }), ne)).catch((ne) => {
46394
- throw Ee.error("상세코드 삭제에 실패했습니다."), ne;
46395
- })
46396
- }), []);
46631
+ []
46632
+ );
46397
46633
  return /* @__PURE__ */ v(
46398
46634
  xr,
46399
46635
  {
@@ -46412,7 +46648,11 @@ const Yi = ["#4285F4", "#34A853", "#FBBC05", "#EA4335", "#9C27B0", "#00ACC1", "#
46412
46648
  /* @__PURE__ */ l(U, { span: 6, children: /* @__PURE__ */ l(
46413
46649
  Ue,
46414
46650
  {
46415
- itemProps: { label: "시스템코드", name: "sysCd", initialValue: "" },
46651
+ itemProps: {
46652
+ label: "시스템코드",
46653
+ name: "sysCd",
46654
+ initialValue: ""
46655
+ },
46416
46656
  selectProps: {
46417
46657
  placeholder: "시스템코드를 선택하세요",
46418
46658
  options: ze
@@ -46422,7 +46662,11 @@ const Yi = ["#4285F4", "#34A853", "#FBBC05", "#EA4335", "#9C27B0", "#00ACC1", "#
46422
46662
  /* @__PURE__ */ l(U, { span: 6, children: /* @__PURE__ */ l(
46423
46663
  Ue,
46424
46664
  {
46425
- itemProps: { label: "통합코드", name: "appItCd", initialValue: "" },
46665
+ itemProps: {
46666
+ label: "통합코드",
46667
+ name: "appItCd",
46668
+ initialValue: ""
46669
+ },
46426
46670
  selectProps: {
46427
46671
  placeholder: "통합코드를 선택하세요",
46428
46672
  options: Ke
@@ -46432,7 +46676,11 @@ const Yi = ["#4285F4", "#34A853", "#FBBC05", "#EA4335", "#9C27B0", "#00ACC1", "#
46432
46676
  /* @__PURE__ */ l(U, { span: 6, children: /* @__PURE__ */ l(
46433
46677
  Ue,
46434
46678
  {
46435
- itemProps: { label: "앱코드", name: "appCd", initialValue: "" },
46679
+ itemProps: {
46680
+ label: "앱코드",
46681
+ name: "appCd",
46682
+ initialValue: ""
46683
+ },
46436
46684
  selectProps: {
46437
46685
  placeholder: "앱코드를 선택하세요",
46438
46686
  options: Ye
@@ -46444,7 +46692,11 @@ const Yi = ["#4285F4", "#34A853", "#FBBC05", "#EA4335", "#9C27B0", "#00ACC1", "#
46444
46692
  /* @__PURE__ */ l(U, { span: 6, children: /* @__PURE__ */ l(
46445
46693
  Ue,
46446
46694
  {
46447
- itemProps: { label: "코드구분", name: "sysLockYn", initialValue: "" },
46695
+ itemProps: {
46696
+ label: "코드구분",
46697
+ name: "sysLockYn",
46698
+ initialValue: ""
46699
+ },
46448
46700
  selectProps: {
46449
46701
  options: [
46450
46702
  { label: "전체", value: "" },
@@ -46454,129 +46706,287 @@ const Yi = ["#4285F4", "#34A853", "#FBBC05", "#EA4335", "#9C27B0", "#00ACC1", "#
46454
46706
  }
46455
46707
  }
46456
46708
  ) }),
46457
- /* @__PURE__ */ l(U, { span: 6, children: /* @__PURE__ */ l(We, { itemProps: { label: "검색어", name: "keyword", initialValue: "" }, inputProps: { placeholder: "검색어를 입력하세요." } }) })
46709
+ /* @__PURE__ */ l(U, { span: 6, children: /* @__PURE__ */ l(
46710
+ We,
46711
+ {
46712
+ itemProps: {
46713
+ label: "검색어",
46714
+ name: "keyword",
46715
+ initialValue: ""
46716
+ },
46717
+ inputProps: { placeholder: "검색어를 입력하세요." }
46718
+ }
46719
+ ) })
46458
46720
  ] })
46459
46721
  ] })
46460
46722
  },
46461
46723
  children: [
46462
- /* @__PURE__ */ v(et, { type: "horizontal", style: { height: "calc(100vh - 120px)", gap: 12, overflow: "hidden" }, children: [
46463
- /* @__PURE__ */ v(je, { border: !0, style: { flex: `0 0 ${NC}`, maxWidth: NC, height: "100%", display: "flex", flexDirection: "column", overflow: "hidden" }, children: [
46464
- /* @__PURE__ */ l(Je, { title: "공통코드 현황" }),
46465
- /* @__PURE__ */ l("div", { style: { flex: 1, overflowY: "auto", overflowX: "hidden" }, children: /* @__PURE__ */ v(Le, { direction: "vertical", style: { width: "100%", padding: "8px 0" }, size: 12, children: [
46466
- /* @__PURE__ */ v(De, { bodyStyle: { height: 200, padding: 8, borderRadius: 12 }, children: [
46467
- /* @__PURE__ */ l("div", { style: { fontWeight: 600, marginBottom: 6 }, children: "시스템코드 대비 사용자코드" }),
46468
- /* @__PURE__ */ l(Ac, { width: "100%", height: 160, children: /* @__PURE__ */ v(Gq, { children: [
46469
- /* @__PURE__ */ l(MA, { data: ae, dataKey: "value", nameKey: "name", outerRadius: 65, label: !0, children: ae.map((Y, ie) => /* @__PURE__ */ l(ro, { fill: Yi[ie % Yi.length] }, `c1-${ie}`)) }),
46470
- /* @__PURE__ */ l(jc, {}),
46471
- /* @__PURE__ */ l(LE, {})
46472
- ] }) })
46473
- ] }),
46474
- /* @__PURE__ */ v(De, { bodyStyle: { height: 200, padding: 8, borderRadius: 12 }, children: [
46475
- /* @__PURE__ */ l("div", { style: { fontWeight: 600, marginBottom: 6 }, children: "시스템코드별 백분율" }),
46476
- /* @__PURE__ */ l(Ac, { width: "100%", height: 160, children: /* @__PURE__ */ v(yh, { data: me, margin: { top: 10, right: 10, left: 0, bottom: 0 }, children: [
46477
- /* @__PURE__ */ l(Zc, { strokeDasharray: "3 3" }),
46478
- /* @__PURE__ */ l(Qc, { dataKey: "name", hide: !0 }),
46479
- /* @__PURE__ */ l(Jc, { hide: !0, domain: [0, 100] }),
46480
- /* @__PURE__ */ l(jc, {}),
46481
- /* @__PURE__ */ l(Xc, { dataKey: "value", children: me.map((Y, ie) => /* @__PURE__ */ l(ro, { fill: Yi[ie % Yi.length] }, `c2-${ie}`)) })
46482
- ] }) })
46483
- ] }),
46484
- /* @__PURE__ */ v(De, { bodyStyle: { height: 200, padding: 8, borderRadius: 12 }, children: [
46485
- /* @__PURE__ */ l("div", { style: { fontWeight: 600, marginBottom: 6 }, children: "통합코드별 백분율" }),
46486
- /* @__PURE__ */ l(Ac, { width: "100%", height: 160, children: /* @__PURE__ */ v(yh, { data: xe, margin: { top: 10, right: 10, left: 0, bottom: 0 }, children: [
46487
- /* @__PURE__ */ l(Zc, { strokeDasharray: "3 3" }),
46488
- /* @__PURE__ */ l(Qc, { dataKey: "name", hide: !0 }),
46489
- /* @__PURE__ */ l(Jc, { hide: !0, domain: [0, 100] }),
46490
- /* @__PURE__ */ l(jc, {}),
46491
- /* @__PURE__ */ l(Xc, { dataKey: "value", children: xe.map((Y, ie) => /* @__PURE__ */ l(ro, { fill: Yi[ie % Yi.length] }, `c3-${ie}`)) })
46492
- ] }) })
46493
- ] }),
46494
- /* @__PURE__ */ v(De, { bodyStyle: { height: 200, padding: 8, borderRadius: 12 }, children: [
46495
- /* @__PURE__ */ l("div", { style: { fontWeight: 600, marginBottom: 6 }, children: "앱별 백분율" }),
46496
- /* @__PURE__ */ l(Ac, { width: "100%", height: 160, children: /* @__PURE__ */ v(yh, { data: Oe, margin: { top: 10, right: 10, left: 0, bottom: 0 }, children: [
46497
- /* @__PURE__ */ l(Zc, { strokeDasharray: "3 3" }),
46498
- /* @__PURE__ */ l(Qc, { dataKey: "name", hide: !0 }),
46499
- /* @__PURE__ */ l(Jc, { hide: !0, domain: [0, 100] }),
46500
- /* @__PURE__ */ l(jc, {}),
46501
- /* @__PURE__ */ l(Xc, { dataKey: "value", children: Oe.map((Y, ie) => /* @__PURE__ */ l(ro, { fill: Yi[ie % Yi.length] }, `c4-${ie}`)) })
46502
- ] }) })
46503
- ] })
46504
- ] }) })
46505
- ] }),
46506
- /* @__PURE__ */ v(je, { border: !0, style: { flex: "1 1 auto", height: "100%", overflow: "hidden", display: "flex", flexDirection: "column" }, children: [
46507
- /* @__PURE__ */ l(Je, { title: "그룹코드", children: /* @__PURE__ */ l(jn, { type: "primary", onClick: () => {
46508
- f(!1), T(!1), d(!0), setTimeout(() => {
46509
- A.current?.resetFields(), A.current?.setFieldsValue({
46510
- crprCd: "100",
46511
- sysCd: __SYS_CD__ || "",
46512
- appItCd: "CM",
46513
- appCd: "CM",
46514
- enblYn: "Y",
46515
- sortOrd: 0
46516
- });
46517
- }, 100);
46518
- }, children: "그룹코드 등록" }) }),
46519
- /* @__PURE__ */ l("div", { style: { flex: "0 0 45%", overflow: "hidden", display: "flex", flexDirection: "column" }, children: /* @__PURE__ */ l(
46520
- nt,
46521
- {
46522
- ref: j,
46523
- gridColumns: he,
46524
- gridOptions: Ce,
46525
- gridEvents: ce(() => ({
46526
- onCurrentRowChanged: (Y, ie, ne) => {
46527
- if (ne < 0) {
46528
- b(null);
46529
- return;
46530
- }
46531
- const Se = j.current?.dp?.getValue(ne, "sysCd") || "", fe = j.current?.dp?.getValue(ne, "appItCd") || "", be = j.current?.dp?.getValue(ne, "appCd") || "", ve = j.current?.dp?.getValue(ne, "grpCd") || "", $e = j.current?.dp?.getJsonRow(ne);
46532
- b($e), ve && Ae.SCMCODE00102({ sysCd: Se, appItCd: fe, appCd: be, grpCd: ve });
46533
- }
46534
- }), [Ae]),
46535
- renderers: [
46536
- { name: "moreActions", renderer: F }
46537
- ]
46538
- }
46539
- ) }),
46540
- /* @__PURE__ */ v("div", { style: { flex: "1 1 auto", overflow: "hidden", display: "flex", flexDirection: "column", marginTop: 12 }, children: [
46541
- /* @__PURE__ */ l(Je, { title: "상세코드", children: /* @__PURE__ */ l(
46542
- jn,
46724
+ /* @__PURE__ */ v(
46725
+ et,
46726
+ {
46727
+ type: "horizontal",
46728
+ style: { height: "calc(100vh - 120px)", gap: 12, overflow: "hidden" },
46729
+ children: [
46730
+ /* @__PURE__ */ v(
46731
+ je,
46543
46732
  {
46544
- type: "primary",
46545
- onClick: () => {
46546
- if (!g) {
46547
- Ee.warning("그룹코드를 먼저 선택하세요.");
46548
- return;
46549
- }
46550
- y(!1), h(!0), S(null), _({}), P([{
46551
- dtlCd: "",
46552
- cmmnCd: "",
46553
- cmmnCdNm: "",
46554
- cmmnCdClr: "",
46555
- cmmnAbrv: "",
46556
- enblYn: "Y",
46557
- sortOrd: 0,
46558
- rmrk: ""
46559
- }]);
46733
+ border: !0,
46734
+ style: {
46735
+ flex: `0 0 ${NC}`,
46736
+ maxWidth: NC,
46737
+ height: "100%",
46738
+ display: "flex",
46739
+ flexDirection: "column",
46740
+ overflow: "hidden"
46560
46741
  },
46561
- disabled: !g,
46562
- children: "상세코드 등록"
46742
+ children: [
46743
+ /* @__PURE__ */ l(Je, { title: "공통코드 현황" }),
46744
+ /* @__PURE__ */ l("div", { style: { flex: 1, overflowY: "auto", overflowX: "hidden" }, children: /* @__PURE__ */ v(
46745
+ Le,
46746
+ {
46747
+ direction: "vertical",
46748
+ style: { width: "100%", padding: "8px 0" },
46749
+ size: 12,
46750
+ children: [
46751
+ /* @__PURE__ */ v(De, { bodyStyle: { height: 200, padding: 8, borderRadius: 12 }, children: [
46752
+ /* @__PURE__ */ l("div", { style: { fontWeight: 600, marginBottom: 6 }, children: "시스템코드 대비 사용자코드" }),
46753
+ /* @__PURE__ */ l(Ac, { width: "100%", height: 160, children: /* @__PURE__ */ v(Gq, { children: [
46754
+ /* @__PURE__ */ l(
46755
+ MA,
46756
+ {
46757
+ data: ae,
46758
+ dataKey: "value",
46759
+ nameKey: "name",
46760
+ outerRadius: 65,
46761
+ label: !0,
46762
+ children: ae.map((Y, ie) => /* @__PURE__ */ l(
46763
+ ro,
46764
+ {
46765
+ fill: Yi[ie % Yi.length]
46766
+ },
46767
+ `c1-${ie}`
46768
+ ))
46769
+ }
46770
+ ),
46771
+ /* @__PURE__ */ l(jc, {}),
46772
+ /* @__PURE__ */ l(LE, {})
46773
+ ] }) })
46774
+ ] }),
46775
+ /* @__PURE__ */ v(De, { bodyStyle: { height: 200, padding: 8, borderRadius: 12 }, children: [
46776
+ /* @__PURE__ */ l("div", { style: { fontWeight: 600, marginBottom: 6 }, children: "시스템코드별 백분율" }),
46777
+ /* @__PURE__ */ l(Ac, { width: "100%", height: 160, children: /* @__PURE__ */ v(
46778
+ yh,
46779
+ {
46780
+ data: me,
46781
+ margin: { top: 10, right: 10, left: 0, bottom: 0 },
46782
+ children: [
46783
+ /* @__PURE__ */ l(Zc, { strokeDasharray: "3 3" }),
46784
+ /* @__PURE__ */ l(Qc, { dataKey: "name", hide: !0 }),
46785
+ /* @__PURE__ */ l(Jc, { hide: !0, domain: [0, 100] }),
46786
+ /* @__PURE__ */ l(jc, {}),
46787
+ /* @__PURE__ */ l(Xc, { dataKey: "value", children: me.map((Y, ie) => /* @__PURE__ */ l(
46788
+ ro,
46789
+ {
46790
+ fill: Yi[ie % Yi.length]
46791
+ },
46792
+ `c2-${ie}`
46793
+ )) })
46794
+ ]
46795
+ }
46796
+ ) })
46797
+ ] }),
46798
+ /* @__PURE__ */ v(De, { bodyStyle: { height: 200, padding: 8, borderRadius: 12 }, children: [
46799
+ /* @__PURE__ */ l("div", { style: { fontWeight: 600, marginBottom: 6 }, children: "통합코드별 백분율" }),
46800
+ /* @__PURE__ */ l(Ac, { width: "100%", height: 160, children: /* @__PURE__ */ v(
46801
+ yh,
46802
+ {
46803
+ data: xe,
46804
+ margin: { top: 10, right: 10, left: 0, bottom: 0 },
46805
+ children: [
46806
+ /* @__PURE__ */ l(Zc, { strokeDasharray: "3 3" }),
46807
+ /* @__PURE__ */ l(Qc, { dataKey: "name", hide: !0 }),
46808
+ /* @__PURE__ */ l(Jc, { hide: !0, domain: [0, 100] }),
46809
+ /* @__PURE__ */ l(jc, {}),
46810
+ /* @__PURE__ */ l(Xc, { dataKey: "value", children: xe.map((Y, ie) => /* @__PURE__ */ l(
46811
+ ro,
46812
+ {
46813
+ fill: Yi[ie % Yi.length]
46814
+ },
46815
+ `c3-${ie}`
46816
+ )) })
46817
+ ]
46818
+ }
46819
+ ) })
46820
+ ] }),
46821
+ /* @__PURE__ */ v(De, { bodyStyle: { height: 200, padding: 8, borderRadius: 12 }, children: [
46822
+ /* @__PURE__ */ l("div", { style: { fontWeight: 600, marginBottom: 6 }, children: "앱별 백분율" }),
46823
+ /* @__PURE__ */ l(Ac, { width: "100%", height: 160, children: /* @__PURE__ */ v(
46824
+ yh,
46825
+ {
46826
+ data: Oe,
46827
+ margin: { top: 10, right: 10, left: 0, bottom: 0 },
46828
+ children: [
46829
+ /* @__PURE__ */ l(Zc, { strokeDasharray: "3 3" }),
46830
+ /* @__PURE__ */ l(Qc, { dataKey: "name", hide: !0 }),
46831
+ /* @__PURE__ */ l(Jc, { hide: !0, domain: [0, 100] }),
46832
+ /* @__PURE__ */ l(jc, {}),
46833
+ /* @__PURE__ */ l(Xc, { dataKey: "value", children: Oe.map((Y, ie) => /* @__PURE__ */ l(
46834
+ ro,
46835
+ {
46836
+ fill: Yi[ie % Yi.length]
46837
+ },
46838
+ `c4-${ie}`
46839
+ )) })
46840
+ ]
46841
+ }
46842
+ ) })
46843
+ ] })
46844
+ ]
46845
+ }
46846
+ ) })
46847
+ ]
46563
46848
  }
46564
- ) }),
46565
- /* @__PURE__ */ l("div", { style: { flex: 1, overflow: "hidden", display: "flex", flexDirection: "column" }, children: /* @__PURE__ */ l(
46566
- nt,
46849
+ ),
46850
+ /* @__PURE__ */ v(
46851
+ je,
46567
46852
  {
46568
- ref: M,
46569
- gridColumns: de,
46570
- gridOptions: V,
46571
- renderers: [
46572
- { name: "moreActions", renderer: Q },
46573
- { name: "sysLockYn", renderer: oe }
46853
+ border: !0,
46854
+ style: {
46855
+ flex: "1 1 auto",
46856
+ height: "100%",
46857
+ overflow: "hidden",
46858
+ display: "flex",
46859
+ flexDirection: "column"
46860
+ },
46861
+ children: [
46862
+ /* @__PURE__ */ l(Je, { title: "그룹코드", children: /* @__PURE__ */ l(
46863
+ jn,
46864
+ {
46865
+ type: "primary",
46866
+ onClick: () => {
46867
+ f(!1), T(!1), d(!0), setTimeout(() => {
46868
+ A.current?.resetFields(), A.current?.setFieldsValue({
46869
+ crprCd: "100",
46870
+ sysCd: __SYS_CD__ || "",
46871
+ appItCd: "CM",
46872
+ appCd: "CM",
46873
+ enblYn: "Y",
46874
+ sortOrd: 0
46875
+ });
46876
+ }, 100);
46877
+ },
46878
+ children: "그룹코드 등록"
46879
+ }
46880
+ ) }),
46881
+ /* @__PURE__ */ l(
46882
+ "div",
46883
+ {
46884
+ style: {
46885
+ flex: "0 0 45%",
46886
+ overflow: "hidden",
46887
+ display: "flex",
46888
+ flexDirection: "column"
46889
+ },
46890
+ children: /* @__PURE__ */ l(
46891
+ nt,
46892
+ {
46893
+ ref: j,
46894
+ gridColumns: he,
46895
+ gridOptions: Ce,
46896
+ gridEvents: ce(
46897
+ () => ({
46898
+ onCurrentRowChanged: (Y, ie, ne) => {
46899
+ if (ne < 0) {
46900
+ b(null);
46901
+ return;
46902
+ }
46903
+ const Se = j.current?.dp?.getValue(ne, "sysCd") || "", fe = j.current?.dp?.getValue(ne, "appItCd") || "", be = j.current?.dp?.getValue(ne, "appCd") || "", ve = j.current?.dp?.getValue(ne, "grpCd") || "", $e = j.current?.dp?.getJsonRow(ne);
46904
+ b($e), ve && Ae.SCMCODE00102({
46905
+ sysCd: Se,
46906
+ appItCd: fe,
46907
+ appCd: be,
46908
+ grpCd: ve
46909
+ });
46910
+ }
46911
+ }),
46912
+ [Ae]
46913
+ ),
46914
+ renderers: [
46915
+ { name: "moreActions", renderer: F }
46916
+ ]
46917
+ }
46918
+ )
46919
+ }
46920
+ ),
46921
+ /* @__PURE__ */ v(
46922
+ "div",
46923
+ {
46924
+ style: {
46925
+ flex: "1 1 auto",
46926
+ overflow: "hidden",
46927
+ display: "flex",
46928
+ flexDirection: "column",
46929
+ marginTop: 12
46930
+ },
46931
+ children: [
46932
+ /* @__PURE__ */ l(Je, { title: "상세코드", children: /* @__PURE__ */ l(
46933
+ jn,
46934
+ {
46935
+ type: "primary",
46936
+ onClick: () => {
46937
+ if (!g) {
46938
+ Ee.warning("그룹코드를 먼저 선택하세요.");
46939
+ return;
46940
+ }
46941
+ y(!1), h(!0), S(null), _({}), P([
46942
+ {
46943
+ dtlCd: "",
46944
+ cmmnCd: "",
46945
+ cmmnCdNm: "",
46946
+ cmmnCdClr: "",
46947
+ cmmnAbrv: "",
46948
+ enblYn: "Y",
46949
+ sortOrd: 0,
46950
+ rmrk: ""
46951
+ }
46952
+ ]);
46953
+ },
46954
+ disabled: !g,
46955
+ children: "상세코드 등록"
46956
+ }
46957
+ ) }),
46958
+ /* @__PURE__ */ l(
46959
+ "div",
46960
+ {
46961
+ style: {
46962
+ flex: 1,
46963
+ overflow: "hidden",
46964
+ display: "flex",
46965
+ flexDirection: "column"
46966
+ },
46967
+ children: /* @__PURE__ */ l(
46968
+ nt,
46969
+ {
46970
+ ref: M,
46971
+ gridColumns: de,
46972
+ gridOptions: V,
46973
+ renderers: [
46974
+ { name: "moreActions", renderer: Q },
46975
+ { name: "sysLockYn", renderer: oe }
46976
+ ]
46977
+ }
46978
+ )
46979
+ }
46980
+ )
46981
+ ]
46982
+ }
46983
+ )
46574
46984
  ]
46575
46985
  }
46576
- ) })
46577
- ] })
46578
- ] })
46579
- ] }),
46986
+ )
46987
+ ]
46988
+ }
46989
+ ),
46580
46990
  /* @__PURE__ */ l(
46581
46991
  xi,
46582
46992
  {
@@ -46623,7 +47033,10 @@ const Yi = ["#4285F4", "#34A853", "#FBBC05", "#EA4335", "#9C27B0", "#00ACC1", "#
46623
47033
  }
46624
47034
  await Ae.SCMCODE00201(u ? "U" : "I", ie), d(!1), f(!1), T(!1), A.current?.resetFields();
46625
47035
  } catch (Y) {
46626
- console.error(u ? "그룹코드 수정 실패:" : "그룹코드 등록 실패:", Y);
47036
+ console.error(
47037
+ u ? "그룹코드 수정 실패:" : "그룹코드 등록 실패:",
47038
+ Y
47039
+ );
46627
47040
  }
46628
47041
  },
46629
47042
  children: "저장"
@@ -46651,7 +47064,9 @@ const Yi = ["#4285F4", "#34A853", "#FBBC05", "#EA4335", "#9C27B0", "#00ACC1", "#
46651
47064
  itemProps: {
46652
47065
  label: "시스템코드",
46653
47066
  name: "sysCd",
46654
- rules: [{ required: !0, message: "시스템코드를 선택하세요." }]
47067
+ rules: [
47068
+ { required: !0, message: "시스템코드를 선택하세요." }
47069
+ ]
46655
47070
  },
46656
47071
  selectProps: {
46657
47072
  placeholder: "시스템코드를 선택하세요",
@@ -46666,7 +47081,9 @@ const Yi = ["#4285F4", "#34A853", "#FBBC05", "#EA4335", "#9C27B0", "#00ACC1", "#
46666
47081
  itemProps: {
46667
47082
  label: "앱 통합코드",
46668
47083
  name: "appItCd",
46669
- rules: [{ required: !0, message: "앱 통합코드를 선택하세요." }]
47084
+ rules: [
47085
+ { required: !0, message: "앱 통합코드를 선택하세요." }
47086
+ ]
46670
47087
  },
46671
47088
  selectProps: {
46672
47089
  placeholder: "앱 통합코드를 선택하세요",
@@ -46717,17 +47134,26 @@ const Yi = ["#4285F4", "#34A853", "#FBBC05", "#EA4335", "#9C27B0", "#00ACC1", "#
46717
47134
  Y.preventDefault();
46718
47135
  return;
46719
47136
  }
46720
- Y.target.value.length >= 5 && !["Backspace", "Delete", "ArrowLeft", "ArrowRight", "Tab", "Enter"].includes(Y.key) && (Y.preventDefault(), Ee.warning("입력은 다섯글자까지입니다."));
47137
+ Y.target.value.length >= 5 && ![
47138
+ "Backspace",
47139
+ "Delete",
47140
+ "ArrowLeft",
47141
+ "ArrowRight",
47142
+ "Tab",
47143
+ "Enter"
47144
+ ].includes(Y.key) && (Y.preventDefault(), Ee.warning("입력은 다섯글자까지입니다."));
46721
47145
  },
46722
47146
  onChange: (Y) => {
46723
47147
  if (u) {
46724
47148
  Y.preventDefault();
46725
47149
  return;
46726
47150
  }
46727
- Y.target.value.length > 5 && (Ee.warning("입력은 다섯글자까지입니다."), Y.target.value = Y.target.value.slice(0, 5)), $ && T(!1), A.current?.getFieldError("grpCd")?.length && A.current?.setFields([{
46728
- name: "grpCd",
46729
- errors: []
46730
- }]);
47151
+ Y.target.value.length > 5 && (Ee.warning("입력은 다섯글자까지입니다."), Y.target.value = Y.target.value.slice(0, 5)), $ && T(!1), A.current?.getFieldError("grpCd")?.length && A.current?.setFields([
47152
+ {
47153
+ name: "grpCd",
47154
+ errors: []
47155
+ }
47156
+ ]);
46731
47157
  },
46732
47158
  onBlur: J
46733
47159
  }
@@ -46740,7 +47166,9 @@ const Yi = ["#4285F4", "#34A853", "#FBBC05", "#EA4335", "#9C27B0", "#00ACC1", "#
46740
47166
  itemProps: {
46741
47167
  label: "그룹명칭",
46742
47168
  name: "grpNm",
46743
- rules: [{ required: !0, message: "그룹명칭을 입력하세요." }]
47169
+ rules: [
47170
+ { required: !0, message: "그룹명칭을 입력하세요." }
47171
+ ]
46744
47172
  },
46745
47173
  inputProps: {
46746
47174
  placeholder: "그룹명칭을 입력하세요"
@@ -46820,7 +47248,11 @@ const Yi = ["#4285F4", "#34A853", "#FBBC05", "#EA4335", "#9C27B0", "#00ACC1", "#
46820
47248
  if (m)
46821
47249
  ie = !0;
46822
47250
  else if (Y.length > 0) {
46823
- const ne = Y.every((fe) => fe?.dtlCd?.trim()), Se = Y.every((fe, be) => fe?.dtlCd?.trim() && I[be] === !0);
47251
+ const ne = Y.every(
47252
+ (fe) => fe?.dtlCd?.trim()
47253
+ ), Se = Y.every(
47254
+ (fe, be) => fe?.dtlCd?.trim() && I[be] === !0
47255
+ );
46824
47256
  ie = ne && Se;
46825
47257
  }
46826
47258
  return /* @__PURE__ */ l(
@@ -46833,8 +47265,12 @@ const Yi = ["#4285F4", "#34A853", "#FBBC05", "#EA4335", "#9C27B0", "#00ACC1", "#
46833
47265
  const ne = await R.current?.validateFields();
46834
47266
  if (!ne) return;
46835
47267
  if (!m && ne.details) {
46836
- if (!ne.details.every((be, ve) => !be.dtlCd?.trim() || I[ve] === !0)) {
46837
- Ee.warning("모든 상세코드의 중복체크를 완료해주세요.");
47268
+ if (!ne.details.every(
47269
+ (be, ve) => !be.dtlCd?.trim() || I[ve] === !0
47270
+ )) {
47271
+ Ee.warning(
47272
+ "모든 상세코드의 중복체크를 완료해주세요."
47273
+ );
46838
47274
  return;
46839
47275
  }
46840
47276
  for (let be = 0; be < ne.details.length; be++) {
@@ -46843,24 +47279,30 @@ const Yi = ["#4285F4", "#34A853", "#FBBC05", "#EA4335", "#9C27B0", "#00ACC1", "#
46843
47279
  if (ne.details.some(
46844
47280
  (ue, _e) => _e !== be && ue.dtlCd?.trim() === $e
46845
47281
  )) {
46846
- R.current?.setFields([{
46847
- name: ["details", be, "dtlCd"],
46848
- errors: ["같은 상세코드가 이미 입력되었습니다."]
46849
- }]), Ee.error("중복된 상세코드가 있습니다.");
47282
+ R.current?.setFields([
47283
+ {
47284
+ name: ["details", be, "dtlCd"],
47285
+ errors: [
47286
+ "같은 상세코드가 이미 입력되었습니다."
47287
+ ]
47288
+ }
47289
+ ]), Ee.error("중복된 상세코드가 있습니다.");
46850
47290
  return;
46851
47291
  }
46852
47292
  }
46853
47293
  }
46854
- const Se = m ? [{
46855
- ...ne,
46856
- crprCd: ne.crprCd || "100",
46857
- sysCd: ne.sysCd || "",
46858
- appItCd: ne.appItCd || g?.appItCd || "CM",
46859
- appCd: ne.appCd || g?.appCd || "CM",
46860
- grpCd: ne.grpCd || "",
46861
- enblYn: ne.enblYn === "Y" ? "Y" : "N",
46862
- sysLockYn: ne.sysLockYn === "Y" ? "Y" : "N"
46863
- }] : (ne.details || []).map((fe) => {
47294
+ const Se = m ? [
47295
+ {
47296
+ ...ne,
47297
+ crprCd: ne.crprCd || "100",
47298
+ sysCd: ne.sysCd || "",
47299
+ appItCd: ne.appItCd || g?.appItCd || "CM",
47300
+ appCd: ne.appCd || g?.appCd || "CM",
47301
+ grpCd: ne.grpCd || "",
47302
+ enblYn: ne.enblYn === "Y" ? "Y" : "N",
47303
+ sysLockYn: ne.sysLockYn === "Y" ? "Y" : "N"
47304
+ }
47305
+ ] : (ne.details || []).map((fe) => {
46864
47306
  const be = g?.sysCd || "", ve = g?.grpCd || "", $e = fe.dtlCd || "", qe = `${be}${ve}${$e}`;
46865
47307
  return {
46866
47308
  ...fe,
@@ -46881,7 +47323,10 @@ const Yi = ["#4285F4", "#34A853", "#FBBC05", "#EA4335", "#9C27B0", "#00ACC1", "#
46881
47323
  Se
46882
47324
  ), h(!1), y(!1), P([]), S(null), _({}), R.current?.resetFields();
46883
47325
  } catch (ne) {
46884
- console.error(m ? "상세코드 수정 실패:" : "상세코드 등록 실패:", ne);
47326
+ console.error(
47327
+ m ? "상세코드 수정 실패:" : "상세코드 등록 실패:",
47328
+ ne
47329
+ );
46885
47330
  }
46886
47331
  },
46887
47332
  children: "저장"
@@ -46889,461 +47334,529 @@ const Yi = ["#4285F4", "#34A853", "#FBBC05", "#EA4335", "#9C27B0", "#00ACC1", "#
46889
47334
  );
46890
47335
  } })
46891
47336
  ] }),
46892
- children: /* @__PURE__ */ v(
46893
- oo,
46894
- {
46895
- ref: R,
46896
- style: { padding: "10px 20px" },
46897
- children: [
46898
- g && /* @__PURE__ */ l(De, { style: { marginBottom: 16, background: "#f5f5f5" }, children: /* @__PURE__ */ v(se, { gutter: 16, children: [
46899
- /* @__PURE__ */ l(U, { span: 8, children: /* @__PURE__ */ v("div", { children: [
46900
- /* @__PURE__ */ l("strong", { children: "시스템코드:" }),
46901
- " ",
46902
- g.sysCd || ""
46903
- ] }) }),
46904
- /* @__PURE__ */ l(U, { span: 8, children: /* @__PURE__ */ v("div", { children: [
46905
- /* @__PURE__ */ l("strong", { children: "그룹코드:" }),
46906
- " ",
46907
- g.grpCd || ""
46908
- ] }) }),
46909
- /* @__PURE__ */ l(U, { span: 8, children: /* @__PURE__ */ v("div", { children: [
46910
- /* @__PURE__ */ l("strong", { children: "그룹명칭:" }),
46911
- " ",
46912
- g.grpNm || ""
46913
- ] }) })
46914
- ] }) }),
46915
- m ? (
46916
- // 수정 모드: 단건 폼
46917
- /* @__PURE__ */ v(dt, { children: [
46918
- /* @__PURE__ */ v(se, { gutter: 16, children: [
46919
- /* @__PURE__ */ l(U, { span: 12, children: /* @__PURE__ */ l(
46920
- We,
46921
- {
46922
- itemProps: {
46923
- label: "시스템코드",
46924
- name: "sysCd"
46925
- },
46926
- inputProps: {
46927
- disabled: !0
46928
- }
46929
- }
46930
- ) }),
46931
- /* @__PURE__ */ l(U, { span: 12, children: /* @__PURE__ */ l(
46932
- We,
46933
- {
46934
- itemProps: {
46935
- label: "그룹코드",
46936
- name: "grpCd"
46937
- },
46938
- inputProps: {
46939
- disabled: !0
46940
- }
46941
- }
46942
- ) })
46943
- ] }),
46944
- /* @__PURE__ */ v(se, { gutter: 16, children: [
46945
- /* @__PURE__ */ l(U, { span: 12, children: /* @__PURE__ */ l(
46946
- We,
46947
- {
46948
- itemProps: {
46949
- label: "상세코드",
46950
- name: "dtlCd",
46951
- rules: [{ required: !0, message: "상세코드를 입력하세요." }]
46952
- },
46953
- inputProps: {
46954
- placeholder: "상세코드를 입력하세요",
46955
- disabled: !0,
46956
- suffix: k[-1] ? /* @__PURE__ */ l(va, { spin: !0, style: { color: "#1890ff" } }) : I[-1] ? /* @__PURE__ */ l(ga, { style: { color: "#52c41a" } }) : void 0
46957
- }
46958
- }
46959
- ) }),
46960
- /* @__PURE__ */ l(U, { span: 12, children: /* @__PURE__ */ l(
46961
- We,
46962
- {
46963
- itemProps: {
46964
- label: "공통코드",
46965
- name: "cmmnCd",
46966
- rules: [{ required: !0, message: "공통코드를 입력하세요." }]
46967
- },
46968
- inputProps: {
46969
- placeholder: "공통코드를 입력하세요",
46970
- disabled: !0
46971
- }
46972
- }
46973
- ) })
46974
- ] }),
46975
- /* @__PURE__ */ l(se, { gutter: 16, children: /* @__PURE__ */ l(U, { span: 24, children: /* @__PURE__ */ l(
46976
- We,
46977
- {
46978
- itemProps: {
46979
- label: "공통코드명",
46980
- name: "cmmnCdNm",
46981
- rules: [{ required: !0, message: "공통코드명을 입력하세요." }]
46982
- },
46983
- inputProps: {
46984
- placeholder: "공통코드명을 입력하세요"
46985
- }
47337
+ children: /* @__PURE__ */ v(oo, { ref: R, style: { padding: "10px 20px" }, children: [
47338
+ g && /* @__PURE__ */ l(De, { style: { marginBottom: 16, background: "#f5f5f5" }, children: /* @__PURE__ */ v(se, { gutter: 16, children: [
47339
+ /* @__PURE__ */ l(U, { span: 8, children: /* @__PURE__ */ v("div", { children: [
47340
+ /* @__PURE__ */ l("strong", { children: "시스템코드:" }),
47341
+ " ",
47342
+ g.sysCd || ""
47343
+ ] }) }),
47344
+ /* @__PURE__ */ l(U, { span: 8, children: /* @__PURE__ */ v("div", { children: [
47345
+ /* @__PURE__ */ l("strong", { children: "그룹코드:" }),
47346
+ " ",
47347
+ g.grpCd || ""
47348
+ ] }) }),
47349
+ /* @__PURE__ */ l(U, { span: 8, children: /* @__PURE__ */ v("div", { children: [
47350
+ /* @__PURE__ */ l("strong", { children: "그룹명칭:" }),
47351
+ " ",
47352
+ g.grpNm || ""
47353
+ ] }) })
47354
+ ] }) }),
47355
+ m ? (
47356
+ // 수정 모드: 단건 폼
47357
+ /* @__PURE__ */ v(dt, { children: [
47358
+ /* @__PURE__ */ v(se, { gutter: 16, children: [
47359
+ /* @__PURE__ */ l(U, { span: 12, children: /* @__PURE__ */ l(
47360
+ We,
47361
+ {
47362
+ itemProps: {
47363
+ label: "시스템코드",
47364
+ name: "sysCd"
47365
+ },
47366
+ inputProps: {
47367
+ disabled: !0
47368
+ }
47369
+ }
47370
+ ) }),
47371
+ /* @__PURE__ */ l(U, { span: 12, children: /* @__PURE__ */ l(
47372
+ We,
47373
+ {
47374
+ itemProps: {
47375
+ label: "그룹코드",
47376
+ name: "grpCd"
47377
+ },
47378
+ inputProps: {
47379
+ disabled: !0
47380
+ }
47381
+ }
47382
+ ) })
47383
+ ] }),
47384
+ /* @__PURE__ */ v(se, { gutter: 16, children: [
47385
+ /* @__PURE__ */ l(U, { span: 12, children: /* @__PURE__ */ l(
47386
+ We,
47387
+ {
47388
+ itemProps: {
47389
+ label: "상세코드",
47390
+ name: "dtlCd",
47391
+ rules: [
47392
+ { required: !0, message: "상세코드를 입력하세요." }
47393
+ ]
47394
+ },
47395
+ inputProps: {
47396
+ placeholder: "상세코드를 입력하세요",
47397
+ disabled: !0,
47398
+ suffix: k[-1] ? /* @__PURE__ */ l(va, { spin: !0, style: { color: "#1890ff" } }) : I[-1] ? /* @__PURE__ */ l(ga, { style: { color: "#52c41a" } }) : void 0
47399
+ }
47400
+ }
47401
+ ) }),
47402
+ /* @__PURE__ */ l(U, { span: 12, children: /* @__PURE__ */ l(
47403
+ We,
47404
+ {
47405
+ itemProps: {
47406
+ label: "공통코드",
47407
+ name: "cmmnCd",
47408
+ rules: [
47409
+ { required: !0, message: "공통코드를 입력하세요." }
47410
+ ]
47411
+ },
47412
+ inputProps: {
47413
+ placeholder: "공통코드를 입력하세요",
47414
+ disabled: !0
46986
47415
  }
46987
- ) }) }),
46988
- /* @__PURE__ */ v(se, { gutter: 16, children: [
46989
- /* @__PURE__ */ l(U, { span: 12, children: /* @__PURE__ */ l(
46990
- tt,
47416
+ }
47417
+ ) })
47418
+ ] }),
47419
+ /* @__PURE__ */ l(se, { gutter: 16, children: /* @__PURE__ */ l(U, { span: 24, children: /* @__PURE__ */ l(
47420
+ We,
47421
+ {
47422
+ itemProps: {
47423
+ label: "공통코드명",
47424
+ name: "cmmnCdNm",
47425
+ rules: [
47426
+ { required: !0, message: "공통코드명을 입력하세요." }
47427
+ ]
47428
+ },
47429
+ inputProps: {
47430
+ placeholder: "공통코드명을 입력하세요"
47431
+ }
47432
+ }
47433
+ ) }) }),
47434
+ /* @__PURE__ */ v(se, { gutter: 16, children: [
47435
+ /* @__PURE__ */ l(U, { span: 12, children: /* @__PURE__ */ l(
47436
+ tt,
47437
+ {
47438
+ label: "색상",
47439
+ name: "cmmnCdClr",
47440
+ getValueFromEvent: (Y) => Y && typeof Y.toHexString == "function" ? Y.toHexString() : Y || "",
47441
+ children: /* @__PURE__ */ l(
47442
+ A0,
46991
47443
  {
46992
- label: "색상",
46993
- name: "cmmnCdClr",
46994
- getValueFromEvent: (Y) => Y && typeof Y.toHexString == "function" ? Y.toHexString() : Y || "",
46995
- children: /* @__PURE__ */ l(
46996
- A0,
47444
+ format: "hex",
47445
+ showText: !0,
47446
+ presets: [
46997
47447
  {
46998
- format: "hex",
46999
- showText: !0,
47000
- presets: [
47001
- {
47002
- label: "추천 색상",
47003
- colors: [
47004
- "#FF4D4F",
47005
- "#FF7A45",
47006
- "#FFA940",
47007
- "#FFC53D",
47008
- "#FFEC3D",
47009
- "#BAE637",
47010
- "#73D13D",
47011
- "#36CFC9",
47012
- "#40A9FF",
47013
- "#1890FF",
47014
- "#2F54EB",
47015
- "#722ED1",
47016
- "#EB2F96",
47017
- "#F5222D",
47018
- "#FA541C",
47019
- "#FA8C16",
47020
- "#FADB14",
47021
- "#A0D911",
47022
- "#13C2C2",
47023
- "#096DD9",
47024
- "#0050B3",
47025
- "#531DAB",
47026
- "#C41D7F",
47027
- "#CF1322",
47028
- "#D4380D",
47029
- "#D46B08",
47030
- "#D4B106",
47031
- "#7CB305",
47032
- "#08979C",
47033
- "#0050B3"
47034
- ]
47035
- }
47448
+ label: "추천 색상",
47449
+ colors: [
47450
+ "#FF4D4F",
47451
+ "#FF7A45",
47452
+ "#FFA940",
47453
+ "#FFC53D",
47454
+ "#FFEC3D",
47455
+ "#BAE637",
47456
+ "#73D13D",
47457
+ "#36CFC9",
47458
+ "#40A9FF",
47459
+ "#1890FF",
47460
+ "#2F54EB",
47461
+ "#722ED1",
47462
+ "#EB2F96",
47463
+ "#F5222D",
47464
+ "#FA541C",
47465
+ "#FA8C16",
47466
+ "#FADB14",
47467
+ "#A0D911",
47468
+ "#13C2C2",
47469
+ "#096DD9",
47470
+ "#0050B3",
47471
+ "#531DAB",
47472
+ "#C41D7F",
47473
+ "#CF1322",
47474
+ "#D4380D",
47475
+ "#D46B08",
47476
+ "#D4B106",
47477
+ "#7CB305",
47478
+ "#08979C",
47479
+ "#0050B3"
47036
47480
  ]
47037
47481
  }
47038
- )
47039
- }
47040
- ) }),
47041
- /* @__PURE__ */ l(U, { span: 12, children: /* @__PURE__ */ l(
47042
- We,
47043
- {
47044
- itemProps: {
47045
- label: "약어",
47046
- name: "cmmnAbrv"
47047
- },
47048
- inputProps: {
47049
- placeholder: "약어를 입력하세요"
47050
- }
47051
- }
47052
- ) })
47053
- ] }),
47054
- /* @__PURE__ */ v(se, { gutter: 16, children: [
47055
- /* @__PURE__ */ l(U, { span: 12, children: /* @__PURE__ */ l(
47056
- tn,
47057
- {
47058
- itemProps: {
47059
- label: "사용여부",
47060
- name: "enblYn",
47061
- getValueProps: (Y) => ({ checked: Y === "Y" })
47062
- },
47063
- inputProps: {
47064
- title: "사용",
47065
- format: "YN"
47066
- }
47067
- }
47068
- ) }),
47069
- /* @__PURE__ */ l(U, { span: 12, children: /* @__PURE__ */ l(
47070
- Mr,
47071
- {
47072
- itemProps: {
47073
- label: "정렬순서",
47074
- name: "sortOrd"
47075
- },
47076
- inputProps: {
47077
- placeholder: "정렬순서를 입력하세요",
47078
- min: 0
47079
- }
47482
+ ]
47080
47483
  }
47081
- ) })
47082
- ] }),
47083
- /* @__PURE__ */ l(se, { gutter: 16, children: /* @__PURE__ */ l(U, { span: 24, children: /* @__PURE__ */ l(
47084
- Pr,
47484
+ )
47485
+ }
47486
+ ) }),
47487
+ /* @__PURE__ */ l(U, { span: 12, children: /* @__PURE__ */ l(
47488
+ We,
47489
+ {
47490
+ itemProps: {
47491
+ label: "약어",
47492
+ name: "cmmnAbrv"
47493
+ },
47494
+ inputProps: {
47495
+ placeholder: "약어를 입력하세요"
47496
+ }
47497
+ }
47498
+ ) })
47499
+ ] }),
47500
+ /* @__PURE__ */ v(se, { gutter: 16, children: [
47501
+ /* @__PURE__ */ l(U, { span: 12, children: /* @__PURE__ */ l(
47502
+ tn,
47503
+ {
47504
+ itemProps: {
47505
+ label: "사용여부",
47506
+ name: "enblYn",
47507
+ getValueProps: (Y) => ({ checked: Y === "Y" })
47508
+ },
47509
+ inputProps: {
47510
+ title: "사용",
47511
+ format: "YN"
47512
+ }
47513
+ }
47514
+ ) }),
47515
+ /* @__PURE__ */ l(U, { span: 12, children: /* @__PURE__ */ l(
47516
+ Mr,
47517
+ {
47518
+ itemProps: {
47519
+ label: "정렬순서",
47520
+ name: "sortOrd"
47521
+ },
47522
+ inputProps: {
47523
+ placeholder: "정렬순서를 입력하세요",
47524
+ min: 0
47525
+ }
47526
+ }
47527
+ ) })
47528
+ ] }),
47529
+ /* @__PURE__ */ l(se, { gutter: 16, children: /* @__PURE__ */ l(U, { span: 24, children: /* @__PURE__ */ l(
47530
+ Pr,
47531
+ {
47532
+ itemProps: {
47533
+ label: "비고",
47534
+ name: "rmrk"
47535
+ },
47536
+ inputProps: {
47537
+ placeholder: "비고를 입력하세요",
47538
+ rows: 3
47539
+ }
47540
+ }
47541
+ ) }) })
47542
+ ] })
47543
+ ) : (
47544
+ // 신규 모드: 여러건 등록 가능
47545
+ /* @__PURE__ */ l(rt.List, { name: "details", initialValue: w, children: (Y, { add: ie, remove: ne }) => /* @__PURE__ */ v(dt, { children: [
47546
+ Y.map((Se, fe) => {
47547
+ const be = E === fe, ve = g?.sysCd || "", $e = g?.grpCd || "";
47548
+ return /* @__PURE__ */ l(De, { style: { marginBottom: 16 }, children: /* @__PURE__ */ v(se, { gutter: 16, children: [
47549
+ /* @__PURE__ */ l(U, { span: 20, children: /* @__PURE__ */ l(
47550
+ rt.Item,
47085
47551
  {
47086
- itemProps: {
47087
- label: "비고",
47088
- name: "rmrk"
47552
+ noStyle: !0,
47553
+ shouldUpdate: (qe, ue) => {
47554
+ const _e = qe?.details?.[Se.name]?.dtlCd, Ge = ue?.details?.[Se.name]?.dtlCd;
47555
+ return _e !== Ge;
47089
47556
  },
47090
- inputProps: {
47091
- placeholder: "비고를 입력하세요",
47092
- rows: 3
47093
- }
47094
- }
47095
- ) }) })
47096
- ] })
47097
- ) : (
47098
- // 신규 모드: 여러건 등록 가능
47099
- /* @__PURE__ */ l(rt.List, { name: "details", initialValue: w, children: (Y, { add: ie, remove: ne }) => /* @__PURE__ */ v(dt, { children: [
47100
- Y.map((Se, fe) => {
47101
- const be = E === fe, ve = g?.sysCd || "", $e = g?.grpCd || "";
47102
- return /* @__PURE__ */ l(
47103
- De,
47104
- {
47105
- style: { marginBottom: 16 },
47106
- children: /* @__PURE__ */ v(se, { gutter: 16, children: [
47107
- /* @__PURE__ */ l(U, { span: 20, children: /* @__PURE__ */ l(
47108
- rt.Item,
47109
- {
47110
- noStyle: !0,
47111
- shouldUpdate: (qe, ue) => {
47112
- const _e = qe?.details?.[Se.name]?.dtlCd, Ge = ue?.details?.[Se.name]?.dtlCd;
47113
- return _e !== Ge;
47114
- },
47115
- children: ({ getFieldValue: qe }) => {
47116
- const ue = qe(["details", Se.name, "dtlCd"]) || "", _e = `${ve}${$e}${ue}`;
47117
- return ue && R.current && qe(["details", Se.name, "cmmnCd"]) !== _e && setTimeout(() => {
47118
- R.current?.setFieldValue(["details", Se.name, "cmmnCd"], _e);
47119
- }, 0), /* @__PURE__ */ v(dt, { children: [
47120
- /* @__PURE__ */ v(se, { gutter: 16, children: [
47121
- /* @__PURE__ */ l(U, { span: 12, children: /* @__PURE__ */ l(
47122
- We,
47123
- {
47124
- itemProps: {
47125
- label: "상세코드",
47126
- name: [Se.name, "dtlCd"],
47127
- rules: [{ required: !0, message: "상세코드를 입력하세요." }]
47128
- },
47129
- inputProps: {
47130
- placeholder: "상세코드를 입력하세요",
47131
- suffix: k[fe] ? /* @__PURE__ */ l(va, { spin: !0, style: { color: "#1890ff" } }) : I[fe] ? /* @__PURE__ */ l(ga, { style: { color: "#52c41a" } }) : void 0,
47132
- onChange: (Ge) => {
47133
- I[fe] && _((Ne) => {
47134
- const Be = { ...Ne };
47135
- return delete Be[fe], Be;
47136
- }), R.current?.getFieldError(["details", fe, "dtlCd"])?.length && R.current?.setFields([{
47137
- name: ["details", fe, "dtlCd"],
47138
- errors: []
47139
- }]);
47140
- },
47141
- onBlur: (Ge) => H(Ge, fe)
47142
- }
47143
- }
47144
- ) }),
47145
- /* @__PURE__ */ l(U, { span: 12, children: /* @__PURE__ */ l(
47146
- We,
47147
- {
47148
- itemProps: {
47149
- label: "공통코드",
47150
- name: [Se.name, "cmmnCd"]
47151
- },
47152
- inputProps: {
47153
- disabled: !0,
47154
- placeholder: "자동 생성됩니다",
47155
- value: _e
47156
- }
47157
- }
47158
- ) })
47159
- ] }),
47160
- /* @__PURE__ */ l(se, { gutter: 16, children: /* @__PURE__ */ l(U, { span: 24, children: /* @__PURE__ */ l(
47161
- We,
47557
+ children: ({ getFieldValue: qe }) => {
47558
+ const ue = qe([
47559
+ "details",
47560
+ Se.name,
47561
+ "dtlCd"
47562
+ ]) || "", _e = `${ve}${$e}${ue}`;
47563
+ return ue && R.current && qe([
47564
+ "details",
47565
+ Se.name,
47566
+ "cmmnCd"
47567
+ ]) !== _e && setTimeout(() => {
47568
+ R.current?.setFieldValue(
47569
+ ["details", Se.name, "cmmnCd"],
47570
+ _e
47571
+ );
47572
+ }, 0), /* @__PURE__ */ v(dt, { children: [
47573
+ /* @__PURE__ */ v(se, { gutter: 16, children: [
47574
+ /* @__PURE__ */ l(U, { span: 12, children: /* @__PURE__ */ l(
47575
+ We,
47576
+ {
47577
+ itemProps: {
47578
+ label: "상세코드",
47579
+ name: [Se.name, "dtlCd"],
47580
+ rules: [
47162
47581
  {
47163
- itemProps: {
47164
- label: "공통코드명",
47165
- name: [Se.name, "cmmnCdNm"],
47166
- rules: [{ required: !0, message: "공통코드명을 입력하세요." }]
47167
- },
47168
- inputProps: {
47169
- placeholder: "공통코드명을 입력하세요"
47170
- }
47582
+ required: !0,
47583
+ message: "상세코드를 입력하세요."
47171
47584
  }
47172
- ) }) }),
47173
- be && /* @__PURE__ */ v(dt, { children: [
47174
- /* @__PURE__ */ v(se, { gutter: 16, children: [
47175
- /* @__PURE__ */ l(U, { span: 12, children: /* @__PURE__ */ l(
47176
- tt,
47177
- {
47178
- label: "색상",
47179
- name: [Se.name, "cmmnCdClr"],
47180
- getValueFromEvent: (Ge) => Ge && typeof Ge.toHexString == "function" ? Ge.toHexString() : Ge || "",
47181
- children: /* @__PURE__ */ l(
47182
- A0,
47183
- {
47184
- format: "hex",
47185
- showText: !0,
47186
- presets: [
47187
- {
47188
- label: "추천 색상",
47189
- colors: [
47190
- "#FF4D4F",
47191
- "#FF7A45",
47192
- "#FFA940",
47193
- "#FFC53D",
47194
- "#FFEC3D",
47195
- "#BAE637",
47196
- "#73D13D",
47197
- "#36CFC9",
47198
- "#40A9FF",
47199
- "#1890FF",
47200
- "#2F54EB",
47201
- "#722ED1",
47202
- "#EB2F96",
47203
- "#F5222D",
47204
- "#FA541C",
47205
- "#FA8C16",
47206
- "#FADB14",
47207
- "#A0D911",
47208
- "#13C2C2",
47209
- "#096DD9",
47210
- "#0050B3",
47211
- "#531DAB",
47212
- "#C41D7F",
47213
- "#CF1322",
47214
- "#D4380D",
47215
- "#D46B08",
47216
- "#D4B106",
47217
- "#7CB305",
47218
- "#08979C",
47219
- "#0050B3"
47220
- ]
47221
- }
47222
- ]
47223
- }
47224
- )
47225
- }
47226
- ) }),
47227
- /* @__PURE__ */ l(U, { span: 12, children: /* @__PURE__ */ l(
47228
- We,
47229
- {
47230
- itemProps: {
47231
- label: "약어",
47232
- name: [Se.name, "cmmnAbrv"]
47233
- },
47234
- inputProps: {
47235
- placeholder: "약어를 입력하세요"
47236
- }
47237
- }
47238
- ) })
47239
- ] }),
47240
- /* @__PURE__ */ v(se, { gutter: 16, children: [
47241
- /* @__PURE__ */ l(U, { span: 12, children: /* @__PURE__ */ l(
47242
- tn,
47243
- {
47244
- itemProps: {
47245
- label: "사용여부",
47246
- name: [Se.name, "enblYn"],
47247
- getValueProps: (Ge) => ({ checked: Ge === "Y" })
47248
- },
47249
- inputProps: {
47250
- title: "사용",
47251
- format: "YN"
47252
- }
47253
- }
47254
- ) }),
47255
- /* @__PURE__ */ l(U, { span: 12, children: /* @__PURE__ */ l(
47256
- Mr,
47585
+ ]
47586
+ },
47587
+ inputProps: {
47588
+ placeholder: "상세코드를 입력하세요",
47589
+ suffix: k[fe] ? /* @__PURE__ */ l(
47590
+ va,
47591
+ {
47592
+ spin: !0,
47593
+ style: { color: "#1890ff" }
47594
+ }
47595
+ ) : I[fe] ? /* @__PURE__ */ l(
47596
+ ga,
47597
+ {
47598
+ style: { color: "#52c41a" }
47599
+ }
47600
+ ) : void 0,
47601
+ onChange: (Ge) => {
47602
+ I[fe] && _((Ne) => {
47603
+ const Be = { ...Ne };
47604
+ return delete Be[fe], Be;
47605
+ }), R.current?.getFieldError(
47606
+ ["details", fe, "dtlCd"]
47607
+ )?.length && R.current?.setFields(
47608
+ [
47257
47609
  {
47258
- itemProps: {
47259
- label: "정렬순서",
47260
- name: [Se.name, "sortOrd"]
47261
- },
47262
- inputProps: {
47263
- placeholder: "정렬순서를 입력하세요",
47264
- min: 0
47265
- }
47266
- }
47267
- ) })
47268
- ] }),
47269
- /* @__PURE__ */ l(se, { gutter: 16, children: /* @__PURE__ */ l(U, { span: 24, children: /* @__PURE__ */ l(
47270
- Pr,
47271
- {
47272
- itemProps: {
47273
- label: "비고",
47274
- name: [Se.name, "rmrk"]
47275
- },
47276
- inputProps: {
47277
- placeholder: "비고를 입력하세요",
47278
- rows: 3
47610
+ name: [
47611
+ "details",
47612
+ fe,
47613
+ "dtlCd"
47614
+ ],
47615
+ errors: []
47279
47616
  }
47280
- }
47281
- ) }) })
47282
- ] })
47283
- ] });
47617
+ ]
47618
+ );
47619
+ },
47620
+ onBlur: (Ge) => H(Ge, fe)
47621
+ }
47284
47622
  }
47285
- }
47286
- ) }),
47287
- /* @__PURE__ */ l(U, { span: 4, style: { display: "flex", alignItems: "flex-start", justifyContent: "flex-end", paddingTop: 30 }, children: /* @__PURE__ */ v(Le, { size: "small", children: [
47288
- /* @__PURE__ */ l(
47289
- re,
47623
+ ) }),
47624
+ /* @__PURE__ */ l(U, { span: 12, children: /* @__PURE__ */ l(
47625
+ We,
47290
47626
  {
47291
- type: "link",
47292
- size: "small",
47293
- icon: be ? /* @__PURE__ */ l(zC, {}) : /* @__PURE__ */ l(FC, {}),
47294
- onClick: () => {
47295
- S(be ? null : fe);
47627
+ itemProps: {
47628
+ label: "공통코드",
47629
+ name: [Se.name, "cmmnCd"]
47296
47630
  },
47297
- style: { fontSize: "12px", padding: 0 },
47298
- children: be ? "간단입력" : "추가입력"
47631
+ inputProps: {
47632
+ disabled: !0,
47633
+ placeholder: "자동 생성됩니다",
47634
+ value: _e
47635
+ }
47299
47636
  }
47300
- ),
47301
- Y.length > 1 && /* @__PURE__ */ l(
47302
- re,
47637
+ ) })
47638
+ ] }),
47639
+ /* @__PURE__ */ l(se, { gutter: 16, children: /* @__PURE__ */ l(U, { span: 24, children: /* @__PURE__ */ l(
47640
+ We,
47641
+ {
47642
+ itemProps: {
47643
+ label: "공통코드명",
47644
+ name: [
47645
+ Se.name,
47646
+ "cmmnCdNm"
47647
+ ],
47648
+ rules: [
47649
+ {
47650
+ required: !0,
47651
+ message: "공통코드명을 입력하세요."
47652
+ }
47653
+ ]
47654
+ },
47655
+ inputProps: {
47656
+ placeholder: "공통코드명을 입력하세요"
47657
+ }
47658
+ }
47659
+ ) }) }),
47660
+ be && /* @__PURE__ */ v(dt, { children: [
47661
+ /* @__PURE__ */ v(se, { gutter: 16, children: [
47662
+ /* @__PURE__ */ l(U, { span: 12, children: /* @__PURE__ */ l(
47663
+ tt,
47664
+ {
47665
+ label: "색상",
47666
+ name: [
47667
+ Se.name,
47668
+ "cmmnCdClr"
47669
+ ],
47670
+ getValueFromEvent: (Ge) => Ge && typeof Ge.toHexString == "function" ? Ge.toHexString() : Ge || "",
47671
+ children: /* @__PURE__ */ l(
47672
+ A0,
47673
+ {
47674
+ format: "hex",
47675
+ showText: !0,
47676
+ presets: [
47677
+ {
47678
+ label: "추천 색상",
47679
+ colors: [
47680
+ "#FF4D4F",
47681
+ "#FF7A45",
47682
+ "#FFA940",
47683
+ "#FFC53D",
47684
+ "#FFEC3D",
47685
+ "#BAE637",
47686
+ "#73D13D",
47687
+ "#36CFC9",
47688
+ "#40A9FF",
47689
+ "#1890FF",
47690
+ "#2F54EB",
47691
+ "#722ED1",
47692
+ "#EB2F96",
47693
+ "#F5222D",
47694
+ "#FA541C",
47695
+ "#FA8C16",
47696
+ "#FADB14",
47697
+ "#A0D911",
47698
+ "#13C2C2",
47699
+ "#096DD9",
47700
+ "#0050B3",
47701
+ "#531DAB",
47702
+ "#C41D7F",
47703
+ "#CF1322",
47704
+ "#D4380D",
47705
+ "#D46B08",
47706
+ "#D4B106",
47707
+ "#7CB305",
47708
+ "#08979C",
47709
+ "#0050B3"
47710
+ ]
47711
+ }
47712
+ ]
47713
+ }
47714
+ )
47715
+ }
47716
+ ) }),
47717
+ /* @__PURE__ */ l(U, { span: 12, children: /* @__PURE__ */ l(
47718
+ We,
47719
+ {
47720
+ itemProps: {
47721
+ label: "약어",
47722
+ name: [
47723
+ Se.name,
47724
+ "cmmnAbrv"
47725
+ ]
47726
+ },
47727
+ inputProps: {
47728
+ placeholder: "약어를 입력하세요"
47729
+ }
47730
+ }
47731
+ ) })
47732
+ ] }),
47733
+ /* @__PURE__ */ v(se, { gutter: 16, children: [
47734
+ /* @__PURE__ */ l(U, { span: 12, children: /* @__PURE__ */ l(
47735
+ tn,
47736
+ {
47737
+ itemProps: {
47738
+ label: "사용여부",
47739
+ name: [
47740
+ Se.name,
47741
+ "enblYn"
47742
+ ],
47743
+ getValueProps: (Ge) => ({
47744
+ checked: Ge === "Y"
47745
+ })
47746
+ },
47747
+ inputProps: {
47748
+ title: "사용",
47749
+ format: "YN"
47750
+ }
47751
+ }
47752
+ ) }),
47753
+ /* @__PURE__ */ l(U, { span: 12, children: /* @__PURE__ */ l(
47754
+ Mr,
47755
+ {
47756
+ itemProps: {
47757
+ label: "정렬순서",
47758
+ name: [
47759
+ Se.name,
47760
+ "sortOrd"
47761
+ ]
47762
+ },
47763
+ inputProps: {
47764
+ placeholder: "정렬순서를 입력하세요",
47765
+ min: 0
47766
+ }
47767
+ }
47768
+ ) })
47769
+ ] }),
47770
+ /* @__PURE__ */ l(se, { gutter: 16, children: /* @__PURE__ */ l(U, { span: 24, children: /* @__PURE__ */ l(
47771
+ Pr,
47303
47772
  {
47304
- type: "link",
47305
- danger: !0,
47306
- size: "small",
47307
- icon: /* @__PURE__ */ l(Nl, {}),
47308
- onClick: () => {
47309
- ne(Se.name), E === fe && S(null);
47773
+ itemProps: {
47774
+ label: "비고",
47775
+ name: [
47776
+ Se.name,
47777
+ "rmrk"
47778
+ ]
47310
47779
  },
47311
- style: { fontSize: "12px", padding: 0 },
47312
- children: "삭제"
47780
+ inputProps: {
47781
+ placeholder: "비고를 입력하세요",
47782
+ rows: 3
47783
+ }
47313
47784
  }
47314
- )
47315
- ] }) })
47316
- ] })
47317
- },
47318
- Se.key
47319
- );
47320
- }),
47785
+ ) }) })
47786
+ ] })
47787
+ ] });
47788
+ }
47789
+ }
47790
+ ) }),
47321
47791
  /* @__PURE__ */ l(
47322
- re,
47792
+ U,
47323
47793
  {
47324
- type: "dashed",
47325
- onClick: () => {
47326
- ie({
47327
- dtlCd: "",
47328
- cmmnCd: "",
47329
- cmmnCdNm: "",
47330
- cmmnCdClr: "",
47331
- cmmnAbrv: "",
47332
- enblYn: "Y",
47333
- sortOrd: 0,
47334
- rmrk: ""
47335
- });
47794
+ span: 4,
47795
+ style: {
47796
+ display: "flex",
47797
+ alignItems: "flex-start",
47798
+ justifyContent: "flex-end",
47799
+ paddingTop: 30
47336
47800
  },
47337
- block: !0,
47338
- style: { marginTop: 16 },
47339
- children: "+ 행 추가"
47801
+ children: /* @__PURE__ */ v(Le, { size: "small", children: [
47802
+ /* @__PURE__ */ l(
47803
+ re,
47804
+ {
47805
+ type: "link",
47806
+ size: "small",
47807
+ icon: be ? /* @__PURE__ */ l(zC, {}) : /* @__PURE__ */ l(FC, {}),
47808
+ onClick: () => {
47809
+ S(
47810
+ be ? null : fe
47811
+ );
47812
+ },
47813
+ style: { fontSize: "12px", padding: 0 },
47814
+ children: be ? "간단입력" : "추가입력"
47815
+ }
47816
+ ),
47817
+ Y.length > 1 && /* @__PURE__ */ l(
47818
+ re,
47819
+ {
47820
+ type: "link",
47821
+ danger: !0,
47822
+ size: "small",
47823
+ icon: /* @__PURE__ */ l(Nl, {}),
47824
+ onClick: () => {
47825
+ ne(Se.name), E === fe && S(null);
47826
+ },
47827
+ style: { fontSize: "12px", padding: 0 },
47828
+ children: "삭제"
47829
+ }
47830
+ )
47831
+ ] })
47340
47832
  }
47341
47833
  )
47342
- ] }) })
47834
+ ] }) }, Se.key);
47835
+ }),
47836
+ /* @__PURE__ */ l(
47837
+ re,
47838
+ {
47839
+ type: "dashed",
47840
+ onClick: () => {
47841
+ ie({
47842
+ dtlCd: "",
47843
+ cmmnCd: "",
47844
+ cmmnCdNm: "",
47845
+ cmmnCdClr: "",
47846
+ cmmnAbrv: "",
47847
+ enblYn: "Y",
47848
+ sortOrd: 0,
47849
+ rmrk: ""
47850
+ });
47851
+ },
47852
+ block: !0,
47853
+ style: { marginTop: 16 },
47854
+ children: "+ 행 추가"
47855
+ }
47343
47856
  )
47344
- ]
47345
- }
47346
- )
47857
+ ] }) })
47858
+ )
47859
+ ] })
47347
47860
  }
47348
47861
  )
47349
47862
  ]