@fecp/designer 5.4.14 → 5.4.15
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/es/designer/package.json.mjs +1 -1
- package/es/designer/src/components/DocumentParam.vue.mjs +15 -17
- package/es/designer/src/packages/dataSource/dataSource.vue.mjs +1 -1
- package/es/designer/src/packages/form/aside/index.mjs +6 -2
- package/es/designer/src/packages/form/components/Contract.vue.mjs +80 -0
- package/es/designer/src/packages/form/components/Document.vue.mjs +27 -10
- package/es/designer/src/packages/form/index.vue.mjs +10 -17
- package/es/designer/src/packages/form/property/contract.vue.mjs +212 -0
- package/es/designer/src/packages/form/property/document.vue.mjs +3 -3
- package/es/designer/src/packages/form/property/index.vue.mjs +5 -2
- package/es/designer.css +196 -105
- package/es/packages/vue/src/components/bus/contract/Contract.vue.mjs +96 -0
- package/es/packages/vue/src/components/bus/contract/index.mjs +7 -0
- package/es/packages/vue/src/components/dialog/DialogRenderer.vue2.mjs +1 -1
- package/es/packages/vue/src/components/forms/formItem/FormItem.vue.mjs +10 -3
- package/es/packages/vue/src/components/forms/text/Text.vue.mjs +1 -1
- package/es/packages/vue/src/components/table/TableColumn.vue.mjs +1 -1
- package/es/packages/vue/src/composables/usePageEvents.mjs +1 -1
- package/es/packages/vue/src/utils/datasource.mjs +1 -1
- package/lib/designer/package.json.js +1 -1
- package/lib/designer/src/components/DocumentParam.vue.js +14 -16
- package/lib/designer/src/packages/dataSource/dataSource.vue.js +1 -1
- package/lib/designer/src/packages/form/aside/index.js +6 -2
- package/lib/designer/src/packages/form/components/Contract.vue.js +80 -0
- package/lib/designer/src/packages/form/components/Document.vue.js +26 -9
- package/lib/designer/src/packages/form/index.vue.js +10 -17
- package/lib/designer/src/packages/form/property/contract.vue.js +212 -0
- package/lib/designer/src/packages/form/property/document.vue.js +3 -3
- package/lib/designer/src/packages/form/property/index.vue.js +5 -2
- package/lib/designer.css +196 -105
- package/lib/packages/vue/src/components/bus/contract/Contract.vue.js +96 -0
- package/lib/packages/vue/src/components/bus/contract/index.js +7 -0
- package/lib/packages/vue/src/components/dialog/DialogRenderer.vue2.js +1 -1
- package/lib/packages/vue/src/components/forms/formItem/FormItem.vue.js +14 -7
- package/lib/packages/vue/src/components/forms/text/Text.vue.js +1 -1
- package/lib/packages/vue/src/components/table/TableColumn.vue.js +1 -1
- package/lib/packages/vue/src/composables/usePageEvents.js +1 -1
- package/lib/packages/vue/src/utils/datasource.js +1 -1
- package/package.json +1 -1
|
@@ -7,7 +7,7 @@ import "../../../node_modules/element-plus/es/index.mjs";
|
|
|
7
7
|
/* empty css */
|
|
8
8
|
/* empty css */
|
|
9
9
|
/* empty css */
|
|
10
|
-
import { computed, ref, createElementBlock, openBlock,
|
|
10
|
+
import { computed, ref, createElementBlock, openBlock, createBlock, unref, withCtx, createTextVNode, createElementVNode, Fragment, renderList, createVNode } from "vue";
|
|
11
11
|
import { Plus as plus_default, Delete as delete_default } from "../../../node_modules/@element-plus/icons-vue/dist/index.mjs";
|
|
12
12
|
import ValueSelector from "./ValueSelector.vue.mjs";
|
|
13
13
|
import api from "../api/index.mjs";
|
|
@@ -63,21 +63,19 @@ const _sfc_main = {
|
|
|
63
63
|
const _component_el_option = ElOption;
|
|
64
64
|
const _component_el_select = ElSelect;
|
|
65
65
|
return openBlock(), createElementBlock("div", _hoisted_1, [
|
|
66
|
-
params.value.length === 0 ? (openBlock(),
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
createTextVNode(" " + toDisplayString(unref(scenarioOptions)), 1)
|
|
80
|
-
], 64)) : (openBlock(), createElementBlock("div", _hoisted_2, [
|
|
66
|
+
params.value.length === 0 ? (openBlock(), createBlock(_component_el_button, {
|
|
67
|
+
key: 0,
|
|
68
|
+
type: "primary",
|
|
69
|
+
size: "small",
|
|
70
|
+
icon: unref(plus_default),
|
|
71
|
+
link: "",
|
|
72
|
+
onClick: addParam
|
|
73
|
+
}, {
|
|
74
|
+
default: withCtx(() => _cache[0] || (_cache[0] = [
|
|
75
|
+
createTextVNode(" 新增要件参数 ")
|
|
76
|
+
])),
|
|
77
|
+
_: 1
|
|
78
|
+
}, 8, ["icon"])) : (openBlock(), createElementBlock("div", _hoisted_2, [
|
|
81
79
|
_cache[2] || (_cache[2] = createElementVNode("div", { class: "param-header" }, [
|
|
82
80
|
createElementVNode("div", { class: "param-cell scenario-header" }, "业务场景"),
|
|
83
81
|
createElementVNode("div", { class: "param-cell key-header" }, "业务主键"),
|
|
@@ -152,7 +150,7 @@ const _sfc_main = {
|
|
|
152
150
|
};
|
|
153
151
|
}
|
|
154
152
|
};
|
|
155
|
-
const DocumentParam = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-
|
|
153
|
+
const DocumentParam = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-97d41de4"]]);
|
|
156
154
|
export {
|
|
157
155
|
DocumentParam as default
|
|
158
156
|
};
|
|
@@ -380,7 +380,7 @@ const _sfc_main = {
|
|
|
380
380
|
};
|
|
381
381
|
}
|
|
382
382
|
};
|
|
383
|
-
const DataSource = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-
|
|
383
|
+
const DataSource = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-b94fbb2f"]]);
|
|
384
384
|
export {
|
|
385
385
|
DataSource as default
|
|
386
386
|
};
|
|
@@ -168,7 +168,7 @@ const components = [
|
|
|
168
168
|
},
|
|
169
169
|
{
|
|
170
170
|
fieldType: "document",
|
|
171
|
-
label: "
|
|
171
|
+
label: "要件资料",
|
|
172
172
|
titleMode: "label",
|
|
173
173
|
isSupplement: true,
|
|
174
174
|
multiple: true,
|
|
@@ -188,7 +188,11 @@ const components = [
|
|
|
188
188
|
},
|
|
189
189
|
{
|
|
190
190
|
fieldType: "contract",
|
|
191
|
-
label: "
|
|
191
|
+
label: "合同信息",
|
|
192
|
+
titleMode: "label",
|
|
193
|
+
mode: "view",
|
|
194
|
+
genType: "1",
|
|
195
|
+
params: []
|
|
192
196
|
}
|
|
193
197
|
]
|
|
194
198
|
}
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
import "../../../../../node_modules/element-plus/es/index.mjs";
|
|
2
|
+
/* empty css */
|
|
3
|
+
import { computed, resolveComponent, createElementBlock, openBlock, createCommentVNode, createElementVNode, createBlock, createVNode, withCtx, toDisplayString } from "vue";
|
|
4
|
+
import H2Wrapper from "./H2Wrapper.vue.mjs";
|
|
5
|
+
import SubTitle from "./SubTitle.vue.mjs";
|
|
6
|
+
/* empty css */
|
|
7
|
+
import _export_sfc from "../../../../../_virtual/_plugin-vue_export-helper.mjs";
|
|
8
|
+
import { ElIcon } from "../../../../../node_modules/element-plus/es/components/icon/index.mjs";
|
|
9
|
+
const _hoisted_1 = { class: "contract-container" };
|
|
10
|
+
const _hoisted_2 = {
|
|
11
|
+
key: 0,
|
|
12
|
+
style: { "margin-bottom": "12px" }
|
|
13
|
+
};
|
|
14
|
+
const _hoisted_3 = { class: "contract-preview" };
|
|
15
|
+
const _hoisted_4 = { class: "preview-icon" };
|
|
16
|
+
const _hoisted_5 = { class: "preview-info" };
|
|
17
|
+
const _hoisted_6 = ["title"];
|
|
18
|
+
const _hoisted_7 = { class: "preview-mode" };
|
|
19
|
+
const _sfc_main = {
|
|
20
|
+
__name: "Contract",
|
|
21
|
+
props: {
|
|
22
|
+
componentData: {
|
|
23
|
+
type: Object,
|
|
24
|
+
required: true
|
|
25
|
+
}
|
|
26
|
+
},
|
|
27
|
+
setup(__props) {
|
|
28
|
+
const props = __props;
|
|
29
|
+
const titleMode = computed(() => {
|
|
30
|
+
var _a;
|
|
31
|
+
const mode = ((_a = props.componentData) == null ? void 0 : _a.titleMode) || "none";
|
|
32
|
+
return mode;
|
|
33
|
+
});
|
|
34
|
+
const modeText = computed(() => {
|
|
35
|
+
var _a;
|
|
36
|
+
const modeMap = {
|
|
37
|
+
view: "合同查看",
|
|
38
|
+
make: "合同制作",
|
|
39
|
+
sign: "合同签署"
|
|
40
|
+
};
|
|
41
|
+
return modeMap[(_a = props.componentData) == null ? void 0 : _a.mode] || "合同查看";
|
|
42
|
+
});
|
|
43
|
+
return (_ctx, _cache) => {
|
|
44
|
+
const _component_Document = resolveComponent("Document");
|
|
45
|
+
const _component_el_icon = ElIcon;
|
|
46
|
+
return openBlock(), createElementBlock("div", _hoisted_1, [
|
|
47
|
+
titleMode.value !== "none" ? (openBlock(), createElementBlock("div", _hoisted_2, [
|
|
48
|
+
titleMode.value === "label" ? (openBlock(), createBlock(H2Wrapper, {
|
|
49
|
+
key: 0,
|
|
50
|
+
componentData: __props.componentData
|
|
51
|
+
}, null, 8, ["componentData"])) : titleMode.value === "subLabel" ? (openBlock(), createBlock(SubTitle, {
|
|
52
|
+
key: 1,
|
|
53
|
+
componentData: __props.componentData
|
|
54
|
+
}, null, 8, ["componentData"])) : createCommentVNode("", true)
|
|
55
|
+
])) : createCommentVNode("", true),
|
|
56
|
+
createElementVNode("div", _hoisted_3, [
|
|
57
|
+
createElementVNode("div", _hoisted_4, [
|
|
58
|
+
createVNode(_component_el_icon, null, {
|
|
59
|
+
default: withCtx(() => [
|
|
60
|
+
createVNode(_component_Document)
|
|
61
|
+
]),
|
|
62
|
+
_: 1
|
|
63
|
+
})
|
|
64
|
+
]),
|
|
65
|
+
createElementVNode("div", _hoisted_5, [
|
|
66
|
+
createElementVNode("div", {
|
|
67
|
+
class: "preview-name",
|
|
68
|
+
title: __props.componentData.label
|
|
69
|
+
}, toDisplayString(__props.componentData.label), 9, _hoisted_6),
|
|
70
|
+
createElementVNode("div", _hoisted_7, toDisplayString(modeText.value), 1)
|
|
71
|
+
])
|
|
72
|
+
])
|
|
73
|
+
]);
|
|
74
|
+
};
|
|
75
|
+
}
|
|
76
|
+
};
|
|
77
|
+
const Contract = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-edf403fc"]]);
|
|
78
|
+
export {
|
|
79
|
+
Contract as default
|
|
80
|
+
};
|
|
@@ -1,14 +1,20 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
1
|
+
import "../../../../../node_modules/element-plus/es/index.mjs";
|
|
2
|
+
/* empty css */
|
|
3
|
+
import { computed, resolveComponent, createElementBlock, openBlock, createCommentVNode, createElementVNode, createBlock, createVNode, withCtx, toDisplayString } from "vue";
|
|
3
4
|
import H2Wrapper from "./H2Wrapper.vue.mjs";
|
|
4
5
|
import SubTitle from "./SubTitle.vue.mjs";
|
|
5
6
|
/* empty css */
|
|
6
7
|
import _export_sfc from "../../../../../_virtual/_plugin-vue_export-helper.mjs";
|
|
8
|
+
import { ElIcon } from "../../../../../node_modules/element-plus/es/components/icon/index.mjs";
|
|
7
9
|
const _hoisted_1 = { class: "document-container" };
|
|
8
10
|
const _hoisted_2 = {
|
|
9
11
|
key: 0,
|
|
10
12
|
style: { "margin-bottom": "12px" }
|
|
11
13
|
};
|
|
14
|
+
const _hoisted_3 = { class: "document-preview" };
|
|
15
|
+
const _hoisted_4 = { class: "preview-icon" };
|
|
16
|
+
const _hoisted_5 = { class: "preview-info" };
|
|
17
|
+
const _hoisted_6 = ["title"];
|
|
12
18
|
const _sfc_main = {
|
|
13
19
|
__name: "Document",
|
|
14
20
|
props: {
|
|
@@ -25,6 +31,8 @@ const _sfc_main = {
|
|
|
25
31
|
return mode;
|
|
26
32
|
});
|
|
27
33
|
return (_ctx, _cache) => {
|
|
34
|
+
const _component_FolderAdd = resolveComponent("FolderAdd");
|
|
35
|
+
const _component_el_icon = ElIcon;
|
|
28
36
|
return openBlock(), createElementBlock("div", _hoisted_1, [
|
|
29
37
|
titleMode.value !== "none" ? (openBlock(), createElementBlock("div", _hoisted_2, [
|
|
30
38
|
titleMode.value === "label" ? (openBlock(), createBlock(H2Wrapper, {
|
|
@@ -35,18 +43,27 @@ const _sfc_main = {
|
|
|
35
43
|
componentData: __props.componentData
|
|
36
44
|
}, null, 8, ["componentData"])) : createCommentVNode("", true)
|
|
37
45
|
])) : createCommentVNode("", true),
|
|
38
|
-
|
|
39
|
-
createElementVNode("
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
46
|
+
createElementVNode("div", _hoisted_3, [
|
|
47
|
+
createElementVNode("div", _hoisted_4, [
|
|
48
|
+
createVNode(_component_el_icon, null, {
|
|
49
|
+
default: withCtx(() => [
|
|
50
|
+
createVNode(_component_FolderAdd)
|
|
51
|
+
]),
|
|
52
|
+
_: 1
|
|
53
|
+
})
|
|
54
|
+
]),
|
|
55
|
+
createElementVNode("div", _hoisted_5, [
|
|
56
|
+
createElementVNode("div", {
|
|
57
|
+
class: "preview-name",
|
|
58
|
+
title: __props.componentData.label
|
|
59
|
+
}, toDisplayString(__props.componentData.label), 9, _hoisted_6)
|
|
60
|
+
])
|
|
61
|
+
])
|
|
45
62
|
]);
|
|
46
63
|
};
|
|
47
64
|
}
|
|
48
65
|
};
|
|
49
|
-
const Document = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-
|
|
66
|
+
const Document = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-5b174026"]]);
|
|
50
67
|
export {
|
|
51
68
|
Document as default
|
|
52
69
|
};
|
|
@@ -17,6 +17,7 @@ import SubForm from "./components/SubForm.vue.mjs";
|
|
|
17
17
|
import ApprovalHistory from "./components/approvalHistory.vue.mjs";
|
|
18
18
|
import SubTable from "./components/SubTable.vue.mjs";
|
|
19
19
|
import Document from "./components/Document.vue.mjs";
|
|
20
|
+
import Contract from "./components/Contract.vue.mjs";
|
|
20
21
|
import { StarFilled as star_filled_default, Star as star_default, Lock as lock_default, Unlock as unlock_default, Delete as delete_default } from "../../../../node_modules/@element-plus/icons-vue/dist/index.mjs";
|
|
21
22
|
import { getEditConfigData, setSelectedItem, setHoverItem, getCurrentClass, isSelectedItem } from "../utils/common.mjs";
|
|
22
23
|
import { throttle as eo } from "../../../../node_modules/@vexip-ui/utils/dist/index.mjs";
|
|
@@ -108,10 +109,10 @@ const _sfc_main = {
|
|
|
108
109
|
(labelPosition) => {
|
|
109
110
|
const targetHeight = labelPosition === "top" ? 0.75 : 1;
|
|
110
111
|
layoutData.value.forEach((item) => {
|
|
111
|
-
var _a, _b, _c
|
|
112
|
+
var _a, _b, _c;
|
|
112
113
|
if (["subTitle", "h2", "divider"].includes((_a = item.component) == null ? void 0 : _a.fieldType)) {
|
|
113
114
|
item.h = 1 * targetHeight;
|
|
114
|
-
} else if (["subForm", "subTable", "approvalHistory"].includes(
|
|
115
|
+
} else if (["subForm", "subTable", "approvalHistory", "document", "contract"].includes(
|
|
115
116
|
(_b = item.component) == null ? void 0 : _b.fieldType
|
|
116
117
|
)) {
|
|
117
118
|
if (((_c = item.component) == null ? void 0 : _c.titleMode) == "none") {
|
|
@@ -119,12 +120,6 @@ const _sfc_main = {
|
|
|
119
120
|
} else {
|
|
120
121
|
item.h = 3 * targetHeight;
|
|
121
122
|
}
|
|
122
|
-
} else if (["document"].includes((_d = item.component) == null ? void 0 : _d.fieldType)) {
|
|
123
|
-
if (((_e = item.component) == null ? void 0 : _e.titleMode) == "none") {
|
|
124
|
-
item.h = 6 * targetHeight;
|
|
125
|
-
} else {
|
|
126
|
-
item.h = 7 * targetHeight;
|
|
127
|
-
}
|
|
128
123
|
}
|
|
129
124
|
});
|
|
130
125
|
gridLayout.value.resizeEvent();
|
|
@@ -225,16 +220,11 @@ const _sfc_main = {
|
|
|
225
220
|
w: editConfigData.value.columns,
|
|
226
221
|
h: editConfigData.value.labelPosition == "top" ? 1.5 : 2
|
|
227
222
|
};
|
|
228
|
-
} else if (component.fieldType == "approvalHistory") {
|
|
223
|
+
} else if (component.fieldType == "approvalHistory" || component.fieldType == "document" || component.fieldType == "contract") {
|
|
229
224
|
finalWH = {
|
|
230
225
|
w: editConfigData.value.columns,
|
|
231
226
|
h: editConfigData.value.labelPosition == "top" ? 2.25 : 3
|
|
232
227
|
};
|
|
233
|
-
} else if (component.fieldType == "document") {
|
|
234
|
-
finalWH = {
|
|
235
|
-
w: editConfigData.value.columns,
|
|
236
|
-
h: editConfigData.value.labelPosition == "top" ? 4.5 : 6
|
|
237
|
-
};
|
|
238
228
|
}
|
|
239
229
|
const colNum = editConfigData.value.columns;
|
|
240
230
|
const rowHeight = editConfigData.value.labelPosition == "top" ? 90 : 60;
|
|
@@ -479,8 +469,11 @@ const _sfc_main = {
|
|
|
479
469
|
}, null, 8, ["component-data"])) : item.component.fieldType == "document" ? (openBlock(), createBlock(Document, {
|
|
480
470
|
key: 5,
|
|
481
471
|
"component-data": item.component
|
|
482
|
-
}, null, 8, ["component-data"])) : item.component.fieldType == "
|
|
472
|
+
}, null, 8, ["component-data"])) : item.component.fieldType == "contract" ? (openBlock(), createBlock(Contract, {
|
|
483
473
|
key: 6,
|
|
474
|
+
"component-data": item.component
|
|
475
|
+
}, null, 8, ["component-data"])) : item.component.fieldType == "divider" ? (openBlock(), createBlock(_component_el_divider, {
|
|
476
|
+
key: 7,
|
|
484
477
|
"border-style": "dashed"
|
|
485
478
|
}, {
|
|
486
479
|
default: withCtx(() => _cache[3] || (_cache[3] = [
|
|
@@ -488,7 +481,7 @@ const _sfc_main = {
|
|
|
488
481
|
])),
|
|
489
482
|
_: 1
|
|
490
483
|
})) : (openBlock(), createBlock(ComponentPreviewWrapper, {
|
|
491
|
-
key:
|
|
484
|
+
key: 8,
|
|
492
485
|
"component-data": item.component
|
|
493
486
|
}, null, 8, ["component-data"]))
|
|
494
487
|
], 2)
|
|
@@ -511,7 +504,7 @@ const _sfc_main = {
|
|
|
511
504
|
};
|
|
512
505
|
}
|
|
513
506
|
};
|
|
514
|
-
const formWorkArea = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-
|
|
507
|
+
const formWorkArea = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-459e2f10"]]);
|
|
515
508
|
export {
|
|
516
509
|
formWorkArea as default
|
|
517
510
|
};
|
|
@@ -0,0 +1,212 @@
|
|
|
1
|
+
import "../../../../../node_modules/element-plus/es/index.mjs";
|
|
2
|
+
/* empty css */
|
|
3
|
+
/* empty css */
|
|
4
|
+
/* empty css */
|
|
5
|
+
/* empty css */
|
|
6
|
+
/* empty css */
|
|
7
|
+
/* empty css */
|
|
8
|
+
/* empty css */
|
|
9
|
+
/* empty css */
|
|
10
|
+
/* empty css */
|
|
11
|
+
/* empty css */
|
|
12
|
+
/* empty css */
|
|
13
|
+
/* empty css */
|
|
14
|
+
/* empty css */
|
|
15
|
+
/* empty css */
|
|
16
|
+
/* empty css */
|
|
17
|
+
import { computed, ref, createBlock, openBlock, withCtx, createVNode, createTextVNode, createElementBlock, Fragment, renderList } from "vue";
|
|
18
|
+
import { getCurrentItem } from "../../utils/common.mjs";
|
|
19
|
+
import "../../utils/eventBus.mjs";
|
|
20
|
+
import ValueSelector from "../../../components/ValueSelector.vue.mjs";
|
|
21
|
+
import api from "../../../api/index.mjs";
|
|
22
|
+
import ParamsConfig from "../../../components/ParamsConfig.vue2.mjs";
|
|
23
|
+
/* empty css */
|
|
24
|
+
import _export_sfc from "../../../../../_virtual/_plugin-vue_export-helper.mjs";
|
|
25
|
+
import { ElCollapse, ElCollapseItem } from "../../../../../node_modules/element-plus/es/components/collapse/index.mjs";
|
|
26
|
+
import { ElForm, ElFormItem } from "../../../../../node_modules/element-plus/es/components/form/index.mjs";
|
|
27
|
+
import { ElInput } from "../../../../../node_modules/element-plus/es/components/input/index.mjs";
|
|
28
|
+
import { ElRadioGroup, ElRadioButton } from "../../../../../node_modules/element-plus/es/components/radio/index.mjs";
|
|
29
|
+
import { ElSelect, ElOption } from "../../../../../node_modules/element-plus/es/components/select/index.mjs";
|
|
30
|
+
const _sfc_main = {
|
|
31
|
+
__name: "contract",
|
|
32
|
+
setup(__props) {
|
|
33
|
+
const currentItem = computed(() => {
|
|
34
|
+
return getCurrentItem();
|
|
35
|
+
});
|
|
36
|
+
const activeName = ref(["common"]);
|
|
37
|
+
const scenarioOptions = ref([]);
|
|
38
|
+
api.getModeNoList().then((data) => {
|
|
39
|
+
scenarioOptions.value = data.map((item) => ({
|
|
40
|
+
label: item.modeName,
|
|
41
|
+
value: item.modeNo
|
|
42
|
+
}));
|
|
43
|
+
});
|
|
44
|
+
return (_ctx, _cache) => {
|
|
45
|
+
const _component_el_input = ElInput;
|
|
46
|
+
const _component_el_form_item = ElFormItem;
|
|
47
|
+
const _component_el_radio_button = ElRadioButton;
|
|
48
|
+
const _component_el_radio_group = ElRadioGroup;
|
|
49
|
+
const _component_el_option = ElOption;
|
|
50
|
+
const _component_el_select = ElSelect;
|
|
51
|
+
const _component_el_form = ElForm;
|
|
52
|
+
const _component_el_collapse_item = ElCollapseItem;
|
|
53
|
+
const _component_el_collapse = ElCollapse;
|
|
54
|
+
return openBlock(), createBlock(_component_el_collapse, {
|
|
55
|
+
class: "setting",
|
|
56
|
+
modelValue: activeName.value,
|
|
57
|
+
"onUpdate:modelValue": _cache[7] || (_cache[7] = ($event) => activeName.value = $event)
|
|
58
|
+
}, {
|
|
59
|
+
default: withCtx(() => [
|
|
60
|
+
createVNode(_component_el_collapse_item, {
|
|
61
|
+
name: "common",
|
|
62
|
+
title: "基本属性"
|
|
63
|
+
}, {
|
|
64
|
+
default: withCtx(() => [
|
|
65
|
+
createVNode(_component_el_form, {
|
|
66
|
+
"label-position": "top",
|
|
67
|
+
"label-width": "auto",
|
|
68
|
+
model: currentItem.value
|
|
69
|
+
}, {
|
|
70
|
+
default: withCtx(() => [
|
|
71
|
+
createVNode(_component_el_form_item, {
|
|
72
|
+
label: "标题",
|
|
73
|
+
required: ""
|
|
74
|
+
}, {
|
|
75
|
+
default: withCtx(() => [
|
|
76
|
+
createVNode(_component_el_input, {
|
|
77
|
+
modelValue: currentItem.value.label,
|
|
78
|
+
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => currentItem.value.label = $event)
|
|
79
|
+
}, null, 8, ["modelValue"])
|
|
80
|
+
]),
|
|
81
|
+
_: 1
|
|
82
|
+
}),
|
|
83
|
+
createVNode(_component_el_form_item, { label: "权限标识" }, {
|
|
84
|
+
default: withCtx(() => [
|
|
85
|
+
createVNode(_component_el_input, {
|
|
86
|
+
modelValue: currentItem.value.permission,
|
|
87
|
+
"onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => currentItem.value.permission = $event)
|
|
88
|
+
}, null, 8, ["modelValue"])
|
|
89
|
+
]),
|
|
90
|
+
_: 1
|
|
91
|
+
}),
|
|
92
|
+
createVNode(_component_el_form_item, { label: "合同模式" }, {
|
|
93
|
+
default: withCtx(() => [
|
|
94
|
+
createVNode(_component_el_radio_group, {
|
|
95
|
+
modelValue: currentItem.value.mode,
|
|
96
|
+
"onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => currentItem.value.mode = $event),
|
|
97
|
+
size: "small"
|
|
98
|
+
}, {
|
|
99
|
+
default: withCtx(() => [
|
|
100
|
+
createVNode(_component_el_radio_button, { value: "view" }, {
|
|
101
|
+
default: withCtx(() => _cache[8] || (_cache[8] = [
|
|
102
|
+
createTextVNode("合同查看")
|
|
103
|
+
])),
|
|
104
|
+
_: 1
|
|
105
|
+
}),
|
|
106
|
+
createVNode(_component_el_radio_button, { value: "make" }, {
|
|
107
|
+
default: withCtx(() => _cache[9] || (_cache[9] = [
|
|
108
|
+
createTextVNode("合同制作")
|
|
109
|
+
])),
|
|
110
|
+
_: 1
|
|
111
|
+
}),
|
|
112
|
+
createVNode(_component_el_radio_button, { value: "sign" }, {
|
|
113
|
+
default: withCtx(() => _cache[10] || (_cache[10] = [
|
|
114
|
+
createTextVNode("合同签署")
|
|
115
|
+
])),
|
|
116
|
+
_: 1
|
|
117
|
+
})
|
|
118
|
+
]),
|
|
119
|
+
_: 1
|
|
120
|
+
}, 8, ["modelValue"])
|
|
121
|
+
]),
|
|
122
|
+
_: 1
|
|
123
|
+
}),
|
|
124
|
+
createVNode(_component_el_form_item, {
|
|
125
|
+
label: "业务主键",
|
|
126
|
+
required: ""
|
|
127
|
+
}, {
|
|
128
|
+
default: withCtx(() => [
|
|
129
|
+
createVNode(ValueSelector, {
|
|
130
|
+
modelValue: currentItem.value.busNo,
|
|
131
|
+
"onUpdate:modelValue": _cache[3] || (_cache[3] = ($event) => currentItem.value.busNo = $event),
|
|
132
|
+
multiple: false,
|
|
133
|
+
size: "default",
|
|
134
|
+
placeholder: "选择业务主键"
|
|
135
|
+
}, null, 8, ["modelValue"])
|
|
136
|
+
]),
|
|
137
|
+
_: 1
|
|
138
|
+
}),
|
|
139
|
+
createVNode(_component_el_form_item, { label: "业务场景" }, {
|
|
140
|
+
default: withCtx(() => [
|
|
141
|
+
createVNode(_component_el_select, {
|
|
142
|
+
modelValue: currentItem.value.busSubject,
|
|
143
|
+
"onUpdate:modelValue": _cache[4] || (_cache[4] = ($event) => currentItem.value.busSubject = $event),
|
|
144
|
+
placeholder: "选择业务场景",
|
|
145
|
+
style: { "width": "100%" },
|
|
146
|
+
clearable: ""
|
|
147
|
+
}, {
|
|
148
|
+
default: withCtx(() => [
|
|
149
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(scenarioOptions.value, (scene) => {
|
|
150
|
+
return openBlock(), createBlock(_component_el_option, {
|
|
151
|
+
key: scene.value,
|
|
152
|
+
label: scene.label,
|
|
153
|
+
value: scene.value
|
|
154
|
+
}, null, 8, ["label", "value"]);
|
|
155
|
+
}), 128))
|
|
156
|
+
]),
|
|
157
|
+
_: 1
|
|
158
|
+
}, 8, ["modelValue"])
|
|
159
|
+
]),
|
|
160
|
+
_: 1
|
|
161
|
+
}),
|
|
162
|
+
createVNode(_component_el_form_item, { label: "合同模板生成方式" }, {
|
|
163
|
+
default: withCtx(() => [
|
|
164
|
+
createVNode(_component_el_radio_group, {
|
|
165
|
+
modelValue: currentItem.value.genType,
|
|
166
|
+
"onUpdate:modelValue": _cache[5] || (_cache[5] = ($event) => currentItem.value.genType = $event),
|
|
167
|
+
size: "small"
|
|
168
|
+
}, {
|
|
169
|
+
default: withCtx(() => [
|
|
170
|
+
createVNode(_component_el_radio_button, { value: "1" }, {
|
|
171
|
+
default: withCtx(() => _cache[11] || (_cache[11] = [
|
|
172
|
+
createTextVNode("系统生成")
|
|
173
|
+
])),
|
|
174
|
+
_: 1
|
|
175
|
+
}),
|
|
176
|
+
createVNode(_component_el_radio_button, { value: "2" }, {
|
|
177
|
+
default: withCtx(() => _cache[12] || (_cache[12] = [
|
|
178
|
+
createTextVNode("手动选择")
|
|
179
|
+
])),
|
|
180
|
+
_: 1
|
|
181
|
+
})
|
|
182
|
+
]),
|
|
183
|
+
_: 1
|
|
184
|
+
}, 8, ["modelValue"])
|
|
185
|
+
]),
|
|
186
|
+
_: 1
|
|
187
|
+
}),
|
|
188
|
+
createVNode(_component_el_form_item, { label: "业务参数" }, {
|
|
189
|
+
default: withCtx(() => [
|
|
190
|
+
createVNode(ParamsConfig, {
|
|
191
|
+
modelValue: currentItem.value.params,
|
|
192
|
+
"onUpdate:modelValue": _cache[6] || (_cache[6] = ($event) => currentItem.value.params = $event)
|
|
193
|
+
}, null, 8, ["modelValue"])
|
|
194
|
+
]),
|
|
195
|
+
_: 1
|
|
196
|
+
})
|
|
197
|
+
]),
|
|
198
|
+
_: 1
|
|
199
|
+
}, 8, ["model"])
|
|
200
|
+
]),
|
|
201
|
+
_: 1
|
|
202
|
+
})
|
|
203
|
+
]),
|
|
204
|
+
_: 1
|
|
205
|
+
}, 8, ["modelValue"]);
|
|
206
|
+
};
|
|
207
|
+
}
|
|
208
|
+
};
|
|
209
|
+
const contract = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-f1e213d5"]]);
|
|
210
|
+
export {
|
|
211
|
+
contract as default
|
|
212
|
+
};
|
|
@@ -36,7 +36,7 @@ const _sfc_main = {
|
|
|
36
36
|
return ((_a = f.component) == null ? void 0 : _a.id) === item.id;
|
|
37
37
|
});
|
|
38
38
|
if (fieldInData) {
|
|
39
|
-
fieldInData.h = value === "none" ?
|
|
39
|
+
fieldInData.h = value === "none" ? 2 : 3;
|
|
40
40
|
emitter.emit("resizeEvent");
|
|
41
41
|
}
|
|
42
42
|
}
|
|
@@ -174,7 +174,7 @@ const _sfc_main = {
|
|
|
174
174
|
]),
|
|
175
175
|
_: 1
|
|
176
176
|
}),
|
|
177
|
-
createVNode(_component_el_form_item, { label: "
|
|
177
|
+
createVNode(_component_el_form_item, { label: "要件参数" }, {
|
|
178
178
|
default: withCtx(() => [
|
|
179
179
|
createVNode(DocumentParam, {
|
|
180
180
|
modelValue: currentItem.value.essentialParams,
|
|
@@ -195,7 +195,7 @@ const _sfc_main = {
|
|
|
195
195
|
};
|
|
196
196
|
}
|
|
197
197
|
};
|
|
198
|
-
const document = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-
|
|
198
|
+
const document = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-d0160dcb"]]);
|
|
199
199
|
export {
|
|
200
200
|
document as default
|
|
201
201
|
};
|
|
@@ -12,6 +12,7 @@ import subTable from "./subTable.vue.mjs";
|
|
|
12
12
|
import _sfc_main$5 from "./blank.vue.mjs";
|
|
13
13
|
import _sfc_main$6 from "./approvalHistory.vue.mjs";
|
|
14
14
|
import document from "./document.vue.mjs";
|
|
15
|
+
import contract from "./contract.vue.mjs";
|
|
15
16
|
import { ElScrollbar } from "../../../../../node_modules/element-plus/es/components/scrollbar/index.mjs";
|
|
16
17
|
const _sfc_main = {
|
|
17
18
|
__name: "index",
|
|
@@ -20,7 +21,7 @@ const _sfc_main = {
|
|
|
20
21
|
return getCurrentItem();
|
|
21
22
|
});
|
|
22
23
|
const editingProperty = computed(() => {
|
|
23
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _i;
|
|
24
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j;
|
|
24
25
|
switch ((_a = currentItem.value) == null ? void 0 : _a.type) {
|
|
25
26
|
case "widgets":
|
|
26
27
|
if (((_b = currentItem.value) == null ? void 0 : _b.fieldType) == "subTitle" || ((_c = currentItem.value) == null ? void 0 : _c.fieldType) == "h2") {
|
|
@@ -35,7 +36,9 @@ const _sfc_main = {
|
|
|
35
36
|
return _sfc_main$6;
|
|
36
37
|
} else if (((_h = currentItem.value) == null ? void 0 : _h.fieldType) == "document") {
|
|
37
38
|
return document;
|
|
38
|
-
} else if (((_i = currentItem.value) == null ? void 0 : _i.fieldType) == "
|
|
39
|
+
} else if (((_i = currentItem.value) == null ? void 0 : _i.fieldType) == "contract") {
|
|
40
|
+
return contract;
|
|
41
|
+
} else if (((_j = currentItem.value) == null ? void 0 : _j.fieldType) == "divider") {
|
|
39
42
|
return null;
|
|
40
43
|
} else {
|
|
41
44
|
return widgets;
|