xyvcard-asset 0.0.8 → 0.0.9

Sign up to get free protection for your applications and to get access to all the features.
Files changed (139) hide show
  1. package/README.md +52 -52
  2. package/dist/assign-BLa-fXcy.mjs +1626 -0
  3. package/dist/{edit-zFZfd8e1.mjs → edit-CCrekeeb.mjs} +1 -1
  4. package/dist/{edit-CE3u81Q0.mjs → edit-DmRG7fo0.mjs} +1 -1
  5. package/dist/edit-Dn-QMuy6.mjs +4 -0
  6. package/dist/edit-FdqpKRgF.mjs +294 -0
  7. package/dist/edit.vue_vue_type_script_setup_true_lang-CkBAP9Bk.mjs +547 -0
  8. package/dist/{edit.vue_vue_type_script_setup_true_lang-BdkCgqqE.mjs → edit.vue_vue_type_script_setup_true_lang-DSfByOkx.mjs} +146 -139
  9. package/dist/edit.vue_vue_type_script_setup_true_lang-IWUY0BmY.mjs +278 -0
  10. package/dist/index copy-Di49EjkG.mjs +76 -0
  11. package/dist/index-B4vUTwSW.mjs +171 -0
  12. package/dist/index-BK24yagy.mjs +1663 -0
  13. package/dist/index-BW-5IuVN.mjs +91 -0
  14. package/dist/index-BWwU9hSp.mjs +320 -0
  15. package/dist/index-BvKWLFdr.mjs +345 -0
  16. package/dist/index-BwbnYpa1.mjs +29 -0
  17. package/dist/index-ByVysHgI.mjs +4 -0
  18. package/dist/index-C5_f5Lce.mjs +213 -0
  19. package/dist/index-CgAq70-p.mjs +314 -0
  20. package/dist/index-DElPNxc7.mjs +398 -0
  21. package/dist/index-De4u-LEl.mjs +325 -0
  22. package/dist/index-DeBZxOsC.mjs +372 -0
  23. package/dist/index-Dyo7je0Z.mjs +38 -0
  24. package/dist/index-FUnFB7nG.mjs +61 -0
  25. package/dist/index-axEqTssj.mjs +378 -0
  26. package/dist/index-jOcS7tqC.mjs +311 -0
  27. package/dist/index-qQuyprvx.mjs +4 -0
  28. package/dist/index-xyCxQquE.mjs +432 -0
  29. package/dist/index.mjs +2752 -35
  30. package/dist/index.vue_vue_type_script_setup_true_lang-05kzecXV.mjs +274 -0
  31. package/dist/index.vue_vue_type_script_setup_true_lang-Bl9nmo3f.mjs +120 -0
  32. package/dist/index.vue_vue_type_script_setup_true_lang-BtIlu38i.mjs +105 -0
  33. package/dist/index/345/244/207/344/273/275-CaiMDP8J.mjs +319 -0
  34. package/dist/style.css +1 -1
  35. package/dts/src/api/asset/asset-asset/index.d.ts +10 -5
  36. package/dts/src/api/asset/asset-asset/types.d.ts +39 -23
  37. package/dts/src/api/asset/asset-asset-detail/index.d.ts +12 -0
  38. package/dts/src/api/asset/asset-asset-detail/types.d.ts +56 -0
  39. package/dts/src/api/asset/asset-depreciation-record/index.d.ts +11 -0
  40. package/dts/src/api/asset/asset-depreciation-record/types.d.ts +38 -0
  41. package/dts/src/api/asset/asset-inventory-record/index.d.ts +10 -0
  42. package/dts/src/api/asset/asset-inventory-record/types.d.ts +62 -0
  43. package/dts/src/api/asset/asset-service-appt-member/index.d.ts +1 -12
  44. package/dts/src/api/asset/asset-service-appt-member/types.d.ts +1 -44
  45. package/dts/src/api/asset/asset-service-appt-record/index.d.ts +1 -12
  46. package/dts/src/api/asset/asset-service-appt-record/types.d.ts +7 -68
  47. package/dts/src/api/asset/asset-site/index.d.ts +1 -2
  48. package/dts/src/api/asset/asset-site/types.d.ts +4 -14
  49. package/dts/src/api/asset/asset-site-service/index.d.ts +1 -2
  50. package/dts/src/api/asset/asset-site-service/types.d.ts +1 -0
  51. package/dts/src/api/asset/text/index.d.ts +0 -0
  52. package/dts/src/api/asset/text/types.d.ts +0 -0
  53. package/dts/src/api/dict.d.ts +1 -4
  54. package/dts/src/api/index.d.ts +2 -0
  55. package/dts/src/components/PeopleSelect/index.vue.d.ts +18 -0
  56. package/dts/src/components/Upload/ImageUpload.vue.d.ts +1 -1
  57. package/dts/{components/TMaps/index.vue.d.ts → src/components copy/PeopleSelect/index.vue.d.ts } +5 -7
  58. package/dts/src/components copy/PeopleSelect//345/244/207/344/273/275/index copy 2.vue.d.ts" +34 -0
  59. package/dts/src/components copy/PeopleSelect//345/244/207/344/273/275/index copy 22.vue.d.ts" +18 -0
  60. package/dts/src/components copy/PeopleSelect//345/244/207/344/273/275/index copy.vue.d.ts" +34 -0
  61. package/dts/src/components copy/PeopleSelect//345/244/207/344/273/275/index/345/215/225/351/200/211/346/241/206/346/234/200/346/226/260.vue.d.ts" +34 -0
  62. package/dts/src/components copy/PeopleSelect//345/244/207/344/273/275/tree/351/200/211/346/213/251/346/241/206/344/270/215/345/261/225/347/244/272/346/225/260/346/215/256,/344/270/213/346/226/271/351/242/204/350/247/210/346/225/260/346/215/256.vue.d.ts" +18 -0
  63. package/dts/src/components copy/PeopleSelect//345/244/207/344/273/275//345/217/214/351/200/211/346/213/251.vue.d.ts" +42 -0
  64. package/dts/src/components copy/PeopleSelect//345/244/207/344/273/275//351/200/211/346/213/251/344/272/272/345/221/230/index.vue.d.ts" +34 -0
  65. package/dts/{components/Upload/ImageUpload.vue.d.ts → src/components copy/Upload/ImageUpload.vue.d.ts } +1 -1
  66. package/dts/src/constant.d.ts +4 -1
  67. package/dts/src/index.d.ts +3 -1
  68. package/dts/src/lang/asset/zh-cn.d.ts +59 -1
  69. package/dts/src/router/page.d.ts +4 -0
  70. package/dts/src/utils/momentPlugin.d.ts +5 -0
  71. package/dts/{views/asset/asset-asset/edit.vue.d.ts → src/views/asset/asset-asset/assign.vue.d.ts} +12 -5
  72. package/dts/{views/asset/asset-site → src/views/asset/asset-asset-detail}/edit.vue.d.ts +5 -7
  73. package/dts/src/views/asset/asset-inventory-record/dialogSelect/index.vue.d.ts +6 -0
  74. package/dts/src/views/asset/asset-inventory-record/text/index copy.vue.d.ts +2 -0
  75. package/dts/src/views/asset/asset-inventory-record/text/index.vue.d.ts +2 -0
  76. package/dts/tsconfig.tsbuildinfo +1 -1
  77. package/package.json +7 -6
  78. package/dist/edit-Bo9bnbUP.mjs +0 -492
  79. package/dist/edit-DJFxVmvv.mjs +0 -624
  80. package/dist/edit-qp_2xtTZ.mjs +0 -242
  81. package/dist/edit.vue_vue_type_script_setup_true_lang-CekLyjO-.mjs +0 -322
  82. package/dist/edit.vue_vue_type_style_index_0_scoped_198fdb2f_lang-l0sNRNKZ.mjs +0 -1
  83. package/dist/index-Bf5U4Ucl.mjs +0 -369
  84. package/dist/index-Bh2imlN_.mjs +0 -149
  85. package/dist/index-CHNiaFZk.mjs +0 -291
  86. package/dist/index-CmlP_Rro.mjs +0 -332
  87. package/dist/index-Cqw_E8lr.mjs +0 -1269
  88. package/dist/index-DA_FS24d.mjs +0 -146
  89. package/dist/index-DKmGNvQl.mjs +0 -370
  90. package/dist/index-DLxpE9s5.mjs +0 -305
  91. package/dist/index-DWaL87j5.mjs +0 -89
  92. package/dist/index-jOnQLJaB.mjs +0 -416
  93. package/dist/index-pyyjj1xa.mjs +0 -187
  94. package/dist/index.vue_vue_type_script_setup_true_lang-C_itMCoU.mjs +0 -37
  95. package/dts/api/asset/asset-asset/index.d.ts +0 -20
  96. package/dts/api/asset/asset-asset/types.d.ts +0 -93
  97. package/dts/api/asset/asset-service-appt-member/index.d.ts +0 -20
  98. package/dts/api/asset/asset-service-appt-member/types.d.ts +0 -71
  99. package/dts/api/asset/asset-service-appt-record/index.d.ts +0 -20
  100. package/dts/api/asset/asset-service-appt-record/types.d.ts +0 -98
  101. package/dts/api/asset/asset-site/index.d.ts +0 -15
  102. package/dts/api/asset/asset-site/types.d.ts +0 -81
  103. package/dts/api/asset/asset-site-service/index.d.ts +0 -14
  104. package/dts/api/asset/asset-site-service/types.d.ts +0 -80
  105. package/dts/api/dict.d.ts +0 -22
  106. package/dts/api/index.d.ts +0 -14
  107. package/dts/api/org/union-org/index.d.ts +0 -14
  108. package/dts/api/org/union-org/types.d.ts +0 -49
  109. package/dts/components/EnumRadio/index.vue.d.ts +0 -18
  110. package/dts/components/EnumSelect/index.vue.d.ts +0 -18
  111. package/dts/constant.d.ts +0 -16
  112. package/dts/index.d.ts +0 -4
  113. package/dts/lang/asset/en.d.ts +0 -2
  114. package/dts/lang/asset/zh-cn.d.ts +0 -91
  115. package/dts/lang/index.d.ts +0 -1
  116. package/dts/main.d.ts +0 -4
  117. package/dts/permission.d.ts +0 -1
  118. package/dts/router/page.d.ts +0 -2
  119. package/dts/src/api/org/union-org/index.d.ts +0 -14
  120. package/dts/src/api/org/union-org/types.d.ts +0 -49
  121. package/dts/src/components/EnumRadio/index.vue.d.ts +0 -18
  122. package/dts/src/components/EnumSelect/index.vue.d.ts +0 -18
  123. package/dts/src/views/asset/asset-service-appt-member/edit.vue.d.ts +0 -22
  124. package/dts/src/views/asset/asset-service-appt-record/edit.vue.d.ts +0 -22
  125. package/dts/utils/common.d.ts +0 -51
  126. package/dts/utils/index.d.ts +0 -24
  127. package/dts/views/asset/asset-service-appt-member/edit.vue.d.ts +0 -22
  128. package/dts/views/asset/asset-service-appt-record/edit.vue.d.ts +0 -22
  129. package/dts/views/asset/asset-site-service/edit.vue.d.ts +0 -22
  130. /package/dts/{views/asset/asset-asset → src/components/deptPeopleSelect}/index.vue.d.ts +0 -0
  131. /package/dts/{components → src/components copy}/Upload/MultiUpload.vue.d.ts +0 -0
  132. /package/dts/src/{views/asset/asset-service-appt-member → components copy/deptPeopleSelect}/index.vue.d.ts +0 -0
  133. /package/dts/{views/asset/asset-service-appt-record → src/views/asset/asset-asset/info}/index.vue.d.ts +0 -0
  134. /package/dts/{views/asset/asset-service-appt-member → src/views/asset/asset-asset-detail}/index.vue.d.ts +0 -0
  135. /package/dts/{views/asset/asset-service-appt-record/info → src/views/asset/asset-depreciation-record}/index.vue.d.ts +0 -0
  136. /package/dts/{views/asset/asset-site-service → src/views/asset/asset-depreciation-record/info}/index.vue.d.ts +0 -0
  137. /package/dts/{views/asset/asset-site → src/views/asset/asset-inventory-record}/index.vue.d.ts +0 -0
  138. /package/dts/{App.vue.d.ts → src/views/asset/asset-inventory-record/index/345/244/207/344/273/275.vue.d.ts"} +0 -0
  139. /package/dts/{views/asset/asset-site → src/views/asset/asset-inventory-record}/info/index.vue.d.ts +0 -0
@@ -0,0 +1,547 @@
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, openBlock as J, createBlock as Q, withCtx as r, createElementVNode as f, createVNode as t, createTextVNode as _, toDisplayString as F, unref as a, withDirectives as W } from "vue";
2
+ import { a as c, D as k, C as X } from "./index-BK24yagy.mjs";
3
+ import { ElMessage as C } from "element-plus";
4
+ import { useI18n as Z } from "vue-i18n";
5
+ const x = /* @__PURE__ */ f("div", { class: "title-content" }, "资产信息", -1), ee = /* @__PURE__ */ f("div", { class: "title-content" }, "折旧信息", -1), le = { class: "dialog-footer" }, N = 10, ne = /* @__PURE__ */ P({
6
+ __name: "edit",
7
+ props: /* @__PURE__ */ S({
8
+ entityKey: {
9
+ type: Object,
10
+ default: () => {
11
+ }
12
+ }
13
+ }, {
14
+ modelValue: { type: Boolean },
15
+ modelModifiers: {}
16
+ }),
17
+ emits: /* @__PURE__ */ S(["refresh"], ["update:modelValue"]),
18
+ setup(g, { emit: Y }) {
19
+ const { t: i } = Z(), h = T();
20
+ let e = L({
21
+ requestId: Math.random() * 10 + "",
22
+ useLimit: 1,
23
+ number: 1,
24
+ buyMoney: 1,
25
+ updateMask: "name,assetSort,code,number,unit,model,buyDate,buyMoney,depreciationType,useLimit,netSalvage,totalDepreciation"
26
+ });
27
+ const p = z(g, "modelValue"), V = g, v = Y, E = Object.keys(V.entityKey), D = T(E.length >= 1);
28
+ D.value && c.findById(V.entityKey).then(({ data: l }) => {
29
+ Object.assign(e, l);
30
+ });
31
+ const y = L({
32
+ // 资产名称
33
+ name: [
34
+ {
35
+ required: !0,
36
+ message: i("asset.nameRequired"),
37
+ trigger: "blur"
38
+ }
39
+ ],
40
+ // 资产编号
41
+ code: [
42
+ {
43
+ required: !0,
44
+ message: i("asset.codeRequired"),
45
+ trigger: "change"
46
+ }
47
+ ],
48
+ // 资产属性
49
+ assetSort: [
50
+ {
51
+ required: !0,
52
+ message: i("asset.assetSortRequired"),
53
+ trigger: "change"
54
+ }
55
+ ],
56
+ // 数量
57
+ number: [
58
+ {
59
+ required: !0,
60
+ trigger: "blur",
61
+ message: i("asset.numberRequired")
62
+ }
63
+ ],
64
+ // 单位
65
+ unit: [
66
+ {
67
+ required: !0,
68
+ message: i("asset.unitRequired"),
69
+ trigger: "change"
70
+ }
71
+ ],
72
+ // 购买日期
73
+ buyDate: [
74
+ {
75
+ required: !0,
76
+ message: i("asset.buyDateRequired"),
77
+ trigger: "change"
78
+ }
79
+ ],
80
+ // 单价
81
+ buyMoney: [
82
+ {
83
+ required: !0,
84
+ trigger: "blur",
85
+ message: i("asset.buyMoneyRequired")
86
+ }
87
+ ],
88
+ // 资产原值
89
+ oldMoney: [
90
+ {
91
+ required: !0,
92
+ message: i("asset.oldMoney"),
93
+ trigger: "change"
94
+ }
95
+ ],
96
+ // 折旧方式
97
+ depreciationType: [
98
+ {
99
+ required: !0,
100
+ message: i("asset.depreciationTypePleaseholder"),
101
+ trigger: "change"
102
+ }
103
+ ],
104
+ // 折旧年限
105
+ useLimit: [
106
+ {
107
+ required: !0,
108
+ trigger: "blur",
109
+ message: i("asset.useLimitRequired")
110
+ }
111
+ ],
112
+ // 预值净残值
113
+ netSalvage: [
114
+ {
115
+ required: !0,
116
+ trigger: "blur",
117
+ message: i("asset.netSalvageRequired")
118
+ }
119
+ ],
120
+ // 月折旧额
121
+ monthDepreciation: [
122
+ {
123
+ required: !0,
124
+ message: i("asset.monthDepreciationRequired"),
125
+ trigger: "blur"
126
+ }
127
+ ],
128
+ // 总折旧额
129
+ totalDepreciation: [
130
+ {
131
+ required: !0,
132
+ message: i("asset.totalDepreciationRequired"),
133
+ trigger: "blur"
134
+ }
135
+ ]
136
+ });
137
+ function j() {
138
+ const l = e.depreciationType !== X.NONE;
139
+ y.useLimit[0].required = l, y.netSalvage[0].required = l, y.totalDepreciation[0].required = l, l || (e.useLimit = void 0, e.netSalvage = void 0, e.monthDepreciation = void 0, e.totalDepreciation = void 0);
140
+ }
141
+ G(
142
+ () => e.depreciationType,
143
+ () => {
144
+ j();
145
+ }
146
+ ), U(() => {
147
+ e.buyMoney !== void 0 && e.number !== void 0 ? e.oldMoney = parseFloat((e.buyMoney * e.number).toFixed(2)) : e.oldMoney = parseFloat("0.00");
148
+ }), U(() => {
149
+ if (e.oldMoney !== void 0 && e.useLimit !== void 0) {
150
+ let l = ((e.oldMoney - (e.netSalvage || 0)) / e.useLimit / 12).toFixed(2);
151
+ e.monthDepreciation = isNaN(parseFloat(l)) || parseFloat(l) <= 0 || parseFloat(l) == 1 / 0 ? "0.00" : parseFloat(l);
152
+ } else
153
+ e.monthDepreciation = "0.00";
154
+ });
155
+ const I = async () => {
156
+ var l, o;
157
+ e.monthDepreciation = (l = e.monthDepreciation) == null ? void 0 : l.toString(), await ((o = h.value) == null ? void 0 : o.validate((u) => {
158
+ u && (D.value ? c.update(e).then((s) => {
159
+ s.status === 200 && (C({
160
+ message: i("common.submitSuccess"),
161
+ type: "success"
162
+ }), p.value && (p.value = !1), v("refresh", s.status === 200));
163
+ }) : c.create(e).then((s) => {
164
+ s.status === 200 && (C({
165
+ message: i("common.submitSuccess"),
166
+ type: "success"
167
+ }), p.value && (p.value = !1), v("refresh", s.status === 200));
168
+ }));
169
+ }));
170
+ };
171
+ function q(l) {
172
+ return l.length > N ? parseFloat(l.slice(0, N)) : parseFloat(l);
173
+ }
174
+ function M() {
175
+ p.value && (p.value = !1);
176
+ }
177
+ return (l, o) => {
178
+ const u = m("el-input"), s = 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");
179
+ return J(), Q(K, {
180
+ modelValue: p.value,
181
+ "onUpdate:modelValue": o[16] || (o[16] = (n) => p.value = n),
182
+ onClose: M
183
+ }, {
184
+ footer: r(() => [
185
+ f("div", le, [
186
+ t(R, { onClick: M }, {
187
+ default: r(() => [
188
+ _(F(l.$t("common.cancel")), 1)
189
+ ]),
190
+ _: 1
191
+ }),
192
+ t(R, {
193
+ type: "primary",
194
+ onClick: I
195
+ }, {
196
+ default: r(() => [
197
+ _(F(l.$t("common.confirm")), 1)
198
+ ]),
199
+ _: 1
200
+ })
201
+ ])
202
+ ]),
203
+ default: r(() => [
204
+ t(O, {
205
+ ref_key: "assetFormRef",
206
+ ref: h,
207
+ model: a(e),
208
+ "label-width": "120px",
209
+ rules: y
210
+ }, {
211
+ default: r(() => [
212
+ x,
213
+ t($, null, {
214
+ default: r(() => [
215
+ t(d, { span: 12 }, {
216
+ default: r(() => [
217
+ t(s, {
218
+ label: l.$t("asset.name"),
219
+ prop: "name"
220
+ }, {
221
+ default: r(() => [
222
+ t(u, {
223
+ modelValue: a(e).name,
224
+ "onUpdate:modelValue": o[0] || (o[0] = (n) => a(e).name = n),
225
+ placeholder: l.$t("asset.nameRequired"),
226
+ "show-word-limit": "",
227
+ clearable: ""
228
+ }, null, 8, ["modelValue", "placeholder"])
229
+ ]),
230
+ _: 1
231
+ }, 8, ["label"])
232
+ ]),
233
+ _: 1
234
+ }),
235
+ t(d, { span: 12 }, {
236
+ default: r(() => [
237
+ t(s, {
238
+ label: l.$t("asset.code"),
239
+ prop: "code"
240
+ }, {
241
+ default: r(() => [
242
+ t(u, {
243
+ modelValue: a(e).code,
244
+ "onUpdate:modelValue": o[1] || (o[1] = (n) => a(e).code = n),
245
+ placeholder: l.$t("asset.codeRequired"),
246
+ "show-word-limit": "",
247
+ clearable: ""
248
+ }, null, 8, ["modelValue", "placeholder"])
249
+ ]),
250
+ _: 1
251
+ }, 8, ["label"])
252
+ ]),
253
+ _: 1
254
+ }),
255
+ t(d, { span: 12 }, {
256
+ default: r(() => [
257
+ t(s, {
258
+ label: l.$t("asset.number"),
259
+ prop: "number"
260
+ }, {
261
+ default: r(() => [
262
+ t(u, {
263
+ modelValue: a(e).number,
264
+ "onUpdate:modelValue": o[2] || (o[2] = (n) => a(e).number = n),
265
+ placeholder: l.$t("asset.numberRequired"),
266
+ "show-word-limit": "",
267
+ clearable: "",
268
+ type: "number",
269
+ min: "1",
270
+ onChange: o[3] || (o[3] = (n) => {
271
+ var b;
272
+ return a(e).number = q((b = a(e).number) == null ? void 0 : b.toString());
273
+ })
274
+ }, null, 8, ["modelValue", "placeholder"])
275
+ ]),
276
+ _: 1
277
+ }, 8, ["label"])
278
+ ]),
279
+ _: 1
280
+ }),
281
+ t(d, { span: 12 }, {
282
+ default: r(() => [
283
+ t(s, {
284
+ label: l.$t("asset.buyMoney"),
285
+ prop: "buyMoney"
286
+ }, {
287
+ default: r(() => [
288
+ W(t(u, {
289
+ modelValue: a(e).buyMoney,
290
+ "onUpdate:modelValue": o[4] || (o[4] = (n) => a(e).buyMoney = n),
291
+ placeholder: l.$t("asset.buyMoneyRequired"),
292
+ "show-word-limit": "",
293
+ clearable: "",
294
+ type: "number",
295
+ min: "1",
296
+ onChange: o[5] || (o[5] = (n) => {
297
+ var b;
298
+ return a(e).buyMoney = q(
299
+ (b = a(e).buyMoney) == null ? void 0 : b.toString()
300
+ );
301
+ })
302
+ }, null, 8, ["modelValue", "placeholder"]), [
303
+ [A, 4]
304
+ ])
305
+ ]),
306
+ _: 1
307
+ }, 8, ["label"])
308
+ ]),
309
+ _: 1
310
+ }),
311
+ t(d, { span: 12 }, {
312
+ default: r(() => [
313
+ t(s, {
314
+ label: l.$t("asset.unit"),
315
+ prop: "unit"
316
+ }, {
317
+ default: r(() => [
318
+ t(u, {
319
+ modelValue: a(e).unit,
320
+ "onUpdate:modelValue": o[6] || (o[6] = (n) => a(e).unit = n),
321
+ placeholder: l.$t("asset.unitRequired"),
322
+ "show-word-limit": "",
323
+ clearable: ""
324
+ }, null, 8, ["modelValue", "placeholder"])
325
+ ]),
326
+ _: 1
327
+ }, 8, ["label"])
328
+ ]),
329
+ _: 1
330
+ }),
331
+ t(d, { span: 12 }, {
332
+ default: r(() => [
333
+ t(s, {
334
+ label: l.$t("asset.model"),
335
+ prop: "model"
336
+ }, {
337
+ default: r(() => [
338
+ t(u, {
339
+ modelValue: a(e).model,
340
+ "onUpdate:modelValue": o[7] || (o[7] = (n) => a(e).model = n),
341
+ placeholder: l.$t("asset.modelRequired"),
342
+ "show-word-limit": "",
343
+ clearable: ""
344
+ }, null, 8, ["modelValue", "placeholder"])
345
+ ]),
346
+ _: 1
347
+ }, 8, ["label"])
348
+ ]),
349
+ _: 1
350
+ }),
351
+ t(d, { span: 12 }, {
352
+ default: r(() => [
353
+ t(s, {
354
+ label: l.$t("asset.buyDate"),
355
+ prop: "buyDate"
356
+ }, {
357
+ default: r(() => [
358
+ t(B, {
359
+ modelValue: a(e).buyDate,
360
+ "onUpdate:modelValue": o[8] || (o[8] = (n) => a(e).buyDate = n),
361
+ type: "date",
362
+ placeholder: l.$t("asset.buyDateRequired"),
363
+ "value-format": "YYYY-MM-DD",
364
+ format: "YYYY-MM-DD",
365
+ style: { width: "100%" }
366
+ }, null, 8, ["modelValue", "placeholder"])
367
+ ]),
368
+ _: 1
369
+ }, 8, ["label"])
370
+ ]),
371
+ _: 1
372
+ }),
373
+ t(d, { span: 12 }, {
374
+ default: r(() => [
375
+ t(s, {
376
+ label: l.$t("asset.assetSort"),
377
+ prop: "assetSort"
378
+ }, {
379
+ default: r(() => [
380
+ t(w, {
381
+ modelValue: a(e).assetSort,
382
+ "onUpdate:modelValue": o[9] || (o[9] = (n) => a(e).assetSort = n),
383
+ placeholder: l.$t("asset.assetSortRequired"),
384
+ data: a(k).assetSortDictEnum.values,
385
+ style: { width: "100% !important" }
386
+ }, null, 8, ["modelValue", "placeholder", "data"])
387
+ ]),
388
+ _: 1
389
+ }, 8, ["label"])
390
+ ]),
391
+ _: 1
392
+ }),
393
+ t(d, { span: 12 }, {
394
+ default: r(() => [
395
+ t(s, {
396
+ label: l.$t("asset.oldMoney"),
397
+ prop: "oldMoney"
398
+ }, {
399
+ default: r(() => [
400
+ t(u, {
401
+ modelValue: a(e).oldMoney,
402
+ "onUpdate:modelValue": o[10] || (o[10] = (n) => a(e).oldMoney = n),
403
+ placeholder: l.$t("asset.oldMoneyRequired"),
404
+ readonly: !0,
405
+ "show-word-limit": "",
406
+ clearable: ""
407
+ }, null, 8, ["modelValue", "placeholder"])
408
+ ]),
409
+ _: 1
410
+ }, 8, ["label"])
411
+ ]),
412
+ _: 1
413
+ })
414
+ ]),
415
+ _: 1
416
+ }),
417
+ ee,
418
+ t($, null, {
419
+ default: r(() => [
420
+ t(d, { span: 12 }, {
421
+ default: r(() => [
422
+ t(s, {
423
+ label: l.$t("asset.depreciationType"),
424
+ prop: "depreciationType"
425
+ }, {
426
+ default: r(() => [
427
+ t(w, {
428
+ modelValue: a(e).depreciationType,
429
+ "onUpdate:modelValue": o[11] || (o[11] = (n) => a(e).depreciationType = n),
430
+ placeholder: l.$t("asset.depreciationType"),
431
+ data: a(k).depreciationTypeEnum.values,
432
+ style: { width: "100% !important" }
433
+ }, null, 8, ["modelValue", "placeholder", "data"])
434
+ ]),
435
+ _: 1
436
+ }, 8, ["label"])
437
+ ]),
438
+ _: 1
439
+ }),
440
+ t(d, { span: 12 }, {
441
+ default: r(() => [
442
+ t(s, {
443
+ label: l.$t("asset.useLimit"),
444
+ prop: "useLimit"
445
+ }, {
446
+ default: r(() => [
447
+ t(u, {
448
+ modelValue: a(e).useLimit,
449
+ "onUpdate:modelValue": o[12] || (o[12] = (n) => a(e).useLimit = n),
450
+ placeholder: l.$t("asset.useLimitRequired"),
451
+ disabled: a(e).depreciationType === "none",
452
+ "show-word-limit": "",
453
+ clearable: "",
454
+ type: "number",
455
+ min: "1"
456
+ }, null, 8, ["modelValue", "placeholder", "disabled"])
457
+ ]),
458
+ _: 1
459
+ }, 8, ["label"])
460
+ ]),
461
+ _: 1
462
+ }),
463
+ t(d, { span: 12 }, {
464
+ default: r(() => [
465
+ t(s, {
466
+ label: l.$t("asset.netSalvage"),
467
+ prop: "netSalvage"
468
+ }, {
469
+ default: r(() => [
470
+ t(u, {
471
+ modelValue: a(e).netSalvage,
472
+ "onUpdate:modelValue": o[13] || (o[13] = (n) => a(e).netSalvage = n),
473
+ disabled: a(e).depreciationType === "none",
474
+ placeholder: l.$t("asset.netSalvageRequired"),
475
+ "show-word-limit": "",
476
+ clearable: "",
477
+ type: "number",
478
+ min: "0"
479
+ }, null, 8, ["modelValue", "disabled", "placeholder"])
480
+ ]),
481
+ _: 1
482
+ }, 8, ["label"])
483
+ ]),
484
+ _: 1
485
+ }),
486
+ t(d, { span: 12 }, {
487
+ default: r(() => [
488
+ t(s, {
489
+ label: l.$t("asset.monthDepreciation"),
490
+ prop: "monthDepreciation"
491
+ }, {
492
+ default: r(() => [
493
+ t(u, {
494
+ modelValue: a(e).monthDepreciation,
495
+ "onUpdate:modelValue": o[14] || (o[14] = (n) => a(e).monthDepreciation = n),
496
+ disabled: a(e).depreciationType === "none",
497
+ placeholder: l.$t("asset.monthDepreciationRequired"),
498
+ "show-word-limit": "",
499
+ readonly: !0,
500
+ clearable: "",
501
+ min: "0",
502
+ type: "number"
503
+ }, null, 8, ["modelValue", "disabled", "placeholder"])
504
+ ]),
505
+ _: 1
506
+ }, 8, ["label"])
507
+ ]),
508
+ _: 1
509
+ }),
510
+ t(d, { span: 12 }, {
511
+ default: r(() => [
512
+ t(s, {
513
+ label: l.$t("asset.totalDepreciation"),
514
+ prop: "totalDepreciation"
515
+ }, {
516
+ default: r(() => [
517
+ t(u, {
518
+ modelValue: a(e).totalDepreciation,
519
+ "onUpdate:modelValue": o[15] || (o[15] = (n) => a(e).totalDepreciation = n),
520
+ disabled: a(e).depreciationType === "none",
521
+ placeholder: l.$t("asset.totalDepreciationRequired"),
522
+ "show-word-limit": "",
523
+ clearable: "",
524
+ min: "1",
525
+ type: "number"
526
+ }, null, 8, ["modelValue", "disabled", "placeholder"])
527
+ ]),
528
+ _: 1
529
+ }, 8, ["label"])
530
+ ]),
531
+ _: 1
532
+ })
533
+ ]),
534
+ _: 1
535
+ })
536
+ ]),
537
+ _: 1
538
+ }, 8, ["model", "rules"])
539
+ ]),
540
+ _: 1
541
+ }, 8, ["modelValue"]);
542
+ };
543
+ }
544
+ });
545
+ export {
546
+ ne as _
547
+ };