@guodun/antdv 1.3.0 → 1.3.1

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.
Files changed (36) hide show
  1. package/dist/es/components/contract-signing-location/src/ContractSigningLocation.vue.mjs +241 -236
  2. package/dist/es/components/pro-contract-signing-flow/src/ContractSigningFlowCanvas.vue.mjs +22 -19
  3. package/dist/es/components/pro-contract-signing-flow/src/ContractSigningFlowInspector.vue.mjs +173 -147
  4. package/dist/es/components/pro-contract-signing-flow/src/ProContractSigningFlow.vue.mjs +83 -74
  5. package/dist/es/components/pro-contract-signing-flow/src/composables/use-contract-signing-flow.mjs +32 -32
  6. package/dist/es/components/pro-contract-signing-flow/style/index.css +1 -1
  7. package/dist/es/components/pro-contract-template-designer/src/ProContractTemplateDesigner.vue.mjs +8 -4
  8. package/dist/es/components/pro-contract-template-designer/src/extensions/word-paste.mjs +24 -20
  9. package/dist/es/components/pro-contract-template-designer/src/utils/word-paste.mjs +112 -112
  10. package/dist/es/components/pro-contract-template-designer/style/index.css +1 -1
  11. package/dist/lib/components/contract-signing-location/src/ContractSigningLocation.vue.cjs +1 -1
  12. package/dist/lib/components/pro-contract-signing-flow/src/ContractSigningFlowCanvas.vue.cjs +1 -1
  13. package/dist/lib/components/pro-contract-signing-flow/src/ContractSigningFlowInspector.vue.cjs +1 -1
  14. package/dist/lib/components/pro-contract-signing-flow/src/ProContractSigningFlow.vue.cjs +1 -1
  15. package/dist/lib/components/pro-contract-signing-flow/src/composables/use-contract-signing-flow.cjs +1 -1
  16. package/dist/lib/components/pro-contract-signing-flow/style/index.css +1 -1
  17. package/dist/lib/components/pro-contract-template-designer/src/ProContractTemplateDesigner.vue.cjs +1 -1
  18. package/dist/lib/components/pro-contract-template-designer/src/extensions/word-paste.cjs +1 -1
  19. package/dist/lib/components/pro-contract-template-designer/src/utils/word-paste.cjs +2 -2
  20. package/dist/lib/components/pro-contract-template-designer/style/index.css +1 -1
  21. package/dist/theme/icon.css +1 -1
  22. package/dist/theme/index.css +1 -1
  23. package/dist/theme/pro-contract-signing-flow.css +1 -1
  24. package/dist/types/components/contract-signing-location/src/ContractSigningLocation.vue.d.ts +1 -0
  25. package/dist/types/components/contract-signing-location/src/types.d.ts +5 -0
  26. package/dist/types/components/pro-contract-signing-flow/src/ContractSigningFlowCanvas.vue.d.ts +24 -1
  27. package/dist/types/components/pro-contract-signing-flow/src/ContractSigningFlowInspector.vue.d.ts +1 -0
  28. package/dist/types/components/pro-contract-signing-flow/src/ProContractSigningFlow.vue.d.ts +25 -1
  29. package/dist/types/components/pro-contract-signing-flow/src/composables/use-contract-signing-flow.d.ts +6 -2
  30. package/dist/types/components/pro-contract-signing-flow/src/types.d.ts +5 -0
  31. package/dist/types/components/pro-contract-template-designer/src/ContractTemplateRendererHeader.vue.d.ts +1 -1
  32. package/dist/types/components/pro-contract-template-designer/src/ProContractTemplateRenderer.vue.d.ts +1 -1
  33. package/dist/types/components/pro-contract-template-designer/src/extensions/word-paste.d.ts +1 -1
  34. package/dist/types/components/pro-contract-template-designer/src/types.d.ts +1 -1
  35. package/dist/types/components/pro-contract-template-designer/src/utils/word-paste.d.ts +2 -0
  36. package/package.json +1 -1
@@ -1,12 +1,12 @@
1
1
  import e from "../../../node_modules/@ant-design/icons-vue/es/icons/PlusOutlined.mjs";
2
2
  import t from "./ContractSigningFlowNodeCard.mjs";
3
- import { Fragment as n, createBlock as r, createCommentVNode as i, createElementBlock as a, createElementVNode as o, createTextVNode as s, createVNode as c, defineComponent as l, openBlock as u, renderList as d, unref as f, withCtx as p } from "vue";
4
- import { Button as m } from "ant-design-vue";
3
+ import { Fragment as n, createBlock as r, createCommentVNode as i, createElementBlock as a, createElementVNode as o, createTextVNode as s, createVNode as c, defineComponent as l, openBlock as u, renderList as d, renderSlot as f, unref as p, withCtx as m } from "vue";
4
+ import { Button as h } from "ant-design-vue";
5
5
  //#region src/components/pro-contract-signing-flow/src/ContractSigningFlowCanvas.vue?vue&type=script&setup=true&lang.ts
6
- var h = { class: "gd-contract-signing-flow__canvas-panel" }, g = { class: "gd-contract-signing-flow__canvas-header" }, _ = { class: "gd-contract-signing-flow__canvas-scroll" }, v = { class: "gd-contract-signing-flow__canvas" }, y = {
6
+ var g = { class: "gd-contract-signing-flow__canvas-panel" }, _ = { class: "gd-contract-signing-flow__canvas-header" }, v = { class: "gd-contract-signing-flow__canvas-actions" }, y = { class: "gd-contract-signing-flow__canvas-scroll" }, b = { class: "gd-contract-signing-flow__canvas" }, x = {
7
7
  key: 0,
8
8
  class: "gd-contract-signing-flow__connector"
9
- }, b = /* @__PURE__ */ l({
9
+ }, S = /* @__PURE__ */ l({
10
10
  __name: "ContractSigningFlowCanvas",
11
11
  props: {
12
12
  nodes: {},
@@ -20,18 +20,21 @@ var h = { class: "gd-contract-signing-flow__canvas-panel" }, g = { class: "gd-co
20
20
  "remove",
21
21
  "move"
22
22
  ],
23
- setup(l, { emit: b }) {
24
- let x = b;
25
- return (b, S) => (u(), a("section", h, [o("header", g, [S[3] ||= o("div", null, [o("h2", null, "签署流程"), o("p", null, "节点按从上到下的顺序依次执行")], -1), l.readonly ? i("", !0) : (u(), r(f(m), {
23
+ setup(l, { emit: S }) {
24
+ let C = S;
25
+ return (S, w) => (u(), a("section", g, [o("header", _, [w[3] ||= o("div", null, [o("h2", null, "签署流程"), o("p", null, "节点按从上到下的顺序依次执行")], -1), o("div", v, [f(S.$slots, "headerExtra", {
26
+ readonly: l.readonly,
27
+ disabled: l.disabled
28
+ }), l.readonly ? i("", !0) : (u(), r(p(h), {
26
29
  key: 0,
27
30
  type: "primary",
28
31
  disabled: l.disabled,
29
- onClick: S[0] ||= (e) => x("add")
32
+ onClick: w[0] ||= (e) => C("add")
30
33
  }, {
31
- icon: p(() => [c(f(e))]),
32
- default: p(() => [S[2] ||= s("添加签署节点", -1)]),
34
+ icon: m(() => [c(p(e))]),
35
+ default: m(() => [w[2] ||= s("添加签署节点", -1)]),
33
36
  _: 1
34
- }, 8, ["disabled"]))]), o("div", _, [o("div", v, [(u(!0), a(n, null, d(l.nodes, (e, n) => (u(), a("div", {
37
+ }, 8, ["disabled"]))])]), o("div", y, [o("div", b, [(u(!0), a(n, null, d(l.nodes, (e, n) => (u(), a("div", {
35
38
  key: e.key,
36
39
  class: "gd-contract-signing-flow__step"
37
40
  }, [c(t, {
@@ -41,9 +44,9 @@ var h = { class: "gd-contract-signing-flow__canvas-panel" }, g = { class: "gd-co
41
44
  disabled: l.disabled,
42
45
  "can-move-up": n > 1,
43
46
  "can-move-down": n < l.nodes.length - 2,
44
- onSelect: (t) => x("select", e),
45
- onRemove: (t) => x("remove", e),
46
- onMove: (t) => x("move", e, t)
47
+ onSelect: (t) => C("select", e),
48
+ onRemove: (t) => C("remove", e),
49
+ onMove: (t) => C("move", e, t)
47
50
  }, null, 8, [
48
51
  "node",
49
52
  "selected",
@@ -54,18 +57,18 @@ var h = { class: "gd-contract-signing-flow__canvas-panel" }, g = { class: "gd-co
54
57
  "onSelect",
55
58
  "onRemove",
56
59
  "onMove"
57
- ]), n < l.nodes.length - 1 ? (u(), a("div", y, [...S[4] ||= [o("span", null, null, -1), o("i", null, null, -1)]])) : i("", !0)]))), 128)), l.readonly ? i("", !0) : (u(), r(f(m), {
60
+ ]), n < l.nodes.length - 1 ? (u(), a("div", x, [...w[4] ||= [o("span", null, null, -1), o("i", null, null, -1)]])) : i("", !0)]))), 128)), l.readonly ? i("", !0) : (u(), r(p(h), {
58
61
  key: 0,
59
62
  class: "gd-contract-signing-flow__add-node",
60
63
  type: "dashed",
61
64
  disabled: l.disabled,
62
- onClick: S[1] ||= (e) => x("add")
65
+ onClick: w[1] ||= (e) => C("add")
63
66
  }, {
64
- icon: p(() => [c(f(e))]),
65
- default: p(() => [S[5] ||= s("添加签署节点", -1)]),
67
+ icon: m(() => [c(p(e))]),
68
+ default: m(() => [w[5] ||= s("添加签署节点", -1)]),
66
69
  _: 1
67
70
  }, 8, ["disabled"]))])])]));
68
71
  }
69
72
  });
70
73
  //#endregion
71
- export { b as default };
74
+ export { S as default };
@@ -1,30 +1,45 @@
1
- import e from "../../../node_modules/@ant-design/icons-vue/es/icons/EnvironmentOutlined.mjs";
2
- import { CONTRACT_SIGNING_FLOW_SEAL_TYPES as t } from "./constants.mjs";
3
- import { Fragment as n, computed as r, createBlock as i, createCommentVNode as a, createElementBlock as o, createElementVNode as s, createTextVNode as c, createVNode as l, defineComponent as u, openBlock as d, renderList as f, toDisplayString as p, unref as m, withCtx as h } from "vue";
4
- import { Button as ee, Checkbox as g, Empty as _, Form as te, FormItem as v, Input as y, RadioGroup as b, Select as x, Switch as S, Tag as C } from "ant-design-vue";
1
+ import e from "../../../node_modules/@ant-design/icons-vue/es/icons/DownOutlined.mjs";
2
+ import t from "../../../node_modules/@ant-design/icons-vue/es/icons/EnvironmentOutlined.mjs";
3
+ import n from "../../../node_modules/@ant-design/icons-vue/es/icons/RightOutlined.mjs";
4
+ import { CONTRACT_SIGNING_FLOW_SEAL_TYPES as r } from "./constants.mjs";
5
+ import { Fragment as i, computed as a, createBlock as o, createCommentVNode as s, createElementBlock as c, createElementVNode as l, createTextVNode as u, createVNode as d, defineComponent as f, normalizeClass as ee, openBlock as p, ref as m, renderList as te, toDisplayString as h, unref as g, vShow as ne, withCtx as _, withDirectives as re } from "vue";
6
+ import { Button as ie, Checkbox as ae, Empty as v, Form as oe, FormItem as y, Input as b, RadioGroup as se, Select as x, Switch as S, Tag as C } from "ant-design-vue";
5
7
  //#region src/components/pro-contract-signing-flow/src/ContractSigningFlowInspector.vue?vue&type=script&setup=true&lang.ts
6
- var ne = { class: "gd-contract-signing-flow__inspector" }, re = { class: "gd-contract-signing-flow__inspector-header" }, ie = { class: "gd-contract-signing-flow__inspector-scroll" }, ae = { class: "gd-contract-signing-flow__form-section" }, oe = { class: "gd-contract-signing-flow__form-section" }, se = { class: "gd-contract-signing-flow__setting-list" }, ce = { class: "gd-contract-signing-flow__setting-row" }, le = { class: "gd-contract-signing-flow__form-section" }, w = { class: "gd-contract-signing-flow__section-heading" }, T = { class: "gd-contract-signing-flow__rule-grid" }, E = {
8
+ var ce = { class: "gd-contract-signing-flow__inspector" }, le = { class: "gd-contract-signing-flow__inspector-header" }, ue = { class: "gd-contract-signing-flow__inspector-scroll" }, de = { class: "gd-contract-signing-flow__form-section" }, fe = { class: "gd-contract-signing-flow__form-section" }, pe = { class: "gd-contract-signing-flow__setting-list" }, me = { class: "gd-contract-signing-flow__setting-row" }, w = { class: "gd-contract-signing-flow__form-section" }, T = { class: "gd-contract-signing-flow__section-heading" }, E = { class: "gd-contract-signing-flow__rule-grid" }, D = {
7
9
  key: 0,
8
10
  class: "gd-contract-signing-flow__seal-types"
9
- }, D = { class: "gd-contract-signing-flow__seal-list" }, O = { class: "gd-contract-signing-flow__form-section" }, k = { class: "gd-contract-signing-flow__setting-list is-compact" }, A = { class: "gd-contract-signing-flow__setting-row" }, j = { class: "gd-contract-signing-flow__setting-row" }, M = { class: "gd-contract-signing-flow__setting-row" }, N = { class: "gd-contract-signing-flow__setting-row" }, P = { class: "gd-contract-signing-flow__setting-row" }, F = { class: "gd-contract-signing-flow__setting-row" }, I = { class: "gd-contract-signing-flow__setting-row" }, L = { class: "gd-contract-signing-flow__setting-row" }, R = { class: "gd-contract-signing-flow__form-section is-placement" }, z = { class: "gd-contract-signing-flow__section-heading" }, ue = {
11
+ }, O = { class: "gd-contract-signing-flow__seal-list" }, k = { class: "gd-contract-signing-flow__section-heading-meta" }, A = { class: "gd-contract-signing-flow__setting-list is-compact" }, j = { class: "gd-contract-signing-flow__setting-row" }, M = { class: "gd-contract-signing-flow__setting-row" }, N = { class: "gd-contract-signing-flow__setting-row" }, P = { class: "gd-contract-signing-flow__setting-row" }, F = { class: "gd-contract-signing-flow__setting-row" }, I = { class: "gd-contract-signing-flow__setting-row" }, L = { class: "gd-contract-signing-flow__setting-row" }, R = { class: "gd-contract-signing-flow__setting-row" }, z = {
12
+ key: 0,
13
+ class: "gd-contract-signing-flow__form-section is-placement"
14
+ }, B = { class: "gd-contract-signing-flow__section-heading" }, he = {
10
15
  key: 1,
11
16
  class: "gd-contract-signing-flow__node-overview"
12
- }, B = { class: "gd-contract-signing-flow__node-overview-icon" }, V = /* @__PURE__ */ u({
17
+ }, ge = { class: "gd-contract-signing-flow__node-overview-icon" }, V = /* @__PURE__ */ f({
13
18
  __name: "ContractSigningFlowInspector",
14
19
  props: {
15
20
  node: {},
16
21
  readonly: { type: Boolean },
17
- disabled: { type: Boolean }
22
+ disabled: { type: Boolean },
23
+ showPlacement: { type: Boolean }
18
24
  },
19
25
  emits: ["change", "placementRequest"],
20
- setup(u, { emit: V }) {
21
- let H = u, U = V, W = r(() => H.readonly || H.disabled), de = [{
26
+ setup(f, { emit: V }) {
27
+ let H = f, U = m(!1), _e = [
28
+ "smsVerify",
29
+ "faceVerify",
30
+ "passwordVerify",
31
+ "noneVerify",
32
+ "refuseFunctionEnable",
33
+ "batchFunctionEnable",
34
+ "perforationSealEnable",
35
+ "cannotExtraLocations"
36
+ ], W = V, G = a(() => H.readonly || H.disabled), ve = [{
22
37
  label: "个人",
23
38
  value: "person"
24
39
  }, {
25
40
  label: "企业",
26
41
  value: "company"
27
- }], G = [
42
+ }], K = [
28
43
  {
29
44
  label: "必须",
30
45
  value: "must"
@@ -37,27 +52,27 @@ var ne = { class: "gd-contract-signing-flow__inspector" }, re = { class: "gd-con
37
52
  label: "禁止",
38
53
  value: "forbid"
39
54
  }
40
- ], fe = [{
55
+ ], ye = [{
41
56
  label: "任一人通过",
42
57
  value: "ONE_PASS"
43
58
  }, {
44
59
  label: "全部人通过",
45
60
  value: "ALL_PASS"
46
61
  }];
47
- function K(e) {
48
- if (!H.node || W.value) return;
62
+ function q(e) {
63
+ if (!H.node || G.value) return;
49
64
  let t = JSON.parse(JSON.stringify(H.node));
50
- e(t), U("change", t);
65
+ e(t), W("change", t);
51
66
  }
52
- function q() {
67
+ function J() {
53
68
  return H.node?.config.signRule;
54
69
  }
55
- function J(e) {
56
- let t = q();
70
+ function Y(e) {
71
+ let t = J();
57
72
  return t ? e === "signature" ? t.mustSignature ? "must" : t.cannotSignature ? "forbid" : "allow" : t.mustSeal ? "must" : t.cannotSeal ? "forbid" : "allow" : "allow";
58
73
  }
59
- function Y(e, t) {
60
- t !== "must" && t !== "allow" && t !== "forbid" || K((n) => {
74
+ function X(e, t) {
75
+ t !== "must" && t !== "allow" && t !== "forbid" || q((n) => {
61
76
  let r = n.config.signRule;
62
77
  if (e === "signature") {
63
78
  r.mustSignature = t === "must", r.cannotSignature = t === "forbid";
@@ -66,26 +81,26 @@ var ne = { class: "gd-contract-signing-flow__inspector" }, re = { class: "gd-con
66
81
  r.mustSeal = t === "must", r.cannotSeal = t === "forbid", t === "must" && !r.sealType.length && (r.sealType = ["01"]), t === "forbid" && (r.sealType = []);
67
82
  });
68
83
  }
69
- function X(e, t) {
70
- K((n) => {
84
+ function Z(e, t) {
85
+ q((n) => {
71
86
  e === "description" ? n.description = t || null : n[e] = t;
72
87
  });
73
88
  }
74
- function pe(e) {
75
- e !== "person" && e !== "company" || K((t) => {
89
+ function be(e) {
90
+ e !== "person" && e !== "company" || q((t) => {
76
91
  if (t.identity = e, e === "person") {
77
92
  let e = t.config.signRule;
78
93
  e.cannotSeal = !0, e.mustSeal = !1, e.sealType = [], e.perforationSealEnable = !1;
79
94
  }
80
95
  });
81
96
  }
82
- function me(e) {
83
- K((t) => {
97
+ function xe(e) {
98
+ q((t) => {
84
99
  t.multi = e === !0;
85
100
  });
86
101
  }
87
- function he(e) {
88
- e !== "ONE_PASS" && e !== "ALL_PASS" || K((t) => {
102
+ function Se(e) {
103
+ e !== "ONE_PASS" && e !== "ALL_PASS" || q((t) => {
89
104
  t.multiCompletedCondition = {
90
105
  ...t.multiCompletedCondition || {
91
106
  refusedType: "ONE_PASS",
@@ -95,215 +110,226 @@ var ne = { class: "gd-contract-signing-flow__inspector" }, re = { class: "gd-con
95
110
  };
96
111
  });
97
112
  }
98
- function ge(e, t) {
99
- K((n) => {
113
+ function Ce(e, t) {
114
+ q((n) => {
100
115
  let r = n.config.signRule;
101
116
  r.sealType = t === !0 ? Array.from(new Set([...r.sealType, e])) : r.sealType.filter((t) => t !== e);
102
117
  });
103
118
  }
104
- function Z(e, t) {
105
- K((n) => {
119
+ function Q(e, t) {
120
+ q((n) => {
106
121
  n.config.signRule[e] = t === !0;
107
122
  });
108
123
  }
109
- function Q(e, t) {
110
- K((n) => {
124
+ function $(e, t) {
125
+ q((n) => {
111
126
  let r = n.config.signRule;
112
127
  r[e] = t === !0, t === !0 && (e === "noneVerify" ? (r.smsVerify = !1, r.faceVerify = !1, r.passwordVerify = !1) : r.noneVerify = !1);
113
128
  });
114
129
  }
115
- function $() {
116
- let e = q();
130
+ function we() {
131
+ let e = J();
117
132
  return e ? e.mustSeal ? "必须印章" : e.cannotSignature ? "仅印章" : e.cannotSeal ? "仅签名" : "签名可选" : "未配置";
118
133
  }
119
- function _e(e) {
134
+ let Te = a(() => {
135
+ let e = J();
136
+ return e ? _e.filter((t) => e[t] === !0).length : 0;
137
+ });
138
+ function Ee(e) {
120
139
  return e === "sign" ? "签署节点" : e === "start" ? "开始节点" : e === "end" ? "结束节点" : "异常节点";
121
140
  }
122
- return (r, V) => (d(), o("aside", ne, [u.node ? (d(), o(n, { key: 0 }, [s("header", re, [s("div", null, [V[14] ||= s("h2", null, "节点配置", -1), s("p", null, p(u.node.name || "未命名节点"), 1)]), l(m(C), { color: u.node.type === "sign" ? "blue" : void 0 }, {
123
- default: h(() => [c(p(_e(u.node.type)), 1)]),
141
+ return (a, m) => (p(), c("aside", ce, [f.node ? (p(), c(i, { key: 0 }, [l("header", le, [l("div", null, [m[15] ||= l("h2", null, "节点配置", -1), l("p", null, h(f.node.name || "未命名节点"), 1)]), d(g(C), { color: f.node.type === "sign" ? "blue" : void 0 }, {
142
+ default: _(() => [u(h(Ee(f.node.type)), 1)]),
124
143
  _: 1
125
- }, 8, ["color"])]), s("div", ie, [u.node.type === "sign" ? (d(), o(n, { key: 0 }, [
126
- s("section", ae, [V[15] ||= s("div", { class: "gd-contract-signing-flow__section-heading" }, [s("h3", null, "基础信息")], -1), l(m(te), {
144
+ }, 8, ["color"])]), l("div", ue, [f.node.type === "sign" ? (p(), c(i, { key: 0 }, [
145
+ l("section", de, [m[16] ||= l("div", { class: "gd-contract-signing-flow__section-heading" }, [l("h3", null, "基础信息")], -1), d(g(oe), {
127
146
  layout: "vertical",
128
147
  class: "gd-contract-signing-flow__form"
129
148
  }, {
130
- default: h(() => [
131
- l(m(v), { label: "节点名称" }, {
132
- default: h(() => [l(m(y), {
133
- value: u.node.name,
134
- disabled: W.value,
149
+ default: _(() => [
150
+ d(g(y), { label: "节点名称" }, {
151
+ default: _(() => [d(g(b), {
152
+ value: f.node.name,
153
+ disabled: G.value,
135
154
  placeholder: "请输入节点名称",
136
- "onUpdate:value": V[0] ||= (e) => X("name", String(e))
155
+ "onUpdate:value": m[0] ||= (e) => Z("name", String(e))
137
156
  }, null, 8, ["value", "disabled"])]),
138
157
  _: 1
139
158
  }),
140
- l(m(v), { label: "节点标识" }, {
141
- default: h(() => [l(m(y), {
142
- value: u.node.customKey || "",
143
- disabled: W.value,
159
+ d(g(y), { label: "节点标识" }, {
160
+ default: _(() => [d(g(b), {
161
+ value: f.node.customKey || "",
162
+ disabled: G.value,
144
163
  placeholder: "请输入唯一标识",
145
- "onUpdate:value": V[1] ||= (e) => X("customKey", String(e))
164
+ "onUpdate:value": m[1] ||= (e) => Z("customKey", String(e))
146
165
  }, null, 8, ["value", "disabled"])]),
147
166
  _: 1
148
167
  }),
149
- l(m(v), { label: "节点描述" }, {
150
- default: h(() => [l(m(y).TextArea, {
151
- value: u.node.description || "",
152
- disabled: W.value,
168
+ d(g(y), { label: "节点描述" }, {
169
+ default: _(() => [d(g(b).TextArea, {
170
+ value: f.node.description || "",
171
+ disabled: G.value,
153
172
  "auto-size": {
154
173
  minRows: 2,
155
174
  maxRows: 4
156
175
  },
157
176
  placeholder: "请输入节点描述",
158
- "onUpdate:value": V[2] ||= (e) => X("description", String(e))
177
+ "onUpdate:value": m[2] ||= (e) => Z("description", String(e))
159
178
  }, null, 8, ["value", "disabled"])]),
160
179
  _: 1
161
180
  })
162
181
  ]),
163
182
  _: 1
164
183
  })]),
165
- s("section", oe, [
166
- V[17] ||= s("div", { class: "gd-contract-signing-flow__section-heading" }, [s("h3", null, "签署主体")], -1),
167
- l(m(b), {
168
- value: u.node.identity,
169
- options: de,
184
+ l("section", fe, [
185
+ m[18] ||= l("div", { class: "gd-contract-signing-flow__section-heading" }, [l("h3", null, "签署主体")], -1),
186
+ d(g(se), {
187
+ value: f.node.identity,
188
+ options: ve,
170
189
  "option-type": "button",
171
190
  "button-style": "solid",
172
- disabled: W.value,
173
- "onUpdate:value": pe
191
+ disabled: G.value,
192
+ "onUpdate:value": be
174
193
  }, null, 8, ["value", "disabled"]),
175
- s("div", se, [s("div", ce, [V[16] ||= s("div", null, [s("strong", null, "多人签署"), s("span", null, "允许多位签署人共同完成该节点")], -1), l(m(S), {
176
- checked: u.node.multi,
177
- disabled: W.value,
194
+ l("div", pe, [l("div", me, [m[17] ||= l("div", null, [l("strong", null, "多人签署"), l("span", null, "允许多位签署人共同完成该节点")], -1), d(g(S), {
195
+ checked: f.node.multi,
196
+ disabled: G.value,
178
197
  size: "small",
179
- "onUpdate:checked": me
180
- }, null, 8, ["checked", "disabled"])]), u.node.multi ? (d(), i(m(v), {
198
+ "onUpdate:checked": xe
199
+ }, null, 8, ["checked", "disabled"])]), f.node.multi ? (p(), o(g(y), {
181
200
  key: 0,
182
201
  label: "完成条件",
183
202
  class: "gd-contract-signing-flow__inline-form-item"
184
203
  }, {
185
- default: h(() => [l(m(x), {
186
- value: u.node.multiCompletedCondition?.type,
187
- options: fe,
188
- disabled: W.value,
189
- "onUpdate:value": he
204
+ default: _(() => [d(g(x), {
205
+ value: f.node.multiCompletedCondition?.type,
206
+ options: ye,
207
+ disabled: G.value,
208
+ "onUpdate:value": Se
190
209
  }, null, 8, ["value", "disabled"])]),
191
210
  _: 1
192
- })) : a("", !0)])
211
+ })) : s("", !0)])
193
212
  ]),
194
- s("section", le, [
195
- s("div", w, [V[18] ||= s("h3", null, "签署规则", -1), l(m(C), { color: "blue" }, {
196
- default: h(() => [c(p($()), 1)]),
213
+ l("section", w, [
214
+ l("div", T, [m[19] ||= l("h3", null, "签署规则", -1), d(g(C), { color: "blue" }, {
215
+ default: _(() => [u(h(we()), 1)]),
197
216
  _: 1
198
217
  })]),
199
- s("div", T, [l(m(v), { label: "个人签名" }, {
200
- default: h(() => [l(m(x), {
201
- value: J("signature"),
202
- options: G,
203
- disabled: W.value,
204
- "onUpdate:value": V[3] ||= (e) => Y("signature", e)
218
+ l("div", E, [d(g(y), { label: "个人签名" }, {
219
+ default: _(() => [d(g(x), {
220
+ value: Y("signature"),
221
+ options: K,
222
+ disabled: G.value,
223
+ "onUpdate:value": m[3] ||= (e) => X("signature", e)
205
224
  }, null, 8, ["value", "disabled"])]),
206
225
  _: 1
207
- }), u.node.identity === "company" ? (d(), i(m(v), {
226
+ }), f.node.identity === "company" ? (p(), o(g(y), {
208
227
  key: 0,
209
228
  label: "企业印章"
210
229
  }, {
211
- default: h(() => [l(m(x), {
212
- value: J("seal"),
213
- options: G,
214
- disabled: W.value,
215
- "onUpdate:value": V[4] ||= (e) => Y("seal", e)
230
+ default: _(() => [d(g(x), {
231
+ value: Y("seal"),
232
+ options: K,
233
+ disabled: G.value,
234
+ "onUpdate:value": m[4] ||= (e) => X("seal", e)
216
235
  }, null, 8, ["value", "disabled"])]),
217
236
  _: 1
218
- })) : a("", !0)]),
219
- u.node.identity === "company" && !q()?.cannotSeal ? (d(), o("div", E, [V[19] ||= s("span", { class: "gd-contract-signing-flow__field-label" }, "允许的印章类型", -1), s("div", D, [(d(!0), o(n, null, f(m(t), (e) => (d(), i(m(g), {
237
+ })) : s("", !0)]),
238
+ f.node.identity === "company" && !J()?.cannotSeal ? (p(), c("div", D, [m[20] ||= l("span", { class: "gd-contract-signing-flow__field-label" }, "允许的印章类型", -1), l("div", O, [(p(!0), c(i, null, te(g(r), (e) => (p(), o(g(ae), {
220
239
  key: e.value,
221
- checked: q()?.sealType.includes(e.value),
222
- disabled: W.value,
223
- "onUpdate:checked": (t) => ge(e.value, t)
240
+ checked: J()?.sealType.includes(e.value),
241
+ disabled: G.value,
242
+ "onUpdate:checked": (t) => Ce(e.value, t)
224
243
  }, {
225
- default: h(() => [c(p(e.label), 1)]),
244
+ default: _(() => [u(h(e.label), 1)]),
226
245
  _: 2
227
246
  }, 1032, [
228
247
  "checked",
229
248
  "disabled",
230
249
  "onUpdate:checked"
231
- ]))), 128))])])) : a("", !0)
250
+ ]))), 128))])])) : s("", !0)
232
251
  ]),
233
- s("section", O, [V[28] ||= s("div", { class: "gd-contract-signing-flow__section-heading" }, [s("h3", null, "验证与权限")], -1), s("div", k, [
234
- s("div", A, [V[20] ||= s("span", null, "短信验证", -1), l(m(S), {
235
- checked: q()?.smsVerify,
236
- disabled: W.value,
252
+ l("section", { class: ee(["gd-contract-signing-flow__form-section", { "is-collapsed": !U.value }]) }, [l("button", {
253
+ type: "button",
254
+ class: "gd-contract-signing-flow__section-heading is-toggle",
255
+ onClick: m[5] ||= (e) => U.value = !U.value
256
+ }, [m[21] ||= l("h3", null, "验证与权限", -1), l("span", k, [U.value ? s("", !0) : (p(), o(g(C), { key: 0 }, {
257
+ default: _(() => [u("已开启 " + h(Te.value) + " 项", 1)]),
258
+ _: 1
259
+ })), U.value ? (p(), o(g(e), { key: 2 })) : (p(), o(g(n), { key: 1 }))])]), re(l("div", A, [
260
+ l("div", j, [m[22] ||= l("span", null, "短信验证", -1), d(g(S), {
261
+ checked: J()?.smsVerify,
262
+ disabled: G.value,
237
263
  size: "small",
238
- "onUpdate:checked": V[5] ||= (e) => Q("smsVerify", e)
264
+ "onUpdate:checked": m[6] ||= (e) => $("smsVerify", e)
239
265
  }, null, 8, ["checked", "disabled"])]),
240
- s("div", j, [V[21] ||= s("span", null, "人脸验证", -1), l(m(S), {
241
- checked: q()?.faceVerify,
242
- disabled: W.value,
266
+ l("div", M, [m[23] ||= l("span", null, "人脸验证", -1), d(g(S), {
267
+ checked: J()?.faceVerify,
268
+ disabled: G.value,
243
269
  size: "small",
244
- "onUpdate:checked": V[6] ||= (e) => Q("faceVerify", e)
270
+ "onUpdate:checked": m[7] ||= (e) => $("faceVerify", e)
245
271
  }, null, 8, ["checked", "disabled"])]),
246
- s("div", M, [V[22] ||= s("span", null, "密码验证", -1), l(m(S), {
247
- checked: q()?.passwordVerify,
248
- disabled: W.value,
272
+ l("div", N, [m[24] ||= l("span", null, "密码验证", -1), d(g(S), {
273
+ checked: J()?.passwordVerify,
274
+ disabled: G.value,
249
275
  size: "small",
250
- "onUpdate:checked": V[7] ||= (e) => Q("passwordVerify", e)
276
+ "onUpdate:checked": m[8] ||= (e) => $("passwordVerify", e)
251
277
  }, null, 8, ["checked", "disabled"])]),
252
- s("div", N, [V[23] ||= s("span", null, "免验证", -1), l(m(S), {
253
- checked: q()?.noneVerify,
254
- disabled: W.value,
278
+ l("div", P, [m[25] ||= l("span", null, "免验证", -1), d(g(S), {
279
+ checked: J()?.noneVerify,
280
+ disabled: G.value,
255
281
  size: "small",
256
- "onUpdate:checked": V[8] ||= (e) => Q("noneVerify", e)
282
+ "onUpdate:checked": m[9] ||= (e) => $("noneVerify", e)
257
283
  }, null, 8, ["checked", "disabled"])]),
258
- s("div", P, [V[24] ||= s("span", null, "允许拒签", -1), l(m(S), {
259
- checked: q()?.refuseFunctionEnable,
260
- disabled: W.value,
284
+ l("div", F, [m[26] ||= l("span", null, "允许拒签", -1), d(g(S), {
285
+ checked: J()?.refuseFunctionEnable,
286
+ disabled: G.value,
261
287
  size: "small",
262
- "onUpdate:checked": V[9] ||= (e) => Z("refuseFunctionEnable", e)
288
+ "onUpdate:checked": m[10] ||= (e) => Q("refuseFunctionEnable", e)
263
289
  }, null, 8, ["checked", "disabled"])]),
264
- s("div", F, [V[25] ||= s("span", null, "批量签署", -1), l(m(S), {
265
- checked: q()?.batchFunctionEnable,
266
- disabled: W.value,
290
+ l("div", I, [m[27] ||= l("span", null, "批量签署", -1), d(g(S), {
291
+ checked: J()?.batchFunctionEnable,
292
+ disabled: G.value,
267
293
  size: "small",
268
- "onUpdate:checked": V[10] ||= (e) => Z("batchFunctionEnable", e)
294
+ "onUpdate:checked": m[11] ||= (e) => Q("batchFunctionEnable", e)
269
295
  }, null, 8, ["checked", "disabled"])]),
270
- s("div", I, [V[26] ||= s("span", null, "骑缝章", -1), l(m(S), {
271
- checked: q()?.perforationSealEnable,
272
- disabled: W.value || u.node.identity !== "company",
296
+ l("div", L, [m[28] ||= l("span", null, "骑缝章", -1), d(g(S), {
297
+ checked: J()?.perforationSealEnable,
298
+ disabled: G.value || f.node.identity !== "company",
273
299
  size: "small",
274
- "onUpdate:checked": V[11] ||= (e) => Z("perforationSealEnable", e)
300
+ "onUpdate:checked": m[12] ||= (e) => Q("perforationSealEnable", e)
275
301
  }, null, 8, ["checked", "disabled"])]),
276
- s("div", L, [V[27] ||= s("span", null, "禁止额外签署位置", -1), l(m(S), {
277
- checked: q()?.cannotExtraLocations,
278
- disabled: W.value,
302
+ l("div", R, [m[29] ||= l("span", null, "禁止额外签署位置", -1), d(g(S), {
303
+ checked: J()?.cannotExtraLocations,
304
+ disabled: G.value,
279
305
  size: "small",
280
- "onUpdate:checked": V[12] ||= (e) => Z("cannotExtraLocations", e)
306
+ "onUpdate:checked": m[13] ||= (e) => Q("cannotExtraLocations", e)
281
307
  }, null, 8, ["checked", "disabled"])])
282
- ])]),
283
- s("section", R, [s("div", z, [V[29] ||= s("div", null, [s("h3", null, "签署位置"), s("p", null, "由业务侧位置编辑器配置并回填")], -1), l(m(C), null, {
284
- default: h(() => [c(p(u.node.config.locationRules?.length || 0) + " 个", 1)]),
308
+ ], 512), [[ne, U.value]])], 2),
309
+ f.showPlacement === !1 ? s("", !0) : (p(), c("section", z, [l("div", B, [m[30] ||= l("div", null, [l("h3", null, "签署位置"), l("p", null, "由业务侧位置编辑器配置并回填")], -1), d(g(C), null, {
310
+ default: _(() => [u(h(f.node.config.locationRules?.length || 0) + " 个", 1)]),
285
311
  _: 1
286
- })]), l(m(ee), {
312
+ })]), d(g(ie), {
287
313
  block: "",
288
- disabled: u.disabled,
289
- onClick: V[13] ||= (e) => U("placementRequest")
314
+ disabled: f.disabled,
315
+ onClick: m[14] ||= (e) => W("placementRequest")
290
316
  }, {
291
- icon: h(() => [l(m(e))]),
292
- default: h(() => [V[30] ||= c("设置签署位置", -1)]),
317
+ icon: _(() => [d(g(t))]),
318
+ default: _(() => [m[31] ||= u("设置签署位置", -1)]),
293
319
  _: 1
294
- }, 8, ["disabled"])])
295
- ], 64)) : (d(), o("section", ue, [
296
- s("div", B, p(u.node.type === "start" ? "始" : u.node.type === "end" ? "终" : "!"), 1),
297
- s("h3", null, p(u.node.type === "start" ? "流程入口" : u.node.type === "end" ? "流程出口" : "异常节点"), 1),
298
- s("p", null, p(u.node.description || "该节点仅用于展示,不能编辑。"), 1),
299
- l(m(C), null, {
300
- default: h(() => [c(p(u.node.key), 1)]),
320
+ }, 8, ["disabled"])]))
321
+ ], 64)) : (p(), c("section", he, [
322
+ l("div", ge, h(f.node.type === "start" ? "始" : f.node.type === "end" ? "终" : "!"), 1),
323
+ l("h3", null, h(f.node.type === "start" ? "流程入口" : f.node.type === "end" ? "流程出口" : "异常节点"), 1),
324
+ l("p", null, h(f.node.description || "该节点仅用于展示,不能编辑。"), 1),
325
+ d(g(C), null, {
326
+ default: _(() => [u(h(f.node.key), 1)]),
301
327
  _: 1
302
328
  })
303
- ]))])], 64)) : (d(), i(m(_), {
329
+ ]))])], 64)) : (p(), o(g(v), {
304
330
  key: 1,
305
331
  class: "gd-contract-signing-flow__empty-inspector",
306
- image: m(_).PRESENTED_IMAGE_SIMPLE,
332
+ image: g(v).PRESENTED_IMAGE_SIMPLE,
307
333
  description: "请选择一个节点"
308
334
  }, null, 8, ["image"]))]));
309
335
  }