@kengic/vue 0.19.2-beta.8 → 0.20.0
Sign up to get free protection for your applications and to get access to all the features.
- package/CHANGELOG.md +7 -0
- package/dist/index.css +1 -1
- package/dist/kengic-vue.js +247 -270
- package/dist/src/apis/WMS/models.d.ts +2 -2
- package/dist/src/components/KgButton/index.hooks.d.ts +0 -5
- package/dist/src/components/KgLayoutHeader/index.d.ts +1 -0
- package/dist/src/components/KgLayoutHeader/index.hooks.d.ts +4 -0
- package/dist/src/components/KgSearch/KgSearch.d.ts +7 -7
- package/dist/src/components/KgSearch/KgSearch.hooks.d.ts +1 -2
- package/dist/src/components/index.d.ts +1 -0
- package/dist/src/config/index.hooks.d.ts +3 -0
- package/dist/src/config/index.store.d.ts +10 -0
- package/dist/src/pages/KgPageDda/components/KgPageDda.Create.store.d.ts +6 -6
- package/package.json +1 -1
package/dist/kengic-vue.js
CHANGED
@@ -470,12 +470,7 @@ const index$a = "", en = {
|
|
470
470
|
}
|
471
471
|
}, I18N = { en, zh_CN }, KG_DI_FORM_ID = Symbol("KG_DI_FORM_ID"), KG_DI_HOST_FORM_ID = Symbol("KG_DI_HOST_FORM_ID"), KG_DI_VAR_NAME = Symbol("KG_DI_VAR_NAME"), KG_DI_LOOKUP_ID = Symbol("KG_DI_LOOKUP_ID");
|
472
472
|
var KG_APP = /* @__PURE__ */ ((e) => (e.WMS_DATA_MANAGER = "data-manager", e.WMS_BUSINESS_MANAGER = "business-manager", e.WCS = "wcs", e.SYS = "sys", e))(KG_APP || {}), KG_APP_PREFIX = /* @__PURE__ */ ((e) => (e.WMS_DATA_MANAGER = "/wms/data-manager", e.WMS_BUSINESS_MANAGER = "/wms/business-manager", e.WCS = "/wcs", e.SYS = "/sys", e))(KG_APP_PREFIX || {});
|
473
|
-
const KG_APPS = ["data-manager", "business-manager", "wcs", "sys"], KG_APP_PREFIXS = [
|
474
|
-
"/wms/data-manager",
|
475
|
-
"/wms/business-manager",
|
476
|
-
"/wcs",
|
477
|
-
"/sys"
|
478
|
-
];
|
473
|
+
const KG_APPS = ["data-manager", "business-manager", "wcs", "sys"], KG_APP_PREFIXS = ["/wms/data-manager", "/wms/business-manager", "/wcs", "/sys"];
|
479
474
|
var KG_FORM_ITEM_TYPE = /* @__PURE__ */ ((e) => (e.INPUT = "INPUT", e.INPUT_PASSWORD = "INPUT_PASSWORD", e.INPUT_NUMBER = "INPUT_NUMBER", e.TEXT_AREA = "TEXT_AREA", e.CHECKBOX = "CHECKBOX", e.CHECKBOX_GROUP = "CHECKBOX_GROUP", e.RADIO_GROUP = "RADIO_GROUP", e.SWITCH = "SWITCH", e.SELECT = "SELECT", e.SELECT_MULTIPLE = "SELECT_MULTIPLE", e.DATE_DATE = "DATE_DATE", e.DATE_DATE_RANGE = "DATE_DATE_RANGE", e.DATE_TIME = "DATE_TIME", e.DATE_TIME_RANGE = "DATE_TIME_RANGE", e.DATE_DATETIME = "DATE_DATETIME", e.DATE_DATETIME_RANGE = "DATE_DATETIME_RANGE", e.DATE_WEEK = "DATE_WEEK", e.DATE_MONTH = "DATE_MONTH", e.DATE_YEAR = "DATE_YEAR", e.BUTTON_UPLOAD = "BUTTON_UPLOAD", e))(KG_FORM_ITEM_TYPE || {}), KG_FORM_CONTEXT = /* @__PURE__ */ ((e) => (e.SEARCH = "SEARCH", e.SUBMIT = "SUBMIT", e.TABLE = "TABLE", e))(KG_FORM_CONTEXT || {}), KG_TABLE_CELL_DISPLAY_TYPE = /* @__PURE__ */ ((e) => (e.YN = "YN", e.ENUM = "ENUM", e.PROGRESS = "PROGRESS", e.FILE_SIZE = "FILE_SIZE", e.UPDATE_LINK = "UPDATE_LINK", e.ROUTE_LINK = "ROUTE_LINK", e.DESC = "DESC", e))(KG_TABLE_CELL_DISPLAY_TYPE || {}), KG_BUTTON_TYPE = /* @__PURE__ */ ((e) => (e.SEARCH = "SEARCH", e.CREATE = "CREATE", e.UPDATE = "UPDATE", e.COPY = "COPY", e.DELETE = "DELETE", e.IMPORT = "IMPORT", e.IMPORT_TEMPLATE = "IMPORT_TEMPLATE", e.EXPORT = "EXPORT", e.OTHER = "OTHER", e))(KG_BUTTON_TYPE || {}), KG_BUTTON_COLOR = /* @__PURE__ */ ((e) => (e.DANGER = "DANGER", e.WARN = "WARN", e))(KG_BUTTON_COLOR || {}), KG_BUTTON_DISPLAY_TYPE = /* @__PURE__ */ ((e) => (e.DEFAULT = "DEFAULT", e.SELECT = "SELECT", e))(KG_BUTTON_DISPLAY_TYPE || {}), KG_VAR_SUBMIT__DISPLAY_TYPE = /* @__PURE__ */ ((e) => (e.MODAL = "MODAL", e.DRAWER = "DRAWER", e.TABLE = "TABLE", e))(KG_VAR_SUBMIT__DISPLAY_TYPE || {}), KG_VAR_SUBMIT__LAYOUT = /* @__PURE__ */ ((e) => (e.VERTICAL = "vertical", e.HORIZONTAL = "horizontal", e))(KG_VAR_SUBMIT__LAYOUT || {}), KG_VAR_INPUT__DATA_TYPE = /* @__PURE__ */ ((e) => (e.NUMBER = "NUMBER", e))(KG_VAR_INPUT__DATA_TYPE || {}), KG_CUSTOM_LEVEL = /* @__PURE__ */ ((e) => (e[e.L0 = 0] = "L0", e[e.L10 = 10] = "L10", e))(KG_CUSTOM_LEVEL || {}), KG_POSSIBILITY_DATA_TYPE = /* @__PURE__ */ ((e) => (e.STRING = "string", e.NUMBER = "number", e.BOOLEAN = "boolean", e))(KG_POSSIBILITY_DATA_TYPE || {}), KG_WIDTH_UNIT = /* @__PURE__ */ ((e) => (e.SPAN = "SPAN", e.PX = "PX", e))(KG_WIDTH_UNIT || {}), KG_EXCEL_SUFFIX = /* @__PURE__ */ ((e) => (e.XLS = "xls", e.XLSX = "xlsx", e))(KG_EXCEL_SUFFIX || {}), KG_DESCRIPTION_CODE_NAME = /* @__PURE__ */ ((e) => (e.YN = "yn", e.VAR_SUBMIT_LAYOUT = "var_submit_layout", e.VAR_SPAN = "var_span", e.VAR_BUTTON_DISPLAY_TYPE = "var_button_display_type", e.VAR_WIDTH_UNIT = "var_width_unit", e))(KG_DESCRIPTION_CODE_NAME || {}), KG_DYNAMIC_QUERY_OPERATOR = /* @__PURE__ */ ((e) => (e.EQ = "eq", e.NE = "ne", e.GT = "gt", e.LT = "lt", e.GTE = "gte", e.LTE = "lte", e.START_WITH = "start", e.END_WITH = "end", e.CONTAIN = "contain", e.IN = "in", e.BETWEEN = "between", e))(KG_DYNAMIC_QUERY_OPERATOR || {}), KG_HTTP_HEADERS = /* @__PURE__ */ ((e) => (e.KG_DYNAMIC_QUERY = "Kg-Dynamic-Query", e.KG_QUERY_SQL = "Kg-Query-Sql", e.KG_QUERY_WHERE_SQL = "Kg-Query-Where-Sql", e.KG_QUERY_ORDER_BY_SQL = "Kg-Query-Order-By-Sql", e.KG_QUERY_OPERATOR = "Kg-Query-Operator", e))(KG_HTTP_HEADERS || {});
|
480
475
|
const __KG__RESPONSE__ = "__KG__RESPONSE__", KG_TMP_MENU_ID__DATA_MANAGER = "KG_TMP_MENU_ID__DATA_MANAGER", KG_TMP_MENU_ID__BUSINESS_MANAGER = "KG_TMP_MENU_ID__BUSINESS_MANAGER", KG_TMP_MENU_ID__WCS = "KG_TMP_MENU_ID__WCS", KG_TMP_MENU_ID__SYS = "KG_TMP_MENU_ID__SYS", KG_TMP_MENU_ID__PDA = "KG_TMP_MENU_ID__PDA";
|
481
476
|
function bound01(e, t) {
|
@@ -2936,7 +2931,7 @@ const emptyIcon = {
|
|
2936
2931
|
...t.data
|
2937
2932
|
}, r);
|
2938
2933
|
}
|
2939
|
-
}), version = "0.
|
2934
|
+
}), version = "0.20.0";
|
2940
2935
|
var isVue2 = !1;
|
2941
2936
|
function set(e, t, r) {
|
2942
2937
|
return Array.isArray(e) ? (e.length = Math.max(e.length, t), e.splice(t, 1, r), r) : (e[t] = r, r);
|
@@ -3166,9 +3161,9 @@ function createSetupStore(e, t, r = {}, a, n) {
|
|
3166
3161
|
function T(D, R) {
|
3167
3162
|
return function() {
|
3168
3163
|
setActivePinia(a);
|
3169
|
-
const w = Array.from(arguments),
|
3170
|
-
function
|
3171
|
-
|
3164
|
+
const w = Array.from(arguments), V = [], O = [];
|
3165
|
+
function P(K) {
|
3166
|
+
V.push(K);
|
3172
3167
|
}
|
3173
3168
|
function N(K) {
|
3174
3169
|
O.push(K);
|
@@ -3177,7 +3172,7 @@ function createSetupStore(e, t, r = {}, a, n) {
|
|
3177
3172
|
args: w,
|
3178
3173
|
name: D,
|
3179
3174
|
store: C,
|
3180
|
-
after:
|
3175
|
+
after: P,
|
3181
3176
|
onError: N
|
3182
3177
|
});
|
3183
3178
|
let M;
|
@@ -3186,7 +3181,7 @@ function createSetupStore(e, t, r = {}, a, n) {
|
|
3186
3181
|
} catch (K) {
|
3187
3182
|
throw triggerSubscriptions(O, K), K;
|
3188
3183
|
}
|
3189
|
-
return M instanceof Promise ? M.then((K) => (triggerSubscriptions(
|
3184
|
+
return M instanceof Promise ? M.then((K) => (triggerSubscriptions(V, K), K)).catch((K) => (triggerSubscriptions(O, K), Promise.reject(K))) : (triggerSubscriptions(V, M), M);
|
3190
3185
|
};
|
3191
3186
|
}
|
3192
3187
|
const k = /* @__PURE__ */ markRaw({
|
@@ -3201,7 +3196,7 @@ function createSetupStore(e, t, r = {}, a, n) {
|
|
3201
3196
|
$patch: _,
|
3202
3197
|
$reset: y,
|
3203
3198
|
$subscribe(D, R = {}) {
|
3204
|
-
const w = addSubscription(d, D, R.detached, () =>
|
3199
|
+
const w = addSubscription(d, D, R.detached, () => V()), V = s.run(() => watch(() => a.state.value[e], (O) => {
|
3205
3200
|
(R.flush === "sync" ? u : c) && D({
|
3206
3201
|
storeId: e,
|
3207
3202
|
type: MutationType.direct,
|
@@ -3243,8 +3238,8 @@ function createSetupStore(e, t, r = {}, a, n) {
|
|
3243
3238
|
C._hotUpdate = markRaw((R) => {
|
3244
3239
|
C._hotUpdating = !0, R._hmrPayload.state.forEach((w) => {
|
3245
3240
|
if (w in C.$state) {
|
3246
|
-
const
|
3247
|
-
typeof
|
3241
|
+
const V = R.$state[w], O = C.$state[w];
|
3242
|
+
typeof V == "object" && isPlainObject(V) && isPlainObject(O) ? patchObject(V, O) : R.$state[w] = O;
|
3248
3243
|
}
|
3249
3244
|
set(C, w, toRef(R.$state, w));
|
3250
3245
|
}), Object.keys(C.$state).forEach((w) => {
|
@@ -3253,11 +3248,11 @@ function createSetupStore(e, t, r = {}, a, n) {
|
|
3253
3248
|
c = !0;
|
3254
3249
|
});
|
3255
3250
|
for (const w in R._hmrPayload.actions) {
|
3256
|
-
const
|
3257
|
-
set(C, w, T(w,
|
3251
|
+
const V = R[w];
|
3252
|
+
set(C, w, T(w, V));
|
3258
3253
|
}
|
3259
3254
|
for (const w in R._hmrPayload.getters) {
|
3260
|
-
const
|
3255
|
+
const V = R._hmrPayload.getters[w], O = i ? computed(() => (setActivePinia(a), V.call(C, C))) : V;
|
3261
3256
|
set(C, w, O);
|
3262
3257
|
}
|
3263
3258
|
Object.keys(C._hmrPayload.getters).forEach((w) => {
|
@@ -5314,7 +5309,7 @@ class KgRouteUtil {
|
|
5314
5309
|
}), t;
|
5315
5310
|
}
|
5316
5311
|
static transformMenus(t) {
|
5317
|
-
var b, E, g, v, _, y, m, T, k, A, C, I, D, R, w,
|
5312
|
+
var b, E, g, v, _, y, m, T, k, A, C, I, D, R, w, V, O, P, N, M, K, L, B, U, F, x, q, Q, Z, ae, te, se, ue, le;
|
5318
5313
|
if (!t)
|
5319
5314
|
return [];
|
5320
5315
|
const r = useKg(), a = (X) => {
|
@@ -5375,9 +5370,9 @@ class KgRouteUtil {
|
|
5375
5370
|
id: KG_TMP_MENU_ID__WCS,
|
5376
5371
|
key: KG_TMP_MENU_ID__WCS,
|
5377
5372
|
name: (R = (D = r.option.value.appTitle) == null ? void 0 : D[KG_APP.WCS]) != null ? R : "WCS",
|
5378
|
-
slotTitle: (
|
5373
|
+
slotTitle: (V = (w = r.option.value.appTitle) == null ? void 0 : w[KG_APP.WCS]) != null ? V : "WCS",
|
5379
5374
|
sortNo: 3,
|
5380
|
-
title: (
|
5375
|
+
title: (P = (O = r.option.value.appTitle) == null ? void 0 : O[KG_APP.WCS]) != null ? P : "WCS",
|
5381
5376
|
...n,
|
5382
5377
|
url: KG_APP_PREFIX.WCS,
|
5383
5378
|
value: KG_TMP_MENU_ID__WCS
|
@@ -5561,8 +5556,8 @@ var commonjsGlobal = typeof globalThis < "u" ? globalThis : typeof window < "u"
|
|
5561
5556
|
return N.clone();
|
5562
5557
|
var K = typeof M == "object" ? M : {};
|
5563
5558
|
return K.date = N, K.args = arguments, new O(K);
|
5564
|
-
},
|
5565
|
-
|
5559
|
+
}, V = k;
|
5560
|
+
V.l = R, V.i = D, V.w = function(N, M) {
|
5566
5561
|
return w(N, { locale: M.$L, utc: M.$u, x: M.$x, $offset: M.$offset });
|
5567
5562
|
};
|
5568
5563
|
var O = function() {
|
@@ -5575,7 +5570,7 @@ var commonjsGlobal = typeof globalThis < "u" ? globalThis : typeof window < "u"
|
|
5575
5570
|
var B = L.date, U = L.utc;
|
5576
5571
|
if (B === null)
|
5577
5572
|
return new Date(NaN);
|
5578
|
-
if (
|
5573
|
+
if (V.u(B))
|
5579
5574
|
return new Date();
|
5580
5575
|
if (B instanceof Date)
|
5581
5576
|
return new Date(B);
|
@@ -5592,7 +5587,7 @@ var commonjsGlobal = typeof globalThis < "u" ? globalThis : typeof window < "u"
|
|
5592
5587
|
var K = this.$d;
|
5593
5588
|
this.$y = K.getFullYear(), this.$M = K.getMonth(), this.$D = K.getDate(), this.$W = K.getDay(), this.$H = K.getHours(), this.$m = K.getMinutes(), this.$s = K.getSeconds(), this.$ms = K.getMilliseconds();
|
5594
5589
|
}, M.$utils = function() {
|
5595
|
-
return
|
5590
|
+
return V;
|
5596
5591
|
}, M.isValid = function() {
|
5597
5592
|
return this.$d.toString() !== v;
|
5598
5593
|
}, M.isSame = function(K, L) {
|
@@ -5603,17 +5598,17 @@ var commonjsGlobal = typeof globalThis < "u" ? globalThis : typeof window < "u"
|
|
5603
5598
|
}, M.isBefore = function(K, L) {
|
5604
5599
|
return this.endOf(L) < w(K);
|
5605
5600
|
}, M.$g = function(K, L, B) {
|
5606
|
-
return
|
5601
|
+
return V.u(K) ? this[L] : this.set(B, K);
|
5607
5602
|
}, M.unix = function() {
|
5608
5603
|
return Math.floor(this.valueOf() / 1e3);
|
5609
5604
|
}, M.valueOf = function() {
|
5610
5605
|
return this.$d.getTime();
|
5611
5606
|
}, M.startOf = function(K, L) {
|
5612
|
-
var B = this, U = !!
|
5613
|
-
var $ =
|
5607
|
+
var B = this, U = !!V.u(L) || L, F = V.p(K), x = function(le, X) {
|
5608
|
+
var $ = V.w(B.$u ? Date.UTC(B.$y, X, le) : new Date(B.$y, X, le), B);
|
5614
5609
|
return U ? $ : $.endOf(c);
|
5615
5610
|
}, q = function(le, X) {
|
5616
|
-
return
|
5611
|
+
return V.w(B.toDate()[le].apply(B.toDate("s"), (U ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(X)), B);
|
5617
5612
|
}, Q = this.$W, Z = this.$M, ae = this.$D, te = "set" + (this.$u ? "UTC" : "");
|
5618
5613
|
switch (F) {
|
5619
5614
|
case E:
|
@@ -5638,7 +5633,7 @@ var commonjsGlobal = typeof globalThis < "u" ? globalThis : typeof window < "u"
|
|
5638
5633
|
}, M.endOf = function(K) {
|
5639
5634
|
return this.startOf(K, !1);
|
5640
5635
|
}, M.$set = function(K, L) {
|
5641
|
-
var B, U =
|
5636
|
+
var B, U = V.p(K), F = "set" + (this.$u ? "UTC" : ""), x = (B = {}, B[c] = F + "Date", B[g] = F + "Date", B[d] = F + "Month", B[E] = F + "FullYear", B[l] = F + "Hours", B[o] = F + "Minutes", B[i] = F + "Seconds", B[s] = F + "Milliseconds", B)[U], q = U === c ? this.$D + (L - this.$W) : L;
|
5642
5637
|
if (U === d || U === E) {
|
5643
5638
|
var Q = this.clone().set(g, 1);
|
5644
5639
|
Q.$d[x](q), Q.init(), this.$d = Q.set(g, Math.min(this.$D, Q.daysInMonth())).$d;
|
@@ -5648,13 +5643,13 @@ var commonjsGlobal = typeof globalThis < "u" ? globalThis : typeof window < "u"
|
|
5648
5643
|
}, M.set = function(K, L) {
|
5649
5644
|
return this.clone().$set(K, L);
|
5650
5645
|
}, M.get = function(K) {
|
5651
|
-
return this[
|
5646
|
+
return this[V.p(K)]();
|
5652
5647
|
}, M.add = function(K, L) {
|
5653
5648
|
var B, U = this;
|
5654
5649
|
K = Number(K);
|
5655
|
-
var F =
|
5650
|
+
var F = V.p(L), x = function(Z) {
|
5656
5651
|
var ae = w(U);
|
5657
|
-
return
|
5652
|
+
return V.w(ae.date(ae.date() + Math.round(Z * K)), U);
|
5658
5653
|
};
|
5659
5654
|
if (F === d)
|
5660
5655
|
return this.set(d, this.$M + K);
|
@@ -5665,17 +5660,17 @@ var commonjsGlobal = typeof globalThis < "u" ? globalThis : typeof window < "u"
|
|
5665
5660
|
if (F === u)
|
5666
5661
|
return x(7);
|
5667
5662
|
var q = (B = {}, B[o] = a, B[l] = n, B[i] = r, B)[F] || 1, Q = this.$d.getTime() + K * q;
|
5668
|
-
return
|
5663
|
+
return V.w(Q, this);
|
5669
5664
|
}, M.subtract = function(K, L) {
|
5670
5665
|
return this.add(-1 * K, L);
|
5671
5666
|
}, M.format = function(K) {
|
5672
5667
|
var L = this, B = this.$locale();
|
5673
5668
|
if (!this.isValid())
|
5674
5669
|
return B.invalidDate || v;
|
5675
|
-
var U = K || "YYYY-MM-DDTHH:mm:ssZ", F =
|
5670
|
+
var U = K || "YYYY-MM-DDTHH:mm:ssZ", F = V.z(this), x = this.$H, q = this.$m, Q = this.$M, Z = B.weekdays, ae = B.months, te = B.meridiem, se = function(X, $, G, z) {
|
5676
5671
|
return X && (X[$] || X(L, U)) || G[$].slice(0, z);
|
5677
5672
|
}, ue = function(X) {
|
5678
|
-
return
|
5673
|
+
return V.s(x % 12 || 12, X, "0");
|
5679
5674
|
}, le = te || function(X, $, G) {
|
5680
5675
|
var z = X < 12 ? "AM" : "PM";
|
5681
5676
|
return G ? z.toLowerCase() : z;
|
@@ -5686,11 +5681,11 @@ var commonjsGlobal = typeof globalThis < "u" ? globalThis : typeof window < "u"
|
|
5686
5681
|
case "YY":
|
5687
5682
|
return String(L.$y).slice(-2);
|
5688
5683
|
case "YYYY":
|
5689
|
-
return
|
5684
|
+
return V.s(L.$y, 4, "0");
|
5690
5685
|
case "M":
|
5691
5686
|
return Q + 1;
|
5692
5687
|
case "MM":
|
5693
|
-
return
|
5688
|
+
return V.s(Q + 1, 2, "0");
|
5694
5689
|
case "MMM":
|
5695
5690
|
return se(B.monthsShort, Q, ae, 3);
|
5696
5691
|
case "MMMM":
|
@@ -5698,7 +5693,7 @@ var commonjsGlobal = typeof globalThis < "u" ? globalThis : typeof window < "u"
|
|
5698
5693
|
case "D":
|
5699
5694
|
return L.$D;
|
5700
5695
|
case "DD":
|
5701
|
-
return
|
5696
|
+
return V.s(L.$D, 2, "0");
|
5702
5697
|
case "d":
|
5703
5698
|
return String(L.$W);
|
5704
5699
|
case "dd":
|
@@ -5710,7 +5705,7 @@ var commonjsGlobal = typeof globalThis < "u" ? globalThis : typeof window < "u"
|
|
5710
5705
|
case "H":
|
5711
5706
|
return String(x);
|
5712
5707
|
case "HH":
|
5713
|
-
return
|
5708
|
+
return V.s(x, 2, "0");
|
5714
5709
|
case "h":
|
5715
5710
|
return ue(1);
|
5716
5711
|
case "hh":
|
@@ -5722,13 +5717,13 @@ var commonjsGlobal = typeof globalThis < "u" ? globalThis : typeof window < "u"
|
|
5722
5717
|
case "m":
|
5723
5718
|
return String(q);
|
5724
5719
|
case "mm":
|
5725
|
-
return
|
5720
|
+
return V.s(q, 2, "0");
|
5726
5721
|
case "s":
|
5727
5722
|
return String(L.$s);
|
5728
5723
|
case "ss":
|
5729
|
-
return
|
5724
|
+
return V.s(L.$s, 2, "0");
|
5730
5725
|
case "SSS":
|
5731
|
-
return
|
5726
|
+
return V.s(L.$ms, 3, "0");
|
5732
5727
|
case "Z":
|
5733
5728
|
return F;
|
5734
5729
|
}
|
@@ -5738,8 +5733,8 @@ var commonjsGlobal = typeof globalThis < "u" ? globalThis : typeof window < "u"
|
|
5738
5733
|
}, M.utcOffset = function() {
|
5739
5734
|
return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
|
5740
5735
|
}, M.diff = function(K, L, B) {
|
5741
|
-
var U, F = this, x =
|
5742
|
-
return
|
5736
|
+
var U, F = this, x = V.p(L), q = w(K), Q = (q.utcOffset() - this.utcOffset()) * a, Z = this - q, ae = function() {
|
5737
|
+
return V.m(F, q);
|
5743
5738
|
};
|
5744
5739
|
switch (x) {
|
5745
5740
|
case E:
|
@@ -5769,7 +5764,7 @@ var commonjsGlobal = typeof globalThis < "u" ? globalThis : typeof window < "u"
|
|
5769
5764
|
default:
|
5770
5765
|
U = Z;
|
5771
5766
|
}
|
5772
|
-
return B ? U :
|
5767
|
+
return B ? U : V.a(U);
|
5773
5768
|
}, M.daysInMonth = function() {
|
5774
5769
|
return this.endOf(d).$D;
|
5775
5770
|
}, M.$locale = function() {
|
@@ -5780,7 +5775,7 @@ var commonjsGlobal = typeof globalThis < "u" ? globalThis : typeof window < "u"
|
|
5780
5775
|
var B = this.clone(), U = R(K, L, !0);
|
5781
5776
|
return U && (B.$L = U), B;
|
5782
5777
|
}, M.clone = function() {
|
5783
|
-
return
|
5778
|
+
return V.w(this.$d, this);
|
5784
5779
|
}, M.toDate = function() {
|
5785
5780
|
return new Date(this.valueOf());
|
5786
5781
|
}, M.toJSON = function() {
|
@@ -5790,9 +5785,9 @@ var commonjsGlobal = typeof globalThis < "u" ? globalThis : typeof window < "u"
|
|
5790
5785
|
}, M.toString = function() {
|
5791
5786
|
return this.$d.toUTCString();
|
5792
5787
|
}, N;
|
5793
|
-
}(),
|
5794
|
-
return w.prototype =
|
5795
|
-
|
5788
|
+
}(), P = O.prototype;
|
5789
|
+
return w.prototype = P, [["$ms", s], ["$s", i], ["$m", o], ["$H", l], ["$W", c], ["$M", d], ["$y", E], ["$D", g]].forEach(function(N) {
|
5790
|
+
P[N[1]] = function(M) {
|
5796
5791
|
return this.$g(M, N[0], N[1]);
|
5797
5792
|
};
|
5798
5793
|
}), w.extend = function(N, M) {
|
@@ -5861,8 +5856,8 @@ function filesize(e, {
|
|
5861
5856
|
T[0] = R(k * w) / w, T[0] === C && y < 8 && g === -1 && (T[0] = 1, y++), A = T[1] = a === 10 && y === 1 ? t ? SI_KBIT : SI_KBYTE : STRINGS.symbol[u][t ? BITS : BYTES][y];
|
5862
5857
|
}
|
5863
5858
|
if (D && (T[0] = -T[0]), _ > 0 && (T[0] = T[0].toPrecision(_)), T[1] = c[T[1]] || T[1], s === !0 ? T[0] = T[0].toLocaleString() : s.length > 0 ? T[0] = T[0].toLocaleString(s, i) : o.length > 0 && (T[0] = T[0].toString().replace(PERIOD, o)), r && Number.isInteger(T[0]) === !1 && n > 0) {
|
5864
|
-
const w = o || PERIOD,
|
5865
|
-
T[0] = `${
|
5859
|
+
const w = o || PERIOD, V = T[0].toString().split(w), O = V[1] || EMPTY, P = O.length, N = n - P;
|
5860
|
+
T[0] = `${V[0]}${w}${O.padEnd(P + N, ZERO)}`;
|
5866
5861
|
}
|
5867
5862
|
return I && (T[1] = E[y] ? E[y] : STRINGS.fullform[u][y] + (t ? BIT : BYTE) + (T[0] === 1 ? EMPTY : S)), d === ARRAY ? T : d === OBJECT ? {
|
5868
5863
|
value: T[0],
|
@@ -6829,7 +6824,6 @@ class VarButton {
|
|
6829
6824
|
p(this, "del_param_clm");
|
6830
6825
|
p(this, "dis_mult_select_flg");
|
6831
6826
|
p(this, "dis_no_select_flg");
|
6832
|
-
p(this, "ena_flg");
|
6833
6827
|
p(this, "export_excel_filename");
|
6834
6828
|
p(this, "export_excel_suffix");
|
6835
6829
|
p(this, "frm_id");
|
@@ -6856,7 +6850,6 @@ class VarButton {
|
|
6856
6850
|
case "del_param_clm":
|
6857
6851
|
case "dis_mult_select_flg":
|
6858
6852
|
case "dis_no_select_flg":
|
6859
|
-
case "ena_flg":
|
6860
6853
|
case "export_excel_filename":
|
6861
6854
|
case "export_excel_suffix":
|
6862
6855
|
case "frm_id":
|
@@ -7334,6 +7327,7 @@ class VarSubmitField {
|
|
7334
7327
|
p(this, "id");
|
7335
7328
|
p(this, "key_flg");
|
7336
7329
|
p(this, "placeholder");
|
7330
|
+
p(this, "required_flag");
|
7337
7331
|
p(this, "section");
|
7338
7332
|
p(this, "srtseq");
|
7339
7333
|
p(this, "upt_dft_val");
|
@@ -7368,6 +7362,7 @@ class VarSubmitField {
|
|
7368
7362
|
case "id":
|
7369
7363
|
case "key_flg":
|
7370
7364
|
case "placeholder":
|
7365
|
+
case "required_flag":
|
7371
7366
|
case "section":
|
7372
7367
|
case "srtseq":
|
7373
7368
|
case "upt_dft_val":
|
@@ -8002,8 +7997,8 @@ const KgTable_Setting = "", FORM_ID__VAR_GRID_CONFIG = "kg-table.VarGridConfig",
|
|
8002
7997
|
}) => (l.value = o.value ? [o.value] : [], !0), !0), n.onOpen(async ({
|
8003
7998
|
model: l
|
8004
7999
|
}) => (i = watch(l, (c) => {
|
8005
|
-
var u, d, b, E, g, v, _, y, m, T, k, A, C, I, D, R, w,
|
8006
|
-
c && (c.id = (d = (u = o.value) == null ? void 0 : u.id) != null ? d : null, c.frm_id = r == null ? void 0 : r.formID, c.aut_load_flg = (E = (b = o.value) == null ? void 0 : b.aut_load_flg) != null ? E : 0, c.mult_flg = (v = (g = o.value) == null ? void 0 : g.mult_flg) != null ? v : 0, c.show_check_column_flg = (y = (_ = o.value) == null ? void 0 : _.show_check_column_flg) != null ? y : 0, c.show_bottom_left_flg = (T = (m = o.value) == null ? void 0 : m.show_bottom_left_flg) != null ? T : 1, c.show_bottom_right_flg = (A = (k = o.value) == null ? void 0 : k.show_bottom_right_flg) != null ? A : 1, c.convert_sort_field_to_under_score_flg = (I = (C = o.value) == null ? void 0 : C.convert_sort_field_to_under_score_flg) != null ? I : 0, c.pg_size_opts = (R = (D = o.value) == null ? void 0 : D.pg_size_opts) != null ? R : "[10, 20, 50, 100]", c.pg_size_opt = (
|
8000
|
+
var u, d, b, E, g, v, _, y, m, T, k, A, C, I, D, R, w, V, O, P, N, M;
|
8001
|
+
c && (c.id = (d = (u = o.value) == null ? void 0 : u.id) != null ? d : null, c.frm_id = r == null ? void 0 : r.formID, c.aut_load_flg = (E = (b = o.value) == null ? void 0 : b.aut_load_flg) != null ? E : 0, c.mult_flg = (v = (g = o.value) == null ? void 0 : g.mult_flg) != null ? v : 0, c.show_check_column_flg = (y = (_ = o.value) == null ? void 0 : _.show_check_column_flg) != null ? y : 0, c.show_bottom_left_flg = (T = (m = o.value) == null ? void 0 : m.show_bottom_left_flg) != null ? T : 1, c.show_bottom_right_flg = (A = (k = o.value) == null ? void 0 : k.show_bottom_right_flg) != null ? A : 1, c.convert_sort_field_to_under_score_flg = (I = (C = o.value) == null ? void 0 : C.convert_sort_field_to_under_score_flg) != null ? I : 0, c.pg_size_opts = (R = (D = o.value) == null ? void 0 : D.pg_size_opts) != null ? R : "[10, 20, 50, 100]", c.pg_size_opt = (V = (w = o.value) == null ? void 0 : w.pg_size_opt) != null ? V : 10, c.cmd_prm = (P = (O = o.value) == null ? void 0 : O.cmd_prm) != null ? P : void 0, c.button_display_type = (M = (N = o.value) == null ? void 0 : N.button_display_type) != null ? M : KG_BUTTON_DISPLAY_TYPE.DEFAULT);
|
8007
8002
|
}, {
|
8008
8003
|
immediate: !0
|
8009
8004
|
}), KgUtil.hideLoading(), !1)), n.onClose(async () => (i == null || i(), !1)), n.onBeforeOk(async ({
|
@@ -8914,7 +8909,7 @@ const KgTable_Setting_ConfigModal_VarGridMaster = "", getProps$G = () => ({
|
|
8914
8909
|
row: A,
|
8915
8910
|
model: C
|
8916
8911
|
}) => {
|
8917
|
-
var D, R, w,
|
8912
|
+
var D, R, w, V, O;
|
8918
8913
|
const I = a.store.getSystemVarGridDetails(a.formID);
|
8919
8914
|
switch (c.value = I ? cloneDeep(toRaw(unref(I))) : [], !0) {
|
8920
8915
|
case m: {
|
@@ -8926,24 +8921,24 @@ const KgTable_Setting_ConfigModal_VarGridMaster = "", getProps$G = () => ({
|
|
8926
8921
|
if (A != null && A.id)
|
8927
8922
|
try {
|
8928
8923
|
o.store.setIsLoading(n.formID, !0);
|
8929
|
-
const
|
8924
|
+
const P = await QueryByID$1({
|
8930
8925
|
params: {
|
8931
8926
|
id: A.id
|
8932
8927
|
}
|
8933
8928
|
});
|
8934
8929
|
c.value = c.value.map((M) => {
|
8935
8930
|
var L;
|
8936
|
-
const K = (L =
|
8931
|
+
const K = (L = P == null ? void 0 : P.varGridDetails) == null ? void 0 : L.find((B) => B.var_nam === M.var_nam);
|
8937
8932
|
return K ? {
|
8938
8933
|
...M,
|
8939
8934
|
...K,
|
8940
8935
|
id: M.id
|
8941
8936
|
} : M;
|
8942
8937
|
});
|
8943
|
-
const N = (R = (D =
|
8938
|
+
const N = (R = (D = P == null ? void 0 : P.varGridDetails) == null ? void 0 : D.map((M) => M.var_nam)) != null ? R : [];
|
8944
8939
|
u.value = c.value.filter((M) => N.includes(M.var_nam)).map((M) => M.id);
|
8945
|
-
} catch (
|
8946
|
-
throw
|
8940
|
+
} catch (P) {
|
8941
|
+
throw P;
|
8947
8942
|
} finally {
|
8948
8943
|
o.store.setIsLoading(n.formID, !1);
|
8949
8944
|
}
|
@@ -8954,7 +8949,7 @@ const KgTable_Setting_ConfigModal_VarGridMaster = "", getProps$G = () => ({
|
|
8954
8949
|
}
|
8955
8950
|
switch (!0) {
|
8956
8951
|
case k: {
|
8957
|
-
C.value.grd_var_nam = ((w = C.value.grd_var_nam) != null ? w : "") + "_COPY", C.value.grd_var_nam_dsc = ((O = (
|
8952
|
+
C.value.grd_var_nam = ((w = C.value.grd_var_nam) != null ? w : "") + "_COPY", C.value.grd_var_nam_dsc = ((O = (V = C.value.grd_var_nam_dsc) != null ? V : C.value.grd_var_nam) != null ? O : "") + "_COPY";
|
8958
8953
|
break;
|
8959
8954
|
}
|
8960
8955
|
}
|
@@ -9028,8 +9023,8 @@ const KgTable_Setting_ConfigModal_VarGridMaster = "", getProps$G = () => ({
|
|
9028
9023
|
onItemSelect: I
|
9029
9024
|
}) => {
|
9030
9025
|
const D = T.sort((R, w) => {
|
9031
|
-
var
|
9032
|
-
return ((
|
9026
|
+
var V, O;
|
9027
|
+
return ((V = R.srtseq) != null ? V : 0) - ((O = w.srtseq) != null ? O : 0);
|
9033
9028
|
});
|
9034
9029
|
return d.value = D, createVNode(Table, {
|
9035
9030
|
pagination: !1,
|
@@ -9044,7 +9039,7 @@ const KgTable_Setting_ConfigModal_VarGridMaster = "", getProps$G = () => ({
|
|
9044
9039
|
dataSource: D,
|
9045
9040
|
customRow: (R) => {
|
9046
9041
|
let w = {
|
9047
|
-
onClick: (
|
9042
|
+
onClick: (V) => y(V, R, m, k)
|
9048
9043
|
};
|
9049
9044
|
return m === "right" && (w["kg-host-frm_id"] = a.formID, w["kg-var_nam"] = R.var_nam), w;
|
9050
9045
|
},
|
@@ -9370,7 +9365,7 @@ const getProps$D = () => ({
|
|
9370
9365
|
popupClassName: "kg-table-setting--submenu-popup--row-height"
|
9371
9366
|
}, {
|
9372
9367
|
default: () => {
|
9373
|
-
let R, w,
|
9368
|
+
let R, w, V;
|
9374
9369
|
return createVNode(Fragment, null, [createVNode(Menu.Item, {
|
9375
9370
|
key: "L",
|
9376
9371
|
class: u.value === "L" ? "selected" : "",
|
@@ -9387,8 +9382,8 @@ const getProps$D = () => ({
|
|
9387
9382
|
key: "H",
|
9388
9383
|
class: u.value === "H" ? "selected" : "",
|
9389
9384
|
onClick: () => s.store.setRowHeight(n.formID, "H")
|
9390
|
-
}, _isSlot$d(
|
9391
|
-
default: () => [
|
9385
|
+
}, _isSlot$d(V = a.t("kg.KgTable.rowHeightH")) ? V : {
|
9386
|
+
default: () => [V]
|
9392
9387
|
})]);
|
9393
9388
|
},
|
9394
9389
|
expandIcon: () => createVNode(CaretRightOutlined$1, null, null)
|
@@ -9693,7 +9688,7 @@ const getProps$z = () => ({
|
|
9693
9688
|
});
|
9694
9689
|
}
|
9695
9690
|
function m() {
|
9696
|
-
var k, A, C, I, D, R, w,
|
9691
|
+
var k, A, C, I, D, R, w, V, O, P, N;
|
9697
9692
|
if (u.value)
|
9698
9693
|
return y();
|
9699
9694
|
switch ((k = l.value) == null ? void 0 : k.display_type) {
|
@@ -9729,7 +9724,7 @@ const getProps$z = () => ({
|
|
9729
9724
|
return T();
|
9730
9725
|
}
|
9731
9726
|
case KG_TABLE_CELL_DISPLAY_TYPE.PROGRESS: {
|
9732
|
-
const M = KgUtil.tryParseJSON((
|
9727
|
+
const M = KgUtil.tryParseJSON((V = l.value) == null ? void 0 : V.display_type_properties), K = (P = (O = e.kgRow) == null ? void 0 : O[M.leftColumn]) != null ? P : 0;
|
9733
9728
|
switch (e.kgContext) {
|
9734
9729
|
case KG_TABLE_CELL_CONTEXT.TABLE_FILTER:
|
9735
9730
|
return K;
|
@@ -9855,7 +9850,7 @@ function _useColumns(e) {
|
|
9855
9850
|
function w() {
|
9856
9851
|
return r.t(D).value;
|
9857
9852
|
}
|
9858
|
-
function
|
9853
|
+
function V() {
|
9859
9854
|
if (C.fix_left_flg === 1)
|
9860
9855
|
return "left";
|
9861
9856
|
if (C.fix_right_flg === 1)
|
@@ -9865,7 +9860,7 @@ function _useColumns(e) {
|
|
9865
9860
|
var F, x, q, Q;
|
9866
9861
|
return !(C.ord_flg !== 1 || (x = (F = t == null ? void 0 : t.value) == null ? void 0 : F.KgTable) != null && x.kgDisabled || isNil((Q = (q = t == null ? void 0 : t.value) == null ? void 0 : q.KgTable) == null ? void 0 : Q.kgDisabled) && e.kgDisabled || r.isCreating.value || r.isUpdating.value || r.isCopying.value || r.isDeleting.value || g.length <= 0);
|
9867
9862
|
}
|
9868
|
-
function
|
9863
|
+
function P() {
|
9869
9864
|
var F, x, q, Q, Z, ae;
|
9870
9865
|
if (((x = (F = E.option.value.KgTable) == null ? void 0 : F.filter) == null ? void 0 : x.on) === !0 && C.filter_flag === 1 && !((Q = (q = t == null ? void 0 : t.value) == null ? void 0 : q.KgTable) != null && Q.kgDisabled) && !(isNil((ae = (Z = t == null ? void 0 : t.value) == null ? void 0 : Z.KgTable) == null ? void 0 : ae.kgDisabled) && e.kgDisabled) && !(r.isCreating.value || r.isUpdating.value || r.isCopying.value || r.isDeleting.value) && !(g.length <= 0))
|
9871
9866
|
return uniqBy(g.map((te) => {
|
@@ -9914,11 +9909,11 @@ function _useColumns(e) {
|
|
9914
9909
|
minWidth: KG_TABLE_TD_MIN_WIDTH,
|
9915
9910
|
maxWidth: KG_TABLE_TD_MAX_WIDTH,
|
9916
9911
|
align: M(),
|
9917
|
-
fixed:
|
9912
|
+
fixed: V(),
|
9918
9913
|
sorter: O(),
|
9919
9914
|
sortOrder: ((L = l.value) == null ? void 0 : L.field) === D && (U = (B = l.value) == null ? void 0 : B.order) != null ? U : null,
|
9920
9915
|
filteredValue: N(),
|
9921
|
-
filters:
|
9916
|
+
filters: P(),
|
9922
9917
|
onFilter: (F, x) => F === "" ? isNil(x == null ? void 0 : x[D]) || (x == null ? void 0 : x[D]) === "" : (x == null ? void 0 : x[D]) === F,
|
9923
9918
|
customHeaderCell: () => ({
|
9924
9919
|
"kg-frm_id": r.formID,
|
@@ -10175,7 +10170,7 @@ const KgTable$1 = "", getProps$y = () => ({
|
|
10175
10170
|
}), w = computed(() => {
|
10176
10171
|
var $;
|
10177
10172
|
return (($ = s.varGridConfig.value) == null ? void 0 : $.show_check_column_flg) === 1;
|
10178
|
-
}),
|
10173
|
+
}), V = computed(() => {
|
10179
10174
|
if (!!w.value)
|
10180
10175
|
return {
|
10181
10176
|
fixed: "left",
|
@@ -10207,7 +10202,7 @@ const KgTable$1 = "", getProps$y = () => ({
|
|
10207
10202
|
break;
|
10208
10203
|
}
|
10209
10204
|
return $;
|
10210
|
-
}),
|
10205
|
+
}), P = computed(() => {
|
10211
10206
|
var G;
|
10212
10207
|
let $ = "kg-table-bottom";
|
10213
10208
|
return ((G = s.varGridConfig.value) == null ? void 0 : G.show_bottom_border_flg) === 1 && ($ += " kg-table-bottom--border"), $;
|
@@ -10277,7 +10272,7 @@ const KgTable$1 = "", getProps$y = () => ({
|
|
10277
10272
|
});
|
10278
10273
|
return;
|
10279
10274
|
}
|
10280
|
-
if (!
|
10275
|
+
if (!V.value) {
|
10281
10276
|
KgLogger.debug("KgTable | onRowClick() | \u4E0D\u652F\u6301\u884C\u52FE\u9009.");
|
10282
10277
|
return;
|
10283
10278
|
}
|
@@ -10510,7 +10505,7 @@ const KgTable$1 = "", getProps$y = () => ({
|
|
10510
10505
|
rowClassName: (G = ($ = a == null ? void 0 : a.value) == null ? void 0 : $.KgTable) == null ? void 0 : G.kgRowClassName,
|
10511
10506
|
expandColumnWidth: 28,
|
10512
10507
|
expandedRowKeys: c.value,
|
10513
|
-
rowSelection:
|
10508
|
+
rowSelection: V.value,
|
10514
10509
|
customRow: (Y) => ({
|
10515
10510
|
onClick: (ee) => U({
|
10516
10511
|
event: ee,
|
@@ -10527,7 +10522,7 @@ const KgTable$1 = "", getProps$y = () => ({
|
|
10527
10522
|
expandedRowRender: (z = r == null ? void 0 : r.KgTable) == null ? void 0 : z.expandedRowRender,
|
10528
10523
|
summary: ue
|
10529
10524
|
}), (o.isShowBottomLeft.value || o.isShowBottomRight.value) && createVNode("div", {
|
10530
|
-
class:
|
10525
|
+
class: P.value
|
10531
10526
|
}, [createVNode("div", {
|
10532
10527
|
class: "left"
|
10533
10528
|
}, [o.isShowBottomLeft.value && createVNode(KgTableInfo, {
|
@@ -10782,6 +10777,12 @@ function _useFormRules(e) {
|
|
10782
10777
|
message: t.t("kg.required")
|
10783
10778
|
});
|
10784
10779
|
break;
|
10780
|
+
default:
|
10781
|
+
(d == null ? void 0 : d.required_flag) === 1 && g.push({
|
10782
|
+
required: !0,
|
10783
|
+
message: t.t("kg.required")
|
10784
|
+
});
|
10785
|
+
break;
|
10785
10786
|
}
|
10786
10787
|
break;
|
10787
10788
|
}
|
@@ -10893,9 +10894,9 @@ function useKgFormItemSelect() {
|
|
10893
10894
|
}), v;
|
10894
10895
|
});
|
10895
10896
|
async function E() {
|
10896
|
-
var A, C, I, D, R, w,
|
10897
|
+
var A, C, I, D, R, w, V, O;
|
10897
10898
|
let v = ref([]);
|
10898
|
-
const _ = (A = s.value) == null ? void 0 : A.cmd, y = (I = (C = s.value) == null ? void 0 : C.cmd_method) != null ? I : "GET", m = (R = (D = s.value) == null ? void 0 : D.val_clm) != null ? R : "", T = (
|
10899
|
+
const _ = (A = s.value) == null ? void 0 : A.cmd, y = (I = (C = s.value) == null ? void 0 : C.cmd_method) != null ? I : "GET", m = (R = (D = s.value) == null ? void 0 : D.val_clm) != null ? R : "", T = (V = (w = s.value) == null ? void 0 : w.lbl_clm) != null ? V : "";
|
10899
10900
|
if (!_ || !m || !T) {
|
10900
10901
|
KgLogger.error("\u4E0B\u62C9\u5217\u8868\u914D\u7F6E\u6709\u8BEF.", {
|
10901
10902
|
frm_id: a.formID,
|
@@ -10909,12 +10910,12 @@ function useKgFormItemSelect() {
|
|
10909
10910
|
let k = null;
|
10910
10911
|
try {
|
10911
10912
|
l.value = !0;
|
10912
|
-
const
|
10913
|
+
const P = KgUtil.parseParams(b.value, null, e);
|
10913
10914
|
k = await ((O = httpClient()) == null ? void 0 : O.request({
|
10914
10915
|
url: _,
|
10915
10916
|
method: y,
|
10916
|
-
params:
|
10917
|
-
data:
|
10917
|
+
params: P,
|
10918
|
+
data: P
|
10918
10919
|
}, {
|
10919
10920
|
dynamicQueryOperators: {},
|
10920
10921
|
dayjs: e
|
@@ -10935,14 +10936,14 @@ function useKgFormItemSelect() {
|
|
10935
10936
|
break;
|
10936
10937
|
}
|
10937
10938
|
if (v.value.length > 0) {
|
10938
|
-
const
|
10939
|
-
(!(m in
|
10939
|
+
const P = v.value[0];
|
10940
|
+
(!(m in P) || !(T in P)) && KgLogger.error("\u4E0B\u62C9\u5217\u8868\u914D\u7F6E\u6709\u8BEF, \u6570\u636E\u5217(val_clm)\u6216\u663E\u793A\u5217(lbl_clm)\u6709\u8BEF.", {
|
10940
10941
|
frm_id: a.formID,
|
10941
10942
|
var_nam: t,
|
10942
10943
|
cmd: _,
|
10943
10944
|
val_clm: m,
|
10944
10945
|
lbl_clm: T,
|
10945
|
-
\u6240\u6709\u5217: Object.keys(
|
10946
|
+
\u6240\u6709\u5217: Object.keys(P)
|
10946
10947
|
});
|
10947
10948
|
}
|
10948
10949
|
await n.store.emit(a.formID, "selectBeforeSetDatas", {
|
@@ -11677,7 +11678,7 @@ const KgFormItem = defineComponent({
|
|
11677
11678
|
validateFirst: !0,
|
11678
11679
|
htmlFor: I.value
|
11679
11680
|
}, {
|
11680
|
-
default: () => createVNode(Fragment, null, [
|
11681
|
+
default: () => createVNode(Fragment, null, [V(), w(), P(), N()]),
|
11681
11682
|
label: () => O()
|
11682
11683
|
});
|
11683
11684
|
}
|
@@ -11725,7 +11726,7 @@ const KgFormItem = defineComponent({
|
|
11725
11726
|
return createVNode(KgFormItemInput, C.value, null);
|
11726
11727
|
}
|
11727
11728
|
}
|
11728
|
-
function
|
11729
|
+
function V() {
|
11729
11730
|
var M, K, L;
|
11730
11731
|
return ((K = (M = s.option.value.KgSearch) == null ? void 0 : M.dynamicQuery) == null ? void 0 : K.on) !== !0 || e.kgContext !== KG_FORM_CONTEXT.SEARCH || ((L = i.currentVarProfileMaster.value) == null ? void 0 : L.dyn_flg) !== 1 ? null : createVNode(Form.ItemRest, null, {
|
11731
11732
|
default: () => {
|
@@ -11757,7 +11758,7 @@ const KgFormItem = defineComponent({
|
|
11757
11758
|
title: i.t(e.kgVarName).value
|
11758
11759
|
}, [i.t(e.kgVarName).value]) : null;
|
11759
11760
|
}
|
11760
|
-
function
|
11761
|
+
function P() {
|
11761
11762
|
var M;
|
11762
11763
|
return !c.value || !((M = c.value) != null && M.lkp_id) ? null : createVNode(Form.ItemRest, null, {
|
11763
11764
|
default: () => [createVNode(KgFormItemAddonLookup, {
|
@@ -12916,7 +12917,7 @@ const getProps$r = () => ({
|
|
12916
12917
|
return [];
|
12917
12918
|
}
|
12918
12919
|
return [];
|
12919
|
-
}),
|
12920
|
+
}), V = computed(() => {
|
12920
12921
|
var H, W, J;
|
12921
12922
|
switch (!0) {
|
12922
12923
|
case s.isCreating.value:
|
@@ -12942,7 +12943,7 @@ const getProps$r = () => ({
|
|
12942
12943
|
return (re = R.value) != null ? re : [];
|
12943
12944
|
}
|
12944
12945
|
return [];
|
12945
|
-
}),
|
12946
|
+
}), P = computed(() => {
|
12946
12947
|
var H, W, J, re;
|
12947
12948
|
switch (!0) {
|
12948
12949
|
case s.isCreating.value:
|
@@ -13356,7 +13357,7 @@ const getProps$r = () => ({
|
|
13356
13357
|
gutter: 12
|
13357
13358
|
}, _isSlot$6(H = w.value.map(ye)) ? H : {
|
13358
13359
|
default: () => [H]
|
13359
|
-
}),
|
13360
|
+
}), V.value.length > 0 && P.value.length > 0 && createVNode(Divider, null, null), O.value.length > 0 && createVNode(Row, {
|
13360
13361
|
gutter: 12
|
13361
13362
|
}, _isSlot$6(W = O.value.map(ye)) ? W : {
|
13362
13363
|
default: () => [W]
|
@@ -14980,7 +14981,7 @@ function useKgVar(e, t, r = 0) {
|
|
14980
14981
|
}), onUnmounted(() => {
|
14981
14982
|
i.dispose(s);
|
14982
14983
|
}));
|
14983
|
-
const o = computed(() => i.isRetrieving(s)), l = computed(() => i.isRetrievingVarProfileMaster(s)), c = computed(() => i.isRetrievingVarGridMaster(s)), u = computed(() => i.isSearched(s)), d = computed(() => i.isCreating(s)), b = computed(() => i.isCreatingRequesting(s)), E = computed(() => i.isUpdating(s)), g = computed(() => i.isUpdatingRequesting(s)), v = computed(() => i.isCopying(s)), _ = computed(() => i.isCopyingRequesting(s)), y = computed(() => i.isDeleting(s)), m = computed(() => i.isDeletingRequesting(s)), T = computed(() => i.isOtherRequesting(s)), k = computed(() => i.getVarButtons(s)), A = computed(() => i.getVarButtonSearch(s)), C = computed(() => i.getVarButtonCreate(s)), I = computed(() => i.getVarButtonUpdate(s)), D = computed(() => i.getVarButtonCopy(s)), R = computed(() => i.getVarButtonDelete(s)), w = computed(() => i.getVarProfileMasters(s)),
|
14984
|
+
const o = computed(() => i.isRetrieving(s)), l = computed(() => i.isRetrievingVarProfileMaster(s)), c = computed(() => i.isRetrievingVarGridMaster(s)), u = computed(() => i.isSearched(s)), d = computed(() => i.isCreating(s)), b = computed(() => i.isCreatingRequesting(s)), E = computed(() => i.isUpdating(s)), g = computed(() => i.isUpdatingRequesting(s)), v = computed(() => i.isCopying(s)), _ = computed(() => i.isCopyingRequesting(s)), y = computed(() => i.isDeleting(s)), m = computed(() => i.isDeletingRequesting(s)), T = computed(() => i.isOtherRequesting(s)), k = computed(() => i.getVarButtons(s)), A = computed(() => i.getVarButtonSearch(s)), C = computed(() => i.getVarButtonCreate(s)), I = computed(() => i.getVarButtonUpdate(s)), D = computed(() => i.getVarButtonCopy(s)), R = computed(() => i.getVarButtonDelete(s)), w = computed(() => i.getVarProfileMasters(s)), V = computed(() => i.getCurrentVarProfileMasterID(s)), O = computed(() => i.getCurrentVarProfileMaster(s)), P = computed(() => {
|
14984
14985
|
var x, q;
|
14985
14986
|
return (q = (x = O.value) == null ? void 0 : x.varProfileDetails) != null ? q : null;
|
14986
14987
|
}), N = computed(() => i.getVarGridConfig(s)), M = computed(() => i.getVarGridMasters(s)), K = computed(() => i.getCurrentVarGridMasterID(s)), L = computed(() => i.getCurrentVarGridMaster(s)), B = computed(() => i.getSystemVarGridDetails(s)), U = computed(() => i.getCurrentVarGridDetails(s)), F = computed(() => i.getVarSubmitConfigProps(s));
|
@@ -15007,9 +15008,9 @@ function useKgVar(e, t, r = 0) {
|
|
15007
15008
|
varButtonCopy: D,
|
15008
15009
|
varButtonDelete: R,
|
15009
15010
|
varProfileMasters: w,
|
15010
|
-
currentVarProfileMasterID:
|
15011
|
+
currentVarProfileMasterID: V,
|
15011
15012
|
currentVarProfileMaster: O,
|
15012
|
-
currentVarProfileDetails:
|
15013
|
+
currentVarProfileDetails: P,
|
15013
15014
|
varGridConfig: N,
|
15014
15015
|
varGridMasters: M,
|
15015
15016
|
currentVarGridMasteID: K,
|
@@ -15283,32 +15284,12 @@ function useKgButton(e) {
|
|
15283
15284
|
store: r,
|
15284
15285
|
click: r.click,
|
15285
15286
|
onClick: onEventFactory(t.formID, r, "click"),
|
15286
|
-
onUpdateBeforeClick: onEventFactory(
|
15287
|
-
|
15288
|
-
|
15289
|
-
"updateBeforeClick"
|
15290
|
-
),
|
15291
|
-
onDeleteOk: onEventFactory(
|
15292
|
-
t.formID,
|
15293
|
-
r,
|
15294
|
-
"deleteOk"
|
15295
|
-
),
|
15296
|
-
onImportOk: onEventFactory(
|
15297
|
-
t.formID,
|
15298
|
-
r,
|
15299
|
-
"importOk"
|
15300
|
-
),
|
15287
|
+
onUpdateBeforeClick: onEventFactory(t.formID, r, "updateBeforeClick"),
|
15288
|
+
onDeleteOk: onEventFactory(t.formID, r, "deleteOk"),
|
15289
|
+
onImportOk: onEventFactory(t.formID, r, "importOk"),
|
15301
15290
|
onOtherOk: onEventFactory(t.formID, r, "otherOk"),
|
15302
|
-
onSubmitSave: onEventFactory(
|
15303
|
-
|
15304
|
-
r,
|
15305
|
-
"submitSave"
|
15306
|
-
),
|
15307
|
-
onSubmitCancel: onEventFactory(
|
15308
|
-
t.formID,
|
15309
|
-
r,
|
15310
|
-
"submitCancel"
|
15311
|
-
)
|
15291
|
+
onSubmitSave: onEventFactory(t.formID, r, "submitSave"),
|
15292
|
+
onSubmitCancel: onEventFactory(t.formID, r, "submitCancel")
|
15312
15293
|
};
|
15313
15294
|
}
|
15314
15295
|
const getProps$p = () => ({
|
@@ -15760,18 +15741,19 @@ const getProps$p = () => ({
|
|
15760
15741
|
data: y != null ? y : []
|
15761
15742
|
});
|
15762
15743
|
if (((C = e.kgButton) == null ? void 0 : C.reload_all_after_done_flg) === 1) {
|
15763
|
-
|
15764
|
-
|
15744
|
+
let R = !0;
|
15745
|
+
if (((I = e.kgButton) == null ? void 0 : I.re_select_after_reload_flg) !== 0 && (R = !1, s.onAfterSearch(async ({
|
15746
|
+
datas: V
|
15765
15747
|
}) => {
|
15766
|
-
const
|
15767
|
-
return
|
15768
|
-
}, !0), await n.store.emit(r.formID, "otherOk", {
|
15748
|
+
const O = V.value, P = intersectionWith$1(O, y != null ? y : [], (N, M) => (N == null ? void 0 : N[s.id.value]) === (M == null ? void 0 : M[s.id.value]));
|
15749
|
+
return P.length > 0 && s.store.setSelectedRows(r.formID, P), !1;
|
15750
|
+
}, !0)), await n.store.emit(r.formID, "otherOk", {
|
15769
15751
|
button: e.kgButton,
|
15770
15752
|
data: D
|
15771
15753
|
}))
|
15772
15754
|
return;
|
15773
15755
|
a.search({
|
15774
|
-
isSearchFirstPage:
|
15756
|
+
isSearchFirstPage: R
|
15775
15757
|
});
|
15776
15758
|
} else if (await n.store.emit(r.formID, "otherOk", {
|
15777
15759
|
button: e.kgButton,
|
@@ -16708,15 +16690,15 @@ const KgSearch_ConfigModal_VarProfileMaster = "", getProps$m = () => ({
|
|
16708
16690
|
});
|
16709
16691
|
l.value = l.value.map((O) => {
|
16710
16692
|
var N;
|
16711
|
-
const
|
16712
|
-
return
|
16693
|
+
const P = (N = w == null ? void 0 : w.varProfileDetails) == null ? void 0 : N.find((M) => M.var_nam === O.var_nam);
|
16694
|
+
return P ? {
|
16713
16695
|
...O,
|
16714
|
-
...
|
16696
|
+
...P,
|
16715
16697
|
id: O.id
|
16716
16698
|
} : O;
|
16717
16699
|
});
|
16718
|
-
const
|
16719
|
-
c.value = l.value.filter((O) =>
|
16700
|
+
const V = (C = (A = w == null ? void 0 : w.varProfileDetails) == null ? void 0 : A.map((O) => O.var_nam)) != null ? C : [];
|
16701
|
+
c.value = l.value.filter((O) => V.includes(O.var_nam)).map((O) => O.id);
|
16720
16702
|
} catch (w) {
|
16721
16703
|
throw w;
|
16722
16704
|
} finally {
|
@@ -16801,8 +16783,8 @@ const KgSearch_ConfigModal_VarProfileMaster = "", getProps$m = () => ({
|
|
16801
16783
|
}) => {
|
16802
16784
|
var C, I;
|
16803
16785
|
const A = _.sort((D, R) => {
|
16804
|
-
var w,
|
16805
|
-
return ((w = D.srtseq) != null ? w : 0) - ((
|
16786
|
+
var w, V;
|
16787
|
+
return ((w = D.srtseq) != null ? w : 0) - ((V = R.srtseq) != null ? V : 0);
|
16806
16788
|
});
|
16807
16789
|
return v === "right" && (u.value = A), createVNode(Table, {
|
16808
16790
|
pagination: !1,
|
@@ -16951,45 +16933,32 @@ function getMaxHeight(e, t) {
|
|
16951
16933
|
let a = t ? 0 : HEADER_HEIGHT;
|
16952
16934
|
return r.length > 0 && (a += Math.ceil(r.length / 4) * FORM_ITEM_HEIGHT, a += 7), Math.max(a, 1);
|
16953
16935
|
}
|
16954
|
-
function _useLayoutHeaderResizeObserver() {
|
16955
|
-
let e = null;
|
16956
|
-
return onMounted(() => {
|
16957
|
-
const t = document.querySelector("div.jeecg-layout-header-center");
|
16958
|
-
t && (e = new ResizeObserver((r) => {
|
16959
|
-
var i, o;
|
16960
|
-
const a = t.getBoundingClientRect().left, n = (o = (i = r[0].borderBoxSize[0]) == null ? void 0 : i.inlineSize) != null ? o : 0, s = document.querySelector("#kg-search-header-teleport");
|
16961
|
-
s && (s.style.left = `${a}px`, s.style.width = `${n}px`);
|
16962
|
-
}), e.observe(t));
|
16963
|
-
}), onBeforeUnmount(() => {
|
16964
|
-
e == null || e.disconnect();
|
16965
|
-
}), {};
|
16966
|
-
}
|
16967
16936
|
function _useCommon() {
|
16968
|
-
const e = inject(DI_KG_VAR__KG_PROPS, null), t =
|
16969
|
-
var
|
16970
|
-
if (!
|
16937
|
+
const e = inject(DI_KG_VAR__KG_PROPS, null), t = useKg(), r = useKgVar(), a = computed(() => r.store.getVarProfileConfig(r.formID)), n = computed(() => r.store.getFormLevel(r.formID)), s = ref(!0), i = computed(() => {
|
16938
|
+
var E, g, v, _;
|
16939
|
+
if (((E = t.option.value.KgLayoutTab) == null ? void 0 : E.isTeleportToHeader) !== !1 || !s.value || n.value > 0)
|
16971
16940
|
return !1;
|
16972
|
-
const
|
16973
|
-
return
|
16974
|
-
}), i = computed(() => {
|
16975
|
-
var d;
|
16976
|
-
return ((d = r.value) == null ? void 0 : d.vis_flg) === 1;
|
16941
|
+
const b = (v = (g = e == null ? void 0 : e.value) == null ? void 0 : g.KgSearch) == null ? void 0 : v.kgTeleportToHeader;
|
16942
|
+
return b !== void 0 ? b : ((_ = a.value) == null ? void 0 : _.header_teleport_flg) !== 0;
|
16977
16943
|
}), o = computed(() => {
|
16978
|
-
var
|
16979
|
-
return ((
|
16980
|
-
}), l = computed(() =>
|
16944
|
+
var b;
|
16945
|
+
return ((b = a.value) == null ? void 0 : b.vis_flg) === 1;
|
16946
|
+
}), l = computed(() => {
|
16947
|
+
var b;
|
16948
|
+
return ((b = a.value) == null ? void 0 : b.resizable_flg) !== 0;
|
16949
|
+
}), c = computed(() => getDefaultHeight(r.currentVarProfileDetails.value, i.value)), u = computed(() => getMaxHeight(r.currentVarProfileDetails.value, i.value)), d = computed(() => i.value ? 1 : HEADER_HEIGHT);
|
16981
16950
|
return onActivated(() => {
|
16982
|
-
|
16951
|
+
s.value = !0;
|
16983
16952
|
}), onDeactivated(() => {
|
16984
|
-
|
16953
|
+
s.value = !1;
|
16985
16954
|
}), {
|
16986
|
-
isVisible:
|
16987
|
-
isResizable:
|
16988
|
-
|
16989
|
-
formLevel:
|
16990
|
-
defaultHeight:
|
16991
|
-
maxHeight:
|
16992
|
-
minHeight:
|
16955
|
+
isVisible: o,
|
16956
|
+
isResizable: l,
|
16957
|
+
isTeleportToHeader: i,
|
16958
|
+
formLevel: n,
|
16959
|
+
defaultHeight: c,
|
16960
|
+
maxHeight: u,
|
16961
|
+
minHeight: d
|
16993
16962
|
};
|
16994
16963
|
}
|
16995
16964
|
function _useFormModel(e, t, r) {
|
@@ -17032,7 +17001,7 @@ const KgSearch$1 = "", getProps$j = () => ({
|
|
17032
17001
|
type: Boolean,
|
17033
17002
|
default: void 0
|
17034
17003
|
},
|
17035
|
-
|
17004
|
+
kgTeleportToHeader: {
|
17036
17005
|
type: Boolean,
|
17037
17006
|
default: void 0
|
17038
17007
|
}
|
@@ -17043,15 +17012,13 @@ const KgSearch$1 = "", getProps$j = () => ({
|
|
17043
17012
|
const t = inject(DI_KG_VAR__KG_SLOTS, null), r = inject(DI_KG_VAR__KG_PROPS, null), a = useKg(), n = useKgVar(), s = useKgSearch(), i = useKgTable(), {
|
17044
17013
|
isVisible: o,
|
17045
17014
|
isResizable: l,
|
17046
|
-
|
17015
|
+
isTeleportToHeader: c,
|
17047
17016
|
defaultHeight: u,
|
17048
17017
|
maxHeight: d,
|
17049
17018
|
minHeight: b
|
17050
17019
|
} = _useCommon(), E = ref(null), g = ref(null), v = ref({
|
17051
17020
|
kgHeight: b.value
|
17052
|
-
})
|
17053
|
-
_useLayoutHeaderResizeObserver();
|
17054
|
-
const _ = _useFormModel(E, g, v), y = computed(() => {
|
17021
|
+
}), _ = _useFormModel(E, g, v), y = computed(() => {
|
17055
17022
|
var F, x, q, Q;
|
17056
17023
|
if (!isNil((x = (F = r == null ? void 0 : r.value) == null ? void 0 : F.KgSearch) == null ? void 0 : x.kgDisabled))
|
17057
17024
|
return (Q = (q = r == null ? void 0 : r.value) == null ? void 0 : q.KgSearch) == null ? void 0 : Q.kgDisabled;
|
@@ -17076,7 +17043,7 @@ const KgSearch$1 = "", getProps$j = () => ({
|
|
17076
17043
|
default:
|
17077
17044
|
return !0;
|
17078
17045
|
}
|
17079
|
-
}), R = computed(() => !!(n.isRetrieving.value || n.isRetrievingVarProfileMaster.value || c.value && !!n.isOtherRequesting.value)), w = computed(() => !!n.isRetrieving.value || !!n.isRetrievingVarProfileMaster.value),
|
17046
|
+
}), R = computed(() => !!(n.isRetrieving.value || n.isRetrievingVarProfileMaster.value || c.value && !!n.isOtherRequesting.value)), w = computed(() => !!n.isRetrieving.value || !!n.isRetrievingVarProfileMaster.value), V = computed(() => {
|
17080
17047
|
let F = "kg-search";
|
17081
17048
|
return o.value && (F += " kg-search--visible"), c.value && (F += " kg-search--teleport"), F;
|
17082
17049
|
});
|
@@ -17103,7 +17070,7 @@ const KgSearch$1 = "", getProps$j = () => ({
|
|
17103
17070
|
})) : (KgLogger.debug(`${n.formID} | KgSearch | onSearch() | \u9690\u85CF\u67E5\u8BE2\u6761\u4EF6\u7EC4\u4EF6.`), await s.store.emit(n.formID, "search", F));
|
17104
17071
|
}
|
17105
17072
|
s.store.setSearchFn(n.formID, O);
|
17106
|
-
async function
|
17073
|
+
async function P() {
|
17107
17074
|
_.initFormModel(), o.value ? g.value && g.value.validate().then(async () => {
|
17108
17075
|
await s.store.emit(n.formID, "reset", {});
|
17109
17076
|
}).catch((F) => {
|
@@ -17112,7 +17079,7 @@ const KgSearch$1 = "", getProps$j = () => ({
|
|
17112
17079
|
});
|
17113
17080
|
}) : await s.store.emit(n.formID, "reset", {});
|
17114
17081
|
}
|
17115
|
-
s.store.setResetFn(n.formID,
|
17082
|
+
s.store.setResetFn(n.formID, P);
|
17116
17083
|
function N() {
|
17117
17084
|
return O({
|
17118
17085
|
isSearchFirstPage: !0
|
@@ -17169,7 +17136,7 @@ const KgSearch$1 = "", getProps$j = () => ({
|
|
17169
17136
|
type: "primary",
|
17170
17137
|
ghost: !m.value,
|
17171
17138
|
disabled: m.value,
|
17172
|
-
onClick:
|
17139
|
+
onClick: P,
|
17173
17140
|
class: "kg-search-btn-reset"
|
17174
17141
|
}, {
|
17175
17142
|
default: () => [createVNode(ReloadOutlined$1, null, null), a.t("kg.reset")]
|
@@ -17226,7 +17193,7 @@ const KgSearch$1 = "", getProps$j = () => ({
|
|
17226
17193
|
kgMinHeight: b.value,
|
17227
17194
|
kgMaxHeight: d.value,
|
17228
17195
|
kgDisabled: !l.value,
|
17229
|
-
kgClass:
|
17196
|
+
kgClass: V.value,
|
17230
17197
|
"kg-frm_id": n.formID
|
17231
17198
|
}, {
|
17232
17199
|
default: () => [o.value && createVNode("div", {
|
@@ -17234,7 +17201,7 @@ const KgSearch$1 = "", getProps$j = () => ({
|
|
17234
17201
|
}, [createVNode("div", {
|
17235
17202
|
class: "ant-collapse-item ant-collapse-item-active ant-collapse-no-arrow"
|
17236
17203
|
}, [createVNode(Teleport, {
|
17237
|
-
to: "#kg-
|
17204
|
+
to: "#kg-layout-header-teleport",
|
17238
17205
|
disabled: !c.value
|
17239
17206
|
}, {
|
17240
17207
|
default: () => [createVNode("div", {
|
@@ -17641,11 +17608,11 @@ const KgVarConfigModalVarVarVariableCatalog = defineComponent({
|
|
17641
17608
|
}, {
|
17642
17609
|
immediate: !0
|
17643
17610
|
}), watch(() => a.getSelectedVarCatalog, async (O) => {
|
17644
|
-
var
|
17645
|
-
l.value.var_text = (
|
17611
|
+
var P, N;
|
17612
|
+
l.value.var_text = (P = O == null ? void 0 : O.var_text) != null ? P : "", (N = o.value) == null || N.clearValidate();
|
17646
17613
|
});
|
17647
17614
|
async function m(O = !1) {
|
17648
|
-
var
|
17615
|
+
var P, N, M;
|
17649
17616
|
n.value = !0;
|
17650
17617
|
try {
|
17651
17618
|
const {
|
@@ -17655,7 +17622,7 @@ const KgVarConfigModalVarVarVariableCatalog = defineComponent({
|
|
17655
17622
|
pageNo: 1,
|
17656
17623
|
pageSize: 999,
|
17657
17624
|
frm_id: e == null ? void 0 : e.value,
|
17658
|
-
var_nam: (
|
17625
|
+
var_nam: (P = a.getSelectedVar) == null ? void 0 : P.var_nam,
|
17659
17626
|
column: "frm_id,locale_id,cust_lvl",
|
17660
17627
|
order: "asc"
|
17661
17628
|
}
|
@@ -17675,11 +17642,11 @@ const KgVarConfigModalVarVarVariableCatalog = defineComponent({
|
|
17675
17642
|
}
|
17676
17643
|
}
|
17677
17644
|
async function T() {
|
17678
|
-
var O,
|
17645
|
+
var O, P, N;
|
17679
17646
|
try {
|
17680
17647
|
s.value = !0, await ((O = o.value) == null ? void 0 : O.validate());
|
17681
17648
|
const M = new VarVariableCatalog({
|
17682
|
-
...(
|
17649
|
+
...(P = a.getSelectedVarCatalog) != null ? P : {},
|
17683
17650
|
var_text: (N = l.value) == null ? void 0 : N.var_text
|
17684
17651
|
});
|
17685
17652
|
M.id ? M.cust_lvl === KG_CUSTOM_LEVEL.L0 ? (M.cust_lvl = KG_CUSTOM_LEVEL.L10, Reflect.deleteProperty(M, "id"), await Add({
|
@@ -17709,7 +17676,7 @@ const KgVarConfigModalVarVarVariableCatalog = defineComponent({
|
|
17709
17676
|
}
|
17710
17677
|
function k({
|
17711
17678
|
isAllForm: O,
|
17712
|
-
isAllLanguage:
|
17679
|
+
isAllLanguage: P
|
17713
17680
|
}) {
|
17714
17681
|
var N, M, K;
|
17715
17682
|
u.value = new VarVariableCatalog({
|
@@ -17718,14 +17685,14 @@ const KgVarConfigModalVarVarVariableCatalog = defineComponent({
|
|
17718
17685
|
grp_nam: (N = a.getSelectedVar) == null ? void 0 : N.grp_nam,
|
17719
17686
|
var_nam: (M = a.getSelectedVar) == null ? void 0 : M.var_nam,
|
17720
17687
|
frm_id: O || !(e != null && e.value) ? "ALL" : e == null ? void 0 : e.value,
|
17721
|
-
locale_id:
|
17688
|
+
locale_id: P ? "ALL" : (K = t.locale) == null ? void 0 : K.value,
|
17722
17689
|
var_text: ""
|
17723
17690
|
}), c.value = [...c.value, u.value], a.setSelectedVarCatalog(unref(u)), d.value = [""];
|
17724
17691
|
}
|
17725
17692
|
function A() {
|
17726
|
-
var
|
17693
|
+
var P;
|
17727
17694
|
c.value = without$1(c.value, u.value), u.value = null;
|
17728
|
-
const O = (
|
17695
|
+
const O = (P = c.value[0]) != null ? P : null;
|
17729
17696
|
a.setSelectedVarCatalog(O), d.value = O ? [O.id] : [];
|
17730
17697
|
}
|
17731
17698
|
function C() {
|
@@ -17746,8 +17713,8 @@ const KgVarConfigModalVarVarVariableCatalog = defineComponent({
|
|
17746
17713
|
});
|
17747
17714
|
}
|
17748
17715
|
function I(O) {
|
17749
|
-
var
|
17750
|
-
((
|
17716
|
+
var P;
|
17717
|
+
((P = a.getSelectedVarCatalog) == null ? void 0 : P.id) !== O.id && (unref(u) ? KgUtil.confirm({
|
17751
17718
|
content: t.t("kg.KgVarConfig.discardConfirmMessage"),
|
17752
17719
|
onOk: () => {
|
17753
17720
|
c.value = without$1(c.value, u.value), u.value = null, a.setSelectedVarCatalog(unref(O)), d.value = [O.id];
|
@@ -17777,7 +17744,7 @@ const KgVarConfigModalVarVarVariableCatalog = defineComponent({
|
|
17777
17744
|
})]);
|
17778
17745
|
}
|
17779
17746
|
function w() {
|
17780
|
-
let O,
|
17747
|
+
let O, P;
|
17781
17748
|
return createVNode("div", {
|
17782
17749
|
class: "form"
|
17783
17750
|
}, [createVNode(Form, {
|
@@ -17812,14 +17779,14 @@ const KgVarConfigModalVarVarVariableCatalog = defineComponent({
|
|
17812
17779
|
disabled: y.value,
|
17813
17780
|
onClick: T,
|
17814
17781
|
type: "primary"
|
17815
|
-
}, _isSlot$1(
|
17816
|
-
default: () => [
|
17782
|
+
}, _isSlot$1(P = t.t("common.save")) ? P : {
|
17783
|
+
default: () => [P]
|
17817
17784
|
})])]);
|
17818
17785
|
}
|
17819
|
-
function
|
17786
|
+
function V(O) {
|
17820
17787
|
var N;
|
17821
|
-
let
|
17822
|
-
return O.id || (
|
17788
|
+
let P = "";
|
17789
|
+
return O.id || (P += " ant-table-row-create"), O.id === ((N = a.getSelectedVarCatalog) == null ? void 0 : N.id) && (P += " ant-table-row-selected "), P;
|
17823
17790
|
}
|
17824
17791
|
return () => createVNode("div", {
|
17825
17792
|
class: "kg-var-config-modal--var--var-variable-catalog"
|
@@ -17835,7 +17802,7 @@ const KgVarConfigModalVarVarVariableCatalog = defineComponent({
|
|
17835
17802
|
rowKey: "id",
|
17836
17803
|
dataSource: c.value,
|
17837
17804
|
loading: n.value,
|
17838
|
-
rowClassName:
|
17805
|
+
rowClassName: V,
|
17839
17806
|
rowSelection: b.value,
|
17840
17807
|
customRow: (O) => ({
|
17841
17808
|
onClick: () => I(O)
|
@@ -18194,8 +18161,8 @@ const KgWarehouse$1 = "", getProps$a = () => ({
|
|
18194
18161
|
var A;
|
18195
18162
|
const k = (A = s.value) == null ? void 0 : A.toUpperCase();
|
18196
18163
|
return c.value.filter((C) => {
|
18197
|
-
var I, D, R, w,
|
18198
|
-
return ((D = (I = C.whDsc) == null ? void 0 : I.toUpperCase()) == null ? void 0 : D.includes(k)) || ((w = (R = C.whId) == null ? void 0 : R.toUpperCase()) == null ? void 0 : w.includes(k)) || ((O = (
|
18164
|
+
var I, D, R, w, V, O;
|
18165
|
+
return ((D = (I = C.whDsc) == null ? void 0 : I.toUpperCase()) == null ? void 0 : D.includes(k)) || ((w = (R = C.whId) == null ? void 0 : R.toUpperCase()) == null ? void 0 : w.includes(k)) || ((O = (V = C.adrId) == null ? void 0 : V.toUpperCase()) == null ? void 0 : O.includes(k));
|
18199
18166
|
});
|
18200
18167
|
}), d = computed(() => {
|
18201
18168
|
var k;
|
@@ -18372,6 +18339,19 @@ function createKgWarehouseGuard(e, t) {
|
|
18372
18339
|
}), !0;
|
18373
18340
|
});
|
18374
18341
|
}
|
18342
|
+
function useKgLayoutHeaderResizeObserver() {
|
18343
|
+
let e = null;
|
18344
|
+
return onMounted(() => {
|
18345
|
+
const t = document.querySelector("div.jeecg-layout-header-center");
|
18346
|
+
t && (e = new ResizeObserver((r) => {
|
18347
|
+
var i, o;
|
18348
|
+
const a = t.getBoundingClientRect().left, n = (o = (i = r[0].borderBoxSize[0]) == null ? void 0 : i.inlineSize) != null ? o : 0, s = document.querySelector("#kg-layout-header-teleport");
|
18349
|
+
s && (s.style.left = `${a}px`, s.style.width = `${n}px`);
|
18350
|
+
}), e.observe(t));
|
18351
|
+
}), onBeforeUnmount(() => {
|
18352
|
+
e == null || e.disconnect();
|
18353
|
+
}), {};
|
18354
|
+
}
|
18375
18355
|
class KgUtil {
|
18376
18356
|
static getFileSize(t) {
|
18377
18357
|
const r = Number(t);
|
@@ -18495,24 +18475,24 @@ class KgUtil {
|
|
18495
18475
|
let R = r ? this.parseParamFromDayJS(g, D, r) : D.format("YYYY-MM-DD HH:mm:ss");
|
18496
18476
|
switch (y) {
|
18497
18477
|
case KG_DYNAMIC_QUERY_OPERATOR.NE: {
|
18498
|
-
let w = R,
|
18478
|
+
let w = R, V = "";
|
18499
18479
|
switch (!0) {
|
18500
18480
|
case /\d\d-\d\d-\d\d \d\d:\d\d:\d\d/.test(w): {
|
18501
|
-
|
18481
|
+
V = D.add(1, "second").format("YYYY-MM-DD HH:mm:ss");
|
18502
18482
|
break;
|
18503
18483
|
}
|
18504
18484
|
case /\d\d-\d\d-\d\d/.test(w): {
|
18505
|
-
w = `${w} 00:00:00`,
|
18485
|
+
w = `${w} 00:00:00`, V = D.add(1, "day").format("YYYY-MM-DD 00:00:00");
|
18506
18486
|
break;
|
18507
18487
|
}
|
18508
18488
|
case /\d\d:\d\d:\d\d/.test(w): {
|
18509
|
-
w = D.format("1900-01-01 HH:mm:ss"),
|
18489
|
+
w = D.format("1900-01-01 HH:mm:ss"), V = D.add(1, "second").format("1900-01-01 HH:mm:ss");
|
18510
18490
|
break;
|
18511
18491
|
}
|
18512
18492
|
default:
|
18513
18493
|
throw new Error("KgUtil.parseParamsForDynamicQuery() | \u65E5\u671F\u683C\u5F0F\u6709\u8BEF.");
|
18514
18494
|
}
|
18515
|
-
R = ` AND (${m} < '${w}' OR ${m} >= '${
|
18495
|
+
R = ` AND (${m} < '${w}' OR ${m} >= '${V}')`;
|
18516
18496
|
break;
|
18517
18497
|
}
|
18518
18498
|
case KG_DYNAMIC_QUERY_OPERATOR.LT: {
|
@@ -18535,45 +18515,45 @@ class KgUtil {
|
|
18535
18515
|
break;
|
18536
18516
|
}
|
18537
18517
|
case KG_DYNAMIC_QUERY_OPERATOR.LTE: {
|
18538
|
-
let w = R,
|
18518
|
+
let w = R, V = "";
|
18539
18519
|
switch (!0) {
|
18540
18520
|
case /\d\d-\d\d-\d\d \d\d:\d\d:\d\d/.test(w): {
|
18541
|
-
|
18521
|
+
V = D.add(1, "second").format("YYYY-MM-DD HH:mm:ss");
|
18542
18522
|
break;
|
18543
18523
|
}
|
18544
18524
|
case /\d\d-\d\d-\d\d/.test(w): {
|
18545
|
-
|
18525
|
+
V = D.add(1, "day").format("YYYY-MM-DD 00:00:00");
|
18546
18526
|
break;
|
18547
18527
|
}
|
18548
18528
|
case /\d\d:\d\d:\d\d/.test(w): {
|
18549
|
-
|
18529
|
+
V = D.add(1, "second").format("1900-01-01 HH:mm:ss");
|
18550
18530
|
break;
|
18551
18531
|
}
|
18552
18532
|
default:
|
18553
18533
|
throw new Error("KgUtil.parseParamsForDynamicQuery() | \u65E5\u671F\u683C\u5F0F\u6709\u8BEF.");
|
18554
18534
|
}
|
18555
|
-
R = ` AND (${m} < '${
|
18535
|
+
R = ` AND (${m} < '${V}')`;
|
18556
18536
|
break;
|
18557
18537
|
}
|
18558
18538
|
case KG_DYNAMIC_QUERY_OPERATOR.GT: {
|
18559
|
-
let w = R,
|
18539
|
+
let w = R, V = "";
|
18560
18540
|
switch (!0) {
|
18561
18541
|
case /\d\d-\d\d-\d\d \d\d:\d\d:\d\d/.test(w): {
|
18562
|
-
|
18542
|
+
V = D.add(1, "second").format("YYYY-MM-DD HH:mm:ss");
|
18563
18543
|
break;
|
18564
18544
|
}
|
18565
18545
|
case /\d\d-\d\d-\d\d/.test(w): {
|
18566
|
-
|
18546
|
+
V = D.add(1, "day").format("YYYY-MM-DD 00:00:00");
|
18567
18547
|
break;
|
18568
18548
|
}
|
18569
18549
|
case /\d\d:\d\d:\d\d/.test(w): {
|
18570
|
-
|
18550
|
+
V = D.add(1, "second").format("1900-01-01 HH:mm:ss");
|
18571
18551
|
break;
|
18572
18552
|
}
|
18573
18553
|
default:
|
18574
18554
|
throw new Error("KgUtil.parseParamsForDynamicQuery() | \u65E5\u671F\u683C\u5F0F\u6709\u8BEF.");
|
18575
18555
|
}
|
18576
|
-
R = ` AND (${m} >= '${
|
18556
|
+
R = ` AND (${m} >= '${V}')`;
|
18577
18557
|
break;
|
18578
18558
|
}
|
18579
18559
|
case KG_DYNAMIC_QUERY_OPERATOR.GTE: {
|
@@ -18597,24 +18577,24 @@ class KgUtil {
|
|
18597
18577
|
}
|
18598
18578
|
case KG_DYNAMIC_QUERY_OPERATOR.EQ:
|
18599
18579
|
default: {
|
18600
|
-
let w = R,
|
18580
|
+
let w = R, V = "";
|
18601
18581
|
switch (!0) {
|
18602
18582
|
case /\d\d-\d\d-\d\d \d\d:\d\d:\d\d/.test(w): {
|
18603
|
-
|
18583
|
+
V = D.add(1, "second").format("YYYY-MM-DD HH:mm:ss");
|
18604
18584
|
break;
|
18605
18585
|
}
|
18606
18586
|
case /\d\d-\d\d-\d\d/.test(w): {
|
18607
|
-
w = `${w} 00:00:00`,
|
18587
|
+
w = `${w} 00:00:00`, V = D.add(1, "day").format("YYYY-MM-DD 00:00:00");
|
18608
18588
|
break;
|
18609
18589
|
}
|
18610
18590
|
case /\d\d:\d\d:\d\d/.test(w): {
|
18611
|
-
w = `1900-01-01 ${w}`,
|
18591
|
+
w = `1900-01-01 ${w}`, V = D.add(1, "second").format("1900-01-01 HH:mm:ss");
|
18612
18592
|
break;
|
18613
18593
|
}
|
18614
18594
|
default:
|
18615
18595
|
throw new Error("KgUtil.parseParamsForDynamicQuery() | \u65E5\u671F\u683C\u5F0F\u6709\u8BEF.");
|
18616
18596
|
}
|
18617
|
-
R = ` AND (${m} >= '${w}' AND ${m} < '${
|
18597
|
+
R = ` AND (${m} >= '${w}' AND ${m} < '${V}')`;
|
18618
18598
|
break;
|
18619
18599
|
}
|
18620
18600
|
}
|
@@ -18623,26 +18603,26 @@ class KgUtil {
|
|
18623
18603
|
}
|
18624
18604
|
case (!!n && isArray$1(_) && _.length === 2 && n.isDayjs(_[0]) && n.isDayjs(_[1])): {
|
18625
18605
|
const D = _[0], R = _[1];
|
18626
|
-
let w = "",
|
18606
|
+
let w = "", V = this.parseParamFromDayJS(g, D, r), O = "";
|
18627
18607
|
switch (!0) {
|
18628
|
-
case !
|
18608
|
+
case !V: {
|
18629
18609
|
O = this.parseParamFromDayJS(g, R, r, !0);
|
18630
18610
|
break;
|
18631
18611
|
}
|
18632
|
-
case /\d\d-\d\d-\d\d \d\d:\d\d:\d\d/.test(
|
18612
|
+
case /\d\d-\d\d-\d\d \d\d:\d\d:\d\d/.test(V): {
|
18633
18613
|
R.isValid() && (O = R.add(1, "second").format("YYYY-MM-DD HH:mm:ss"));
|
18634
18614
|
break;
|
18635
18615
|
}
|
18636
|
-
case /\d\d-\d\d-\d\d/.test(
|
18637
|
-
|
18616
|
+
case /\d\d-\d\d-\d\d/.test(V): {
|
18617
|
+
V = `${V} 00:00:00`, R.isValid() && (O = R.add(1, "day").format("YYYY-MM-DD 00:00:00"));
|
18638
18618
|
break;
|
18639
18619
|
}
|
18640
|
-
case /\d\d:\d\d:\d\d/.test(
|
18641
|
-
|
18620
|
+
case /\d\d:\d\d:\d\d/.test(V): {
|
18621
|
+
V = `1900-01-01 ${V}`, R.isValid() && (O = R.add(1, "second").format("1900-01-01 HH:mm:ss"));
|
18642
18622
|
break;
|
18643
18623
|
}
|
18644
18624
|
}
|
18645
|
-
|
18625
|
+
V && (w += ` AND (${m} >= N'${V}')`), O && (w += ` AND (${m} < N'${O}')`), u[g] = w;
|
18646
18626
|
break;
|
18647
18627
|
}
|
18648
18628
|
case Array.isArray(_): {
|
@@ -19871,7 +19851,7 @@ const index$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.definePrope
|
|
19871
19851
|
{
|
19872
19852
|
dis_mult_select_flg: 0,
|
19873
19853
|
dis_no_select_flg: 0,
|
19874
|
-
|
19854
|
+
available_flag: 1,
|
19875
19855
|
frm_id: "",
|
19876
19856
|
id: `${Date.now()}`,
|
19877
19857
|
permission_code: "",
|
@@ -19935,24 +19915,24 @@ const index$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.definePrope
|
|
19935
19915
|
a.value = O != null ? O : [];
|
19936
19916
|
}
|
19937
19917
|
function b(O) {
|
19938
|
-
n.value.frmId = O != null ? O : "", n.value.varButtons.forEach((
|
19918
|
+
n.value.frmId = O != null ? O : "", n.value.varButtons.forEach((P) => P.frm_id = O), n.value.varContexts.forEach((P) => P.frm_id = O), n.value.varDda.frm_id = O != null ? O : "", n.value.varGridConfig.frm_id = O != null ? O : "", n.value.varGridDetails.forEach((P) => P.frm_id = O), n.value.varGridMaster.frm_id = O != null ? O : "", n.value.varProfileConfig.frm_id = O != null ? O : "", n.value.varProfileDetails.forEach((P) => P.frm_id = O), n.value.varProfileMaster.frm_id = O != null ? O : "", n.value.varSubmitConfig.frm_id = O != null ? O : "", n.value.varSubmitFields.forEach((P) => P.frm_id = O), n.value.varVariableCatalogs.forEach((P) => P.frm_id = O), n.value.varVariableConfigs.forEach((P) => P.frm_id = O);
|
19939
19919
|
}
|
19940
19920
|
function E(O) {
|
19941
|
-
const { properties:
|
19942
|
-
Object.entries(
|
19921
|
+
const { properties: P = {} } = O;
|
19922
|
+
Object.entries(P).forEach(([N, M]) => {
|
19943
19923
|
N in n.value.sysPermission && n.value.sysPermission[N] !== M && (n.value.sysPermission[N] = M);
|
19944
19924
|
});
|
19945
19925
|
}
|
19946
19926
|
function g(O) {
|
19947
|
-
const { frmId:
|
19948
|
-
n.value.varDda.frm_id =
|
19927
|
+
const { frmId: P, frmNam: N } = O;
|
19928
|
+
n.value.varDda.frm_id = P, n.value.varDda.frm_nam = N;
|
19949
19929
|
}
|
19950
19930
|
function v(O) {
|
19951
19931
|
n.value.varButtons = [
|
19952
19932
|
...toRaw(n.value.varButtons),
|
19953
19933
|
{
|
19954
19934
|
...O,
|
19955
|
-
|
19935
|
+
available_flag: 1,
|
19956
19936
|
frm_id: l.value,
|
19957
19937
|
id: `${Date.now()}`,
|
19958
19938
|
show_success_message_flg: 1
|
@@ -19960,7 +19940,7 @@ const index$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.definePrope
|
|
19960
19940
|
], R(), w();
|
19961
19941
|
}
|
19962
19942
|
function _(O) {
|
19963
|
-
const { varNam:
|
19943
|
+
const { varNam: P, properties: N = {} } = O, M = n.value.varButtons.find((B) => B.var_nam === P);
|
19964
19944
|
if (!M)
|
19965
19945
|
return;
|
19966
19946
|
let K = !1;
|
@@ -19972,17 +19952,17 @@ const index$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.definePrope
|
|
19972
19952
|
L.splice(n.value.varButtons.indexOf(M), 1, { ...M }), n.value.varButtons = toRaw(L);
|
19973
19953
|
}
|
19974
19954
|
function y(O) {
|
19975
|
-
const { varNam:
|
19955
|
+
const { varNam: P } = O, N = n.value.varButtons.find((K) => K.var_nam === P);
|
19976
19956
|
if (!N)
|
19977
19957
|
return;
|
19978
19958
|
const M = [...n.value.varButtons];
|
19979
19959
|
M.splice(n.value.varButtons.indexOf(N), 1), n.value.varButtons = toRaw(M), R();
|
19980
19960
|
}
|
19981
19961
|
function m(O) {
|
19982
|
-
const { varNam:
|
19983
|
-
if (!!
|
19984
|
-
if (n.value.varVariableCatalogs.find((M) => M.var_nam ===
|
19985
|
-
T({ varNam:
|
19962
|
+
const { varNam: P, varText: N } = O;
|
19963
|
+
if (!!P) {
|
19964
|
+
if (n.value.varVariableCatalogs.find((M) => M.var_nam === P)) {
|
19965
|
+
T({ varNam: P, varText: N });
|
19986
19966
|
return;
|
19987
19967
|
}
|
19988
19968
|
n.value.varVariableCatalogs = [
|
@@ -19992,36 +19972,36 @@ const index$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.definePrope
|
|
19992
19972
|
frm_id: l.value,
|
19993
19973
|
grp_nam: "WMS",
|
19994
19974
|
locale_id: e.locale.value,
|
19995
|
-
var_nam:
|
19996
|
-
var_text: N ||
|
19975
|
+
var_nam: P,
|
19976
|
+
var_text: N || P
|
19997
19977
|
}
|
19998
19978
|
], R();
|
19999
19979
|
}
|
20000
19980
|
}
|
20001
19981
|
function T(O) {
|
20002
|
-
const { varNam:
|
20003
|
-
if (!
|
19982
|
+
const { varNam: P, varText: N } = O;
|
19983
|
+
if (!P)
|
20004
19984
|
return;
|
20005
|
-
const M = n.value.varVariableCatalogs.find((K) => K.var_nam ===
|
20006
|
-
!M || (M.var_text = N ||
|
19985
|
+
const M = n.value.varVariableCatalogs.find((K) => K.var_nam === P);
|
19986
|
+
!M || (M.var_text = N || P);
|
20007
19987
|
}
|
20008
19988
|
function k(O) {
|
20009
|
-
n.value.varProfileDetails = O.map((
|
20010
|
-
...
|
19989
|
+
n.value.varProfileDetails = O.map((P) => ({
|
19990
|
+
...P,
|
20011
19991
|
frm_id: l.value,
|
20012
19992
|
grp_nam: "WMS"
|
20013
19993
|
}));
|
20014
19994
|
}
|
20015
19995
|
function A(O) {
|
20016
|
-
n.value.varGridDetails = O.map((
|
20017
|
-
...
|
19996
|
+
n.value.varGridDetails = O.map((P) => ({
|
19997
|
+
...P,
|
20018
19998
|
frm_id: l.value,
|
20019
19999
|
grp_nam: "WMS"
|
20020
20000
|
}));
|
20021
20001
|
}
|
20022
20002
|
function C(O) {
|
20023
|
-
n.value.varSubmitFields = O.map((
|
20024
|
-
...
|
20003
|
+
n.value.varSubmitFields = O.map((P) => ({
|
20004
|
+
...P,
|
20025
20005
|
cpy_ena_flg: 1,
|
20026
20006
|
cpy_flg: 1,
|
20027
20007
|
cpy_vis_flg: 1,
|
@@ -20036,8 +20016,8 @@ const index$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.definePrope
|
|
20036
20016
|
}));
|
20037
20017
|
}
|
20038
20018
|
function I(O) {
|
20039
|
-
n.value.varVariableConfigs = O.map((
|
20040
|
-
...
|
20019
|
+
n.value.varVariableConfigs = O.map((P) => ({
|
20020
|
+
...P,
|
20041
20021
|
ctrl_typ: KG_FORM_ITEM_TYPE.INPUT,
|
20042
20022
|
cust_lvl: KG_CUSTOM_LEVEL.L0,
|
20043
20023
|
frm_id: l.value,
|
@@ -20046,34 +20026,30 @@ const index$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.definePrope
|
|
20046
20026
|
}));
|
20047
20027
|
}
|
20048
20028
|
function D(O) {
|
20049
|
-
var
|
20050
|
-
return O && (M = (N = (
|
20029
|
+
var P, N, M;
|
20030
|
+
return O && (M = (N = (P = n.value.varVariableCatalogs) == null ? void 0 : P.find((K) => K.var_nam === O)) == null ? void 0 : N.var_text) != null ? M : "";
|
20051
20031
|
}
|
20052
20032
|
function R() {
|
20053
20033
|
const O = uniq(
|
20054
20034
|
compact([
|
20055
|
-
...n.value.varButtons.map((
|
20056
|
-
...n.value.varGridDetails.map((
|
20035
|
+
...n.value.varButtons.map((P) => P.var_nam),
|
20036
|
+
...n.value.varGridDetails.map((P) => P.var_nam),
|
20057
20037
|
n.value.varGridMaster.grd_var_nam,
|
20058
|
-
...n.value.varProfileDetails.map((
|
20038
|
+
...n.value.varProfileDetails.map((P) => P.var_nam),
|
20059
20039
|
n.value.varProfileMaster.prf_var_nam,
|
20060
|
-
...n.value.varSubmitFields.map((
|
20040
|
+
...n.value.varSubmitFields.map((P) => P.var_nam)
|
20061
20041
|
])
|
20062
20042
|
);
|
20063
|
-
n.value.varContexts = O.map(
|
20064
|
-
(V) => new VarContext({ frm_id: l.value, var_nam: V, grp_nam: "WMS" })
|
20065
|
-
), n.value.varVariableCatalogs = toRaw(
|
20066
|
-
n.value.varVariableCatalogs.filter((V) => O.includes(V.var_nam))
|
20067
|
-
);
|
20043
|
+
n.value.varContexts = O.map((P) => new VarContext({ frm_id: l.value, var_nam: P, grp_nam: "WMS" })), n.value.varVariableCatalogs = toRaw(n.value.varVariableCatalogs.filter((P) => O.includes(P.var_nam)));
|
20068
20044
|
}
|
20069
20045
|
function w() {
|
20070
20046
|
var O;
|
20071
|
-
(O = n.value.varButtons) == null || O.forEach((
|
20047
|
+
(O = n.value.varButtons) == null || O.forEach((P) => {
|
20072
20048
|
var N, M;
|
20073
|
-
|
20049
|
+
P.typDsc = (M = (N = t.value.find((K) => K.codval === P.typ)) == null ? void 0 : N.shortDsc) != null ? M : "";
|
20074
20050
|
});
|
20075
20051
|
}
|
20076
|
-
async function
|
20052
|
+
async function V() {
|
20077
20053
|
const { records: O } = await List$3({
|
20078
20054
|
params: {
|
20079
20055
|
localeId: e.locale.value,
|
@@ -20084,7 +20060,7 @@ const index$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.definePrope
|
|
20084
20060
|
});
|
20085
20061
|
t.value = O != null ? O : [], w();
|
20086
20062
|
}
|
20087
|
-
return
|
20063
|
+
return V(), {
|
20088
20064
|
isLoading: r,
|
20089
20065
|
resultSetMetadataColumns: a,
|
20090
20066
|
createVarDdaQuery: n,
|
@@ -21764,6 +21740,7 @@ export {
|
|
21764
21740
|
useKgDragModal,
|
21765
21741
|
useKgForm,
|
21766
21742
|
useKgFormStore,
|
21743
|
+
useKgLayoutHeaderResizeObserver,
|
21767
21744
|
useKgSearch,
|
21768
21745
|
useKgSearchStore,
|
21769
21746
|
useKgStore,
|