xyvcard-asset 0.0.10 → 0.0.12
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/{assign-DzQUNp-Y.mjs → assign-4SD6S-Fb.mjs} +1 -1
- package/dist/common-CshrwPyx.mjs +26 -0
- package/dist/{edit-Dn-QMuy6.mjs → edit-BWhOgMw-.mjs} +1 -1
- package/dist/{edit-FdqpKRgF.mjs → edit-C4aYV45m.mjs} +2 -2
- package/dist/{edit-CCrekeeb.mjs → edit-CZujIURb.mjs} +1 -1
- package/dist/{edit-DdzPtYyH.mjs → edit-DPssVAky.mjs} +1 -1
- package/dist/{edit.vue_vue_type_script_setup_true_lang-IWUY0BmY.mjs → edit.vue_vue_type_script_setup_true_lang-6j8bVbef.mjs} +2 -3
- package/dist/{edit.vue_vue_type_script_setup_true_lang-CkBAP9Bk.mjs → edit.vue_vue_type_script_setup_true_lang-CjH6sYw4.mjs} +1 -1
- package/dist/{edit.vue_vue_type_script_setup_true_lang-BP4-GiBE.mjs → edit.vue_vue_type_script_setup_true_lang-CrrY9V5d.mjs} +148 -162
- package/dist/{index-De4u-LEl.mjs → index-4vX1fgzo.mjs} +2 -2
- package/dist/{index-B4vUTwSW.mjs → index-8j66ouA1.mjs} +1 -1
- package/dist/{index-DElPNxc7.mjs → index-BxfpD3CM.mjs} +2 -2
- package/dist/{index-CSMEsPcN.mjs → index-Bz6eEggE.mjs} +3 -3
- package/dist/{index-CugJCeed.mjs → index-C1U7BVdL.mjs} +2 -2
- package/dist/{index-BWwU9hSp.mjs → index-CDYXKnyU.mjs} +2 -2
- package/dist/{index-BK24yagy.mjs → index-CGds22-2.mjs} +145 -136
- package/dist/{index-axEqTssj.mjs → index-CKF69gMl.mjs} +3 -3
- package/dist/{index-jOcS7tqC.mjs → index-Cz4CVX5Y.mjs} +2 -2
- package/dist/{index-BvKWLFdr.mjs → index-DIKzzLQ2.mjs} +2 -2
- package/dist/{index-CgAq70-p.mjs → index-DfOZUIkb.mjs} +1 -1
- package/dist/{index-C5_f5Lce.mjs → index-Ds5MwEwr.mjs} +1 -1
- package/dist/{index-BW-5IuVN.mjs → index-_uK0Hvab.mjs} +1 -1
- package/dist/{index-FUnFB7nG.mjs → index-rSyUfdXn.mjs} +1 -1
- package/dist/index.mjs +102 -102
- package/dts/api/asset/asset-site-service/index.d.ts +2 -1
- package/dts/api/asset/asset-site-service/types.d.ts +14 -1
- package/dts/components/Upload/ImageUpload.vue.d.ts +1 -1
- package/dts/utils/common.d.ts +4 -0
- package/package.json +1 -1
- package/dist/common-kbgEWG-E.mjs +0 -24
- package/dist/index copy-CxTCJcvX.mjs +0 -75
- package/dist/index-GhvyIwc3.mjs +0 -4
- package/dist/index-pfeu6d82.mjs +0 -4
- package/dist/index.vue_vue_type_script_setup_true_lang-BhVtd4iX.mjs +0 -110
- package/dist/index.vue_vue_type_script_setup_true_lang-Dh1DZzIU.mjs +0 -54
- package/dist/index/345/244/207/344/273/275-BfKo5eBT.mjs +0 -323
@@ -1,7 +1,7 @@
|
|
1
1
|
var Jt = Object.defineProperty;
|
2
2
|
var Yt = (t, e, r) => e in t ? Jt(t, e, { enumerable: !0, configurable: !0, writable: !0, value: r }) : t[e] = r;
|
3
|
-
var
|
4
|
-
import { useUserStore as
|
3
|
+
var h = (t, e, r) => Yt(t, typeof e != "symbol" ? e + "" : e, r);
|
4
|
+
import { useUserStore as d, clearEmpty as b, request as g, BizDict as Ke, BizLayDict as jt, EnumDict as Y } from "jmash-core";
|
5
5
|
import { reactive as Xt, ref as et } from "vue";
|
6
6
|
class Zt {
|
7
7
|
getKey(e) {
|
@@ -12,8 +12,8 @@ class Zt {
|
|
12
12
|
// 查询翻页信息场地管理
|
13
13
|
findPage(e) {
|
14
14
|
e && (e.hasStatus = e.status != null);
|
15
|
-
const r =
|
16
|
-
return
|
15
|
+
const r = d().user.tenant;
|
16
|
+
return b(e), g({
|
17
17
|
url: "/v1/asset/site/page/" + r,
|
18
18
|
method: "get",
|
19
19
|
params: e
|
@@ -21,8 +21,8 @@ class Zt {
|
|
21
21
|
}
|
22
22
|
// 查询列表信息场地管理
|
23
23
|
findList(e) {
|
24
|
-
const r =
|
25
|
-
return
|
24
|
+
const r = d().user.tenant;
|
25
|
+
return b(e), g({
|
26
26
|
url: "/v1/asset/site/list/" + r,
|
27
27
|
method: "get",
|
28
28
|
params: e
|
@@ -30,15 +30,15 @@ class Zt {
|
|
30
30
|
}
|
31
31
|
// 查询场地管理
|
32
32
|
findById(e) {
|
33
|
-
const r =
|
34
|
-
return
|
33
|
+
const r = d().user.tenant;
|
34
|
+
return b(e), g({
|
35
35
|
url: "/v1/asset/site/id/" + r + "/" + e.siteId,
|
36
36
|
method: "get"
|
37
37
|
});
|
38
38
|
}
|
39
39
|
// 创建实体场地管理
|
40
40
|
create(e) {
|
41
|
-
return e.tenant =
|
41
|
+
return e.tenant = d().user.tenant, b(e), g({
|
42
42
|
url: "/v1/asset/site",
|
43
43
|
method: "post",
|
44
44
|
data: e
|
@@ -46,7 +46,7 @@ class Zt {
|
|
46
46
|
}
|
47
47
|
// 修改实体场地管理
|
48
48
|
update(e) {
|
49
|
-
return e.tenant =
|
49
|
+
return e.tenant = d().user.tenant, b(e), g({
|
50
50
|
url: "/v1/asset/site",
|
51
51
|
method: "patch",
|
52
52
|
data: e
|
@@ -55,7 +55,7 @@ class Zt {
|
|
55
55
|
// 启用/禁用
|
56
56
|
enable(e, r) {
|
57
57
|
const n = { ...e };
|
58
|
-
return n.tenant =
|
58
|
+
return n.tenant = d().user.tenant, n.enable = r, b(n), g({
|
59
59
|
url: "/v1/asset/site/enable",
|
60
60
|
method: "put",
|
61
61
|
data: n
|
@@ -63,7 +63,7 @@ class Zt {
|
|
63
63
|
}
|
64
64
|
// 删除场地管理
|
65
65
|
delete(e) {
|
66
|
-
return e.tenant =
|
66
|
+
return e.tenant = d().user.tenant, b(e), g({
|
67
67
|
url: "/v1/asset/site/id",
|
68
68
|
method: "delete",
|
69
69
|
params: e
|
@@ -79,8 +79,8 @@ class er {
|
|
79
79
|
}
|
80
80
|
// 查询翻页信息场地预约服务项目
|
81
81
|
findPage(e) {
|
82
|
-
const r =
|
83
|
-
return e != null && e.hasStatus && (e.hasStatus = !1), e != null && e.status && (e.hasStatus = !0),
|
82
|
+
const r = d().user.tenant;
|
83
|
+
return e != null && e.hasStatus && (e.hasStatus = !1), e != null && e.status && (e.hasStatus = !0), b(e), g({
|
84
84
|
url: "/v1/asset/site_service/page/" + r,
|
85
85
|
method: "get",
|
86
86
|
params: e
|
@@ -88,8 +88,8 @@ class er {
|
|
88
88
|
}
|
89
89
|
// 查询列表信息场地预约服务项目
|
90
90
|
findList(e) {
|
91
|
-
const r =
|
92
|
-
return
|
91
|
+
const r = d().user.tenant;
|
92
|
+
return b(e), g({
|
93
93
|
url: "/v1/asset/site_service/list/" + r,
|
94
94
|
method: "get",
|
95
95
|
params: e
|
@@ -97,15 +97,24 @@ class er {
|
|
97
97
|
}
|
98
98
|
// 查询场地预约服务项目
|
99
99
|
findById(e) {
|
100
|
-
const r =
|
101
|
-
return
|
100
|
+
const r = d().user.tenant;
|
101
|
+
return b(e), g({
|
102
102
|
url: "/v1/asset/site_service/id/" + r + "/" + e.serviceId,
|
103
103
|
method: "get"
|
104
104
|
});
|
105
105
|
}
|
106
|
+
// 查询服务项目预约时间段
|
107
|
+
findlimitInfoById(e) {
|
108
|
+
const r = d().user.tenant;
|
109
|
+
return b(e), g({
|
110
|
+
url: "/v1/asset/service_limit/list/" + r,
|
111
|
+
method: "get",
|
112
|
+
params: e
|
113
|
+
});
|
114
|
+
}
|
106
115
|
// 创建实体场地预约服务项目
|
107
116
|
create(e) {
|
108
|
-
return e.tenant =
|
117
|
+
return e.tenant = d().user.tenant, b(e), g({
|
109
118
|
url: "/v1/asset/site_service",
|
110
119
|
method: "post",
|
111
120
|
data: e
|
@@ -113,7 +122,7 @@ class er {
|
|
113
122
|
}
|
114
123
|
// 修改实体场地预约服务项目
|
115
124
|
update(e) {
|
116
|
-
return e.tenant =
|
125
|
+
return e.tenant = d().user.tenant, b(e), g({
|
117
126
|
url: "/v1/asset/site_service",
|
118
127
|
method: "patch",
|
119
128
|
data: e
|
@@ -121,7 +130,7 @@ class er {
|
|
121
130
|
}
|
122
131
|
// 删除场地预约服务项目
|
123
132
|
delete(e) {
|
124
|
-
return e.tenant =
|
133
|
+
return e.tenant = d().user.tenant, b(e), g({
|
125
134
|
url: "/v1/asset/site_service/id",
|
126
135
|
method: "delete",
|
127
136
|
params: e
|
@@ -220,9 +229,9 @@ var nr = Error, ar = EvalError, or = RangeError, ir = ReferenceError, Tt = Synta
|
|
220
229
|
c.prototype = r.prototype, o.prototype = new c(), c.prototype = null;
|
221
230
|
}
|
222
231
|
return o;
|
223
|
-
}, br = Sr, He = Function.prototype.bind || br, wr = Function.prototype.call, Er = Object.prototype.hasOwnProperty, Ar = He, Or = Ar.call(wr, Er), p, Pr = nr, Ir = ar, Tr = or,
|
232
|
+
}, br = Sr, He = Function.prototype.bind || br, wr = Function.prototype.call, Er = Object.prototype.hasOwnProperty, Ar = He, Or = Ar.call(wr, Er), p, Pr = nr, Ir = ar, Tr = or, _r = ir, ee = Tt, q = ce, $r = lr, _t = Function, Te = function(t) {
|
224
233
|
try {
|
225
|
-
return
|
234
|
+
return _t('"use strict"; return (' + t + ").constructor;")();
|
226
235
|
} catch {
|
227
236
|
}
|
228
237
|
}, K = Object.getOwnPropertyDescriptor;
|
@@ -232,19 +241,19 @@ if (K)
|
|
232
241
|
} catch {
|
233
242
|
K = null;
|
234
243
|
}
|
235
|
-
var
|
244
|
+
var _e = function() {
|
236
245
|
throw new q();
|
237
246
|
}, xr = K ? function() {
|
238
247
|
try {
|
239
|
-
return arguments.callee,
|
248
|
+
return arguments.callee, _e;
|
240
249
|
} catch {
|
241
250
|
try {
|
242
251
|
return K(arguments, "callee").get;
|
243
252
|
} catch {
|
244
|
-
return
|
253
|
+
return _e;
|
245
254
|
}
|
246
255
|
}
|
247
|
-
}() :
|
256
|
+
}() : _e, j = sr(), Dr = pr(), O = Object.getPrototypeOf || (Dr ? function(t) {
|
248
257
|
return t.__proto__;
|
249
258
|
} : null), Z = {}, Fr = typeof Uint8Array > "u" || !O ? p : O(Uint8Array), H = {
|
250
259
|
__proto__: null,
|
@@ -275,7 +284,7 @@ var $e = function() {
|
|
275
284
|
"%Float32Array%": typeof Float32Array > "u" ? p : Float32Array,
|
276
285
|
"%Float64Array%": typeof Float64Array > "u" ? p : Float64Array,
|
277
286
|
"%FinalizationRegistry%": typeof FinalizationRegistry > "u" ? p : FinalizationRegistry,
|
278
|
-
"%Function%":
|
287
|
+
"%Function%": _t,
|
279
288
|
"%GeneratorFunction%": Z,
|
280
289
|
"%Int8Array%": typeof Int8Array > "u" ? p : Int8Array,
|
281
290
|
"%Int16Array%": typeof Int16Array > "u" ? p : Int16Array,
|
@@ -294,7 +303,7 @@ var $e = function() {
|
|
294
303
|
"%Promise%": typeof Promise > "u" ? p : Promise,
|
295
304
|
"%Proxy%": typeof Proxy > "u" ? p : Proxy,
|
296
305
|
"%RangeError%": Tr,
|
297
|
-
"%ReferenceError%":
|
306
|
+
"%ReferenceError%": _r,
|
298
307
|
"%Reflect%": typeof Reflect > "u" ? p : Reflect,
|
299
308
|
"%RegExp%": RegExp,
|
300
309
|
"%Set%": typeof Set > "u" ? p : Set,
|
@@ -311,7 +320,7 @@ var $e = function() {
|
|
311
320
|
"%Uint8ClampedArray%": typeof Uint8ClampedArray > "u" ? p : Uint8ClampedArray,
|
312
321
|
"%Uint16Array%": typeof Uint16Array > "u" ? p : Uint16Array,
|
313
322
|
"%Uint32Array%": typeof Uint32Array > "u" ? p : Uint32Array,
|
314
|
-
"%URIError%":
|
323
|
+
"%URIError%": $r,
|
315
324
|
"%WeakMap%": typeof WeakMap > "u" ? p : WeakMap,
|
316
325
|
"%WeakRef%": typeof WeakRef > "u" ? p : WeakRef,
|
317
326
|
"%WeakSet%": typeof WeakSet > "u" ? p : WeakSet
|
@@ -425,8 +434,8 @@ var Rr = function t(e) {
|
|
425
434
|
var n = Wr(e), o = n.length > 0 ? n[0] : "", a = kr("%" + o + "%", r), i = a.name, u = a.value, l = !1, c = a.alias;
|
426
435
|
c && (o = c[0], Ur(n, Mr([0, 1], c)));
|
427
436
|
for (var s = 1, y = !0; s < n.length; s += 1) {
|
428
|
-
var f = n[s],
|
429
|
-
if ((
|
437
|
+
var f = n[s], m = we(f, 0, 1), w = we(f, -1);
|
438
|
+
if ((m === '"' || m === "'" || m === "`" || w === '"' || w === "'" || w === "`") && m !== w)
|
430
439
|
throw new ee("property names with quotes must have matching quotes");
|
431
440
|
if ((f === "constructor" || !y) && (l = !0), o += "." + f, i = "%" + o + "%", be(H, i))
|
432
441
|
u = H[i];
|
@@ -445,9 +454,9 @@ var Rr = function t(e) {
|
|
445
454
|
}
|
446
455
|
}
|
447
456
|
return u;
|
448
|
-
},
|
457
|
+
}, $t = { exports: {} }, $e, it;
|
449
458
|
function Qe() {
|
450
|
-
if (it) return
|
459
|
+
if (it) return $e;
|
451
460
|
it = 1;
|
452
461
|
var t = ne, e = t("%Object.defineProperty%", !0) || !1;
|
453
462
|
if (e)
|
@@ -456,7 +465,7 @@ function Qe() {
|
|
456
465
|
} catch {
|
457
466
|
e = !1;
|
458
467
|
}
|
459
|
-
return
|
468
|
+
return $e = e, $e;
|
460
469
|
}
|
461
470
|
var Gr = ne, ge = Gr("%Object.getOwnPropertyDescriptor%", !0);
|
462
471
|
if (ge)
|
@@ -531,9 +540,9 @@ var Kr = Dt, Hr = ne, ft = zr, Qr = Kr(), st = xt, ct = ce, Jr = Hr("%Math.floor
|
|
531
540
|
t.exports = function(f) {
|
532
541
|
if (typeof f != "function")
|
533
542
|
throw new o("a function is required");
|
534
|
-
var
|
543
|
+
var m = u(e, i, arguments);
|
535
544
|
return n(
|
536
|
-
|
545
|
+
m,
|
537
546
|
1 + c(0, f.length - (arguments.length - 1)),
|
538
547
|
!0
|
539
548
|
);
|
@@ -542,8 +551,8 @@ var Kr = Dt, Hr = ne, ft = zr, Qr = Kr(), st = xt, ct = ce, Jr = Hr("%Math.floor
|
|
542
551
|
return u(e, a, arguments);
|
543
552
|
};
|
544
553
|
l ? l(t.exports, "apply", { value: s }) : t.exports.apply = s;
|
545
|
-
})(
|
546
|
-
var jr =
|
554
|
+
})($t);
|
555
|
+
var jr = $t.exports, Ft = ne, Nt = jr, Xr = Nt(Ft("String.prototype.indexOf")), Zr = function(e, r) {
|
547
556
|
var n = Ft(e, !!r);
|
548
557
|
return typeof n == "function" && Xr(e, ".prototype.") > -1 ? Nt(n) : n;
|
549
558
|
};
|
@@ -607,18 +616,18 @@ var ke = tn, bt = ke.custom, wt = Bt(bt) ? bt : null, pn = function t(e, r, n, o
|
|
607
616
|
o = [];
|
608
617
|
else if (Lt(o, e) >= 0)
|
609
618
|
return "[Circular]";
|
610
|
-
function f(
|
619
|
+
function f($, B, L) {
|
611
620
|
if (B && (o = cn.call(o), o.push(B)), L) {
|
612
621
|
var ie = {
|
613
622
|
depth: a.depth
|
614
623
|
};
|
615
|
-
return C(a, "quoteStyle") && (ie.quoteStyle = a.quoteStyle), t(
|
624
|
+
return C(a, "quoteStyle") && (ie.quoteStyle = a.quoteStyle), t($, ie, n + 1, o);
|
616
625
|
}
|
617
|
-
return t(
|
626
|
+
return t($, a, n + 1, o);
|
618
627
|
}
|
619
628
|
if (typeof e == "function" && !Et(e)) {
|
620
|
-
var
|
621
|
-
return "[Function" + (
|
629
|
+
var m = wn(e), w = de(e, f);
|
630
|
+
return "[Function" + (m ? ": " + m : " (anonymous)") + "]" + (w.length > 0 ? " { " + F.call(w, ", ") + " }" : "");
|
622
631
|
}
|
623
632
|
if (Bt(e)) {
|
624
633
|
var P = te ? W.call(String(e), /^(Symbol\(.*\))_[^)]*$/, "$1") : We.call(e);
|
@@ -633,7 +642,7 @@ var ke = tn, bt = ke.custom, wt = Bt(bt) ? bt : null, pn = function t(e, r, n, o
|
|
633
642
|
if (e.length === 0)
|
634
643
|
return "[]";
|
635
644
|
var v = de(e, f);
|
636
|
-
return y &&
|
645
|
+
return y && !$n(v) ? "[" + Ve(v, y) + "]" : "[ " + F.call(v, ", ") + " ]";
|
637
646
|
}
|
638
647
|
if (dn(e)) {
|
639
648
|
var M = de(e, f);
|
@@ -647,14 +656,14 @@ var ke = tn, bt = ke.custom, wt = Bt(bt) ? bt : null, pn = function t(e, r, n, o
|
|
647
656
|
}
|
648
657
|
if (En(e)) {
|
649
658
|
var G = [];
|
650
|
-
return pt && pt.call(e, function(
|
651
|
-
G.push(f(B, e, !0) + " => " + f(
|
659
|
+
return pt && pt.call(e, function($, B) {
|
660
|
+
G.push(f(B, e, !0) + " => " + f($, e));
|
652
661
|
}), At("Map", Ee.call(e), G, y);
|
653
662
|
}
|
654
663
|
if (Pn(e)) {
|
655
664
|
var oe = [];
|
656
|
-
return yt && yt.call(e, function(
|
657
|
-
oe.push(f(
|
665
|
+
return yt && yt.call(e, function($) {
|
666
|
+
oe.push(f($, e));
|
658
667
|
}), At("Set", Ae.call(e), oe, y);
|
659
668
|
}
|
660
669
|
if (An(e))
|
@@ -831,10 +840,10 @@ function Ct(t, e) {
|
|
831
840
|
var r = t.length - e.maxStringLength, n = "... " + r + " more character" + (r > 1 ? "s" : "");
|
832
841
|
return Ct(je.call(t, 0, e.maxStringLength), e) + n;
|
833
842
|
}
|
834
|
-
var o = W.call(W.call(t, /(['\\])/g, "\\$1"), /[\x00-\x1f]/g,
|
843
|
+
var o = W.call(W.call(t, /(['\\])/g, "\\$1"), /[\x00-\x1f]/g, _n);
|
835
844
|
return Ut(o, "single", e);
|
836
845
|
}
|
837
|
-
function
|
846
|
+
function _n(t) {
|
838
847
|
var e = t.charCodeAt(0), r = {
|
839
848
|
8: "b",
|
840
849
|
9: "t",
|
@@ -854,7 +863,7 @@ function At(t, e, r, n) {
|
|
854
863
|
var o = n ? Ve(r, n) : F.call(r, ", ");
|
855
864
|
return t + " (" + e + ") {" + o + "}";
|
856
865
|
}
|
857
|
-
function
|
866
|
+
function $n(t) {
|
858
867
|
for (var e = 0; e < t.length; e++)
|
859
868
|
if (Lt(t[e], `
|
860
869
|
`) >= 0)
|
@@ -1028,8 +1037,8 @@ var Wt = ne, ae = Zr, Dn = pn, Fn = ce, me = Wt("%WeakMap%", !0), he = Wt("%Map%
|
|
1028
1037
|
return e;
|
1029
1038
|
var i = e;
|
1030
1039
|
if (typeof e == "symbol" ? i = Symbol.prototype.toString.call(e) : typeof e != "string" && (i = String(e)), n === "iso-8859-1")
|
1031
|
-
return escape(i).replace(/%u[0-9a-f]{4}/gi, function(
|
1032
|
-
return "%26%23" + parseInt(
|
1040
|
+
return escape(i).replace(/%u[0-9a-f]{4}/gi, function(m) {
|
1041
|
+
return "%26%23" + parseInt(m.slice(2), 16) + "%3B";
|
1033
1042
|
});
|
1034
1043
|
for (var u = "", l = 0; l < i.length; l += Ue) {
|
1035
1044
|
for (var c = i.length >= Ue ? i.slice(l, l + Ue) : i, s = [], y = 0; y < c.length; ++y) {
|
@@ -1122,7 +1131,7 @@ var Wt = ne, ae = Zr, Dn = pn, Fn = ce, me = Wt("%WeakMap%", !0), he = Wt("%Map%
|
|
1122
1131
|
strictNullHandling: !1
|
1123
1132
|
}, oa = function(e) {
|
1124
1133
|
return typeof e == "string" || typeof e == "number" || typeof e == "boolean" || typeof e == "symbol" || typeof e == "bigint";
|
1125
|
-
}, Be = {}, ia = function t(e, r, n, o, a, i, u, l, c, s, y, f,
|
1134
|
+
}, Be = {}, ia = function t(e, r, n, o, a, i, u, l, c, s, y, f, m, w, P, T, N, R) {
|
1126
1135
|
for (var v = e, M = R, G = 0, oe = !1; (M = M.get(Be)) !== void 0 && !oe; ) {
|
1127
1136
|
var Q = M.get(e);
|
1128
1137
|
if (G += 1, typeof Q < "u") {
|
@@ -1132,17 +1141,17 @@ var Wt = ne, ae = Zr, Dn = pn, Fn = ce, me = Wt("%WeakMap%", !0), he = Wt("%Map%
|
|
1132
1141
|
}
|
1133
1142
|
typeof M.get(Be) > "u" && (G = 0);
|
1134
1143
|
}
|
1135
|
-
if (typeof s == "function" ? v = s(r, v) : v instanceof Date ? v =
|
1136
|
-
return Pe instanceof Date ?
|
1144
|
+
if (typeof s == "function" ? v = s(r, v) : v instanceof Date ? v = m(v) : n === "comma" && D(v) && (v = Se.maybeMap(v, function(Pe) {
|
1145
|
+
return Pe instanceof Date ? m(Pe) : Pe;
|
1137
1146
|
})), v === null) {
|
1138
1147
|
if (i)
|
1139
|
-
return c && !T ? c(r, A.encoder, N, "key",
|
1148
|
+
return c && !T ? c(r, A.encoder, N, "key", w) : r;
|
1140
1149
|
v = "";
|
1141
1150
|
}
|
1142
1151
|
if (oa(v) || Se.isBuffer(v)) {
|
1143
1152
|
if (c) {
|
1144
|
-
var ye = T ? r : c(r, A.encoder, N, "key",
|
1145
|
-
return [P(ye) + "=" + P(c(v, A.encoder, N, "value",
|
1153
|
+
var ye = T ? r : c(r, A.encoder, N, "key", w);
|
1154
|
+
return [P(ye) + "=" + P(c(v, A.encoder, N, "value", w))];
|
1146
1155
|
}
|
1147
1156
|
return [P(r) + "=" + P(String(v))];
|
1148
1157
|
}
|
@@ -1158,13 +1167,13 @@ var Wt = ne, ae = Zr, Dn = pn, Fn = ce, me = Wt("%WeakMap%", !0), he = Wt("%Map%
|
|
1158
1167
|
var ve = Object.keys(v);
|
1159
1168
|
U = y ? ve.sort(y) : ve;
|
1160
1169
|
}
|
1161
|
-
var J = l ? r.replace(/\./g, "%2E") : r,
|
1170
|
+
var J = l ? r.replace(/\./g, "%2E") : r, $ = o && D(v) && v.length === 1 ? J + "[]" : J;
|
1162
1171
|
if (a && D(v) && v.length === 0)
|
1163
|
-
return
|
1172
|
+
return $ + "[]";
|
1164
1173
|
for (var B = 0; B < U.length; ++B) {
|
1165
1174
|
var L = U[B], ie = typeof L == "object" && typeof L.value < "u" ? L.value : v[L];
|
1166
1175
|
if (!(u && ie === null)) {
|
1167
|
-
var Oe = f && l ? L.replace(/\./g, "%2E") : L, Qt = D(v) ? typeof n == "function" ? n(
|
1176
|
+
var Oe = f && l ? L.replace(/\./g, "%2E") : L, Qt = D(v) ? typeof n == "function" ? n($, Oe) : $ : $ + (f ? "." + Oe : "[" + Oe + "]");
|
1168
1177
|
R.set(e, G);
|
1169
1178
|
var qe = Vt();
|
1170
1179
|
qe.set(Be, R), Kt(V, t(
|
@@ -1180,8 +1189,8 @@ var Wt = ne, ae = Zr, Dn = pn, Fn = ce, me = Wt("%WeakMap%", !0), he = Wt("%Map%
|
|
1180
1189
|
s,
|
1181
1190
|
y,
|
1182
1191
|
f,
|
1183
|
-
|
1184
|
-
|
1192
|
+
m,
|
1193
|
+
w,
|
1185
1194
|
P,
|
1186
1195
|
T,
|
1187
1196
|
N,
|
@@ -1266,8 +1275,8 @@ var Wt = ne, ae = Zr, Dn = pn, Fn = ce, me = Wt("%WeakMap%", !0), he = Wt("%Map%
|
|
1266
1275
|
c
|
1267
1276
|
));
|
1268
1277
|
}
|
1269
|
-
var f = i.join(n.delimiter),
|
1270
|
-
return n.charsetSentinel && (n.charset === "iso-8859-1" ?
|
1278
|
+
var f = i.join(n.delimiter), m = n.addQueryPrefix === !0 ? "?" : "";
|
1279
|
+
return n.charsetSentinel && (n.charset === "iso-8859-1" ? m += "utf8=%26%2310003%3B&" : m += "utf8=%E2%9C%93&"), f.length > 0 ? m + f : "";
|
1271
1280
|
}, re = Gt, ze = Object.prototype.hasOwnProperty, fa = Array.isArray, E = {
|
1272
1281
|
allowDots: !1,
|
1273
1282
|
allowEmptyArrays: !1,
|
@@ -1303,15 +1312,15 @@ var Wt = ne, ae = Zr, Dn = pn, Fn = ce, me = Wt("%WeakMap%", !0), he = Wt("%Map%
|
|
1303
1312
|
i[l].indexOf("utf8=") === 0 && (i[l] === pa ? c = "utf-8" : i[l] === ca && (c = "iso-8859-1"), u = l, l = i.length);
|
1304
1313
|
for (l = 0; l < i.length; ++l)
|
1305
1314
|
if (l !== u) {
|
1306
|
-
var s = i[l], y = s.indexOf("]="), f = y === -1 ? s.indexOf("=") : y + 1,
|
1307
|
-
f === -1 ? (
|
1315
|
+
var s = i[l], y = s.indexOf("]="), f = y === -1 ? s.indexOf("=") : y + 1, m, w;
|
1316
|
+
f === -1 ? (m = r.decoder(s, E.decoder, c, "key"), w = r.strictNullHandling ? null : "") : (m = r.decoder(s.slice(0, f), E.decoder, c, "key"), w = re.maybeMap(
|
1308
1317
|
Ht(s.slice(f + 1), r),
|
1309
1318
|
function(T) {
|
1310
1319
|
return r.decoder(T, E.decoder, c, "value");
|
1311
1320
|
}
|
1312
|
-
)),
|
1313
|
-
var P = ze.call(n,
|
1314
|
-
P && r.duplicates === "combine" ? n[
|
1321
|
+
)), w && r.interpretNumericEntities && c === "iso-8859-1" && (w = sa(w)), s.indexOf("[]=") > -1 && (w = fa(w) ? [w] : w);
|
1322
|
+
var P = ze.call(n, m);
|
1323
|
+
P && r.duplicates === "combine" ? n[m] = re.combine(n[m], w) : (!P || r.duplicates === "last") && (n[m] = w);
|
1315
1324
|
}
|
1316
1325
|
return n;
|
1317
1326
|
}, va = function(t, e, r, n) {
|
@@ -1402,8 +1411,8 @@ class Aa {
|
|
1402
1411
|
}
|
1403
1412
|
// 查询翻页信息资产库
|
1404
1413
|
findPage(e) {
|
1405
|
-
const r =
|
1406
|
-
return e && (e.hasAssignStatus = e.assignStatus != null, e.hasAssetSort = e.assetSort != null),
|
1414
|
+
const r = d().user.tenant;
|
1415
|
+
return e && (e.hasAssignStatus = e.assignStatus != null, e.hasAssetSort = e.assetSort != null), b(e), g({
|
1407
1416
|
url: "/v1/asset/asset/page/" + r,
|
1408
1417
|
method: "get",
|
1409
1418
|
params: e
|
@@ -1411,8 +1420,8 @@ class Aa {
|
|
1411
1420
|
}
|
1412
1421
|
// 查询列表信息资产库
|
1413
1422
|
findList(e) {
|
1414
|
-
const r =
|
1415
|
-
return
|
1423
|
+
const r = d().user.tenant;
|
1424
|
+
return b(e), g({
|
1416
1425
|
url: "/v1/asset/asset/list/" + r,
|
1417
1426
|
method: "get",
|
1418
1427
|
params: e
|
@@ -1420,15 +1429,15 @@ class Aa {
|
|
1420
1429
|
}
|
1421
1430
|
// 查询资产
|
1422
1431
|
findById(e) {
|
1423
|
-
const r =
|
1424
|
-
return
|
1432
|
+
const r = d().user.tenant;
|
1433
|
+
return b(e), g({
|
1425
1434
|
url: "/v1/asset/asset/id/" + r + "/" + e.assetId,
|
1426
1435
|
method: "get"
|
1427
1436
|
});
|
1428
1437
|
}
|
1429
1438
|
// 创建实体资产
|
1430
1439
|
create(e) {
|
1431
|
-
return e.tenant =
|
1440
|
+
return e.tenant = d().user.tenant, b(e), g({
|
1432
1441
|
url: "/v1/asset/asset",
|
1433
1442
|
method: "post",
|
1434
1443
|
data: e
|
@@ -1436,7 +1445,7 @@ class Aa {
|
|
1436
1445
|
}
|
1437
1446
|
// 修改实体资产库
|
1438
1447
|
update(e) {
|
1439
|
-
return e.tenant =
|
1448
|
+
return e.tenant = d().user.tenant, b(e), g({
|
1440
1449
|
url: "/v1/asset/asset",
|
1441
1450
|
method: "patch",
|
1442
1451
|
data: e
|
@@ -1444,7 +1453,7 @@ class Aa {
|
|
1444
1453
|
}
|
1445
1454
|
// 删除资产库
|
1446
1455
|
delete(e) {
|
1447
|
-
return e.tenant =
|
1456
|
+
return e.tenant = d().user.tenant, b(e), g({
|
1448
1457
|
url: "/v1/asset/asset/id",
|
1449
1458
|
method: "delete",
|
1450
1459
|
params: e
|
@@ -1453,10 +1462,10 @@ class Aa {
|
|
1453
1462
|
// 批量删除资产库
|
1454
1463
|
batchDelete(e) {
|
1455
1464
|
const r = e.map((o) => o.assetId), n = {
|
1456
|
-
tenant:
|
1465
|
+
tenant: d().user.tenant,
|
1457
1466
|
assetId: r
|
1458
1467
|
};
|
1459
|
-
return
|
1468
|
+
return b(n), g({
|
1460
1469
|
url: "/v1/asset/asset/batch",
|
1461
1470
|
method: "put",
|
1462
1471
|
data: n
|
@@ -1464,19 +1473,19 @@ class Aa {
|
|
1464
1473
|
}
|
1465
1474
|
// 下载导入模板资产库
|
1466
1475
|
downloadTemplate() {
|
1467
|
-
const e =
|
1468
|
-
return
|
1476
|
+
const e = d().user.tenant;
|
1477
|
+
return g({
|
1469
1478
|
url: "/v1/asset/asset/" + e + "/template.xlsx",
|
1470
1479
|
method: "get",
|
1471
1480
|
responseType: "blob",
|
1472
1481
|
params: {
|
1473
|
-
tenant:
|
1482
|
+
tenant: d().user.tenant
|
1474
1483
|
}
|
1475
1484
|
});
|
1476
1485
|
}
|
1477
1486
|
// 导入资产库
|
1478
1487
|
importExcel(e) {
|
1479
|
-
return e.tenant =
|
1488
|
+
return e.tenant = d().user.tenant, b(e), g({
|
1480
1489
|
url: "/v1/asset/asset/import",
|
1481
1490
|
method: "patch",
|
1482
1491
|
data: e
|
@@ -1484,7 +1493,7 @@ class Aa {
|
|
1484
1493
|
}
|
1485
1494
|
// 资产分配
|
1486
1495
|
assignment(e) {
|
1487
|
-
return e.tenant =
|
1496
|
+
return e.tenant = d().user.tenant, b(e), g({
|
1488
1497
|
url: "/v1/asset/asset/assign",
|
1489
1498
|
method: "post",
|
1490
1499
|
data: e
|
@@ -1492,13 +1501,13 @@ class Aa {
|
|
1492
1501
|
}
|
1493
1502
|
// 导出资产库Excel文件
|
1494
1503
|
exportExcel(e) {
|
1495
|
-
const r =
|
1496
|
-
|
1504
|
+
const r = d().user.tenant;
|
1505
|
+
b(e);
|
1497
1506
|
const n = Ea.stringify(e, {
|
1498
1507
|
arrayFormat: "brackets",
|
1499
1508
|
allowDots: !0
|
1500
1509
|
});
|
1501
|
-
return
|
1510
|
+
return g({
|
1502
1511
|
url: "/v1/asset/asset/" + r + "/assets.xlsx?" + n,
|
1503
1512
|
method: "get",
|
1504
1513
|
responseType: "blob"
|
@@ -1511,8 +1520,8 @@ class Aa {
|
|
1511
1520
|
* @returns 返回工会组织架构树形列表的 AxiosPromise 对象
|
1512
1521
|
*/
|
1513
1522
|
findUnionOrgTreeListApi(e) {
|
1514
|
-
const r =
|
1515
|
-
return
|
1523
|
+
const r = d().user.tenant;
|
1524
|
+
return b(e), g({
|
1516
1525
|
url: "/v1/union/union_org/treelist/" + r,
|
1517
1526
|
method: "get",
|
1518
1527
|
params: e
|
@@ -1522,9 +1531,9 @@ class Aa {
|
|
1522
1531
|
const Oa = new Aa();
|
1523
1532
|
class Pt {
|
1524
1533
|
constructor(e, r) {
|
1525
|
-
|
1534
|
+
h(this, "values", Xt([]));
|
1526
1535
|
// 查询条件
|
1527
|
-
|
1536
|
+
h(this, "query");
|
1528
1537
|
this.values.length = 0, this.values.push(...e.value), this.query = r;
|
1529
1538
|
}
|
1530
1539
|
// 根据给定键获取业务数据项的值的方法
|
@@ -1579,7 +1588,7 @@ class Ta extends Ke {
|
|
1579
1588
|
});
|
1580
1589
|
}
|
1581
1590
|
}
|
1582
|
-
class
|
1591
|
+
class _a extends Ke {
|
1583
1592
|
// 实现 useValues 方法
|
1584
1593
|
useValues() {
|
1585
1594
|
return new Promise((e, r) => {
|
@@ -1596,65 +1605,65 @@ class $a extends Ke {
|
|
1596
1605
|
});
|
1597
1606
|
}
|
1598
1607
|
}
|
1599
|
-
class
|
1608
|
+
class S {
|
1600
1609
|
}
|
1601
1610
|
// 模块
|
1602
|
-
|
1603
|
-
|
1611
|
+
h(S, "MODULE_ASSET", "asset"), // 启用禁用
|
1612
|
+
h(S, "ENABLE_VALUES", et([
|
1604
1613
|
{ key: "true", value: "启用" },
|
1605
1614
|
{ key: "false", value: "禁用" }
|
1606
1615
|
])), // 分配状态
|
1607
|
-
|
1616
|
+
h(S, "ENUM_ASSET_STATUS", et([
|
1608
1617
|
{ key: !0, value: "已分配" },
|
1609
1618
|
{ key: !1, value: "未分配" }
|
1610
1619
|
])), // 项目状态
|
1611
|
-
|
1612
|
-
|
1613
|
-
|
1614
|
-
|
1615
|
-
|
1616
|
-
|
1617
|
-
|
1618
|
-
|
1619
|
-
class
|
1620
|
+
h(S, "ENUM_SERVICE_STATUS", "xyvcard.asset.protobuf.ServiceStatus"), // 场地地址
|
1621
|
+
h(S, "DICT_SITE_ID", "siteId"), // 状态
|
1622
|
+
h(S, "ENUM_STATUS", "xyvcard.asset.protobuf.ApptMemberStatus"), // 资产属性
|
1623
|
+
h(S, "ENUM_SORT_STATUS", "xyvcard.asset.protobuf.AssetSortType"), // 资产状态
|
1624
|
+
h(S, "ASSETS_STATUS", "xyvcard.asset.protobuf.AssetDetailStatus"), // 盘点结果
|
1625
|
+
h(S, "INVENTORY_RESULTS", "xyvcard.asset.protobuf.InventoryStatus"), // 折旧方式
|
1626
|
+
h(S, "ENUM_DEPRECIA_TION", "xyvcard.asset.protobuf.DepreciationType"), // none 不折旧 next_month 次月计提 current_month 当前月计提
|
1627
|
+
h(S, "NONE", "none");
|
1628
|
+
class _ {
|
1620
1629
|
}
|
1621
1630
|
// 启用禁用
|
1622
|
-
|
1623
|
-
|
1624
|
-
|
1625
|
-
|
1626
|
-
|
1631
|
+
h(_, "enableDict", new Pt(S.ENABLE_VALUES, {})), // 所属工会
|
1632
|
+
h(_, "unionOrgBizLayDict", new Pa({})), // 项目状态
|
1633
|
+
h(_, "serviceStatusEnum", new Y(
|
1634
|
+
S.MODULE_ASSET,
|
1635
|
+
S.ENUM_SERVICE_STATUS
|
1627
1636
|
)), // 场地名称
|
1628
|
-
|
1629
|
-
|
1630
|
-
|
1631
|
-
|
1632
|
-
|
1633
|
-
|
1637
|
+
h(_, "siteDict", new Ia({})), // 项目名称
|
1638
|
+
h(_, "serviceNameDict", new Ta({})), // 管理员姓名
|
1639
|
+
h(_, "managerDict", new _a({})), // 状态
|
1640
|
+
h(_, "statusDictEnum", new Y(
|
1641
|
+
S.MODULE_ASSET,
|
1642
|
+
S.ENUM_STATUS
|
1634
1643
|
)), // 分配状态
|
1635
|
-
|
1636
|
-
|
1644
|
+
h(_, "assetStatusDict", new Pt(
|
1645
|
+
S.ENUM_ASSET_STATUS,
|
1637
1646
|
{}
|
1638
1647
|
)), // 资产属性
|
1639
|
-
|
1640
|
-
|
1641
|
-
|
1648
|
+
h(_, "assetSortDictEnum", new Y(
|
1649
|
+
S.MODULE_ASSET,
|
1650
|
+
S.ENUM_SORT_STATUS
|
1642
1651
|
)), // 资产状态
|
1643
|
-
|
1644
|
-
|
1645
|
-
|
1652
|
+
h(_, "assetsStatus", new Y(
|
1653
|
+
S.MODULE_ASSET,
|
1654
|
+
S.ASSETS_STATUS
|
1646
1655
|
)), // 盘点结果
|
1647
|
-
|
1648
|
-
|
1649
|
-
|
1656
|
+
h(_, "inventoryResults", new Y(
|
1657
|
+
S.MODULE_ASSET,
|
1658
|
+
S.INVENTORY_RESULTS
|
1650
1659
|
)), // 折旧方式
|
1651
|
-
|
1652
|
-
|
1653
|
-
|
1660
|
+
h(_, "depreciationTypeEnum", new Y(
|
1661
|
+
S.MODULE_ASSET,
|
1662
|
+
S.ENUM_DEPRECIA_TION
|
1654
1663
|
));
|
1655
1664
|
export {
|
1656
|
-
|
1657
|
-
|
1665
|
+
S as C,
|
1666
|
+
_ as D,
|
1658
1667
|
Ia as S,
|
1659
1668
|
Oa as a,
|
1660
1669
|
It as b,
|