xyvcard-asset 0.0.8 → 0.0.9

Sign up to get free protection for your applications and to get access to all the features.
Files changed (139) hide show
  1. package/README.md +52 -52
  2. package/dist/assign-BLa-fXcy.mjs +1626 -0
  3. package/dist/{edit-zFZfd8e1.mjs → edit-CCrekeeb.mjs} +1 -1
  4. package/dist/{edit-CE3u81Q0.mjs → edit-DmRG7fo0.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-CkBAP9Bk.mjs +547 -0
  8. package/dist/{edit.vue_vue_type_script_setup_true_lang-BdkCgqqE.mjs → edit.vue_vue_type_script_setup_true_lang-DSfByOkx.mjs} +146 -139
  9. package/dist/edit.vue_vue_type_script_setup_true_lang-IWUY0BmY.mjs +278 -0
  10. package/dist/index copy-Di49EjkG.mjs +76 -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-ByVysHgI.mjs +4 -0
  18. package/dist/index-C5_f5Lce.mjs +213 -0
  19. package/dist/index-CgAq70-p.mjs +314 -0
  20. package/dist/index-DElPNxc7.mjs +398 -0
  21. package/dist/index-De4u-LEl.mjs +325 -0
  22. package/dist/index-DeBZxOsC.mjs +372 -0
  23. package/dist/index-Dyo7je0Z.mjs +38 -0
  24. package/dist/index-FUnFB7nG.mjs +61 -0
  25. package/dist/index-axEqTssj.mjs +378 -0
  26. package/dist/index-jOcS7tqC.mjs +311 -0
  27. package/dist/index-qQuyprvx.mjs +4 -0
  28. package/dist/index-xyCxQquE.mjs +432 -0
  29. package/dist/index.mjs +2752 -35
  30. package/dist/index.vue_vue_type_script_setup_true_lang-05kzecXV.mjs +274 -0
  31. package/dist/index.vue_vue_type_script_setup_true_lang-Bl9nmo3f.mjs +120 -0
  32. package/dist/index.vue_vue_type_script_setup_true_lang-BtIlu38i.mjs +105 -0
  33. package/dist/index/345/244/207/344/273/275-CaiMDP8J.mjs +319 -0
  34. package/dist/style.css +1 -1
  35. package/dts/src/api/asset/asset-asset/index.d.ts +10 -5
  36. package/dts/src/api/asset/asset-asset/types.d.ts +39 -23
  37. package/dts/src/api/asset/asset-asset-detail/index.d.ts +12 -0
  38. package/dts/src/api/asset/asset-asset-detail/types.d.ts +56 -0
  39. package/dts/src/api/asset/asset-depreciation-record/index.d.ts +11 -0
  40. package/dts/src/api/asset/asset-depreciation-record/types.d.ts +38 -0
  41. package/dts/src/api/asset/asset-inventory-record/index.d.ts +10 -0
  42. package/dts/src/api/asset/asset-inventory-record/types.d.ts +62 -0
  43. package/dts/src/api/asset/asset-service-appt-member/index.d.ts +1 -12
  44. package/dts/src/api/asset/asset-service-appt-member/types.d.ts +1 -44
  45. package/dts/src/api/asset/asset-service-appt-record/index.d.ts +1 -12
  46. package/dts/src/api/asset/asset-service-appt-record/types.d.ts +7 -68
  47. package/dts/src/api/asset/asset-site/index.d.ts +1 -2
  48. package/dts/src/api/asset/asset-site/types.d.ts +4 -14
  49. package/dts/src/api/asset/asset-site-service/index.d.ts +1 -2
  50. package/dts/src/api/asset/asset-site-service/types.d.ts +1 -0
  51. package/dts/src/api/asset/text/index.d.ts +0 -0
  52. package/dts/src/api/asset/text/types.d.ts +0 -0
  53. package/dts/src/api/dict.d.ts +1 -4
  54. package/dts/src/api/index.d.ts +2 -0
  55. package/dts/src/components/PeopleSelect/index.vue.d.ts +18 -0
  56. package/dts/src/components/Upload/ImageUpload.vue.d.ts +1 -1
  57. package/dts/{components/TMaps/index.vue.d.ts → src/components copy/PeopleSelect/index.vue.d.ts } +5 -7
  58. package/dts/src/components copy/PeopleSelect//345/244/207/344/273/275/index copy 2.vue.d.ts" +34 -0
  59. package/dts/src/components copy/PeopleSelect//345/244/207/344/273/275/index copy 22.vue.d.ts" +18 -0
  60. package/dts/src/components copy/PeopleSelect//345/244/207/344/273/275/index copy.vue.d.ts" +34 -0
  61. 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
  62. 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
  63. 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
  64. 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
  65. package/dts/{components/Upload/ImageUpload.vue.d.ts → src/components copy/Upload/ImageUpload.vue.d.ts } +1 -1
  66. package/dts/src/constant.d.ts +4 -1
  67. package/dts/src/index.d.ts +3 -1
  68. package/dts/src/lang/asset/zh-cn.d.ts +59 -1
  69. package/dts/src/router/page.d.ts +4 -0
  70. package/dts/src/utils/momentPlugin.d.ts +5 -0
  71. package/dts/{views/asset/asset-asset/edit.vue.d.ts → src/views/asset/asset-asset/assign.vue.d.ts} +12 -5
  72. package/dts/{views/asset/asset-site → src/views/asset/asset-asset-detail}/edit.vue.d.ts +5 -7
  73. package/dts/src/views/asset/asset-inventory-record/dialogSelect/index.vue.d.ts +6 -0
  74. package/dts/src/views/asset/asset-inventory-record/text/index copy.vue.d.ts +2 -0
  75. package/dts/src/views/asset/asset-inventory-record/text/index.vue.d.ts +2 -0
  76. package/dts/tsconfig.tsbuildinfo +1 -1
  77. package/package.json +7 -6
  78. package/dist/edit-Bo9bnbUP.mjs +0 -492
  79. package/dist/edit-DJFxVmvv.mjs +0 -624
  80. package/dist/edit-qp_2xtTZ.mjs +0 -242
  81. package/dist/edit.vue_vue_type_script_setup_true_lang-CekLyjO-.mjs +0 -322
  82. package/dist/edit.vue_vue_type_style_index_0_scoped_198fdb2f_lang-l0sNRNKZ.mjs +0 -1
  83. package/dist/index-Bf5U4Ucl.mjs +0 -369
  84. package/dist/index-Bh2imlN_.mjs +0 -149
  85. package/dist/index-CHNiaFZk.mjs +0 -291
  86. package/dist/index-CmlP_Rro.mjs +0 -332
  87. package/dist/index-Cqw_E8lr.mjs +0 -1269
  88. package/dist/index-DA_FS24d.mjs +0 -146
  89. package/dist/index-DKmGNvQl.mjs +0 -370
  90. package/dist/index-DLxpE9s5.mjs +0 -305
  91. package/dist/index-DWaL87j5.mjs +0 -89
  92. package/dist/index-jOnQLJaB.mjs +0 -416
  93. package/dist/index-pyyjj1xa.mjs +0 -187
  94. package/dist/index.vue_vue_type_script_setup_true_lang-C_itMCoU.mjs +0 -37
  95. package/dts/api/asset/asset-asset/index.d.ts +0 -20
  96. package/dts/api/asset/asset-asset/types.d.ts +0 -93
  97. package/dts/api/asset/asset-service-appt-member/index.d.ts +0 -20
  98. package/dts/api/asset/asset-service-appt-member/types.d.ts +0 -71
  99. package/dts/api/asset/asset-service-appt-record/index.d.ts +0 -20
  100. package/dts/api/asset/asset-service-appt-record/types.d.ts +0 -98
  101. package/dts/api/asset/asset-site/index.d.ts +0 -15
  102. package/dts/api/asset/asset-site/types.d.ts +0 -81
  103. package/dts/api/asset/asset-site-service/index.d.ts +0 -14
  104. package/dts/api/asset/asset-site-service/types.d.ts +0 -80
  105. package/dts/api/dict.d.ts +0 -22
  106. package/dts/api/index.d.ts +0 -14
  107. package/dts/api/org/union-org/index.d.ts +0 -14
  108. package/dts/api/org/union-org/types.d.ts +0 -49
  109. package/dts/components/EnumRadio/index.vue.d.ts +0 -18
  110. package/dts/components/EnumSelect/index.vue.d.ts +0 -18
  111. package/dts/constant.d.ts +0 -16
  112. package/dts/index.d.ts +0 -4
  113. package/dts/lang/asset/en.d.ts +0 -2
  114. package/dts/lang/asset/zh-cn.d.ts +0 -91
  115. package/dts/lang/index.d.ts +0 -1
  116. package/dts/main.d.ts +0 -4
  117. package/dts/permission.d.ts +0 -1
  118. package/dts/router/page.d.ts +0 -2
  119. package/dts/src/api/org/union-org/index.d.ts +0 -14
  120. package/dts/src/api/org/union-org/types.d.ts +0 -49
  121. package/dts/src/components/EnumRadio/index.vue.d.ts +0 -18
  122. package/dts/src/components/EnumSelect/index.vue.d.ts +0 -18
  123. package/dts/src/views/asset/asset-service-appt-member/edit.vue.d.ts +0 -22
  124. package/dts/src/views/asset/asset-service-appt-record/edit.vue.d.ts +0 -22
  125. package/dts/utils/common.d.ts +0 -51
  126. package/dts/utils/index.d.ts +0 -24
  127. package/dts/views/asset/asset-service-appt-member/edit.vue.d.ts +0 -22
  128. package/dts/views/asset/asset-service-appt-record/edit.vue.d.ts +0 -22
  129. package/dts/views/asset/asset-site-service/edit.vue.d.ts +0 -22
  130. /package/dts/{views/asset/asset-asset → src/components/deptPeopleSelect}/index.vue.d.ts +0 -0
  131. /package/dts/{components → src/components copy}/Upload/MultiUpload.vue.d.ts +0 -0
  132. /package/dts/src/{views/asset/asset-service-appt-member → components copy/deptPeopleSelect}/index.vue.d.ts +0 -0
  133. /package/dts/{views/asset/asset-service-appt-record → src/views/asset/asset-asset/info}/index.vue.d.ts +0 -0
  134. /package/dts/{views/asset/asset-service-appt-member → src/views/asset/asset-asset-detail}/index.vue.d.ts +0 -0
  135. /package/dts/{views/asset/asset-service-appt-record/info → src/views/asset/asset-depreciation-record}/index.vue.d.ts +0 -0
  136. /package/dts/{views/asset/asset-site-service → src/views/asset/asset-depreciation-record/info}/index.vue.d.ts +0 -0
  137. /package/dts/{views/asset/asset-site → src/views/asset/asset-inventory-record}/index.vue.d.ts +0 -0
  138. /package/dts/{App.vue.d.ts → src/views/asset/asset-inventory-record/index/345/244/207/344/273/275.vue.d.ts"} +0 -0
  139. /package/dts/{views/asset/asset-site → src/views/asset/asset-inventory-record}/info/index.vue.d.ts +0 -0
@@ -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-BtIlu38i.mjs";
2
+ export {
3
+ f as default
4
+ };