xyvcard-asset 0.0.23 → 0.0.24
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.
- package/dist/index-Di8LMzmd.mjs +335 -0
- package/dist/index.mjs +2 -2
- package/package.json +1 -1
- package/dist/index-0_FQdBCk.mjs +0 -322
@@ -0,0 +1,335 @@
|
|
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";
|
2
|
+
import { useUserStore as g, clearEmpty as y, request as h, useTableHooks as ee, routerUtil as te } from "jmash-core";
|
3
|
+
import { useI18n as ae } from "vue-i18n";
|
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";
|
7
|
+
class ie {
|
8
|
+
getKey(n) {
|
9
|
+
return {
|
10
|
+
recordId: n.recordId
|
11
|
+
};
|
12
|
+
}
|
13
|
+
// 查询翻页信息资产折旧记录
|
14
|
+
findPage(n) {
|
15
|
+
const m = g().user.tenant;
|
16
|
+
return y(n), h({
|
17
|
+
url: "/v1/asset/depreciation_record/page/" + m,
|
18
|
+
method: "get",
|
19
|
+
params: n
|
20
|
+
});
|
21
|
+
}
|
22
|
+
// 查询列表信息资产折旧记录
|
23
|
+
findList(n) {
|
24
|
+
const m = g().user.tenant;
|
25
|
+
return y(n), h({
|
26
|
+
url: "/v1/asset/depreciation_record/list/" + m,
|
27
|
+
method: "get",
|
28
|
+
params: n
|
29
|
+
});
|
30
|
+
}
|
31
|
+
// 查询资产折旧记录
|
32
|
+
findById(n) {
|
33
|
+
const m = g().user.tenant;
|
34
|
+
return y(n), h({
|
35
|
+
url: "/v1/asset/depreciation_record/id/" + m + "/" + n.recordId,
|
36
|
+
method: "get"
|
37
|
+
});
|
38
|
+
}
|
39
|
+
// 导出资产折旧记录Excel文件
|
40
|
+
exportExcel(n) {
|
41
|
+
const m = g().user.tenant;
|
42
|
+
y(n);
|
43
|
+
const v = ne.stringify(n, {
|
44
|
+
arrayFormat: "brackets",
|
45
|
+
allowDots: !0
|
46
|
+
});
|
47
|
+
return h({
|
48
|
+
url: "/v1/asset/depreciation_record/" + m + "/depreciation_records.xlsx?" + v,
|
49
|
+
method: "get",
|
50
|
+
responseType: "blob"
|
51
|
+
});
|
52
|
+
}
|
53
|
+
}
|
54
|
+
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
|
+
class: "search-container",
|
56
|
+
style: { border: "none" }
|
57
|
+
}, Ve = /* @__PURE__ */ G({
|
58
|
+
__name: "index",
|
59
|
+
setup(w) {
|
60
|
+
const { t: n } = ae(), m = le(), v = oe();
|
61
|
+
P.assetSortDictEnum.useEnumValues();
|
62
|
+
const s = I({
|
63
|
+
curPage: 1,
|
64
|
+
pageSize: 10,
|
65
|
+
assetId: v.query.assetId
|
66
|
+
}), r = I({}), Y = J(() => {
|
67
|
+
const t = r.value.oldMoney ?? 0, a = parseFloat(
|
68
|
+
r.value.totalDepreciation ?? "0"
|
69
|
+
), f = t - a;
|
70
|
+
return parseFloat(f.toFixed(2));
|
71
|
+
}), {
|
72
|
+
tableHooks: z,
|
73
|
+
multipleTableRef: E,
|
74
|
+
queryFormRef: B,
|
75
|
+
listLoading: M,
|
76
|
+
tableData: $,
|
77
|
+
total: b
|
78
|
+
} = ee(n, C, s);
|
79
|
+
let q = I([
|
80
|
+
// 折旧年月
|
81
|
+
{
|
82
|
+
label: "depreciationRecord.year",
|
83
|
+
prop: "years",
|
84
|
+
sortable: "custom",
|
85
|
+
isColumn: !0
|
86
|
+
},
|
87
|
+
// 月折旧额
|
88
|
+
{
|
89
|
+
label: "depreciationRecord.depreciationMoney",
|
90
|
+
prop: "depreciationMoney",
|
91
|
+
sortable: "custom",
|
92
|
+
isColumn: !0
|
93
|
+
}
|
94
|
+
]);
|
95
|
+
function F(t) {
|
96
|
+
s.value.year = re(t).getYear();
|
97
|
+
}
|
98
|
+
function L() {
|
99
|
+
te.closeTagView(v.fullPath, m, !1);
|
100
|
+
}
|
101
|
+
O(() => {
|
102
|
+
const t = v.query.assetId;
|
103
|
+
t ? (se.findById({ assetId: t }).then(({ data: a }) => {
|
104
|
+
r.value = a;
|
105
|
+
}), k({ assetId: t })) : $.value = [];
|
106
|
+
});
|
107
|
+
function k(t) {
|
108
|
+
C.findPage({ ...t }).then(({ data: { results: a, curPage: f, pageSize: D, totalSize: R } }) => {
|
109
|
+
a && ($.value = a, s.value.curPage = f, s.value.pageSize = D, b.value = R);
|
110
|
+
});
|
111
|
+
}
|
112
|
+
function T() {
|
113
|
+
k({ ...s.value });
|
114
|
+
}
|
115
|
+
function U() {
|
116
|
+
s.value.selectYear = "", k({
|
117
|
+
curPage: 1,
|
118
|
+
pageSize: 10,
|
119
|
+
assetId: v.query.assetId
|
120
|
+
});
|
121
|
+
}
|
122
|
+
return (t, a) => {
|
123
|
+
const f = d("el-button"), D = d("el-col"), R = d("el-row"), c = d("el-descriptions-item"), j = d("el-descriptions"), A = d("el-date-picker"), S = d("el-form-item"), N = d("el-form"), H = d("jmash-table"), Q = d("jmash-pagination"), K = d("el-card");
|
124
|
+
return V(), W("div", ue, [
|
125
|
+
o(K, {
|
126
|
+
shadow: "never",
|
127
|
+
class: "table-container"
|
128
|
+
}, {
|
129
|
+
header: e(() => [
|
130
|
+
o(R, { justify: "space-between" }, {
|
131
|
+
default: e(() => [
|
132
|
+
o(D, { span: 12 }, {
|
133
|
+
default: e(() => [
|
134
|
+
o(f, {
|
135
|
+
type: "primary",
|
136
|
+
onClick: L
|
137
|
+
}, {
|
138
|
+
default: e(() => [
|
139
|
+
i(l(t.$t("common.back")), 1)
|
140
|
+
]),
|
141
|
+
_: 1
|
142
|
+
})
|
143
|
+
]),
|
144
|
+
_: 1
|
145
|
+
})
|
146
|
+
]),
|
147
|
+
_: 1
|
148
|
+
})
|
149
|
+
]),
|
150
|
+
footer: e(() => [
|
151
|
+
_(b) > 0 ? (V(), X(Q, {
|
152
|
+
key: 0,
|
153
|
+
total: _(b),
|
154
|
+
"onUpdate:total": a[3] || (a[3] = (p) => Z(b) ? b.value = p : null),
|
155
|
+
"current-page": s.value.curPage,
|
156
|
+
"onUpdate:currentPage": a[4] || (a[4] = (p) => s.value.curPage = p),
|
157
|
+
"page-size": s.value.pageSize,
|
158
|
+
"onUpdate:pageSize": a[5] || (a[5] = (p) => s.value.pageSize = p),
|
159
|
+
onPagination: a[6] || (a[6] = (p) => _(z).getList())
|
160
|
+
}, null, 8, ["total", "current-page", "page-size"])) : x("", !0)
|
161
|
+
]),
|
162
|
+
default: e(() => [
|
163
|
+
a[7] || (a[7] = u("div", { class: "title-content" }, "资产信息", -1)),
|
164
|
+
o(j, {
|
165
|
+
class: "margin-top",
|
166
|
+
column: 2,
|
167
|
+
border: ""
|
168
|
+
}, {
|
169
|
+
default: e(() => [
|
170
|
+
o(c, null, {
|
171
|
+
label: e(() => [
|
172
|
+
u("div", de, l(t.$t("asset.name")), 1)
|
173
|
+
]),
|
174
|
+
default: e(() => [
|
175
|
+
i(" " + l(r.value.name), 1)
|
176
|
+
]),
|
177
|
+
_: 1
|
178
|
+
}),
|
179
|
+
o(c, null, {
|
180
|
+
label: e(() => [
|
181
|
+
u("div", ce, l(t.$t("asset.code")), 1)
|
182
|
+
]),
|
183
|
+
default: e(() => [
|
184
|
+
i(" " + l(r.value.code), 1)
|
185
|
+
]),
|
186
|
+
_: 1
|
187
|
+
}),
|
188
|
+
o(c, null, {
|
189
|
+
label: e(() => [
|
190
|
+
u("div", pe, l(t.$t("asset.number")) + "/" + l(t.$t("asset.unit")), 1)
|
191
|
+
]),
|
192
|
+
default: e(() => [
|
193
|
+
i(" " + l(r.value.number) + "/" + l(r.value.unit), 1)
|
194
|
+
]),
|
195
|
+
_: 1
|
196
|
+
}),
|
197
|
+
o(c, null, {
|
198
|
+
label: e(() => [
|
199
|
+
u("div", me, l(t.$t("asset.buyDate")), 1)
|
200
|
+
]),
|
201
|
+
default: e(() => [
|
202
|
+
i(" " + l(r.value.buyDate), 1)
|
203
|
+
]),
|
204
|
+
_: 1
|
205
|
+
}),
|
206
|
+
o(c, null, {
|
207
|
+
label: e(() => [
|
208
|
+
u("div", fe, l(t.$t("asset.assetSort")), 1)
|
209
|
+
]),
|
210
|
+
default: e(() => [
|
211
|
+
i(" " + l(_(P).assetSortDictEnum.getEnumValue(
|
212
|
+
r.value.assetSort
|
213
|
+
)), 1)
|
214
|
+
]),
|
215
|
+
_: 1
|
216
|
+
}),
|
217
|
+
o(c, null, {
|
218
|
+
label: e(() => [
|
219
|
+
u("div", _e, l(t.$t("asset.useLimit")), 1)
|
220
|
+
]),
|
221
|
+
default: e(() => [
|
222
|
+
i(" " + l(r.value.useLimit), 1)
|
223
|
+
]),
|
224
|
+
_: 1
|
225
|
+
}),
|
226
|
+
o(c, null, {
|
227
|
+
label: e(() => [
|
228
|
+
u("div", ve, l(t.$t("asset.oldMoney")), 1)
|
229
|
+
]),
|
230
|
+
default: e(() => [
|
231
|
+
i(" " + l(r.value.oldMoney), 1)
|
232
|
+
]),
|
233
|
+
_: 1
|
234
|
+
}),
|
235
|
+
o(c, null, {
|
236
|
+
label: e(() => [
|
237
|
+
u("div", be, l(t.$t("asset.netSalvage")), 1)
|
238
|
+
]),
|
239
|
+
default: e(() => [
|
240
|
+
i(" " + l(r.value.netSalvage), 1)
|
241
|
+
]),
|
242
|
+
_: 1
|
243
|
+
}),
|
244
|
+
o(c, null, {
|
245
|
+
label: e(() => [
|
246
|
+
u("div", ge, l(t.$t("depreciationRecord.netAssetValue")), 1)
|
247
|
+
]),
|
248
|
+
default: e(() => [
|
249
|
+
i(" " + l(Y.value), 1)
|
250
|
+
]),
|
251
|
+
_: 1
|
252
|
+
}),
|
253
|
+
o(c, null, {
|
254
|
+
label: e(() => [
|
255
|
+
u("div", ye, l(t.$t("depreciationRecord.totalDepreciation")), 1)
|
256
|
+
]),
|
257
|
+
default: e(() => [
|
258
|
+
i(" " + l(r.value.totalDepreciation), 1)
|
259
|
+
]),
|
260
|
+
_: 1
|
261
|
+
})
|
262
|
+
]),
|
263
|
+
_: 1
|
264
|
+
}),
|
265
|
+
a[8] || (a[8] = u("div", { class: "title-content" }, "折旧记录", -1)),
|
266
|
+
u("div", he, [
|
267
|
+
o(N, {
|
268
|
+
ref_key: "queryFormRef",
|
269
|
+
ref: B,
|
270
|
+
model: s.value,
|
271
|
+
inline: !0
|
272
|
+
}, {
|
273
|
+
default: e(() => [
|
274
|
+
o(S, {
|
275
|
+
label: t.$t("depreciationRecord.years"),
|
276
|
+
prop: "selectYear"
|
277
|
+
}, {
|
278
|
+
default: e(() => [
|
279
|
+
o(A, {
|
280
|
+
modelValue: s.value.selectYear,
|
281
|
+
"onUpdate:modelValue": a[0] || (a[0] = (p) => s.value.selectYear = p),
|
282
|
+
type: "year",
|
283
|
+
format: "YYYY",
|
284
|
+
placeholder: t.$t("depreciationRecord.yearPlaceholder"),
|
285
|
+
onChange: F
|
286
|
+
}, null, 8, ["modelValue", "placeholder"])
|
287
|
+
]),
|
288
|
+
_: 1
|
289
|
+
}, 8, ["label"]),
|
290
|
+
o(S, { class: "search-btn" }, {
|
291
|
+
default: e(() => [
|
292
|
+
o(f, {
|
293
|
+
type: "primary",
|
294
|
+
onClick: a[1] || (a[1] = (p) => T())
|
295
|
+
}, {
|
296
|
+
default: e(() => [
|
297
|
+
i(l(t.$t("common.search")), 1)
|
298
|
+
]),
|
299
|
+
_: 1
|
300
|
+
}),
|
301
|
+
o(f, {
|
302
|
+
onClick: a[2] || (a[2] = (p) => U())
|
303
|
+
}, {
|
304
|
+
default: e(() => [
|
305
|
+
i(l(t.$t("common.reset")), 1)
|
306
|
+
]),
|
307
|
+
_: 1
|
308
|
+
})
|
309
|
+
]),
|
310
|
+
_: 1
|
311
|
+
})
|
312
|
+
]),
|
313
|
+
_: 1
|
314
|
+
}, 8, ["model"])
|
315
|
+
]),
|
316
|
+
o(H, {
|
317
|
+
ref_key: "multipleTableRef",
|
318
|
+
ref: E,
|
319
|
+
class: "table-top",
|
320
|
+
"row-key": "assetId",
|
321
|
+
"is-selection": !1,
|
322
|
+
"list-loading": _(M),
|
323
|
+
data: _($),
|
324
|
+
"table-label": _(q)
|
325
|
+
}, null, 8, ["list-loading", "data", "table-label"])
|
326
|
+
]),
|
327
|
+
_: 1
|
328
|
+
})
|
329
|
+
]);
|
330
|
+
};
|
331
|
+
}
|
332
|
+
});
|
333
|
+
export {
|
334
|
+
Ve as default
|
335
|
+
};
|
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-
|
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-Di8LMzmd.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-
|
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-Di8LMzmd.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 = {
|
2829
2829
|
install(e) {
|
2830
2830
|
e.use(In), Ss(Cn, 7), Ms(Rs), Ws(Ds);
|
2831
2831
|
}
|
package/package.json
CHANGED
package/dist/index-0_FQdBCk.mjs
DELETED
@@ -1,322 +0,0 @@
|
|
1
|
-
import { defineComponent as H, ref as I, computed as Q, onBeforeMount as K, resolveComponent as u, openBlock as S, createElementBlock as G, createVNode as o, withCtx as e, createTextVNode as r, toDisplayString as a, unref as m, createBlock as J, isRef as O, createCommentVNode as W, createElementVNode as i } from "vue";
|
2
|
-
import { useUserStore as y, clearEmpty as h, request as $, useTableHooks as X, routerUtil as Z } from "jmash-core";
|
3
|
-
import { useI18n as x } from "vue-i18n";
|
4
|
-
import { useRouter as ee, useRoute as te } from "vue-router";
|
5
|
-
import { q as ae, D as V, a as le } from "./index-eassrLOa.mjs";
|
6
|
-
import { c as oe } from "./common-CshrwPyx.mjs";
|
7
|
-
class se {
|
8
|
-
getKey(s) {
|
9
|
-
return {
|
10
|
-
recordId: s.recordId
|
11
|
-
};
|
12
|
-
}
|
13
|
-
// 查询翻页信息资产折旧记录
|
14
|
-
findPage(s) {
|
15
|
-
const _ = y().user.tenant;
|
16
|
-
return h(s), $({
|
17
|
-
url: "/v1/asset/depreciation_record/page/" + _,
|
18
|
-
method: "get",
|
19
|
-
params: s
|
20
|
-
});
|
21
|
-
}
|
22
|
-
// 查询列表信息资产折旧记录
|
23
|
-
findList(s) {
|
24
|
-
const _ = y().user.tenant;
|
25
|
-
return h(s), $({
|
26
|
-
url: "/v1/asset/depreciation_record/list/" + _,
|
27
|
-
method: "get",
|
28
|
-
params: s
|
29
|
-
});
|
30
|
-
}
|
31
|
-
// 查询资产折旧记录
|
32
|
-
findById(s) {
|
33
|
-
const _ = y().user.tenant;
|
34
|
-
return h(s), $({
|
35
|
-
url: "/v1/asset/depreciation_record/id/" + _ + "/" + s.recordId,
|
36
|
-
method: "get"
|
37
|
-
});
|
38
|
-
}
|
39
|
-
// 导出资产折旧记录Excel文件
|
40
|
-
exportExcel(s) {
|
41
|
-
const _ = y().user.tenant;
|
42
|
-
h(s);
|
43
|
-
const f = ae.stringify(s, {
|
44
|
-
arrayFormat: "brackets",
|
45
|
-
allowDots: !0
|
46
|
-
});
|
47
|
-
return $({
|
48
|
-
url: "/v1/asset/depreciation_record/" + _ + "/depreciation_records.xlsx?" + f,
|
49
|
-
method: "get",
|
50
|
-
responseType: "blob"
|
51
|
-
});
|
52
|
-
}
|
53
|
-
}
|
54
|
-
const C = new se(), ne = { class: "app-container" }, re = { class: "cell-item" }, ie = { class: "cell-item" }, de = { class: "cell-item" }, ue = { class: "cell-item" }, ce = { class: "cell-item" }, pe = { class: "cell-item" }, me = { class: "cell-item" }, _e = { class: "cell-item" }, fe = { class: "cell-item" }, ve = { class: "cell-item" }, be = {
|
55
|
-
class: "search-container",
|
56
|
-
style: { border: "none" }
|
57
|
-
}, Ie = /* @__PURE__ */ H({
|
58
|
-
__name: "index",
|
59
|
-
setup(P) {
|
60
|
-
const { t: s } = x(), _ = ee(), f = te();
|
61
|
-
V.assetSortDictEnum.useEnumValues();
|
62
|
-
const d = I({
|
63
|
-
curPage: 1,
|
64
|
-
pageSize: 10,
|
65
|
-
assetId: f.query.assetId
|
66
|
-
}), n = I({}), w = Q(() => {
|
67
|
-
const t = n.value.oldMoney ?? 0, l = parseFloat(
|
68
|
-
n.value.totalDepreciation ?? "0"
|
69
|
-
), v = t - l;
|
70
|
-
return parseFloat(v.toFixed(2));
|
71
|
-
}), {
|
72
|
-
tableHooks: k,
|
73
|
-
multipleTableRef: E,
|
74
|
-
queryFormRef: q,
|
75
|
-
listLoading: z,
|
76
|
-
tableData: g,
|
77
|
-
total: b
|
78
|
-
} = X(s, C, d);
|
79
|
-
let B = I([
|
80
|
-
// 折旧年月
|
81
|
-
{
|
82
|
-
label: "depreciationRecord.year",
|
83
|
-
prop: "years",
|
84
|
-
sortable: "custom",
|
85
|
-
isColumn: !0
|
86
|
-
},
|
87
|
-
// 月折旧额
|
88
|
-
{
|
89
|
-
label: "depreciationRecord.depreciationMoney",
|
90
|
-
prop: "depreciationMoney",
|
91
|
-
sortable: "custom",
|
92
|
-
isColumn: !0
|
93
|
-
}
|
94
|
-
]);
|
95
|
-
function M(t) {
|
96
|
-
d.value.year = oe(t).getYear();
|
97
|
-
}
|
98
|
-
function F() {
|
99
|
-
Z.closeTagView(f.fullPath, _, !1);
|
100
|
-
}
|
101
|
-
return K(() => {
|
102
|
-
f.query.assetId ? (le.findById({ assetId: f.query.assetId }).then(({ data: t }) => {
|
103
|
-
n.value = t;
|
104
|
-
}), C.findPage({
|
105
|
-
assetId: f.query.assetId
|
106
|
-
}).then(({ data: { results: t, curPage: l, pageSize: v, totalSize: D } }) => {
|
107
|
-
t && (g.value = t, d.value.curPage = l, d.value.pageSize = v, b.value = D);
|
108
|
-
})) : g.value = [];
|
109
|
-
}), (t, l) => {
|
110
|
-
const v = u("el-button"), D = u("el-col"), L = u("el-row"), c = u("el-descriptions-item"), T = u("el-descriptions"), U = u("el-date-picker"), R = u("el-form-item"), j = u("el-form"), A = u("jmash-table"), N = u("jmash-pagination"), Y = u("el-card");
|
111
|
-
return S(), G("div", ne, [
|
112
|
-
o(Y, {
|
113
|
-
shadow: "never",
|
114
|
-
class: "table-container"
|
115
|
-
}, {
|
116
|
-
header: e(() => [
|
117
|
-
o(L, { justify: "space-between" }, {
|
118
|
-
default: e(() => [
|
119
|
-
o(D, { span: 12 }, {
|
120
|
-
default: e(() => [
|
121
|
-
o(v, {
|
122
|
-
type: "primary",
|
123
|
-
onClick: F
|
124
|
-
}, {
|
125
|
-
default: e(() => [
|
126
|
-
r(a(t.$t("common.back")), 1)
|
127
|
-
]),
|
128
|
-
_: 1
|
129
|
-
})
|
130
|
-
]),
|
131
|
-
_: 1
|
132
|
-
})
|
133
|
-
]),
|
134
|
-
_: 1
|
135
|
-
})
|
136
|
-
]),
|
137
|
-
footer: e(() => [
|
138
|
-
m(b) > 0 ? (S(), J(N, {
|
139
|
-
key: 0,
|
140
|
-
total: m(b),
|
141
|
-
"onUpdate:total": l[3] || (l[3] = (p) => O(b) ? b.value = p : null),
|
142
|
-
"current-page": d.value.curPage,
|
143
|
-
"onUpdate:currentPage": l[4] || (l[4] = (p) => d.value.curPage = p),
|
144
|
-
"page-size": d.value.pageSize,
|
145
|
-
"onUpdate:pageSize": l[5] || (l[5] = (p) => d.value.pageSize = p),
|
146
|
-
onPagination: l[6] || (l[6] = (p) => m(k).getList())
|
147
|
-
}, null, 8, ["total", "current-page", "page-size"])) : W("", !0)
|
148
|
-
]),
|
149
|
-
default: e(() => [
|
150
|
-
l[7] || (l[7] = i("div", { class: "title-content" }, "资产信息", -1)),
|
151
|
-
o(T, {
|
152
|
-
class: "margin-top",
|
153
|
-
column: 2,
|
154
|
-
border: ""
|
155
|
-
}, {
|
156
|
-
default: e(() => [
|
157
|
-
o(c, null, {
|
158
|
-
label: e(() => [
|
159
|
-
i("div", re, a(t.$t("asset.name")), 1)
|
160
|
-
]),
|
161
|
-
default: e(() => [
|
162
|
-
r(" " + a(n.value.name), 1)
|
163
|
-
]),
|
164
|
-
_: 1
|
165
|
-
}),
|
166
|
-
o(c, null, {
|
167
|
-
label: e(() => [
|
168
|
-
i("div", ie, a(t.$t("asset.code")), 1)
|
169
|
-
]),
|
170
|
-
default: e(() => [
|
171
|
-
r(" " + a(n.value.code), 1)
|
172
|
-
]),
|
173
|
-
_: 1
|
174
|
-
}),
|
175
|
-
o(c, null, {
|
176
|
-
label: e(() => [
|
177
|
-
i("div", de, a(t.$t("asset.number")) + "/" + a(t.$t("asset.unit")), 1)
|
178
|
-
]),
|
179
|
-
default: e(() => [
|
180
|
-
r(" " + a(n.value.number) + "/" + a(n.value.unit), 1)
|
181
|
-
]),
|
182
|
-
_: 1
|
183
|
-
}),
|
184
|
-
o(c, null, {
|
185
|
-
label: e(() => [
|
186
|
-
i("div", ue, a(t.$t("asset.buyDate")), 1)
|
187
|
-
]),
|
188
|
-
default: e(() => [
|
189
|
-
r(" " + a(n.value.buyDate), 1)
|
190
|
-
]),
|
191
|
-
_: 1
|
192
|
-
}),
|
193
|
-
o(c, null, {
|
194
|
-
label: e(() => [
|
195
|
-
i("div", ce, a(t.$t("asset.assetSort")), 1)
|
196
|
-
]),
|
197
|
-
default: e(() => [
|
198
|
-
r(" " + a(m(V).assetSortDictEnum.getEnumValue(
|
199
|
-
n.value.assetSort
|
200
|
-
)), 1)
|
201
|
-
]),
|
202
|
-
_: 1
|
203
|
-
}),
|
204
|
-
o(c, null, {
|
205
|
-
label: e(() => [
|
206
|
-
i("div", pe, a(t.$t("asset.useLimit")), 1)
|
207
|
-
]),
|
208
|
-
default: e(() => [
|
209
|
-
r(" " + a(n.value.useLimit), 1)
|
210
|
-
]),
|
211
|
-
_: 1
|
212
|
-
}),
|
213
|
-
o(c, null, {
|
214
|
-
label: e(() => [
|
215
|
-
i("div", me, a(t.$t("asset.oldMoney")), 1)
|
216
|
-
]),
|
217
|
-
default: e(() => [
|
218
|
-
r(" " + a(n.value.oldMoney), 1)
|
219
|
-
]),
|
220
|
-
_: 1
|
221
|
-
}),
|
222
|
-
o(c, null, {
|
223
|
-
label: e(() => [
|
224
|
-
i("div", _e, a(t.$t("asset.netSalvage")), 1)
|
225
|
-
]),
|
226
|
-
default: e(() => [
|
227
|
-
r(" " + a(n.value.netSalvage), 1)
|
228
|
-
]),
|
229
|
-
_: 1
|
230
|
-
}),
|
231
|
-
o(c, null, {
|
232
|
-
label: e(() => [
|
233
|
-
i("div", fe, a(t.$t("depreciationRecord.netAssetValue")), 1)
|
234
|
-
]),
|
235
|
-
default: e(() => [
|
236
|
-
r(" " + a(w.value), 1)
|
237
|
-
]),
|
238
|
-
_: 1
|
239
|
-
}),
|
240
|
-
o(c, null, {
|
241
|
-
label: e(() => [
|
242
|
-
i("div", ve, a(t.$t("depreciationRecord.totalDepreciation")), 1)
|
243
|
-
]),
|
244
|
-
default: e(() => [
|
245
|
-
r(" " + a(n.value.totalDepreciation), 1)
|
246
|
-
]),
|
247
|
-
_: 1
|
248
|
-
})
|
249
|
-
]),
|
250
|
-
_: 1
|
251
|
-
}),
|
252
|
-
l[8] || (l[8] = i("div", { class: "title-content" }, "折旧记录", -1)),
|
253
|
-
i("div", be, [
|
254
|
-
o(j, {
|
255
|
-
ref_key: "queryFormRef",
|
256
|
-
ref: q,
|
257
|
-
model: d.value,
|
258
|
-
inline: !0
|
259
|
-
}, {
|
260
|
-
default: e(() => [
|
261
|
-
o(R, {
|
262
|
-
label: t.$t("depreciationRecord.years"),
|
263
|
-
prop: "selectYear"
|
264
|
-
}, {
|
265
|
-
default: e(() => [
|
266
|
-
o(U, {
|
267
|
-
modelValue: d.value.selectYear,
|
268
|
-
"onUpdate:modelValue": l[0] || (l[0] = (p) => d.value.selectYear = p),
|
269
|
-
disabled: m(g).length === 0,
|
270
|
-
type: "year",
|
271
|
-
placeholder: t.$t("depreciationRecord.yearPlaceholder"),
|
272
|
-
onChange: M
|
273
|
-
}, null, 8, ["modelValue", "disabled", "placeholder"])
|
274
|
-
]),
|
275
|
-
_: 1
|
276
|
-
}, 8, ["label"]),
|
277
|
-
o(R, { class: "search-btn" }, {
|
278
|
-
default: e(() => [
|
279
|
-
o(v, {
|
280
|
-
type: "primary",
|
281
|
-
onClick: l[1] || (l[1] = (p) => m(k).handleQuery())
|
282
|
-
}, {
|
283
|
-
default: e(() => [
|
284
|
-
r(a(t.$t("common.search")), 1)
|
285
|
-
]),
|
286
|
-
_: 1
|
287
|
-
}),
|
288
|
-
o(v, {
|
289
|
-
onClick: l[2] || (l[2] = (p) => m(k).resetQuery())
|
290
|
-
}, {
|
291
|
-
default: e(() => [
|
292
|
-
r(a(t.$t("common.reset")), 1)
|
293
|
-
]),
|
294
|
-
_: 1
|
295
|
-
})
|
296
|
-
]),
|
297
|
-
_: 1
|
298
|
-
})
|
299
|
-
]),
|
300
|
-
_: 1
|
301
|
-
}, 8, ["model"])
|
302
|
-
]),
|
303
|
-
o(A, {
|
304
|
-
ref_key: "multipleTableRef",
|
305
|
-
ref: E,
|
306
|
-
class: "table-top",
|
307
|
-
"row-key": "assetId",
|
308
|
-
"is-selection": !1,
|
309
|
-
"list-loading": m(z),
|
310
|
-
data: m(g),
|
311
|
-
"table-label": m(B)
|
312
|
-
}, null, 8, ["list-loading", "data", "table-label"])
|
313
|
-
]),
|
314
|
-
_: 1
|
315
|
-
})
|
316
|
-
]);
|
317
|
-
};
|
318
|
-
}
|
319
|
-
});
|
320
|
-
export {
|
321
|
-
Ie as default
|
322
|
-
};
|