ddy-process-pc-vue3 1.0.1-rc.3.5 → 1.0.1-rc.3.53
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 +111 -96
- package/v2/ddy-process-pc-vue3.umd.cjs +4 -4
- package/v2/style.css +1 -1
- package/v2.7/ddy-process-pc-vue3.js +111 -96
- package/v2.7/ddy-process-pc-vue3.umd.cjs +4 -4
- package/v2.7/style.css +1 -1
- package/v3/ddy-process-pc-vue3.js +1063 -1046
- package/v3/ddy-process-pc-vue3.umd.cjs +22 -22
- package/v3/style.css +1 -1
package/package.json
CHANGED
|
@@ -16,7 +16,7 @@ function iR(e, i) {
|
|
|
16
16
|
}
|
|
17
17
|
return Object.freeze(Object.defineProperty(e, Symbol.toStringTag, { value: "Module" }));
|
|
18
18
|
}
|
|
19
|
-
const nR = "ddy-process-pc-vue3", rR = "1.0.1-rc.3.
|
|
19
|
+
const nR = "ddy-process-pc-vue3", rR = "1.0.1-rc.3.53", aR = "> pc\u7AEF\u6D41\u7A0B\u7EC4\u4EF6", oR = "./ddy-process-pc-vue3.umd.cjs", sR = "./style.css", lR = "module", cR = {
|
|
20
20
|
".": {
|
|
21
21
|
import: "./ddy-process-pc-vue3.js",
|
|
22
22
|
require: "./ddy-process-pc-vue3.umd.cjs"
|
|
@@ -161,7 +161,7 @@ const ai = "/aws", pi = "/bladex/blade-workflow", FD = "/auth", et = {
|
|
|
161
161
|
return Ze(i);
|
|
162
162
|
},
|
|
163
163
|
addMultiInstance(e) {
|
|
164
|
-
let i = { url: pi + "/tis/
|
|
164
|
+
let i = { url: pi + "/tis/addSignTask", param: e, type: "post" };
|
|
165
165
|
return Ze(i);
|
|
166
166
|
},
|
|
167
167
|
reject(e, i) {
|
|
@@ -218,15 +218,16 @@ const ai = "/aws", pi = "/bladex/blade-workflow", FD = "/auth", et = {
|
|
|
218
218
|
let i = { url: ai + "/repository/getTrackUrl", param: e, type: "get" };
|
|
219
219
|
return Ze(i);
|
|
220
220
|
},
|
|
221
|
-
getProcessDefList(e, i) {
|
|
222
|
-
let
|
|
223
|
-
return Ze(
|
|
221
|
+
getProcessDefList(e, i, r) {
|
|
222
|
+
let a = { url: pi + "/repository/getProcessDefList", param: { appId: e, processGroupName: i, subjectId: r }, type: "post" };
|
|
223
|
+
return Ze(a);
|
|
224
224
|
},
|
|
225
225
|
getProcessDefListNew(e) {
|
|
226
226
|
let i = {
|
|
227
227
|
url: pi + "/repository/getProcessDefList",
|
|
228
228
|
param: {
|
|
229
229
|
...e,
|
|
230
|
+
subjectId: e.userInfo ? e.userInfo.subjectId : "",
|
|
230
231
|
businessCode: e.businessCode || e.businessType
|
|
231
232
|
},
|
|
232
233
|
type: "post"
|
|
@@ -5549,10 +5550,10 @@ const WL = {
|
|
|
5549
5550
|
return rb.warning("\u8BF7\u586B\u5199\u52A0\u7B7E\u539F\u56E0"), !1;
|
|
5550
5551
|
if (this.reason.length > 200)
|
|
5551
5552
|
return rb.warning("\u52A0\u7B7E\u539F\u56E0\u4E0D\u80FD\u8D85\u8FC7200\u4E2A\u5B57"), !1;
|
|
5552
|
-
let r = this.targetUser
|
|
5553
|
+
let r = this.targetUser || [];
|
|
5553
5554
|
e && e(), i(), et.tis.addMultiInstance({
|
|
5554
5555
|
taskId: this.param.taskInstId,
|
|
5555
|
-
|
|
5556
|
+
signPersoneds: r,
|
|
5556
5557
|
comment: this.reason
|
|
5557
5558
|
}).then((a) => {
|
|
5558
5559
|
a.code == wt.success ? this.$emit("success") : this.$emit("fail", a.msg);
|
|
@@ -5566,7 +5567,7 @@ var GL = /* @__PURE__ */ Di(
|
|
|
5566
5567
|
VL,
|
|
5567
5568
|
!1,
|
|
5568
5569
|
JL,
|
|
5569
|
-
"
|
|
5570
|
+
"79bc4843",
|
|
5570
5571
|
null,
|
|
5571
5572
|
null
|
|
5572
5573
|
);
|
|
@@ -6533,7 +6534,7 @@ var vQ = function() {
|
|
|
6533
6534
|
return e.$refs.commIdea.addIdea(e.commentMsg);
|
|
6534
6535
|
}
|
|
6535
6536
|
}
|
|
6536
|
-
}, [e._v("\u8BBE\u7F6E\u4E3A\u5E38\u7528\u610F\u89C1")])]) : e._e()], 1)] : e._e(), e._t("file"), e.param.nodeLoading ? [r("el-form-item", {
|
|
6537
|
+
}, [e._v("\u8BBE\u7F6E\u4E3A\u5E38\u7528\u610F\u89C1")])]) : e._e()], 1)] : e._e(), e._t("file"), e.param.nodeLoading && !e.param.ProcessInsObj.taskParentId ? [r("el-form-item", {
|
|
6537
6538
|
attrs: {
|
|
6538
6539
|
label: "\u4E0B\u4E00\u8282\u70B9",
|
|
6539
6540
|
size: "normal"
|
|
@@ -6542,7 +6543,7 @@ var vQ = function() {
|
|
|
6542
6543
|
staticStyle: {
|
|
6543
6544
|
"font-size": "16px"
|
|
6544
6545
|
}
|
|
6545
|
-
}, [e._v("\u8282\u70B9\u52A0\u8F7D\u4E2D\uFF0C\u8BF7\u7A0D\u540E......")])])] : [e.param.nextTaskNode && e.param.nextTaskNode.id && e.param.nextTaskNode.nodeType != "parallelGateway" && e.param.nextTaskNode.nodeType != "exclusiveGateway" ? [e.param.nextTaskNode.nodeType != "endEvent" ? [r("userTask", {
|
|
6546
|
+
}, [e._v("\u8282\u70B9\u52A0\u8F7D\u4E2D\uFF0C\u8BF7\u7A0D\u540E......")])])] : e.param.ProcessInsObj.taskParentId ? e._e() : [e.param.nextTaskNode && e.param.nextTaskNode.id && e.param.nextTaskNode.nodeType != "parallelGateway" && e.param.nextTaskNode.nodeType != "exclusiveGateway" ? [e.param.nextTaskNode.nodeType != "endEvent" ? [r("userTask", {
|
|
6546
6547
|
key: e.param.nextTaskNode.id,
|
|
6547
6548
|
ref: e.setItemRef(e.param.nextTaskNode.id),
|
|
6548
6549
|
attrs: {
|
|
@@ -6783,58 +6784,60 @@ const _Q = {
|
|
|
6783
6784
|
businessData: this.param.businessData,
|
|
6784
6785
|
attachment: this.param.attachment
|
|
6785
6786
|
};
|
|
6786
|
-
|
|
6787
|
-
let
|
|
6788
|
-
|
|
6789
|
-
|
|
6790
|
-
|
|
6791
|
-
|
|
6792
|
-
|
|
6793
|
-
E.vars
|
|
6794
|
-
|
|
6795
|
-
|
|
6796
|
-
|
|
6797
|
-
|
|
6798
|
-
|
|
6799
|
-
|
|
6800
|
-
|
|
6801
|
-
|
|
6802
|
-
|
|
6803
|
-
...E.multiNodeParticipant
|
|
6804
|
-
}, a.vars = { ...a.vars, ...E.vars };
|
|
6805
|
-
}
|
|
6806
|
-
let s = this.param.nextTaskNode && this.param.nextTaskNode.nodeType != "endEvent" && (!this.param.nextTaskNode.branches || this.param.nextTaskNode.branches.length <= 0), c = 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", p = 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";
|
|
6807
|
-
if (s || c || p) {
|
|
6808
|
-
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)
|
|
6809
|
-
a.multiNodeParticipant = {
|
|
6787
|
+
if (this.param.ProcessInsObj && !this.param.ProcessInsObj.taskParentId) {
|
|
6788
|
+
for (let g in this.userTaskListData) {
|
|
6789
|
+
let y = this.userTaskListData[g];
|
|
6790
|
+
this.$refs[y];
|
|
6791
|
+
let B = this.$refs[y].$el ? this.$refs[y] : this.$refs[y][0];
|
|
6792
|
+
B.getValue;
|
|
6793
|
+
let E = B.getValue();
|
|
6794
|
+
if (E && E.vars && this.param.incomingConditionItemList && this.param.incomingConditionItemList.length > 0 && this.param.incomingConditionItemList.forEach((C) => {
|
|
6795
|
+
E.vars[C.itemName] || (E.vars[C.itemName] = "");
|
|
6796
|
+
}), !E)
|
|
6797
|
+
return !1;
|
|
6798
|
+
let T = [];
|
|
6799
|
+
const _ = this.param.nextTaskNode;
|
|
6800
|
+
_.setPersonnel ? T = _.assignees || [] : T = (B.targetUserList || []).map((C) => ({
|
|
6801
|
+
id: C.id,
|
|
6802
|
+
name: C.name
|
|
6803
|
+
})), a.assignees = T, a.multiNodeParticipant = {
|
|
6810
6804
|
...a.multiNodeParticipant,
|
|
6811
|
-
|
|
6812
|
-
};
|
|
6813
|
-
|
|
6814
|
-
|
|
6805
|
+
...E.multiNodeParticipant
|
|
6806
|
+
}, a.vars = { ...a.vars, ...E.vars };
|
|
6807
|
+
}
|
|
6808
|
+
let s = this.param.nextTaskNode && this.param.nextTaskNode.nodeType != "endEvent" && (!this.param.nextTaskNode.branches || this.param.nextTaskNode.branches.length <= 0), c = 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", p = 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";
|
|
6809
|
+
if (s || c || p) {
|
|
6810
|
+
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)
|
|
6811
|
+
a.multiNodeParticipant = {
|
|
6812
|
+
...a.multiNodeParticipant,
|
|
6813
|
+
[this.param.nextTaskNode.branches[0].nodeInfoDTO.id]: this.param.nextTaskNode.branches[0].nodeInfoDTO.assignees.map((g) => g.id)
|
|
6814
|
+
};
|
|
6815
|
+
else if (!Object.keys(a.multiNodeParticipant).length)
|
|
6816
|
+
return Iu.warning("\u8BF7\u9009\u62E9\u4E0B\u4E00\u8282\u70B9"), !1;
|
|
6817
|
+
}
|
|
6815
6818
|
}
|
|
6816
6819
|
if (a.pass = !0, Date.now() && this.param, this.param.getVars) {
|
|
6817
|
-
let
|
|
6818
|
-
if (
|
|
6820
|
+
let s = this.param.getVars();
|
|
6821
|
+
if (s === !1)
|
|
6819
6822
|
return !1;
|
|
6820
|
-
a.vars = { ...a.vars, ...
|
|
6823
|
+
a.vars = { ...a.vars, ...s };
|
|
6821
6824
|
}
|
|
6822
6825
|
if (this.signRequired, this.signRequired) {
|
|
6823
6826
|
this.confirmPreposition = e, this.confirmLoading = i, this.signVisible = !0;
|
|
6824
6827
|
return;
|
|
6825
6828
|
}
|
|
6826
|
-
i(), e ? e().then((
|
|
6827
|
-
et.tis.complete(a).then((
|
|
6828
|
-
|
|
6829
|
+
i(), e ? e().then((s) => {
|
|
6830
|
+
et.tis.complete(a).then((c) => {
|
|
6831
|
+
c.code == wt.success ? (s && s(), this.$emit("success")) : this.$emit("fail", c.msg);
|
|
6829
6832
|
}).catch(() => {
|
|
6830
6833
|
this.$emit("fail", "");
|
|
6831
6834
|
});
|
|
6832
6835
|
}).catch(() => {
|
|
6833
6836
|
this.$emit("fail", "");
|
|
6834
|
-
}) : et.tis.complete(a).then((
|
|
6835
|
-
|
|
6836
|
-
}).catch((
|
|
6837
|
-
this.$emit("fail",
|
|
6837
|
+
}) : et.tis.complete(a).then((s) => {
|
|
6838
|
+
s.code == wt.success ? this.$emit("success") : this.$emit("fail", s.msg);
|
|
6839
|
+
}).catch((s) => {
|
|
6840
|
+
this.$emit("fail", s.response ? s.response.data ? s.response.data.msg || s.response.data.message : "" : s.message || s.msg || "");
|
|
6838
6841
|
});
|
|
6839
6842
|
},
|
|
6840
6843
|
confirmWithSign() {
|
|
@@ -6850,45 +6853,47 @@ const _Q = {
|
|
|
6850
6853
|
},
|
|
6851
6854
|
attachment: this.param.attachment
|
|
6852
6855
|
};
|
|
6853
|
-
|
|
6854
|
-
let
|
|
6855
|
-
|
|
6856
|
-
|
|
6857
|
-
|
|
6858
|
-
|
|
6859
|
-
|
|
6860
|
-
...e.multiNodeParticipant,
|
|
6861
|
-
...g.multiNodeParticipant
|
|
6862
|
-
}, e.vars = { ...e.vars, ...g.vars };
|
|
6863
|
-
}
|
|
6864
|
-
let i = this.param.nextTaskNode && this.param.nextTaskNode.nodeType != "endEvent" && (!this.param.nextTaskNode.branches || this.param.nextTaskNode.branches.length <= 0), r = 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";
|
|
6865
|
-
if (i || r || a) {
|
|
6866
|
-
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)
|
|
6856
|
+
if (this.param.ProcessInsObj && !this.param.ProcessInsObj.taskParentId) {
|
|
6857
|
+
for (let c in this.userTaskListData) {
|
|
6858
|
+
let p = this.userTaskListData[c], m = this.$refs[p].$el ? this.$refs[p] : this.$refs[p][0];
|
|
6859
|
+
m.getValue;
|
|
6860
|
+
let g = m.getValue();
|
|
6861
|
+
if (!g)
|
|
6862
|
+
return !1;
|
|
6867
6863
|
e.multiNodeParticipant = {
|
|
6868
6864
|
...e.multiNodeParticipant,
|
|
6869
|
-
|
|
6870
|
-
};
|
|
6871
|
-
|
|
6872
|
-
|
|
6873
|
-
|
|
6874
|
-
|
|
6875
|
-
|
|
6876
|
-
|
|
6877
|
-
|
|
6878
|
-
|
|
6865
|
+
...g.multiNodeParticipant
|
|
6866
|
+
}, e.vars = { ...e.vars, ...g.vars };
|
|
6867
|
+
}
|
|
6868
|
+
let i = this.param.nextTaskNode && this.param.nextTaskNode.nodeType != "endEvent" && (!this.param.nextTaskNode.branches || this.param.nextTaskNode.branches.length <= 0), r = 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";
|
|
6869
|
+
if (i || r || a) {
|
|
6870
|
+
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)
|
|
6871
|
+
e.multiNodeParticipant = {
|
|
6872
|
+
...e.multiNodeParticipant,
|
|
6873
|
+
[this.param.nextTaskNode.branches[0].nodeInfoDTO.id]: this.param.nextTaskNode.branches[0].nodeInfoDTO.assignees.map((c) => c.id)
|
|
6874
|
+
};
|
|
6875
|
+
else if (!Object.keys(e.multiNodeParticipant).length)
|
|
6876
|
+
return Iu.warning("\u8BF7\u9009\u62E9\u4E0B\u4E00\u8282\u70B9"), !1;
|
|
6877
|
+
}
|
|
6878
|
+
if (this.param.getVars) {
|
|
6879
|
+
let c = this.param.getVars();
|
|
6880
|
+
if (c === !1)
|
|
6881
|
+
return !1;
|
|
6882
|
+
e.vars = { ...e.vars, ...c };
|
|
6883
|
+
}
|
|
6879
6884
|
}
|
|
6880
|
-
e.pass = !0, this.confirmLoading(), this.confirmPreposition ? this.confirmPreposition().then((
|
|
6881
|
-
et.tis.complete(e).then((
|
|
6882
|
-
|
|
6885
|
+
e.pass = !0, this.confirmLoading(), this.confirmPreposition ? this.confirmPreposition().then((i) => {
|
|
6886
|
+
et.tis.complete(e).then((r) => {
|
|
6887
|
+
r.code == wt.success ? (i && i(), this.$emit("success")) : this.$emit("fail", r.msg);
|
|
6883
6888
|
}).catch(() => {
|
|
6884
6889
|
this.$emit("fail", "");
|
|
6885
6890
|
});
|
|
6886
6891
|
}).catch(() => {
|
|
6887
6892
|
this.$emit("fail", "");
|
|
6888
|
-
}) : et.tis.complete(e).then((
|
|
6889
|
-
|
|
6890
|
-
}).catch((
|
|
6891
|
-
this.$emit("fail",
|
|
6893
|
+
}) : et.tis.complete(e).then((i) => {
|
|
6894
|
+
i.code == wt.success ? this.$emit("success") : this.$emit("fail", i.msg);
|
|
6895
|
+
}).catch((i) => {
|
|
6896
|
+
this.$emit("fail", i.response ? i.response.data ? i.response.data.msg || i.response.data.message : "" : i.message || i.msg || "");
|
|
6892
6897
|
});
|
|
6893
6898
|
},
|
|
6894
6899
|
handleSignature(e, i) {
|
|
@@ -6908,7 +6913,7 @@ var yQ = /* @__PURE__ */ Di(
|
|
|
6908
6913
|
bQ,
|
|
6909
6914
|
!1,
|
|
6910
6915
|
xQ,
|
|
6911
|
-
"
|
|
6916
|
+
"0dd5ddd2",
|
|
6912
6917
|
null,
|
|
6913
6918
|
null
|
|
6914
6919
|
);
|
|
@@ -11775,12 +11780,16 @@ var z7 = function() {
|
|
|
11775
11780
|
attrs: {
|
|
11776
11781
|
shadow: "never"
|
|
11777
11782
|
}
|
|
11778
|
-
}, [r("p", [
|
|
11783
|
+
}, [r("p", [r("span", {
|
|
11784
|
+
staticClass: "flow-name"
|
|
11785
|
+
}, [e._v(e._s(a.assigneeName))]), e._v(" \u5728 [" + e._s(a.createTime) + "] \u5F00\u59CB\u5904\u7406 "), r("span", {
|
|
11786
|
+
staticClass: "flow-node"
|
|
11787
|
+
}, [e._v("[" + e._s(a.historyActivityType == "endEvent" ? "\u7ED3\u675F" : a.historyActivityName || "\u672A\u547D\u540D") + "]")]), e._v(" \u73AF\u8282 ")]), a.historyActivityDurationTime ? r("p", [e._v(" \u4EFB\u52A1\u5386\u65F6 [" + e._s(a.historyActivityDurationTime) + "] ")]) : e._e(), a.comments && a.comments.length > 0 ? [e._l(a.comments.filter(function(c) {
|
|
11779
11788
|
return c.action === "AddComment";
|
|
11780
11789
|
}), function(c, p) {
|
|
11781
11790
|
return r("p", {
|
|
11782
11791
|
key: p
|
|
11783
|
-
}, [p < 1 ? [e.commentMap[c.type] ? r("span", [e._v(" " + e._s(e.commentMap[c.type]) + ": [" + e._s(c.fullMessage) + "] ")]) : e._e(), a.comments.filter(function(m) {
|
|
11792
|
+
}, [p < 1 ? [e.commentMap[c.type] ? r("span", [e._v(" " + e._s(e.commentMap[c.type]) + ": [" + e._s(c.fullMessage) + "] ")]) : c.fullMessage ? r("span", [e._v(" " + e._s(c.type) + ": [" + e._s(c.fullMessage) + "] ")]) : e._e(), a.comments.filter(function(m) {
|
|
11784
11793
|
return m.action === "AddComment";
|
|
11785
11794
|
}).length > 1 ? r("span", {
|
|
11786
11795
|
staticStyle: {
|
|
@@ -11792,12 +11801,12 @@ var z7 = function() {
|
|
|
11792
11801
|
}
|
|
11793
11802
|
}, [e._v(" " + e._s(e.toggleText) + " "), r("i", {
|
|
11794
11803
|
class: [e.isFlag ? "el-icon-arrow-up" : "el-icon-arrow-down"]
|
|
11795
|
-
}), r("el-icon", [e.isFlag ? r("el-icon-arrow-up") : r("el-icon-arrow-down")], 1)], 1) : e._e(), c.time ? r("p", {
|
|
11804
|
+
}), r("el-icon", [e.isFlag ? r("el-icon-arrow-up") : r("el-icon-arrow-down")], 1)], 1) : e._e(), c.time && e.isFlag ? r("p", {
|
|
11796
11805
|
staticStyle: {
|
|
11797
11806
|
color: "gray",
|
|
11798
11807
|
"font-size": "12px"
|
|
11799
11808
|
}
|
|
11800
|
-
}, [e._v(e._s(c.time))]) : e._e()] : e._e(), p > 0 && e.isFlag ? [e.commentMap[c.type] ? r("span", [e._v(" " + e._s(e.commentMap[c.type]) + ": [" + e._s(c.fullMessage) + "] ")]) : e._e(), c.time ? r("p", {
|
|
11809
|
+
}, [e._v(e._s(c.time))]) : e._e()] : e._e(), p > 0 && e.isFlag ? [e.commentMap[c.type] ? r("span", [e._v(" " + e._s(e.commentMap[c.type]) + ": [" + e._s(c.fullMessage) + "] ")]) : c.fullMessage ? r("span", [e._v(" " + e._s(c.type) + ": [" + e._s(c.fullMessage) + "] ")]) : e._e(), c.time ? r("p", {
|
|
11801
11810
|
staticStyle: {
|
|
11802
11811
|
color: "gray",
|
|
11803
11812
|
"font-size": "12px"
|
|
@@ -11898,7 +11907,7 @@ var U7 = /* @__PURE__ */ Di(
|
|
|
11898
11907
|
$7,
|
|
11899
11908
|
!1,
|
|
11900
11909
|
Y7,
|
|
11901
|
-
|
|
11910
|
+
"c5f2f37a",
|
|
11902
11911
|
null,
|
|
11903
11912
|
null
|
|
11904
11913
|
);
|
|
@@ -22680,13 +22689,13 @@ function RW(e) {
|
|
|
22680
22689
|
class: !p && a.historyActivityType != "candidate" ? "nodePrimary" : ""
|
|
22681
22690
|
};
|
|
22682
22691
|
let y = "";
|
|
22683
|
-
if (s) {
|
|
22692
|
+
if (s || m && m.length > 0) {
|
|
22684
22693
|
if (y = `<span title='${s}'>${s}</span><br>`, c && (y += `<span title='${c}'>${PW(
|
|
22685
22694
|
c,
|
|
22686
22695
|
"YYYY-MM-DD HH:mm"
|
|
22687
22696
|
)}</span><br>`), m && m.length > 0) {
|
|
22688
22697
|
let E, { type: T, fullMessage: _ } = m.find((C) => C.action == "AddComment") || {};
|
|
22689
|
-
T == "assigneeComment" && (E = "\u53D8\u66F4\u5BA1\u6838\u4EBA\uFF1A" + _, g.class = "nodeWarn"), T == "dispatchComment" && (E = "\u8C03\u5EA6\uFF1A" + _, g.class = "nodeWarn"), T == "transferComment" && (E = "\u8F6C\u529E\uFF1A" + _, g.class = "nodeWarn"), T == "delegateComment" && (E = "\u59D4\u6258\uFF1A" + _, g.class = "nodeWarn"), T == "rollbackComment" && (E = "\u6307\u5B9A\u56DE\u9000\uFF1A" + _, g.class = "nodeError"), T == "terminateComment" && (E = "\u7EC8\u6B62\uFF1A" + _, g.class = "nodeError"), T == "addMultiInstanceComment" && (E = "\u52A0\u7B7E\uFF1A" + _, g.class = "nodeWarn"), T == "deleteMultiInstanceComment" && (E = "\u51CF\u7B7E\uFF1A" + _, g.class = "nodeError"), T == "withdrawComment" && (E = "\u64A4\u9500\uFF1A" + _, g.class = "nodeWarn"), T == "deleteProcessComment" && (E = "\u5220\u9664\u6D41\u7A0B\uFF1A" + _, g.class = "nodeError"), T == "cancelProcessComment" && (E = "\u62D2\u7EDD\uFF1A" + _, g.class = "nodeError"), T == "comment" && (E = "\u5BA1\u6279\uFF1A" + _, g.class = "nodeSuccess"), E && (y += `<span title='${E}'>${E}</span>`);
|
|
22698
|
+
T == "assigneeComment" && (E = "\u53D8\u66F4\u5BA1\u6838\u4EBA\uFF1A" + _, g.class = "nodeWarn"), T == "dispatchComment" && (E = "\u8C03\u5EA6\uFF1A" + _, g.class = "nodeWarn"), T == "transferComment" && (E = "\u8F6C\u529E\uFF1A" + _, g.class = "nodeWarn"), T == "delegateComment" && (E = "\u59D4\u6258\uFF1A" + _, g.class = "nodeWarn"), T == "rollbackComment" && (E = "\u6307\u5B9A\u56DE\u9000\uFF1A" + _, g.class = "nodeError"), T == "terminateComment" && (E = "\u7EC8\u6B62\uFF1A" + _, g.class = "nodeError"), (T == "addMultiInstanceComment" || (T || "").includes("\u52A0\u7B7E")) && (E = "\u52A0\u7B7E\uFF1A" + _, g.class = "nodeWarn"), T == "deleteMultiInstanceComment" && (E = "\u51CF\u7B7E\uFF1A" + _, g.class = "nodeError"), T == "withdrawComment" && (E = "\u64A4\u9500\uFF1A" + _, g.class = "nodeWarn"), T == "deleteProcessComment" && (E = "\u5220\u9664\u6D41\u7A0B\uFF1A" + _, g.class = "nodeError"), T == "cancelProcessComment" && (E = "\u62D2\u7EDD\uFF1A" + _, g.class = "nodeError"), T == "comment" && (E = "\u5BA1\u6279\uFF1A" + _, g.class = "nodeSuccess"), E && (y += `<span title='${E}'>${E}</span>`);
|
|
22690
22699
|
}
|
|
22691
22700
|
g.tooltip = y;
|
|
22692
22701
|
}
|
|
@@ -22830,7 +22839,7 @@ var zW = /* @__PURE__ */ Di(
|
|
|
22830
22839
|
LW,
|
|
22831
22840
|
!1,
|
|
22832
22841
|
$W,
|
|
22833
|
-
"
|
|
22842
|
+
"55039cbe",
|
|
22834
22843
|
null,
|
|
22835
22844
|
null
|
|
22836
22845
|
);
|
|
@@ -22958,7 +22967,7 @@ var HW = function() {
|
|
|
22958
22967
|
style: {
|
|
22959
22968
|
width: e.mainWidth + "px"
|
|
22960
22969
|
}
|
|
22961
|
-
}, [(e.processData.process.
|
|
22970
|
+
}, [(e.processData.process.isReturnable || e.processData.process.status == "todo" || e.customBtns.length > 0) && e.absoluteBtns.outside.length > 0 ? [e.absoluteBtns.inside.length > 0 ? r("el-dropdown", {
|
|
22962
22971
|
attrs: {
|
|
22963
22972
|
placement: "top-start",
|
|
22964
22973
|
trigger: "click"
|
|
@@ -23534,11 +23543,12 @@ const YW = {
|
|
|
23534
23543
|
},
|
|
23535
23544
|
methods: {
|
|
23536
23545
|
formatFlow(e) {
|
|
23537
|
-
|
|
23546
|
+
let i = (e || []).map((r) => ({
|
|
23538
23547
|
...r,
|
|
23539
23548
|
attachmentsFujian: (r.attachments || []).filter((a) => a.type != "signature"),
|
|
23540
23549
|
attachmentsQianzi: (r.attachments || []).filter((a) => a.type == "signature")
|
|
23541
23550
|
}));
|
|
23551
|
+
return i = i.reverse(), i;
|
|
23542
23552
|
},
|
|
23543
23553
|
cancelHandlerFn() {
|
|
23544
23554
|
this.dialogVisibleOperation = !1, this.submitLoading = !1;
|
|
@@ -23584,7 +23594,7 @@ const YW = {
|
|
|
23584
23594
|
const i = ((this.processData.process || {}).variables || {}).deptId;
|
|
23585
23595
|
this.deptId = i;
|
|
23586
23596
|
const r = (this.processData.process || {}).taskId;
|
|
23587
|
-
this.taskObj.buttons = this.processData.button, this.absoluteTaskId = r, this.straightenBtns(), this.$nextTick(() => {
|
|
23597
|
+
this.taskObj.buttons = this.processData.button, this.absoluteTaskId = r, this.ProcessInsObj = this.processData.process, this.straightenBtns(), this.$nextTick(() => {
|
|
23588
23598
|
this.calculateHeight();
|
|
23589
23599
|
}), this.processData.flow, this.flowChartVisible = !0, this.submitLoading = !1, this.boxLoading = !1;
|
|
23590
23600
|
}
|
|
@@ -23714,6 +23724,8 @@ const YW = {
|
|
|
23714
23724
|
});
|
|
23715
23725
|
},
|
|
23716
23726
|
async getNextNode(e) {
|
|
23727
|
+
if (this.ProcessInsObj && this.ProcessInsObj.taskParentId)
|
|
23728
|
+
return !0;
|
|
23717
23729
|
let i;
|
|
23718
23730
|
try {
|
|
23719
23731
|
i = await et.tis.simulation(
|
|
@@ -23727,6 +23739,9 @@ const YW = {
|
|
|
23727
23739
|
i.code == 200 && !i.data.evaluation && (this.incomingConditionItemList = [], r.branches = await this.getOutgoingProcessNode(
|
|
23728
23740
|
this.absoluteTaskId,
|
|
23729
23741
|
i.data.id
|
|
23742
|
+
)), i.code == 200 && i.data.evaluation && i.data.branches && i.data.branches.length > 0 && i.data.branches[0].nodeType != "userTask" && (this.incomingConditionItemList = [], r.branches = await this.getOutgoingProcessNode(
|
|
23743
|
+
this.absoluteTaskId,
|
|
23744
|
+
i.data.branches[0].id
|
|
23730
23745
|
)), r = await this.getSelectFixData(r, e), this.nextTaskNode = r;
|
|
23731
23746
|
},
|
|
23732
23747
|
async getNodeUser({ deptId: e, intersection: i, userIds: r, postIds: a, deptIds: s }) {
|
|
@@ -23871,7 +23886,7 @@ const YW = {
|
|
|
23871
23886
|
const i = this.processData.process;
|
|
23872
23887
|
if (!i)
|
|
23873
23888
|
return e;
|
|
23874
|
-
if (i.status == "todo" &&
|
|
23889
|
+
if (i.status == "todo" && this.getButton("wf_add_instance")) {
|
|
23875
23890
|
let a = {};
|
|
23876
23891
|
a.name = this.getButton("wf_add_instance").name, a.btnProps = { type: "primary" }, a.key = "sign", a.click = () => {
|
|
23877
23892
|
this.handleUserSelect({
|
|
@@ -23913,7 +23928,7 @@ const YW = {
|
|
|
23913
23928
|
this.handleCirculate(this.getButton("wf_cctask").name);
|
|
23914
23929
|
}, e.push(a);
|
|
23915
23930
|
}
|
|
23916
|
-
if (i.
|
|
23931
|
+
if (i.isReturnable && i.isOwner) {
|
|
23917
23932
|
let a = {};
|
|
23918
23933
|
a.name = "\u50AC\u529E", a.key = "self", a.click = () => {
|
|
23919
23934
|
this.handleReminders();
|
|
@@ -24031,7 +24046,7 @@ var VW = /* @__PURE__ */ Di(
|
|
|
24031
24046
|
UW,
|
|
24032
24047
|
!1,
|
|
24033
24048
|
WW,
|
|
24034
|
-
"
|
|
24049
|
+
"73b198a4",
|
|
24035
24050
|
null,
|
|
24036
24051
|
null
|
|
24037
24052
|
);
|
|
@@ -24755,7 +24770,7 @@ const rG = {
|
|
|
24755
24770
|
});
|
|
24756
24771
|
},
|
|
24757
24772
|
Show(e, i = "", r = !1) {
|
|
24758
|
-
return this.processList = [], this.revival = r, this.processDefId = e, i && et.repository.getProcessDefList(i, "").then((a) => {
|
|
24773
|
+
return this.processList = [], this.revival = r, this.processDefId = e, i && et.repository.getProcessDefList(i, "", this.subjectId || "").then((a) => {
|
|
24759
24774
|
a.code == wt.success && a.data.map((s) => {
|
|
24760
24775
|
s.id == e && (this.processDefName = s.name);
|
|
24761
24776
|
});
|
|
@@ -24894,7 +24909,7 @@ var aG = /* @__PURE__ */ Di(
|
|
|
24894
24909
|
nG,
|
|
24895
24910
|
!1,
|
|
24896
24911
|
oG,
|
|
24897
|
-
"
|
|
24912
|
+
"1aef9e89",
|
|
24898
24913
|
null,
|
|
24899
24914
|
null
|
|
24900
24915
|
);
|