xyvcard-asset 0.0.12 → 0.0.14

Sign up to get free protection for your applications and to get access to all the features.
Files changed (70) hide show
  1. package/dist/{edit-BWhOgMw-.mjs → edit-BD4l4cZV.mjs} +1 -1
  2. package/dist/{edit-CZujIURb.mjs → edit-BIE_CJlr.mjs} +1 -1
  3. package/dist/{edit-DPssVAky.mjs → edit-DR-WgdT5.mjs} +1 -1
  4. package/dist/{edit.vue_vue_type_script_setup_true_lang-6j8bVbef.mjs → edit.vue_vue_type_script_setup_true_lang-CmaI0KId.mjs} +110 -98
  5. package/dist/edit.vue_vue_type_script_setup_true_lang-DoD-08Fj.mjs +446 -0
  6. package/dist/{edit.vue_vue_type_script_setup_true_lang-CjH6sYw4.mjs → edit.vue_vue_type_script_setup_true_lang-Dv2cJTUD.mjs} +0 -1
  7. package/dist/{index-Bz6eEggE.mjs → index-Bqv9_BYL.mjs} +1 -1
  8. package/dist/{index-DIKzzLQ2.mjs → index-BxeGNuSx.mjs} +55 -45
  9. package/dist/{index-4vX1fgzo.mjs → index-BzUXtBGU.mjs} +111 -108
  10. package/dist/{index-BxfpD3CM.mjs → index-C9FfnHCZ.mjs} +1 -1
  11. package/dist/{index-CDYXKnyU.mjs → index-CHaJu5hs.mjs} +90 -80
  12. package/dist/{index-C1U7BVdL.mjs → index-CJhQRbHt.mjs} +1 -1
  13. package/dist/index-CuDcmifl.mjs +165 -0
  14. package/dist/index.mjs +10 -7
  15. package/dts/api/asset/asset-site-service/types.d.ts +5 -0
  16. package/dts/lang/asset/zh-cn.d.ts +3 -0
  17. package/dts/src/api/asset/asset-asset/index.d.ts +3 -1
  18. package/dts/src/api/asset/asset-asset/types.d.ts +23 -17
  19. package/dts/src/api/asset/asset-asset-detail/index.d.ts +10 -2
  20. package/dts/src/api/asset/asset-asset-detail/types.d.ts +22 -13
  21. package/dts/src/api/asset/asset-inventory-record/index.d.ts +7 -2
  22. package/dts/src/api/asset/asset-inventory-record/types.d.ts +1 -0
  23. package/dts/src/api/asset/asset-service-appt-member/index.d.ts +12 -1
  24. package/dts/src/api/asset/asset-service-appt-member/types.d.ts +44 -1
  25. package/dts/src/api/asset/asset-service-appt-record/types.d.ts +1 -1
  26. package/dts/src/api/asset/asset-site/index.d.ts +2 -1
  27. package/dts/src/api/asset/asset-site-service/index.d.ts +2 -1
  28. package/dts/src/components/EnumRadio/index.vue.d.ts +18 -0
  29. package/dts/src/components/EnumSelect/index.vue.d.ts +18 -0
  30. package/dts/src/components/Upload/ImageUpload.vue.d.ts +1 -1
  31. package/dts/src/index.d.ts +1 -1
  32. package/dts/src/lang/asset/zh-cn.d.ts +6 -38
  33. package/dts/src/router/page.d.ts +0 -2
  34. package/dts/src/views/asset/{asset-asset-detail → asset-service-appt-member}/edit.vue.d.ts +7 -5
  35. package/dts/tsconfig.tsbuildinfo +1 -1
  36. package/package.json +3 -3
  37. package/dist/edit.vue_vue_type_script_setup_true_lang-CrrY9V5d.mjs +0 -394
  38. package/dist/index-_uK0Hvab.mjs +0 -91
  39. package/dts/components/PeopleSelectAsset/index.vue.d.ts +0 -18
  40. package/dts/components/deptPeopleSelectAsset/index.vue.d.ts +0 -14
  41. package/dts/src/api/asset/asset-depreciation-record/index.d.ts +0 -11
  42. package/dts/src/api/asset/asset-depreciation-record/types.d.ts +0 -38
  43. package/dts/src/api/asset/text/index.d.ts +0 -0
  44. package/dts/src/api/asset/text/types.d.ts +0 -0
  45. package/dts/src/components/PeopleSelect/index.vue.d.ts +0 -18
  46. package/dts/src/components/deptPeopleSelect/index.vue.d.ts +0 -2
  47. package/dts/src/components copy/PeopleSelect/index.vue.d.ts +0 -18
  48. package/dts/src/components copy/PeopleSelect//345/244/207/344/273/275/index copy 2.vue.d.ts" +0 -34
  49. package/dts/src/components copy/PeopleSelect//345/244/207/344/273/275/index copy 22.vue.d.ts" +0 -18
  50. package/dts/src/components copy/PeopleSelect//345/244/207/344/273/275/index copy.vue.d.ts" +0 -34
  51. package/dts/src/components copy/PeopleSelect//345/244/207/344/273/275/index/345/215/225/351/200/211/346/241/206/346/234/200/346/226/260.vue.d.ts" +0 -34
  52. package/dts/src/components copy/PeopleSelect//345/244/207/344/273/275/tree/351/200/211/346/213/251/346/241/206/344/270/215/345/261/225/347/244/272/346/225/260/346/215/256,/344/270/213/346/226/271/351/242/204/350/247/210/346/225/260/346/215/256.vue.d.ts" +0 -18
  53. package/dts/src/components copy/PeopleSelect//345/244/207/344/273/275//345/217/214/351/200/211/346/213/251.vue.d.ts" +0 -42
  54. package/dts/src/components copy/PeopleSelect//345/244/207/344/273/275//351/200/211/346/213/251/344/272/272/345/221/230/index.vue.d.ts" +0 -34
  55. package/dts/src/components copy/Upload/ImageUpload.vue.d.ts +0 -38
  56. package/dts/src/components copy/Upload/MultiUpload.vue.d.ts +0 -24
  57. package/dts/src/views/asset/asset-asset-detail/index.vue.d.ts +0 -2
  58. package/dts/src/views/asset/asset-depreciation-record/index.vue.d.ts +0 -2
  59. package/dts/src/views/asset/asset-depreciation-record/info/index.vue.d.ts +0 -2
  60. package/dts/src/views/asset/asset-inventory-record/dialogSelect/index.vue.d.ts +0 -6
  61. package/dts/src/views/asset/asset-inventory-record/index/345/244/207/344/273/275.vue.d.ts +0 -2
  62. package/dts/src/views/asset/asset-inventory-record/info/index.vue.d.ts +0 -2
  63. package/dts/src/views/asset/asset-inventory-record/text/index copy.vue.d.ts +0 -2
  64. package/dts/src/views/asset/asset-inventory-record/text/index.vue.d.ts +0 -2
  65. package/dts/views/asset/asset-inventory-record/dialogSelect/index.vue.d.ts +0 -6
  66. package/dts/views/asset/asset-inventory-record/indexOld.vue.d.ts +0 -2
  67. package/dts/views/asset/asset-inventory-record/index/345/244/207/344/273/275.vue.d.ts +0 -2
  68. package/dts/views/asset/asset-inventory-record/text/index copy.vue.d.ts +0 -2
  69. package/dts/views/asset/asset-inventory-record/text/index.vue.d.ts +0 -2
  70. /package/dts/src/{components copy/deptPeopleSelect → views/asset/asset-service-appt-member}/index.vue.d.ts +0 -0
@@ -0,0 +1,446 @@
1
+ import { defineComponent as le, mergeModels as E, getCurrentInstance as ie, ref as S, reactive as H, watch as $, computed as ae, useModel as oe, resolveComponent as n, openBlock as f, createBlock as O, withCtx as a, createElementVNode as re, createVNode as i, createTextVNode as g, toDisplayString as D, unref as r, createElementBlock as q, Fragment as j, renderList as z } from "vue";
2
+ import { D as p, S as se, b as V } from "./index-CGds22-2.mjs";
3
+ import { ElMessage as R } from "element-plus";
4
+ import { useI18n as ne } from "vue-i18n";
5
+ import { a as L } from "./common-CshrwPyx.mjs";
6
+ const me = { class: "dialog-footer" }, ge = /* @__PURE__ */ le({
7
+ __name: "edit",
8
+ props: /* @__PURE__ */ E({
9
+ entityKey: {
10
+ type: Object,
11
+ default: () => {
12
+ }
13
+ }
14
+ }, {
15
+ modelValue: { type: Boolean },
16
+ modelModifiers: {}
17
+ }),
18
+ emits: /* @__PURE__ */ E(["refresh"], ["update:modelValue"]),
19
+ setup(k, { emit: F }) {
20
+ p.unionOrgBizLayDict.useValues(), p.managerDict.useValues(), p.serviceNameDict.useValues(), p.siteDict.useValues();
21
+ const { t: m } = ne(), { proxy: w } = ie(), T = S();
22
+ let t = H({
23
+ requestId: Math.random() * 10 + "",
24
+ updateMask: "siteId,serviceName,minDay,maxDay,limitPerson,status,note",
25
+ limitInfo: [
26
+ {
27
+ time: [],
28
+ startTime: "",
29
+ endTime: "",
30
+ limitPerson: 1
31
+ }
32
+ ]
33
+ });
34
+ $(
35
+ () => [t.minDay, t.maxDay, t.limitPerson],
36
+ ([e, l, s]) => {
37
+ e !== null && l !== null ? t.day = `${e}~${l}` : t.day = "", t.limitInfo.forEach((u) => {
38
+ u.limitPerson = s;
39
+ });
40
+ }
41
+ ), ae(() => {
42
+ const { minDay: e, maxDay: l } = t;
43
+ return e !== null && l !== null ? `${e}~${l}` : "";
44
+ }), $(
45
+ () => t.limitInfo,
46
+ (e) => {
47
+ e.every((s) => s.time && s.time.length > 0) ? t.time = "校验通过" : t.time = "";
48
+ },
49
+ { deep: !0 }
50
+ );
51
+ const K = H({
52
+ // 所属工会
53
+ orgId: [
54
+ {
55
+ required: !0,
56
+ message: m("siteService.orgIdRequired"),
57
+ trigger: "change"
58
+ }
59
+ ],
60
+ // 场地名称
61
+ siteId: [
62
+ {
63
+ required: !0,
64
+ message: m("siteService.siteIdRequired"),
65
+ trigger: "change"
66
+ }
67
+ ],
68
+ // 预约项目
69
+ serviceName: [
70
+ {
71
+ required: !0,
72
+ message: m("siteService.serviceNameRequired"),
73
+ trigger: "blur"
74
+ }
75
+ ],
76
+ // 可预约天数
77
+ day: [
78
+ {
79
+ required: !0,
80
+ message: m("siteService.dayRequired"),
81
+ trigger: "blur"
82
+ },
83
+ {
84
+ validator: (e, l, s) => {
85
+ const { minDay: u, maxDay: d } = t;
86
+ u === null ? s(new Error(m("siteService.dayRequired"))) : d === null ? s(new Error(m("siteService.dayRequired"))) : s();
87
+ },
88
+ trigger: "change"
89
+ }
90
+ ],
91
+ // 限制人流
92
+ limitPerson: [
93
+ {
94
+ required: !0,
95
+ message: m("siteService.limitPersonRequired"),
96
+ trigger: "blur"
97
+ }
98
+ ],
99
+ // 项目状态
100
+ status: [
101
+ {
102
+ required: !0,
103
+ message: m("siteService.statusRequired"),
104
+ trigger: "change"
105
+ }
106
+ ],
107
+ // 预约规则说明
108
+ note: [
109
+ {
110
+ message: m("siteService.note"),
111
+ trigger: "blur"
112
+ }
113
+ ],
114
+ // 可预约时间段
115
+ time: [
116
+ {
117
+ required: !0,
118
+ message: m("siteService.timeRequired"),
119
+ trigger: "blur"
120
+ }
121
+ ]
122
+ });
123
+ $(
124
+ () => t.siteId,
125
+ (e) => {
126
+ e || t.orgId && C(t.orgId);
127
+ }
128
+ );
129
+ const b = S();
130
+ function C(e) {
131
+ if (!e) {
132
+ b.value = [];
133
+ return;
134
+ }
135
+ const l = new se({ orgId: e });
136
+ l.useValues(), console.log(l.values), b.value = l.values;
137
+ }
138
+ const c = oe(k, "modelValue"), _ = k, P = F, M = Object.keys(_.entityKey), N = S(M.length >= 1);
139
+ N.value && V.findById(_.entityKey).then(({ data: e }) => {
140
+ console.log(e), e.siteId = e.name, Object.assign(t, e), V.findlimitInfoById(_.entityKey).then(({ data: { results: l } }) => {
141
+ t.limitInfo = l.map((s) => ({
142
+ ...s,
143
+ time: [
144
+ L(s.startTime),
145
+ L(s.endTime)
146
+ ]
147
+ }));
148
+ });
149
+ });
150
+ const A = async () => {
151
+ var e;
152
+ await ((e = T.value) == null ? void 0 : e.validate((l) => {
153
+ l && (N.value ? V.update(t).then((s) => {
154
+ s.status === 200 && (R({
155
+ message: m("common.submitSuccess"),
156
+ type: "success"
157
+ }), c.value && (c.value = !1), P("refresh", s.status === 200));
158
+ }) : V.create(t).then((s) => {
159
+ s.status === 200 && (R({
160
+ message: m("common.submitSuccess"),
161
+ type: "success"
162
+ }), c.value && (c.value = !1), P("refresh", s.status === 200));
163
+ }));
164
+ }));
165
+ };
166
+ function G(e, l) {
167
+ t.limitInfo[l].startTime = w.$moment.formatDate(e[0], "HH:mm"), t.limitInfo[l].endTime = w.$moment.formatDate(e[1], "HH:mm");
168
+ }
169
+ function J() {
170
+ t.limitInfo.push({
171
+ startTime: "",
172
+ endTime: "",
173
+ limitPerson: t.limitPerson
174
+ });
175
+ }
176
+ function Q(e) {
177
+ if (t.limitInfo.length === 1) {
178
+ R({
179
+ message: "最少保留一个时间段",
180
+ type: "error"
181
+ });
182
+ return;
183
+ }
184
+ t.limitInfo.splice(e, 1);
185
+ }
186
+ function U() {
187
+ c.value && (c.value = !1);
188
+ }
189
+ return (e, l) => {
190
+ const s = n("el-tree-select"), u = n("el-form-item"), d = n("el-col"), W = n("el-option"), X = n("el-select"), h = n("el-input"), B = n("el-input-number"), Y = n("jmash-select"), Z = n("el-time-picker"), v = n("el-button"), x = n("el-row"), ee = n("el-form"), te = n("el-dialog");
191
+ return f(), O(te, {
192
+ modelValue: c.value,
193
+ "onUpdate:modelValue": l[8] || (l[8] = (o) => c.value = o),
194
+ onClose: U
195
+ }, {
196
+ footer: a(() => [
197
+ re("div", me, [
198
+ i(v, { onClick: U }, {
199
+ default: a(() => [
200
+ g(D(e.$t("common.cancel")), 1)
201
+ ]),
202
+ _: 1
203
+ }),
204
+ i(v, {
205
+ type: "primary",
206
+ onClick: A
207
+ }, {
208
+ default: a(() => [
209
+ g(D(e.$t("common.confirm")), 1)
210
+ ]),
211
+ _: 1
212
+ })
213
+ ])
214
+ ]),
215
+ default: a(() => [
216
+ i(ee, {
217
+ ref_key: "siteServiceFormRef",
218
+ ref: T,
219
+ model: r(t),
220
+ "label-width": "120px",
221
+ rules: K
222
+ }, {
223
+ default: a(() => [
224
+ i(x, null, {
225
+ default: a(() => [
226
+ i(d, { span: 12 }, {
227
+ default: a(() => [
228
+ i(u, {
229
+ label: e.$t("siteService.orgId"),
230
+ prop: "orgId"
231
+ }, {
232
+ default: a(() => [
233
+ i(s, {
234
+ modelValue: r(t).orgId,
235
+ "onUpdate:modelValue": l[0] || (l[0] = (o) => r(t).orgId = o),
236
+ data: r(p).unionOrgBizLayDict.values,
237
+ filterable: "",
238
+ clearable: "",
239
+ "check-strictly": "",
240
+ "render-after-expand": !1,
241
+ placeholder: e.$t("siteService.orgIdRequired"),
242
+ style: { width: "100%" },
243
+ onChange: C
244
+ }, null, 8, ["modelValue", "data", "placeholder"])
245
+ ]),
246
+ _: 1
247
+ }, 8, ["label"])
248
+ ]),
249
+ _: 1
250
+ }),
251
+ i(d, { span: 12 }, {
252
+ default: a(() => [
253
+ i(u, {
254
+ label: e.$t("siteService.siteId"),
255
+ prop: "siteId"
256
+ }, {
257
+ default: a(() => [
258
+ i(X, {
259
+ modelValue: r(t).siteId,
260
+ "onUpdate:modelValue": l[1] || (l[1] = (o) => r(t).siteId = o),
261
+ disabled: !r(t).orgId,
262
+ placeholder: e.$t("siteService.siteIdRequired"),
263
+ clearable: ""
264
+ }, {
265
+ default: a(() => [
266
+ (f(!0), q(j, null, z(b.value, (o) => (f(), O(W, {
267
+ key: o.key,
268
+ label: o.value,
269
+ value: o.key
270
+ }, null, 8, ["label", "value"]))), 128))
271
+ ]),
272
+ _: 1
273
+ }, 8, ["modelValue", "disabled", "placeholder"])
274
+ ]),
275
+ _: 1
276
+ }, 8, ["label"])
277
+ ]),
278
+ _: 1
279
+ }),
280
+ i(d, { span: 12 }, {
281
+ default: a(() => [
282
+ i(u, {
283
+ label: e.$t("siteService.serviceName"),
284
+ prop: "serviceName"
285
+ }, {
286
+ default: a(() => [
287
+ i(h, {
288
+ modelValue: r(t).serviceName,
289
+ "onUpdate:modelValue": l[2] || (l[2] = (o) => r(t).serviceName = o),
290
+ placeholder: e.$t("siteService.serviceNameRequired"),
291
+ "show-word-limit": "",
292
+ clearable: ""
293
+ }, null, 8, ["modelValue", "placeholder"])
294
+ ]),
295
+ _: 1
296
+ }, 8, ["label"])
297
+ ]),
298
+ _: 1
299
+ }),
300
+ i(d, { span: 12 }, {
301
+ default: a(() => [
302
+ i(u, {
303
+ label: e.$t("siteService.day"),
304
+ prop: "day"
305
+ }, {
306
+ default: a(() => [
307
+ i(B, {
308
+ modelValue: r(t).minDay,
309
+ "onUpdate:modelValue": l[3] || (l[3] = (o) => r(t).minDay = o),
310
+ size: "small",
311
+ min: 0
312
+ }, null, 8, ["modelValue"]),
313
+ g("~ "),
314
+ i(B, {
315
+ modelValue: r(t).maxDay,
316
+ "onUpdate:modelValue": l[4] || (l[4] = (o) => r(t).maxDay = o),
317
+ size: "small",
318
+ min: 0
319
+ }, null, 8, ["modelValue"])
320
+ ]),
321
+ _: 1
322
+ }, 8, ["label"])
323
+ ]),
324
+ _: 1
325
+ }),
326
+ i(d, { span: 12 }, {
327
+ default: a(() => [
328
+ i(u, {
329
+ label: e.$t("siteService.limitPerson"),
330
+ prop: "limitPerson"
331
+ }, {
332
+ default: a(() => [
333
+ i(h, {
334
+ modelValue: r(t).limitPerson,
335
+ "onUpdate:modelValue": l[5] || (l[5] = (o) => r(t).limitPerson = o),
336
+ placeholder: e.$t("siteService.limitPersonRequired"),
337
+ "show-word-limit": "",
338
+ clearable: "",
339
+ type: "number",
340
+ min: "0"
341
+ }, null, 8, ["modelValue", "placeholder"])
342
+ ]),
343
+ _: 1
344
+ }, 8, ["label"])
345
+ ]),
346
+ _: 1
347
+ }),
348
+ i(d, { span: 12 }, {
349
+ default: a(() => [
350
+ i(u, {
351
+ label: e.$t("siteService.status"),
352
+ prop: "status"
353
+ }, {
354
+ default: a(() => [
355
+ i(Y, {
356
+ modelValue: r(t).status,
357
+ "onUpdate:modelValue": l[6] || (l[6] = (o) => r(t).status = o),
358
+ placeholder: e.$t("siteService.statusRequired"),
359
+ data: r(p).serviceStatusEnum.values,
360
+ clearable: "",
361
+ style: { width: "100% !important" }
362
+ }, null, 8, ["modelValue", "placeholder", "data"])
363
+ ]),
364
+ _: 1
365
+ }, 8, ["label"])
366
+ ]),
367
+ _: 1
368
+ }),
369
+ i(d, { span: 24 }, {
370
+ default: a(() => [
371
+ i(u, {
372
+ label: e.$t("siteService.note"),
373
+ prop: "note"
374
+ }, {
375
+ default: a(() => [
376
+ i(h, {
377
+ modelValue: r(t).note,
378
+ "onUpdate:modelValue": l[7] || (l[7] = (o) => r(t).note = o),
379
+ type: "textarea",
380
+ maxlength: "100",
381
+ "show-word-limit": "",
382
+ placeholder: e.$t("siteService.noteRequired"),
383
+ rows: 3
384
+ }, null, 8, ["modelValue", "placeholder"])
385
+ ]),
386
+ _: 1
387
+ }, 8, ["label"])
388
+ ]),
389
+ _: 1
390
+ }),
391
+ i(d, { span: 24 }, {
392
+ default: a(() => [
393
+ i(u, {
394
+ label: e.$t("siteService.time"),
395
+ prop: "time"
396
+ }, {
397
+ default: a(() => [
398
+ (f(!0), q(j, null, z(r(t).limitInfo, (o, I) => (f(), q("div", { key: I }, [
399
+ i(Z, {
400
+ modelValue: o.time,
401
+ "onUpdate:modelValue": (y) => o.time = y,
402
+ "is-range": "",
403
+ style: { width: "315px" },
404
+ format: "HH:mm",
405
+ "range-separator": "To",
406
+ "start-placeholder": e.$t("siteService.startTime"),
407
+ "end-placeholder": e.$t("siteService.endTime"),
408
+ onChange: (y) => G(y, I)
409
+ }, null, 8, ["modelValue", "onUpdate:modelValue", "start-placeholder", "end-placeholder", "onChange"]),
410
+ i(v, {
411
+ style: { "margin-left": "30px", "margin-right": "30px" },
412
+ onClick: (y) => Q(I)
413
+ }, {
414
+ default: a(() => [
415
+ g(D(e.$t("common.delete")), 1)
416
+ ]),
417
+ _: 2
418
+ }, 1032, ["onClick"]),
419
+ i(v, { onClick: J }, {
420
+ default: a(() => [
421
+ g("添加")
422
+ ]),
423
+ _: 1
424
+ })
425
+ ]))), 128))
426
+ ]),
427
+ _: 1
428
+ }, 8, ["label"])
429
+ ]),
430
+ _: 1
431
+ })
432
+ ]),
433
+ _: 1
434
+ })
435
+ ]),
436
+ _: 1
437
+ }, 8, ["model", "rules"])
438
+ ]),
439
+ _: 1
440
+ }, 8, ["modelValue"]);
441
+ };
442
+ }
443
+ });
444
+ export {
445
+ ge as _
446
+ };
@@ -40,7 +40,6 @@ const x = /* @__PURE__ */ f("div", { class: "title-content" }, "资产信息", -
40
40
  // 资产编号
41
41
  code: [
42
42
  {
43
- required: !0,
44
43
  message: i("asset.codeRequired"),
45
44
  trigger: "change"
46
45
  }
@@ -1,6 +1,6 @@
1
1
  import { defineComponent as ne, ref as f, reactive as z, resolveComponent as d, resolveDirective as ue, openBlock as r, createElementBlock as $, createElementVNode as h, createVNode as s, withCtx as l, withKeys as N, unref as o, createTextVNode as m, toDisplayString as u, withDirectives as c, createBlock as b, isRef as A, createCommentVNode as k } from "vue";
2
2
  import { useI18n as re } from "vue-i18n";
3
- import { _ as ie } from "./edit.vue_vue_type_script_setup_true_lang-CjH6sYw4.mjs";
3
+ import { _ as ie } from "./edit.vue_vue_type_script_setup_true_lang-Dv2cJTUD.mjs";
4
4
  import de from "./assign-4SD6S-Fb.mjs";
5
5
  import { a as me, D as V } from "./index-CGds22-2.mjs";
6
6
  import { useTableHooks as pe } from "jmash-core";