xyvcard-itsm-flow 0.0.16 → 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-C54FcKfo.mjs +424 -0
- package/dist/{index-DY017z-s.mjs → index-C7_kMdm5.mjs} +2 -2
- package/dist/index-C7nUkCbR.mjs +361 -0
- 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-BcD1DAF_.mjs → index-DcpiD-9M.mjs} +102 -77
- 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 +193 -187
- 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 +2 -0
- package/dts/api/itsm-flow-entrust/types.d.ts +4 -0
- package/dts/api/itsm-flow-reckoning/types.d.ts +1 -0
- package/dts/constant.d.ts +1 -0
- package/dts/lang/itsm-flow/zh-cn.d.ts +6 -0
- package/package.json +2 -2
- package/dist/index-DTKFEGFs.mjs +0 -339
- package/dist/index-rnfNatQ1.mjs +0 -315
|
@@ -1,21 +1,23 @@
|
|
|
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
|
-
multipleTableRef:
|
|
13
|
-
queryFormRef:
|
|
12
|
+
multipleTableRef: U,
|
|
13
|
+
queryFormRef: q,
|
|
14
14
|
listLoading: j,
|
|
15
|
-
tableData:
|
|
15
|
+
tableData: K,
|
|
16
16
|
total: f
|
|
17
|
-
} =
|
|
18
|
-
|
|
17
|
+
} = M(k, Y, r), R = new Z({
|
|
18
|
+
orgType: x.orgType.outsource
|
|
19
|
+
});
|
|
20
|
+
R.useValues();
|
|
19
21
|
let c = b([
|
|
20
22
|
{
|
|
21
23
|
label: "itsmFlowReckoning.contractName",
|
|
@@ -72,36 +74,36 @@ const Z = { class: "app-container" }, x = { class: "search-container" }, ee = ["
|
|
|
72
74
|
isColumn: !0
|
|
73
75
|
}
|
|
74
76
|
]);
|
|
75
|
-
const
|
|
76
|
-
title:
|
|
77
|
+
const d = b({
|
|
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 g = u("el-input"),
|
|
91
|
-
return w(),
|
|
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:
|
|
97
|
+
ref: q,
|
|
96
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(() => [
|
|
104
|
-
o(
|
|
106
|
+
o(p, {
|
|
105
107
|
label: n.$t("itsmFlowReckoning.contractName"),
|
|
106
108
|
prop: "likeContractName"
|
|
107
109
|
}, {
|
|
@@ -110,7 +112,7 @@ const Z = { class: "app-container" }, x = { class: "search-container" }, ee = ["
|
|
|
110
112
|
modelValue: r.value.likeContractName,
|
|
111
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] =
|
|
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
|
]),
|
|
@@ -121,7 +123,7 @@ const Z = { class: "app-container" }, x = { class: "search-container" }, ee = ["
|
|
|
121
123
|
}),
|
|
122
124
|
o(s, { span: 6 }, {
|
|
123
125
|
default: t(() => [
|
|
124
|
-
o(
|
|
126
|
+
o(p, {
|
|
125
127
|
label: n.$t("itsmFlowReckoning.contractNo"),
|
|
126
128
|
prop: "likeContractNo"
|
|
127
129
|
}, {
|
|
@@ -130,7 +132,7 @@ const Z = { class: "app-container" }, x = { class: "search-container" }, ee = ["
|
|
|
130
132
|
modelValue: r.value.likeContractNo,
|
|
131
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] =
|
|
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
|
]),
|
|
@@ -141,7 +143,7 @@ const Z = { class: "app-container" }, x = { class: "search-container" }, ee = ["
|
|
|
141
143
|
}),
|
|
142
144
|
o(s, { span: 6 }, {
|
|
143
145
|
default: t(() => [
|
|
144
|
-
o(
|
|
146
|
+
o(p, {
|
|
145
147
|
label: n.$t("itsmFlowReckoning.acceptanceNo"),
|
|
146
148
|
prop: "acceptanceNo"
|
|
147
149
|
}, {
|
|
@@ -150,7 +152,7 @@ const Z = { class: "app-container" }, x = { class: "search-container" }, ee = ["
|
|
|
150
152
|
modelValue: r.value.acceptanceNo,
|
|
151
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] =
|
|
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
|
]),
|
|
@@ -161,7 +163,7 @@ const Z = { class: "app-container" }, x = { class: "search-container" }, ee = ["
|
|
|
161
163
|
}),
|
|
162
164
|
o(s, { span: 6 }, {
|
|
163
165
|
default: t(() => [
|
|
164
|
-
o(
|
|
166
|
+
o(p, {
|
|
165
167
|
label: n.$t("itsmFlowReckoning.orderNo"),
|
|
166
168
|
prop: "orderNo"
|
|
167
169
|
}, {
|
|
@@ -170,7 +172,7 @@ const Z = { class: "app-container" }, x = { class: "search-container" }, ee = ["
|
|
|
170
172
|
modelValue: r.value.orderNo,
|
|
171
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] =
|
|
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
|
]),
|
|
@@ -181,7 +183,7 @@ const Z = { class: "app-container" }, x = { class: "search-container" }, ee = ["
|
|
|
181
183
|
}),
|
|
182
184
|
o(s, { span: 6 }, {
|
|
183
185
|
default: t(() => [
|
|
184
|
-
o(
|
|
186
|
+
o(p, {
|
|
185
187
|
label: n.$t("itsmFlowReckoning.reckoningNo"),
|
|
186
188
|
prop: "reckoningNo"
|
|
187
189
|
}, {
|
|
@@ -190,7 +192,7 @@ const Z = { class: "app-container" }, x = { class: "search-container" }, ee = ["
|
|
|
190
192
|
modelValue: r.value.reckoningNo,
|
|
191
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] =
|
|
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
|
]),
|
|
@@ -201,17 +203,40 @@ const Z = { class: "app-container" }, x = { class: "search-container" }, ee = ["
|
|
|
201
203
|
}),
|
|
202
204
|
o(s, { span: 6 }, {
|
|
203
205
|
default: t(() => [
|
|
204
|
-
o(
|
|
206
|
+
o(p, {
|
|
207
|
+
label: n.$t("itsmFlowReckoning.serviceOrg"),
|
|
208
|
+
prop: "likeServiceOrg"
|
|
209
|
+
}, {
|
|
210
|
+
default: t(() => [
|
|
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"])),
|
|
219
|
+
class: "!w-[203px]"
|
|
220
|
+
}, null, 8, ["modelValue", "placeholder", "data"])
|
|
221
|
+
]),
|
|
222
|
+
_: 1
|
|
223
|
+
}, 8, ["label"])
|
|
224
|
+
]),
|
|
225
|
+
_: 1
|
|
226
|
+
}),
|
|
227
|
+
o(s, { span: 6 }, {
|
|
228
|
+
default: t(() => [
|
|
229
|
+
o(p, {
|
|
205
230
|
label: n.$t("itsmFlowAcceptance.applyStatus"),
|
|
206
231
|
prop: "applyStatus"
|
|
207
232
|
}, {
|
|
208
233
|
default: t(() => [
|
|
209
|
-
o(
|
|
234
|
+
o(C, {
|
|
210
235
|
modelValue: r.value.applyStatus,
|
|
211
|
-
"onUpdate:modelValue": e[
|
|
236
|
+
"onUpdate:modelValue": e[12] || (e[12] = (l) => r.value.applyStatus = l),
|
|
212
237
|
placeholder: n.$t("itsmFlowAcceptance.applyStatusRequired"),
|
|
213
|
-
data: a(
|
|
214
|
-
onKeyup: e[
|
|
238
|
+
data: a(V).applyStatusEnum.values,
|
|
239
|
+
onKeyup: e[13] || (e[13] = m((l) => a(i).handleQuery(), ["enter"]))
|
|
215
240
|
}, null, 8, ["modelValue", "placeholder", "data"])
|
|
216
241
|
]),
|
|
217
242
|
_: 1
|
|
@@ -219,24 +244,24 @@ const Z = { class: "app-container" }, x = { class: "search-container" }, ee = ["
|
|
|
219
244
|
]),
|
|
220
245
|
_: 1
|
|
221
246
|
}),
|
|
222
|
-
o(s, { span:
|
|
247
|
+
o(s, { span: 6 }, {
|
|
223
248
|
default: t(() => [
|
|
224
|
-
o(
|
|
249
|
+
o(p, { class: "search-btn" }, {
|
|
225
250
|
default: t(() => [
|
|
226
|
-
o(
|
|
251
|
+
o(F, {
|
|
227
252
|
type: "primary",
|
|
228
|
-
onClick: e[
|
|
253
|
+
onClick: e[14] || (e[14] = (l) => a(i).handleQuery())
|
|
229
254
|
}, {
|
|
230
255
|
default: t(() => [
|
|
231
|
-
|
|
256
|
+
y(v(n.$t("common.search")), 1)
|
|
232
257
|
]),
|
|
233
258
|
_: 1
|
|
234
259
|
}),
|
|
235
|
-
o(
|
|
236
|
-
onClick: e[
|
|
260
|
+
o(F, {
|
|
261
|
+
onClick: e[15] || (e[15] = (l) => a(i).resetQuery())
|
|
237
262
|
}, {
|
|
238
263
|
default: t(() => [
|
|
239
|
-
|
|
264
|
+
y(v(n.$t("common.reset")), 1)
|
|
240
265
|
]),
|
|
241
266
|
_: 1
|
|
242
267
|
})
|
|
@@ -258,7 +283,7 @@ const Z = { class: "app-container" }, x = { class: "search-container" }, ee = ["
|
|
|
258
283
|
class: "table-container"
|
|
259
284
|
}, {
|
|
260
285
|
header: t(() => [
|
|
261
|
-
o(
|
|
286
|
+
o(_, null, {
|
|
262
287
|
default: t(() => [
|
|
263
288
|
o(s, { span: 17 }),
|
|
264
289
|
o(s, {
|
|
@@ -268,7 +293,7 @@ const Z = { class: "app-container" }, x = { class: "search-container" }, ee = ["
|
|
|
268
293
|
default: t(() => [
|
|
269
294
|
o(B, {
|
|
270
295
|
modelValue: a(c),
|
|
271
|
-
"onUpdate:modelValue": e[
|
|
296
|
+
"onUpdate:modelValue": e[16] || (e[16] = (l) => O(c) ? c.value = l : c = l),
|
|
272
297
|
"label-name": "itsm-flow-reckoning"
|
|
273
298
|
}, null, 8, ["modelValue"])
|
|
274
299
|
]),
|
|
@@ -279,42 +304,42 @@ const Z = { class: "app-container" }, x = { class: "search-container" }, ee = ["
|
|
|
279
304
|
})
|
|
280
305
|
]),
|
|
281
306
|
footer: t(() => [
|
|
282
|
-
a(f) > 0 ? (w(),
|
|
307
|
+
a(f) > 0 ? (w(), h(A, {
|
|
283
308
|
key: 0,
|
|
284
309
|
total: a(f),
|
|
285
|
-
"onUpdate:total": e[
|
|
310
|
+
"onUpdate:total": e[17] || (e[17] = (l) => O(f) ? f.value = l : null),
|
|
286
311
|
"current-page": r.value.curPage,
|
|
287
|
-
"onUpdate:currentPage": e[
|
|
312
|
+
"onUpdate:currentPage": e[18] || (e[18] = (l) => r.value.curPage = l),
|
|
288
313
|
"page-size": r.value.pageSize,
|
|
289
|
-
"onUpdate:pageSize": e[
|
|
290
|
-
onPagination: e[
|
|
291
|
-
}, null, 8, ["total", "current-page", "page-size"])) :
|
|
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)
|
|
292
317
|
]),
|
|
293
318
|
default: t(() => [
|
|
294
|
-
o(
|
|
319
|
+
o(I, {
|
|
295
320
|
ref_key: "multipleTableRef",
|
|
296
|
-
ref:
|
|
321
|
+
ref: U,
|
|
297
322
|
"row-key": "reckoningId",
|
|
298
323
|
"list-loading": a(j),
|
|
299
|
-
data: a(
|
|
324
|
+
data: a(K),
|
|
300
325
|
"table-label": a(c),
|
|
301
|
-
onSelectionChange:
|
|
302
|
-
onSortChange:
|
|
326
|
+
onSelectionChange: T,
|
|
327
|
+
onSortChange: z
|
|
303
328
|
}, {
|
|
304
329
|
entrustName: t((l) => [
|
|
305
|
-
|
|
330
|
+
N("span", null, v(a(V).projectNameDict.getDictValue(l.data.row.entrustName)), 1)
|
|
306
331
|
]),
|
|
307
332
|
serviceOrg: t((l) => [
|
|
308
|
-
|
|
333
|
+
N("span", null, v(a(V).orgIdBizDict.getValue(l.data.row.serviceOrg)), 1)
|
|
309
334
|
]),
|
|
310
335
|
operation: t((l) => [
|
|
311
|
-
|
|
336
|
+
J((w(), S("span", {
|
|
312
337
|
class: "el-button-color",
|
|
313
|
-
onClick: (
|
|
338
|
+
onClick: (ae) => Q(l.data.row)
|
|
314
339
|
}, [
|
|
315
|
-
|
|
316
|
-
], 8,
|
|
317
|
-
[
|
|
340
|
+
y(v(n.$t("common.view")), 1)
|
|
341
|
+
], 8, te)), [
|
|
342
|
+
[E, ["itsmflow:itsm_flow_reckoning:view"]]
|
|
318
343
|
])
|
|
319
344
|
]),
|
|
320
345
|
_: 1
|
|
@@ -322,18 +347,18 @@ const Z = { class: "app-container" }, x = { class: "search-container" }, ee = ["
|
|
|
322
347
|
]),
|
|
323
348
|
_: 1
|
|
324
349
|
}),
|
|
325
|
-
|
|
350
|
+
d.value.visible ? (w(), h(ee, {
|
|
326
351
|
key: 0,
|
|
327
|
-
modelValue:
|
|
328
|
-
"onUpdate:modelValue": e[
|
|
329
|
-
title:
|
|
330
|
-
"entity-key": a(
|
|
352
|
+
modelValue: d.value.visible,
|
|
353
|
+
"onUpdate:modelValue": e[21] || (e[21] = (l) => d.value.visible = l),
|
|
354
|
+
title: d.value.title,
|
|
355
|
+
"entity-key": a($),
|
|
331
356
|
width: "900px"
|
|
332
|
-
}, null, 8, ["modelValue", "title", "entity-key"])) :
|
|
357
|
+
}, null, 8, ["modelValue", "title", "entity-key"])) : D("", !0)
|
|
333
358
|
]);
|
|
334
359
|
};
|
|
335
360
|
}
|
|
336
361
|
});
|
|
337
362
|
export {
|
|
338
|
-
|
|
363
|
+
de as default
|
|
339
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
|