xyvcard-asset 0.0.12 → 0.0.14

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