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