xyvcard-asset 0.0.8

Sign up to get free protection for your applications and to get access to all the features.
Files changed (111) hide show
  1. package/README.md +52 -0
  2. package/dist/_plugin-vue_export-helper-CHgC5LLL.mjs +9 -0
  3. package/dist/common-kbgEWG-E.mjs +24 -0
  4. package/dist/edit-Bo9bnbUP.mjs +492 -0
  5. package/dist/edit-CE3u81Q0.mjs +4 -0
  6. package/dist/edit-DJFxVmvv.mjs +624 -0
  7. package/dist/edit-qp_2xtTZ.mjs +242 -0
  8. package/dist/edit-zFZfd8e1.mjs +4 -0
  9. package/dist/edit.vue_vue_type_script_setup_true_lang-BdkCgqqE.mjs +401 -0
  10. package/dist/edit.vue_vue_type_script_setup_true_lang-CekLyjO-.mjs +322 -0
  11. package/dist/edit.vue_vue_type_style_index_0_scoped_198fdb2f_lang-l0sNRNKZ.mjs +1 -0
  12. package/dist/favicon.ico +0 -0
  13. package/dist/index-Bf5U4Ucl.mjs +369 -0
  14. package/dist/index-Bh2imlN_.mjs +149 -0
  15. package/dist/index-CHNiaFZk.mjs +291 -0
  16. package/dist/index-CmlP_Rro.mjs +332 -0
  17. package/dist/index-Cqw_E8lr.mjs +1269 -0
  18. package/dist/index-DA_FS24d.mjs +146 -0
  19. package/dist/index-DKmGNvQl.mjs +370 -0
  20. package/dist/index-DLxpE9s5.mjs +305 -0
  21. package/dist/index-DWaL87j5.mjs +89 -0
  22. package/dist/index-jOnQLJaB.mjs +416 -0
  23. package/dist/index-pyyjj1xa.mjs +187 -0
  24. package/dist/index.mjs +144 -0
  25. package/dist/index.vue_vue_type_script_setup_true_lang-C_itMCoU.mjs +37 -0
  26. package/dist/style.css +1 -0
  27. package/dts/App.vue.d.ts +2 -0
  28. package/dts/api/asset/asset-asset/index.d.ts +20 -0
  29. package/dts/api/asset/asset-asset/types.d.ts +93 -0
  30. package/dts/api/asset/asset-service-appt-member/index.d.ts +20 -0
  31. package/dts/api/asset/asset-service-appt-member/types.d.ts +71 -0
  32. package/dts/api/asset/asset-service-appt-record/index.d.ts +20 -0
  33. package/dts/api/asset/asset-service-appt-record/types.d.ts +98 -0
  34. package/dts/api/asset/asset-site/index.d.ts +15 -0
  35. package/dts/api/asset/asset-site/types.d.ts +81 -0
  36. package/dts/api/asset/asset-site-service/index.d.ts +14 -0
  37. package/dts/api/asset/asset-site-service/types.d.ts +80 -0
  38. package/dts/api/dict.d.ts +22 -0
  39. package/dts/api/index.d.ts +14 -0
  40. package/dts/api/org/union-org/index.d.ts +14 -0
  41. package/dts/api/org/union-org/types.d.ts +49 -0
  42. package/dts/components/EnumRadio/index.vue.d.ts +18 -0
  43. package/dts/components/EnumSelect/index.vue.d.ts +18 -0
  44. package/dts/components/TMaps/index.vue.d.ts +20 -0
  45. package/dts/components/Upload/ImageUpload.vue.d.ts +38 -0
  46. package/dts/components/Upload/MultiUpload.vue.d.ts +24 -0
  47. package/dts/constant.d.ts +16 -0
  48. package/dts/index.d.ts +4 -0
  49. package/dts/lang/asset/en.d.ts +2 -0
  50. package/dts/lang/asset/zh-cn.d.ts +91 -0
  51. package/dts/lang/index.d.ts +1 -0
  52. package/dts/main.d.ts +4 -0
  53. package/dts/permission.d.ts +1 -0
  54. package/dts/router/page.d.ts +2 -0
  55. package/dts/src/App.vue.d.ts +2 -0
  56. package/dts/src/api/asset/asset-asset/index.d.ts +20 -0
  57. package/dts/src/api/asset/asset-asset/types.d.ts +93 -0
  58. package/dts/src/api/asset/asset-service-appt-member/index.d.ts +20 -0
  59. package/dts/src/api/asset/asset-service-appt-member/types.d.ts +71 -0
  60. package/dts/src/api/asset/asset-service-appt-record/index.d.ts +20 -0
  61. package/dts/src/api/asset/asset-service-appt-record/types.d.ts +98 -0
  62. package/dts/src/api/asset/asset-site/index.d.ts +15 -0
  63. package/dts/src/api/asset/asset-site/types.d.ts +81 -0
  64. package/dts/src/api/asset/asset-site-service/index.d.ts +14 -0
  65. package/dts/src/api/asset/asset-site-service/types.d.ts +80 -0
  66. package/dts/src/api/dict.d.ts +22 -0
  67. package/dts/src/api/index.d.ts +14 -0
  68. package/dts/src/api/org/union-org/index.d.ts +14 -0
  69. package/dts/src/api/org/union-org/types.d.ts +49 -0
  70. package/dts/src/components/EnumRadio/index.vue.d.ts +18 -0
  71. package/dts/src/components/EnumSelect/index.vue.d.ts +18 -0
  72. package/dts/src/components/Upload/ImageUpload.vue.d.ts +38 -0
  73. package/dts/src/components/Upload/MultiUpload.vue.d.ts +24 -0
  74. package/dts/src/constant.d.ts +16 -0
  75. package/dts/src/index.d.ts +4 -0
  76. package/dts/src/lang/asset/en.d.ts +2 -0
  77. package/dts/src/lang/asset/zh-cn.d.ts +91 -0
  78. package/dts/src/lang/index.d.ts +1 -0
  79. package/dts/src/main.d.ts +4 -0
  80. package/dts/src/permission.d.ts +1 -0
  81. package/dts/src/router/page.d.ts +4 -0
  82. package/dts/src/utils/common.d.ts +51 -0
  83. package/dts/src/utils/index.d.ts +24 -0
  84. package/dts/src/views/asset/asset-asset/edit.vue.d.ts +22 -0
  85. package/dts/src/views/asset/asset-asset/index.vue.d.ts +2 -0
  86. package/dts/src/views/asset/asset-service-appt-member/edit.vue.d.ts +22 -0
  87. package/dts/src/views/asset/asset-service-appt-member/index.vue.d.ts +2 -0
  88. package/dts/src/views/asset/asset-service-appt-record/edit.vue.d.ts +22 -0
  89. package/dts/src/views/asset/asset-service-appt-record/index.vue.d.ts +2 -0
  90. package/dts/src/views/asset/asset-service-appt-record/info/index.vue.d.ts +2 -0
  91. package/dts/src/views/asset/asset-site/edit.vue.d.ts +22 -0
  92. package/dts/src/views/asset/asset-site/index.vue.d.ts +2 -0
  93. package/dts/src/views/asset/asset-site/info/index.vue.d.ts +2 -0
  94. package/dts/src/views/asset/asset-site-service/edit.vue.d.ts +22 -0
  95. package/dts/src/views/asset/asset-site-service/index.vue.d.ts +2 -0
  96. package/dts/tsconfig.tsbuildinfo +1 -0
  97. package/dts/utils/common.d.ts +51 -0
  98. package/dts/utils/index.d.ts +24 -0
  99. package/dts/views/asset/asset-asset/edit.vue.d.ts +22 -0
  100. package/dts/views/asset/asset-asset/index.vue.d.ts +2 -0
  101. package/dts/views/asset/asset-service-appt-member/edit.vue.d.ts +22 -0
  102. package/dts/views/asset/asset-service-appt-member/index.vue.d.ts +2 -0
  103. package/dts/views/asset/asset-service-appt-record/edit.vue.d.ts +22 -0
  104. package/dts/views/asset/asset-service-appt-record/index.vue.d.ts +2 -0
  105. package/dts/views/asset/asset-service-appt-record/info/index.vue.d.ts +2 -0
  106. package/dts/views/asset/asset-site/edit.vue.d.ts +22 -0
  107. package/dts/views/asset/asset-site/index.vue.d.ts +2 -0
  108. package/dts/views/asset/asset-site/info/index.vue.d.ts +2 -0
  109. package/dts/views/asset/asset-site-service/edit.vue.d.ts +22 -0
  110. package/dts/views/asset/asset-site-service/index.vue.d.ts +2 -0
  111. package/package.json +60 -0
@@ -0,0 +1,305 @@
1
+ var m = Object.defineProperty;
2
+ var E = (c, e, t) => e in c ? m(c, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : c[e] = t;
3
+ var s = (c, e, t) => (E(c, typeof e != "symbol" ? e + "" : e, t), t);
4
+ import { useUserStore as i, clearEmpty as r, request as u, BizLayDict as _, BizDict as d, EnumDict as v } from "jmash-core";
5
+ import { reactive as T, ref as h } from "vue";
6
+ class g {
7
+ constructor() {
8
+ // 修改实体场地管理
9
+ s(this, "update", function(e) {
10
+ return e.tenant = i().user.tenant, r(e), u({
11
+ url: "/v1/asset/site",
12
+ method: "patch",
13
+ data: e
14
+ });
15
+ });
16
+ }
17
+ getKey(e) {
18
+ return {
19
+ siteId: e.siteId
20
+ };
21
+ }
22
+ // 查询翻页信息场地管理
23
+ findPage(e) {
24
+ e && (e.hasStatus = e.status != null);
25
+ const t = i().user.tenant;
26
+ return r(e), u({
27
+ url: "/v1/asset/site/page/" + t,
28
+ method: "get",
29
+ params: e
30
+ });
31
+ }
32
+ // 查询列表信息场地管理
33
+ findList(e) {
34
+ const t = i().user.tenant;
35
+ return r(e), u({
36
+ url: "/v1/asset/site/list/" + t,
37
+ method: "get",
38
+ params: e
39
+ });
40
+ }
41
+ // 查询场地管理
42
+ findById(e) {
43
+ const t = i().user.tenant;
44
+ return r(e), u({
45
+ url: "/v1/asset/site/id/" + t + "/" + e.siteId,
46
+ method: "get"
47
+ });
48
+ }
49
+ // 创建实体场地管理
50
+ create(e) {
51
+ return e.tenant = i().user.tenant, r(e), u({
52
+ url: "/v1/asset/site",
53
+ method: "post",
54
+ data: e
55
+ });
56
+ }
57
+ // 启用/禁用
58
+ enable(e, t) {
59
+ const a = { ...e };
60
+ return a.tenant = i().user.tenant, a.enable = t, r(a), u({
61
+ url: "/v1/asset/site/enable",
62
+ method: "put",
63
+ data: a
64
+ });
65
+ }
66
+ // 删除场地管理
67
+ delete(e) {
68
+ return e.tenant = i().user.tenant, r(e), u({
69
+ url: "/v1/asset/site/id",
70
+ method: "delete",
71
+ params: e
72
+ });
73
+ }
74
+ // 批量删除场地管理
75
+ batchDelete(e) {
76
+ const t = e.map((l) => l.siteId), a = {
77
+ tenant: i().user.tenant,
78
+ SiteId: t
79
+ };
80
+ return r(a), u({
81
+ url: "/v1/asset/site/batch",
82
+ method: "put",
83
+ data: a
84
+ });
85
+ }
86
+ }
87
+ const A = new g();
88
+ class I {
89
+ getKey(e) {
90
+ return {
91
+ orgId: e.orgId
92
+ };
93
+ }
94
+ /**
95
+ * 获取工会组织架构树形列表
96
+ *
97
+ * @param query 查询参数,可选
98
+ * @returns 返回工会组织架构树形列表的 AxiosPromise 对象
99
+ */
100
+ findUnionOrgTreeListApi(e) {
101
+ const t = i().user.tenant;
102
+ return r(e), u({
103
+ url: "/v1/union/union_org/treelist/" + t,
104
+ method: "get",
105
+ params: e
106
+ });
107
+ }
108
+ }
109
+ const U = new I();
110
+ class f {
111
+ constructor() {
112
+ // 修改实体场地预约服务项目
113
+ s(this, "update", function(e) {
114
+ return e.tenant = i().user.tenant, r(e), u({
115
+ url: "/v1/asset/site_service",
116
+ method: "patch",
117
+ data: e
118
+ });
119
+ });
120
+ }
121
+ getKey(e) {
122
+ return {
123
+ serviceId: e.serviceId
124
+ };
125
+ }
126
+ // 查询翻页信息场地预约服务项目
127
+ findPage(e) {
128
+ const t = i().user.tenant;
129
+ return e != null && e.hasStatus && (e.hasStatus = !1), e != null && e.status && (e.hasStatus = !0), r(e), u({
130
+ url: "/v1/asset/site_service/page/" + t,
131
+ method: "get",
132
+ params: e
133
+ });
134
+ }
135
+ // 查询列表信息场地预约服务项目
136
+ findList(e) {
137
+ const t = i().user.tenant;
138
+ return r(e), u({
139
+ url: "/v1/asset/site_service/list/" + t,
140
+ method: "get",
141
+ params: e
142
+ });
143
+ }
144
+ // 查询场地预约服务项目
145
+ findById(e) {
146
+ const t = i().user.tenant;
147
+ return r(e), u({
148
+ url: "/v1/asset/site_service/id/" + t + "/" + e.serviceId,
149
+ method: "get"
150
+ });
151
+ }
152
+ // 创建实体场地预约服务项目
153
+ create(e) {
154
+ return e.tenant = i().user.tenant, r(e), u({
155
+ url: "/v1/asset/site_service",
156
+ method: "post",
157
+ data: e
158
+ });
159
+ }
160
+ // 删除场地预约服务项目
161
+ delete(e) {
162
+ return e.tenant = i().user.tenant, r(e), u({
163
+ url: "/v1/asset/site_service/id",
164
+ method: "delete",
165
+ params: e
166
+ });
167
+ }
168
+ // 批量删除场地预约服务项目
169
+ batchDelete(e) {
170
+ const t = e.map((l) => l.serviceId), a = {
171
+ tenant: i().user.tenant,
172
+ ServiceId: t
173
+ };
174
+ return r(a), u({
175
+ url: "/v1/asset/site_service/batch",
176
+ method: "put",
177
+ data: a
178
+ });
179
+ }
180
+ }
181
+ const p = new f();
182
+ class S {
183
+ constructor(e, t) {
184
+ s(this, "values", T([]));
185
+ // 查询条件
186
+ s(this, "query");
187
+ this.values.length = 0, this.values.push(...e.value), this.query = t;
188
+ }
189
+ // 根据给定键获取业务数据项的值的方法
190
+ getValue(e) {
191
+ for (const t of this.values)
192
+ if (t.key == e)
193
+ return t.value;
194
+ return "";
195
+ }
196
+ }
197
+ class D extends _ {
198
+ // 实现 useValues 方法
199
+ useValues() {
200
+ return new Promise((e, t) => {
201
+ U.findUnionOrgTreeListApi().then(({ data: a }) => {
202
+ this.values.length = 0, this.values.push(...a.results), e(this.values);
203
+ }).catch(t);
204
+ });
205
+ }
206
+ }
207
+ class L extends d {
208
+ // 实现 useValues 方法
209
+ useValues() {
210
+ return new Promise((e, t) => {
211
+ A.findList(this.query).then(({ data: a }) => {
212
+ this.values.length = 0, this.values.push(
213
+ ...a.results.map(
214
+ (l) => ({
215
+ key: l.siteId,
216
+ value: l.name
217
+ })
218
+ )
219
+ ), e(this.values);
220
+ }).catch(t);
221
+ });
222
+ }
223
+ }
224
+ class w extends d {
225
+ // 实现 useValues 方法
226
+ useValues() {
227
+ return new Promise((e, t) => {
228
+ p.findList(this.query).then(({ data: a }) => {
229
+ this.values.length = 0, this.values.push(
230
+ ...a.results.map(
231
+ (l) => ({
232
+ key: l.siteId,
233
+ value: l.serviceName
234
+ })
235
+ )
236
+ ), e(this.values);
237
+ }).catch(t);
238
+ });
239
+ }
240
+ }
241
+ class N extends d {
242
+ // 实现 useValues 方法
243
+ useValues() {
244
+ return new Promise((e, t) => {
245
+ p.findList().then(({ data: a }) => {
246
+ this.values.length = 0, this.values.push(
247
+ ...a.results.map(
248
+ (l) => ({
249
+ key: l.siteId,
250
+ value: l.manager
251
+ })
252
+ )
253
+ ), e(this.values);
254
+ }).catch(t);
255
+ });
256
+ }
257
+ }
258
+ class n {
259
+ }
260
+ // 模块
261
+ s(n, "MODULE_ASSET", "asset"), // 启用禁用
262
+ s(n, "ENABLE_VALUES", h([
263
+ { key: "true", value: "启用" },
264
+ { key: "false", value: "禁用" }
265
+ ])), // 分配状态
266
+ s(n, "ENUM_ASSET_STATUS", h([
267
+ { key: "true", value: "已分配" },
268
+ { key: "false", value: "未分配" }
269
+ ])), // 项目状态
270
+ s(n, "ENUM_SERVICE_STATUS", "xyvcard.asset.protobuf.ServiceStatus"), // 场地地址
271
+ s(n, "DICT_SITE_ID", "siteId"), // 状态
272
+ s(n, "ENUM_STATUS", "xyvcard.asset.protobuf.ApptMemberStatus"), // 资产属性
273
+ s(n, "ENUM_SORT_STATUS", "xyvcard.asset.protobuf.AssetSortType"), // 折旧方式
274
+ s(n, "ENUM_DEPRECIA_TION", "xyvcard.asset.protobuf.DepreciationType");
275
+ class o {
276
+ }
277
+ // 启用禁用
278
+ s(o, "enableDict", new S(n.ENABLE_VALUES, {})), // 所属工会
279
+ s(o, "unionOrgBizLayDict", new D({})), // 项目状态
280
+ s(o, "serviceStatusEnum", new v(
281
+ n.MODULE_ASSET,
282
+ n.ENUM_SERVICE_STATUS
283
+ )), // 场地名称
284
+ s(o, "siteDict", new L({})), // 项目名称
285
+ s(o, "serviceNameDict", new w({})), // 管理员姓名
286
+ s(o, "managerDict", new N({})), // 状态
287
+ s(o, "statusDictEnum", new v(
288
+ n.MODULE_ASSET,
289
+ n.ENUM_STATUS
290
+ )), // 分配状态
291
+ s(o, "assetStatusDict", new S(n.ENUM_ASSET_STATUS, {})), // 资产属性
292
+ s(o, "assetSortDictEnum", new v(
293
+ n.MODULE_ASSET,
294
+ n.ENUM_SORT_STATUS
295
+ )), // 折旧方式
296
+ s(o, "depreciationTypeEnum", new v(
297
+ n.MODULE_ASSET,
298
+ n.ENUM_DEPRECIA_TION
299
+ ));
300
+ export {
301
+ o as D,
302
+ L as S,
303
+ p as a,
304
+ A as s
305
+ };
@@ -0,0 +1,89 @@
1
+ import { defineComponent as v, ref as D, resolveComponent as s, openBlock as B, createElementBlock as k, createVNode as t, withCtx as e, createTextVNode as l, toDisplayString as n, createElementVNode as a, unref as c } from "vue";
2
+ import { useRouter as w, useRoute as I } from "vue-router";
3
+ import { s as u, D as _ } from "./index-DLxpE9s5.mjs";
4
+ const V = { class: "app-container" }, q = /* @__PURE__ */ a("div", { class: "title-content" }, "场地信息", -1), C = { class: "cell-item" }, O = { class: "cell-item" }, R = { class: "cell-item" }, L = /* @__PURE__ */ v({
5
+ __name: "index",
6
+ setup($) {
7
+ const m = w(), d = I(), i = D({});
8
+ d.query.entityKey && u.findById && u.findById({ siteId: d.query.entityKey }).then(({ data: o }) => {
9
+ console.log(o, "data"), i.value = Object.assign(i, o);
10
+ }), _.unionOrgBizLayDict.useValues();
11
+ function p() {
12
+ m.push({ path: "/asset/asset-site" });
13
+ }
14
+ return (o, N) => {
15
+ const f = s("el-button"), r = s("el-descriptions-item"), y = s("el-descriptions"), h = s("el-col"), g = s("el-row"), b = s("el-card");
16
+ return B(), k("div", V, [
17
+ t(b, { shadow: "never" }, {
18
+ header: e(() => [
19
+ t(f, {
20
+ type: "primary",
21
+ onClick: p
22
+ }, {
23
+ default: e(() => [
24
+ l(n(o.$t("common.back")), 1)
25
+ ]),
26
+ _: 1
27
+ })
28
+ ]),
29
+ default: e(() => [
30
+ t(g, {
31
+ gutter: 20,
32
+ style: { width: "100%" }
33
+ }, {
34
+ default: e(() => [
35
+ t(h, { span: 24 }, {
36
+ default: e(() => [
37
+ q,
38
+ t(y, {
39
+ class: "margin-top",
40
+ column: 2,
41
+ border: ""
42
+ }, {
43
+ default: e(() => [
44
+ t(r, null, {
45
+ label: e(() => [
46
+ a("div", C, n(o.$t("site.orgId")), 1)
47
+ ]),
48
+ default: e(() => [
49
+ l(" " + n(c(_).unionOrgBizLayDict.getValue(c(i).orgId)), 1)
50
+ ]),
51
+ _: 1
52
+ }),
53
+ t(r, null, {
54
+ label: e(() => [
55
+ a("div", O, n(o.$t("site.nameRequired")), 1)
56
+ ]),
57
+ default: e(() => [
58
+ l(" " + n(c(i).name), 1)
59
+ ]),
60
+ _: 1
61
+ }),
62
+ t(r, null, {
63
+ label: e(() => [
64
+ a("div", R, n(o.$t("site.buildDateRequired")), 1)
65
+ ]),
66
+ default: e(() => [
67
+ l(" " + n(c(i).buildDate), 1)
68
+ ]),
69
+ _: 1
70
+ })
71
+ ]),
72
+ _: 1
73
+ })
74
+ ]),
75
+ _: 1
76
+ })
77
+ ]),
78
+ _: 1
79
+ })
80
+ ]),
81
+ _: 1
82
+ })
83
+ ]);
84
+ };
85
+ }
86
+ });
87
+ export {
88
+ L as default
89
+ };