xyvcard-asset 0.0.8 → 0.0.10

Sign up to get free protection for your applications and to get access to all the features.
Files changed (152) hide show
  1. package/README.md +52 -52
  2. package/dist/assign-DzQUNp-Y.mjs +1626 -0
  3. package/dist/{edit-zFZfd8e1.mjs → edit-CCrekeeb.mjs} +1 -1
  4. package/dist/{edit-CE3u81Q0.mjs → edit-DdzPtYyH.mjs} +1 -1
  5. package/dist/edit-Dn-QMuy6.mjs +4 -0
  6. package/dist/edit-FdqpKRgF.mjs +294 -0
  7. package/dist/{edit.vue_vue_type_script_setup_true_lang-BdkCgqqE.mjs → edit.vue_vue_type_script_setup_true_lang-BP4-GiBE.mjs} +152 -145
  8. package/dist/edit.vue_vue_type_script_setup_true_lang-CkBAP9Bk.mjs +547 -0
  9. package/dist/edit.vue_vue_type_script_setup_true_lang-IWUY0BmY.mjs +278 -0
  10. package/dist/index copy-CxTCJcvX.mjs +75 -0
  11. package/dist/index-B4vUTwSW.mjs +171 -0
  12. package/dist/index-BK24yagy.mjs +1663 -0
  13. package/dist/index-BW-5IuVN.mjs +91 -0
  14. package/dist/index-BWwU9hSp.mjs +320 -0
  15. package/dist/index-BvKWLFdr.mjs +345 -0
  16. package/dist/index-BwbnYpa1.mjs +29 -0
  17. package/dist/index-C5_f5Lce.mjs +213 -0
  18. package/dist/index-CSMEsPcN.mjs +432 -0
  19. package/dist/index-CgAq70-p.mjs +314 -0
  20. package/dist/index-CugJCeed.mjs +373 -0
  21. package/dist/index-DElPNxc7.mjs +398 -0
  22. package/dist/index-De4u-LEl.mjs +325 -0
  23. package/dist/index-Dyo7je0Z.mjs +38 -0
  24. package/dist/index-FUnFB7nG.mjs +61 -0
  25. package/dist/index-GhvyIwc3.mjs +4 -0
  26. package/dist/index-axEqTssj.mjs +378 -0
  27. package/dist/index-jOcS7tqC.mjs +311 -0
  28. package/dist/index-pfeu6d82.mjs +4 -0
  29. package/dist/index.mjs +2753 -35
  30. package/dist/index.vue_vue_type_script_setup_true_lang-BhVtd4iX.mjs +110 -0
  31. package/dist/index.vue_vue_type_script_setup_true_lang-Dh1DZzIU.mjs +54 -0
  32. package/dist/index/345/244/207/344/273/275-BfKo5eBT.mjs +323 -0
  33. package/dist/style.css +1 -1
  34. package/dts/api/asset/asset-asset/index.d.ts +10 -5
  35. package/dts/api/asset/asset-asset/types.d.ts +39 -23
  36. package/dts/api/asset/asset-asset-detail/index.d.ts +12 -0
  37. package/dts/api/asset/asset-asset-detail/types.d.ts +56 -0
  38. package/dts/api/asset/asset-depreciation-record/index.d.ts +11 -0
  39. package/dts/api/asset/asset-depreciation-record/types.d.ts +38 -0
  40. package/dts/api/asset/asset-inventory-record/index.d.ts +10 -0
  41. package/dts/api/asset/asset-inventory-record/types.d.ts +62 -0
  42. package/dts/api/asset/asset-service-appt-member/index.d.ts +1 -12
  43. package/dts/api/asset/asset-service-appt-member/types.d.ts +1 -44
  44. package/dts/api/asset/asset-service-appt-record/index.d.ts +1 -12
  45. package/dts/api/asset/asset-service-appt-record/types.d.ts +7 -68
  46. package/dts/api/asset/asset-site/index.d.ts +1 -2
  47. package/dts/api/asset/asset-site/types.d.ts +4 -14
  48. package/dts/api/asset/asset-site-service/index.d.ts +1 -2
  49. package/dts/api/asset/asset-site-service/types.d.ts +1 -0
  50. package/dts/api/asset/text/index.d.ts +140 -0
  51. package/dts/api/asset/text/types.d.ts +179 -0
  52. package/dts/api/dict.d.ts +1 -4
  53. package/dts/api/index.d.ts +2 -0
  54. package/dts/components/{TMaps → PeopleSelectAsset}/index.vue.d.ts +5 -7
  55. package/dts/components/Upload/ImageUpload.vue.d.ts +1 -1
  56. package/dts/components/deptPeopleSelectAsset/index.vue.d.ts +14 -0
  57. package/dts/constant.d.ts +4 -1
  58. package/dts/index.d.ts +3 -1
  59. package/dts/lang/asset/zh-cn.d.ts +60 -1
  60. package/dts/router/page.d.ts +6 -0
  61. package/dts/src/api/asset/asset-asset/index.d.ts +10 -5
  62. package/dts/src/api/asset/asset-asset/types.d.ts +39 -23
  63. package/dts/src/api/asset/asset-asset-detail/index.d.ts +12 -0
  64. package/dts/src/api/asset/asset-asset-detail/types.d.ts +56 -0
  65. package/dts/src/api/asset/asset-depreciation-record/index.d.ts +11 -0
  66. package/dts/src/api/asset/asset-depreciation-record/types.d.ts +38 -0
  67. package/dts/src/api/asset/asset-inventory-record/index.d.ts +10 -0
  68. package/dts/src/api/asset/asset-inventory-record/types.d.ts +62 -0
  69. package/dts/src/api/asset/asset-service-appt-member/index.d.ts +1 -12
  70. package/dts/src/api/asset/asset-service-appt-member/types.d.ts +1 -44
  71. package/dts/src/api/asset/asset-service-appt-record/index.d.ts +1 -12
  72. package/dts/src/api/asset/asset-service-appt-record/types.d.ts +7 -68
  73. package/dts/src/api/asset/asset-site/index.d.ts +1 -2
  74. package/dts/src/api/asset/asset-site/types.d.ts +4 -14
  75. package/dts/src/api/asset/asset-site-service/index.d.ts +1 -2
  76. package/dts/src/api/asset/asset-site-service/types.d.ts +1 -0
  77. package/dts/src/api/asset/text/index.d.ts +0 -0
  78. package/dts/src/api/asset/text/types.d.ts +0 -0
  79. package/dts/src/api/dict.d.ts +1 -4
  80. package/dts/src/api/index.d.ts +2 -0
  81. package/dts/src/components/PeopleSelect/index.vue.d.ts +18 -0
  82. package/dts/src/components/Upload/ImageUpload.vue.d.ts +1 -1
  83. package/dts/src/components copy/PeopleSelect/index.vue.d.ts +18 -0
  84. package/dts/src/components copy/PeopleSelect//345/244/207/344/273/275/index copy 2.vue.d.ts" +34 -0
  85. package/dts/src/components copy/PeopleSelect//345/244/207/344/273/275/index copy 22.vue.d.ts" +18 -0
  86. package/dts/src/components copy/PeopleSelect//345/244/207/344/273/275/index copy.vue.d.ts" +34 -0
  87. 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" +34 -0
  88. 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" +18 -0
  89. package/dts/src/components copy/PeopleSelect//345/244/207/344/273/275//345/217/214/351/200/211/346/213/251.vue.d.ts" +42 -0
  90. 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" +34 -0
  91. package/dts/src/components copy/Upload/ImageUpload.vue.d.ts +38 -0
  92. package/dts/src/components copy/Upload/MultiUpload.vue.d.ts +24 -0
  93. package/dts/src/constant.d.ts +4 -1
  94. package/dts/src/index.d.ts +3 -1
  95. package/dts/src/lang/asset/zh-cn.d.ts +59 -1
  96. package/dts/src/router/page.d.ts +4 -0
  97. package/dts/src/utils/momentPlugin.d.ts +5 -0
  98. package/dts/{views/asset/asset-service-appt-member/edit.vue.d.ts → src/views/asset/asset-asset/assign.vue.d.ts} +14 -7
  99. package/dts/src/views/asset/asset-asset/info/index.vue.d.ts +2 -0
  100. package/dts/src/views/asset/{asset-service-appt-member → asset-asset-detail}/edit.vue.d.ts +5 -7
  101. package/dts/src/views/asset/asset-asset-detail/index.vue.d.ts +2 -0
  102. package/dts/src/views/asset/asset-depreciation-record/index.vue.d.ts +2 -0
  103. package/dts/src/views/asset/asset-depreciation-record/info/index.vue.d.ts +2 -0
  104. package/dts/src/views/asset/asset-inventory-record/dialogSelect/index.vue.d.ts +6 -0
  105. package/dts/src/views/asset/asset-inventory-record/index.vue.d.ts +2 -0
  106. package/dts/src/views/asset/asset-inventory-record/index/345/244/207/344/273/275.vue.d.ts +2 -0
  107. package/dts/src/views/asset/asset-inventory-record/info/index.vue.d.ts +2 -0
  108. package/dts/src/views/asset/asset-inventory-record/text/index copy.vue.d.ts +2 -0
  109. package/dts/src/views/asset/asset-inventory-record/text/index.vue.d.ts +2 -0
  110. package/dts/tsconfig.tsbuildinfo +1 -1
  111. package/dts/utils/momentPlugin.d.ts +5 -0
  112. package/dts/views/asset/{asset-service-appt-record/edit.vue.d.ts → asset-asset/assign.vue.d.ts} +14 -7
  113. package/dts/views/asset/asset-asset/info/index.vue.d.ts +2 -0
  114. package/dts/{src/views/asset/asset-service-appt-record → views/asset/asset-asset-detail}/edit.vue.d.ts +5 -7
  115. package/dts/views/asset/asset-asset-detail/index.vue.d.ts +2 -0
  116. package/dts/views/asset/asset-depreciation-record/index.vue.d.ts +2 -0
  117. package/dts/views/asset/asset-depreciation-record/info/index.vue.d.ts +2 -0
  118. package/dts/views/asset/asset-inventory-record/dialogSelect/index.vue.d.ts +6 -0
  119. package/dts/views/asset/asset-inventory-record/index.vue.d.ts +2 -0
  120. package/dts/views/asset/asset-inventory-record/indexOld.vue.d.ts +2 -0
  121. package/dts/views/asset/asset-inventory-record/index/345/244/207/344/273/275.vue.d.ts +2 -0
  122. package/dts/views/asset/asset-inventory-record/info/index.vue.d.ts +2 -0
  123. package/dts/views/asset/asset-inventory-record/text/index copy.vue.d.ts +2 -0
  124. package/dts/views/asset/asset-inventory-record/text/index.vue.d.ts +2 -0
  125. package/package.json +7 -6
  126. package/dist/edit-Bo9bnbUP.mjs +0 -492
  127. package/dist/edit-DJFxVmvv.mjs +0 -624
  128. package/dist/edit-qp_2xtTZ.mjs +0 -242
  129. package/dist/edit.vue_vue_type_script_setup_true_lang-CekLyjO-.mjs +0 -322
  130. package/dist/edit.vue_vue_type_style_index_0_scoped_198fdb2f_lang-l0sNRNKZ.mjs +0 -1
  131. package/dist/index-Bf5U4Ucl.mjs +0 -369
  132. package/dist/index-Bh2imlN_.mjs +0 -149
  133. package/dist/index-CHNiaFZk.mjs +0 -291
  134. package/dist/index-CmlP_Rro.mjs +0 -332
  135. package/dist/index-Cqw_E8lr.mjs +0 -1269
  136. package/dist/index-DA_FS24d.mjs +0 -146
  137. package/dist/index-DKmGNvQl.mjs +0 -370
  138. package/dist/index-DLxpE9s5.mjs +0 -305
  139. package/dist/index-DWaL87j5.mjs +0 -89
  140. package/dist/index-jOnQLJaB.mjs +0 -416
  141. package/dist/index-pyyjj1xa.mjs +0 -187
  142. package/dist/index.vue_vue_type_script_setup_true_lang-C_itMCoU.mjs +0 -37
  143. package/dts/api/org/union-org/index.d.ts +0 -14
  144. package/dts/api/org/union-org/types.d.ts +0 -49
  145. package/dts/components/EnumRadio/index.vue.d.ts +0 -18
  146. package/dts/components/EnumSelect/index.vue.d.ts +0 -18
  147. package/dts/src/api/org/union-org/index.d.ts +0 -14
  148. package/dts/src/api/org/union-org/types.d.ts +0 -49
  149. package/dts/src/components/EnumRadio/index.vue.d.ts +0 -18
  150. package/dts/src/components/EnumSelect/index.vue.d.ts +0 -18
  151. /package/dts/{views/asset/asset-service-appt-member → src/components/deptPeopleSelect}/index.vue.d.ts +0 -0
  152. /package/dts/src/{views/asset/asset-service-appt-member → components copy/deptPeopleSelect}/index.vue.d.ts +0 -0
@@ -0,0 +1,378 @@
1
+ import { defineComponent as X, getCurrentInstance as Z, ref as v, reactive as ee, resolveComponent as r, resolveDirective as te, openBlock as p, createElementBlock as P, createElementVNode as d, createVNode as o, withCtx as l, unref as s, withKeys as _, toDisplayString as i, createBlock as N, createTextVNode as V, withDirectives as T, isRef as Q, createCommentVNode as z } from "vue";
2
+ import { useI18n as le } from "vue-i18n";
3
+ import { a as ae } from "./index-FUnFB7nG.mjs";
4
+ import { useTableHooks as oe } from "jmash-core";
5
+ import { D as m, S as se } from "./index-BK24yagy.mjs";
6
+ import ne from "./edit-FdqpKRgF.mjs";
7
+ const re = { class: "app-container" }, ue = { class: "search-container" }, ie = /* @__PURE__ */ d("div", { class: "clear" }, null, -1), de = ["onClick"], De = /* @__PURE__ */ X({
8
+ __name: "index",
9
+ setup(me) {
10
+ m.unionOrgBizLayDict.useValues(), m.siteDict.useValues();
11
+ const { t: g } = le(), { proxy: j } = Z(), h = v([]), n = v({
12
+ curPage: 1,
13
+ pageSize: 10
14
+ }), {
15
+ tableHooks: u,
16
+ multipleTableRef: E,
17
+ queryFormRef: L,
18
+ listLoading: U,
19
+ tableData: B,
20
+ total: y
21
+ } = oe(g, ae, n);
22
+ let c = v([
23
+ // 使用工会
24
+ {
25
+ label: "assetDetail.orgId",
26
+ prop: "orgId",
27
+ sortable: "custom",
28
+ isColumn: !0,
29
+ slotName: "orgId",
30
+ columnType: "slot"
31
+ },
32
+ // 使用场地
33
+ {
34
+ label: "assetDetail.siteName",
35
+ prop: "siteName",
36
+ sortable: "custom",
37
+ isColumn: !0,
38
+ slotName: "siteName",
39
+ columnType: "slot"
40
+ },
41
+ // 资产名称
42
+ {
43
+ label: "assetDetail.assetName",
44
+ prop: "assetName",
45
+ sortable: "custom",
46
+ isColumn: !0,
47
+ slotName: "assetName",
48
+ columnType: "slot"
49
+ },
50
+ // 资产码
51
+ {
52
+ label: "assetDetail.deviceQrcode",
53
+ prop: "deviceQrcode",
54
+ width: "150",
55
+ sortable: "custom",
56
+ isColumn: !0,
57
+ slotName: "deviceQrcode",
58
+ columnType: "slot"
59
+ },
60
+ // 购买日期
61
+ {
62
+ label: "assetDetail.buyDate",
63
+ prop: "buyDate",
64
+ sortable: "custom",
65
+ isColumn: !0,
66
+ slotName: "buyDate",
67
+ columnType: "slot",
68
+ width: "140"
69
+ },
70
+ // 资产属性
71
+ {
72
+ label: "assetDetail.assetSort",
73
+ prop: "assetSort",
74
+ width: "150",
75
+ sortable: "custom",
76
+ isColumn: !0,
77
+ slotName: "assetSort",
78
+ columnType: "slot"
79
+ },
80
+ // 资产状态
81
+ {
82
+ label: "assetDetail.status",
83
+ prop: "status",
84
+ width: "120",
85
+ sortable: "custom",
86
+ isColumn: !0,
87
+ slotName: "status",
88
+ columnType: "slot"
89
+ },
90
+ {
91
+ label: g("common.operate"),
92
+ width: "80",
93
+ slotName: "operation",
94
+ columnType: "slot",
95
+ isColumn: !0
96
+ }
97
+ ]);
98
+ const S = v(""), D = v(!1);
99
+ let k = ee({});
100
+ function R(a) {
101
+ k = a, S.value = g("common.edit"), D.value = !0;
102
+ }
103
+ function K(a) {
104
+ u.selectionRows.value = a;
105
+ }
106
+ function A(a) {
107
+ u.handleSort(a.prop, a.order);
108
+ }
109
+ function Y(a) {
110
+ n.value.siteId = "";
111
+ const t = new se({ orgId: a });
112
+ t.useValues(), h.value = t.values;
113
+ }
114
+ function q(a) {
115
+ a && u.getList();
116
+ }
117
+ return u.getList(), (a, t) => {
118
+ const O = r("el-tooltip"), F = r("el-tree-select"), b = r("el-form-item"), f = r("el-col"), C = r("jmash-select"), H = r("el-input"), $ = r("el-row"), w = r("el-button"), M = r("el-form"), x = r("jmash-column-select"), G = r("jmash-table"), J = r("jmash-pagination"), W = r("el-card"), I = te("hasPerm");
119
+ return p(), P("div", re, [
120
+ d("div", ue, [
121
+ o(M, {
122
+ ref_key: "queryFormRef",
123
+ ref: L,
124
+ model: n.value,
125
+ inline: !0
126
+ }, {
127
+ default: l(() => [
128
+ o($, null, {
129
+ default: l(() => [
130
+ o(f, { span: 6 }, {
131
+ default: l(() => [
132
+ o(b, {
133
+ label: a.$t("assetDetail.orgId"),
134
+ prop: "orgId"
135
+ }, {
136
+ default: l(() => [
137
+ o(F, {
138
+ modelValue: n.value.orgId,
139
+ "onUpdate:modelValue": t[0] || (t[0] = (e) => n.value.orgId = e),
140
+ data: s(m).unionOrgBizLayDict.values,
141
+ filterable: "",
142
+ clearable: "",
143
+ "check-strictly": "",
144
+ "render-after-expand": !1,
145
+ placeholder: a.$t("assetDetail.orgIdPlaceholder"),
146
+ class: "!w-[203px]",
147
+ onChange: Y,
148
+ onKeyup: t[1] || (t[1] = _((e) => s(u).handleQuery(), ["enter"]))
149
+ }, {
150
+ default: l(({ data: e }) => [
151
+ d("span", null, [
152
+ o(O, {
153
+ class: "box-item",
154
+ effect: "light",
155
+ content: e.label,
156
+ placement: "top"
157
+ }, {
158
+ default: l(() => [
159
+ d("span", null, i(e.label), 1)
160
+ ]),
161
+ _: 2
162
+ }, 1032, ["content"])
163
+ ])
164
+ ]),
165
+ _: 1
166
+ }, 8, ["modelValue", "data", "placeholder"])
167
+ ]),
168
+ _: 1
169
+ }, 8, ["label"])
170
+ ]),
171
+ _: 1
172
+ }),
173
+ o(f, { span: 6 }, {
174
+ default: l(() => [
175
+ o(b, {
176
+ label: a.$t("assetDetail.siteName"),
177
+ prop: "siteId"
178
+ }, {
179
+ default: l(() => [
180
+ (p(), N(C, {
181
+ key: h.value.length,
182
+ modelValue: n.value.siteId,
183
+ "onUpdate:modelValue": t[2] || (t[2] = (e) => n.value.siteId = e),
184
+ filterable: "",
185
+ clearable: "",
186
+ disabled: !n.value.orgId,
187
+ placeholder: a.$t("assetDetail.siteNamePlaceholder"),
188
+ data: h.value,
189
+ onKeyup: t[3] || (t[3] = _((e) => s(u).handleQuery(), ["enter"]))
190
+ }, null, 8, ["modelValue", "disabled", "placeholder", "data"]))
191
+ ]),
192
+ _: 1
193
+ }, 8, ["label"])
194
+ ]),
195
+ _: 1
196
+ }),
197
+ o(f, { span: 6 }, {
198
+ default: l(() => [
199
+ o(b, {
200
+ label: a.$t("assetDetail.assetSort"),
201
+ prop: "assetSort"
202
+ }, {
203
+ default: l(() => [
204
+ o(C, {
205
+ modelValue: n.value.assetSort,
206
+ "onUpdate:modelValue": t[4] || (t[4] = (e) => n.value.assetSort = e),
207
+ clearable: "",
208
+ placeholder: a.$t("assetDetail.assetSortPlaceholder"),
209
+ data: s(m).assetSortDictEnum.values,
210
+ onKeyup: t[5] || (t[5] = _((e) => s(u).handleQuery(), ["enter"]))
211
+ }, null, 8, ["modelValue", "placeholder", "data"])
212
+ ]),
213
+ _: 1
214
+ }, 8, ["label"])
215
+ ]),
216
+ _: 1
217
+ }),
218
+ o(f, { span: 6 }, {
219
+ default: l(() => [
220
+ o(b, {
221
+ label: a.$t("assetDetail.assetName"),
222
+ prop: "likeAssetName"
223
+ }, {
224
+ default: l(() => [
225
+ o(H, {
226
+ modelValue: n.value.likeAssetName,
227
+ "onUpdate:modelValue": t[6] || (t[6] = (e) => n.value.likeAssetName = e),
228
+ placeholder: a.$t("assetDetail.assetNamePlaceholder"),
229
+ onKeyup: t[7] || (t[7] = _((e) => s(u).handleQuery(), ["enter"]))
230
+ }, null, 8, ["modelValue", "placeholder"])
231
+ ]),
232
+ _: 1
233
+ }, 8, ["label"])
234
+ ]),
235
+ _: 1
236
+ })
237
+ ]),
238
+ _: 1
239
+ }),
240
+ o(b, { class: "search-btn" }, {
241
+ default: l(() => [
242
+ o(w, {
243
+ type: "primary",
244
+ onClick: t[8] || (t[8] = (e) => s(u).handleQuery())
245
+ }, {
246
+ default: l(() => [
247
+ V(i(a.$t("common.search")), 1)
248
+ ]),
249
+ _: 1
250
+ }),
251
+ o(w, {
252
+ onClick: t[9] || (t[9] = (e) => s(u).resetQuery())
253
+ }, {
254
+ default: l(() => [
255
+ V(i(a.$t("common.reset")), 1)
256
+ ]),
257
+ _: 1
258
+ })
259
+ ]),
260
+ _: 1
261
+ })
262
+ ]),
263
+ _: 1
264
+ }, 8, ["model"]),
265
+ ie
266
+ ]),
267
+ o(W, {
268
+ shadow: "never",
269
+ class: "table-container"
270
+ }, {
271
+ header: l(() => [
272
+ o($, { justify: "space-between" }, {
273
+ default: l(() => [
274
+ o(f, {
275
+ span: 24,
276
+ align: "right"
277
+ }, {
278
+ default: l(() => [
279
+ T((p(), N(w, {
280
+ plain: "",
281
+ type: "primary",
282
+ onClick: t[10] || (t[10] = (e) => s(u).handleExport(s(g)("asset.assetDetail.name")))
283
+ }, {
284
+ default: l(() => [
285
+ V(i(a.$t("common.export")), 1)
286
+ ]),
287
+ _: 1
288
+ })), [
289
+ [I, ["asset:asset_detail:export"]]
290
+ ]),
291
+ o(x, {
292
+ modelValue: s(c),
293
+ "onUpdate:modelValue": t[11] || (t[11] = (e) => Q(c) ? c.value = e : c = e),
294
+ "label-name": "asset/asset-asset-detail"
295
+ }, null, 8, ["modelValue"])
296
+ ]),
297
+ _: 1
298
+ })
299
+ ]),
300
+ _: 1
301
+ })
302
+ ]),
303
+ footer: l(() => [
304
+ s(y) > 0 ? (p(), N(J, {
305
+ key: 0,
306
+ total: s(y),
307
+ "onUpdate:total": t[12] || (t[12] = (e) => Q(y) ? y.value = e : null),
308
+ "current-page": n.value.curPage,
309
+ "onUpdate:currentPage": t[13] || (t[13] = (e) => n.value.curPage = e),
310
+ "page-size": n.value.pageSize,
311
+ "onUpdate:pageSize": t[14] || (t[14] = (e) => n.value.pageSize = e),
312
+ onPagination: t[15] || (t[15] = (e) => s(u).getList())
313
+ }, null, 8, ["total", "current-page", "page-size"])) : z("", !0)
314
+ ]),
315
+ default: l(() => [
316
+ o(G, {
317
+ ref_key: "multipleTableRef",
318
+ ref: E,
319
+ class: "table-top",
320
+ "row-key": "DetailId",
321
+ "list-loading": s(U),
322
+ data: s(B),
323
+ "table-label": s(c),
324
+ onSelectionChange: K,
325
+ onSortChange: A
326
+ }, {
327
+ orgId: l((e) => [
328
+ d("span", null, i(s(m).unionOrgBizLayDict.getValue(e.data.row.orgId)), 1)
329
+ ]),
330
+ siteName: l((e) => [
331
+ d("span", null, i(e.data.row.siteName), 1)
332
+ ]),
333
+ assetName: l((e) => [
334
+ d("span", null, i(e.data.row.assetName), 1)
335
+ ]),
336
+ deviceQrcode: l((e) => [
337
+ d("span", null, i(e.data.row.deviceQrcode), 1)
338
+ ]),
339
+ buyDate: l((e) => [
340
+ d("span", null, i(s(j).$moment.formatDate(e.data.row.buyDate, "YYYY-MM-DD")), 1)
341
+ ]),
342
+ assetSort: l((e) => [
343
+ d("span", null, i(s(m).assetSortDictEnum.getEnumValue(e.data.row.assetSort)), 1)
344
+ ]),
345
+ status: l((e) => [
346
+ d("span", null, i(s(m).assetsStatus.getEnumValue(e.data.row.status)), 1)
347
+ ]),
348
+ operation: l((e) => [
349
+ T((p(), P("span", {
350
+ class: "el-button-color",
351
+ onClick: (pe) => R(e.data.row)
352
+ }, [
353
+ V(i(a.$t("common.edit")), 1)
354
+ ], 8, de)), [
355
+ [I, ["asset:asset_detail:update"]]
356
+ ])
357
+ ]),
358
+ _: 1
359
+ }, 8, ["list-loading", "data", "table-label"])
360
+ ]),
361
+ _: 1
362
+ }),
363
+ D.value ? (p(), N(ne, {
364
+ key: 0,
365
+ modelValue: D.value,
366
+ "onUpdate:modelValue": t[16] || (t[16] = (e) => D.value = e),
367
+ title: S.value,
368
+ "entity-key": s(k),
369
+ width: "900px",
370
+ onRefresh: q
371
+ }, null, 8, ["modelValue", "title", "entity-key"])) : z("", !0)
372
+ ]);
373
+ };
374
+ }
375
+ });
376
+ export {
377
+ De as default
378
+ };
@@ -0,0 +1,311 @@
1
+ import { defineComponent as M, ref as v, onBeforeMount as j, resolveComponent as c, openBlock as f, createElementBlock as k, createVNode as o, withCtx as e, createTextVNode as i, toDisplayString as l, unref as t, createBlock as h, isRef as K, createCommentVNode as g, createElementVNode as s } from "vue";
2
+ import { useRouter as U, useRoute as O } from "vue-router";
3
+ import { D as p, a as A, C as H } from "./index-BK24yagy.mjs";
4
+ import { useTableHooks as Q, routerUtil as F } from "jmash-core";
5
+ import { useI18n as G } from "vue-i18n";
6
+ import { a as C } from "./index-FUnFB7nG.mjs";
7
+ const J = { class: "app-container" }, W = /* @__PURE__ */ s("div", { class: "title-content" }, "资产信息", -1), X = { class: "cell-item" }, Y = { class: "cell-item" }, Z = { class: "cell-item" }, x = { class: "cell-item" }, ee = { class: "cell-item" }, te = { class: "cell-item" }, le = { class: "cell-item" }, se = { class: "cell-item" }, ae = /* @__PURE__ */ s("div", { class: "title-content" }, "折旧信息", -1), oe = { class: "cell-item" }, ne = { class: "cell-item" }, ie = { class: "cell-item" }, ue = { class: "cell-item" }, de = { class: "cell-item" }, re = {
8
+ key: 1,
9
+ class: "title-content"
10
+ }, ye = /* @__PURE__ */ M({
11
+ __name: "index",
12
+ setup(ce) {
13
+ p.unionOrgBizLayDict.useValues(), p.siteDict.useValues();
14
+ const { t: w } = G(), T = U(), m = O(), _ = v({
15
+ curPage: 1,
16
+ pageSize: 10,
17
+ assetId: m.query.entityKey
18
+ }), { tableHooks: D, multipleTableRef: V, listLoading: N, tableData: y, total: b } = Q(w, C, _);
19
+ let z = v([
20
+ // 码牌
21
+ {
22
+ label: "asset.deviceQrcode",
23
+ prop: "deviceQrcode",
24
+ isColumn: !0
25
+ },
26
+ // 所属工会
27
+ {
28
+ label: "asset.orgId",
29
+ prop: "orgId",
30
+ slotName: "orgId",
31
+ columnType: "slot",
32
+ isColumn: !0
33
+ },
34
+ // 资产ID
35
+ {
36
+ label: "asset.siteId",
37
+ prop: "siteId",
38
+ slotName: "siteId",
39
+ columnType: "slot",
40
+ isColumn: !0
41
+ },
42
+ // 资产编号
43
+ {
44
+ label: "asset.code",
45
+ prop: "deviceCode",
46
+ isColumn: !0
47
+ },
48
+ {
49
+ label: "asset.statusInfo",
50
+ prop: "status",
51
+ isColumn: !0,
52
+ slotName: "status",
53
+ columnType: "slot"
54
+ }
55
+ ]);
56
+ function B(a) {
57
+ D.selectionRows.value = a;
58
+ }
59
+ const n = v({});
60
+ A.findById({ assetId: m.query.entityKey }).then((a) => {
61
+ n.value = a.data;
62
+ }), j(() => {
63
+ m.query.entityKey ? C.findPage({
64
+ assetId: m.query.entityKey
65
+ }).then(({ data: { results: a } }) => {
66
+ y.value = a;
67
+ }) : y.value = [];
68
+ });
69
+ function E() {
70
+ F.closeTagView(m.fullPath, T, !1);
71
+ }
72
+ return (a, r) => {
73
+ const P = c("el-button"), u = c("el-descriptions-item"), I = c("el-descriptions"), S = c("el-col"), $ = c("el-row"), L = c("jmash-table"), R = c("jmash-pagination"), q = c("el-card");
74
+ return f(), k("div", J, [
75
+ o(q, { shadow: "never" }, {
76
+ header: e(() => [
77
+ o(P, {
78
+ type: "primary",
79
+ onClick: E
80
+ }, {
81
+ default: e(() => [
82
+ i(l(a.$t("common.back")), 1)
83
+ ]),
84
+ _: 1
85
+ })
86
+ ]),
87
+ footer: e(() => [
88
+ t(b) > 0 ? (f(), h(R, {
89
+ key: 0,
90
+ total: t(b),
91
+ "onUpdate:total": r[0] || (r[0] = (d) => K(b) ? b.value = d : null),
92
+ "current-page": t(_).curPage,
93
+ "onUpdate:currentPage": r[1] || (r[1] = (d) => t(_).curPage = d),
94
+ "page-size": t(_).pageSize,
95
+ "onUpdate:pageSize": r[2] || (r[2] = (d) => t(_).pageSize = d),
96
+ onPagination: r[3] || (r[3] = (d) => t(D).getList())
97
+ }, null, 8, ["total", "current-page", "page-size"])) : g("", !0)
98
+ ]),
99
+ default: e(() => [
100
+ o($, {
101
+ gutter: 20,
102
+ style: { width: "100%" }
103
+ }, {
104
+ default: e(() => [
105
+ o(S, { span: 24 }, {
106
+ default: e(() => [
107
+ W,
108
+ o(I, {
109
+ class: "margin-top",
110
+ column: 2,
111
+ border: ""
112
+ }, {
113
+ default: e(() => [
114
+ o(u, null, {
115
+ label: e(() => [
116
+ s("div", X, l(a.$t("asset.name")), 1)
117
+ ]),
118
+ default: e(() => [
119
+ i(" " + l(t(n).name), 1)
120
+ ]),
121
+ _: 1
122
+ }),
123
+ o(u, null, {
124
+ label: e(() => [
125
+ s("div", Y, l(a.$t("asset.code")), 1)
126
+ ]),
127
+ default: e(() => [
128
+ i(" " + l(t(n).code), 1)
129
+ ]),
130
+ _: 1
131
+ }),
132
+ o(u, null, {
133
+ label: e(() => [
134
+ s("div", Z, l(a.$t("asset.number")), 1)
135
+ ]),
136
+ default: e(() => [
137
+ i(" " + l(t(n).number) + "/" + l(t(n).unit), 1)
138
+ ]),
139
+ _: 1
140
+ }),
141
+ o(u, null, {
142
+ label: e(() => [
143
+ s("div", x, l(a.$t("asset.buyDate")), 1)
144
+ ]),
145
+ default: e(() => [
146
+ i(" " + l(t(n).buyDate), 1)
147
+ ]),
148
+ _: 1
149
+ }),
150
+ o(u, null, {
151
+ label: e(() => [
152
+ s("span", null, [
153
+ s("div", ee, l(a.$t("asset.buyMoney")), 1)
154
+ ])
155
+ ]),
156
+ default: e(() => [
157
+ i(" " + l(t(n).buyMoney), 1)
158
+ ]),
159
+ _: 1
160
+ }),
161
+ o(u, null, {
162
+ label: e(() => [
163
+ s("span", null, [
164
+ s("div", te, l(a.$t("asset.oldMoney")), 1)
165
+ ])
166
+ ]),
167
+ default: e(() => [
168
+ i(" " + l(t(n).oldMoney), 1)
169
+ ]),
170
+ _: 1
171
+ }),
172
+ o(u, null, {
173
+ label: e(() => [
174
+ s("span", null, [
175
+ s("div", le, l(a.$t("asset.assetSort")), 1)
176
+ ])
177
+ ]),
178
+ default: e(() => [
179
+ i(" " + l(t(p).assetSortDictEnum.getEnumValue(
180
+ t(n).assetSort
181
+ )), 1)
182
+ ]),
183
+ _: 1
184
+ }),
185
+ o(u, null, {
186
+ label: e(() => [
187
+ s("span", null, [
188
+ s("div", se, l(a.$t("asset.model")), 1)
189
+ ])
190
+ ]),
191
+ default: e(() => [
192
+ i(" " + l(t(n).model), 1)
193
+ ]),
194
+ _: 1
195
+ })
196
+ ]),
197
+ _: 1
198
+ })
199
+ ]),
200
+ _: 1
201
+ })
202
+ ]),
203
+ _: 1
204
+ }),
205
+ t(n).depreciationType !== t(H).NONE ? (f(), h($, {
206
+ key: 0,
207
+ gutter: 20,
208
+ style: { width: "100%" }
209
+ }, {
210
+ default: e(() => [
211
+ o(S, { span: 24 }, {
212
+ default: e(() => [
213
+ ae,
214
+ o(I, {
215
+ class: "margin-top",
216
+ column: 2,
217
+ border: ""
218
+ }, {
219
+ default: e(() => [
220
+ o(u, null, {
221
+ label: e(() => [
222
+ s("div", oe, l(a.$t("asset.depreciationType")), 1)
223
+ ]),
224
+ default: e(() => [
225
+ i(" " + l(t(p).depreciationTypeEnum.getEnumValue(
226
+ t(n).depreciationType
227
+ )), 1)
228
+ ]),
229
+ _: 1
230
+ }),
231
+ o(u, null, {
232
+ label: e(() => [
233
+ s("div", ne, l(a.$t("asset.useLimit")), 1)
234
+ ]),
235
+ default: e(() => [
236
+ i(" " + l(t(n).useLimit), 1)
237
+ ]),
238
+ _: 1
239
+ }),
240
+ o(u, null, {
241
+ label: e(() => [
242
+ s("div", ie, l(a.$t("asset.netSalvage")), 1)
243
+ ]),
244
+ default: e(() => [
245
+ i(" " + l(t(n).netSalvage), 1)
246
+ ]),
247
+ _: 1
248
+ }),
249
+ o(u, null, {
250
+ label: e(() => [
251
+ s("div", ue, l(a.$t("asset.monthDepreciation")), 1)
252
+ ]),
253
+ default: e(() => [
254
+ i(" " + l(t(n).monthDepreciation), 1)
255
+ ]),
256
+ _: 1
257
+ }),
258
+ o(u, null, {
259
+ label: e(() => [
260
+ s("span", null, [
261
+ s("div", de, l(a.$t("asset.totalDepreciation")), 1)
262
+ ])
263
+ ]),
264
+ default: e(() => [
265
+ i(" " + l(t(n).totalDepreciation), 1)
266
+ ]),
267
+ _: 1
268
+ })
269
+ ]),
270
+ _: 1
271
+ })
272
+ ]),
273
+ _: 1
274
+ })
275
+ ]),
276
+ _: 1
277
+ })) : g("", !0),
278
+ t(n).assignStatus ? (f(), k("div", re, "使用信息")) : g("", !0),
279
+ t(n).assignStatus ? (f(), h(L, {
280
+ key: 2,
281
+ ref_key: "multipleTableRef",
282
+ ref: V,
283
+ "is-selection": !1,
284
+ class: "table-top",
285
+ "row-key": "recordId",
286
+ "list-loading": t(N),
287
+ data: t(y),
288
+ "table-label": t(z),
289
+ onSelectionChange: B
290
+ }, {
291
+ orgId: e((d) => [
292
+ s("span", null, l(t(p).unionOrgBizLayDict.getValue(d.data.row.orgId)), 1)
293
+ ]),
294
+ siteId: e((d) => [
295
+ s("span", null, l(t(p).siteDict.getValue(d.data.row.siteId)), 1)
296
+ ]),
297
+ status: e((d) => [
298
+ s("span", null, l(t(p).assetsStatus.getEnumValue(d.data.row.status)), 1)
299
+ ]),
300
+ _: 1
301
+ }, 8, ["list-loading", "data", "table-label"])) : g("", !0)
302
+ ]),
303
+ _: 1
304
+ })
305
+ ]);
306
+ };
307
+ }
308
+ });
309
+ export {
310
+ ye as default
311
+ };
@@ -0,0 +1,4 @@
1
+ import { _ as f } from "./index.vue_vue_type_script_setup_true_lang-BhVtd4iX.mjs";
2
+ export {
3
+ f as default
4
+ };