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