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.
- package/dist/FileSaver.min-BeKvLuyk.mjs +73 -0
- package/dist/common--K4gGsNT.mjs +85 -0
- package/dist/{edit-BZbho2xr.mjs → edit-B621RtNS.mjs} +1 -1
- package/dist/{edit-DA920KWc.mjs → edit-CoRzQ2SK.mjs} +1 -1
- package/dist/{edit-DxK8SrUd.mjs → edit-Czk64Yon.mjs} +1 -1
- package/dist/edit.vue_vue_type_script_setup_true_lang-AhC28_ys.mjs +670 -0
- package/dist/edit.vue_vue_type_script_setup_true_lang-BYz7O3Xi.mjs +523 -0
- package/dist/edit.vue_vue_type_script_setup_true_lang-D-UzvXtU.mjs +567 -0
- package/dist/{el-message-D28AReoi.mjs → el-message-FfNjxLv_.mjs} +26 -26
- package/dist/index-B5vmtcUk.mjs +528 -0
- package/dist/index-BCP5cBN6.mjs +486 -0
- package/dist/{index-Dimzx0Lh.mjs → index-BJl7xHYx.mjs} +119 -124
- package/dist/{index-BwhWFAEK.mjs → index-BlBkHqXR.mjs} +75 -89
- package/dist/index-CRHpl0qA.mjs +501 -0
- package/dist/index-CVbpEq7V.mjs +442 -0
- package/dist/{index-CXarOLFt.mjs → index-CdzhLCkX.mjs} +119 -124
- package/dist/index-DX1PURJy.mjs +624 -0
- package/dist/index-DY7ZV5kq.mjs +567 -0
- package/dist/index-Dld6YbIV.mjs +484 -0
- package/dist/index.mjs +764 -771
- package/dist/style.css +1 -1
- package/dts/api/dict.d.ts +9 -0
- package/dts/api/index.d.ts +4 -1
- package/dts/api/itsm-flow-acceptance/index.d.ts +4 -10
- package/dts/api/itsm-flow-acceptance/types.d.ts +17 -38
- package/dts/api/itsm-flow-entrust/index.d.ts +3 -0
- package/dts/api/itsm-flow-entrust/types.d.ts +2 -2
- package/dts/api/itsm-flow-entrust-user/types.d.ts +1 -3
- package/dts/api/itsm-flow-reckoning/index.d.ts +4 -10
- package/dts/api/itsm-flow-reckoning/types.d.ts +19 -31
- package/dts/components/TaskItsmFlowAcceptance/index.vue.d.ts +28 -0
- package/dts/components/TaskItsmFlowAcceptanceEdit/index.vue.d.ts +28 -0
- package/dts/components/TaskItsmFlowReckoning/index.vue.d.ts +28 -0
- package/dts/components/TaskItsmFlowReckoningEdit/index.vue.d.ts +28 -0
- package/dts/index.d.ts +4 -0
- package/dts/lang/itsm-flow/zh-cn.d.ts +1 -17
- package/dts/utils/common.d.ts +2 -2
- package/dts/views/itsm-flow-entrust/edit.vue.d.ts +4 -4
- package/dts/views/itsm-flow-reckoning/edit.vue.d.ts +4 -4
- package/package.json +1 -1
- package/dist/_commonjsHelpers-BVfed4GL.mjs +0 -28
- package/dist/edit.vue_vue_type_script_setup_true_lang-CApSv9W3.mjs +0 -589
- package/dist/edit.vue_vue_type_script_setup_true_lang-CVKTwRZs.mjs +0 -688
- package/dist/edit.vue_vue_type_script_setup_true_lang-DlKz97iK.mjs +0 -656
- package/dist/index-BZGkoyv9.mjs +0 -68
- package/dist/index-CMOEnYG7.mjs +0 -21
- package/dist/index-Clg5YSzX.mjs +0 -598
- package/dist/index-CwnMo6nD.mjs +0 -1651
- package/dist/index-DDwNGNtf.mjs +0 -558
- package/dist/index-qOQQkVw8.mjs +0 -345
|
@@ -0,0 +1,567 @@
|
|
|
1
|
+
import { defineComponent as ne, mergeModels as z, ref as h, useModel as se, reactive as A, computed as de, resolveComponent as r, openBlock as w, createBlock as V, withCtx as o, createElementVNode as i, createVNode as t, createTextVNode as b, toDisplayString as g, unref as d, createElementBlock as ie, Fragment as re, renderList as ue, createCommentVNode as ce } from "vue";
|
|
2
|
+
import { ElMessage as S } from "element-plus";
|
|
3
|
+
import { useI18n as me } from "vue-i18n";
|
|
4
|
+
import { i as I, t as pe, a as fe } from "./common--K4gGsNT.mjs";
|
|
5
|
+
import { g as be, C as ve, D as $, h as ge, e as Ne, p as ke } from "./index-DY7ZV5kq.mjs";
|
|
6
|
+
const he = { class: "title" }, Ve = /* @__PURE__ */ ne({
|
|
7
|
+
__name: "edit",
|
|
8
|
+
props: /* @__PURE__ */ z({
|
|
9
|
+
entityKey: {
|
|
10
|
+
type: Object,
|
|
11
|
+
default: () => {
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
}, {
|
|
15
|
+
modelValue: { type: Boolean },
|
|
16
|
+
modelModifiers: {}
|
|
17
|
+
}),
|
|
18
|
+
emits: /* @__PURE__ */ z(["refresh"], ["update:modelValue"]),
|
|
19
|
+
setup(C, { emit: M }) {
|
|
20
|
+
const { t: N } = me(), _ = h(), p = se(C, "modelValue"), E = M, U = h([]), y = new be({
|
|
21
|
+
applyStatus: ve.applyStatus.finished
|
|
22
|
+
});
|
|
23
|
+
y.useValues(), $.orgIdBizDict.useValues();
|
|
24
|
+
let n = A({
|
|
25
|
+
requestId: Math.random() * 10 + ""
|
|
26
|
+
});
|
|
27
|
+
const K = de(() => f.value.map((l) => ({
|
|
28
|
+
cost: typeof l.cost == "number" ? l.cost : 0,
|
|
29
|
+
duration: typeof l.duration == "number" ? l.duration : 0
|
|
30
|
+
}))), f = h([
|
|
31
|
+
{
|
|
32
|
+
userId: "",
|
|
33
|
+
idNo: "",
|
|
34
|
+
cost: 0,
|
|
35
|
+
duration: 0,
|
|
36
|
+
entrustUserId: ""
|
|
37
|
+
}
|
|
38
|
+
]);
|
|
39
|
+
function P() {
|
|
40
|
+
f.value.push({
|
|
41
|
+
userId: "",
|
|
42
|
+
idNo: "",
|
|
43
|
+
cost: 0,
|
|
44
|
+
duration: 0,
|
|
45
|
+
entrustUserId: ""
|
|
46
|
+
});
|
|
47
|
+
}
|
|
48
|
+
function L(l) {
|
|
49
|
+
const e = f.value.indexOf(l.row);
|
|
50
|
+
e !== 0 && f.value.splice(e, 1);
|
|
51
|
+
}
|
|
52
|
+
const T = A({
|
|
53
|
+
acceptanceNo: [
|
|
54
|
+
{
|
|
55
|
+
required: !0,
|
|
56
|
+
message: N("itsmFlowReckoning.acceptanceNoRequireds"),
|
|
57
|
+
trigger: "change"
|
|
58
|
+
}
|
|
59
|
+
],
|
|
60
|
+
orderNo: [
|
|
61
|
+
{
|
|
62
|
+
required: !0,
|
|
63
|
+
message: N("itsmFlowReckoning.orderNoRequiredNull"),
|
|
64
|
+
trigger: "change"
|
|
65
|
+
}
|
|
66
|
+
]
|
|
67
|
+
}), R = C, k = h({});
|
|
68
|
+
k.value = new ge({
|
|
69
|
+
actionId: R.entityKey.entrustId
|
|
70
|
+
}), k.value.useValues();
|
|
71
|
+
const G = Object.keys(R.entityKey);
|
|
72
|
+
if (h(G.length >= 1).value) {
|
|
73
|
+
const l = R.entityKey;
|
|
74
|
+
I.findById({ reckoningId: l.reckoningId }).then(async ({ data: e }) => {
|
|
75
|
+
Object.assign(n, e);
|
|
76
|
+
}), B(l.acceptanceNo), Ne.findList({ actionId: l.entrustId }).then(({ data: e }) => {
|
|
77
|
+
console.log(e.results);
|
|
78
|
+
const s = e.results.map(
|
|
79
|
+
(c) => ({
|
|
80
|
+
...c
|
|
81
|
+
// duration:
|
|
82
|
+
// typeof item.duration === "string"
|
|
83
|
+
// ? ((item.duration.split(",") || []) as string[])
|
|
84
|
+
// : [],
|
|
85
|
+
})
|
|
86
|
+
);
|
|
87
|
+
f.value = s;
|
|
88
|
+
});
|
|
89
|
+
}
|
|
90
|
+
function q() {
|
|
91
|
+
U.value = f.value.map((l) => ({
|
|
92
|
+
entrustUserId: l.entrustUserId,
|
|
93
|
+
duration: (l.duration ?? 0).toString()
|
|
94
|
+
})).filter((l) => l.entrustUserId && l.duration !== "0");
|
|
95
|
+
}
|
|
96
|
+
const H = async () => {
|
|
97
|
+
var l;
|
|
98
|
+
await ((l = _.value) == null ? void 0 : l.validate((e) => {
|
|
99
|
+
e && (q(), I.save({
|
|
100
|
+
...n,
|
|
101
|
+
entrustUser: U.value
|
|
102
|
+
}).then((s) => {
|
|
103
|
+
s.status === 200 && (S({
|
|
104
|
+
message: N("common.submitSuccess"),
|
|
105
|
+
type: "success"
|
|
106
|
+
}), p.value && (p.value = !1), E("refresh", s.status === 200));
|
|
107
|
+
}));
|
|
108
|
+
}));
|
|
109
|
+
}, J = async () => {
|
|
110
|
+
var l;
|
|
111
|
+
await ((l = _.value) == null ? void 0 : l.validate((e) => {
|
|
112
|
+
e && (q(), I.submit({
|
|
113
|
+
...n,
|
|
114
|
+
entrustUser: U.value
|
|
115
|
+
}).then((s) => {
|
|
116
|
+
s.status === 200 && (S({
|
|
117
|
+
message: N("common.submitSuccess"),
|
|
118
|
+
type: "success"
|
|
119
|
+
}), p.value && (p.value = !1), E("refresh", s.status === 200));
|
|
120
|
+
}));
|
|
121
|
+
}));
|
|
122
|
+
};
|
|
123
|
+
function D() {
|
|
124
|
+
p.value && (p.value = !1);
|
|
125
|
+
}
|
|
126
|
+
function Q() {
|
|
127
|
+
k.value = { values: [] }, f.value.forEach((l) => {
|
|
128
|
+
l.userId = "", l.idNo = "", l.cost = 0, l.duration = 0;
|
|
129
|
+
});
|
|
130
|
+
}
|
|
131
|
+
function B(l) {
|
|
132
|
+
const e = y.values.find(
|
|
133
|
+
(s) => s.key === l
|
|
134
|
+
);
|
|
135
|
+
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) ?? "", Q();
|
|
136
|
+
}
|
|
137
|
+
function W(l, e) {
|
|
138
|
+
const s = k.value.values.find(
|
|
139
|
+
(c) => c.key === l
|
|
140
|
+
);
|
|
141
|
+
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 = "");
|
|
142
|
+
}
|
|
143
|
+
return (l, e) => {
|
|
144
|
+
const s = r("el-col"), c = r("el-input"), m = r("el-form-item"), X = r("jmash-dict-select"), O = r("jmash-select"), j = r("el-row"), v = r("el-table-column"), Y = r("el-option"), Z = r("el-select"), x = r("el-input-number"), ee = r("DeleteFilled"), le = r("el-icon"), te = r("el-table"), F = r("el-button"), oe = r("el-form"), ae = r("el-dialog");
|
|
145
|
+
return w(), V(ae, {
|
|
146
|
+
modelValue: p.value,
|
|
147
|
+
"onUpdate:modelValue": e[8] || (e[8] = (a) => p.value = a),
|
|
148
|
+
onClose: D
|
|
149
|
+
}, {
|
|
150
|
+
footer: o(() => [
|
|
151
|
+
i("div", he, [
|
|
152
|
+
t(F, { onClick: D }, {
|
|
153
|
+
default: o(() => [
|
|
154
|
+
b(g(l.$t("common.cancel")), 1)
|
|
155
|
+
]),
|
|
156
|
+
_: 1
|
|
157
|
+
}),
|
|
158
|
+
t(F, {
|
|
159
|
+
type: "primary",
|
|
160
|
+
onClick: H
|
|
161
|
+
}, {
|
|
162
|
+
default: o(() => [
|
|
163
|
+
b(g(l.$t("itsmFlowEntrustUser.save")), 1)
|
|
164
|
+
]),
|
|
165
|
+
_: 1
|
|
166
|
+
}),
|
|
167
|
+
t(F, {
|
|
168
|
+
type: "primary",
|
|
169
|
+
onClick: J
|
|
170
|
+
}, {
|
|
171
|
+
default: o(() => [
|
|
172
|
+
b(g(l.$t("itsmFlowEntrustUser.submit")), 1)
|
|
173
|
+
]),
|
|
174
|
+
_: 1
|
|
175
|
+
})
|
|
176
|
+
])
|
|
177
|
+
]),
|
|
178
|
+
default: o(() => [
|
|
179
|
+
t(s, { span: 24 }, {
|
|
180
|
+
default: o(() => e[9] || (e[9] = [
|
|
181
|
+
i("div", { class: "title" }, "委托服务合同结算清单", -1)
|
|
182
|
+
])),
|
|
183
|
+
_: 1
|
|
184
|
+
}),
|
|
185
|
+
t(oe, {
|
|
186
|
+
ref_key: "itsmFlowReckoningFormRef",
|
|
187
|
+
ref: _,
|
|
188
|
+
model: d(n),
|
|
189
|
+
"label-width": "150px",
|
|
190
|
+
rules: T,
|
|
191
|
+
class: "custom-table-form custom-form"
|
|
192
|
+
}, {
|
|
193
|
+
default: o(() => [
|
|
194
|
+
t(j, null, {
|
|
195
|
+
default: o(() => [
|
|
196
|
+
t(s, { span: 24 }, {
|
|
197
|
+
default: o(() => [
|
|
198
|
+
t(m, {
|
|
199
|
+
label: l.$t("itsmFlowReckoning.contractName"),
|
|
200
|
+
prop: "contractName"
|
|
201
|
+
}, {
|
|
202
|
+
default: o(() => [
|
|
203
|
+
t(c, {
|
|
204
|
+
modelValue: d(n).contractName,
|
|
205
|
+
"onUpdate:modelValue": e[0] || (e[0] = (a) => d(n).contractName = a),
|
|
206
|
+
placeholder: l.$t("itsmFlowReckoning.acceptanceNoRequired"),
|
|
207
|
+
disabled: ""
|
|
208
|
+
}, null, 8, ["modelValue", "placeholder"])
|
|
209
|
+
]),
|
|
210
|
+
_: 1
|
|
211
|
+
}, 8, ["label"])
|
|
212
|
+
]),
|
|
213
|
+
_: 1
|
|
214
|
+
}),
|
|
215
|
+
t(s, { span: 24 }, {
|
|
216
|
+
default: o(() => [
|
|
217
|
+
t(m, {
|
|
218
|
+
label: l.$t("itsmFlowReckoning.contractNo"),
|
|
219
|
+
prop: "contractNo"
|
|
220
|
+
}, {
|
|
221
|
+
default: o(() => [
|
|
222
|
+
t(c, {
|
|
223
|
+
modelValue: d(n).contractNo,
|
|
224
|
+
"onUpdate:modelValue": e[1] || (e[1] = (a) => d(n).contractNo = a),
|
|
225
|
+
placeholder: l.$t("itsmFlowReckoning.acceptanceNoRequired"),
|
|
226
|
+
disabled: ""
|
|
227
|
+
}, null, 8, ["modelValue", "placeholder"])
|
|
228
|
+
]),
|
|
229
|
+
_: 1
|
|
230
|
+
}, 8, ["label"])
|
|
231
|
+
]),
|
|
232
|
+
_: 1
|
|
233
|
+
}),
|
|
234
|
+
t(s, { span: 24 }, {
|
|
235
|
+
default: o(() => [
|
|
236
|
+
t(m, {
|
|
237
|
+
label: l.$t("itsmFlowReckoning.entrustName"),
|
|
238
|
+
prop: "entrustName"
|
|
239
|
+
}, {
|
|
240
|
+
default: o(() => [
|
|
241
|
+
t(X, {
|
|
242
|
+
modelValue: d(n).entrustName,
|
|
243
|
+
"onUpdate:modelValue": e[2] || (e[2] = (a) => d(n).entrustName = a),
|
|
244
|
+
placeholder: l.$t("itsmFlowReckoning.acceptanceNoRequired"),
|
|
245
|
+
data: d($).projectNameDict.values,
|
|
246
|
+
disabled: "",
|
|
247
|
+
class: "w-full"
|
|
248
|
+
}, null, 8, ["modelValue", "placeholder", "data"])
|
|
249
|
+
]),
|
|
250
|
+
_: 1
|
|
251
|
+
}, 8, ["label"])
|
|
252
|
+
]),
|
|
253
|
+
_: 1
|
|
254
|
+
}),
|
|
255
|
+
t(s, { span: 24 }, {
|
|
256
|
+
default: o(() => [
|
|
257
|
+
t(m, {
|
|
258
|
+
label: l.$t("itsmFlowReckoning.serviceOrg"),
|
|
259
|
+
prop: "serviceOrg"
|
|
260
|
+
}, {
|
|
261
|
+
default: o(() => [
|
|
262
|
+
t(O, {
|
|
263
|
+
modelValue: d(n).serviceOrg,
|
|
264
|
+
"onUpdate:modelValue": e[3] || (e[3] = (a) => d(n).serviceOrg = a),
|
|
265
|
+
placeholder: l.$t("itsmFlowReckoning.acceptanceNoRequired"),
|
|
266
|
+
data: d($).orgIdBizDict.values,
|
|
267
|
+
disabled: "",
|
|
268
|
+
class: "w-full"
|
|
269
|
+
}, null, 8, ["modelValue", "placeholder", "data"])
|
|
270
|
+
]),
|
|
271
|
+
_: 1
|
|
272
|
+
}, 8, ["label"])
|
|
273
|
+
]),
|
|
274
|
+
_: 1
|
|
275
|
+
}),
|
|
276
|
+
t(s, { span: 24 }, {
|
|
277
|
+
default: o(() => [
|
|
278
|
+
t(m, {
|
|
279
|
+
label: l.$t("itsmFlowReckoning.acceptanceNo"),
|
|
280
|
+
prop: "acceptanceNo"
|
|
281
|
+
}, {
|
|
282
|
+
default: o(() => [
|
|
283
|
+
t(O, {
|
|
284
|
+
modelValue: d(n).acceptanceNo,
|
|
285
|
+
"onUpdate:modelValue": e[4] || (e[4] = (a) => d(n).acceptanceNo = a),
|
|
286
|
+
placeholder: l.$t("itsmFlowReckoning.acceptanceNoRequireds"),
|
|
287
|
+
data: d(y).values,
|
|
288
|
+
clearable: "",
|
|
289
|
+
filterable: "",
|
|
290
|
+
class: "w-full",
|
|
291
|
+
onChange: B
|
|
292
|
+
}, null, 8, ["modelValue", "placeholder", "data"])
|
|
293
|
+
]),
|
|
294
|
+
_: 1
|
|
295
|
+
}, 8, ["label"])
|
|
296
|
+
]),
|
|
297
|
+
_: 1
|
|
298
|
+
}),
|
|
299
|
+
t(s, { span: 24 }, {
|
|
300
|
+
default: o(() => [
|
|
301
|
+
t(m, {
|
|
302
|
+
label: l.$t("itsmFlowReckoning.orderNo"),
|
|
303
|
+
prop: "orderNo"
|
|
304
|
+
}, {
|
|
305
|
+
default: o(() => [
|
|
306
|
+
t(c, {
|
|
307
|
+
modelValue: d(n).orderNo,
|
|
308
|
+
"onUpdate:modelValue": e[5] || (e[5] = (a) => d(n).orderNo = a),
|
|
309
|
+
placeholder: l.$t("itsmFlowReckoning.orderNoRequired"),
|
|
310
|
+
disabled: ""
|
|
311
|
+
}, null, 8, ["modelValue", "placeholder"])
|
|
312
|
+
]),
|
|
313
|
+
_: 1
|
|
314
|
+
}, 8, ["label"])
|
|
315
|
+
]),
|
|
316
|
+
_: 1
|
|
317
|
+
}),
|
|
318
|
+
t(s, { span: 24 }, {
|
|
319
|
+
default: o(() => [
|
|
320
|
+
t(m, {
|
|
321
|
+
label: l.$t("itsmFlowReckoning.reckoningNo"),
|
|
322
|
+
prop: "reckoningNo"
|
|
323
|
+
}, {
|
|
324
|
+
default: o(() => [
|
|
325
|
+
t(c, {
|
|
326
|
+
modelValue: d(n).reckoningNo,
|
|
327
|
+
"onUpdate:modelValue": e[6] || (e[6] = (a) => d(n).reckoningNo = a),
|
|
328
|
+
placeholder: l.$t("itsmFlowReckoning.reckoningNoRequired"),
|
|
329
|
+
disabled: ""
|
|
330
|
+
}, null, 8, ["modelValue", "placeholder"])
|
|
331
|
+
]),
|
|
332
|
+
_: 1
|
|
333
|
+
}, 8, ["label"])
|
|
334
|
+
]),
|
|
335
|
+
_: 1
|
|
336
|
+
}),
|
|
337
|
+
t(s, { span: 24 }, {
|
|
338
|
+
default: o(() => [
|
|
339
|
+
t(m, {
|
|
340
|
+
label: l.$t("itsmFlowReckoning.serviceContent"),
|
|
341
|
+
prop: "serviceContent"
|
|
342
|
+
}, {
|
|
343
|
+
default: o(() => [
|
|
344
|
+
t(c, {
|
|
345
|
+
modelValue: d(n).serviceContent,
|
|
346
|
+
"onUpdate:modelValue": e[7] || (e[7] = (a) => d(n).serviceContent = a),
|
|
347
|
+
placeholder: l.$t("itsmFlowReckoning.acceptanceNoRequired"),
|
|
348
|
+
maxlength: "500",
|
|
349
|
+
rows: 4,
|
|
350
|
+
type: "textarea",
|
|
351
|
+
"show-word-limit": "",
|
|
352
|
+
clearable: "",
|
|
353
|
+
disabled: ""
|
|
354
|
+
}, null, 8, ["modelValue", "placeholder"])
|
|
355
|
+
]),
|
|
356
|
+
_: 1
|
|
357
|
+
}, 8, ["label"])
|
|
358
|
+
]),
|
|
359
|
+
_: 1
|
|
360
|
+
})
|
|
361
|
+
]),
|
|
362
|
+
_: 1
|
|
363
|
+
}),
|
|
364
|
+
t(te, {
|
|
365
|
+
data: f.value,
|
|
366
|
+
border: "",
|
|
367
|
+
style: { width: "100%" }
|
|
368
|
+
}, {
|
|
369
|
+
default: o(() => [
|
|
370
|
+
t(v, {
|
|
371
|
+
type: "index",
|
|
372
|
+
label: l.$t("itsmFlowEntrustUser.index"),
|
|
373
|
+
width: "60",
|
|
374
|
+
align: "center"
|
|
375
|
+
}, null, 8, ["label"]),
|
|
376
|
+
t(v, {
|
|
377
|
+
prop: "userId",
|
|
378
|
+
label: l.$t("itsmFlowEntrustUser.userId"),
|
|
379
|
+
"header-align": "center",
|
|
380
|
+
width: "150"
|
|
381
|
+
}, {
|
|
382
|
+
default: o(({ row: a }) => [
|
|
383
|
+
t(Z, {
|
|
384
|
+
modelValue: a.userId,
|
|
385
|
+
"onUpdate:modelValue": (u) => a.userId = u,
|
|
386
|
+
placeholder: l.$t("itsmFlowEntrustUser.userIdRequired"),
|
|
387
|
+
class: "w-full",
|
|
388
|
+
filterable: "",
|
|
389
|
+
clearable: "",
|
|
390
|
+
onChange: (u) => W(u, a)
|
|
391
|
+
}, {
|
|
392
|
+
default: o(() => [
|
|
393
|
+
(w(!0), ie(re, null, ue(k.value.values, (u) => (w(), V(Y, {
|
|
394
|
+
key: u.key,
|
|
395
|
+
label: u.value,
|
|
396
|
+
value: u.key
|
|
397
|
+
}, null, 8, ["label", "value"]))), 128))
|
|
398
|
+
]),
|
|
399
|
+
_: 2
|
|
400
|
+
}, 1032, ["modelValue", "onUpdate:modelValue", "placeholder", "onChange"])
|
|
401
|
+
]),
|
|
402
|
+
_: 1
|
|
403
|
+
}, 8, ["label"]),
|
|
404
|
+
t(v, {
|
|
405
|
+
label: l.$t("itsmFlowEntrustUser.idNo"),
|
|
406
|
+
"header-align": "center",
|
|
407
|
+
width: "190"
|
|
408
|
+
}, {
|
|
409
|
+
default: o(({ row: a }) => [
|
|
410
|
+
t(c, {
|
|
411
|
+
modelValue: a.idNo,
|
|
412
|
+
"onUpdate:modelValue": (u) => a.idNo = u,
|
|
413
|
+
placeholder: l.$t("itsmFlowEntrustUser.userIdRequireds"),
|
|
414
|
+
disabled: ""
|
|
415
|
+
}, null, 8, ["modelValue", "onUpdate:modelValue", "placeholder"])
|
|
416
|
+
]),
|
|
417
|
+
_: 1
|
|
418
|
+
}, 8, ["label"]),
|
|
419
|
+
t(v, {
|
|
420
|
+
label: l.$t("itsmFlowEntrustUser.cost"),
|
|
421
|
+
"header-align": "center",
|
|
422
|
+
width: "130"
|
|
423
|
+
}, {
|
|
424
|
+
default: o(({ row: a }) => [
|
|
425
|
+
t(c, {
|
|
426
|
+
modelValue: a.cost,
|
|
427
|
+
"onUpdate:modelValue": (u) => a.cost = u,
|
|
428
|
+
placeholder: l.$t("itsmFlowEntrustUser.userIdRequireds"),
|
|
429
|
+
disabled: ""
|
|
430
|
+
}, null, 8, ["modelValue", "onUpdate:modelValue", "placeholder"])
|
|
431
|
+
]),
|
|
432
|
+
_: 1
|
|
433
|
+
}, 8, ["label"]),
|
|
434
|
+
t(v, {
|
|
435
|
+
prop: "duration",
|
|
436
|
+
label: l.$t("itsmFlowReckoning.serviceTime"),
|
|
437
|
+
"header-align": "center",
|
|
438
|
+
width: "140"
|
|
439
|
+
}, {
|
|
440
|
+
default: o(({ row: a }) => [
|
|
441
|
+
t(x, {
|
|
442
|
+
modelValue: a.duration,
|
|
443
|
+
"onUpdate:modelValue": (u) => a.duration = u,
|
|
444
|
+
precision: 1,
|
|
445
|
+
step: 0.1,
|
|
446
|
+
min: 0,
|
|
447
|
+
style: { width: "100%" }
|
|
448
|
+
}, null, 8, ["modelValue", "onUpdate:modelValue"])
|
|
449
|
+
]),
|
|
450
|
+
_: 1
|
|
451
|
+
}, 8, ["label"]),
|
|
452
|
+
t(v, {
|
|
453
|
+
prop: "totalAmount",
|
|
454
|
+
label: l.$t("itsmFlowReckoning.totalAmount"),
|
|
455
|
+
"header-align": "center"
|
|
456
|
+
}, {
|
|
457
|
+
default: o(({ row: a }) => [
|
|
458
|
+
b(g(d(pe)(a.cost, a.duration)), 1)
|
|
459
|
+
]),
|
|
460
|
+
_: 1
|
|
461
|
+
}, 8, ["label"]),
|
|
462
|
+
t(v, {
|
|
463
|
+
label: l.$t("common.operate"),
|
|
464
|
+
width: "60",
|
|
465
|
+
align: "center"
|
|
466
|
+
}, {
|
|
467
|
+
default: o((a) => [
|
|
468
|
+
a.$index !== 0 ? (w(), V(le, {
|
|
469
|
+
key: 0,
|
|
470
|
+
onClick: (u) => L(a),
|
|
471
|
+
size: "18",
|
|
472
|
+
style: { cursor: "pointer", color: "inherit" },
|
|
473
|
+
class: "hover-blue"
|
|
474
|
+
}, {
|
|
475
|
+
default: o(() => [
|
|
476
|
+
t(ee)
|
|
477
|
+
]),
|
|
478
|
+
_: 2
|
|
479
|
+
}, 1032, ["onClick"])) : ce("", !0)
|
|
480
|
+
]),
|
|
481
|
+
_: 1
|
|
482
|
+
}, 8, ["label"])
|
|
483
|
+
]),
|
|
484
|
+
_: 1
|
|
485
|
+
}, 8, ["data"]),
|
|
486
|
+
t(F, {
|
|
487
|
+
icon: d(ke),
|
|
488
|
+
class: "addButton",
|
|
489
|
+
onClick: P
|
|
490
|
+
}, {
|
|
491
|
+
default: o(() => [
|
|
492
|
+
b(g(d(N)("common.add")), 1)
|
|
493
|
+
]),
|
|
494
|
+
_: 1
|
|
495
|
+
}, 8, ["icon"]),
|
|
496
|
+
t(s, {
|
|
497
|
+
span: 24,
|
|
498
|
+
class: "bordered-row"
|
|
499
|
+
}, {
|
|
500
|
+
default: o(() => [
|
|
501
|
+
t(m, {
|
|
502
|
+
label: l.$t("itsmFlowReckoning.totalPrice")
|
|
503
|
+
}, {
|
|
504
|
+
default: o(() => [
|
|
505
|
+
b(g(d(fe)(K.value)), 1)
|
|
506
|
+
]),
|
|
507
|
+
_: 1
|
|
508
|
+
}, 8, ["label"])
|
|
509
|
+
]),
|
|
510
|
+
_: 1
|
|
511
|
+
}),
|
|
512
|
+
t(j, { class: "bordered-row" }, {
|
|
513
|
+
default: o(() => [
|
|
514
|
+
t(s, { span: 12 }, {
|
|
515
|
+
default: o(() => e[10] || (e[10] = [
|
|
516
|
+
i("div", { class: "content-box" }, [
|
|
517
|
+
i("div", { class: "content-box-top" }, [
|
|
518
|
+
i("div", null, "甲方单位(盖章)"),
|
|
519
|
+
i("div", null, "负责人(签字):"),
|
|
520
|
+
i("div", null, "或授权代理人(签字):")
|
|
521
|
+
]),
|
|
522
|
+
i("div", { class: "content-box-bottom" }, [
|
|
523
|
+
b(" 日期: "),
|
|
524
|
+
i("span", null, "年"),
|
|
525
|
+
i("span", null, "月"),
|
|
526
|
+
i("span", null, "日")
|
|
527
|
+
])
|
|
528
|
+
], -1)
|
|
529
|
+
])),
|
|
530
|
+
_: 1
|
|
531
|
+
}),
|
|
532
|
+
t(s, {
|
|
533
|
+
span: 12,
|
|
534
|
+
class: "with-divider"
|
|
535
|
+
}, {
|
|
536
|
+
default: o(() => e[11] || (e[11] = [
|
|
537
|
+
i("div", { class: "content-box" }, [
|
|
538
|
+
i("div", { class: "content-box-top" }, [
|
|
539
|
+
i("div", null, "服务人员所属单位(盖章)"),
|
|
540
|
+
i("div", null, "法定代表人(签字):"),
|
|
541
|
+
i("div", null, "或授权代理人(签字):")
|
|
542
|
+
]),
|
|
543
|
+
i("div", { class: "content-box-bottom" }, [
|
|
544
|
+
b(" 日期: "),
|
|
545
|
+
i("span", null, "年"),
|
|
546
|
+
i("span", null, "月"),
|
|
547
|
+
i("span", null, "日")
|
|
548
|
+
])
|
|
549
|
+
], -1)
|
|
550
|
+
])),
|
|
551
|
+
_: 1
|
|
552
|
+
})
|
|
553
|
+
]),
|
|
554
|
+
_: 1
|
|
555
|
+
})
|
|
556
|
+
]),
|
|
557
|
+
_: 1
|
|
558
|
+
}, 8, ["model", "rules"])
|
|
559
|
+
]),
|
|
560
|
+
_: 1
|
|
561
|
+
}, 8, ["modelValue"]);
|
|
562
|
+
};
|
|
563
|
+
}
|
|
564
|
+
});
|
|
565
|
+
export {
|
|
566
|
+
Ve as _
|
|
567
|
+
};
|