xyvcard-itsm-flow 0.0.9 → 0.0.10
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/{edit-BatVtQjM.mjs → edit-BnJnxvY6.mjs} +1 -1
- package/dist/{edit-CJKi69Ya.mjs → edit-D8J1Znw_.mjs} +1 -1
- package/dist/{edit-RNcc8UYn.mjs → edit-har-8Y54.mjs} +1 -1
- package/dist/{edit.vue_vue_type_script_setup_true_lang-D9fa466K.mjs → edit.vue_vue_type_script_setup_true_lang-BZ-prpPo.mjs} +3 -4
- package/dist/{edit.vue_vue_type_script_setup_true_lang-DlfhAjvW.mjs → edit.vue_vue_type_script_setup_true_lang-QsTI3qOD.mjs} +1 -1
- package/dist/{edit.vue_vue_type_script_setup_true_lang-4mAArGdW.mjs → edit.vue_vue_type_script_setup_true_lang-TXBAzoPS.mjs} +138 -135
- package/dist/{el-message-9Nit-6wb.mjs → el-message-CIdVBT5R.mjs} +1 -1
- package/dist/{index-CpSpS_gR.mjs → index-BAHlhmvh.mjs} +60 -61
- package/dist/{index-tnwVLRVb.mjs → index-BjBTIknS.mjs} +115 -114
- package/dist/{index-w_RSrZed.mjs → index-C6XFHtva.mjs} +72 -76
- package/dist/{index-BkB6hpAN.mjs → index-CF0oM0UA.mjs} +98 -99
- package/dist/{index-2vkMhoSW.mjs → index-Cp3csR1g.mjs} +2 -2
- package/dist/{index-Ckl3mXfI.mjs → index-DBIF93AC.mjs} +175 -157
- package/dist/{index-BqZwYXr_.mjs → index-DKIrRXT5.mjs} +2 -2
- package/dist/{index-DmttwKtY.mjs → index-DnFWLmFk.mjs} +58 -59
- package/dist/{index-CitJdS-N.mjs → index-DugZK_BS.mjs} +56 -60
- package/dist/{index-ay0TMqjH.mjs → index-bMREgnhp.mjs} +2 -2
- package/dist/index.mjs +60 -59
- package/dts/api/itsm-flow-acceptance/index.d.ts +1 -3
- package/dts/api/itsm-flow-acceptance/types.d.ts +1 -6
- package/dts/constant.d.ts +3 -0
- package/dts/lang/itsm-flow/zh-cn.d.ts +1 -0
- package/package.json +1 -1
|
@@ -1,11 +1,10 @@
|
|
|
1
|
-
import { defineComponent as ne, mergeModels as se, ref as g, useModel as de, reactive as
|
|
1
|
+
import { defineComponent as ne, mergeModels as se, ref as g, useModel as de, reactive as C, computed as re, resolveComponent as u, openBlock as k, createElementBlock as E, Fragment as D, createVNode as t, withCtx as a, createElementVNode as r, unref as d, renderList as ue, createBlock as B, createTextVNode as N, toDisplayString as I, createCommentVNode as ie } from "vue";
|
|
2
2
|
import "element-plus";
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
|
|
8
|
-
const Ve = /* @__PURE__ */ ne({
|
|
3
|
+
import { useI18n as ce } from "vue-i18n";
|
|
4
|
+
import { g as me, C as O, D as U, h as M, p as pe, e as fe } from "./index-DugZK_BS.mjs";
|
|
5
|
+
import { i as z, t as be, a as ve } from "./common-Cwl5jzlM.mjs";
|
|
6
|
+
import { E as ge } from "./el-message-CIdVBT5R.mjs";
|
|
7
|
+
const _e = /* @__PURE__ */ ne({
|
|
9
8
|
__name: "index",
|
|
10
9
|
props: /* @__PURE__ */ se({
|
|
11
10
|
task: {
|
|
@@ -19,19 +18,19 @@ const Ve = /* @__PURE__ */ ne({
|
|
|
19
18
|
}),
|
|
20
19
|
emits: ["update:modelValue"],
|
|
21
20
|
setup(_, { expose: A }) {
|
|
22
|
-
const { t: h } =
|
|
23
|
-
applyStatus:
|
|
21
|
+
const { t: h } = ce(), R = g([]), F = new me({
|
|
22
|
+
applyStatus: O.applyStatus.finished
|
|
24
23
|
});
|
|
25
24
|
F.useValues(), U.orgIdBizDict.useValues();
|
|
26
|
-
const
|
|
25
|
+
const w = _, V = g({
|
|
27
26
|
curPage: 1,
|
|
28
27
|
pageSize: 10,
|
|
29
|
-
reckoningId:
|
|
30
|
-
}), f = de(_, "modelValue"),
|
|
31
|
-
let n =
|
|
28
|
+
reckoningId: w.task.businessKey
|
|
29
|
+
}), f = de(_, "modelValue"), $ = g();
|
|
30
|
+
let n = C({
|
|
32
31
|
requestId: Math.random() * 10 + ""
|
|
33
32
|
});
|
|
34
|
-
const
|
|
33
|
+
const P = re(() => p.value.map((l) => ({
|
|
35
34
|
cost: typeof l.cost == "number" ? l.cost : 0,
|
|
36
35
|
duration: typeof l.duration == "number" ? l.duration : 0
|
|
37
36
|
}))), p = g([
|
|
@@ -43,7 +42,7 @@ const Ve = /* @__PURE__ */ ne({
|
|
|
43
42
|
entrustUserId: ""
|
|
44
43
|
}
|
|
45
44
|
]);
|
|
46
|
-
function
|
|
45
|
+
function S() {
|
|
47
46
|
p.value.push({
|
|
48
47
|
userId: "",
|
|
49
48
|
idNo: "",
|
|
@@ -52,11 +51,11 @@ const Ve = /* @__PURE__ */ ne({
|
|
|
52
51
|
entrustUserId: ""
|
|
53
52
|
});
|
|
54
53
|
}
|
|
55
|
-
function
|
|
54
|
+
function j(l) {
|
|
56
55
|
const e = p.value.indexOf(l.row);
|
|
57
56
|
e !== 0 && p.value.splice(e, 1);
|
|
58
57
|
}
|
|
59
|
-
const
|
|
58
|
+
const L = C({
|
|
60
59
|
acceptanceNo: [
|
|
61
60
|
{
|
|
62
61
|
required: !0,
|
|
@@ -72,42 +71,43 @@ const Ve = /* @__PURE__ */ ne({
|
|
|
72
71
|
}
|
|
73
72
|
]
|
|
74
73
|
});
|
|
75
|
-
|
|
74
|
+
w.task.businessKey && K(), A({
|
|
76
75
|
changeModel: () => Q()
|
|
77
76
|
});
|
|
78
|
-
function
|
|
79
|
-
|
|
77
|
+
function T() {
|
|
78
|
+
fe.findList({ actionId: V.value.reckoningId }).then(({ data: l }) => {
|
|
80
79
|
const e = l.results.map(
|
|
81
80
|
(s) => ({
|
|
82
81
|
...s,
|
|
83
82
|
duration: Number(s.duration)
|
|
84
|
-
// 将字符串转换为数字
|
|
85
83
|
})
|
|
86
84
|
);
|
|
87
85
|
p.value = e;
|
|
88
86
|
});
|
|
89
87
|
}
|
|
90
|
-
function
|
|
91
|
-
|
|
92
|
-
Object.assign(n, l),
|
|
93
|
-
|
|
88
|
+
function K() {
|
|
89
|
+
z.findById({ reckoningId: V.value.reckoningId }).then(({ data: l }) => {
|
|
90
|
+
Object.assign(n, l), b.value = new M({
|
|
91
|
+
actionId: (l == null ? void 0 : l.entrustId) ?? ""
|
|
92
|
+
}), b.value.useValues();
|
|
93
|
+
}), T();
|
|
94
94
|
}
|
|
95
|
-
function
|
|
96
|
-
|
|
95
|
+
function W() {
|
|
96
|
+
b.value = { values: [] }, p.value.forEach((l) => {
|
|
97
97
|
l.userId = "", l.idNo = "", l.cost = 0, l.duration = 0;
|
|
98
98
|
});
|
|
99
99
|
}
|
|
100
|
-
const
|
|
101
|
-
function
|
|
100
|
+
const b = g({});
|
|
101
|
+
function G(l) {
|
|
102
102
|
const e = F.values.find(
|
|
103
103
|
(s) => s.key === l
|
|
104
104
|
);
|
|
105
|
-
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) ?? "",
|
|
105
|
+
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(), b.value = new M({
|
|
106
106
|
actionId: (e == null ? void 0 : e.entrustId) ?? ""
|
|
107
|
-
}),
|
|
107
|
+
}), b.value.useValues();
|
|
108
108
|
}
|
|
109
109
|
function H(l, e) {
|
|
110
|
-
const s =
|
|
110
|
+
const s = b.value.values.find(
|
|
111
111
|
(c) => c.key === l
|
|
112
112
|
);
|
|
113
113
|
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 = "");
|
|
@@ -122,14 +122,14 @@ const Ve = /* @__PURE__ */ ne({
|
|
|
122
122
|
return f.value && (f.value.selectActions = [
|
|
123
123
|
{ key: "true", value: "同意" },
|
|
124
124
|
{ key: "false", value: "不同意" }
|
|
125
|
-
], f.value.varName = "approved", f.value.module = "", f.value.module =
|
|
125
|
+
], f.value.varName = "approved", f.value.module = "", f.value.module = O.MODULE_ITSMFLOW), new Promise((l, e) => {
|
|
126
126
|
var s;
|
|
127
|
-
(s =
|
|
127
|
+
(s = $.value) == null || s.validate((c) => {
|
|
128
128
|
c ? f.value && (f.value.comment = "", J(), n.requestId = Math.random() * 10 + "", z.save({
|
|
129
129
|
...n,
|
|
130
130
|
entrustUser: R.value
|
|
131
131
|
}).then((m) => {
|
|
132
|
-
m.status === 200 ? l(!0) : (
|
|
132
|
+
m.status === 200 ? l(!0) : (ge({
|
|
133
133
|
message: "保存失败,请联系管理员!",
|
|
134
134
|
type: "error"
|
|
135
135
|
}), e(!1));
|
|
@@ -138,8 +138,8 @@ const Ve = /* @__PURE__ */ ne({
|
|
|
138
138
|
});
|
|
139
139
|
}
|
|
140
140
|
return (l, e) => {
|
|
141
|
-
const s =
|
|
142
|
-
return k(), D
|
|
141
|
+
const s = u("el-col"), c = u("el-input"), m = u("el-form-item"), X = u("jmash-dict-select"), y = u("jmash-select"), q = u("el-row"), v = u("el-table-column"), Y = u("el-option"), Z = u("el-select"), x = u("el-input-number"), ee = u("DeleteFilled"), le = u("el-icon"), te = u("el-table"), oe = u("el-button"), ae = u("el-form");
|
|
142
|
+
return k(), E(D, null, [
|
|
143
143
|
t(s, { span: 24 }, {
|
|
144
144
|
default: a(() => e[8] || (e[8] = [
|
|
145
145
|
r("div", { class: "title" }, "委托服务合同结算清单", -1)
|
|
@@ -148,10 +148,10 @@ const Ve = /* @__PURE__ */ ne({
|
|
|
148
148
|
}),
|
|
149
149
|
t(ae, {
|
|
150
150
|
ref_key: "taskFormRef",
|
|
151
|
-
ref:
|
|
151
|
+
ref: $,
|
|
152
152
|
model: d(n),
|
|
153
153
|
"label-width": "150px",
|
|
154
|
-
rules:
|
|
154
|
+
rules: L,
|
|
155
155
|
class: "custom-table-form custom-form"
|
|
156
156
|
}, {
|
|
157
157
|
default: a(() => [
|
|
@@ -221,7 +221,7 @@ const Ve = /* @__PURE__ */ ne({
|
|
|
221
221
|
prop: "serviceOrg"
|
|
222
222
|
}, {
|
|
223
223
|
default: a(() => [
|
|
224
|
-
t(
|
|
224
|
+
t(y, {
|
|
225
225
|
modelValue: d(n).serviceOrg,
|
|
226
226
|
"onUpdate:modelValue": e[3] || (e[3] = (o) => d(n).serviceOrg = o),
|
|
227
227
|
placeholder: l.$t("itsmFlowReckoning.acceptanceNoRequired"),
|
|
@@ -242,7 +242,7 @@ const Ve = /* @__PURE__ */ ne({
|
|
|
242
242
|
prop: "acceptanceNo"
|
|
243
243
|
}, {
|
|
244
244
|
default: a(() => [
|
|
245
|
-
t(
|
|
245
|
+
t(y, {
|
|
246
246
|
modelValue: d(n).acceptanceNo,
|
|
247
247
|
"onUpdate:modelValue": e[4] || (e[4] = (o) => d(n).acceptanceNo = o),
|
|
248
248
|
placeholder: l.$t("itsmFlowReckoning.acceptanceNoRequireds"),
|
|
@@ -250,7 +250,7 @@ const Ve = /* @__PURE__ */ ne({
|
|
|
250
250
|
clearable: "",
|
|
251
251
|
filterable: "",
|
|
252
252
|
class: "w-full",
|
|
253
|
-
onChange:
|
|
253
|
+
onChange: G
|
|
254
254
|
}, null, 8, ["modelValue", "placeholder", "data"])
|
|
255
255
|
]),
|
|
256
256
|
_: 1
|
|
@@ -258,7 +258,7 @@ const Ve = /* @__PURE__ */ ne({
|
|
|
258
258
|
]),
|
|
259
259
|
_: 1
|
|
260
260
|
}),
|
|
261
|
-
t(
|
|
261
|
+
t(q, null, {
|
|
262
262
|
default: a(() => [
|
|
263
263
|
t(s, { span: 24 }, {
|
|
264
264
|
default: a(() => [
|
|
@@ -331,33 +331,32 @@ const Ve = /* @__PURE__ */ ne({
|
|
|
331
331
|
style: { width: "100%" }
|
|
332
332
|
}, {
|
|
333
333
|
default: a(() => [
|
|
334
|
-
t(
|
|
334
|
+
t(v, {
|
|
335
335
|
type: "index",
|
|
336
336
|
label: l.$t("itsmFlowEntrustUser.index"),
|
|
337
337
|
width: "60",
|
|
338
338
|
align: "center"
|
|
339
339
|
}, null, 8, ["label"]),
|
|
340
|
-
t(
|
|
340
|
+
t(v, {
|
|
341
341
|
prop: "userId",
|
|
342
342
|
label: l.$t("itsmFlowEntrustUser.userId"),
|
|
343
|
-
"header-align": "center"
|
|
344
|
-
width: "150"
|
|
343
|
+
"header-align": "center"
|
|
345
344
|
}, {
|
|
346
345
|
default: a(({ row: o }) => [
|
|
347
346
|
t(Z, {
|
|
348
347
|
modelValue: o.userId,
|
|
349
|
-
"onUpdate:modelValue": (
|
|
348
|
+
"onUpdate:modelValue": (i) => o.userId = i,
|
|
350
349
|
placeholder: l.$t("itsmFlowEntrustUser.userIdRequired"),
|
|
351
350
|
class: "w-full",
|
|
352
351
|
filterable: "",
|
|
353
352
|
clearable: "",
|
|
354
|
-
onChange: (
|
|
353
|
+
onChange: (i) => H(i, o)
|
|
355
354
|
}, {
|
|
356
355
|
default: a(() => [
|
|
357
|
-
(k(!0), D
|
|
358
|
-
key:
|
|
359
|
-
label:
|
|
360
|
-
value:
|
|
356
|
+
(k(!0), E(D, null, ue(b.value.values, (i) => (k(), B(Y, {
|
|
357
|
+
key: i.key,
|
|
358
|
+
label: i.value,
|
|
359
|
+
value: i.key
|
|
361
360
|
}, null, 8, ["label", "value"]))), 128))
|
|
362
361
|
]),
|
|
363
362
|
_: 2
|
|
@@ -365,46 +364,43 @@ const Ve = /* @__PURE__ */ ne({
|
|
|
365
364
|
]),
|
|
366
365
|
_: 1
|
|
367
366
|
}, 8, ["label"]),
|
|
368
|
-
t(
|
|
367
|
+
t(v, {
|
|
369
368
|
label: l.$t("itsmFlowEntrustUser.idNo"),
|
|
370
|
-
"header-align": "center"
|
|
371
|
-
width: "190"
|
|
369
|
+
"header-align": "center"
|
|
372
370
|
}, {
|
|
373
371
|
default: a(({ row: o }) => [
|
|
374
372
|
t(c, {
|
|
375
373
|
modelValue: o.idNo,
|
|
376
|
-
"onUpdate:modelValue": (
|
|
374
|
+
"onUpdate:modelValue": (i) => o.idNo = i,
|
|
377
375
|
placeholder: l.$t("itsmFlowEntrustUser.userIdRequireds"),
|
|
378
376
|
disabled: ""
|
|
379
377
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "placeholder"])
|
|
380
378
|
]),
|
|
381
379
|
_: 1
|
|
382
380
|
}, 8, ["label"]),
|
|
383
|
-
t(
|
|
381
|
+
t(v, {
|
|
384
382
|
label: l.$t("itsmFlowEntrustUser.cost"),
|
|
385
|
-
"header-align": "center"
|
|
386
|
-
width: "130"
|
|
383
|
+
"header-align": "center"
|
|
387
384
|
}, {
|
|
388
385
|
default: a(({ row: o }) => [
|
|
389
386
|
t(c, {
|
|
390
387
|
modelValue: o.cost,
|
|
391
|
-
"onUpdate:modelValue": (
|
|
388
|
+
"onUpdate:modelValue": (i) => o.cost = i,
|
|
392
389
|
placeholder: l.$t("itsmFlowEntrustUser.userIdRequireds"),
|
|
393
390
|
disabled: ""
|
|
394
391
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "placeholder"])
|
|
395
392
|
]),
|
|
396
393
|
_: 1
|
|
397
394
|
}, 8, ["label"]),
|
|
398
|
-
t(
|
|
395
|
+
t(v, {
|
|
399
396
|
prop: "duration",
|
|
400
397
|
label: l.$t("itsmFlowReckoning.serviceTime"),
|
|
401
|
-
"header-align": "center"
|
|
402
|
-
width: "140"
|
|
398
|
+
"header-align": "center"
|
|
403
399
|
}, {
|
|
404
400
|
default: a(({ row: o }) => [
|
|
405
401
|
t(x, {
|
|
406
402
|
modelValue: o.duration,
|
|
407
|
-
"onUpdate:modelValue": (
|
|
403
|
+
"onUpdate:modelValue": (i) => o.duration = i,
|
|
408
404
|
precision: 1,
|
|
409
405
|
step: 0.1,
|
|
410
406
|
min: 0,
|
|
@@ -413,25 +409,25 @@ const Ve = /* @__PURE__ */ ne({
|
|
|
413
409
|
]),
|
|
414
410
|
_: 1
|
|
415
411
|
}, 8, ["label"]),
|
|
416
|
-
t(
|
|
412
|
+
t(v, {
|
|
417
413
|
prop: "totalAmount",
|
|
418
414
|
label: l.$t("itsmFlowReckoning.totalAmount"),
|
|
419
415
|
"header-align": "center"
|
|
420
416
|
}, {
|
|
421
417
|
default: a(({ row: o }) => [
|
|
422
|
-
N(I(d(
|
|
418
|
+
N(I(d(be)(o.cost, o.duration)) + "元 ", 1)
|
|
423
419
|
]),
|
|
424
420
|
_: 1
|
|
425
421
|
}, 8, ["label"]),
|
|
426
|
-
t(
|
|
422
|
+
t(v, {
|
|
427
423
|
label: l.$t("common.operate"),
|
|
428
424
|
width: "60",
|
|
429
425
|
align: "center"
|
|
430
426
|
}, {
|
|
431
427
|
default: a((o) => [
|
|
432
|
-
o.$index !== 0 ? (k(),
|
|
428
|
+
o.$index !== 0 ? (k(), B(le, {
|
|
433
429
|
key: 0,
|
|
434
|
-
onClick: (
|
|
430
|
+
onClick: (i) => j(o),
|
|
435
431
|
size: "18",
|
|
436
432
|
style: { cursor: "pointer", color: "inherit" },
|
|
437
433
|
class: "hover-blue"
|
|
@@ -440,7 +436,7 @@ const Ve = /* @__PURE__ */ ne({
|
|
|
440
436
|
t(ee)
|
|
441
437
|
]),
|
|
442
438
|
_: 2
|
|
443
|
-
}, 1032, ["onClick"])) :
|
|
439
|
+
}, 1032, ["onClick"])) : ie("", !0)
|
|
444
440
|
]),
|
|
445
441
|
_: 1
|
|
446
442
|
}, 8, ["label"])
|
|
@@ -448,9 +444,9 @@ const Ve = /* @__PURE__ */ ne({
|
|
|
448
444
|
_: 1
|
|
449
445
|
}, 8, ["data"]),
|
|
450
446
|
t(oe, {
|
|
451
|
-
icon: d(
|
|
447
|
+
icon: d(pe),
|
|
452
448
|
class: "addButton",
|
|
453
|
-
onClick:
|
|
449
|
+
onClick: S
|
|
454
450
|
}, {
|
|
455
451
|
default: a(() => [
|
|
456
452
|
N(I(d(h)("common.add")), 1)
|
|
@@ -466,14 +462,14 @@ const Ve = /* @__PURE__ */ ne({
|
|
|
466
462
|
label: l.$t("itsmFlowReckoning.totalPrice")
|
|
467
463
|
}, {
|
|
468
464
|
default: a(() => [
|
|
469
|
-
N(I(d(
|
|
465
|
+
N(I(d(ve)(P.value)) + "元 ", 1)
|
|
470
466
|
]),
|
|
471
467
|
_: 1
|
|
472
468
|
}, 8, ["label"])
|
|
473
469
|
]),
|
|
474
470
|
_: 1
|
|
475
471
|
}),
|
|
476
|
-
t(
|
|
472
|
+
t(q, { class: "bordered-row" }, {
|
|
477
473
|
default: a(() => [
|
|
478
474
|
t(s, { span: 12 }, {
|
|
479
475
|
default: a(() => e[9] || (e[9] = [
|
|
@@ -525,5 +521,5 @@ const Ve = /* @__PURE__ */ ne({
|
|
|
525
521
|
}
|
|
526
522
|
});
|
|
527
523
|
export {
|
|
528
|
-
|
|
524
|
+
_e as default
|
|
529
525
|
};
|