xyvcard-asset 0.0.12 → 0.0.13
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/{edit-BWhOgMw-.mjs → edit-BD4l4cZV.mjs} +1 -1
- package/dist/{edit-CZujIURb.mjs → edit-BIE_CJlr.mjs} +1 -1
- package/dist/{edit-DPssVAky.mjs → edit-DR-WgdT5.mjs} +1 -1
- package/dist/{edit.vue_vue_type_script_setup_true_lang-6j8bVbef.mjs → edit.vue_vue_type_script_setup_true_lang-CmaI0KId.mjs} +110 -98
- package/dist/edit.vue_vue_type_script_setup_true_lang-DoD-08Fj.mjs +446 -0
- package/dist/{edit.vue_vue_type_script_setup_true_lang-CjH6sYw4.mjs → edit.vue_vue_type_script_setup_true_lang-Dv2cJTUD.mjs} +0 -1
- package/dist/{index-Bz6eEggE.mjs → index-Bqv9_BYL.mjs} +1 -1
- package/dist/{index-DIKzzLQ2.mjs → index-BxeGNuSx.mjs} +55 -45
- package/dist/{index-4vX1fgzo.mjs → index-BzUXtBGU.mjs} +111 -108
- package/dist/{index-BxfpD3CM.mjs → index-C9FfnHCZ.mjs} +1 -1
- package/dist/{index-CDYXKnyU.mjs → index-CHaJu5hs.mjs} +90 -80
- package/dist/{index-C1U7BVdL.mjs → index-CJhQRbHt.mjs} +1 -1
- package/dist/index-CuDcmifl.mjs +165 -0
- package/dist/index.mjs +10 -7
- package/dts/api/asset/asset-site-service/types.d.ts +5 -0
- package/dts/lang/asset/zh-cn.d.ts +3 -0
- package/dts/src/api/asset/asset-asset/index.d.ts +3 -1
- package/dts/src/api/asset/asset-asset/types.d.ts +23 -17
- package/dts/src/api/asset/asset-asset-detail/index.d.ts +10 -2
- package/dts/src/api/asset/asset-asset-detail/types.d.ts +22 -13
- package/dts/src/api/asset/asset-inventory-record/index.d.ts +7 -2
- package/dts/src/api/asset/asset-inventory-record/types.d.ts +1 -0
- package/dts/src/api/asset/asset-service-appt-member/index.d.ts +12 -1
- package/dts/src/api/asset/asset-service-appt-member/types.d.ts +44 -1
- package/dts/src/api/asset/asset-service-appt-record/types.d.ts +1 -1
- package/dts/src/api/asset/asset-site/index.d.ts +2 -1
- package/dts/src/api/asset/asset-site-service/index.d.ts +2 -1
- package/dts/src/components/EnumRadio/index.vue.d.ts +18 -0
- package/dts/src/components/EnumSelect/index.vue.d.ts +18 -0
- package/dts/src/components/Upload/ImageUpload.vue.d.ts +1 -1
- package/dts/src/index.d.ts +1 -1
- package/dts/src/lang/asset/zh-cn.d.ts +6 -38
- package/dts/src/router/page.d.ts +0 -2
- package/dts/src/views/asset/{asset-asset-detail → asset-service-appt-member}/edit.vue.d.ts +7 -5
- package/dts/tsconfig.tsbuildinfo +1 -1
- package/package.json +3 -3
- package/dist/edit.vue_vue_type_script_setup_true_lang-CrrY9V5d.mjs +0 -394
- package/dist/index-_uK0Hvab.mjs +0 -91
- package/dts/components/PeopleSelectAsset/index.vue.d.ts +0 -18
- package/dts/components/deptPeopleSelectAsset/index.vue.d.ts +0 -14
- package/dts/src/api/asset/asset-depreciation-record/index.d.ts +0 -11
- package/dts/src/api/asset/asset-depreciation-record/types.d.ts +0 -38
- package/dts/src/api/asset/text/index.d.ts +0 -0
- package/dts/src/api/asset/text/types.d.ts +0 -0
- package/dts/src/components/PeopleSelect/index.vue.d.ts +0 -18
- package/dts/src/components/deptPeopleSelect/index.vue.d.ts +0 -2
- package/dts/src/components copy/PeopleSelect/index.vue.d.ts +0 -18
- package/dts/src/components copy/PeopleSelect//345/244/207/344/273/275/index copy 2.vue.d.ts" +0 -34
- package/dts/src/components copy/PeopleSelect//345/244/207/344/273/275/index copy 22.vue.d.ts" +0 -18
- package/dts/src/components copy/PeopleSelect//345/244/207/344/273/275/index copy.vue.d.ts" +0 -34
- 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" +0 -34
- 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" +0 -18
- package/dts/src/components copy/PeopleSelect//345/244/207/344/273/275//345/217/214/351/200/211/346/213/251.vue.d.ts" +0 -42
- 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" +0 -34
- package/dts/src/components copy/Upload/ImageUpload.vue.d.ts +0 -38
- package/dts/src/components copy/Upload/MultiUpload.vue.d.ts +0 -24
- package/dts/src/views/asset/asset-asset-detail/index.vue.d.ts +0 -2
- package/dts/src/views/asset/asset-depreciation-record/index.vue.d.ts +0 -2
- package/dts/src/views/asset/asset-depreciation-record/info/index.vue.d.ts +0 -2
- package/dts/src/views/asset/asset-inventory-record/dialogSelect/index.vue.d.ts +0 -6
- package/dts/src/views/asset/asset-inventory-record/index/345/244/207/344/273/275.vue.d.ts +0 -2
- package/dts/src/views/asset/asset-inventory-record/info/index.vue.d.ts +0 -2
- package/dts/src/views/asset/asset-inventory-record/text/index copy.vue.d.ts +0 -2
- package/dts/src/views/asset/asset-inventory-record/text/index.vue.d.ts +0 -2
- package/dts/views/asset/asset-inventory-record/dialogSelect/index.vue.d.ts +0 -6
- package/dts/views/asset/asset-inventory-record/indexOld.vue.d.ts +0 -2
- package/dts/views/asset/asset-inventory-record/index/345/244/207/344/273/275.vue.d.ts +0 -2
- package/dts/views/asset/asset-inventory-record/text/index copy.vue.d.ts +0 -2
- package/dts/views/asset/asset-inventory-record/text/index.vue.d.ts +0 -2
- /package/dts/src/{components copy/deptPeopleSelect → views/asset/asset-service-appt-member}/index.vue.d.ts +0 -0
@@ -1,16 +1,16 @@
|
|
1
|
-
import { defineComponent as W, ref as b, resolveComponent as n, resolveDirective as X, openBlock as f, createElementBlock as
|
1
|
+
import { defineComponent as W, ref as b, resolveComponent as n, resolveDirective as X, openBlock as f, createElementBlock as I, createElementVNode as u, createVNode as l, withCtx as o, unref as s, withKeys as R, toDisplayString as p, Fragment as Z, renderList as x, createBlock as A, createTextVNode as h, isRef as k, createCommentVNode as ee, withDirectives as te } from "vue";
|
2
2
|
import { D as _, s as le } from "./index-CGds22-2.mjs";
|
3
3
|
import { useI18n as oe } from "vue-i18n";
|
4
4
|
import { s as ae } from "./index-BwbnYpa1.mjs";
|
5
5
|
import { useTableHooks as re } from "jmash-core";
|
6
6
|
import { useRouter as ne } from "vue-router";
|
7
7
|
import { c as C } from "./common-CshrwPyx.mjs";
|
8
|
-
const se = { class: "app-container" }, ie = { class: "search-container" }, pe = /* @__PURE__ */
|
8
|
+
const se = { class: "app-container" }, ie = { class: "search-container" }, pe = /* @__PURE__ */ u("div", { class: "clear" }, null, -1), de = ["onClick"], Ie = /* @__PURE__ */ W({
|
9
9
|
__name: "index",
|
10
10
|
setup(ue) {
|
11
11
|
_.unionOrgBizLayDict.useValues(), _.siteDict.useValues();
|
12
12
|
const $ = ne(), { t: N } = oe();
|
13
|
-
let
|
13
|
+
let D = b();
|
14
14
|
const c = b([]), r = b({
|
15
15
|
curPage: 1,
|
16
16
|
pageSize: 10
|
@@ -91,7 +91,7 @@ const se = { class: "app-container" }, ie = { class: "search-container" }, pe =
|
|
91
91
|
]);
|
92
92
|
function S(a) {
|
93
93
|
r.value.siteId = "", le.findList({ orgId: a }).then(({ data: { results: t } }) => {
|
94
|
-
|
94
|
+
D.value = t;
|
95
95
|
});
|
96
96
|
}
|
97
97
|
function U(a) {
|
@@ -99,7 +99,7 @@ const se = { class: "app-container" }, ie = { class: "search-container" }, pe =
|
|
99
99
|
if (c.value = a, c.value.length !== 2) return;
|
100
100
|
r.value.startDate = C(a[0]).getFullDate(), r.value.endDate = C(a[1]).getFullDate(), i.handleQuery();
|
101
101
|
} else
|
102
|
-
|
102
|
+
w();
|
103
103
|
}
|
104
104
|
function j(a) {
|
105
105
|
$.push({
|
@@ -107,13 +107,13 @@ const se = { class: "app-container" }, ie = { class: "search-container" }, pe =
|
|
107
107
|
query: { entityKey: a.recordId }
|
108
108
|
});
|
109
109
|
}
|
110
|
-
function
|
110
|
+
function w() {
|
111
111
|
c.value = [], r.value.startDate = "", r.value.endDate = "", i.resetQuery();
|
112
112
|
}
|
113
113
|
return i.getList(), (a, t) => {
|
114
|
-
const q = n("el-tooltip"), B = n("el-tree-select"), v = n("el-form-item"),
|
115
|
-
return f(),
|
116
|
-
|
114
|
+
const q = n("el-tooltip"), B = n("el-tree-select"), v = n("el-form-item"), d = n("el-col"), Q = n("el-option"), F = n("el-select"), K = n("el-input"), y = n("el-row"), O = n("el-date-picker"), V = n("el-button"), Y = n("el-form"), E = n("jmash-column-select"), H = n("jmash-table"), M = n("jmash-pagination"), G = n("el-card"), J = X("hasPerm");
|
115
|
+
return f(), I("div", se, [
|
116
|
+
u("div", ie, [
|
117
117
|
l(Y, {
|
118
118
|
ref_key: "queryFormRef",
|
119
119
|
ref: L,
|
@@ -121,9 +121,9 @@ const se = { class: "app-container" }, ie = { class: "search-container" }, pe =
|
|
121
121
|
inline: !0
|
122
122
|
}, {
|
123
123
|
default: o(() => [
|
124
|
-
l(
|
124
|
+
l(y, null, {
|
125
125
|
default: o(() => [
|
126
|
-
l(
|
126
|
+
l(d, { span: 8 }, {
|
127
127
|
default: o(() => [
|
128
128
|
l(v, {
|
129
129
|
label: a.$t("serviceApptRecord.orgId"),
|
@@ -140,11 +140,11 @@ const se = { class: "app-container" }, ie = { class: "search-container" }, pe =
|
|
140
140
|
"render-after-expand": !1,
|
141
141
|
placeholder: a.$t("serviceApptRecord.orgIdRequired"),
|
142
142
|
class: "!w-[203px]",
|
143
|
-
onKeyup: t[1] || (t[1] =
|
143
|
+
onKeyup: t[1] || (t[1] = R((e) => s(i).handleQuery(), ["enter"])),
|
144
144
|
onChange: S
|
145
145
|
}, {
|
146
146
|
default: o(({ data: e }) => [
|
147
|
-
|
147
|
+
u("span", null, [
|
148
148
|
l(q, {
|
149
149
|
class: "box-item",
|
150
150
|
effect: "light",
|
@@ -152,7 +152,7 @@ const se = { class: "app-container" }, ie = { class: "search-container" }, pe =
|
|
152
152
|
placement: "top"
|
153
153
|
}, {
|
154
154
|
default: o(() => [
|
155
|
-
|
155
|
+
u("span", null, p(e.label), 1)
|
156
156
|
]),
|
157
157
|
_: 2
|
158
158
|
}, 1032, ["content"])
|
@@ -166,7 +166,7 @@ const se = { class: "app-container" }, ie = { class: "search-container" }, pe =
|
|
166
166
|
]),
|
167
167
|
_: 1
|
168
168
|
}),
|
169
|
-
l(
|
169
|
+
l(d, { span: 8 }, {
|
170
170
|
default: o(() => [
|
171
171
|
l(v, {
|
172
172
|
label: a.$t("serviceApptRecord.siteId"),
|
@@ -180,10 +180,10 @@ const se = { class: "app-container" }, ie = { class: "search-container" }, pe =
|
|
180
180
|
placeholder: a.$t("serviceApptRecord.siteIdRequired"),
|
181
181
|
class: "!w-[203px]",
|
182
182
|
clearable: "",
|
183
|
-
onKeyup: t[3] || (t[3] =
|
183
|
+
onKeyup: t[3] || (t[3] = R((e) => s(i).handleQuery(), ["enter"]))
|
184
184
|
}, {
|
185
185
|
default: o(() => [
|
186
|
-
(f(!0),
|
186
|
+
(f(!0), I(Z, null, x(s(D), (e) => (f(), A(Q, {
|
187
187
|
key: e.siteId,
|
188
188
|
label: e.name,
|
189
189
|
value: e.siteId
|
@@ -197,7 +197,7 @@ const se = { class: "app-container" }, ie = { class: "search-container" }, pe =
|
|
197
197
|
]),
|
198
198
|
_: 1
|
199
199
|
}),
|
200
|
-
l(
|
200
|
+
l(d, { span: 8 }, {
|
201
201
|
default: o(() => [
|
202
202
|
l(v, {
|
203
203
|
label: a.$t("serviceApptRecord.serviceName"),
|
@@ -208,15 +208,20 @@ const se = { class: "app-container" }, ie = { class: "search-container" }, pe =
|
|
208
208
|
modelValue: r.value.likeServiceName,
|
209
209
|
"onUpdate:modelValue": t[4] || (t[4] = (e) => r.value.likeServiceName = e),
|
210
210
|
placeholder: a.$t("serviceApptRecord.serviceNameRequired"),
|
211
|
-
onKeyup: t[5] || (t[5] =
|
211
|
+
onKeyup: t[5] || (t[5] = R((e) => s(i).handleQuery(), ["enter"]))
|
212
212
|
}, null, 8, ["modelValue", "placeholder"])
|
213
213
|
]),
|
214
214
|
_: 1
|
215
215
|
}, 8, ["label"])
|
216
216
|
]),
|
217
217
|
_: 1
|
218
|
-
})
|
219
|
-
|
218
|
+
})
|
219
|
+
]),
|
220
|
+
_: 1
|
221
|
+
}),
|
222
|
+
l(y, null, {
|
223
|
+
default: o(() => [
|
224
|
+
l(d, { span: 8 }, {
|
220
225
|
default: o(() => [
|
221
226
|
l(v, {
|
222
227
|
label: a.$t("serviceApptRecord.appointmentDate"),
|
@@ -238,24 +243,29 @@ const se = { class: "app-container" }, ie = { class: "search-container" }, pe =
|
|
238
243
|
}, 8, ["label"])
|
239
244
|
]),
|
240
245
|
_: 1
|
241
|
-
})
|
242
|
-
]),
|
243
|
-
_: 1
|
244
|
-
}),
|
245
|
-
l(v, { class: "search-btn" }, {
|
246
|
-
default: o(() => [
|
247
|
-
l(V, {
|
248
|
-
type: "primary",
|
249
|
-
onClick: t[7] || (t[7] = (e) => s(i).handleQuery())
|
250
|
-
}, {
|
251
|
-
default: o(() => [
|
252
|
-
R(p(a.$t("common.search")), 1)
|
253
|
-
]),
|
254
|
-
_: 1
|
255
246
|
}),
|
256
|
-
l(
|
247
|
+
l(d, { span: 16 }, {
|
257
248
|
default: o(() => [
|
258
|
-
|
249
|
+
l(v, { class: "search-btn" }, {
|
250
|
+
default: o(() => [
|
251
|
+
l(V, {
|
252
|
+
type: "primary",
|
253
|
+
onClick: t[7] || (t[7] = (e) => s(i).handleQuery())
|
254
|
+
}, {
|
255
|
+
default: o(() => [
|
256
|
+
h(p(a.$t("common.search")), 1)
|
257
|
+
]),
|
258
|
+
_: 1
|
259
|
+
}),
|
260
|
+
l(V, { onClick: w }, {
|
261
|
+
default: o(() => [
|
262
|
+
h(p(a.$t("common.reset")), 1)
|
263
|
+
]),
|
264
|
+
_: 1
|
265
|
+
})
|
266
|
+
]),
|
267
|
+
_: 1
|
268
|
+
})
|
259
269
|
]),
|
260
270
|
_: 1
|
261
271
|
})
|
@@ -284,10 +294,10 @@ const se = { class: "app-container" }, ie = { class: "search-container" }, pe =
|
|
284
294
|
}, null, 8, ["total", "current-page", "page-size"])) : ee("", !0)
|
285
295
|
]),
|
286
296
|
default: o(() => [
|
287
|
-
l(
|
297
|
+
l(y, { justify: "space-between" }, {
|
288
298
|
default: o(() => [
|
289
|
-
l(
|
290
|
-
l(
|
299
|
+
l(d, { span: 17 }),
|
300
|
+
l(d, {
|
291
301
|
span: 7,
|
292
302
|
class: "container-float"
|
293
303
|
}, {
|
@@ -313,20 +323,20 @@ const se = { class: "app-container" }, ie = { class: "search-container" }, pe =
|
|
313
323
|
"table-label": s(m)
|
314
324
|
}, {
|
315
325
|
orgId: o((e) => [
|
316
|
-
|
326
|
+
u("span", null, p(s(_).unionOrgBizLayDict.getValue(e.data.row.orgId)), 1)
|
317
327
|
]),
|
318
328
|
siteId: o((e) => [
|
319
|
-
|
329
|
+
u("span", null, p(s(_).siteDict.getValue(e.data.row.siteId)), 1)
|
320
330
|
]),
|
321
331
|
time: o((e) => [
|
322
|
-
|
332
|
+
u("span", null, p(e.data.row.startTime) + " - " + p(e.data.row.endTime), 1)
|
323
333
|
]),
|
324
334
|
operation: o((e) => [
|
325
|
-
te((f(),
|
335
|
+
te((f(), I("span", {
|
326
336
|
class: "el-button-color",
|
327
337
|
onClick: (ce) => j(e.data.row)
|
328
338
|
}, [
|
329
|
-
|
339
|
+
h(p(a.$t("common.view")), 1)
|
330
340
|
], 8, de)), [
|
331
341
|
[J, ["asset:service_appt_record:view"]]
|
332
342
|
])
|
@@ -1,75 +1,78 @@
|
|
1
|
-
import { defineComponent as
|
2
|
-
import { useUserStore as g, clearEmpty as v, request as h, useTableHooks as
|
3
|
-
import { useI18n as
|
4
|
-
import { useRouter as
|
5
|
-
import { q as
|
6
|
-
import { c as
|
7
|
-
class
|
8
|
-
getKey(
|
1
|
+
import { defineComponent as H, ref as I, computed as Q, onBeforeMount as K, resolveComponent as u, openBlock as R, createElementBlock as G, createVNode as l, withCtx as e, createTextVNode as c, toDisplayString as o, unref as t, createBlock as J, isRef as O, createCommentVNode as W, createElementVNode as r } from "vue";
|
2
|
+
import { useUserStore as g, clearEmpty as v, request as h, 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 oe, D as V, a as ae } from "./index-CGds22-2.mjs";
|
6
|
+
import { c as le } from "./common-CshrwPyx.mjs";
|
7
|
+
class se {
|
8
|
+
getKey(n) {
|
9
9
|
return {
|
10
|
-
recordId:
|
10
|
+
recordId: n.recordId
|
11
11
|
};
|
12
12
|
}
|
13
13
|
// 查询翻页信息资产折旧记录
|
14
|
-
findPage(
|
15
|
-
const
|
16
|
-
return v(
|
17
|
-
url: "/v1/asset/depreciation_record/page/" +
|
14
|
+
findPage(n) {
|
15
|
+
const m = g().user.tenant;
|
16
|
+
return v(n), h({
|
17
|
+
url: "/v1/asset/depreciation_record/page/" + m,
|
18
18
|
method: "get",
|
19
|
-
params:
|
19
|
+
params: n
|
20
20
|
});
|
21
21
|
}
|
22
22
|
// 查询列表信息资产折旧记录
|
23
|
-
findList(
|
24
|
-
const
|
25
|
-
return v(
|
26
|
-
url: "/v1/asset/depreciation_record/list/" +
|
23
|
+
findList(n) {
|
24
|
+
const m = g().user.tenant;
|
25
|
+
return v(n), h({
|
26
|
+
url: "/v1/asset/depreciation_record/list/" + m,
|
27
27
|
method: "get",
|
28
|
-
params:
|
28
|
+
params: n
|
29
29
|
});
|
30
30
|
}
|
31
31
|
// 查询资产折旧记录
|
32
|
-
findById(
|
33
|
-
const
|
34
|
-
return v(
|
35
|
-
url: "/v1/asset/depreciation_record/id/" +
|
32
|
+
findById(n) {
|
33
|
+
const m = g().user.tenant;
|
34
|
+
return v(n), h({
|
35
|
+
url: "/v1/asset/depreciation_record/id/" + m + "/" + n.recordId,
|
36
36
|
method: "get"
|
37
37
|
});
|
38
38
|
}
|
39
39
|
// 导出资产折旧记录Excel文件
|
40
|
-
exportExcel(
|
41
|
-
const
|
42
|
-
v(
|
43
|
-
const f =
|
40
|
+
exportExcel(n) {
|
41
|
+
const m = g().user.tenant;
|
42
|
+
v(n);
|
43
|
+
const f = oe.stringify(n, {
|
44
44
|
arrayFormat: "brackets",
|
45
45
|
allowDots: !0
|
46
46
|
});
|
47
47
|
return h({
|
48
|
-
url: "/v1/asset/depreciation_record/" +
|
48
|
+
url: "/v1/asset/depreciation_record/" + m + "/depreciation_records.xlsx?" + f,
|
49
49
|
method: "get",
|
50
50
|
responseType: "blob"
|
51
51
|
});
|
52
52
|
}
|
53
53
|
}
|
54
|
-
const w = new
|
54
|
+
const w = new se(), ne = { class: "app-container" }, re = /* @__PURE__ */ r("div", { class: "title-content" }, "资产信息", -1), ie = { class: "cell-item" }, de = { class: "cell-item" }, ce = { class: "cell-item" }, ue = { class: "cell-item" }, pe = { class: "cell-item" }, me = { class: "cell-item" }, _e = { class: "cell-item" }, fe = { class: "cell-item" }, be = { class: "cell-item" }, ye = { class: "cell-item" }, ge = /* @__PURE__ */ r("div", { class: "title-content" }, "折旧记录", -1), ve = {
|
55
55
|
class: "search-container",
|
56
56
|
style: { border: "none" }
|
57
|
-
},
|
57
|
+
}, Ve = /* @__PURE__ */ H({
|
58
58
|
__name: "index",
|
59
59
|
setup(C) {
|
60
|
-
const { t:
|
60
|
+
const { t: n } = x(), m = ee(), f = te();
|
61
61
|
V.assetSortDictEnum.useEnumValues();
|
62
62
|
const _ = I({
|
63
63
|
assetId: f.query.assetId
|
64
|
-
}),
|
64
|
+
}), d = I({}), M = Q(() => {
|
65
|
+
const a = d.value.oldMoney ?? 0, s = parseFloat(d.value.totalDepreciation ?? "0");
|
66
|
+
return a - s;
|
67
|
+
}), {
|
65
68
|
tableHooks: $,
|
66
69
|
multipleTableRef: S,
|
67
|
-
queryFormRef:
|
68
|
-
listLoading:
|
70
|
+
queryFormRef: P,
|
71
|
+
listLoading: E,
|
69
72
|
tableData: b,
|
70
73
|
total: y
|
71
|
-
} =
|
72
|
-
let
|
74
|
+
} = X(n, w, _);
|
75
|
+
let q = I([
|
73
76
|
// 折旧年月
|
74
77
|
{
|
75
78
|
label: "depreciationRecord.year",
|
@@ -87,38 +90,38 @@ const w = new ae(), le = { class: "app-container" }, se = /* @__PURE__ */ n("div
|
|
87
90
|
isColumn: !0
|
88
91
|
}
|
89
92
|
]);
|
90
|
-
function
|
91
|
-
_.value.year =
|
93
|
+
function B(a) {
|
94
|
+
_.value.year = le(a).getYear();
|
92
95
|
}
|
93
|
-
function
|
94
|
-
|
96
|
+
function T() {
|
97
|
+
Z.closeTagView(f.fullPath, m, !1);
|
95
98
|
}
|
96
|
-
return
|
97
|
-
f.query.assetId ? (
|
98
|
-
|
99
|
+
return K(() => {
|
100
|
+
f.query.assetId ? (ae.findById({ assetId: f.query.assetId }).then(({ data: a }) => {
|
101
|
+
d.value = a;
|
99
102
|
}), w.findPage({
|
100
103
|
assetId: f.query.assetId
|
101
104
|
}).then(({ data: { results: a } }) => {
|
102
105
|
b.value = a;
|
103
106
|
})) : b.value = [];
|
104
|
-
}), (a,
|
105
|
-
const k = u("el-button"),
|
106
|
-
return
|
107
|
+
}), (a, s) => {
|
108
|
+
const k = u("el-button"), L = u("el-col"), U = u("el-row"), p = u("el-descriptions-item"), j = u("el-descriptions"), z = u("el-date-picker"), D = u("el-form-item"), A = u("el-form"), N = u("jmash-table"), F = u("jmash-pagination"), Y = u("el-card");
|
109
|
+
return R(), G("div", ne, [
|
107
110
|
l(Y, {
|
108
111
|
shadow: "never",
|
109
112
|
class: "table-container"
|
110
113
|
}, {
|
111
114
|
header: e(() => [
|
112
|
-
l(
|
115
|
+
l(U, { justify: "space-between" }, {
|
113
116
|
default: e(() => [
|
114
|
-
l(
|
117
|
+
l(L, { span: 12 }, {
|
115
118
|
default: e(() => [
|
116
119
|
l(k, {
|
117
120
|
type: "primary",
|
118
|
-
onClick:
|
121
|
+
onClick: T
|
119
122
|
}, {
|
120
123
|
default: e(() => [
|
121
|
-
|
124
|
+
c(o(a.$t("common.back")), 1)
|
122
125
|
]),
|
123
126
|
_: 1
|
124
127
|
})
|
@@ -130,161 +133,161 @@ const w = new ae(), le = { class: "app-container" }, se = /* @__PURE__ */ n("div
|
|
130
133
|
})
|
131
134
|
]),
|
132
135
|
footer: e(() => [
|
133
|
-
t(y) > 0 ? (
|
136
|
+
t(y) > 0 ? (R(), J(F, {
|
134
137
|
key: 0,
|
135
138
|
total: t(y),
|
136
|
-
"onUpdate:total":
|
139
|
+
"onUpdate:total": s[3] || (s[3] = (i) => O(y) ? y.value = i : null),
|
137
140
|
"current-page": t(_).curPage,
|
138
|
-
"onUpdate:currentPage":
|
141
|
+
"onUpdate:currentPage": s[4] || (s[4] = (i) => t(_).curPage = i),
|
139
142
|
"page-size": t(_).pageSize,
|
140
|
-
"onUpdate:pageSize":
|
141
|
-
onPagination:
|
142
|
-
}, null, 8, ["total", "current-page", "page-size"])) :
|
143
|
+
"onUpdate:pageSize": s[5] || (s[5] = (i) => t(_).pageSize = i),
|
144
|
+
onPagination: s[6] || (s[6] = (i) => t($).getList())
|
145
|
+
}, null, 8, ["total", "current-page", "page-size"])) : W("", !0)
|
143
146
|
]),
|
144
147
|
default: e(() => [
|
145
|
-
|
146
|
-
l(
|
148
|
+
re,
|
149
|
+
l(j, {
|
147
150
|
class: "margin-top",
|
148
151
|
column: 2,
|
149
152
|
border: ""
|
150
153
|
}, {
|
151
154
|
default: e(() => [
|
152
|
-
l(
|
155
|
+
l(p, null, {
|
153
156
|
label: e(() => [
|
154
|
-
|
157
|
+
r("div", ie, o(a.$t("asset.name")), 1)
|
155
158
|
]),
|
156
159
|
default: e(() => [
|
157
|
-
|
160
|
+
c(" " + o(t(d).name), 1)
|
158
161
|
]),
|
159
162
|
_: 1
|
160
163
|
}),
|
161
|
-
l(
|
164
|
+
l(p, null, {
|
162
165
|
label: e(() => [
|
163
|
-
|
166
|
+
r("div", de, o(a.$t("asset.code")), 1)
|
164
167
|
]),
|
165
168
|
default: e(() => [
|
166
|
-
|
169
|
+
c(" " + o(t(d).code), 1)
|
167
170
|
]),
|
168
171
|
_: 1
|
169
172
|
}),
|
170
|
-
l(
|
173
|
+
l(p, null, {
|
171
174
|
label: e(() => [
|
172
|
-
|
175
|
+
r("div", ce, o(a.$t("asset.number")) + "/" + o(a.$t("asset.unit")), 1)
|
173
176
|
]),
|
174
177
|
default: e(() => [
|
175
|
-
|
178
|
+
c(" " + o(t(d).number) + "/" + o(t(d).unit), 1)
|
176
179
|
]),
|
177
180
|
_: 1
|
178
181
|
}),
|
179
|
-
l(
|
182
|
+
l(p, null, {
|
180
183
|
label: e(() => [
|
181
|
-
|
184
|
+
r("div", ue, o(a.$t("asset.buyDate")), 1)
|
182
185
|
]),
|
183
186
|
default: e(() => [
|
184
|
-
|
187
|
+
c(" " + o(t(d).buyDate), 1)
|
185
188
|
]),
|
186
189
|
_: 1
|
187
190
|
}),
|
188
|
-
l(
|
191
|
+
l(p, null, {
|
189
192
|
label: e(() => [
|
190
|
-
|
193
|
+
r("div", pe, o(a.$t("asset.assetSort")), 1)
|
191
194
|
]),
|
192
195
|
default: e(() => [
|
193
|
-
|
194
|
-
t(
|
196
|
+
c(" " + o(t(V).assetSortDictEnum.getEnumValue(
|
197
|
+
t(d).assetSort
|
195
198
|
)), 1)
|
196
199
|
]),
|
197
200
|
_: 1
|
198
201
|
}),
|
199
|
-
l(
|
202
|
+
l(p, null, {
|
200
203
|
label: e(() => [
|
201
|
-
|
204
|
+
r("div", me, o(a.$t("asset.useLimit")), 1)
|
202
205
|
]),
|
203
206
|
default: e(() => [
|
204
|
-
|
207
|
+
c(" " + o(t(d).useLimit), 1)
|
205
208
|
]),
|
206
209
|
_: 1
|
207
210
|
}),
|
208
|
-
l(
|
211
|
+
l(p, null, {
|
209
212
|
label: e(() => [
|
210
|
-
|
213
|
+
r("div", _e, o(a.$t("asset.oldMoney")), 1)
|
211
214
|
]),
|
212
215
|
default: e(() => [
|
213
|
-
|
216
|
+
c(" " + o(t(d).oldMoney), 1)
|
214
217
|
]),
|
215
218
|
_: 1
|
216
219
|
}),
|
217
|
-
l(
|
220
|
+
l(p, null, {
|
218
221
|
label: e(() => [
|
219
|
-
|
222
|
+
r("div", fe, o(a.$t("asset.netSalvage")), 1)
|
220
223
|
]),
|
221
224
|
default: e(() => [
|
222
|
-
|
225
|
+
c(" " + o(t(d).netSalvage), 1)
|
223
226
|
]),
|
224
227
|
_: 1
|
225
228
|
}),
|
226
|
-
l(
|
229
|
+
l(p, null, {
|
227
230
|
label: e(() => [
|
228
|
-
|
231
|
+
r("div", be, o(a.$t("depreciationRecord.netAssetValue")), 1)
|
229
232
|
]),
|
230
233
|
default: e(() => [
|
231
|
-
|
234
|
+
c(" " + o(t(M)), 1)
|
232
235
|
]),
|
233
236
|
_: 1
|
234
237
|
}),
|
235
|
-
l(
|
238
|
+
l(p, null, {
|
236
239
|
label: e(() => [
|
237
|
-
|
240
|
+
r("div", ye, o(a.$t("depreciationRecord.totalDepreciation")), 1)
|
238
241
|
]),
|
239
242
|
default: e(() => [
|
240
|
-
|
243
|
+
c(" " + o(t(d).totalDepreciation), 1)
|
241
244
|
]),
|
242
245
|
_: 1
|
243
246
|
})
|
244
247
|
]),
|
245
248
|
_: 1
|
246
249
|
}),
|
247
|
-
|
248
|
-
|
249
|
-
l(
|
250
|
+
ge,
|
251
|
+
r("div", ve, [
|
252
|
+
l(A, {
|
250
253
|
ref_key: "queryFormRef",
|
251
|
-
ref:
|
254
|
+
ref: P,
|
252
255
|
model: t(_),
|
253
256
|
inline: !0
|
254
257
|
}, {
|
255
258
|
default: e(() => [
|
256
|
-
l(
|
259
|
+
l(D, {
|
257
260
|
label: a.$t("depreciationRecord.year"),
|
258
261
|
prop: "selectYear"
|
259
262
|
}, {
|
260
263
|
default: e(() => [
|
261
|
-
l(
|
264
|
+
l(z, {
|
262
265
|
modelValue: t(_).selectYear,
|
263
|
-
"onUpdate:modelValue":
|
266
|
+
"onUpdate:modelValue": s[0] || (s[0] = (i) => t(_).selectYear = i),
|
264
267
|
disabled: t(b).length === 0,
|
265
268
|
type: "year",
|
266
269
|
placeholder: a.$t("depreciationRecord.yearPlaceholder"),
|
267
|
-
onChange:
|
270
|
+
onChange: B
|
268
271
|
}, null, 8, ["modelValue", "disabled", "placeholder"])
|
269
272
|
]),
|
270
273
|
_: 1
|
271
274
|
}, 8, ["label"]),
|
272
|
-
l(
|
275
|
+
l(D, { class: "search-btn" }, {
|
273
276
|
default: e(() => [
|
274
277
|
l(k, {
|
275
278
|
type: "primary",
|
276
|
-
onClick:
|
279
|
+
onClick: s[1] || (s[1] = (i) => t($).handleQuery())
|
277
280
|
}, {
|
278
281
|
default: e(() => [
|
279
|
-
|
282
|
+
c(o(a.$t("common.search")), 1)
|
280
283
|
]),
|
281
284
|
_: 1
|
282
285
|
}),
|
283
286
|
l(k, {
|
284
|
-
onClick:
|
287
|
+
onClick: s[2] || (s[2] = (i) => t($).resetQuery())
|
285
288
|
}, {
|
286
289
|
default: e(() => [
|
287
|
-
|
290
|
+
c(o(a.$t("common.reset")), 1)
|
288
291
|
]),
|
289
292
|
_: 1
|
290
293
|
})
|
@@ -295,21 +298,21 @@ const w = new ae(), le = { class: "app-container" }, se = /* @__PURE__ */ n("div
|
|
295
298
|
_: 1
|
296
299
|
}, 8, ["model"])
|
297
300
|
]),
|
298
|
-
l(
|
301
|
+
l(N, {
|
299
302
|
ref_key: "multipleTableRef",
|
300
303
|
ref: S,
|
301
304
|
class: "table-top",
|
302
305
|
"row-key": "assetId",
|
303
306
|
"is-selection": !1,
|
304
|
-
"list-loading": t(
|
307
|
+
"list-loading": t(E),
|
305
308
|
data: t(b),
|
306
|
-
"table-label": t(
|
309
|
+
"table-label": t(q)
|
307
310
|
}, {
|
308
311
|
assetId: e((i) => [
|
309
|
-
|
312
|
+
r("span", null, o(i.data.row.assetId), 1)
|
310
313
|
]),
|
311
314
|
yearMonth: e((i) => [
|
312
|
-
|
315
|
+
r("span", null, o(i.data.row.yearMonth), 1)
|
313
316
|
]),
|
314
317
|
_: 1
|
315
318
|
}, 8, ["list-loading", "data", "table-label"])
|
@@ -321,5 +324,5 @@ const w = new ae(), le = { class: "app-container" }, se = /* @__PURE__ */ n("div
|
|
321
324
|
}
|
322
325
|
});
|
323
326
|
export {
|
324
|
-
|
327
|
+
Ve as default
|
325
328
|
};
|
@@ -2,7 +2,7 @@ import { defineComponent as ae, ref as k, reactive as j, resolveComponent as s,
|
|
2
2
|
import { D as C, s as se } from "./index-CGds22-2.mjs";
|
3
3
|
import { useI18n as ie } from "vue-i18n";
|
4
4
|
import { useRouter as re } from "vue-router";
|
5
|
-
import { _ as ue } from "./edit.vue_vue_type_script_setup_true_lang-
|
5
|
+
import { _ as ue } from "./edit.vue_vue_type_script_setup_true_lang-CmaI0KId.mjs";
|
6
6
|
import { useTableHooks as de } from "jmash-core";
|
7
7
|
const me = { class: "app-container" }, pe = { class: "search-container" }, ce = { key: 0 }, fe = { key: 1 }, be = {
|
8
8
|
key: 2,
|