ddy-process-h5 1.0.1-rc.2.69 → 1.0.1-rc.2.71

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-h5",
3
- "version": "1.0.1-rc.2.69",
3
+ "version": "1.0.1-rc.2.71",
4
4
  "description": "> app端 流程插件",
5
5
  "main": "./ddy-process-h5.umd.cjs",
6
6
  "style": "./style.css",
@@ -22587,85 +22587,92 @@ const _C = /* @__PURE__ */ function() {
22587
22587
  if (!i || !t)
22588
22588
  return e;
22589
22589
  if (this.getButton("wf_pass"), this.needResubmit && i.status == "todo" && this.userIdData && this.userIdData == (i.variables || {}).applyUserId && ["recall", "reject"].includes(i.processIsFinished) && this.getButton("wf_pass")) {
22590
- let s = {};
22591
- s.name = "\u91CD\u65B0\u63D0\u4EA4", s.btnProps = { type: "default" }, e.push(s), s.click = (n) => {
22590
+ let n = {};
22591
+ n.name = "\u91CD\u65B0\u63D0\u4EA4", n.btnProps = { type: "default" }, e.push(n), n.click = (r) => {
22592
22592
  this.handlePass("\u91CD\u65B0\u63D0\u4EA4"), this.submitLoading = !0, this.handleActionClose();
22593
22593
  };
22594
22594
  }
22595
22595
  if (!this.isView && i.status == "todo" && this.getButton("wf_pass")) {
22596
- let s = {};
22597
- s.name = this.getButton("wf_pass").name, s.btnProps = { type: "primary" }, e.push(s), s.click = (n) => {
22596
+ let n = {};
22597
+ n.name = this.getButton("wf_pass").name, n.btnProps = { type: "primary" }, e.push(n), n.click = (r) => {
22598
22598
  this.handlePass(this.getButton("wf_pass").name), this.submitLoading = !0, this.handleActionClose();
22599
22599
  };
22600
22600
  }
22601
22601
  if (!this.isView && i.status == "todo" && this.getButton("wf_reject")) {
22602
- let s = {};
22603
- s.name = this.getButton("wf_reject").name, s.btnProps = { type: "danger" }, e.push(s), s.click = (n) => {
22602
+ let n = {};
22603
+ n.name = this.getButton("wf_reject").name, n.btnProps = { type: "danger" }, e.push(n), n.click = (r) => {
22604
22604
  this.handleCancel(this.getButton("wf_reject").name), this.submitLoading = !0, this.handleActionClose();
22605
22605
  };
22606
22606
  }
22607
- if (this.selfBtnList && this.selfBtnList.length && this.selfBtnList.map((s) => {
22608
- let n = {};
22609
- n.name = s.name, n.btnProps = { type: s.type }, e.push(n), n.click = s.click;
22607
+ if (this.selfBtnList && this.selfBtnList.length && this.selfBtnList.map((n) => {
22608
+ let r = {};
22609
+ r.name = n.name, r.btnProps = { type: n.type }, e.push(r), r.click = n.click;
22610
+ }), ["wf_edit"].map((n) => {
22611
+ if (!this.isView && i.status == "todo" && this.getButton(n)) {
22612
+ let r = {};
22613
+ r.name = this.getButton(n).name, r.btnProps = {}, r.key = r.name, r.click = () => {
22614
+ this.$emit("clickCustomButton", r.name);
22615
+ }, e.push(r);
22616
+ }
22610
22617
  }), !this.isView && i.status == "todo" && this.getButton("wf_rollback")) {
22611
- let s = {};
22612
- s.name = this.getButton("wf_rollback").name, s.btnProps = { type: "danger" }, e.push(s), s.click = (n) => {
22618
+ let n = {};
22619
+ n.name = this.getButton("wf_rollback").name, n.btnProps = { type: "danger" }, e.push(n), n.click = (r) => {
22613
22620
  this.handleRollbackTask(this.getButton("wf_rollback").name), this.handleActionClose();
22614
22621
  };
22615
22622
  }
22616
22623
  if (!this.isView && i.status == "todo" && this.getButton("wf_cctask")) {
22617
- let s = {};
22618
- s.name = this.getButton("wf_cctask").name, s.btnProps = { type: "default" }, s.click = async (n) => {
22624
+ let n = {};
22625
+ n.name = this.getButton("wf_cctask").name, n.btnProps = { type: "default" }, n.click = async (r) => {
22619
22626
  this.handleCirculate(this.getButton("wf_cctask").name), this.handleActionClose();
22620
- }, e.push(s);
22627
+ }, e.push(n);
22621
22628
  }
22622
22629
  if (!this.isView && i.status == "todo" && this.getButton("wf_delegate")) {
22623
- let s = {};
22624
- s.name = this.getButton("wf_delegate").name, s.btnProps = { type: "warning" }, s.key = "cc2", s.click = () => {
22630
+ let n = {};
22631
+ n.name = this.getButton("wf_delegate").name, n.btnProps = { type: "warning" }, n.key = "cc2", n.click = () => {
22625
22632
  this.handleUserSelect({
22626
22633
  type: "delegate",
22627
22634
  checkType: "radio",
22628
22635
  name: this.getButton("wf_delegate").name
22629
22636
  }), this.handleActionClose();
22630
- }, e.push(s);
22637
+ }, e.push(n);
22631
22638
  }
22632
22639
  if (!this.isView && i.status == "todo" && this.getButton("wf_terminate")) {
22633
- let s = {};
22634
- s.name = this.getButton("wf_terminate").name, s.btnProps = { type: "danger" }, s.key = "cc3", s.click = () => {
22640
+ let n = {};
22641
+ n.name = this.getButton("wf_terminate").name, n.btnProps = { type: "danger" }, n.key = "cc3", n.click = () => {
22635
22642
  this.handleTerminateProcess(), this.handleActionClose();
22636
- }, e.push(s);
22643
+ }, e.push(n);
22637
22644
  }
22638
22645
  if (!this.isView && i.status == "todo" && this.getButton("wf_transfer")) {
22639
- let s = {};
22640
- s.name = this.getButton("wf_transfer").name, s.btnProps = { type: "default" }, s.click = (n) => {
22646
+ let n = {};
22647
+ n.name = this.getButton("wf_transfer").name, n.btnProps = { type: "default" }, n.click = (r) => {
22641
22648
  this.handleUserSelect({
22642
22649
  type: "transfer",
22643
22650
  checkType: "radio",
22644
22651
  name: this.getButton("wf_transfer").name
22645
22652
  }), this.handleActionClose();
22646
- }, e.push(s);
22653
+ }, e.push(n);
22647
22654
  }
22648
22655
  if (!this.isView && i.isMultiInstance && this.getButton("wf_add_instance")) {
22649
- let s = {};
22650
- s.name = this.getButton("wf_add_instance").name, s.btnProps = { type: "primary" }, s.click = (n) => {
22656
+ let n = {};
22657
+ n.name = this.getButton("wf_add_instance").name, n.btnProps = { type: "primary" }, n.click = (r) => {
22651
22658
  this.handleUserSelect({
22652
22659
  type: "addInstance",
22653
22660
  checkType: "checkbox",
22654
22661
  name: this.getButton("wf_add_instance").name
22655
22662
  }), this.handleActionClose();
22656
- }, e.push(s);
22663
+ }, e.push(n);
22657
22664
  }
22658
22665
  if (this.userIdData == (i.variables || {}).applyUserId && this.processIntId) {
22659
- let s = {};
22660
- s.name = "\u50AC\u529E", s.btnProps = { type: "default" }, s.click = (n) => {
22666
+ let n = {};
22667
+ n.name = "\u50AC\u529E", n.btnProps = { type: "default" }, n.click = (r) => {
22661
22668
  this.handleReminders("\u50AC\u529E"), this.handleActionClose();
22662
- }, e.push(s);
22669
+ }, e.push(n);
22663
22670
  }
22664
22671
  if (this.processIntId && i.isOwner && i.isReturnable && !["recall", "reject"].includes(i.processIsFinished)) {
22665
- let s = {};
22666
- s.name = "\u64A4\u9500", s.btnProps = { type: "default" }, s.click = (n) => {
22672
+ let n = {};
22673
+ n.name = "\u64A4\u9500", n.btnProps = { type: "default" }, n.click = (r) => {
22667
22674
  this.handleWithdrawTask("\u64A4\u9500"), this.handleActionClose();
22668
- }, e.push(s);
22675
+ }, e.push(n);
22669
22676
  }
22670
22677
  return e;
22671
22678
  },
@@ -23319,7 +23326,7 @@ function OC(e) {
23319
23326
  }
23320
23327
  const zC = /* @__PURE__ */ function() {
23321
23328
  return MC.exports;
23322
- }(), BC = "ddy-process-h5", RC = "1.0.1-rc.2.69", LC = "> app\u7AEF \u6D41\u7A0B\u63D2\u4EF6", FC = "./ddy-process-h5.umd.cjs", VC = "./style.css", jC = "module", QC = {
23329
+ }(), BC = "ddy-process-h5", RC = "1.0.1-rc.2.71", LC = "> app\u7AEF \u6D41\u7A0B\u63D2\u4EF6", FC = "./ddy-process-h5.umd.cjs", VC = "./style.css", jC = "module", QC = {
23323
23330
  ".": {
23324
23331
  import: "./ddy-process-h5.js",
23325
23332
  require: "./ddy-process-h5.umd.cjs"