xyvcard-itsm-flow 0.0.17 → 0.0.18
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-BKYkA5db.mjs → edit-DIh0NEYf.mjs} +1 -1
- package/dist/{edit-BeFLJLv1.mjs → edit-DdzFTqhg.mjs} +1 -1
- package/dist/{edit-BrIptvPg.mjs → edit-Vw2XQ1u6.mjs} +1 -1
- package/dist/{edit.vue_vue_type_script_setup_true_lang-CjjtZ0-a.mjs → edit.vue_vue_type_script_setup_true_lang-BjhcvEHi.mjs} +1 -1
- package/dist/{edit.vue_vue_type_script_setup_true_lang-BiWjf5y2.mjs → edit.vue_vue_type_script_setup_true_lang-m73-ejk7.mjs} +1 -1
- package/dist/{edit.vue_vue_type_script_setup_true_lang-BhTKkYft.mjs → edit.vue_vue_type_script_setup_true_lang-prup6BHU.mjs} +1 -1
- package/dist/{index-CZw5m3rz.mjs → index-7_pEehBt.mjs} +4 -8
- package/dist/{index-B9enSHLF.mjs → index-BI1uXq1f.mjs} +1 -1
- package/dist/{index-BuNBRcBE.mjs → index-C54FcKfo.mjs} +75 -70
- package/dist/{index-DY017z-s.mjs → index-C7_kMdm5.mjs} +2 -2
- package/dist/{index-C3OfA9Me.mjs → index-C7nUkCbR.mjs} +71 -65
- package/dist/{index-B7xhs2Eg.mjs → index-CITy8Hqm.mjs} +1 -1
- package/dist/{index-DVDOqO_3.mjs → index-Cgbv4Ijf.mjs} +16 -13
- package/dist/{index-B7M3zSyM.mjs → index-CxyHtsq2.mjs} +2 -2
- package/dist/{index-C0CZrR-1.mjs → index-DaSMRndr.mjs} +2 -2
- package/dist/{index-CW4AhrRD.mjs → index-DcpiD-9M.mjs} +100 -95
- package/dist/{index-Clc9EA6r.mjs → index-Dooa5UH_.mjs} +1 -1
- package/dist/{index-IG9HKXxJ.mjs → index-g0KiWDPW.mjs} +35 -38
- package/dist/{index-d_oBTW1A.mjs → index-tnTugnqa.mjs} +51 -54
- package/dist/index.mjs +1 -1
- package/dist/{info-D6GMiIlG.mjs → info-8NydJYfB.mjs} +1 -1
- package/dist/{info-DxYNokk4.mjs → info-BbMCDfFR.mjs} +1 -1
- package/dist/{info-CFSSXb0f.mjs → info-l0eP5Tw1.mjs} +1 -1
- package/dist/{info.vue_vue_type_script_setup_true_lang-BFT23MNt.mjs → info.vue_vue_type_script_setup_true_lang-BnDpoavn.mjs} +17 -13
- package/dist/{info.vue_vue_type_script_setup_true_lang-CSn1JLZG.mjs → info.vue_vue_type_script_setup_true_lang-DMw-pPEW.mjs} +1 -1
- package/dist/{info.vue_vue_type_script_setup_true_lang-CYmFW8We.mjs → info.vue_vue_type_script_setup_true_lang-wuHB-S6l.mjs} +1 -1
- package/dts/api/itsm-flow-acceptance/types.d.ts +1 -1
- package/dts/api/itsm-flow-entrust/types.d.ts +1 -1
- package/dts/api/itsm-flow-reckoning/types.d.ts +1 -1
- package/dts/constant.d.ts +1 -0
- package/package.json +2 -2
|
@@ -1,22 +1,24 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { useTableHooks as
|
|
3
|
-
import { useI18n as
|
|
4
|
-
import { i as
|
|
5
|
-
import { D as
|
|
6
|
-
import { _ as
|
|
7
|
-
const
|
|
1
|
+
import { defineComponent as H, ref as b, reactive as W, resolveComponent as u, resolveDirective as G, createElementBlock as S, openBlock as w, createElementVNode as N, createVNode as o, createBlock as h, createCommentVNode as D, withCtx as t, withKeys as m, unref as a, createTextVNode as y, toDisplayString as v, withDirectives as J, isRef as O } from "vue";
|
|
2
|
+
import { useTableHooks as M } from "jmash-core";
|
|
3
|
+
import { useI18n as X } from "vue-i18n";
|
|
4
|
+
import { i as Y } from "./common-Cwl5jzlM.mjs";
|
|
5
|
+
import { O as Z, C as x, D as V } from "./index-Cgbv4Ijf.mjs";
|
|
6
|
+
import { _ as ee } from "./info.vue_vue_type_script_setup_true_lang-BnDpoavn.mjs";
|
|
7
|
+
const le = { class: "app-container" }, oe = { class: "search-container" }, te = ["onClick"], de = /* @__PURE__ */ H({
|
|
8
8
|
__name: "index",
|
|
9
|
-
setup(
|
|
10
|
-
const { t:
|
|
9
|
+
setup(ne) {
|
|
10
|
+
const { t: k } = X(), r = b({}), {
|
|
11
11
|
tableHooks: i,
|
|
12
12
|
multipleTableRef: U,
|
|
13
|
-
queryFormRef:
|
|
14
|
-
listLoading:
|
|
15
|
-
tableData:
|
|
13
|
+
queryFormRef: q,
|
|
14
|
+
listLoading: j,
|
|
15
|
+
tableData: K,
|
|
16
16
|
total: f
|
|
17
|
-
} =
|
|
18
|
-
|
|
19
|
-
|
|
17
|
+
} = M(k, Y, r), R = new Z({
|
|
18
|
+
orgType: x.orgType.outsource
|
|
19
|
+
});
|
|
20
|
+
R.useValues();
|
|
21
|
+
let c = b([
|
|
20
22
|
{
|
|
21
23
|
label: "itsmFlowReckoning.contractName",
|
|
22
24
|
prop: "contractName",
|
|
@@ -73,31 +75,31 @@ const Z = { class: "app-container" }, x = { class: "search-container" }, ee = ["
|
|
|
73
75
|
}
|
|
74
76
|
]);
|
|
75
77
|
const d = b({
|
|
76
|
-
title:
|
|
78
|
+
title: k("common.view"),
|
|
77
79
|
visible: !1
|
|
78
80
|
});
|
|
79
|
-
let
|
|
80
|
-
function
|
|
81
|
-
|
|
81
|
+
let $ = W({});
|
|
82
|
+
function Q(n) {
|
|
83
|
+
$ = { ...n }, d.value.title = k("common.view"), d.value.visible = !0;
|
|
82
84
|
}
|
|
83
|
-
function
|
|
85
|
+
function T(n) {
|
|
84
86
|
i.selectionRows.value = n;
|
|
85
87
|
}
|
|
86
|
-
function
|
|
88
|
+
function z(n) {
|
|
87
89
|
i.handleSort(n.prop, n.order);
|
|
88
90
|
}
|
|
89
91
|
return i.getList(), (n, e) => {
|
|
90
|
-
const
|
|
91
|
-
return
|
|
92
|
-
|
|
93
|
-
o(
|
|
92
|
+
const g = u("el-input"), p = u("el-form-item"), s = u("el-col"), C = u("jmash-select"), F = u("el-button"), _ = u("el-row"), P = u("el-form"), B = u("jmash-column-select"), I = u("jmash-table"), A = u("jmash-pagination"), L = u("el-card"), E = G("hasPerm");
|
|
93
|
+
return w(), S("div", le, [
|
|
94
|
+
N("div", oe, [
|
|
95
|
+
o(P, {
|
|
94
96
|
ref_key: "queryFormRef",
|
|
95
|
-
ref:
|
|
96
|
-
model:
|
|
97
|
+
ref: q,
|
|
98
|
+
model: r.value,
|
|
97
99
|
inline: !0
|
|
98
100
|
}, {
|
|
99
101
|
default: t(() => [
|
|
100
|
-
o(
|
|
102
|
+
o(_, null, {
|
|
101
103
|
default: t(() => [
|
|
102
104
|
o(s, { span: 6 }, {
|
|
103
105
|
default: t(() => [
|
|
@@ -106,11 +108,11 @@ const Z = { class: "app-container" }, x = { class: "search-container" }, ee = ["
|
|
|
106
108
|
prop: "likeContractName"
|
|
107
109
|
}, {
|
|
108
110
|
default: t(() => [
|
|
109
|
-
o(
|
|
110
|
-
modelValue:
|
|
111
|
-
"onUpdate:modelValue": e[0] || (e[0] = (l) =>
|
|
111
|
+
o(g, {
|
|
112
|
+
modelValue: r.value.likeContractName,
|
|
113
|
+
"onUpdate:modelValue": e[0] || (e[0] = (l) => r.value.likeContractName = l),
|
|
112
114
|
placeholder: n.$t("itsmFlowReckoning.contractNameRequired"),
|
|
113
|
-
onKeyup: e[1] || (e[1] = m((l) =>
|
|
115
|
+
onKeyup: e[1] || (e[1] = m((l) => a(i).handleQuery(), ["enter"])),
|
|
114
116
|
class: "!w-[203px]"
|
|
115
117
|
}, null, 8, ["modelValue", "placeholder"])
|
|
116
118
|
]),
|
|
@@ -126,11 +128,11 @@ const Z = { class: "app-container" }, x = { class: "search-container" }, ee = ["
|
|
|
126
128
|
prop: "likeContractNo"
|
|
127
129
|
}, {
|
|
128
130
|
default: t(() => [
|
|
129
|
-
o(
|
|
130
|
-
modelValue:
|
|
131
|
-
"onUpdate:modelValue": e[2] || (e[2] = (l) =>
|
|
131
|
+
o(g, {
|
|
132
|
+
modelValue: r.value.likeContractNo,
|
|
133
|
+
"onUpdate:modelValue": e[2] || (e[2] = (l) => r.value.likeContractNo = l),
|
|
132
134
|
placeholder: n.$t("itsmFlowReckoning.contractNoRequired"),
|
|
133
|
-
onKeyup: e[3] || (e[3] = m((l) =>
|
|
135
|
+
onKeyup: e[3] || (e[3] = m((l) => a(i).handleQuery(), ["enter"])),
|
|
134
136
|
class: "!w-[203px]"
|
|
135
137
|
}, null, 8, ["modelValue", "placeholder"])
|
|
136
138
|
]),
|
|
@@ -146,11 +148,11 @@ const Z = { class: "app-container" }, x = { class: "search-container" }, ee = ["
|
|
|
146
148
|
prop: "acceptanceNo"
|
|
147
149
|
}, {
|
|
148
150
|
default: t(() => [
|
|
149
|
-
o(
|
|
150
|
-
modelValue:
|
|
151
|
-
"onUpdate:modelValue": e[4] || (e[4] = (l) =>
|
|
151
|
+
o(g, {
|
|
152
|
+
modelValue: r.value.acceptanceNo,
|
|
153
|
+
"onUpdate:modelValue": e[4] || (e[4] = (l) => r.value.acceptanceNo = l),
|
|
152
154
|
placeholder: n.$t("itsmFlowReckoning.acceptanceNoRequireds"),
|
|
153
|
-
onKeyup: e[5] || (e[5] = m((l) =>
|
|
155
|
+
onKeyup: e[5] || (e[5] = m((l) => a(i).handleQuery(), ["enter"])),
|
|
154
156
|
class: "!w-[203px]"
|
|
155
157
|
}, null, 8, ["modelValue", "placeholder"])
|
|
156
158
|
]),
|
|
@@ -166,11 +168,11 @@ const Z = { class: "app-container" }, x = { class: "search-container" }, ee = ["
|
|
|
166
168
|
prop: "orderNo"
|
|
167
169
|
}, {
|
|
168
170
|
default: t(() => [
|
|
169
|
-
o(
|
|
170
|
-
modelValue:
|
|
171
|
-
"onUpdate:modelValue": e[6] || (e[6] = (l) =>
|
|
171
|
+
o(g, {
|
|
172
|
+
modelValue: r.value.orderNo,
|
|
173
|
+
"onUpdate:modelValue": e[6] || (e[6] = (l) => r.value.orderNo = l),
|
|
172
174
|
placeholder: n.$t("itsmFlowReckoning.orderNoRequireds"),
|
|
173
|
-
onKeyup: e[7] || (e[7] = m((l) =>
|
|
175
|
+
onKeyup: e[7] || (e[7] = m((l) => a(i).handleQuery(), ["enter"])),
|
|
174
176
|
class: "!w-[203px]"
|
|
175
177
|
}, null, 8, ["modelValue", "placeholder"])
|
|
176
178
|
]),
|
|
@@ -186,11 +188,11 @@ const Z = { class: "app-container" }, x = { class: "search-container" }, ee = ["
|
|
|
186
188
|
prop: "reckoningNo"
|
|
187
189
|
}, {
|
|
188
190
|
default: t(() => [
|
|
189
|
-
o(
|
|
190
|
-
modelValue:
|
|
191
|
-
"onUpdate:modelValue": e[8] || (e[8] = (l) =>
|
|
191
|
+
o(g, {
|
|
192
|
+
modelValue: r.value.reckoningNo,
|
|
193
|
+
"onUpdate:modelValue": e[8] || (e[8] = (l) => r.value.reckoningNo = l),
|
|
192
194
|
placeholder: n.$t("itsmFlowReckoning.reckoningNoRequireds"),
|
|
193
|
-
onKeyup: e[9] || (e[9] = m((l) =>
|
|
195
|
+
onKeyup: e[9] || (e[9] = m((l) => a(i).handleQuery(), ["enter"])),
|
|
194
196
|
class: "!w-[203px]"
|
|
195
197
|
}, null, 8, ["modelValue", "placeholder"])
|
|
196
198
|
]),
|
|
@@ -206,13 +208,16 @@ const Z = { class: "app-container" }, x = { class: "search-container" }, ee = ["
|
|
|
206
208
|
prop: "likeServiceOrg"
|
|
207
209
|
}, {
|
|
208
210
|
default: t(() => [
|
|
209
|
-
o(
|
|
210
|
-
modelValue:
|
|
211
|
-
"onUpdate:modelValue": e[10] || (e[10] = (l) =>
|
|
212
|
-
placeholder: n.$t("
|
|
213
|
-
|
|
211
|
+
o(C, {
|
|
212
|
+
modelValue: r.value.serviceOrg,
|
|
213
|
+
"onUpdate:modelValue": e[10] || (e[10] = (l) => r.value.serviceOrg = l),
|
|
214
|
+
placeholder: n.$t("itsmFlowAcceptance.serviceOrgRequired"),
|
|
215
|
+
data: a(R).values,
|
|
216
|
+
clearable: "",
|
|
217
|
+
filterable: "",
|
|
218
|
+
onKeyup: e[11] || (e[11] = m((l) => a(i).handleQuery(), ["enter"])),
|
|
214
219
|
class: "!w-[203px]"
|
|
215
|
-
}, null, 8, ["modelValue", "placeholder"])
|
|
220
|
+
}, null, 8, ["modelValue", "placeholder", "data"])
|
|
216
221
|
]),
|
|
217
222
|
_: 1
|
|
218
223
|
}, 8, ["label"])
|
|
@@ -226,12 +231,12 @@ const Z = { class: "app-container" }, x = { class: "search-container" }, ee = ["
|
|
|
226
231
|
prop: "applyStatus"
|
|
227
232
|
}, {
|
|
228
233
|
default: t(() => [
|
|
229
|
-
o(
|
|
230
|
-
modelValue:
|
|
231
|
-
"onUpdate:modelValue": e[12] || (e[12] = (l) =>
|
|
234
|
+
o(C, {
|
|
235
|
+
modelValue: r.value.applyStatus,
|
|
236
|
+
"onUpdate:modelValue": e[12] || (e[12] = (l) => r.value.applyStatus = l),
|
|
232
237
|
placeholder: n.$t("itsmFlowAcceptance.applyStatusRequired"),
|
|
233
|
-
data:
|
|
234
|
-
onKeyup: e[13] || (e[13] = m((l) =>
|
|
238
|
+
data: a(V).applyStatusEnum.values,
|
|
239
|
+
onKeyup: e[13] || (e[13] = m((l) => a(i).handleQuery(), ["enter"]))
|
|
235
240
|
}, null, 8, ["modelValue", "placeholder", "data"])
|
|
236
241
|
]),
|
|
237
242
|
_: 1
|
|
@@ -243,20 +248,20 @@ const Z = { class: "app-container" }, x = { class: "search-container" }, ee = ["
|
|
|
243
248
|
default: t(() => [
|
|
244
249
|
o(p, { class: "search-btn" }, {
|
|
245
250
|
default: t(() => [
|
|
246
|
-
o(
|
|
251
|
+
o(F, {
|
|
247
252
|
type: "primary",
|
|
248
|
-
onClick: e[14] || (e[14] = (l) =>
|
|
253
|
+
onClick: e[14] || (e[14] = (l) => a(i).handleQuery())
|
|
249
254
|
}, {
|
|
250
255
|
default: t(() => [
|
|
251
|
-
|
|
256
|
+
y(v(n.$t("common.search")), 1)
|
|
252
257
|
]),
|
|
253
258
|
_: 1
|
|
254
259
|
}),
|
|
255
|
-
o(
|
|
256
|
-
onClick: e[15] || (e[15] = (l) =>
|
|
260
|
+
o(F, {
|
|
261
|
+
onClick: e[15] || (e[15] = (l) => a(i).resetQuery())
|
|
257
262
|
}, {
|
|
258
263
|
default: t(() => [
|
|
259
|
-
|
|
264
|
+
y(v(n.$t("common.reset")), 1)
|
|
260
265
|
]),
|
|
261
266
|
_: 1
|
|
262
267
|
})
|
|
@@ -278,7 +283,7 @@ const Z = { class: "app-container" }, x = { class: "search-container" }, ee = ["
|
|
|
278
283
|
class: "table-container"
|
|
279
284
|
}, {
|
|
280
285
|
header: t(() => [
|
|
281
|
-
o(
|
|
286
|
+
o(_, null, {
|
|
282
287
|
default: t(() => [
|
|
283
288
|
o(s, { span: 17 }),
|
|
284
289
|
o(s, {
|
|
@@ -286,9 +291,9 @@ const Z = { class: "app-container" }, x = { class: "search-container" }, ee = ["
|
|
|
286
291
|
class: "container-float"
|
|
287
292
|
}, {
|
|
288
293
|
default: t(() => [
|
|
289
|
-
o(
|
|
290
|
-
modelValue:
|
|
291
|
-
"onUpdate:modelValue": e[16] || (e[16] = (l) =>
|
|
294
|
+
o(B, {
|
|
295
|
+
modelValue: a(c),
|
|
296
|
+
"onUpdate:modelValue": e[16] || (e[16] = (l) => O(c) ? c.value = l : c = l),
|
|
292
297
|
"label-name": "itsm-flow-reckoning"
|
|
293
298
|
}, null, 8, ["modelValue"])
|
|
294
299
|
]),
|
|
@@ -299,42 +304,42 @@ const Z = { class: "app-container" }, x = { class: "search-container" }, ee = ["
|
|
|
299
304
|
})
|
|
300
305
|
]),
|
|
301
306
|
footer: t(() => [
|
|
302
|
-
|
|
307
|
+
a(f) > 0 ? (w(), h(A, {
|
|
303
308
|
key: 0,
|
|
304
|
-
total:
|
|
305
|
-
"onUpdate:total": e[17] || (e[17] = (l) =>
|
|
306
|
-
"current-page":
|
|
307
|
-
"onUpdate:currentPage": e[18] || (e[18] = (l) =>
|
|
308
|
-
"page-size":
|
|
309
|
-
"onUpdate:pageSize": e[19] || (e[19] = (l) =>
|
|
310
|
-
onPagination: e[20] || (e[20] = (l) =>
|
|
311
|
-
}, null, 8, ["total", "current-page", "page-size"])) :
|
|
309
|
+
total: a(f),
|
|
310
|
+
"onUpdate:total": e[17] || (e[17] = (l) => O(f) ? f.value = l : null),
|
|
311
|
+
"current-page": r.value.curPage,
|
|
312
|
+
"onUpdate:currentPage": e[18] || (e[18] = (l) => r.value.curPage = l),
|
|
313
|
+
"page-size": r.value.pageSize,
|
|
314
|
+
"onUpdate:pageSize": e[19] || (e[19] = (l) => r.value.pageSize = l),
|
|
315
|
+
onPagination: e[20] || (e[20] = (l) => a(i).getList())
|
|
316
|
+
}, null, 8, ["total", "current-page", "page-size"])) : D("", !0)
|
|
312
317
|
]),
|
|
313
318
|
default: t(() => [
|
|
314
|
-
o(
|
|
319
|
+
o(I, {
|
|
315
320
|
ref_key: "multipleTableRef",
|
|
316
321
|
ref: U,
|
|
317
322
|
"row-key": "reckoningId",
|
|
318
|
-
"list-loading":
|
|
319
|
-
data:
|
|
320
|
-
"table-label":
|
|
321
|
-
onSelectionChange:
|
|
322
|
-
onSortChange:
|
|
323
|
+
"list-loading": a(j),
|
|
324
|
+
data: a(K),
|
|
325
|
+
"table-label": a(c),
|
|
326
|
+
onSelectionChange: T,
|
|
327
|
+
onSortChange: z
|
|
323
328
|
}, {
|
|
324
329
|
entrustName: t((l) => [
|
|
325
|
-
|
|
330
|
+
N("span", null, v(a(V).projectNameDict.getDictValue(l.data.row.entrustName)), 1)
|
|
326
331
|
]),
|
|
327
332
|
serviceOrg: t((l) => [
|
|
328
|
-
|
|
333
|
+
N("span", null, v(a(V).orgIdBizDict.getValue(l.data.row.serviceOrg)), 1)
|
|
329
334
|
]),
|
|
330
335
|
operation: t((l) => [
|
|
331
|
-
|
|
336
|
+
J((w(), S("span", {
|
|
332
337
|
class: "el-button-color",
|
|
333
|
-
onClick: (
|
|
338
|
+
onClick: (ae) => Q(l.data.row)
|
|
334
339
|
}, [
|
|
335
|
-
|
|
336
|
-
], 8,
|
|
337
|
-
[
|
|
340
|
+
y(v(n.$t("common.view")), 1)
|
|
341
|
+
], 8, te)), [
|
|
342
|
+
[E, ["itsmflow:itsm_flow_reckoning:view"]]
|
|
338
343
|
])
|
|
339
344
|
]),
|
|
340
345
|
_: 1
|
|
@@ -342,18 +347,18 @@ const Z = { class: "app-container" }, x = { class: "search-container" }, ee = ["
|
|
|
342
347
|
]),
|
|
343
348
|
_: 1
|
|
344
349
|
}),
|
|
345
|
-
d.value.visible ? (
|
|
350
|
+
d.value.visible ? (w(), h(ee, {
|
|
346
351
|
key: 0,
|
|
347
352
|
modelValue: d.value.visible,
|
|
348
353
|
"onUpdate:modelValue": e[21] || (e[21] = (l) => d.value.visible = l),
|
|
349
354
|
title: d.value.title,
|
|
350
|
-
"entity-key":
|
|
355
|
+
"entity-key": a($),
|
|
351
356
|
width: "900px"
|
|
352
|
-
}, null, 8, ["modelValue", "title", "entity-key"])) :
|
|
357
|
+
}, null, 8, ["modelValue", "title", "entity-key"])) : D("", !0)
|
|
353
358
|
]);
|
|
354
359
|
};
|
|
355
360
|
}
|
|
356
361
|
});
|
|
357
362
|
export {
|
|
358
|
-
|
|
363
|
+
de as default
|
|
359
364
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { defineComponent as le, mergeModels as oe, ref as f, useModel as ne, resolveComponent as p, createElementBlock as k, openBlock as _, Fragment as j, createVNode as e, withCtx as t, createElementVNode as n, createTextVNode as r, toDisplayString as s, unref as b, createCommentVNode as g, withDirectives as L, vShow as q, createBlock as z, renderList as ae } from "vue";
|
|
2
2
|
import "element-plus";
|
|
3
3
|
import { u as se } from "./index-PafaMNgK.mjs";
|
|
4
|
-
import { D as y, a as h, C as $, b as ue } from "./index-
|
|
4
|
+
import { D as y, a as h, C as $, b as ue } from "./index-Cgbv4Ijf.mjs";
|
|
5
5
|
import "jmash-core";
|
|
6
6
|
import { useI18n as re } from "vue-i18n";
|
|
7
7
|
import { F as ie } from "./FileSaver.min-5d27MsC6.mjs";
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { defineComponent as ne, mergeModels as se, ref as p, useModel as de, reactive as
|
|
1
|
+
import { defineComponent as ne, mergeModels as se, ref as p, useModel as de, reactive as M, resolveComponent as i, createElementBlock as C, openBlock as g, Fragment as O, createVNode as l, createElementVNode as r, withCtx as t, unref as s, createBlock as re, createCommentVNode as ue, createTextVNode as V, toDisplayString as L, renderList as ie } from "vue";
|
|
2
2
|
import "element-plus";
|
|
3
3
|
import { useI18n as me } from "vue-i18n";
|
|
4
4
|
import { u as ce } from "./index-PafaMNgK.mjs";
|
|
5
|
-
import { I as pe, C as w, U as fe, e as ve, D as F, i as N } from "./index-
|
|
5
|
+
import { I as pe, C as w, U as fe, e as ve, D as F, i as N } from "./index-Cgbv4Ijf.mjs";
|
|
6
6
|
import { useUserStore as be } from "jmash-core";
|
|
7
|
-
import { E as
|
|
7
|
+
import { E as S } from "./el-message-DawVzOVQ.mjs";
|
|
8
8
|
const Ae = /* @__PURE__ */ ne({
|
|
9
9
|
__name: "index",
|
|
10
10
|
props: /* @__PURE__ */ se({
|
|
@@ -18,24 +18,24 @@ const Ae = /* @__PURE__ */ ne({
|
|
|
18
18
|
modelModifiers: {}
|
|
19
19
|
}),
|
|
20
20
|
emits: ["update:modelValue"],
|
|
21
|
-
setup(
|
|
22
|
-
const { t: h } = me(),
|
|
21
|
+
setup(q, { expose: E }) {
|
|
22
|
+
const { t: h } = me(), U = be(), I = p(!1), D = p(), R = p([]), v = p([]), c = p([]), b = p([]), _ = new pe({
|
|
23
23
|
applyStatus: w.applyStatus.finished
|
|
24
24
|
});
|
|
25
|
-
|
|
26
|
-
const
|
|
25
|
+
_.useValues();
|
|
26
|
+
const y = new fe({
|
|
27
27
|
userType: w.userType.companyManager
|
|
28
28
|
});
|
|
29
|
-
|
|
29
|
+
y.useValues(), new ve({}).useValues(), F.orgIdBizDict.useValues();
|
|
30
30
|
function T() {
|
|
31
31
|
var e;
|
|
32
|
-
const a = (e =
|
|
32
|
+
const a = (e = U.user.userJobs[0]) == null ? void 0 : e.deptId;
|
|
33
33
|
if (!a) {
|
|
34
|
-
|
|
34
|
+
S.warning("当前用户缺少岗位信息,无法查询验收组长");
|
|
35
35
|
return;
|
|
36
36
|
}
|
|
37
37
|
N.findHeadman({
|
|
38
|
-
tenant:
|
|
38
|
+
tenant: U.user.tenant,
|
|
39
39
|
deptId: a,
|
|
40
40
|
jobCode: w.jobCode.groupLeader
|
|
41
41
|
}).then(({ data: n }) => {
|
|
@@ -44,16 +44,16 @@ const Ae = /* @__PURE__ */ ne({
|
|
|
44
44
|
});
|
|
45
45
|
}
|
|
46
46
|
T();
|
|
47
|
-
const A =
|
|
47
|
+
const A = q, j = p({
|
|
48
48
|
curPage: 1,
|
|
49
49
|
pageSize: 10,
|
|
50
50
|
acceptanceId: A.task.businessKey
|
|
51
|
-
}), f = de(
|
|
52
|
-
let o =
|
|
51
|
+
}), f = de(q, "modelValue"), B = p();
|
|
52
|
+
let o = M({
|
|
53
53
|
requestId: Math.random() * 10 + ""
|
|
54
54
|
});
|
|
55
55
|
function K() {
|
|
56
|
-
I.value = !0,
|
|
56
|
+
I.value = !0, D.value.clearFileList();
|
|
57
57
|
}
|
|
58
58
|
function P(a, e) {
|
|
59
59
|
c == null || c.value.splice(a, 1), b.value = b.value.filter(
|
|
@@ -67,7 +67,7 @@ const Ae = /* @__PURE__ */ ne({
|
|
|
67
67
|
};
|
|
68
68
|
c == null || c.value.push(e), c.value = [...new Set(c.value)], b.value.push(e);
|
|
69
69
|
}
|
|
70
|
-
const W =
|
|
70
|
+
const W = M({
|
|
71
71
|
orderNo: [
|
|
72
72
|
{
|
|
73
73
|
required: !0,
|
|
@@ -87,13 +87,13 @@ const Ae = /* @__PURE__ */ ne({
|
|
|
87
87
|
changeModel: () => Y()
|
|
88
88
|
});
|
|
89
89
|
function J(a) {
|
|
90
|
-
const e =
|
|
90
|
+
const e = _.values.find(
|
|
91
91
|
(n) => n.key === a
|
|
92
92
|
);
|
|
93
93
|
o.contractName = (e == null ? void 0 : e.contractName) ?? "", o.contractNo = (e == null ? void 0 : e.contractNo) ?? "", o.serviceOrg = (e == null ? void 0 : e.serviceOrg) ?? "", o.entrustName = (e == null ? void 0 : e.entrustName) ?? "", o.serviceContent = (e == null ? void 0 : e.workContent) ?? "";
|
|
94
94
|
}
|
|
95
95
|
function G() {
|
|
96
|
-
N.findFilesList({ actionId:
|
|
96
|
+
N.findFilesList({ actionId: j.value.acceptanceId }).then(({ data: a }) => {
|
|
97
97
|
c.value = a.results, b.value = (a.results || []).map((e) => ({
|
|
98
98
|
fileName: e.fileName,
|
|
99
99
|
fileId: e.fileId,
|
|
@@ -102,13 +102,13 @@ const Ae = /* @__PURE__ */ ne({
|
|
|
102
102
|
});
|
|
103
103
|
}
|
|
104
104
|
function Q() {
|
|
105
|
-
N.findById({ acceptanceId:
|
|
105
|
+
N.findById({ acceptanceId: j.value.acceptanceId }).then(({ data: a }) => {
|
|
106
106
|
Object.assign(o, a), v.value = typeof a.membersId == "string" ? a.membersId.split(",") || [] : [];
|
|
107
107
|
}), G();
|
|
108
108
|
}
|
|
109
109
|
function X() {
|
|
110
|
-
|
|
111
|
-
const e =
|
|
110
|
+
R.value = v.value.map((a) => {
|
|
111
|
+
const e = y.values.find(
|
|
112
112
|
(n) => n.key === a
|
|
113
113
|
);
|
|
114
114
|
return {
|
|
@@ -123,22 +123,19 @@ const Ae = /* @__PURE__ */ ne({
|
|
|
123
123
|
{ key: "false", value: "不同意" }
|
|
124
124
|
], f.value.varName = "approved", f.value.module = "", f.value.module = w.MODULE_ITSMFLOW), new Promise((a, e) => {
|
|
125
125
|
var n;
|
|
126
|
-
(n =
|
|
126
|
+
(n = B.value) == null || n.validate((m) => {
|
|
127
127
|
if (m) {
|
|
128
128
|
if (f.value) {
|
|
129
129
|
if (f.value.comment = "", X(), v.value.length === 0) {
|
|
130
|
-
|
|
130
|
+
S.warning(h("itsmFlowAcceptance.membersRequired"));
|
|
131
131
|
return;
|
|
132
132
|
}
|
|
133
133
|
o.requestId = Math.random() * 10 + "", N.save({
|
|
134
134
|
...o,
|
|
135
|
-
members:
|
|
135
|
+
members: R.value,
|
|
136
136
|
files: b.value
|
|
137
137
|
}).then((u) => {
|
|
138
|
-
u.status === 200 ? a(!0) : (
|
|
139
|
-
message: "保存失败,请联系管理员!",
|
|
140
|
-
type: "error"
|
|
141
|
-
}), e(!1));
|
|
138
|
+
u.status === 200 ? a(!0) : e(!1);
|
|
142
139
|
});
|
|
143
140
|
}
|
|
144
141
|
} else
|
|
@@ -148,7 +145,7 @@ const Ae = /* @__PURE__ */ ne({
|
|
|
148
145
|
}
|
|
149
146
|
return (a, e) => {
|
|
150
147
|
const n = i("el-col"), m = i("el-input"), u = i("el-form-item"), k = i("jmash-select"), Z = i("jmash-dict-select"), $ = i("el-row"), x = i("el-button"), ee = i("CircleClose"), le = i("el-icon"), ae = i("jmash-enum-radio"), te = i("el-form"), oe = i("jmash-multi-upload");
|
|
151
|
-
return g(), C(
|
|
148
|
+
return g(), C(O, null, [
|
|
152
149
|
l(n, { span: 24 }, {
|
|
153
150
|
default: t(() => e[12] || (e[12] = [
|
|
154
151
|
r("div", { class: "title" }, "山西云时代技术有限公司大数据中心分公司项目验收书", -1)
|
|
@@ -158,7 +155,7 @@ const Ae = /* @__PURE__ */ ne({
|
|
|
158
155
|
}),
|
|
159
156
|
l(te, {
|
|
160
157
|
ref_key: "taskFormRef",
|
|
161
|
-
ref:
|
|
158
|
+
ref: B,
|
|
162
159
|
model: s(o),
|
|
163
160
|
"label-width": "150px",
|
|
164
161
|
rules: W,
|
|
@@ -214,7 +211,7 @@ const Ae = /* @__PURE__ */ ne({
|
|
|
214
211
|
modelValue: s(o).orderNo,
|
|
215
212
|
"onUpdate:modelValue": e[2] || (e[2] = (d) => s(o).orderNo = d),
|
|
216
213
|
placeholder: a.$t("itsmFlowAcceptance.orderIdRequired"),
|
|
217
|
-
data: s(
|
|
214
|
+
data: s(_).values,
|
|
218
215
|
clearable: "",
|
|
219
216
|
filterable: "",
|
|
220
217
|
class: "w-full",
|
|
@@ -325,7 +322,7 @@ const Ae = /* @__PURE__ */ ne({
|
|
|
325
322
|
modelValue: v.value,
|
|
326
323
|
"onUpdate:modelValue": e[7] || (e[7] = (d) => v.value = d),
|
|
327
324
|
placeholder: a.$t("itsmFlowAcceptance.membersRequired"),
|
|
328
|
-
data: s(
|
|
325
|
+
data: s(y).values,
|
|
329
326
|
clearable: "",
|
|
330
327
|
multiple: "",
|
|
331
328
|
filterable: "",
|
|
@@ -353,7 +350,7 @@ const Ae = /* @__PURE__ */ ne({
|
|
|
353
350
|
onClick: K
|
|
354
351
|
}, {
|
|
355
352
|
default: t(() => [
|
|
356
|
-
V(
|
|
353
|
+
V(L(a.$t("common.uploadFiles")), 1)
|
|
357
354
|
]),
|
|
358
355
|
_: 1
|
|
359
356
|
}, 8, ["icon"])
|
|
@@ -362,15 +359,15 @@ const Ae = /* @__PURE__ */ ne({
|
|
|
362
359
|
}, 8, ["label"]),
|
|
363
360
|
l(u, null, {
|
|
364
361
|
default: t(() => [
|
|
365
|
-
(g(!0), C(
|
|
366
|
-
key:
|
|
362
|
+
(g(!0), C(O, null, ie(c.value, (d, z) => (g(), C("div", {
|
|
363
|
+
key: z,
|
|
367
364
|
class: "files-list"
|
|
368
365
|
}, [
|
|
369
|
-
V(
|
|
366
|
+
V(L(d.fileName) + " ", 1),
|
|
370
367
|
l(le, {
|
|
371
368
|
size: "16",
|
|
372
369
|
class: "icon-right",
|
|
373
|
-
onClick: (ge) => P(
|
|
370
|
+
onClick: (ge) => P(z, d)
|
|
374
371
|
}, {
|
|
375
372
|
default: t(() => [
|
|
376
373
|
l(ee)
|
|
@@ -504,7 +501,7 @@ const Ae = /* @__PURE__ */ ne({
|
|
|
504
501
|
e[15] || (e[15] = r("div", { class: "with-end" }, "注:验收书编号在验收通过后自动生成。", -1)),
|
|
505
502
|
l(oe, {
|
|
506
503
|
ref_key: "uploadRef",
|
|
507
|
-
ref:
|
|
504
|
+
ref: D,
|
|
508
505
|
modelValue: I.value,
|
|
509
506
|
"onUpdate:modelValue": e[11] || (e[11] = (d) => I.value = d),
|
|
510
507
|
onUploadFileList: H
|