xyvcard-itsm-flow 0.0.1
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/README.md +51 -0
- package/dist/edit-CWxy8_xc.mjs +4 -0
- package/dist/edit.vue_vue_type_script_setup_true_lang-Dxn9JNKd.mjs +619 -0
- package/dist/index-BSCtYzv-.mjs +327 -0
- package/dist/index-C_jhIPZS.mjs +369 -0
- package/dist/index-DKtAcP6b.mjs +1582 -0
- package/dist/index.mjs +2687 -0
- package/dist/style.css +1 -0
- package/dts/App.vue.d.ts +2 -0
- package/dts/api/dict.d.ts +18 -0
- package/dts/api/index.d.ts +13 -0
- package/dts/api/itsm-flow-entrust/index.d.ts +14 -0
- package/dts/api/itsm-flow-entrust/types.d.ts +78 -0
- package/dts/api/itsm-flow-entrust-user/index.d.ts +8 -0
- package/dts/api/itsm-flow-entrust-user/types.d.ts +26 -0
- package/dts/components/TaskItsmFlowEntrust/index.vue.d.ts +28 -0
- package/dts/constant.d.ts +28 -0
- package/dts/index.d.ts +7 -0
- package/dts/lang/index.d.ts +1 -0
- package/dts/lang/itsm-flow/en.d.ts +2 -0
- package/dts/lang/itsm-flow/zh-cn.d.ts +83 -0
- package/dts/main.d.ts +9 -0
- package/dts/permission.d.ts +1 -0
- package/dts/router/index.d.ts +7 -0
- package/dts/utils/common.d.ts +5 -0
- package/dts/utils/momentPlugin.d.ts +5 -0
- package/dts/views/itsm-flow-entrust/edit.vue.d.ts +28 -0
- package/dts/views/itsm-flow-entrust/index.vue.d.ts +2 -0
- package/package.json +64 -0
|
@@ -0,0 +1,327 @@
|
|
|
1
|
+
import { defineComponent as M, mergeModels as j, ref as _, useModel as q, resolveComponent as i, openBlock as v, createBlock as A, withCtx as t, createVNode as e, createElementVNode as P, createTextVNode as u, toDisplayString as r, unref as b, createElementBlock as E, withDirectives as $, vShow as h, createCommentVNode as R } from "vue";
|
|
2
|
+
import "element-plus";
|
|
3
|
+
import { useRoute as S } from "vue-router";
|
|
4
|
+
import { D as c, i as K, b as T } from "./index-DKtAcP6b.mjs";
|
|
5
|
+
const L = { key: 0 }, W = { key: 1 }, G = {
|
|
6
|
+
key: 2,
|
|
7
|
+
class: "distance-left"
|
|
8
|
+
}, Y = /* @__PURE__ */ M({
|
|
9
|
+
__name: "index",
|
|
10
|
+
props: /* @__PURE__ */ j({
|
|
11
|
+
task: {
|
|
12
|
+
type: Object,
|
|
13
|
+
default: () => {
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
}, {
|
|
17
|
+
modelValue: {},
|
|
18
|
+
modelModifiers: {}
|
|
19
|
+
}),
|
|
20
|
+
emits: ["update:modelValue"],
|
|
21
|
+
setup(I, { expose: V }) {
|
|
22
|
+
c.parentIdBizDict.useValues(), c.orgIdBizDict.useValues();
|
|
23
|
+
const g = S(), k = I, w = _({
|
|
24
|
+
curPage: 1,
|
|
25
|
+
pageSize: 10,
|
|
26
|
+
applyId: g.query.applyId
|
|
27
|
+
}), n = _({}), p = q(I, "modelValue"), N = _(), D = _({});
|
|
28
|
+
function F(l) {
|
|
29
|
+
l.mobileEncrypt = !l.mobileEncrypt;
|
|
30
|
+
}
|
|
31
|
+
k.task.businessKey && B(), V({
|
|
32
|
+
changeModel: () => O()
|
|
33
|
+
});
|
|
34
|
+
function B() {
|
|
35
|
+
w.value.applyId = k.task.businessKey, K.findById({ entrustId: w.value.applyId }).then(({ data: l }) => {
|
|
36
|
+
n.value = Object.assign(n.value, l), T.findList({ applyId: g.query.applyId }).then(({ data: m }) => {
|
|
37
|
+
n.value.entrustUser = [], m.results.forEach((a) => {
|
|
38
|
+
a.applyId == w.value.applyId && n.value.entrustUser.push({
|
|
39
|
+
...a
|
|
40
|
+
});
|
|
41
|
+
});
|
|
42
|
+
});
|
|
43
|
+
});
|
|
44
|
+
}
|
|
45
|
+
function O() {
|
|
46
|
+
return p.value && (p.value.selectActions = [
|
|
47
|
+
{ key: "true", value: "同意" },
|
|
48
|
+
{ key: "false", value: "不同意" }
|
|
49
|
+
], p.value.varName = "approved", p.value.module = "apply"), new Promise((l, m) => {
|
|
50
|
+
var a;
|
|
51
|
+
(a = N.value) == null || a.validate((s) => {
|
|
52
|
+
s ? (p.value && (p.value.comment = ""), l(!0)) : m(!1);
|
|
53
|
+
});
|
|
54
|
+
});
|
|
55
|
+
}
|
|
56
|
+
return (l, m) => {
|
|
57
|
+
const a = i("el-col"), s = i("el-row"), d = i("el-form-item"), f = i("el-table-column"), C = i("svg-icon"), U = i("el-table"), z = i("el-form");
|
|
58
|
+
return v(), A(z, {
|
|
59
|
+
ref_key: "taskFormRef",
|
|
60
|
+
ref: N,
|
|
61
|
+
model: D.value,
|
|
62
|
+
"label-width": "130px"
|
|
63
|
+
}, {
|
|
64
|
+
default: t(() => [
|
|
65
|
+
e(s, null, {
|
|
66
|
+
default: t(() => [
|
|
67
|
+
e(a, { span: 12 }, {
|
|
68
|
+
default: t(() => m[0] || (m[0] = [
|
|
69
|
+
P("div", { class: "title" }, "委托服务订单", -1)
|
|
70
|
+
])),
|
|
71
|
+
_: 1
|
|
72
|
+
})
|
|
73
|
+
]),
|
|
74
|
+
_: 1
|
|
75
|
+
}),
|
|
76
|
+
e(s, null, {
|
|
77
|
+
default: t(() => [
|
|
78
|
+
e(a, { span: 24 }, {
|
|
79
|
+
default: t(() => [
|
|
80
|
+
e(d, {
|
|
81
|
+
label: l.$t("itsmFlowEntrust.contractId"),
|
|
82
|
+
prop: "contractName"
|
|
83
|
+
}, {
|
|
84
|
+
default: t(() => [
|
|
85
|
+
u(r(n.value.contractName), 1)
|
|
86
|
+
]),
|
|
87
|
+
_: 1
|
|
88
|
+
}, 8, ["label"])
|
|
89
|
+
]),
|
|
90
|
+
_: 1
|
|
91
|
+
})
|
|
92
|
+
]),
|
|
93
|
+
_: 1
|
|
94
|
+
}),
|
|
95
|
+
e(s, null, {
|
|
96
|
+
default: t(() => [
|
|
97
|
+
e(a, { span: 24 }, {
|
|
98
|
+
default: t(() => [
|
|
99
|
+
e(d, {
|
|
100
|
+
label: l.$t("itsmFlowEntrust.contractNo"),
|
|
101
|
+
prop: "contractNo"
|
|
102
|
+
}, {
|
|
103
|
+
default: t(() => [
|
|
104
|
+
u(r(n.value.contractNo), 1)
|
|
105
|
+
]),
|
|
106
|
+
_: 1
|
|
107
|
+
}, 8, ["label"])
|
|
108
|
+
]),
|
|
109
|
+
_: 1
|
|
110
|
+
})
|
|
111
|
+
]),
|
|
112
|
+
_: 1
|
|
113
|
+
}),
|
|
114
|
+
e(s, null, {
|
|
115
|
+
default: t(() => [
|
|
116
|
+
e(a, { span: 12 }, {
|
|
117
|
+
default: t(() => [
|
|
118
|
+
e(d, {
|
|
119
|
+
label: l.$t("itsmFlowEntrust.entrustName"),
|
|
120
|
+
prop: "entrustName"
|
|
121
|
+
}, {
|
|
122
|
+
default: t(() => [
|
|
123
|
+
u(r(b(c).projectNameDict.getDictValue(n.value.entrustName)), 1)
|
|
124
|
+
]),
|
|
125
|
+
_: 1
|
|
126
|
+
}, 8, ["label"])
|
|
127
|
+
]),
|
|
128
|
+
_: 1
|
|
129
|
+
})
|
|
130
|
+
]),
|
|
131
|
+
_: 1
|
|
132
|
+
}),
|
|
133
|
+
e(s, null, {
|
|
134
|
+
default: t(() => [
|
|
135
|
+
e(a, { span: 12 }, {
|
|
136
|
+
default: t(() => [
|
|
137
|
+
e(d, {
|
|
138
|
+
label: l.$t("itsmFlowEntrust.entrustItsmId"),
|
|
139
|
+
prop: "entrustItsmId"
|
|
140
|
+
}, {
|
|
141
|
+
default: t(() => [
|
|
142
|
+
u(r(n.value.entrustItsmName), 1)
|
|
143
|
+
]),
|
|
144
|
+
_: 1
|
|
145
|
+
}, 8, ["label"])
|
|
146
|
+
]),
|
|
147
|
+
_: 1
|
|
148
|
+
})
|
|
149
|
+
]),
|
|
150
|
+
_: 1
|
|
151
|
+
}),
|
|
152
|
+
e(s, null, {
|
|
153
|
+
default: t(() => [
|
|
154
|
+
e(a, { span: 12 }, {
|
|
155
|
+
default: t(() => [
|
|
156
|
+
e(d, {
|
|
157
|
+
label: l.$t("itsmFlowEntrust.belongOrg"),
|
|
158
|
+
prop: "belongOrg"
|
|
159
|
+
}, {
|
|
160
|
+
default: t(() => {
|
|
161
|
+
var o;
|
|
162
|
+
return [
|
|
163
|
+
u(r((((o = n.value.belongOrgId) == null ? void 0 : o.split(",")) || []).map((y) => b(c).parentIdBizDict.getValue(y)).join(",")), 1)
|
|
164
|
+
];
|
|
165
|
+
}),
|
|
166
|
+
_: 1
|
|
167
|
+
}, 8, ["label"])
|
|
168
|
+
]),
|
|
169
|
+
_: 1
|
|
170
|
+
})
|
|
171
|
+
]),
|
|
172
|
+
_: 1
|
|
173
|
+
}),
|
|
174
|
+
e(s, null, {
|
|
175
|
+
default: t(() => [
|
|
176
|
+
e(a, { span: 12 }, {
|
|
177
|
+
default: t(() => [
|
|
178
|
+
e(d, {
|
|
179
|
+
label: l.$t("itsmFlowEntrust.serviceContent"),
|
|
180
|
+
prop: "serviceContent"
|
|
181
|
+
}, {
|
|
182
|
+
default: t(() => [
|
|
183
|
+
u(r(b(c).serviceContentEnum.getEnumValue(n.value.serviceContent)), 1)
|
|
184
|
+
]),
|
|
185
|
+
_: 1
|
|
186
|
+
}, 8, ["label"])
|
|
187
|
+
]),
|
|
188
|
+
_: 1
|
|
189
|
+
})
|
|
190
|
+
]),
|
|
191
|
+
_: 1
|
|
192
|
+
}),
|
|
193
|
+
e(s, null, {
|
|
194
|
+
default: t(() => [
|
|
195
|
+
e(a, { span: 12 }, {
|
|
196
|
+
default: t(() => [
|
|
197
|
+
e(d, {
|
|
198
|
+
label: l.$t("itsmFlowEntrust.serviceOrg"),
|
|
199
|
+
prop: "serviceOrg"
|
|
200
|
+
}, {
|
|
201
|
+
default: t(() => [
|
|
202
|
+
u(r(b(c).orgIdBizDict.getValue(n.value.serviceOrg)), 1)
|
|
203
|
+
]),
|
|
204
|
+
_: 1
|
|
205
|
+
}, 8, ["label"])
|
|
206
|
+
]),
|
|
207
|
+
_: 1
|
|
208
|
+
})
|
|
209
|
+
]),
|
|
210
|
+
_: 1
|
|
211
|
+
}),
|
|
212
|
+
e(s, null, {
|
|
213
|
+
default: t(() => [
|
|
214
|
+
e(a, { span: 12 }, {
|
|
215
|
+
default: t(() => [
|
|
216
|
+
e(d, {
|
|
217
|
+
label: l.$t("itsmFlowEntrust.orderNo"),
|
|
218
|
+
prop: "orderNo"
|
|
219
|
+
}, {
|
|
220
|
+
default: t(() => [
|
|
221
|
+
u(r(n.value.orderNo), 1)
|
|
222
|
+
]),
|
|
223
|
+
_: 1
|
|
224
|
+
}, 8, ["label"])
|
|
225
|
+
]),
|
|
226
|
+
_: 1
|
|
227
|
+
})
|
|
228
|
+
]),
|
|
229
|
+
_: 1
|
|
230
|
+
}),
|
|
231
|
+
e(s, null, {
|
|
232
|
+
default: t(() => [
|
|
233
|
+
e(a, { span: 12 }, {
|
|
234
|
+
default: t(() => [
|
|
235
|
+
e(d, {
|
|
236
|
+
label: l.$t("itsmFlowEntrust.workContent"),
|
|
237
|
+
prop: "workContent"
|
|
238
|
+
}, {
|
|
239
|
+
default: t(() => [
|
|
240
|
+
u(r(n.value.workContent), 1)
|
|
241
|
+
]),
|
|
242
|
+
_: 1
|
|
243
|
+
}, 8, ["label"])
|
|
244
|
+
]),
|
|
245
|
+
_: 1
|
|
246
|
+
})
|
|
247
|
+
]),
|
|
248
|
+
_: 1
|
|
249
|
+
}),
|
|
250
|
+
e(s, null, {
|
|
251
|
+
default: t(() => [
|
|
252
|
+
e(a, { span: 14 }, {
|
|
253
|
+
default: t(() => [
|
|
254
|
+
e(U, {
|
|
255
|
+
stripe: "",
|
|
256
|
+
data: n.value.entrustUser,
|
|
257
|
+
style: { width: "100%" }
|
|
258
|
+
}, {
|
|
259
|
+
default: t(() => [
|
|
260
|
+
e(f, {
|
|
261
|
+
prop: "userId",
|
|
262
|
+
label: l.$t("itsmFlowEntrustUser.userId")
|
|
263
|
+
}, {
|
|
264
|
+
default: t((o) => [
|
|
265
|
+
u(r(o.row.userName), 1)
|
|
266
|
+
]),
|
|
267
|
+
_: 1
|
|
268
|
+
}, 8, ["label"]),
|
|
269
|
+
e(f, {
|
|
270
|
+
prop: "idNo",
|
|
271
|
+
label: l.$t("itsmFlowEntrustUser.idNo")
|
|
272
|
+
}, {
|
|
273
|
+
default: t((o) => [
|
|
274
|
+
o.row.mobileEncrypt ? (v(), E("span", W, r(o.row.idNo), 1)) : (v(), E("span", L, r(o.row.idNoIns), 1)),
|
|
275
|
+
o.row.idNoIns ? (v(), E("span", G, [
|
|
276
|
+
$(e(C, {
|
|
277
|
+
"icon-class": "close-eye",
|
|
278
|
+
onClick: (y) => F(o.row)
|
|
279
|
+
}, null, 8, ["onClick"]), [
|
|
280
|
+
[h, !o.row.mobileEncrypt]
|
|
281
|
+
]),
|
|
282
|
+
$(e(C, {
|
|
283
|
+
"icon-class": "eye-open",
|
|
284
|
+
onClick: (y) => F(o.row)
|
|
285
|
+
}, null, 8, ["onClick"]), [
|
|
286
|
+
[h, o.row.mobileEncrypt]
|
|
287
|
+
])
|
|
288
|
+
])) : R("", !0)
|
|
289
|
+
]),
|
|
290
|
+
_: 1
|
|
291
|
+
}, 8, ["label"]),
|
|
292
|
+
e(f, {
|
|
293
|
+
prop: "cost",
|
|
294
|
+
label: l.$t("itsmFlowEntrustUser.cost")
|
|
295
|
+
}, {
|
|
296
|
+
default: t((o) => [
|
|
297
|
+
u(r(o.row.cost), 1)
|
|
298
|
+
]),
|
|
299
|
+
_: 1
|
|
300
|
+
}, 8, ["label"]),
|
|
301
|
+
e(f, {
|
|
302
|
+
prop: "duration",
|
|
303
|
+
label: l.$t("itsmFlowEntrustUser.duration")
|
|
304
|
+
}, {
|
|
305
|
+
default: t((o) => [
|
|
306
|
+
u(r(o.row.duration), 1)
|
|
307
|
+
]),
|
|
308
|
+
_: 1
|
|
309
|
+
}, 8, ["label"])
|
|
310
|
+
]),
|
|
311
|
+
_: 1
|
|
312
|
+
}, 8, ["data"])
|
|
313
|
+
]),
|
|
314
|
+
_: 1
|
|
315
|
+
})
|
|
316
|
+
]),
|
|
317
|
+
_: 1
|
|
318
|
+
})
|
|
319
|
+
]),
|
|
320
|
+
_: 1
|
|
321
|
+
}, 8, ["model"]);
|
|
322
|
+
};
|
|
323
|
+
}
|
|
324
|
+
});
|
|
325
|
+
export {
|
|
326
|
+
Y as default
|
|
327
|
+
};
|
|
@@ -0,0 +1,369 @@
|
|
|
1
|
+
import { defineComponent as W, ref as F, reactive as R, resolveComponent as i, resolveDirective as X, openBlock as p, createElementBlock as I, createElementVNode as g, createVNode as o, withCtx as l, withKeys as N, unref as a, createTextVNode as f, toDisplayString as u, withDirectives as k, createBlock as V, isRef as S, createCommentVNode as j } from "vue";
|
|
2
|
+
import { useTableHooks as Y } from "jmash-core";
|
|
3
|
+
import { useI18n as Z } from "vue-i18n";
|
|
4
|
+
import { i as x, D as c } from "./index-DKtAcP6b.mjs";
|
|
5
|
+
import { _ as ee } from "./edit.vue_vue_type_script_setup_true_lang-Dxn9JNKd.mjs";
|
|
6
|
+
const te = { class: "app-container" }, le = { class: "search-container" }, oe = ["onClick"], ne = ["onClick"], de = /* @__PURE__ */ W({
|
|
7
|
+
__name: "index",
|
|
8
|
+
setup(ae) {
|
|
9
|
+
const { t: v } = Z(), r = F({
|
|
10
|
+
hasApplyStatus: !0,
|
|
11
|
+
applyStatus: "DRAFT"
|
|
12
|
+
}), {
|
|
13
|
+
tableHooks: s,
|
|
14
|
+
multipleTableRef: O,
|
|
15
|
+
queryFormRef: T,
|
|
16
|
+
listLoading: z,
|
|
17
|
+
tableData: U,
|
|
18
|
+
total: C
|
|
19
|
+
} = Y(v, x, r);
|
|
20
|
+
c.orgIdBizDict.useValues(), c.parentIdBizDict.useValues();
|
|
21
|
+
let w = F([
|
|
22
|
+
{
|
|
23
|
+
label: "itsmFlowEntrust.contractId",
|
|
24
|
+
prop: "contractName",
|
|
25
|
+
width: "150",
|
|
26
|
+
isColumn: !0
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
label: "itsmFlowEntrust.contractNo",
|
|
30
|
+
prop: "contractNo",
|
|
31
|
+
width: "150",
|
|
32
|
+
isColumn: !0
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
label: "itsmFlowEntrust.entrustName",
|
|
36
|
+
prop: "entrustName",
|
|
37
|
+
width: "150",
|
|
38
|
+
isColumn: !0,
|
|
39
|
+
slotName: "entrustName",
|
|
40
|
+
columnType: "slot"
|
|
41
|
+
},
|
|
42
|
+
{
|
|
43
|
+
label: "itsmFlowEntrust.entrustItsmId",
|
|
44
|
+
prop: "entrustItsmName",
|
|
45
|
+
width: "150",
|
|
46
|
+
isColumn: !0
|
|
47
|
+
},
|
|
48
|
+
{
|
|
49
|
+
label: "itsmFlowEntrust.belongOrg",
|
|
50
|
+
prop: "belongOrgId",
|
|
51
|
+
width: "150",
|
|
52
|
+
isColumn: !0,
|
|
53
|
+
slotName: "belongOrgId",
|
|
54
|
+
columnType: "slot"
|
|
55
|
+
},
|
|
56
|
+
{
|
|
57
|
+
label: "itsmFlowEntrust.serviceContent",
|
|
58
|
+
prop: "serviceContent",
|
|
59
|
+
width: "100",
|
|
60
|
+
isColumn: !0,
|
|
61
|
+
slotName: "serviceContent",
|
|
62
|
+
columnType: "slot"
|
|
63
|
+
},
|
|
64
|
+
{
|
|
65
|
+
label: "itsmFlowEntrust.serviceOrg",
|
|
66
|
+
prop: "serviceOrg",
|
|
67
|
+
width: "150",
|
|
68
|
+
isColumn: !0,
|
|
69
|
+
slotName: "serviceOrg",
|
|
70
|
+
columnType: "slot"
|
|
71
|
+
},
|
|
72
|
+
{
|
|
73
|
+
label: "itsmFlowEntrust.orderNo",
|
|
74
|
+
prop: "orderNo",
|
|
75
|
+
width: "150",
|
|
76
|
+
isColumn: !0
|
|
77
|
+
},
|
|
78
|
+
{
|
|
79
|
+
label: "itsmFlowEntrust.workContent",
|
|
80
|
+
prop: "workContent",
|
|
81
|
+
width: "150",
|
|
82
|
+
isColumn: !0
|
|
83
|
+
},
|
|
84
|
+
{
|
|
85
|
+
label: "common.operate",
|
|
86
|
+
width: "200",
|
|
87
|
+
slotName: "operation",
|
|
88
|
+
columnType: "slot",
|
|
89
|
+
fixed: "right",
|
|
90
|
+
isColumn: !0
|
|
91
|
+
}
|
|
92
|
+
]);
|
|
93
|
+
const m = F({
|
|
94
|
+
title: v("common.edit"),
|
|
95
|
+
visible: !1
|
|
96
|
+
});
|
|
97
|
+
let E = R({});
|
|
98
|
+
function P() {
|
|
99
|
+
E = R({}), m.value.title = v("common.add"), m.value.visible = !0;
|
|
100
|
+
}
|
|
101
|
+
function q(n) {
|
|
102
|
+
E.entrustId = n.entrustId, m.value.title = v("common.edit"), m.value.visible = !0;
|
|
103
|
+
}
|
|
104
|
+
function B(n) {
|
|
105
|
+
s.selectionRows.value = n;
|
|
106
|
+
}
|
|
107
|
+
function K(n) {
|
|
108
|
+
s.handleSort(n.prop, n.order);
|
|
109
|
+
}
|
|
110
|
+
function Q(n) {
|
|
111
|
+
n && s.getList();
|
|
112
|
+
}
|
|
113
|
+
return s.getList(), (n, t) => {
|
|
114
|
+
const h = i("el-input"), b = i("el-form-item"), d = i("el-col"), L = i("jmash-select"), y = i("el-button"), D = i("el-row"), A = i("el-form"), H = i("jmash-column-select"), G = i("jmash-table"), J = i("jmash-pagination"), M = i("el-card"), _ = X("hasPerm");
|
|
115
|
+
return p(), I("div", te, [
|
|
116
|
+
g("div", le, [
|
|
117
|
+
o(A, {
|
|
118
|
+
ref_key: "queryFormRef",
|
|
119
|
+
ref: T,
|
|
120
|
+
model: r.value,
|
|
121
|
+
inline: !0
|
|
122
|
+
}, {
|
|
123
|
+
default: l(() => [
|
|
124
|
+
o(D, null, {
|
|
125
|
+
default: l(() => [
|
|
126
|
+
o(d, { span: 6 }, {
|
|
127
|
+
default: l(() => [
|
|
128
|
+
o(b, {
|
|
129
|
+
label: n.$t("itsmFlowEntrust.contractId"),
|
|
130
|
+
prop: "likeContractName"
|
|
131
|
+
}, {
|
|
132
|
+
default: l(() => [
|
|
133
|
+
o(h, {
|
|
134
|
+
modelValue: r.value.likeContractName,
|
|
135
|
+
"onUpdate:modelValue": t[0] || (t[0] = (e) => r.value.likeContractName = e),
|
|
136
|
+
placeholder: n.$t("itsmFlowEntrust.contractNameRequired"),
|
|
137
|
+
onKeyup: t[1] || (t[1] = N((e) => a(s).handleQuery(), ["enter"])),
|
|
138
|
+
class: "!w-[203px]"
|
|
139
|
+
}, null, 8, ["modelValue", "placeholder"])
|
|
140
|
+
]),
|
|
141
|
+
_: 1
|
|
142
|
+
}, 8, ["label"])
|
|
143
|
+
]),
|
|
144
|
+
_: 1
|
|
145
|
+
}),
|
|
146
|
+
o(d, { span: 6 }, {
|
|
147
|
+
default: l(() => [
|
|
148
|
+
o(b, {
|
|
149
|
+
label: n.$t("itsmFlowEntrust.contractNo"),
|
|
150
|
+
prop: "likeContractNo"
|
|
151
|
+
}, {
|
|
152
|
+
default: l(() => [
|
|
153
|
+
o(h, {
|
|
154
|
+
modelValue: r.value.likeContractNo,
|
|
155
|
+
"onUpdate:modelValue": t[2] || (t[2] = (e) => r.value.likeContractNo = e),
|
|
156
|
+
placeholder: n.$t("itsmFlowEntrust.contractNoRequired"),
|
|
157
|
+
onKeyup: t[3] || (t[3] = N((e) => a(s).handleQuery(), ["enter"])),
|
|
158
|
+
class: "!w-[203px]"
|
|
159
|
+
}, null, 8, ["modelValue", "placeholder"])
|
|
160
|
+
]),
|
|
161
|
+
_: 1
|
|
162
|
+
}, 8, ["label"])
|
|
163
|
+
]),
|
|
164
|
+
_: 1
|
|
165
|
+
}),
|
|
166
|
+
o(d, { span: 6 }, {
|
|
167
|
+
default: l(() => [
|
|
168
|
+
o(b, {
|
|
169
|
+
label: n.$t("itsmFlowEntrust.serviceContent"),
|
|
170
|
+
prop: "serviceContent"
|
|
171
|
+
}, {
|
|
172
|
+
default: l(() => [
|
|
173
|
+
o(L, {
|
|
174
|
+
modelValue: r.value.serviceContent,
|
|
175
|
+
"onUpdate:modelValue": t[4] || (t[4] = (e) => r.value.serviceContent = e),
|
|
176
|
+
placeholder: n.$t("itsmFlowEntrust.serviceContentRequired"),
|
|
177
|
+
data: a(c).serviceContentEnum.values,
|
|
178
|
+
clearable: "",
|
|
179
|
+
onKeyup: t[5] || (t[5] = N((e) => a(s).handleQuery(), ["enter"])),
|
|
180
|
+
class: "!w-[203px]"
|
|
181
|
+
}, null, 8, ["modelValue", "placeholder", "data"])
|
|
182
|
+
]),
|
|
183
|
+
_: 1
|
|
184
|
+
}, 8, ["label"])
|
|
185
|
+
]),
|
|
186
|
+
_: 1
|
|
187
|
+
}),
|
|
188
|
+
o(d, { span: 6 }, {
|
|
189
|
+
default: l(() => [
|
|
190
|
+
o(b, {
|
|
191
|
+
label: n.$t("itsmFlowEntrust.orderNo"),
|
|
192
|
+
prop: "orderNo"
|
|
193
|
+
}, {
|
|
194
|
+
default: l(() => [
|
|
195
|
+
o(h, {
|
|
196
|
+
modelValue: r.value.orderNo,
|
|
197
|
+
"onUpdate:modelValue": t[6] || (t[6] = (e) => r.value.orderNo = e),
|
|
198
|
+
placeholder: n.$t("itsmFlowEntrust.orderNoRequireds"),
|
|
199
|
+
onKeyup: t[7] || (t[7] = N((e) => a(s).handleQuery(), ["enter"])),
|
|
200
|
+
class: "!w-[203px]"
|
|
201
|
+
}, null, 8, ["modelValue", "placeholder"])
|
|
202
|
+
]),
|
|
203
|
+
_: 1
|
|
204
|
+
}, 8, ["label"])
|
|
205
|
+
]),
|
|
206
|
+
_: 1
|
|
207
|
+
}),
|
|
208
|
+
o(d, { span: 24 }, {
|
|
209
|
+
default: l(() => [
|
|
210
|
+
o(b, { class: "search-btn" }, {
|
|
211
|
+
default: l(() => [
|
|
212
|
+
o(y, {
|
|
213
|
+
type: "primary",
|
|
214
|
+
onClick: t[8] || (t[8] = (e) => a(s).handleQuery())
|
|
215
|
+
}, {
|
|
216
|
+
default: l(() => [
|
|
217
|
+
f(u(n.$t("common.search")), 1)
|
|
218
|
+
]),
|
|
219
|
+
_: 1
|
|
220
|
+
}),
|
|
221
|
+
o(y, {
|
|
222
|
+
onClick: t[9] || (t[9] = (e) => a(s).resetQuery())
|
|
223
|
+
}, {
|
|
224
|
+
default: l(() => [
|
|
225
|
+
f(u(n.$t("common.reset")), 1)
|
|
226
|
+
]),
|
|
227
|
+
_: 1
|
|
228
|
+
})
|
|
229
|
+
]),
|
|
230
|
+
_: 1
|
|
231
|
+
})
|
|
232
|
+
]),
|
|
233
|
+
_: 1
|
|
234
|
+
})
|
|
235
|
+
]),
|
|
236
|
+
_: 1
|
|
237
|
+
})
|
|
238
|
+
]),
|
|
239
|
+
_: 1
|
|
240
|
+
}, 8, ["model"])
|
|
241
|
+
]),
|
|
242
|
+
o(M, {
|
|
243
|
+
shadow: "never",
|
|
244
|
+
class: "table-container"
|
|
245
|
+
}, {
|
|
246
|
+
header: l(() => [
|
|
247
|
+
o(D, null, {
|
|
248
|
+
default: l(() => [
|
|
249
|
+
o(d, { span: 17 }, {
|
|
250
|
+
default: l(() => [
|
|
251
|
+
k((p(), V(y, {
|
|
252
|
+
type: "primary",
|
|
253
|
+
onClick: P
|
|
254
|
+
}, {
|
|
255
|
+
default: l(() => [
|
|
256
|
+
f(u(n.$t("common.add")), 1)
|
|
257
|
+
]),
|
|
258
|
+
_: 1
|
|
259
|
+
})), [
|
|
260
|
+
[_, ["itsmflow:itsm_flow_entrust:add"]]
|
|
261
|
+
])
|
|
262
|
+
]),
|
|
263
|
+
_: 1
|
|
264
|
+
}),
|
|
265
|
+
o(d, {
|
|
266
|
+
span: 7,
|
|
267
|
+
class: "container-float"
|
|
268
|
+
}, {
|
|
269
|
+
default: l(() => [
|
|
270
|
+
k((p(), V(y, {
|
|
271
|
+
plain: "",
|
|
272
|
+
type: "primary",
|
|
273
|
+
onClick: t[10] || (t[10] = (e) => a(s).handleExportPdf(a(v)("itsmFlowEntrust.name")))
|
|
274
|
+
}, {
|
|
275
|
+
default: l(() => [
|
|
276
|
+
f(u(n.$t("common.print")), 1)
|
|
277
|
+
]),
|
|
278
|
+
_: 1
|
|
279
|
+
})), [
|
|
280
|
+
[_, ["itsmflow:itsm_flow_entrust:print"]]
|
|
281
|
+
]),
|
|
282
|
+
o(H, {
|
|
283
|
+
modelValue: a(w),
|
|
284
|
+
"onUpdate:modelValue": t[11] || (t[11] = (e) => S(w) ? w.value = e : w = e),
|
|
285
|
+
"label-name": "itsm-flow-entrust"
|
|
286
|
+
}, null, 8, ["modelValue"])
|
|
287
|
+
]),
|
|
288
|
+
_: 1
|
|
289
|
+
})
|
|
290
|
+
]),
|
|
291
|
+
_: 1
|
|
292
|
+
})
|
|
293
|
+
]),
|
|
294
|
+
footer: l(() => [
|
|
295
|
+
a(C) > 0 ? (p(), V(J, {
|
|
296
|
+
key: 0,
|
|
297
|
+
total: a(C),
|
|
298
|
+
"onUpdate:total": t[12] || (t[12] = (e) => S(C) ? C.value = e : null),
|
|
299
|
+
"current-page": r.value.curPage,
|
|
300
|
+
"onUpdate:currentPage": t[13] || (t[13] = (e) => r.value.curPage = e),
|
|
301
|
+
"page-size": r.value.pageSize,
|
|
302
|
+
"onUpdate:pageSize": t[14] || (t[14] = (e) => r.value.pageSize = e),
|
|
303
|
+
onPagination: t[15] || (t[15] = (e) => a(s).getList())
|
|
304
|
+
}, null, 8, ["total", "current-page", "page-size"])) : j("", !0)
|
|
305
|
+
]),
|
|
306
|
+
default: l(() => [
|
|
307
|
+
o(G, {
|
|
308
|
+
ref_key: "multipleTableRef",
|
|
309
|
+
ref: O,
|
|
310
|
+
"row-key": "entrustId",
|
|
311
|
+
"list-loading": a(z),
|
|
312
|
+
data: a(U),
|
|
313
|
+
"table-label": a(w),
|
|
314
|
+
onSelectionChange: B,
|
|
315
|
+
onSortChange: K
|
|
316
|
+
}, {
|
|
317
|
+
entrustName: l((e) => [
|
|
318
|
+
g("span", null, u(a(c).projectNameDict.getDictValue(e.data.row.entrustName)), 1)
|
|
319
|
+
]),
|
|
320
|
+
belongOrgId: l((e) => [
|
|
321
|
+
g("span", null, u(e.data.row.belongOrgId.split(",").map(($) => a(c).parentIdBizDict.getValue($)).join(",")), 1)
|
|
322
|
+
]),
|
|
323
|
+
serviceContent: l((e) => [
|
|
324
|
+
g("span", null, u(a(c).serviceContentEnum.getEnumValue(
|
|
325
|
+
e.data.row.serviceContent
|
|
326
|
+
)), 1)
|
|
327
|
+
]),
|
|
328
|
+
serviceOrg: l((e) => [
|
|
329
|
+
g("span", null, u(a(c).orgIdBizDict.getValue(e.data.row.serviceOrg)), 1)
|
|
330
|
+
]),
|
|
331
|
+
operation: l((e) => [
|
|
332
|
+
k((p(), I("span", {
|
|
333
|
+
class: "el-button-color",
|
|
334
|
+
onClick: ($) => q(e.data.row)
|
|
335
|
+
}, [
|
|
336
|
+
f(u(n.$t("common.edit")), 1)
|
|
337
|
+
], 8, oe)), [
|
|
338
|
+
[_, ["itsmflow:itsm_flow_entrust:update"]]
|
|
339
|
+
]),
|
|
340
|
+
k((p(), I("span", {
|
|
341
|
+
class: "el-button-color dropdown-left",
|
|
342
|
+
onClick: ($) => a(s).deleteRecord(e.data.row)
|
|
343
|
+
}, [
|
|
344
|
+
f(u(n.$t("common.delete")), 1)
|
|
345
|
+
], 8, ne)), [
|
|
346
|
+
[_, ["itsmflow:itsm_flow_entrust:delete"]]
|
|
347
|
+
])
|
|
348
|
+
]),
|
|
349
|
+
_: 1
|
|
350
|
+
}, 8, ["list-loading", "data", "table-label"])
|
|
351
|
+
]),
|
|
352
|
+
_: 1
|
|
353
|
+
}),
|
|
354
|
+
m.value.visible ? (p(), V(ee, {
|
|
355
|
+
key: 0,
|
|
356
|
+
modelValue: m.value.visible,
|
|
357
|
+
"onUpdate:modelValue": t[16] || (t[16] = (e) => m.value.visible = e),
|
|
358
|
+
title: m.value.title,
|
|
359
|
+
"entity-key": a(E),
|
|
360
|
+
onRefresh: Q,
|
|
361
|
+
width: "900px"
|
|
362
|
+
}, null, 8, ["modelValue", "title", "entity-key"])) : j("", !0)
|
|
363
|
+
]);
|
|
364
|
+
};
|
|
365
|
+
}
|
|
366
|
+
});
|
|
367
|
+
export {
|
|
368
|
+
de as default
|
|
369
|
+
};
|