@kengic/vue 0.5.19-beta.1 → 0.5.19
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/kengic-vue.js +710 -573
- package/dist/src/apis/WMS/Controllers/VarGridMasterController/QueryByID.d.ts +19 -0
- package/dist/src/apis/WMS/Controllers/VarGridMasterController/Update.d.ts +16 -0
- package/dist/src/apis/WMS/Controllers/VarGridMasterController/index.d.ts +2 -0
- package/dist/src/apis/WMS/Controllers/index.d.ts +1 -0
- package/dist/src/apis/WMS/models.d.ts +37 -1
- package/dist/src/components/KgVar/index.hooks.d.ts +4 -0
- package/dist/src/components/KgVar/index.store.d.ts +9 -0
- package/dist/src/consts/i18n/en.d.ts +1 -1
- package/dist/src/consts/i18n/zh_CN.d.ts +1 -1
- package/package.json +1 -1
- /package/dist/src/components/KgTable/components/setting/{KgTable.Setting.SaveGridMaster.d.ts → KgTable.Setting.VarGridMaster.SaveAs.d.ts} +0 -0
package/dist/kengic-vue.js
CHANGED
@@ -3,7 +3,7 @@ var ve = (e, t, r) => t in e ? _e(e, t, { enumerable: !0, configurable: !0, writ
|
|
3
3
|
var d = (e, t, r) => (ve(e, typeof t != "symbol" ? t + "" : t, r), r);
|
4
4
|
import { h, nextTick, createVNode, defineComponent, ref, Fragment, computed, unref, createTextVNode, getCurrentInstance, inject, markRaw, watch, reactive, effectScope, isRef, isReactive, toRef, toRaw, onUnmounted, toRefs, provide, mergeProps, onMounted, isVNode, Teleport, getCurrentScope, onScopeDispose } from "vue";
|
5
5
|
import { Button, Modal, Progress, Spin, DatePicker, Input, InputNumber, Select, Switch, Col, Form, Drawer, Row, Divider, message, Tag, Tabs, Dropdown, Menu, Checkbox, Table, Pagination, Upload, ConfigProvider, Transfer, Radio, Textarea, Card, TabPane, Tooltip } from "ant-design-vue";
|
6
|
-
const index$
|
6
|
+
const index$7 = "";
|
7
7
|
let _httpClient = null;
|
8
8
|
function setupHttpClient(e) {
|
9
9
|
_httpClient = e;
|
@@ -13,6 +13,28 @@ function httpClient() {
|
|
13
13
|
throw new Error("\u6CA1\u6709\u8BBE\u7F6E httpClient \u5B9E\u4F8B.");
|
14
14
|
return _httpClient;
|
15
15
|
}
|
16
|
+
class CreateVarGridMasterQuery {
|
17
|
+
constructor(t) {
|
18
|
+
d(this, "def_flg");
|
19
|
+
d(this, "frm_id");
|
20
|
+
d(this, "grd_var_nam");
|
21
|
+
d(this, "grp_nam");
|
22
|
+
d(this, "usr_id");
|
23
|
+
d(this, "varGridDetails");
|
24
|
+
keys$1(t != null ? t : {}).forEach((r) => {
|
25
|
+
switch (r) {
|
26
|
+
case "def_flg":
|
27
|
+
case "frm_id":
|
28
|
+
case "grd_var_nam":
|
29
|
+
case "grp_nam":
|
30
|
+
case "usr_id":
|
31
|
+
case "varGridDetails":
|
32
|
+
Reflect.set(this, r, Reflect.get(t != null ? t : {}, r));
|
33
|
+
break;
|
34
|
+
}
|
35
|
+
});
|
36
|
+
}
|
37
|
+
}
|
16
38
|
class CreateVarProfileMasterQuery {
|
17
39
|
constructor(t) {
|
18
40
|
d(this, "def_flg");
|
@@ -57,6 +79,32 @@ class IPage {
|
|
57
79
|
});
|
58
80
|
}
|
59
81
|
}
|
82
|
+
class UpdateVarGridMasterQuery {
|
83
|
+
constructor(t) {
|
84
|
+
d(this, "cust_lvl");
|
85
|
+
d(this, "def_flg");
|
86
|
+
d(this, "frm_id");
|
87
|
+
d(this, "grd_var_nam");
|
88
|
+
d(this, "grp_nam");
|
89
|
+
d(this, "id");
|
90
|
+
d(this, "usr_id");
|
91
|
+
d(this, "varGridDetails");
|
92
|
+
keys$1(t != null ? t : {}).forEach((r) => {
|
93
|
+
switch (r) {
|
94
|
+
case "cust_lvl":
|
95
|
+
case "def_flg":
|
96
|
+
case "frm_id":
|
97
|
+
case "grd_var_nam":
|
98
|
+
case "grp_nam":
|
99
|
+
case "id":
|
100
|
+
case "usr_id":
|
101
|
+
case "varGridDetails":
|
102
|
+
Reflect.set(this, r, Reflect.get(t != null ? t : {}, r));
|
103
|
+
break;
|
104
|
+
}
|
105
|
+
});
|
106
|
+
}
|
107
|
+
}
|
60
108
|
class VarButton {
|
61
109
|
constructor(t) {
|
62
110
|
d(this, "cmd");
|
@@ -747,7 +795,7 @@ function GetAll(e, t) {
|
|
747
795
|
}
|
748
796
|
GetAll.method = "GET";
|
749
797
|
GetAll.url = "/var/Var/getAll";
|
750
|
-
const index$
|
798
|
+
const index$6 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
751
799
|
__proto__: null,
|
752
800
|
GetAll,
|
753
801
|
GetAllQuery
|
@@ -918,7 +966,7 @@ function QueryById$1(e, t) {
|
|
918
966
|
}
|
919
967
|
QueryById$1.method = "GET";
|
920
968
|
QueryById$1.url = "/var/VarContext/queryById";
|
921
|
-
const index$
|
969
|
+
const index$5 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
922
970
|
__proto__: null,
|
923
971
|
Add: Add$1,
|
924
972
|
AddQuery: AddQuery$1,
|
@@ -937,6 +985,51 @@ const index$4 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.definePrope
|
|
937
985
|
QueryById: QueryById$1,
|
938
986
|
QueryByIdQuery: QueryByIdQuery$1
|
939
987
|
}, Symbol.toStringTag, { value: "Module" }));
|
988
|
+
class QueryByIDQuery$1 {
|
989
|
+
constructor(t) {
|
990
|
+
d(this, "id");
|
991
|
+
keys$1(t != null ? t : {}).forEach((r) => {
|
992
|
+
switch (r) {
|
993
|
+
case "id":
|
994
|
+
Reflect.set(this, r, Reflect.get(t != null ? t : {}, r));
|
995
|
+
break;
|
996
|
+
}
|
997
|
+
});
|
998
|
+
}
|
999
|
+
}
|
1000
|
+
function QueryByID$1(e, t) {
|
1001
|
+
return httpClient().request(
|
1002
|
+
{
|
1003
|
+
method: QueryByID$1.method,
|
1004
|
+
url: `${t != null && t.mock ? "/mock" : ""}${QueryByID$1.url}`,
|
1005
|
+
...e != null ? e : {}
|
1006
|
+
},
|
1007
|
+
t
|
1008
|
+
);
|
1009
|
+
}
|
1010
|
+
QueryByID$1.method = "GET";
|
1011
|
+
QueryByID$1.url = "/var/VarGridMaster/queryByID";
|
1012
|
+
class UpdateQuery {
|
1013
|
+
}
|
1014
|
+
function Update(e, t) {
|
1015
|
+
return httpClient().request(
|
1016
|
+
{
|
1017
|
+
method: Update.method,
|
1018
|
+
url: `${t != null && t.mock ? "/mock" : ""}${Update.url}`,
|
1019
|
+
...e != null ? e : {}
|
1020
|
+
},
|
1021
|
+
t
|
1022
|
+
);
|
1023
|
+
}
|
1024
|
+
Update.method = "POST";
|
1025
|
+
Update.url = "/var/VarGridMaster/update";
|
1026
|
+
const index$4 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
1027
|
+
__proto__: null,
|
1028
|
+
QueryByID: QueryByID$1,
|
1029
|
+
QueryByIDQuery: QueryByIDQuery$1,
|
1030
|
+
Update,
|
1031
|
+
UpdateQuery
|
1032
|
+
}, Symbol.toStringTag, { value: "Module" }));
|
940
1033
|
class QueryByIDQuery {
|
941
1034
|
constructor(t) {
|
942
1035
|
d(this, "id");
|
@@ -1237,8 +1330,9 @@ const index$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.definePrope
|
|
1237
1330
|
ListVOQuery
|
1238
1331
|
}, Symbol.toStringTag, { value: "Module" })), index = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
1239
1332
|
__proto__: null,
|
1240
|
-
VarController: index$
|
1241
|
-
VarContextController: index$
|
1333
|
+
VarController: index$6,
|
1334
|
+
VarContextController: index$5,
|
1335
|
+
VarGridMasterController: index$4,
|
1242
1336
|
VarProfileMasterController: index$3,
|
1243
1337
|
VarVariableCatalogController: index$2,
|
1244
1338
|
WhController: index$1
|
@@ -4206,7 +4300,7 @@ const UploadOutlined$1 = UploadOutlined, KgModal_Close = "", getProps$z = () =>
|
|
4206
4300
|
KgTableSettingGridConfigModal: {
|
4207
4301
|
title: "Config Grid"
|
4208
4302
|
},
|
4209
|
-
|
4303
|
+
KgTableSettingVarGridMasterSaveAs: {
|
4210
4304
|
title: "Save Grid View As"
|
4211
4305
|
},
|
4212
4306
|
KgTableSettingVarGridConfig: {
|
@@ -4340,7 +4434,7 @@ const UploadOutlined$1 = UploadOutlined, KgModal_Close = "", getProps$z = () =>
|
|
4340
4434
|
KgTableSettingGridConfigModal: {
|
4341
4435
|
title: "\u914D\u7F6E\u8868\u683C"
|
4342
4436
|
},
|
4343
|
-
|
4437
|
+
KgTableSettingVarGridMasterSaveAs: {
|
4344
4438
|
title: "\u53E6\u5B58\u89C6\u56FE"
|
4345
4439
|
},
|
4346
4440
|
KgTableSettingVarGridConfig: {
|
@@ -4482,19 +4576,19 @@ var commonjsGlobal = typeof globalThis < "u" ? globalThis : typeof window < "u"
|
|
4482
4576
|
e.exports = n();
|
4483
4577
|
})(commonjsGlobal, function() {
|
4484
4578
|
var r = 1e3, n = 6e4, a = 36e5, o = "millisecond", s = "second", i = "minute", l = "hour", u = "day", c = "week", g = "month", p = "quarter", _ = "year", b = "date", m = "Invalid Date", v = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, C = /\[([^\]]+)]|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, y = { 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(w) {
|
4485
|
-
var
|
4486
|
-
return "[" + w + (
|
4487
|
-
} }, E = function(w,
|
4488
|
-
var
|
4489
|
-
return !
|
4579
|
+
var O = ["th", "st", "nd", "rd"], M = w % 100;
|
4580
|
+
return "[" + w + (O[(M - 20) % 10] || O[M] || O[0]) + "]";
|
4581
|
+
} }, E = function(w, O, M) {
|
4582
|
+
var L = String(w);
|
4583
|
+
return !L || L.length >= O ? w : "" + Array(O + 1 - L.length).join(M) + w;
|
4490
4584
|
}, k = { s: E, z: function(w) {
|
4491
|
-
var
|
4492
|
-
return (
|
4493
|
-
}, m: function w(
|
4494
|
-
if (
|
4495
|
-
return -w(
|
4496
|
-
var
|
4497
|
-
return +(-(
|
4585
|
+
var O = -w.utcOffset(), M = Math.abs(O), L = Math.floor(M / 60), N = M % 60;
|
4586
|
+
return (O <= 0 ? "+" : "-") + E(L, 2, "0") + ":" + E(N, 2, "0");
|
4587
|
+
}, m: function w(O, M) {
|
4588
|
+
if (O.date() < M.date())
|
4589
|
+
return -w(M, O);
|
4590
|
+
var L = 12 * (M.year() - O.year()) + (M.month() - O.month()), N = O.clone().add(L, g), G = M - N < 0, P = O.clone().add(L + (G ? -1 : 1), g);
|
4591
|
+
return +(-(L + (M - N) / (G ? N - P : P - N)) || 0);
|
4498
4592
|
}, a: function(w) {
|
4499
4593
|
return w < 0 ? Math.ceil(w) || 0 : Math.floor(w);
|
4500
4594
|
}, p: function(w) {
|
@@ -4503,90 +4597,90 @@ var commonjsGlobal = typeof globalThis < "u" ? globalThis : typeof window < "u"
|
|
4503
4597
|
return w === void 0;
|
4504
4598
|
} }, D = "en", T = {};
|
4505
4599
|
T[D] = y;
|
4506
|
-
var
|
4507
|
-
return w instanceof
|
4508
|
-
},
|
4509
|
-
var
|
4510
|
-
if (!
|
4600
|
+
var x = function(w) {
|
4601
|
+
return w instanceof U;
|
4602
|
+
}, F = function w(O, M, L) {
|
4603
|
+
var N;
|
4604
|
+
if (!O)
|
4511
4605
|
return D;
|
4512
|
-
if (typeof
|
4513
|
-
var
|
4514
|
-
T[
|
4515
|
-
var
|
4516
|
-
if (!
|
4517
|
-
return w(
|
4606
|
+
if (typeof O == "string") {
|
4607
|
+
var G = O.toLowerCase();
|
4608
|
+
T[G] && (N = G), M && (T[G] = M, N = G);
|
4609
|
+
var P = O.split("-");
|
4610
|
+
if (!N && P.length > 1)
|
4611
|
+
return w(P[0]);
|
4518
4612
|
} else {
|
4519
|
-
var B =
|
4520
|
-
T[B] =
|
4613
|
+
var B = O.name;
|
4614
|
+
T[B] = O, N = B;
|
4521
4615
|
}
|
4522
|
-
return !
|
4523
|
-
}, I = function(w,
|
4524
|
-
if (
|
4616
|
+
return !L && N && (D = N), N || !L && D;
|
4617
|
+
}, I = function(w, O) {
|
4618
|
+
if (x(w))
|
4525
4619
|
return w.clone();
|
4526
|
-
var
|
4527
|
-
return
|
4528
|
-
},
|
4529
|
-
|
4530
|
-
return I(w, { locale:
|
4620
|
+
var M = typeof O == "object" ? O : {};
|
4621
|
+
return M.date = w, M.args = arguments, new U(M);
|
4622
|
+
}, A = k;
|
4623
|
+
A.l = F, A.i = x, A.w = function(w, O) {
|
4624
|
+
return I(w, { locale: O.$L, utc: O.$u, x: O.$x, $offset: O.$offset });
|
4531
4625
|
};
|
4532
|
-
var
|
4533
|
-
function w(
|
4534
|
-
this.$L =
|
4535
|
-
}
|
4536
|
-
var
|
4537
|
-
return
|
4538
|
-
this.$d = function(
|
4539
|
-
var
|
4540
|
-
if (
|
4626
|
+
var U = function() {
|
4627
|
+
function w(M) {
|
4628
|
+
this.$L = F(M.locale, null, !0), this.parse(M);
|
4629
|
+
}
|
4630
|
+
var O = w.prototype;
|
4631
|
+
return O.parse = function(M) {
|
4632
|
+
this.$d = function(L) {
|
4633
|
+
var N = L.date, G = L.utc;
|
4634
|
+
if (N === null)
|
4541
4635
|
return new Date(NaN);
|
4542
|
-
if (
|
4636
|
+
if (A.u(N))
|
4543
4637
|
return new Date();
|
4544
|
-
if (
|
4545
|
-
return new Date(
|
4546
|
-
if (typeof
|
4547
|
-
var
|
4548
|
-
if (
|
4549
|
-
var B =
|
4550
|
-
return
|
4638
|
+
if (N instanceof Date)
|
4639
|
+
return new Date(N);
|
4640
|
+
if (typeof N == "string" && !/Z$/i.test(N)) {
|
4641
|
+
var P = N.match(v);
|
4642
|
+
if (P) {
|
4643
|
+
var B = P[2] - 1 || 0, H = (P[7] || "0").substring(0, 3);
|
4644
|
+
return G ? new Date(Date.UTC(P[1], B, P[3] || 1, P[4] || 0, P[5] || 0, P[6] || 0, H)) : new Date(P[1], B, P[3] || 1, P[4] || 0, P[5] || 0, P[6] || 0, H);
|
4551
4645
|
}
|
4552
4646
|
}
|
4553
|
-
return new Date(
|
4554
|
-
}(
|
4555
|
-
},
|
4556
|
-
var
|
4557
|
-
this.$y =
|
4558
|
-
},
|
4559
|
-
return
|
4560
|
-
},
|
4647
|
+
return new Date(N);
|
4648
|
+
}(M), this.$x = M.x || {}, this.init();
|
4649
|
+
}, O.init = function() {
|
4650
|
+
var M = this.$d;
|
4651
|
+
this.$y = M.getFullYear(), this.$M = M.getMonth(), this.$D = M.getDate(), this.$W = M.getDay(), this.$H = M.getHours(), this.$m = M.getMinutes(), this.$s = M.getSeconds(), this.$ms = M.getMilliseconds();
|
4652
|
+
}, O.$utils = function() {
|
4653
|
+
return A;
|
4654
|
+
}, O.isValid = function() {
|
4561
4655
|
return this.$d.toString() !== m;
|
4562
|
-
},
|
4563
|
-
var
|
4564
|
-
return this.startOf(
|
4565
|
-
},
|
4566
|
-
return I(
|
4567
|
-
},
|
4568
|
-
return this.endOf(
|
4569
|
-
},
|
4570
|
-
return
|
4571
|
-
},
|
4656
|
+
}, O.isSame = function(M, L) {
|
4657
|
+
var N = I(M);
|
4658
|
+
return this.startOf(L) <= N && N <= this.endOf(L);
|
4659
|
+
}, O.isAfter = function(M, L) {
|
4660
|
+
return I(M) < this.startOf(L);
|
4661
|
+
}, O.isBefore = function(M, L) {
|
4662
|
+
return this.endOf(L) < I(M);
|
4663
|
+
}, O.$g = function(M, L, N) {
|
4664
|
+
return A.u(M) ? this[L] : this.set(N, M);
|
4665
|
+
}, O.unix = function() {
|
4572
4666
|
return Math.floor(this.valueOf() / 1e3);
|
4573
|
-
},
|
4667
|
+
}, O.valueOf = function() {
|
4574
4668
|
return this.$d.getTime();
|
4575
|
-
},
|
4576
|
-
var
|
4577
|
-
var te =
|
4578
|
-
return
|
4669
|
+
}, O.startOf = function(M, L) {
|
4670
|
+
var N = this, G = !!A.u(L) || L, P = A.p(M), B = function(ee, z) {
|
4671
|
+
var te = A.w(N.$u ? Date.UTC(N.$y, z, ee) : new Date(N.$y, z, ee), N);
|
4672
|
+
return G ? te : te.endOf(u);
|
4579
4673
|
}, H = function(ee, z) {
|
4580
|
-
return
|
4674
|
+
return A.w(N.toDate()[ee].apply(N.toDate("s"), (G ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(z)), N);
|
4581
4675
|
}, Y = this.$W, J = this.$M, V = this.$D, R = "set" + (this.$u ? "UTC" : "");
|
4582
|
-
switch (
|
4676
|
+
switch (P) {
|
4583
4677
|
case _:
|
4584
|
-
return
|
4678
|
+
return G ? B(1, 0) : B(31, 11);
|
4585
4679
|
case g:
|
4586
|
-
return
|
4680
|
+
return G ? B(1, J) : B(0, J + 1);
|
4587
4681
|
case c:
|
4588
|
-
var
|
4589
|
-
return B(
|
4682
|
+
var X = this.$locale().weekStart || 0, q = (Y < X ? Y + 7 : Y) - X;
|
4683
|
+
return B(G ? V - q : V + (6 - q), J);
|
4590
4684
|
case u:
|
4591
4685
|
case b:
|
4592
4686
|
return H(R + "Hours", 0);
|
@@ -4599,87 +4693,87 @@ var commonjsGlobal = typeof globalThis < "u" ? globalThis : typeof window < "u"
|
|
4599
4693
|
default:
|
4600
4694
|
return this.clone();
|
4601
4695
|
}
|
4602
|
-
},
|
4603
|
-
return this.startOf(
|
4604
|
-
},
|
4605
|
-
var
|
4606
|
-
if (
|
4696
|
+
}, O.endOf = function(M) {
|
4697
|
+
return this.startOf(M, !1);
|
4698
|
+
}, O.$set = function(M, L) {
|
4699
|
+
var N, G = A.p(M), P = "set" + (this.$u ? "UTC" : ""), B = (N = {}, N[u] = P + "Date", N[b] = P + "Date", N[g] = P + "Month", N[_] = P + "FullYear", N[l] = P + "Hours", N[i] = P + "Minutes", N[s] = P + "Seconds", N[o] = P + "Milliseconds", N)[G], H = G === u ? this.$D + (L - this.$W) : L;
|
4700
|
+
if (G === g || G === _) {
|
4607
4701
|
var Y = this.clone().set(b, 1);
|
4608
4702
|
Y.$d[B](H), Y.init(), this.$d = Y.set(b, Math.min(this.$D, Y.daysInMonth())).$d;
|
4609
4703
|
} else
|
4610
4704
|
B && this.$d[B](H);
|
4611
4705
|
return this.init(), this;
|
4612
|
-
},
|
4613
|
-
return this.clone().$set(
|
4614
|
-
},
|
4615
|
-
return this[
|
4616
|
-
},
|
4617
|
-
var
|
4618
|
-
|
4619
|
-
var
|
4620
|
-
var V = I(
|
4621
|
-
return
|
4706
|
+
}, O.set = function(M, L) {
|
4707
|
+
return this.clone().$set(M, L);
|
4708
|
+
}, O.get = function(M) {
|
4709
|
+
return this[A.p(M)]();
|
4710
|
+
}, O.add = function(M, L) {
|
4711
|
+
var N, G = this;
|
4712
|
+
M = Number(M);
|
4713
|
+
var P = A.p(L), B = function(J) {
|
4714
|
+
var V = I(G);
|
4715
|
+
return A.w(V.date(V.date() + Math.round(J * M)), G);
|
4622
4716
|
};
|
4623
|
-
if (
|
4624
|
-
return this.set(g, this.$M +
|
4625
|
-
if (
|
4626
|
-
return this.set(_, this.$y +
|
4627
|
-
if (
|
4717
|
+
if (P === g)
|
4718
|
+
return this.set(g, this.$M + M);
|
4719
|
+
if (P === _)
|
4720
|
+
return this.set(_, this.$y + M);
|
4721
|
+
if (P === u)
|
4628
4722
|
return B(1);
|
4629
|
-
if (
|
4723
|
+
if (P === c)
|
4630
4724
|
return B(7);
|
4631
|
-
var H = (
|
4632
|
-
return
|
4633
|
-
},
|
4634
|
-
return this.add(-1 *
|
4635
|
-
},
|
4636
|
-
var
|
4725
|
+
var H = (N = {}, N[i] = n, N[l] = a, N[s] = r, N)[P] || 1, Y = this.$d.getTime() + M * H;
|
4726
|
+
return A.w(Y, this);
|
4727
|
+
}, O.subtract = function(M, L) {
|
4728
|
+
return this.add(-1 * M, L);
|
4729
|
+
}, O.format = function(M) {
|
4730
|
+
var L = this, N = this.$locale();
|
4637
4731
|
if (!this.isValid())
|
4638
|
-
return
|
4639
|
-
var
|
4640
|
-
return z && (z[te] || z(
|
4641
|
-
},
|
4642
|
-
return
|
4643
|
-
}, q =
|
4732
|
+
return N.invalidDate || m;
|
4733
|
+
var G = M || "YYYY-MM-DDTHH:mm:ssZ", P = A.z(this), B = this.$H, H = this.$m, Y = this.$M, J = N.weekdays, V = N.months, R = function(z, te, ie, le) {
|
4734
|
+
return z && (z[te] || z(L, G)) || ie[te].slice(0, le);
|
4735
|
+
}, X = function(z) {
|
4736
|
+
return A.s(B % 12 || 12, z, "0");
|
4737
|
+
}, q = N.meridiem || function(z, te, ie) {
|
4644
4738
|
var le = z < 12 ? "AM" : "PM";
|
4645
4739
|
return ie ? le.toLowerCase() : le;
|
4646
|
-
}, ee = { YY: String(this.$y).slice(-2), YYYY: this.$y, M: Y + 1, MM:
|
4647
|
-
return
|
4648
|
-
return te || ee[z] ||
|
4740
|
+
}, ee = { YY: String(this.$y).slice(-2), YYYY: this.$y, M: Y + 1, MM: A.s(Y + 1, 2, "0"), MMM: R(N.monthsShort, Y, V, 3), MMMM: R(V, Y), D: this.$D, DD: A.s(this.$D, 2, "0"), d: String(this.$W), dd: R(N.weekdaysMin, this.$W, J, 2), ddd: R(N.weekdaysShort, this.$W, J, 3), dddd: J[this.$W], H: String(B), HH: A.s(B, 2, "0"), h: X(1), hh: X(2), a: q(B, H, !0), A: q(B, H, !1), m: String(H), mm: A.s(H, 2, "0"), s: String(this.$s), ss: A.s(this.$s, 2, "0"), SSS: A.s(this.$ms, 3, "0"), Z: P };
|
4741
|
+
return G.replace(C, function(z, te) {
|
4742
|
+
return te || ee[z] || P.replace(":", "");
|
4649
4743
|
});
|
4650
|
-
},
|
4744
|
+
}, O.utcOffset = function() {
|
4651
4745
|
return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
|
4652
|
-
},
|
4653
|
-
var
|
4654
|
-
return J = (
|
4655
|
-
},
|
4746
|
+
}, O.diff = function(M, L, N) {
|
4747
|
+
var G, P = A.p(L), B = I(M), H = (B.utcOffset() - this.utcOffset()) * n, Y = this - B, J = A.m(this, B);
|
4748
|
+
return J = (G = {}, G[_] = J / 12, G[g] = J, G[p] = J / 3, G[c] = (Y - H) / 6048e5, G[u] = (Y - H) / 864e5, G[l] = Y / a, G[i] = Y / n, G[s] = Y / r, G)[P] || Y, N ? J : A.a(J);
|
4749
|
+
}, O.daysInMonth = function() {
|
4656
4750
|
return this.endOf(g).$D;
|
4657
|
-
},
|
4751
|
+
}, O.$locale = function() {
|
4658
4752
|
return T[this.$L];
|
4659
|
-
},
|
4660
|
-
if (!
|
4753
|
+
}, O.locale = function(M, L) {
|
4754
|
+
if (!M)
|
4661
4755
|
return this.$L;
|
4662
|
-
var
|
4663
|
-
return
|
4664
|
-
},
|
4665
|
-
return
|
4666
|
-
},
|
4756
|
+
var N = this.clone(), G = F(M, L, !0);
|
4757
|
+
return G && (N.$L = G), N;
|
4758
|
+
}, O.clone = function() {
|
4759
|
+
return A.w(this.$d, this);
|
4760
|
+
}, O.toDate = function() {
|
4667
4761
|
return new Date(this.valueOf());
|
4668
|
-
},
|
4762
|
+
}, O.toJSON = function() {
|
4669
4763
|
return this.isValid() ? this.toISOString() : null;
|
4670
|
-
},
|
4764
|
+
}, O.toISOString = function() {
|
4671
4765
|
return this.$d.toISOString();
|
4672
|
-
},
|
4766
|
+
}, O.toString = function() {
|
4673
4767
|
return this.$d.toUTCString();
|
4674
4768
|
}, w;
|
4675
|
-
}(), $ =
|
4769
|
+
}(), $ = U.prototype;
|
4676
4770
|
return I.prototype = $, [["$ms", o], ["$s", s], ["$m", i], ["$H", l], ["$W", u], ["$M", g], ["$y", _], ["$D", b]].forEach(function(w) {
|
4677
|
-
$[w[1]] = function(
|
4678
|
-
return this.$g(
|
4771
|
+
$[w[1]] = function(O) {
|
4772
|
+
return this.$g(O, w[0], w[1]);
|
4679
4773
|
};
|
4680
|
-
}), I.extend = function(w,
|
4681
|
-
return w.$i || (w(
|
4682
|
-
}, I.locale =
|
4774
|
+
}), I.extend = function(w, O) {
|
4775
|
+
return w.$i || (w(O, U, I), w.$i = !0), I;
|
4776
|
+
}, I.locale = F, I.isDayjs = x, I.unix = function(w) {
|
4683
4777
|
return I(1e3 * w);
|
4684
4778
|
}, I.en = T[D], I.Ls = T, I.p = {}, I;
|
4685
4779
|
});
|
@@ -4728,25 +4822,25 @@ function filesize(e, {
|
|
4728
4822
|
} = {}) {
|
4729
4823
|
let C = b, y = Number(e), E = [], k = 0, D = EMPTY;
|
4730
4824
|
n === -1 && c.length === 0 ? (n = 10, c = JEDEC) : n === -1 && c.length > 0 ? (c = c === IEC ? IEC : JEDEC, n = c === IEC ? 2 : 10) : (n = n === 2 ? 2 : 10, c = n === 10 || c === JEDEC ? JEDEC : IEC);
|
4731
|
-
const T = n === 10 ? 1e3 : 1024,
|
4825
|
+
const T = n === 10 ? 1e3 : 1024, x = p === !0, F = y < 0, I = Math[m];
|
4732
4826
|
if (typeof e != "bigint" && isNaN(e))
|
4733
4827
|
throw new TypeError(INVALID_NUMBER);
|
4734
4828
|
if (typeof I !== FUNCTION)
|
4735
4829
|
throw new TypeError(INVALID_ROUND);
|
4736
|
-
if (
|
4830
|
+
if (F && (y = -y), (C === -1 || isNaN(C)) && (C = Math.floor(Math.log(y) / Math.log(T)), C < 0 && (C = 0)), C > 8 && (v > 0 && (v += 8 - C), C = 8), g === EXPONENT)
|
4737
4831
|
return C;
|
4738
4832
|
if (y === 0)
|
4739
4833
|
E[0] = 0, D = E[1] = STRINGS.symbol[c][t ? BITS : BYTES][C];
|
4740
4834
|
else {
|
4741
4835
|
k = y / (n === 2 ? Math.pow(2, C * 10) : Math.pow(1e3, C)), t && (k = k * 8, k >= T && C < 8 && (k = k / T, C++));
|
4742
|
-
const
|
4743
|
-
E[0] = I(k *
|
4836
|
+
const A = Math.pow(10, C > 0 ? a : 0);
|
4837
|
+
E[0] = I(k * A) / A, E[0] === T && C < 8 && b === -1 && (E[0] = 1, C++), D = E[1] = n === 10 && C === 1 ? t ? SI_KBIT : SI_KBYTE : STRINGS.symbol[c][t ? BITS : BYTES][C];
|
4744
4838
|
}
|
4745
|
-
if (
|
4746
|
-
const
|
4747
|
-
E[0] = `${
|
4839
|
+
if (F && (E[0] = -E[0]), v > 0 && (E[0] = E[0].toPrecision(v)), E[1] = u[E[1]] || E[1], o === !0 ? E[0] = E[0].toLocaleString() : o.length > 0 ? E[0] = E[0].toLocaleString(o, s) : i.length > 0 && (E[0] = E[0].toString().replace(PERIOD, i)), r && Number.isInteger(E[0]) === !1 && a > 0) {
|
4840
|
+
const A = i || PERIOD, U = E[0].toString().split(A), $ = U[1] || EMPTY, w = $.length, O = a - w;
|
4841
|
+
E[0] = `${U[0]}${A}${$.padEnd(w + O, ZERO)}`;
|
4748
4842
|
}
|
4749
|
-
return
|
4843
|
+
return x && (E[1] = _[C] ? _[C] : STRINGS.fullform[c][C] + (t ? BIT : BYTE) + (E[0] === 1 ? EMPTY : S)), g === ARRAY ? E : g === OBJECT ? {
|
4750
4844
|
value: E[0],
|
4751
4845
|
symbol: E[1],
|
4752
4846
|
exponent: C,
|
@@ -5336,8 +5430,8 @@ function sendQuery(e, t, r, n) {
|
|
5336
5430
|
if (e.random) {
|
5337
5431
|
let T = e.resources.slice(0);
|
5338
5432
|
for (s = []; T.length > 1; ) {
|
5339
|
-
const
|
5340
|
-
s.push(T[
|
5433
|
+
const x = Math.floor(Math.random() * T.length);
|
5434
|
+
s.push(T[x]), T = T.slice(0, x).concat(T.slice(x + 1));
|
5341
5435
|
}
|
5342
5436
|
s = s.concat(T);
|
5343
5437
|
} else
|
@@ -5353,8 +5447,8 @@ function sendQuery(e, t, r, n) {
|
|
5353
5447
|
T.status === "pending" && (T.status = "aborted");
|
5354
5448
|
}), p = [];
|
5355
5449
|
}
|
5356
|
-
function v(T,
|
5357
|
-
|
5450
|
+
function v(T, x) {
|
5451
|
+
x && (_ = []), typeof T == "function" && _.push(T);
|
5358
5452
|
}
|
5359
5453
|
function C() {
|
5360
5454
|
return {
|
@@ -5377,9 +5471,9 @@ function sendQuery(e, t, r, n) {
|
|
5377
5471
|
T.status === "pending" && (T.status = "aborted");
|
5378
5472
|
}), p = [];
|
5379
5473
|
}
|
5380
|
-
function k(T,
|
5381
|
-
const I =
|
5382
|
-
switch (p = p.filter((
|
5474
|
+
function k(T, x, F) {
|
5475
|
+
const I = x !== "success";
|
5476
|
+
switch (p = p.filter((A) => A !== T), l) {
|
5383
5477
|
case "pending":
|
5384
5478
|
break;
|
5385
5479
|
case "failed":
|
@@ -5389,20 +5483,20 @@ function sendQuery(e, t, r, n) {
|
|
5389
5483
|
default:
|
5390
5484
|
return;
|
5391
5485
|
}
|
5392
|
-
if (
|
5393
|
-
c =
|
5486
|
+
if (x === "abort") {
|
5487
|
+
c = F, y();
|
5394
5488
|
return;
|
5395
5489
|
}
|
5396
5490
|
if (I) {
|
5397
|
-
c =
|
5491
|
+
c = F, p.length || (s.length ? D() : y());
|
5398
5492
|
return;
|
5399
5493
|
}
|
5400
5494
|
if (b(), E(), !e.random) {
|
5401
|
-
const
|
5402
|
-
|
5495
|
+
const A = e.resources.indexOf(T.resource);
|
5496
|
+
A !== -1 && A !== e.index && (e.index = A);
|
5403
5497
|
}
|
5404
|
-
l = "completed", _.forEach((
|
5405
|
-
|
5498
|
+
l = "completed", _.forEach((A) => {
|
5499
|
+
A(F);
|
5406
5500
|
});
|
5407
5501
|
}
|
5408
5502
|
function D() {
|
@@ -5420,14 +5514,14 @@ function sendQuery(e, t, r, n) {
|
|
5420
5514
|
y();
|
5421
5515
|
return;
|
5422
5516
|
}
|
5423
|
-
const
|
5517
|
+
const x = {
|
5424
5518
|
status: "pending",
|
5425
5519
|
resource: T,
|
5426
|
-
callback: (
|
5427
|
-
k(
|
5520
|
+
callback: (F, I) => {
|
5521
|
+
k(x, F, I);
|
5428
5522
|
}
|
5429
5523
|
};
|
5430
|
-
p.push(
|
5524
|
+
p.push(x), u++, g = setTimeout(D, e.rotate), r(T, t, x.callback);
|
5431
5525
|
}
|
5432
5526
|
return setTimeout(D), C;
|
5433
5527
|
}
|
@@ -6041,22 +6135,22 @@ function createSetupStore(e, t, r = {}, n, a) {
|
|
6041
6135
|
const l = {
|
6042
6136
|
deep: !0
|
6043
6137
|
};
|
6044
|
-
process.env.NODE_ENV !== "production" && !isVue2 && (l.onTrigger = (
|
6045
|
-
u ? _ =
|
6138
|
+
process.env.NODE_ENV !== "production" && !isVue2 && (l.onTrigger = (F) => {
|
6139
|
+
u ? _ = F : u == !1 && !T._hotUpdating && (Array.isArray(_) ? _.push(F) : console.error("\u{1F34D} debuggerEvents should be an array. This is most likely an internal Pinia bug."));
|
6046
6140
|
});
|
6047
6141
|
let u, c, g = markRaw([]), p = markRaw([]), _;
|
6048
6142
|
const b = n.state.value[e];
|
6049
6143
|
!s && !b && (process.env.NODE_ENV === "production" || !a) && (n.state.value[e] = {});
|
6050
6144
|
const m = ref({});
|
6051
|
-
function v(
|
6145
|
+
function v(F) {
|
6052
6146
|
let I;
|
6053
|
-
u = c = !1, process.env.NODE_ENV !== "production" && (_ = []), typeof
|
6147
|
+
u = c = !1, process.env.NODE_ENV !== "production" && (_ = []), typeof F == "function" ? (F(n.state.value[e]), I = {
|
6054
6148
|
type: MutationType.patchFunction,
|
6055
6149
|
storeId: e,
|
6056
6150
|
events: _
|
6057
|
-
}) : (mergeReactiveObjects(n.state.value[e],
|
6151
|
+
}) : (mergeReactiveObjects(n.state.value[e], F), I = {
|
6058
6152
|
type: MutationType.patchObject,
|
6059
|
-
payload:
|
6153
|
+
payload: F,
|
6060
6154
|
storeId: e,
|
6061
6155
|
events: _
|
6062
6156
|
}), nextTick().then(() => {
|
@@ -6069,30 +6163,30 @@ function createSetupStore(e, t, r = {}, n, a) {
|
|
6069
6163
|
function y() {
|
6070
6164
|
o.stop(), g = [], p = [], n._s.delete(e);
|
6071
6165
|
}
|
6072
|
-
function E(
|
6166
|
+
function E(F, I) {
|
6073
6167
|
return function() {
|
6074
6168
|
setActivePinia(n);
|
6075
|
-
const
|
6076
|
-
function w(
|
6077
|
-
|
6169
|
+
const A = Array.from(arguments), U = [], $ = [];
|
6170
|
+
function w(L) {
|
6171
|
+
U.push(L);
|
6078
6172
|
}
|
6079
|
-
function
|
6080
|
-
$.push(
|
6173
|
+
function O(L) {
|
6174
|
+
$.push(L);
|
6081
6175
|
}
|
6082
6176
|
triggerSubscriptions(p, {
|
6083
|
-
args:
|
6084
|
-
name:
|
6177
|
+
args: A,
|
6178
|
+
name: F,
|
6085
6179
|
store: T,
|
6086
6180
|
after: w,
|
6087
|
-
onError:
|
6181
|
+
onError: O
|
6088
6182
|
});
|
6089
|
-
let
|
6183
|
+
let M;
|
6090
6184
|
try {
|
6091
|
-
|
6092
|
-
} catch (
|
6093
|
-
throw triggerSubscriptions($,
|
6185
|
+
M = I.apply(this && this.$id === e ? this : T, A);
|
6186
|
+
} catch (L) {
|
6187
|
+
throw triggerSubscriptions($, L), L;
|
6094
6188
|
}
|
6095
|
-
return
|
6189
|
+
return M instanceof Promise ? M.then((L) => (triggerSubscriptions(U, L), L)).catch((L) => (triggerSubscriptions($, L), Promise.reject(L))) : (triggerSubscriptions(U, M), M);
|
6096
6190
|
};
|
6097
6191
|
}
|
6098
6192
|
const k = /* @__PURE__ */ markRaw({
|
@@ -6106,15 +6200,15 @@ function createSetupStore(e, t, r = {}, n, a) {
|
|
6106
6200
|
$onAction: addSubscription.bind(null, p),
|
6107
6201
|
$patch: v,
|
6108
6202
|
$reset: C,
|
6109
|
-
$subscribe(
|
6110
|
-
const
|
6111
|
-
(I.flush === "sync" ? c : u) &&
|
6203
|
+
$subscribe(F, I = {}) {
|
6204
|
+
const A = addSubscription(g, F, I.detached, () => U()), U = o.run(() => watch(() => n.state.value[e], ($) => {
|
6205
|
+
(I.flush === "sync" ? c : u) && F({
|
6112
6206
|
storeId: e,
|
6113
6207
|
type: MutationType.direct,
|
6114
6208
|
events: _
|
6115
6209
|
}, $);
|
6116
6210
|
}, assign$1({}, l, I)));
|
6117
|
-
return
|
6211
|
+
return A;
|
6118
6212
|
},
|
6119
6213
|
$dispose: y
|
6120
6214
|
}, T = reactive(assign$1(
|
@@ -6125,54 +6219,54 @@ function createSetupStore(e, t, r = {}, n, a) {
|
|
6125
6219
|
D
|
6126
6220
|
));
|
6127
6221
|
n._s.set(e, T);
|
6128
|
-
const
|
6129
|
-
for (const
|
6130
|
-
const I =
|
6222
|
+
const x = n._e.run(() => (o = effectScope(), o.run(() => t())));
|
6223
|
+
for (const F in x) {
|
6224
|
+
const I = x[F];
|
6131
6225
|
if (isRef(I) && !isComputed(I) || isReactive(I))
|
6132
|
-
process.env.NODE_ENV !== "production" && a ? set(m.value,
|
6226
|
+
process.env.NODE_ENV !== "production" && a ? set(m.value, F, toRef(x, F)) : s || (b && shouldHydrate(I) && (isRef(I) ? I.value = b[F] : mergeReactiveObjects(I, b[F])), n.state.value[e][F] = I), process.env.NODE_ENV !== "production" && k.state.push(F);
|
6133
6227
|
else if (typeof I == "function") {
|
6134
|
-
const
|
6135
|
-
|
6228
|
+
const A = process.env.NODE_ENV !== "production" && a ? I : E(F, I);
|
6229
|
+
x[F] = A, process.env.NODE_ENV !== "production" && (k.actions[F] = I), i.actions[F] = I;
|
6136
6230
|
} else
|
6137
|
-
process.env.NODE_ENV !== "production" && isComputed(I) && (k.getters[
|
6231
|
+
process.env.NODE_ENV !== "production" && isComputed(I) && (k.getters[F] = s ? r.getters[F] : I, IS_CLIENT && (x._getters || (x._getters = markRaw([]))).push(F));
|
6138
6232
|
}
|
6139
|
-
if (assign$1(T,
|
6233
|
+
if (assign$1(T, x), assign$1(toRaw(T), x), Object.defineProperty(T, "$state", {
|
6140
6234
|
get: () => process.env.NODE_ENV !== "production" && a ? m.value : n.state.value[e],
|
6141
|
-
set: (
|
6235
|
+
set: (F) => {
|
6142
6236
|
if (process.env.NODE_ENV !== "production" && a)
|
6143
6237
|
throw new Error("cannot set hotState");
|
6144
6238
|
v((I) => {
|
6145
|
-
assign$1(I,
|
6239
|
+
assign$1(I, F);
|
6146
6240
|
});
|
6147
6241
|
}
|
6148
6242
|
}), process.env.NODE_ENV !== "production") {
|
6149
6243
|
T._hotUpdate = markRaw((I) => {
|
6150
|
-
T._hotUpdating = !0, I._hmrPayload.state.forEach((
|
6151
|
-
if (
|
6152
|
-
const
|
6153
|
-
typeof
|
6244
|
+
T._hotUpdating = !0, I._hmrPayload.state.forEach((A) => {
|
6245
|
+
if (A in T.$state) {
|
6246
|
+
const U = I.$state[A], $ = T.$state[A];
|
6247
|
+
typeof U == "object" && isPlainObject(U) && isPlainObject($) ? patchObject(U, $) : I.$state[A] = $;
|
6154
6248
|
}
|
6155
|
-
set(T,
|
6156
|
-
}), Object.keys(T.$state).forEach((
|
6157
|
-
|
6249
|
+
set(T, A, toRef(I.$state, A));
|
6250
|
+
}), Object.keys(T.$state).forEach((A) => {
|
6251
|
+
A in I.$state || del(T, A);
|
6158
6252
|
}), u = !1, c = !1, n.state.value[e] = toRef(I._hmrPayload, "hotState"), c = !0, nextTick().then(() => {
|
6159
6253
|
u = !0;
|
6160
6254
|
});
|
6161
|
-
for (const
|
6162
|
-
const
|
6163
|
-
set(T,
|
6164
|
-
}
|
6165
|
-
for (const
|
6166
|
-
const
|
6167
|
-
set(T,
|
6168
|
-
}
|
6169
|
-
Object.keys(T._hmrPayload.getters).forEach((
|
6170
|
-
|
6171
|
-
}), Object.keys(T._hmrPayload.actions).forEach((
|
6172
|
-
|
6255
|
+
for (const A in I._hmrPayload.actions) {
|
6256
|
+
const U = I[A];
|
6257
|
+
set(T, A, E(A, U));
|
6258
|
+
}
|
6259
|
+
for (const A in I._hmrPayload.getters) {
|
6260
|
+
const U = I._hmrPayload.getters[A], $ = s ? computed(() => (setActivePinia(n), U.call(T, T))) : U;
|
6261
|
+
set(T, A, $);
|
6262
|
+
}
|
6263
|
+
Object.keys(T._hmrPayload.getters).forEach((A) => {
|
6264
|
+
A in I._hmrPayload.getters || del(T, A);
|
6265
|
+
}), Object.keys(T._hmrPayload.actions).forEach((A) => {
|
6266
|
+
A in I._hmrPayload.actions || del(T, A);
|
6173
6267
|
}), T._hmrPayload = I._hmrPayload, T._getters = I._getters, T._hotUpdating = !1;
|
6174
6268
|
});
|
6175
|
-
const
|
6269
|
+
const F = {
|
6176
6270
|
writable: !0,
|
6177
6271
|
configurable: !0,
|
6178
6272
|
enumerable: !1
|
@@ -6180,21 +6274,21 @@ function createSetupStore(e, t, r = {}, n, a) {
|
|
6180
6274
|
IS_CLIENT && ["_p", "_hmrPayload", "_getters", "_customProperties"].forEach((I) => {
|
6181
6275
|
Object.defineProperty(T, I, {
|
6182
6276
|
value: T[I],
|
6183
|
-
...
|
6277
|
+
...F
|
6184
6278
|
});
|
6185
6279
|
});
|
6186
6280
|
}
|
6187
|
-
return n._p.forEach((
|
6281
|
+
return n._p.forEach((F) => {
|
6188
6282
|
if (process.env.NODE_ENV !== "production" && IS_CLIENT) {
|
6189
|
-
const I = o.run(() =>
|
6283
|
+
const I = o.run(() => F({
|
6190
6284
|
store: T,
|
6191
6285
|
app: n._a,
|
6192
6286
|
pinia: n,
|
6193
6287
|
options: i
|
6194
6288
|
}));
|
6195
|
-
Object.keys(I || {}).forEach((
|
6289
|
+
Object.keys(I || {}).forEach((A) => T._customProperties.add(A)), assign$1(T, I);
|
6196
6290
|
} else
|
6197
|
-
assign$1(T, o.run(() =>
|
6291
|
+
assign$1(T, o.run(() => F({
|
6198
6292
|
store: T,
|
6199
6293
|
app: n._a,
|
6200
6294
|
pinia: n,
|
@@ -6778,7 +6872,7 @@ const getProps$v = () => ({ ...formProps() }), DI_FORM_MODEL = Symbol("DI_FORM_M
|
|
6778
6872
|
function _() {
|
6779
6873
|
var b, m, v, C, y, E, k;
|
6780
6874
|
if (c.value) {
|
6781
|
-
const D = (m = (b = l.selectedRows) == null ? void 0 : b.value) != null ? m : [], T = (v = D.map((
|
6875
|
+
const D = (m = (b = l.selectedRows) == null ? void 0 : b.value) != null ? m : [], T = (v = D.map((x) => x[g.value])) != null ? v : [];
|
6782
6876
|
(!i || i(T, D)) && (r("kgOk", T, D), r("update:visible", !1));
|
6783
6877
|
} else {
|
6784
6878
|
const D = (E = (y = (C = l.selectedRows) == null ? void 0 : C.value) == null ? void 0 : y[0]) != null ? E : null, T = (k = D == null ? void 0 : D[g.value]) != null ? k : "";
|
@@ -6994,8 +7088,8 @@ const KgFormItemSelect = defineComponent({
|
|
6994
7088
|
immediate: !0
|
6995
7089
|
});
|
6996
7090
|
async function u() {
|
6997
|
-
var C, y, E, k, D, T,
|
6998
|
-
const p = (C = i.value) == null ? void 0 : C.cmd, _ = (E = (y = i.value) == null ? void 0 : y.cmd_method) != null ? E : "GET", b = (D = (k = i.value) == null ? void 0 : k.val_clm) != null ? D : "", m = (
|
7091
|
+
var C, y, E, k, D, T, x, F;
|
7092
|
+
const p = (C = i.value) == null ? void 0 : C.cmd, _ = (E = (y = i.value) == null ? void 0 : y.cmd_method) != null ? E : "GET", b = (D = (k = i.value) == null ? void 0 : k.val_clm) != null ? D : "", m = (x = (T = i.value) == null ? void 0 : T.lbl_clm) != null ? x : "";
|
6999
7093
|
if (!p || !b || !m) {
|
7000
7094
|
Logger.error("\u4E0B\u62C9\u5217\u8868\u914D\u7F6E\u6709\u8BEF.", {
|
7001
7095
|
formID: n.formID,
|
@@ -7008,7 +7102,7 @@ const KgFormItemSelect = defineComponent({
|
|
7008
7102
|
}
|
7009
7103
|
let v = null;
|
7010
7104
|
try {
|
7011
|
-
v = await ((
|
7105
|
+
v = await ((F = httpClient()) == null ? void 0 : F.request({
|
7012
7106
|
url: p,
|
7013
7107
|
method: _,
|
7014
7108
|
params: l.value
|
@@ -7176,7 +7270,7 @@ const KgFormItem = defineComponent({
|
|
7176
7270
|
const n = useKg(), a = useKgVar(), o = inject(DI_FORM_MODEL, computed(() => ({}))), s = inject(DI_FORM_REF, ref(null)), i = computed(() => a.store.isCreating(a.formID)), l = computed(() => a.store.isUpdating(a.formID)), u = computed(() => a.store.isCopying(a.formID)), c = computed(() => a.store.getVarLookup(a.formID, e.kgVarName)), g = computed(() => a.store.getVariableConfig(a.formID, e.kgVarName)), p = computed(() => a.store.getVarProfileDetail(a.formID, e.kgVarName)), _ = computed(() => a.store.getVarSubmitField(a.formID, e.kgVarName)), {
|
7177
7271
|
rules: b
|
7178
7272
|
} = _useRules(e), m = computed(() => {
|
7179
|
-
var w,
|
7273
|
+
var w, O, M, L, N;
|
7180
7274
|
if (a.isRetrievingVar.value)
|
7181
7275
|
return !0;
|
7182
7276
|
let $ = !1;
|
@@ -7190,56 +7284,56 @@ const KgFormItem = defineComponent({
|
|
7190
7284
|
case KG_FORM_CONTEXT.SUBMIT:
|
7191
7285
|
switch (!0) {
|
7192
7286
|
case a.isCreating.value:
|
7193
|
-
$ = ((
|
7287
|
+
$ = ((O = _.value) == null ? void 0 : O.crt_ena_flg) === 0;
|
7194
7288
|
break;
|
7195
7289
|
case a.isUpdating.value:
|
7196
|
-
$ = ((
|
7290
|
+
$ = ((M = _.value) == null ? void 0 : M.upt_ena_flg) === 0;
|
7197
7291
|
break;
|
7198
7292
|
case a.isCopying.value:
|
7199
|
-
$ = ((
|
7293
|
+
$ = ((L = _.value) == null ? void 0 : L.cpy_ena_flg) === 0;
|
7200
7294
|
break;
|
7201
7295
|
case a.isDeleting.value:
|
7202
|
-
$ = ((
|
7296
|
+
$ = ((N = _.value) == null ? void 0 : N.del_ena_flg) === 0;
|
7203
7297
|
break;
|
7204
7298
|
}
|
7205
7299
|
break;
|
7206
7300
|
}
|
7207
7301
|
return $;
|
7208
7302
|
}), v = computed(() => {
|
7209
|
-
var w,
|
7303
|
+
var w, O, M, L;
|
7210
7304
|
let $ = " ";
|
7211
7305
|
if (e.kgPlaceholder)
|
7212
7306
|
$ = e.kgPlaceholder;
|
7213
7307
|
else
|
7214
7308
|
switch (e.kgContext) {
|
7215
7309
|
case KG_FORM_CONTEXT.SEARCH:
|
7216
|
-
$ = n.t((
|
7310
|
+
$ = n.t((O = (w = p.value) == null ? void 0 : w.placeholder) != null ? O : " ");
|
7217
7311
|
break;
|
7218
7312
|
case KG_FORM_CONTEXT.SUBMIT:
|
7219
|
-
$ = n.t((
|
7313
|
+
$ = n.t((L = (M = _.value) == null ? void 0 : M.placeholder) != null ? L : " ");
|
7220
7314
|
break;
|
7221
7315
|
}
|
7222
7316
|
return $;
|
7223
7317
|
}), C = computed(() => {
|
7224
|
-
var w,
|
7318
|
+
var w, O, M, L, N, G, P, B, H, Y;
|
7225
7319
|
let $ = 6;
|
7226
7320
|
if (e.kgSpan !== void 0)
|
7227
7321
|
$ = e.kgSpan;
|
7228
7322
|
else
|
7229
7323
|
switch (e.kgContext) {
|
7230
7324
|
case KG_FORM_CONTEXT.SEARCH:
|
7231
|
-
$ = (
|
7325
|
+
$ = (O = (w = p.value) == null ? void 0 : w.width) != null ? O : 6;
|
7232
7326
|
break;
|
7233
7327
|
case KG_FORM_CONTEXT.SUBMIT:
|
7234
7328
|
switch (!0) {
|
7235
7329
|
case a.isCreating.value:
|
7236
|
-
$ = (
|
7330
|
+
$ = (L = (M = _.value) == null ? void 0 : M.crt_width) != null ? L : 6;
|
7237
7331
|
break;
|
7238
7332
|
case a.isUpdating.value:
|
7239
|
-
$ = (
|
7333
|
+
$ = (G = (N = _.value) == null ? void 0 : N.upt_width) != null ? G : 6;
|
7240
7334
|
break;
|
7241
7335
|
case a.isCopying.value:
|
7242
|
-
$ = (B = (
|
7336
|
+
$ = (B = (P = _.value) == null ? void 0 : P.cpy_width) != null ? B : 6;
|
7243
7337
|
break;
|
7244
7338
|
case a.isDeleting.value:
|
7245
7339
|
$ = (Y = (H = _.value) == null ? void 0 : H.del_width) != null ? Y : 6;
|
@@ -7248,18 +7342,18 @@ const KgFormItem = defineComponent({
|
|
7248
7342
|
}
|
7249
7343
|
return Math.min(24, Math.max(1, $));
|
7250
7344
|
}), y = computed(() => {
|
7251
|
-
var
|
7252
|
-
const $ = get(
|
7253
|
-
if ($ && !((
|
7345
|
+
var M, L;
|
7346
|
+
const $ = get(x.value, "$el.parentElement");
|
7347
|
+
if ($ && !((M = $.classList) != null && M.contains("ant-row")))
|
7254
7348
|
throw new Error("<KgForm.Item> \u7684\u7236\u5143\u7D20\u5FC5\u987B\u662F <Row> \u6216\u8005 <a-row>.");
|
7255
7349
|
let w = {};
|
7256
|
-
const
|
7257
|
-
return Number.isNaN(
|
7258
|
-
paddingLeft: `${
|
7259
|
-
paddingRight: `${
|
7350
|
+
const O = Math.abs(Number.parseInt((L = get(x.value, "$el.parentElement.style.marginLeft")) != null ? L : "0px"));
|
7351
|
+
return Number.isNaN(O) || (w = {
|
7352
|
+
paddingLeft: `${O}px !important`,
|
7353
|
+
paddingRight: `${O}px !important`
|
7260
7354
|
}), w;
|
7261
7355
|
}), E = computed(() => {
|
7262
|
-
var w,
|
7356
|
+
var w, O, M, L;
|
7263
7357
|
let $ = "kg-form-item";
|
7264
7358
|
switch (c.value && ($ += " kg-form-item-lookup"), e.kgContext) {
|
7265
7359
|
case KG_FORM_CONTEXT.SEARCH:
|
@@ -7271,9 +7365,9 @@ const KgFormItem = defineComponent({
|
|
7271
7365
|
break;
|
7272
7366
|
case KG_FORM_CONTEXT.SUBMIT:
|
7273
7367
|
switch (!0) {
|
7274
|
-
case (i.value && ((
|
7275
|
-
case (l.value && ((
|
7276
|
-
case (u.value && ((
|
7368
|
+
case (i.value && ((O = _.value) == null ? void 0 : O.crt_vis_flg) === 0):
|
7369
|
+
case (l.value && ((M = _.value) == null ? void 0 : M.upt_vis_flg) === 0):
|
7370
|
+
case (u.value && ((L = _.value) == null ? void 0 : L.cpy_vis_flg) === 0):
|
7277
7371
|
$ += " kg-form-item--invisible";
|
7278
7372
|
break;
|
7279
7373
|
}
|
@@ -7285,8 +7379,8 @@ const KgFormItem = defineComponent({
|
|
7285
7379
|
const $ = {
|
7286
7380
|
...e,
|
7287
7381
|
value: (w = o.value) == null ? void 0 : w[e.kgVarName],
|
7288
|
-
"onUpdate:value": (
|
7289
|
-
o.value && (o.value[e.kgVarName] =
|
7382
|
+
"onUpdate:value": (O) => {
|
7383
|
+
o.value && (o.value[e.kgVarName] = O);
|
7290
7384
|
},
|
7291
7385
|
kgPlaceholder: v.value,
|
7292
7386
|
kgDisabled: m.value,
|
@@ -7310,10 +7404,10 @@ const KgFormItem = defineComponent({
|
|
7310
7404
|
}), D = computed(() => {
|
7311
7405
|
var $;
|
7312
7406
|
return e.kgType || (($ = g.value) == null ? void 0 : $.ctrl_typ);
|
7313
|
-
}), T = computed(() => encodeURIComponent(a.formID + e.kgVarName + e.kgContext)),
|
7314
|
-
function
|
7315
|
-
var
|
7316
|
-
o.value && (o.value[e.kgVarName] = $), r("kgChange", w), (
|
7407
|
+
}), T = computed(() => encodeURIComponent(a.formID + e.kgVarName + e.kgContext)), x = ref(null);
|
7408
|
+
function F($, w) {
|
7409
|
+
var O;
|
7410
|
+
o.value && (o.value[e.kgVarName] = $), r("kgChange", w), (O = s.value) == null || O.validate([e.kgVarName]);
|
7317
7411
|
}
|
7318
7412
|
function I() {
|
7319
7413
|
if (t.control)
|
@@ -7340,23 +7434,23 @@ const KgFormItem = defineComponent({
|
|
7340
7434
|
return createVNode(KgFormItemInput, k.value, null);
|
7341
7435
|
}
|
7342
7436
|
}
|
7343
|
-
function
|
7437
|
+
function A() {
|
7344
7438
|
return e.kgShowLabel ? createVNode("span", {
|
7345
7439
|
title: a.t(e.kgVarName).value
|
7346
7440
|
}, [a.t(e.kgVarName).value]) : null;
|
7347
7441
|
}
|
7348
|
-
function
|
7442
|
+
function U() {
|
7349
7443
|
var $;
|
7350
7444
|
return !c.value || !(($ = c.value) != null && $.lkp_id) ? null : createVNode(Form.ItemRest, null, {
|
7351
7445
|
default: () => [createVNode(KgFormItemAddonLookup, {
|
7352
7446
|
kgDisabled: m.value,
|
7353
|
-
onKgOk:
|
7447
|
+
onKgOk: F,
|
7354
7448
|
kgLookupID: c.value.lkp_id
|
7355
7449
|
}, null)]
|
7356
7450
|
});
|
7357
7451
|
}
|
7358
7452
|
return () => createVNode(Col, {
|
7359
|
-
ref:
|
7453
|
+
ref: x,
|
7360
7454
|
"kg-frm-id": a.formID,
|
7361
7455
|
"kg-var-nam": e.kgVarName,
|
7362
7456
|
span: C.value,
|
@@ -7368,8 +7462,8 @@ const KgFormItem = defineComponent({
|
|
7368
7462
|
rules: b.value,
|
7369
7463
|
htmlFor: T.value
|
7370
7464
|
}, {
|
7371
|
-
default: () => createVNode(Fragment, null, [I(),
|
7372
|
-
label: () =>
|
7465
|
+
default: () => createVNode(Fragment, null, [I(), U()]),
|
7466
|
+
label: () => A()
|
7373
7467
|
})]
|
7374
7468
|
});
|
7375
7469
|
}
|
@@ -8049,6 +8143,7 @@ const useKgVarStore = () => (store$6 || (store$6 = defineStore("KgVar", {
|
|
8049
8143
|
formIDs: [],
|
8050
8144
|
isRetrievingVarMap: /* @__PURE__ */ new Map(),
|
8051
8145
|
isRetrievingVarProfileMasterMap: /* @__PURE__ */ new Map(),
|
8146
|
+
isRetrievingVarGridMasterMap: /* @__PURE__ */ new Map(),
|
8052
8147
|
isCreatingMap: /* @__PURE__ */ new Map(),
|
8053
8148
|
isCreatingRequestingMap: /* @__PURE__ */ new Map(),
|
8054
8149
|
isUpdatingMap: /* @__PURE__ */ new Map(),
|
@@ -8095,6 +8190,12 @@ const useKgVarStore = () => (store$6 || (store$6 = defineStore("KgVar", {
|
|
8095
8190
|
return t ? (r = e.isRetrievingVarProfileMasterMap.get(t)) != null ? r : null : (Logger.error("formID \u4E3A\u7A7A."), null);
|
8096
8191
|
};
|
8097
8192
|
},
|
8193
|
+
isRetrievingVarGridMaster(e) {
|
8194
|
+
return (t) => {
|
8195
|
+
var r;
|
8196
|
+
return t ? (r = e.isRetrievingVarGridMasterMap.get(t)) != null ? r : null : (Logger.error("formID \u4E3A\u7A7A."), null);
|
8197
|
+
};
|
8198
|
+
},
|
8098
8199
|
isCreating(e) {
|
8099
8200
|
return (t) => {
|
8100
8201
|
var r;
|
@@ -8556,6 +8657,29 @@ const useKgVarStore = () => (store$6 || (store$6 = defineStore("KgVar", {
|
|
8556
8657
|
}
|
8557
8658
|
}
|
8558
8659
|
},
|
8660
|
+
async setCurrentVarGridMasterID(e, t) {
|
8661
|
+
var a, o, s, i;
|
8662
|
+
if (!e)
|
8663
|
+
return;
|
8664
|
+
const r = this.varGridMap.get(e);
|
8665
|
+
if (!r)
|
8666
|
+
return;
|
8667
|
+
const n = (o = (a = r.varGrid) == null ? void 0 : a.varGridMasters) == null ? void 0 : o.find((l) => l.id === t);
|
8668
|
+
if (!!n)
|
8669
|
+
if ((s = n.varGridDetails) != null && s.length)
|
8670
|
+
r.currentVarGridMasterID = t != null ? t : null;
|
8671
|
+
else {
|
8672
|
+
this.isRetrievingVarGridMasterMap.set(e, !0);
|
8673
|
+
try {
|
8674
|
+
const l = await QueryByID$1({ params: { id: n.id } });
|
8675
|
+
n.varGridDetails = (i = l == null ? void 0 : l.varGridDetails) != null ? i : [], r.currentVarGridMasterID = t != null ? t : null;
|
8676
|
+
} catch (l) {
|
8677
|
+
throw l;
|
8678
|
+
} finally {
|
8679
|
+
this.isRetrievingVarGridMasterMap.set(e, !1);
|
8680
|
+
}
|
8681
|
+
}
|
8682
|
+
},
|
8559
8683
|
setVarGridDetailWidth(e, t, r) {
|
8560
8684
|
if (!e || !t)
|
8561
8685
|
return;
|
@@ -8606,32 +8730,34 @@ function useKgVar(e, t, r = 0) {
|
|
8606
8730
|
}), onUnmounted(() => {
|
8607
8731
|
s.leave(o);
|
8608
8732
|
}));
|
8609
|
-
const i = (
|
8610
|
-
var
|
8611
|
-
return (
|
8612
|
-
}), l = computed(() => s.isRetrievingVar(o)), u = computed(() => s.isRetrievingVarProfileMaster(o)), c = computed(() => s.
|
8613
|
-
var
|
8614
|
-
return (
|
8615
|
-
}),
|
8733
|
+
const i = (A) => computed(() => {
|
8734
|
+
var U, $, w;
|
8735
|
+
return (w = ($ = (U = s.getVarCatalog(o, A)) == null ? void 0 : U.var_text) != null ? $ : A) != null ? w : "";
|
8736
|
+
}), l = computed(() => s.isRetrievingVar(o)), u = computed(() => s.isRetrievingVarProfileMaster(o)), c = computed(() => s.isRetrievingVarGridMaster(o)), g = computed(() => s.isCreating(o)), p = computed(() => s.isUpdating(o)), _ = computed(() => s.isCopying(o)), b = computed(() => s.isDeleting(o)), m = computed(() => s.isOtherRequesting(o)), v = computed(() => s.getVarButtons(o)), C = computed(() => s.getVarProfileMasters(o)), y = computed(() => s.getCurrentVarProfileMaster(o)), E = computed(() => s.getCurrentVarProfileMasterID(o)), k = computed(() => {
|
8737
|
+
var A, U;
|
8738
|
+
return (U = (A = y.value) == null ? void 0 : A.varProfileDetails) != null ? U : null;
|
8739
|
+
}), D = computed(() => s.getVarGridConfig(o)), T = computed(() => s.getVarGridMasters(o)), x = computed(() => s.getCurrentVarGridMaster(o)), F = computed(() => s.getSystemVarGridDetails(o)), I = computed(() => s.getCurrentVarGridDetails(o));
|
8616
8740
|
return {
|
8617
8741
|
formID: o,
|
8618
8742
|
store: s,
|
8619
8743
|
isRetrievingVar: l,
|
8620
8744
|
isRetrievingVarProfileMaster: u,
|
8621
|
-
|
8622
|
-
|
8623
|
-
|
8624
|
-
|
8625
|
-
|
8626
|
-
|
8627
|
-
|
8628
|
-
|
8629
|
-
|
8630
|
-
|
8631
|
-
|
8632
|
-
|
8633
|
-
|
8634
|
-
|
8745
|
+
isRetrievingVarGridMaster: c,
|
8746
|
+
isCreating: g,
|
8747
|
+
isUpdating: p,
|
8748
|
+
isCopying: _,
|
8749
|
+
isDeleting: b,
|
8750
|
+
isOtherRequesting: m,
|
8751
|
+
varButtons: v,
|
8752
|
+
varProfileMasters: C,
|
8753
|
+
currentVarProfileMaster: y,
|
8754
|
+
currentVarProfileMasterID: E,
|
8755
|
+
currentVarProfileDetails: k,
|
8756
|
+
varGridConfig: D,
|
8757
|
+
varGridMasters: T,
|
8758
|
+
currentVarGridMaster: x,
|
8759
|
+
systemVarGridDetails: F,
|
8760
|
+
currentVarGridDetails: I,
|
8635
8761
|
t: i
|
8636
8762
|
};
|
8637
8763
|
} catch (o) {
|
@@ -8823,8 +8949,8 @@ const KgSubmit_Header = "", FORM_ID__VAR_SUBMIT_CONFIG = "kg-submit.VarSubmitCon
|
|
8823
8949
|
}) => {
|
8824
8950
|
const c = o.store.getVarSubmitConfig(o.formID);
|
8825
8951
|
return i = watch(u, (g) => {
|
8826
|
-
var p, _, b, m, v, C, y, E, k, D, T,
|
8827
|
-
g && (g.id = (p = c == null ? void 0 : c.id) != null ? p : null, g.frm_id = o.formID, g.resizable_flg = (_ = c == null ? void 0 : c.resizable_flg) != null ? _ : 1, g.fullscreen_flg = (b = c == null ? void 0 : c.fullscreen_flg) != null ? b : 1, g.dft_fullscreen_flg = (m = c == null ? void 0 : c.dft_fullscreen_flg) != null ? m : 0, g.responsive_flg = (v = c == null ? void 0 : c.responsive_flg) != null ? v : 1, g.max_width = (C = c == null ? void 0 : c.max_width) != null ? C : DEFAULT_MAX_WIDTH, g.min_width = (y = c == null ? void 0 : c.min_width) != null ? y : DEFAULT_MIN_WIDTH, g.dft_width = (E = c == null ? void 0 : c.dft_width) != null ? E : DEFAULT_WIDTH, g.layout = (k = c == null ? void 0 : c.layout) != null ? k : KG_VAR_SUBMIT__LAYOUT.VERTICAL, g.label_col = (D = c == null ? void 0 : c.label_col) != null ? D : DEFAULT_LABEL_COL_FOR_SPAN, g.label_col_unit = (T = c == null ? void 0 : c.label_col_unit) != null ? T : KG_WIDTH_UNIT.SPAN, g.display_type = (
|
8952
|
+
var p, _, b, m, v, C, y, E, k, D, T, x;
|
8953
|
+
g && (g.id = (p = c == null ? void 0 : c.id) != null ? p : null, g.frm_id = o.formID, g.resizable_flg = (_ = c == null ? void 0 : c.resizable_flg) != null ? _ : 1, g.fullscreen_flg = (b = c == null ? void 0 : c.fullscreen_flg) != null ? b : 1, g.dft_fullscreen_flg = (m = c == null ? void 0 : c.dft_fullscreen_flg) != null ? m : 0, g.responsive_flg = (v = c == null ? void 0 : c.responsive_flg) != null ? v : 1, g.max_width = (C = c == null ? void 0 : c.max_width) != null ? C : DEFAULT_MAX_WIDTH, g.min_width = (y = c == null ? void 0 : c.min_width) != null ? y : DEFAULT_MIN_WIDTH, g.dft_width = (E = c == null ? void 0 : c.dft_width) != null ? E : DEFAULT_WIDTH, g.layout = (k = c == null ? void 0 : c.layout) != null ? k : KG_VAR_SUBMIT__LAYOUT.VERTICAL, g.label_col = (D = c == null ? void 0 : c.label_col) != null ? D : DEFAULT_LABEL_COL_FOR_SPAN, g.label_col_unit = (T = c == null ? void 0 : c.label_col_unit) != null ? T : KG_WIDTH_UNIT.SPAN, g.display_type = (x = c == null ? void 0 : c.display_type) != null ? x : KG_VAR_SUBMIT__DISPLAY_TYPE.DRAWER);
|
8828
8954
|
}, {
|
8829
8955
|
immediate: !0
|
8830
8956
|
}), !1;
|
@@ -9020,58 +9146,53 @@ const getProps$p = () => ({
|
|
9020
9146
|
}) {
|
9021
9147
|
const r = useKg(), n = useKgVar(), a = useKgTable(), o = useKgSubmit(), s = useKgSearch(), i = inject(DI_KG_SLOTS, null);
|
9022
9148
|
_useFormModel();
|
9023
|
-
const l = computed(() => n.store.isCreating(n.formID)), u = computed(() => n.store.isUpdating(n.formID)), c = computed(() => n.store.isCopying(n.formID)), g = computed(() => n.store.isDeleting(n.formID)), p = computed(() => g.value &&
|
9024
|
-
var
|
9149
|
+
const l = computed(() => n.store.isCreating(n.formID)), u = computed(() => n.store.isUpdating(n.formID)), c = computed(() => n.store.isCopying(n.formID)), g = computed(() => n.store.isDeleting(n.formID)), p = computed(() => g.value && A.value.length === 0 && U.value.length === 0), _ = computed(() => n.store.getVarButtonCreate(n.formID)), b = computed(() => n.store.getVarButtonUpdate(n.formID)), m = computed(() => n.store.getVarButtonCopy(n.formID)), v = computed(() => n.store.getVarButtonDelete(n.formID)), C = computed(() => o.store.isLoading(n.formID)), y = computed(() => n.store.getVarSubmitConfig(n.formID)), E = computed(() => n.store.getVarSubmitFieldsForCreateKey(n.formID)), k = computed(() => n.store.getVarSubmitFieldsForCreateNotKey(n.formID)), D = computed(() => n.store.getVarSubmitFieldsForUpdateKey(n.formID)), T = computed(() => n.store.getVarSubmitFieldsForUpdateNotKey(n.formID)), x = computed(() => n.store.getVarSubmitFieldsForCopyKey(n.formID)), F = computed(() => n.store.getVarSubmitFieldsForCopyNotKey(n.formID)), I = computed(() => n.store.getVarSubmitFieldsForDelete(n.formID)), A = computed(() => {
|
9150
|
+
var K, W, Q;
|
9025
9151
|
switch (!0) {
|
9026
9152
|
case l.value:
|
9027
|
-
return (
|
9153
|
+
return (K = E.value) != null ? K : [];
|
9028
9154
|
case u.value:
|
9029
9155
|
return (W = D.value) != null ? W : [];
|
9030
9156
|
case c.value:
|
9031
|
-
return (
|
9157
|
+
return (Q = x.value) != null ? Q : [];
|
9032
9158
|
case g.value:
|
9033
9159
|
return [];
|
9034
9160
|
}
|
9035
9161
|
return [];
|
9036
|
-
}),
|
9037
|
-
var
|
9162
|
+
}), U = computed(() => {
|
9163
|
+
var K, W, Q, Z;
|
9038
9164
|
switch (!0) {
|
9039
9165
|
case l.value:
|
9040
|
-
return (
|
9166
|
+
return (K = k.value) != null ? K : [];
|
9041
9167
|
case u.value:
|
9042
9168
|
return (W = T.value) != null ? W : [];
|
9043
9169
|
case c.value:
|
9044
|
-
return (
|
9170
|
+
return (Q = F.value) != null ? Q : [];
|
9045
9171
|
case g.value:
|
9046
9172
|
return (Z = I.value) != null ? Z : [];
|
9047
9173
|
}
|
9048
9174
|
return [];
|
9049
|
-
}), $ = computed(() => !!n.store.isCreatingRequesting(n.formID) || !!n.store.isUpdatingRequesting(n.formID) || !!n.store.isCopyingRequesting(n.formID) || !!n.store.isDeletingRequesting(n.formID)), w = computed(() => $.value || C.value),
|
9050
|
-
kgWidth:
|
9051
|
-
}),
|
9052
|
-
var
|
9053
|
-
return !!(p.value || V.isFullscreen || ((
|
9054
|
-
}),
|
9055
|
-
_useResizeObserver$1(
|
9056
|
-
const B = _useTitle(), H = computed(() => !!(l.value || u.value || c.value || g.value)),
|
9057
|
-
|
9058
|
-
|
9059
|
-
|
9060
|
-
return A.value.kgWidth + 2;
|
9061
|
-
}), J = computed(() => {
|
9062
|
-
var W, X;
|
9063
|
-
let x = "kg-submit";
|
9064
|
-
return V.isFullscreen && (x += " kg-submit--fullscreen"), ((W = y.value) == null ? void 0 : W.responsive_flg) !== 0 && (x += " kg-submit--responsive"), (((X = y.value) == null ? void 0 : X.display_type) === KG_VAR_SUBMIT__DISPLAY_TYPE.MODAL || g.value) && (x += " kg-submit--modal"), e.kgClass && (x += ` ${e.kgClass}`), x;
|
9175
|
+
}), $ = computed(() => !!n.store.isCreatingRequesting(n.formID) || !!n.store.isUpdatingRequesting(n.formID) || !!n.store.isCopyingRequesting(n.formID) || !!n.store.isDeletingRequesting(n.formID)), w = computed(() => $.value || C.value), O = computed(() => C.value), M = ref({
|
9176
|
+
kgWidth: 0
|
9177
|
+
}), L = computed(() => {
|
9178
|
+
var K;
|
9179
|
+
return !!(p.value || V.isFullscreen || ((K = y.value) == null ? void 0 : K.resizable_flg) === 0);
|
9180
|
+
}), N = ref(null), G = ref({}), P = ref(null);
|
9181
|
+
_useResizeObserver$1(P);
|
9182
|
+
const B = _useTitle(), H = computed(() => p.value ? 400 : M.value.kgWidth && M.value.kgWidth > 0 ? M.value.kgWidth + 2 : 0), Y = computed(() => H.value === 0 ? !1 : !!(l.value || u.value || c.value || g.value)), J = computed(() => {
|
9183
|
+
var W, Q;
|
9184
|
+
let K = "kg-submit";
|
9185
|
+
return V.isFullscreen && (K += " kg-submit--fullscreen"), ((W = y.value) == null ? void 0 : W.responsive_flg) !== 0 && (K += " kg-submit--responsive"), (((Q = y.value) == null ? void 0 : Q.display_type) === KG_VAR_SUBMIT__DISPLAY_TYPE.MODAL || g.value) && (K += " kg-submit--modal"), e.kgClass && (K += ` ${e.kgClass}`), K;
|
9065
9186
|
}), V = reactive({
|
9066
9187
|
isFullscreen: !1
|
9067
9188
|
}), R = computed(() => {
|
9068
|
-
var
|
9069
|
-
switch ((
|
9189
|
+
var K, W, Q, Z;
|
9190
|
+
switch ((K = y.value) == null ? void 0 : K.layout) {
|
9070
9191
|
case "horizontal":
|
9071
9192
|
switch ((W = y.value) == null ? void 0 : W.label_col_unit) {
|
9072
9193
|
case KG_WIDTH_UNIT.SPAN:
|
9073
9194
|
return {
|
9074
|
-
span: (
|
9195
|
+
span: (Q = y.value) == null ? void 0 : Q.label_col
|
9075
9196
|
};
|
9076
9197
|
default:
|
9077
9198
|
return {
|
@@ -9083,14 +9204,14 @@ const getProps$p = () => ({
|
|
9083
9204
|
default:
|
9084
9205
|
return;
|
9085
9206
|
}
|
9086
|
-
}),
|
9087
|
-
var
|
9088
|
-
switch ((
|
9207
|
+
}), X = computed(() => {
|
9208
|
+
var K, W, Q;
|
9209
|
+
switch ((K = y.value) == null ? void 0 : K.layout) {
|
9089
9210
|
case "horizontal":
|
9090
9211
|
switch ((W = y.value) == null ? void 0 : W.label_col_unit) {
|
9091
9212
|
case KG_WIDTH_UNIT.SPAN:
|
9092
9213
|
return {
|
9093
|
-
span: 24 - ((
|
9214
|
+
span: 24 - ((Q = y.value) == null ? void 0 : Q.label_col)
|
9094
9215
|
};
|
9095
9216
|
default:
|
9096
9217
|
return;
|
@@ -9099,17 +9220,17 @@ const getProps$p = () => ({
|
|
9099
9220
|
return;
|
9100
9221
|
}
|
9101
9222
|
});
|
9102
|
-
watch(
|
9103
|
-
|
9223
|
+
watch(Y, (K, W) => {
|
9224
|
+
K === !0 && q(), W === !0 && K === !1 && ee();
|
9104
9225
|
}, {
|
9105
9226
|
immediate: !0
|
9106
|
-
}), watch(y, (
|
9107
|
-
|
9227
|
+
}), watch(y, (K) => {
|
9228
|
+
K != null && K.dft_width && (M.value.kgWidth = K.dft_width);
|
9108
9229
|
}, {
|
9109
9230
|
immediate: !0
|
9110
9231
|
});
|
9111
9232
|
function q() {
|
9112
|
-
var
|
9233
|
+
var K;
|
9113
9234
|
o.store.emit(n.formID, "open", {
|
9114
9235
|
isCreating: l.value,
|
9115
9236
|
isUpdating: u.value,
|
@@ -9117,11 +9238,11 @@ const getProps$p = () => ({
|
|
9117
9238
|
isDeleting: g.value,
|
9118
9239
|
row: a.selectedRow.value,
|
9119
9240
|
model: o.model
|
9120
|
-
}), ((
|
9241
|
+
}), ((K = y.value) == null ? void 0 : K.dft_fullscreen_flg) === 1 && (V.isFullscreen = !0);
|
9121
9242
|
}
|
9122
9243
|
function ee() {
|
9123
|
-
var
|
9124
|
-
|
9244
|
+
var K;
|
9245
|
+
M.value.kgWidth = ((K = y.value) == null ? void 0 : K.dft_width) || DEFAULT_WIDTH, V.isFullscreen = !1, o.store.emit(n.formID, "close");
|
9125
9246
|
}
|
9126
9247
|
function z() {
|
9127
9248
|
switch (!0) {
|
@@ -9140,19 +9261,19 @@ const getProps$p = () => ({
|
|
9140
9261
|
}
|
9141
9262
|
}
|
9142
9263
|
async function te() {
|
9143
|
-
var
|
9264
|
+
var K, W;
|
9144
9265
|
try {
|
9145
9266
|
if (await o.store.emit(n.formID, "beforeOk", {
|
9146
|
-
rules:
|
9267
|
+
rules: G,
|
9147
9268
|
model: o.model
|
9148
9269
|
}))
|
9149
9270
|
return;
|
9150
9271
|
try {
|
9151
|
-
await ((
|
9272
|
+
await ((K = N.value) == null ? void 0 : K.validate());
|
9152
9273
|
} catch (Z) {
|
9153
9274
|
KgUtil.throwIfNotFormError(Z);
|
9154
9275
|
}
|
9155
|
-
switch (await ((W =
|
9276
|
+
switch (await ((W = N.value) == null ? void 0 : W.validate()), !0) {
|
9156
9277
|
case l.value:
|
9157
9278
|
await ie();
|
9158
9279
|
break;
|
@@ -9166,14 +9287,14 @@ const getProps$p = () => ({
|
|
9166
9287
|
await fe();
|
9167
9288
|
break;
|
9168
9289
|
}
|
9169
|
-
} catch (
|
9170
|
-
KgUtil.throwIfNotFormError(
|
9290
|
+
} catch (Q) {
|
9291
|
+
KgUtil.throwIfNotFormError(Q);
|
9171
9292
|
}
|
9172
9293
|
}
|
9173
9294
|
async function ie() {
|
9174
|
-
var W,
|
9175
|
-
const
|
9176
|
-
if (!
|
9295
|
+
var W, Q, Z, ne, ae, oe, re;
|
9296
|
+
const K = (W = _.value) == null ? void 0 : W.cmd;
|
9297
|
+
if (!K) {
|
9177
9298
|
Logger.error("[KgSubmit] \u521B\u5EFA\u6309\u94AE\u7684\u63A5\u53E3\u5730\u5740\u4E3A\u7A7A.", {
|
9178
9299
|
button: _.value
|
9179
9300
|
});
|
@@ -9182,8 +9303,8 @@ const getProps$p = () => ({
|
|
9182
9303
|
n.store.setIsCreatingRequesting(n.formID, !0);
|
9183
9304
|
try {
|
9184
9305
|
await httpClient().request({
|
9185
|
-
method: (Z = (
|
9186
|
-
url:
|
9306
|
+
method: (Z = (Q = _.value) == null ? void 0 : Q.cmd_method) != null ? Z : "POST",
|
9307
|
+
url: K,
|
9187
9308
|
params: KgVarUtil.parseCommandParameter((ae = (ne = _.value) == null ? void 0 : ne.cmd_prm) != null ? ae : ""),
|
9188
9309
|
data: toRaw(o.model.value)
|
9189
9310
|
}), message.success(r.t("kg.createSuccess")), o.store.emit(n.formID, "ok"), n.store.setIsCreating(n.formID, !1), (re = (oe = s.search).value) == null || re.call(oe, !0);
|
@@ -9194,9 +9315,9 @@ const getProps$p = () => ({
|
|
9194
9315
|
}
|
9195
9316
|
}
|
9196
9317
|
async function le() {
|
9197
|
-
var W,
|
9198
|
-
const
|
9199
|
-
if (!
|
9318
|
+
var W, Q, Z, ne, ae, oe, re;
|
9319
|
+
const K = (W = b.value) == null ? void 0 : W.cmd;
|
9320
|
+
if (!K) {
|
9200
9321
|
Logger.error("[KgSubmit] \u66F4\u65B0\u6309\u94AE\u7684\u63A5\u53E3\u5730\u5740\u4E3A\u7A7A.", {
|
9201
9322
|
button: b.value
|
9202
9323
|
});
|
@@ -9204,8 +9325,8 @@ const getProps$p = () => ({
|
|
9204
9325
|
}
|
9205
9326
|
try {
|
9206
9327
|
n.store.setIsUpdatingRequesting(n.formID, !0), await httpClient().request({
|
9207
|
-
method: (Z = (
|
9208
|
-
url:
|
9328
|
+
method: (Z = (Q = b.value) == null ? void 0 : Q.cmd_method) != null ? Z : "POST",
|
9329
|
+
url: K,
|
9209
9330
|
params: KgVarUtil.parseCommandParameter((ae = (ne = b.value) == null ? void 0 : ne.cmd_prm) != null ? ae : ""),
|
9210
9331
|
data: toRaw(o.model.value)
|
9211
9332
|
}), message.success(r.t("kg.updateSuccess")), o.store.emit(n.formID, "ok"), n.store.setIsUpdating(n.formID, !1), (re = (oe = s.search).value) == null || re.call(oe);
|
@@ -9216,9 +9337,9 @@ const getProps$p = () => ({
|
|
9216
9337
|
}
|
9217
9338
|
}
|
9218
9339
|
async function de() {
|
9219
|
-
var W,
|
9220
|
-
const
|
9221
|
-
if (!
|
9340
|
+
var W, Q, Z, ne, ae, oe, re;
|
9341
|
+
const K = (W = m.value) == null ? void 0 : W.cmd;
|
9342
|
+
if (!K) {
|
9222
9343
|
Logger.error("[KgSubmit] \u590D\u5236\u6309\u94AE\u7684\u63A5\u53E3\u5730\u5740\u4E3A\u7A7A.", {
|
9223
9344
|
button: m.value
|
9224
9345
|
});
|
@@ -9228,8 +9349,8 @@ const getProps$p = () => ({
|
|
9228
9349
|
n.store.setIsCopyingRequesting(n.formID, !0);
|
9229
9350
|
const se = toRaw(o.model.value);
|
9230
9351
|
delete se.id, await httpClient().request({
|
9231
|
-
method: (Z = (
|
9232
|
-
url:
|
9352
|
+
method: (Z = (Q = m.value) == null ? void 0 : Q.cmd_method) != null ? Z : "POST",
|
9353
|
+
url: K,
|
9233
9354
|
params: KgVarUtil.parseCommandParameter((ae = (ne = m.value) == null ? void 0 : ne.cmd_prm) != null ? ae : ""),
|
9234
9355
|
data: toRaw(o.model.value)
|
9235
9356
|
}), message.success(r.t("kg.copySuccess")), o.store.emit(n.formID, "ok"), n.store.setIsCopying(n.formID, !1), (re = (oe = s.search).value) == null || re.call(oe, !0);
|
@@ -9240,9 +9361,9 @@ const getProps$p = () => ({
|
|
9240
9361
|
}
|
9241
9362
|
}
|
9242
9363
|
async function fe() {
|
9243
|
-
var W,
|
9244
|
-
const
|
9245
|
-
if (!
|
9364
|
+
var W, Q, Z, ne, ae, oe, re;
|
9365
|
+
const K = (W = v.value) == null ? void 0 : W.cmd;
|
9366
|
+
if (!K) {
|
9246
9367
|
Logger.error("[KgSubmit] \u5220\u9664\u6309\u94AE\u7684\u63A5\u53E3\u5730\u5740\u4E3A\u7A7A.", {
|
9247
9368
|
button: v.value
|
9248
9369
|
});
|
@@ -9250,8 +9371,8 @@ const getProps$p = () => ({
|
|
9250
9371
|
}
|
9251
9372
|
try {
|
9252
9373
|
n.store.setIsDeletingRequesting(n.formID, !0), await httpClient().request({
|
9253
|
-
method: (Z = (
|
9254
|
-
url:
|
9374
|
+
method: (Z = (Q = v.value) == null ? void 0 : Q.cmd_method) != null ? Z : "DELETE",
|
9375
|
+
url: K,
|
9255
9376
|
params: {
|
9256
9377
|
ids: (ae = (ne = a.selectedRows.value) == null ? void 0 : ne.map((se) => {
|
9257
9378
|
var ue;
|
@@ -9267,13 +9388,13 @@ const getProps$p = () => ({
|
|
9267
9388
|
n.store.setIsDeletingRequesting(n.formID, !1);
|
9268
9389
|
}
|
9269
9390
|
}
|
9270
|
-
function ce(
|
9271
|
-
var
|
9272
|
-
const W = (Z = (
|
9391
|
+
function ce(K) {
|
9392
|
+
var Q, Z;
|
9393
|
+
const W = (Z = (Q = i == null ? void 0 : i.KgSubmit) == null ? void 0 : Q["KgForm.Item"]) == null ? void 0 : Z[K.var_nam];
|
9273
9394
|
return isFunction$2(W) ? createVNode(KgForm.Item, {
|
9274
|
-
kgVarName:
|
9395
|
+
kgVarName: K.var_nam,
|
9275
9396
|
kgContext: KG_FORM_CONTEXT.SUBMIT,
|
9276
|
-
kgRules:
|
9397
|
+
kgRules: G.value[K.var_nam],
|
9277
9398
|
onKgSubmit: te
|
9278
9399
|
}, {
|
9279
9400
|
control: ({
|
@@ -9292,22 +9413,22 @@ const getProps$p = () => ({
|
|
9292
9413
|
varSubmitField: ue
|
9293
9414
|
})
|
9294
9415
|
}) : createVNode(KgForm.Item, {
|
9295
|
-
kgVarName:
|
9416
|
+
kgVarName: K.var_nam,
|
9296
9417
|
kgContext: KG_FORM_CONTEXT.SUBMIT,
|
9297
|
-
kgRules:
|
9418
|
+
kgRules: G.value[K.var_nam],
|
9298
9419
|
onKgSubmit: te
|
9299
9420
|
}, null);
|
9300
9421
|
}
|
9301
9422
|
function ge() {
|
9302
|
-
var
|
9303
|
-
let
|
9423
|
+
var Q, Z, ne, ae, oe;
|
9424
|
+
let K, W;
|
9304
9425
|
return createVNode(KgResizable, {
|
9305
|
-
kgType: ((
|
9426
|
+
kgType: ((Q = y.value) == null ? void 0 : Q.display_type) === KG_VAR_SUBMIT__DISPLAY_TYPE.MODAL ? "right" : "left",
|
9306
9427
|
kgMinWidth: (ne = (Z = y.value) == null ? void 0 : Z.min_width) != null ? ne : DEFAULT_MIN_WIDTH,
|
9307
9428
|
kgMaxWidth: (oe = (ae = y.value) == null ? void 0 : ae.max_width) != null ? oe : DEFAULT_MAX_WIDTH,
|
9308
|
-
kgDisabled:
|
9309
|
-
kgWidth: p.value ? 398 :
|
9310
|
-
"onUpdate:kgWidth": (re) =>
|
9429
|
+
kgDisabled: L.value,
|
9430
|
+
kgWidth: p.value ? 398 : M.value.kgWidth,
|
9431
|
+
"onUpdate:kgWidth": (re) => M.value.kgWidth = re
|
9311
9432
|
}, {
|
9312
9433
|
default: () => [createVNode(Spin, {
|
9313
9434
|
spinning: C.value
|
@@ -9315,21 +9436,21 @@ const getProps$p = () => ({
|
|
9315
9436
|
default: () => {
|
9316
9437
|
var re, se;
|
9317
9438
|
return [createVNode(KgForm, {
|
9318
|
-
ref:
|
9439
|
+
ref: N,
|
9319
9440
|
model: o.model.value,
|
9320
9441
|
layout: (se = (re = y.value) == null ? void 0 : re.layout) != null ? se : "vertical",
|
9321
9442
|
labelCol: R.value,
|
9322
|
-
wrapperCol:
|
9443
|
+
wrapperCol: X.value
|
9323
9444
|
}, {
|
9324
9445
|
default: () => [createVNode("div", {
|
9325
|
-
ref:
|
9326
|
-
}, [
|
9446
|
+
ref: P
|
9447
|
+
}, [A.value.length > 0 && createVNode(Row, {
|
9327
9448
|
gutter: 12
|
9328
|
-
}, _isSlot$7(
|
9329
|
-
default: () => [
|
9330
|
-
}),
|
9449
|
+
}, _isSlot$7(K = A.value.map(ce)) ? K : {
|
9450
|
+
default: () => [K]
|
9451
|
+
}), A.value.length > 0 && U.value.length > 0 && createVNode(Divider, null, null), U.value.length > 0 && createVNode(Row, {
|
9331
9452
|
gutter: 12
|
9332
|
-
}, _isSlot$7(W =
|
9453
|
+
}, _isSlot$7(W = U.value.map(ce)) ? W : {
|
9333
9454
|
default: () => [W]
|
9334
9455
|
}), p.value && createVNode("div", {
|
9335
9456
|
style: "text-align: center; padding: 6px 0 12px;"
|
@@ -9340,17 +9461,17 @@ const getProps$p = () => ({
|
|
9340
9461
|
});
|
9341
9462
|
}
|
9342
9463
|
function pe() {
|
9343
|
-
let
|
9464
|
+
let K, W;
|
9344
9465
|
return createVNode("div", null, [createVNode(Button, {
|
9345
9466
|
type: "primary",
|
9346
9467
|
ghost: !w.value,
|
9347
9468
|
disabled: w.value,
|
9348
9469
|
onClick: z
|
9349
|
-
}, _isSlot$7(
|
9350
|
-
default: () => [
|
9470
|
+
}, _isSlot$7(K = r.t("kg.cancel")) ? K : {
|
9471
|
+
default: () => [K]
|
9351
9472
|
}), createVNode(Button, {
|
9352
9473
|
type: "primary",
|
9353
|
-
disabled:
|
9474
|
+
disabled: O.value,
|
9354
9475
|
loading: $.value,
|
9355
9476
|
danger: !!g.value,
|
9356
9477
|
onClick: te
|
@@ -9366,7 +9487,7 @@ const getProps$p = () => ({
|
|
9366
9487
|
function he() {
|
9367
9488
|
return createVNode(KgSubmitHeader, {
|
9368
9489
|
isFullscreen: V.isFullscreen,
|
9369
|
-
"onUpdate:isFullscreen": (
|
9490
|
+
"onUpdate:isFullscreen": (K) => V.isFullscreen = K,
|
9370
9491
|
kgShowFullscreenButton: !p.value,
|
9371
9492
|
kgShowConfigButton: !p.value && e.kgShowConfigButton,
|
9372
9493
|
onKgCancel: z
|
@@ -9375,13 +9496,13 @@ const getProps$p = () => ({
|
|
9375
9496
|
return onUnmounted(() => {
|
9376
9497
|
o.store.dispose(n.formID);
|
9377
9498
|
}), () => createVNode(Drawer, {
|
9378
|
-
visible:
|
9499
|
+
visible: Y.value,
|
9379
9500
|
placement: "right",
|
9380
9501
|
closable: !1,
|
9381
9502
|
maskClosable: !1,
|
9382
9503
|
keyboard: !1,
|
9383
9504
|
destroyOnClose: !0,
|
9384
|
-
width:
|
9505
|
+
width: H.value,
|
9385
9506
|
class: J.value,
|
9386
9507
|
"kg-frm-id": n.formID
|
9387
9508
|
}, {
|
@@ -9766,19 +9887,23 @@ function _useServices() {
|
|
9766
9887
|
filterVarGridDetailByKey: t
|
9767
9888
|
};
|
9768
9889
|
}
|
9769
|
-
const FORM_ID__VAR_GRID_MASTER__SAVE = "kg-table.VarGridMaster.Save",
|
9770
|
-
name: "
|
9890
|
+
const FORM_ID__VAR_GRID_MASTER__SAVE = "kg-table.VarGridMaster.Save", KgTableSettingVarGridMasterSaveAs = defineComponent({
|
9891
|
+
name: "KgTableSettingVarGridMasterSaveAs",
|
9771
9892
|
setup: function(e, {
|
9772
9893
|
slots: t,
|
9773
9894
|
emit: r
|
9774
9895
|
}) {
|
9775
9896
|
const n = inject(KG_DI_FORM_ID, null), a = useKgVar(n);
|
9776
|
-
|
9897
|
+
useKgVar(FORM_ID__VAR_GRID_MASTER__SAVE, !0, a.store.getFormLevel(a.formID) + 1);
|
9898
|
+
const o = useKgSubmit(FORM_ID__VAR_GRID_MASTER__SAVE);
|
9899
|
+
return o.onOpen(async ({
|
9777
9900
|
model: s
|
9778
9901
|
}) => {
|
9779
|
-
var i, l;
|
9780
|
-
return s.value.grd_var_nam = (l = (i = a.currentVarGridMaster.value) == null ? void 0 : i.grd_var_nam) != null ? l : "", !1;
|
9781
|
-
}), (
|
9902
|
+
var i, l, u, c, g, p, _, b, m, v;
|
9903
|
+
return s.value.grd_var_nam = `${(l = (i = a.currentVarGridMaster.value) == null ? void 0 : i.grd_var_nam) != null ? l : ""}_COPY`, s.value.frm_id = (c = (u = a.currentVarGridMaster.value) == null ? void 0 : u.frm_id) != null ? c : "", s.value.usr_id = (p = (g = a.currentVarGridMaster.value) == null ? void 0 : g.usr_id) != null ? p : "", s.value.grp_nam = (b = (_ = a.currentVarGridMaster.value) == null ? void 0 : _.grp_nam) != null ? b : "", s.value.varGridDetails = (v = (m = a.currentVarGridMaster.value) == null ? void 0 : m.varGridDetails) != null ? v : [], !1;
|
9904
|
+
}), o.onBeforeOk(async ({
|
9905
|
+
model: s
|
9906
|
+
}) => (s.value, !1)), o.onOk(async () => (a.store.retrieve(a.formID), !1)), () => createVNode(KgSubmit, null, null);
|
9782
9907
|
}
|
9783
9908
|
});
|
9784
9909
|
function _isSlot$5(e) {
|
@@ -9804,17 +9929,25 @@ const getProps$g = () => ({}), KgTableSetting = defineComponent({
|
|
9804
9929
|
function g(C) {
|
9805
9930
|
C.includes("1") || (i.value = "");
|
9806
9931
|
}
|
9807
|
-
function p() {
|
9932
|
+
async function p() {
|
9808
9933
|
var C;
|
9809
|
-
((C = a.currentVarGridMaster.value) == null ? void 0 : C.cust_lvl) === KG_CUSTOM_LEVEL.L0
|
9810
|
-
|
9811
|
-
|
9812
|
-
|
9813
|
-
|
9814
|
-
|
9815
|
-
|
9816
|
-
|
9817
|
-
|
9934
|
+
if (((C = a.currentVarGridMaster.value) == null ? void 0 : C.cust_lvl) === KG_CUSTOM_LEVEL.L0) {
|
9935
|
+
KgUtil.confirm({
|
9936
|
+
content: n.t("kg.KgTable.canNotUpdateSystemVarGridMaster"),
|
9937
|
+
okButtonProps: {
|
9938
|
+
danger: !1
|
9939
|
+
},
|
9940
|
+
onOk: async () => {
|
9941
|
+
u.value = !0, await nextTick(), a.store.setIsCopying(FORM_ID__VAR_GRID_MASTER__SAVE, !0);
|
9942
|
+
}
|
9943
|
+
});
|
9944
|
+
return;
|
9945
|
+
}
|
9946
|
+
await Update({
|
9947
|
+
data: new UpdateVarGridMasterQuery({
|
9948
|
+
...a.currentVarGridMaster.value
|
9949
|
+
})
|
9950
|
+
}), message.success(n.t("kg.updateSuccess"));
|
9818
9951
|
}
|
9819
9952
|
async function _() {
|
9820
9953
|
u.value = !0, await nextTick(), a.store.setIsCopying(FORM_ID__VAR_GRID_MASTER__SAVE, !0);
|
@@ -9835,7 +9968,7 @@ const getProps$g = () => ({}), KgTableSetting = defineComponent({
|
|
9835
9968
|
allowClear: !0
|
9836
9969
|
}, null), createVNode("ul", {
|
9837
9970
|
class: "ant-dropdown-menu ant-dropdown-menu-vertical"
|
9838
|
-
}, [(C = a.
|
9971
|
+
}, [(C = a.currentVarGridDetails.value) == null ? void 0 : C.map((y) => createVNode("li", {
|
9839
9972
|
class: "ant-dropdown-menu-item ant-dropdown-menu-item-only-child",
|
9840
9973
|
onClick: (E) => {
|
9841
9974
|
E.preventDefault(), E.stopPropagation(), c(y);
|
@@ -9872,7 +10005,8 @@ const getProps$g = () => ({}), KgTableSetting = defineComponent({
|
|
9872
10005
|
return createVNode(Menu.Item, {
|
9873
10006
|
key: k.id,
|
9874
10007
|
class: k.id === ((D = a.currentVarGridMaster.value) == null ? void 0 : D.id) ? "selected" : "",
|
9875
|
-
"kg-var-nam": k.grd_var_nam
|
10008
|
+
"kg-var-nam": k.grd_var_nam,
|
10009
|
+
onClick: () => a.store.setCurrentVarGridMasterID(a.formID, k.id)
|
9876
10010
|
}, {
|
9877
10011
|
default: () => [a.t(k.grd_var_nam).value]
|
9878
10012
|
});
|
@@ -9919,7 +10053,7 @@ const getProps$g = () => ({}), KgTableSetting = defineComponent({
|
|
9919
10053
|
visible: l.visible,
|
9920
10054
|
"onUpdate:visible": (C) => l.visible = C,
|
9921
10055
|
hostFormID: a.formID
|
9922
|
-
}, null), u.value && createVNode(
|
10056
|
+
}, null), u.value && createVNode(KgTableSettingVarGridMasterSaveAs, null, null)]);
|
9923
10057
|
}
|
9924
10058
|
});
|
9925
10059
|
let store$4 = null;
|
@@ -10132,7 +10266,7 @@ function _useColumns() {
|
|
10132
10266
|
function _useLoading() {
|
10133
10267
|
const e = useKgVar(), t = useKgTable();
|
10134
10268
|
return {
|
10135
|
-
isLoading: computed(() => !!(t.isRetrieving.value || e.isRetrievingVar.value))
|
10269
|
+
isLoading: computed(() => !!(t.isRetrieving.value || e.isRetrievingVar.value || e.isRetrievingVarGridMaster.value))
|
10136
10270
|
};
|
10137
10271
|
}
|
10138
10272
|
function _useResizeObserver(e) {
|
@@ -10158,9 +10292,9 @@ const KgTable$1 = "", KgTable = defineComponent({
|
|
10158
10292
|
}) {
|
10159
10293
|
const n = useKg(), a = useKgVar(), o = useKgSearch(), s = useKgButton(), i = useKgTable();
|
10160
10294
|
o.onSearch((V) => {
|
10161
|
-
|
10295
|
+
O(V);
|
10162
10296
|
}), o.onReset(() => {
|
10163
|
-
|
10297
|
+
O(!0);
|
10164
10298
|
});
|
10165
10299
|
const l = ref(!1), {
|
10166
10300
|
columns: u,
|
@@ -10191,12 +10325,12 @@ const KgTable$1 = "", KgTable = defineComponent({
|
|
10191
10325
|
var V, R;
|
10192
10326
|
return (R = (V = _.value) == null ? void 0 : V.cmd) != null ? R : null;
|
10193
10327
|
}), D = computed(() => {
|
10194
|
-
var R,
|
10328
|
+
var R, X, q, ee, z, te, ie;
|
10195
10329
|
let V = {
|
10196
|
-
pageNo:
|
10197
|
-
pageSize:
|
10198
|
-
...
|
10199
|
-
...(
|
10330
|
+
pageNo: A.pageIndex,
|
10331
|
+
pageSize: A.pageSize,
|
10332
|
+
...U,
|
10333
|
+
...(X = (R = o.model) == null ? void 0 : R.value) != null ? X : {}
|
10200
10334
|
};
|
10201
10335
|
return _.value && (V = {
|
10202
10336
|
...V,
|
@@ -10214,26 +10348,26 @@ const KgTable$1 = "", KgTable = defineComponent({
|
|
10214
10348
|
hideSelectAll: !b.value,
|
10215
10349
|
selectedRowKeys: I,
|
10216
10350
|
preserveSelectedRowKeys: !1,
|
10217
|
-
onSelect: (R) =>
|
10218
|
-
onChange: (R) => b.value &&
|
10351
|
+
onSelect: (R) => L(R),
|
10352
|
+
onChange: (R) => b.value && M(R)
|
10219
10353
|
};
|
10220
|
-
}),
|
10354
|
+
}), x = computed(() => {
|
10221
10355
|
let V = "kg-table";
|
10222
10356
|
return !v.value && !C.value && (V += " kg-table--no-bottom"), V;
|
10223
|
-
}),
|
10357
|
+
}), F = ref([]), I = ref([]), A = reactive({
|
10224
10358
|
pageIndex: 1,
|
10225
10359
|
pageSize: 10,
|
10226
10360
|
total: 0
|
10227
|
-
}),
|
10361
|
+
}), U = reactive({
|
10228
10362
|
column: void 0,
|
10229
10363
|
order: void 0
|
10230
10364
|
}), $ = watch(E, (V) => {
|
10231
|
-
V && (setTimeout(() => $()),
|
10365
|
+
V && (setTimeout(() => $()), A.pageSize = V), l.value = !0;
|
10232
10366
|
});
|
10233
10367
|
watch(y, (V) => {
|
10234
|
-
V.length > 0 && !V.includes(
|
10235
|
-
}), watch([k, m, () => o.isReady], ([V, R,
|
10236
|
-
V && R &&
|
10368
|
+
V.length > 0 && !V.includes(A.pageSize) && (A.pageSize = E.value);
|
10369
|
+
}), watch([k, m, () => o.isReady], ([V, R, X]) => {
|
10370
|
+
V && R && X && !i.store.getIsRetrieved(a.formID) && O(!0);
|
10237
10371
|
}, {
|
10238
10372
|
immediate: !0
|
10239
10373
|
}), onUnmounted(() => {
|
@@ -10247,10 +10381,10 @@ const KgTable$1 = "", KgTable = defineComponent({
|
|
10247
10381
|
}
|
10248
10382
|
switch (V == null ? void 0 : V.detail) {
|
10249
10383
|
case 1:
|
10250
|
-
I.value = [R.id], i.store.setSelectedRows(a.formID, I.value.map((
|
10384
|
+
I.value = [R.id], i.store.setSelectedRows(a.formID, I.value.map((X) => {
|
10251
10385
|
var q;
|
10252
|
-
return (q =
|
10253
|
-
}).filter((
|
10386
|
+
return (q = F.value) == null ? void 0 : q.find((ee) => ee.id === X);
|
10387
|
+
}).filter((X) => !!X));
|
10254
10388
|
break;
|
10255
10389
|
case 2:
|
10256
10390
|
i.store.emit(a.formID, "rowDoubleClick", R);
|
@@ -10258,13 +10392,13 @@ const KgTable$1 = "", KgTable = defineComponent({
|
|
10258
10392
|
}
|
10259
10393
|
}
|
10260
10394
|
}
|
10261
|
-
function
|
10395
|
+
function O(V = !1) {
|
10262
10396
|
const R = watch(l, (q) => {
|
10263
|
-
q && (setTimeout(() => R()),
|
10397
|
+
q && (setTimeout(() => R()), X());
|
10264
10398
|
}, {
|
10265
10399
|
immediate: !0
|
10266
10400
|
});
|
10267
|
-
async function
|
10401
|
+
async function X() {
|
10268
10402
|
var q, ee;
|
10269
10403
|
if (!k.value) {
|
10270
10404
|
Logger.error("[KgTable] \u67E5\u8BE2\u6309\u94AE\u7684\u63A5\u53E3\u5730\u5740\u4E3A\u7A7A.", {
|
@@ -10272,14 +10406,14 @@ const KgTable$1 = "", KgTable = defineComponent({
|
|
10272
10406
|
});
|
10273
10407
|
return;
|
10274
10408
|
}
|
10275
|
-
V && (
|
10409
|
+
V && (A.pageIndex = 1), i.store.setIsRetrieving(a.formID, !0);
|
10276
10410
|
try {
|
10277
10411
|
const z = await httpClient().request({
|
10278
10412
|
method: "GET",
|
10279
10413
|
url: k.value,
|
10280
10414
|
params: D.value
|
10281
10415
|
});
|
10282
|
-
z ? isArrayLike(z) ? (
|
10416
|
+
z ? isArrayLike(z) ? (F.value = z, A.total = z.length) : "total" in z && "records" in z && (F.value = (q = z.records) != null ? q : [], A.total = (ee = z.total) != null ? ee : 0) : (F.value = [], A.total = 0), i.store.emit(a.formID, "retrieve", z), w(), await nextTick(), i.store.setIsRetrieved(a.formID, !0);
|
10283
10417
|
} catch (z) {
|
10284
10418
|
throw z;
|
10285
10419
|
} finally {
|
@@ -10287,14 +10421,14 @@ const KgTable$1 = "", KgTable = defineComponent({
|
|
10287
10421
|
}
|
10288
10422
|
}
|
10289
10423
|
}
|
10290
|
-
function
|
10424
|
+
function M(V) {
|
10291
10425
|
I.value = V, i.store.setSelectedRows(a.formID, I.value.map((R) => {
|
10292
|
-
var
|
10293
|
-
return (
|
10426
|
+
var X;
|
10427
|
+
return (X = F.value) == null ? void 0 : X.find((q) => q.id === R);
|
10294
10428
|
}).filter((R) => !!R));
|
10295
10429
|
}
|
10296
|
-
function
|
10297
|
-
var R,
|
10430
|
+
function L(V) {
|
10431
|
+
var R, X;
|
10298
10432
|
switch (b.value) {
|
10299
10433
|
case !0:
|
10300
10434
|
{
|
@@ -10305,37 +10439,37 @@ const KgTable$1 = "", KgTable = defineComponent({
|
|
10305
10439
|
case !1:
|
10306
10440
|
{
|
10307
10441
|
const q = V.id;
|
10308
|
-
(
|
10442
|
+
(X = I.value) != null && X.includes(q) ? I.value = [] : I.value = [q];
|
10309
10443
|
}
|
10310
10444
|
break;
|
10311
10445
|
}
|
10312
10446
|
i.store.setSelectedRows(a.formID, I.value.map((q) => {
|
10313
10447
|
var ee;
|
10314
|
-
return (ee =
|
10448
|
+
return (ee = F.value) == null ? void 0 : ee.find((z) => z.id === q);
|
10315
10449
|
}).filter((q) => !!q));
|
10316
10450
|
}
|
10317
|
-
function
|
10451
|
+
function N(V, R) {
|
10318
10452
|
R.width = V, a.store.setVarGridDetailWidth(a.formID, R.dataIndex, V);
|
10319
10453
|
}
|
10320
|
-
async function
|
10454
|
+
async function G(V, R, X, q) {
|
10321
10455
|
var ee;
|
10322
10456
|
switch (q.action) {
|
10323
10457
|
case "sort":
|
10324
10458
|
{
|
10325
10459
|
await nextTick();
|
10326
|
-
let z =
|
10327
|
-
z.order ? (
|
10460
|
+
let z = X;
|
10461
|
+
z.order ? (U.column = (ee = z.field) != null ? ee : void 0, U.order = z.order === "ascend" ? "asc" : z.order === "descend" ? "desc" : void 0) : (U.column = void 0, U.order = void 0), O(!0);
|
10328
10462
|
}
|
10329
10463
|
break;
|
10330
10464
|
}
|
10331
10465
|
}
|
10332
|
-
function
|
10333
|
-
R !==
|
10466
|
+
function P(V, R) {
|
10467
|
+
R !== A.pageSize ? (A.pageIndex = 1, A.pageSize = R) : A.pageIndex = V, O();
|
10334
10468
|
}
|
10335
10469
|
function B(V) {
|
10336
10470
|
I.value = [V.id], i.store.setSelectedRows(a.formID, I.value.map((R) => {
|
10337
|
-
var
|
10338
|
-
return (
|
10471
|
+
var X;
|
10472
|
+
return (X = F.value) == null ? void 0 : X.find((q) => q.id === R);
|
10339
10473
|
}).filter((R) => !!R)), s.click(a.formID, KG_BUTTON_TYPE.UPDATE);
|
10340
10474
|
}
|
10341
10475
|
function H({
|
@@ -10352,28 +10486,28 @@ const KgTable$1 = "", KgTable = defineComponent({
|
|
10352
10486
|
function Y({
|
10353
10487
|
column: V,
|
10354
10488
|
index: R,
|
10355
|
-
record:
|
10489
|
+
record: X,
|
10356
10490
|
value: q,
|
10357
10491
|
text: ee
|
10358
10492
|
}) {
|
10359
10493
|
let z = "";
|
10360
10494
|
V.customRender ? z = V.customRender({
|
10361
10495
|
index: R,
|
10362
|
-
record:
|
10496
|
+
record: X,
|
10363
10497
|
column: V,
|
10364
10498
|
text: ee,
|
10365
10499
|
value: q,
|
10366
10500
|
renderIndex: R
|
10367
10501
|
}) : z = q;
|
10368
10502
|
const te = createVNode(KgTableCell, {
|
10369
|
-
kgRow:
|
10503
|
+
kgRow: X,
|
10370
10504
|
kgValue: z,
|
10371
10505
|
kgVarName: V.dataIndex,
|
10372
|
-
onKgUpdateLinkClick: () => B(
|
10506
|
+
onKgUpdateLinkClick: () => B(X)
|
10373
10507
|
}, null);
|
10374
10508
|
return t.bodyCell ? t.bodyCell({
|
10375
10509
|
value: q,
|
10376
|
-
record:
|
10510
|
+
record: X,
|
10377
10511
|
index: R,
|
10378
10512
|
column: V,
|
10379
10513
|
defaultRender: te
|
@@ -10383,7 +10517,7 @@ const KgTable$1 = "", KgTable = defineComponent({
|
|
10383
10517
|
return !m.value && !i.store.getIsRetrieved(a.formID) ? n.t("kg.KgTable.emptyText") : n.t("kg.emptyText");
|
10384
10518
|
}
|
10385
10519
|
return () => createVNode("div", {
|
10386
|
-
class:
|
10520
|
+
class: x.value,
|
10387
10521
|
"kg-frm-id": a.formID,
|
10388
10522
|
ref: p
|
10389
10523
|
}, [createVNode(Table, {
|
@@ -10396,15 +10530,15 @@ const KgTable$1 = "", KgTable = defineComponent({
|
|
10396
10530
|
pagination: !1,
|
10397
10531
|
showSorterTooltip: !1,
|
10398
10532
|
columns: u.value,
|
10399
|
-
dataSource:
|
10533
|
+
dataSource: F.value,
|
10400
10534
|
loading: g.value,
|
10401
10535
|
rowKey: "id",
|
10402
10536
|
rowSelection: T.value,
|
10403
10537
|
customRow: (V) => ({
|
10404
10538
|
onClick: (R) => w(R, V)
|
10405
10539
|
}),
|
10406
|
-
onResizeColumn:
|
10407
|
-
onChange:
|
10540
|
+
onResizeColumn: N,
|
10541
|
+
onChange: G
|
10408
10542
|
}, {
|
10409
10543
|
headerCell: H,
|
10410
10544
|
bodyCell: Y,
|
@@ -10415,7 +10549,7 @@ const KgTable$1 = "", KgTable = defineComponent({
|
|
10415
10549
|
class: "left"
|
10416
10550
|
}, [v.value && createVNode(KgTableInfo, {
|
10417
10551
|
kgShowClearCheck: I.value.length > 0,
|
10418
|
-
kgShowClearTable:
|
10552
|
+
kgShowClearTable: A.total > 0,
|
10419
10553
|
kgShowLocate: I.value.length === 1,
|
10420
10554
|
kgTotal: I.value.length,
|
10421
10555
|
kgDisabled: g.value
|
@@ -10423,14 +10557,14 @@ const KgTable$1 = "", KgTable = defineComponent({
|
|
10423
10557
|
class: "right"
|
10424
10558
|
}, [C.value && createVNode(Pagination, {
|
10425
10559
|
size: "default",
|
10426
|
-
current:
|
10427
|
-
pageSize:
|
10560
|
+
current: A.pageIndex,
|
10561
|
+
pageSize: A.pageSize,
|
10428
10562
|
pageSizeOptions: y.value.map((V) => String(V)),
|
10429
|
-
total:
|
10563
|
+
total: A.total,
|
10430
10564
|
showSizeChanger: !0,
|
10431
10565
|
showQuickJumper: !1,
|
10432
10566
|
hideOnSinglePage: !1,
|
10433
|
-
disabled: g.value ||
|
10567
|
+
disabled: g.value || A.total === 0,
|
10434
10568
|
locale: {
|
10435
10569
|
page: ""
|
10436
10570
|
},
|
@@ -10439,7 +10573,7 @@ const KgTable$1 = "", KgTable = defineComponent({
|
|
10439
10573
|
to: R[1],
|
10440
10574
|
total: V
|
10441
10575
|
}),
|
10442
|
-
onChange: (V, R) =>
|
10576
|
+
onChange: (V, R) => P(V, R)
|
10443
10577
|
}, null)])])]);
|
10444
10578
|
}
|
10445
10579
|
}), getProps$f = () => ({
|
@@ -11549,7 +11683,7 @@ const leftVarProfileDetailColumns = (e) => {
|
|
11549
11683
|
row: C,
|
11550
11684
|
model: y
|
11551
11685
|
}) => {
|
11552
|
-
var k, D;
|
11686
|
+
var k, D, T;
|
11553
11687
|
const E = i.store.getSystemVarProfileDetails(i.formID);
|
11554
11688
|
switch (l.value = E ? cloneDeep(unref(toRaw(E))) : [], !0) {
|
11555
11689
|
case b:
|
@@ -11560,24 +11694,24 @@ const leftVarProfileDetailColumns = (e) => {
|
|
11560
11694
|
if (C != null && C.id)
|
11561
11695
|
try {
|
11562
11696
|
s.store.setIsLoading(n.formID, !0);
|
11563
|
-
const
|
11697
|
+
const x = await QueryByID({
|
11564
11698
|
params: {
|
11565
11699
|
id: C.id
|
11566
11700
|
}
|
11567
11701
|
});
|
11568
|
-
l.value = l.value.map((
|
11569
|
-
var
|
11570
|
-
const
|
11571
|
-
return
|
11572
|
-
...P,
|
11702
|
+
l.value = l.value.map((I) => {
|
11703
|
+
var U;
|
11704
|
+
const A = (U = x == null ? void 0 : x.varProfileDetails) == null ? void 0 : U.find(($) => $.var_nam === I.var_nam);
|
11705
|
+
return A ? {
|
11573
11706
|
...I,
|
11574
|
-
|
11575
|
-
|
11707
|
+
...A,
|
11708
|
+
id: I.id
|
11709
|
+
} : I;
|
11576
11710
|
});
|
11577
|
-
const
|
11578
|
-
u.value = l.value.filter((
|
11579
|
-
} catch (
|
11580
|
-
throw
|
11711
|
+
const F = (D = (k = x == null ? void 0 : x.varProfileDetails) == null ? void 0 : k.map((I) => I.var_nam)) != null ? D : [];
|
11712
|
+
u.value = l.value.filter((I) => F.includes(I.var_nam)).map((I) => I.id);
|
11713
|
+
} catch (x) {
|
11714
|
+
throw x;
|
11581
11715
|
} finally {
|
11582
11716
|
s.store.setIsLoading(n.formID, !1);
|
11583
11717
|
}
|
@@ -11587,15 +11721,16 @@ const leftVarProfileDetailColumns = (e) => {
|
|
11587
11721
|
}
|
11588
11722
|
switch (!0) {
|
11589
11723
|
case v:
|
11590
|
-
y.value.prf_var_nam = y.value.prf_var_nam + "_COPY";
|
11724
|
+
y.value.prf_var_nam = ((T = y.value.prf_var_nam) != null ? T : "") + "_COPY";
|
11591
11725
|
break;
|
11592
11726
|
}
|
11593
11727
|
return !1;
|
11594
11728
|
}), s.onBeforeOk(async ({
|
11595
11729
|
model: b
|
11596
11730
|
}) => {
|
11597
|
-
var
|
11598
|
-
|
11731
|
+
var v, C;
|
11732
|
+
const m = b.value;
|
11733
|
+
return m.frm_id = i.formID, m.varProfileDetails = (C = (v = l.value) == null ? void 0 : v.filter((y) => u.value.includes(y.id))) != null ? C : [], !1;
|
11599
11734
|
}), s.onOk(async () => (i.store.retrieve(i.formID), !1)), o.onBeforeUpdate(({
|
11600
11735
|
row: b
|
11601
11736
|
}) => (b == null ? void 0 : b.cust_lvl) === KG_CUSTOM_LEVEL.L0 ? new Promise((m) => {
|
@@ -11639,8 +11774,8 @@ const leftVarProfileDetailColumns = (e) => {
|
|
11639
11774
|
direction: k,
|
11640
11775
|
filteredItems: D,
|
11641
11776
|
selectedKeys: T,
|
11642
|
-
disabled:
|
11643
|
-
onItemSelectAll:
|
11777
|
+
disabled: x,
|
11778
|
+
onItemSelectAll: F,
|
11644
11779
|
onItemSelect: I
|
11645
11780
|
}) => createVNode(Table, {
|
11646
11781
|
pagination: !1,
|
@@ -11653,13 +11788,13 @@ const leftVarProfileDetailColumns = (e) => {
|
|
11653
11788
|
columns: k === "left" ? leftVarProfileDetailColumns(e.hostFormID) : rightVarProfileDetailColumns(e.hostFormID),
|
11654
11789
|
rowKey: "id",
|
11655
11790
|
dataSource: D,
|
11656
|
-
customRow: (
|
11657
|
-
onClick: (
|
11791
|
+
customRow: (A) => ({
|
11792
|
+
onClick: (U) => _(U, A, k, T)
|
11658
11793
|
}),
|
11659
11794
|
rowSelection: g({
|
11660
|
-
disabled:
|
11795
|
+
disabled: x,
|
11661
11796
|
selectedKeys: T,
|
11662
|
-
onItemSelectAll:
|
11797
|
+
onItemSelectAll: F,
|
11663
11798
|
onItemSelect: I
|
11664
11799
|
})
|
11665
11800
|
}, null)
|
@@ -11821,11 +11956,11 @@ const KgSearch$1 = "", getProps$9 = () => ({}), KgSearch = defineComponent({
|
|
11821
11956
|
const t = useKg(), r = useKgVar(), n = useKgSearch(), a = useKgTable();
|
11822
11957
|
_useLayoutHeaderResizeObserver();
|
11823
11958
|
const o = computed(() => r.store.getFormLevel(r.formID)), s = computed(() => r.store.getVarProfileConfig(r.formID)), i = computed(() => {
|
11824
|
-
var
|
11825
|
-
return o.value > 0 ? !1 : ((
|
11959
|
+
var P;
|
11960
|
+
return o.value > 0 ? !1 : ((P = s.value) == null ? void 0 : P.header_teleport_flg) !== 0;
|
11826
11961
|
}), l = computed(() => getDefaultHeight(r.currentVarProfileDetails.value, i.value)), u = computed(() => getMaxHeight(r.currentVarProfileDetails.value, i.value)), c = computed(() => i.value ? 1 : HEADER_HEIGHT), g = computed(() => {
|
11827
|
-
var
|
11828
|
-
return !!(a.isRetrieving.value || ((
|
11962
|
+
var P, B;
|
11963
|
+
return !!(a.isRetrieving.value || ((P = E.value) == null ? void 0 : P.permission_type) === 2 && !t.p((B = E.value) == null ? void 0 : B.permission_code));
|
11829
11964
|
}), p = computed(() => !!a.isRetrieving.value), _ = computed(() => !!a.isRetrieving.value), b = ref(null), m = ref({
|
11830
11965
|
kgHeight: c.value
|
11831
11966
|
}), v = ref({
|
@@ -11833,12 +11968,12 @@ const KgSearch$1 = "", getProps$9 = () => ({}), KgSearch = defineComponent({
|
|
11833
11968
|
});
|
11834
11969
|
let C;
|
11835
11970
|
const y = computed(() => m.value.kgHeight === c.value), E = computed(() => r.store.getVarButtonSearch(r.formID)), k = computed(() => {
|
11836
|
-
var
|
11837
|
-
if (r.t((
|
11971
|
+
var P, B, H;
|
11972
|
+
if (r.t((P = E.value) == null ? void 0 : P.var_nam).value !== ((B = E.value) == null ? void 0 : B.var_nam))
|
11838
11973
|
return r.t((H = E.value) == null ? void 0 : H.var_nam).value;
|
11839
11974
|
}), D = computed(() => {
|
11840
|
-
var
|
11841
|
-
switch ((
|
11975
|
+
var P;
|
11976
|
+
switch ((P = E.value) == null ? void 0 : P.primary_flg) {
|
11842
11977
|
case 1:
|
11843
11978
|
return !0;
|
11844
11979
|
case 0:
|
@@ -11847,16 +11982,16 @@ const KgSearch$1 = "", getProps$9 = () => ({}), KgSearch = defineComponent({
|
|
11847
11982
|
return !0;
|
11848
11983
|
}
|
11849
11984
|
}), T = computed(() => {
|
11850
|
-
var
|
11851
|
-
return ((
|
11852
|
-
}),
|
11853
|
-
let
|
11854
|
-
return T.value && (
|
11855
|
-
});
|
11856
|
-
watch(r.currentVarProfileDetails, (
|
11857
|
-
if (
|
11985
|
+
var P;
|
11986
|
+
return ((P = s.value) == null ? void 0 : P.vis_flg) === 1;
|
11987
|
+
}), x = computed(() => !!(r.isRetrievingVar.value || r.isRetrievingVarProfileMaster.value || i.value && !!r.isOtherRequesting.value)), F = computed(() => !!r.isRetrievingVar.value || !!r.isRetrievingVarProfileMaster.value), I = computed(() => {
|
11988
|
+
let P = "kg-search";
|
11989
|
+
return T.value && (P += " kg-search--visible"), i.value && (P += " kg-search--teleport"), P;
|
11990
|
+
});
|
11991
|
+
watch(r.currentVarProfileDetails, (P) => {
|
11992
|
+
if (P) {
|
11858
11993
|
const B = {};
|
11859
|
-
|
11994
|
+
P.forEach((H) => {
|
11860
11995
|
B[H.var_nam] = "";
|
11861
11996
|
}), m.value.kgHeight = l.value, n.store.setModel(r.formID, reactive(B)), T.value ? (C == null || C(), C = watch(b, (H) => {
|
11862
11997
|
H && (n.store.emit(r.formID, "ready"), n.store.setIsReady(r.formID, !0));
|
@@ -11869,23 +12004,23 @@ const KgSearch$1 = "", getProps$9 = () => ({}), KgSearch = defineComponent({
|
|
11869
12004
|
}), onUnmounted(() => {
|
11870
12005
|
n.store.dispose(r.formID);
|
11871
12006
|
});
|
11872
|
-
function
|
12007
|
+
function A(P = !1) {
|
11873
12008
|
T.value ? b.value && b.value.validate().then(() => {
|
11874
12009
|
n.store.emit(r.formID, "search", {
|
11875
|
-
resetPageIndex:
|
12010
|
+
resetPageIndex: P
|
11876
12011
|
});
|
11877
12012
|
}).catch((B) => {
|
11878
12013
|
Logger.debug("[KgSearch] \u8868\u5355\u9A8C\u8BC1\u5931\u8D25", {
|
11879
12014
|
e: B
|
11880
12015
|
});
|
11881
12016
|
}) : n.store.emit(r.formID, "search", {
|
11882
|
-
resetPageIndex:
|
12017
|
+
resetPageIndex: P
|
11883
12018
|
});
|
11884
12019
|
}
|
11885
|
-
n.store.setSearchFn(r.formID,
|
11886
|
-
function
|
11887
|
-
var
|
11888
|
-
(
|
12020
|
+
n.store.setSearchFn(r.formID, A);
|
12021
|
+
function U() {
|
12022
|
+
var P;
|
12023
|
+
(P = b.value) == null || P.resetFields(), T.value ? b.value && b.value.validate().then(() => {
|
11889
12024
|
n.store.emit(r.formID, "reset");
|
11890
12025
|
}).catch((B) => {
|
11891
12026
|
Logger.debug("[KgSearch] \u8868\u5355\u9A8C\u8BC1\u5931\u8D25", {
|
@@ -11893,23 +12028,23 @@ const KgSearch$1 = "", getProps$9 = () => ({}), KgSearch = defineComponent({
|
|
11893
12028
|
});
|
11894
12029
|
}) : n.store.emit(r.formID, "reset");
|
11895
12030
|
}
|
11896
|
-
n.store.setResetFn(r.formID,
|
12031
|
+
n.store.setResetFn(r.formID, U);
|
11897
12032
|
function $() {
|
11898
|
-
return
|
12033
|
+
return A(!0), Promise.resolve(!0);
|
11899
12034
|
}
|
11900
12035
|
function w() {
|
11901
12036
|
return createVNode("div", {
|
11902
12037
|
class: "title",
|
11903
|
-
onClick:
|
12038
|
+
onClick: G
|
11904
12039
|
}, [y.value ? createVNode(CaretUpOutlined$1, null, null) : createVNode(CaretDownOutlined$1, null, null), createVNode("span", null, [t.t("kg.KgSearch.title")])]);
|
11905
12040
|
}
|
11906
|
-
function
|
11907
|
-
var
|
11908
|
-
return ((H = (B = (
|
12041
|
+
function O() {
|
12042
|
+
var P, B, H, Y;
|
12043
|
+
return ((H = (B = (P = r.varProfileMasters) == null ? void 0 : P.value) == null ? void 0 : B.length) != null ? H : 0) === 0 ? null : createVNode(Fragment, null, [createVNode(Select, {
|
11909
12044
|
value: (Y = r.currentVarProfileMasterID.value) != null ? Y : void 0,
|
11910
12045
|
"onUpdate:value": (J) => r.store.setCurrentVarProfileMasterID(r.formID, J),
|
11911
12046
|
disabled: p.value,
|
11912
|
-
onChange:
|
12047
|
+
onChange: N,
|
11913
12048
|
class: "kg-search-profile-master-select"
|
11914
12049
|
}, {
|
11915
12050
|
default: () => {
|
@@ -11935,13 +12070,13 @@ const KgSearch$1 = "", getProps$9 = () => ({}), KgSearch = defineComponent({
|
|
11935
12070
|
hostFormID: r.formID
|
11936
12071
|
}, null)]);
|
11937
12072
|
}
|
11938
|
-
function
|
11939
|
-
var
|
11940
|
-
return createVNode(Fragment, null, [
|
12073
|
+
function M() {
|
12074
|
+
var P, B, H, Y, J;
|
12075
|
+
return createVNode(Fragment, null, [O(), !(((P = E.value) == null ? void 0 : P.permission_type) !== 2 && !t.p((B = E.value) == null ? void 0 : B.permission_code)) && createVNode(Button, {
|
11941
12076
|
type: "primary",
|
11942
12077
|
ghost: !g.value,
|
11943
12078
|
disabled: g.value,
|
11944
|
-
onClick:
|
12079
|
+
onClick: U,
|
11945
12080
|
class: "kg-search-btn-reset"
|
11946
12081
|
}, {
|
11947
12082
|
default: () => [createVNode(ReloadOutlined$1, null, null), t.t("kg.reset")]
|
@@ -11956,15 +12091,15 @@ const KgSearch$1 = "", getProps$9 = () => ({}), KgSearch = defineComponent({
|
|
11956
12091
|
onKgClick: $
|
11957
12092
|
}, null)]);
|
11958
12093
|
}
|
11959
|
-
function
|
12094
|
+
function L() {
|
11960
12095
|
return createVNode(Spin, {
|
11961
|
-
spinning:
|
12096
|
+
spinning: F.value
|
11962
12097
|
}, {
|
11963
12098
|
default: () => {
|
11964
|
-
var
|
12099
|
+
var P;
|
11965
12100
|
return [createVNode(KgForm, {
|
11966
12101
|
ref: b,
|
11967
|
-
model: (
|
12102
|
+
model: (P = n.model.value) != null ? P : {}
|
11968
12103
|
}, {
|
11969
12104
|
default: () => [createVNode(Row, null, {
|
11970
12105
|
default: () => {
|
@@ -11972,7 +12107,7 @@ const KgSearch$1 = "", getProps$9 = () => ({}), KgSearch = defineComponent({
|
|
11972
12107
|
return [(B = r.currentVarProfileDetails.value) == null ? void 0 : B.map((H) => createVNode(KgForm.Item, {
|
11973
12108
|
kgVarName: H.var_nam,
|
11974
12109
|
kgContext: KG_FORM_CONTEXT.SEARCH,
|
11975
|
-
onKgSubmit: () =>
|
12110
|
+
onKgSubmit: () => A(!0)
|
11976
12111
|
}, null))];
|
11977
12112
|
}
|
11978
12113
|
})]
|
@@ -11980,19 +12115,19 @@ const KgSearch$1 = "", getProps$9 = () => ({}), KgSearch = defineComponent({
|
|
11980
12115
|
}
|
11981
12116
|
});
|
11982
12117
|
}
|
11983
|
-
function
|
11984
|
-
console.log("333:value",
|
12118
|
+
function N(P) {
|
12119
|
+
console.log("333:value", P);
|
11985
12120
|
}
|
11986
|
-
function
|
12121
|
+
function G() {
|
11987
12122
|
y.value ? m.value.kgHeight = l.value : m.value.kgHeight = c.value;
|
11988
12123
|
}
|
11989
12124
|
return () => createVNode(KgResizable, {
|
11990
|
-
class: I.value,
|
11991
|
-
"kg-frm-id": r.formID,
|
11992
12125
|
kgHeight: m.value.kgHeight,
|
11993
|
-
"onUpdate:kgHeight": (
|
12126
|
+
"onUpdate:kgHeight": (P) => m.value.kgHeight = P,
|
11994
12127
|
kgMinHeight: c.value,
|
11995
|
-
kgMaxHeight: u.value
|
12128
|
+
kgMaxHeight: u.value,
|
12129
|
+
class: I.value,
|
12130
|
+
"kg-frm-id": r.formID
|
11996
12131
|
}, {
|
11997
12132
|
default: () => [T.value && createVNode("div", {
|
11998
12133
|
class: "ant-collapse ant-collapse-icon-position-left"
|
@@ -12005,17 +12140,17 @@ const KgSearch$1 = "", getProps$9 = () => ({}), KgSearch = defineComponent({
|
|
12005
12140
|
default: () => [createVNode("div", {
|
12006
12141
|
class: "ant-collapse-header"
|
12007
12142
|
}, [createVNode(Spin, {
|
12008
|
-
spinning:
|
12143
|
+
spinning: x.value
|
12009
12144
|
}, {
|
12010
12145
|
default: () => [w(), createVNode("div", {
|
12011
12146
|
class: "ant-collapse-extra"
|
12012
|
-
}, [
|
12147
|
+
}, [M()])]
|
12013
12148
|
})])]
|
12014
12149
|
}), createVNode("div", {
|
12015
12150
|
class: "ant-collapse-content ant-collapse-content-active"
|
12016
12151
|
}, [createVNode("div", {
|
12017
12152
|
class: "ant-collapse-content-box"
|
12018
|
-
}, [
|
12153
|
+
}, [L()])])])])]
|
12019
12154
|
});
|
12020
12155
|
}
|
12021
12156
|
});
|
@@ -12486,7 +12621,7 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
|
|
12486
12621
|
columnWidth: 32,
|
12487
12622
|
hideSelectAll: !0,
|
12488
12623
|
selectedRowKeys: g,
|
12489
|
-
onSelect: ($) =>
|
12624
|
+
onSelect: ($) => x($)
|
12490
12625
|
}), _ = ref({
|
12491
12626
|
visible: !1
|
12492
12627
|
}), b = computed(() => !!(unref(c) || unref(a) || unref(o) || unref(s))), m = computed(() => {
|
@@ -12498,15 +12633,15 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
|
|
12498
12633
|
}, {
|
12499
12634
|
immediate: !0
|
12500
12635
|
}), watch(() => n.getSelectedVarCatalog, async ($) => {
|
12501
|
-
var w,
|
12502
|
-
l.value.var_text = (w = $ == null ? void 0 : $.var_text) != null ? w : "", (
|
12636
|
+
var w, O;
|
12637
|
+
l.value.var_text = (w = $ == null ? void 0 : $.var_text) != null ? w : "", (O = i.value) == null || O.clearValidate();
|
12503
12638
|
});
|
12504
12639
|
async function y($ = !1) {
|
12505
|
-
var w,
|
12640
|
+
var w, O, M;
|
12506
12641
|
a.value = !0;
|
12507
12642
|
try {
|
12508
12643
|
const {
|
12509
|
-
records:
|
12644
|
+
records: L
|
12510
12645
|
} = await List({
|
12511
12646
|
params: {
|
12512
12647
|
pageNo: 1,
|
@@ -12517,49 +12652,49 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
|
|
12517
12652
|
order: "asc"
|
12518
12653
|
}
|
12519
12654
|
});
|
12520
|
-
if (c.value = null, u.value =
|
12521
|
-
const
|
12522
|
-
var
|
12523
|
-
return
|
12655
|
+
if (c.value = null, u.value = L != null ? L : [], $) {
|
12656
|
+
const N = u.value.find((G) => {
|
12657
|
+
var P;
|
12658
|
+
return G.id === ((P = n.getSelectedVarCatalog) == null ? void 0 : P.id);
|
12524
12659
|
});
|
12525
|
-
n.setSelectedVarCatalog(
|
12660
|
+
n.setSelectedVarCatalog(N != null ? N : null), g.value = N != null && N.id ? [N.id] : [];
|
12526
12661
|
} else
|
12527
|
-
n.setSelectedVarCatalog((
|
12528
|
-
} catch (
|
12529
|
-
Logger.debug(
|
12662
|
+
n.setSelectedVarCatalog((O = u.value[0]) != null ? O : null), g.value = (M = u.value[0]) != null && M.id ? [u.value[0].id] : [];
|
12663
|
+
} catch (L) {
|
12664
|
+
Logger.debug(L == null ? void 0 : L.message);
|
12530
12665
|
} finally {
|
12531
12666
|
a.value = !1;
|
12532
12667
|
}
|
12533
12668
|
}
|
12534
12669
|
async function E() {
|
12535
|
-
var $, w,
|
12670
|
+
var $, w, O;
|
12536
12671
|
try {
|
12537
12672
|
o.value = !0, await (($ = i.value) == null ? void 0 : $.validate());
|
12538
|
-
const
|
12673
|
+
const M = new VarCatalog({
|
12539
12674
|
...(w = n.getSelectedVarCatalog) != null ? w : {},
|
12540
|
-
var_text: (
|
12675
|
+
var_text: (O = l.value) == null ? void 0 : O.var_text
|
12541
12676
|
});
|
12542
|
-
|
12543
|
-
data:
|
12677
|
+
M.id ? M.cust_lvl === KG_CUSTOM_LEVEL.L0 ? (M.cust_lvl = KG_CUSTOM_LEVEL.L10, Reflect.deleteProperty(M, "id"), await Add({
|
12678
|
+
data: M
|
12544
12679
|
}, {
|
12545
12680
|
successMessageMode: "none"
|
12546
12681
|
}), message.success({
|
12547
12682
|
content: t.t("kg.KgVarConfig.createSuccess")
|
12548
12683
|
}), await y()) : (await Edit({
|
12549
|
-
data:
|
12684
|
+
data: M
|
12550
12685
|
}, {
|
12551
12686
|
successMessageMode: "none"
|
12552
12687
|
}), message.success({
|
12553
12688
|
content: t.t("kg.KgVarConfig.saveSuccess")
|
12554
12689
|
}), await y(!0)) : (await Add({
|
12555
|
-
data:
|
12690
|
+
data: M
|
12556
12691
|
}, {
|
12557
12692
|
successMessageMode: "none"
|
12558
12693
|
}), message.success({
|
12559
12694
|
content: t.t("kg.KgVarConfig.createSuccess")
|
12560
12695
|
}), await y()), r.retrieve(e == null ? void 0 : e.value);
|
12561
|
-
} catch (
|
12562
|
-
KgUtil.throwIfNotFormError(
|
12696
|
+
} catch (M) {
|
12697
|
+
KgUtil.throwIfNotFormError(M);
|
12563
12698
|
} finally {
|
12564
12699
|
o.value = !1;
|
12565
12700
|
}
|
@@ -12568,14 +12703,14 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
|
|
12568
12703
|
isAllForm: $,
|
12569
12704
|
isAllLanguage: w
|
12570
12705
|
}) {
|
12571
|
-
var
|
12706
|
+
var O, M, L;
|
12572
12707
|
c.value = new VarCatalog({
|
12573
12708
|
id: "",
|
12574
12709
|
cust_lvl: KG_CUSTOM_LEVEL.L10,
|
12575
|
-
grp_nam: (
|
12576
|
-
var_nam: (
|
12710
|
+
grp_nam: (O = n.getSelectedVar) == null ? void 0 : O.grp_nam,
|
12711
|
+
var_nam: (M = n.getSelectedVar) == null ? void 0 : M.var_nam,
|
12577
12712
|
frm_id: $ || !(e != null && e.value) ? "ALL" : e == null ? void 0 : e.value,
|
12578
|
-
locale_id: w ? "ALL" : (
|
12713
|
+
locale_id: w ? "ALL" : (L = t.locale) == null ? void 0 : L.value,
|
12579
12714
|
var_text: ""
|
12580
12715
|
}), u.value = [...u.value, c.value], n.setSelectedVarCatalog(unref(c)), g.value = [""];
|
12581
12716
|
}
|
@@ -12602,7 +12737,7 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
|
|
12602
12737
|
}
|
12603
12738
|
});
|
12604
12739
|
}
|
12605
|
-
function
|
12740
|
+
function x($) {
|
12606
12741
|
var w;
|
12607
12742
|
((w = n.getSelectedVarCatalog) == null ? void 0 : w.id) !== $.id && (unref(c) ? KgUtil.confirm({
|
12608
12743
|
content: t.t("kg.KgVarConfig.discardConfirmMessage"),
|
@@ -12611,14 +12746,14 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
|
|
12611
12746
|
}
|
12612
12747
|
}) : (n.setSelectedVarCatalog(unref($)), g.value = [$.id]));
|
12613
12748
|
}
|
12614
|
-
function
|
12749
|
+
function F() {
|
12615
12750
|
_.value.visible = !0;
|
12616
12751
|
}
|
12617
12752
|
function I() {
|
12618
12753
|
return createVNode("div", {
|
12619
12754
|
class: "buttons"
|
12620
12755
|
}, [createVNode(Button, {
|
12621
|
-
onClick:
|
12756
|
+
onClick: F,
|
12622
12757
|
disabled: b.value,
|
12623
12758
|
type: "primary"
|
12624
12759
|
}, {
|
@@ -12633,7 +12768,7 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
|
|
12633
12768
|
default: () => [createVNode(DeleteOutlined$1, null, null), t.t("common.delText")]
|
12634
12769
|
})]);
|
12635
12770
|
}
|
12636
|
-
function
|
12771
|
+
function A() {
|
12637
12772
|
let $, w;
|
12638
12773
|
return createVNode("div", {
|
12639
12774
|
class: "form"
|
@@ -12651,7 +12786,7 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
|
|
12651
12786
|
}, {
|
12652
12787
|
default: () => [createVNode(Textarea, {
|
12653
12788
|
value: l.value.var_text,
|
12654
|
-
"onUpdate:value": (
|
12789
|
+
"onUpdate:value": (O) => l.value.var_text = O,
|
12655
12790
|
disabled: !n.getSelectedVarCatalog
|
12656
12791
|
}, null), createVNode("button", {
|
12657
12792
|
hidden: !0
|
@@ -12673,10 +12808,10 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
|
|
12673
12808
|
default: () => [w]
|
12674
12809
|
})])]);
|
12675
12810
|
}
|
12676
|
-
function
|
12677
|
-
var
|
12811
|
+
function U($) {
|
12812
|
+
var O;
|
12678
12813
|
let w = "";
|
12679
|
-
return $.id || (w += " ant-table-row-create"), $.id === ((
|
12814
|
+
return $.id || (w += " ant-table-row-create"), $.id === ((O = n.getSelectedVarCatalog) == null ? void 0 : O.id) && (w += " ant-table-row-selected "), w;
|
12680
12815
|
}
|
12681
12816
|
return () => createVNode("div", {
|
12682
12817
|
class: "kg-var-config-modal-var-var-catalog"
|
@@ -12692,12 +12827,12 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
|
|
12692
12827
|
rowKey: "id",
|
12693
12828
|
dataSource: u.value,
|
12694
12829
|
loading: a.value,
|
12695
|
-
rowClassName:
|
12830
|
+
rowClassName: U,
|
12696
12831
|
rowSelection: p.value,
|
12697
12832
|
customRow: ($) => ({
|
12698
|
-
onClick: () =>
|
12833
|
+
onClick: () => x($)
|
12699
12834
|
})
|
12700
|
-
}, null),
|
12835
|
+
}, null), A(), createVNode(KgVarConfigModalVarCreateModal, {
|
12701
12836
|
visible: _.value.visible,
|
12702
12837
|
"onUpdate:visible": ($) => _.value.visible = $,
|
12703
12838
|
onKgOk: k
|
@@ -13028,18 +13163,18 @@ const KgWarehouse$1 = "", getProps = () => ({
|
|
13028
13163
|
customRender: ({
|
13029
13164
|
record: k
|
13030
13165
|
}) => {
|
13031
|
-
var T,
|
13166
|
+
var T, x, F;
|
13032
13167
|
const D = k;
|
13033
|
-
return createVNode("div", null, [createVNode("div", null, [(T = D.whDsc) != null ? T : " ", createTextVNode(" - "), (
|
13168
|
+
return createVNode("div", null, [createVNode("div", null, [(T = D.whDsc) != null ? T : " ", createTextVNode(" - "), (x = D.whId) != null ? x : " "]), createVNode("div", {
|
13034
13169
|
class: "address"
|
13035
|
-
}, [(
|
13170
|
+
}, [(F = D.adrId) != null ? F : " "])]);
|
13036
13171
|
}
|
13037
13172
|
}]), c = ref([]), g = computed(() => {
|
13038
13173
|
var D;
|
13039
13174
|
const k = (D = o.value) == null ? void 0 : D.toUpperCase();
|
13040
13175
|
return c.value.filter((T) => {
|
13041
|
-
var
|
13042
|
-
return ((
|
13176
|
+
var x, F, I, A, U, $;
|
13177
|
+
return ((F = (x = T.whDsc) == null ? void 0 : x.toUpperCase()) == null ? void 0 : F.includes(k)) || ((A = (I = T.whId) == null ? void 0 : I.toUpperCase()) == null ? void 0 : A.includes(k)) || (($ = (U = T.adrId) == null ? void 0 : U.toUpperCase()) == null ? void 0 : $.includes(k));
|
13043
13178
|
});
|
13044
13179
|
}), p = computed(() => {
|
13045
13180
|
var k, D;
|
@@ -13191,6 +13326,7 @@ function createKgWarehouseGuard(e, t) {
|
|
13191
13326
|
});
|
13192
13327
|
}
|
13193
13328
|
export {
|
13329
|
+
CreateVarGridMasterQuery,
|
13194
13330
|
CreateVarProfileMasterQuery,
|
13195
13331
|
DEFAULT_LABEL_COL_FOR_PX,
|
13196
13332
|
DEFAULT_LABEL_COL_FOR_SPAN,
|
@@ -13245,6 +13381,7 @@ export {
|
|
13245
13381
|
KgWarehouse,
|
13246
13382
|
KgYesOrNo,
|
13247
13383
|
Logger,
|
13384
|
+
UpdateVarGridMasterQuery,
|
13248
13385
|
VarButton,
|
13249
13386
|
VarCatalog,
|
13250
13387
|
VarContext,
|