mooho-base-admin-plus 2.10.67 → 2.10.69

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/history.md CHANGED
@@ -238,3 +238,5 @@ mooho-base-admin-plus@2.10.64 - 修复默认日期的bug
238
238
  mooho-base-admin-plus@2.10.65 - 增加任务批量转移功能
239
239
  mooho-base-admin-plus@2.10.66 - 修复Excel表格修改视图后报错的Bug
240
240
  mooho-base-admin-plus@2.10.67 - 修复Excel表格文本框编辑的bug
241
+ mooho-base-admin-plus@2.10.68 - 增加指定节点退回功能
242
+ mooho-base-admin-plus@2.10.69 - Excel表格弹出选择框每次弹出时重置筛选条件
@@ -19866,13 +19866,14 @@ const home = /* @__PURE__ */ _export_sfc(_sfc_main$1t, [["render", _sfc_render$1
19866
19866
  }
19867
19867
  });
19868
19868
  },
19869
- reject(a, r) {
19869
+ reject(a, r, o) {
19870
19870
  return service({
19871
19871
  url: `api/${res$i}/reject`,
19872
19872
  method: "post",
19873
19873
  data: {
19874
19874
  id: a,
19875
- comment: r
19875
+ rejectToID: r,
19876
+ comment: o
19876
19877
  }
19877
19878
  });
19878
19879
  },
@@ -19940,6 +19941,15 @@ const home = /* @__PURE__ */ _export_sfc(_sfc_main$1t, [["render", _sfc_render$1
19940
19941
  method: "post",
19941
19942
  data: a
19942
19943
  });
19944
+ },
19945
+ queryRejectTo(a) {
19946
+ return service({
19947
+ url: `api/${res$i}/queryRejectTo`,
19948
+ method: "get",
19949
+ params: {
19950
+ id: a
19951
+ }
19952
+ });
19943
19953
  }
19944
19954
  }, _sfc_main$1s = {
19945
19955
  name: "common-myTask",
@@ -23542,6 +23552,29 @@ function _sfc_render$13(a, r, o, s, l, c) {
23542
23552
  ]),
23543
23553
  _: 2
23544
23554
  }, 1032, ["modelValue", "onUpdate:modelValue"])) : createCommentVNode("", !0)
23555
+ ], 64)) : createCommentVNode("", !0),
23556
+ _ == "rejectActivityPids" ? (openBlock(), createElementBlock(Fragment, { key: 1 }, [
23557
+ c.activities ? (openBlock(), createBlock(g, {
23558
+ key: 0,
23559
+ "model-value": a.parseArrayData(y, _),
23560
+ "onUpdate:modelValue": (S) => a.setArrayData(y, _, S),
23561
+ clearable: !0,
23562
+ transfer: !0,
23563
+ multiple: !0
23564
+ }, {
23565
+ default: withCtx(() => [
23566
+ (openBlock(!0), createElementBlock(Fragment, null, renderList(c.activities.filter((S) => S.pid != y.pid && (S.activityType == "Interactive" || S.activityType == "Judgement" || S.activityType == "Service" || S.activityType == "ParallelStart")), (S) => (openBlock(), createBlock(p, {
23567
+ key: S.pid,
23568
+ value: S.pid
23569
+ }, {
23570
+ default: withCtx(() => [
23571
+ createTextVNode(toDisplayString$2(S.name), 1)
23572
+ ]),
23573
+ _: 2
23574
+ }, 1032, ["value"]))), 128))
23575
+ ]),
23576
+ _: 2
23577
+ }, 1032, ["model-value", "onUpdate:modelValue"])) : createCommentVNode("", !0)
23545
23578
  ], 64)) : createCommentVNode("", !0)
23546
23579
  ]),
23547
23580
  _: 1
@@ -40292,6 +40325,14 @@ const modalForm = /* @__PURE__ */ _export_sfc(_sfc_main$t, [["render", _sfc_rend
40292
40325
  // 选中项变化事件
40293
40326
  onSelectChange() {
40294
40327
  this.$emit("on-select-change");
40328
+ },
40329
+ /**
40330
+ * 重置筛选
40331
+ *
40332
+ * @public
40333
+ */
40334
+ resetFilter() {
40335
+ this.$refs.table.resetFilter();
40295
40336
  }
40296
40337
  }
40297
40338
  }, _hoisted_1$k = { class: "title" }, _hoisted_2$f = { class: "description" }, _hoisted_3$d = { class: "ivu-ml-8 ivu-mr-8" };
@@ -41709,7 +41750,7 @@ const tableSetting = /* @__PURE__ */ _export_sfc(_sfc_main$q, [["render", _sfc_r
41709
41750
  let r, o = {}, s = this.$refs["table_" + a.code][0].tableView, l = s.filtering;
41710
41751
  (l || "").trim() && (o = JSON.parse(l)), o[a.sourceDataCode] = this.data.id, a.isSourceCustom ? r = await customModelApi.query(a.sourceModel, o, null, s.isReturnSimple ? s : null) : r = await modelApi.query(a.sourceModel, o, null, s.isReturnSimple ? s : null, s.functionName, s.functionType), this.$refs["table_" + a.code][0].loadData(r.data);
41711
41752
  }
41712
- }) : a.controlType == "Attachment" && this.$refs["attachment_" + a.code] && this.$refs["attachment_" + a.code][0].setData(this.parseData(this.data, a.code));
41753
+ }) : a.controlType == "Attachment" && this.$refs["attachment_" + a.code] && this.$refs["attachment_" + a.code].length > 0 && this.$refs["attachment_" + a.code][0].setData(this.parseData(this.data, a.code));
41713
41754
  });
41714
41755
  }
41715
41756
  // staticData() {
@@ -103842,7 +103883,7 @@ const _sfc_main$o = {
103842
103883
  if (this.coords = r, a.detail === 2 && r.row >= 0 && !this.readonly && !this.$refs.table.hotInstance.getCellMeta(r.row, r.col).readOnly) {
103843
103884
  let s = this.hotSetting.columns[r.col];
103844
103885
  s.controlType === "DialogSelect" && !s.readonly && this.$refs.dialogTable.init(s.source, () => {
103845
- this.$refs.dialogTable.open(this.getParam(this.staticData[r.row], s, this.parentData));
103886
+ this.$refs.dialogTable.open(this.getParam(this.staticData[r.row], s, this.parentData)), this.$refs.dialogTable.resetFilter();
103846
103887
  });
103847
103888
  }
103848
103889
  });
@@ -106268,7 +106309,8 @@ const viewTable = /* @__PURE__ */ _export_sfc(_sfc_main$n, [["render", _sfc_rend
106268
106309
  description: null,
106269
106310
  customComponent: null,
106270
106311
  form: null,
106271
- isFullscreen: !1
106312
+ isFullscreen: !1,
106313
+ rejectActivities: []
106272
106314
  };
106273
106315
  },
106274
106316
  async created() {
@@ -106339,16 +106381,20 @@ const viewTable = /* @__PURE__ */ _export_sfc(_sfc_main$n, [["render", _sfc_rend
106339
106381
  (o) => (this.comment = o, !0)
106340
106382
  ) : this.error("Front_Msg_Form_Validate_Fail");
106341
106383
  },
106342
- // 拒绝
106384
+ // 打开拒绝表单
106343
106385
  async reject() {
106344
- this.isCustom && typeof this.$refs.customComponent.rejectValidation == "function" && !await this.$refs.customComponent.rejectValidation() || this.confirmInput(
106345
- "Front_Msg_Sure_To_Reject_Application",
106346
- this.$t("Front_Label_Comment"),
106347
- async () => {
106348
- this.isCustom && typeof this.$refs.customComponent.beforeReject == "function" && await this.$refs.customComponent.beforeReject(this.comment), await taskApi.reject(this.task.id, this.comment), this.success("Front_Msg_Success"), this.resetNotice(), this.$emit("on-after-action"), this.opened = !1;
106349
- },
106350
- (a) => (a || "").trim() ? (this.comment = a, !0) : (this.warning("Front_Msg_Please_Input_Reject_Reason"), !1)
106351
- );
106386
+ if (this.isCustom && typeof this.$refs.customComponent.rejectValidation == "function" && !await this.$refs.customComponent.rejectValidation())
106387
+ return;
106388
+ console.log("xxx", this.task.activityInst.activityID);
106389
+ let a = this.$refs.rejectForm.columns.find((r) => r.code == "rejectTo");
106390
+ a && (this.task.activityInst.activity.isRejectSelect == !0 ? (this.rejectActivities = await taskApi.queryRejectTo(this.task.id), a.isShow = !0) : a.isShow = !1), this.$refs.rejectForm.open();
106391
+ },
106392
+ // 拒绝提交
106393
+ async rejectSubmit() {
106394
+ await this.$refs.rejectForm.validate() ? this.confirm("Front_Msg_Sure_To_Reject_Application", async () => {
106395
+ let r = this.$refs.rejectForm.data;
106396
+ await taskApi.reject(this.task.id, r.rejectToID, r.comment), this.success("Front_Msg_Success"), this.resetNotice(), this.$emit("on-after-action"), this.$refs.rejectForm.data = {}, this.$refs.rejectForm.close(), this.opened = !1;
106397
+ }) : this.error("Front_Msg_Form_Validate_Fail");
106352
106398
  },
106353
106399
  // 撤回
106354
106400
  async recall() {
@@ -106398,11 +106444,11 @@ const viewTable = /* @__PURE__ */ _export_sfc(_sfc_main$n, [["render", _sfc_rend
106398
106444
  }
106399
106445
  }, _hoisted_1$d = { class: "title" }, _hoisted_2$a = { class: "description" }, _hoisted_3$8 = { class: "ivu-ml-8 ivu-mr-8" }, _hoisted_4$4 = { class: "title" }, _hoisted_5$2 = { class: "description" }, _hoisted_6$1 = { class: "ivu-ml-8 ivu-mr-8" };
106400
106446
  function _sfc_render$m(a, r, o, s, l, c) {
106401
- const u = resolveComponent("Icon"), d = resolveComponent("view-form"), f = resolveComponent("Button"), p = resolveComponent("Modal"), g = resolveComponent("modal-table"), v = resolveComponent("modal-form"), y = resolveComponent("Input"), _ = resolveComponent("FormItem"), S = resolveComponent("Col"), C = resolveComponent("Row"), b = resolveComponent("Form"), E = resolveComponent("flow-chart");
106447
+ const u = resolveComponent("Icon"), d = resolveComponent("view-form"), f = resolveComponent("Button"), p = resolveComponent("Modal"), g = resolveComponent("modal-table"), v = resolveComponent("modal-form"), y = resolveComponent("Input"), _ = resolveComponent("FormItem"), S = resolveComponent("Col"), C = resolveComponent("Row"), b = resolveComponent("Form"), E = resolveComponent("Option"), T = resolveComponent("Select"), P = resolveComponent("flow-chart");
106402
106448
  return openBlock(), createElementBlock("div", null, [
106403
106449
  createVNode$1(p, {
106404
106450
  modelValue: l.opened,
106405
- "onUpdate:modelValue": r[12] || (r[12] = (T) => l.opened = T),
106451
+ "onUpdate:modelValue": r[12] || (r[12] = (I) => l.opened = I),
106406
106452
  scrollable: "",
106407
106453
  fullscreen: l.isFullscreen,
106408
106454
  "mask-closable": a.layout.maskClosable,
@@ -106428,30 +106474,30 @@ function _sfc_render$m(a, r, o, s, l, c) {
106428
106474
  key: 0,
106429
106475
  style: { "font-size": "20px", color: "#999", position: "relative", top: "-3px" },
106430
106476
  type: "ios-expand",
106431
- onClick: r[0] || (r[0] = (T) => l.isFullscreen = !l.isFullscreen)
106477
+ onClick: r[0] || (r[0] = (I) => l.isFullscreen = !l.isFullscreen)
106432
106478
  })),
106433
106479
  l.isFullscreen ? (openBlock(), createBlock(u, {
106434
106480
  key: 1,
106435
106481
  style: { "font-size": "20px", color: "#999", position: "relative", top: "-3px" },
106436
106482
  type: "ios-contract",
106437
- onClick: r[1] || (r[1] = (T) => l.isFullscreen = !l.isFullscreen)
106483
+ onClick: r[1] || (r[1] = (I) => l.isFullscreen = !l.isFullscreen)
106438
106484
  })) : createCommentVNode("", !0),
106439
106485
  createVNode$1(u, {
106440
106486
  type: "ios-close",
106441
- onClick: r[2] || (r[2] = (T) => l.opened = !1)
106487
+ onClick: r[2] || (r[2] = (I) => l.opened = !1)
106442
106488
  })
106443
106489
  ])
106444
106490
  ]),
106445
106491
  footer: withCtx(() => [
106446
106492
  createElementVNode("div", null, [
106447
- (openBlock(!0), createElementBlock(Fragment, null, renderList(l.outcomes, (T, P) => (openBlock(), createBlock(f, {
106448
- key: P,
106493
+ (openBlock(!0), createElementBlock(Fragment, null, renderList(l.outcomes, (I, A) => (openBlock(), createBlock(f, {
106494
+ key: A,
106449
106495
  type: "primary",
106450
106496
  "custom-icon": "fa fa-check-circle",
106451
- onClick: (I) => c.action(T)
106497
+ onClick: (x) => c.action(I)
106452
106498
  }, {
106453
106499
  default: withCtx(() => [
106454
- createTextVNode(toDisplayString$2(T.name == null ? a.$t("Front_Btn_Agree") : T.name), 1)
106500
+ createTextVNode(toDisplayString$2(I.name == null ? a.$t("Front_Btn_Agree") : I.name), 1)
106455
106501
  ]),
106456
106502
  _: 2
106457
106503
  }, 1032, ["onClick"]))), 128)),
@@ -106459,7 +106505,7 @@ function _sfc_render$m(a, r, o, s, l, c) {
106459
106505
  key: 0,
106460
106506
  type: "warning",
106461
106507
  "custom-icon": "fa fa-reply",
106462
- onClick: r[4] || (r[4] = (T) => c.reject())
106508
+ onClick: r[4] || (r[4] = (I) => c.reject())
106463
106509
  }, {
106464
106510
  default: withCtx(() => [
106465
106511
  createTextVNode(toDisplayString$2(a.$t("Front_Btn_Reject")), 1)
@@ -106470,7 +106516,7 @@ function _sfc_render$m(a, r, o, s, l, c) {
106470
106516
  key: 1,
106471
106517
  type: "primary",
106472
106518
  "custom-icon": "fa fa-share",
106473
- onClick: r[5] || (r[5] = (T) => c.back())
106519
+ onClick: r[5] || (r[5] = (I) => c.back())
106474
106520
  }, {
106475
106521
  default: withCtx(() => [
106476
106522
  createTextVNode(toDisplayString$2(a.$t("Front_Btn_Back_Previous")), 1)
@@ -106481,7 +106527,7 @@ function _sfc_render$m(a, r, o, s, l, c) {
106481
106527
  key: 2,
106482
106528
  type: "primary",
106483
106529
  "custom-icon": "fa fa-share",
106484
- onClick: r[6] || (r[6] = (T) => a.$refs.redirectTaskForm.open())
106530
+ onClick: r[6] || (r[6] = (I) => a.$refs.redirectTaskForm.open())
106485
106531
  }, {
106486
106532
  default: withCtx(() => [
106487
106533
  createTextVNode(toDisplayString$2(a.$t("Front_Btn_Redirect")), 1)
@@ -106492,7 +106538,7 @@ function _sfc_render$m(a, r, o, s, l, c) {
106492
106538
  key: 3,
106493
106539
  type: "primary",
106494
106540
  "custom-icon": "fa fa-reply-all",
106495
- onClick: r[7] || (r[7] = (T) => c.recall())
106541
+ onClick: r[7] || (r[7] = (I) => c.recall())
106496
106542
  }, {
106497
106543
  default: withCtx(() => [
106498
106544
  createTextVNode(toDisplayString$2(a.$t("Front_Btn_Recall")), 1)
@@ -106503,7 +106549,7 @@ function _sfc_render$m(a, r, o, s, l, c) {
106503
106549
  key: 4,
106504
106550
  type: "primary",
106505
106551
  "custom-icon": "fa fa-comment-dots",
106506
- onClick: r[8] || (r[8] = (T) => c.openMessage())
106552
+ onClick: r[8] || (r[8] = (I) => c.openMessage())
106507
106553
  }, {
106508
106554
  default: withCtx(() => [
106509
106555
  createTextVNode(toDisplayString$2(a.$t("Front_Btn_Leave_Message")), 1)
@@ -106513,7 +106559,7 @@ function _sfc_render$m(a, r, o, s, l, c) {
106513
106559
  createVNode$1(f, {
106514
106560
  type: "info",
106515
106561
  "custom-icon": "fa fa-route",
106516
- onClick: r[9] || (r[9] = (T) => a.$refs.flowChart.open({ processInstID: l.task.processInstID }))
106562
+ onClick: r[9] || (r[9] = (I) => a.$refs.flowChart.open({ processInstID: l.task.processInstID }))
106517
106563
  }, {
106518
106564
  default: withCtx(() => [
106519
106565
  createTextVNode(toDisplayString$2(a.$t("Front_Btn_Process")), 1)
@@ -106523,7 +106569,7 @@ function _sfc_render$m(a, r, o, s, l, c) {
106523
106569
  createVNode$1(f, {
106524
106570
  type: "info",
106525
106571
  "custom-icon": "fa fa-history",
106526
- onClick: r[10] || (r[10] = (T) => a.$refs.approvalHistoryTable.open({ processInstID: l.task.processInstID }))
106572
+ onClick: r[10] || (r[10] = (I) => a.$refs.approvalHistoryTable.open({ processInstID: l.task.processInstID }))
106527
106573
  }, {
106528
106574
  default: withCtx(() => [
106529
106575
  createTextVNode(toDisplayString$2(a.$t("Front_Btn_History")), 1)
@@ -106533,7 +106579,7 @@ function _sfc_render$m(a, r, o, s, l, c) {
106533
106579
  createVNode$1(f, {
106534
106580
  type: "default",
106535
106581
  "custom-icon": "fa fa-times",
106536
- onClick: r[11] || (r[11] = (T) => l.opened = !1)
106582
+ onClick: r[11] || (r[11] = (I) => l.opened = !1)
106537
106583
  }, {
106538
106584
  default: withCtx(() => [
106539
106585
  createTextVNode(toDisplayString$2(a.$t("Front_Btn_Close")), 1)
@@ -106571,7 +106617,7 @@ function _sfc_render$m(a, r, o, s, l, c) {
106571
106617
  createVNode$1(f, {
106572
106618
  type: "primary",
106573
106619
  "custom-icon": "fa fa-check",
106574
- onClick: r[13] || (r[13] = (T) => c.redirect())
106620
+ onClick: r[13] || (r[13] = (I) => c.redirect())
106575
106621
  }, {
106576
106622
  default: withCtx(() => [
106577
106623
  createTextVNode(toDisplayString$2(a.$t("Front_Btn_OK")), 1)
@@ -106583,7 +106629,7 @@ function _sfc_render$m(a, r, o, s, l, c) {
106583
106629
  }, 512),
106584
106630
  createVNode$1(p, {
106585
106631
  modelValue: l.messageOpened,
106586
- "onUpdate:modelValue": r[17] || (r[17] = (T) => l.messageOpened = T),
106632
+ "onUpdate:modelValue": r[17] || (r[17] = (I) => l.messageOpened = I),
106587
106633
  scrollable: ""
106588
106634
  }, {
106589
106635
  header: withCtx(() => [
@@ -106606,7 +106652,7 @@ function _sfc_render$m(a, r, o, s, l, c) {
106606
106652
  createVNode$1(f, {
106607
106653
  type: "default",
106608
106654
  "custom-icon": "fa fa-times",
106609
- onClick: r[16] || (r[16] = (T) => l.messageOpened = !1)
106655
+ onClick: r[16] || (r[16] = (I) => l.messageOpened = !1)
106610
106656
  }, {
106611
106657
  default: withCtx(() => [
106612
106658
  createTextVNode(toDisplayString$2(a.$t("Front_Btn_Close")), 1)
@@ -106648,7 +106694,7 @@ function _sfc_render$m(a, r, o, s, l, c) {
106648
106694
  type: "textarea",
106649
106695
  rows: 6,
106650
106696
  modelValue: l.messageData.message,
106651
- "onUpdate:modelValue": r[14] || (r[14] = (T) => l.messageData.message = T)
106697
+ "onUpdate:modelValue": r[14] || (r[14] = (I) => l.messageData.message = I)
106652
106698
  }, null, 8, ["modelValue"])
106653
106699
  ]),
106654
106700
  _: 1
@@ -106666,7 +106712,48 @@ function _sfc_render$m(a, r, o, s, l, c) {
106666
106712
  ]),
106667
106713
  _: 1
106668
106714
  }, 8, ["modelValue"]),
106669
- createVNode$1(E, { ref: "flowChart" }, null, 512)
106715
+ createVNode$1(v, {
106716
+ ref: "rejectForm",
106717
+ "view-code": "RejectTask"
106718
+ }, {
106719
+ column: withCtx(({ data: I, code: A }) => [
106720
+ A == "rejectTo" ? (openBlock(), createBlock(T, {
106721
+ key: 0,
106722
+ modelValue: a.$refs.rejectForm.data.rejectToID,
106723
+ "onUpdate:modelValue": (x) => a.$refs.rejectForm.data.rejectToID = x,
106724
+ clearable: !0,
106725
+ placeholder: "退回发起人",
106726
+ transfer: !0
106727
+ }, {
106728
+ default: withCtx(() => [
106729
+ (openBlock(!0), createElementBlock(Fragment, null, renderList(l.rejectActivities, (x) => (openBlock(), createBlock(E, {
106730
+ key: x.id,
106731
+ value: x.id
106732
+ }, {
106733
+ default: withCtx(() => [
106734
+ createTextVNode(toDisplayString$2(x.name), 1)
106735
+ ]),
106736
+ _: 2
106737
+ }, 1032, ["value"]))), 128))
106738
+ ]),
106739
+ _: 1
106740
+ }, 8, ["modelValue", "onUpdate:modelValue"])) : createCommentVNode("", !0)
106741
+ ]),
106742
+ footer: withCtx(() => [
106743
+ createVNode$1(f, {
106744
+ type: "primary",
106745
+ "custom-icon": "fa fa-check",
106746
+ onClick: r[18] || (r[18] = (I) => c.rejectSubmit())
106747
+ }, {
106748
+ default: withCtx(() => [
106749
+ createTextVNode(toDisplayString$2(a.$t("Front_Btn_OK")), 1)
106750
+ ]),
106751
+ _: 1
106752
+ })
106753
+ ]),
106754
+ _: 1
106755
+ }, 512),
106756
+ createVNode$1(P, { ref: "flowChart" }, null, 512)
106670
106757
  ]);
106671
106758
  }
106672
106759
  const taskForm = /* @__PURE__ */ _export_sfc(_sfc_main$m, [["render", _sfc_render$m]]), __vite_glob_1_35 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({