xyvcard-itsm-flow 0.0.7 → 0.0.8

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 (50) hide show
  1. package/dist/FileSaver.min-BeKvLuyk.mjs +73 -0
  2. package/dist/common--K4gGsNT.mjs +85 -0
  3. package/dist/{edit-BZbho2xr.mjs → edit-B621RtNS.mjs} +1 -1
  4. package/dist/{edit-DA920KWc.mjs → edit-CoRzQ2SK.mjs} +1 -1
  5. package/dist/{edit-DxK8SrUd.mjs → edit-Czk64Yon.mjs} +1 -1
  6. package/dist/edit.vue_vue_type_script_setup_true_lang-AhC28_ys.mjs +670 -0
  7. package/dist/edit.vue_vue_type_script_setup_true_lang-BYz7O3Xi.mjs +523 -0
  8. package/dist/edit.vue_vue_type_script_setup_true_lang-D-UzvXtU.mjs +567 -0
  9. package/dist/{el-message-D28AReoi.mjs → el-message-FfNjxLv_.mjs} +26 -26
  10. package/dist/index-B5vmtcUk.mjs +528 -0
  11. package/dist/index-BCP5cBN6.mjs +486 -0
  12. package/dist/{index-Dimzx0Lh.mjs → index-BJl7xHYx.mjs} +119 -124
  13. package/dist/{index-BwhWFAEK.mjs → index-BlBkHqXR.mjs} +75 -89
  14. package/dist/index-CRHpl0qA.mjs +501 -0
  15. package/dist/index-CVbpEq7V.mjs +442 -0
  16. package/dist/{index-CXarOLFt.mjs → index-CdzhLCkX.mjs} +119 -124
  17. package/dist/index-DX1PURJy.mjs +624 -0
  18. package/dist/index-DY7ZV5kq.mjs +567 -0
  19. package/dist/index-Dld6YbIV.mjs +484 -0
  20. package/dist/index.mjs +764 -771
  21. package/dist/style.css +1 -1
  22. package/dts/api/dict.d.ts +9 -0
  23. package/dts/api/index.d.ts +4 -1
  24. package/dts/api/itsm-flow-acceptance/index.d.ts +4 -10
  25. package/dts/api/itsm-flow-acceptance/types.d.ts +17 -38
  26. package/dts/api/itsm-flow-entrust/index.d.ts +3 -0
  27. package/dts/api/itsm-flow-entrust/types.d.ts +2 -2
  28. package/dts/api/itsm-flow-entrust-user/types.d.ts +1 -3
  29. package/dts/api/itsm-flow-reckoning/index.d.ts +4 -10
  30. package/dts/api/itsm-flow-reckoning/types.d.ts +19 -31
  31. package/dts/components/TaskItsmFlowAcceptance/index.vue.d.ts +28 -0
  32. package/dts/components/TaskItsmFlowAcceptanceEdit/index.vue.d.ts +28 -0
  33. package/dts/components/TaskItsmFlowReckoning/index.vue.d.ts +28 -0
  34. package/dts/components/TaskItsmFlowReckoningEdit/index.vue.d.ts +28 -0
  35. package/dts/index.d.ts +4 -0
  36. package/dts/lang/itsm-flow/zh-cn.d.ts +1 -17
  37. package/dts/utils/common.d.ts +2 -2
  38. package/dts/views/itsm-flow-entrust/edit.vue.d.ts +4 -4
  39. package/dts/views/itsm-flow-reckoning/edit.vue.d.ts +4 -4
  40. package/package.json +1 -1
  41. package/dist/_commonjsHelpers-BVfed4GL.mjs +0 -28
  42. package/dist/edit.vue_vue_type_script_setup_true_lang-CApSv9W3.mjs +0 -589
  43. package/dist/edit.vue_vue_type_script_setup_true_lang-CVKTwRZs.mjs +0 -688
  44. package/dist/edit.vue_vue_type_script_setup_true_lang-DlKz97iK.mjs +0 -656
  45. package/dist/index-BZGkoyv9.mjs +0 -68
  46. package/dist/index-CMOEnYG7.mjs +0 -21
  47. package/dist/index-Clg5YSzX.mjs +0 -598
  48. package/dist/index-CwnMo6nD.mjs +0 -1651
  49. package/dist/index-DDwNGNtf.mjs +0 -558
  50. package/dist/index-qOQQkVw8.mjs +0 -345
@@ -1,5 +1,5 @@
1
- import { getCurrentInstance as z, inject as j, ref as b, computed as d, unref as l, getCurrentScope as bt, onScopeDispose as _t, readonly as Ct, onMounted as Ae, nextTick as Be, watch as Q, isRef as wt, warn as Ot, provide as St, defineComponent as P, openBlock as T, createElementBlock as J, mergeProps as Tt, renderSlot as k, normalizeClass as N, createVNode as ae, Transition as Le, withCtx as G, withDirectives as ke, createElementVNode as oe, normalizeStyle as Ve, createTextVNode as Nt, toDisplayString as Re, vShow as Ke, shallowReactive as Et, createBlock as B, createCommentVNode as U, resolveDynamicComponent as It, Fragment as xt, withModifiers as Pt, isVNode as He, render as ve } from "vue";
2
- import { s as Ue, w as Ge, c as Ze, d as Je, e as $t } from "./index-qOQQkVw8.mjs";
1
+ import { getCurrentInstance as z, inject as j, ref as b, computed as d, unref as l, getCurrentScope as bt, onScopeDispose as _t, readonly as Ct, onMounted as Ae, nextTick as Be, watch as Q, isRef as wt, warn as Ot, provide as St, defineComponent as P, openBlock as T, createElementBlock as J, mergeProps as Tt, renderSlot as L, normalizeClass as N, createVNode as ae, Transition as ke, withCtx as G, withDirectives as Le, createElementVNode as oe, normalizeStyle as Ve, createTextVNode as Nt, toDisplayString as Re, vShow as Ke, shallowReactive as Et, createBlock as B, createCommentVNode as U, resolveDynamicComponent as It, Fragment as xt, withModifiers as Pt, isVNode as He, render as ve } from "vue";
2
+ import { s as Ue, w as Ge, j as Ze, k as Je, l as $t } from "./index-DY7ZV5kq.mjs";
3
3
  const We = Symbol(), Z = "el", jt = "is-", E = (e, t, n, o, r) => {
4
4
  let s = `${e}-${t}`;
5
5
  return n && (s += `-${n}`), o && (s += `__${o}`), r && (s += `--${r}`), s;
@@ -45,24 +45,24 @@ const We = Symbol(), Z = "el", jt = "is-", E = (e, t, n, o, r) => {
45
45
  process.env.NODE_ENV !== "production" && Object.freeze({});
46
46
  process.env.NODE_ENV !== "production" && Object.freeze([]);
47
47
  const Dt = Object.prototype.hasOwnProperty, he = (e, t) => Dt.call(e, t), W = (e) => typeof e == "function", V = (e) => typeof e == "string", Qe = (e) => e !== null && typeof e == "object";
48
- var Mt = typeof global == "object" && global && global.Object === Object && global, Ft = typeof self == "object" && self && self.Object === Object && self, ie = Mt || Ft || Function("return this")(), D = ie.Symbol, qe = Object.prototype, At = qe.hasOwnProperty, Bt = qe.toString, L = D ? D.toStringTag : void 0;
49
- function Lt(e) {
50
- var t = At.call(e, L), n = e[L];
48
+ var Mt = typeof global == "object" && global && global.Object === Object && global, Ft = typeof self == "object" && self && self.Object === Object && self, ie = Mt || Ft || Function("return this")(), D = ie.Symbol, qe = Object.prototype, At = qe.hasOwnProperty, Bt = qe.toString, k = D ? D.toStringTag : void 0;
49
+ function kt(e) {
50
+ var t = At.call(e, k), n = e[k];
51
51
  try {
52
- e[L] = void 0;
52
+ e[k] = void 0;
53
53
  var o = !0;
54
54
  } catch {
55
55
  }
56
56
  var r = Bt.call(e);
57
- return o && (t ? e[L] = n : delete e[L]), r;
57
+ return o && (t ? e[k] = n : delete e[k]), r;
58
58
  }
59
- var kt = Object.prototype, Vt = kt.toString;
59
+ var Lt = Object.prototype, Vt = Lt.toString;
60
60
  function Rt(e) {
61
61
  return Vt.call(e);
62
62
  }
63
63
  var Kt = "[object Null]", Ht = "[object Undefined]", be = D ? D.toStringTag : void 0;
64
64
  function Xe(e) {
65
- return e == null ? e === void 0 ? Ht : Kt : be && be in Object(e) ? Lt(e) : Rt(e);
65
+ return e == null ? e === void 0 ? Ht : Kt : be && be in Object(e) ? kt(e) : Rt(e);
66
66
  }
67
67
  function Ut(e) {
68
68
  return e != null && typeof e == "object";
@@ -240,11 +240,11 @@ function X(e, t) {
240
240
  var n = e.__data__;
241
241
  return Bn(t) ? n[typeof t == "string" ? "string" : "hash"] : n.map;
242
242
  }
243
- function Ln(e) {
243
+ function kn(e) {
244
244
  var t = X(this, e).delete(e);
245
245
  return this.size -= t ? 1 : 0, t;
246
246
  }
247
- function kn(e) {
247
+ function Ln(e) {
248
248
  return X(this, e).get(e);
249
249
  }
250
250
  function Vn(e) {
@@ -262,8 +262,8 @@ function $(e) {
262
262
  }
263
263
  }
264
264
  $.prototype.clear = An;
265
- $.prototype.delete = Ln;
266
- $.prototype.get = kn;
265
+ $.prototype.delete = kn;
266
+ $.prototype.get = Ln;
267
267
  $.prototype.has = Vn;
268
268
  $.prototype.set = Rn;
269
269
  var Kn = "Expected a function";
@@ -770,19 +770,19 @@ const pt = (e, t) => (e.install = (n) => {
770
770
  n.component(o.name, o);
771
771
  }, e), Bo = (e, t) => (e.install = (n) => {
772
772
  e._context = n._context, n.config.globalProperties[t] = e;
773
- }, e), Lo = K({
773
+ }, e), ko = K({
774
774
  size: {
775
775
  type: S([Number, String])
776
776
  },
777
777
  color: {
778
778
  type: String
779
779
  }
780
- }), ko = P({
780
+ }), Lo = P({
781
781
  name: "ElIcon",
782
782
  inheritAttrs: !1
783
783
  }), Vo = /* @__PURE__ */ P({
784
- ...ko,
785
- props: Lo,
784
+ ...Lo,
785
+ props: ko,
786
786
  setup(e) {
787
787
  const t = e, n = se("icon"), o = d(() => {
788
788
  const { size: r, color: s } = t;
@@ -795,7 +795,7 @@ const pt = (e, t) => (e.install = (n) => {
795
795
  class: l(n).b(),
796
796
  style: l(o)
797
797
  }, r.$attrs), [
798
- k(r.$slots, "default")
798
+ L(r.$slots, "default")
799
799
  ], 16));
800
800
  }
801
801
  });
@@ -884,13 +884,13 @@ const Me = pt(Ro), Ko = S([
884
884
  }), (a, i) => (T(), J("div", {
885
885
  class: N(l(o).b())
886
886
  }, [
887
- k(a.$slots, "default"),
888
- ae(Le, {
887
+ L(a.$slots, "default"),
888
+ ae(ke, {
889
889
  name: `${l(o).namespace.value}-zoom-in-center`,
890
890
  persisted: ""
891
891
  }, {
892
892
  default: G(() => [
893
- ke(oe("sup", {
893
+ Le(oe("sup", {
894
894
  class: N([
895
895
  l(o).e("content"),
896
896
  l(o).em("content", a.type),
@@ -901,7 +901,7 @@ const Me = pt(Ro), Ko = S([
901
901
  ]),
902
902
  style: Ve(l(s))
903
903
  }, [
904
- k(a.$slots, "content", { value: l(r) }, () => [
904
+ L(a.$slots, "content", { value: l(r) }, () => [
905
905
  Nt(Re(l(r)), 1)
906
906
  ])
907
907
  ], 6), [
@@ -951,7 +951,7 @@ P({
951
951
  Object.assign(C, o ?? {});
952
952
  }, { immediate: !0, deep: !0 });
953
953
  const n = dt(e);
954
- return () => k(t, "default", { config: n == null ? void 0 : n.value });
954
+ return () => L(t, "default", { config: n == null ? void 0 : n.value });
955
955
  }
956
956
  });
957
957
  const ft = ["success", "info", "warning", "error"], v = Uo({
@@ -1084,7 +1084,7 @@ const ft = ["success", "info", "warning", "error"], v = Uo({
1084
1084
  visible: m,
1085
1085
  bottom: mt,
1086
1086
  close: H
1087
- }), (p, dr) => (T(), B(Le, {
1087
+ }), (p, dr) => (T(), B(ke, {
1088
1088
  name: l(a).b("fade"),
1089
1089
  onBeforeEnter: (ht) => s.value = !0,
1090
1090
  onBeforeLeave: p.onClose,
@@ -1092,7 +1092,7 @@ const ft = ["success", "info", "warning", "error"], v = Uo({
1092
1092
  persisted: ""
1093
1093
  }, {
1094
1094
  default: G(() => [
1095
- ke(oe("div", {
1095
+ Le(oe("div", {
1096
1096
  id: p.id,
1097
1097
  ref_key: "messageRef",
1098
1098
  ref: u,
@@ -1123,7 +1123,7 @@ const ft = ["success", "info", "warning", "error"], v = Uo({
1123
1123
  ]),
1124
1124
  _: 1
1125
1125
  }, 8, ["class"])) : U("v-if", !0),
1126
- k(p.$slots, "default", {}, () => [
1126
+ L(p.$slots, "default", {}, () => [
1127
1127
  p.dangerouslyUseHTMLString ? (T(), J(xt, { key: 1 }, [
1128
1128
  U(" Caution here, message could've been compromised, never use user's input as message "),
1129
1129
  oe("p", {
@@ -0,0 +1,528 @@
1
+ import { defineComponent as ae, mergeModels as ne, ref as g, useModel as se, reactive as E, computed as de, resolveComponent as i, openBlock as k, createElementBlock as D, Fragment as B, createVNode as t, withCtx as a, createElementVNode as r, unref as d, renderList as re, createBlock as O, createTextVNode as N, toDisplayString as w, createCommentVNode as ie } from "vue";
2
+ import "element-plus";
3
+ import { useRoute as ue } from "vue-router";
4
+ import { useI18n as ce } from "vue-i18n";
5
+ import { g as me, C as M, D as I, e as pe, h as fe, p as be } from "./index-DY7ZV5kq.mjs";
6
+ import { i as z, t as ve, a as ge } from "./common--K4gGsNT.mjs";
7
+ import { E as Ne } from "./el-message-FfNjxLv_.mjs";
8
+ const Ue = /* @__PURE__ */ ae({
9
+ __name: "index",
10
+ props: /* @__PURE__ */ ne({
11
+ task: {
12
+ type: Object,
13
+ default: () => {
14
+ }
15
+ }
16
+ }, {
17
+ modelValue: {},
18
+ modelModifiers: {}
19
+ }),
20
+ emits: ["update:modelValue"],
21
+ setup(_, { expose: A }) {
22
+ const { t: h } = ce(), R = g([]), F = new me({
23
+ applyStatus: M.applyStatus.finished
24
+ });
25
+ F.useValues(), I.orgIdBizDict.useValues();
26
+ const P = ue(), U = _, V = g({
27
+ curPage: 1,
28
+ pageSize: 10,
29
+ reckoningId: P.query.applyId
30
+ }), f = se(_, "modelValue"), $ = g();
31
+ let n = E({
32
+ requestId: Math.random() * 10 + ""
33
+ });
34
+ const S = de(() => p.value.map((l) => ({
35
+ cost: typeof l.cost == "number" ? l.cost : 0,
36
+ duration: typeof l.duration == "number" ? l.duration : 0
37
+ }))), p = g([
38
+ {
39
+ userId: "",
40
+ idNo: "",
41
+ cost: 0,
42
+ duration: 0,
43
+ entrustUserId: ""
44
+ }
45
+ ]);
46
+ function j() {
47
+ p.value.push({
48
+ userId: "",
49
+ idNo: "",
50
+ cost: 0,
51
+ duration: 0,
52
+ entrustUserId: ""
53
+ });
54
+ }
55
+ function L(l) {
56
+ const e = p.value.indexOf(l.row);
57
+ e !== 0 && p.value.splice(e, 1);
58
+ }
59
+ const T = E({
60
+ acceptanceNo: [
61
+ {
62
+ required: !0,
63
+ message: h("itsmFlowReckoning.acceptanceNoRequireds"),
64
+ trigger: "change"
65
+ }
66
+ ],
67
+ orderNo: [
68
+ {
69
+ required: !0,
70
+ message: h("itsmFlowReckoning.orderNoRequiredNull"),
71
+ trigger: "change"
72
+ }
73
+ ]
74
+ });
75
+ U.task.businessKey && K(), A({
76
+ changeModel: () => J()
77
+ });
78
+ function K() {
79
+ V.value.reckoningId = U.task.businessKey, z.findById({ reckoningId: V.value.reckoningId }).then(({ data: l }) => {
80
+ Object.assign(n, l), y(l.acceptanceNo), pe.findList({ actionId: l.entrustId }).then(({ data: e }) => {
81
+ const s = e.results.map(
82
+ (c) => ({
83
+ ...c
84
+ // duration:
85
+ // typeof item.duration === "string"
86
+ // ? ((item.duration.split(",") || []) as string[])
87
+ // : [],
88
+ })
89
+ );
90
+ p.value = s;
91
+ });
92
+ });
93
+ }
94
+ function W() {
95
+ v.value = { values: [] }, p.value.forEach((l) => {
96
+ l.userId = "", l.idNo = "", l.cost = 0, l.duration = 0;
97
+ });
98
+ }
99
+ const v = g({});
100
+ function y(l) {
101
+ const e = F.values.find(
102
+ (s) => s.key === l
103
+ );
104
+ n.contractName = (e == null ? void 0 : e.contractName) ?? "", n.contractNo = (e == null ? void 0 : e.contractNo) ?? "", n.serviceOrg = (e == null ? void 0 : e.serviceOrg) ?? "", n.entrustName = (e == null ? void 0 : e.entrustName) ?? "", n.orderNo = (e == null ? void 0 : e.orderNo) ?? "", n.serviceContent = (e == null ? void 0 : e.serviceContent) ?? "", n.entrustId = (e == null ? void 0 : e.entrustId) ?? "", n.acceptanceId = (e == null ? void 0 : e.acceptanceId) ?? "", W(), v.value = new fe({
105
+ actionId: e.entrustId
106
+ }), v.value.useValues();
107
+ }
108
+ function G(l, e) {
109
+ const s = v.value.values.find(
110
+ (c) => c.key === l
111
+ );
112
+ s ? (e.userName = s.value ?? "", e.idNo = s.idNo ?? "", e.cost = Number(s.cost) || 0, e.entrustUserId = s.entrustUserId ?? "") : (e.userName = "", e.idNo = "", e.cost = 0, e.entrustUserId = "");
113
+ }
114
+ function H() {
115
+ R.value = p.value.map((l) => ({
116
+ entrustUserId: l.entrustUserId,
117
+ duration: (l.duration ?? 0).toString()
118
+ })).filter((l) => l.entrustUserId && l.duration !== "0");
119
+ }
120
+ function J() {
121
+ return f.value && (f.value.selectActions = [
122
+ { key: "true", value: "同意" },
123
+ { key: "false", value: "不同意" }
124
+ ], f.value.varName = "approved", f.value.module = "", f.value.module = M.MODULE_ITSMFLOW), new Promise((l, e) => {
125
+ var s;
126
+ (s = $.value) == null || s.validate((c) => {
127
+ c ? f.value && (f.value.comment = "", H(), n.requestId = Math.random() * 10 + "", z.save({
128
+ ...n,
129
+ entrustUser: R.value
130
+ }).then((m) => {
131
+ m.status === 200 ? l(!0) : (Ne({
132
+ message: "保存失败,请联系管理员!",
133
+ type: "error"
134
+ }), e(!1));
135
+ })) : e(!1);
136
+ });
137
+ });
138
+ }
139
+ return (l, e) => {
140
+ const s = i("el-col"), c = i("el-input"), m = i("el-form-item"), Q = i("jmash-dict-select"), q = i("jmash-select"), C = i("el-row"), b = i("el-table-column"), X = i("el-option"), Y = i("el-select"), Z = i("el-input-number"), x = i("DeleteFilled"), ee = i("el-icon"), le = i("el-table"), te = i("el-button"), oe = i("el-form");
141
+ return k(), D(B, null, [
142
+ t(s, { span: 24 }, {
143
+ default: a(() => e[8] || (e[8] = [
144
+ r("div", { class: "title" }, "委托服务合同结算清单", -1)
145
+ ])),
146
+ _: 1
147
+ }),
148
+ t(oe, {
149
+ ref_key: "taskFormRef",
150
+ ref: $,
151
+ model: d(n),
152
+ "label-width": "150px",
153
+ rules: T,
154
+ class: "custom-table-form custom-form"
155
+ }, {
156
+ default: a(() => [
157
+ t(s, { span: 24 }, {
158
+ default: a(() => [
159
+ t(m, {
160
+ label: l.$t("itsmFlowReckoning.contractName"),
161
+ prop: "contractName"
162
+ }, {
163
+ default: a(() => [
164
+ t(c, {
165
+ modelValue: d(n).contractName,
166
+ "onUpdate:modelValue": e[0] || (e[0] = (o) => d(n).contractName = o),
167
+ placeholder: l.$t("itsmFlowReckoning.acceptanceNoRequired"),
168
+ disabled: ""
169
+ }, null, 8, ["modelValue", "placeholder"])
170
+ ]),
171
+ _: 1
172
+ }, 8, ["label"])
173
+ ]),
174
+ _: 1
175
+ }),
176
+ t(s, { span: 24 }, {
177
+ default: a(() => [
178
+ t(m, {
179
+ label: l.$t("itsmFlowReckoning.contractNo"),
180
+ prop: "contractNo"
181
+ }, {
182
+ default: a(() => [
183
+ t(c, {
184
+ modelValue: d(n).contractNo,
185
+ "onUpdate:modelValue": e[1] || (e[1] = (o) => d(n).contractNo = o),
186
+ placeholder: l.$t("itsmFlowReckoning.acceptanceNoRequired"),
187
+ disabled: ""
188
+ }, null, 8, ["modelValue", "placeholder"])
189
+ ]),
190
+ _: 1
191
+ }, 8, ["label"])
192
+ ]),
193
+ _: 1
194
+ }),
195
+ t(s, { span: 24 }, {
196
+ default: a(() => [
197
+ t(m, {
198
+ label: l.$t("itsmFlowReckoning.entrustName"),
199
+ prop: "entrustName"
200
+ }, {
201
+ default: a(() => [
202
+ t(Q, {
203
+ modelValue: d(n).entrustName,
204
+ "onUpdate:modelValue": e[2] || (e[2] = (o) => d(n).entrustName = o),
205
+ placeholder: l.$t("itsmFlowReckoning.acceptanceNoRequired"),
206
+ data: d(I).projectNameDict.values,
207
+ disabled: "",
208
+ class: "w-full"
209
+ }, null, 8, ["modelValue", "placeholder", "data"])
210
+ ]),
211
+ _: 1
212
+ }, 8, ["label"])
213
+ ]),
214
+ _: 1
215
+ }),
216
+ t(s, { span: 24 }, {
217
+ default: a(() => [
218
+ t(m, {
219
+ label: l.$t("itsmFlowReckoning.serviceOrg"),
220
+ prop: "serviceOrg"
221
+ }, {
222
+ default: a(() => [
223
+ t(q, {
224
+ modelValue: d(n).serviceOrg,
225
+ "onUpdate:modelValue": e[3] || (e[3] = (o) => d(n).serviceOrg = o),
226
+ placeholder: l.$t("itsmFlowReckoning.acceptanceNoRequired"),
227
+ data: d(I).orgIdBizDict.values,
228
+ disabled: "",
229
+ class: "w-full"
230
+ }, null, 8, ["modelValue", "placeholder", "data"])
231
+ ]),
232
+ _: 1
233
+ }, 8, ["label"])
234
+ ]),
235
+ _: 1
236
+ }),
237
+ t(s, { span: 24 }, {
238
+ default: a(() => [
239
+ t(m, {
240
+ label: l.$t("itsmFlowReckoning.acceptanceNo"),
241
+ prop: "acceptanceNo"
242
+ }, {
243
+ default: a(() => [
244
+ t(q, {
245
+ modelValue: d(n).acceptanceNo,
246
+ "onUpdate:modelValue": e[4] || (e[4] = (o) => d(n).acceptanceNo = o),
247
+ placeholder: l.$t("itsmFlowReckoning.acceptanceNoRequireds"),
248
+ data: d(F).values,
249
+ clearable: "",
250
+ filterable: "",
251
+ class: "w-full",
252
+ onChange: y
253
+ }, null, 8, ["modelValue", "placeholder", "data"])
254
+ ]),
255
+ _: 1
256
+ }, 8, ["label"])
257
+ ]),
258
+ _: 1
259
+ }),
260
+ t(C, null, {
261
+ default: a(() => [
262
+ t(s, { span: 24 }, {
263
+ default: a(() => [
264
+ t(m, {
265
+ label: l.$t("itsmFlowReckoning.orderNo"),
266
+ prop: "orderNo"
267
+ }, {
268
+ default: a(() => [
269
+ t(c, {
270
+ modelValue: d(n).orderNo,
271
+ "onUpdate:modelValue": e[5] || (e[5] = (o) => d(n).orderNo = o),
272
+ placeholder: l.$t("itsmFlowReckoning.orderNoRequired"),
273
+ disabled: ""
274
+ }, null, 8, ["modelValue", "placeholder"])
275
+ ]),
276
+ _: 1
277
+ }, 8, ["label"])
278
+ ]),
279
+ _: 1
280
+ })
281
+ ]),
282
+ _: 1
283
+ }),
284
+ t(s, { span: 24 }, {
285
+ default: a(() => [
286
+ t(m, {
287
+ label: l.$t("itsmFlowReckoning.reckoningNo"),
288
+ prop: "reckoningNo"
289
+ }, {
290
+ default: a(() => [
291
+ t(c, {
292
+ modelValue: d(n).reckoningNo,
293
+ "onUpdate:modelValue": e[6] || (e[6] = (o) => d(n).reckoningNo = o),
294
+ placeholder: l.$t("itsmFlowReckoning.reckoningNoRequired"),
295
+ disabled: ""
296
+ }, null, 8, ["modelValue", "placeholder"])
297
+ ]),
298
+ _: 1
299
+ }, 8, ["label"])
300
+ ]),
301
+ _: 1
302
+ }),
303
+ t(s, { span: 24 }, {
304
+ default: a(() => [
305
+ t(m, {
306
+ label: l.$t("itsmFlowReckoning.serviceContent"),
307
+ prop: "serviceContent"
308
+ }, {
309
+ default: a(() => [
310
+ t(c, {
311
+ modelValue: d(n).serviceContent,
312
+ "onUpdate:modelValue": e[7] || (e[7] = (o) => d(n).serviceContent = o),
313
+ placeholder: l.$t("itsmFlowReckoning.acceptanceNoRequired"),
314
+ maxlength: "500",
315
+ rows: 4,
316
+ type: "textarea",
317
+ "show-word-limit": "",
318
+ clearable: "",
319
+ disabled: ""
320
+ }, null, 8, ["modelValue", "placeholder"])
321
+ ]),
322
+ _: 1
323
+ }, 8, ["label"])
324
+ ]),
325
+ _: 1
326
+ }),
327
+ t(le, {
328
+ data: p.value,
329
+ border: "",
330
+ style: { width: "100%" }
331
+ }, {
332
+ default: a(() => [
333
+ t(b, {
334
+ type: "index",
335
+ label: l.$t("itsmFlowEntrustUser.index"),
336
+ width: "60",
337
+ align: "center"
338
+ }, null, 8, ["label"]),
339
+ t(b, {
340
+ prop: "userId",
341
+ label: l.$t("itsmFlowEntrustUser.userId"),
342
+ "header-align": "center",
343
+ width: "150"
344
+ }, {
345
+ default: a(({ row: o }) => [
346
+ t(Y, {
347
+ modelValue: o.userId,
348
+ "onUpdate:modelValue": (u) => o.userId = u,
349
+ placeholder: l.$t("itsmFlowEntrustUser.userIdRequired"),
350
+ class: "w-full",
351
+ filterable: "",
352
+ clearable: "",
353
+ onChange: (u) => G(u, o)
354
+ }, {
355
+ default: a(() => [
356
+ (k(!0), D(B, null, re(v.value.values, (u) => (k(), O(X, {
357
+ key: u.key,
358
+ label: u.value,
359
+ value: u.key
360
+ }, null, 8, ["label", "value"]))), 128))
361
+ ]),
362
+ _: 2
363
+ }, 1032, ["modelValue", "onUpdate:modelValue", "placeholder", "onChange"])
364
+ ]),
365
+ _: 1
366
+ }, 8, ["label"]),
367
+ t(b, {
368
+ label: l.$t("itsmFlowEntrustUser.idNo"),
369
+ "header-align": "center",
370
+ width: "190"
371
+ }, {
372
+ default: a(({ row: o }) => [
373
+ t(c, {
374
+ modelValue: o.idNo,
375
+ "onUpdate:modelValue": (u) => o.idNo = u,
376
+ placeholder: l.$t("itsmFlowEntrustUser.userIdRequireds"),
377
+ disabled: ""
378
+ }, null, 8, ["modelValue", "onUpdate:modelValue", "placeholder"])
379
+ ]),
380
+ _: 1
381
+ }, 8, ["label"]),
382
+ t(b, {
383
+ label: l.$t("itsmFlowEntrustUser.cost"),
384
+ "header-align": "center",
385
+ width: "130"
386
+ }, {
387
+ default: a(({ row: o }) => [
388
+ t(c, {
389
+ modelValue: o.cost,
390
+ "onUpdate:modelValue": (u) => o.cost = u,
391
+ placeholder: l.$t("itsmFlowEntrustUser.userIdRequireds"),
392
+ disabled: ""
393
+ }, null, 8, ["modelValue", "onUpdate:modelValue", "placeholder"])
394
+ ]),
395
+ _: 1
396
+ }, 8, ["label"]),
397
+ t(b, {
398
+ prop: "duration",
399
+ label: l.$t("itsmFlowReckoning.serviceTime"),
400
+ "header-align": "center",
401
+ width: "140"
402
+ }, {
403
+ default: a(({ row: o }) => [
404
+ t(Z, {
405
+ modelValue: o.duration,
406
+ "onUpdate:modelValue": (u) => o.duration = u,
407
+ precision: 1,
408
+ step: 0.1,
409
+ min: 0,
410
+ style: { width: "100%" }
411
+ }, null, 8, ["modelValue", "onUpdate:modelValue"])
412
+ ]),
413
+ _: 1
414
+ }, 8, ["label"]),
415
+ t(b, {
416
+ prop: "totalAmount",
417
+ label: l.$t("itsmFlowReckoning.totalAmount"),
418
+ "header-align": "center"
419
+ }, {
420
+ default: a(({ row: o }) => [
421
+ N(w(d(ve)(o.cost, o.duration)), 1)
422
+ ]),
423
+ _: 1
424
+ }, 8, ["label"]),
425
+ t(b, {
426
+ label: l.$t("common.operate"),
427
+ width: "60",
428
+ align: "center"
429
+ }, {
430
+ default: a((o) => [
431
+ o.$index !== 0 ? (k(), O(ee, {
432
+ key: 0,
433
+ onClick: (u) => L(o),
434
+ size: "18",
435
+ style: { cursor: "pointer", color: "inherit" },
436
+ class: "hover-blue"
437
+ }, {
438
+ default: a(() => [
439
+ t(x)
440
+ ]),
441
+ _: 2
442
+ }, 1032, ["onClick"])) : ie("", !0)
443
+ ]),
444
+ _: 1
445
+ }, 8, ["label"])
446
+ ]),
447
+ _: 1
448
+ }, 8, ["data"]),
449
+ t(te, {
450
+ icon: d(be),
451
+ class: "addButton",
452
+ onClick: j
453
+ }, {
454
+ default: a(() => [
455
+ N(w(d(h)("common.add")), 1)
456
+ ]),
457
+ _: 1
458
+ }, 8, ["icon"]),
459
+ t(s, {
460
+ span: 24,
461
+ class: "bordered-row"
462
+ }, {
463
+ default: a(() => [
464
+ t(m, {
465
+ label: l.$t("itsmFlowReckoning.totalPrice")
466
+ }, {
467
+ default: a(() => [
468
+ N(w(d(ge)(S.value)), 1)
469
+ ]),
470
+ _: 1
471
+ }, 8, ["label"])
472
+ ]),
473
+ _: 1
474
+ }),
475
+ t(C, { class: "bordered-row" }, {
476
+ default: a(() => [
477
+ t(s, { span: 12 }, {
478
+ default: a(() => e[9] || (e[9] = [
479
+ r("div", { class: "content-box" }, [
480
+ r("div", { class: "content-box-top" }, [
481
+ r("div", null, "甲方单位(盖章)"),
482
+ r("div", null, "负责人(签字):"),
483
+ r("div", null, "或授权代理人(签字):")
484
+ ]),
485
+ r("div", { class: "content-box-bottom" }, [
486
+ N(" 日期: "),
487
+ r("span", null, "年"),
488
+ r("span", null, "月"),
489
+ r("span", null, "日")
490
+ ])
491
+ ], -1)
492
+ ])),
493
+ _: 1
494
+ }),
495
+ t(s, {
496
+ span: 12,
497
+ class: "with-divider"
498
+ }, {
499
+ default: a(() => e[10] || (e[10] = [
500
+ r("div", { class: "content-box" }, [
501
+ r("div", { class: "content-box-top" }, [
502
+ r("div", null, "服务人员所属单位(盖章)"),
503
+ r("div", null, "法定代表人(签字):"),
504
+ r("div", null, "或授权代理人(签字):")
505
+ ]),
506
+ r("div", { class: "content-box-bottom" }, [
507
+ N(" 日期: "),
508
+ r("span", null, "年"),
509
+ r("span", null, "月"),
510
+ r("span", null, "日")
511
+ ])
512
+ ], -1)
513
+ ])),
514
+ _: 1
515
+ })
516
+ ]),
517
+ _: 1
518
+ })
519
+ ]),
520
+ _: 1
521
+ }, 8, ["model", "rules"])
522
+ ], 64);
523
+ };
524
+ }
525
+ });
526
+ export {
527
+ Ue as default
528
+ };