xyvcard-itsm-flow 0.0.6 → 0.0.7

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.
Files changed (39) hide show
  1. package/dist/_commonjsHelpers-BVfed4GL.mjs +28 -0
  2. package/dist/{edit-CWxy8_xc.mjs → edit-BZbho2xr.mjs} +1 -1
  3. package/dist/edit-DA920KWc.mjs +4 -0
  4. package/dist/edit-DxK8SrUd.mjs +4 -0
  5. package/dist/edit.vue_vue_type_script_setup_true_lang-CApSv9W3.mjs +589 -0
  6. package/dist/edit.vue_vue_type_script_setup_true_lang-CVKTwRZs.mjs +688 -0
  7. package/dist/edit.vue_vue_type_script_setup_true_lang-DlKz97iK.mjs +656 -0
  8. package/dist/el-message-D28AReoi.mjs +1238 -0
  9. package/dist/index-BZGkoyv9.mjs +68 -0
  10. package/dist/{index-C_jhIPZS.mjs → index-BwhWFAEK.mjs} +13 -12
  11. package/dist/index-CMOEnYG7.mjs +21 -0
  12. package/dist/index-CXarOLFt.mjs +361 -0
  13. package/dist/index-Clg5YSzX.mjs +598 -0
  14. package/dist/index-CwnMo6nD.mjs +1651 -0
  15. package/dist/index-DDwNGNtf.mjs +558 -0
  16. package/dist/index-Dimzx0Lh.mjs +344 -0
  17. package/dist/index-qOQQkVw8.mjs +345 -0
  18. package/dist/index.mjs +753 -727
  19. package/dist/style.css +1 -1
  20. package/dts/api/dict.d.ts +6 -0
  21. package/dts/api/index.d.ts +3 -1
  22. package/dts/api/itsm-flow-acceptance/index.d.ts +20 -0
  23. package/dts/api/itsm-flow-acceptance/types.d.ts +104 -0
  24. package/dts/api/itsm-flow-entrust/index.d.ts +3 -2
  25. package/dts/api/itsm-flow-entrust/types.d.ts +24 -3
  26. package/dts/api/itsm-flow-reckoning/index.d.ts +20 -0
  27. package/dts/api/itsm-flow-reckoning/types.d.ts +93 -0
  28. package/dts/components/TaskItsmFlowEntrustEdit/index.vue.d.ts +28 -0
  29. package/dts/constant.d.ts +8 -0
  30. package/dts/index.d.ts +1 -0
  31. package/dts/lang/itsm-flow/zh-cn.d.ts +38 -14
  32. package/dts/views/itsm-flow-acceptance/edit.vue.d.ts +28 -0
  33. package/dts/views/itsm-flow-acceptance/index.vue.d.ts +2 -0
  34. package/dts/views/itsm-flow-reckoning/edit.vue.d.ts +28 -0
  35. package/dts/views/itsm-flow-reckoning/index.vue.d.ts +2 -0
  36. package/package.json +4 -4
  37. package/dist/edit.vue_vue_type_script_setup_true_lang-Dxn9JNKd.mjs +0 -619
  38. package/dist/index-DKtAcP6b.mjs +0 -1582
  39. package/dist/index-DdDM4ocv.mjs +0 -327
@@ -0,0 +1,688 @@
1
+ import { defineComponent as te, mergeModels as T, ref as y, reactive as D, useModel as le, resolveComponent as m, openBlock as O, createBlock as B, withCtx as a, createElementVNode as K, createVNode as t, createTextVNode as v, toDisplayString as N, unref as d, createCommentVNode as oe } from "vue";
2
+ import { ElMessage as M } from "element-plus";
3
+ import { useI18n as ne } from "vue-i18n";
4
+ import { useUserStore as c, clearEmpty as f, request as p } from "jmash-core";
5
+ import { q as S } from "./index-CwnMo6nD.mjs";
6
+ import { C as ae, p as re } from "./index-qOQQkVw8.mjs";
7
+ class se {
8
+ getKey(e) {
9
+ return {
10
+ reckoningId: e.reckoningId
11
+ };
12
+ }
13
+ // 查询翻页信息结算单流程表
14
+ findPage(e) {
15
+ const o = c().user.tenant;
16
+ return f(e), p({
17
+ url: "/v1/itsmflow/itsm_flow_reckoning/mypage/" + o,
18
+ method: "get",
19
+ params: e
20
+ });
21
+ }
22
+ // 查询列表信息结算单流程表
23
+ findList(e) {
24
+ const o = c().user.tenant;
25
+ return f(e), p({
26
+ url: "/v1/itsmflow/itsm_flow_reckoning/list/" + o,
27
+ method: "get",
28
+ params: e
29
+ });
30
+ }
31
+ // 查询结算单流程表
32
+ findById(e) {
33
+ const o = c().user.tenant;
34
+ return f(e), p({
35
+ url: "/v1/itsmflow/itsm_flow_reckoning/id/" + o + "/" + e.reckoningId,
36
+ method: "get"
37
+ });
38
+ }
39
+ // 创建实体结算单流程表
40
+ create(e) {
41
+ return e.tenant = c().user.tenant, f(e), p({
42
+ url: "/v1/itsmflow/itsm_flow_reckoning",
43
+ method: "post",
44
+ data: e
45
+ });
46
+ }
47
+ // 修改实体结算单流程表
48
+ update(e) {
49
+ return e.tenant = c().user.tenant, f(e), p({
50
+ url: "/v1/itsmflow/itsm_flow_reckoning",
51
+ method: "patch",
52
+ data: e
53
+ });
54
+ }
55
+ // 上移下移
56
+ move(e, o) {
57
+ let s = { ...e };
58
+ return s.tenant = c().user.tenant, s.up = o, f(s), p({
59
+ url: "/v1/itsmflow/itsm_flow_reckoning/move",
60
+ method: "put",
61
+ data: s
62
+ });
63
+ }
64
+ // 启用/禁用
65
+ enable(e, o) {
66
+ let s = { ...e };
67
+ return s.tenant = c().user.tenant, s.enable = o, f(s), p({
68
+ url: "/v1/itsmflow/itsm_flow_reckoning/enable",
69
+ method: "put",
70
+ data: s
71
+ });
72
+ }
73
+ // 删除结算单流程表
74
+ delete(e) {
75
+ return e.tenant = c().user.tenant, f(e), p({
76
+ url: "/v1/itsmflow/itsm_flow_reckoning/id",
77
+ method: "delete",
78
+ params: e
79
+ });
80
+ }
81
+ // 批量删除结算单流程表
82
+ batchDelete(e) {
83
+ const o = e.map((i) => i.reckoningId), s = {
84
+ tenant: c().user.tenant,
85
+ reckoningId: o
86
+ };
87
+ return f(s), p({
88
+ url: "/v1/itsmflow/itsm_flow_reckoning/batch",
89
+ method: "put",
90
+ data: s
91
+ });
92
+ }
93
+ // 下载导入模板结算单流程表
94
+ downloadTemplate() {
95
+ const e = c().user.tenant;
96
+ return p({
97
+ url: "/v1/itsmflow/itsm_flow_reckoning/" + e + "/template.xlsx",
98
+ method: "get",
99
+ responseType: "blob",
100
+ params: {
101
+ tenant: c().user.tenant
102
+ }
103
+ });
104
+ }
105
+ // 导入结算单流程表
106
+ importExcel(e) {
107
+ return e.tenant = c().user.tenant, f(e), p({
108
+ url: "/v1/itsmflow/itsm_flow_reckoning/import",
109
+ method: "patch",
110
+ data: e
111
+ });
112
+ }
113
+ // 导出结算单流程表Excel文件
114
+ exportExcel(e) {
115
+ const o = c().user.tenant;
116
+ f(e);
117
+ const s = S.stringify(e, {
118
+ arrayFormat: "brackets",
119
+ allowDots: !0
120
+ });
121
+ return p({
122
+ url: "/v1/itsmflow/itsm_flow_reckoning/" + o + "/itsm_flow_reckonings.xlsx?" + s,
123
+ method: "get",
124
+ responseType: "blob"
125
+ });
126
+ }
127
+ // 打印结算单流程表PDF文件
128
+ exportPdf(e) {
129
+ const o = c().user.tenant;
130
+ f(e);
131
+ const s = S.stringify(e, {
132
+ arrayFormat: "brackets",
133
+ allowDots: !0
134
+ });
135
+ return p({
136
+ url: "/v1/itsmflow/itsm_flow_reckoning/" + o + "/itsm_flow_reckonings.pdf?" + s,
137
+ method: "get",
138
+ responseType: "blob"
139
+ });
140
+ }
141
+ }
142
+ const $ = new se();
143
+ function j(b, e) {
144
+ if (!(typeof b != "number" || typeof e != "number") && !(isNaN(b) || isNaN(e)))
145
+ return (b * e).toFixed(2);
146
+ }
147
+ function ie(b) {
148
+ return b.reduce((e, o) => {
149
+ const s = j(o.cost, o.serviceTime);
150
+ return e + (s ? parseFloat(s) : 0);
151
+ }, 0);
152
+ }
153
+ const ue = { class: "title" }, we = /* @__PURE__ */ te({
154
+ __name: "edit",
155
+ props: /* @__PURE__ */ T({
156
+ entityKey: {
157
+ type: Object,
158
+ default: () => {
159
+ }
160
+ }
161
+ }, {
162
+ modelValue: { type: Boolean },
163
+ modelModifiers: {}
164
+ }),
165
+ emits: /* @__PURE__ */ T(["refresh"], ["update:modelValue"]),
166
+ setup(b, { emit: e }) {
167
+ const { t: o } = ne(), s = y();
168
+ let i = D({
169
+ requestId: Math.random() * 10 + "",
170
+ updateMask: ""
171
+ });
172
+ const F = y([
173
+ {
174
+ userId: "",
175
+ serviceTime: 0,
176
+ cost: 0
177
+ }
178
+ ]);
179
+ function A() {
180
+ F.value.push({
181
+ userId: "",
182
+ serviceTime: 0,
183
+ cost: 0
184
+ });
185
+ }
186
+ function z(l) {
187
+ const r = F.value.indexOf(l.row);
188
+ r !== 0 && F.value.splice(r, 1);
189
+ }
190
+ const P = D({
191
+ reckoningId: [
192
+ {
193
+ required: !0,
194
+ message: o("itsmFlowReckoning.reckoningId"),
195
+ trigger: "change"
196
+ }
197
+ ],
198
+ processKey: [
199
+ {
200
+ required: !0,
201
+ message: o("itsmFlowReckoning.processKey"),
202
+ trigger: "change"
203
+ }
204
+ ],
205
+ procInstId: [
206
+ {
207
+ required: !0,
208
+ message: o("itsmFlowReckoning.procInstId"),
209
+ trigger: "change"
210
+ }
211
+ ],
212
+ applyStatus: [
213
+ {
214
+ required: !0,
215
+ message: o("itsmFlowReckoning.applyStatus"),
216
+ trigger: "change"
217
+ }
218
+ ],
219
+ entrustId: [
220
+ {
221
+ required: !0,
222
+ message: o("itsmFlowReckoning.entrustId"),
223
+ trigger: "change"
224
+ }
225
+ ],
226
+ contractName: [
227
+ {
228
+ required: !0,
229
+ message: o("itsmFlowReckoning.contractName"),
230
+ trigger: "change"
231
+ }
232
+ ],
233
+ contractNo: [
234
+ {
235
+ required: !0,
236
+ message: o("itsmFlowReckoning.contractNo"),
237
+ trigger: "change"
238
+ }
239
+ ],
240
+ entrustName: [
241
+ {
242
+ required: !0,
243
+ message: o("itsmFlowReckoning.entrustName"),
244
+ trigger: "change"
245
+ }
246
+ ],
247
+ serviceOrg: [
248
+ {
249
+ required: !0,
250
+ message: o("itsmFlowReckoning.serviceOrg"),
251
+ trigger: "change"
252
+ }
253
+ ],
254
+ acceptanceId: [
255
+ {
256
+ required: !0,
257
+ message: o("itsmFlowReckoning.acceptanceId"),
258
+ trigger: "change"
259
+ }
260
+ ],
261
+ acceptanceNo: [
262
+ {
263
+ required: !0,
264
+ message: o("itsmFlowReckoning.acceptanceNo"),
265
+ trigger: "change"
266
+ }
267
+ ],
268
+ orderNo: [
269
+ {
270
+ required: !0,
271
+ message: o("itsmFlowReckoning.orderNo"),
272
+ trigger: "change"
273
+ }
274
+ ],
275
+ reckoningNo: [
276
+ {
277
+ required: !0,
278
+ message: o("itsmFlowReckoning.reckoningNo"),
279
+ trigger: "change"
280
+ }
281
+ ],
282
+ serviceContent: [
283
+ {
284
+ required: !0,
285
+ message: o("itsmFlowReckoning.serviceContent"),
286
+ trigger: "change"
287
+ }
288
+ ]
289
+ }), h = le(b, "modelValue"), U = b, I = e, L = Object.keys(U.entityKey), q = y(L.length >= 1);
290
+ q.value && $.findById(U.entityKey).then(({ data: l }) => {
291
+ Object.assign(i, l);
292
+ });
293
+ const G = async () => {
294
+ }, H = async () => {
295
+ var l;
296
+ await ((l = s.value) == null ? void 0 : l.validate((r) => {
297
+ r && (q.value ? $.update(i).then((u) => {
298
+ console.log(u), u.status === 200 && (M({
299
+ message: o("common.submitSuccess"),
300
+ type: "success"
301
+ }), h.value && (h.value = !1), I("refresh", u.status === 200));
302
+ }) : $.create(i).then((u) => {
303
+ console.log(u), u.status === 200 && (M({
304
+ message: o("common.submitSuccess"),
305
+ type: "success"
306
+ }), h.value && (h.value = !1), I("refresh", u.status === 200));
307
+ }));
308
+ }));
309
+ };
310
+ function C() {
311
+ h.value && (h.value = !1);
312
+ }
313
+ const R = new ae({});
314
+ R.useValues();
315
+ function J(l, r) {
316
+ const u = R.values.find(
317
+ (g) => g.key === l
318
+ );
319
+ u ? (r.idNo = u.idNo ?? "", r.cost = Number(u.cost) || 0) : (r.idNo = "", r.cost = 0);
320
+ }
321
+ return (l, r) => {
322
+ const u = m("el-col"), g = m("el-input"), k = m("el-form-item"), E = m("el-row"), _ = m("el-table-column"), Q = m("jmash-select"), W = m("el-input-number"), X = m("DeleteFilled"), Y = m("el-icon"), Z = m("el-table"), V = m("el-button"), x = m("el-form"), ee = m("el-dialog");
323
+ return O(), B(ee, {
324
+ modelValue: h.value,
325
+ "onUpdate:modelValue": r[8] || (r[8] = (n) => h.value = n),
326
+ onClose: C
327
+ }, {
328
+ footer: a(() => [
329
+ K("div", ue, [
330
+ t(V, { onClick: C }, {
331
+ default: a(() => [
332
+ v(N(l.$t("common.cancel")), 1)
333
+ ]),
334
+ _: 1
335
+ }),
336
+ t(V, {
337
+ type: "primary",
338
+ onClick: G
339
+ }, {
340
+ default: a(() => [
341
+ v(N(l.$t("itsmFlowEntrustUser.save")), 1)
342
+ ]),
343
+ _: 1
344
+ }),
345
+ t(V, {
346
+ type: "primary",
347
+ onClick: H
348
+ }, {
349
+ default: a(() => [
350
+ v(N(l.$t("itsmFlowEntrustUser.submit")), 1)
351
+ ]),
352
+ _: 1
353
+ })
354
+ ])
355
+ ]),
356
+ default: a(() => [
357
+ t(x, {
358
+ ref_key: "itsmFlowReckoningFormRef",
359
+ ref: s,
360
+ model: d(i),
361
+ "label-width": "135px",
362
+ rules: P
363
+ }, {
364
+ default: a(() => [
365
+ t(E, null, {
366
+ default: a(() => [
367
+ t(u, { span: 24 }, {
368
+ default: a(() => r[9] || (r[9] = [
369
+ K("div", { class: "title" }, "委托服务合同结算清单", -1)
370
+ ])),
371
+ _: 1
372
+ }),
373
+ t(u, { span: 24 }, {
374
+ default: a(() => [
375
+ t(k, {
376
+ label: l.$t("itsmFlowReckoning.contractName"),
377
+ prop: "contractName"
378
+ }, {
379
+ default: a(() => [
380
+ t(g, {
381
+ modelValue: d(i).contractName,
382
+ "onUpdate:modelValue": r[0] || (r[0] = (n) => d(i).contractName = n),
383
+ placeholder: l.$t("itsmFlowReckoning.acceptanceNoRequired"),
384
+ disabled: ""
385
+ }, null, 8, ["modelValue", "placeholder"])
386
+ ]),
387
+ _: 1
388
+ }, 8, ["label"])
389
+ ]),
390
+ _: 1
391
+ }),
392
+ t(u, { span: 24 }, {
393
+ default: a(() => [
394
+ t(k, {
395
+ label: l.$t("itsmFlowReckoning.contractNo"),
396
+ prop: "contractNo"
397
+ }, {
398
+ default: a(() => [
399
+ t(g, {
400
+ modelValue: d(i).contractNo,
401
+ "onUpdate:modelValue": r[1] || (r[1] = (n) => d(i).contractNo = n),
402
+ placeholder: l.$t("itsmFlowReckoning.acceptanceNoRequired"),
403
+ disabled: ""
404
+ }, null, 8, ["modelValue", "placeholder"])
405
+ ]),
406
+ _: 1
407
+ }, 8, ["label"])
408
+ ]),
409
+ _: 1
410
+ }),
411
+ t(u, { span: 24 }, {
412
+ default: a(() => [
413
+ t(k, {
414
+ label: l.$t("itsmFlowReckoning.entrustName"),
415
+ prop: "entrustName"
416
+ }, {
417
+ default: a(() => [
418
+ t(g, {
419
+ modelValue: d(i).entrustName,
420
+ "onUpdate:modelValue": r[2] || (r[2] = (n) => d(i).entrustName = n),
421
+ placeholder: l.$t("itsmFlowReckoning.acceptanceNoRequired"),
422
+ disabled: ""
423
+ }, null, 8, ["modelValue", "placeholder"])
424
+ ]),
425
+ _: 1
426
+ }, 8, ["label"])
427
+ ]),
428
+ _: 1
429
+ }),
430
+ t(u, { span: 24 }, {
431
+ default: a(() => [
432
+ t(k, {
433
+ label: l.$t("itsmFlowReckoning.serviceOrg"),
434
+ prop: "serviceOrg"
435
+ }, {
436
+ default: a(() => [
437
+ t(g, {
438
+ modelValue: d(i).serviceOrg,
439
+ "onUpdate:modelValue": r[3] || (r[3] = (n) => d(i).serviceOrg = n),
440
+ placeholder: l.$t("itsmFlowReckoning.acceptanceNoRequired"),
441
+ disabled: ""
442
+ }, null, 8, ["modelValue", "placeholder"])
443
+ ]),
444
+ _: 1
445
+ }, 8, ["label"])
446
+ ]),
447
+ _: 1
448
+ }),
449
+ t(u, { span: 24 }, {
450
+ default: a(() => [
451
+ t(k, {
452
+ label: l.$t("itsmFlowReckoning.acceptanceNo"),
453
+ prop: "acceptanceNo"
454
+ }, {
455
+ default: a(() => [
456
+ t(g, {
457
+ modelValue: d(i).acceptanceNo,
458
+ "onUpdate:modelValue": r[4] || (r[4] = (n) => d(i).acceptanceNo = n),
459
+ placeholder: l.$t("itsmFlowReckoning.acceptanceNoRequireds"),
460
+ maxlength: "15",
461
+ "show-word-limit": "",
462
+ clearable: ""
463
+ }, null, 8, ["modelValue", "placeholder"])
464
+ ]),
465
+ _: 1
466
+ }, 8, ["label"])
467
+ ]),
468
+ _: 1
469
+ }),
470
+ t(u, { span: 24 }, {
471
+ default: a(() => [
472
+ t(k, {
473
+ label: l.$t("itsmFlowReckoning.orderNo"),
474
+ prop: "orderNo"
475
+ }, {
476
+ default: a(() => [
477
+ t(g, {
478
+ modelValue: d(i).orderNo,
479
+ "onUpdate:modelValue": r[5] || (r[5] = (n) => d(i).orderNo = n),
480
+ placeholder: l.$t("itsmFlowReckoning.orderNoRequired"),
481
+ disabled: ""
482
+ }, null, 8, ["modelValue", "placeholder"])
483
+ ]),
484
+ _: 1
485
+ }, 8, ["label"])
486
+ ]),
487
+ _: 1
488
+ }),
489
+ t(u, { span: 24 }, {
490
+ default: a(() => [
491
+ t(k, {
492
+ label: l.$t("itsmFlowReckoning.reckoningNo"),
493
+ prop: "reckoningNo"
494
+ }, {
495
+ default: a(() => [
496
+ t(g, {
497
+ modelValue: d(i).reckoningNo,
498
+ "onUpdate:modelValue": r[6] || (r[6] = (n) => d(i).reckoningNo = n),
499
+ placeholder: l.$t("itsmFlowReckoning.reckoningNoRequired"),
500
+ disabled: ""
501
+ }, null, 8, ["modelValue", "placeholder"])
502
+ ]),
503
+ _: 1
504
+ }, 8, ["label"])
505
+ ]),
506
+ _: 1
507
+ }),
508
+ t(u, { span: 24 }, {
509
+ default: a(() => [
510
+ t(k, {
511
+ label: l.$t("itsmFlowReckoning.serviceContent"),
512
+ prop: "serviceContent"
513
+ }, {
514
+ default: a(() => [
515
+ t(g, {
516
+ modelValue: d(i).serviceContent,
517
+ "onUpdate:modelValue": r[7] || (r[7] = (n) => d(i).serviceContent = n),
518
+ placeholder: l.$t("itsmFlowReckoning.serviceContentRequired"),
519
+ maxlength: "500",
520
+ rows: 4,
521
+ type: "textarea",
522
+ "show-word-limit": "",
523
+ clearable: ""
524
+ }, null, 8, ["modelValue", "placeholder"])
525
+ ]),
526
+ _: 1
527
+ }, 8, ["label"])
528
+ ]),
529
+ _: 1
530
+ })
531
+ ]),
532
+ _: 1
533
+ }),
534
+ t(Z, {
535
+ data: F.value,
536
+ border: "",
537
+ style: { width: "100%" }
538
+ }, {
539
+ default: a(() => [
540
+ t(_, {
541
+ type: "index",
542
+ label: l.$t("itsmFlowEntrustUser.index"),
543
+ width: "60",
544
+ align: "center"
545
+ }, null, 8, ["label"]),
546
+ t(_, {
547
+ prop: "userId",
548
+ label: l.$t("itsmFlowEntrustUser.userId"),
549
+ "header-align": "center",
550
+ width: "130"
551
+ }, {
552
+ default: a(({ row: n }) => [
553
+ t(Q, {
554
+ modelValue: n.userId,
555
+ "onUpdate:modelValue": (w) => n.userId = w,
556
+ placeholder: l.$t("itsmFlowEntrustUser.userIdRequired"),
557
+ data: d(R).values,
558
+ clearable: "",
559
+ filterable: "",
560
+ class: "w-full",
561
+ onChange: (w) => J(w, n)
562
+ }, null, 8, ["modelValue", "onUpdate:modelValue", "placeholder", "data", "onChange"])
563
+ ]),
564
+ _: 1
565
+ }, 8, ["label"]),
566
+ t(_, {
567
+ label: l.$t("itsmFlowEntrustUser.idNo"),
568
+ "header-align": "center",
569
+ width: "190"
570
+ }, {
571
+ default: a(({ row: n }) => [
572
+ t(g, {
573
+ modelValue: n.idNo,
574
+ "onUpdate:modelValue": (w) => n.idNo = w,
575
+ placeholder: l.$t("itsmFlowEntrustUser.userIdRequireds"),
576
+ disabled: ""
577
+ }, null, 8, ["modelValue", "onUpdate:modelValue", "placeholder"])
578
+ ]),
579
+ _: 1
580
+ }, 8, ["label"]),
581
+ t(_, {
582
+ label: l.$t("itsmFlowEntrustUser.cost"),
583
+ "header-align": "center",
584
+ width: "130"
585
+ }, {
586
+ default: a(({ row: n }) => [
587
+ t(g, {
588
+ modelValue: n.cost,
589
+ "onUpdate:modelValue": (w) => n.cost = w,
590
+ placeholder: l.$t("itsmFlowEntrustUser.userIdRequireds"),
591
+ disabled: ""
592
+ }, null, 8, ["modelValue", "onUpdate:modelValue", "placeholder"])
593
+ ]),
594
+ _: 1
595
+ }, 8, ["label"]),
596
+ t(_, {
597
+ prop: "serviceTime",
598
+ label: l.$t("settlement.serviceTime"),
599
+ "header-align": "center",
600
+ width: "140"
601
+ }, {
602
+ default: a(({ row: n }) => [
603
+ t(W, {
604
+ modelValue: n.serviceTime,
605
+ "onUpdate:modelValue": (w) => n.serviceTime = w,
606
+ precision: 1,
607
+ step: 0.1,
608
+ min: 0,
609
+ style: { width: "100%" }
610
+ }, null, 8, ["modelValue", "onUpdate:modelValue"])
611
+ ]),
612
+ _: 1
613
+ }, 8, ["label"]),
614
+ t(_, {
615
+ prop: "totalAmount",
616
+ label: l.$t("settlement.totalAmount"),
617
+ "header-align": "center"
618
+ }, {
619
+ default: a(({ row: n }) => [
620
+ v(N(d(j)(n.cost, n.serviceTime)), 1)
621
+ ]),
622
+ _: 1
623
+ }, 8, ["label"]),
624
+ t(_, {
625
+ label: l.$t("common.operate"),
626
+ width: "60",
627
+ align: "center"
628
+ }, {
629
+ default: a((n) => [
630
+ n.$index !== 0 ? (O(), B(Y, {
631
+ key: 0,
632
+ onClick: (w) => z(n),
633
+ size: "18",
634
+ style: { cursor: "pointer", color: "inherit" },
635
+ class: "hover-blue"
636
+ }, {
637
+ default: a(() => [
638
+ t(X)
639
+ ]),
640
+ _: 2
641
+ }, 1032, ["onClick"])) : oe("", !0)
642
+ ]),
643
+ _: 1
644
+ }, 8, ["label"])
645
+ ]),
646
+ _: 1
647
+ }, 8, ["data"]),
648
+ t(V, {
649
+ icon: d(re),
650
+ class: "addButton",
651
+ onClick: A
652
+ }, {
653
+ default: a(() => [
654
+ v(N(d(o)("common.add")), 1)
655
+ ]),
656
+ _: 1
657
+ }, 8, ["icon"]),
658
+ t(E, null, {
659
+ default: a(() => [
660
+ t(u, { span: 16 }, {
661
+ default: a(() => [
662
+ t(k, {
663
+ label: l.$t("settlement.totalPrice")
664
+ }, {
665
+ default: a(() => [
666
+ v(N(d(ie)(F.value)), 1)
667
+ ]),
668
+ _: 1
669
+ }, 8, ["label"])
670
+ ]),
671
+ _: 1
672
+ })
673
+ ]),
674
+ _: 1
675
+ })
676
+ ]),
677
+ _: 1
678
+ }, 8, ["model", "rules"])
679
+ ]),
680
+ _: 1
681
+ }, 8, ["modelValue"]);
682
+ };
683
+ }
684
+ });
685
+ export {
686
+ we as _,
687
+ $ as i
688
+ };