xyvcard-asset 0.0.23 → 0.0.25

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.
Files changed (46) hide show
  1. package/dist/{assign-D4YB344H.mjs → assign-Cx16U6jb.mjs} +7 -5
  2. package/dist/{edit-yvYhMo5N.mjs → edit-B49ygJbc.mjs} +1 -1
  3. package/dist/{edit-Bwq5Vg9D.mjs → edit-Ds7g0sBn.mjs} +1 -1
  4. package/dist/{edit-D3zlqt11.mjs → edit-DuHNKz_4.mjs} +1 -1
  5. package/dist/{edit-DxvSeH5Y.mjs → edit-JbjxRp1e.mjs} +1 -1
  6. package/dist/{edit.vue_vue_type_script_setup_true_lang-CA2vVvh7.mjs → edit.vue_vue_type_script_setup_true_lang-BKhYm0-l.mjs} +28 -24
  7. package/dist/{edit.vue_vue_type_script_setup_true_lang-CK2dpk1z.mjs → edit.vue_vue_type_script_setup_true_lang-C06QNWoO.mjs} +120 -115
  8. package/dist/{edit.vue_vue_type_script_setup_true_lang-DnzT146Q.mjs → edit.vue_vue_type_script_setup_true_lang-DCQmjaPp.mjs} +10 -8
  9. package/dist/{edit.vue_vue_type_script_setup_true_lang-D59t05Ec.mjs → edit.vue_vue_type_script_setup_true_lang-mrDURO_L.mjs} +14 -13
  10. package/dist/{index-4gYJADQ3.mjs → index-5OS9ZzQf.mjs} +1 -1
  11. package/dist/index-BI8iDWzU.mjs +117 -0
  12. package/dist/index-BPuC76hs.mjs +338 -0
  13. package/dist/index-BQdGP1ah.mjs +152 -0
  14. package/dist/{index-DZAvRhPJ.mjs → index-BTfwEQad.mjs} +18 -16
  15. package/dist/index-BTvHsKHc.mjs +48286 -0
  16. package/dist/{index-CVU2G5rZ.mjs → index-B_EEJeEN.mjs} +1 -1
  17. package/dist/{index-CQE1DdOZ.mjs → index-C0Rd9wWv.mjs} +30 -27
  18. package/dist/{index-e_AlnW3A.mjs → index-C0cy2lYz.mjs} +37 -35
  19. package/dist/{index-BmxQiLjm.mjs → index-C33SaJIu.mjs} +48 -46
  20. package/dist/{index-DxQzN9_F.mjs → index-ColX0w7n.mjs} +17 -14
  21. package/dist/{index-Bx1vPk7S.mjs → index-D13F64qL.mjs} +142 -152
  22. package/dist/{index-vfIgwaoQ.mjs → index-DGHhDZ-w.mjs} +24 -22
  23. package/dist/{index-DmX4B8mf.mjs → index-DTHatck1.mjs} +61 -59
  24. package/dist/{index-eTof-sqF.mjs → index-DwPSpT78.mjs} +22 -20
  25. package/dist/index-U4WVV44p.mjs +1412 -0
  26. package/dist/{index-hCldWS2K.mjs → index-yjFsDfGI.mjs} +48 -45
  27. package/dist/index.mjs +2 -2
  28. package/dist/style.css +1 -1
  29. package/dts/api/asset/asset-asset/index.d.ts +1 -8
  30. package/dts/api/asset/asset-site-service/index.d.ts +2 -2
  31. package/dts/api/asset/asset-site-service/types.d.ts +1 -5
  32. package/dts/api/dict.d.ts +1 -4
  33. package/dts/api/index.d.ts +2 -1
  34. package/dts/constant.d.ts +3 -3
  35. package/dts/main.d.ts +1 -0
  36. package/dts/utils/common.d.ts +0 -41
  37. package/dts/views/asset/asset-site/edit.vue.d.ts +1 -1
  38. package/package.json +11 -13
  39. package/dist/index-0_FQdBCk.mjs +0 -322
  40. package/dist/index-BOS2gtjd.mjs +0 -165
  41. package/dist/index-eassrLOa.mjs +0 -1673
  42. package/dts/api/asset/text/index.d.ts +0 -140
  43. package/dts/api/asset/text/types.d.ts +0 -179
  44. package/dts/components/Upload/ImageUpload.vue.d.ts +0 -38
  45. package/dts/components/Upload/MultiUpload.vue.d.ts +0 -24
  46. package/dts/utils/index.d.ts +0 -24
@@ -1,14 +1,15 @@
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 w } from "vue";
2
- import { useI18n as re } from "vue-i18n";
3
- import { _ as ie } from "./edit.vue_vue_type_script_setup_true_lang-DnzT146Q.mjs";
4
- import de from "./assign-D4YB344H.mjs";
5
- import { a as me, D as V } from "./index-eassrLOa.mjs";
6
- import { useTableHooks as pe } from "jmash-core";
7
- import { useRouter as fe } from "vue-router";
8
- const ce = { class: "app-container" }, be = { class: "search-container" }, ye = ["onClick"], ve = ["onClick"], ge = ["onClick"], we = ["onClick"], De = /* @__PURE__ */ ne({
1
+ import { defineComponent as ne, ref as f, reactive as A, onActivated as ue, resolveComponent as d, resolveDirective as re, createElementBlock as _, openBlock as r, createElementVNode as h, createVNode as s, createBlock as c, createCommentVNode as w, withCtx as l, withKeys as N, unref as o, createTextVNode as m, toDisplayString as u, withDirectives as b, isRef as z } from "vue";
2
+ import { useI18n as ie } from "vue-i18n";
3
+ import { _ as de } from "./edit.vue_vue_type_script_setup_true_lang-DCQmjaPp.mjs";
4
+ import me from "./assign-Cx16U6jb.mjs";
5
+ import { a as pe } from "./index-BI8iDWzU.mjs";
6
+ import { useTableHooks as fe } from "jmash-core";
7
+ import { D as V } from "./index-BTvHsKHc.mjs";
8
+ import { useRouter as ce } from "vue-router";
9
+ const be = { class: "app-container" }, ve = { class: "search-container" }, ye = ["onClick"], ge = ["onClick"], we = ["onClick"], ke = ["onClick"], Re = /* @__PURE__ */ ne({
9
10
  __name: "index",
10
- setup(ke) {
11
- const { t: y } = re(), K = fe(), i = f({
11
+ setup(Se) {
12
+ const { t: v } = ie(), K = ce(), i = f({
12
13
  curPage: 1,
13
14
  pageSize: 10
14
15
  }), {
@@ -18,7 +19,7 @@ const ce = { class: "app-container" }, be = { class: "search-container" }, ye =
18
19
  listLoading: B,
19
20
  tableData: M,
20
21
  total: T
21
- } = pe(y, me, i);
22
+ } = fe(v, pe, i);
22
23
  let k = f([
23
24
  // 资产名称
24
25
  {
@@ -93,7 +94,7 @@ const ce = { class: "app-container" }, be = { class: "search-container" }, ye =
93
94
  isColumn: !0
94
95
  },
95
96
  {
96
- label: y("common.operate"),
97
+ label: v("common.operate"),
97
98
  width: "200",
98
99
  slotName: "operation",
99
100
  columnType: "slot",
@@ -107,12 +108,12 @@ const ce = { class: "app-container" }, be = { class: "search-container" }, ye =
107
108
  $.assetId = a.assetId, j.value = a, D.value = !0;
108
109
  }
109
110
  const C = f(!1);
110
- let $ = z({});
111
+ let $ = A({});
111
112
  function G() {
112
- $ = z({}), R.value = y("common.add"), S.value = !0;
113
+ $ = A({}), R.value = v("common.add"), S.value = !0;
113
114
  }
114
115
  function J(a) {
115
- $.assetId = a.assetId, R.value = y("common.edit"), S.value = !0;
116
+ $.assetId = a.assetId, R.value = v("common.edit"), S.value = !0;
116
117
  }
117
118
  function O(a) {
118
119
  n.selectionRows.value = a;
@@ -137,10 +138,12 @@ const ce = { class: "app-container" }, be = { class: "search-container" }, ye =
137
138
  C.value = !1;
138
139
  });
139
140
  }
140
- return n.getList(), (a, t) => {
141
- const x = d("el-input"), U = d("el-form-item"), v = d("el-col"), P = d("jmash-select"), g = d("el-button"), q = d("el-row"), ee = d("el-form"), te = d("jmash-column-select"), ae = d("jmash-table"), le = d("jmash-pagination"), oe = d("el-card"), se = d("jmash-import-upload"), p = ue("hasPerm");
142
- return r(), _("div", ce, [
143
- h("div", be, [
141
+ return ue(() => {
142
+ n.getList();
143
+ }), (a, t) => {
144
+ const x = d("el-input"), U = d("el-form-item"), y = d("el-col"), P = d("jmash-select"), g = d("el-button"), q = d("el-row"), ee = d("el-form"), te = d("jmash-column-select"), ae = d("jmash-table"), le = d("jmash-pagination"), oe = d("el-card"), se = d("jmash-import-upload"), p = re("hasPerm");
145
+ return r(), _("div", be, [
146
+ h("div", ve, [
144
147
  s(ee, {
145
148
  ref_key: "queryFormRef",
146
149
  ref: Q,
@@ -150,7 +153,7 @@ const ce = { class: "app-container" }, be = { class: "search-container" }, ye =
150
153
  default: l(() => [
151
154
  s(q, null, {
152
155
  default: l(() => [
153
- s(v, { span: 6 }, {
156
+ s(y, { span: 6 }, {
154
157
  default: l(() => [
155
158
  s(U, {
156
159
  label: a.$t("asset.name"),
@@ -169,7 +172,7 @@ const ce = { class: "app-container" }, be = { class: "search-container" }, ye =
169
172
  ]),
170
173
  _: 1
171
174
  }),
172
- s(v, { span: 6 }, {
175
+ s(y, { span: 6 }, {
173
176
  default: l(() => [
174
177
  s(U, {
175
178
  label: a.$t("asset.assetSort"),
@@ -189,7 +192,7 @@ const ce = { class: "app-container" }, be = { class: "search-container" }, ye =
189
192
  ]),
190
193
  _: 1
191
194
  }),
192
- s(v, { span: 6 }, {
195
+ s(y, { span: 6 }, {
193
196
  default: l(() => [
194
197
  s(U, {
195
198
  label: a.$t("asset.assignStatus"),
@@ -209,7 +212,7 @@ const ce = { class: "app-container" }, be = { class: "search-container" }, ye =
209
212
  ]),
210
213
  _: 1
211
214
  }),
212
- s(v, { span: 6 }, {
215
+ s(y, { span: 6 }, {
213
216
  default: l(() => [
214
217
  s(U, { class: "search-btn" }, {
215
218
  default: l(() => [
@@ -250,9 +253,9 @@ const ce = { class: "app-container" }, be = { class: "search-container" }, ye =
250
253
  header: l(() => [
251
254
  s(q, { justify: "space-between" }, {
252
255
  default: l(() => [
253
- s(v, { span: 12 }, {
256
+ s(y, { span: 12 }, {
254
257
  default: l(() => [
255
- c((r(), b(g, {
258
+ b((r(), c(g, {
256
259
  type: "primary",
257
260
  onClick: G
258
261
  }, {
@@ -263,7 +266,7 @@ const ce = { class: "app-container" }, be = { class: "search-container" }, ye =
263
266
  })), [
264
267
  [p, ["asset:asset:add"]]
265
268
  ]),
266
- c((r(), b(g, {
269
+ b((r(), c(g, {
267
270
  type: "primary",
268
271
  onClick: t[8] || (t[8] = (e) => o(n).deleteRecords())
269
272
  }, {
@@ -277,12 +280,12 @@ const ce = { class: "app-container" }, be = { class: "search-container" }, ye =
277
280
  ]),
278
281
  _: 1
279
282
  }),
280
- s(v, {
283
+ s(y, {
281
284
  span: 8,
282
285
  align: "right"
283
286
  }, {
284
287
  default: l(() => [
285
- c((r(), b(g, {
288
+ b((r(), c(g, {
286
289
  plain: "",
287
290
  type: "primary",
288
291
  onClick: t[9] || (t[9] = (e) => C.value = !0)
@@ -294,10 +297,10 @@ const ce = { class: "app-container" }, be = { class: "search-container" }, ye =
294
297
  })), [
295
298
  [p, ["asset:asset:import"]]
296
299
  ]),
297
- c((r(), b(g, {
300
+ b((r(), c(g, {
298
301
  plain: "",
299
302
  type: "primary",
300
- onClick: t[10] || (t[10] = (e) => o(n).handleExport(o(y)("asset.name")))
303
+ onClick: t[10] || (t[10] = (e) => o(n).handleExport(o(v)("asset.name")))
301
304
  }, {
302
305
  default: l(() => [
303
306
  m(u(a.$t("common.export")), 1)
@@ -308,7 +311,7 @@ const ce = { class: "app-container" }, be = { class: "search-container" }, ye =
308
311
  ]),
309
312
  s(te, {
310
313
  modelValue: o(k),
311
- "onUpdate:modelValue": t[11] || (t[11] = (e) => A(k) ? k.value = e : k = e),
314
+ "onUpdate:modelValue": t[11] || (t[11] = (e) => z(k) ? k.value = e : k = e),
312
315
  "label-name": "asset/asset-asset"
313
316
  }, null, 8, ["modelValue"])
314
317
  ]),
@@ -319,10 +322,10 @@ const ce = { class: "app-container" }, be = { class: "search-container" }, ye =
319
322
  })
320
323
  ]),
321
324
  footer: l(() => [
322
- o(T) > 0 ? (r(), b(le, {
325
+ o(T) > 0 ? (r(), c(le, {
323
326
  key: 0,
324
327
  total: o(T),
325
- "onUpdate:total": t[12] || (t[12] = (e) => A(T) ? T.value = e : null),
328
+ "onUpdate:total": t[12] || (t[12] = (e) => z(T) ? T.value = e : null),
326
329
  "current-page": i.value.curPage,
327
330
  "onUpdate:currentPage": t[13] || (t[13] = (e) => i.value.curPage = e),
328
331
  "page-size": i.value.pageSize,
@@ -358,7 +361,7 @@ const ce = { class: "app-container" }, be = { class: "search-container" }, ye =
358
361
  h("span", null, u(o(V).assetStatusDict.getValue(e.data.row.assignStatus)), 1)
359
362
  ]),
360
363
  operation: l((e) => [
361
- c((r(), _("span", {
364
+ b((r(), _("span", {
362
365
  class: "el-button-color",
363
366
  onClick: (E) => J(e.data.row)
364
367
  }, [
@@ -366,30 +369,30 @@ const ce = { class: "app-container" }, be = { class: "search-container" }, ye =
366
369
  ], 8, ye)), [
367
370
  [p, ["asset:asset:update"]]
368
371
  ]),
369
- e.data.row.assignStatus === !1 ? c((r(), _("span", {
372
+ e.data.row.assignStatus === !1 ? b((r(), _("span", {
370
373
  key: 0,
371
374
  class: "el-button-color dropdown-left",
372
375
  onClick: (E) => o(n).deleteRecord(e.data.row)
373
376
  }, [
374
377
  m(u(a.$t("common.delete")), 1)
375
- ], 8, ve)), [
378
+ ], 8, ge)), [
376
379
  [p, ["asset:asset:delete"]]
377
380
  ]) : w("", !0),
378
- e.data.row.assignStatus === !1 ? c((r(), _("span", {
381
+ e.data.row.assignStatus === !1 ? b((r(), _("span", {
379
382
  key: 1,
380
383
  class: "el-button-color dropdown-left",
381
384
  onClick: (E) => H(e.data.row)
382
385
  }, [
383
386
  m(u(a.$t("asset.assign")), 1)
384
- ], 8, ge)), [
387
+ ], 8, we)), [
385
388
  [p, ["asset:asset:assign"]]
386
389
  ]) : w("", !0),
387
- c((r(), _("span", {
390
+ b((r(), _("span", {
388
391
  class: "el-button-color dropdown-left",
389
392
  onClick: (E) => X(e.data.row)
390
393
  }, [
391
394
  m(u(a.$t("common.view")), 1)
392
- ], 8, we)), [
395
+ ], 8, ke)), [
393
396
  [p, ["asset:asset:view"]]
394
397
  ])
395
398
  ]),
@@ -398,7 +401,7 @@ const ce = { class: "app-container" }, be = { class: "search-container" }, ye =
398
401
  ]),
399
402
  _: 1
400
403
  }),
401
- S.value ? (r(), b(ie, {
404
+ S.value ? (r(), c(de, {
402
405
  key: 0,
403
406
  modelValue: S.value,
404
407
  "onUpdate:modelValue": t[16] || (t[16] = (e) => S.value = e),
@@ -407,15 +410,15 @@ const ce = { class: "app-container" }, be = { class: "search-container" }, ye =
407
410
  width: "900px",
408
411
  onRefresh: I
409
412
  }, null, 8, ["modelValue", "title", "entity-key"])) : w("", !0),
410
- C.value ? (r(), b(se, {
413
+ C.value ? (r(), c(se, {
411
414
  key: 1,
412
415
  "upload-visible": C.value,
413
416
  "template-title": a.$t("sysUser.templateDownload"),
414
- onTemplateDown: t[17] || (t[17] = (e) => o(n).downloadTemplate(o(y)("asset.name"))),
417
+ onTemplateDown: t[17] || (t[17] = (e) => o(n).downloadTemplate(o(v)("asset.name"))),
415
418
  onImportEvents: Z,
416
419
  onUploadClosed: Y
417
420
  }, null, 8, ["upload-visible", "template-title"])) : w("", !0),
418
- D.value ? (r(), b(de, {
421
+ D.value ? (r(), c(me, {
419
422
  key: 2,
420
423
  modelValue: D.value,
421
424
  "onUpdate:modelValue": t[18] || (t[18] = (e) => D.value = e),
@@ -430,5 +433,5 @@ const ce = { class: "app-container" }, be = { class: "search-container" }, ye =
430
433
  }
431
434
  });
432
435
  export {
433
- De as default
436
+ Re as default
434
437
  };
package/dist/index.mjs CHANGED
@@ -1,5 +1,5 @@
1
1
  import { Layout as ks, addViteMenus as Ss, addDynamicRoute as Ms, i18n as Ds } from "jmash-core";
2
- const Ys = () => import("./index-BOS2gtjd.mjs"), Os = () => import("./index-DZAvRhPJ.mjs"), Ts = () => import("./index-DxQzN9_F.mjs"), bs = () => import("./index-BmxQiLjm.mjs"), xs = () => import("./index-0_FQdBCk.mjs"), Rs = [
2
+ const Ys = () => import("./index-BQdGP1ah.mjs"), Os = () => import("./index-BTfwEQad.mjs"), Ts = () => import("./index-ColX0w7n.mjs"), bs = () => import("./index-C33SaJIu.mjs"), xs = () => import("./index-BPuC76hs.mjs"), Rs = [
3
3
  {
4
4
  path: "/rawasset",
5
5
  component: ks,
@@ -2825,7 +2825,7 @@ const In = {
2825
2825
  }
2826
2826
  };
2827
2827
  }
2828
- }, Cn = /* @__PURE__ */ Object.assign({ "./views/asset/asset-asset-detail/edit.vue": () => import("./edit-yvYhMo5N.mjs"), "./views/asset/asset-asset-detail/index.vue": () => import("./index-e_AlnW3A.mjs"), "./views/asset/asset-asset/assign.vue": () => import("./assign-D4YB344H.mjs"), "./views/asset/asset-asset/edit.vue": () => import("./edit-Bwq5Vg9D.mjs"), "./views/asset/asset-asset/index.vue": () => import("./index-hCldWS2K.mjs"), "./views/asset/asset-asset/info/index.vue": () => import("./index-DxQzN9_F.mjs"), "./views/asset/asset-depreciation-record/index.vue": () => import("./index-CQE1DdOZ.mjs"), "./views/asset/asset-depreciation-record/info/index.vue": () => import("./index-0_FQdBCk.mjs"), "./views/asset/asset-inventory-record/index.vue": () => import("./index-vfIgwaoQ.mjs"), "./views/asset/asset-inventory-record/info/index.vue": () => import("./index-BmxQiLjm.mjs"), "./views/asset/asset-service-appt-record/index.vue": () => import("./index-eTof-sqF.mjs"), "./views/asset/asset-service-appt-record/info/index.vue": () => import("./index-DZAvRhPJ.mjs"), "./views/asset/asset-site-service/edit.vue": () => import("./edit-D3zlqt11.mjs"), "./views/asset/asset-site-service/index.vue": () => import("./index-DmX4B8mf.mjs"), "./views/asset/asset-site/edit.vue": () => import("./edit-DxvSeH5Y.mjs"), "./views/asset/asset-site/index.vue": () => import("./index-Bx1vPk7S.mjs"), "./views/asset/asset-site/info/index.vue": () => import("./index-BOS2gtjd.mjs") }), Un = {
2828
+ }, Cn = /* @__PURE__ */ Object.assign({ "./views/asset/asset-asset-detail/edit.vue": () => import("./edit-JbjxRp1e.mjs"), "./views/asset/asset-asset-detail/index.vue": () => import("./index-C0cy2lYz.mjs"), "./views/asset/asset-asset/assign.vue": () => import("./assign-Cx16U6jb.mjs"), "./views/asset/asset-asset/edit.vue": () => import("./edit-B49ygJbc.mjs"), "./views/asset/asset-asset/index.vue": () => import("./index-yjFsDfGI.mjs"), "./views/asset/asset-asset/info/index.vue": () => import("./index-ColX0w7n.mjs"), "./views/asset/asset-depreciation-record/index.vue": () => import("./index-C0Rd9wWv.mjs"), "./views/asset/asset-depreciation-record/info/index.vue": () => import("./index-BPuC76hs.mjs"), "./views/asset/asset-inventory-record/index.vue": () => import("./index-DGHhDZ-w.mjs"), "./views/asset/asset-inventory-record/info/index.vue": () => import("./index-C33SaJIu.mjs"), "./views/asset/asset-service-appt-record/index.vue": () => import("./index-DwPSpT78.mjs"), "./views/asset/asset-service-appt-record/info/index.vue": () => import("./index-BTfwEQad.mjs"), "./views/asset/asset-site-service/edit.vue": () => import("./edit-Ds7g0sBn.mjs"), "./views/asset/asset-site-service/index.vue": () => import("./index-DTHatck1.mjs"), "./views/asset/asset-site/edit.vue": () => import("./edit-DuHNKz_4.mjs"), "./views/asset/asset-site/index.vue": () => import("./index-D13F64qL.mjs"), "./views/asset/asset-site/info/index.vue": () => import("./index-BQdGP1ah.mjs") }), Un = {
2829
2829
  install(e) {
2830
2830
  e.use(In), Ss(Cn, 7), Ms(Rs), Ws(Ds);
2831
2831
  }
package/dist/style.css CHANGED
@@ -1 +1 @@
1
- .blue_color{color:#3370ff;font-size:16px;font-weight:600;margin-left:3px;margin-right:3px}.dis_bottom{margin-bottom:0!important}.total-num{border:var(--el-border);border-color:#bae7ff;background-color:#e6f7ff!important;padding:9px 18px;border-radius:3px;font-size:14px;margin-bottom:10px;color:#545a5d}.el-form-item--default[data-v-29252b2b]{margin-bottom:0}
1
+ .blue_color{color:#3370ff;font-size:16px;font-weight:600;margin-left:3px;margin-right:3px}.total-num{border:var(--el-border);border-color:#bae7ff;background-color:#e6f7ff!important;padding:9px 18px;border-radius:3px;font-size:14px;margin-bottom:10px;color:#545a5d}.el-form-item--default[data-v-29252b2b]{margin-bottom:0}
@@ -1,5 +1,5 @@
1
1
  import type { AxiosPromise } from "axios";
2
- import type { AssetApi, AssetReq, AssetModel, AssetPage, AssetList, AssetKey, AssetCreateReq, AssetUpdateReq, AssetExportReq, AssetImportReq, AssetassignReq, UnionOrgReq, UnionOrgTree } from "./types";
2
+ import type { AssetApi, AssetReq, AssetModel, AssetPage, AssetList, AssetKey, AssetCreateReq, AssetUpdateReq, AssetExportReq, AssetImportReq, AssetassignReq } from "./types";
3
3
  declare class AssetApiImpl implements AssetApi {
4
4
  getKey(model: AssetModel): AssetKey;
5
5
  findPage(query?: AssetReq): AxiosPromise<AssetPage>;
@@ -13,13 +13,6 @@ declare class AssetApiImpl implements AssetApi {
13
13
  importExcel(data: AssetImportReq): AxiosPromise<string>;
14
14
  assignment(data: AssetassignReq): AxiosPromise<boolean>;
15
15
  exportExcel(queryParams: AssetExportReq): AxiosPromise;
16
- /**
17
- * 获取工会组织架构树形列表
18
- *
19
- * @param query 查询参数,可选
20
- * @returns 返回工会组织架构树形列表的 AxiosPromise 对象
21
- */
22
- findUnionOrgTreeListApi(query?: UnionOrgReq): AxiosPromise<UnionOrgTree>;
23
16
  }
24
17
  declare const assetApi: AssetApiImpl;
25
18
  export { assetApi };
@@ -1,11 +1,11 @@
1
1
  import type { AxiosPromise } from "axios";
2
- import type { SiteServiceApi, SiteServiceReq, SiteServiceModel, SiteServicePage, SiteServiceList, SiteServiceKey, SiteServiceCreateReq, SiteServiceUpdateReq, SiteServiceAppointmentList, SiteServiceAppointmentReq } from "./types";
2
+ import type { SiteServiceApi, SiteServiceReq, SiteServiceModel, SiteServicePage, SiteServiceList, SiteServiceKey, SiteServiceCreateReq, SiteServiceUpdateReq, SiteServiceAppointmentList } from "./types";
3
3
  declare class SiteServiceApiImpl implements SiteServiceApi {
4
4
  getKey(model: SiteServiceModel): SiteServiceKey;
5
5
  findPage(query?: SiteServiceReq): AxiosPromise<SiteServicePage>;
6
6
  findList(query?: SiteServiceReq): AxiosPromise<SiteServiceList>;
7
7
  findById(query: SiteServiceKey): AxiosPromise<SiteServiceModel>;
8
- findlimitInfoById(query: SiteServiceAppointmentReq): AxiosPromise<SiteServiceAppointmentList>;
8
+ findlimitInfoById(query: SiteServiceKey): AxiosPromise<SiteServiceAppointmentList>;
9
9
  create(data: SiteServiceCreateReq): AxiosPromise<SiteServiceModel>;
10
10
  update(data: SiteServiceUpdateReq): AxiosPromise<SiteServiceModel>;
11
11
  delete(query: SiteServiceKey): AxiosPromise<SiteServiceModel>;
@@ -79,7 +79,7 @@ export interface SiteServiceUpdateReq extends EntityUpdateReq {
79
79
  endTime?: string;
80
80
  manager?: string;
81
81
  orgId?: string;
82
- limitInfo: Array<LimitInfo>;
82
+ limitInfo?: Array<LimitInfo>;
83
83
  day?: string;
84
84
  time?: string;
85
85
  }
@@ -89,10 +89,6 @@ export interface SiteServiceAppointmentModel {
89
89
  startTime?: string;
90
90
  endTime?: string;
91
91
  }
92
- export interface SiteServiceAppointmentReq {
93
- tenant?: string;
94
- serviceId?: string;
95
- }
96
92
  export interface SiteServiceAppointmentList extends EntityList {
97
93
  results: Array<SiteServiceAppointmentModel>;
98
94
  }
package/dts/api/dict.d.ts CHANGED
@@ -1,13 +1,10 @@
1
- import { BizDict, BizLayDict, type Entry, type LayEntry } from "jmash-core";
1
+ import { BizDict, type Entry } from "jmash-core";
2
2
  export declare class CustomBizDict {
3
3
  values: import("vue").Reactive<Entry[]>;
4
4
  query: any;
5
5
  constructor(results: any, query: any);
6
6
  getValue(key: string): string;
7
7
  }
8
- export declare class UnionOrgBizLayDict extends BizLayDict {
9
- useValues(): Promise<LayEntry[]>;
10
- }
11
8
  export declare class SiteBizLayDict extends BizDict {
12
9
  useValues(): Promise<Entry[]>;
13
10
  }
@@ -1,5 +1,6 @@
1
1
  import { EnumDict } from "jmash-core";
2
- import { CustomBizDict, SiteBizLayDict, UnionOrgBizLayDict, ServiceNameDict, ManagerDict } from "./dict";
2
+ import { UnionOrgBizLayDict } from "xyvcard-union";
3
+ import { CustomBizDict, SiteBizLayDict, ServiceNameDict, ManagerDict } from "./dict";
3
4
  export declare class Dict {
4
5
  static readonly enableDict: CustomBizDict;
5
6
  static readonly unionOrgBizLayDict: UnionOrgBizLayDict;
package/dts/constant.d.ts CHANGED
@@ -1,13 +1,13 @@
1
1
  export declare class Constant {
2
2
  static readonly MODULE_ASSET = "asset";
3
3
  static readonly ENABLE_VALUES: globalThis.Ref<{
4
- key: string;
4
+ key: boolean;
5
5
  value: string;
6
6
  }[], {
7
- key: string;
7
+ key: boolean;
8
8
  value: string;
9
9
  }[] | {
10
- key: string;
10
+ key: boolean;
11
11
  value: string;
12
12
  }[]>;
13
13
  static readonly ENUM_ASSET_STATUS: globalThis.Ref<{
package/dts/main.d.ts CHANGED
@@ -1,3 +1,4 @@
1
1
  import "@/permission";
2
2
  import "jmash-core/dist/style.css";
3
3
  import "jmash-dict/dist/style.css";
4
+ import "xyvcard-union/dist/style.css";
@@ -1,5 +1,3 @@
1
- export declare function generateRandomKey(): string;
2
- export declare function getDaysInMonth(val?: any): string[];
3
1
  /**
4
2
  * 计算当前时间
5
3
  *
@@ -10,45 +8,6 @@ export declare function calculateDate(currentDate: any, year?: number, month?: n
10
8
  getMonth: () => string;
11
9
  getFullDate: () => string;
12
10
  };
13
- /**
14
- * @returns 返回当前时分秒
15
- */
16
- export declare function returnTime(time: any): string;
17
- /**
18
- * 解析身份证号信息
19
- *
20
- * @param idNumber 身份证号
21
- * @returns 返回包含出生日期和性别等信息的对象
22
- */
23
- export declare function parseIdNumber(idNumber: string): {
24
- year: string;
25
- month: string;
26
- day: string;
27
- fullDate: string;
28
- gender: string;
29
- };
30
- export declare function isCreditCode(code: string): boolean;
31
- /**
32
- * 将数字转换为对应的中文数字
33
- * @param number 需要转换的数字,必须是0到9之间的整数
34
- * @return 返回对应的中文数字字符串
35
- */
36
- export declare function numberToChinese(number: number): string | undefined;
37
- /**
38
- * 递归遍历树结构寻找指定id的节点的子节点。
39
- * @param id 要查找的节点的id。
40
- * @param node 当前遍历的节点。
41
- * @returns 找到的子节点数组,如果未找到则返回空数组。
42
- */
43
- export declare function traverseTreeRecursively(id: string, node: any): any;
44
- /**
45
- * 从传入的对象数组中查找指定key对应的value,并拼接成一个字符串返回
46
- *
47
- * @param data 对象数组
48
- * @param key 需要查找的key
49
- * @returns 返回拼接后的字符串
50
- */
51
- export declare function treeData(node: any, key?: string): string | null;
52
11
  /**
53
12
  * 将"09:00:00"/"09:00" /"09" 时间字符串转换为Date对象
54
13
  */
@@ -1,4 +1,4 @@
1
- import type { PropType } from "vue";
1
+ import { type PropType } from "vue";
2
2
  import type { SiteKey } from "@/api/asset/asset-site/types";
3
3
  declare const _default: import("vue").DefineComponent<globalThis.ExtractPropTypes<{
4
4
  modelValue: PropType<boolean>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "xyvcard-asset",
3
- "version": "0.0.23",
3
+ "version": "0.0.25",
4
4
  "private": false,
5
5
  "module": "dist/index.mjs",
6
6
  "types": "dts/index.d.ts",
@@ -9,14 +9,15 @@
9
9
  "dts"
10
10
  ],
11
11
  "peerDependencies": {
12
- "axios": "^1.7.7",
13
- "element-plus": "^2.8.7",
14
- "jmash-core": "^0.0.102",
15
- "jmash-dict": "^0.0.44",
16
- "pinia": "^2.2.4",
17
- "vue": "^3.5.11",
18
- "vue-i18n": "^9.14.1",
19
- "vue-router": "^4.4.5"
12
+ "axios": "^1.9.0",
13
+ "element-plus": "^2.9.10",
14
+ "pinia": "^2.3.1",
15
+ "vue": "^3.5.13",
16
+ "vue-i18n": "^9.14.4",
17
+ "vue-router": "^4.5.1",
18
+ "jmash-core": "^0.1.7",
19
+ "jmash-dict": "^0.1.1",
20
+ "xyvcard-union": "^0.0.78"
20
21
  },
21
22
  "devDependencies": {
22
23
  "@eslint/js": "^9.16.0",
@@ -24,8 +25,6 @@
24
25
  "@tsconfig/node20": "^20.1.2",
25
26
  "@types/node": "^20.11.10",
26
27
  "@vitejs/plugin-vue": "^5.0.3",
27
- "@vue/eslint-config-prettier": "^8.0.0",
28
- "@vue/eslint-config-typescript": "^12.0.0",
29
28
  "@vue/tsconfig": "^0.5.1",
30
29
  "eslint": "^9.16.0",
31
30
  "eslint-plugin-vue": "^9.32.0",
@@ -47,8 +46,7 @@
47
46
  "file-saver": "^2.0.5",
48
47
  "image-conversion": "^2.1.1",
49
48
  "nprogress": "^0.2.0",
50
- "qs": "^6.12.0",
51
- "viewerjs": "^1.11.6"
49
+ "qs": "^6.14.0"
52
50
  },
53
51
  "scripts": {
54
52
  "dev": "vite --host",