lyflowchart 1.0.168 → 1.0.172

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.
@@ -804,11 +804,7 @@ var T = { class: "form-container" }, E = { class: "header-container" }, ee = { c
804
804
  w.error("代码未返回ids");
805
805
  return;
806
806
  }
807
- if (e.length !== 1) {
808
- w.error("每次仅能作废一个审批单");
809
- return;
810
- }
811
- p.value = e[0], f.value = !0;
807
+ p.value = e, f.value = !0;
812
808
  }
813
809
  }, C = (e) => !!l.value[e], T = s(() => ({
814
810
  modelType: h.value,
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "lyflowchart",
3
3
  "type": "module",
4
4
  "license": "MIT",
5
- "version": "1.0.168",
5
+ "version": "1.0.172",
6
6
  "main": "./dist/index.js",
7
7
  "types": "./dist/index.d.ts",
8
8
  "scripts": {
@@ -1,61 +0,0 @@
1
- import { o as e } from "./init-plugin-CpYzRii0.js";
2
- import { createBlock as t, createVNode as n, defineComponent as r, mergeModels as i, openBlock as a, reactive as o, ref as s, resolveComponent as c, useModel as l, withCtx as u } from "vue";
3
- import { message as d } from "ant-design-vue";
4
- //#endregion
5
- //#region src/components/approval/components/CancelModal.vue
6
- var f = /* @__PURE__ */ r({
7
- name: "ApprovalCancelModal",
8
- __name: "CancelModal",
9
- props: /* @__PURE__ */ i({
10
- id: { default: null },
11
- eventBus: { default: null }
12
- }, {
13
- cancelModalShow: {},
14
- cancelModalShowModifiers: {}
15
- }),
16
- emits: /* @__PURE__ */ i(["done"], ["update:cancelModalShow"]),
17
- setup(r, { emit: i }) {
18
- let f = r, p = i, m = l(r, "cancelModalShow"), h = o({ bz: "" }), g = s(null), _ = async () => {
19
- if (!f.id) {
20
- d.error("未获取到要作废的审批记录");
21
- return;
22
- }
23
- await g.value.validate(), await e({
24
- approve_record_id: f.id,
25
- bz: h.bz
26
- }, "/approve/cancel_agree_approve_record"), f.eventBus?.emit("reload_table"), p("done"), d.success("作废成功"), m.value = !1;
27
- };
28
- return (e, r) => {
29
- let i = c("a-textarea"), o = c("a-form-item"), s = c("a-form"), l = c("a-modal");
30
- return a(), t(l, {
31
- open: m.value,
32
- "onUpdate:open": r[1] ||= (e) => m.value = e,
33
- title: "审批作废",
34
- onOk: _
35
- }, {
36
- default: u(() => [n(s, {
37
- model: h,
38
- ref_key: "formRef",
39
- ref: g
40
- }, {
41
- default: u(() => [n(o, {
42
- name: "bz",
43
- rules: [{ required: !0 }],
44
- label: "作废原因"
45
- }, {
46
- default: u(() => [n(i, {
47
- placeholder: "请输入作废原因",
48
- value: h.bz,
49
- "onUpdate:value": r[0] ||= (e) => h.bz = e
50
- }, null, 8, ["value"])]),
51
- _: 1
52
- })]),
53
- _: 1
54
- }, 8, ["model"])]),
55
- _: 1
56
- }, 8, ["open"]);
57
- };
58
- }
59
- });
60
- //#endregion
61
- export { f as t };