xyvcard-itsm-flow 0.0.8 → 0.0.9
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/{common--K4gGsNT.mjs → common-Cwl5jzlM.mjs} +1 -1
- package/dist/{edit-B621RtNS.mjs → edit-BatVtQjM.mjs} +1 -1
- package/dist/{edit-CoRzQ2SK.mjs → edit-CJKi69Ya.mjs} +1 -1
- package/dist/{edit-Czk64Yon.mjs → edit-RNcc8UYn.mjs} +1 -1
- package/dist/{edit.vue_vue_type_script_setup_true_lang-BYz7O3Xi.mjs → edit.vue_vue_type_script_setup_true_lang-4mAArGdW.mjs} +239 -212
- package/dist/{edit.vue_vue_type_script_setup_true_lang-D-UzvXtU.mjs → edit.vue_vue_type_script_setup_true_lang-D9fa466K.mjs} +95 -96
- package/dist/{edit.vue_vue_type_script_setup_true_lang-AhC28_ys.mjs → edit.vue_vue_type_script_setup_true_lang-DlfhAjvW.mjs} +1 -1
- package/dist/{el-message-FfNjxLv_.mjs → el-message-9Nit-6wb.mjs} +1 -1
- package/dist/{index-CdzhLCkX.mjs → index-2vkMhoSW.mjs} +3 -3
- package/dist/{index-CVbpEq7V.mjs → index-BkB6hpAN.mjs} +174 -134
- package/dist/{index-BlBkHqXR.mjs → index-BqZwYXr_.mjs} +2 -2
- package/dist/{index-DY7ZV5kq.mjs → index-CitJdS-N.mjs} +107 -85
- package/dist/index-Ckl3mXfI.mjs +493 -0
- package/dist/{index-BCP5cBN6.mjs → index-CpSpS_gR.mjs} +2 -2
- package/dist/{index-CRHpl0qA.mjs → index-DmttwKtY.mjs} +3 -3
- package/dist/{index-BJl7xHYx.mjs → index-ay0TMqjH.mjs} +14 -14
- package/dist/{index-DX1PURJy.mjs → index-tnwVLRVb.mjs} +2 -2
- package/dist/{index-B5vmtcUk.mjs → index-w_RSrZed.mjs} +58 -57
- package/dist/index.mjs +4 -2
- package/dts/api/itsm-flow-acceptance/index.d.ts +5 -1
- package/dts/api/itsm-flow-acceptance/types.d.ts +29 -1
- package/dts/api/itsm-flow-entrust/index.d.ts +0 -3
- package/dts/lang/itsm-flow/zh-cn.d.ts +2 -0
- package/dts/views/itsm-flow-acceptance/edit.vue.d.ts +4 -4
- package/package.json +1 -1
- package/dist/index-Dld6YbIV.mjs +0 -484
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { defineComponent as
|
|
1
|
+
import { defineComponent as se, mergeModels as z, ref as k, useModel as de, reactive as A, computed as ie, 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 re, Fragment as ue, renderList as ce, createCommentVNode as me } from "vue";
|
|
2
2
|
import { ElMessage as S } from "element-plus";
|
|
3
|
-
import { useI18n as
|
|
4
|
-
import { i as I, t as
|
|
5
|
-
import { g as
|
|
6
|
-
const
|
|
3
|
+
import { useI18n as pe } from "vue-i18n";
|
|
4
|
+
import { i as I, t as fe, a as be } from "./common-Cwl5jzlM.mjs";
|
|
5
|
+
import { g as ve, C as ge, D as $, h as Ne, p as ke, e as he } from "./index-CitJdS-N.mjs";
|
|
6
|
+
const Fe = { class: "title" }, Ie = /* @__PURE__ */ se({
|
|
7
7
|
__name: "edit",
|
|
8
8
|
props: /* @__PURE__ */ z({
|
|
9
9
|
entityKey: {
|
|
@@ -17,17 +17,17 @@ const he = { class: "title" }, Ve = /* @__PURE__ */ ne({
|
|
|
17
17
|
}),
|
|
18
18
|
emits: /* @__PURE__ */ z(["refresh"], ["update:modelValue"]),
|
|
19
19
|
setup(C, { emit: M }) {
|
|
20
|
-
const { t: N } =
|
|
21
|
-
applyStatus:
|
|
20
|
+
const { t: N } = pe(), _ = k(), p = de(C, "modelValue"), E = M, U = k([]), h = k({}), y = C, R = new ve({
|
|
21
|
+
applyStatus: ge.applyStatus.finished
|
|
22
22
|
});
|
|
23
|
-
|
|
24
|
-
let
|
|
23
|
+
R.useValues(), $.orgIdBizDict.useValues();
|
|
24
|
+
let s = A({
|
|
25
25
|
requestId: Math.random() * 10 + ""
|
|
26
26
|
});
|
|
27
|
-
const K =
|
|
27
|
+
const K = ie(() => f.value.map((l) => ({
|
|
28
28
|
cost: typeof l.cost == "number" ? l.cost : 0,
|
|
29
29
|
duration: typeof l.duration == "number" ? l.duration : 0
|
|
30
|
-
}))), f =
|
|
30
|
+
}))), f = k([
|
|
31
31
|
{
|
|
32
32
|
userId: "",
|
|
33
33
|
idNo: "",
|
|
@@ -64,91 +64,90 @@ const he = { class: "title" }, Ve = /* @__PURE__ */ ne({
|
|
|
64
64
|
trigger: "change"
|
|
65
65
|
}
|
|
66
66
|
]
|
|
67
|
-
})
|
|
68
|
-
|
|
69
|
-
actionId:
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
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
|
-
// : [],
|
|
67
|
+
});
|
|
68
|
+
function G() {
|
|
69
|
+
he.findList({ actionId: y.entityKey.reckoningId }).then(({ data: l }) => {
|
|
70
|
+
const e = l.results.map(
|
|
71
|
+
(n) => ({
|
|
72
|
+
...n,
|
|
73
|
+
duration: Number(n.duration)
|
|
74
|
+
// 将字符串转换为数字
|
|
85
75
|
})
|
|
86
76
|
);
|
|
87
|
-
f.value =
|
|
77
|
+
f.value = e;
|
|
88
78
|
});
|
|
89
79
|
}
|
|
80
|
+
const H = Object.keys(y.entityKey);
|
|
81
|
+
if (k(H.length >= 1).value) {
|
|
82
|
+
const l = y.entityKey;
|
|
83
|
+
I.findById({ reckoningId: l.reckoningId }).then(async ({ data: e }) => {
|
|
84
|
+
Object.assign(s, e);
|
|
85
|
+
}), B(l.acceptanceNo), G();
|
|
86
|
+
}
|
|
90
87
|
function q() {
|
|
91
88
|
U.value = f.value.map((l) => ({
|
|
92
89
|
entrustUserId: l.entrustUserId,
|
|
93
90
|
duration: (l.duration ?? 0).toString()
|
|
94
91
|
})).filter((l) => l.entrustUserId && l.duration !== "0");
|
|
95
92
|
}
|
|
96
|
-
const
|
|
93
|
+
const J = async () => {
|
|
97
94
|
var l;
|
|
98
95
|
await ((l = _.value) == null ? void 0 : l.validate((e) => {
|
|
99
96
|
e && (q(), I.save({
|
|
100
|
-
...
|
|
97
|
+
...s,
|
|
101
98
|
entrustUser: U.value
|
|
102
|
-
}).then((
|
|
103
|
-
|
|
99
|
+
}).then((n) => {
|
|
100
|
+
n.status === 200 && (S({
|
|
104
101
|
message: N("common.submitSuccess"),
|
|
105
102
|
type: "success"
|
|
106
|
-
}), p.value && (p.value = !1), E("refresh",
|
|
103
|
+
}), p.value && (p.value = !1), E("refresh", n.status === 200));
|
|
107
104
|
}));
|
|
108
105
|
}));
|
|
109
|
-
},
|
|
106
|
+
}, Q = async () => {
|
|
110
107
|
var l;
|
|
111
108
|
await ((l = _.value) == null ? void 0 : l.validate((e) => {
|
|
112
109
|
e && (q(), I.submit({
|
|
113
|
-
...
|
|
110
|
+
...s,
|
|
114
111
|
entrustUser: U.value
|
|
115
|
-
}).then((
|
|
116
|
-
|
|
112
|
+
}).then((n) => {
|
|
113
|
+
n.status === 200 && (S({
|
|
117
114
|
message: N("common.submitSuccess"),
|
|
118
115
|
type: "success"
|
|
119
|
-
}), p.value && (p.value = !1), E("refresh",
|
|
116
|
+
}), p.value && (p.value = !1), E("refresh", n.status === 200));
|
|
120
117
|
}));
|
|
121
118
|
}));
|
|
122
119
|
};
|
|
123
120
|
function D() {
|
|
124
121
|
p.value && (p.value = !1);
|
|
125
122
|
}
|
|
126
|
-
function
|
|
127
|
-
|
|
123
|
+
function W() {
|
|
124
|
+
f.value.forEach((l) => {
|
|
128
125
|
l.userId = "", l.idNo = "", l.cost = 0, l.duration = 0;
|
|
129
126
|
});
|
|
130
127
|
}
|
|
131
128
|
function B(l) {
|
|
132
|
-
const e =
|
|
133
|
-
(
|
|
129
|
+
const e = R.values.find(
|
|
130
|
+
(n) => n.key === l
|
|
134
131
|
);
|
|
135
|
-
|
|
132
|
+
s.contractName = (e == null ? void 0 : e.contractName) ?? "", s.contractNo = (e == null ? void 0 : e.contractNo) ?? "", s.serviceOrg = (e == null ? void 0 : e.serviceOrg) ?? "", s.entrustName = (e == null ? void 0 : e.entrustName) ?? "", s.orderNo = (e == null ? void 0 : e.orderNo) ?? "", s.serviceContent = (e == null ? void 0 : e.serviceContent) ?? "", s.entrustId = (e == null ? void 0 : e.entrustId) ?? "", s.acceptanceId = (e == null ? void 0 : e.acceptanceId) ?? "", W(), h.value = new Ne({
|
|
133
|
+
actionId: (e == null ? void 0 : e.entrustId) ?? ""
|
|
134
|
+
}), h.value.useValues();
|
|
136
135
|
}
|
|
137
|
-
function
|
|
138
|
-
const
|
|
136
|
+
function X(l, e) {
|
|
137
|
+
const n = h.value.values.find(
|
|
139
138
|
(c) => c.key === l
|
|
140
139
|
);
|
|
141
|
-
|
|
140
|
+
n ? (e.userName = n.value ?? "", e.idNo = n.idNo ?? "", e.cost = Number(n.cost) || 0, e.entrustUserId = n.entrustUserId ?? "") : (e.userName = "", e.idNo = "", e.cost = 0, e.entrustUserId = "");
|
|
142
141
|
}
|
|
143
142
|
return (l, e) => {
|
|
144
|
-
const
|
|
145
|
-
return w(), V(
|
|
143
|
+
const n = r("el-col"), c = r("el-input"), m = r("el-form-item"), Y = r("jmash-dict-select"), O = r("jmash-select"), j = r("el-row"), v = r("el-table-column"), Z = r("el-option"), x = r("el-select"), ee = r("el-input-number"), le = r("DeleteFilled"), te = r("el-icon"), oe = r("el-table"), F = r("el-button"), ae = r("el-form"), ne = r("el-dialog");
|
|
144
|
+
return w(), V(ne, {
|
|
146
145
|
modelValue: p.value,
|
|
147
146
|
"onUpdate:modelValue": e[8] || (e[8] = (a) => p.value = a),
|
|
148
147
|
onClose: D
|
|
149
148
|
}, {
|
|
150
149
|
footer: o(() => [
|
|
151
|
-
i("div",
|
|
150
|
+
i("div", Fe, [
|
|
152
151
|
t(F, { onClick: D }, {
|
|
153
152
|
default: o(() => [
|
|
154
153
|
b(g(l.$t("common.cancel")), 1)
|
|
@@ -157,7 +156,7 @@ const he = { class: "title" }, Ve = /* @__PURE__ */ ne({
|
|
|
157
156
|
}),
|
|
158
157
|
t(F, {
|
|
159
158
|
type: "primary",
|
|
160
|
-
onClick:
|
|
159
|
+
onClick: J
|
|
161
160
|
}, {
|
|
162
161
|
default: o(() => [
|
|
163
162
|
b(g(l.$t("itsmFlowEntrustUser.save")), 1)
|
|
@@ -166,7 +165,7 @@ const he = { class: "title" }, Ve = /* @__PURE__ */ ne({
|
|
|
166
165
|
}),
|
|
167
166
|
t(F, {
|
|
168
167
|
type: "primary",
|
|
169
|
-
onClick:
|
|
168
|
+
onClick: Q
|
|
170
169
|
}, {
|
|
171
170
|
default: o(() => [
|
|
172
171
|
b(g(l.$t("itsmFlowEntrustUser.submit")), 1)
|
|
@@ -176,16 +175,16 @@ const he = { class: "title" }, Ve = /* @__PURE__ */ ne({
|
|
|
176
175
|
])
|
|
177
176
|
]),
|
|
178
177
|
default: o(() => [
|
|
179
|
-
t(
|
|
178
|
+
t(n, { span: 24 }, {
|
|
180
179
|
default: o(() => e[9] || (e[9] = [
|
|
181
180
|
i("div", { class: "title" }, "委托服务合同结算清单", -1)
|
|
182
181
|
])),
|
|
183
182
|
_: 1
|
|
184
183
|
}),
|
|
185
|
-
t(
|
|
184
|
+
t(ae, {
|
|
186
185
|
ref_key: "itsmFlowReckoningFormRef",
|
|
187
186
|
ref: _,
|
|
188
|
-
model: d(
|
|
187
|
+
model: d(s),
|
|
189
188
|
"label-width": "150px",
|
|
190
189
|
rules: T,
|
|
191
190
|
class: "custom-table-form custom-form"
|
|
@@ -193,7 +192,7 @@ const he = { class: "title" }, Ve = /* @__PURE__ */ ne({
|
|
|
193
192
|
default: o(() => [
|
|
194
193
|
t(j, null, {
|
|
195
194
|
default: o(() => [
|
|
196
|
-
t(
|
|
195
|
+
t(n, { span: 24 }, {
|
|
197
196
|
default: o(() => [
|
|
198
197
|
t(m, {
|
|
199
198
|
label: l.$t("itsmFlowReckoning.contractName"),
|
|
@@ -201,8 +200,8 @@ const he = { class: "title" }, Ve = /* @__PURE__ */ ne({
|
|
|
201
200
|
}, {
|
|
202
201
|
default: o(() => [
|
|
203
202
|
t(c, {
|
|
204
|
-
modelValue: d(
|
|
205
|
-
"onUpdate:modelValue": e[0] || (e[0] = (a) => d(
|
|
203
|
+
modelValue: d(s).contractName,
|
|
204
|
+
"onUpdate:modelValue": e[0] || (e[0] = (a) => d(s).contractName = a),
|
|
206
205
|
placeholder: l.$t("itsmFlowReckoning.acceptanceNoRequired"),
|
|
207
206
|
disabled: ""
|
|
208
207
|
}, null, 8, ["modelValue", "placeholder"])
|
|
@@ -212,7 +211,7 @@ const he = { class: "title" }, Ve = /* @__PURE__ */ ne({
|
|
|
212
211
|
]),
|
|
213
212
|
_: 1
|
|
214
213
|
}),
|
|
215
|
-
t(
|
|
214
|
+
t(n, { span: 24 }, {
|
|
216
215
|
default: o(() => [
|
|
217
216
|
t(m, {
|
|
218
217
|
label: l.$t("itsmFlowReckoning.contractNo"),
|
|
@@ -220,8 +219,8 @@ const he = { class: "title" }, Ve = /* @__PURE__ */ ne({
|
|
|
220
219
|
}, {
|
|
221
220
|
default: o(() => [
|
|
222
221
|
t(c, {
|
|
223
|
-
modelValue: d(
|
|
224
|
-
"onUpdate:modelValue": e[1] || (e[1] = (a) => d(
|
|
222
|
+
modelValue: d(s).contractNo,
|
|
223
|
+
"onUpdate:modelValue": e[1] || (e[1] = (a) => d(s).contractNo = a),
|
|
225
224
|
placeholder: l.$t("itsmFlowReckoning.acceptanceNoRequired"),
|
|
226
225
|
disabled: ""
|
|
227
226
|
}, null, 8, ["modelValue", "placeholder"])
|
|
@@ -231,16 +230,16 @@ const he = { class: "title" }, Ve = /* @__PURE__ */ ne({
|
|
|
231
230
|
]),
|
|
232
231
|
_: 1
|
|
233
232
|
}),
|
|
234
|
-
t(
|
|
233
|
+
t(n, { span: 24 }, {
|
|
235
234
|
default: o(() => [
|
|
236
235
|
t(m, {
|
|
237
236
|
label: l.$t("itsmFlowReckoning.entrustName"),
|
|
238
237
|
prop: "entrustName"
|
|
239
238
|
}, {
|
|
240
239
|
default: o(() => [
|
|
241
|
-
t(
|
|
242
|
-
modelValue: d(
|
|
243
|
-
"onUpdate:modelValue": e[2] || (e[2] = (a) => d(
|
|
240
|
+
t(Y, {
|
|
241
|
+
modelValue: d(s).entrustName,
|
|
242
|
+
"onUpdate:modelValue": e[2] || (e[2] = (a) => d(s).entrustName = a),
|
|
244
243
|
placeholder: l.$t("itsmFlowReckoning.acceptanceNoRequired"),
|
|
245
244
|
data: d($).projectNameDict.values,
|
|
246
245
|
disabled: "",
|
|
@@ -252,7 +251,7 @@ const he = { class: "title" }, Ve = /* @__PURE__ */ ne({
|
|
|
252
251
|
]),
|
|
253
252
|
_: 1
|
|
254
253
|
}),
|
|
255
|
-
t(
|
|
254
|
+
t(n, { span: 24 }, {
|
|
256
255
|
default: o(() => [
|
|
257
256
|
t(m, {
|
|
258
257
|
label: l.$t("itsmFlowReckoning.serviceOrg"),
|
|
@@ -260,8 +259,8 @@ const he = { class: "title" }, Ve = /* @__PURE__ */ ne({
|
|
|
260
259
|
}, {
|
|
261
260
|
default: o(() => [
|
|
262
261
|
t(O, {
|
|
263
|
-
modelValue: d(
|
|
264
|
-
"onUpdate:modelValue": e[3] || (e[3] = (a) => d(
|
|
262
|
+
modelValue: d(s).serviceOrg,
|
|
263
|
+
"onUpdate:modelValue": e[3] || (e[3] = (a) => d(s).serviceOrg = a),
|
|
265
264
|
placeholder: l.$t("itsmFlowReckoning.acceptanceNoRequired"),
|
|
266
265
|
data: d($).orgIdBizDict.values,
|
|
267
266
|
disabled: "",
|
|
@@ -273,7 +272,7 @@ const he = { class: "title" }, Ve = /* @__PURE__ */ ne({
|
|
|
273
272
|
]),
|
|
274
273
|
_: 1
|
|
275
274
|
}),
|
|
276
|
-
t(
|
|
275
|
+
t(n, { span: 24 }, {
|
|
277
276
|
default: o(() => [
|
|
278
277
|
t(m, {
|
|
279
278
|
label: l.$t("itsmFlowReckoning.acceptanceNo"),
|
|
@@ -281,10 +280,10 @@ const he = { class: "title" }, Ve = /* @__PURE__ */ ne({
|
|
|
281
280
|
}, {
|
|
282
281
|
default: o(() => [
|
|
283
282
|
t(O, {
|
|
284
|
-
modelValue: d(
|
|
285
|
-
"onUpdate:modelValue": e[4] || (e[4] = (a) => d(
|
|
283
|
+
modelValue: d(s).acceptanceNo,
|
|
284
|
+
"onUpdate:modelValue": e[4] || (e[4] = (a) => d(s).acceptanceNo = a),
|
|
286
285
|
placeholder: l.$t("itsmFlowReckoning.acceptanceNoRequireds"),
|
|
287
|
-
data: d(
|
|
286
|
+
data: d(R).values,
|
|
288
287
|
clearable: "",
|
|
289
288
|
filterable: "",
|
|
290
289
|
class: "w-full",
|
|
@@ -296,7 +295,7 @@ const he = { class: "title" }, Ve = /* @__PURE__ */ ne({
|
|
|
296
295
|
]),
|
|
297
296
|
_: 1
|
|
298
297
|
}),
|
|
299
|
-
t(
|
|
298
|
+
t(n, { span: 24 }, {
|
|
300
299
|
default: o(() => [
|
|
301
300
|
t(m, {
|
|
302
301
|
label: l.$t("itsmFlowReckoning.orderNo"),
|
|
@@ -304,8 +303,8 @@ const he = { class: "title" }, Ve = /* @__PURE__ */ ne({
|
|
|
304
303
|
}, {
|
|
305
304
|
default: o(() => [
|
|
306
305
|
t(c, {
|
|
307
|
-
modelValue: d(
|
|
308
|
-
"onUpdate:modelValue": e[5] || (e[5] = (a) => d(
|
|
306
|
+
modelValue: d(s).orderNo,
|
|
307
|
+
"onUpdate:modelValue": e[5] || (e[5] = (a) => d(s).orderNo = a),
|
|
309
308
|
placeholder: l.$t("itsmFlowReckoning.orderNoRequired"),
|
|
310
309
|
disabled: ""
|
|
311
310
|
}, null, 8, ["modelValue", "placeholder"])
|
|
@@ -315,7 +314,7 @@ const he = { class: "title" }, Ve = /* @__PURE__ */ ne({
|
|
|
315
314
|
]),
|
|
316
315
|
_: 1
|
|
317
316
|
}),
|
|
318
|
-
t(
|
|
317
|
+
t(n, { span: 24 }, {
|
|
319
318
|
default: o(() => [
|
|
320
319
|
t(m, {
|
|
321
320
|
label: l.$t("itsmFlowReckoning.reckoningNo"),
|
|
@@ -323,8 +322,8 @@ const he = { class: "title" }, Ve = /* @__PURE__ */ ne({
|
|
|
323
322
|
}, {
|
|
324
323
|
default: o(() => [
|
|
325
324
|
t(c, {
|
|
326
|
-
modelValue: d(
|
|
327
|
-
"onUpdate:modelValue": e[6] || (e[6] = (a) => d(
|
|
325
|
+
modelValue: d(s).reckoningNo,
|
|
326
|
+
"onUpdate:modelValue": e[6] || (e[6] = (a) => d(s).reckoningNo = a),
|
|
328
327
|
placeholder: l.$t("itsmFlowReckoning.reckoningNoRequired"),
|
|
329
328
|
disabled: ""
|
|
330
329
|
}, null, 8, ["modelValue", "placeholder"])
|
|
@@ -334,7 +333,7 @@ const he = { class: "title" }, Ve = /* @__PURE__ */ ne({
|
|
|
334
333
|
]),
|
|
335
334
|
_: 1
|
|
336
335
|
}),
|
|
337
|
-
t(
|
|
336
|
+
t(n, { span: 24 }, {
|
|
338
337
|
default: o(() => [
|
|
339
338
|
t(m, {
|
|
340
339
|
label: l.$t("itsmFlowReckoning.serviceContent"),
|
|
@@ -342,8 +341,8 @@ const he = { class: "title" }, Ve = /* @__PURE__ */ ne({
|
|
|
342
341
|
}, {
|
|
343
342
|
default: o(() => [
|
|
344
343
|
t(c, {
|
|
345
|
-
modelValue: d(
|
|
346
|
-
"onUpdate:modelValue": e[7] || (e[7] = (a) => d(
|
|
344
|
+
modelValue: d(s).serviceContent,
|
|
345
|
+
"onUpdate:modelValue": e[7] || (e[7] = (a) => d(s).serviceContent = a),
|
|
347
346
|
placeholder: l.$t("itsmFlowReckoning.acceptanceNoRequired"),
|
|
348
347
|
maxlength: "500",
|
|
349
348
|
rows: 4,
|
|
@@ -361,7 +360,7 @@ const he = { class: "title" }, Ve = /* @__PURE__ */ ne({
|
|
|
361
360
|
]),
|
|
362
361
|
_: 1
|
|
363
362
|
}),
|
|
364
|
-
t(
|
|
363
|
+
t(oe, {
|
|
365
364
|
data: f.value,
|
|
366
365
|
border: "",
|
|
367
366
|
style: { width: "100%" }
|
|
@@ -380,17 +379,17 @@ const he = { class: "title" }, Ve = /* @__PURE__ */ ne({
|
|
|
380
379
|
width: "150"
|
|
381
380
|
}, {
|
|
382
381
|
default: o(({ row: a }) => [
|
|
383
|
-
t(
|
|
382
|
+
t(x, {
|
|
384
383
|
modelValue: a.userId,
|
|
385
384
|
"onUpdate:modelValue": (u) => a.userId = u,
|
|
386
385
|
placeholder: l.$t("itsmFlowEntrustUser.userIdRequired"),
|
|
387
386
|
class: "w-full",
|
|
388
387
|
filterable: "",
|
|
389
388
|
clearable: "",
|
|
390
|
-
onChange: (u) =>
|
|
389
|
+
onChange: (u) => X(u, a)
|
|
391
390
|
}, {
|
|
392
391
|
default: o(() => [
|
|
393
|
-
(w(!0),
|
|
392
|
+
(w(!0), re(ue, null, ce(h.value.values, (u) => (w(), V(Z, {
|
|
394
393
|
key: u.key,
|
|
395
394
|
label: u.value,
|
|
396
395
|
value: u.key
|
|
@@ -438,7 +437,7 @@ const he = { class: "title" }, Ve = /* @__PURE__ */ ne({
|
|
|
438
437
|
width: "140"
|
|
439
438
|
}, {
|
|
440
439
|
default: o(({ row: a }) => [
|
|
441
|
-
t(
|
|
440
|
+
t(ee, {
|
|
442
441
|
modelValue: a.duration,
|
|
443
442
|
"onUpdate:modelValue": (u) => a.duration = u,
|
|
444
443
|
precision: 1,
|
|
@@ -455,7 +454,7 @@ const he = { class: "title" }, Ve = /* @__PURE__ */ ne({
|
|
|
455
454
|
"header-align": "center"
|
|
456
455
|
}, {
|
|
457
456
|
default: o(({ row: a }) => [
|
|
458
|
-
b(g(d(
|
|
457
|
+
b(g(d(fe)(a.cost, a.duration)), 1)
|
|
459
458
|
]),
|
|
460
459
|
_: 1
|
|
461
460
|
}, 8, ["label"]),
|
|
@@ -465,7 +464,7 @@ const he = { class: "title" }, Ve = /* @__PURE__ */ ne({
|
|
|
465
464
|
align: "center"
|
|
466
465
|
}, {
|
|
467
466
|
default: o((a) => [
|
|
468
|
-
a.$index !== 0 ? (w(), V(
|
|
467
|
+
a.$index !== 0 ? (w(), V(te, {
|
|
469
468
|
key: 0,
|
|
470
469
|
onClick: (u) => L(a),
|
|
471
470
|
size: "18",
|
|
@@ -473,10 +472,10 @@ const he = { class: "title" }, Ve = /* @__PURE__ */ ne({
|
|
|
473
472
|
class: "hover-blue"
|
|
474
473
|
}, {
|
|
475
474
|
default: o(() => [
|
|
476
|
-
t(
|
|
475
|
+
t(le)
|
|
477
476
|
]),
|
|
478
477
|
_: 2
|
|
479
|
-
}, 1032, ["onClick"])) :
|
|
478
|
+
}, 1032, ["onClick"])) : me("", !0)
|
|
480
479
|
]),
|
|
481
480
|
_: 1
|
|
482
481
|
}, 8, ["label"])
|
|
@@ -493,7 +492,7 @@ const he = { class: "title" }, Ve = /* @__PURE__ */ ne({
|
|
|
493
492
|
]),
|
|
494
493
|
_: 1
|
|
495
494
|
}, 8, ["icon"]),
|
|
496
|
-
t(
|
|
495
|
+
t(n, {
|
|
497
496
|
span: 24,
|
|
498
497
|
class: "bordered-row"
|
|
499
498
|
}, {
|
|
@@ -502,7 +501,7 @@ const he = { class: "title" }, Ve = /* @__PURE__ */ ne({
|
|
|
502
501
|
label: l.$t("itsmFlowReckoning.totalPrice")
|
|
503
502
|
}, {
|
|
504
503
|
default: o(() => [
|
|
505
|
-
b(g(d(
|
|
504
|
+
b(g(d(be)(K.value)), 1)
|
|
506
505
|
]),
|
|
507
506
|
_: 1
|
|
508
507
|
}, 8, ["label"])
|
|
@@ -511,7 +510,7 @@ const he = { class: "title" }, Ve = /* @__PURE__ */ ne({
|
|
|
511
510
|
}),
|
|
512
511
|
t(j, { class: "bordered-row" }, {
|
|
513
512
|
default: o(() => [
|
|
514
|
-
t(
|
|
513
|
+
t(n, { span: 12 }, {
|
|
515
514
|
default: o(() => e[10] || (e[10] = [
|
|
516
515
|
i("div", { class: "content-box" }, [
|
|
517
516
|
i("div", { class: "content-box-top" }, [
|
|
@@ -529,7 +528,7 @@ const he = { class: "title" }, Ve = /* @__PURE__ */ ne({
|
|
|
529
528
|
])),
|
|
530
529
|
_: 1
|
|
531
530
|
}),
|
|
532
|
-
t(
|
|
531
|
+
t(n, {
|
|
533
532
|
span: 12,
|
|
534
533
|
class: "with-divider"
|
|
535
534
|
}, {
|
|
@@ -563,5 +562,5 @@ const he = { class: "title" }, Ve = /* @__PURE__ */ ne({
|
|
|
563
562
|
}
|
|
564
563
|
});
|
|
565
564
|
export {
|
|
566
|
-
|
|
565
|
+
Ie as _
|
|
567
566
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { defineComponent as Ee, mergeModels as Q, ref as f, useModel as Ve, reactive as W, resolveComponent as d, openBlock as E, createBlock as k, withCtx as n, createElementVNode as u, createVNode as l, createTextVNode as V, toDisplayString as _, unref as s, createElementBlock as X, Fragment as Y, renderList as Z, createCommentVNode as Fe } from "vue";
|
|
2
2
|
import { ElMessage as O } from "element-plus";
|
|
3
3
|
import { useI18n as Ue } from "vue-i18n";
|
|
4
|
-
import { b as _e, C as g, c as Ne, d as Ce, D as F, a as K, e as $e, f as x, p as ke } from "./index-
|
|
4
|
+
import { b as _e, C as g, c as Ne, d as Ce, D as F, a as K, e as $e, f as x, p as ke } from "./index-CitJdS-N.mjs";
|
|
5
5
|
import "xyvcard-itsm";
|
|
6
6
|
const Oe = { class: "title" }, Me = /* @__PURE__ */ Ee({
|
|
7
7
|
__name: "edit",
|
|
@@ -1,5 +1,5 @@
|
|
|
1
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-
|
|
2
|
+
import { s as Ue, w as Ge, j as Ze, k as Je, l as $t } from "./index-CitJdS-N.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;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { defineComponent as M, ref as R, reactive as S, resolveComponent as s, resolveDirective as W, openBlock as c, createElementBlock as _, createElementVNode as V, createVNode as l, withCtx as t, withKeys as v, unref as a, createTextVNode as k, toDisplayString as d, withDirectives as $, createBlock as F, isRef as U, createCommentVNode as q } from "vue";
|
|
2
2
|
import { useTableHooks as X } from "jmash-core";
|
|
3
3
|
import { useI18n as Y } from "vue-i18n";
|
|
4
|
-
import { i as Z } from "./common
|
|
5
|
-
import { _ as x } from "./edit.vue_vue_type_script_setup_true_lang-
|
|
6
|
-
import { C as ee, D as h } from "./index-
|
|
4
|
+
import { i as Z } from "./common-Cwl5jzlM.mjs";
|
|
5
|
+
import { _ as x } from "./edit.vue_vue_type_script_setup_true_lang-D9fa466K.mjs";
|
|
6
|
+
import { C as ee, D as h } from "./index-CitJdS-N.mjs";
|
|
7
7
|
const oe = { class: "app-container" }, le = { class: "search-container" }, te = ["onClick"], ne = ["onClick"], pe = /* @__PURE__ */ M({
|
|
8
8
|
__name: "index",
|
|
9
9
|
setup(ae) {
|