ui-process-h5 2.0.8-beta → 2.1.1-beta
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 +3 -3
- package/v2/style.css +1 -1
- package/v2/ui-process-h5.js +416 -435
- package/v2/ui-process-h5.umd.cjs +7 -7
- package/v2.7/style.css +1 -1
- package/v2.7/ui-process-h5.js +115 -134
- package/v2.7/ui-process-h5.umd.cjs +7 -7
- package/v3/style.css +1 -1
- package/v3/ui-process-h5.js +925 -948
- package/v3/ui-process-h5.umd.cjs +5 -5
package/v2.7/ui-process-h5.js
CHANGED
|
@@ -4639,7 +4639,9 @@ const re = /* @__PURE__ */ function() {
|
|
|
4639
4639
|
lists: [],
|
|
4640
4640
|
expand: !1,
|
|
4641
4641
|
active: "",
|
|
4642
|
-
activeItem: {
|
|
4642
|
+
activeItem: {
|
|
4643
|
+
name: ""
|
|
4644
|
+
}
|
|
4643
4645
|
};
|
|
4644
4646
|
},
|
|
4645
4647
|
watch: {
|
|
@@ -4655,8 +4657,8 @@ const re = /* @__PURE__ */ function() {
|
|
|
4655
4657
|
deep: !0,
|
|
4656
4658
|
handler(e, s) {
|
|
4657
4659
|
this.active = e;
|
|
4658
|
-
let
|
|
4659
|
-
this.activeItem =
|
|
4660
|
+
let i = JSON.parse(JSON.stringify(this.option)).filter((a, n) => a.id == e);
|
|
4661
|
+
this.activeItem = i[0], this.activeItem && this.$emit("change", this.activeItem);
|
|
4660
4662
|
}
|
|
4661
4663
|
}
|
|
4662
4664
|
},
|
|
@@ -4695,11 +4697,11 @@ var Kl = function() {
|
|
|
4695
4697
|
})
|
|
4696
4698
|
})], 2) : t("div", {
|
|
4697
4699
|
staticClass: "top-select-menu",
|
|
4698
|
-
class: [e.border && "top-select-menu-border", !e.activeItem
|
|
4700
|
+
class: [e.border && "top-select-menu-border", !e.activeItem && "top-select-menu-placeholder"],
|
|
4699
4701
|
on: {
|
|
4700
4702
|
click: e.handleExpand
|
|
4701
4703
|
}
|
|
4702
|
-
}, [e._v(" " + e._s(e.activeItem
|
|
4704
|
+
}, [e._v(" " + e._s(e.activeItem ? e.activeItem.name : e.placeholder) + " "), e.disibled ? e._e() : t("img", {
|
|
4703
4705
|
staticClass: "top-select-menu--arrow",
|
|
4704
4706
|
class: [e.expand ? "arrow-active" : ""],
|
|
4705
4707
|
attrs: {
|
|
@@ -4737,7 +4739,7 @@ var Hl = /* @__PURE__ */ F(
|
|
|
4737
4739
|
Yl,
|
|
4738
4740
|
!1,
|
|
4739
4741
|
_l,
|
|
4740
|
-
"
|
|
4742
|
+
"a791e974",
|
|
4741
4743
|
null,
|
|
4742
4744
|
null
|
|
4743
4745
|
);
|
|
@@ -4933,7 +4935,7 @@ const Dn = /* @__PURE__ */ function() {
|
|
|
4933
4935
|
this.$refs.TopDownSelect.handleExpand();
|
|
4934
4936
|
},
|
|
4935
4937
|
async handleOption() {
|
|
4936
|
-
this.checkedItem = {}, this.firstPerson = [], this.personList = [], !(this.selfList && this.selfList.length) && (this.handleTips("", !0, "loading"), await this.request.get("/
|
|
4938
|
+
this.checkedItem = {}, this.firstPerson = [], this.personList = [], !(this.selfList && this.selfList.length) && (this.handleTips("", !0, "loading"), await this.request.get("/aws/repository/getProcessDefList", {
|
|
4937
4939
|
params: {
|
|
4938
4940
|
appId: this.appId,
|
|
4939
4941
|
processGroupName: this.processNameData
|
|
@@ -4943,7 +4945,7 @@ const Dn = /* @__PURE__ */ function() {
|
|
|
4943
4945
|
}));
|
|
4944
4946
|
},
|
|
4945
4947
|
async getProcessInstance() {
|
|
4946
|
-
this.id && await this.request.get("/
|
|
4948
|
+
this.id && await this.request.get("/aws/pis/getProcessInstanceByBusinessKey", {
|
|
4947
4949
|
params: { businessKey: this.id }
|
|
4948
4950
|
}).then((e) => {
|
|
4949
4951
|
e.code == 200 && (this.processId = e.data.id, this.processId && this.option.map((s, t) => {
|
|
@@ -4958,7 +4960,7 @@ const Dn = /* @__PURE__ */ function() {
|
|
|
4958
4960
|
});
|
|
4959
4961
|
},
|
|
4960
4962
|
async handlefirstNode(e) {
|
|
4961
|
-
e && (this.handleTips("", !0, "loading"), await this.request.get("/
|
|
4963
|
+
e && (this.handleTips("", !0, "loading"), await this.request.get("/aws/repository/getFirstProcessNode", {
|
|
4962
4964
|
params: {
|
|
4963
4965
|
processDefId: e
|
|
4964
4966
|
}
|
|
@@ -4972,7 +4974,7 @@ const Dn = /* @__PURE__ */ function() {
|
|
|
4972
4974
|
this.handleTips("", !0, "loading"), this.checkedItem = {}, this.firstPerson = [], this.personList = [], this.checkedItem = e, this.handlefirstNode(this.checkedItem.id), this.getDiagramUrl(), this.$emit("change", e, s);
|
|
4973
4975
|
},
|
|
4974
4976
|
async getAfferentParticipantNodeList() {
|
|
4975
|
-
await this.request.get("/
|
|
4977
|
+
await this.request.get("/aws/repository/getAfferentParticipantNodeList", {
|
|
4976
4978
|
params: {
|
|
4977
4979
|
processDefId: this.checkedItem.id
|
|
4978
4980
|
}
|
|
@@ -4985,7 +4987,7 @@ const Dn = /* @__PURE__ */ function() {
|
|
|
4985
4987
|
});
|
|
4986
4988
|
},
|
|
4987
4989
|
getDiagramUrl() {
|
|
4988
|
-
this.request.get("/
|
|
4990
|
+
this.request.get("/aws/repository/getDiagramUrl", {
|
|
4989
4991
|
params: {
|
|
4990
4992
|
processDefId: this.checkedItem.id,
|
|
4991
4993
|
diagramType: 1,
|
|
@@ -5108,7 +5110,7 @@ const Dn = /* @__PURE__ */ function() {
|
|
|
5108
5110
|
},
|
|
5109
5111
|
handleSongshen() {
|
|
5110
5112
|
if (this.btnLoading = !0, this.resubmit)
|
|
5111
|
-
this.handleTips("", !0, "loading"), this.request.post("/
|
|
5113
|
+
this.handleTips("", !0, "loading"), this.request.post("/aws/pis/reactivate", {
|
|
5112
5114
|
processInstId: this.processId,
|
|
5113
5115
|
isClearHistory: this.isClearHistory,
|
|
5114
5116
|
reactivateReason: "\u91CD\u65B0\u63D0\u4EA4",
|
|
@@ -5133,8 +5135,8 @@ const Dn = /* @__PURE__ */ function() {
|
|
|
5133
5135
|
this.$refs.topTips.handleClose(), this.btnLoading = !1;
|
|
5134
5136
|
return;
|
|
5135
5137
|
}
|
|
5136
|
-
this.request.post("/
|
|
5137
|
-
s.code === 200 ? (this.show = !1, this.$emit("update:visible", this.show), this.handleTips("\u63D0\u4EA4\u6210\u529F!", !1, "success"), this.$emit("successFn"), this.btnLoading = !1) : s.code == 499 ? this.request.post("/
|
|
5138
|
+
this.request.post("/aws/pis/createAndStart", e).then((s) => {
|
|
5139
|
+
s.code === 200 ? (this.show = !1, this.$emit("update:visible", this.show), this.handleTips("\u63D0\u4EA4\u6210\u529F!", !1, "success"), this.$emit("successFn"), this.btnLoading = !1) : s.code == 499 ? this.request.post("/aws/pis/reactivate", {
|
|
5138
5140
|
processInstId: this.processId,
|
|
5139
5141
|
isClearHistory: this.isClearHistory,
|
|
5140
5142
|
reactivateReason: "\u91CD\u65B0\u63D0\u4EA4",
|
|
@@ -5504,15 +5506,15 @@ const tp = /* @__PURE__ */ function() {
|
|
|
5504
5506
|
if (o.code === 200) {
|
|
5505
5507
|
if (this.filesArr.length > 0) {
|
|
5506
5508
|
for (let c = 0; c < this.filesArr.length; c++)
|
|
5507
|
-
if (o.
|
|
5508
|
-
let d = o.
|
|
5509
|
+
if (o.name == this.filesArr[c].name && i++, this.filesArr[c].name.includes(`(${i})`) && i++, i > 0) {
|
|
5510
|
+
let d = o.name.lastIndexOf(
|
|
5509
5511
|
"."
|
|
5510
5512
|
);
|
|
5511
|
-
o.
|
|
5513
|
+
o.name = `${o.name.substring(
|
|
5512
5514
|
0,
|
|
5513
5515
|
d
|
|
5514
|
-
)} (${i}) .${o.
|
|
5515
|
-
o.
|
|
5516
|
+
)} (${i}) .${o.name.substring(
|
|
5517
|
+
o.name.lastIndexOf(
|
|
5516
5518
|
"."
|
|
5517
5519
|
) + 1
|
|
5518
5520
|
)}`;
|
|
@@ -5647,7 +5649,7 @@ var ap = function() {
|
|
|
5647
5649
|
staticClass: "list-items-info"
|
|
5648
5650
|
}, [t("div", {
|
|
5649
5651
|
staticClass: "info-name"
|
|
5650
|
-
}, [e._v(" " + e._s(i.
|
|
5652
|
+
}, [e._v(" " + e._s(i.name) + " ")]), t("div", {
|
|
5651
5653
|
staticClass: "info-attribute"
|
|
5652
5654
|
}, [t("span", {
|
|
5653
5655
|
staticClass: "info-attribute-size"
|
|
@@ -5716,7 +5718,7 @@ var rp = /* @__PURE__ */ F(
|
|
|
5716
5718
|
np,
|
|
5717
5719
|
!1,
|
|
5718
5720
|
op,
|
|
5719
|
-
"
|
|
5721
|
+
"26dcacc2",
|
|
5720
5722
|
null,
|
|
5721
5723
|
null
|
|
5722
5724
|
);
|
|
@@ -6146,7 +6148,7 @@ const Ap = {
|
|
|
6146
6148
|
let e = "";
|
|
6147
6149
|
this.multiNodeParticipant[this.partObjId].map((s, t) => {
|
|
6148
6150
|
t == 0 ? e = s : e = `${e} ${s}`;
|
|
6149
|
-
}), this.handleTips("", !0, "loading"), this.param.request.post("/
|
|
6151
|
+
}), this.handleTips("", !0, "loading"), this.param.request.post("/aws/tis/createDynamicTask", {
|
|
6150
6152
|
title: this.param.formData.title || this.param.formData.reason || this.param.formData.meetingTheme,
|
|
6151
6153
|
participant: e,
|
|
6152
6154
|
processInstId: this.param.processInstId,
|
|
@@ -6186,7 +6188,7 @@ const Ap = {
|
|
|
6186
6188
|
});
|
|
6187
6189
|
let e = this.attchLists;
|
|
6188
6190
|
(await this.param.request.post(
|
|
6189
|
-
"/
|
|
6191
|
+
"/aws/meta/annex/patchSave",
|
|
6190
6192
|
{
|
|
6191
6193
|
saveMetaAnnexCmdList: e
|
|
6192
6194
|
}
|
|
@@ -6200,7 +6202,7 @@ const Ap = {
|
|
|
6200
6202
|
this.textTips = e, this.statusTips = s, this.typeTips = t, this.$refs.topTips.handleOpen();
|
|
6201
6203
|
},
|
|
6202
6204
|
handleFinal() {
|
|
6203
|
-
this.param.endFunction && this.param.endFunction("counterSign");
|
|
6205
|
+
this.param.endFunction && (window.top && window.top.postMessage("success", "*"), this.param.endFunction("counterSign"));
|
|
6204
6206
|
}
|
|
6205
6207
|
}
|
|
6206
6208
|
}, ha = {};
|
|
@@ -6210,7 +6212,7 @@ var gp = /* @__PURE__ */ F(
|
|
|
6210
6212
|
mp,
|
|
6211
6213
|
!1,
|
|
6212
6214
|
vp,
|
|
6213
|
-
"
|
|
6215
|
+
"0ab61a36",
|
|
6214
6216
|
null,
|
|
6215
6217
|
null
|
|
6216
6218
|
);
|
|
@@ -6513,7 +6515,7 @@ const bp = {
|
|
|
6513
6515
|
let e = "";
|
|
6514
6516
|
this.multiNodeParticipant[this.partObjId].map((s, t) => {
|
|
6515
6517
|
t == 0 ? e = s : e = `${e} ${s}`;
|
|
6516
|
-
}), this.handleTips("", !0, "loading"), await this.param.request.post("/
|
|
6518
|
+
}), this.handleTips("", !0, "loading"), await this.param.request.post("/aws/tis/delegate", {
|
|
6517
6519
|
delegateReason: this.commentMsg,
|
|
6518
6520
|
taskInstId: this.param.taskInstId,
|
|
6519
6521
|
targetUID: e
|
|
@@ -6550,7 +6552,7 @@ const bp = {
|
|
|
6550
6552
|
});
|
|
6551
6553
|
let e = this.attchLists;
|
|
6552
6554
|
(await this.param.request.post(
|
|
6553
|
-
"/
|
|
6555
|
+
"/aws/meta/annex/patchSave",
|
|
6554
6556
|
{
|
|
6555
6557
|
saveMetaAnnexCmdList: e
|
|
6556
6558
|
}
|
|
@@ -6564,7 +6566,7 @@ const bp = {
|
|
|
6564
6566
|
this.textTips = e, this.statusTips = s, this.typeTips = t, this.$refs.topTips.handleOpen();
|
|
6565
6567
|
},
|
|
6566
6568
|
handleFinal() {
|
|
6567
|
-
this.param.endFunction && this.param.endFunction("delegateTask");
|
|
6569
|
+
this.param.endFunction && (window.top && window.top.postMessage("success", "*"), this.param.endFunction("delegateTask"));
|
|
6568
6570
|
}
|
|
6569
6571
|
}
|
|
6570
6572
|
}, fa = {};
|
|
@@ -6574,7 +6576,7 @@ var Tp = /* @__PURE__ */ F(
|
|
|
6574
6576
|
Ip,
|
|
6575
6577
|
!1,
|
|
6576
6578
|
kp,
|
|
6577
|
-
"
|
|
6579
|
+
"2cd8491e",
|
|
6578
6580
|
null,
|
|
6579
6581
|
null
|
|
6580
6582
|
);
|
|
@@ -6597,7 +6599,7 @@ var wp = function() {
|
|
|
6597
6599
|
"margin-top": "0"
|
|
6598
6600
|
}
|
|
6599
6601
|
}, [e._l(e.nodeItems, function(i) {
|
|
6600
|
-
return [e.checkType == "InclusiveGatewayModel" ? t("div", {
|
|
6602
|
+
return [e.checkType == "InclusiveGatewayModel" && e.nodeItems.length > 1 ? t("div", {
|
|
6601
6603
|
staticClass: "treenode-checkbox",
|
|
6602
6604
|
class: e.checkBoxArr.includes(i.id) ? "treenode-checkbox-active" : "",
|
|
6603
6605
|
on: {
|
|
@@ -6610,7 +6612,7 @@ var wp = function() {
|
|
|
6610
6612
|
attrs: {
|
|
6611
6613
|
src: e.check
|
|
6612
6614
|
}
|
|
6613
|
-
}) : e._e()]), e._v(" " + e._s(i.nodeName || i.name) + " ")]) : e.checkType == "ExclusiveGatewayModel" ? t("div", {
|
|
6615
|
+
}) : e._e()]), e._v(" " + e._s(i.nodeName || i.name) + " ")]) : e.checkType == "ExclusiveGatewayModel" && e.nodeItems.length > 1 ? t("div", {
|
|
6614
6616
|
staticClass: "treenode-radio",
|
|
6615
6617
|
class: e.radioArr == i.id ? "treenode-radio-active" : "",
|
|
6616
6618
|
on: {
|
|
@@ -6800,24 +6802,18 @@ const xp = {
|
|
|
6800
6802
|
watch: {
|
|
6801
6803
|
items: {
|
|
6802
6804
|
handler(e, s) {
|
|
6803
|
-
e && e.length && (this.multiNodeParticipant = {}, this.partNode = {}, this.gateVars = {}, this.$emit("onMultiNode", this.multiNodeParticipant), this.$emit("onVars", this.gateVars), this.nodeType == "outing" ? this.nodeItems = JSON.parse(JSON.stringify(e)) : this.nodeType == "nexting" && e.forEach((t) => {
|
|
6804
|
-
t.userTaskModelDTO.participantList && t.userTaskModelDTO.participantList.length && t.userTaskModelDTO.participantList.map(
|
|
6805
|
-
(i)
|
|
6806
|
-
|
|
6807
|
-
|
|
6808
|
-
) || this.partNode[t.id].push(
|
|
6809
|
-
i.name
|
|
6810
|
-
);
|
|
6811
|
-
}
|
|
6812
|
-
), (t.userTaskModelDTO.humanPerformer.name == "\u56FA\u5B9A\u8D26\u6237" || t.userTaskModelDTO.humanPerformer.name == "\u4E0E\u6D41\u7A0B\u7533\u8BF7\u4EBA\u76F8\u5173") && this.personMake.push(t.id), this.personMake && this.personMake.length && this.param.request.post(
|
|
6813
|
-
`/tripartite/aws/repository/getParticipantsOfPerformerNames?taskInstId=${this.param.taskInstId}`,
|
|
6805
|
+
e && e.length && (console.log("=====item", e), console.log("=====checkType", this.checkType), this.multiNodeParticipant = {}, this.partNode = {}, this.gateVars = {}, this.$emit("onMultiNode", this.multiNodeParticipant), this.$emit("onVars", this.gateVars), this.nodeType == "outing" ? this.nodeItems = JSON.parse(JSON.stringify(e)) : this.nodeType == "nexting" && e.forEach((t) => {
|
|
6806
|
+
t.userTaskModelDTO.participantList && t.userTaskModelDTO.participantList.length && t.userTaskModelDTO.participantList.map((i) => {
|
|
6807
|
+
this.multiNodeParticipant[t.id] || (this.multiNodeParticipant[t.id] = []), this.partNode[t.id] || (this.partNode[t.id] = []), this.multiNodeParticipant[t.id].includes(i.id) || this.multiNodeParticipant[t.id].push(i.id), this.partNode[t.id].includes(i.name) || this.partNode[t.id].push(i.name);
|
|
6808
|
+
}), (t.userTaskModelDTO.humanPerformer.name == "\u56FA\u5B9A\u8D26\u6237" || t.userTaskModelDTO.humanPerformer.name == "\u4E0E\u6D41\u7A0B\u7533\u8BF7\u4EBA\u76F8\u5173") && this.personMake.push(t.id), this.personMake && this.personMake.length && this.param.request.post(
|
|
6809
|
+
`aws/repository/getParticipantsOfPerformerNames?taskInstId=${this.param.taskInstId}`,
|
|
6814
6810
|
{
|
|
6815
6811
|
userTaskDefIds: this.personMake
|
|
6816
6812
|
}
|
|
6817
6813
|
).then((i) => {
|
|
6818
6814
|
i.code == 200 && (this.personMakeList = i.data);
|
|
6819
6815
|
}), this.nodeItems = JSON.parse(JSON.stringify(e));
|
|
6820
|
-
}));
|
|
6816
|
+
}), this.checkType == "ExclusiveGatewayModel" && e.length == 1 && this.handleRadioClick(e[0]));
|
|
6821
6817
|
},
|
|
6822
6818
|
immediate: !0,
|
|
6823
6819
|
deep: !0
|
|
@@ -6828,6 +6824,8 @@ const xp = {
|
|
|
6828
6824
|
return ti;
|
|
6829
6825
|
}
|
|
6830
6826
|
},
|
|
6827
|
+
mounted() {
|
|
6828
|
+
},
|
|
6831
6829
|
methods: {
|
|
6832
6830
|
clear() {
|
|
6833
6831
|
this.radioArr = "", this.radioItem = [], this.checkBoxArr = [], this.checkBoxItem = [], this.multiNodeParticipant = {}, this.partNode = {}, this.gateVars = {};
|
|
@@ -6844,37 +6842,30 @@ const xp = {
|
|
|
6844
6842
|
}), this.$emit("onMultiNode", this.multiNodeParticipant);
|
|
6845
6843
|
},
|
|
6846
6844
|
handleRadioClick(e) {
|
|
6847
|
-
e && (this.multiNodeParticipant = {}, this.gateVars = {}, this.$emit("onMultiNode", this.multiNodeParticipant), this.radioArr = e.id, this.radioItem = [e], this.handleNode(e));
|
|
6845
|
+
console.log("=====val", e), console.log("=====checkType", this.checkType), e && (this.multiNodeParticipant = {}, this.gateVars = {}, this.$emit("onMultiNode", this.multiNodeParticipant), e.incomingConditionItemList.length > 0 && e.incomingConditionItemList[0].itemName && e.incomingConditionItemList[0].compareValue && (this.gateVars[e.incomingConditionItemList[0].itemName] = e.incomingConditionItemList[0].compareValue), this.radioArr = e.id, this.radioItem = [e], this.handleNode(e), this.$emit("onVars", this.gateVars));
|
|
6848
6846
|
},
|
|
6849
6847
|
handleCheckBoxClick(e) {
|
|
6850
|
-
e && (this.checkBoxArr.includes(e.id) ? (delete this.multiNodeParticipant[e.id], this.checkBoxItem.splice(
|
|
6851
|
-
this.checkBoxArr.indexOf(e.id),
|
|
6852
|
-
1
|
|
6853
|
-
), this.checkBoxArr.splice(
|
|
6854
|
-
this.checkBoxArr.indexOf(e.id),
|
|
6855
|
-
1
|
|
6856
|
-
)) : (this.checkBoxItem.push(e), this.checkBoxArr.push(e.id)), this.handleNode(e));
|
|
6848
|
+
e && (this.checkBoxArr.includes(e.id) ? (console.log("zhhchoval =====", e), e.incomingConditionItemList.length > 0 && e.incomingConditionItemList[0].itemName && e.incomingConditionItemList[0].compareValue && delete this.gateVars[e.incomingConditionItemList[0].itemName], delete this.multiNodeParticipant[e.id], this.checkBoxItem.splice(this.checkBoxArr.indexOf(e.id), 1), this.checkBoxArr.splice(this.checkBoxArr.indexOf(e.id), 1)) : (e.incomingConditionItemList.length > 0 && e.incomingConditionItemList[0].itemName && e.incomingConditionItemList[0].compareValue && (this.gateVars[e.incomingConditionItemList[0].itemName] = e.incomingConditionItemList[0].compareValue), this.checkBoxItem.push(e), this.checkBoxArr.push(e.id)), this.handleNode(e), this.$emit("onVars", this.gateVars));
|
|
6857
6849
|
},
|
|
6858
6850
|
handleNode(e) {
|
|
6851
|
+
console.log("val======", e);
|
|
6859
6852
|
let s = e.childNode && e.childNode.length ? e.childNode : e && e.length ? e : [e];
|
|
6860
|
-
s && s.length && s.forEach((t, i) => {
|
|
6853
|
+
console.log("childArr======", s), console.log("checkBoxItem======", this.checkBoxItem), s && s.length && s.forEach((t, i) => {
|
|
6861
6854
|
t.participantList && t.participantList.length ? t.participantList.forEach((a, n) => {
|
|
6862
|
-
this.multiNodeParticipant[t.id] || (this.multiNodeParticipant[t.id] = []), this.partNode[t.id] || (this.partNode[t.id] = []), this.multiNodeParticipant[t.id].includes(
|
|
6863
|
-
|
|
6864
|
-
|
|
6865
|
-
}) : t.id && this.param.request.post(
|
|
6866
|
-
`/tripartite/aws/repository/getParticipantsOfPerformerNames?taskInstId=${this.param.taskInstId}`,
|
|
6855
|
+
this.multiNodeParticipant[t.id] || (this.multiNodeParticipant[t.id] = []), this.partNode[t.id] || (this.partNode[t.id] = []), this.multiNodeParticipant[t.id].includes(a.id) || this.multiNodeParticipant[t.id].push(a.id), this.partNode[t.id].includes(a.name) || this.partNode[t.id].push(a.name);
|
|
6856
|
+
}) : t.id && t.humanPerformerName == "\u56FA\u5B9A\u4EBA\u5458" && this.param.request.post(
|
|
6857
|
+
`/aws/repository/getParticipantsOfPerformerNames?taskInstId=${this.param.taskInstId}`,
|
|
6867
6858
|
{ userTaskDefIds: [t.id] }
|
|
6868
6859
|
).then((a) => {
|
|
6869
|
-
a.code == 200 && (this.partNode[t.id] = {}, this.partNode[t.id] = a.data[t.id]);
|
|
6870
|
-
}), this.nodeType == "outing" && (
|
|
6860
|
+
a.code == 200 && (this.partNode[t.id] = {}, this.partNode[t.id] = a.data[t.id].split(";"));
|
|
6861
|
+
}), this.nodeType == "outing" && (this.onVarsData && (this.gateVars = {
|
|
6871
6862
|
...this.gateVars,
|
|
6872
6863
|
...this.onVarsData
|
|
6873
6864
|
}), this.$emit("onVars", this.gateVars));
|
|
6874
6865
|
});
|
|
6875
6866
|
},
|
|
6876
6867
|
handleOpenPopup(e) {
|
|
6877
|
-
if (this.visible = !0, this.partObjId = e.id, this.nodeType == "nexting" ? e = {
|
|
6868
|
+
if (this.visible = !0, this.partObjId = e.id, console.log("item======", e), this.nodeType == "nexting" ? e = {
|
|
6878
6869
|
...e,
|
|
6879
6870
|
...e.userTaskModelDTO
|
|
6880
6871
|
} : this.nodeType == "outing" ? e = {
|
|
@@ -6882,7 +6873,7 @@ const xp = {
|
|
|
6882
6873
|
humanPerformer: {
|
|
6883
6874
|
name: e.humanPerformerName
|
|
6884
6875
|
}
|
|
6885
|
-
} : this.handleTips("\u52A0\u8F7D\u5931\u8D25,\u8BF7\u5237\u65B0", !0, "error"), e.humanPerformer.name == "\u56FA\u5B9A\u5355\u4F4D") {
|
|
6876
|
+
} : this.handleTips("\u52A0\u8F7D\u5931\u8D25,\u8BF7\u5237\u65B0", !0, "error"), e.humanPerformer.name == "\u56FA\u5B9A\u5355\u4F4D" || e.humanPerformerName == "\u56FA\u5B9A\u5355\u4F4D") {
|
|
6886
6877
|
let s, t = [];
|
|
6887
6878
|
e.routeTxt.companyIds.map((i, a) => {
|
|
6888
6879
|
s = i.name;
|
|
@@ -6902,7 +6893,7 @@ const xp = {
|
|
|
6902
6893
|
subjectName: s,
|
|
6903
6894
|
checkedArray: t
|
|
6904
6895
|
};
|
|
6905
|
-
} else if (e.humanPerformer.name == "\u56FA\u5B9A\u90E8\u95E8") {
|
|
6896
|
+
} else if (e.humanPerformer.name == "\u56FA\u5B9A\u90E8\u95E8" || e.humanPerformerName == "\u56FA\u5B9A\u90E8\u95E8") {
|
|
6906
6897
|
let s, t = [], i = [];
|
|
6907
6898
|
e.routeTxt.departmentIds.forEach((a, n) => {
|
|
6908
6899
|
e.routeTxt.departmentIds.length > 1 ? t.push(a.rangeId) : s = a.rangeId;
|
|
@@ -6975,7 +6966,7 @@ var Op = /* @__PURE__ */ F(
|
|
|
6975
6966
|
Bp,
|
|
6976
6967
|
!1,
|
|
6977
6968
|
Sp,
|
|
6978
|
-
"
|
|
6969
|
+
"6a8364b0",
|
|
6979
6970
|
null,
|
|
6980
6971
|
null
|
|
6981
6972
|
);
|
|
@@ -6993,7 +6984,7 @@ var Mp = function() {
|
|
|
6993
6984
|
}, [e.nodeItems && e.nodeItems.length ? t("div", e._l(e.nodeItems, function(i) {
|
|
6994
6985
|
return t("div", {
|
|
6995
6986
|
staticClass: "treeperson"
|
|
6996
|
-
}, [i.childNode && i.childNode.length ? [e._m(0, !0), e.nodeType == "outing" ? [t("div", {
|
|
6987
|
+
}, [i.childNode && i.childNode.length ? [e._m(0, !0), e.nodeType == "outing" ? [i.type == "ExclusiveGatewayModel" && i.childNode.length == 1 ? e._e() : t("div", {
|
|
6997
6988
|
staticClass: "treeperson-firstnode"
|
|
6998
6989
|
}, e._l(i.childNode, function(a) {
|
|
6999
6990
|
return t("div", {
|
|
@@ -7101,7 +7092,7 @@ const Qp = {
|
|
|
7101
7092
|
...t,
|
|
7102
7093
|
...t.userTaskModelDTO
|
|
7103
7094
|
}, t.humanPerformerName = t.humanPerformer.name, this.nodeItems.push(t);
|
|
7104
|
-
})) : this.nodeType == "outing" && (this.nodeItems = e, console.log("nodeItems", this.nodeItems)));
|
|
7095
|
+
})) : this.nodeType == "outing" && (this.nodeItems = e, console.log("nodeItems", this.nodeItems)), this.nodeItems.length == 1 && this.nodeItems[0].type == "ExclusiveGatewayModel" && this.nodeItems[0].childNode && this.nodeItems[0].childNode.length == 1 && this.handleFirstNodeClick(this.nodeItems[0]));
|
|
7105
7096
|
},
|
|
7106
7097
|
immediate: !0,
|
|
7107
7098
|
deep: !0
|
|
@@ -7123,7 +7114,7 @@ const Qp = {
|
|
|
7123
7114
|
return e == "\u4EFB\u610F\u6307\u5B9A" || e == "\u56FA\u5B9A\u90E8\u95E8" || e == "\u56FA\u5B9A\u5355\u4F4D" || e == "\u4E0E\u6D41\u7A0B\u7533\u8BF7\u4EBA\u6240\u5728\u7EC4\u7EC7\u7ED3\u6784\u7684\u4F4D\u7F6E\u76F8\u5173" || e == "\u56FA\u5B9A\u7FA4\u7EC4";
|
|
7124
7115
|
},
|
|
7125
7116
|
handleFirstNodeClick(e) {
|
|
7126
|
-
if (e) {
|
|
7117
|
+
if (console.log("=====one", e), e) {
|
|
7127
7118
|
this.firstCheck = e.id, this.firstType = e.type;
|
|
7128
7119
|
let s = [e];
|
|
7129
7120
|
e.childNode && e.childNode.length ? (this.childrenItems = e.childNode, this.childrenEndItems = !1) : (this.childrenItems = [e], this.childrenEndItems = !0), this.nodeType == "outing" && (this.gateVars = {}, s.forEach((t) => {
|
|
@@ -7139,7 +7130,7 @@ var Lp = /* @__PURE__ */ F(
|
|
|
7139
7130
|
Pp,
|
|
7140
7131
|
!1,
|
|
7141
7132
|
Fp,
|
|
7142
|
-
"
|
|
7133
|
+
"6d0f7f3c",
|
|
7143
7134
|
null,
|
|
7144
7135
|
null
|
|
7145
7136
|
);
|
|
@@ -7158,7 +7149,7 @@ var Vp = function() {
|
|
|
7158
7149
|
staticClass: "process-popup-content-msg"
|
|
7159
7150
|
}, [e.param.isQuickReply ? t("div", {
|
|
7160
7151
|
staticClass: "process-pc-label"
|
|
7161
|
-
}, [e._v("
|
|
7152
|
+
}, [e._v("\u5FEB\u6377\u56DE\u590D")]) : e._e(), e.param.isQuickReply ? t("div", {
|
|
7162
7153
|
staticClass: "process-pc-value",
|
|
7163
7154
|
staticStyle: {
|
|
7164
7155
|
display: "flex"
|
|
@@ -7255,7 +7246,7 @@ var Vp = function() {
|
|
|
7255
7246
|
}
|
|
7256
7247
|
}, [e._v("\u8BBE\u7F6E\u4E3A\u5E38\u7528\u610F\u89C1")])]) : e._e()])]) : e._e(), e.taskNode && e.taskNode.length > 0 && e.taskNode[0].taskState != 4 && e.taskNode[0].taskState != 11 ? t("div", {
|
|
7257
7248
|
staticClass: "process-popup-content-person"
|
|
7258
|
-
}, [e.nextNodeData.length ? [t("TreePerson", {
|
|
7249
|
+
}, [e.nextNodeData.length ? [e.nextNodeData.length == 1 && e.nextNodeData[0].type == "endEvent" ? t("div", [e._v(" \u4E0B\u4E00\u8282\u70B9\uFF1A\u7ED3\u675F\u4E8B\u4EF6 ")]) : t("TreePerson", {
|
|
7259
7250
|
attrs: {
|
|
7260
7251
|
items: e.nextNodeData,
|
|
7261
7252
|
nodeType: "nexting",
|
|
@@ -7448,14 +7439,10 @@ const Jp = {
|
|
|
7448
7439
|
});
|
|
7449
7440
|
}), this.nextNodeData && this.nextNodeData.length ? (this.nextNodeData.map((t, i) => {
|
|
7450
7441
|
t.type !== "endEvent" && (t.userTaskModelDTO.participantList && t.userTaskModelDTO.participantList.length && t.userTaskModelDTO.participantList.map((a) => {
|
|
7451
|
-
this.multiNodeParticipant[t.id] || (this.multiNodeParticipant[t.id] = []), this.partNode[t.id] || (this.partNode[t.id] = []), this.multiNodeParticipant[t.id].includes(
|
|
7452
|
-
a.id
|
|
7453
|
-
) || this.multiNodeParticipant[t.id].push(
|
|
7454
|
-
a.id
|
|
7455
|
-
), this.partNode[t.id].includes(a.name) || this.partNode[t.id].push(a.name);
|
|
7442
|
+
this.multiNodeParticipant[t.id] || (this.multiNodeParticipant[t.id] = []), this.partNode[t.id] || (this.partNode[t.id] = []), this.multiNodeParticipant[t.id].includes(a.id) || this.multiNodeParticipant[t.id].push(a.id), this.partNode[t.id].includes(a.name) || this.partNode[t.id].push(a.name);
|
|
7456
7443
|
}), (t.userTaskModelDTO.humanPerformer.name == "\u56FA\u5B9A\u8D26\u6237" || t.userTaskModelDTO.humanPerformer.name == "\u4E0E\u6D41\u7A0B\u7533\u8BF7\u4EBA\u76F8\u5173") && this.personMake.push(t.id));
|
|
7457
7444
|
}), this.personMake && this.personMake.length && this.param.request.post(
|
|
7458
|
-
|
|
7445
|
+
`aws/repository/getParticipantsOfPerformerNames?taskInstId=${this.param.taskInstId}`,
|
|
7459
7446
|
{
|
|
7460
7447
|
userTaskDefIds: this.personMake
|
|
7461
7448
|
}
|
|
@@ -7463,11 +7450,7 @@ const Jp = {
|
|
|
7463
7450
|
t.code == 200 && (this.personMakeList = t.data);
|
|
7464
7451
|
})) : this.outGatewayUserTaskModel && this.outGatewayUserTaskModel.length && this.outGatewayUserTaskModel.map((t, i) => {
|
|
7465
7452
|
t.type !== "endEvent" && t.participantList && t.participantList.length && t.participantList.map((a) => {
|
|
7466
|
-
this.multiNodeParticipant[t.id] || (this.multiNodeParticipant[t.id] = []), this.partNode[t.id] || (this.partNode[t.id] = []), this.multiNodeParticipant[t.id].includes(
|
|
7467
|
-
a.id
|
|
7468
|
-
) || this.multiNodeParticipant[t.id].push(
|
|
7469
|
-
a.id
|
|
7470
|
-
), this.partNode[t.id].includes(a.name) || this.partNode[t.id].push(a.name);
|
|
7453
|
+
this.multiNodeParticipant[t.id] || (this.multiNodeParticipant[t.id] = []), this.partNode[t.id] || (this.partNode[t.id] = []), this.multiNodeParticipant[t.id].includes(a.id) || this.multiNodeParticipant[t.id].push(a.id), this.partNode[t.id].includes(a.name) || this.partNode[t.id].push(a.name);
|
|
7471
7454
|
});
|
|
7472
7455
|
});
|
|
7473
7456
|
},
|
|
@@ -7504,10 +7487,7 @@ const Jp = {
|
|
|
7504
7487
|
) : (this.radioCheckNameList.push(e.id), this.gateVars[e.incomingConditionItemList[0].itemName] = e.incomingConditionItemList[0].compareValue), this.gateVars[e.itemName] = e.compareValue) : (this.radioCheckNameList = [], this.radioCheckNodeList = [], this.radioCheckNameList.push(e.id), e.childNode && e.childNode.length && (this.radioCheckNodeList = e.childNode), this.gateVars[e.incomingConditionItemList[0].itemName] = e.incomingConditionItemList[0].compareValue, this.gateVars[e.itemName] = e.compareValue);
|
|
7505
7488
|
},
|
|
7506
7489
|
handleSaveNodeS(e) {
|
|
7507
|
-
this.makeType == "InclusiveGatewayModel" ? this.radioCheckNode.includes(e.id) ? this.radioCheckNode.splice(
|
|
7508
|
-
this.radioCheckNode.indexOf(e.id),
|
|
7509
|
-
1
|
|
7510
|
-
) : this.radioCheckNode.push(e.id) : this.radioCheckNode && this.radioCheckNode.length ? this.radioCheckNode = [] : (this.radioCheckNode.push(e.id), e.childNode && e.childNode.length && this.radioCheckNodeList.push(e.childNode));
|
|
7490
|
+
this.makeType == "InclusiveGatewayModel" ? this.radioCheckNode.includes(e.id) ? this.radioCheckNode.splice(this.radioCheckNode.indexOf(e.id), 1) : this.radioCheckNode.push(e.id) : this.radioCheckNode && this.radioCheckNode.length ? this.radioCheckNode = [] : (this.radioCheckNode.push(e.id), e.childNode && e.childNode.length && this.radioCheckNodeList.push(e.childNode));
|
|
7511
7491
|
},
|
|
7512
7492
|
forRadioChild(e, s) {
|
|
7513
7493
|
e.map((t, i) => {
|
|
@@ -7517,11 +7497,9 @@ const Jp = {
|
|
|
7517
7497
|
async handleNode(e) {
|
|
7518
7498
|
this.makeType = e.type, this.radioCheckNameList = [], this.radioCheck = e.id, this.radioCheckName = e.nodeName, this.radioCheckChild = e.childNode && e.childNode.length ? e.childNode : [e], this.radioCheckChild && this.radioCheckChild.length && this.radioCheckChild.map((s) => {
|
|
7519
7499
|
s.participantList && s.participantList.length ? s.participantList.map((t) => {
|
|
7520
|
-
this.multiNodeParticipant[s.id] || (this.multiNodeParticipant[s.id] = []), this.partNode[s.id] || (this.partNode[s.id] = []), this.multiNodeParticipant[s.id].includes(
|
|
7521
|
-
t.id
|
|
7522
|
-
) || this.multiNodeParticipant[s.id].push(t.id), this.partNode[s.id].includes(t.name) || this.partNode[s.id].push(t.name);
|
|
7500
|
+
this.multiNodeParticipant[s.id] || (this.multiNodeParticipant[s.id] = []), this.partNode[s.id] || (this.partNode[s.id] = []), this.multiNodeParticipant[s.id].includes(t.id) || this.multiNodeParticipant[s.id].push(t.id), this.partNode[s.id].includes(t.name) || this.partNode[s.id].push(t.name);
|
|
7523
7501
|
}) : this.param.request.post(
|
|
7524
|
-
`/
|
|
7502
|
+
`/aws/repository/getParticipantsOfPerformerNames?taskInstId=${this.param.taskInstId}`,
|
|
7525
7503
|
{ userTaskDefIds: [s.id] }
|
|
7526
7504
|
).then((t) => {
|
|
7527
7505
|
t.code == 200 && (this.partNodeS = [], this.partNodeS.push(t.data[s.id]));
|
|
@@ -7611,7 +7589,7 @@ const Jp = {
|
|
|
7611
7589
|
this.visibleListMsg = !0;
|
|
7612
7590
|
},
|
|
7613
7591
|
async confirm() {
|
|
7614
|
-
if (
|
|
7592
|
+
if (!this.commentMsg && this.param.isRequire) {
|
|
7615
7593
|
this.handleTips("\u8BF7\u8F93\u5165\u5BA1\u6279\u610F\u89C1!", !1, "success");
|
|
7616
7594
|
return;
|
|
7617
7595
|
}
|
|
@@ -7619,16 +7597,15 @@ const Jp = {
|
|
|
7619
7597
|
this.handleTips("\u8BF7\u4E0A\u4F20\u9644\u4EF6!", !1, "success");
|
|
7620
7598
|
return;
|
|
7621
7599
|
}
|
|
7600
|
+
this.commentMsg || (this.commentMsg = " ");
|
|
7622
7601
|
let e = {};
|
|
7623
7602
|
this.radioCheckNameList && this.radioCheckNameList.length ? this.radioCheckChild[0].type !== "EndEventModel" && this.radioCheckNameList.map((s, t) => {
|
|
7624
7603
|
(!this.multiNodeParticipant[s] || !this.multiNodeParticipant[s].length) && this.radioCheckChild.map((i, a) => {
|
|
7625
|
-
i.id == s && (i.humanPerformerName !== "\u56FA\u5B9A\u8D26\u6237" || i.humanPerformerName !== "\u4E0E\u6D41\u7A0B\u7533\u8BF7\u4EBA\u76F8\u5173") && (!i.childNode || !i.childNode.length || this.radioCheckNode.map(
|
|
7626
|
-
|
|
7627
|
-
|
|
7628
|
-
}
|
|
7629
|
-
));
|
|
7604
|
+
i.id == s && (i.humanPerformerName !== "\u56FA\u5B9A\u8D26\u6237" || i.humanPerformerName !== "\u4E0E\u6D41\u7A0B\u7533\u8BF7\u4EBA\u76F8\u5173") && (!i.childNode || !i.childNode.length || this.radioCheckNode.map((n, r) => {
|
|
7605
|
+
!this.multiNodeParticipant[n] || this.multiNodeParticipant[n].length, e[n] = this.multiNodeParticipant[n];
|
|
7606
|
+
}));
|
|
7630
7607
|
}), e[s] = this.multiNodeParticipant[s];
|
|
7631
|
-
}) : e = this.multiNodeParticipant, !(this.param.beforeFunction && !await this.param.beforeFunction()) && (this.handleTips("", !0, "loading"), this.param.actionComplete, this.commentMsg, this.param.taskInstId, this.param.vars || this.gateVars, await this.param.request.post("/
|
|
7608
|
+
}) : e = this.multiNodeParticipant, !(this.param.beforeFunction && !await this.param.beforeFunction()) && (this.handleTips("", !0, "loading"), this.param.actionComplete, this.commentMsg, this.param.taskInstId, this.param.vars || this.gateVars, await this.param.request.post("/aws/tis/complete", {
|
|
7632
7609
|
actionName: this.param.actionComplete,
|
|
7633
7610
|
commentMsg: this.commentMsg,
|
|
7634
7611
|
taskInstId: this.param.taskInstId,
|
|
@@ -7665,13 +7642,13 @@ const Jp = {
|
|
|
7665
7642
|
async uploadAttch() {
|
|
7666
7643
|
if (this.attchLists.length > 0) {
|
|
7667
7644
|
this.attchLists.map((t, i) => {
|
|
7668
|
-
t.size = t.fileSize, t.format = t.
|
|
7669
|
-
t.
|
|
7670
|
-
), t.uploadTime = t.createTime, t.processInstId = this.param.processInstId, t.taskInstId = this.param.taskInstId, t.name = t.
|
|
7645
|
+
t.size = t.fileSize, t.format = t.name.substring(
|
|
7646
|
+
t.name.lastIndexOf(".") + 1
|
|
7647
|
+
), t.uploadTime = t.createTime, t.processInstId = this.param.processInstId, t.taskInstId = this.param.taskInstId, t.name = t.name;
|
|
7671
7648
|
});
|
|
7672
7649
|
let e = this.attchLists;
|
|
7673
7650
|
(await this.param.request.post(
|
|
7674
|
-
"/
|
|
7651
|
+
"/aws/meta/annex/patchSave",
|
|
7675
7652
|
{
|
|
7676
7653
|
saveMetaAnnexCmdList: e
|
|
7677
7654
|
}
|
|
@@ -7701,7 +7678,7 @@ var qp = /* @__PURE__ */ F(
|
|
|
7701
7678
|
Gp,
|
|
7702
7679
|
!1,
|
|
7703
7680
|
Rp,
|
|
7704
|
-
"
|
|
7681
|
+
"d81c9e0e",
|
|
7705
7682
|
null,
|
|
7706
7683
|
null
|
|
7707
7684
|
);
|
|
@@ -7993,7 +7970,7 @@ const Hp = {
|
|
|
7993
7970
|
async confirm() {
|
|
7994
7971
|
if (!this.commentMsg)
|
|
7995
7972
|
return this.handleTips("\u8BF7\u8F93\u5165\u62D2\u7EDD\u7406\u7531!", !1, "success"), !1;
|
|
7996
|
-
this.handleTips("", !0, "loading"), await this.param.request.post("/
|
|
7973
|
+
this.handleTips("", !0, "loading"), await this.param.request.post("/aws/tis/reject", {
|
|
7997
7974
|
commentMsg: this.commentMsg,
|
|
7998
7975
|
taskInstId: this.param.taskInstId
|
|
7999
7976
|
}).then((e) => {
|
|
@@ -8029,7 +8006,7 @@ const Hp = {
|
|
|
8029
8006
|
});
|
|
8030
8007
|
let e = this.attchLists;
|
|
8031
8008
|
(await this.param.request.post(
|
|
8032
|
-
"/
|
|
8009
|
+
"/aws/meta/annex/patchSave",
|
|
8033
8010
|
{
|
|
8034
8011
|
saveMetaAnnexCmdList: e
|
|
8035
8012
|
}
|
|
@@ -8043,7 +8020,7 @@ const Hp = {
|
|
|
8043
8020
|
this.textTips = e, this.statusTips = s, this.typeTips = t, this.$refs.topTips.handleOpen();
|
|
8044
8021
|
},
|
|
8045
8022
|
handleFinal() {
|
|
8046
|
-
this.param.endFunction && this.param.endFunction("\u62D2\u7EDD");
|
|
8023
|
+
this.param.endFunction && (window.top && window.top.postMessage("success", "*"), this.param.endFunction("\u62D2\u7EDD"));
|
|
8047
8024
|
}
|
|
8048
8025
|
}
|
|
8049
8026
|
}, va = {};
|
|
@@ -8053,7 +8030,7 @@ var _p = /* @__PURE__ */ F(
|
|
|
8053
8030
|
Yp,
|
|
8054
8031
|
!1,
|
|
8055
8032
|
Wp,
|
|
8056
|
-
"
|
|
8033
|
+
"37f23f02",
|
|
8057
8034
|
null,
|
|
8058
8035
|
null
|
|
8059
8036
|
);
|
|
@@ -8302,7 +8279,7 @@ const $p = {
|
|
|
8302
8279
|
this.commentMsg = e, this.visibleListMsg = !1;
|
|
8303
8280
|
},
|
|
8304
8281
|
getReturnNode() {
|
|
8305
|
-
this.param.request.get("/
|
|
8282
|
+
this.param.request.get("/aws/tis/getReturnableNodes", {
|
|
8306
8283
|
params: { taskId: this.param.taskInstId }
|
|
8307
8284
|
}).then((e) => {
|
|
8308
8285
|
e.code === 200 && (this.option = e.data);
|
|
@@ -8319,7 +8296,7 @@ const $p = {
|
|
|
8319
8296
|
return this.textTips = "\u8BF7\u8F93\u5165\u9000\u56DE\u7406\u7531!", this.$refs.topTips.handleOpen(), !1;
|
|
8320
8297
|
if (!this.nodeId)
|
|
8321
8298
|
return this.textTips = "\u8BF7\u9009\u62E9\u9000\u56DE\u8282\u70B9!", this.$refs.topTips.handleOpen(), !1;
|
|
8322
|
-
this.handleTips("", !0, "loading"), this.param.request.post("/
|
|
8299
|
+
this.handleTips("", !0, "loading"), this.param.request.post("/aws/tis/rollback", {
|
|
8323
8300
|
taskInstId: this.param.taskInstId,
|
|
8324
8301
|
rollbackReason: this.commentMsg,
|
|
8325
8302
|
isCompensation: !1,
|
|
@@ -8359,7 +8336,7 @@ const $p = {
|
|
|
8359
8336
|
});
|
|
8360
8337
|
let e = this.attchLists;
|
|
8361
8338
|
(await this.param.request.post(
|
|
8362
|
-
"/
|
|
8339
|
+
"/aws/meta/annex/patchSave",
|
|
8363
8340
|
{
|
|
8364
8341
|
saveMetaAnnexCmdList: e
|
|
8365
8342
|
}
|
|
@@ -8373,7 +8350,7 @@ const $p = {
|
|
|
8373
8350
|
this.textTips = e, this.statusTips = s, this.typeTips = t, this.$refs.topTips.handleOpen();
|
|
8374
8351
|
},
|
|
8375
8352
|
handleFinal() {
|
|
8376
|
-
this.param.endFunction && this.param.endFunction("\u9000\u56DE");
|
|
8353
|
+
this.param.endFunction && (window.top && window.top.postMessage("success", "*"), this.param.endFunction("\u9000\u56DE"));
|
|
8377
8354
|
}
|
|
8378
8355
|
}
|
|
8379
8356
|
}, ya = {};
|
|
@@ -8383,7 +8360,7 @@ var eu = /* @__PURE__ */ F(
|
|
|
8383
8360
|
Xp,
|
|
8384
8361
|
!1,
|
|
8385
8362
|
tu,
|
|
8386
|
-
"
|
|
8363
|
+
"62ab34fc",
|
|
8387
8364
|
null,
|
|
8388
8365
|
null
|
|
8389
8366
|
);
|
|
@@ -8486,7 +8463,7 @@ const nu = {
|
|
|
8486
8463
|
let e = "";
|
|
8487
8464
|
this.multiNodeParticipant[this.partObjId].map((s, t) => {
|
|
8488
8465
|
t == 0 ? e = s : e = `${e} ${s}`;
|
|
8489
|
-
}), await this.param.request.post("/
|
|
8466
|
+
}), await this.param.request.post("/aws/tis/createCCTask", {
|
|
8490
8467
|
processInstId: this.param.processInstId,
|
|
8491
8468
|
title: this.param.formData.title || this.param.formData.reason || this.param.formData.meetingTheme,
|
|
8492
8469
|
parentTaskInstId: this.param.taskInstId,
|
|
@@ -8522,7 +8499,7 @@ const nu = {
|
|
|
8522
8499
|
this.textTips = e, this.statusTips = s, this.typeTips = t, this.$refs.topTips.handleOpen();
|
|
8523
8500
|
},
|
|
8524
8501
|
handleFinal() {
|
|
8525
|
-
this.param.endFunction && this.param.endFunction("ccTask");
|
|
8502
|
+
this.param.endFunction && (window.top && window.top.postMessage("success", "*"), this.param.endFunction("ccTask"));
|
|
8526
8503
|
}
|
|
8527
8504
|
}
|
|
8528
8505
|
}, Ca = {};
|
|
@@ -8532,7 +8509,7 @@ var ru = /* @__PURE__ */ F(
|
|
|
8532
8509
|
au,
|
|
8533
8510
|
!1,
|
|
8534
8511
|
ou,
|
|
8535
|
-
|
|
8512
|
+
null,
|
|
8536
8513
|
null,
|
|
8537
8514
|
null
|
|
8538
8515
|
);
|
|
@@ -8625,6 +8602,10 @@ const cu = /* @__PURE__ */ function() {
|
|
|
8625
8602
|
ccTaskFunction: {
|
|
8626
8603
|
type: Function,
|
|
8627
8604
|
default: null
|
|
8605
|
+
},
|
|
8606
|
+
hideHeader: {
|
|
8607
|
+
type: Boolean,
|
|
8608
|
+
default: !1
|
|
8628
8609
|
}
|
|
8629
8610
|
},
|
|
8630
8611
|
data() {
|
|
@@ -8677,31 +8658,31 @@ const cu = /* @__PURE__ */ function() {
|
|
|
8677
8658
|
watch: {
|
|
8678
8659
|
processInstId: {
|
|
8679
8660
|
async handler(e, s) {
|
|
8680
|
-
this.processIntId = this.processInstId || this.formData.processId || this.formData.processInstId, e && (this.request.get("/
|
|
8661
|
+
this.processIntId = this.processInstId || this.formData.processId || this.formData.processInstId, e && (this.request.get("/aws/repository/getTrackUrl", {
|
|
8681
8662
|
params: {
|
|
8682
8663
|
processInstId: this.processIntId,
|
|
8683
8664
|
type: "mobile"
|
|
8684
8665
|
}
|
|
8685
8666
|
}).then((t) => {
|
|
8686
8667
|
t.code == 200 && (this.trackUrl = t.data);
|
|
8687
|
-
}), this.request.get("/
|
|
8668
|
+
}), this.request.get("/aws/pis/findNodeParticipantRows", {
|
|
8688
8669
|
params: {
|
|
8689
8670
|
processInstId: this.processIntId
|
|
8690
8671
|
}
|
|
8691
8672
|
}).then((t) => {
|
|
8692
8673
|
t.code == 200 && (this.trackList = t.data);
|
|
8693
|
-
}), this.request.get("/
|
|
8674
|
+
}), this.request.get("/aws/tis/getTaskCommentList", {
|
|
8694
8675
|
params: {
|
|
8695
8676
|
processInstId: this.processInstId,
|
|
8696
8677
|
processBusinessKey: this.formData.businessKey
|
|
8697
8678
|
}
|
|
8698
8679
|
}).then((t) => {
|
|
8699
8680
|
t.code == 200 && (this.taskCommentList = t.data);
|
|
8700
|
-
}), this.getUserInfo(), this.request.get("/
|
|
8681
|
+
}), this.getUserInfo(), this.request.get("/aws/pis/getProcessInstanceById", {
|
|
8701
8682
|
params: { processInstId: this.processInstId }
|
|
8702
8683
|
}).then((t) => {
|
|
8703
8684
|
t.code == 200 && (this.ProcessInsObj = t.data);
|
|
8704
|
-
}), await this.request.get("/
|
|
8685
|
+
}), await this.request.get("/aws/repository/queryTaskNodeList", {
|
|
8705
8686
|
params: { processInstId: this.processInstId }
|
|
8706
8687
|
}).then((t) => {
|
|
8707
8688
|
if (t.code == 200)
|
|
@@ -8793,7 +8774,7 @@ const cu = /* @__PURE__ */ function() {
|
|
|
8793
8774
|
}), s && !this.isView && this.taskObj.ccTaskButtonLabel) {
|
|
8794
8775
|
let a = {};
|
|
8795
8776
|
a.name = this.taskObj.ccTaskButtonLabel, a.btnProps = { type: "default" }, a.click = async (n) => {
|
|
8796
|
-
this.ccTaskFunction && !await this.ccTaskFunction()
|
|
8777
|
+
this.handleActionClose(), !(this.ccTaskFunction && !await this.ccTaskFunction()) && (this.showOperation(
|
|
8797
8778
|
cu,
|
|
8798
8779
|
n,
|
|
8799
8780
|
this.request,
|
|
@@ -8836,12 +8817,12 @@ const cu = /* @__PURE__ */ function() {
|
|
|
8836
8817
|
this.$refs.TopPopup2.handleOpen(), this.handleActionClose(), this.titleText = n, this.popupContext = `\u786E\u5B9A${n}\u5417?`, this.handleTipsType = "\u64A4\u9500";
|
|
8837
8818
|
}, e.push(a);
|
|
8838
8819
|
}
|
|
8839
|
-
return e;
|
|
8820
|
+
return console.log("btnList======", e), e;
|
|
8840
8821
|
},
|
|
8841
8822
|
processCardHeight() {
|
|
8842
8823
|
console.log("btnList", this.operBtn);
|
|
8843
8824
|
let e = this.topNum + this.bottomNum - 10;
|
|
8844
|
-
return this.isAdditional && !this.operBtn && !this.operBtn.length && !this.ProcessInsObj.end && (e -= this.bottomNum), `calc(100vh - ${e}px)`;
|
|
8825
|
+
return this.isAdditional && !this.operBtn && !this.operBtn.length && !this.ProcessInsObj.end && (e -= this.bottomNum), this.hideHeader && (e -= 204), `calc(100vh - ${e}px)`;
|
|
8845
8826
|
},
|
|
8846
8827
|
processBtn() {
|
|
8847
8828
|
if (console.log("btnList", this.operBtn), this.isAdditional && !this.operBtn && !this.operBtn.length && !this.ProcessInsObj.end)
|
|
@@ -8878,10 +8859,10 @@ const cu = /* @__PURE__ */ function() {
|
|
|
8878
8859
|
vars: e,
|
|
8879
8860
|
errorTip: !1
|
|
8880
8861
|
}, t = await this.request.post(
|
|
8881
|
-
"/
|
|
8862
|
+
"/aws/tis/simulation",
|
|
8882
8863
|
s
|
|
8883
8864
|
);
|
|
8884
|
-
if (t.success) {
|
|
8865
|
+
if (console.log(t), t.success) {
|
|
8885
8866
|
this.handleTips("", !1, "success"), this.nextNodeData = t.data;
|
|
8886
8867
|
for (let i = 0; i < this.nextNodeData.length; i++)
|
|
8887
8868
|
this.approveNode = this.nextNodeData[i];
|
|
@@ -8895,7 +8876,7 @@ const cu = /* @__PURE__ */ function() {
|
|
|
8895
8876
|
},
|
|
8896
8877
|
async getOutgoingProcessNode(e, s) {
|
|
8897
8878
|
let t = await this.request.get(
|
|
8898
|
-
"/
|
|
8879
|
+
"/aws/repository/getOutgoingProcessNode",
|
|
8899
8880
|
{
|
|
8900
8881
|
params: {
|
|
8901
8882
|
taskId: e,
|
|
@@ -8927,7 +8908,7 @@ const cu = /* @__PURE__ */ function() {
|
|
|
8927
8908
|
this.taskNode = [].concat(e), this.taskNodeShow = !1, this.actionShow = !1, this.handleGetProcessStatus(), this.handleGetUserTaskModel();
|
|
8928
8909
|
},
|
|
8929
8910
|
handleGetProcessStatus() {
|
|
8930
|
-
this.handleTips("", !0, "loading"), this.request.get("/
|
|
8911
|
+
this.handleTips("", !0, "loading"), this.request.get("/aws/pis/getProcessStatus", {
|
|
8931
8912
|
params: {
|
|
8932
8913
|
processInstId: this.processInstId,
|
|
8933
8914
|
taskId: this.taskNode.length ? this.taskNode[0].taskId : ""
|
|
@@ -8943,7 +8924,7 @@ const cu = /* @__PURE__ */ function() {
|
|
|
8943
8924
|
});
|
|
8944
8925
|
},
|
|
8945
8926
|
handleGetUserTaskModel() {
|
|
8946
|
-
this.taskNode && this.taskNode.length ? this.request.get("/
|
|
8927
|
+
this.taskNode && this.taskNode.length ? this.request.get("/aws/repository/getUserTaskModel", {
|
|
8947
8928
|
params: {
|
|
8948
8929
|
taskId: this.taskNode[0].taskId
|
|
8949
8930
|
}
|
|
@@ -8984,15 +8965,15 @@ const cu = /* @__PURE__ */ function() {
|
|
|
8984
8965
|
this.cctaskTopPopup = !1, this.operationParam.visible = !1;
|
|
8985
8966
|
},
|
|
8986
8967
|
handleTipsComfig() {
|
|
8987
|
-
this.$refs.TopPopup2.handleCancel(), this.handleTipsType == "\u50AC\u529E" && (this.handleTips("", !0, "loading"), this.request.get("/
|
|
8968
|
+
this.$refs.TopPopup2.handleCancel(), this.handleTipsType == "\u50AC\u529E" && (this.handleTips("", !0, "loading"), this.request.get("/aws/tis/reminders", {
|
|
8988
8969
|
params: { processInstId: this.processIntId }
|
|
8989
8970
|
}).then((e) => {
|
|
8990
|
-
e.code == 200 ? (this.handleTips("\u50AC\u529E\u6210\u529F", !0, "success"), this.endFunction("\u50AC\u529E")) : this.handleTips(e.msg, !0, "error");
|
|
8991
|
-
})), this.handleTipsType == "\u64A4\u9500" && (this.handleTips("", !0, "loading"), this.request.post("/
|
|
8971
|
+
e.code == 200 ? (this.handleTips("\u50AC\u529E\u6210\u529F", !0, "success"), window.top && window.top.postMessage("success", "*"), this.endFunction("\u50AC\u529E")) : this.handleTips(e.msg, !0, "error");
|
|
8972
|
+
})), this.handleTipsType == "\u64A4\u9500" && (this.handleTips("", !0, "loading"), this.request.post("/aws/pis/revoke", {
|
|
8992
8973
|
processInstId: this.ProcessInsObj.id,
|
|
8993
8974
|
processBusinessKey: this.ProcessInsObj.processBusinessKey
|
|
8994
8975
|
}).then((e) => {
|
|
8995
|
-
e.code == 200 ? (this.handleTips("\u64A4\u9500\u6210\u529F", !0, "success"), this.endFunction("\u64A4\u9500")) : (this.textTips = e.msg, this.typeTips = "error", this.handleTips(e.msg, !0, "error"));
|
|
8976
|
+
e.code == 200 ? (this.handleTips("\u64A4\u9500\u6210\u529F", !0, "success"), window.top && window.top.postMessage("success", "*"), this.endFunction("\u64A4\u9500")) : (this.textTips = e.msg, this.typeTips = "error", this.handleTips(e.msg, !0, "error"));
|
|
8996
8977
|
}));
|
|
8997
8978
|
},
|
|
8998
8979
|
handleTipsCancel() {
|
|
@@ -9022,17 +9003,17 @@ const cu = /* @__PURE__ */ function() {
|
|
|
9022
9003
|
}
|
|
9023
9004
|
},
|
|
9024
9005
|
async handleRestart() {
|
|
9025
|
-
this.handleTips("", !0, "loading"), await this.request.get("/
|
|
9006
|
+
this.handleTips("", !0, "loading"), await this.request.get("/aws/repository/getProcessDefList", {
|
|
9026
9007
|
params: {
|
|
9027
9008
|
appId: this.processStatus.appId
|
|
9028
9009
|
}
|
|
9029
9010
|
}).then((e) => {
|
|
9030
|
-
this.processDefList = e.data, this.request.get("/
|
|
9011
|
+
this.processDefList = e.data, this.request.get("/aws/pis/getProcessInstanceByBusinessKey", {
|
|
9031
9012
|
params: {
|
|
9032
9013
|
businessKey: this.formData.businessKey
|
|
9033
9014
|
}
|
|
9034
9015
|
}).then((s) => {
|
|
9035
|
-
this.processBusiness = s.data, this.request.get("/
|
|
9016
|
+
this.processBusiness = s.data, this.request.get("/aws/repository/getFirstProcessNode", {
|
|
9036
9017
|
params: {
|
|
9037
9018
|
processDefId: this.processBusiness.processDefId
|
|
9038
9019
|
}
|
|
@@ -9061,7 +9042,7 @@ var pu = function() {
|
|
|
9061
9042
|
var e = this, s = e.$createElement, t = e._self._c || s;
|
|
9062
9043
|
return t("div", [t("div", {
|
|
9063
9044
|
staticClass: "process-warp"
|
|
9064
|
-
}, [e.formData.currentState || e.processStatus.bizStatusName || e.processStatus.status ? t("div", {
|
|
9045
|
+
}, [(e.formData.currentState || e.processStatus.bizStatusName || e.processStatus.status) && !e.hideHeader ? t("div", {
|
|
9065
9046
|
ref: "processheader",
|
|
9066
9047
|
staticClass: "process-main",
|
|
9067
9048
|
attrs: {
|
|
@@ -9303,7 +9284,7 @@ var du = /* @__PURE__ */ F(
|
|
|
9303
9284
|
uu,
|
|
9304
9285
|
!1,
|
|
9305
9286
|
hu,
|
|
9306
|
-
"
|
|
9287
|
+
"041614d4",
|
|
9307
9288
|
null,
|
|
9308
9289
|
null
|
|
9309
9290
|
);
|