ddy-process-pc-vue3 1.0.1-rc.2.31 → 1.0.1-rc.2.35

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.
@@ -3894,57 +3894,58 @@ const nR = {
3894
3894
  businessData: this.param.businessData,
3895
3895
  attachment: this.param.attachment
3896
3896
  };
3897
- for (let r in this.userTaskListData) {
3898
- let l = this.userTaskListData[r];
3899
- this.$refs[l];
3900
- let a = this.$refs[l].$el ? this.$refs[l] : this.$refs[l][0];
3901
- a.getValue;
3902
- let s = a.getValue();
3903
- if (s && s.vars && this.param.incomingConditionItemList && this.param.incomingConditionItemList.length > 0 && this.param.incomingConditionItemList.forEach((p) => {
3904
- s.vars[p.itemName] || (s.vars[p.itemName] = "");
3905
- }), !s)
3897
+ for (let c in this.userTaskListData) {
3898
+ let u = this.userTaskListData[c];
3899
+ this.$refs[u];
3900
+ let p = this.$refs[u].$el ? this.$refs[u] : this.$refs[u][0];
3901
+ p.getValue;
3902
+ let d = p.getValue();
3903
+ if (d && d.vars && this.param.incomingConditionItemList && this.param.incomingConditionItemList.length > 0 && this.param.incomingConditionItemList.forEach((g) => {
3904
+ d.vars[g.itemName] || (d.vars[g.itemName] = "");
3905
+ }), !d)
3906
3906
  return !1;
3907
- let c = [];
3908
- const u = this.param.nextTaskNode;
3909
- u.setPersonnel ? c = u.assignees || [] : c = (a.targetUserList || []).map((p) => ({
3910
- id: p.id,
3911
- name: p.name
3912
- })), n.assignees = c, n.multiNodeParticipant = {
3907
+ let v = [];
3908
+ const f = this.param.nextTaskNode;
3909
+ f.setPersonnel ? v = f.assignees || [] : v = (p.targetUserList || []).map((g) => ({
3910
+ id: g.id,
3911
+ name: g.name
3912
+ })), n.assignees = v, n.multiNodeParticipant = {
3913
3913
  ...n.multiNodeParticipant,
3914
- ...s.multiNodeParticipant
3915
- }, n.vars = { ...n.vars, ...s.vars };
3914
+ ...d.multiNodeParticipant
3915
+ }, n.vars = { ...n.vars, ...d.vars };
3916
3916
  }
3917
- if (this.param.nextTaskNode && this.param.nextTaskNode.nodeType != "endEvent") {
3917
+ let r = this.param.nextTaskNode && this.param.nextTaskNode.nodeType != "endEvent", l = this.param.nextTaskNode && 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.branches && this.param.nextTaskNode.branches.length == 1 && this.param.nextTaskNode.branches[0].nodeType != "endEvent";
3918
+ if (r && l && a) {
3918
3919
  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)
3919
3920
  n.multiNodeParticipant = {
3920
3921
  ...n.multiNodeParticipant,
3921
- [this.param.nextTaskNode.branches[0].nodeInfoDTO.id]: this.param.nextTaskNode.branches[0].nodeInfoDTO.assignees.map((r) => r.id)
3922
+ [this.param.nextTaskNode.branches[0].nodeInfoDTO.id]: this.param.nextTaskNode.branches[0].nodeInfoDTO.assignees.map((c) => c.id)
3922
3923
  };
3923
3924
  else if (!Object.keys(n.multiNodeParticipant).length)
3924
3925
  return _i.warning("\u8BF7\u9009\u62E9\u4E0B\u4E00\u8282\u70B9"), !1;
3925
3926
  }
3926
3927
  if (n.pass = !0, Date.now() && this.param, this.param.getVars) {
3927
- let r = this.param.getVars();
3928
- if (r === !1)
3928
+ let c = this.param.getVars();
3929
+ if (c === !1)
3929
3930
  return !1;
3930
- n.vars = { ...n.vars, ...r };
3931
+ n.vars = { ...n.vars, ...c };
3931
3932
  }
3932
3933
  if (this.signRequired, this.signRequired) {
3933
3934
  this.confirmPreposition = e, this.confirmLoading = t, this.signVisible = !0;
3934
3935
  return;
3935
3936
  }
3936
- t(), e ? e().then((r) => {
3937
- _t.tis.complete(n).then((l) => {
3938
- l.code == Wt.success ? (r && r(), this.$emit("success")) : this.$emit("fail", l.msg);
3937
+ t(), e ? e().then((c) => {
3938
+ _t.tis.complete(n).then((u) => {
3939
+ u.code == Wt.success ? (c && c(), this.$emit("success")) : this.$emit("fail", u.msg);
3939
3940
  }).catch(() => {
3940
3941
  this.$emit("fail", "");
3941
3942
  });
3942
3943
  }).catch(() => {
3943
3944
  this.$emit("fail", "");
3944
- }) : _t.tis.complete(n).then((r) => {
3945
- r.code == Wt.success ? this.$emit("success") : this.$emit("fail", r.msg);
3946
- }).catch((r) => {
3947
- this.$emit("fail", r.response ? r.response.data ? r.response.data.msg || r.response.data.message : "" : r.message || r.msg || "");
3945
+ }) : _t.tis.complete(n).then((c) => {
3946
+ c.code == Wt.success ? this.$emit("success") : this.$emit("fail", c.msg);
3947
+ }).catch((c) => {
3948
+ this.$emit("fail", c.response ? c.response.data ? c.response.data.msg || c.response.data.message : "" : c.message || c.msg || "");
3948
3949
  });
3949
3950
  },
3950
3951
  confirmWithSign() {
@@ -4154,7 +4155,7 @@ function aR(e, t, o, n, r, l) {
4154
4155
  ref: l.setItemRef(h.id)
4155
4156
  }, null, 8, ["personType", "personEntity", "processNode"]))), 128)) : o.param.nextTaskNode.nodeType == "exclusiveGateway" && o.param.nextTaskNode.branches && o.param.nextTaskNode.branches.length == 1 ? (x(), L(we, { key: 3 }, [
4156
4157
  o.param.nextTaskNode.nodeType != "endEvent" ? (x(), L(we, { key: 0 }, [
4157
- o.param.nextTaskNode.branches[0].nodeInfoDTO ? (x(), ne(d, {
4158
+ o.param.nextTaskNode.branches[0].nodeInfoDTO && o.param.nextTaskNode.branches[0].nodeInfoDTO.nodeType != "endEvent" ? (x(), ne(d, {
4158
4159
  key: o.param.nextTaskNode.branches[0].nodeInfoDTO.id,
4159
4160
  personType: o.param.nextTaskNode.branches[0].nodeInfoDTO.personType || "",
4160
4161
  personEntity: {},
@@ -4165,7 +4166,7 @@ function aR(e, t, o, n, r, l) {
4165
4166
  lv1label: "\u4E0B\u4E00\u8282\u70B9\u540D\u79F0",
4166
4167
  ref: l.setItemRef(o.param.nextTaskNode.branches[0].nodeInfoDTO.id),
4167
4168
  rules: [{ required: !0, message: "\u8BF7\u9009\u62E9\u5904\u7406\u4EBA" }]
4168
- }, null, 8, ["personType", "process-node"])) : (x(), ne(d, {
4169
+ }, null, 8, ["personType", "process-node"])) : !o.param.nextTaskNode.branches[0].nodeInfoDTO && o.param.nextTaskNode.branches[0].nodeType != "endEvent" ? (x(), ne(d, {
4169
4170
  key: o.param.nextTaskNode.branches[0].id,
4170
4171
  personType: o.param.nextTaskNode.branches[0].personType || "",
4171
4172
  personEntity: {},
@@ -4176,16 +4177,25 @@ function aR(e, t, o, n, r, l) {
4176
4177
  lv1label: "\u4E0B\u4E00\u8282\u70B9\u540D\u79F0",
4177
4178
  ref: l.setItemRef(o.param.nextTaskNode.branches[0].id),
4178
4179
  rules: [{ required: !0, message: "\u8BF7\u9009\u62E9\u5904\u7406\u4EBA" }]
4179
- }, null, 8, ["personType", "process-node"]))
4180
+ }, null, 8, ["personType", "process-node"])) : (x(), ne(c, {
4181
+ key: 2,
4182
+ label: "\u4E0B\u4E00\u8282\u70B9\u540D\u79F0"
4183
+ }, {
4184
+ default: U(() => t[11] || (t[11] = [
4185
+ j("b", { style: { "font-size": "16px" } }, "\u7ED3\u675F\u4E8B\u4EF6", -1)
4186
+ ])),
4187
+ _: 1,
4188
+ __: [11]
4189
+ }))
4180
4190
  ], 64)) : (x(), ne(c, {
4181
4191
  key: 1,
4182
4192
  label: "\u4E0B\u4E00\u8282\u70B9\u540D\u79F0"
4183
4193
  }, {
4184
- default: U(() => t[11] || (t[11] = [
4194
+ default: U(() => t[12] || (t[12] = [
4185
4195
  j("b", { style: { "font-size": "16px" } }, "\u7ED3\u675F\u4E8B\u4EF6", -1)
4186
4196
  ])),
4187
4197
  _: 1,
4188
- __: [11]
4198
+ __: [12]
4189
4199
  }))
4190
4200
  ], 64)) : o.param.nextTaskNode.nodeType == "exclusiveGateway" && o.param.nextTaskNode.branches && o.param.nextTaskNode.branches.length > 1 ? (x(), L(we, { key: 4 }, [
4191
4201
  o.param.nextTaskNode.nodeType != "endEvent" ? (x(), ne(d, {
@@ -4203,11 +4213,11 @@ function aR(e, t, o, n, r, l) {
4203
4213
  key: 1,
4204
4214
  label: "\u4E0B\u4E00\u8282\u70B9\u540D\u79F0"
4205
4215
  }, {
4206
- default: U(() => t[12] || (t[12] = [
4216
+ default: U(() => t[13] || (t[13] = [
4207
4217
  j("b", { style: { "font-size": "16px" } }, "\u7ED3\u675F\u4E8B\u4EF6", -1)
4208
4218
  ])),
4209
4219
  _: 1,
4210
- __: [12]
4220
+ __: [13]
4211
4221
  }))
4212
4222
  ], 64)) : o.param.nextTaskNode.nodeType == "parallelGateway" ? (x(!0), L(we, { key: 5 }, Ge(o.param.nextTaskNode.branches, (h) => (x(), ne(d, {
4213
4223
  key: h.id,
@@ -4250,7 +4260,7 @@ function aR(e, t, o, n, r, l) {
4250
4260
  _: 3
4251
4261
  });
4252
4262
  }
4253
- const gh = /* @__PURE__ */ Ro(nR, [["render", aR], ["__scopeId", "data-v-2f5eddf9"]]);
4263
+ const gh = /* @__PURE__ */ Ro(nR, [["render", aR], ["__scopeId", "data-v-3aa970bc"]]);
4254
4264
  var $1 = null;
4255
4265
  Promise.resolve().then(() => kr).then(({ ElMessage: e }) => {
4256
4266
  $1 = e;
@@ -58705,10 +58715,10 @@ const eae = {
58705
58715
  if (e.code == 200) {
58706
58716
  const t = {};
58707
58717
  if (t.currentProcessOriginData = e.data || [], t.currentProcessOriginData.length > 0) {
58708
- let o = t.currentProcessOriginData[0], n = (o.currentName || "").split(",");
58709
- n = n.map((r) => ({
58710
- realName: r,
58711
- avatar: "",
58718
+ let o = t.currentProcessOriginData[0], n = (o.currentName || "").split(","), r = (o.avatar || "").split(",");
58719
+ n = n.map((l, a) => ({
58720
+ realName: l,
58721
+ avatar: r[a] || "",
58712
58722
  phone: "",
58713
58723
  ancestorNames: []
58714
58724
  })), t.currentMan = n, t.currentFirstNode = o, this.currentProcess = t;
@@ -59548,7 +59558,7 @@ function cae(e, t, o, n, r, l) {
59548
59558
  [k, r.boxLoading && !o.isButton]
59549
59559
  ]);
59550
59560
  }
59551
- const uae = /* @__PURE__ */ Ro(eae, [["render", cae], ["__scopeId", "data-v-64fb3965"]]), dae = async (e, t) => {
59561
+ const uae = /* @__PURE__ */ Ro(eae, [["render", cae], ["__scopeId", "data-v-e1fc5e8a"]]), dae = async (e, t) => {
59552
59562
  const o = t || {}, n = o.dragElement || (o.targetClassName ? sO(e, o.targetClassName) : e.querySelector(".el-dialog"));
59553
59563
  let r;
59554
59564
  new IntersectionObserver((y) => {