@kengic/vue 0.19.2-beta.8 → 0.19.2-beta.9
Sign up to get free protection for your applications and to get access to all the features.
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,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,
|
@@ -16957,7 +16939,7 @@ function _useLayoutHeaderResizeObserver() {
|
|
16957
16939
|
const t = document.querySelector("div.jeecg-layout-header-center");
|
16958
16940
|
t && (e = new ResizeObserver((r) => {
|
16959
16941
|
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-
|
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");
|
16961
16943
|
s && (s.style.left = `${a}px`, s.style.width = `${n}px`);
|
16962
16944
|
}), e.observe(t));
|
16963
16945
|
}), onBeforeUnmount(() => {
|
@@ -17076,7 +17058,7 @@ const KgSearch$1 = "", getProps$j = () => ({
|
|
17076
17058
|
default:
|
17077
17059
|
return !0;
|
17078
17060
|
}
|
17079
|
-
}), 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(() => {
|
17080
17062
|
let F = "kg-search";
|
17081
17063
|
return o.value && (F += " kg-search--visible"), c.value && (F += " kg-search--teleport"), F;
|
17082
17064
|
});
|
@@ -17103,7 +17085,7 @@ const KgSearch$1 = "", getProps$j = () => ({
|
|
17103
17085
|
})) : (KgLogger.debug(`${n.formID} | KgSearch | onSearch() | \u9690\u85CF\u67E5\u8BE2\u6761\u4EF6\u7EC4\u4EF6.`), await s.store.emit(n.formID, "search", F));
|
17104
17086
|
}
|
17105
17087
|
s.store.setSearchFn(n.formID, O);
|
17106
|
-
async function
|
17088
|
+
async function P() {
|
17107
17089
|
_.initFormModel(), o.value ? g.value && g.value.validate().then(async () => {
|
17108
17090
|
await s.store.emit(n.formID, "reset", {});
|
17109
17091
|
}).catch((F) => {
|
@@ -17112,7 +17094,7 @@ const KgSearch$1 = "", getProps$j = () => ({
|
|
17112
17094
|
});
|
17113
17095
|
}) : await s.store.emit(n.formID, "reset", {});
|
17114
17096
|
}
|
17115
|
-
s.store.setResetFn(n.formID,
|
17097
|
+
s.store.setResetFn(n.formID, P);
|
17116
17098
|
function N() {
|
17117
17099
|
return O({
|
17118
17100
|
isSearchFirstPage: !0
|
@@ -17169,7 +17151,7 @@ const KgSearch$1 = "", getProps$j = () => ({
|
|
17169
17151
|
type: "primary",
|
17170
17152
|
ghost: !m.value,
|
17171
17153
|
disabled: m.value,
|
17172
|
-
onClick:
|
17154
|
+
onClick: P,
|
17173
17155
|
class: "kg-search-btn-reset"
|
17174
17156
|
}, {
|
17175
17157
|
default: () => [createVNode(ReloadOutlined$1, null, null), a.t("kg.reset")]
|
@@ -17226,7 +17208,7 @@ const KgSearch$1 = "", getProps$j = () => ({
|
|
17226
17208
|
kgMinHeight: b.value,
|
17227
17209
|
kgMaxHeight: d.value,
|
17228
17210
|
kgDisabled: !l.value,
|
17229
|
-
kgClass:
|
17211
|
+
kgClass: V.value,
|
17230
17212
|
"kg-frm_id": n.formID
|
17231
17213
|
}, {
|
17232
17214
|
default: () => [o.value && createVNode("div", {
|
@@ -17234,7 +17216,7 @@ const KgSearch$1 = "", getProps$j = () => ({
|
|
17234
17216
|
}, [createVNode("div", {
|
17235
17217
|
class: "ant-collapse-item ant-collapse-item-active ant-collapse-no-arrow"
|
17236
17218
|
}, [createVNode(Teleport, {
|
17237
|
-
to: "#kg-
|
17219
|
+
to: "#kg-layout-header-teleport",
|
17238
17220
|
disabled: !c.value
|
17239
17221
|
}, {
|
17240
17222
|
default: () => [createVNode("div", {
|
@@ -17641,11 +17623,11 @@ const KgVarConfigModalVarVarVariableCatalog = defineComponent({
|
|
17641
17623
|
}, {
|
17642
17624
|
immediate: !0
|
17643
17625
|
}), watch(() => a.getSelectedVarCatalog, async (O) => {
|
17644
|
-
var
|
17645
|
-
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();
|
17646
17628
|
});
|
17647
17629
|
async function m(O = !1) {
|
17648
|
-
var
|
17630
|
+
var P, N, M;
|
17649
17631
|
n.value = !0;
|
17650
17632
|
try {
|
17651
17633
|
const {
|
@@ -17655,7 +17637,7 @@ const KgVarConfigModalVarVarVariableCatalog = defineComponent({
|
|
17655
17637
|
pageNo: 1,
|
17656
17638
|
pageSize: 999,
|
17657
17639
|
frm_id: e == null ? void 0 : e.value,
|
17658
|
-
var_nam: (
|
17640
|
+
var_nam: (P = a.getSelectedVar) == null ? void 0 : P.var_nam,
|
17659
17641
|
column: "frm_id,locale_id,cust_lvl",
|
17660
17642
|
order: "asc"
|
17661
17643
|
}
|
@@ -17675,11 +17657,11 @@ const KgVarConfigModalVarVarVariableCatalog = defineComponent({
|
|
17675
17657
|
}
|
17676
17658
|
}
|
17677
17659
|
async function T() {
|
17678
|
-
var O,
|
17660
|
+
var O, P, N;
|
17679
17661
|
try {
|
17680
17662
|
s.value = !0, await ((O = o.value) == null ? void 0 : O.validate());
|
17681
17663
|
const M = new VarVariableCatalog({
|
17682
|
-
...(
|
17664
|
+
...(P = a.getSelectedVarCatalog) != null ? P : {},
|
17683
17665
|
var_text: (N = l.value) == null ? void 0 : N.var_text
|
17684
17666
|
});
|
17685
17667
|
M.id ? M.cust_lvl === KG_CUSTOM_LEVEL.L0 ? (M.cust_lvl = KG_CUSTOM_LEVEL.L10, Reflect.deleteProperty(M, "id"), await Add({
|
@@ -17709,7 +17691,7 @@ const KgVarConfigModalVarVarVariableCatalog = defineComponent({
|
|
17709
17691
|
}
|
17710
17692
|
function k({
|
17711
17693
|
isAllForm: O,
|
17712
|
-
isAllLanguage:
|
17694
|
+
isAllLanguage: P
|
17713
17695
|
}) {
|
17714
17696
|
var N, M, K;
|
17715
17697
|
u.value = new VarVariableCatalog({
|
@@ -17718,14 +17700,14 @@ const KgVarConfigModalVarVarVariableCatalog = defineComponent({
|
|
17718
17700
|
grp_nam: (N = a.getSelectedVar) == null ? void 0 : N.grp_nam,
|
17719
17701
|
var_nam: (M = a.getSelectedVar) == null ? void 0 : M.var_nam,
|
17720
17702
|
frm_id: O || !(e != null && e.value) ? "ALL" : e == null ? void 0 : e.value,
|
17721
|
-
locale_id:
|
17703
|
+
locale_id: P ? "ALL" : (K = t.locale) == null ? void 0 : K.value,
|
17722
17704
|
var_text: ""
|
17723
17705
|
}), c.value = [...c.value, u.value], a.setSelectedVarCatalog(unref(u)), d.value = [""];
|
17724
17706
|
}
|
17725
17707
|
function A() {
|
17726
|
-
var
|
17708
|
+
var P;
|
17727
17709
|
c.value = without$1(c.value, u.value), u.value = null;
|
17728
|
-
const O = (
|
17710
|
+
const O = (P = c.value[0]) != null ? P : null;
|
17729
17711
|
a.setSelectedVarCatalog(O), d.value = O ? [O.id] : [];
|
17730
17712
|
}
|
17731
17713
|
function C() {
|
@@ -17746,8 +17728,8 @@ const KgVarConfigModalVarVarVariableCatalog = defineComponent({
|
|
17746
17728
|
});
|
17747
17729
|
}
|
17748
17730
|
function I(O) {
|
17749
|
-
var
|
17750
|
-
((
|
17731
|
+
var P;
|
17732
|
+
((P = a.getSelectedVarCatalog) == null ? void 0 : P.id) !== O.id && (unref(u) ? KgUtil.confirm({
|
17751
17733
|
content: t.t("kg.KgVarConfig.discardConfirmMessage"),
|
17752
17734
|
onOk: () => {
|
17753
17735
|
c.value = without$1(c.value, u.value), u.value = null, a.setSelectedVarCatalog(unref(O)), d.value = [O.id];
|
@@ -17777,7 +17759,7 @@ const KgVarConfigModalVarVarVariableCatalog = defineComponent({
|
|
17777
17759
|
})]);
|
17778
17760
|
}
|
17779
17761
|
function w() {
|
17780
|
-
let O,
|
17762
|
+
let O, P;
|
17781
17763
|
return createVNode("div", {
|
17782
17764
|
class: "form"
|
17783
17765
|
}, [createVNode(Form, {
|
@@ -17812,14 +17794,14 @@ const KgVarConfigModalVarVarVariableCatalog = defineComponent({
|
|
17812
17794
|
disabled: y.value,
|
17813
17795
|
onClick: T,
|
17814
17796
|
type: "primary"
|
17815
|
-
}, _isSlot$1(
|
17816
|
-
default: () => [
|
17797
|
+
}, _isSlot$1(P = t.t("common.save")) ? P : {
|
17798
|
+
default: () => [P]
|
17817
17799
|
})])]);
|
17818
17800
|
}
|
17819
|
-
function
|
17801
|
+
function V(O) {
|
17820
17802
|
var N;
|
17821
|
-
let
|
17822
|
-
return O.id || (
|
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;
|
17823
17805
|
}
|
17824
17806
|
return () => createVNode("div", {
|
17825
17807
|
class: "kg-var-config-modal--var--var-variable-catalog"
|
@@ -17835,7 +17817,7 @@ const KgVarConfigModalVarVarVariableCatalog = defineComponent({
|
|
17835
17817
|
rowKey: "id",
|
17836
17818
|
dataSource: c.value,
|
17837
17819
|
loading: n.value,
|
17838
|
-
rowClassName:
|
17820
|
+
rowClassName: V,
|
17839
17821
|
rowSelection: b.value,
|
17840
17822
|
customRow: (O) => ({
|
17841
17823
|
onClick: () => I(O)
|
@@ -18194,8 +18176,8 @@ const KgWarehouse$1 = "", getProps$a = () => ({
|
|
18194
18176
|
var A;
|
18195
18177
|
const k = (A = s.value) == null ? void 0 : A.toUpperCase();
|
18196
18178
|
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 = (
|
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));
|
18199
18181
|
});
|
18200
18182
|
}), d = computed(() => {
|
18201
18183
|
var k;
|
@@ -18495,24 +18477,24 @@ class KgUtil {
|
|
18495
18477
|
let R = r ? this.parseParamFromDayJS(g, D, r) : D.format("YYYY-MM-DD HH:mm:ss");
|
18496
18478
|
switch (y) {
|
18497
18479
|
case KG_DYNAMIC_QUERY_OPERATOR.NE: {
|
18498
|
-
let w = R,
|
18480
|
+
let w = R, V = "";
|
18499
18481
|
switch (!0) {
|
18500
18482
|
case /\d\d-\d\d-\d\d \d\d:\d\d:\d\d/.test(w): {
|
18501
|
-
|
18483
|
+
V = D.add(1, "second").format("YYYY-MM-DD HH:mm:ss");
|
18502
18484
|
break;
|
18503
18485
|
}
|
18504
18486
|
case /\d\d-\d\d-\d\d/.test(w): {
|
18505
|
-
w = `${w} 00:00:00`,
|
18487
|
+
w = `${w} 00:00:00`, V = D.add(1, "day").format("YYYY-MM-DD 00:00:00");
|
18506
18488
|
break;
|
18507
18489
|
}
|
18508
18490
|
case /\d\d:\d\d:\d\d/.test(w): {
|
18509
|
-
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");
|
18510
18492
|
break;
|
18511
18493
|
}
|
18512
18494
|
default:
|
18513
18495
|
throw new Error("KgUtil.parseParamsForDynamicQuery() | \u65E5\u671F\u683C\u5F0F\u6709\u8BEF.");
|
18514
18496
|
}
|
18515
|
-
R = ` AND (${m} < '${w}' OR ${m} >= '${
|
18497
|
+
R = ` AND (${m} < '${w}' OR ${m} >= '${V}')`;
|
18516
18498
|
break;
|
18517
18499
|
}
|
18518
18500
|
case KG_DYNAMIC_QUERY_OPERATOR.LT: {
|
@@ -18535,45 +18517,45 @@ class KgUtil {
|
|
18535
18517
|
break;
|
18536
18518
|
}
|
18537
18519
|
case KG_DYNAMIC_QUERY_OPERATOR.LTE: {
|
18538
|
-
let w = R,
|
18520
|
+
let w = R, V = "";
|
18539
18521
|
switch (!0) {
|
18540
18522
|
case /\d\d-\d\d-\d\d \d\d:\d\d:\d\d/.test(w): {
|
18541
|
-
|
18523
|
+
V = D.add(1, "second").format("YYYY-MM-DD HH:mm:ss");
|
18542
18524
|
break;
|
18543
18525
|
}
|
18544
18526
|
case /\d\d-\d\d-\d\d/.test(w): {
|
18545
|
-
|
18527
|
+
V = D.add(1, "day").format("YYYY-MM-DD 00:00:00");
|
18546
18528
|
break;
|
18547
18529
|
}
|
18548
18530
|
case /\d\d:\d\d:\d\d/.test(w): {
|
18549
|
-
|
18531
|
+
V = D.add(1, "second").format("1900-01-01 HH:mm:ss");
|
18550
18532
|
break;
|
18551
18533
|
}
|
18552
18534
|
default:
|
18553
18535
|
throw new Error("KgUtil.parseParamsForDynamicQuery() | \u65E5\u671F\u683C\u5F0F\u6709\u8BEF.");
|
18554
18536
|
}
|
18555
|
-
R = ` AND (${m} < '${
|
18537
|
+
R = ` AND (${m} < '${V}')`;
|
18556
18538
|
break;
|
18557
18539
|
}
|
18558
18540
|
case KG_DYNAMIC_QUERY_OPERATOR.GT: {
|
18559
|
-
let w = R,
|
18541
|
+
let w = R, V = "";
|
18560
18542
|
switch (!0) {
|
18561
18543
|
case /\d\d-\d\d-\d\d \d\d:\d\d:\d\d/.test(w): {
|
18562
|
-
|
18544
|
+
V = D.add(1, "second").format("YYYY-MM-DD HH:mm:ss");
|
18563
18545
|
break;
|
18564
18546
|
}
|
18565
18547
|
case /\d\d-\d\d-\d\d/.test(w): {
|
18566
|
-
|
18548
|
+
V = D.add(1, "day").format("YYYY-MM-DD 00:00:00");
|
18567
18549
|
break;
|
18568
18550
|
}
|
18569
18551
|
case /\d\d:\d\d:\d\d/.test(w): {
|
18570
|
-
|
18552
|
+
V = D.add(1, "second").format("1900-01-01 HH:mm:ss");
|
18571
18553
|
break;
|
18572
18554
|
}
|
18573
18555
|
default:
|
18574
18556
|
throw new Error("KgUtil.parseParamsForDynamicQuery() | \u65E5\u671F\u683C\u5F0F\u6709\u8BEF.");
|
18575
18557
|
}
|
18576
|
-
R = ` AND (${m} >= '${
|
18558
|
+
R = ` AND (${m} >= '${V}')`;
|
18577
18559
|
break;
|
18578
18560
|
}
|
18579
18561
|
case KG_DYNAMIC_QUERY_OPERATOR.GTE: {
|
@@ -18597,24 +18579,24 @@ class KgUtil {
|
|
18597
18579
|
}
|
18598
18580
|
case KG_DYNAMIC_QUERY_OPERATOR.EQ:
|
18599
18581
|
default: {
|
18600
|
-
let w = R,
|
18582
|
+
let w = R, V = "";
|
18601
18583
|
switch (!0) {
|
18602
18584
|
case /\d\d-\d\d-\d\d \d\d:\d\d:\d\d/.test(w): {
|
18603
|
-
|
18585
|
+
V = D.add(1, "second").format("YYYY-MM-DD HH:mm:ss");
|
18604
18586
|
break;
|
18605
18587
|
}
|
18606
18588
|
case /\d\d-\d\d-\d\d/.test(w): {
|
18607
|
-
w = `${w} 00:00:00`,
|
18589
|
+
w = `${w} 00:00:00`, V = D.add(1, "day").format("YYYY-MM-DD 00:00:00");
|
18608
18590
|
break;
|
18609
18591
|
}
|
18610
18592
|
case /\d\d:\d\d:\d\d/.test(w): {
|
18611
|
-
w = `1900-01-01 ${w}`,
|
18593
|
+
w = `1900-01-01 ${w}`, V = D.add(1, "second").format("1900-01-01 HH:mm:ss");
|
18612
18594
|
break;
|
18613
18595
|
}
|
18614
18596
|
default:
|
18615
18597
|
throw new Error("KgUtil.parseParamsForDynamicQuery() | \u65E5\u671F\u683C\u5F0F\u6709\u8BEF.");
|
18616
18598
|
}
|
18617
|
-
R = ` AND (${m} >= '${w}' AND ${m} < '${
|
18599
|
+
R = ` AND (${m} >= '${w}' AND ${m} < '${V}')`;
|
18618
18600
|
break;
|
18619
18601
|
}
|
18620
18602
|
}
|
@@ -18623,26 +18605,26 @@ class KgUtil {
|
|
18623
18605
|
}
|
18624
18606
|
case (!!n && isArray$1(_) && _.length === 2 && n.isDayjs(_[0]) && n.isDayjs(_[1])): {
|
18625
18607
|
const D = _[0], R = _[1];
|
18626
|
-
let w = "",
|
18608
|
+
let w = "", V = this.parseParamFromDayJS(g, D, r), O = "";
|
18627
18609
|
switch (!0) {
|
18628
|
-
case !
|
18610
|
+
case !V: {
|
18629
18611
|
O = this.parseParamFromDayJS(g, R, r, !0);
|
18630
18612
|
break;
|
18631
18613
|
}
|
18632
|
-
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): {
|
18633
18615
|
R.isValid() && (O = R.add(1, "second").format("YYYY-MM-DD HH:mm:ss"));
|
18634
18616
|
break;
|
18635
18617
|
}
|
18636
|
-
case /\d\d-\d\d-\d\d/.test(
|
18637
|
-
|
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"));
|
18638
18620
|
break;
|
18639
18621
|
}
|
18640
|
-
case /\d\d:\d\d:\d\d/.test(
|
18641
|
-
|
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"));
|
18642
18624
|
break;
|
18643
18625
|
}
|
18644
18626
|
}
|
18645
|
-
|
18627
|
+
V && (w += ` AND (${m} >= N'${V}')`), O && (w += ` AND (${m} < N'${O}')`), u[g] = w;
|
18646
18628
|
break;
|
18647
18629
|
}
|
18648
18630
|
case Array.isArray(_): {
|
@@ -19871,7 +19853,7 @@ const index$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.definePrope
|
|
19871
19853
|
{
|
19872
19854
|
dis_mult_select_flg: 0,
|
19873
19855
|
dis_no_select_flg: 0,
|
19874
|
-
|
19856
|
+
available_flag: 1,
|
19875
19857
|
frm_id: "",
|
19876
19858
|
id: `${Date.now()}`,
|
19877
19859
|
permission_code: "",
|
@@ -19935,24 +19917,24 @@ const index$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.definePrope
|
|
19935
19917
|
a.value = O != null ? O : [];
|
19936
19918
|
}
|
19937
19919
|
function b(O) {
|
19938
|
-
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);
|
19939
19921
|
}
|
19940
19922
|
function E(O) {
|
19941
|
-
const { properties:
|
19942
|
-
Object.entries(
|
19923
|
+
const { properties: P = {} } = O;
|
19924
|
+
Object.entries(P).forEach(([N, M]) => {
|
19943
19925
|
N in n.value.sysPermission && n.value.sysPermission[N] !== M && (n.value.sysPermission[N] = M);
|
19944
19926
|
});
|
19945
19927
|
}
|
19946
19928
|
function g(O) {
|
19947
|
-
const { frmId:
|
19948
|
-
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;
|
19949
19931
|
}
|
19950
19932
|
function v(O) {
|
19951
19933
|
n.value.varButtons = [
|
19952
19934
|
...toRaw(n.value.varButtons),
|
19953
19935
|
{
|
19954
19936
|
...O,
|
19955
|
-
|
19937
|
+
available_flag: 1,
|
19956
19938
|
frm_id: l.value,
|
19957
19939
|
id: `${Date.now()}`,
|
19958
19940
|
show_success_message_flg: 1
|
@@ -19960,7 +19942,7 @@ const index$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.definePrope
|
|
19960
19942
|
], R(), w();
|
19961
19943
|
}
|
19962
19944
|
function _(O) {
|
19963
|
-
const { varNam:
|
19945
|
+
const { varNam: P, properties: N = {} } = O, M = n.value.varButtons.find((B) => B.var_nam === P);
|
19964
19946
|
if (!M)
|
19965
19947
|
return;
|
19966
19948
|
let K = !1;
|
@@ -19972,17 +19954,17 @@ const index$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.definePrope
|
|
19972
19954
|
L.splice(n.value.varButtons.indexOf(M), 1, { ...M }), n.value.varButtons = toRaw(L);
|
19973
19955
|
}
|
19974
19956
|
function y(O) {
|
19975
|
-
const { varNam:
|
19957
|
+
const { varNam: P } = O, N = n.value.varButtons.find((K) => K.var_nam === P);
|
19976
19958
|
if (!N)
|
19977
19959
|
return;
|
19978
19960
|
const M = [...n.value.varButtons];
|
19979
19961
|
M.splice(n.value.varButtons.indexOf(N), 1), n.value.varButtons = toRaw(M), R();
|
19980
19962
|
}
|
19981
19963
|
function m(O) {
|
19982
|
-
const { varNam:
|
19983
|
-
if (!!
|
19984
|
-
if (n.value.varVariableCatalogs.find((M) => M.var_nam ===
|
19985
|
-
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 });
|
19986
19968
|
return;
|
19987
19969
|
}
|
19988
19970
|
n.value.varVariableCatalogs = [
|
@@ -19992,36 +19974,36 @@ const index$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.definePrope
|
|
19992
19974
|
frm_id: l.value,
|
19993
19975
|
grp_nam: "WMS",
|
19994
19976
|
locale_id: e.locale.value,
|
19995
|
-
var_nam:
|
19996
|
-
var_text: N ||
|
19977
|
+
var_nam: P,
|
19978
|
+
var_text: N || P
|
19997
19979
|
}
|
19998
19980
|
], R();
|
19999
19981
|
}
|
20000
19982
|
}
|
20001
19983
|
function T(O) {
|
20002
|
-
const { varNam:
|
20003
|
-
if (!
|
19984
|
+
const { varNam: P, varText: N } = O;
|
19985
|
+
if (!P)
|
20004
19986
|
return;
|
20005
|
-
const M = n.value.varVariableCatalogs.find((K) => K.var_nam ===
|
20006
|
-
!M || (M.var_text = N ||
|
19987
|
+
const M = n.value.varVariableCatalogs.find((K) => K.var_nam === P);
|
19988
|
+
!M || (M.var_text = N || P);
|
20007
19989
|
}
|
20008
19990
|
function k(O) {
|
20009
|
-
n.value.varProfileDetails = O.map((
|
20010
|
-
...
|
19991
|
+
n.value.varProfileDetails = O.map((P) => ({
|
19992
|
+
...P,
|
20011
19993
|
frm_id: l.value,
|
20012
19994
|
grp_nam: "WMS"
|
20013
19995
|
}));
|
20014
19996
|
}
|
20015
19997
|
function A(O) {
|
20016
|
-
n.value.varGridDetails = O.map((
|
20017
|
-
...
|
19998
|
+
n.value.varGridDetails = O.map((P) => ({
|
19999
|
+
...P,
|
20018
20000
|
frm_id: l.value,
|
20019
20001
|
grp_nam: "WMS"
|
20020
20002
|
}));
|
20021
20003
|
}
|
20022
20004
|
function C(O) {
|
20023
|
-
n.value.varSubmitFields = O.map((
|
20024
|
-
...
|
20005
|
+
n.value.varSubmitFields = O.map((P) => ({
|
20006
|
+
...P,
|
20025
20007
|
cpy_ena_flg: 1,
|
20026
20008
|
cpy_flg: 1,
|
20027
20009
|
cpy_vis_flg: 1,
|
@@ -20036,8 +20018,8 @@ const index$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.definePrope
|
|
20036
20018
|
}));
|
20037
20019
|
}
|
20038
20020
|
function I(O) {
|
20039
|
-
n.value.varVariableConfigs = O.map((
|
20040
|
-
...
|
20021
|
+
n.value.varVariableConfigs = O.map((P) => ({
|
20022
|
+
...P,
|
20041
20023
|
ctrl_typ: KG_FORM_ITEM_TYPE.INPUT,
|
20042
20024
|
cust_lvl: KG_CUSTOM_LEVEL.L0,
|
20043
20025
|
frm_id: l.value,
|
@@ -20046,34 +20028,30 @@ const index$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.definePrope
|
|
20046
20028
|
}));
|
20047
20029
|
}
|
20048
20030
|
function D(O) {
|
20049
|
-
var
|
20050
|
-
return O && (M = (N = (
|
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 : "";
|
20051
20033
|
}
|
20052
20034
|
function R() {
|
20053
20035
|
const O = uniq(
|
20054
20036
|
compact([
|
20055
|
-
...n.value.varButtons.map((
|
20056
|
-
...n.value.varGridDetails.map((
|
20037
|
+
...n.value.varButtons.map((P) => P.var_nam),
|
20038
|
+
...n.value.varGridDetails.map((P) => P.var_nam),
|
20057
20039
|
n.value.varGridMaster.grd_var_nam,
|
20058
|
-
...n.value.varProfileDetails.map((
|
20040
|
+
...n.value.varProfileDetails.map((P) => P.var_nam),
|
20059
20041
|
n.value.varProfileMaster.prf_var_nam,
|
20060
|
-
...n.value.varSubmitFields.map((
|
20042
|
+
...n.value.varSubmitFields.map((P) => P.var_nam)
|
20061
20043
|
])
|
20062
20044
|
);
|
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
|
-
);
|
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)));
|
20068
20046
|
}
|
20069
20047
|
function w() {
|
20070
20048
|
var O;
|
20071
|
-
(O = n.value.varButtons) == null || O.forEach((
|
20049
|
+
(O = n.value.varButtons) == null || O.forEach((P) => {
|
20072
20050
|
var N, M;
|
20073
|
-
|
20051
|
+
P.typDsc = (M = (N = t.value.find((K) => K.codval === P.typ)) == null ? void 0 : N.shortDsc) != null ? M : "";
|
20074
20052
|
});
|
20075
20053
|
}
|
20076
|
-
async function
|
20054
|
+
async function V() {
|
20077
20055
|
const { records: O } = await List$3({
|
20078
20056
|
params: {
|
20079
20057
|
localeId: e.locale.value,
|
@@ -20084,7 +20062,7 @@ const index$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.definePrope
|
|
20084
20062
|
});
|
20085
20063
|
t.value = O != null ? O : [], w();
|
20086
20064
|
}
|
20087
|
-
return
|
20065
|
+
return V(), {
|
20088
20066
|
isLoading: r,
|
20089
20067
|
resultSetMetadataColumns: a,
|
20090
20068
|
createVarDdaQuery: n,
|