ddy-process-pc-vue3 1.0.1-rc.3.3 → 1.0.1-rc.3.33

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ddy-process-pc-vue3",
3
- "version": "1.0.1-rc.3.3",
3
+ "version": "1.0.1-rc.3.33",
4
4
  "description": "> pc端流程组件",
5
5
  "main": "./ddy-process-pc-vue3.umd.cjs",
6
6
  "style": "./style.css",
@@ -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.3", aR = "> pc\u7AEF\u6D41\u7A0B\u7EC4\u4EF6", oR = "./ddy-process-pc-vue3.umd.cjs", sR = "./style.css", lR = "module", cR = {
19
+ const nR = "ddy-process-pc-vue3", rR = "1.0.1-rc.3.33", 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/addMultiInstance", param: e, type: "post" };
164
+ let i = { url: pi + "/tis/addSignTask", param: e, type: "post" };
165
165
  return Ze(i);
166
166
  },
167
167
  reject(e, i) {
@@ -5549,10 +5549,10 @@ const WL = {
5549
5549
  return rb.warning("\u8BF7\u586B\u5199\u52A0\u7B7E\u539F\u56E0"), !1;
5550
5550
  if (this.reason.length > 200)
5551
5551
  return rb.warning("\u52A0\u7B7E\u539F\u56E0\u4E0D\u80FD\u8D85\u8FC7200\u4E2A\u5B57"), !1;
5552
- let r = this.targetUser.join(",") || "";
5552
+ let r = this.targetUser || [];
5553
5553
  e && e(), i(), et.tis.addMultiInstance({
5554
5554
  taskId: this.param.taskInstId,
5555
- assignee: r,
5555
+ signPersoneds: r,
5556
5556
  comment: this.reason
5557
5557
  }).then((a) => {
5558
5558
  a.code == wt.success ? this.$emit("success") : this.$emit("fail", a.msg);
@@ -5566,7 +5566,7 @@ var GL = /* @__PURE__ */ Di(
5566
5566
  VL,
5567
5567
  !1,
5568
5568
  JL,
5569
- "72ff885e",
5569
+ "79bc4843",
5570
5570
  null,
5571
5571
  null
5572
5572
  );
@@ -6533,7 +6533,7 @@ var vQ = function() {
6533
6533
  return e.$refs.commIdea.addIdea(e.commentMsg);
6534
6534
  }
6535
6535
  }
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", {
6536
+ }, [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
6537
  attrs: {
6538
6538
  label: "\u4E0B\u4E00\u8282\u70B9",
6539
6539
  size: "normal"
@@ -6542,7 +6542,7 @@ var vQ = function() {
6542
6542
  staticStyle: {
6543
6543
  "font-size": "16px"
6544
6544
  }
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", {
6545
+ }, [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
6546
  key: e.param.nextTaskNode.id,
6547
6547
  ref: e.setItemRef(e.param.nextTaskNode.id),
6548
6548
  attrs: {
@@ -6908,7 +6908,7 @@ var yQ = /* @__PURE__ */ Di(
6908
6908
  bQ,
6909
6909
  !1,
6910
6910
  xQ,
6911
- "6a329a02",
6911
+ "10621162",
6912
6912
  null,
6913
6913
  null
6914
6914
  );
@@ -11775,12 +11775,16 @@ var z7 = function() {
11775
11775
  attrs: {
11776
11776
  shadow: "never"
11777
11777
  }
11778
- }, [r("p", [e._v(" " + e._s(a.assigneeName) + " \u5728 [" + e._s(a.createTime) + "] \u5F00\u59CB\u5904\u7406 [" + e._s(a.historyActivityType == "endEvent" ? "\u7ED3\u675F" : a.historyActivityName || "\u672A\u547D\u540D") + "] \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) {
11778
+ }, [r("p", [r("span", {
11779
+ staticClass: "flow-name"
11780
+ }, [e._v(e._s(a.assigneeName))]), e._v(" \u5728 [" + e._s(a.createTime) + "] \u5F00\u59CB\u5904\u7406 "), r("span", {
11781
+ staticClass: "flow-node"
11782
+ }, [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
11783
  return c.action === "AddComment";
11780
11784
  }), function(c, p) {
11781
11785
  return r("p", {
11782
11786
  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) {
11787
+ }, [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
11788
  return m.action === "AddComment";
11785
11789
  }).length > 1 ? r("span", {
11786
11790
  staticStyle: {
@@ -11792,12 +11796,12 @@ var z7 = function() {
11792
11796
  }
11793
11797
  }, [e._v(" " + e._s(e.toggleText) + " "), r("i", {
11794
11798
  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", {
11799
+ }), 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
11800
  staticStyle: {
11797
11801
  color: "gray",
11798
11802
  "font-size": "12px"
11799
11803
  }
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", {
11804
+ }, [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
11805
  staticStyle: {
11802
11806
  color: "gray",
11803
11807
  "font-size": "12px"
@@ -11898,7 +11902,7 @@ var U7 = /* @__PURE__ */ Di(
11898
11902
  $7,
11899
11903
  !1,
11900
11904
  Y7,
11901
- null,
11905
+ "c5f2f37a",
11902
11906
  null,
11903
11907
  null
11904
11908
  );
@@ -22686,7 +22690,7 @@ function RW(e) {
22686
22690
  "YYYY-MM-DD HH:mm"
22687
22691
  )}</span><br>`), m && m.length > 0) {
22688
22692
  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>`);
22693
+ 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
22694
  }
22691
22695
  g.tooltip = y;
22692
22696
  }
@@ -22830,7 +22834,7 @@ var zW = /* @__PURE__ */ Di(
22830
22834
  LW,
22831
22835
  !1,
22832
22836
  $W,
22833
- "ee16a17a",
22837
+ "55039cbe",
22834
22838
  null,
22835
22839
  null
22836
22840
  );
@@ -22958,7 +22962,7 @@ var HW = function() {
22958
22962
  style: {
22959
22963
  width: e.mainWidth + "px"
22960
22964
  }
22961
- }, [(e.processData.process.status == "todo" || e.customBtns.length > 0) && e.absoluteBtns.outside.length > 0 ? [e.absoluteBtns.inside.length > 0 ? r("el-dropdown", {
22965
+ }, [(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
22966
  attrs: {
22963
22967
  placement: "top-start",
22964
22968
  trigger: "click"
@@ -23534,11 +23538,12 @@ const YW = {
23534
23538
  },
23535
23539
  methods: {
23536
23540
  formatFlow(e) {
23537
- return (e || []).map((r) => ({
23541
+ let i = (e || []).map((r) => ({
23538
23542
  ...r,
23539
23543
  attachmentsFujian: (r.attachments || []).filter((a) => a.type != "signature"),
23540
23544
  attachmentsQianzi: (r.attachments || []).filter((a) => a.type == "signature")
23541
23545
  }));
23546
+ return i = i.reverse(), i;
23542
23547
  },
23543
23548
  cancelHandlerFn() {
23544
23549
  this.dialogVisibleOperation = !1, this.submitLoading = !1;
@@ -23584,7 +23589,7 @@ const YW = {
23584
23589
  const i = ((this.processData.process || {}).variables || {}).deptId;
23585
23590
  this.deptId = i;
23586
23591
  const r = (this.processData.process || {}).taskId;
23587
- this.taskObj.buttons = this.processData.button, this.absoluteTaskId = r, this.straightenBtns(), this.$nextTick(() => {
23592
+ this.taskObj.buttons = this.processData.button, this.absoluteTaskId = r, this.ProcessInsObj = this.processData.process, this.straightenBtns(), this.$nextTick(() => {
23588
23593
  this.calculateHeight();
23589
23594
  }), this.processData.flow, this.flowChartVisible = !0, this.submitLoading = !1, this.boxLoading = !1;
23590
23595
  }
@@ -23714,6 +23719,8 @@ const YW = {
23714
23719
  });
23715
23720
  },
23716
23721
  async getNextNode(e) {
23722
+ if (this.ProcessInsObj && this.ProcessInsObj.taskParentId)
23723
+ return !0;
23717
23724
  let i;
23718
23725
  try {
23719
23726
  i = await et.tis.simulation(
@@ -23727,6 +23734,9 @@ const YW = {
23727
23734
  i.code == 200 && !i.data.evaluation && (this.incomingConditionItemList = [], r.branches = await this.getOutgoingProcessNode(
23728
23735
  this.absoluteTaskId,
23729
23736
  i.data.id
23737
+ )), 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(
23738
+ this.absoluteTaskId,
23739
+ i.data.branches[0].id
23730
23740
  )), r = await this.getSelectFixData(r, e), this.nextTaskNode = r;
23731
23741
  },
23732
23742
  async getNodeUser({ deptId: e, intersection: i, userIds: r, postIds: a, deptIds: s }) {
@@ -23871,7 +23881,7 @@ const YW = {
23871
23881
  const i = this.processData.process;
23872
23882
  if (!i)
23873
23883
  return e;
23874
- if (i.status == "todo" && i.isMultiInstance && this.getButton("wf_add_instance")) {
23884
+ if (i.status == "todo" && this.getButton("wf_add_instance")) {
23875
23885
  let a = {};
23876
23886
  a.name = this.getButton("wf_add_instance").name, a.btnProps = { type: "primary" }, a.key = "sign", a.click = () => {
23877
23887
  this.handleUserSelect({
@@ -23913,7 +23923,7 @@ const YW = {
23913
23923
  this.handleCirculate(this.getButton("wf_cctask").name);
23914
23924
  }, e.push(a);
23915
23925
  }
23916
- if (i.pass == !1 && i.isOwner) {
23926
+ if (i.isReturnable && i.isOwner) {
23917
23927
  let a = {};
23918
23928
  a.name = "\u50AC\u529E", a.key = "self", a.click = () => {
23919
23929
  this.handleReminders();
@@ -24031,7 +24041,7 @@ var VW = /* @__PURE__ */ Di(
24031
24041
  UW,
24032
24042
  !1,
24033
24043
  WW,
24034
- "47fc9541",
24044
+ "73b198a4",
24035
24045
  null,
24036
24046
  null
24037
24047
  );