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
|
@@ -16,7 +16,7 @@ function vP(e, i) {
|
|
|
16
16
|
}
|
|
17
17
|
return Object.freeze(Object.defineProperty(e, Symbol.toStringTag, { value: "Module" }));
|
|
18
18
|
}
|
|
19
|
-
const bP = "ddy-process-pc-vue3", _P = "1.0.1-rc.3.
|
|
19
|
+
const bP = "ddy-process-pc-vue3", _P = "1.0.1-rc.3.53", yP = "> pc\u7AEF\u6D41\u7A0B\u7EC4\u4EF6", xP = "./ddy-process-pc-vue3.umd.cjs", wP = "./style.css", EP = "module", kP = {
|
|
20
20
|
".": {
|
|
21
21
|
import: "./ddy-process-pc-vue3.js",
|
|
22
22
|
require: "./ddy-process-pc-vue3.umd.cjs"
|
|
@@ -161,7 +161,7 @@ const si = "/aws", Ai = "/bladex/blade-workflow", pD = "/auth", et = {
|
|
|
161
161
|
return Ze(i);
|
|
162
162
|
},
|
|
163
163
|
addMultiInstance(e) {
|
|
164
|
-
let i = { url: Ai + "/tis/
|
|
164
|
+
let i = { url: Ai + "/tis/addSignTask", param: e, type: "post" };
|
|
165
165
|
return Ze(i);
|
|
166
166
|
},
|
|
167
167
|
reject(e, i) {
|
|
@@ -218,15 +218,16 @@ const si = "/aws", Ai = "/bladex/blade-workflow", pD = "/auth", et = {
|
|
|
218
218
|
let i = { url: si + "/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: Ai + "/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: Ai + "/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"
|
|
@@ -4805,10 +4806,10 @@ const Tj = {
|
|
|
4805
4806
|
return Gv.warning("\u8BF7\u586B\u5199\u52A0\u7B7E\u539F\u56E0"), !1;
|
|
4806
4807
|
if (this.reason.length > 200)
|
|
4807
4808
|
return Gv.warning("\u52A0\u7B7E\u539F\u56E0\u4E0D\u80FD\u8D85\u8FC7200\u4E2A\u5B57"), !1;
|
|
4808
|
-
let r = this.targetUser
|
|
4809
|
+
let r = this.targetUser || [];
|
|
4809
4810
|
e && e(), i(), et.tis.addMultiInstance({
|
|
4810
4811
|
taskId: this.param.taskInstId,
|
|
4811
|
-
|
|
4812
|
+
signPersoneds: r,
|
|
4812
4813
|
comment: this.reason
|
|
4813
4814
|
}).then((a) => {
|
|
4814
4815
|
a.code == Et.success ? this.$emit("success") : this.$emit("fail", a.msg);
|
|
@@ -4822,7 +4823,7 @@ var Nj = /* @__PURE__ */ Bi(
|
|
|
4822
4823
|
Oj,
|
|
4823
4824
|
!1,
|
|
4824
4825
|
Mj,
|
|
4825
|
-
"
|
|
4826
|
+
"79bc4843",
|
|
4826
4827
|
null,
|
|
4827
4828
|
null
|
|
4828
4829
|
);
|
|
@@ -5789,7 +5790,7 @@ var nL = function() {
|
|
|
5789
5790
|
return e.$refs.commIdea.addIdea(e.commentMsg);
|
|
5790
5791
|
}
|
|
5791
5792
|
}
|
|
5792
|
-
}, [e._v("\u8BBE\u7F6E\u4E3A\u5E38\u7528\u610F\u89C1")])]) : e._e()], 1)] : e._e(), e._t("file"), e.param.nodeLoading ? [r("el-form-item", {
|
|
5793
|
+
}, [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", {
|
|
5793
5794
|
attrs: {
|
|
5794
5795
|
label: "\u4E0B\u4E00\u8282\u70B9",
|
|
5795
5796
|
size: "normal"
|
|
@@ -5798,7 +5799,7 @@ var nL = function() {
|
|
|
5798
5799
|
staticStyle: {
|
|
5799
5800
|
"font-size": "16px"
|
|
5800
5801
|
}
|
|
5801
|
-
}, [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", {
|
|
5802
|
+
}, [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", {
|
|
5802
5803
|
key: e.param.nextTaskNode.id,
|
|
5803
5804
|
ref: e.setItemRef(e.param.nextTaskNode.id),
|
|
5804
5805
|
attrs: {
|
|
@@ -6039,58 +6040,60 @@ const aL = {
|
|
|
6039
6040
|
businessData: this.param.businessData,
|
|
6040
6041
|
attachment: this.param.attachment
|
|
6041
6042
|
};
|
|
6042
|
-
|
|
6043
|
-
let
|
|
6044
|
-
|
|
6045
|
-
|
|
6046
|
-
|
|
6047
|
-
|
|
6048
|
-
|
|
6049
|
-
I.vars
|
|
6050
|
-
|
|
6051
|
-
|
|
6052
|
-
|
|
6053
|
-
|
|
6054
|
-
|
|
6055
|
-
|
|
6056
|
-
|
|
6057
|
-
|
|
6058
|
-
|
|
6059
|
-
...I.multiNodeParticipant
|
|
6060
|
-
}, a.vars = { ...a.vars, ...I.vars };
|
|
6061
|
-
}
|
|
6062
|
-
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";
|
|
6063
|
-
if (s || c || p) {
|
|
6064
|
-
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)
|
|
6065
|
-
a.multiNodeParticipant = {
|
|
6043
|
+
if (this.param.ProcessInsObj && !this.param.ProcessInsObj.taskParentId) {
|
|
6044
|
+
for (let g in this.userTaskListData) {
|
|
6045
|
+
let y = this.userTaskListData[g];
|
|
6046
|
+
this.$refs[y];
|
|
6047
|
+
let B = this.$refs[y].$el ? this.$refs[y] : this.$refs[y][0];
|
|
6048
|
+
B.getValue;
|
|
6049
|
+
let I = B.getValue();
|
|
6050
|
+
if (I && I.vars && this.param.incomingConditionItemList && this.param.incomingConditionItemList.length > 0 && this.param.incomingConditionItemList.forEach((S) => {
|
|
6051
|
+
I.vars[S.itemName] || (I.vars[S.itemName] = "");
|
|
6052
|
+
}), !I)
|
|
6053
|
+
return !1;
|
|
6054
|
+
let T = [];
|
|
6055
|
+
const _ = this.param.nextTaskNode;
|
|
6056
|
+
_.setPersonnel ? T = _.assignees || [] : T = (B.targetUserList || []).map((S) => ({
|
|
6057
|
+
id: S.id,
|
|
6058
|
+
name: S.name
|
|
6059
|
+
})), a.assignees = T, a.multiNodeParticipant = {
|
|
6066
6060
|
...a.multiNodeParticipant,
|
|
6067
|
-
|
|
6068
|
-
};
|
|
6069
|
-
|
|
6070
|
-
|
|
6061
|
+
...I.multiNodeParticipant
|
|
6062
|
+
}, a.vars = { ...a.vars, ...I.vars };
|
|
6063
|
+
}
|
|
6064
|
+
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";
|
|
6065
|
+
if (s || c || p) {
|
|
6066
|
+
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)
|
|
6067
|
+
a.multiNodeParticipant = {
|
|
6068
|
+
...a.multiNodeParticipant,
|
|
6069
|
+
[this.param.nextTaskNode.branches[0].nodeInfoDTO.id]: this.param.nextTaskNode.branches[0].nodeInfoDTO.assignees.map((g) => g.id)
|
|
6070
|
+
};
|
|
6071
|
+
else if (!Object.keys(a.multiNodeParticipant).length)
|
|
6072
|
+
return xu.warning("\u8BF7\u9009\u62E9\u4E0B\u4E00\u8282\u70B9"), !1;
|
|
6073
|
+
}
|
|
6071
6074
|
}
|
|
6072
6075
|
if (a.pass = !0, Date.now() && this.param, this.param.getVars) {
|
|
6073
|
-
let
|
|
6074
|
-
if (
|
|
6076
|
+
let s = this.param.getVars();
|
|
6077
|
+
if (s === !1)
|
|
6075
6078
|
return !1;
|
|
6076
|
-
a.vars = { ...a.vars, ...
|
|
6079
|
+
a.vars = { ...a.vars, ...s };
|
|
6077
6080
|
}
|
|
6078
6081
|
if (this.signRequired, this.signRequired) {
|
|
6079
6082
|
this.confirmPreposition = e, this.confirmLoading = i, this.signVisible = !0;
|
|
6080
6083
|
return;
|
|
6081
6084
|
}
|
|
6082
|
-
i(), e ? e().then((
|
|
6083
|
-
et.tis.complete(a).then((
|
|
6084
|
-
|
|
6085
|
+
i(), e ? e().then((s) => {
|
|
6086
|
+
et.tis.complete(a).then((c) => {
|
|
6087
|
+
c.code == Et.success ? (s && s(), this.$emit("success")) : this.$emit("fail", c.msg);
|
|
6085
6088
|
}).catch(() => {
|
|
6086
6089
|
this.$emit("fail", "");
|
|
6087
6090
|
});
|
|
6088
6091
|
}).catch(() => {
|
|
6089
6092
|
this.$emit("fail", "");
|
|
6090
|
-
}) : et.tis.complete(a).then((
|
|
6091
|
-
|
|
6092
|
-
}).catch((
|
|
6093
|
-
this.$emit("fail",
|
|
6093
|
+
}) : et.tis.complete(a).then((s) => {
|
|
6094
|
+
s.code == Et.success ? this.$emit("success") : this.$emit("fail", s.msg);
|
|
6095
|
+
}).catch((s) => {
|
|
6096
|
+
this.$emit("fail", s.response ? s.response.data ? s.response.data.msg || s.response.data.message : "" : s.message || s.msg || "");
|
|
6094
6097
|
});
|
|
6095
6098
|
},
|
|
6096
6099
|
confirmWithSign() {
|
|
@@ -6106,45 +6109,47 @@ const aL = {
|
|
|
6106
6109
|
},
|
|
6107
6110
|
attachment: this.param.attachment
|
|
6108
6111
|
};
|
|
6109
|
-
|
|
6110
|
-
let
|
|
6111
|
-
|
|
6112
|
-
|
|
6113
|
-
|
|
6114
|
-
|
|
6115
|
-
|
|
6116
|
-
...e.multiNodeParticipant,
|
|
6117
|
-
...g.multiNodeParticipant
|
|
6118
|
-
}, e.vars = { ...e.vars, ...g.vars };
|
|
6119
|
-
}
|
|
6120
|
-
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";
|
|
6121
|
-
if (i || r || a) {
|
|
6122
|
-
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)
|
|
6112
|
+
if (this.param.ProcessInsObj && !this.param.ProcessInsObj.taskParentId) {
|
|
6113
|
+
for (let c in this.userTaskListData) {
|
|
6114
|
+
let p = this.userTaskListData[c], m = this.$refs[p].$el ? this.$refs[p] : this.$refs[p][0];
|
|
6115
|
+
m.getValue;
|
|
6116
|
+
let g = m.getValue();
|
|
6117
|
+
if (!g)
|
|
6118
|
+
return !1;
|
|
6123
6119
|
e.multiNodeParticipant = {
|
|
6124
6120
|
...e.multiNodeParticipant,
|
|
6125
|
-
|
|
6126
|
-
};
|
|
6127
|
-
|
|
6128
|
-
|
|
6129
|
-
|
|
6130
|
-
|
|
6131
|
-
|
|
6132
|
-
|
|
6133
|
-
|
|
6134
|
-
|
|
6121
|
+
...g.multiNodeParticipant
|
|
6122
|
+
}, e.vars = { ...e.vars, ...g.vars };
|
|
6123
|
+
}
|
|
6124
|
+
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";
|
|
6125
|
+
if (i || r || a) {
|
|
6126
|
+
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)
|
|
6127
|
+
e.multiNodeParticipant = {
|
|
6128
|
+
...e.multiNodeParticipant,
|
|
6129
|
+
[this.param.nextTaskNode.branches[0].nodeInfoDTO.id]: this.param.nextTaskNode.branches[0].nodeInfoDTO.assignees.map((c) => c.id)
|
|
6130
|
+
};
|
|
6131
|
+
else if (!Object.keys(e.multiNodeParticipant).length)
|
|
6132
|
+
return xu.warning("\u8BF7\u9009\u62E9\u4E0B\u4E00\u8282\u70B9"), !1;
|
|
6133
|
+
}
|
|
6134
|
+
if (this.param.getVars) {
|
|
6135
|
+
let c = this.param.getVars();
|
|
6136
|
+
if (c === !1)
|
|
6137
|
+
return !1;
|
|
6138
|
+
e.vars = { ...e.vars, ...c };
|
|
6139
|
+
}
|
|
6135
6140
|
}
|
|
6136
|
-
e.pass = !0, this.confirmLoading(), this.confirmPreposition ? this.confirmPreposition().then((
|
|
6137
|
-
et.tis.complete(e).then((
|
|
6138
|
-
|
|
6141
|
+
e.pass = !0, this.confirmLoading(), this.confirmPreposition ? this.confirmPreposition().then((i) => {
|
|
6142
|
+
et.tis.complete(e).then((r) => {
|
|
6143
|
+
r.code == Et.success ? (i && i(), this.$emit("success")) : this.$emit("fail", r.msg);
|
|
6139
6144
|
}).catch(() => {
|
|
6140
6145
|
this.$emit("fail", "");
|
|
6141
6146
|
});
|
|
6142
6147
|
}).catch(() => {
|
|
6143
6148
|
this.$emit("fail", "");
|
|
6144
|
-
}) : et.tis.complete(e).then((
|
|
6145
|
-
|
|
6146
|
-
}).catch((
|
|
6147
|
-
this.$emit("fail",
|
|
6149
|
+
}) : et.tis.complete(e).then((i) => {
|
|
6150
|
+
i.code == Et.success ? this.$emit("success") : this.$emit("fail", i.msg);
|
|
6151
|
+
}).catch((i) => {
|
|
6152
|
+
this.$emit("fail", i.response ? i.response.data ? i.response.data.msg || i.response.data.message : "" : i.message || i.msg || "");
|
|
6148
6153
|
});
|
|
6149
6154
|
},
|
|
6150
6155
|
handleSignature(e, i) {
|
|
@@ -6164,7 +6169,7 @@ var oL = /* @__PURE__ */ Bi(
|
|
|
6164
6169
|
rL,
|
|
6165
6170
|
!1,
|
|
6166
6171
|
sL,
|
|
6167
|
-
"
|
|
6172
|
+
"0dd5ddd2",
|
|
6168
6173
|
null,
|
|
6169
6174
|
null
|
|
6170
6175
|
);
|
|
@@ -11031,12 +11036,16 @@ var C$ = function() {
|
|
|
11031
11036
|
attrs: {
|
|
11032
11037
|
shadow: "never"
|
|
11033
11038
|
}
|
|
11034
|
-
}, [r("p", [
|
|
11039
|
+
}, [r("p", [r("span", {
|
|
11040
|
+
staticClass: "flow-name"
|
|
11041
|
+
}, [e._v(e._s(a.assigneeName))]), e._v(" \u5728 [" + e._s(a.createTime) + "] \u5F00\u59CB\u5904\u7406 "), r("span", {
|
|
11042
|
+
staticClass: "flow-node"
|
|
11043
|
+
}, [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) {
|
|
11035
11044
|
return c.action === "AddComment";
|
|
11036
11045
|
}), function(c, p) {
|
|
11037
11046
|
return r("p", {
|
|
11038
11047
|
key: p
|
|
11039
|
-
}, [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) {
|
|
11048
|
+
}, [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) {
|
|
11040
11049
|
return m.action === "AddComment";
|
|
11041
11050
|
}).length > 1 ? r("span", {
|
|
11042
11051
|
staticStyle: {
|
|
@@ -11048,12 +11057,12 @@ var C$ = function() {
|
|
|
11048
11057
|
}
|
|
11049
11058
|
}, [e._v(" " + e._s(e.toggleText) + " "), r("i", {
|
|
11050
11059
|
class: [e.isFlag ? "el-icon-arrow-up" : "el-icon-arrow-down"]
|
|
11051
|
-
}), r("el-icon", [e.isFlag ? r("el-icon-arrow-up") : r("el-icon-arrow-down")], 1)], 1) : e._e(), c.time ? r("p", {
|
|
11060
|
+
}), 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", {
|
|
11052
11061
|
staticStyle: {
|
|
11053
11062
|
color: "gray",
|
|
11054
11063
|
"font-size": "12px"
|
|
11055
11064
|
}
|
|
11056
|
-
}, [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", {
|
|
11065
|
+
}, [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", {
|
|
11057
11066
|
staticStyle: {
|
|
11058
11067
|
color: "gray",
|
|
11059
11068
|
"font-size": "12px"
|
|
@@ -11154,7 +11163,7 @@ var I$ = /* @__PURE__ */ Bi(
|
|
|
11154
11163
|
S$,
|
|
11155
11164
|
!1,
|
|
11156
11165
|
B$,
|
|
11157
|
-
|
|
11166
|
+
"c5f2f37a",
|
|
11158
11167
|
null,
|
|
11159
11168
|
null
|
|
11160
11169
|
);
|
|
@@ -21936,13 +21945,13 @@ function xV(e) {
|
|
|
21936
21945
|
class: !p && a.historyActivityType != "candidate" ? "nodePrimary" : ""
|
|
21937
21946
|
};
|
|
21938
21947
|
let y = "";
|
|
21939
|
-
if (s) {
|
|
21948
|
+
if (s || m && m.length > 0) {
|
|
21940
21949
|
if (y = `<span title='${s}'>${s}</span><br>`, c && (y += `<span title='${c}'>${yV(
|
|
21941
21950
|
c,
|
|
21942
21951
|
"YYYY-MM-DD HH:mm"
|
|
21943
21952
|
)}</span><br>`), m && m.length > 0) {
|
|
21944
21953
|
let I, { type: T, fullMessage: _ } = m.find((S) => S.action == "AddComment") || {};
|
|
21945
|
-
T == "assigneeComment" && (I = "\u53D8\u66F4\u5BA1\u6838\u4EBA\uFF1A" + _, g.class = "nodeWarn"), T == "dispatchComment" && (I = "\u8C03\u5EA6\uFF1A" + _, g.class = "nodeWarn"), T == "transferComment" && (I = "\u8F6C\u529E\uFF1A" + _, g.class = "nodeWarn"), T == "delegateComment" && (I = "\u59D4\u6258\uFF1A" + _, g.class = "nodeWarn"), T == "rollbackComment" && (I = "\u6307\u5B9A\u56DE\u9000\uFF1A" + _, g.class = "nodeError"), T == "terminateComment" && (I = "\u7EC8\u6B62\uFF1A" + _, g.class = "nodeError"), T == "addMultiInstanceComment" && (I = "\u52A0\u7B7E\uFF1A" + _, g.class = "nodeWarn"), T == "deleteMultiInstanceComment" && (I = "\u51CF\u7B7E\uFF1A" + _, g.class = "nodeError"), T == "withdrawComment" && (I = "\u64A4\u9500\uFF1A" + _, g.class = "nodeWarn"), T == "deleteProcessComment" && (I = "\u5220\u9664\u6D41\u7A0B\uFF1A" + _, g.class = "nodeError"), T == "cancelProcessComment" && (I = "\u62D2\u7EDD\uFF1A" + _, g.class = "nodeError"), T == "comment" && (I = "\u5BA1\u6279\uFF1A" + _, g.class = "nodeSuccess"), I && (y += `<span title='${I}'>${I}</span>`);
|
|
21954
|
+
T == "assigneeComment" && (I = "\u53D8\u66F4\u5BA1\u6838\u4EBA\uFF1A" + _, g.class = "nodeWarn"), T == "dispatchComment" && (I = "\u8C03\u5EA6\uFF1A" + _, g.class = "nodeWarn"), T == "transferComment" && (I = "\u8F6C\u529E\uFF1A" + _, g.class = "nodeWarn"), T == "delegateComment" && (I = "\u59D4\u6258\uFF1A" + _, g.class = "nodeWarn"), T == "rollbackComment" && (I = "\u6307\u5B9A\u56DE\u9000\uFF1A" + _, g.class = "nodeError"), T == "terminateComment" && (I = "\u7EC8\u6B62\uFF1A" + _, g.class = "nodeError"), (T == "addMultiInstanceComment" || (T || "").includes("\u52A0\u7B7E")) && (I = "\u52A0\u7B7E\uFF1A" + _, g.class = "nodeWarn"), T == "deleteMultiInstanceComment" && (I = "\u51CF\u7B7E\uFF1A" + _, g.class = "nodeError"), T == "withdrawComment" && (I = "\u64A4\u9500\uFF1A" + _, g.class = "nodeWarn"), T == "deleteProcessComment" && (I = "\u5220\u9664\u6D41\u7A0B\uFF1A" + _, g.class = "nodeError"), T == "cancelProcessComment" && (I = "\u62D2\u7EDD\uFF1A" + _, g.class = "nodeError"), T == "comment" && (I = "\u5BA1\u6279\uFF1A" + _, g.class = "nodeSuccess"), I && (y += `<span title='${I}'>${I}</span>`);
|
|
21946
21955
|
}
|
|
21947
21956
|
g.tooltip = y;
|
|
21948
21957
|
}
|
|
@@ -22086,7 +22095,7 @@ var CV = /* @__PURE__ */ Bi(
|
|
|
22086
22095
|
EV,
|
|
22087
22096
|
!1,
|
|
22088
22097
|
SV,
|
|
22089
|
-
"
|
|
22098
|
+
"55039cbe",
|
|
22090
22099
|
null,
|
|
22091
22100
|
null
|
|
22092
22101
|
);
|
|
@@ -22214,7 +22223,7 @@ var DV = function() {
|
|
|
22214
22223
|
style: {
|
|
22215
22224
|
width: e.mainWidth + "px"
|
|
22216
22225
|
}
|
|
22217
|
-
}, [(e.processData.process.
|
|
22226
|
+
}, [(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", {
|
|
22218
22227
|
attrs: {
|
|
22219
22228
|
placement: "top-start",
|
|
22220
22229
|
trigger: "click"
|
|
@@ -22790,11 +22799,12 @@ const BV = {
|
|
|
22790
22799
|
},
|
|
22791
22800
|
methods: {
|
|
22792
22801
|
formatFlow(e) {
|
|
22793
|
-
|
|
22802
|
+
let i = (e || []).map((r) => ({
|
|
22794
22803
|
...r,
|
|
22795
22804
|
attachmentsFujian: (r.attachments || []).filter((a) => a.type != "signature"),
|
|
22796
22805
|
attachmentsQianzi: (r.attachments || []).filter((a) => a.type == "signature")
|
|
22797
22806
|
}));
|
|
22807
|
+
return i = i.reverse(), i;
|
|
22798
22808
|
},
|
|
22799
22809
|
cancelHandlerFn() {
|
|
22800
22810
|
this.dialogVisibleOperation = !1, this.submitLoading = !1;
|
|
@@ -22840,7 +22850,7 @@ const BV = {
|
|
|
22840
22850
|
const i = ((this.processData.process || {}).variables || {}).deptId;
|
|
22841
22851
|
this.deptId = i;
|
|
22842
22852
|
const r = (this.processData.process || {}).taskId;
|
|
22843
|
-
this.taskObj.buttons = this.processData.button, this.absoluteTaskId = r, this.straightenBtns(), this.$nextTick(() => {
|
|
22853
|
+
this.taskObj.buttons = this.processData.button, this.absoluteTaskId = r, this.ProcessInsObj = this.processData.process, this.straightenBtns(), this.$nextTick(() => {
|
|
22844
22854
|
this.calculateHeight();
|
|
22845
22855
|
}), this.processData.flow, this.flowChartVisible = !0, this.submitLoading = !1, this.boxLoading = !1;
|
|
22846
22856
|
}
|
|
@@ -22970,6 +22980,8 @@ const BV = {
|
|
|
22970
22980
|
});
|
|
22971
22981
|
},
|
|
22972
22982
|
async getNextNode(e) {
|
|
22983
|
+
if (this.ProcessInsObj && this.ProcessInsObj.taskParentId)
|
|
22984
|
+
return !0;
|
|
22973
22985
|
let i;
|
|
22974
22986
|
try {
|
|
22975
22987
|
i = await et.tis.simulation(
|
|
@@ -22983,6 +22995,9 @@ const BV = {
|
|
|
22983
22995
|
i.code == 200 && !i.data.evaluation && (this.incomingConditionItemList = [], r.branches = await this.getOutgoingProcessNode(
|
|
22984
22996
|
this.absoluteTaskId,
|
|
22985
22997
|
i.data.id
|
|
22998
|
+
)), 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(
|
|
22999
|
+
this.absoluteTaskId,
|
|
23000
|
+
i.data.branches[0].id
|
|
22986
23001
|
)), r = await this.getSelectFixData(r, e), this.nextTaskNode = r;
|
|
22987
23002
|
},
|
|
22988
23003
|
async getNodeUser({ deptId: e, intersection: i, userIds: r, postIds: a, deptIds: s }) {
|
|
@@ -23127,7 +23142,7 @@ const BV = {
|
|
|
23127
23142
|
const i = this.processData.process;
|
|
23128
23143
|
if (!i)
|
|
23129
23144
|
return e;
|
|
23130
|
-
if (i.status == "todo" &&
|
|
23145
|
+
if (i.status == "todo" && this.getButton("wf_add_instance")) {
|
|
23131
23146
|
let a = {};
|
|
23132
23147
|
a.name = this.getButton("wf_add_instance").name, a.btnProps = { type: "primary" }, a.key = "sign", a.click = () => {
|
|
23133
23148
|
this.handleUserSelect({
|
|
@@ -23169,7 +23184,7 @@ const BV = {
|
|
|
23169
23184
|
this.handleCirculate(this.getButton("wf_cctask").name);
|
|
23170
23185
|
}, e.push(a);
|
|
23171
23186
|
}
|
|
23172
|
-
if (i.
|
|
23187
|
+
if (i.isReturnable && i.isOwner) {
|
|
23173
23188
|
let a = {};
|
|
23174
23189
|
a.name = "\u50AC\u529E", a.key = "self", a.click = () => {
|
|
23175
23190
|
this.handleReminders();
|
|
@@ -23287,7 +23302,7 @@ var OV = /* @__PURE__ */ Bi(
|
|
|
23287
23302
|
IV,
|
|
23288
23303
|
!1,
|
|
23289
23304
|
TV,
|
|
23290
|
-
"
|
|
23305
|
+
"73b198a4",
|
|
23291
23306
|
null,
|
|
23292
23307
|
null
|
|
23293
23308
|
);
|
|
@@ -24011,7 +24026,7 @@ const HV = {
|
|
|
24011
24026
|
});
|
|
24012
24027
|
},
|
|
24013
24028
|
Show(e, i = "", r = !1) {
|
|
24014
|
-
return this.processList = [], this.revival = r, this.processDefId = e, i && et.repository.getProcessDefList(i, "").then((a) => {
|
|
24029
|
+
return this.processList = [], this.revival = r, this.processDefId = e, i && et.repository.getProcessDefList(i, "", this.subjectId || "").then((a) => {
|
|
24015
24030
|
a.code == Et.success && a.data.map((s) => {
|
|
24016
24031
|
s.id == e && (this.processDefName = s.name);
|
|
24017
24032
|
});
|
|
@@ -24150,7 +24165,7 @@ var UV = /* @__PURE__ */ Bi(
|
|
|
24150
24165
|
$V,
|
|
24151
24166
|
!1,
|
|
24152
24167
|
YV,
|
|
24153
|
-
"
|
|
24168
|
+
"1aef9e89",
|
|
24154
24169
|
null,
|
|
24155
24170
|
null
|
|
24156
24171
|
);
|