lyflowchart 1.0.175 → 1.0.179
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/dist/{ApprovalEditorModal-ya6wSz_K.js → ApprovalEditorModal-BWOHJ_Cg.js} +1 -1
- package/dist/CancelModal-DF7_m2Va.js +183 -0
- package/dist/{Cell_click_approve-CkTzNo0c.js → Cell_click_approve-wVEkE0DE.js} +2 -2
- package/dist/{approval-DwIVRNQk.js → approval-ksqh4H9S.js} +1 -1
- package/dist/{core-R1eodqEI.js → core-Ba3X7LpD.js} +1 -1
- package/dist/index.js +3 -3
- package/dist/lyflowchart.css +1 -1
- package/package.json +1 -1
- package/dist/CancelModal--ylIIPjo.js +0 -80
package/package.json
CHANGED
|
@@ -1,80 +0,0 @@
|
|
|
1
|
-
import { o as e } from "./init-plugin-CpYzRii0.js";
|
|
2
|
-
import { computed as t, createBlock as n, createCommentVNode as r, createVNode as i, defineComponent as a, mergeModels as o, openBlock as s, reactive as c, ref as l, resolveComponent as u, useModel as d, watch as f, withCtx as p } from "vue";
|
|
3
|
-
import { message as m } from "ant-design-vue";
|
|
4
|
-
//#endregion
|
|
5
|
-
//#region src/components/approval/components/CancelModal.vue
|
|
6
|
-
var h = /* @__PURE__ */ a({
|
|
7
|
-
name: "ApprovalCancelModal",
|
|
8
|
-
__name: "CancelModal",
|
|
9
|
-
props: /* @__PURE__ */ o({
|
|
10
|
-
id: { default: null },
|
|
11
|
-
eventBus: { default: null }
|
|
12
|
-
}, {
|
|
13
|
-
cancelModalShow: {},
|
|
14
|
-
cancelModalShowModifiers: {}
|
|
15
|
-
}),
|
|
16
|
-
emits: /* @__PURE__ */ o(["done"], ["update:cancelModalShow"]),
|
|
17
|
-
setup(a, { emit: o }) {
|
|
18
|
-
let h = a, g = o, _ = d(a, "cancelModalShow"), v = c({ bz: "" }), y = l(null), b = l(!1), x = t(() => Array.isArray(h.id) ? h.id.length : +!!h.id), S = t(() => x.value - w.value.length), C = t(() => x.value ? Math.round(S.value / x.value * 100) : 0), w = l([]);
|
|
19
|
-
f([() => h.id, _], ([e, t]) => {
|
|
20
|
-
t && (w.value = Array.isArray(e) ? [...e] : e ? [e] : []);
|
|
21
|
-
}, { immediate: !0 });
|
|
22
|
-
let T = async () => {
|
|
23
|
-
if (!w.value.length) {
|
|
24
|
-
m.error("未获取到要作废的审批记录");
|
|
25
|
-
return;
|
|
26
|
-
}
|
|
27
|
-
await y.value.validate(), b.value = !0;
|
|
28
|
-
try {
|
|
29
|
-
for (let t of [...w.value]) await e({
|
|
30
|
-
approve_record_id: t,
|
|
31
|
-
bz: v.bz
|
|
32
|
-
}, "/approve/cancel_agree_approve_record"), w.value.shift();
|
|
33
|
-
} catch {
|
|
34
|
-
return;
|
|
35
|
-
} finally {
|
|
36
|
-
b.value = !1;
|
|
37
|
-
}
|
|
38
|
-
h.eventBus?.emit("reload_table"), g("done"), m.success(x.value > 1 ? `删除成功(共 ${x.value} 条)` : "作废成功"), _.value = !1;
|
|
39
|
-
};
|
|
40
|
-
return (e, t) => {
|
|
41
|
-
let a = u("a-progress"), o = u("a-textarea"), c = u("a-form-item"), l = u("a-form"), d = u("a-modal");
|
|
42
|
-
return s(), n(d, {
|
|
43
|
-
open: _.value,
|
|
44
|
-
"onUpdate:open": t[1] ||= (e) => _.value = e,
|
|
45
|
-
title: "审批作废",
|
|
46
|
-
"confirm-loading": b.value,
|
|
47
|
-
onOk: T
|
|
48
|
-
}, {
|
|
49
|
-
default: p(() => [x.value > 1 && (b.value || S.value > 0) ? (s(), n(a, {
|
|
50
|
-
key: 0,
|
|
51
|
-
percent: C.value,
|
|
52
|
-
format: () => `${S.value}/${x.value}`,
|
|
53
|
-
size: "small",
|
|
54
|
-
style: { "margin-bottom": "12px" }
|
|
55
|
-
}, null, 8, ["percent", "format"])) : r("", !0), i(l, {
|
|
56
|
-
model: v,
|
|
57
|
-
ref_key: "formRef",
|
|
58
|
-
ref: y
|
|
59
|
-
}, {
|
|
60
|
-
default: p(() => [i(c, {
|
|
61
|
-
name: "bz",
|
|
62
|
-
rules: [{ required: !0 }],
|
|
63
|
-
label: "删除原因"
|
|
64
|
-
}, {
|
|
65
|
-
default: p(() => [i(o, {
|
|
66
|
-
placeholder: "请输入删除原因",
|
|
67
|
-
value: v.bz,
|
|
68
|
-
"onUpdate:value": t[0] ||= (e) => v.bz = e
|
|
69
|
-
}, null, 8, ["value"])]),
|
|
70
|
-
_: 1
|
|
71
|
-
})]),
|
|
72
|
-
_: 1
|
|
73
|
-
}, 8, ["model"])]),
|
|
74
|
-
_: 1
|
|
75
|
-
}, 8, ["open", "confirm-loading"]);
|
|
76
|
-
};
|
|
77
|
-
}
|
|
78
|
-
});
|
|
79
|
-
//#endregion
|
|
80
|
-
export { h as t };
|