lyflowchart 1.0.137 → 1.0.152
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/ActionsConfig-BrfcGMc2.js +521 -0
- package/dist/{ApprovalEditorModal-19j5zbe2.js → ApprovalEditorModal-HuU6SRJe.js} +1 -1
- package/dist/{Cell_click_approve-BGDZUzTS.js → Cell_click_approve-DiMuUB1k.js} +22 -20
- package/dist/{MyProcess-FWGEwQcv.js → MyProcess-C6fgOFiw.js} +1 -1
- package/dist/{approval-BW2WjPxY.js → approval-1GfOMaS4.js} +3 -3
- package/dist/{approval-BaD4Bmw6.js → approval-BlbNEsGQ.js} +1 -1
- package/dist/{approvalHistory-B2gpQbFC.js → approvalHistory-D-5rRWNw.js} +1 -1
- package/dist/{approvalPageConfig-D0zPXOUf.js → approvalPageConfig-4VU81v-x.js} +13 -13
- package/dist/{columnTables-DLwtgcC7.js → columnTables-DFwoawLF.js} +76 -69
- package/dist/components/approval/ApprovalEditorModal.vue.d.ts +2 -0
- package/dist/components/approval/components/approvalPageConfig/ActionsConfig.vue.d.ts +481 -0
- package/dist/components/approval/components/approvalPageConfig/leftColumn.vue.d.ts +1210 -0
- package/dist/components/approval/components/approvalPageConfig/middleColumn.vue.d.ts +605 -0
- package/dist/components/approval/components/approvalPageConfig/tableConfig.vue.d.ts +605 -0
- package/dist/components/approval/core.vue.d.ts +2 -0
- package/dist/components/approval/typing.d.ts +1 -1
- package/dist/components/approval/useApprovalRecordActions.d.ts +3 -1
- package/dist/constants.d.ts +26 -0
- package/dist/{core-Cv0Erg9E.js → core-BkpI8NUK.js} +355 -314
- package/dist/{debugCode-Cm9-WiUG.js → debugCode-CQm5weGM.js} +1 -1
- package/dist/{default-VdDMlY4e.js → default-kv1XZD9P.js} +28 -21
- package/dist/{example_code-C_xF8RRG.js → example_code-DKjqP7KK.js} +6 -0
- package/dist/index.js +18 -16
- package/dist/{leftColumn-CsPjufue.js → leftColumn-OrLOxcyw.js} +2 -2
- package/dist/lyflowchart.css +1 -1
- package/dist/{middleColumn-C7M6-eVo.js → middleColumn-DUBZPkDG.js} +2 -2
- package/dist/{recordActions-BgFlNsGU.js → recordActions-3vqHADOf.js} +1 -1
- package/dist/{tableConfig-uLXue-BS.js → tableConfig-W9yGeZs-.js} +41 -41
- package/dist/{tableModal-BcYfVL02.js → tableModal-H0SGP8PM.js} +2 -2
- package/dist/{useApprovalRecordActions-BQ6MgV2L.js → useApprovalRecordActions-B82xPY8g.js} +63 -63
- package/dist/{utils-CLet2gLV.js → utils-B1lkML14.js} +5 -1
- package/dist/{viewer-Dv3kQsMf.js → viewer-C_OHXXRU.js} +915 -916
- package/package.json +1 -1
- package/dist/ActionsConfig-BuvSvRbv.js +0 -395
- package/dist/ActionsConfig-BuvSvRbv.js.map +0 -1
- package/dist/ApprovalEditorModal-19j5zbe2.js.map +0 -1
- package/dist/CancelModal-BUi3ieI8.js.map +0 -1
- package/dist/Cell_click_approve-BGDZUzTS.js.map +0 -1
- package/dist/JsonTags-BbWLqghI.js.map +0 -1
- package/dist/MyProcess-FWGEwQcv.js.map +0 -1
- package/dist/approval-BW2WjPxY.js.map +0 -1
- package/dist/approval-BaD4Bmw6.js.map +0 -1
- package/dist/approvalHistory-B2gpQbFC.js.map +0 -1
- package/dist/approvalHistoryViewModal-DgLpv2ot.js.map +0 -1
- package/dist/approvalPageConfig-D0zPXOUf.js.map +0 -1
- package/dist/approveLeftConfig-BOU_UgHp.js.map +0 -1
- package/dist/codeHistoryViewModal-BfSjIbEU.js.map +0 -1
- package/dist/columnTables-DLwtgcC7.js.map +0 -1
- package/dist/core-Cv0Erg9E.js.map +0 -1
- package/dist/dataStoreSettingHistoryViewModal-D_so-KLp.js.map +0 -1
- package/dist/debugCode-Cm9-WiUG.js.map +0 -1
- package/dist/debugCode-dD1YnQSD.js.map +0 -1
- package/dist/default-VdDMlY4e.js.map +0 -1
- package/dist/example_code-C_xF8RRG.js.map +0 -1
- package/dist/flowHistoryViewModal-D8DJP7Te.js.map +0 -1
- package/dist/index.js.map +0 -1
- package/dist/init-plugin-fQTSQzui.js.map +0 -1
- package/dist/leftColumn-CsPjufue.js.map +0 -1
- package/dist/middleColumn-C7M6-eVo.js.map +0 -1
- package/dist/recordActions-BgFlNsGU.js.map +0 -1
- package/dist/settingsState-CI81PG-i.js.map +0 -1
- package/dist/tableConfig-uLXue-BS.js.map +0 -1
- package/dist/tableModal-BcYfVL02.js.map +0 -1
- package/dist/useApprovalRecordActions-BQ6MgV2L.js.map +0 -1
- package/dist/utils-CLet2gLV.js.map +0 -1
- package/dist/v0001-OaBeBCXI.js.map +0 -1
- package/dist/viewer-Dv3kQsMf.js.map +0 -1
- package/dist/vue-print-next-HRweUmNi.js.map +0 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { c as e, v as t } from "./init-plugin-fQTSQzui.js";
|
|
2
|
-
import { v as n } from "./utils-
|
|
3
|
-
import { t as r } from "./ActionsConfig-
|
|
2
|
+
import { v as n } from "./utils-B1lkML14.js";
|
|
3
|
+
import { t as r } from "./ActionsConfig-BrfcGMc2.js";
|
|
4
4
|
import { createElementBlock as i, createElementVNode as a, createTextVNode as o, createVNode as s, defineComponent as c, onMounted as l, onUnmounted as u, openBlock as d, reactive as f, ref as p, resolveComponent as m, withCtx as h } from "vue";
|
|
5
5
|
import { debounce as g } from "lodash";
|
|
6
6
|
import _ from "mitt";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { On as e } from "./viewer-
|
|
1
|
+
import { On as e } from "./viewer-C_OHXXRU.js";
|
|
2
2
|
import { _ as t, f as n, l as r, o as i, p as a, r as o, s, v as c } from "./init-plugin-fQTSQzui.js";
|
|
3
|
-
import {
|
|
3
|
+
import { A as l, D as u, E as d, a as f, f as p, i as m, m as h, n as g, r as _, s as v, t as y, v as b } from "./utils-B1lkML14.js";
|
|
4
4
|
import { r as x } from "./settingsState-CI81PG-i.js";
|
|
5
5
|
import { t as S } from "./JsonTags-BbWLqghI.js";
|
|
6
|
-
import { n as C, t as w } from "./ActionsConfig-
|
|
6
|
+
import { n as C, t as w } from "./ActionsConfig-BrfcGMc2.js";
|
|
7
7
|
import { Fragment as T, computed as E, createBlock as D, createCommentVNode as O, createElementBlock as k, createElementVNode as A, createTextVNode as j, createVNode as M, defineComponent as N, nextTick as P, normalizeClass as F, normalizeStyle as I, onMounted as L, onUnmounted as R, openBlock as z, reactive as B, ref as V, renderList as H, resolveComponent as U, toDisplayString as W, watch as G, withCtx as K, withKeys as q, withModifiers as J } from "vue";
|
|
8
8
|
import { CheckOutlined as Y, CloseCircleOutlined as X, CloseOutlined as ee, EditOutlined as Z, LeftSquareOutlined as te, LeftSquareTwoTone as ne, PlusOutlined as re, RightSquareOutlined as ie, RightSquareTwoTone as ae } from "@ant-design/icons-vue";
|
|
9
9
|
import { message as Q } from "ant-design-vue";
|
|
@@ -300,7 +300,7 @@ var me = N({
|
|
|
300
300
|
value: e
|
|
301
301
|
}));
|
|
302
302
|
return G(() => e.modelType, async (e) => {
|
|
303
|
-
i.value = await
|
|
303
|
+
i.value = await p(e);
|
|
304
304
|
}, { immediate: !0 }), L(() => {
|
|
305
305
|
if (e.dataSource?.length > 0) {
|
|
306
306
|
if (!Array.isArray(e.dataSource[0])) {
|
|
@@ -551,7 +551,7 @@ var je = /* @__PURE__ */ c(Ee, [["render", Ae], ["__scopeId", "data-v-85d6a01a"]
|
|
|
551
551
|
},
|
|
552
552
|
emits: ["update:dataSource"],
|
|
553
553
|
setup(e, { emit: n }) {
|
|
554
|
-
let { t: r } = ce(), a = V(0), s = t().currentOrg, c = V([]),
|
|
554
|
+
let { t: r } = ce(), a = V(0), s = t().currentOrg, c = V([]), u = V([]), f = V([]), p = V([]), m = V({}), h = V({}), g = [{
|
|
555
555
|
title: r("列名称"),
|
|
556
556
|
dataIndex: "title",
|
|
557
557
|
key: "title",
|
|
@@ -629,7 +629,7 @@ var je = /* @__PURE__ */ c(Ee, [["render", Ae], ["__scopeId", "data-v-85d6a01a"]
|
|
|
629
629
|
], y = oe(() => {
|
|
630
630
|
a.value = window.innerHeight - 165;
|
|
631
631
|
}, 200), b = () => {
|
|
632
|
-
n("update:dataSource",
|
|
632
|
+
n("update:dataSource", f.value);
|
|
633
633
|
};
|
|
634
634
|
function x(e, t) {
|
|
635
635
|
e.disabled = !1, e.name != null && t.has(e.name) && (e.disabled = !0), e.children && Array.isArray(e.children) && e.children.forEach((e) => {
|
|
@@ -638,7 +638,7 @@ var je = /* @__PURE__ */ c(Ee, [["render", Ae], ["__scopeId", "data-v-85d6a01a"]
|
|
|
638
638
|
}
|
|
639
639
|
let S = (e) => {
|
|
640
640
|
e.forEach((e) => {
|
|
641
|
-
|
|
641
|
+
m.value[e.name] = e, Array.isArray(e.children) && S(e.children);
|
|
642
642
|
});
|
|
643
643
|
}, C = () => {
|
|
644
644
|
let e = /* @__PURE__ */ new Set();
|
|
@@ -647,17 +647,17 @@ var je = /* @__PURE__ */ c(Ee, [["render", Ae], ["__scopeId", "data-v-85d6a01a"]
|
|
|
647
647
|
e.add(n.dataIndex), n.children && Array.isArray(n.children) && t(n.children);
|
|
648
648
|
});
|
|
649
649
|
}
|
|
650
|
-
t(
|
|
650
|
+
t(f.value), u.value.forEach((t) => {
|
|
651
651
|
x(t, e);
|
|
652
|
-
}),
|
|
652
|
+
}), u.value = [].concat(u.value);
|
|
653
653
|
};
|
|
654
654
|
L(async () => {
|
|
655
|
-
if (window.addEventListener("resize", y), y(),
|
|
655
|
+
if (window.addEventListener("resize", y), y(), f.value = e.dataSource || [], e.modelType) {
|
|
656
656
|
let t = e.modelType.split("-"), n = `${t[0]}/obtain_${t[1]}_column_data`;
|
|
657
|
-
|
|
657
|
+
u.value = l(await i({
|
|
658
658
|
org_id: s?.id,
|
|
659
659
|
is_base_column: !0
|
|
660
|
-
}, n, !1, { skip_error: !0 }) || []), S(
|
|
660
|
+
}, n, !1, { skip_error: !0 }) || []), S(u.value);
|
|
661
661
|
}
|
|
662
662
|
U(), C(), b();
|
|
663
663
|
}), R(() => {
|
|
@@ -677,7 +677,7 @@ var je = /* @__PURE__ */ c(Ee, [["render", Ae], ["__scopeId", "data-v-85d6a01a"]
|
|
|
677
677
|
}), E = B({
|
|
678
678
|
type: "checkbox",
|
|
679
679
|
onChange: (e) => {
|
|
680
|
-
|
|
680
|
+
p.value = e;
|
|
681
681
|
},
|
|
682
682
|
getCheckboxProps: (e) => ({
|
|
683
683
|
disabled: e.dataIndex === "index" || e.dataIndex === "action",
|
|
@@ -703,18 +703,18 @@ var je = /* @__PURE__ */ c(Ee, [["render", Ae], ["__scopeId", "data-v-85d6a01a"]
|
|
|
703
703
|
sorter: "sorter",
|
|
704
704
|
summary: "approve_summary",
|
|
705
705
|
cellSummaryComponent: "cellSummaryComponent"
|
|
706
|
-
}), t.fixed = void 0, t.autoHeight = !1, t.autoWidth = !1, t.width = 150, t.resizable = !0, e.disabled = !0, e.cellComponent ? t.ellipsis = !1 : t.ellipsis = !0,
|
|
706
|
+
}), t.fixed = void 0, t.autoHeight = !1, t.autoWidth = !1, t.width = 150, t.resizable = !0, e.disabled = !0, e.cellComponent ? t.ellipsis = !1 : t.ellipsis = !0, f.value.push(t);
|
|
707
707
|
}
|
|
708
708
|
e.children && Array.isArray(e.children) && O(e.children);
|
|
709
709
|
});
|
|
710
710
|
}, k = () => {
|
|
711
|
-
O(
|
|
711
|
+
O(u.value), c.value.length = 0, u.value = [].concat(u.value), f.value = [].concat(f.value), b();
|
|
712
712
|
}, A = (e) => {
|
|
713
713
|
e.forEach((e) => {
|
|
714
|
-
|
|
714
|
+
p.value.indexOf(e.name) > -1 && (e.disabled = !1), e.children && Array.isArray(e.children) && A(e.children);
|
|
715
715
|
});
|
|
716
716
|
}, j = () => {
|
|
717
|
-
|
|
717
|
+
f.value = f.value.filter((e) => p.value.indexOf(e.dataIndex) == -1), A(u.value), p.value.length = 0, f.value = [].concat(f.value), u.value = [].concat(u.value), b(), U();
|
|
718
718
|
}, M = (e, t) => {
|
|
719
719
|
let n, r = (e, t, i) => {
|
|
720
720
|
for (let a of t) if (a.dataIndex === i) return n = e, n;
|
|
@@ -723,15 +723,15 @@ var je = /* @__PURE__ */ c(Ee, [["render", Ae], ["__scopeId", "data-v-85d6a01a"]
|
|
|
723
723
|
return r(null, e, t);
|
|
724
724
|
}, N = ({ record: e, preTargetInfo: t, nextTargetInfo: n }) => new Promise((r, i) => {
|
|
725
725
|
if (t) {
|
|
726
|
-
let n = M(
|
|
727
|
-
t.record.dataIndex == n || n == M(
|
|
728
|
-
} else M(
|
|
726
|
+
let n = M(f.value, e.dataIndex);
|
|
727
|
+
t.record.dataIndex == n || n == M(f.value, t.record.dataIndex) ? r(!0) : i();
|
|
728
|
+
} else M(f.value, e.dataIndex) == M(f.value, n.record.dataIndex) ? r(!0) : i();
|
|
729
729
|
}).then(() => {
|
|
730
730
|
setTimeout(() => {
|
|
731
731
|
b();
|
|
732
732
|
}, 200);
|
|
733
733
|
}), P = () => {
|
|
734
|
-
|
|
734
|
+
f.value = [].concat(f.value), b();
|
|
735
735
|
}, F = (e) => {
|
|
736
736
|
P();
|
|
737
737
|
}, I = (e, t) => {
|
|
@@ -740,7 +740,7 @@ var je = /* @__PURE__ */ c(Ee, [["render", Ae], ["__scopeId", "data-v-85d6a01a"]
|
|
|
740
740
|
!Array.isArray(n) && n.children && (n = n.children), n = n[e];
|
|
741
741
|
}), n;
|
|
742
742
|
}, z = (e) => {
|
|
743
|
-
let t =
|
|
743
|
+
let t = m.value[e.dataIndex];
|
|
744
744
|
if (t) {
|
|
745
745
|
let n = {
|
|
746
746
|
filters: "filters",
|
|
@@ -757,11 +757,11 @@ var je = /* @__PURE__ */ c(Ee, [["render", Ae], ["__scopeId", "data-v-85d6a01a"]
|
|
|
757
757
|
z(e) || (t[e.dataIndex] = e), e.children && Array.isArray(e.children) && Object.assign(t, H(e.children));
|
|
758
758
|
}), t;
|
|
759
759
|
}, U = () => {
|
|
760
|
-
h.value = H(
|
|
760
|
+
h.value = H(f.value);
|
|
761
761
|
}, W = (e) => {
|
|
762
762
|
G(e), b(), U();
|
|
763
763
|
}, G = (e) => {
|
|
764
|
-
let t =
|
|
764
|
+
let t = m.value[e.dataIndex];
|
|
765
765
|
if (t) {
|
|
766
766
|
let n = D(t, {
|
|
767
767
|
filterMultiple: "filterMultiple",
|
|
@@ -777,13 +777,13 @@ var je = /* @__PURE__ */ c(Ee, [["render", Ae], ["__scopeId", "data-v-85d6a01a"]
|
|
|
777
777
|
};
|
|
778
778
|
return {
|
|
779
779
|
selectedRowKeys: c,
|
|
780
|
-
allColumnsData:
|
|
780
|
+
allColumnsData: u,
|
|
781
781
|
columns: _,
|
|
782
782
|
rowSelection: T,
|
|
783
783
|
baseColumns: v,
|
|
784
|
-
baseColumnList:
|
|
784
|
+
baseColumnList: f,
|
|
785
785
|
baseRowSelection: E,
|
|
786
|
-
baseSelectKeys:
|
|
786
|
+
baseSelectKeys: p,
|
|
787
787
|
defaultColumns: g,
|
|
788
788
|
cellComponentList: o(),
|
|
789
789
|
customCell: w,
|
|
@@ -801,12 +801,12 @@ var je = /* @__PURE__ */ c(Ee, [["render", Ae], ["__scopeId", "data-v-85d6a01a"]
|
|
|
801
801
|
},
|
|
802
802
|
handleUpdateBaseColumn: W,
|
|
803
803
|
copyClick: (e) => {
|
|
804
|
-
e.column.key !== "operation" && (
|
|
804
|
+
e.column.key !== "operation" && (d(e.text), e.hidePopup());
|
|
805
805
|
},
|
|
806
806
|
changeCellComponent: F,
|
|
807
807
|
height: a,
|
|
808
808
|
emitData: b,
|
|
809
|
-
fieldMap:
|
|
809
|
+
fieldMap: m
|
|
810
810
|
};
|
|
811
811
|
}
|
|
812
812
|
}), Ne = { class: "column-title-container" }, Pe = { class: "column-title" }, Fe = { style: { width: "30px" } }, Ie = { class: "column-title-container" }, Le = { class: "column-title" }, Re = { class: "base-column-table" }, ze = {
|
|
@@ -1171,7 +1171,7 @@ var Ve = /* @__PURE__ */ c(Me, [["render", Be], ["__scopeId", "data-v-c244ceb9"]
|
|
|
1171
1171
|
"not_eq"
|
|
1172
1172
|
], e.record.class_name == "str" ? t.push("is_or_not_blank_or_null") : t.push("is_or_not_null")) : t = e.record.type == "remoteselectpro" ? r.remote : r[e.record.class_name] || [], t;
|
|
1173
1173
|
}),
|
|
1174
|
-
get_operator_type_map:
|
|
1174
|
+
get_operator_type_map: u
|
|
1175
1175
|
};
|
|
1176
1176
|
}
|
|
1177
1177
|
});
|
|
@@ -1212,7 +1212,7 @@ var We = /* @__PURE__ */ c(He, [["render", Ue]]), Ge = N({
|
|
|
1212
1212
|
t("change", e);
|
|
1213
1213
|
},
|
|
1214
1214
|
operator_list: E(() => e.record.operator_list),
|
|
1215
|
-
get_operator_type_map:
|
|
1215
|
+
get_operator_type_map: u
|
|
1216
1216
|
};
|
|
1217
1217
|
}
|
|
1218
1218
|
});
|
|
@@ -1703,11 +1703,11 @@ var $e = /* @__PURE__ */ c(Xe, [["render", Qe], ["__scopeId", "data-v-2b292566"]
|
|
|
1703
1703
|
}
|
|
1704
1704
|
},
|
|
1705
1705
|
setup(e) {
|
|
1706
|
-
let t = x(), n = V(!1), r = V(!1), a = V([]), o = V([]), c = V([]), l = V({}), u =
|
|
1707
|
-
label:
|
|
1706
|
+
let t = x(), n = V(!1), r = V(!1), a = V([]), o = V([]), c = V([]), l = V({}), u = m.map((e) => ({
|
|
1707
|
+
label: f[e] || e,
|
|
1708
1708
|
value: e
|
|
1709
|
-
})),
|
|
1710
|
-
e ?
|
|
1709
|
+
})), d = V([...y, ...m]), p = E(() => y.every((e) => d.value.includes(e))), h = E(() => !p.value && y.some((e) => d.value.includes(e))), b = (e) => {
|
|
1710
|
+
e ? d.value = [...new Set([...d.value, ...y])] : d.value = d.value.filter((e) => !y.includes(e));
|
|
1711
1711
|
}, S = V("standard"), C = Object.keys(_).map((e) => ({
|
|
1712
1712
|
label: _[e],
|
|
1713
1713
|
value: e
|
|
@@ -1719,7 +1719,7 @@ var $e = /* @__PURE__ */ c(Xe, [["render", Qe], ["__scopeId", "data-v-2b292566"]
|
|
|
1719
1719
|
menu_flag: e.state,
|
|
1720
1720
|
name: e.name || e.state
|
|
1721
1721
|
};
|
|
1722
|
-
}, k = E(() => O()), A = E(() => !!e.dataSource?.id && !!k.value && D.value.length > 0 &&
|
|
1722
|
+
}, k = E(() => O()), A = E(() => !!e.dataSource?.id && !!k.value && D.value.length > 0 && d.value.length > 0), j = V([]), M = V({}), N = V({}), P = V(""), F = (e, n, r) => {
|
|
1723
1723
|
let i = [];
|
|
1724
1724
|
for (let a of e || []) {
|
|
1725
1725
|
let e = a.is_flow_node ? `flow_node_${n}_${a.id}` : `flow_org_${n}_${a.id}`, o = !!a.is_flow_node && a.menu_flag === t.selectNode?.state && `${a.org_id ?? n}` == `${s() ?? ""}`;
|
|
@@ -1842,8 +1842,8 @@ var $e = /* @__PURE__ */ c(Xe, [["render", Qe], ["__scopeId", "data-v-2b292566"]
|
|
|
1842
1842
|
checkedKeys: o,
|
|
1843
1843
|
expandedKeys: c,
|
|
1844
1844
|
tableFieldOptions: u,
|
|
1845
|
-
fields:
|
|
1846
|
-
baseChecked:
|
|
1845
|
+
fields: d,
|
|
1846
|
+
baseChecked: p,
|
|
1847
1847
|
baseIndeterminate: h,
|
|
1848
1848
|
toggleBase: b,
|
|
1849
1849
|
syncMode: S,
|
|
@@ -1895,12 +1895,12 @@ var $e = /* @__PURE__ */ c(Xe, [["render", Qe], ["__scopeId", "data-v-2b292566"]
|
|
|
1895
1895
|
Q.warning(`${n.join("、")} 未保存页面配置,需保存后才能同步`);
|
|
1896
1896
|
return;
|
|
1897
1897
|
}
|
|
1898
|
-
if (
|
|
1898
|
+
if (d.value.length === 0) {
|
|
1899
1899
|
Q.warning("请选择要同步的配置项");
|
|
1900
1900
|
return;
|
|
1901
1901
|
}
|
|
1902
|
-
let { data: a, fields: o, skipped: s } = v(e.dataSource,
|
|
1903
|
-
if (s.length > 0 && Q.warning(`当前表格没有配置:${s.map((e) =>
|
|
1902
|
+
let { data: a, fields: o, skipped: s } = v(e.dataSource, d.value, S.value);
|
|
1903
|
+
if (s.length > 0 && Q.warning(`当前表格没有配置:${s.map((e) => f[e] || g[e] || e).join("、")},已跳过`), o.length === 0) {
|
|
1904
1904
|
Q.warning("所选配置项在当前表格中都不存在,没有可同步的内容");
|
|
1905
1905
|
return;
|
|
1906
1906
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { p as t, t as n } from "./columnTables-
|
|
1
|
+
import { T as e } from "./utils-B1lkML14.js";
|
|
2
|
+
import { p as t, t as n } from "./columnTables-DFwoawLF.js";
|
|
3
3
|
import { computed as r, createBlock as i, createCommentVNode as a, createElementBlock as o, createElementVNode as s, createTextVNode as c, createVNode as l, defineComponent as u, mergeModels as d, openBlock as f, ref as p, resolveComponent as m, toDisplayString as h, useModel as g, watch as _, withCtx as v } from "vue";
|
|
4
4
|
import { message as y } from "ant-design-vue";
|
|
5
5
|
//#region src/components/approval/components/tableModal.vue?vue&type=script&setup=true&lang.ts
|
|
@@ -1,31 +1,31 @@
|
|
|
1
|
-
import { t as e } from "./viewer-
|
|
1
|
+
import { t as e } from "./viewer-C_OHXXRU.js";
|
|
2
2
|
import { a as t, d as n, o as r, v as i } from "./init-plugin-fQTSQzui.js";
|
|
3
|
-
import { t as a } from "./recordActions-
|
|
3
|
+
import { t as a } from "./recordActions-3vqHADOf.js";
|
|
4
4
|
import { Fragment as o, computed as s, createBlock as c, createCommentVNode as l, createElementBlock as u, createElementVNode as d, createTextVNode as f, createVNode as p, defineComponent as m, onMounted as h, openBlock as g, reactive as _, ref as v, renderList as y, resolveComponent as b, toDisplayString as x, watch as S, withCtx as C } from "vue";
|
|
5
5
|
import { message as w } from "ant-design-vue";
|
|
6
6
|
//#region src/components/approval_for_details.vue?vue&type=script&setup=true&lang.ts
|
|
7
|
-
var T = { class: "form-container" },
|
|
7
|
+
var T = { class: "form-container" }, E = { class: "header-container" }, ee = { class: "serial-number" }, te = { class: "article-title" }, D = {
|
|
8
8
|
key: 0,
|
|
9
9
|
class: "modify-status"
|
|
10
|
-
},
|
|
10
|
+
}, O = {
|
|
11
11
|
class: "form-body descriptions",
|
|
12
12
|
style: { "padding-bottom": "10px" }
|
|
13
|
-
},
|
|
13
|
+
}, k = { class: "xinxi-title" }, A = { style: {
|
|
14
14
|
"white-space": "pre-line",
|
|
15
15
|
margin: "0",
|
|
16
16
|
color: "#909399"
|
|
17
|
-
} },
|
|
17
|
+
} }, j = { key: 0 }, M = { key: 0 }, ne = { style: {
|
|
18
18
|
overflow: "hidden",
|
|
19
19
|
"text-overflow": "ellipsis",
|
|
20
20
|
"white-space": "nowrap",
|
|
21
21
|
width: "100%",
|
|
22
22
|
"user-select": "text",
|
|
23
23
|
"text-align": "left"
|
|
24
|
-
} },
|
|
24
|
+
} }, re = { style: {
|
|
25
25
|
"white-space": "pre-line",
|
|
26
26
|
margin: "0",
|
|
27
27
|
color: "#909399"
|
|
28
|
-
} },
|
|
28
|
+
} }, ie = { key: 0 }, ae = { key: 0 }, oe = { style: {
|
|
29
29
|
overflow: "hidden",
|
|
30
30
|
"text-overflow": "ellipsis",
|
|
31
31
|
"white-space": "nowrap",
|
|
@@ -298,14 +298,14 @@ var T = { class: "form-container" }, ee = { class: "header-container" }, te = {
|
|
|
298
298
|
};
|
|
299
299
|
return (n, r) => {
|
|
300
300
|
let i = b("a-tag"), a = b("a-descriptions-item"), h = b("a-descriptions"), _ = b("a-button"), v = b("s-table");
|
|
301
|
-
return g(), u("div", T, [d("div",
|
|
302
|
-
d("div",
|
|
303
|
-
d("div",
|
|
304
|
-
m?.modify_status ? (g(), u("div",
|
|
301
|
+
return g(), u("div", T, [d("div", E, [
|
|
302
|
+
d("div", ee, "流程编码:" + x(t.record?.number), 1),
|
|
303
|
+
d("div", te, x(m?.context) + "(" + x(m?.flow_name) + ")", 1),
|
|
304
|
+
m?.modify_status ? (g(), u("div", D, [p(i, { color: le(m.modify_status) }, {
|
|
305
305
|
default: C(() => [f(x(m.modify_status), 1)]),
|
|
306
306
|
_: 1
|
|
307
307
|
}, 8, ["color"])])) : l("", !0)
|
|
308
|
-
]), d("div",
|
|
308
|
+
]), d("div", O, [
|
|
309
309
|
r[2] ||= d("div", {
|
|
310
310
|
class: "xinxi-title",
|
|
311
311
|
style: { "margin-top": "0" }
|
|
@@ -362,7 +362,7 @@ var T = { class: "form-container" }, ee = { class: "header-container" }, te = {
|
|
|
362
362
|
_: 1
|
|
363
363
|
}),
|
|
364
364
|
(g(!0), u(o, null, y(s.value, (e, t) => (g(), u(o, { key: t }, [
|
|
365
|
-
d("div",
|
|
365
|
+
d("div", k, x(e?.group_name ? e.group_name : "审批信息" + (t + 1)), 1),
|
|
366
366
|
p(h, {
|
|
367
367
|
bordered: "",
|
|
368
368
|
column: e?.column ? e?.column : 3
|
|
@@ -371,13 +371,13 @@ var T = { class: "form-container" }, ee = { class: "header-container" }, te = {
|
|
|
371
371
|
key: 0,
|
|
372
372
|
label: e.label
|
|
373
373
|
}, {
|
|
374
|
-
default: C(() => [d("p",
|
|
374
|
+
default: C(() => [d("p", A, x(e.value), 1)]),
|
|
375
375
|
_: 2
|
|
376
376
|
}, 1032, ["label"])) : e.type === "upload" ? (g(), c(a, {
|
|
377
377
|
key: 1,
|
|
378
378
|
label: e.label
|
|
379
379
|
}, {
|
|
380
|
-
default: C(() => [e.value && e.value?.length > 0 ? (g(!0), u(o, { key: 0 }, y(e.value, (e, t) => (g(), u(o, { key: t }, [t > 0 ? (g(), u("br",
|
|
380
|
+
default: C(() => [e.value && e.value?.length > 0 ? (g(!0), u(o, { key: 0 }, y(e.value, (e, t) => (g(), u(o, { key: t }, [t > 0 ? (g(), u("br", j)) : l("", !0), p(_, {
|
|
381
381
|
type: "link",
|
|
382
382
|
onClick: (t) => $(e.url)
|
|
383
383
|
}, {
|
|
@@ -414,7 +414,7 @@ var T = { class: "form-container" }, ee = { class: "header-container" }, te = {
|
|
|
414
414
|
size: "small",
|
|
415
415
|
stripe: ""
|
|
416
416
|
}, {
|
|
417
|
-
bodyCell: C(({ record: e, column: t, text: n, index: r }) => [t.dataIndex.includes("upload") ? (g(), u(o, { key: 0 }, [n && n?.length > 0 ? (g(!0), u(o, { key: 0 }, y(n, (e, t) => (g(), u(o, { key: t }, [t > 0 ? (g(), u("br",
|
|
417
|
+
bodyCell: C(({ record: e, column: t, text: n, index: r }) => [t.dataIndex.includes("upload") ? (g(), u(o, { key: 0 }, [n && n?.length > 0 ? (g(!0), u(o, { key: 0 }, y(n, (e, t) => (g(), u(o, { key: t }, [t > 0 ? (g(), u("br", M)) : l("", !0), p(_, {
|
|
418
418
|
title: e.name,
|
|
419
419
|
style: {
|
|
420
420
|
"padding-left": "1px",
|
|
@@ -423,7 +423,7 @@ var T = { class: "form-container" }, ee = { class: "header-container" }, te = {
|
|
|
423
423
|
type: "link",
|
|
424
424
|
onClick: (t) => $(e.url)
|
|
425
425
|
}, {
|
|
426
|
-
default: C(() => [d("span",
|
|
426
|
+
default: C(() => [d("span", ne, x(e.name), 1)]),
|
|
427
427
|
_: 2
|
|
428
428
|
}, 1032, ["title", "onClick"])], 64))), 128)) : l("", !0)], 64)) : (g(), u(o, { key: 1 }, [f(x(n), 1)], 64))]),
|
|
429
429
|
_: 1
|
|
@@ -442,13 +442,13 @@ var T = { class: "form-container" }, ee = { class: "header-container" }, te = {
|
|
|
442
442
|
key: 0,
|
|
443
443
|
label: e.label
|
|
444
444
|
}, {
|
|
445
|
-
default: C(() => [d("p",
|
|
445
|
+
default: C(() => [d("p", re, x(e.value), 1)]),
|
|
446
446
|
_: 2
|
|
447
447
|
}, 1032, ["label"])) : e.type === "upload" && !e.is_hide ? (g(), c(a, {
|
|
448
448
|
key: 1,
|
|
449
449
|
label: e.label
|
|
450
450
|
}, {
|
|
451
|
-
default: C(() => [e.value && e.value?.length > 0 ? (g(!0), u(o, { key: 0 }, y(e.value, (e, t) => (g(), u(o, { key: t }, [t > 0 ? (g(), u("br",
|
|
451
|
+
default: C(() => [e.value && e.value?.length > 0 ? (g(!0), u(o, { key: 0 }, y(e.value, (e, t) => (g(), u(o, { key: t }, [t > 0 ? (g(), u("br", ie)) : l("", !0), p(_, {
|
|
452
452
|
type: "link",
|
|
453
453
|
onClick: (t) => $(e.url)
|
|
454
454
|
}, {
|
|
@@ -483,7 +483,7 @@ var T = { class: "form-container" }, ee = { class: "header-container" }, te = {
|
|
|
483
483
|
size: "small",
|
|
484
484
|
stripe: ""
|
|
485
485
|
}, {
|
|
486
|
-
bodyCell: C(({ record: e, column: t, text: n, index: r }) => [t.dataIndex.includes("upload") ? (g(), u(o, { key: 0 }, [n && n?.length > 0 ? (g(!0), u(o, { key: 0 }, y(n, (e, t) => (g(), u(o, { key: t }, [t > 0 ? (g(), u("br",
|
|
486
|
+
bodyCell: C(({ record: e, column: t, text: n, index: r }) => [t.dataIndex.includes("upload") ? (g(), u(o, { key: 0 }, [n && n?.length > 0 ? (g(!0), u(o, { key: 0 }, y(n, (e, t) => (g(), u(o, { key: t }, [t > 0 ? (g(), u("br", ae)) : l("", !0), p(_, {
|
|
487
487
|
title: e.name,
|
|
488
488
|
style: {
|
|
489
489
|
"padding-left": "1px",
|
|
@@ -492,7 +492,7 @@ var T = { class: "form-container" }, ee = { class: "header-container" }, te = {
|
|
|
492
492
|
type: "link",
|
|
493
493
|
onClick: (t) => $(e.url)
|
|
494
494
|
}, {
|
|
495
|
-
default: C(() => [d("span",
|
|
495
|
+
default: C(() => [d("span", oe, x(e.name), 1)]),
|
|
496
496
|
_: 2
|
|
497
497
|
}, 1032, ["title", "onClick"])], 64))), 128)) : l("", !0)], 64)) : (g(), u(o, { key: 1 }, [f(x(n), 1)], 64))]),
|
|
498
498
|
_: 1
|
|
@@ -713,51 +713,51 @@ var T = { class: "form-container" }, ee = { class: "header-container" }, te = {
|
|
|
713
713
|
formModel: null,
|
|
714
714
|
isEdit: !1
|
|
715
715
|
}), G = (e) => {
|
|
716
|
-
let n = v(null), i = v(
|
|
716
|
+
let n = v(null), i = v(""), o = v(!1), c = v(!1), l = v({
|
|
717
717
|
edit_approve: !1,
|
|
718
718
|
cancel_agree_approve: !1,
|
|
719
719
|
print: !1
|
|
720
|
-
}),
|
|
720
|
+
}), u = v(!1), d = v(null), f = v(!1), p = v(null), m = s(() => {
|
|
721
721
|
let t = e.actions?.();
|
|
722
722
|
return {
|
|
723
723
|
...a(),
|
|
724
724
|
...t || {}
|
|
725
725
|
};
|
|
726
|
-
}),
|
|
726
|
+
}), h = s(() => e.modelType?.() || n.value?.menu_flag || i.value || ""), g = (e, n, r) => t(e, {
|
|
727
727
|
table_id: "approve-approve_record",
|
|
728
728
|
record: r,
|
|
729
729
|
context: W(),
|
|
730
730
|
settings: n.settings || {}
|
|
731
|
-
}),
|
|
731
|
+
}), _ = async (e) => {
|
|
732
732
|
if (!e || !n.value) return !1;
|
|
733
733
|
try {
|
|
734
|
-
return !(e.showCode?.enable && e.showCode?.code && !await
|
|
734
|
+
return !(e.showCode?.enable && e.showCode?.code && !await g(e.showCode.code, e, n.value) || e.disableCode?.enable && e.disableCode?.code && await g(e.disableCode.code, e, n.value));
|
|
735
735
|
} catch (e) {
|
|
736
736
|
return console.error("[useApproveRecordActions] 可用性判定脚本执行失败,按不可用处理", e), !1;
|
|
737
737
|
}
|
|
738
|
-
},
|
|
738
|
+
}, y = async () => {
|
|
739
739
|
let t = e.recordId();
|
|
740
740
|
if (!t) {
|
|
741
|
-
n.value = null,
|
|
741
|
+
n.value = null, c.value = !1, l.value = {
|
|
742
742
|
edit_approve: !1,
|
|
743
743
|
cancel_agree_approve: !1,
|
|
744
744
|
print: !1
|
|
745
745
|
};
|
|
746
746
|
return;
|
|
747
747
|
}
|
|
748
|
-
|
|
748
|
+
o.value = !0;
|
|
749
749
|
try {
|
|
750
|
-
n.value = await r({ approve_record_id: t }, "/approve/get_approve_record"),
|
|
751
|
-
let [
|
|
752
|
-
|
|
753
|
-
edit_approve:
|
|
754
|
-
cancel_agree_approve:
|
|
750
|
+
n.value = await r({ approve_record_id: t }, "/approve/get_approve_record"), n.value?.menu_flag && (i.value = n.value.menu_flag), c.value = !0;
|
|
751
|
+
let [a, o] = await Promise.all([_(m.value.edit_approve), _(m.value.cancel_agree_approve)]);
|
|
752
|
+
l.value = {
|
|
753
|
+
edit_approve: a,
|
|
754
|
+
cancel_agree_approve: o,
|
|
755
755
|
print: !!(e.getPrintElement && n.value)
|
|
756
756
|
};
|
|
757
757
|
} finally {
|
|
758
|
-
n.value || (
|
|
758
|
+
n.value || (c.value = !1), o.value = !1;
|
|
759
759
|
}
|
|
760
|
-
},
|
|
760
|
+
}, b = async () => {
|
|
761
761
|
let t = e.getPrintElement?.();
|
|
762
762
|
if (!t) {
|
|
763
763
|
w.error("未找到可打印的内容区域");
|
|
@@ -770,12 +770,12 @@ var T = { class: "form-container" }, ee = { class: "header-container" }, te = {
|
|
|
770
770
|
extraHead: "<style>@page { margin: 0mm; } body { padding: 10mm !important; box-sizing: border-box; }</style>",
|
|
771
771
|
...e.printOptions?.() || {}
|
|
772
772
|
});
|
|
773
|
-
},
|
|
773
|
+
}, x = async (e) => {
|
|
774
774
|
if (e === "print") {
|
|
775
|
-
await
|
|
775
|
+
await b();
|
|
776
776
|
return;
|
|
777
777
|
}
|
|
778
|
-
let t =
|
|
778
|
+
let t = m.value[e];
|
|
779
779
|
if (!t?.code) {
|
|
780
780
|
w.error(`未配置 ${e} 的执行代码`);
|
|
781
781
|
return;
|
|
@@ -786,7 +786,7 @@ var T = { class: "form-container" }, ee = { class: "header-container" }, te = {
|
|
|
786
786
|
}
|
|
787
787
|
let r;
|
|
788
788
|
try {
|
|
789
|
-
r = await
|
|
789
|
+
r = await g(t.code, t, n.value);
|
|
790
790
|
} catch (e) {
|
|
791
791
|
w.error(e?.message || "操作失败");
|
|
792
792
|
return;
|
|
@@ -797,7 +797,7 @@ var T = { class: "form-container" }, ee = { class: "header-container" }, te = {
|
|
|
797
797
|
w.error("代码未返回id");
|
|
798
798
|
return;
|
|
799
799
|
}
|
|
800
|
-
|
|
800
|
+
d.value = e, u.value = !0;
|
|
801
801
|
} else if (e === "cancel_agree_approve") {
|
|
802
802
|
let e = r?.ids;
|
|
803
803
|
if (!e?.length) {
|
|
@@ -808,35 +808,35 @@ var T = { class: "form-container" }, ee = { class: "header-container" }, te = {
|
|
|
808
808
|
w.error("每次仅能作废一个审批单");
|
|
809
809
|
return;
|
|
810
810
|
}
|
|
811
|
-
|
|
811
|
+
p.value = e[0], f.value = !0;
|
|
812
812
|
}
|
|
813
|
-
},
|
|
814
|
-
modelType:
|
|
815
|
-
approveRecordId:
|
|
816
|
-
onSaved: async () => {
|
|
817
|
-
await
|
|
813
|
+
}, C = (e) => !!l.value[e], T = s(() => ({
|
|
814
|
+
modelType: h.value,
|
|
815
|
+
approveRecordId: d.value,
|
|
816
|
+
onSaved: async (t) => {
|
|
817
|
+
await y(), e.onChange?.(), t?.committed && (u.value = !1);
|
|
818
818
|
}
|
|
819
|
-
})),
|
|
820
|
-
id:
|
|
819
|
+
})), E = s(() => ({
|
|
820
|
+
id: p.value,
|
|
821
821
|
onDone: async () => {
|
|
822
|
-
await
|
|
822
|
+
await y(), e.onChange?.();
|
|
823
823
|
}
|
|
824
824
|
}));
|
|
825
825
|
return S(() => e.recordId(), () => {
|
|
826
|
-
|
|
826
|
+
y();
|
|
827
827
|
}, { immediate: !0 }), {
|
|
828
828
|
record: n,
|
|
829
|
-
ready:
|
|
830
|
-
loading:
|
|
831
|
-
modelType:
|
|
832
|
-
availability:
|
|
833
|
-
canShow:
|
|
834
|
-
runAction:
|
|
835
|
-
editorOpen:
|
|
836
|
-
editorProps:
|
|
837
|
-
removeOpen:
|
|
838
|
-
removeProps:
|
|
839
|
-
reload:
|
|
829
|
+
ready: c,
|
|
830
|
+
loading: o,
|
|
831
|
+
modelType: h,
|
|
832
|
+
availability: l,
|
|
833
|
+
canShow: C,
|
|
834
|
+
runAction: x,
|
|
835
|
+
editorOpen: u,
|
|
836
|
+
editorProps: T,
|
|
837
|
+
removeOpen: f,
|
|
838
|
+
removeProps: E,
|
|
839
|
+
reload: y
|
|
840
840
|
};
|
|
841
841
|
};
|
|
842
842
|
//#endregion
|
|
@@ -71,6 +71,10 @@ var u = () => e(), d = [
|
|
|
71
71
|
label: "把(新建/修改)表单暂时保存,审批处于待提交状态(save_approve)",
|
|
72
72
|
value: "save_approve"
|
|
73
73
|
},
|
|
74
|
+
{
|
|
75
|
+
label: "保存(新建/修改)表单并立即提交,一步完成(save_and_commit_approve)",
|
|
76
|
+
value: "save_and_commit_approve"
|
|
77
|
+
},
|
|
74
78
|
{
|
|
75
79
|
label: "选择待提交/已通过(可修改)的审批进行编辑(edit_approve)",
|
|
76
80
|
value: "edit_approve"
|
|
@@ -417,4 +421,4 @@ var u = () => e(), d = [
|
|
|
417
421
|
};
|
|
418
422
|
};
|
|
419
423
|
//#endregion
|
|
420
|
-
export {
|
|
424
|
+
export { l as A, D as C, c as D, s as E, o as O, B as S, N as T, j as _, L as a, d as b, w as c, T as d, b as f, A as g, v as h, F as i, a as k, O as l, f as m, R as n, x as o, C as p, I as r, V as s, P as t, p as u, S as v, u as w, _ as x, M as y };
|