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

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.
@@ -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.3", yP = "> pc\u7AEF\u6D41\u7A0B\u7EC4\u4EF6", xP = "./ddy-process-pc-vue3.umd.cjs", wP = "./style.css", EP = "module", kP = {
19
+ const bP = "ddy-process-pc-vue3", _P = "1.0.1-rc.3.31", 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/addMultiInstance", param: e, type: "post" };
164
+ let i = { url: Ai + "/tis/addSignTask", param: e, type: "post" };
165
165
  return Ze(i);
166
166
  },
167
167
  reject(e, i) {
@@ -4805,10 +4805,10 @@ const Tj = {
4805
4805
  return Gv.warning("\u8BF7\u586B\u5199\u52A0\u7B7E\u539F\u56E0"), !1;
4806
4806
  if (this.reason.length > 200)
4807
4807
  return Gv.warning("\u52A0\u7B7E\u539F\u56E0\u4E0D\u80FD\u8D85\u8FC7200\u4E2A\u5B57"), !1;
4808
- let r = this.targetUser.join(",") || "";
4808
+ let r = this.targetUser || [];
4809
4809
  e && e(), i(), et.tis.addMultiInstance({
4810
4810
  taskId: this.param.taskInstId,
4811
- assignee: r,
4811
+ signPersoneds: r,
4812
4812
  comment: this.reason
4813
4813
  }).then((a) => {
4814
4814
  a.code == Et.success ? this.$emit("success") : this.$emit("fail", a.msg);
@@ -4822,7 +4822,7 @@ var Nj = /* @__PURE__ */ Bi(
4822
4822
  Oj,
4823
4823
  !1,
4824
4824
  Mj,
4825
- "72ff885e",
4825
+ "79bc4843",
4826
4826
  null,
4827
4827
  null
4828
4828
  );
@@ -11031,12 +11031,16 @@ var C$ = function() {
11031
11031
  attrs: {
11032
11032
  shadow: "never"
11033
11033
  }
11034
- }, [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) {
11034
+ }, [r("p", [r("span", {
11035
+ staticClass: "flow-name"
11036
+ }, [e._v(e._s(a.assigneeName))]), e._v(" \u5728 [" + e._s(a.createTime) + "] \u5F00\u59CB\u5904\u7406 "), r("span", {
11037
+ staticClass: "flow-node"
11038
+ }, [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
11039
  return c.action === "AddComment";
11036
11040
  }), function(c, p) {
11037
11041
  return r("p", {
11038
11042
  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) {
11043
+ }, [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
11044
  return m.action === "AddComment";
11041
11045
  }).length > 1 ? r("span", {
11042
11046
  staticStyle: {
@@ -11048,12 +11052,12 @@ var C$ = function() {
11048
11052
  }
11049
11053
  }, [e._v(" " + e._s(e.toggleText) + " "), r("i", {
11050
11054
  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", {
11055
+ }), 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
11056
  staticStyle: {
11053
11057
  color: "gray",
11054
11058
  "font-size": "12px"
11055
11059
  }
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", {
11060
+ }, [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
11061
  staticStyle: {
11058
11062
  color: "gray",
11059
11063
  "font-size": "12px"
@@ -11154,7 +11158,7 @@ var I$ = /* @__PURE__ */ Bi(
11154
11158
  S$,
11155
11159
  !1,
11156
11160
  B$,
11157
- null,
11161
+ "c5f2f37a",
11158
11162
  null,
11159
11163
  null
11160
11164
  );
@@ -21942,7 +21946,7 @@ function xV(e) {
21942
21946
  "YYYY-MM-DD HH:mm"
21943
21947
  )}</span><br>`), m && m.length > 0) {
21944
21948
  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>`);
21949
+ 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
21950
  }
21947
21951
  g.tooltip = y;
21948
21952
  }
@@ -22086,7 +22090,7 @@ var CV = /* @__PURE__ */ Bi(
22086
22090
  EV,
22087
22091
  !1,
22088
22092
  SV,
22089
- "ee16a17a",
22093
+ "55039cbe",
22090
22094
  null,
22091
22095
  null
22092
22096
  );
@@ -22214,7 +22218,7 @@ var DV = function() {
22214
22218
  style: {
22215
22219
  width: e.mainWidth + "px"
22216
22220
  }
22217
- }, [(e.processData.process.status == "todo" || e.customBtns.length > 0) && e.absoluteBtns.outside.length > 0 ? [e.absoluteBtns.inside.length > 0 ? r("el-dropdown", {
22221
+ }, [(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
22222
  attrs: {
22219
22223
  placement: "top-start",
22220
22224
  trigger: "click"
@@ -22790,11 +22794,12 @@ const BV = {
22790
22794
  },
22791
22795
  methods: {
22792
22796
  formatFlow(e) {
22793
- return (e || []).map((r) => ({
22797
+ let i = (e || []).map((r) => ({
22794
22798
  ...r,
22795
22799
  attachmentsFujian: (r.attachments || []).filter((a) => a.type != "signature"),
22796
22800
  attachmentsQianzi: (r.attachments || []).filter((a) => a.type == "signature")
22797
22801
  }));
22802
+ return i = i.reverse(), i;
22798
22803
  },
22799
22804
  cancelHandlerFn() {
22800
22805
  this.dialogVisibleOperation = !1, this.submitLoading = !1;
@@ -23127,7 +23132,7 @@ const BV = {
23127
23132
  const i = this.processData.process;
23128
23133
  if (!i)
23129
23134
  return e;
23130
- if (i.status == "todo" && i.isMultiInstance && this.getButton("wf_add_instance")) {
23135
+ if (i.status == "todo" && this.getButton("wf_add_instance")) {
23131
23136
  let a = {};
23132
23137
  a.name = this.getButton("wf_add_instance").name, a.btnProps = { type: "primary" }, a.key = "sign", a.click = () => {
23133
23138
  this.handleUserSelect({
@@ -23169,7 +23174,7 @@ const BV = {
23169
23174
  this.handleCirculate(this.getButton("wf_cctask").name);
23170
23175
  }, e.push(a);
23171
23176
  }
23172
- if (i.pass == !1 && i.isOwner) {
23177
+ if (i.isReturnable && i.isOwner) {
23173
23178
  let a = {};
23174
23179
  a.name = "\u50AC\u529E", a.key = "self", a.click = () => {
23175
23180
  this.handleReminders();
@@ -23287,7 +23292,7 @@ var OV = /* @__PURE__ */ Bi(
23287
23292
  IV,
23288
23293
  !1,
23289
23294
  TV,
23290
- "47fc9541",
23295
+ "97f9ea72",
23291
23296
  null,
23292
23297
  null
23293
23298
  );