@kengic/vue 0.19.2-beta.7 → 0.19.2-beta.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.css +1 -1
- package/dist/kengic-vue.js +316 -354
- 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/KgForm/index.store.d.ts +47 -35
- package/dist/src/pages/KgPageDda/components/KgPageDda.Create.store.d.ts +6 -6
- package/package.json +2 -2
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.19.2-beta.
|
2934
|
+
}), version = "0.19.2-beta.9";
|
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,19 +3161,19 @@ 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 V(K) {
|
3171
|
-
N.push(K);
|
3172
|
-
}
|
3164
|
+
const w = Array.from(arguments), V = [], O = [];
|
3173
3165
|
function P(K) {
|
3166
|
+
V.push(K);
|
3167
|
+
}
|
3168
|
+
function N(K) {
|
3174
3169
|
O.push(K);
|
3175
3170
|
}
|
3176
3171
|
triggerSubscriptions(b, {
|
3177
3172
|
args: w,
|
3178
3173
|
name: D,
|
3179
3174
|
store: C,
|
3180
|
-
after:
|
3181
|
-
onError:
|
3175
|
+
after: P,
|
3176
|
+
onError: N
|
3182
3177
|
});
|
3183
3178
|
let M;
|
3184
3179
|
try {
|
@@ -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,16 +5370,16 @@ 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
|
5384
5379
|
}, l = {
|
5385
5380
|
id: KG_TMP_MENU_ID__SYS,
|
5386
5381
|
key: KG_TMP_MENU_ID__SYS,
|
5387
|
-
title: (M = (
|
5382
|
+
title: (M = (N = r.option.value.appTitle) == null ? void 0 : N[KG_APP.SYS]) != null ? M : "\u7CFB\u7EDF\u914D\u7F6E",
|
5388
5383
|
name: (L = (K = r.option.value.appTitle) == null ? void 0 : K[KG_APP.SYS]) != null ? L : "\u7CFB\u7EDF\u914D\u7F6E",
|
5389
5384
|
slotTitle: (U = (B = r.option.value.appTitle) == null ? void 0 : B[KG_APP.SYS]) != null ? U : "\u7CFB\u7EDF\u914D\u7F6E",
|
5390
5385
|
sortNo: 4,
|
@@ -5517,31 +5512,31 @@ var commonjsGlobal = typeof globalThis < "u" ? globalThis : typeof window < "u"
|
|
5517
5512
|
(function(r, a) {
|
5518
5513
|
e.exports = a();
|
5519
5514
|
})(commonjsGlobal, function() {
|
5520
|
-
var r = 1e3, a = 6e4, n = 36e5, s = "millisecond", i = "second", o = "minute", l = "hour", c = "day", u = "week", d = "month", b = "quarter", E = "year", g = "date", v = "Invalid Date", _ = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, y = /\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g, m = { name: "en", weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), months: "January_February_March_April_May_June_July_August_September_October_November_December".split("_"), ordinal: function(
|
5521
|
-
var M = ["th", "st", "nd", "rd"], K =
|
5522
|
-
return "[" +
|
5523
|
-
} }, T = function(
|
5524
|
-
var L = String(
|
5525
|
-
return !L || L.length >= M ?
|
5526
|
-
}, k = { s: T, z: function(
|
5527
|
-
var M = -
|
5515
|
+
var r = 1e3, a = 6e4, n = 36e5, s = "millisecond", i = "second", o = "minute", l = "hour", c = "day", u = "week", d = "month", b = "quarter", E = "year", g = "date", v = "Invalid Date", _ = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, y = /\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g, m = { name: "en", weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), months: "January_February_March_April_May_June_July_August_September_October_November_December".split("_"), ordinal: function(N) {
|
5516
|
+
var M = ["th", "st", "nd", "rd"], K = N % 100;
|
5517
|
+
return "[" + N + (M[(K - 20) % 10] || M[K] || M[0]) + "]";
|
5518
|
+
} }, T = function(N, M, K) {
|
5519
|
+
var L = String(N);
|
5520
|
+
return !L || L.length >= M ? N : "" + Array(M + 1 - L.length).join(K) + N;
|
5521
|
+
}, k = { s: T, z: function(N) {
|
5522
|
+
var M = -N.utcOffset(), K = Math.abs(M), L = Math.floor(K / 60), B = K % 60;
|
5528
5523
|
return (M <= 0 ? "+" : "-") + T(L, 2, "0") + ":" + T(B, 2, "0");
|
5529
|
-
}, m: function
|
5524
|
+
}, m: function N(M, K) {
|
5530
5525
|
if (M.date() < K.date())
|
5531
|
-
return -
|
5526
|
+
return -N(K, M);
|
5532
5527
|
var L = 12 * (K.year() - M.year()) + (K.month() - M.month()), B = M.clone().add(L, d), U = K - B < 0, F = M.clone().add(L + (U ? -1 : 1), d);
|
5533
5528
|
return +(-(L + (K - B) / (U ? B - F : F - B)) || 0);
|
5534
|
-
}, a: function(
|
5535
|
-
return
|
5536
|
-
}, p: function(
|
5537
|
-
return { M: d, y: E, w: u, d: c, D: g, h: l, m: o, s: i, ms: s, Q: b }[
|
5538
|
-
}, u: function(
|
5539
|
-
return
|
5529
|
+
}, a: function(N) {
|
5530
|
+
return N < 0 ? Math.ceil(N) || 0 : Math.floor(N);
|
5531
|
+
}, p: function(N) {
|
5532
|
+
return { M: d, y: E, w: u, d: c, D: g, h: l, m: o, s: i, ms: s, Q: b }[N] || String(N || "").toLowerCase().replace(/s$/, "");
|
5533
|
+
}, u: function(N) {
|
5534
|
+
return N === void 0;
|
5540
5535
|
} }, A = "en", C = {};
|
5541
5536
|
C[A] = m;
|
5542
|
-
var I = "$isDayjsObject", D = function(
|
5543
|
-
return
|
5544
|
-
}, R = function
|
5537
|
+
var I = "$isDayjsObject", D = function(N) {
|
5538
|
+
return N instanceof O || !(!N || !N[I]);
|
5539
|
+
}, R = function N(M, K, L) {
|
5545
5540
|
var B;
|
5546
5541
|
if (!M)
|
5547
5542
|
return A;
|
@@ -5550,32 +5545,32 @@ var commonjsGlobal = typeof globalThis < "u" ? globalThis : typeof window < "u"
|
|
5550
5545
|
C[U] && (B = U), K && (C[U] = K, B = U);
|
5551
5546
|
var F = M.split("-");
|
5552
5547
|
if (!B && F.length > 1)
|
5553
|
-
return
|
5548
|
+
return N(F[0]);
|
5554
5549
|
} else {
|
5555
5550
|
var x = M.name;
|
5556
5551
|
C[x] = M, B = x;
|
5557
5552
|
}
|
5558
5553
|
return !L && B && (A = B), B || !L && A;
|
5559
|
-
}, w = function(
|
5560
|
-
if (D(
|
5561
|
-
return
|
5554
|
+
}, w = function(N, M) {
|
5555
|
+
if (D(N))
|
5556
|
+
return N.clone();
|
5562
5557
|
var K = typeof M == "object" ? M : {};
|
5563
|
-
return K.date =
|
5564
|
-
},
|
5565
|
-
|
5566
|
-
return w(
|
5558
|
+
return K.date = N, K.args = arguments, new O(K);
|
5559
|
+
}, V = k;
|
5560
|
+
V.l = R, V.i = D, V.w = function(N, M) {
|
5561
|
+
return w(N, { locale: M.$L, utc: M.$u, x: M.$x, $offset: M.$offset });
|
5567
5562
|
};
|
5568
5563
|
var O = function() {
|
5569
|
-
function
|
5564
|
+
function N(K) {
|
5570
5565
|
this.$L = R(K.locale, null, !0), this.parse(K), this.$x = this.$x || K.x || {}, this[I] = !0;
|
5571
5566
|
}
|
5572
|
-
var M =
|
5567
|
+
var M = N.prototype;
|
5573
5568
|
return M.parse = function(K) {
|
5574
5569
|
this.$d = function(L) {
|
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() {
|
@@ -5789,16 +5784,16 @@ var commonjsGlobal = typeof globalThis < "u" ? globalThis : typeof window < "u"
|
|
5789
5784
|
return this.$d.toISOString();
|
5790
5785
|
}, M.toString = function() {
|
5791
5786
|
return this.$d.toUTCString();
|
5792
|
-
},
|
5793
|
-
}(),
|
5794
|
-
return w.prototype =
|
5795
|
-
|
5796
|
-
return this.$g(M,
|
5787
|
+
}, N;
|
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) {
|
5791
|
+
return this.$g(M, N[0], N[1]);
|
5797
5792
|
};
|
5798
|
-
}), w.extend = function(
|
5799
|
-
return
|
5800
|
-
}, w.locale = R, w.isDayjs = D, w.unix = function(
|
5801
|
-
return w(1e3 *
|
5793
|
+
}), w.extend = function(N, M) {
|
5794
|
+
return N.$i || (N(M, O, w), N.$i = !0), w;
|
5795
|
+
}, w.locale = R, w.isDayjs = D, w.unix = function(N) {
|
5796
|
+
return w(1e3 * N);
|
5802
5797
|
}, w.en = C[A], w.Ls = C, w.p = {}, w;
|
5803
5798
|
});
|
5804
5799
|
})(dayjs_min);
|
@@ -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
|
8944
|
-
u.value = c.value.filter((M) =>
|
8945
|
-
} catch (
|
8946
|
-
throw
|
8938
|
+
const N = (R = (D = P == null ? void 0 : P.varGridDetails) == null ? void 0 : D.map((M) => M.var_nam)) != null ? R : [];
|
8939
|
+
u.value = c.value.filter((M) => N.includes(M.var_nam)).map((M) => M.id);
|
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;
|
@@ -9737,7 +9732,7 @@ const getProps$z = () => ({
|
|
9737
9732
|
return createVNode(KgProgressA, {
|
9738
9733
|
kgTextWidth: M.textWidth,
|
9739
9734
|
kgLeft: K,
|
9740
|
-
kgRight: (
|
9735
|
+
kgRight: (N = e.kgRow) == null ? void 0 : N[M.rightColumn]
|
9741
9736
|
}, null);
|
9742
9737
|
}
|
9743
9738
|
break;
|
@@ -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) => {
|
@@ -9883,7 +9878,7 @@ function _useColumns(e) {
|
|
9883
9878
|
};
|
9884
9879
|
}), "value");
|
9885
9880
|
}
|
9886
|
-
function
|
9881
|
+
function N() {
|
9887
9882
|
var F, x, q;
|
9888
9883
|
return ((x = (F = E.option.value.KgTable) == null ? void 0 : F.filter) == null ? void 0 : x.on) !== !0 ? null : ((q = o.value) == null ? void 0 : q[D]) || null;
|
9889
9884
|
}
|
@@ -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
|
-
filteredValue:
|
9921
|
-
filters:
|
9915
|
+
filteredValue: N(),
|
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,
|
@@ -10105,11 +10100,11 @@ const KgTable$1 = "", getProps$y = () => ({
|
|
10105
10100
|
if (G[0] === s.formID) {
|
10106
10101
|
const z = G[1], Y = G[2], ee = z[o.id.value];
|
10107
10102
|
switch (!0) {
|
10108
|
-
case (Y && !
|
10109
|
-
x([...
|
10103
|
+
case (Y && !N.value.includes(ee)):
|
10104
|
+
x([...N.value, ee]);
|
10110
10105
|
break;
|
10111
|
-
case (!Y &&
|
10112
|
-
x(without$1(
|
10106
|
+
case (!Y && N.value.includes(ee)):
|
10107
|
+
x(without$1(N.value, ee));
|
10113
10108
|
break;
|
10114
10109
|
}
|
10115
10110
|
}
|
@@ -10175,13 +10170,13 @@ 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",
|
10182
10177
|
columnWidth: KG_TABLE_TD_CHECK_WIDTH,
|
10183
10178
|
hideSelectAll: !o.isMultiSelect.value,
|
10184
|
-
selectedRowKeys:
|
10179
|
+
selectedRowKeys: N,
|
10185
10180
|
preserveSelectedRowKeys: !1,
|
10186
10181
|
getCheckboxProps: ($) => {
|
10187
10182
|
var G;
|
@@ -10207,11 +10202,11 @@ 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"), $;
|
10214
|
-
}),
|
10209
|
+
}), N = (X = o.store.getSelectedRowKeys(s.formID)) != null ? X : ref([]), M = reactive({
|
10215
10210
|
pageIndex: 1,
|
10216
10211
|
pageSize: 10,
|
10217
10212
|
total: 0
|
@@ -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
|
}
|
@@ -10365,7 +10360,7 @@ const KgTable$1 = "", getProps$y = () => ({
|
|
10365
10360
|
total: Ae
|
10366
10361
|
} = m(ye), Ie = await o.store.emit(s.formID, "beforeSetDatas", {
|
10367
10362
|
datas: Ee
|
10368
|
-
}), ke = cloneDeep(
|
10363
|
+
}), ke = cloneDeep(N.value);
|
10369
10364
|
o.store.setDatas({
|
10370
10365
|
frmId: s.formID,
|
10371
10366
|
datas: Ee.value,
|
@@ -10401,17 +10396,17 @@ const KgTable$1 = "", getProps$y = () => ({
|
|
10401
10396
|
case !0:
|
10402
10397
|
{
|
10403
10398
|
const Y = $[o.id.value];
|
10404
|
-
|
10399
|
+
N.value.includes(Y) ? N.value = without$1(N.value, Y) : N.value = [...(G = N.value) != null ? G : [], Y];
|
10405
10400
|
}
|
10406
10401
|
break;
|
10407
10402
|
case !1:
|
10408
10403
|
{
|
10409
10404
|
const Y = $[o.id.value];
|
10410
|
-
(z =
|
10405
|
+
(z = N.value) != null && z.includes(Y) ? N.value = [] : N.value = [Y];
|
10411
10406
|
}
|
10412
10407
|
break;
|
10413
10408
|
}
|
10414
|
-
o.store.setSelectedRows(s.formID,
|
10409
|
+
o.store.setSelectedRows(s.formID, N.value.map((Y) => {
|
10415
10410
|
var ee;
|
10416
10411
|
return (ee = y.value) == null ? void 0 : ee.find((ge) => ge[o.id.value] === Y);
|
10417
10412
|
}).filter((Y) => !!Y));
|
@@ -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,14 +10522,14 @@ 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, {
|
10534
|
-
kgShowClearCheck:
|
10529
|
+
kgShowClearCheck: N.value.length > 0,
|
10535
10530
|
kgShowClearTable: M.total > 0,
|
10536
|
-
kgShowLocate:
|
10537
|
-
kgTotal:
|
10531
|
+
kgShowLocate: N.value.length === 1,
|
10532
|
+
kgTotal: N.value.length,
|
10538
10533
|
kgDisabled: I.value
|
10539
10534
|
}, null)]), createVNode("div", {
|
10540
10535
|
class: "right"
|
@@ -10586,32 +10581,40 @@ const KgTable$1 = "", getProps$y = () => ({
|
|
10586
10581
|
var _, y, m, T, k, A, C;
|
10587
10582
|
if (b.value) {
|
10588
10583
|
const I = (y = (_ = u.selectedRows) == null ? void 0 : _.value) != null ? y : [], D = (m = I.map((w) => w[E.value])) != null ? m : [];
|
10589
|
-
await s.store.emit(s.formID, "lookupBeforeOk", {
|
10590
|
-
var_nam: i,
|
10584
|
+
if (await s.store.emit(s.formID, "lookupBeforeOk", {
|
10591
10585
|
isMultiple: !0,
|
10586
|
+
rows: I,
|
10592
10587
|
values: D,
|
10593
|
-
|
10594
|
-
})
|
10595
|
-
|
10596
|
-
|
10588
|
+
var_nam: i
|
10589
|
+
}))
|
10590
|
+
return;
|
10591
|
+
s.store.emit(s.formID, "lookupOk", {
|
10597
10592
|
isMultiple: !0,
|
10593
|
+
model: l,
|
10594
|
+
rows: I,
|
10598
10595
|
values: D,
|
10599
|
-
|
10600
|
-
}), r("update:visible", !1)
|
10596
|
+
var_nam: i
|
10597
|
+
}), r("update:visible", !1);
|
10601
10598
|
} else {
|
10602
|
-
const I = (A = (k = (T = u.selectedRows) == null ? void 0 : T.value) == null ? void 0 : k[0]) != null ? A : null, D = (C = I == null ? void 0 : I[E.value]) != null ? C : "";
|
10603
|
-
await s.store.emit(s.formID, "lookupBeforeOk", {
|
10604
|
-
var_nam: i,
|
10599
|
+
const I = (A = (k = (T = u.selectedRows) == null ? void 0 : T.value) == null ? void 0 : k[0]) != null ? A : null, D = (C = I == null ? void 0 : I[E.value]) != null ? C : "", R = [I], w = [D];
|
10600
|
+
if (await s.store.emit(s.formID, "lookupBeforeOk", {
|
10605
10601
|
isMultiple: !1,
|
10602
|
+
row: I,
|
10603
|
+
rows: R,
|
10606
10604
|
value: D,
|
10607
|
-
|
10608
|
-
|
10609
|
-
|
10610
|
-
|
10605
|
+
values: w,
|
10606
|
+
var_nam: i
|
10607
|
+
}))
|
10608
|
+
return;
|
10609
|
+
s.store.emit(s.formID, "lookupOk", {
|
10611
10610
|
isMultiple: !1,
|
10611
|
+
model: l,
|
10612
|
+
row: I,
|
10613
|
+
rows: R,
|
10612
10614
|
value: D,
|
10613
|
-
|
10614
|
-
|
10615
|
+
values: w,
|
10616
|
+
var_nam: i
|
10617
|
+
}), r("update:visible", !1);
|
10615
10618
|
}
|
10616
10619
|
}
|
10617
10620
|
return () => {
|
@@ -10774,6 +10777,12 @@ function _useFormRules(e) {
|
|
10774
10777
|
message: t.t("kg.required")
|
10775
10778
|
});
|
10776
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;
|
10777
10786
|
}
|
10778
10787
|
break;
|
10779
10788
|
}
|
@@ -10885,9 +10894,9 @@ function useKgFormItemSelect() {
|
|
10885
10894
|
}), v;
|
10886
10895
|
});
|
10887
10896
|
async function E() {
|
10888
|
-
var A, C, I, D, R, w,
|
10897
|
+
var A, C, I, D, R, w, V, O;
|
10889
10898
|
let v = ref([]);
|
10890
|
-
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 : "";
|
10891
10900
|
if (!_ || !m || !T) {
|
10892
10901
|
KgLogger.error("\u4E0B\u62C9\u5217\u8868\u914D\u7F6E\u6709\u8BEF.", {
|
10893
10902
|
frm_id: a.formID,
|
@@ -10901,12 +10910,12 @@ function useKgFormItemSelect() {
|
|
10901
10910
|
let k = null;
|
10902
10911
|
try {
|
10903
10912
|
l.value = !0;
|
10904
|
-
const
|
10913
|
+
const P = KgUtil.parseParams(b.value, null, e);
|
10905
10914
|
k = await ((O = httpClient()) == null ? void 0 : O.request({
|
10906
10915
|
url: _,
|
10907
10916
|
method: y,
|
10908
|
-
params:
|
10909
|
-
data:
|
10917
|
+
params: P,
|
10918
|
+
data: P
|
10910
10919
|
}, {
|
10911
10920
|
dynamicQueryOperators: {},
|
10912
10921
|
dayjs: e
|
@@ -10927,14 +10936,14 @@ function useKgFormItemSelect() {
|
|
10927
10936
|
break;
|
10928
10937
|
}
|
10929
10938
|
if (v.value.length > 0) {
|
10930
|
-
const
|
10931
|
-
(!(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.", {
|
10932
10941
|
frm_id: a.formID,
|
10933
10942
|
var_nam: t,
|
10934
10943
|
cmd: _,
|
10935
10944
|
val_clm: m,
|
10936
10945
|
lbl_clm: T,
|
10937
|
-
\u6240\u6709\u5217: Object.keys(
|
10946
|
+
\u6240\u6709\u5217: Object.keys(P)
|
10938
10947
|
});
|
10939
10948
|
}
|
10940
10949
|
await n.store.emit(a.formID, "selectBeforeSetDatas", {
|
@@ -11669,7 +11678,7 @@ const KgFormItem = defineComponent({
|
|
11669
11678
|
validateFirst: !0,
|
11670
11679
|
htmlFor: I.value
|
11671
11680
|
}, {
|
11672
|
-
default: () => createVNode(Fragment, null, [
|
11681
|
+
default: () => createVNode(Fragment, null, [V(), w(), P(), N()]),
|
11673
11682
|
label: () => O()
|
11674
11683
|
});
|
11675
11684
|
}
|
@@ -11717,7 +11726,7 @@ const KgFormItem = defineComponent({
|
|
11717
11726
|
return createVNode(KgFormItemInput, C.value, null);
|
11718
11727
|
}
|
11719
11728
|
}
|
11720
|
-
function
|
11729
|
+
function V() {
|
11721
11730
|
var M, K, L;
|
11722
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, {
|
11723
11732
|
default: () => {
|
@@ -11749,7 +11758,7 @@ const KgFormItem = defineComponent({
|
|
11749
11758
|
title: i.t(e.kgVarName).value
|
11750
11759
|
}, [i.t(e.kgVarName).value]) : null;
|
11751
11760
|
}
|
11752
|
-
function
|
11761
|
+
function P() {
|
11753
11762
|
var M;
|
11754
11763
|
return !c.value || !((M = c.value) != null && M.lkp_id) ? null : createVNode(Form.ItemRest, null, {
|
11755
11764
|
default: () => [createVNode(KgFormItemAddonLookup, {
|
@@ -11758,7 +11767,7 @@ const KgFormItem = defineComponent({
|
|
11758
11767
|
}, null)]
|
11759
11768
|
});
|
11760
11769
|
}
|
11761
|
-
function
|
11770
|
+
function N() {
|
11762
11771
|
return !t.controlRight || !isFunction$2(t.controlRight) ? null : t.controlRight({
|
11763
11772
|
frm_id: i.formID,
|
11764
11773
|
varName: e.kgVarName,
|
@@ -11841,37 +11850,25 @@ const useKgFormStore = () => (store$6 || (store$6 = defineStore("KgForm", {
|
|
11841
11850
|
case "selectBeforeSetDatas":
|
11842
11851
|
{
|
11843
11852
|
const a = this.selectBeforeSetDatasListenersMap.get(e);
|
11844
|
-
this.selectBeforeSetDatasListenersMap.set(e, [
|
11845
|
-
...a != null ? a : [],
|
11846
|
-
r
|
11847
|
-
]);
|
11853
|
+
this.selectBeforeSetDatasListenersMap.set(e, [...a != null ? a : [], r]);
|
11848
11854
|
}
|
11849
11855
|
break;
|
11850
11856
|
case "selectChange":
|
11851
11857
|
{
|
11852
11858
|
const a = this.selectChangeListenersMap.get(e);
|
11853
|
-
this.selectChangeListenersMap.set(e, [
|
11854
|
-
...a != null ? a : [],
|
11855
|
-
r
|
11856
|
-
]);
|
11859
|
+
this.selectChangeListenersMap.set(e, [...a != null ? a : [], r]);
|
11857
11860
|
}
|
11858
11861
|
break;
|
11859
11862
|
case "lookupBeforeOpen":
|
11860
11863
|
{
|
11861
11864
|
const a = this.lookupBeforeOpenListenersMap.get(e);
|
11862
|
-
this.lookupBeforeOpenListenersMap.set(e, [
|
11863
|
-
...a != null ? a : [],
|
11864
|
-
r
|
11865
|
-
]);
|
11865
|
+
this.lookupBeforeOpenListenersMap.set(e, [...a != null ? a : [], r]);
|
11866
11866
|
}
|
11867
11867
|
break;
|
11868
11868
|
case "lookupBeforeOk":
|
11869
11869
|
{
|
11870
11870
|
const a = this.lookupBeforeOkListenersMap.get(e);
|
11871
|
-
this.lookupBeforeOkListenersMap.set(e, [
|
11872
|
-
...a != null ? a : [],
|
11873
|
-
r
|
11874
|
-
]);
|
11871
|
+
this.lookupBeforeOkListenersMap.set(e, [...a != null ? a : [], r]);
|
11875
11872
|
}
|
11876
11873
|
break;
|
11877
11874
|
case "lookupOk":
|
@@ -11887,40 +11884,28 @@ const useKgFormStore = () => (store$6 || (store$6 = defineStore("KgForm", {
|
|
11887
11884
|
case "selectBeforeSetDatas":
|
11888
11885
|
if (r) {
|
11889
11886
|
const a = this.selectBeforeSetDatasListenersMap.get(e);
|
11890
|
-
this.selectBeforeSetDatasListenersMap.set(
|
11891
|
-
e,
|
11892
|
-
without$1(a, r)
|
11893
|
-
);
|
11887
|
+
this.selectBeforeSetDatasListenersMap.set(e, without$1(a, r));
|
11894
11888
|
} else
|
11895
11889
|
this.selectChangeListenersMap.set(e, []);
|
11896
11890
|
break;
|
11897
11891
|
case "selectChange":
|
11898
11892
|
if (r) {
|
11899
11893
|
const a = this.selectChangeListenersMap.get(e);
|
11900
|
-
this.selectChangeListenersMap.set(
|
11901
|
-
e,
|
11902
|
-
without$1(a, r)
|
11903
|
-
);
|
11894
|
+
this.selectChangeListenersMap.set(e, without$1(a, r));
|
11904
11895
|
} else
|
11905
11896
|
this.selectChangeListenersMap.set(e, []);
|
11906
11897
|
break;
|
11907
11898
|
case "lookupBeforeOpen":
|
11908
11899
|
if (r) {
|
11909
11900
|
const a = this.lookupBeforeOpenListenersMap.get(e);
|
11910
|
-
this.lookupBeforeOpenListenersMap.set(
|
11911
|
-
e,
|
11912
|
-
without$1(a, r)
|
11913
|
-
);
|
11901
|
+
this.lookupBeforeOpenListenersMap.set(e, without$1(a, r));
|
11914
11902
|
} else
|
11915
11903
|
this.lookupBeforeOpenListenersMap.set(e, []);
|
11916
11904
|
break;
|
11917
11905
|
case "lookupBeforeOk":
|
11918
11906
|
if (r) {
|
11919
11907
|
const a = this.lookupBeforeOkListenersMap.get(e);
|
11920
|
-
this.lookupBeforeOkListenersMap.set(
|
11921
|
-
e,
|
11922
|
-
without$1(a, r)
|
11923
|
-
);
|
11908
|
+
this.lookupBeforeOkListenersMap.set(e, without$1(a, r));
|
11924
11909
|
} else
|
11925
11910
|
this.lookupBeforeOkListenersMap.set(e, []);
|
11926
11911
|
break;
|
@@ -12932,7 +12917,7 @@ const getProps$r = () => ({
|
|
12932
12917
|
return [];
|
12933
12918
|
}
|
12934
12919
|
return [];
|
12935
|
-
}),
|
12920
|
+
}), V = computed(() => {
|
12936
12921
|
var H, W, J;
|
12937
12922
|
switch (!0) {
|
12938
12923
|
case s.isCreating.value:
|
@@ -12958,7 +12943,7 @@ const getProps$r = () => ({
|
|
12958
12943
|
return (re = R.value) != null ? re : [];
|
12959
12944
|
}
|
12960
12945
|
return [];
|
12961
|
-
}),
|
12946
|
+
}), P = computed(() => {
|
12962
12947
|
var H, W, J, re;
|
12963
12948
|
switch (!0) {
|
12964
12949
|
case s.isCreating.value:
|
@@ -12971,7 +12956,7 @@ const getProps$r = () => ({
|
|
12971
12956
|
return (re = R.value) != null ? re : [];
|
12972
12957
|
}
|
12973
12958
|
return [];
|
12974
|
-
}),
|
12959
|
+
}), N = computed(() => !!s.store.isCreatingRequesting(s.formID) || !!s.store.isUpdatingRequesting(s.formID) || !!s.store.isCopyingRequesting(s.formID) || !!s.store.isDeletingRequesting(s.formID)), M = computed(() => N.value || d.value), K = computed(() => d.value), L = ref({
|
12975
12960
|
kgWidth: 0
|
12976
12961
|
}), B = computed(() => {
|
12977
12962
|
var H;
|
@@ -13372,7 +13357,7 @@ const getProps$r = () => ({
|
|
13372
13357
|
gutter: 12
|
13373
13358
|
}, _isSlot$6(H = w.value.map(ye)) ? H : {
|
13374
13359
|
default: () => [H]
|
13375
|
-
}),
|
13360
|
+
}), V.value.length > 0 && P.value.length > 0 && createVNode(Divider, null, null), O.value.length > 0 && createVNode(Row, {
|
13376
13361
|
gutter: 12
|
13377
13362
|
}, _isSlot$6(W = O.value.map(ye)) ? W : {
|
13378
13363
|
default: () => [W]
|
@@ -13396,7 +13381,7 @@ const getProps$r = () => ({
|
|
13396
13381
|
}), createVNode(Button, {
|
13397
13382
|
type: "primary",
|
13398
13383
|
disabled: K.value,
|
13399
|
-
loading:
|
13384
|
+
loading: N.value,
|
13400
13385
|
danger: !!s.isDeleting.value,
|
13401
13386
|
onClick: ce
|
13402
13387
|
}, {
|
@@ -14996,10 +14981,10 @@ function useKgVar(e, t, r = 0) {
|
|
14996
14981
|
}), onUnmounted(() => {
|
14997
14982
|
i.dispose(s);
|
14998
14983
|
}));
|
14999
|
-
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(() => {
|
15000
14985
|
var x, q;
|
15001
14986
|
return (q = (x = O.value) == null ? void 0 : x.varProfileDetails) != null ? q : null;
|
15002
|
-
}),
|
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));
|
15003
14988
|
return {
|
15004
14989
|
formID: s,
|
15005
14990
|
store: i,
|
@@ -15023,10 +15008,10 @@ function useKgVar(e, t, r = 0) {
|
|
15023
15008
|
varButtonCopy: D,
|
15024
15009
|
varButtonDelete: R,
|
15025
15010
|
varProfileMasters: w,
|
15026
|
-
currentVarProfileMasterID:
|
15011
|
+
currentVarProfileMasterID: V,
|
15027
15012
|
currentVarProfileMaster: O,
|
15028
|
-
currentVarProfileDetails:
|
15029
|
-
varGridConfig:
|
15013
|
+
currentVarProfileDetails: P,
|
15014
|
+
varGridConfig: N,
|
15030
15015
|
varGridMasters: M,
|
15031
15016
|
currentVarGridMasteID: K,
|
15032
15017
|
currentVarGridMaster: L,
|
@@ -15299,32 +15284,12 @@ function useKgButton(e) {
|
|
15299
15284
|
store: r,
|
15300
15285
|
click: r.click,
|
15301
15286
|
onClick: onEventFactory(t.formID, r, "click"),
|
15302
|
-
onUpdateBeforeClick: onEventFactory(
|
15303
|
-
|
15304
|
-
|
15305
|
-
"updateBeforeClick"
|
15306
|
-
),
|
15307
|
-
onDeleteOk: onEventFactory(
|
15308
|
-
t.formID,
|
15309
|
-
r,
|
15310
|
-
"deleteOk"
|
15311
|
-
),
|
15312
|
-
onImportOk: onEventFactory(
|
15313
|
-
t.formID,
|
15314
|
-
r,
|
15315
|
-
"importOk"
|
15316
|
-
),
|
15287
|
+
onUpdateBeforeClick: onEventFactory(t.formID, r, "updateBeforeClick"),
|
15288
|
+
onDeleteOk: onEventFactory(t.formID, r, "deleteOk"),
|
15289
|
+
onImportOk: onEventFactory(t.formID, r, "importOk"),
|
15317
15290
|
onOtherOk: onEventFactory(t.formID, r, "otherOk"),
|
15318
|
-
onSubmitSave: onEventFactory(
|
15319
|
-
|
15320
|
-
r,
|
15321
|
-
"submitSave"
|
15322
|
-
),
|
15323
|
-
onSubmitCancel: onEventFactory(
|
15324
|
-
t.formID,
|
15325
|
-
r,
|
15326
|
-
"submitCancel"
|
15327
|
-
)
|
15291
|
+
onSubmitSave: onEventFactory(t.formID, r, "submitSave"),
|
15292
|
+
onSubmitCancel: onEventFactory(t.formID, r, "submitCancel")
|
15328
15293
|
};
|
15329
15294
|
}
|
15330
15295
|
const getProps$p = () => ({
|
@@ -15776,18 +15741,19 @@ const getProps$p = () => ({
|
|
15776
15741
|
data: y != null ? y : []
|
15777
15742
|
});
|
15778
15743
|
if (((C = e.kgButton) == null ? void 0 : C.reload_all_after_done_flg) === 1) {
|
15779
|
-
|
15780
|
-
|
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
|
15781
15747
|
}) => {
|
15782
|
-
const
|
15783
|
-
return
|
15784
|
-
}, !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", {
|
15785
15751
|
button: e.kgButton,
|
15786
15752
|
data: D
|
15787
15753
|
}))
|
15788
15754
|
return;
|
15789
15755
|
a.search({
|
15790
|
-
isSearchFirstPage:
|
15756
|
+
isSearchFirstPage: R
|
15791
15757
|
});
|
15792
15758
|
} else if (await n.store.emit(r.formID, "otherOk", {
|
15793
15759
|
button: e.kgButton,
|
@@ -16723,16 +16689,16 @@ const KgSearch_ConfigModal_VarProfileMaster = "", getProps$m = () => ({
|
|
16723
16689
|
}
|
16724
16690
|
});
|
16725
16691
|
l.value = l.value.map((O) => {
|
16726
|
-
var
|
16727
|
-
const
|
16728
|
-
return
|
16692
|
+
var N;
|
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 ? {
|
16729
16695
|
...O,
|
16730
|
-
...
|
16696
|
+
...P,
|
16731
16697
|
id: O.id
|
16732
16698
|
} : O;
|
16733
16699
|
});
|
16734
|
-
const
|
16735
|
-
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);
|
16736
16702
|
} catch (w) {
|
16737
16703
|
throw w;
|
16738
16704
|
} finally {
|
@@ -16817,8 +16783,8 @@ const KgSearch_ConfigModal_VarProfileMaster = "", getProps$m = () => ({
|
|
16817
16783
|
}) => {
|
16818
16784
|
var C, I;
|
16819
16785
|
const A = _.sort((D, R) => {
|
16820
|
-
var w,
|
16821
|
-
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);
|
16822
16788
|
});
|
16823
16789
|
return v === "right" && (u.value = A), createVNode(Table, {
|
16824
16790
|
pagination: !1,
|
@@ -16973,7 +16939,7 @@ function _useLayoutHeaderResizeObserver() {
|
|
16973
16939
|
const t = document.querySelector("div.jeecg-layout-header-center");
|
16974
16940
|
t && (e = new ResizeObserver((r) => {
|
16975
16941
|
var i, o;
|
16976
|
-
const a = t.getBoundingClientRect().left, n = (o = (i = r[0].borderBoxSize[0]) == null ? void 0 : i.inlineSize) != null ? o : 0, s = document.querySelector("#kg-
|
16942
|
+
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");
|
16977
16943
|
s && (s.style.left = `${a}px`, s.style.width = `${n}px`);
|
16978
16944
|
}), e.observe(t));
|
16979
16945
|
}), onBeforeUnmount(() => {
|
@@ -17092,7 +17058,7 @@ const KgSearch$1 = "", getProps$j = () => ({
|
|
17092
17058
|
default:
|
17093
17059
|
return !0;
|
17094
17060
|
}
|
17095
|
-
}), R = computed(() => !!(n.isRetrieving.value || n.isRetrievingVarProfileMaster.value || c.value && !!n.isOtherRequesting.value)), w = computed(() => !!n.isRetrieving.value || !!n.isRetrievingVarProfileMaster.value),
|
17061
|
+
}), R = computed(() => !!(n.isRetrieving.value || n.isRetrievingVarProfileMaster.value || c.value && !!n.isOtherRequesting.value)), w = computed(() => !!n.isRetrieving.value || !!n.isRetrievingVarProfileMaster.value), V = computed(() => {
|
17096
17062
|
let F = "kg-search";
|
17097
17063
|
return o.value && (F += " kg-search--visible"), c.value && (F += " kg-search--teleport"), F;
|
17098
17064
|
});
|
@@ -17119,7 +17085,7 @@ const KgSearch$1 = "", getProps$j = () => ({
|
|
17119
17085
|
})) : (KgLogger.debug(`${n.formID} | KgSearch | onSearch() | \u9690\u85CF\u67E5\u8BE2\u6761\u4EF6\u7EC4\u4EF6.`), await s.store.emit(n.formID, "search", F));
|
17120
17086
|
}
|
17121
17087
|
s.store.setSearchFn(n.formID, O);
|
17122
|
-
async function
|
17088
|
+
async function P() {
|
17123
17089
|
_.initFormModel(), o.value ? g.value && g.value.validate().then(async () => {
|
17124
17090
|
await s.store.emit(n.formID, "reset", {});
|
17125
17091
|
}).catch((F) => {
|
@@ -17128,8 +17094,8 @@ const KgSearch$1 = "", getProps$j = () => ({
|
|
17128
17094
|
});
|
17129
17095
|
}) : await s.store.emit(n.formID, "reset", {});
|
17130
17096
|
}
|
17131
|
-
s.store.setResetFn(n.formID,
|
17132
|
-
function
|
17097
|
+
s.store.setResetFn(n.formID, P);
|
17098
|
+
function N() {
|
17133
17099
|
return O({
|
17134
17100
|
isSearchFirstPage: !0
|
17135
17101
|
}), Promise.resolve(!0);
|
@@ -17185,7 +17151,7 @@ const KgSearch$1 = "", getProps$j = () => ({
|
|
17185
17151
|
type: "primary",
|
17186
17152
|
ghost: !m.value,
|
17187
17153
|
disabled: m.value,
|
17188
|
-
onClick:
|
17154
|
+
onClick: P,
|
17189
17155
|
class: "kg-search-btn-reset"
|
17190
17156
|
}, {
|
17191
17157
|
default: () => [createVNode(ReloadOutlined$1, null, null), a.t("kg.reset")]
|
@@ -17198,7 +17164,7 @@ const KgSearch$1 = "", getProps$j = () => ({
|
|
17198
17164
|
kgPrimary: D.value,
|
17199
17165
|
kgDisabled: m.value,
|
17200
17166
|
kgLoading: k.value,
|
17201
|
-
onKgClick:
|
17167
|
+
onKgClick: N
|
17202
17168
|
}, null)]);
|
17203
17169
|
}
|
17204
17170
|
function B() {
|
@@ -17242,7 +17208,7 @@ const KgSearch$1 = "", getProps$j = () => ({
|
|
17242
17208
|
kgMinHeight: b.value,
|
17243
17209
|
kgMaxHeight: d.value,
|
17244
17210
|
kgDisabled: !l.value,
|
17245
|
-
kgClass:
|
17211
|
+
kgClass: V.value,
|
17246
17212
|
"kg-frm_id": n.formID
|
17247
17213
|
}, {
|
17248
17214
|
default: () => [o.value && createVNode("div", {
|
@@ -17250,7 +17216,7 @@ const KgSearch$1 = "", getProps$j = () => ({
|
|
17250
17216
|
}, [createVNode("div", {
|
17251
17217
|
class: "ant-collapse-item ant-collapse-item-active ant-collapse-no-arrow"
|
17252
17218
|
}, [createVNode(Teleport, {
|
17253
|
-
to: "#kg-
|
17219
|
+
to: "#kg-layout-header-teleport",
|
17254
17220
|
disabled: !c.value
|
17255
17221
|
}, {
|
17256
17222
|
default: () => [createVNode("div", {
|
@@ -17657,11 +17623,11 @@ const KgVarConfigModalVarVarVariableCatalog = defineComponent({
|
|
17657
17623
|
}, {
|
17658
17624
|
immediate: !0
|
17659
17625
|
}), watch(() => a.getSelectedVarCatalog, async (O) => {
|
17660
|
-
var
|
17661
|
-
l.value.var_text = (
|
17626
|
+
var P, N;
|
17627
|
+
l.value.var_text = (P = O == null ? void 0 : O.var_text) != null ? P : "", (N = o.value) == null || N.clearValidate();
|
17662
17628
|
});
|
17663
17629
|
async function m(O = !1) {
|
17664
|
-
var
|
17630
|
+
var P, N, M;
|
17665
17631
|
n.value = !0;
|
17666
17632
|
try {
|
17667
17633
|
const {
|
@@ -17671,7 +17637,7 @@ const KgVarConfigModalVarVarVariableCatalog = defineComponent({
|
|
17671
17637
|
pageNo: 1,
|
17672
17638
|
pageSize: 999,
|
17673
17639
|
frm_id: e == null ? void 0 : e.value,
|
17674
|
-
var_nam: (
|
17640
|
+
var_nam: (P = a.getSelectedVar) == null ? void 0 : P.var_nam,
|
17675
17641
|
column: "frm_id,locale_id,cust_lvl",
|
17676
17642
|
order: "asc"
|
17677
17643
|
}
|
@@ -17683,7 +17649,7 @@ const KgVarConfigModalVarVarVariableCatalog = defineComponent({
|
|
17683
17649
|
});
|
17684
17650
|
a.setSelectedVarCatalog(L != null ? L : null), d.value = L != null && L.id ? [L.id] : [];
|
17685
17651
|
} else
|
17686
|
-
a.setSelectedVarCatalog((
|
17652
|
+
a.setSelectedVarCatalog((N = c.value[0]) != null ? N : null), d.value = (M = c.value[0]) != null && M.id ? [c.value[0].id] : [];
|
17687
17653
|
} catch (K) {
|
17688
17654
|
KgLogger.debug(K == null ? void 0 : K.message);
|
17689
17655
|
} finally {
|
@@ -17691,12 +17657,12 @@ const KgVarConfigModalVarVarVariableCatalog = defineComponent({
|
|
17691
17657
|
}
|
17692
17658
|
}
|
17693
17659
|
async function T() {
|
17694
|
-
var O,
|
17660
|
+
var O, P, N;
|
17695
17661
|
try {
|
17696
17662
|
s.value = !0, await ((O = o.value) == null ? void 0 : O.validate());
|
17697
17663
|
const M = new VarVariableCatalog({
|
17698
|
-
...(
|
17699
|
-
var_text: (
|
17664
|
+
...(P = a.getSelectedVarCatalog) != null ? P : {},
|
17665
|
+
var_text: (N = l.value) == null ? void 0 : N.var_text
|
17700
17666
|
});
|
17701
17667
|
M.id ? M.cust_lvl === KG_CUSTOM_LEVEL.L0 ? (M.cust_lvl = KG_CUSTOM_LEVEL.L10, Reflect.deleteProperty(M, "id"), await Add({
|
17702
17668
|
data: M
|
@@ -17725,23 +17691,23 @@ const KgVarConfigModalVarVarVariableCatalog = defineComponent({
|
|
17725
17691
|
}
|
17726
17692
|
function k({
|
17727
17693
|
isAllForm: O,
|
17728
|
-
isAllLanguage:
|
17694
|
+
isAllLanguage: P
|
17729
17695
|
}) {
|
17730
|
-
var
|
17696
|
+
var N, M, K;
|
17731
17697
|
u.value = new VarVariableCatalog({
|
17732
17698
|
id: "",
|
17733
17699
|
cust_lvl: KG_CUSTOM_LEVEL.L10,
|
17734
|
-
grp_nam: (
|
17700
|
+
grp_nam: (N = a.getSelectedVar) == null ? void 0 : N.grp_nam,
|
17735
17701
|
var_nam: (M = a.getSelectedVar) == null ? void 0 : M.var_nam,
|
17736
17702
|
frm_id: O || !(e != null && e.value) ? "ALL" : e == null ? void 0 : e.value,
|
17737
|
-
locale_id:
|
17703
|
+
locale_id: P ? "ALL" : (K = t.locale) == null ? void 0 : K.value,
|
17738
17704
|
var_text: ""
|
17739
17705
|
}), c.value = [...c.value, u.value], a.setSelectedVarCatalog(unref(u)), d.value = [""];
|
17740
17706
|
}
|
17741
17707
|
function A() {
|
17742
|
-
var
|
17708
|
+
var P;
|
17743
17709
|
c.value = without$1(c.value, u.value), u.value = null;
|
17744
|
-
const O = (
|
17710
|
+
const O = (P = c.value[0]) != null ? P : null;
|
17745
17711
|
a.setSelectedVarCatalog(O), d.value = O ? [O.id] : [];
|
17746
17712
|
}
|
17747
17713
|
function C() {
|
@@ -17762,8 +17728,8 @@ const KgVarConfigModalVarVarVariableCatalog = defineComponent({
|
|
17762
17728
|
});
|
17763
17729
|
}
|
17764
17730
|
function I(O) {
|
17765
|
-
var
|
17766
|
-
((
|
17731
|
+
var P;
|
17732
|
+
((P = a.getSelectedVarCatalog) == null ? void 0 : P.id) !== O.id && (unref(u) ? KgUtil.confirm({
|
17767
17733
|
content: t.t("kg.KgVarConfig.discardConfirmMessage"),
|
17768
17734
|
onOk: () => {
|
17769
17735
|
c.value = without$1(c.value, u.value), u.value = null, a.setSelectedVarCatalog(unref(O)), d.value = [O.id];
|
@@ -17793,7 +17759,7 @@ const KgVarConfigModalVarVarVariableCatalog = defineComponent({
|
|
17793
17759
|
})]);
|
17794
17760
|
}
|
17795
17761
|
function w() {
|
17796
|
-
let O,
|
17762
|
+
let O, P;
|
17797
17763
|
return createVNode("div", {
|
17798
17764
|
class: "form"
|
17799
17765
|
}, [createVNode(Form, {
|
@@ -17810,7 +17776,7 @@ const KgVarConfigModalVarVarVariableCatalog = defineComponent({
|
|
17810
17776
|
}, {
|
17811
17777
|
default: () => [createVNode(Textarea, {
|
17812
17778
|
value: l.value.var_text,
|
17813
|
-
"onUpdate:value": (
|
17779
|
+
"onUpdate:value": (N) => l.value.var_text = N,
|
17814
17780
|
disabled: !a.getSelectedVarCatalog
|
17815
17781
|
}, null), createVNode("button", {
|
17816
17782
|
hidden: !0
|
@@ -17828,14 +17794,14 @@ const KgVarConfigModalVarVarVariableCatalog = defineComponent({
|
|
17828
17794
|
disabled: y.value,
|
17829
17795
|
onClick: T,
|
17830
17796
|
type: "primary"
|
17831
|
-
}, _isSlot$1(
|
17832
|
-
default: () => [
|
17797
|
+
}, _isSlot$1(P = t.t("common.save")) ? P : {
|
17798
|
+
default: () => [P]
|
17833
17799
|
})])]);
|
17834
17800
|
}
|
17835
|
-
function
|
17836
|
-
var
|
17837
|
-
let
|
17838
|
-
return O.id || (
|
17801
|
+
function V(O) {
|
17802
|
+
var N;
|
17803
|
+
let P = "";
|
17804
|
+
return O.id || (P += " ant-table-row-create"), O.id === ((N = a.getSelectedVarCatalog) == null ? void 0 : N.id) && (P += " ant-table-row-selected "), P;
|
17839
17805
|
}
|
17840
17806
|
return () => createVNode("div", {
|
17841
17807
|
class: "kg-var-config-modal--var--var-variable-catalog"
|
@@ -17851,7 +17817,7 @@ const KgVarConfigModalVarVarVariableCatalog = defineComponent({
|
|
17851
17817
|
rowKey: "id",
|
17852
17818
|
dataSource: c.value,
|
17853
17819
|
loading: n.value,
|
17854
|
-
rowClassName:
|
17820
|
+
rowClassName: V,
|
17855
17821
|
rowSelection: b.value,
|
17856
17822
|
customRow: (O) => ({
|
17857
17823
|
onClick: () => I(O)
|
@@ -18210,8 +18176,8 @@ const KgWarehouse$1 = "", getProps$a = () => ({
|
|
18210
18176
|
var A;
|
18211
18177
|
const k = (A = s.value) == null ? void 0 : A.toUpperCase();
|
18212
18178
|
return c.value.filter((C) => {
|
18213
|
-
var I, D, R, w,
|
18214
|
-
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 = (
|
18179
|
+
var I, D, R, w, V, O;
|
18180
|
+
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));
|
18215
18181
|
});
|
18216
18182
|
}), d = computed(() => {
|
18217
18183
|
var k;
|
@@ -18511,24 +18477,24 @@ class KgUtil {
|
|
18511
18477
|
let R = r ? this.parseParamFromDayJS(g, D, r) : D.format("YYYY-MM-DD HH:mm:ss");
|
18512
18478
|
switch (y) {
|
18513
18479
|
case KG_DYNAMIC_QUERY_OPERATOR.NE: {
|
18514
|
-
let w = R,
|
18480
|
+
let w = R, V = "";
|
18515
18481
|
switch (!0) {
|
18516
18482
|
case /\d\d-\d\d-\d\d \d\d:\d\d:\d\d/.test(w): {
|
18517
|
-
|
18483
|
+
V = D.add(1, "second").format("YYYY-MM-DD HH:mm:ss");
|
18518
18484
|
break;
|
18519
18485
|
}
|
18520
18486
|
case /\d\d-\d\d-\d\d/.test(w): {
|
18521
|
-
w = `${w} 00:00:00`,
|
18487
|
+
w = `${w} 00:00:00`, V = D.add(1, "day").format("YYYY-MM-DD 00:00:00");
|
18522
18488
|
break;
|
18523
18489
|
}
|
18524
18490
|
case /\d\d:\d\d:\d\d/.test(w): {
|
18525
|
-
w = D.format("1900-01-01 HH:mm:ss"),
|
18491
|
+
w = D.format("1900-01-01 HH:mm:ss"), V = D.add(1, "second").format("1900-01-01 HH:mm:ss");
|
18526
18492
|
break;
|
18527
18493
|
}
|
18528
18494
|
default:
|
18529
18495
|
throw new Error("KgUtil.parseParamsForDynamicQuery() | \u65E5\u671F\u683C\u5F0F\u6709\u8BEF.");
|
18530
18496
|
}
|
18531
|
-
R = ` AND (${m} < '${w}' OR ${m} >= '${
|
18497
|
+
R = ` AND (${m} < '${w}' OR ${m} >= '${V}')`;
|
18532
18498
|
break;
|
18533
18499
|
}
|
18534
18500
|
case KG_DYNAMIC_QUERY_OPERATOR.LT: {
|
@@ -18551,45 +18517,45 @@ class KgUtil {
|
|
18551
18517
|
break;
|
18552
18518
|
}
|
18553
18519
|
case KG_DYNAMIC_QUERY_OPERATOR.LTE: {
|
18554
|
-
let w = R,
|
18520
|
+
let w = R, V = "";
|
18555
18521
|
switch (!0) {
|
18556
18522
|
case /\d\d-\d\d-\d\d \d\d:\d\d:\d\d/.test(w): {
|
18557
|
-
|
18523
|
+
V = D.add(1, "second").format("YYYY-MM-DD HH:mm:ss");
|
18558
18524
|
break;
|
18559
18525
|
}
|
18560
18526
|
case /\d\d-\d\d-\d\d/.test(w): {
|
18561
|
-
|
18527
|
+
V = D.add(1, "day").format("YYYY-MM-DD 00:00:00");
|
18562
18528
|
break;
|
18563
18529
|
}
|
18564
18530
|
case /\d\d:\d\d:\d\d/.test(w): {
|
18565
|
-
|
18531
|
+
V = D.add(1, "second").format("1900-01-01 HH:mm:ss");
|
18566
18532
|
break;
|
18567
18533
|
}
|
18568
18534
|
default:
|
18569
18535
|
throw new Error("KgUtil.parseParamsForDynamicQuery() | \u65E5\u671F\u683C\u5F0F\u6709\u8BEF.");
|
18570
18536
|
}
|
18571
|
-
R = ` AND (${m} < '${
|
18537
|
+
R = ` AND (${m} < '${V}')`;
|
18572
18538
|
break;
|
18573
18539
|
}
|
18574
18540
|
case KG_DYNAMIC_QUERY_OPERATOR.GT: {
|
18575
|
-
let w = R,
|
18541
|
+
let w = R, V = "";
|
18576
18542
|
switch (!0) {
|
18577
18543
|
case /\d\d-\d\d-\d\d \d\d:\d\d:\d\d/.test(w): {
|
18578
|
-
|
18544
|
+
V = D.add(1, "second").format("YYYY-MM-DD HH:mm:ss");
|
18579
18545
|
break;
|
18580
18546
|
}
|
18581
18547
|
case /\d\d-\d\d-\d\d/.test(w): {
|
18582
|
-
|
18548
|
+
V = D.add(1, "day").format("YYYY-MM-DD 00:00:00");
|
18583
18549
|
break;
|
18584
18550
|
}
|
18585
18551
|
case /\d\d:\d\d:\d\d/.test(w): {
|
18586
|
-
|
18552
|
+
V = D.add(1, "second").format("1900-01-01 HH:mm:ss");
|
18587
18553
|
break;
|
18588
18554
|
}
|
18589
18555
|
default:
|
18590
18556
|
throw new Error("KgUtil.parseParamsForDynamicQuery() | \u65E5\u671F\u683C\u5F0F\u6709\u8BEF.");
|
18591
18557
|
}
|
18592
|
-
R = ` AND (${m} >= '${
|
18558
|
+
R = ` AND (${m} >= '${V}')`;
|
18593
18559
|
break;
|
18594
18560
|
}
|
18595
18561
|
case KG_DYNAMIC_QUERY_OPERATOR.GTE: {
|
@@ -18613,24 +18579,24 @@ class KgUtil {
|
|
18613
18579
|
}
|
18614
18580
|
case KG_DYNAMIC_QUERY_OPERATOR.EQ:
|
18615
18581
|
default: {
|
18616
|
-
let w = R,
|
18582
|
+
let w = R, V = "";
|
18617
18583
|
switch (!0) {
|
18618
18584
|
case /\d\d-\d\d-\d\d \d\d:\d\d:\d\d/.test(w): {
|
18619
|
-
|
18585
|
+
V = D.add(1, "second").format("YYYY-MM-DD HH:mm:ss");
|
18620
18586
|
break;
|
18621
18587
|
}
|
18622
18588
|
case /\d\d-\d\d-\d\d/.test(w): {
|
18623
|
-
w = `${w} 00:00:00`,
|
18589
|
+
w = `${w} 00:00:00`, V = D.add(1, "day").format("YYYY-MM-DD 00:00:00");
|
18624
18590
|
break;
|
18625
18591
|
}
|
18626
18592
|
case /\d\d:\d\d:\d\d/.test(w): {
|
18627
|
-
w = `1900-01-01 ${w}`,
|
18593
|
+
w = `1900-01-01 ${w}`, V = D.add(1, "second").format("1900-01-01 HH:mm:ss");
|
18628
18594
|
break;
|
18629
18595
|
}
|
18630
18596
|
default:
|
18631
18597
|
throw new Error("KgUtil.parseParamsForDynamicQuery() | \u65E5\u671F\u683C\u5F0F\u6709\u8BEF.");
|
18632
18598
|
}
|
18633
|
-
R = ` AND (${m} >= '${w}' AND ${m} < '${
|
18599
|
+
R = ` AND (${m} >= '${w}' AND ${m} < '${V}')`;
|
18634
18600
|
break;
|
18635
18601
|
}
|
18636
18602
|
}
|
@@ -18639,26 +18605,26 @@ class KgUtil {
|
|
18639
18605
|
}
|
18640
18606
|
case (!!n && isArray$1(_) && _.length === 2 && n.isDayjs(_[0]) && n.isDayjs(_[1])): {
|
18641
18607
|
const D = _[0], R = _[1];
|
18642
|
-
let w = "",
|
18608
|
+
let w = "", V = this.parseParamFromDayJS(g, D, r), O = "";
|
18643
18609
|
switch (!0) {
|
18644
|
-
case !
|
18610
|
+
case !V: {
|
18645
18611
|
O = this.parseParamFromDayJS(g, R, r, !0);
|
18646
18612
|
break;
|
18647
18613
|
}
|
18648
|
-
case /\d\d-\d\d-\d\d \d\d:\d\d:\d\d/.test(
|
18614
|
+
case /\d\d-\d\d-\d\d \d\d:\d\d:\d\d/.test(V): {
|
18649
18615
|
R.isValid() && (O = R.add(1, "second").format("YYYY-MM-DD HH:mm:ss"));
|
18650
18616
|
break;
|
18651
18617
|
}
|
18652
|
-
case /\d\d-\d\d-\d\d/.test(
|
18653
|
-
|
18618
|
+
case /\d\d-\d\d-\d\d/.test(V): {
|
18619
|
+
V = `${V} 00:00:00`, R.isValid() && (O = R.add(1, "day").format("YYYY-MM-DD 00:00:00"));
|
18654
18620
|
break;
|
18655
18621
|
}
|
18656
|
-
case /\d\d:\d\d:\d\d/.test(
|
18657
|
-
|
18622
|
+
case /\d\d:\d\d:\d\d/.test(V): {
|
18623
|
+
V = `1900-01-01 ${V}`, R.isValid() && (O = R.add(1, "second").format("1900-01-01 HH:mm:ss"));
|
18658
18624
|
break;
|
18659
18625
|
}
|
18660
18626
|
}
|
18661
|
-
|
18627
|
+
V && (w += ` AND (${m} >= N'${V}')`), O && (w += ` AND (${m} < N'${O}')`), u[g] = w;
|
18662
18628
|
break;
|
18663
18629
|
}
|
18664
18630
|
case Array.isArray(_): {
|
@@ -19887,7 +19853,7 @@ const index$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.definePrope
|
|
19887
19853
|
{
|
19888
19854
|
dis_mult_select_flg: 0,
|
19889
19855
|
dis_no_select_flg: 0,
|
19890
|
-
|
19856
|
+
available_flag: 1,
|
19891
19857
|
frm_id: "",
|
19892
19858
|
id: `${Date.now()}`,
|
19893
19859
|
permission_code: "",
|
@@ -19951,24 +19917,24 @@ const index$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.definePrope
|
|
19951
19917
|
a.value = O != null ? O : [];
|
19952
19918
|
}
|
19953
19919
|
function b(O) {
|
19954
|
-
n.value.frmId = O != null ? O : "", n.value.varButtons.forEach((
|
19920
|
+
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);
|
19955
19921
|
}
|
19956
19922
|
function E(O) {
|
19957
|
-
const { properties:
|
19958
|
-
Object.entries(
|
19959
|
-
|
19923
|
+
const { properties: P = {} } = O;
|
19924
|
+
Object.entries(P).forEach(([N, M]) => {
|
19925
|
+
N in n.value.sysPermission && n.value.sysPermission[N] !== M && (n.value.sysPermission[N] = M);
|
19960
19926
|
});
|
19961
19927
|
}
|
19962
19928
|
function g(O) {
|
19963
|
-
const { frmId:
|
19964
|
-
n.value.varDda.frm_id =
|
19929
|
+
const { frmId: P, frmNam: N } = O;
|
19930
|
+
n.value.varDda.frm_id = P, n.value.varDda.frm_nam = N;
|
19965
19931
|
}
|
19966
19932
|
function v(O) {
|
19967
19933
|
n.value.varButtons = [
|
19968
19934
|
...toRaw(n.value.varButtons),
|
19969
19935
|
{
|
19970
19936
|
...O,
|
19971
|
-
|
19937
|
+
available_flag: 1,
|
19972
19938
|
frm_id: l.value,
|
19973
19939
|
id: `${Date.now()}`,
|
19974
19940
|
show_success_message_flg: 1
|
@@ -19976,11 +19942,11 @@ const index$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.definePrope
|
|
19976
19942
|
], R(), w();
|
19977
19943
|
}
|
19978
19944
|
function _(O) {
|
19979
|
-
const { varNam:
|
19945
|
+
const { varNam: P, properties: N = {} } = O, M = n.value.varButtons.find((B) => B.var_nam === P);
|
19980
19946
|
if (!M)
|
19981
19947
|
return;
|
19982
19948
|
let K = !1;
|
19983
|
-
if (Object.entries(
|
19949
|
+
if (Object.entries(N).forEach(([B, U]) => {
|
19984
19950
|
B in M && M[B] !== U && (M[B] = U, K = !0);
|
19985
19951
|
}), !K)
|
19986
19952
|
return;
|
@@ -19988,17 +19954,17 @@ const index$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.definePrope
|
|
19988
19954
|
L.splice(n.value.varButtons.indexOf(M), 1, { ...M }), n.value.varButtons = toRaw(L);
|
19989
19955
|
}
|
19990
19956
|
function y(O) {
|
19991
|
-
const { varNam:
|
19992
|
-
if (!
|
19957
|
+
const { varNam: P } = O, N = n.value.varButtons.find((K) => K.var_nam === P);
|
19958
|
+
if (!N)
|
19993
19959
|
return;
|
19994
19960
|
const M = [...n.value.varButtons];
|
19995
|
-
M.splice(n.value.varButtons.indexOf(
|
19961
|
+
M.splice(n.value.varButtons.indexOf(N), 1), n.value.varButtons = toRaw(M), R();
|
19996
19962
|
}
|
19997
19963
|
function m(O) {
|
19998
|
-
const { varNam:
|
19999
|
-
if (!!
|
20000
|
-
if (n.value.varVariableCatalogs.find((M) => M.var_nam ===
|
20001
|
-
T({ varNam:
|
19964
|
+
const { varNam: P, varText: N } = O;
|
19965
|
+
if (!!P) {
|
19966
|
+
if (n.value.varVariableCatalogs.find((M) => M.var_nam === P)) {
|
19967
|
+
T({ varNam: P, varText: N });
|
20002
19968
|
return;
|
20003
19969
|
}
|
20004
19970
|
n.value.varVariableCatalogs = [
|
@@ -20008,36 +19974,36 @@ const index$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.definePrope
|
|
20008
19974
|
frm_id: l.value,
|
20009
19975
|
grp_nam: "WMS",
|
20010
19976
|
locale_id: e.locale.value,
|
20011
|
-
var_nam:
|
20012
|
-
var_text:
|
19977
|
+
var_nam: P,
|
19978
|
+
var_text: N || P
|
20013
19979
|
}
|
20014
19980
|
], R();
|
20015
19981
|
}
|
20016
19982
|
}
|
20017
19983
|
function T(O) {
|
20018
|
-
const { varNam:
|
20019
|
-
if (!
|
19984
|
+
const { varNam: P, varText: N } = O;
|
19985
|
+
if (!P)
|
20020
19986
|
return;
|
20021
|
-
const M = n.value.varVariableCatalogs.find((K) => K.var_nam ===
|
20022
|
-
!M || (M.var_text =
|
19987
|
+
const M = n.value.varVariableCatalogs.find((K) => K.var_nam === P);
|
19988
|
+
!M || (M.var_text = N || P);
|
20023
19989
|
}
|
20024
19990
|
function k(O) {
|
20025
|
-
n.value.varProfileDetails = O.map((
|
20026
|
-
...
|
19991
|
+
n.value.varProfileDetails = O.map((P) => ({
|
19992
|
+
...P,
|
20027
19993
|
frm_id: l.value,
|
20028
19994
|
grp_nam: "WMS"
|
20029
19995
|
}));
|
20030
19996
|
}
|
20031
19997
|
function A(O) {
|
20032
|
-
n.value.varGridDetails = O.map((
|
20033
|
-
...
|
19998
|
+
n.value.varGridDetails = O.map((P) => ({
|
19999
|
+
...P,
|
20034
20000
|
frm_id: l.value,
|
20035
20001
|
grp_nam: "WMS"
|
20036
20002
|
}));
|
20037
20003
|
}
|
20038
20004
|
function C(O) {
|
20039
|
-
n.value.varSubmitFields = O.map((
|
20040
|
-
...
|
20005
|
+
n.value.varSubmitFields = O.map((P) => ({
|
20006
|
+
...P,
|
20041
20007
|
cpy_ena_flg: 1,
|
20042
20008
|
cpy_flg: 1,
|
20043
20009
|
cpy_vis_flg: 1,
|
@@ -20052,8 +20018,8 @@ const index$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.definePrope
|
|
20052
20018
|
}));
|
20053
20019
|
}
|
20054
20020
|
function I(O) {
|
20055
|
-
n.value.varVariableConfigs = O.map((
|
20056
|
-
...
|
20021
|
+
n.value.varVariableConfigs = O.map((P) => ({
|
20022
|
+
...P,
|
20057
20023
|
ctrl_typ: KG_FORM_ITEM_TYPE.INPUT,
|
20058
20024
|
cust_lvl: KG_CUSTOM_LEVEL.L0,
|
20059
20025
|
frm_id: l.value,
|
@@ -20062,34 +20028,30 @@ const index$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.definePrope
|
|
20062
20028
|
}));
|
20063
20029
|
}
|
20064
20030
|
function D(O) {
|
20065
|
-
var
|
20066
|
-
return O && (M = (
|
20031
|
+
var P, N, M;
|
20032
|
+
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 : "";
|
20067
20033
|
}
|
20068
20034
|
function R() {
|
20069
20035
|
const O = uniq(
|
20070
20036
|
compact([
|
20071
|
-
...n.value.varButtons.map((
|
20072
|
-
...n.value.varGridDetails.map((
|
20037
|
+
...n.value.varButtons.map((P) => P.var_nam),
|
20038
|
+
...n.value.varGridDetails.map((P) => P.var_nam),
|
20073
20039
|
n.value.varGridMaster.grd_var_nam,
|
20074
|
-
...n.value.varProfileDetails.map((
|
20040
|
+
...n.value.varProfileDetails.map((P) => P.var_nam),
|
20075
20041
|
n.value.varProfileMaster.prf_var_nam,
|
20076
|
-
...n.value.varSubmitFields.map((
|
20042
|
+
...n.value.varSubmitFields.map((P) => P.var_nam)
|
20077
20043
|
])
|
20078
20044
|
);
|
20079
|
-
n.value.varContexts = O.map(
|
20080
|
-
(V) => new VarContext({ frm_id: l.value, var_nam: V, grp_nam: "WMS" })
|
20081
|
-
), n.value.varVariableCatalogs = toRaw(
|
20082
|
-
n.value.varVariableCatalogs.filter((V) => O.includes(V.var_nam))
|
20083
|
-
);
|
20045
|
+
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)));
|
20084
20046
|
}
|
20085
20047
|
function w() {
|
20086
20048
|
var O;
|
20087
|
-
(O = n.value.varButtons) == null || O.forEach((
|
20088
|
-
var
|
20089
|
-
|
20049
|
+
(O = n.value.varButtons) == null || O.forEach((P) => {
|
20050
|
+
var N, M;
|
20051
|
+
P.typDsc = (M = (N = t.value.find((K) => K.codval === P.typ)) == null ? void 0 : N.shortDsc) != null ? M : "";
|
20090
20052
|
});
|
20091
20053
|
}
|
20092
|
-
async function
|
20054
|
+
async function V() {
|
20093
20055
|
const { records: O } = await List$3({
|
20094
20056
|
params: {
|
20095
20057
|
localeId: e.locale.value,
|
@@ -20100,7 +20062,7 @@ const index$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.definePrope
|
|
20100
20062
|
});
|
20101
20063
|
t.value = O != null ? O : [], w();
|
20102
20064
|
}
|
20103
|
-
return
|
20065
|
+
return V(), {
|
20104
20066
|
isLoading: r,
|
20105
20067
|
resultSetMetadataColumns: a,
|
20106
20068
|
createVarDdaQuery: n,
|