xyvcard-asset 0.0.24 → 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 (45) 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-Di8LMzmd.mjs → index-BPuC76hs.mjs} +39 -36
  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-BOS2gtjd.mjs +0 -165
  40. package/dist/index-eassrLOa.mjs +0 -1673
  41. package/dts/api/asset/text/index.d.ts +0 -140
  42. package/dts/api/asset/text/types.d.ts +0 -179
  43. package/dts/components/Upload/ImageUpload.vue.d.ts +0 -38
  44. package/dts/components/Upload/MultiUpload.vue.d.ts +0 -24
  45. package/dts/utils/index.d.ts +0 -24
@@ -1,8 +1,9 @@
1
- import { defineComponent as P, mergeModels as S, ref as T, reactive as L, useModel as z, watch as G, watchEffect as U, resolveComponent as m, resolveDirective as H, openBlock as J, createBlock as Q, withCtx as r, createElementVNode as f, createVNode as t, createTextVNode as F, toDisplayString as k, unref as o, withDirectives as W } from "vue";
2
- import { a as g, D as C, C as X } from "./index-eassrLOa.mjs";
1
+ import { defineComponent as P, mergeModels as S, ref as T, reactive as L, useModel as z, watch as G, watchEffect as U, resolveComponent as m, resolveDirective as H, createBlock as J, openBlock as Q, withCtx as r, createVNode as t, unref as o, createElementVNode as f, withDirectives as W, createTextVNode as F, toDisplayString as k } from "vue";
2
+ import { D as C, C as X } from "./index-BTvHsKHc.mjs";
3
3
  import { ElMessage as N } from "element-plus";
4
4
  import { useI18n as Z } from "vue-i18n";
5
- const x = { class: "dialog-footer" }, Y = 10, oe = /* @__PURE__ */ P({
5
+ import { a as g } from "./index-BI8iDWzU.mjs";
6
+ const x = { class: "dialog-footer" }, Y = 10, re = /* @__PURE__ */ P({
6
7
  __name: "edit",
7
8
  props: /* @__PURE__ */ S({
8
9
  entityKey: {
@@ -15,7 +16,7 @@ const x = { class: "dialog-footer" }, Y = 10, oe = /* @__PURE__ */ P({
15
16
  modelModifiers: {}
16
17
  }),
17
18
  emits: /* @__PURE__ */ S(["refresh"], ["update:modelValue"]),
18
- setup(c, { emit: E }) {
19
+ setup(c, { emit: _ }) {
19
20
  const { t: s } = Z(), V = T();
20
21
  let e = L({
21
22
  requestId: Math.random() * 10 + "",
@@ -24,7 +25,7 @@ const x = { class: "dialog-footer" }, Y = 10, oe = /* @__PURE__ */ P({
24
25
  buyMoney: 1,
25
26
  updateMask: "name,assetSort,code,number,unit,model,buyDate,buyMoney,depreciationType,useLimit,netSalvage,totalDepreciation"
26
27
  });
27
- const p = z(c, "modelValue"), h = c, v = E, _ = Object.keys(h.entityKey), D = T(_.length >= 1);
28
+ const p = z(c, "modelValue"), h = c, v = _, E = Object.keys(h.entityKey), D = T(E.length >= 1);
28
29
  D.value && g.findById(h.entityKey).then(({ data: l }) => {
29
30
  Object.assign(e, l);
30
31
  });
@@ -175,7 +176,7 @@ const x = { class: "dialog-footer" }, Y = 10, oe = /* @__PURE__ */ P({
175
176
  }
176
177
  return (l, a) => {
177
178
  const u = m("el-input"), i = m("el-form-item"), d = m("el-col"), B = m("el-date-picker"), w = m("jmash-select"), $ = m("el-row"), O = m("el-form"), R = m("el-button"), K = m("el-dialog"), A = H("max-length");
178
- return J(), Q(K, {
179
+ return Q(), J(K, {
179
180
  modelValue: p.value,
180
181
  "onUpdate:modelValue": a[16] || (a[16] = (n) => p.value = n),
181
182
  onClose: M
@@ -533,7 +534,8 @@ const x = { class: "dialog-footer" }, Y = 10, oe = /* @__PURE__ */ P({
533
534
  _: 1
534
535
  })
535
536
  ]),
536
- _: 1
537
+ _: 1,
538
+ __: [17, 18]
537
539
  }, 8, ["model", "rules"])
538
540
  ]),
539
541
  _: 1
@@ -542,5 +544,5 @@ const x = { class: "dialog-footer" }, Y = 10, oe = /* @__PURE__ */ P({
542
544
  }
543
545
  });
544
546
  export {
545
- oe as _
547
+ re as _
546
548
  };
@@ -1,9 +1,10 @@
1
- import { defineComponent as E, mergeModels as k, ref as _, useModel as F, reactive as L, onBeforeMount as O, resolveComponent as n, openBlock as C, createBlock as S, withCtx as t, createElementVNode as V, createVNode as e, createTextVNode as B, toDisplayString as h, unref as d } from "vue";
2
- import { D as p, a as R, S as T } from "./index-eassrLOa.mjs";
3
- import { ElMessage as G } from "element-plus";
4
- import { useI18n as H } from "vue-i18n";
5
- import { a as M } from "./index-CVU2G5rZ.mjs";
6
- const J = { class: "dialog-footer" }, x = /* @__PURE__ */ E({
1
+ import { defineComponent as E, mergeModels as k, ref as _, useModel as F, reactive as L, onBeforeMount as O, resolveComponent as n, createBlock as C, openBlock as S, withCtx as t, createVNode as e, unref as d, createElementVNode as V, toDisplayString as h, createTextVNode as B } from "vue";
2
+ import { D as p, S as R } from "./index-BTvHsKHc.mjs";
3
+ import { ElMessage as T } from "element-plus";
4
+ import { useI18n as G } from "vue-i18n";
5
+ import { a as M } from "./index-B_EEJeEN.mjs";
6
+ import { a as H } from "./index-BI8iDWzU.mjs";
7
+ const J = { class: "dialog-footer" }, ee = /* @__PURE__ */ E({
7
8
  __name: "edit",
8
9
  props: /* @__PURE__ */ k({
9
10
  entityKey: {
@@ -17,7 +18,7 @@ const J = { class: "dialog-footer" }, x = /* @__PURE__ */ E({
17
18
  }),
18
19
  emits: /* @__PURE__ */ k(["refresh"], ["update:modelValue"]),
19
20
  setup(g, { emit: N }) {
20
- const { t: c } = H();
21
+ const { t: c } = G();
21
22
  p.unionOrgBizLayDict.useValues();
22
23
  const f = _([]), v = _(), u = F(g, "modelValue"), U = N, b = g;
23
24
  let o = _({
@@ -44,7 +45,7 @@ const J = { class: "dialog-footer" }, x = /* @__PURE__ */ E({
44
45
  var l;
45
46
  await ((l = v.value) == null ? void 0 : l.validate((a) => {
46
47
  a && M.update(o.value).then((m) => {
47
- m.status === 200 && (G({
48
+ m.status === 200 && (T({
48
49
  message: c("common.submitSuccess"),
49
50
  type: "success"
50
51
  }), u.value && (u.value = !1), U("refresh", m.status === 200));
@@ -55,7 +56,7 @@ const J = { class: "dialog-footer" }, x = /* @__PURE__ */ E({
55
56
  u.value && (u.value = !1);
56
57
  }
57
58
  return O(() => {
58
- b.entityKey && R.findById(b.entityKey).then(({ data: l }) => {
59
+ b.entityKey && H.findById(b.entityKey).then(({ data: l }) => {
59
60
  const a = l;
60
61
  M.findById(b.entityKey).then(async ({ data: m }) => {
61
62
  o.value = {
@@ -64,13 +65,13 @@ const J = { class: "dialog-footer" }, x = /* @__PURE__ */ E({
64
65
  ...a,
65
66
  ...m
66
67
  };
67
- const y = new T({ orgId: o.value.orgId });
68
+ const y = new R({ orgId: o.value.orgId });
68
69
  f.value = await y.useValues();
69
70
  });
70
71
  });
71
72
  }), (l, a) => {
72
73
  const m = n("el-tooltip"), y = n("el-tree-select"), i = n("el-form-item"), r = n("el-col"), I = n("el-input"), j = n("el-date-picker"), D = n("jmash-select"), q = n("el-row"), z = n("el-form"), $ = n("el-button"), A = n("el-dialog");
73
- return C(), S(A, {
74
+ return S(), C(A, {
74
75
  modelValue: u.value,
75
76
  "onUpdate:modelValue": a[7] || (a[7] = (s) => u.value = s),
76
77
  onClose: w
@@ -240,7 +241,7 @@ const J = { class: "dialog-footer" }, x = /* @__PURE__ */ E({
240
241
  prop: "siteId"
241
242
  }, {
242
243
  default: t(() => [
243
- (C(), S(D, {
244
+ (S(), C(D, {
244
245
  key: f.value.length,
245
246
  modelValue: d(o).siteId,
246
247
  "onUpdate:modelValue": a[5] || (a[5] = (s) => d(o).siteId = s),
@@ -289,5 +290,5 @@ const J = { class: "dialog-footer" }, x = /* @__PURE__ */ E({
289
290
  }
290
291
  });
291
292
  export {
292
- x as _
293
+ ee as _
293
294
  };
@@ -1,5 +1,5 @@
1
1
  import { useUserStore as n, clearEmpty as r, request as o } from "jmash-core";
2
- import { q as a } from "./index-eassrLOa.mjs";
2
+ import { q as a } from "./index-U4WVV44p.mjs";
3
3
  class i {
4
4
  getKey(t) {
5
5
  return {
@@ -0,0 +1,117 @@
1
+ import { useUserStore as e, clearEmpty as n, request as s } from "jmash-core";
2
+ import { q as u } from "./index-U4WVV44p.mjs";
3
+ class l {
4
+ getKey(t) {
5
+ return {
6
+ assetId: t.assetId
7
+ };
8
+ }
9
+ // 查询翻页信息资产库
10
+ findPage(t) {
11
+ const a = e().user.tenant;
12
+ return t && (t.hasAssignStatus = t.assignStatus != null, t.hasAssetSort = t.assetSort != null), n(t), s({
13
+ url: "/v1/asset/asset/page/" + a,
14
+ method: "get",
15
+ params: t
16
+ });
17
+ }
18
+ // 查询列表信息资产库
19
+ findList(t) {
20
+ const a = e().user.tenant;
21
+ return n(t), s({
22
+ url: "/v1/asset/asset/list/" + a,
23
+ method: "get",
24
+ params: t
25
+ });
26
+ }
27
+ // 查询资产
28
+ findById(t) {
29
+ const a = e().user.tenant;
30
+ return n(t), s({
31
+ url: "/v1/asset/asset/id/" + a + "/" + t.assetId,
32
+ method: "get"
33
+ });
34
+ }
35
+ // 创建实体资产
36
+ create(t) {
37
+ return t.tenant = e().user.tenant, n(t), s({
38
+ url: "/v1/asset/asset",
39
+ method: "post",
40
+ data: t
41
+ });
42
+ }
43
+ // 修改实体资产库
44
+ update(t) {
45
+ return t.tenant = e().user.tenant, n(t), s({
46
+ url: "/v1/asset/asset",
47
+ method: "patch",
48
+ data: t
49
+ });
50
+ }
51
+ // 删除资产库
52
+ delete(t) {
53
+ return t.tenant = e().user.tenant, n(t), s({
54
+ url: "/v1/asset/asset/id",
55
+ method: "delete",
56
+ params: t
57
+ });
58
+ }
59
+ // 批量删除资产库
60
+ batchDelete(t) {
61
+ const a = t.map((o) => o.assetId), r = {
62
+ tenant: e().user.tenant,
63
+ assetId: a
64
+ };
65
+ return n(r), s({
66
+ url: "/v1/asset/asset/batch",
67
+ method: "put",
68
+ data: r
69
+ });
70
+ }
71
+ // 下载导入模板资产库
72
+ downloadTemplate() {
73
+ const t = e().user.tenant;
74
+ return s({
75
+ url: "/v1/asset/asset/" + t + "/template.xlsx",
76
+ method: "get",
77
+ responseType: "blob",
78
+ params: {
79
+ tenant: e().user.tenant
80
+ }
81
+ });
82
+ }
83
+ // 导入资产库
84
+ importExcel(t) {
85
+ return t.tenant = e().user.tenant, n(t), s({
86
+ url: "/v1/asset/asset/import",
87
+ method: "patch",
88
+ data: t
89
+ });
90
+ }
91
+ // 资产分配
92
+ assignment(t) {
93
+ return t.tenant = e().user.tenant, n(t), s({
94
+ url: "/v1/asset/asset/assign",
95
+ method: "post",
96
+ data: t
97
+ });
98
+ }
99
+ // 导出资产库Excel文件
100
+ exportExcel(t) {
101
+ const a = e().user.tenant;
102
+ n(t);
103
+ const r = u.stringify(t, {
104
+ arrayFormat: "brackets",
105
+ allowDots: !0
106
+ });
107
+ return s({
108
+ url: "/v1/asset/asset/" + a + "/assets.xlsx?" + r,
109
+ method: "get",
110
+ responseType: "blob"
111
+ });
112
+ }
113
+ }
114
+ const i = new l();
115
+ export {
116
+ i as a
117
+ };
@@ -1,9 +1,11 @@
1
- import { defineComponent as G, ref as I, computed as J, onBeforeMount as O, resolveComponent as d, openBlock as V, createElementBlock as W, createVNode as o, withCtx as e, createTextVNode as i, toDisplayString as l, unref as _, createBlock as X, isRef as Z, createCommentVNode as x, createElementVNode as u } from "vue";
1
+ import { defineComponent as G, ref as I, computed as J, onBeforeMount as O, resolveComponent as d, createElementBlock as W, openBlock as V, createVNode as o, withCtx as e, createElementVNode as i, createTextVNode as u, toDisplayString as l, unref as _, createBlock as X, createCommentVNode as Z, isRef as x } from "vue";
2
2
  import { useUserStore as g, clearEmpty as y, request as h, useTableHooks as ee, routerUtil as te } from "jmash-core";
3
3
  import { useI18n as ae } from "vue-i18n";
4
4
  import { useRouter as le, useRoute as oe } from "vue-router";
5
- import { q as ne, D as P, a as se } from "./index-eassrLOa.mjs";
6
- import { c as re } from "./common-CshrwPyx.mjs";
5
+ import { D as P } from "./index-BTvHsKHc.mjs";
6
+ import { q as ne } from "./index-U4WVV44p.mjs";
7
+ import { c as se } from "./common-CshrwPyx.mjs";
8
+ import { a as re } from "./index-BI8iDWzU.mjs";
7
9
  class ie {
8
10
  getKey(n) {
9
11
  return {
@@ -54,7 +56,7 @@ class ie {
54
56
  const C = new ie(), ue = { class: "app-container" }, de = { class: "cell-item" }, ce = { class: "cell-item" }, pe = { class: "cell-item" }, me = { class: "cell-item" }, fe = { class: "cell-item" }, _e = { class: "cell-item" }, ve = { class: "cell-item" }, be = { class: "cell-item" }, ge = { class: "cell-item" }, ye = { class: "cell-item" }, he = {
55
57
  class: "search-container",
56
58
  style: { border: "none" }
57
- }, Ve = /* @__PURE__ */ G({
59
+ }, Ce = /* @__PURE__ */ G({
58
60
  __name: "index",
59
61
  setup(w) {
60
62
  const { t: n } = ae(), m = le(), v = oe();
@@ -93,14 +95,14 @@ const C = new ie(), ue = { class: "app-container" }, de = { class: "cell-item" }
93
95
  }
94
96
  ]);
95
97
  function F(t) {
96
- s.value.year = re(t).getYear();
98
+ s.value.year = se(t).getYear();
97
99
  }
98
100
  function L() {
99
101
  te.closeTagView(v.fullPath, m, !1);
100
102
  }
101
103
  O(() => {
102
104
  const t = v.query.assetId;
103
- t ? (se.findById({ assetId: t }).then(({ data: a }) => {
105
+ t ? (re.findById({ assetId: t }).then(({ data: a }) => {
104
106
  r.value = a;
105
107
  }), k({ assetId: t })) : $.value = [];
106
108
  });
@@ -136,7 +138,7 @@ const C = new ie(), ue = { class: "app-container" }, de = { class: "cell-item" }
136
138
  onClick: L
137
139
  }, {
138
140
  default: e(() => [
139
- i(l(t.$t("common.back")), 1)
141
+ u(l(t.$t("common.back")), 1)
140
142
  ]),
141
143
  _: 1
142
144
  })
@@ -151,16 +153,16 @@ const C = new ie(), ue = { class: "app-container" }, de = { class: "cell-item" }
151
153
  _(b) > 0 ? (V(), X(Q, {
152
154
  key: 0,
153
155
  total: _(b),
154
- "onUpdate:total": a[3] || (a[3] = (p) => Z(b) ? b.value = p : null),
156
+ "onUpdate:total": a[3] || (a[3] = (p) => x(b) ? b.value = p : null),
155
157
  "current-page": s.value.curPage,
156
158
  "onUpdate:currentPage": a[4] || (a[4] = (p) => s.value.curPage = p),
157
159
  "page-size": s.value.pageSize,
158
160
  "onUpdate:pageSize": a[5] || (a[5] = (p) => s.value.pageSize = p),
159
161
  onPagination: a[6] || (a[6] = (p) => _(z).getList())
160
- }, null, 8, ["total", "current-page", "page-size"])) : x("", !0)
162
+ }, null, 8, ["total", "current-page", "page-size"])) : Z("", !0)
161
163
  ]),
162
164
  default: e(() => [
163
- a[7] || (a[7] = u("div", { class: "title-content" }, "资产信息", -1)),
165
+ a[7] || (a[7] = i("div", { class: "title-content" }, "资产信息", -1)),
164
166
  o(j, {
165
167
  class: "margin-top",
166
168
  column: 2,
@@ -169,46 +171,46 @@ const C = new ie(), ue = { class: "app-container" }, de = { class: "cell-item" }
169
171
  default: e(() => [
170
172
  o(c, null, {
171
173
  label: e(() => [
172
- u("div", de, l(t.$t("asset.name")), 1)
174
+ i("div", de, l(t.$t("asset.name")), 1)
173
175
  ]),
174
176
  default: e(() => [
175
- i(" " + l(r.value.name), 1)
177
+ u(" " + l(r.value.name), 1)
176
178
  ]),
177
179
  _: 1
178
180
  }),
179
181
  o(c, null, {
180
182
  label: e(() => [
181
- u("div", ce, l(t.$t("asset.code")), 1)
183
+ i("div", ce, l(t.$t("asset.code")), 1)
182
184
  ]),
183
185
  default: e(() => [
184
- i(" " + l(r.value.code), 1)
186
+ u(" " + l(r.value.code), 1)
185
187
  ]),
186
188
  _: 1
187
189
  }),
188
190
  o(c, null, {
189
191
  label: e(() => [
190
- u("div", pe, l(t.$t("asset.number")) + "/" + l(t.$t("asset.unit")), 1)
192
+ i("div", pe, l(t.$t("asset.number")) + "/" + l(t.$t("asset.unit")), 1)
191
193
  ]),
192
194
  default: e(() => [
193
- i(" " + l(r.value.number) + "/" + l(r.value.unit), 1)
195
+ u(" " + l(r.value.number) + "/" + l(r.value.unit), 1)
194
196
  ]),
195
197
  _: 1
196
198
  }),
197
199
  o(c, null, {
198
200
  label: e(() => [
199
- u("div", me, l(t.$t("asset.buyDate")), 1)
201
+ i("div", me, l(t.$t("asset.buyDate")), 1)
200
202
  ]),
201
203
  default: e(() => [
202
- i(" " + l(r.value.buyDate), 1)
204
+ u(" " + l(r.value.buyDate), 1)
203
205
  ]),
204
206
  _: 1
205
207
  }),
206
208
  o(c, null, {
207
209
  label: e(() => [
208
- u("div", fe, l(t.$t("asset.assetSort")), 1)
210
+ i("div", fe, l(t.$t("asset.assetSort")), 1)
209
211
  ]),
210
212
  default: e(() => [
211
- i(" " + l(_(P).assetSortDictEnum.getEnumValue(
213
+ u(" " + l(_(P).assetSortDictEnum.getEnumValue(
212
214
  r.value.assetSort
213
215
  )), 1)
214
216
  ]),
@@ -216,54 +218,54 @@ const C = new ie(), ue = { class: "app-container" }, de = { class: "cell-item" }
216
218
  }),
217
219
  o(c, null, {
218
220
  label: e(() => [
219
- u("div", _e, l(t.$t("asset.useLimit")), 1)
221
+ i("div", _e, l(t.$t("asset.useLimit")), 1)
220
222
  ]),
221
223
  default: e(() => [
222
- i(" " + l(r.value.useLimit), 1)
224
+ u(" " + l(r.value.useLimit), 1)
223
225
  ]),
224
226
  _: 1
225
227
  }),
226
228
  o(c, null, {
227
229
  label: e(() => [
228
- u("div", ve, l(t.$t("asset.oldMoney")), 1)
230
+ i("div", ve, l(t.$t("asset.oldMoney")), 1)
229
231
  ]),
230
232
  default: e(() => [
231
- i(" " + l(r.value.oldMoney), 1)
233
+ u(" " + l(r.value.oldMoney), 1)
232
234
  ]),
233
235
  _: 1
234
236
  }),
235
237
  o(c, null, {
236
238
  label: e(() => [
237
- u("div", be, l(t.$t("asset.netSalvage")), 1)
239
+ i("div", be, l(t.$t("asset.netSalvage")), 1)
238
240
  ]),
239
241
  default: e(() => [
240
- i(" " + l(r.value.netSalvage), 1)
242
+ u(" " + l(r.value.netSalvage), 1)
241
243
  ]),
242
244
  _: 1
243
245
  }),
244
246
  o(c, null, {
245
247
  label: e(() => [
246
- u("div", ge, l(t.$t("depreciationRecord.netAssetValue")), 1)
248
+ i("div", ge, l(t.$t("depreciationRecord.netAssetValue")), 1)
247
249
  ]),
248
250
  default: e(() => [
249
- i(" " + l(Y.value), 1)
251
+ u(" " + l(Y.value), 1)
250
252
  ]),
251
253
  _: 1
252
254
  }),
253
255
  o(c, null, {
254
256
  label: e(() => [
255
- u("div", ye, l(t.$t("depreciationRecord.totalDepreciation")), 1)
257
+ i("div", ye, l(t.$t("depreciationRecord.totalDepreciation")), 1)
256
258
  ]),
257
259
  default: e(() => [
258
- i(" " + l(r.value.totalDepreciation), 1)
260
+ u(" " + l(r.value.totalDepreciation), 1)
259
261
  ]),
260
262
  _: 1
261
263
  })
262
264
  ]),
263
265
  _: 1
264
266
  }),
265
- a[8] || (a[8] = u("div", { class: "title-content" }, "折旧记录", -1)),
266
- u("div", he, [
267
+ a[8] || (a[8] = i("div", { class: "title-content" }, "折旧记录", -1)),
268
+ i("div", he, [
267
269
  o(N, {
268
270
  ref_key: "queryFormRef",
269
271
  ref: B,
@@ -294,7 +296,7 @@ const C = new ie(), ue = { class: "app-container" }, de = { class: "cell-item" }
294
296
  onClick: a[1] || (a[1] = (p) => T())
295
297
  }, {
296
298
  default: e(() => [
297
- i(l(t.$t("common.search")), 1)
299
+ u(l(t.$t("common.search")), 1)
298
300
  ]),
299
301
  _: 1
300
302
  }),
@@ -302,7 +304,7 @@ const C = new ie(), ue = { class: "app-container" }, de = { class: "cell-item" }
302
304
  onClick: a[2] || (a[2] = (p) => U())
303
305
  }, {
304
306
  default: e(() => [
305
- i(l(t.$t("common.reset")), 1)
307
+ u(l(t.$t("common.reset")), 1)
306
308
  ]),
307
309
  _: 1
308
310
  })
@@ -324,12 +326,13 @@ const C = new ie(), ue = { class: "app-container" }, de = { class: "cell-item" }
324
326
  "table-label": _(q)
325
327
  }, null, 8, ["list-loading", "data", "table-label"])
326
328
  ]),
327
- _: 1
329
+ _: 1,
330
+ __: [7, 8]
328
331
  })
329
332
  ]);
330
333
  };
331
334
  }
332
335
  });
333
336
  export {
334
- Ve as default
337
+ Ce as default
335
338
  };
@@ -0,0 +1,152 @@
1
+ import { defineComponent as D, ref as p, resolveComponent as a, createElementBlock as E, openBlock as P, createVNode as t, withCtx as e, createElementVNode as s, createTextVNode as c, toDisplayString as l, unref as w } from "vue";
2
+ import { useRouter as B, useRoute as V } from "vue-router";
3
+ import { D as f, s as k } from "./index-BTvHsKHc.mjs";
4
+ import { routerUtil as C } from "jmash-core";
5
+ const O = { class: "app-container" }, j = { class: "cell-item" }, N = { class: "cell-item" }, T = { class: "cell-item" }, q = { class: "cell-item" }, z = { class: "cell-item" }, K = { class: "cell-item" }, L = { class: "cell-item" }, H = /* @__PURE__ */ D({
6
+ __name: "index",
7
+ setup(R) {
8
+ f.unionOrgBizLayDict.useValues();
9
+ const b = B(), u = V(), m = p([!1]), n = p({});
10
+ u.query.entityKey && k.findById({ siteId: u.query.entityKey }).then(({ data: o }) => {
11
+ n.value = Object.assign(n, o);
12
+ });
13
+ function v(o) {
14
+ m.value[o] = !m.value[o];
15
+ }
16
+ function h() {
17
+ C.closeTagView(u.fullPath, b, !1);
18
+ }
19
+ return (o, r) => {
20
+ const y = a("el-button"), i = a("el-descriptions-item"), d = a("el-descriptions"), _ = a("el-col"), g = a("jmash-mobileIns-component"), I = a("el-row"), $ = a("el-card");
21
+ return P(), E("div", O, [
22
+ t($, { shadow: "never" }, {
23
+ header: e(() => [
24
+ t(y, {
25
+ type: "primary",
26
+ onClick: h
27
+ }, {
28
+ default: e(() => [
29
+ c(l(o.$t("common.back")), 1)
30
+ ]),
31
+ _: 1
32
+ })
33
+ ]),
34
+ default: e(() => [
35
+ t(I, {
36
+ gutter: 20,
37
+ style: { width: "100%" }
38
+ }, {
39
+ default: e(() => [
40
+ t(_, { span: 24 }, {
41
+ default: e(() => [
42
+ r[1] || (r[1] = s("div", { class: "title-content" }, "场地信息", -1)),
43
+ t(d, {
44
+ class: "margin-top",
45
+ column: 2,
46
+ border: ""
47
+ }, {
48
+ default: e(() => [
49
+ t(i, null, {
50
+ label: e(() => [
51
+ s("div", j, l(o.$t("site.orgId")), 1)
52
+ ]),
53
+ default: e(() => [
54
+ c(" " + l(w(f).unionOrgBizLayDict.getValue(n.value.orgId)), 1)
55
+ ]),
56
+ _: 1
57
+ }),
58
+ t(i, null, {
59
+ label: e(() => [
60
+ s("div", N, l(o.$t("site.name")), 1)
61
+ ]),
62
+ default: e(() => [
63
+ c(" " + l(n.value.name), 1)
64
+ ]),
65
+ _: 1
66
+ }),
67
+ t(i, null, {
68
+ label: e(() => [
69
+ s("div", T, l(o.$t("site.buildDate")), 1)
70
+ ]),
71
+ default: e(() => [
72
+ c(" " + l(n.value.buildDate), 1)
73
+ ]),
74
+ _: 1
75
+ }),
76
+ t(i, null, {
77
+ label: e(() => [
78
+ s("div", q, l(o.$t("site.area")), 1)
79
+ ]),
80
+ default: e(() => [
81
+ c(" " + l(n.value.area), 1)
82
+ ]),
83
+ _: 1
84
+ }),
85
+ t(i, null, {
86
+ label: e(() => [
87
+ s("div", z, l(o.$t("site.address")), 1)
88
+ ]),
89
+ default: e(() => [
90
+ c(" " + l(n.value.name), 1)
91
+ ]),
92
+ _: 1
93
+ })
94
+ ]),
95
+ _: 1
96
+ })
97
+ ]),
98
+ _: 1,
99
+ __: [1]
100
+ }),
101
+ t(_, { span: 24 }, {
102
+ default: e(() => [
103
+ r[2] || (r[2] = s("div", { class: "title-content" }, "管理员信息", -1)),
104
+ t(d, {
105
+ class: "margin-top",
106
+ column: 2,
107
+ border: ""
108
+ }, {
109
+ default: e(() => [
110
+ t(i, null, {
111
+ label: e(() => [
112
+ s("div", K, l(o.$t("site.manager")), 1)
113
+ ]),
114
+ default: e(() => [
115
+ c(" " + l(n.value.manager), 1)
116
+ ]),
117
+ _: 1
118
+ }),
119
+ t(i, null, {
120
+ label: e(() => [
121
+ s("div", L, l(o.$t("site.mobilePhone")), 1)
122
+ ]),
123
+ default: e(() => [
124
+ t(g, {
125
+ mobileEncrypt: m.value[0],
126
+ mobilePhoneIns: n.value.mobilePhoneIns,
127
+ mobilePhone: n.value.mobilePhone,
128
+ onToggleEncrypt: r[0] || (r[0] = (A) => v(0))
129
+ }, null, 8, ["mobileEncrypt", "mobilePhoneIns", "mobilePhone"])
130
+ ]),
131
+ _: 1
132
+ })
133
+ ]),
134
+ _: 1
135
+ })
136
+ ]),
137
+ _: 1,
138
+ __: [2]
139
+ })
140
+ ]),
141
+ _: 1
142
+ })
143
+ ]),
144
+ _: 1
145
+ })
146
+ ]);
147
+ };
148
+ }
149
+ });
150
+ export {
151
+ H as default
152
+ };