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,314 @@
1
+ import { defineComponent as K, ref as S, resolveComponent as r, resolveDirective as F, openBlock as c, createElementBlock as k, createElementVNode as y, createVNode as a, withCtx as o, unref as l, withKeys as V, createTextVNode as d, toDisplayString as u, withDirectives as g, createBlock as w, isRef as $, createCommentVNode as H } from "vue";
2
+ import { useTableHooks as M } from "jmash-core";
3
+ import { useI18n as x } from "vue-i18n";
4
+ import { D as R, a as G } from "./index-BK24yagy.mjs";
5
+ import { useRouter as J } from "vue-router";
6
+ const O = { class: "app-container" }, W = { class: "search-container" }, X = ["onClick"], ne = /* @__PURE__ */ K({
7
+ __name: "index",
8
+ setup(Y) {
9
+ const { t: C } = x(), D = J();
10
+ R.assetSortDictEnum.useEnumValues();
11
+ const s = S({}), {
12
+ tableHooks: i,
13
+ multipleTableRef: N,
14
+ queryFormRef: j,
15
+ listLoading: P,
16
+ tableData: E,
17
+ total: b
18
+ } = M(C, G, s);
19
+ let p = S([
20
+ // 资产名称
21
+ {
22
+ label: "depreciationRecord.name",
23
+ prop: "name",
24
+ sortable: "custom",
25
+ isColumn: !0
26
+ },
27
+ // 资产编号
28
+ {
29
+ label: "depreciationRecord.code",
30
+ prop: "code",
31
+ sortable: "custom",
32
+ isColumn: !0
33
+ },
34
+ // 数量及单位
35
+ {
36
+ label: "depreciationRecord.number",
37
+ prop: "number",
38
+ width: "120",
39
+ sortable: "custom",
40
+ isColumn: !0,
41
+ slotName: "number",
42
+ columnType: "slot"
43
+ },
44
+ // 购买日期
45
+ {
46
+ label: "depreciationRecord.buyDate",
47
+ prop: "buyDate",
48
+ width: "150",
49
+ sortable: "custom",
50
+ isColumn: !0
51
+ },
52
+ // 资产属性
53
+ {
54
+ label: "depreciationRecord.assetSort",
55
+ prop: "assetSort",
56
+ width: "150",
57
+ sortable: "custom",
58
+ isColumn: !0,
59
+ slotName: "assetSort",
60
+ columnType: "slot"
61
+ },
62
+ // 折旧年限
63
+ {
64
+ label: "depreciationRecord.useLimit",
65
+ prop: "useLimit",
66
+ width: "150",
67
+ sortable: "custom",
68
+ isColumn: !0
69
+ },
70
+ // 资产原值
71
+ {
72
+ label: "depreciationRecord.oldMoney",
73
+ prop: "oldMoney",
74
+ width: "120",
75
+ sortable: "custom",
76
+ isColumn: !0
77
+ },
78
+ // 预计净残值
79
+ {
80
+ label: "depreciationRecord.netSalvage",
81
+ prop: "netSalvage",
82
+ width: "120",
83
+ sortable: "custom",
84
+ isColumn: !0
85
+ },
86
+ // 累计折旧额
87
+ {
88
+ label: "depreciationRecord.totalDepreciation",
89
+ prop: "totalDepreciation",
90
+ width: "120",
91
+ sortable: "custom",
92
+ isColumn: !0
93
+ },
94
+ // 资产净值
95
+ {
96
+ label: "depreciationRecord.netAssetValue",
97
+ prop: "netAssetValue",
98
+ width: "120",
99
+ sortable: "custom",
100
+ isColumn: !0
101
+ },
102
+ {
103
+ label: "common.operate",
104
+ width: "80",
105
+ slotName: "operation",
106
+ columnType: "slot",
107
+ fixed: "right",
108
+ isColumn: !0
109
+ }
110
+ ]);
111
+ function T(n) {
112
+ i.selectionRows.value = n;
113
+ }
114
+ function I(n) {
115
+ D.push({
116
+ path: "/asset/asset-depreciation-record/depreciationInfo",
117
+ query: {
118
+ assetId: n.assetId
119
+ }
120
+ });
121
+ }
122
+ return i.getList(), (n, e) => {
123
+ const L = r("jmash-select"), _ = r("el-form-item"), m = r("el-col"), U = r("el-input"), f = r("el-button"), h = r("el-row"), z = r("el-form"), q = r("jmash-column-select"), Q = r("jmash-table"), A = r("jmash-pagination"), B = r("el-card"), v = F("hasPerm");
124
+ return c(), k("div", O, [
125
+ y("div", W, [
126
+ a(z, {
127
+ ref_key: "queryFormRef",
128
+ ref: j,
129
+ model: s.value,
130
+ inline: !0
131
+ }, {
132
+ default: o(() => [
133
+ a(h, null, {
134
+ default: o(() => [
135
+ a(m, { span: 6 }, {
136
+ default: o(() => [
137
+ a(_, {
138
+ label: n.$t("depreciationRecord.assetSort"),
139
+ prop: "assetSort"
140
+ }, {
141
+ default: o(() => [
142
+ a(L, {
143
+ modelValue: s.value.assetSort,
144
+ "onUpdate:modelValue": e[0] || (e[0] = (t) => s.value.assetSort = t),
145
+ placeholder: n.$t("depreciationRecord.assetSortPlaceholder"),
146
+ data: l(R).assetSortDictEnum.values,
147
+ onKeyup: e[1] || (e[1] = V((t) => l(i).handleQuery(), ["enter"]))
148
+ }, null, 8, ["modelValue", "placeholder", "data"])
149
+ ]),
150
+ _: 1
151
+ }, 8, ["label"])
152
+ ]),
153
+ _: 1
154
+ }),
155
+ a(m, { span: 6 }, {
156
+ default: o(() => [
157
+ a(_, {
158
+ label: n.$t("depreciationRecord.name"),
159
+ prop: "likeName"
160
+ }, {
161
+ default: o(() => [
162
+ a(U, {
163
+ modelValue: s.value.likeName,
164
+ "onUpdate:modelValue": e[2] || (e[2] = (t) => s.value.likeName = t),
165
+ placeholder: n.$t("depreciationRecord.namePlaceholder"),
166
+ onKeyup: e[3] || (e[3] = V((t) => l(i).handleQuery(), ["enter"]))
167
+ }, null, 8, ["modelValue", "placeholder"])
168
+ ]),
169
+ _: 1
170
+ }, 8, ["label"])
171
+ ]),
172
+ _: 1
173
+ }),
174
+ a(m, { span: 12 }, {
175
+ default: o(() => [
176
+ a(_, { class: "search-btn" }, {
177
+ default: o(() => [
178
+ a(f, {
179
+ type: "primary",
180
+ onClick: e[4] || (e[4] = (t) => l(i).handleQuery())
181
+ }, {
182
+ default: o(() => [
183
+ d(u(n.$t("common.search")), 1)
184
+ ]),
185
+ _: 1
186
+ }),
187
+ a(f, {
188
+ onClick: e[5] || (e[5] = (t) => l(i).resetQuery())
189
+ }, {
190
+ default: o(() => [
191
+ d(u(n.$t("common.reset")), 1)
192
+ ]),
193
+ _: 1
194
+ })
195
+ ]),
196
+ _: 1
197
+ })
198
+ ]),
199
+ _: 1
200
+ })
201
+ ]),
202
+ _: 1
203
+ })
204
+ ]),
205
+ _: 1
206
+ }, 8, ["model"])
207
+ ]),
208
+ a(B, {
209
+ shadow: "never",
210
+ class: "table-container"
211
+ }, {
212
+ header: o(() => [
213
+ a(h, {
214
+ justify: "space-between",
215
+ span: 20
216
+ }, {
217
+ default: o(() => [
218
+ a(m, { span: 12 }, {
219
+ default: o(() => [
220
+ g((c(), w(f, {
221
+ type: "primary",
222
+ onClick: e[6] || (e[6] = (t) => l(i).deleteRecords())
223
+ }, {
224
+ default: o(() => [
225
+ d(u(n.$t("common.batchDelete")), 1)
226
+ ]),
227
+ _: 1
228
+ })), [
229
+ [v, ["asset:depreciation_record:delete"]]
230
+ ])
231
+ ]),
232
+ _: 1
233
+ }),
234
+ a(m, {
235
+ span: 8,
236
+ align: "right"
237
+ }, {
238
+ default: o(() => [
239
+ g((c(), w(f, {
240
+ plain: "",
241
+ type: "primary",
242
+ onClick: e[7] || (e[7] = (t) => l(i).handleExport(l(C)("asset.depreciationRecord.name")))
243
+ }, {
244
+ default: o(() => [
245
+ d(u(n.$t("common.export")), 1)
246
+ ]),
247
+ _: 1
248
+ })), [
249
+ [v, ["asset:depreciation_record:export"]]
250
+ ]),
251
+ a(q, {
252
+ modelValue: l(p),
253
+ "onUpdate:modelValue": e[8] || (e[8] = (t) => $(p) ? p.value = t : p = t),
254
+ "label-name": "asset/asset-depreciation-record"
255
+ }, null, 8, ["modelValue"])
256
+ ]),
257
+ _: 1
258
+ })
259
+ ]),
260
+ _: 1
261
+ })
262
+ ]),
263
+ footer: o(() => [
264
+ l(b) > 0 ? (c(), w(A, {
265
+ key: 0,
266
+ total: l(b),
267
+ "onUpdate:total": e[9] || (e[9] = (t) => $(b) ? b.value = t : null),
268
+ "current-page": s.value.curPage,
269
+ "onUpdate:currentPage": e[10] || (e[10] = (t) => s.value.curPage = t),
270
+ "page-size": s.value.pageSize,
271
+ "onUpdate:pageSize": e[11] || (e[11] = (t) => s.value.pageSize = t),
272
+ onPagination: e[12] || (e[12] = (t) => l(i).getList())
273
+ }, null, 8, ["total", "current-page", "page-size"])) : H("", !0),
274
+ d("   ")
275
+ ]),
276
+ default: o(() => [
277
+ a(Q, {
278
+ ref_key: "multipleTableRef",
279
+ ref: N,
280
+ class: "table-top",
281
+ "row-key": "recordId",
282
+ "list-loading": l(P),
283
+ data: l(E),
284
+ "table-label": l(p),
285
+ onSelectionChange: T
286
+ }, {
287
+ number: o((t) => [
288
+ y("span", null, u(t.data.row.number) + "/" + u(t.data.row.unit), 1)
289
+ ]),
290
+ assetSort: o((t) => [
291
+ y("span", null, u(l(R).assetSortDictEnum.getEnumValue(t.data.row.assetSort)), 1)
292
+ ]),
293
+ operation: o((t) => [
294
+ g((c(), k("span", {
295
+ class: "el-button-color",
296
+ onClick: (Z) => I(t.data.row)
297
+ }, [
298
+ d(u(n.$t("common.view")), 1)
299
+ ], 8, X)), [
300
+ [v, ["asset:depreciation_record:view"]]
301
+ ])
302
+ ]),
303
+ _: 1
304
+ }, 8, ["list-loading", "data", "table-label"])
305
+ ]),
306
+ _: 1
307
+ })
308
+ ]);
309
+ };
310
+ }
311
+ });
312
+ export {
313
+ ne as default
314
+ };