@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
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
|
3
|
+
const vue = require("vue");
|
|
4
|
+
require("../../forms/h2/index.js");
|
|
5
|
+
const getInstance = require("../../../utils/getInstance.js");
|
|
6
|
+
const parseRouteParams = require("../../../utils/parseRouteParams.js");
|
|
7
|
+
const _hoisted_1 = { class: "contract-content" };
|
|
8
|
+
const path = "/tech/ctr/components/DocCtrInfoComponent";
|
|
9
|
+
const _sfc_main = /* @__PURE__ */ Object.assign({
|
|
10
|
+
inheritAttrs: false
|
|
11
|
+
}, {
|
|
12
|
+
__name: "Contract",
|
|
13
|
+
props: {
|
|
14
|
+
config: {
|
|
15
|
+
type: Object,
|
|
16
|
+
required: true
|
|
17
|
+
},
|
|
18
|
+
localConfig: {
|
|
19
|
+
type: Object,
|
|
20
|
+
required: true
|
|
21
|
+
},
|
|
22
|
+
formMode: {
|
|
23
|
+
type: String,
|
|
24
|
+
default: ""
|
|
25
|
+
}
|
|
26
|
+
},
|
|
27
|
+
setup(__props) {
|
|
28
|
+
const props = __props;
|
|
29
|
+
const ctx = getInstance.getCurrentVueInstance();
|
|
30
|
+
vue.ref("");
|
|
31
|
+
const formData = vue.inject("formData");
|
|
32
|
+
vue.inject("rowHeight");
|
|
33
|
+
vue.inject("gridLayout");
|
|
34
|
+
vue.inject("gridLayoutFieldsData");
|
|
35
|
+
const setFormItemHeight = vue.inject("setFormItemHeight");
|
|
36
|
+
const fieldsData = props.localConfig.fieldsData.map((item) => {
|
|
37
|
+
return item.component;
|
|
38
|
+
});
|
|
39
|
+
const hiddenFields = props.localConfig.hiddenFields;
|
|
40
|
+
const parsedParams = parseRouteParams.parseRouteParams(props.config.params, formData.value, [
|
|
41
|
+
...fieldsData,
|
|
42
|
+
...hiddenFields
|
|
43
|
+
]);
|
|
44
|
+
const busNo = parseRouteParams.parseSingleParamValue(props.config.busNo, formData.value, [
|
|
45
|
+
...fieldsData,
|
|
46
|
+
...hiddenFields
|
|
47
|
+
]);
|
|
48
|
+
const mode = vue.computed(() => {
|
|
49
|
+
if (props.formMode == "query") {
|
|
50
|
+
return "view";
|
|
51
|
+
}
|
|
52
|
+
return props.config.mode;
|
|
53
|
+
});
|
|
54
|
+
const currentComponent = vue.ref(null);
|
|
55
|
+
const loadComponentByPath = (path2) => {
|
|
56
|
+
const route = ctx.$router.getRoutes().find((item) => item.path === path2);
|
|
57
|
+
if (!route) return;
|
|
58
|
+
const comp = route.components.default;
|
|
59
|
+
if (!comp) return;
|
|
60
|
+
if (typeof comp === "function") {
|
|
61
|
+
comp().then((module2) => {
|
|
62
|
+
currentComponent.value = module2.default;
|
|
63
|
+
});
|
|
64
|
+
} else {
|
|
65
|
+
currentComponent.value = comp;
|
|
66
|
+
}
|
|
67
|
+
};
|
|
68
|
+
vue.onMounted(() => {
|
|
69
|
+
loadComponentByPath(path);
|
|
70
|
+
});
|
|
71
|
+
function loaded(dom) {
|
|
72
|
+
const foundItem = props.localConfig.fieldsData.find(
|
|
73
|
+
(item) => item.id == props.config.id
|
|
74
|
+
);
|
|
75
|
+
const titleHeight = 0;
|
|
76
|
+
if (foundItem) {
|
|
77
|
+
foundItem.fixedH = true;
|
|
78
|
+
foundItem.h = dom.offsetHeight + titleHeight;
|
|
79
|
+
setFormItemHeight(props.config.id, true, dom.offsetHeight + titleHeight);
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
return (_ctx, _cache) => {
|
|
83
|
+
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1, [
|
|
84
|
+
(vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(vue.unref(currentComponent)), {
|
|
85
|
+
mode: vue.unref(mode),
|
|
86
|
+
busNo: vue.unref(busNo),
|
|
87
|
+
busSubject: __props.config.busSubject,
|
|
88
|
+
genType: __props.config.genType,
|
|
89
|
+
parmList: vue.unref(parsedParams),
|
|
90
|
+
onLoaded: loaded
|
|
91
|
+
}, null, 40, ["mode", "busNo", "busSubject", "genType", "parmList"]))
|
|
92
|
+
]);
|
|
93
|
+
};
|
|
94
|
+
}
|
|
95
|
+
});
|
|
96
|
+
exports.default = _sfc_main;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
|
3
|
+
const Contract$1 = require("./Contract.vue.js");
|
|
4
|
+
const install = require("../../../utils/install.js");
|
|
5
|
+
const Contract = install.default.withInstall("Contract", Contract$1.default);
|
|
6
|
+
exports.Contract = Contract;
|
|
7
|
+
exports.default = Contract;
|
|
@@ -11,9 +11,9 @@ const index$2 = require("../forms/form/index.js");
|
|
|
11
11
|
const parseRouteParams = require("../../utils/parseRouteParams.js");
|
|
12
12
|
const calculate = require("../../utils/formulajs/calculate.js");
|
|
13
13
|
const eventFlowHandler = require("../../utils/eventFlow/eventFlowHandler.js");
|
|
14
|
-
;/* empty css */
|
|
15
14
|
;/* empty css */
|
|
16
15
|
;/* empty css */
|
|
16
|
+
;/* empty css */
|
|
17
17
|
;/* empty css */
|
|
18
18
|
const _pluginVue_exportHelper = require("../../../../../_virtual/_plugin-vue_export-helper.js");
|
|
19
19
|
;/* empty css */
|
|
@@ -13,12 +13,13 @@ const index$4 = require("../subForm/index.js");
|
|
|
13
13
|
const index$5 = require("../subTable/index.js");
|
|
14
14
|
const index$6 = require("../../bus/approvalHistory/index.js");
|
|
15
15
|
const index$7 = require("../../bus/document/index.js");
|
|
16
|
+
const index$8 = require("../../bus/contract/index.js");
|
|
16
17
|
const index$1 = require("../index.js");
|
|
17
18
|
const index = require("../../bus/index.js");
|
|
18
19
|
;/* empty css */
|
|
19
20
|
const _pluginVue_exportHelper = require("../../../../../../_virtual/_plugin-vue_export-helper.js");
|
|
20
|
-
const index$
|
|
21
|
-
const index$
|
|
21
|
+
const index$9 = require("../../../../../../node_modules/element-plus/es/components/form/index.js");
|
|
22
|
+
const index$a = require("../../../../../../node_modules/element-plus/es/components/tooltip/index.js");
|
|
22
23
|
const _hoisted_1 = {
|
|
23
24
|
key: 0,
|
|
24
25
|
class: "iconfont icon-iconZheng credit-icon"
|
|
@@ -110,8 +111,8 @@ const _sfc_main = /* @__PURE__ */ Object.assign({
|
|
|
110
111
|
getInnerComponentRef
|
|
111
112
|
});
|
|
112
113
|
return (_ctx, _cache) => {
|
|
113
|
-
const _component_el_tooltip = index$
|
|
114
|
-
const _component_el_form_item = index$
|
|
114
|
+
const _component_el_tooltip = index$a.ElTooltip;
|
|
115
|
+
const _component_el_form_item = index$9.ElFormItem;
|
|
115
116
|
return __props.config.fieldType == "h2" ? (vue.openBlock(), vue.createBlock(vue.unref(index$2.H2), {
|
|
116
117
|
key: 0,
|
|
117
118
|
config: __props.config
|
|
@@ -144,11 +145,17 @@ const _sfc_main = /* @__PURE__ */ Object.assign({
|
|
|
144
145
|
ref: innerComponentRef,
|
|
145
146
|
config: __props.config,
|
|
146
147
|
localConfig: __props.localConfig
|
|
147
|
-
}, null, 8, ["config", "localConfig"])) : __props.config.fieldType == "
|
|
148
|
+
}, null, 8, ["config", "localConfig"])) : __props.config.fieldType == "contract" ? (vue.openBlock(), vue.createBlock(vue.unref(index$8.Contract), {
|
|
148
149
|
key: 6,
|
|
150
|
+
ref_key: "innerComponentRef",
|
|
151
|
+
ref: innerComponentRef,
|
|
152
|
+
config: __props.config,
|
|
153
|
+
localConfig: __props.localConfig
|
|
154
|
+
}, null, 8, ["config", "localConfig"])) : __props.config.fieldType == "blank" || __props.config.fieldType == "divider" ? (vue.openBlock(), vue.createElementBlock("div", {
|
|
155
|
+
key: 7,
|
|
149
156
|
class: vue.normalizeClass(__props.config.fieldType)
|
|
150
157
|
}, null, 2)) : (vue.openBlock(), vue.createBlock(_component_el_form_item, {
|
|
151
|
-
key:
|
|
158
|
+
key: 8,
|
|
152
159
|
prop: __props.config.fieldName,
|
|
153
160
|
required: __props.config.required,
|
|
154
161
|
error: __props.error,
|
|
@@ -197,5 +204,5 @@ const _sfc_main = /* @__PURE__ */ Object.assign({
|
|
|
197
204
|
};
|
|
198
205
|
}
|
|
199
206
|
});
|
|
200
|
-
const _FormItem = /* @__PURE__ */ _pluginVue_exportHelper.default(_sfc_main, [["__scopeId", "data-v-
|
|
207
|
+
const _FormItem = /* @__PURE__ */ _pluginVue_exportHelper.default(_sfc_main, [["__scopeId", "data-v-e00643b1"]]);
|
|
201
208
|
exports.default = _FormItem;
|
|
@@ -5,9 +5,9 @@ require("../../../../../../node_modules/element-plus/es/index.js");
|
|
|
5
5
|
;/* empty css */
|
|
6
6
|
;/* empty css */
|
|
7
7
|
const vue = require("vue");
|
|
8
|
-
;/* empty css */
|
|
9
8
|
;/* empty css */
|
|
10
9
|
;/* empty css */
|
|
10
|
+
;/* empty css */
|
|
11
11
|
const index$3 = require("../../dialog/index.js");
|
|
12
12
|
const index$2 = require("../../../api/index.js");
|
|
13
13
|
;/* empty css */
|
|
@@ -9,10 +9,10 @@ require("../../../../../node_modules/vxe-table/es/components.js");
|
|
|
9
9
|
const index$3 = require("../../../../../node_modules/@element-plus/icons-vue/dist/index.js");
|
|
10
10
|
const parseFilterConfig = require("../../utils/parseFilterConfig.js");
|
|
11
11
|
const common = require("../../utils/common.js");
|
|
12
|
-
;/* empty css */
|
|
13
12
|
;/* empty css */
|
|
14
13
|
;/* empty css */
|
|
15
14
|
;/* empty css */
|
|
15
|
+
;/* empty css */
|
|
16
16
|
;/* empty css */
|
|
17
17
|
require("./index.js");
|
|
18
18
|
require("../forms/form/index.js");
|
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
3
|
const vue = require("vue");
|
|
4
4
|
;/* empty css */
|
|
5
|
-
;/* empty css */
|
|
6
5
|
;/* empty css */
|
|
7
6
|
;/* empty css */
|
|
8
7
|
;/* empty css */
|
|
8
|
+
;/* empty css */
|
|
9
9
|
;/* empty css */
|
|
10
10
|
;/* empty css */
|
|
11
11
|
require("../components/table/index.js");
|
|
@@ -4,9 +4,9 @@ const vue = require("vue");
|
|
|
4
4
|
const parseRouteParams = require("./parseRouteParams.js");
|
|
5
5
|
require("../../../../node_modules/element-plus/es/index.js");
|
|
6
6
|
;/* empty css */
|
|
7
|
-
;/* empty css */
|
|
8
7
|
;/* empty css */
|
|
9
8
|
;/* empty css */
|
|
9
|
+
;/* empty css */
|
|
10
10
|
const index = require("../../../../node_modules/element-plus/es/components/loading/index.js");
|
|
11
11
|
const index$1 = require("../../../../node_modules/element-plus/es/components/message/index.js");
|
|
12
12
|
class DataSourceManager {
|