@kengic/vue 0.14.3 → 0.15.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -2870,7 +2870,7 @@ const emptyIcon = {
2870
2870
  ...t.data
2871
2871
  }, r);
2872
2872
  }
2873
- }), name = "@kengic/vue", version = "0.14.3", data$1 = {
2873
+ }), name = "@kengic/vue", version = "0.15.1", data$1 = {
2874
2874
  width: 24,
2875
2875
  height: 24,
2876
2876
  body: '<path fill="currentColor" d="M5 21q-.825 0-1.413-.588T3 19V5q0-.825.588-1.413T5 3h11.175q.4 0 .763.15t.637.425l2.85 2.85q.275.275.425.638t.15.762V12.3q-.475-.2-.988-.263T19 12.05V7.825L16.175 5H5v14h6v2H5ZM5 5v14V5Zm8 17v-1.65q0-.2.075-.388t.225-.337l5.225-5.2q.225-.225.5-.325t.55-.1q.3 0 .575.113t.5.337l.925.925q.2.225.313.5t.112.55q0 .275-.1.563t-.325.512l-5.2 5.2q-.15.15-.338.225T15.65 23H14q-.425 0-.712-.287T13 22Zm7.5-5.575l-.925-.925l.925.925Zm-6 5.075h.95l3.025-3.05l-.45-.475l-.475-.45l-3.05 3.025v.95Zm3.525-3.525l-.475-.45l.925.925l-.45-.475ZM7 10h7q.425 0 .713-.288T15 9V7q0-.425-.288-.713T14 6H7q-.425 0-.713.288T6 7v2q0 .425.288.713T7 10Zm5 8h.1l2.9-2.875V15q0-1.25-.875-2.125T12 12q-1.25 0-2.125.875T9 15q0 1.25.875 2.125T12 18Z"/>'
@@ -3515,11 +3515,11 @@ var commonjsGlobal = typeof globalThis < "u" ? globalThis : typeof window < "u"
3515
3515
  }, O.valueOf = function() {
3516
3516
  return this.$d.getTime();
3517
3517
  }, O.startOf = function(V, $) {
3518
- var P = this, G = !!K.u($) || $, N = K.p(V), x = function(fe, ae) {
3519
- var F = K.w(P.$u ? Date.UTC(P.$y, ae, fe) : new Date(P.$y, ae, fe), P);
3518
+ var P = this, G = !!K.u($) || $, N = K.p(V), x = function(pe, ae) {
3519
+ var F = K.w(P.$u ? Date.UTC(P.$y, ae, pe) : new Date(P.$y, ae, pe), P);
3520
3520
  return G ? F : F.endOf(c);
3521
- }, Y = function(fe, ae) {
3522
- return K.w(P.toDate()[fe].apply(P.toDate("s"), (G ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(ae)), P);
3521
+ }, Y = function(pe, ae) {
3522
+ return K.w(P.toDate()[pe].apply(P.toDate("s"), (G ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(ae)), P);
3523
3523
  }, q = this.$W, J = this.$M, X = this.$D, ee = "set" + (this.$u ? "UTC" : "");
3524
3524
  switch (N) {
3525
3525
  case E:
@@ -3582,7 +3582,7 @@ var commonjsGlobal = typeof globalThis < "u" ? globalThis : typeof window < "u"
3582
3582
  return ae && (ae[F] || ae($, G)) || U[F].slice(0, Q);
3583
3583
  }, he = function(ae) {
3584
3584
  return K.s(x % 12 || 12, ae, "0");
3585
- }, fe = ee || function(ae, F, U) {
3585
+ }, pe = ee || function(ae, F, U) {
3586
3586
  var Q = ae < 12 ? "AM" : "PM";
3587
3587
  return U ? Q.toLowerCase() : Q;
3588
3588
  };
@@ -3622,9 +3622,9 @@ var commonjsGlobal = typeof globalThis < "u" ? globalThis : typeof window < "u"
3622
3622
  case "hh":
3623
3623
  return he(2);
3624
3624
  case "a":
3625
- return fe(x, Y, !0);
3625
+ return pe(x, Y, !0);
3626
3626
  case "A":
3627
- return fe(x, Y, !1);
3627
+ return pe(x, Y, !1);
3628
3628
  case "m":
3629
3629
  return String(Y);
3630
3630
  case "mm":
@@ -6783,6 +6783,7 @@ class UpdateVarGridMasterQuery {
6783
6783
  }
6784
6784
  class VarButton {
6785
6785
  constructor(t) {
6786
+ b(this, "available_flag");
6786
6787
  b(this, "cmd");
6787
6788
  b(this, "cmd_method");
6788
6789
  b(this, "cmd_prm");
@@ -6809,6 +6810,7 @@ class VarButton {
6809
6810
  b(this, "var_nam");
6810
6811
  keys(t != null ? t : {}).forEach((r) => {
6811
6812
  switch (r) {
6813
+ case "available_flag":
6812
6814
  case "cmd":
6813
6815
  case "cmd_method":
6814
6816
  case "cmd_prm":
@@ -7498,6 +7500,7 @@ class WhDTO {
7498
7500
  b(this, "activeFlg");
7499
7501
  b(this, "adrId");
7500
7502
  b(this, "adrnam");
7503
+ b(this, "comCod");
7501
7504
  b(this, "defWhFlg");
7502
7505
  b(this, "id");
7503
7506
  b(this, "orgcod");
@@ -7512,6 +7515,7 @@ class WhDTO {
7512
7515
  case "activeFlg":
7513
7516
  case "adrId":
7514
7517
  case "adrnam":
7518
+ case "comCod":
7515
7519
  case "defWhFlg":
7516
7520
  case "id":
7517
7521
  case "orgcod":
@@ -9548,7 +9552,7 @@ const KgTable$1 = "", getProps$o = () => ({
9548
9552
  var F, U;
9549
9553
  return (U = (F = s.varButtonSearch.value) == null ? void 0 : F.cmd) != null ? U : null;
9550
9554
  }), k = computed(() => {
9551
- var U, Q, z, te, ue, ie, pe, ve, Ce;
9555
+ var U, Q, z, te, ue, ie, _e, ve, Ce;
9552
9556
  let F = {
9553
9557
  pageNo: O.pageIndex,
9554
9558
  pageSize: O.pageSize,
@@ -9559,7 +9563,7 @@ const KgTable$1 = "", getProps$o = () => ({
9559
9563
  return s.varButtonSearch.value && (F = {
9560
9564
  ...F,
9561
9565
  ...KgVarUtil.parseCommandParameter((ie = (ue = s.varButtonSearch.value) == null ? void 0 : ue.cmd_prm) != null ? ie : "")
9562
- }), (pe = s.varGridConfig.value) != null && pe.cmd_prm && (F = {
9566
+ }), (_e = s.varGridConfig.value) != null && _e.cmd_prm && (F = {
9563
9567
  ...F,
9564
9568
  ...KgVarUtil.parseCommandParameter((ve = s.varGridConfig.value.cmd_prm) != null ? ve : "")
9565
9569
  }), ((Ce = s.varGridConfig.value) == null ? void 0 : Ce.convert_sort_field_to_under_score_flg) === 1 && F.column && (F.column = snakeCase$1(F.column)), F;
@@ -9686,7 +9690,7 @@ const KgTable$1 = "", getProps$o = () => ({
9686
9690
  immediate: !0
9687
9691
  });
9688
9692
  async function Q() {
9689
- var z, te, ue, ie, pe, ve, Ce;
9693
+ var z, te, ue, ie, _e, ve, Ce;
9690
9694
  if (KgLogger.debug(`${s.formID} | KgTable | retrieve() | retrieveDatas() | \u6267\u884C\u5F00\u59CB.`), !T.value) {
9691
9695
  KgLogger.error(`${s.formID} | KgTable | retrieve() | retrieveDatas() | \u67E5\u8BE2\u6309\u94AE\u6CA1\u6709\u914D\u7F6E\u63A5\u53E3.`, {
9692
9696
  VarButton: s.varButtonSearch.value
@@ -9700,30 +9704,30 @@ const KgTable$1 = "", getProps$o = () => ({
9700
9704
  params: be,
9701
9705
  response: ye
9702
9706
  })) {
9703
- const _e = ((te = (z = n.option.value.KgSearch) == null ? void 0 : z.dynamicQuery) == null ? void 0 : te.on) === !0 && ((ue = s.currentVarProfileMaster.value) == null ? void 0 : ue.dyn_flg) === 1, {
9707
+ const ce = ((te = (z = n.option.value.KgSearch) == null ? void 0 : z.dynamicQuery) == null ? void 0 : te.on) === !0 && ((ue = s.currentVarProfileMaster.value) == null ? void 0 : ue.dyn_flg) === 1, {
9704
9708
  sql: Te,
9705
9709
  whereSql: Ae,
9706
- orderBySql: Ie
9707
- } = KgUtil.getQuerySql(k.value, o.profileFormID.value, null, t), B = await httpClient().request({
9708
- method: (pe = (ie = s.varButtonSearch.value) == null ? void 0 : ie.cmd_method) != null ? pe : "GET",
9710
+ orderBySql: B
9711
+ } = KgUtil.getQuerySql(k.value, o.profileFormID.value, null, t), W = await httpClient().request({
9712
+ method: (_e = (ie = s.varButtonSearch.value) == null ? void 0 : ie.cmd_method) != null ? _e : "GET",
9709
9713
  url: T.value,
9710
9714
  params: be,
9711
9715
  data: be,
9712
9716
  headers: {
9713
- [KG_HTTP_HEADERS.KG_DYNAMIC_QUERY]: _e,
9717
+ [KG_HTTP_HEADERS.KG_DYNAMIC_QUERY]: ce,
9714
9718
  [KG_HTTP_HEADERS.KG_QUERY_SQL]: Te,
9715
9719
  [KG_HTTP_HEADERS.KG_QUERY_WHERE_SQL]: Ae,
9716
- [KG_HTTP_HEADERS.KG_QUERY_ORDER_BY_SQL]: Ie
9720
+ [KG_HTTP_HEADERS.KG_QUERY_ORDER_BY_SQL]: B
9717
9721
  }
9718
9722
  }, {
9719
9723
  isReturnNativeResponse: !0,
9720
9724
  successMessageMode: "none"
9721
9725
  });
9722
- if (!B.data)
9726
+ if (!W.data)
9723
9727
  throw message.error(n.t("kg.KgTable.request-fail-no-data")), new Error(n.t("kg.KgTable.request-fail-no-data"));
9724
- if (![0, 200].includes((ve = B.data.code) != null ? ve : -1) || !B.data.success)
9725
- throw message.error(B.data.message || n.t("kg.KgTable.request-fail-error")), new Error(B.data.message || n.t("kg.KgTable.request-fail-error"));
9726
- _e && B.headers[KG_HTTP_HEADERS.KG_DYNAMIC_QUERY.toLowerCase()] !== "true" && message.warning(n.t("kg.KgTable.dynamic-query-is-off-in-server")), ye.value = B.data.result, KgLogger.debug(`${s.formID} | KgTable | retrieve() | retrieveDatas() | \u67E5\u8BE2\u6210\u529F.`, {
9728
+ if (![0, 200].includes((ve = W.data.code) != null ? ve : -1) || !W.data.success)
9729
+ throw message.error(W.data.message || n.t("kg.KgTable.request-fail-error")), new Error(W.data.message || n.t("kg.KgTable.request-fail-error"));
9730
+ ce && W.headers[KG_HTTP_HEADERS.KG_DYNAMIC_QUERY.toLowerCase()] !== "true" && message.warning(n.t("kg.KgTable.dynamic-query-is-off-in-server")), ye.value = W.data.result, KgLogger.debug(`${s.formID} | KgTable | retrieve() | retrieveDatas() | \u67E5\u8BE2\u6210\u529F.`, {
9727
9731
  params: be,
9728
9732
  response: ye.value
9729
9733
  });
@@ -9735,19 +9739,20 @@ const KgTable$1 = "", getProps$o = () => ({
9735
9739
  await o.store.emit(s.formID, "beforeSetDatas", {
9736
9740
  datas: Ee,
9737
9741
  total: Me,
9738
- setDatas(_e) {
9739
- o.store.setDatas(s.formID, _e);
9742
+ setDatas(ce) {
9743
+ o.store.setDatas(s.formID, ce);
9740
9744
  }
9741
9745
  }), d.value = {}, o.store.setDatas(s.formID, Ee.value), O.total = Me.value;
9742
- const we = cloneDeep(w.value);
9743
- G(), c.value = [], await nextTick(), F.isPreserveSelectedRows ? o.store.setSelectedRows(s.formID, we.map((_e) => {
9746
+ const Ie = cloneDeep(w.value);
9747
+ G(), c.value = [], await nextTick(), F.isPreserveSelectedRows ? o.store.setSelectedRows(s.formID, Ie.map((ce) => {
9744
9748
  var Te;
9745
- return (Te = Ee.value) == null ? void 0 : Te.find((Ae) => Ae[o.id.value] === _e);
9746
- }).filter((_e) => !!_e)) : ((Ce = s.varGridConfig.value) == null ? void 0 : Ce.check_first_row_after_retrieve) === 1 && Ee.value.length > 0 && o.store.setSelectedRows(s.formID, [Ee.value[0]]), await o.store.emit(s.formID, "retrieve", {
9747
- page: ye.value,
9749
+ return (Te = Ee.value) == null ? void 0 : Te.find((Ae) => Ae[o.id.value] === ce);
9750
+ }).filter((ce) => !!ce)) : ((Ce = s.varGridConfig.value) == null ? void 0 : Ce.check_first_row_after_retrieve) === 1 && Ee.value.length > 0 && o.store.setSelectedRows(s.formID, [Ee.value[0]]), await o.store.emit(s.formID, "retrieve", {
9751
+ params: be,
9752
+ response: ye.value,
9748
9753
  datas: Ee,
9749
- setDatas(_e) {
9750
- o.store.setDatas(s.formID, _e);
9754
+ setDatas(ce) {
9755
+ o.store.setDatas(s.formID, ce);
9751
9756
  }
9752
9757
  }), o.store.setIsRetrieved(s.formID, !0);
9753
9758
  } catch (be) {
@@ -9847,8 +9852,8 @@ const KgTable$1 = "", getProps$o = () => ({
9847
9852
  align: ue
9848
9853
  }, {
9849
9854
  default: () => {
9850
- var pe, ve;
9851
- return [(ve = (pe = r == null ? void 0 : r.KgTable) == null ? void 0 : pe["summary.bodyCell"]) == null ? void 0 : ve.call(pe, {
9855
+ var _e, ve;
9856
+ return [(ve = (_e = r == null ? void 0 : r.KgTable) == null ? void 0 : _e["summary.bodyCell"]) == null ? void 0 : ve.call(_e, {
9852
9857
  column: U,
9853
9858
  index: ie,
9854
9859
  varGridDetail: te
@@ -9859,7 +9864,7 @@ const KgTable$1 = "", getProps$o = () => ({
9859
9864
  })]
9860
9865
  }) : null;
9861
9866
  }
9862
- function fe() {
9867
+ function pe() {
9863
9868
  return !o.isReadAutomatically.value && !o.store.getIsRetrieved(s.formID) ? n.t("kg.KgTable.emptyText") : n.t("kg.emptyText");
9864
9869
  }
9865
9870
  return () => {
@@ -9894,7 +9899,7 @@ const KgTable$1 = "", getProps$o = () => ({
9894
9899
  }, {
9895
9900
  headerCell: le,
9896
9901
  bodyCell: g,
9897
- emptyText: fe,
9902
+ emptyText: pe,
9898
9903
  expandedRowRender: (Q = r == null ? void 0 : r.KgTable) == null ? void 0 : Q.expandedRowRender,
9899
9904
  summary: he
9900
9905
  }), (o.isShowBottomLeft.value || o.isShowBottomRight.value) && createVNode("div", {
@@ -13318,7 +13323,7 @@ const getProps$h = () => ({
13318
13323
  setup(e, {
13319
13324
  attrs: t
13320
13325
  }) {
13321
- var Te, Ae, Ie;
13326
+ var ce, Te, Ae;
13322
13327
  const r = inject("$dayjs", dayjs), a = inject(DI_KG_VAR__KG_SLOTS, null);
13323
13328
  inject(DI_KG_VAR__KG_PROPS, null);
13324
13329
  const n = useKg(), s = useKgVar(), l = useKgButton(), o = useKgTable(), i = useKgSubmit(), c = useKgSearch();
@@ -13395,7 +13400,7 @@ const getProps$h = () => ({
13395
13400
  } = _useClass(e, ee), {
13396
13401
  getLayout: he
13397
13402
  } = _useLayout(), {
13398
- getDefaultWidth: fe
13403
+ getDefaultWidth: pe
13399
13404
  } = _useDefaultWidth(), ae = computed(() => {
13400
13405
  var B, W, Z;
13401
13406
  switch (he.value) {
@@ -13444,7 +13449,7 @@ const getProps$h = () => ({
13444
13449
  }
13445
13450
  return n.t("kg.save");
13446
13451
  }), Q = computed(() => i.displayType.value === KG_VAR_SUBMIT__DISPLAY_TYPE.MODAL && !ee.isFullscreen);
13447
- ((Ie = (Ae = (Te = n.option.value) == null ? void 0 : Te.KgModal) == null ? void 0 : Ae.drag) == null ? void 0 : Ie.on) === !0 && useKgDragModal({
13452
+ ((Ae = (Te = (ce = n.option.value) == null ? void 0 : ce.KgModal) == null ? void 0 : Te.drag) == null ? void 0 : Ae.on) === !0 && useKgDragModal({
13448
13453
  visible: X,
13449
13454
  draggable: Q,
13450
13455
  destroyOnClose: ref(!0),
@@ -13455,7 +13460,7 @@ const getProps$h = () => ({
13455
13460
  B === !0 && z(), W === !0 && B === !1 && te();
13456
13461
  }, {
13457
13462
  immediate: !0
13458
- }), watch(fe, (B) => {
13463
+ }), watch(pe, (B) => {
13459
13464
  B && ($.value.kgWidth = B);
13460
13465
  }, {
13461
13466
  immediate: !0
@@ -13486,7 +13491,7 @@ const getProps$h = () => ({
13486
13491
  });
13487
13492
  }
13488
13493
  async function te() {
13489
- $.value.kgWidth = fe.value, ee.isFullscreen = !1, await i.store.emit(s.formID, "close", null);
13494
+ $.value.kgWidth = pe.value, ee.isFullscreen = !1, await i.store.emit(s.formID, "close", null);
13490
13495
  }
13491
13496
  function ue() {
13492
13497
  switch (!0) {
@@ -13534,7 +13539,7 @@ const getProps$h = () => ({
13534
13539
  return;
13535
13540
  switch (!0) {
13536
13541
  case s.isCreating.value:
13537
- await pe();
13542
+ await _e();
13538
13543
  break;
13539
13544
  case s.isUpdating.value:
13540
13545
  await ve();
@@ -13550,8 +13555,8 @@ const getProps$h = () => ({
13550
13555
  KgUtil.throwIfNotFormError(Z);
13551
13556
  }
13552
13557
  }
13553
- async function pe() {
13554
- var W, Z, re, se, oe, ce, de;
13558
+ async function _e() {
13559
+ var W, Z, re, se, oe, de, ge;
13555
13560
  const B = (W = s.varButtonCreate.value) == null ? void 0 : W.cmd;
13556
13561
  if (!B) {
13557
13562
  KgLogger.error("[KgSubmit] '\u521B\u5EFA\u6309\u94AE'\u6CA1\u6709\u914D\u7F6E\u63A5\u53E3\u5730\u5740.", {
@@ -13561,7 +13566,7 @@ const getProps$h = () => ({
13561
13566
  }
13562
13567
  s.store.setIsCreatingRequesting(s.formID, !0);
13563
13568
  try {
13564
- let ne = ref(KgUtil.parseParams(KgVarUtil.parseCommandParameter((re = (Z = s.varButtonCreate.value) == null ? void 0 : Z.cmd_prm) != null ? re : ""), s.formID, r)), ge = ref(KgUtil.parseParams(toRaw(i.model.value), s.formID, r));
13569
+ let ne = ref(KgUtil.parseParams(KgVarUtil.parseCommandParameter((re = (Z = s.varButtonCreate.value) == null ? void 0 : Z.cmd_prm) != null ? re : ""), s.formID, r)), fe = ref(KgUtil.parseParams(toRaw(i.model.value), s.formID, r));
13565
13570
  if (await i.store.emit(s.formID, "beforeRequest", {
13566
13571
  isCreating: s.isCreating.value,
13567
13572
  isUpdating: s.isUpdating.value,
@@ -13571,16 +13576,16 @@ const getProps$h = () => ({
13571
13576
  rows: o.selectedRows.value,
13572
13577
  model: i.model,
13573
13578
  params: ne,
13574
- data: ge
13579
+ data: fe
13575
13580
  }))
13576
13581
  return;
13577
13582
  const Se = await httpClient().request({
13578
13583
  method: (oe = (se = s.varButtonCreate.value) == null ? void 0 : se.cmd_method) != null ? oe : "POST",
13579
13584
  url: B,
13580
13585
  params: ne.value,
13581
- data: ge.value
13586
+ data: fe.value
13582
13587
  });
13583
- ((ce = s.varButtonCreate.value) == null ? void 0 : ce.show_success_message_flg) !== 0 && message.success(q.title.value + n.t("kg.succeed")), s.store.setIsCreating(s.formID, !1), ((de = s.varButtonCreate.value) == null ? void 0 : de.reload_all_after_done_flg) !== 0 && c.search({
13588
+ ((de = s.varButtonCreate.value) == null ? void 0 : de.show_success_message_flg) !== 0 && message.success(q.title.value + n.t("kg.succeed")), s.store.setIsCreating(s.formID, !1), ((ge = s.varButtonCreate.value) == null ? void 0 : ge.reload_all_after_done_flg) !== 0 && c.search({
13584
13589
  isSearchFirstPage: !0
13585
13590
  }), await i.store.emit(s.formID, "ok", {
13586
13591
  isCreating: !0,
@@ -13598,7 +13603,7 @@ const getProps$h = () => ({
13598
13603
  }
13599
13604
  }
13600
13605
  async function ve() {
13601
- var W, Z, re, se, oe, ce, de;
13606
+ var W, Z, re, se, oe, de, ge;
13602
13607
  const B = (W = s.varButtonUpdate.value) == null ? void 0 : W.cmd;
13603
13608
  if (!B) {
13604
13609
  KgLogger.error("[KgSubmit] '\u66F4\u65B0\u6309\u94AE'\u6CA1\u6709\u914D\u7F6E\u63A5\u53E3\u5730\u5740.", {
@@ -13608,7 +13613,7 @@ const getProps$h = () => ({
13608
13613
  }
13609
13614
  try {
13610
13615
  s.store.setIsUpdatingRequesting(s.formID, !0);
13611
- let ne = ref(KgUtil.parseParams(KgVarUtil.parseCommandParameter((re = (Z = s.varButtonUpdate.value) == null ? void 0 : Z.cmd_prm) != null ? re : ""), s.formID, r)), ge = ref(KgUtil.parseParams(toRaw(i.model.value), s.formID, r));
13616
+ let ne = ref(KgUtil.parseParams(KgVarUtil.parseCommandParameter((re = (Z = s.varButtonUpdate.value) == null ? void 0 : Z.cmd_prm) != null ? re : ""), s.formID, r)), fe = ref(KgUtil.parseParams(toRaw(i.model.value), s.formID, r));
13612
13617
  if (await i.store.emit(s.formID, "beforeRequest", {
13613
13618
  isCreating: s.isCreating.value,
13614
13619
  isUpdating: s.isUpdating.value,
@@ -13618,15 +13623,15 @@ const getProps$h = () => ({
13618
13623
  rows: o.selectedRows.value,
13619
13624
  model: i.model,
13620
13625
  params: ne,
13621
- data: ge
13626
+ data: fe
13622
13627
  }))
13623
13628
  return;
13624
13629
  await httpClient().request({
13625
13630
  method: (oe = (se = s.varButtonUpdate.value) == null ? void 0 : se.cmd_method) != null ? oe : "POST",
13626
13631
  url: B,
13627
13632
  params: ne.value,
13628
- data: ge.value
13629
- }), ((ce = s.varButtonUpdate.value) == null ? void 0 : ce.show_success_message_flg) !== 0 && message.success(n.t("kg.updateSuccess")), s.store.setIsUpdating(s.formID, !1), ((de = s.varButtonUpdate.value) == null ? void 0 : de.reload_all_after_done_flg) !== 0 && c.search({
13633
+ data: fe.value
13634
+ }), ((de = s.varButtonUpdate.value) == null ? void 0 : de.show_success_message_flg) !== 0 && message.success(n.t("kg.updateSuccess")), s.store.setIsUpdating(s.formID, !1), ((ge = s.varButtonUpdate.value) == null ? void 0 : ge.reload_all_after_done_flg) !== 0 && c.search({
13630
13635
  isPreserveSelectedRows: !0
13631
13636
  }), await i.store.emit(s.formID, "ok", {
13632
13637
  isCreating: !1,
@@ -13643,7 +13648,7 @@ const getProps$h = () => ({
13643
13648
  }
13644
13649
  }
13645
13650
  async function Ce() {
13646
- var W, Z, re, se, oe, ce, de, ne, ge;
13651
+ var W, Z, re, se, oe, de, ge, ne, fe;
13647
13652
  const B = (W = s.varButtonCopy.value) == null ? void 0 : W.cmd;
13648
13653
  if (!B) {
13649
13654
  KgLogger.error("[KgSubmit] '\u590D\u5236\u6309\u94AE'\u6CA1\u6709\u914D\u7F6E\u63A5\u53E3\u5730\u5740.", {
@@ -13670,11 +13675,11 @@ const getProps$h = () => ({
13670
13675
  }))
13671
13676
  return;
13672
13677
  await httpClient().request({
13673
- method: (de = (ce = s.varButtonCopy.value) == null ? void 0 : ce.cmd_method) != null ? de : "POST",
13678
+ method: (ge = (de = s.varButtonCopy.value) == null ? void 0 : de.cmd_method) != null ? ge : "POST",
13674
13679
  url: B,
13675
13680
  params: me.value,
13676
13681
  data: Se.value
13677
- }), ((ne = s.varButtonCopy.value) == null ? void 0 : ne.show_success_message_flg) !== 0 && message.success(n.t("kg.copySuccess")), s.store.setIsCopying(s.formID, !1), ((ge = s.varButtonCopy.value) == null ? void 0 : ge.reload_all_after_done_flg) !== 0 && c.search({
13682
+ }), ((ne = s.varButtonCopy.value) == null ? void 0 : ne.show_success_message_flg) !== 0 && message.success(n.t("kg.copySuccess")), s.store.setIsCopying(s.formID, !1), ((fe = s.varButtonCopy.value) == null ? void 0 : fe.reload_all_after_done_flg) !== 0 && c.search({
13678
13683
  isSearchFirstPage: !0
13679
13684
  }), await i.store.emit(s.formID, "ok", {
13680
13685
  isCreating: !1,
@@ -13691,7 +13696,7 @@ const getProps$h = () => ({
13691
13696
  }
13692
13697
  }
13693
13698
  async function be() {
13694
- var W, Z, re, se, oe, ce, de, ne, ge, me, Se;
13699
+ var W, Z, re, se, oe, de, ge, ne, fe, me, Se;
13695
13700
  const B = (W = s.varButtonDelete.value) == null ? void 0 : W.cmd;
13696
13701
  if (!B) {
13697
13702
  KgLogger.error("[KgSubmit] '\u5220\u9664\u6309\u94AE'\u6CA1\u6709\u914D\u7F6E\u63A5\u53E3\u5730\u5740.", {
@@ -13701,13 +13706,13 @@ const getProps$h = () => ({
13701
13706
  }
13702
13707
  try {
13703
13708
  s.store.setIsDeletingRequesting(s.formID, !0);
13704
- let ke = ref(KgUtil.parseParams(KgVarUtil.parseCommandParameter((re = (Z = s.varButtonDelete.value) == null ? void 0 : Z.cmd_prm) != null ? re : ""), s.formID, r)), Oe = ref((se = o.selectedRows.value) != null ? se : []);
13709
+ let ke = ref(KgUtil.parseParams(KgVarUtil.parseCommandParameter((re = (Z = s.varButtonDelete.value) == null ? void 0 : Z.cmd_prm) != null ? re : ""), s.formID, r)), we = ref((se = o.selectedRows.value) != null ? se : []);
13705
13710
  if (((oe = s.varButtonDelete.value) == null ? void 0 : oe.del_param_clm) !== "__kg__new_delete_param" && (ke = ref({
13706
- ids: (de = (ce = o.selectedRows.value) == null ? void 0 : ce.map((Ke) => {
13711
+ ids: (ge = (de = o.selectedRows.value) == null ? void 0 : de.map((Ke) => {
13707
13712
  var De, Re, Ve;
13708
13713
  return (Ve = Ke[(Re = (De = s.varButtonDelete.value) == null ? void 0 : De.del_param_clm) != null ? Re : "id"]) != null ? Ve : "";
13709
- })) != null ? de : []
13710
- }), Oe = ref({})), await i.store.emit(s.formID, "beforeRequest", {
13714
+ })) != null ? ge : []
13715
+ }), we = ref({})), await i.store.emit(s.formID, "beforeRequest", {
13711
13716
  isCreating: s.isCreating.value,
13712
13717
  isUpdating: s.isUpdating.value,
13713
13718
  isCopying: s.isCopying.value,
@@ -13716,14 +13721,14 @@ const getProps$h = () => ({
13716
13721
  rows: o.selectedRows.value,
13717
13722
  model: i.model,
13718
13723
  params: ke,
13719
- data: Oe
13724
+ data: we
13720
13725
  }))
13721
13726
  return;
13722
13727
  await httpClient().request({
13723
- method: (ge = (ne = s.varButtonDelete.value) == null ? void 0 : ne.cmd_method) != null ? ge : "DELETE",
13728
+ method: (fe = (ne = s.varButtonDelete.value) == null ? void 0 : ne.cmd_method) != null ? fe : "DELETE",
13724
13729
  url: B,
13725
13730
  params: ke.value,
13726
- data: Oe.value
13731
+ data: we.value
13727
13732
  }, {
13728
13733
  joinParamsToUrl: !0
13729
13734
  }), ((me = s.varButtonDelete.value) == null ? void 0 : me.show_success_message_flg) !== 0 && message.success(n.t("kg.deleteSuccess")), s.store.setIsDeleting(s.formID, !1), ((Se = s.varButtonDelete.value) == null ? void 0 : Se.reload_all_after_done_flg) !== 0 && c.search({
@@ -13757,18 +13762,18 @@ const getProps$h = () => ({
13757
13762
  control: ({
13758
13763
  frm_id: se,
13759
13764
  varName: oe,
13760
- props: ce,
13761
- model: de,
13765
+ props: de,
13766
+ model: ge,
13762
13767
  varVariableConfig: ne,
13763
- varProfileDetail: ge,
13768
+ varProfileDetail: fe,
13764
13769
  varSubmitField: me
13765
13770
  }) => W({
13766
13771
  frm_id: se,
13767
13772
  varName: oe,
13768
- props: ce,
13769
- model: de,
13773
+ props: de,
13774
+ model: ge,
13770
13775
  varVariableConfig: ne,
13771
- varProfileDetail: ge,
13776
+ varProfileDetail: fe,
13772
13777
  varSubmitField: me
13773
13778
  })
13774
13779
  }) : createVNode(KgForm.Item, {
@@ -13778,7 +13783,7 @@ const getProps$h = () => ({
13778
13783
  onKgSubmit: ie
13779
13784
  }, null);
13780
13785
  }
13781
- function Ee() {
13786
+ function Oe() {
13782
13787
  let B, W;
13783
13788
  return createVNode(KgResizable, {
13784
13789
  kgType: i.displayType.value === KG_VAR_SUBMIT__DISPLAY_TYPE.MODAL ? "right" : "left",
@@ -13815,7 +13820,7 @@ const getProps$h = () => ({
13815
13820
  })]
13816
13821
  });
13817
13822
  }
13818
- function Me() {
13823
+ function Ee() {
13819
13824
  let B;
13820
13825
  return createVNode("div", null, [createVNode(Button, {
13821
13826
  type: "primary",
@@ -13834,12 +13839,12 @@ const getProps$h = () => ({
13834
13839
  default: () => [U.value]
13835
13840
  })]);
13836
13841
  }
13837
- function we() {
13842
+ function Me() {
13838
13843
  return createVNode("div", {
13839
13844
  title: q.title.value
13840
13845
  }, [q.title.value]);
13841
13846
  }
13842
- function _e() {
13847
+ function Ie() {
13843
13848
  return createVNode(KgSubmitHeader, {
13844
13849
  isFullscreen: ee.isFullscreen,
13845
13850
  "onUpdate:isFullscreen": (B) => ee.isFullscreen = B,
@@ -13861,10 +13866,10 @@ const getProps$h = () => ({
13861
13866
  class: le.value,
13862
13867
  "kg-frm_id": s.formID
13863
13868
  }, {
13864
- title: we,
13865
- extra: _e,
13866
- default: Ee,
13867
- footer: Me
13869
+ title: Me,
13870
+ extra: Ie,
13871
+ default: Oe,
13872
+ footer: Ee
13868
13873
  });
13869
13874
  }
13870
13875
  }), KgVar$1 = "", getProps$g = () => ({
@@ -13965,12 +13970,12 @@ const getProps$h = () => ({
13965
13970
  disabled: l.value,
13966
13971
  ghost: !e.kgPrimary && !l.value,
13967
13972
  onClick: o,
13968
- class: t.class,
13969
13973
  "kg-id": (u = s.value) == null ? void 0 : u.id,
13970
13974
  "kg-frm_id": (d = s.value) == null ? void 0 : d.frm_id,
13971
13975
  "kg-var_nam": (p = s.value) == null ? void 0 : p.var_nam,
13972
13976
  "kg-cmd": (E = s.value) == null ? void 0 : E.cmd,
13973
- "kg-permission": (_ = (y = s.value) == null ? void 0 : y.permission_code) != null ? _ : ""
13977
+ "kg-permission": (_ = (y = s.value) == null ? void 0 : y.permission_code) != null ? _ : "",
13978
+ class: t.class
13974
13979
  }, {
13975
13980
  default: () => [i(), c()]
13976
13981
  });
@@ -14188,12 +14193,12 @@ const KgButtonCreate = defineComponent({
14188
14193
  type: "primary",
14189
14194
  disabled: u.value,
14190
14195
  onClick: p,
14191
- class: a.class,
14192
14196
  "kg-id": (T = c.value) == null ? void 0 : T.id,
14193
14197
  "kg-frm_id": (k = c.value) == null ? void 0 : k.frm_id,
14194
14198
  "kg-var_nam": (I = c.value) == null ? void 0 : I.var_nam,
14195
14199
  "kg-cmd": (C = c.value) == null ? void 0 : C.cmd,
14196
- "kg-permission": (A = (R = c.value) == null ? void 0 : R.permission_code) != null ? A : ""
14200
+ "kg-permission": (A = (R = c.value) == null ? void 0 : R.permission_code) != null ? A : "",
14201
+ class: a.class
14197
14202
  }, {
14198
14203
  default: () => [_(), g()]
14199
14204
  });
@@ -14419,7 +14424,6 @@ const KgButtonCreate = defineComponent({
14419
14424
  default: () => {
14420
14425
  var m, v, T, k, I, C;
14421
14426
  return [createVNode(Button, {
14422
- class: r.class,
14423
14427
  type: "primary",
14424
14428
  disabled: p.value,
14425
14429
  ghost: !e.kgPrimary && !p.value,
@@ -14428,7 +14432,8 @@ const KgButtonCreate = defineComponent({
14428
14432
  "kg-frm_id": (v = i.value) == null ? void 0 : v.frm_id,
14429
14433
  "kg-var_nam": (T = i.value) == null ? void 0 : T.var_nam,
14430
14434
  "kg-cmd": (k = i.value) == null ? void 0 : k.cmd,
14431
- "kg-permission": (C = (I = i.value) == null ? void 0 : I.permission_code) != null ? C : ""
14435
+ "kg-permission": (C = (I = i.value) == null ? void 0 : I.permission_code) != null ? C : "",
14436
+ class: r.class
14432
14437
  }, {
14433
14438
  default: () => [_(), g()]
14434
14439
  })];
@@ -14700,12 +14705,12 @@ const KgButtonCreate = defineComponent({
14700
14705
  disabled: u.value,
14701
14706
  ghost: !e.kgPrimary && !u.value,
14702
14707
  onClick: p,
14703
- class: a.class,
14704
14708
  "kg-id": (T = c.value) == null ? void 0 : T.id,
14705
14709
  "kg-frm_id": (k = c.value) == null ? void 0 : k.frm_id,
14706
14710
  "kg-var_nam": (I = c.value) == null ? void 0 : I.var_nam,
14707
14711
  "kg-cmd": (C = c.value) == null ? void 0 : C.cmd,
14708
- "kg-permission": (A = (R = c.value) == null ? void 0 : R.permission_code) != null ? A : ""
14712
+ "kg-permission": (A = (R = c.value) == null ? void 0 : R.permission_code) != null ? A : "",
14713
+ class: a.class
14709
14714
  }, {
14710
14715
  default: () => [_(), g()]
14711
14716
  });
@@ -14857,8 +14862,8 @@ const getProps$e = () => ({
14857
14862
  }, null);
14858
14863
  }
14859
14864
  function y() {
14860
- var g;
14861
- return (g = n.varButtons.value) == null ? void 0 : g.filter((m) => m.typ !== KG_BUTTON_TYPE.SEARCH).map((m) => E(m));
14865
+ var g, m;
14866
+ return (m = (g = n.varButtons.value) == null ? void 0 : g.filter((v) => v.typ !== KG_BUTTON_TYPE.SEARCH)) == null ? void 0 : m.filter((v) => v.available_flag !== 0).map((v) => E(v));
14862
14867
  }
14863
14868
  function _() {
14864
14869
  return createVNode(Dropdown, {
@@ -14872,11 +14877,11 @@ const getProps$e = () => ({
14872
14877
  }),
14873
14878
  overlay: () => createVNode(Menu, null, {
14874
14879
  default: () => {
14875
- var g, m;
14876
- return [(m = (g = n.varButtons.value) == null ? void 0 : g.filter((v) => v.typ !== KG_BUTTON_TYPE.SEARCH)) == null ? void 0 : m.filter((v) => !(KgAuthUtil.getPermissionType(v.permission_code) !== 2 && !a.p(v.permission_code))).map((v) => {
14877
- let T;
14878
- return createVNode(Menu.Item, null, _isSlot$3(T = E(v)) ? T : {
14879
- default: () => [T]
14880
+ var g, m, v;
14881
+ return [(v = (m = (g = n.varButtons.value) == null ? void 0 : g.filter((T) => T.typ !== KG_BUTTON_TYPE.SEARCH)) == null ? void 0 : m.filter((T) => T.available_flag === 0)) == null ? void 0 : v.filter((T) => !(KgAuthUtil.getPermissionType(T.permission_code) !== 2 && !a.p(T.permission_code))).map((T) => {
14882
+ let k;
14883
+ return createVNode(Menu.Item, null, _isSlot$3(k = E(T)) ? k : {
14884
+ default: () => [k]
14880
14885
  });
14881
14886
  })];
14882
14887
  }
@@ -17234,7 +17239,7 @@ class KgUtil {
17234
17239
  static parseParams(t, r, a) {
17235
17240
  let n = toRaw(unref(t));
17236
17241
  if (!n || !isObjectLike(n))
17237
- return n;
17242
+ return n != null ? n : {};
17238
17243
  const s = isArray$1(n) ? [] : {};
17239
17244
  return r ? (Object.keys(n).sort().forEach((l) => {
17240
17245
  const o = n[l];
@@ -18256,6 +18261,7 @@ class ListVOQuery {
18256
18261
  b(this, "activeFlg");
18257
18262
  b(this, "adrId");
18258
18263
  b(this, "adrnam");
18264
+ b(this, "comCod");
18259
18265
  b(this, "defWhFlg");
18260
18266
  b(this, "id");
18261
18267
  b(this, "orgcod");
@@ -18274,6 +18280,7 @@ class ListVOQuery {
18274
18280
  case "activeFlg":
18275
18281
  case "adrId":
18276
18282
  case "adrnam":
18283
+ case "comCod":
18277
18284
  case "defWhFlg":
18278
18285
  case "id":
18279
18286
  case "orgcod":
@@ -2,12 +2,14 @@ import { IRequestConfig, IRequestOptions } from '../../../../services';
2
2
  import * as DEF from '../../../def';
3
3
  /** 请求参数. */
4
4
  export declare class ListVOQuery {
5
- /** 是否活动 */
5
+ /** 是否可用 */
6
6
  activeFlg?: number | null;
7
7
  /** 地址编号 */
8
8
  adrId?: string | null;
9
- /** adrnam */
9
+ /** 地址名 */
10
10
  adrnam?: string | null;
11
+ /** 公司代码 */
12
+ comCod?: string | null;
11
13
  /** 默认仓库 */
12
14
  defWhFlg?: number | null;
13
15
  /** 主键. */
@@ -22,7 +24,7 @@ export declare class ListVOQuery {
22
24
  permCreLod?: string | null;
23
25
  /** 永久创建箱 */
24
26
  permCreSub?: string | null;
25
- /** 仓库名称. */
27
+ /** 仓库名称 */
26
28
  whDsc?: string | null;
27
29
  /** 仓库编号 */
28
30
  whId?: string | null;
@@ -71,6 +71,8 @@ export declare class UpdateVarGridMasterQuery {
71
71
  }
72
72
  /** 按钮 */
73
73
  export declare class VarButton {
74
+ /** 是否可用. */
75
+ available_flag?: number | null;
74
76
  /** 接口地址(Command). */
75
77
  cmd?: string | null;
76
78
  /** 接口方法(CommandMethod). */
@@ -667,14 +669,16 @@ export declare class VarVariableInput {
667
669
  var_nam?: string | null;
668
670
  constructor(obj?: VarVariableInput);
669
671
  }
670
- /** 仓库(Warehouse). */
672
+ /** 仓库数据传输对象 */
671
673
  export declare class WhDTO {
672
- /** 是否活动 */
674
+ /** 是否可用 */
673
675
  activeFlg?: number | null;
674
676
  /** 地址编号 */
675
677
  adrId?: string | null;
676
- /** adrnam */
678
+ /** 地址名 */
677
679
  adrnam?: string | null;
680
+ /** 公司代码 */
681
+ comCod?: string | null;
678
682
  /** 默认仓库 */
679
683
  defWhFlg?: number | null;
680
684
  /** 主键. */
@@ -689,7 +693,7 @@ export declare class WhDTO {
689
693
  permCreLod?: string | null;
690
694
  /** 永久创建箱 */
691
695
  permCreSub?: string | null;
692
- /** 仓库名称. */
696
+ /** 仓库名称 */
693
697
  whDsc?: string | null;
694
698
  /** 仓库编号 */
695
699
  whId?: string | null;
@@ -2,15 +2,33 @@ import { ExtractPropTypes, PropType } from 'vue';
2
2
  import { VarButton } from '../../apis/WMS/models';
3
3
  import './KgButton.less';
4
4
  export declare const getProps: () => {
5
+ /**
6
+ * 按钮是否禁用. 返回 true 表示禁用.
7
+ */
5
8
  kgDisabled: PropType<(button: VarButton) => boolean | undefined>;
9
+ /**
10
+ * 按钮是否处于加载状态. 返回 true 表示处于加载状态.
11
+ */
6
12
  KgLoading: PropType<(button: VarButton) => boolean | undefined>;
7
13
  };
8
14
  export declare type IKgButtonProps = Partial<ExtractPropTypes<ReturnType<typeof getProps>>>;
9
15
  declare const _default: import("vue").DefineComponent<{
16
+ /**
17
+ * 按钮是否禁用. 返回 true 表示禁用.
18
+ */
10
19
  kgDisabled: PropType<(button: VarButton) => boolean | undefined>;
20
+ /**
21
+ * 按钮是否处于加载状态. 返回 true 表示处于加载状态.
22
+ */
11
23
  KgLoading: PropType<(button: VarButton) => boolean | undefined>;
12
24
  }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<ExtractPropTypes<{
25
+ /**
26
+ * 按钮是否禁用. 返回 true 表示禁用.
27
+ */
13
28
  kgDisabled: PropType<(button: VarButton) => boolean | undefined>;
29
+ /**
30
+ * 按钮是否处于加载状态. 返回 true 表示处于加载状态.
31
+ */
14
32
  KgLoading: PropType<(button: VarButton) => boolean | undefined>;
15
33
  }>>, {}>;
16
34
  export default _default;
@@ -25,7 +25,7 @@ export declare type IKgTableRowDoubleClickCb = ((param: IKgTableRowDoubleClickPa
25
25
  /** 事件监听函数: beforeRetrieve. */
26
26
  export declare type IKgTableBeforeRetrieveCbParam = {
27
27
  /** 查询接口请求参数. */
28
- params: IPage<IKgTableRow> | undefined | null;
28
+ params: Record<string, any>;
29
29
  /** 查询接口返回的数据, 调用者可以直接修改该数据, 从而实现手动提供表格数据. */
30
30
  response: Ref;
31
31
  };
@@ -42,8 +42,10 @@ export declare type IKgTableBeforeSetDatasCbParam = {
42
42
  export declare type IKgTableBeforeSetDatasCb = ((param: IKgTableBeforeSetDatasCbParam) => Promise<boolean>) & IKgEventCb;
43
43
  /** 事件监听函数: retrieve. */
44
44
  export declare type IKgTableRetrieveCbParam = {
45
+ /** 查询接口请求参数. */
46
+ params: Record<string, any>;
45
47
  /** 接口返回的分页数据. */
46
- page: IPage<IKgTableRow> | undefined | null;
48
+ response: IPage<IKgTableRow> | null | undefined;
47
49
  /** 列表数据. */
48
50
  datas: Ref<Array<IKgTableRow>>;
49
51
  /** 设置列表数据. */
@@ -68,12 +68,12 @@ export declare type IKgStateOption = {
68
68
  };
69
69
  /** 翻译的方法. */
70
70
  export declare type T = {
71
- (key: string | undefined | null): string;
72
- (key: string | undefined | null, locale: string): string;
73
- (key: string | undefined | null, locale: string, list: unknown[]): string;
74
- (key: string | undefined | null, locale: string, named: Record<string, unknown>): string;
75
- (key: string | undefined | null, list: unknown[]): string;
76
- (key: string | undefined | null, named: Record<string, unknown>): string;
71
+ (key: string | null | undefined): string;
72
+ (key: string | null | undefined, locale: string): string;
73
+ (key: string | null | undefined, locale: string, list: unknown[]): string;
74
+ (key: string | null | undefined, locale: string, named: Record<string, unknown>): string;
75
+ (key: string | null | undefined, list: unknown[]): string;
76
+ (key: string | null | undefined, named: Record<string, unknown>): string;
77
77
  };
78
78
  /** 检查权限的方法. */
79
79
  export declare type P = {
@@ -23,7 +23,7 @@ export declare class KgRouteUtil {
23
23
  * @param path 路径.
24
24
  * @param app 模块.
25
25
  */
26
- static isPathInApp(path: string | undefined | null, app: KG_APP | null): boolean;
26
+ static isPathInApp(path: string | null | undefined, app: KG_APP | null): boolean;
27
27
  /**
28
28
  * 根据地址获取模块.
29
29
  * @param path 地址.
@@ -37,7 +37,7 @@ export declare class KgUtil {
37
37
  * @param formID 界面标识.
38
38
  * @param $dayjs dayjs.
39
39
  */
40
- static parseParams(params?: Record<string, any> | null, formID?: string | null, $dayjs?: typeof dayjs): any;
40
+ static parseParams(params: Record<string, any> | null | undefined, formID?: string | null, $dayjs?: typeof dayjs): Record<string, any>;
41
41
  /**
42
42
  * <p>处理查询参数, 最终拼接为一个 SQL 格式如下: `WHERE ... ORDER BY ...`.</p>
43
43
  * <p>
package/package.json CHANGED
@@ -1,32 +1,33 @@
1
1
  {
2
2
  "name": "@kengic/vue",
3
- "version": "0.14.3",
3
+ "version": "0.15.1",
4
4
  "scripts": {
5
- "build": "rimraf dist && vue-tsc && vite build",
6
- "build:dev": "rimraf dist && vue-tsc && vite build --mode development",
5
+ "build": "npm run switch-node-version && rimraf dist && vue-tsc && vite build",
6
+ "build:dev": "npm run switch-node-version && rimraf dist && vue-tsc && vite build --mode development",
7
7
  "publish:all:beta": "npm run bump-version:beta && npm run publish:all",
8
8
  "publish:all:patch": "npm run bump-version:patch && npm run publish:all",
9
9
  "publish:all:minor": "npm run bump-version:minor && npm run publish:all",
10
10
  "publish:all:major": "npm run bump-version:major && npm run publish:all",
11
11
  "----------------------- C": "",
12
- "bump-to:luotao.c.wms-vue3": "tsx scripts/bump-to.luotao.c.wms-vue3.ts",
12
+ "bump-to:luotao.c.wms-vue3": "npm run switch-node-version && tsx scripts/bump-to.luotao.c.wms-vue3.ts",
13
13
  "copy-to:luotao.c.wms-vue3": "npm run build:dev && tsx scripts/copy-to.luotao.c.wms-vue3.ts",
14
- "bump-to:luotao.c.wms-vue3:focus": "tsx scripts/bump-to.luotao.c.wms-vue3.focus.ts",
14
+ "bump-to:luotao.c.wms-vue3:focus": "npm run switch-node-version && tsx scripts/bump-to.luotao.c.wms-vue3.focus.ts",
15
15
  "copy-to:luotao.c.wms-vue3:focus": "npm run build:dev && tsx scripts/copy-to.luotao.c.wms-vue3.focus.ts",
16
16
  "--------------------- D": "",
17
- "bump-to:luotao.wms-vue3": "tsx scripts/bump-to.luotao.wms-vue3.ts",
17
+ "bump-to:luotao.wms-vue3": "npm run switch-node-version && tsx scripts/bump-to.luotao.wms-vue3.ts",
18
18
  "copy-to:luotao.wms-vue3": "npm run build:dev && tsx scripts/copy-to.luotao.wms-vue3.ts",
19
- "bump-to:luotao.wms-vue3:focus": "tsx scripts/bump-to.luotao.wms-vue3.focus.ts",
19
+ "bump-to:luotao.wms-vue3:focus": "npm run switch-node-version && tsx scripts/bump-to.luotao.wms-vue3.focus.ts",
20
20
  "copy-to:luotao.wms-vue3:focus": "npm run build:dev && tsx scripts/copy-to.luotao.wms-vue3.focus.ts",
21
21
  "--------------------": "",
22
- "cnpm:sync": "cnpm sync @kengic/vue",
23
- "gen:apis:WMS": "kengic-pont generate-apis --config kg.config.ts --origin WMS",
24
- "bump-version:beta": "tsx scripts/bump.ts beta",
25
- "bump-version:major": "tsx scripts/bump.ts major",
26
- "bump-version:minor": "tsx scripts/bump.ts minor",
27
- "bump-version:patch": "tsx scripts/bump.ts patch",
28
- "publish:all": "tsx scripts/publish.ts",
29
- "publish:npm": "npmrc kengic && npm publish ./ --registry https://registry.npmjs.org/ --access public"
22
+ "switch-node-version": "node scripts/switch-node-version.mjs --experimental-default-type=module",
23
+ "cnpm:sync": "npm run switch-node-version && cnpm sync @kengic/vue",
24
+ "gen:apis:WMS": "npm run switch-node-version && kengic-pont generate-apis --config kg.config.ts --origin WMS",
25
+ "bump-version:beta": "npm run switch-node-version && tsx scripts/bump.ts beta",
26
+ "bump-version:major": "npm run switch-node-version && tsx scripts/bump.ts major",
27
+ "bump-version:minor": "npm run switch-node-version && tsx scripts/bump.ts minor",
28
+ "bump-version:patch": "npm run switch-node-version && tsx scripts/bump.ts patch",
29
+ "publish:all": "npm run switch-node-version && tsx scripts/publish.ts",
30
+ "publish:npm": "npm run switch-node-version && npmrc kengic && npm publish ./ --registry https://registry.npmjs.org/ --access public"
30
31
  },
31
32
  "peerDependencies": {
32
33
  "vue": "3.2.43"