ddy-process-pc-vue3 1.0.1-rc.3.35 → 1.0.1-rc.3.39
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/package.json +1 -1
- package/v2/ddy-process-pc-vue3.js +75 -71
- package/v2/ddy-process-pc-vue3.umd.cjs +2 -2
- package/v2/style.css +1 -1
- package/v2.7/ddy-process-pc-vue3.js +75 -71
- package/v2.7/ddy-process-pc-vue3.umd.cjs +2 -2
- package/v2.7/style.css +1 -1
- package/v3/ddy-process-pc-vue3.js +75 -71
- package/v3/ddy-process-pc-vue3.umd.cjs +20 -20
- package/v3/style.css +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { resolveComponent as ye, openBlock as w, createElementBlock as P, createElementVNode as F, Fragment as Ce, toDisplayString as de, createCommentVNode as te, createVNode as U, mergeProps as ct, renderList as Qe, withCtx as q, createBlock as oe, withModifiers as Ve, renderSlot as se, createTextVNode as Ze, normalizeClass as N, normalizeStyle as Ne, resolveDirective as Mr, withDirectives as Ge, defineComponent as Z, warn as ZE, isVNode as no, Comment as Nh, computed as k, getCurrentInstance as st, watch as ve, unref as s, onMounted as it, watchEffect as In, onBeforeUnmount as Wt, isRef as Go, ref as B, inject as Le, onScopeDispose as eT, shallowRef as Vt, onUnmounted as fa, h as Be, Teleport as Ti, onBeforeMount as Ah, nextTick as De, provide as yt, useSlots as Oo, Transition as mo, resolveDynamicComponent as dt, vShow as It, toRef as Yt, reactive as Pt, toRefs as ko, onUpdated as ha, TransitionGroup as d_, useAttrs as ma, cloneVNode as tT, Text as p_, readonly as f_, onDeactivated as oT, withKeys as St, createSlots as mr, normalizeProps as En, toRaw as ra, vModelCheckbox as Tu, vModelRadio as h_, onBeforeUpdate as nT, vModelText as Mh, toHandlers as rT, guardReactiveProps as dd, markRaw as Xi, effectScope as lT, triggerRef as Di, createApp as aT, shallowReactive as iT, render as ei } from "vue";
|
|
2
2
|
import { departPerson as sT } from "checked-pick-pc";
|
|
3
|
-
const cT = "ddy-process-pc-vue3", uT = "1.0.1-rc.3.
|
|
3
|
+
const cT = "ddy-process-pc-vue3", uT = "1.0.1-rc.3.39", dT = "> pc\u7AEF\u6D41\u7A0B\u7EC4\u4EF6", pT = "./ddy-process-pc-vue3.umd.cjs", fT = "./style.css", hT = "module", mT = {
|
|
4
4
|
".": {
|
|
5
5
|
import: "./ddy-process-pc-vue3.js",
|
|
6
6
|
require: "./ddy-process-pc-vue3.umd.cjs"
|
|
@@ -3361,58 +3361,60 @@ const oO = {
|
|
|
3361
3361
|
businessData: this.param.businessData,
|
|
3362
3362
|
attachment: this.param.attachment
|
|
3363
3363
|
};
|
|
3364
|
-
|
|
3365
|
-
let
|
|
3366
|
-
|
|
3367
|
-
|
|
3368
|
-
|
|
3369
|
-
|
|
3370
|
-
|
|
3371
|
-
d.vars
|
|
3372
|
-
|
|
3373
|
-
|
|
3374
|
-
|
|
3375
|
-
|
|
3376
|
-
|
|
3377
|
-
|
|
3378
|
-
|
|
3379
|
-
|
|
3380
|
-
|
|
3381
|
-
...d.multiNodeParticipant
|
|
3382
|
-
}, n.vars = { ...n.vars, ...d.vars };
|
|
3383
|
-
}
|
|
3384
|
-
let r = this.param.nextTaskNode && this.param.nextTaskNode.nodeType != "endEvent" && (!this.param.nextTaskNode.branches || this.param.nextTaskNode.branches.length <= 0), l = this.param.nextTaskNode && this.param.nextTaskNode.nodeType != "endEvent" && this.param.nextTaskNode.branches && this.param.nextTaskNode.branches.length == 1 && this.param.nextTaskNode.branches[0].nodeInfoDTO && this.param.nextTaskNode.branches[0].nodeInfoDTO.nodeType != "endEvent", a = this.param.nextTaskNode && this.param.nextTaskNode.nodeType != "endEvent" && this.param.nextTaskNode.branches && this.param.nextTaskNode.branches.length == 1 && !this.param.nextTaskNode.branches[0].nodeInfoDTO && this.param.nextTaskNode.branches[0].nodeType != "endEvent";
|
|
3385
|
-
if (r || l || a) {
|
|
3386
|
-
if (this.param.nextTaskNode.nodeType == "exclusiveGateway" && this.param.nextTaskNode.branches && this.param.nextTaskNode.branches.length == 1 && this.param.nextTaskNode.branches[0].nodeInfoDTO && this.param.nextTaskNode.branches[0].nodeInfoDTO.setPersonnel == !0 && this.param.nextTaskNode.branches[0].nodeInfoDTO.assignees && this.param.nextTaskNode.branches[0].nodeInfoDTO.assignees.length > 0)
|
|
3387
|
-
n.multiNodeParticipant = {
|
|
3364
|
+
if (this.param.ProcessInsObj && !this.param.ProcessInsObj.taskParentId) {
|
|
3365
|
+
for (let c in this.userTaskListData) {
|
|
3366
|
+
let u = this.userTaskListData[c];
|
|
3367
|
+
this.$refs[u];
|
|
3368
|
+
let p = this.$refs[u].$el ? this.$refs[u] : this.$refs[u][0];
|
|
3369
|
+
p.getValue;
|
|
3370
|
+
let d = p.getValue();
|
|
3371
|
+
if (d && d.vars && this.param.incomingConditionItemList && this.param.incomingConditionItemList.length > 0 && this.param.incomingConditionItemList.forEach((g) => {
|
|
3372
|
+
d.vars[g.itemName] || (d.vars[g.itemName] = "");
|
|
3373
|
+
}), !d)
|
|
3374
|
+
return !1;
|
|
3375
|
+
let f = [];
|
|
3376
|
+
const m = this.param.nextTaskNode;
|
|
3377
|
+
m.setPersonnel ? f = m.assignees || [] : f = (p.targetUserList || []).map((g) => ({
|
|
3378
|
+
id: g.id,
|
|
3379
|
+
name: g.name
|
|
3380
|
+
})), n.assignees = f, n.multiNodeParticipant = {
|
|
3388
3381
|
...n.multiNodeParticipant,
|
|
3389
|
-
|
|
3390
|
-
};
|
|
3391
|
-
|
|
3392
|
-
|
|
3382
|
+
...d.multiNodeParticipant
|
|
3383
|
+
}, n.vars = { ...n.vars, ...d.vars };
|
|
3384
|
+
}
|
|
3385
|
+
let r = this.param.nextTaskNode && this.param.nextTaskNode.nodeType != "endEvent" && (!this.param.nextTaskNode.branches || this.param.nextTaskNode.branches.length <= 0), l = this.param.nextTaskNode && this.param.nextTaskNode.nodeType != "endEvent" && this.param.nextTaskNode.branches && this.param.nextTaskNode.branches.length == 1 && this.param.nextTaskNode.branches[0].nodeInfoDTO && this.param.nextTaskNode.branches[0].nodeInfoDTO.nodeType != "endEvent", a = this.param.nextTaskNode && this.param.nextTaskNode.nodeType != "endEvent" && this.param.nextTaskNode.branches && this.param.nextTaskNode.branches.length == 1 && !this.param.nextTaskNode.branches[0].nodeInfoDTO && this.param.nextTaskNode.branches[0].nodeType != "endEvent";
|
|
3386
|
+
if (r || l || a) {
|
|
3387
|
+
if (this.param.nextTaskNode.nodeType == "exclusiveGateway" && this.param.nextTaskNode.branches && this.param.nextTaskNode.branches.length == 1 && this.param.nextTaskNode.branches[0].nodeInfoDTO && this.param.nextTaskNode.branches[0].nodeInfoDTO.setPersonnel == !0 && this.param.nextTaskNode.branches[0].nodeInfoDTO.assignees && this.param.nextTaskNode.branches[0].nodeInfoDTO.assignees.length > 0)
|
|
3388
|
+
n.multiNodeParticipant = {
|
|
3389
|
+
...n.multiNodeParticipant,
|
|
3390
|
+
[this.param.nextTaskNode.branches[0].nodeInfoDTO.id]: this.param.nextTaskNode.branches[0].nodeInfoDTO.assignees.map((c) => c.id)
|
|
3391
|
+
};
|
|
3392
|
+
else if (!Object.keys(n.multiNodeParticipant).length)
|
|
3393
|
+
return Pa.warning("\u8BF7\u9009\u62E9\u4E0B\u4E00\u8282\u70B9"), !1;
|
|
3394
|
+
}
|
|
3393
3395
|
}
|
|
3394
3396
|
if (n.pass = !0, Date.now() && this.param, this.param.getVars) {
|
|
3395
|
-
let
|
|
3396
|
-
if (
|
|
3397
|
+
let r = this.param.getVars();
|
|
3398
|
+
if (r === !1)
|
|
3397
3399
|
return !1;
|
|
3398
|
-
n.vars = { ...n.vars, ...
|
|
3400
|
+
n.vars = { ...n.vars, ...r };
|
|
3399
3401
|
}
|
|
3400
3402
|
if (this.signRequired, this.signRequired) {
|
|
3401
3403
|
this.confirmPreposition = e, this.confirmLoading = t, this.signVisible = !0;
|
|
3402
3404
|
return;
|
|
3403
3405
|
}
|
|
3404
|
-
t(), e ? e().then((
|
|
3405
|
-
bt.tis.complete(n).then((
|
|
3406
|
-
|
|
3406
|
+
t(), e ? e().then((r) => {
|
|
3407
|
+
bt.tis.complete(n).then((l) => {
|
|
3408
|
+
l.code == $t.success ? (r && r(), this.$emit("success")) : this.$emit("fail", l.msg);
|
|
3407
3409
|
}).catch(() => {
|
|
3408
3410
|
this.$emit("fail", "");
|
|
3409
3411
|
});
|
|
3410
3412
|
}).catch(() => {
|
|
3411
3413
|
this.$emit("fail", "");
|
|
3412
|
-
}) : bt.tis.complete(n).then((
|
|
3413
|
-
|
|
3414
|
-
}).catch((
|
|
3415
|
-
this.$emit("fail",
|
|
3414
|
+
}) : bt.tis.complete(n).then((r) => {
|
|
3415
|
+
r.code == $t.success ? this.$emit("success") : this.$emit("fail", r.msg);
|
|
3416
|
+
}).catch((r) => {
|
|
3417
|
+
this.$emit("fail", r.response ? r.response.data ? r.response.data.msg || r.response.data.message : "" : r.message || r.msg || "");
|
|
3416
3418
|
});
|
|
3417
3419
|
},
|
|
3418
3420
|
confirmWithSign() {
|
|
@@ -3428,45 +3430,47 @@ const oO = {
|
|
|
3428
3430
|
},
|
|
3429
3431
|
attachment: this.param.attachment
|
|
3430
3432
|
};
|
|
3431
|
-
|
|
3432
|
-
let
|
|
3433
|
-
|
|
3434
|
-
|
|
3435
|
-
|
|
3436
|
-
|
|
3437
|
-
|
|
3438
|
-
...e.multiNodeParticipant,
|
|
3439
|
-
...c.multiNodeParticipant
|
|
3440
|
-
}, e.vars = { ...e.vars, ...c.vars };
|
|
3441
|
-
}
|
|
3442
|
-
let t = this.param.nextTaskNode && this.param.nextTaskNode.nodeType != "endEvent" && (!this.param.nextTaskNode.branches || this.param.nextTaskNode.branches.length <= 0), o = this.param.nextTaskNode && this.param.nextTaskNode.nodeType != "endEvent" && this.param.nextTaskNode.branches && this.param.nextTaskNode.branches.length == 1 && this.param.nextTaskNode.branches[0].nodeInfoDTO && this.param.nextTaskNode.branches[0].nodeInfoDTO.nodeType != "endEvent", n = this.param.nextTaskNode && this.param.nextTaskNode.nodeType != "endEvent" && this.param.nextTaskNode.branches && this.param.nextTaskNode.branches.length == 1 && !this.param.nextTaskNode.branches[0].nodeInfoDTO && this.param.nextTaskNode.branches[0].nodeType != "endEvent";
|
|
3443
|
-
if (t || o || n) {
|
|
3444
|
-
if (this.param.nextTaskNode.nodeType == "exclusiveGateway" && this.param.nextTaskNode.branches && this.param.nextTaskNode.branches.length == 1 && this.param.nextTaskNode.branches[0].nodeInfoDTO && this.param.nextTaskNode.branches[0].nodeInfoDTO.setPersonnel == !0 && this.param.nextTaskNode.branches[0].nodeInfoDTO.assignees && this.param.nextTaskNode.branches[0].nodeInfoDTO.assignees.length > 0)
|
|
3433
|
+
if (this.param.ProcessInsObj && !this.param.ProcessInsObj.taskParentId) {
|
|
3434
|
+
for (let l in this.userTaskListData) {
|
|
3435
|
+
let a = this.userTaskListData[l], i = this.$refs[a].$el ? this.$refs[a] : this.$refs[a][0];
|
|
3436
|
+
i.getValue;
|
|
3437
|
+
let c = i.getValue();
|
|
3438
|
+
if (!c)
|
|
3439
|
+
return !1;
|
|
3445
3440
|
e.multiNodeParticipant = {
|
|
3446
3441
|
...e.multiNodeParticipant,
|
|
3447
|
-
|
|
3448
|
-
};
|
|
3449
|
-
|
|
3450
|
-
|
|
3451
|
-
|
|
3452
|
-
|
|
3453
|
-
|
|
3454
|
-
|
|
3455
|
-
|
|
3456
|
-
|
|
3442
|
+
...c.multiNodeParticipant
|
|
3443
|
+
}, e.vars = { ...e.vars, ...c.vars };
|
|
3444
|
+
}
|
|
3445
|
+
let t = this.param.nextTaskNode && this.param.nextTaskNode.nodeType != "endEvent" && (!this.param.nextTaskNode.branches || this.param.nextTaskNode.branches.length <= 0), o = this.param.nextTaskNode && this.param.nextTaskNode.nodeType != "endEvent" && this.param.nextTaskNode.branches && this.param.nextTaskNode.branches.length == 1 && this.param.nextTaskNode.branches[0].nodeInfoDTO && this.param.nextTaskNode.branches[0].nodeInfoDTO.nodeType != "endEvent", n = this.param.nextTaskNode && this.param.nextTaskNode.nodeType != "endEvent" && this.param.nextTaskNode.branches && this.param.nextTaskNode.branches.length == 1 && !this.param.nextTaskNode.branches[0].nodeInfoDTO && this.param.nextTaskNode.branches[0].nodeType != "endEvent";
|
|
3446
|
+
if (t || o || n) {
|
|
3447
|
+
if (this.param.nextTaskNode.nodeType == "exclusiveGateway" && this.param.nextTaskNode.branches && this.param.nextTaskNode.branches.length == 1 && this.param.nextTaskNode.branches[0].nodeInfoDTO && this.param.nextTaskNode.branches[0].nodeInfoDTO.setPersonnel == !0 && this.param.nextTaskNode.branches[0].nodeInfoDTO.assignees && this.param.nextTaskNode.branches[0].nodeInfoDTO.assignees.length > 0)
|
|
3448
|
+
e.multiNodeParticipant = {
|
|
3449
|
+
...e.multiNodeParticipant,
|
|
3450
|
+
[this.param.nextTaskNode.branches[0].nodeInfoDTO.id]: this.param.nextTaskNode.branches[0].nodeInfoDTO.assignees.map((l) => l.id)
|
|
3451
|
+
};
|
|
3452
|
+
else if (!Object.keys(e.multiNodeParticipant).length)
|
|
3453
|
+
return Pa.warning("\u8BF7\u9009\u62E9\u4E0B\u4E00\u8282\u70B9"), !1;
|
|
3454
|
+
}
|
|
3455
|
+
if (this.param.getVars) {
|
|
3456
|
+
let l = this.param.getVars();
|
|
3457
|
+
if (l === !1)
|
|
3458
|
+
return !1;
|
|
3459
|
+
e.vars = { ...e.vars, ...l };
|
|
3460
|
+
}
|
|
3457
3461
|
}
|
|
3458
|
-
e.pass = !0, this.confirmLoading(), this.confirmPreposition ? this.confirmPreposition().then((
|
|
3459
|
-
bt.tis.complete(e).then((
|
|
3460
|
-
|
|
3462
|
+
e.pass = !0, this.confirmLoading(), this.confirmPreposition ? this.confirmPreposition().then((t) => {
|
|
3463
|
+
bt.tis.complete(e).then((o) => {
|
|
3464
|
+
o.code == $t.success ? (t && t(), this.$emit("success")) : this.$emit("fail", o.msg);
|
|
3461
3465
|
}).catch(() => {
|
|
3462
3466
|
this.$emit("fail", "");
|
|
3463
3467
|
});
|
|
3464
3468
|
}).catch(() => {
|
|
3465
3469
|
this.$emit("fail", "");
|
|
3466
|
-
}) : bt.tis.complete(e).then((
|
|
3467
|
-
|
|
3468
|
-
}).catch((
|
|
3469
|
-
this.$emit("fail",
|
|
3470
|
+
}) : bt.tis.complete(e).then((t) => {
|
|
3471
|
+
t.code == $t.success ? this.$emit("success") : this.$emit("fail", t.msg);
|
|
3472
|
+
}).catch((t) => {
|
|
3473
|
+
this.$emit("fail", t.response ? t.response.data ? t.response.data.msg || t.response.data.message : "" : t.message || t.msg || "");
|
|
3470
3474
|
});
|
|
3471
3475
|
},
|
|
3472
3476
|
handleSignature(e, t) {
|
|
@@ -3720,7 +3724,7 @@ function lO(e, t, o, n, r, l) {
|
|
|
3720
3724
|
_: 3
|
|
3721
3725
|
});
|
|
3722
3726
|
}
|
|
3723
|
-
const tf = /* @__PURE__ */ bo(oO, [["render", lO], ["__scopeId", "data-v-
|
|
3727
|
+
const tf = /* @__PURE__ */ bo(oO, [["render", lO], ["__scopeId", "data-v-2f14a21e"]]);
|
|
3724
3728
|
var l1 = null;
|
|
3725
3729
|
Promise.resolve().then(() => nr).then(({ ElMessage: e }) => {
|
|
3726
3730
|
l1 = e;
|