ddy-process-pc-vue3 1.0.1-rc.3.130 → 1.0.1-rc.3.159

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.130",
3
+ "version": "1.0.1-rc.3.159",
4
4
  "description": "> pc端流程组件",
5
5
  "main": "./ddy-process-pc-vue3.umd.cjs",
6
6
  "style": "./style.css",
@@ -16,7 +16,7 @@ function oN(e, i) {
16
16
  }
17
17
  return Object.freeze(Object.defineProperty(e, Symbol.toStringTag, { value: "Module" }));
18
18
  }
19
- const sN = "ddy-process-pc-vue3", lN = "1.0.1-rc.3.130", cN = "> pc\u7AEF\u6D41\u7A0B\u7EC4\u4EF6", uN = "./ddy-process-pc-vue3.umd.cjs", dN = "./style.css", fN = "module", pN = {
19
+ const sN = "ddy-process-pc-vue3", lN = "1.0.1-rc.3.159", cN = "> pc\u7AEF\u6D41\u7A0B\u7EC4\u4EF6", uN = "./ddy-process-pc-vue3.umd.cjs", dN = "./style.css", fN = "module", pN = {
20
20
  ".": {
21
21
  import: "./ddy-process-pc-vue3.js",
22
22
  require: "./ddy-process-pc-vue3.umd.cjs"
@@ -6043,7 +6043,9 @@ var uR = function() {
6043
6043
  label: e.label || "\u5904\u7406\u4EBA",
6044
6044
  rules: e.rules || {}
6045
6045
  }
6046
- }, [e.processNodeObj.userList && e.processNodeObj.userList.length >= 2 ? n("el-select", {
6046
+ }, [e.processNodeObj.flowName ? n("div", {
6047
+ staticClass: "setVal"
6048
+ }, [e._v(" " + e._s(e.processNodeObj.flowName) + " ")]) : e.processNodeObj.userList && e.processNodeObj.userList.length >= 2 ? n("el-select", {
6047
6049
  attrs: {
6048
6050
  filterable: "",
6049
6051
  multiple: e.processNodeObj.loopCardinality == -1,
@@ -6234,6 +6236,8 @@ const fR = {
6234
6236
  else if (!this.processNodeObj.assignee || !Array.isArray(this.processNodeObj.assignee) || !this.processNodeObj.setPersonnel || this.isOption(this.processNodeObj.humanPerformerName) || this.processNodeObj.nodeInfoDTO && (!this.processNodeObj.nodeInfoDTO.assignee || !Array.isArray(this.processNodeObj.nodeInfoDTO.assignee) || !this.processNodeObj.nodeInfoDTO.setPersonnel || this.isOption(this.processNodeObj.nodeInfoDTO.humanPerformerName))) {
6235
6237
  if (this.targetUserId && this.targetUserId.length > 0)
6236
6238
  i.multiNodeParticipant = {}, i.multiNodeParticipant[this.processNode.nodeInfoDTO ? this.processNodeObj.nodeInfoDTO.id : this.processNodeObj.id] = Array.isArray(this.targetUserId) ? this.targetUserId : [this.targetUserId];
6239
+ else if (this.processNodeObj.flowName)
6240
+ i.multiNodeParticipant || (i.multiNodeParticipant = {}), i.multiNodeParticipant[this.processNodeObj.id] = this.processNodeObj.flowIds || [];
6237
6241
  else if (this.processNodeObj.REQUIRED !== !1 || this.processNodeObj.nodeInfoDTO && this.processNodeObj.nodeInfoDTO.REQUIRED !== !1)
6238
6242
  return this.processNodeObj.nodeInfoDTO ? this.processNodeObj.nodeInfoDTO.name && al.warning(`\u8BF7\u9009\u62E9 ${this.processNodeObj.nodeInfoDTO.name} \u5904\u7406\u4EBA`) : this.processNodeObj.name && al.warning(`\u8BF7\u9009\u62E9 ${this.processNodeObj.name} \u5904\u7406\u4EBA`), !1;
6239
6243
  } else
@@ -11876,7 +11880,7 @@ function V$(e) {
11876
11880
  }
11877
11881
  a.historyActivityType == "sequenceFlow" ? g.class = "lineWarn" : !g.class && a.historyActivityType != "candidate" && (g.class = "nodeSuccess");
11878
11882
  const B = n.findIndex((w) => w.id == a.historyActivityId);
11879
- B != -1 ? n.splice(B, 1, g) : n.push(g);
11883
+ B != -1 ? n.splice(B, 1, g) : a.createTime && n.push(g);
11880
11884
  }), n;
11881
11885
  }
11882
11886
  function k2(e) {
@@ -23702,7 +23706,13 @@ var rG = function() {
23702
23706
  prop: "assigneeName",
23703
23707
  label: "\u5BA1\u6279\u4EBA",
23704
23708
  "min-width": "80"
23705
- }
23709
+ },
23710
+ scopedSlots: e._u([{
23711
+ key: "default",
23712
+ fn: function(a) {
23713
+ return [e._v(" " + e._s(a.row.createTime ? a.row.assigneeName : "") + " ")];
23714
+ }
23715
+ }])
23706
23716
  })], 1)], 1)], 1)], 2);
23707
23717
  }, aG = [];
23708
23718
  const oG = {
@@ -24191,6 +24201,53 @@ const oG = {
24191
24201
  }
24192
24202
  });
24193
24203
  },
24204
+ getItemV(e) {
24205
+ let i = e;
24206
+ if (i.nodeType == "userTask") {
24207
+ const n = (i.routeTxt || []).find((a) => a.type == "custom");
24208
+ if (n) {
24209
+ let a = "", s = [];
24210
+ (n.ids || []).includes("currentUser") ? (a = localStorage.getItem("realName") || n.name, s = [localStorage.getItem("userId")]) : (n.ids || []).includes("applyUser") && (a = this.ProcessInsObj.variables.applyUserName || n.name, s = [this.ProcessInsObj.variables.applyUserId]), i = {
24211
+ ...i,
24212
+ flowType: "custom",
24213
+ flowName: a,
24214
+ flowIds: s
24215
+ };
24216
+ } else
24217
+ i = {
24218
+ ...i,
24219
+ flowType: "",
24220
+ flowName: "",
24221
+ flowIds: ""
24222
+ };
24223
+ } else
24224
+ i.branches = (i.branches || []).map((n) => {
24225
+ let a = n.nodeInfoDTO ? n.nodeInfoDTO : n;
24226
+ const s = (a.routeTxt || []).find((c) => c.type == "custom");
24227
+ if (s) {
24228
+ let c = "", p = [];
24229
+ (s.ids || []).includes("currentUser") ? (c = localStorage.getItem("realName") || s.name, p = [localStorage.getItem("userId")]) : (s.ids || []).includes("applyUser") && (c = this.ProcessInsObj.variables.applyUserName || s.name, p = [this.ProcessInsObj.variables.applyUserId]), a = {
24230
+ ...a,
24231
+ flowType: "custom",
24232
+ flowName: c,
24233
+ flowIds: p
24234
+ };
24235
+ } else
24236
+ a = {
24237
+ ...a,
24238
+ flowType: "",
24239
+ flowName: "",
24240
+ flowIds: ""
24241
+ };
24242
+ return n.nodeInfoDTO ? {
24243
+ ...n,
24244
+ nodeInfoDTO: a
24245
+ } : {
24246
+ ...n
24247
+ };
24248
+ });
24249
+ return i;
24250
+ },
24194
24251
  async getNextNode(e) {
24195
24252
  if (this.ProcessInsObj && this.ProcessInsObj.taskParentId)
24196
24253
  return !0;
@@ -24200,11 +24257,11 @@ const oG = {
24200
24257
  this.absoluteTaskId,
24201
24258
  this.processId
24202
24259
  );
24203
- } catch (a) {
24204
- console.error(a), i = {};
24260
+ } catch (s) {
24261
+ console.error(s), i = {};
24205
24262
  }
24206
24263
  let n = i.data || {};
24207
- i.code == 200 && !i.data.evaluation && (this.incomingConditionItemList = [], n.branches = await this.getOutgoingProcessNode(
24264
+ (n.nodeInfoDTO ? n.nodeInfoDTO : n).nodeType == "userTask" && (n = this.getItemV(n)), i.code == 200 && !i.data.evaluation && (this.incomingConditionItemList = [], n.branches = await this.getOutgoingProcessNode(
24208
24265
  this.absoluteTaskId,
24209
24266
  i.data.id
24210
24267
  )), i.code == 200 && i.data.evaluation && i.data.branches && i.data.branches.length > 0 && i.data.branches[0].nodeType != "userTask" && (this.incomingConditionItemList = [], n.branches = await this.getOutgoingProcessNode(
@@ -24298,7 +24355,7 @@ const oG = {
24298
24355
  if (n.data) {
24299
24356
  for (let a = 0; a < n.data.length; a++) {
24300
24357
  let s = n.data[a];
24301
- s.incomingConditionItemList && s.incomingConditionItemList.length !== 0 && (s.nodeInfoDTO.incomingConditionItemList = s.incomingConditionItemList, s.incomingConditionItemList, this.incomingConditionItemList.push(...s.incomingConditionItemList)), s.nodeInfoDTO.nodeType != "userTask" && (s.nodeInfoDTO.branches = await this.getOutgoingProcessNode(e, s.nodeInfoDTO.id)), n.data[a].type != "endEvent" && (n.data[a].humanPerformerName == "\u56FA\u5B9A\u8D26\u6237" || n.data[a].humanPerformerName == "\u4E0E\u6D41\u7A0B\u7533\u8BF7\u4EBA\u76F8\u5173") && await et.repository.getParticipantsOfPerformerNames(e, [n.data[a].id]).then((c) => {
24358
+ s.incomingConditionItemList && s.incomingConditionItemList.length !== 0 && (s.nodeInfoDTO.incomingConditionItemList = s.incomingConditionItemList, s.incomingConditionItemList, this.incomingConditionItemList.push(...s.incomingConditionItemList)), s.nodeInfoDTO.nodeType != "userTask" ? s.nodeInfoDTO.branches = await this.getOutgoingProcessNode(e, s.nodeInfoDTO.id) : s.nodeInfoDTO && (s.nodeInfoDTO = this.getItemV(s.nodeInfoDTO)), n.data[a].type != "endEvent" && (n.data[a].humanPerformerName == "\u56FA\u5B9A\u8D26\u6237" || n.data[a].humanPerformerName == "\u4E0E\u6D41\u7A0B\u7533\u8BF7\u4EBA\u76F8\u5173") && await et.repository.getParticipantsOfPerformerNames(e, [n.data[a].id]).then((c) => {
24302
24359
  n.data[a].routeTxt.userNames = c.data[n.data[a].id];
24303
24360
  });
24304
24361
  }
@@ -24514,7 +24571,7 @@ var sG = /* @__PURE__ */ li(
24514
24571
  aG,
24515
24572
  !1,
24516
24573
  lG,
24517
- "7448d8a2",
24574
+ "cc812b62",
24518
24575
  null,
24519
24576
  null
24520
24577
  );
@@ -25163,10 +25220,25 @@ const bG = {
25163
25220
  processBudgetModelList: []
25164
25221
  });
25165
25222
  },
25223
+ getListV(e) {
25224
+ return (e || []).map((i) => {
25225
+ const n = (i.routeTxt || []).find((a) => a.type == "custom");
25226
+ if (n) {
25227
+ let a = "", s = [];
25228
+ return (n.ids || []).includes("currentUser") ? (a = localStorage.getItem("realName") || n.name, s = [localStorage.getItem("userId")]) : (n.ids || []).includes("applyUser") && (a = localStorage.getItem("realName") || n.name, s = [localStorage.getItem("userId")]), {
25229
+ ...i,
25230
+ flowType: "custom",
25231
+ flowName: a,
25232
+ flowIds: s
25233
+ };
25234
+ }
25235
+ return i;
25236
+ });
25237
+ },
25166
25238
  processDefChange(e) {
25167
25239
  this.processDefId = e, et.repository.getFirstProcessNode(this.processDefId).then(async (i) => {
25168
25240
  if (i.code == wt.success) {
25169
- if (this.processList = i.data, this.flag = !0, await this.getNodeUserDept(), !this.deptId)
25241
+ if (this.processList = this.getListV(i.data), this.flag = !0, await this.getNodeUserDept(), !this.deptId)
25170
25242
  return;
25171
25243
  this.getUserDataByDeptId();
25172
25244
  }
@@ -25246,7 +25318,7 @@ const bG = {
25246
25318
  }), new Promise((a, s) => {
25247
25319
  this.cancelCallBack = s, et.repository.getFirstProcessNode(e).then(async (c) => {
25248
25320
  if (c.code == wt.success) {
25249
- if (this.processList = c.data, this.flag = !0, await this.getNodeUserDept(), !this.deptId)
25321
+ if (this.processList = this.getListV(c.data), this.flag = !0, await this.getNodeUserDept(), !this.deptId)
25250
25322
  return;
25251
25323
  this.getUserDataByDeptId(), this.callback = a;
25252
25324
  }
@@ -25266,7 +25338,7 @@ const bG = {
25266
25338
  this.cancelCallBack = n, et.repository.getProcessDefListNew(e).then((a) => {
25267
25339
  a.code == wt.success && (a.data.length == 1 ? (this.processDefList = a.data, this.processDefId = a.data[0].id, this.processDefName = a.data[0].name, et.repository.getFirstProcessNode(this.processDefId).then(async (s) => {
25268
25340
  if (s.code == wt.success) {
25269
- if (this.processList = s.data, this.flag = !0, this.callback = i, await this.getNodeUserDept(), !this.deptId)
25341
+ if (this.processList = this.getListV(s.data), this.flag = !0, this.callback = i, await this.getNodeUserDept(), !this.deptId)
25270
25342
  return;
25271
25343
  this.getUserDataByDeptId();
25272
25344
  }
@@ -25316,7 +25388,7 @@ const bG = {
25316
25388
  listShow(e) {
25317
25389
  return this.processList = [], this.otherProcessList = [], this.processDefId = "", this.processDefName = "", this.revival = !1, new Promise((i, n) => {
25318
25390
  e.length == 1 ? (this.processDefId = e[0].id, this.processDefName = e[0].name, this.cancelCallBack = n, et.repository.getFirstProcessNode(this.processDefId).then((a) => {
25319
- a.code == wt.success && (this.processList = a.data, this.flag = !0, this.callback = i, et.repository.getAfferentParticipantNodeList(this.processDefId).then((s) => {
25391
+ a.code == wt.success && (this.processList = this.getListV(a.data), this.flag = !0, this.callback = i, et.repository.getAfferentParticipantNodeList(this.processDefId).then((s) => {
25320
25392
  this.otherProcessList = s.data.filter((c) => c.id != this.processList[0].id), this.otherProcessList.map((c) => {
25321
25393
  c.REQUIRED = !1;
25322
25394
  });
@@ -25378,7 +25450,7 @@ var _G = /* @__PURE__ */ li(
25378
25450
  vG,
25379
25451
  !1,
25380
25452
  yG,
25381
- "b3f62330",
25453
+ "20ef8f3f",
25382
25454
  null,
25383
25455
  null
25384
25456
  );