ui-process-h5 0.1.20 → 0.1.22
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/lib/design.js +497 -64
- package/lib/design.umd.cjs +1 -1
- package/lib/style.css +1 -1
- package/package.json +15 -9
- package/packages/component.ts +3 -3
- package/packages/components/button/index.ts +9 -0
- package/packages/components/button/src/index.vue +55 -0
- package/packages/components/popup/index.ts +11 -0
- package/packages/components/popup/src/index.vue +128 -0
- package/packages/components/process/index.ts +9 -0
- package/packages/components/process/src/index.vue +439 -0
- package/packages/components/tab/src/index.vue +192 -21
- package/packages/components/{theme → utils}/request/api.ts +1 -3
- package/packages/components/{theme → utils}/request/request.ts +3 -3
- /package/packages/components/{theme → utils}/request/cache.d.ts +0 -0
- /package/packages/components/{theme → utils}/request/cache.js +0 -0
package/lib/design.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
const
|
|
1
|
+
import { defineComponent as N, ref as _, watch as D, onMounted as O, openBlock as n, createElementBlock as r, createElementVNode as t, Fragment as g, renderList as S, normalizeClass as H, toDisplayString as v, createCommentVNode as m, withDirectives as R, renderSlot as k, vShow as Y, pushScopeId as W, popScopeId as z, normalizeStyle as A, computed as U, resolveComponent as F, createVNode as M, withCtx as P, createBlock as G, createTextVNode as q } from "vue";
|
|
2
|
+
const K = N({
|
|
3
3
|
name: "TopTab",
|
|
4
4
|
props: {
|
|
5
5
|
/**
|
|
@@ -21,7 +21,25 @@ const A = L({
|
|
|
21
21
|
}
|
|
22
22
|
},
|
|
23
23
|
setup(e) {
|
|
24
|
-
const
|
|
24
|
+
const s = _(
|
|
25
|
+
"http://59.53.91.231:8088/portal/r/w?sid=6f714ec1-7570-4525-ac51-b092402d8295&cmd=CLIENT_BPM_FORM_TRACK_OPEN&processInstId=1f6e7196-e1ea-428e-b295-aa23a54a2402&supportCanvas=true&formInfo="
|
|
26
|
+
), f = _([
|
|
27
|
+
{
|
|
28
|
+
actionName: "提交",
|
|
29
|
+
activityName: "部门负责人",
|
|
30
|
+
createDate: "2023-04-20 14:47:35",
|
|
31
|
+
createUser: "18ccbf63229f0c79f39940ae284c111e",
|
|
32
|
+
createUserName: "朱鸿飞",
|
|
33
|
+
customUniqueId: "",
|
|
34
|
+
departmentName: "测试部",
|
|
35
|
+
id: "88df38c8-9756-4b4a-a9b0-dcb0ec1b57d5",
|
|
36
|
+
metaAnnexList: null,
|
|
37
|
+
msg: "同意",
|
|
38
|
+
positionName: "测试部119147",
|
|
39
|
+
processInstId: "1f6e7196-e1ea-428e-b295-aa23a54a2402",
|
|
40
|
+
taskInstId: "38bbef1c-efbb-456d-bd79-08ed9d96b4b3"
|
|
41
|
+
}
|
|
42
|
+
]), i = _(""), c = _([
|
|
25
43
|
{
|
|
26
44
|
label: "基本信息",
|
|
27
45
|
key: "a",
|
|
@@ -40,7 +58,7 @@ const A = L({
|
|
|
40
58
|
type: "default",
|
|
41
59
|
slot: "tab3"
|
|
42
60
|
}
|
|
43
|
-
]),
|
|
61
|
+
]), d = _([
|
|
44
62
|
{
|
|
45
63
|
label: "基本信息",
|
|
46
64
|
key: "a",
|
|
@@ -59,26 +77,26 @@ const A = L({
|
|
|
59
77
|
type: "default",
|
|
60
78
|
slot: "tab3"
|
|
61
79
|
}
|
|
62
|
-
]),
|
|
63
|
-
|
|
64
|
-
},
|
|
65
|
-
if (
|
|
66
|
-
let
|
|
67
|
-
if (
|
|
68
|
-
let
|
|
69
|
-
|
|
70
|
-
} else if (
|
|
71
|
-
let
|
|
72
|
-
|
|
80
|
+
]), a = _(), y = (l, b) => {
|
|
81
|
+
l !== i.value && (i.value = l, p(b));
|
|
82
|
+
}, p = (l) => {
|
|
83
|
+
if (a.value.length) {
|
|
84
|
+
let b = document.getElementsByClassName("bottom-line")[0], u;
|
|
85
|
+
if (b.offsetWidth < a.value[l].offsetWidth - 10) {
|
|
86
|
+
let h = (a.value[l].offsetWidth - b.offsetWidth - 10) / 2;
|
|
87
|
+
u = `${a.value[l].offsetLeft + h}px`;
|
|
88
|
+
} else if (b.offsetWidth > a.value[l].offsetWidth - 10) {
|
|
89
|
+
let h = (b.offsetWidth - a.value[l].offsetWidth + 10) / 2;
|
|
90
|
+
u = `${a.value[l].offsetLeft - h}px`;
|
|
73
91
|
} else
|
|
74
|
-
|
|
75
|
-
|
|
92
|
+
u = `${a.value[l].offsetLeft}px`;
|
|
93
|
+
b.style.transition = ".3s", b.style.transform = `translateX(${u})`;
|
|
76
94
|
}
|
|
77
95
|
};
|
|
78
|
-
return
|
|
96
|
+
return D(
|
|
79
97
|
() => e.selfTapList,
|
|
80
|
-
(
|
|
81
|
-
|
|
98
|
+
(l, b) => {
|
|
99
|
+
l.length && (d.value = [].concat(l), i.value = d.value[0].key);
|
|
82
100
|
},
|
|
83
101
|
{
|
|
84
102
|
//如果加了这个参数,值为true的话,就消除了惰性,watch会在创建后立即执行一次
|
|
@@ -87,12 +105,12 @@ const A = L({
|
|
|
87
105
|
//这个参数代表监听对象时,可以监听深度嵌套的对象属性
|
|
88
106
|
deep: !0
|
|
89
107
|
}
|
|
90
|
-
),
|
|
108
|
+
), D(
|
|
91
109
|
() => e.tapList,
|
|
92
|
-
(
|
|
93
|
-
e.selfTapList.length || (
|
|
94
|
-
|
|
95
|
-
}),
|
|
110
|
+
(l, b) => {
|
|
111
|
+
e.selfTapList.length || (d.value = [].concat(c.value), l.length > 0 && l.forEach((u, h) => {
|
|
112
|
+
u.sort && u.sort > 1 ? d.value.splice(u.sort - 1, 0, u) : u.sort == 1 ? d.value.unshift(u) : d.value.push(u);
|
|
113
|
+
}), i.value = d.value[0].key);
|
|
96
114
|
},
|
|
97
115
|
{
|
|
98
116
|
//如果加了这个参数,值为true的话,就消除了惰性,watch会在创建后立即执行一次
|
|
@@ -101,63 +119,478 @@ const A = L({
|
|
|
101
119
|
//这个参数代表监听对象时,可以监听深度嵌套的对象属性
|
|
102
120
|
deep: !0
|
|
103
121
|
}
|
|
104
|
-
),
|
|
105
|
-
|
|
122
|
+
), O(() => {
|
|
123
|
+
p(0);
|
|
106
124
|
}), {
|
|
107
|
-
isTapList:
|
|
108
|
-
active:
|
|
109
|
-
handleActive:
|
|
110
|
-
label:
|
|
125
|
+
isTapList: d,
|
|
126
|
+
active: i,
|
|
127
|
+
handleActive: y,
|
|
128
|
+
label: a,
|
|
129
|
+
taskCommentList: f,
|
|
130
|
+
trackUrl: s
|
|
111
131
|
};
|
|
112
132
|
}
|
|
113
133
|
});
|
|
114
|
-
const
|
|
115
|
-
const
|
|
116
|
-
for (const [
|
|
117
|
-
i
|
|
118
|
-
return
|
|
119
|
-
},
|
|
134
|
+
const w = (e, s) => {
|
|
135
|
+
const f = e.__vccOpts || e;
|
|
136
|
+
for (const [i, c] of s)
|
|
137
|
+
f[i] = c;
|
|
138
|
+
return f;
|
|
139
|
+
}, $ = (e) => (W("data-v-baad7ff1"), e = e(), z(), e), X = { class: "tops-tab" }, J = { class: "tops-tab-header" }, Q = ["onClick"], Z = {
|
|
120
140
|
key: 0,
|
|
121
141
|
class: "bottom-line"
|
|
122
|
-
},
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
142
|
+
}, x = { class: "tops-tab-body" }, ee = ["src"], te = {
|
|
143
|
+
key: 1,
|
|
144
|
+
class: "textnone"
|
|
145
|
+
}, se = { class: "seal-list__item--option" }, ae = /* @__PURE__ */ $(() => /* @__PURE__ */ t("span", null, "节点名称", -1)), oe = { class: "seal-list__item--option" }, ne = /* @__PURE__ */ $(() => /* @__PURE__ */ t("span", null, "审批人", -1)), le = { class: "seal-list__item--option" }, ue = /* @__PURE__ */ $(() => /* @__PURE__ */ t("span", null, "审批操作", -1)), re = { class: "seal-list__item--option" }, ie = /* @__PURE__ */ $(() => /* @__PURE__ */ t("span", null, "审批意见", -1)), ce = ["innerHTML"], de = { class: "seal-list__item--option" }, pe = /* @__PURE__ */ $(() => /* @__PURE__ */ t("span", null, "审批时间", -1)), fe = {
|
|
146
|
+
key: 0,
|
|
147
|
+
class: "seal-list__item--attch"
|
|
148
|
+
}, me = /* @__PURE__ */ $(() => /* @__PURE__ */ t("span", null, "查看附件", -1)), be = [
|
|
149
|
+
me
|
|
150
|
+
], _e = {
|
|
151
|
+
key: 1,
|
|
152
|
+
class: "textnone"
|
|
153
|
+
};
|
|
154
|
+
function ve(e, s, f, i, c, d) {
|
|
155
|
+
return n(), r("div", X, [
|
|
156
|
+
t("div", J, [
|
|
157
|
+
(n(!0), r(g, null, S(e.isTapList, (a, y) => (n(), r("div", {
|
|
158
|
+
class: H(["tops-tab-header-items", [a.key === e.active ? "active" : ""]]),
|
|
159
|
+
onClick: (p) => e.handleActive(a.key, y),
|
|
129
160
|
ref_for: !0,
|
|
130
161
|
ref: "label"
|
|
131
|
-
},
|
|
132
|
-
e.isTapList.length ? (
|
|
162
|
+
}, v(a.label), 11, Q))), 256)),
|
|
163
|
+
e.isTapList.length ? (n(), r("div", Z)) : m("", !0)
|
|
133
164
|
]),
|
|
134
|
-
|
|
135
|
-
(
|
|
165
|
+
t("div", x, [
|
|
166
|
+
(n(!0), r(g, null, S(e.isTapList, (a) => R((n(), r("div", {
|
|
136
167
|
key: a.key,
|
|
137
|
-
style: { height: "100%" }
|
|
168
|
+
style: { height: "calc(100% - 45px)" }
|
|
138
169
|
}, [
|
|
139
|
-
a.key === "a" && a.type === "default" ?
|
|
140
|
-
a.key === "
|
|
141
|
-
|
|
142
|
-
|
|
170
|
+
a.key === "a" && a.type === "default" ? k(e.$slots, "default", { key: 0 }, void 0, !0) : m("", !0),
|
|
171
|
+
a.key === "b" && a.type === "default" ? k(e.$slots, a.slot, { key: 1 }, () => [
|
|
172
|
+
e.trackUrl ? (n(), r("iframe", {
|
|
173
|
+
key: 0,
|
|
174
|
+
src: e.trackUrl,
|
|
175
|
+
style: { width: "100%", "min-height": "500px", border: "none" },
|
|
176
|
+
scrolling: "no",
|
|
177
|
+
frameborder: "0"
|
|
178
|
+
}, null, 8, ee)) : (n(), r("div", te, " 暂无流程图 "))
|
|
179
|
+
], !0) : m("", !0),
|
|
180
|
+
a.key === "c" && a.type === "default" ? k(e.$slots, a.slot, { key: 2 }, () => {
|
|
181
|
+
var y;
|
|
182
|
+
return [
|
|
183
|
+
((y = e.taskCommentList) == null ? void 0 : y.length) > 0 ? (n(!0), r(g, { key: 0 }, S(e.taskCommentList, (p, l) => (n(), r("div", {
|
|
184
|
+
key: p.id,
|
|
185
|
+
class: "seal-list__item"
|
|
186
|
+
}, [
|
|
187
|
+
t("div", null, [
|
|
188
|
+
t("div", se, [
|
|
189
|
+
ae,
|
|
190
|
+
t("span", null, v(p.activityName), 1)
|
|
191
|
+
]),
|
|
192
|
+
t("div", oe, [
|
|
193
|
+
ne,
|
|
194
|
+
t("span", null, v(p.createUserName), 1)
|
|
195
|
+
]),
|
|
196
|
+
t("div", le, [
|
|
197
|
+
ue,
|
|
198
|
+
t("span", null, v(p.actionName), 1)
|
|
199
|
+
]),
|
|
200
|
+
t("div", re, [
|
|
201
|
+
ie,
|
|
202
|
+
t("span", {
|
|
203
|
+
innerHTML: p.msg
|
|
204
|
+
}, null, 8, ce)
|
|
205
|
+
]),
|
|
206
|
+
t("div", de, [
|
|
207
|
+
pe,
|
|
208
|
+
t("span", null, v(p.createDate), 1)
|
|
209
|
+
]),
|
|
210
|
+
p.metaAnnexList && p.metaAnnexList.length ? (n(), r("div", fe, be)) : m("", !0)
|
|
211
|
+
])
|
|
212
|
+
]))), 128)) : (n(), r("div", _e, "暂无数据"))
|
|
213
|
+
];
|
|
214
|
+
}, !0) : m("", !0),
|
|
215
|
+
a.type == "slot" ? k(e.$slots, a.slot, { key: 3 }, void 0, !0) : m("", !0)
|
|
143
216
|
])), [
|
|
144
|
-
[
|
|
217
|
+
[Y, e.active === a.key]
|
|
145
218
|
])), 128))
|
|
146
219
|
])
|
|
147
220
|
]);
|
|
148
221
|
}
|
|
149
|
-
const
|
|
150
|
-
|
|
151
|
-
return e.component(
|
|
222
|
+
const B = /* @__PURE__ */ w(K, [["render", ve], ["__scopeId", "data-v-baad7ff1"]]);
|
|
223
|
+
B.install = function(e) {
|
|
224
|
+
return e.component(B.name, B), e;
|
|
225
|
+
};
|
|
226
|
+
const he = N({
|
|
227
|
+
name: "TopPopup",
|
|
228
|
+
props: {
|
|
229
|
+
titleText: { default: "top-popup", type: String },
|
|
230
|
+
cancelText: { default: "取消", type: String },
|
|
231
|
+
comfigText: { default: "确定", type: String },
|
|
232
|
+
comfig: { default: null, type: Function },
|
|
233
|
+
cancel: { default: null, type: Function },
|
|
234
|
+
isMask: { require: !1, default: !0, type: Boolean },
|
|
235
|
+
isMaskClose: { require: !1, default: !0, type: Boolean }
|
|
236
|
+
},
|
|
237
|
+
setup(e) {
|
|
238
|
+
const s = _(!1), f = () => {
|
|
239
|
+
s.value = !0;
|
|
240
|
+
}, i = () => {
|
|
241
|
+
typeof e.cancel == "function" && e.cancel(), d();
|
|
242
|
+
}, c = () => {
|
|
243
|
+
typeof e.comfig == "function" && e.comfig();
|
|
244
|
+
}, d = () => {
|
|
245
|
+
s.value = !1;
|
|
246
|
+
};
|
|
247
|
+
return O(() => {
|
|
248
|
+
document.querySelector("body");
|
|
249
|
+
}), {
|
|
250
|
+
handleOpen: f,
|
|
251
|
+
handleCancel: i,
|
|
252
|
+
handleComfig: c,
|
|
253
|
+
handleClose: d,
|
|
254
|
+
show: s
|
|
255
|
+
};
|
|
256
|
+
}
|
|
257
|
+
});
|
|
258
|
+
const ye = { class: "top-popup-header" }, ke = { class: "header-title" }, ge = { class: "top-popup-body" };
|
|
259
|
+
function $e(e, s, f, i, c, d) {
|
|
260
|
+
return n(), r(g, null, [
|
|
261
|
+
t("div", {
|
|
262
|
+
class: "top-popup",
|
|
263
|
+
style: A(
|
|
264
|
+
e.show ? "transform: translateY(0)" : "transform: translateY(100%)"
|
|
265
|
+
)
|
|
266
|
+
}, [
|
|
267
|
+
t("div", ye, [
|
|
268
|
+
t("div", {
|
|
269
|
+
class: "header-cancel",
|
|
270
|
+
onClick: s[0] || (s[0] = (...a) => e.handleCancel && e.handleCancel(...a))
|
|
271
|
+
}, v(e.cancelText), 1),
|
|
272
|
+
t("div", ke, v(e.titleText), 1),
|
|
273
|
+
t("div", {
|
|
274
|
+
class: "header-comfig",
|
|
275
|
+
onClick: s[1] || (s[1] = (...a) => e.handleComfig && e.handleComfig(...a))
|
|
276
|
+
}, v(e.comfigText), 1)
|
|
277
|
+
]),
|
|
278
|
+
t("div", ge, [
|
|
279
|
+
k(e.$slots, "default", {}, void 0, !0)
|
|
280
|
+
])
|
|
281
|
+
], 4),
|
|
282
|
+
e.show && e.isMask ? (n(), r("div", {
|
|
283
|
+
key: 0,
|
|
284
|
+
class: "top-popup-mask",
|
|
285
|
+
onClick: s[2] || (s[2] = (a) => e.isMaskClose && e.handleClose())
|
|
286
|
+
})) : m("", !0)
|
|
287
|
+
], 64);
|
|
288
|
+
}
|
|
289
|
+
const T = /* @__PURE__ */ w(he, [["render", $e], ["__scopeId", "data-v-474e328a"]]);
|
|
290
|
+
T.install = function(e) {
|
|
291
|
+
return console.log("TopPopup.install", e), e.mount(T), e.component(T.name, T), e;
|
|
292
|
+
};
|
|
293
|
+
const Ce = N({
|
|
294
|
+
name: "TopButton",
|
|
295
|
+
props: {
|
|
296
|
+
type: { default: "default", type: String }
|
|
297
|
+
},
|
|
298
|
+
setup(e) {
|
|
299
|
+
const s = _({
|
|
300
|
+
textColor: "#fff",
|
|
301
|
+
bckColor: "3c9cff"
|
|
302
|
+
});
|
|
303
|
+
switch (e.type) {
|
|
304
|
+
case "primary":
|
|
305
|
+
s.value.textColor = "#fff", s.value.bckColor = "#3c9cff";
|
|
306
|
+
break;
|
|
307
|
+
case "danger":
|
|
308
|
+
s.value.textColor = "rgb(255, 96, 96)", s.value.bckColor = "rgb(255, 230, 230)";
|
|
309
|
+
break;
|
|
310
|
+
case "default":
|
|
311
|
+
s.value.textColor = "rgb(51, 51, 51)", s.value.bckColor = "rgb(241, 241, 241)";
|
|
312
|
+
break;
|
|
313
|
+
}
|
|
314
|
+
return {
|
|
315
|
+
style: s
|
|
316
|
+
};
|
|
317
|
+
}
|
|
318
|
+
});
|
|
319
|
+
function Te(e, s, f, i, c, d) {
|
|
320
|
+
return n(), r("div", {
|
|
321
|
+
class: "top-button",
|
|
322
|
+
style: A(`background-color:${e.style.bckColor};color:${e.style.textColor}`)
|
|
323
|
+
}, [
|
|
324
|
+
k(e.$slots, "default", {}, void 0, !0)
|
|
325
|
+
], 4);
|
|
326
|
+
}
|
|
327
|
+
const L = /* @__PURE__ */ w(Ce, [["render", Te], ["__scopeId", "data-v-156a54e6"]]);
|
|
328
|
+
L.install = function(e) {
|
|
329
|
+
return e.component(L.name, L), e;
|
|
330
|
+
};
|
|
331
|
+
const Be = N({
|
|
332
|
+
name: "TopProcess",
|
|
333
|
+
components: {
|
|
334
|
+
TopTab: B,
|
|
335
|
+
TopPopup: T,
|
|
336
|
+
TopButton: L
|
|
337
|
+
},
|
|
338
|
+
props: {
|
|
339
|
+
tapList: { require: !1, default: () => [], type: Array },
|
|
340
|
+
processId: { require: !0, default: "", type: String },
|
|
341
|
+
processDefId: { require: !0, default: "", type: String },
|
|
342
|
+
taskId: { require: !0, default: "", type: String },
|
|
343
|
+
isAdditional: { require: !1, default: !1, type: Boolean },
|
|
344
|
+
isView: { default: !1, type: Boolean }
|
|
345
|
+
},
|
|
346
|
+
setup(e) {
|
|
347
|
+
const s = _({}), f = _(), i = _([
|
|
348
|
+
{
|
|
349
|
+
taskId: "ecd82a93-4a62-42a7-b7bd-df38d2f1609a",
|
|
350
|
+
taskState: 1,
|
|
351
|
+
nodeId: "obj_026aac284c1a4303854f978b674be4b9",
|
|
352
|
+
customUniqueId: "",
|
|
353
|
+
nodeName: "部门负责人"
|
|
354
|
+
}
|
|
355
|
+
]), c = _({
|
|
356
|
+
id: "obj_026aac284c1a4303854f978b674be4b9",
|
|
357
|
+
name: "部门负责人",
|
|
358
|
+
no: "1",
|
|
359
|
+
buttons: [],
|
|
360
|
+
ccTaskButtonLabel: "",
|
|
361
|
+
ccTaskButtonAnnex: null,
|
|
362
|
+
completeButtonLabel: "同意",
|
|
363
|
+
completeButtonAnnex: null,
|
|
364
|
+
delegateTaskButtonLabel: "转办",
|
|
365
|
+
delegateTaskButtonAnnex: null,
|
|
366
|
+
printFormButtonLabel: "",
|
|
367
|
+
supplyUnusualTransferButtonLabel: "",
|
|
368
|
+
readingOfficeLabel: "",
|
|
369
|
+
readingOfficeButtonAnnex: null,
|
|
370
|
+
jointlySignLabel: "",
|
|
371
|
+
jointlySignButtonAnnex: null,
|
|
372
|
+
counterSignLabel: "加签",
|
|
373
|
+
counterSignButtonAnnex: null,
|
|
374
|
+
coordinationLabel: "",
|
|
375
|
+
coordinationButtonAnnex: null,
|
|
376
|
+
otherButtonAnnexList: null,
|
|
377
|
+
humanPerformer: {
|
|
378
|
+
id: "obj_2bd3494ae5c54309b7f2ea452921790b",
|
|
379
|
+
name: "任意指定",
|
|
380
|
+
resourceAssignmentExpressionModel: {
|
|
381
|
+
formalExpression: ""
|
|
382
|
+
}
|
|
383
|
+
},
|
|
384
|
+
commentModels: [
|
|
385
|
+
{
|
|
386
|
+
actionName: "提交",
|
|
387
|
+
isDefault: !0
|
|
388
|
+
},
|
|
389
|
+
{
|
|
390
|
+
actionName: "作废",
|
|
391
|
+
isDefault: !1
|
|
392
|
+
}
|
|
393
|
+
],
|
|
394
|
+
routeTxt: {
|
|
395
|
+
departmentIds: null,
|
|
396
|
+
companyIds: null,
|
|
397
|
+
teamList: null,
|
|
398
|
+
routeType: "DynamicUsers"
|
|
399
|
+
},
|
|
400
|
+
loopCardinality: 1,
|
|
401
|
+
isHistoryRoute: !1,
|
|
402
|
+
participantList: null,
|
|
403
|
+
historyRoute: !1
|
|
404
|
+
});
|
|
405
|
+
D(
|
|
406
|
+
() => e.processId,
|
|
407
|
+
(u, h) => {
|
|
408
|
+
u && (s.value = {
|
|
409
|
+
status: "审批中",
|
|
410
|
+
createUid: "18ccbf63229f0c79f39940ae284c111e",
|
|
411
|
+
createTopUserId: "128ec9c9b7f26135272596fe01c57690",
|
|
412
|
+
createTime: "2023-04-20 15:01:48",
|
|
413
|
+
currUserName: "朱鸿飞",
|
|
414
|
+
allUserNames: ["朱鸿飞"],
|
|
415
|
+
userNodeGroup: {
|
|
416
|
+
分管领导: ["朱鸿飞"]
|
|
417
|
+
},
|
|
418
|
+
appId: "com.awspaas.user.apps.top.study.project",
|
|
419
|
+
statusCode: "1",
|
|
420
|
+
statusName: "审批中",
|
|
421
|
+
bizStatusName: "审批中",
|
|
422
|
+
taskState: 1
|
|
423
|
+
});
|
|
424
|
+
},
|
|
425
|
+
{
|
|
426
|
+
//如果加了这个参数,值为true的话,就消除了惰性,watch会在创建后立即执行一次
|
|
427
|
+
//那么首次执行,val为默认值,preVal为undefined
|
|
428
|
+
immediate: !0,
|
|
429
|
+
//这个参数代表监听对象时,可以监听深度嵌套的对象属性
|
|
430
|
+
deep: !0
|
|
431
|
+
}
|
|
432
|
+
), console.log("asd", i.value[0].taskState);
|
|
433
|
+
const d = U(() => {
|
|
434
|
+
var j, V;
|
|
435
|
+
let u = [], h = i.value && i.value[0] && i.value[0].taskState != 4;
|
|
436
|
+
if (h && !e.isView && c.value.completeButtonLabel) {
|
|
437
|
+
let o = {};
|
|
438
|
+
o.name = c.value.completeButtonLabel, o.btnProps = { type: "primary" }, u.push(o);
|
|
439
|
+
}
|
|
440
|
+
if (h && !e.isView && s.value.currUserName) {
|
|
441
|
+
let o = {};
|
|
442
|
+
o.name = "拒绝", o.btnProps = { type: "danger" }, u.push(o);
|
|
443
|
+
}
|
|
444
|
+
if (h && !e.isView && c.value.buttons && c.value.buttons.length && c.value.buttons.forEach((o) => {
|
|
445
|
+
if (o.label === "退回") {
|
|
446
|
+
let E = {};
|
|
447
|
+
E.name = o.label, E.btnProps = { type: "danger" }, u.push(E);
|
|
448
|
+
}
|
|
449
|
+
}), h && !e.isView && c.value.delegateTaskButtonLabel) {
|
|
450
|
+
let o = {};
|
|
451
|
+
o.name = c.value.delegateTaskButtonLabel, o.btnProps = { type: "default" }, u.push(o);
|
|
452
|
+
}
|
|
453
|
+
if (e.processId && s.value.createTopUserId == e.userId && ((j = i.value[0]) == null ? void 0 : j.taskState) != 2 && s.value.status !== "已驳回" && s.value.status !== "已撤销") {
|
|
454
|
+
let o = {};
|
|
455
|
+
o.name = "催办", o.btnProps = { type: "default" }, u.push(o);
|
|
456
|
+
}
|
|
457
|
+
if (e.processId && s.value.createTopUserId == e.userId && ((V = i.value[0]) == null ? void 0 : V.taskState) != 2 && s.value.status !== "已驳回" && s.value.status !== "已撤销") {
|
|
458
|
+
let o = {};
|
|
459
|
+
o.name = "撤销", o.btnProps = { type: "default" }, u.push(o);
|
|
460
|
+
}
|
|
461
|
+
if (h && !e.isView && c.value.counterSignLabel) {
|
|
462
|
+
let o = {};
|
|
463
|
+
o.name = c.value.counterSignLabel, o.btnProps = { type: "primary" }, u.push(o);
|
|
464
|
+
}
|
|
465
|
+
return u;
|
|
466
|
+
}), a = U(() => d.value.length > 3 ? d.value.slice(3) : []), y = () => {
|
|
467
|
+
console.log("handleCancel");
|
|
468
|
+
}, p = () => {
|
|
469
|
+
console.log("handleComfig", "确定按钮"), f.value.handleClose();
|
|
470
|
+
}, l = U(() => "calc(100vh - 205px)");
|
|
471
|
+
return {
|
|
472
|
+
processStatus: s,
|
|
473
|
+
processCardHeight: l,
|
|
474
|
+
handleTest: () => {
|
|
475
|
+
f.value.handleOpen();
|
|
476
|
+
},
|
|
477
|
+
TopPopup1: f,
|
|
478
|
+
handleCancel: y,
|
|
479
|
+
handleComfig: p,
|
|
480
|
+
operBtn: d,
|
|
481
|
+
actionBtn: a
|
|
482
|
+
};
|
|
483
|
+
},
|
|
484
|
+
methods: {
|
|
485
|
+
getColor(e) {
|
|
486
|
+
return e == "审核中" ? "#FFA52D" : e == "已驳回" ? "#F14B4C" : e == "已撤销" ? "#CECECE" : e == "已完成" ? "#6DC743" : "#1389FF";
|
|
487
|
+
}
|
|
488
|
+
}
|
|
489
|
+
});
|
|
490
|
+
const C = (e) => (W("data-v-41bcbb23"), e = e(), z(), e), Se = { class: "process-warp" }, Le = {
|
|
491
|
+
key: 0,
|
|
492
|
+
class: "process-main"
|
|
493
|
+
}, Ie = { class: "process-ml-item border" }, Ae = /* @__PURE__ */ C(() => /* @__PURE__ */ t("div", { class: "process-mli-name" }, "流程状态", -1)), Ne = { class: "process-mli-value" }, we = { class: "process-ml-item border" }, Ee = /* @__PURE__ */ C(() => /* @__PURE__ */ t("div", { class: "process-mli-name" }, "流程发起时间", -1)), Ue = { class: "process-mli-value" }, Fe = {
|
|
494
|
+
key: 0,
|
|
495
|
+
class: "process-ml-item"
|
|
496
|
+
}, Pe = /* @__PURE__ */ C(() => /* @__PURE__ */ t("div", { class: "process-mli-name" }, "审批节点", -1)), De = { class: "process-mli-value" }, je = { class: "process-mliv-jd" }, Ve = {
|
|
497
|
+
key: 1,
|
|
498
|
+
class: "process-foot"
|
|
499
|
+
}, Me = { class: "footBtnRow" }, qe = { class: "process-btn" }, Oe = {
|
|
500
|
+
key: 1,
|
|
501
|
+
class: "elips"
|
|
502
|
+
}, We = /* @__PURE__ */ C(() => /* @__PURE__ */ t("div", { class: "circle" }, null, -1)), ze = /* @__PURE__ */ C(() => /* @__PURE__ */ t("div", { class: "circle" }, null, -1)), He = /* @__PURE__ */ C(() => /* @__PURE__ */ t("div", { class: "circle" }, null, -1)), Re = [
|
|
503
|
+
We,
|
|
504
|
+
ze,
|
|
505
|
+
He
|
|
506
|
+
];
|
|
507
|
+
function Ye(e, s, f, i, c, d) {
|
|
508
|
+
const a = F("TopTab"), y = F("TopButton"), p = F("TopPopup");
|
|
509
|
+
return n(), r(g, null, [
|
|
510
|
+
t("div", Se, [
|
|
511
|
+
e.processStatus.status ? (n(), r("div", Le, [
|
|
512
|
+
t("div", Ie, [
|
|
513
|
+
Ae,
|
|
514
|
+
t("div", Ne, [
|
|
515
|
+
e.processStatus.status || e.processStatus.bizStatusName ? (n(), r("div", {
|
|
516
|
+
key: 0,
|
|
517
|
+
class: "process-mliv-dd",
|
|
518
|
+
style: A({ background: e.getColor(e.processStatus.status) })
|
|
519
|
+
}, v(e.processStatus.bizStatusName ? e.processStatus.bizStatusName : e.processStatus.status), 5)) : m("", !0)
|
|
520
|
+
])
|
|
521
|
+
]),
|
|
522
|
+
t("div", we, [
|
|
523
|
+
Ee,
|
|
524
|
+
t("div", Ue, [
|
|
525
|
+
t("span", null, v(e.processStatus.createTime), 1)
|
|
526
|
+
])
|
|
527
|
+
]),
|
|
528
|
+
e.processStatus.allUserNames && e.processStatus.allUserNames.length ? (n(), r("div", Fe, [
|
|
529
|
+
Pe,
|
|
530
|
+
t("div", De, [
|
|
531
|
+
t("span", je, v(`${e.processStatus.taskState == 4 ? e.processStatus.currUserName : e.processStatus.allUserNames.toString()}审批中`), 1)
|
|
532
|
+
])
|
|
533
|
+
])) : m("", !0)
|
|
534
|
+
])) : m("", !0),
|
|
535
|
+
t("div", {
|
|
536
|
+
class: "process-card",
|
|
537
|
+
style: A({ height: e.processCardHeight })
|
|
538
|
+
}, [
|
|
539
|
+
M(a, { tapList: e.tapList }, {
|
|
540
|
+
default: P(() => [
|
|
541
|
+
k(e.$slots, "default", {}, void 0, !0)
|
|
542
|
+
]),
|
|
543
|
+
_: 3
|
|
544
|
+
}, 8, ["tapList"])
|
|
545
|
+
], 4),
|
|
546
|
+
e.isAdditional ? (n(), r("div", Ve, [
|
|
547
|
+
t("div", Me, [
|
|
548
|
+
k(e.$slots, "btn", {}, void 0, !0)
|
|
549
|
+
])
|
|
550
|
+
])) : m("", !0),
|
|
551
|
+
t("div", qe, [
|
|
552
|
+
e.processStatus.status != "已完成" ? (n(!0), r(g, { key: 0 }, S(e.operBtn, (l, b) => (n(), r(g, {
|
|
553
|
+
key: l.name
|
|
554
|
+
}, [
|
|
555
|
+
b < 3 ? (n(), G(y, {
|
|
556
|
+
key: 0,
|
|
557
|
+
onClick: e.handleTest,
|
|
558
|
+
type: l.btnProps.type
|
|
559
|
+
}, {
|
|
560
|
+
default: P(() => [
|
|
561
|
+
q(v(l.name), 1)
|
|
562
|
+
]),
|
|
563
|
+
_: 2
|
|
564
|
+
}, 1032, ["onClick", "type"])) : m("", !0)
|
|
565
|
+
], 64))), 128)) : m("", !0),
|
|
566
|
+
e.operBtn.length > 3 ? (n(), r("div", Oe, Re)) : m("", !0)
|
|
567
|
+
])
|
|
568
|
+
]),
|
|
569
|
+
M(p, {
|
|
570
|
+
ref: "TopPopup1",
|
|
571
|
+
cancel: e.handleCancel,
|
|
572
|
+
comfig: e.handleComfig
|
|
573
|
+
}, {
|
|
574
|
+
default: P(() => [
|
|
575
|
+
q(" csaasd1 ")
|
|
576
|
+
]),
|
|
577
|
+
_: 1
|
|
578
|
+
}, 8, ["cancel", "comfig"])
|
|
579
|
+
], 64);
|
|
580
|
+
}
|
|
581
|
+
const I = /* @__PURE__ */ w(Be, [["render", Ye], ["__scopeId", "data-v-41bcbb23"]]);
|
|
582
|
+
I.install = function(e) {
|
|
583
|
+
return e.component(I.name, I), e;
|
|
152
584
|
};
|
|
153
|
-
const
|
|
154
|
-
|
|
155
|
-
e.use(
|
|
585
|
+
const Ge = [B, I], Ke = function(e) {
|
|
586
|
+
Ge.forEach((s) => {
|
|
587
|
+
e.use(s);
|
|
156
588
|
});
|
|
157
|
-
},
|
|
158
|
-
install:
|
|
589
|
+
}, Je = {
|
|
590
|
+
install: Ke
|
|
159
591
|
};
|
|
160
592
|
export {
|
|
161
|
-
|
|
162
|
-
|
|
593
|
+
I as TopProcess,
|
|
594
|
+
B as TopTab,
|
|
595
|
+
Je as default
|
|
163
596
|
};
|