@fecp/designer 5.5.72 → 5.5.74

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 (59) hide show
  1. package/es/designer/package.json.mjs +1 -1
  2. package/es/designer/src/components/DocumentParam.vue.mjs +1 -1
  3. package/es/designer/src/components/OptionConfig.vue.mjs +2 -2
  4. package/es/designer/src/components/ParamsConfig.vue2.mjs +1 -1
  5. package/es/designer/src/layout/aside/HiddenFieldDialog.vue.mjs +1 -1
  6. package/es/designer/src/packages/advancedFilter/ValueInput.vue2.mjs +1 -1
  7. package/es/designer/src/packages/dataLinkage/index.vue.mjs +1 -1
  8. package/es/designer/src/packages/dialogGlobal/index.vue.mjs +1 -1
  9. package/es/designer/src/packages/dialogGlobal/index.vue2.mjs +1 -1
  10. package/es/designer/src/packages/eventFlow/dialog/action/FormSubmit.vue2.mjs +17 -8
  11. package/es/designer/src/packages/eventFlow/dialog/action/RiskSch.vue.mjs +14 -5
  12. package/es/designer/src/packages/form/property/approvalHistory.vue.mjs +1 -1
  13. package/es/designer/src/packages/form/property/contract.vue.mjs +1 -1
  14. package/es/designer/src/packages/form/property/subForm.vue.mjs +1 -1
  15. package/es/designer/src/packages/form/property/widgets.vue.mjs +2 -1
  16. package/es/designer/src/packages/formulaEditor/core/calculate.mjs +0 -1
  17. package/es/designer/src/packages/prod/index.vue.mjs +1 -1
  18. package/es/designer/src/packages/table/headerBtn.vue.mjs +1 -1
  19. package/es/designer.css +222 -95
  20. package/es/packages/mobile/src/components/navigation/actionBar/ActionBar.vue.mjs +4 -4
  21. package/es/packages/vue/src/components/bus/contract/Contract.vue.mjs +6 -1
  22. package/es/packages/vue/src/components/bus/document/Document.vue.mjs +15 -1
  23. package/es/packages/vue/src/components/details/main/Main.vue.mjs +1 -1
  24. package/es/packages/vue/src/components/forms/form/Form.vue.mjs +46 -30
  25. package/es/packages/vue/src/components/forms/form/FormAnchorNav.vue.mjs +2 -2
  26. package/es/packages/vue/src/components/forms/form/RightAnchorNav.vue.mjs +2 -2
  27. package/es/packages/vue/src/components/forms/formItem/FormItem.vue.mjs +4 -3
  28. package/es/packages/vue/src/components/forms/h2/H2.vue.mjs +2 -2
  29. package/es/packages/vue/src/utils/eventFlow/actionHandlers.mjs +32 -4
  30. package/lib/designer/package.json.js +1 -1
  31. package/lib/designer/src/components/DocumentParam.vue.js +1 -1
  32. package/lib/designer/src/components/OptionConfig.vue.js +2 -2
  33. package/lib/designer/src/components/ParamsConfig.vue2.js +1 -1
  34. package/lib/designer/src/layout/aside/HiddenFieldDialog.vue.js +1 -1
  35. package/lib/designer/src/packages/advancedFilter/ValueInput.vue2.js +1 -1
  36. package/lib/designer/src/packages/dataLinkage/index.vue.js +1 -1
  37. package/lib/designer/src/packages/dialogGlobal/index.vue.js +1 -1
  38. package/lib/designer/src/packages/dialogGlobal/index.vue2.js +1 -1
  39. package/lib/designer/src/packages/eventFlow/dialog/action/FormSubmit.vue2.js +17 -8
  40. package/lib/designer/src/packages/eventFlow/dialog/action/RiskSch.vue.js +14 -5
  41. package/lib/designer/src/packages/form/property/approvalHistory.vue.js +1 -1
  42. package/lib/designer/src/packages/form/property/contract.vue.js +1 -1
  43. package/lib/designer/src/packages/form/property/subForm.vue.js +1 -1
  44. package/lib/designer/src/packages/form/property/widgets.vue.js +2 -1
  45. package/lib/designer/src/packages/formulaEditor/core/calculate.js +0 -1
  46. package/lib/designer/src/packages/prod/index.vue.js +1 -1
  47. package/lib/designer/src/packages/table/headerBtn.vue.js +1 -1
  48. package/lib/designer.css +222 -95
  49. package/lib/packages/mobile/src/components/navigation/actionBar/ActionBar.vue.js +3 -3
  50. package/lib/packages/vue/src/components/bus/contract/Contract.vue.js +6 -1
  51. package/lib/packages/vue/src/components/bus/document/Document.vue.js +15 -1
  52. package/lib/packages/vue/src/components/details/main/Main.vue.js +1 -1
  53. package/lib/packages/vue/src/components/forms/form/Form.vue.js +45 -29
  54. package/lib/packages/vue/src/components/forms/form/FormAnchorNav.vue.js +2 -2
  55. package/lib/packages/vue/src/components/forms/form/RightAnchorNav.vue.js +2 -2
  56. package/lib/packages/vue/src/components/forms/formItem/FormItem.vue.js +4 -3
  57. package/lib/packages/vue/src/components/forms/h2/H2.vue.js +2 -2
  58. package/lib/packages/vue/src/utils/eventFlow/actionHandlers.js +32 -4
  59. package/package.json +1 -1
@@ -5,7 +5,7 @@
5
5
  /* empty css */
6
6
  /* empty css */
7
7
  /* empty css */
8
- import { createBlock, openBlock, withCtx, createElementBlock, Fragment, renderList } from "vue";
8
+ import { createBlock, openBlock, withCtx, createElementBlock, Fragment, renderList, normalizeClass } from "vue";
9
9
  /* empty css */
10
10
  import _export_sfc from "../../../../../../_virtual/_plugin-vue_export-helper.mjs";
11
11
  import { ActionBar } from "../../../../node_modules/vant/es/action-bar/index.mjs";
@@ -26,9 +26,9 @@ const _sfc_main = {
26
26
  default: withCtx(() => [
27
27
  (openBlock(true), createElementBlock(Fragment, null, renderList(__props.actionBarOptions, (item) => {
28
28
  return openBlock(), createBlock(_component_van_action_bar_button, {
29
- type: item.type,
29
+ class: normalizeClass(item.bgClass || "icon-blue"),
30
30
  text: item.text
31
- }, null, 8, ["type", "text"]);
31
+ }, null, 8, ["class", "text"]);
32
32
  }), 256))
33
33
  ]),
34
34
  _: 1
@@ -36,7 +36,7 @@ const _sfc_main = {
36
36
  };
37
37
  }
38
38
  };
39
- const _ActionBar = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-ac26522e"]]);
39
+ const _ActionBar = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-08956b7c"]]);
40
40
  export {
41
41
  _ActionBar as default
42
42
  };
@@ -3,6 +3,7 @@ import "../../forms/h2/index.mjs";
3
3
  import { getCurrentVueInstance } from "../../../utils/getInstance.mjs";
4
4
  import { parseRouteParams, parseSingleParamValue } from "../../../utils/parseRouteParams.mjs";
5
5
  import { loadComponentByPath } from "../../../utils/common.mjs";
6
+ import emitter from "../../../utils/eventBus.mjs";
6
7
  const _hoisted_1 = { class: "contract-content" };
7
8
  const path = "/tech/ctr/components/DocCtrInfoComponent";
8
9
  const _sfc_main = /* @__PURE__ */ Object.assign({
@@ -58,7 +59,7 @@ const _sfc_main = /* @__PURE__ */ Object.assign({
58
59
  onMounted(() => {
59
60
  loadComponentByPath(path, ctx.$router, currentComponent);
60
61
  });
61
- function loaded(dom) {
62
+ function loaded(dom, visibleData) {
62
63
  const foundItem = props.localConfig.fieldsData.find(
63
64
  (item) => item.id == props.config.id
64
65
  );
@@ -68,6 +69,10 @@ const _sfc_main = /* @__PURE__ */ Object.assign({
68
69
  foundItem.h = dom.offsetHeight + titleHeight;
69
70
  setFormItemHeight(props.config.id, true, dom.offsetHeight + titleHeight);
70
71
  }
72
+ emitter.emit("onSubTableDataLoaded", {
73
+ subTableConfig: props.config,
74
+ visibleData
75
+ });
71
76
  }
72
77
  return (_ctx, _cache) => {
73
78
  return openBlock(), createElementBlock("div", _hoisted_1, [
@@ -27,7 +27,7 @@ const _sfc_main = /* @__PURE__ */ Object.assign({
27
27
  default: ""
28
28
  }
29
29
  },
30
- setup(__props) {
30
+ setup(__props, { expose: __expose }) {
31
31
  const props = __props;
32
32
  const ctx = getCurrentVueInstance();
33
33
  ref("");
@@ -113,6 +113,18 @@ const _sfc_main = /* @__PURE__ */ Object.assign({
113
113
  setFormItemHeight(props.config.id, true, dom.offsetHeight + titleHeight);
114
114
  }
115
115
  }
116
+ const docRef = ref();
117
+ function validate() {
118
+ var _a;
119
+ if (currentComponent.value) {
120
+ return (_a = docRef.value) == null ? void 0 : _a.validateFile();
121
+ } else {
122
+ return Promise.resolve();
123
+ }
124
+ }
125
+ __expose({
126
+ validate
127
+ });
116
128
  return (_ctx, _cache) => {
117
129
  return openBlock(), createElementBlock(Fragment, null, [
118
130
  __props.config.titleMode != "none" ? (openBlock(), createElementBlock("div", _hoisted_1, [
@@ -126,6 +138,8 @@ const _sfc_main = /* @__PURE__ */ Object.assign({
126
138
  ])) : createCommentVNode("", true),
127
139
  createElementVNode("div", _hoisted_2, [
128
140
  (openBlock(), createBlock(resolveDynamicComponent(unref(currentComponent)), {
141
+ ref_key: "docRef",
142
+ ref: docRef,
129
143
  isEdit: __props.formMode != "query",
130
144
  isSupplement: __props.config.isSupplement,
131
145
  multiple: __props.config.multiple,
@@ -52,7 +52,7 @@ const _sfc_main = {
52
52
  };
53
53
  }
54
54
  };
55
- const component = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-3ba17464"]]);
55
+ const component = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-0d3ae9b5"]]);
56
56
  export {
57
57
  component as default
58
58
  };
@@ -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 { getCurrentInstance, ref, watch, onMounted, onBeforeUnmount, computed, provide, resolveDirective, withDirectives, createCommentVNode, createBlock, openBlock, withCtx, createVNode, normalizeStyle, unref, normalizeClass, createElementBlock, Fragment, renderList } from "vue";
10
+ import { getCurrentInstance, ref, watch, onMounted, onBeforeUnmount, computed, provide, resolveDirective, withDirectives, createCommentVNode, createBlock, openBlock, normalizeClass, withCtx, createVNode, normalizeStyle, unref, createElementBlock, Fragment, renderList } from "vue";
11
11
  import "../../../../../../node_modules/grid-layout-plus/es/index.mjs";
12
12
  import { getCurrentVueInstance } from "../../../utils/getInstance.mjs";
13
13
  import getJsonAsyncUtil from "../../../utils/getJsonAsyncUtil.mjs";
@@ -96,6 +96,10 @@ const _sfc_main = /* @__PURE__ */ Object.assign({
96
96
  isApproval: {
97
97
  type: Boolean,
98
98
  default: false
99
+ },
100
+ class: {
101
+ type: String,
102
+ default: ""
99
103
  }
100
104
  },
101
105
  emits: [
@@ -658,6 +662,15 @@ const _sfc_main = /* @__PURE__ */ Object.assign({
658
662
  subFormPromises.push((_a = formRef.value) == null ? void 0 : _a.validate());
659
663
  return Promise.all(subFormPromises).then(() => getFormData());
660
664
  };
665
+ const docValidate = () => {
666
+ const documentComps = gridLayoutFieldsData.value.filter((item) => item.component.fieldType == "document").map((item) => item.component);
667
+ const compPromises = documentComps.map((comp) => {
668
+ var _a;
669
+ const compRef = getFormItemRef(String(comp.id));
670
+ return ((_a = compRef == null ? void 0 : compRef.validate) == null ? void 0 : _a.call(compRef)) || Promise.resolve();
671
+ });
672
+ return Promise.all(compPromises);
673
+ };
661
674
  const resetFields = () => {
662
675
  var _a, _b;
663
676
  (_a = formRef.value) == null ? void 0 : _a.clearValidate();
@@ -849,10 +862,6 @@ const _sfc_main = /* @__PURE__ */ Object.assign({
849
862
  };
850
863
  const applyLinkageEffectsForChangedFields = (changedFieldNames) => {
851
864
  var _a;
852
- console.log(
853
- "🚀 ~ applyLinkageEffectsForChangedFields ~ 变化的字段:",
854
- changedFieldNames
855
- );
856
865
  const linkedConfig = localConfig.value.linkedConfig || {};
857
866
  const fields = [...fieldsData.value, ...hiddenFields.value];
858
867
  const relevantConfigs = filterRelevantLinkageConfigs(
@@ -928,40 +937,46 @@ const _sfc_main = /* @__PURE__ */ Object.assign({
928
937
  rules[fieldName] = prodRules.value[fieldName];
929
938
  }
930
939
  formRules.value = rules;
931
- relevantConfigs.readonly.forEach((item) => {
932
- const dataLinkFieldList = item.dataLinkFieldList || [];
933
- dataLinkFieldList.forEach((fieldId) => {
934
- const layoutFieldItem = updatedLayoutData.find((g) => g.id == fieldId);
935
- if (layoutFieldItem) {
936
- layoutFieldItem.component.readOnly = false;
937
- }
938
- });
939
- if (checkFilterMatch(item.filterConfig, formData.value, fields)) {
940
+ if (formMode.value != "query") {
941
+ relevantConfigs.readonly.forEach((item) => {
942
+ const dataLinkFieldList = item.dataLinkFieldList || [];
940
943
  dataLinkFieldList.forEach((fieldId) => {
941
944
  const layoutFieldItem = updatedLayoutData.find((g) => g.id == fieldId);
942
945
  if (layoutFieldItem) {
943
- layoutFieldItem.component.readOnly = true;
946
+ layoutFieldItem.component.readOnly = false;
944
947
  }
945
948
  });
946
- }
947
- });
948
- relevantConfigs.disabled.forEach((item) => {
949
- const dataLinkFieldList = item.dataLinkFieldList || [];
950
- dataLinkFieldList.forEach((fieldId) => {
951
- const layoutFieldItem = updatedLayoutData.find((g) => g.id == fieldId);
952
- if (layoutFieldItem) {
953
- layoutFieldItem.component.disabled = false;
949
+ if (checkFilterMatch(item.filterConfig, formData.value, fields)) {
950
+ dataLinkFieldList.forEach((fieldId) => {
951
+ const layoutFieldItem = updatedLayoutData.find(
952
+ (g) => g.id == fieldId
953
+ );
954
+ if (layoutFieldItem) {
955
+ layoutFieldItem.component.readOnly = true;
956
+ }
957
+ });
954
958
  }
955
959
  });
956
- if (checkFilterMatch(item.filterConfig, formData.value, fields)) {
960
+ relevantConfigs.disabled.forEach((item) => {
961
+ const dataLinkFieldList = item.dataLinkFieldList || [];
957
962
  dataLinkFieldList.forEach((fieldId) => {
958
963
  const layoutFieldItem = updatedLayoutData.find((g) => g.id == fieldId);
959
964
  if (layoutFieldItem) {
960
- layoutFieldItem.component.disabled = true;
965
+ layoutFieldItem.component.disabled = false;
961
966
  }
962
967
  });
963
- }
964
- });
968
+ if (checkFilterMatch(item.filterConfig, formData.value, fields)) {
969
+ dataLinkFieldList.forEach((fieldId) => {
970
+ const layoutFieldItem = updatedLayoutData.find(
971
+ (g) => g.id == fieldId
972
+ );
973
+ if (layoutFieldItem) {
974
+ layoutFieldItem.component.disabled = true;
975
+ }
976
+ });
977
+ }
978
+ });
979
+ }
965
980
  const fieldsConfigArr = updatedLayoutData.filter((item) => !item.hidden);
966
981
  gridLayoutFieldsData.value = sortLayoutItems(fieldsConfigArr);
967
982
  (_a = gridLayout == null ? void 0 : gridLayout.value) == null ? void 0 : _a.resizeEvent();
@@ -1077,6 +1092,7 @@ const _sfc_main = /* @__PURE__ */ Object.assign({
1077
1092
  provide("getFormData", getFormData);
1078
1093
  __expose({
1079
1094
  validate,
1095
+ docValidate,
1080
1096
  resetFields,
1081
1097
  getFormData,
1082
1098
  setFormData,
@@ -1093,7 +1109,7 @@ const _sfc_main = /* @__PURE__ */ Object.assign({
1093
1109
  const _directive_fec_layout = resolveDirective("fec-layout");
1094
1110
  return !configLoading.value ? withDirectives((openBlock(), createBlock(_component_el_container, {
1095
1111
  key: 0,
1096
- class: "fec-form",
1112
+ class: normalizeClass(["fec-form", __props.class]),
1097
1113
  "data-id": localConfig.value.templateKey,
1098
1114
  "data-name": localConfig.value.templateName,
1099
1115
  "data-pkId": localConfig.value.pkId,
@@ -1207,13 +1223,13 @@ const _sfc_main = /* @__PURE__ */ Object.assign({
1207
1223
  })) : createCommentVNode("", true)
1208
1224
  ]),
1209
1225
  _: 1
1210
- }, 8, ["data-id", "data-name", "data-pkId"])), [
1226
+ }, 8, ["class", "data-id", "data-name", "data-pkId"])), [
1211
1227
  [_directive_fec_layout]
1212
1228
  ]) : createCommentVNode("", true);
1213
1229
  };
1214
1230
  }
1215
1231
  });
1216
- const _Form = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-c86c3354"]]);
1232
+ const _Form = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-318c562a"]]);
1217
1233
  export {
1218
1234
  _Form as default
1219
1235
  };
@@ -46,7 +46,7 @@ const _sfc_main = {
46
46
  e.preventDefault();
47
47
  emit("update:modelValue", link.id);
48
48
  emit("change", link);
49
- const element = document.getElementById(link.id);
49
+ const element = document.getElementById(`comp_${link.id}`);
50
50
  if (element) {
51
51
  isClickScrolling = true;
52
52
  element.scrollIntoView({ behavior: "smooth", block: "start" });
@@ -103,7 +103,7 @@ const _sfc_main = {
103
103
  };
104
104
  }
105
105
  };
106
- const FormAnchorNav = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-c1a977b4"]]);
106
+ const FormAnchorNav = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-fe427ccb"]]);
107
107
  export {
108
108
  FormAnchorNav as default
109
109
  };
@@ -43,7 +43,7 @@ const _sfc_main = {
43
43
  e.preventDefault();
44
44
  emit("update:modelValue", link.id);
45
45
  emit("change", link);
46
- const element = document.getElementById(link.id);
46
+ const element = document.getElementById(`comp_${link.id}`);
47
47
  if (element) {
48
48
  isClickScrolling = true;
49
49
  element.scrollIntoView({ behavior: "smooth", block: "start" });
@@ -120,7 +120,7 @@ const _sfc_main = {
120
120
  };
121
121
  }
122
122
  };
123
- const RightAnchorNav = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-a571766d"]]);
123
+ const RightAnchorNav = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-8e0e370c"]]);
124
124
  export {
125
125
  RightAnchorNav as default
126
126
  };
@@ -160,7 +160,8 @@ const _sfc_main = /* @__PURE__ */ Object.assign({
160
160
  prop: __props.config.fieldName,
161
161
  required: __props.config.required,
162
162
  error: __props.error,
163
- "label-width": 160
163
+ "label-width": 160,
164
+ id: `comp_${__props.config.id}`
164
165
  }, createSlots({
165
166
  default: withCtx(() => [
166
167
  __props.config.labelMode != "label" ? (openBlock(), createBlock(resolveDynamicComponent(componentType.value), mergeProps({
@@ -201,11 +202,11 @@ const _sfc_main = /* @__PURE__ */ Object.assign({
201
202
  }),
202
203
  key: "0"
203
204
  } : void 0
204
- ]), 1032, ["prop", "required", "error"]));
205
+ ]), 1032, ["prop", "required", "error", "id"]));
205
206
  };
206
207
  }
207
208
  });
208
- const _FormItem = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-2b2c1dcf"]]);
209
+ const _FormItem = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-08a3d7ce"]]);
209
210
  export {
210
211
  _FormItem as default
211
212
  };
@@ -20,7 +20,7 @@ const _sfc_main = {
20
20
  return (_ctx, _cache) => {
21
21
  return openBlock(), createElementBlock("div", {
22
22
  class: "fec-h2",
23
- id: __props.config.id
23
+ id: `comp_${__props.config.id}`
24
24
  }, [
25
25
  _cache[0] || (_cache[0] = createElementVNode("div", { class: "fec-label-line" }, null, -1)),
26
26
  createElementVNode("div", _hoisted_2, [
@@ -39,7 +39,7 @@ const _sfc_main = {
39
39
  };
40
40
  }
41
41
  };
42
- const _H2 = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-203f2333"]]);
42
+ const _H2 = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-e871241a"]]);
43
43
  export {
44
44
  _H2 as default
45
45
  };
@@ -498,7 +498,7 @@ async function handleFormSetValue(node, data, fields, context) {
498
498
  }
499
499
  }
500
500
  async function handleFormSubmit(node, data, fields, context) {
501
- var _a, _b, _c, _d, _e, _f, _g, _h;
501
+ var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j;
502
502
  const basic = node.basic || {};
503
503
  if (!(basic == null ? void 0 : basic.dataSourceId)) {
504
504
  console.error("form-setValue: 缺少 dataSourceId 配置");
@@ -527,6 +527,27 @@ async function handleFormSubmit(node, data, fields, context) {
527
527
  };
528
528
  }
529
529
  }
530
+ if (basic == null ? void 0 : basic.docValidate) {
531
+ const docValidateMethod = (_g = (_f = formComponent == null ? void 0 : formComponent.$) == null ? void 0 : _f.exposed) == null ? void 0 : _g.docValidate;
532
+ try {
533
+ if (typeof docValidateMethod === "function") {
534
+ await docValidateMethod();
535
+ } else {
536
+ console.error("未找到表单组件的 docValidate 方法");
537
+ return {
538
+ success: false,
539
+ message: "表单组件未正确配置或 docValidate 方法未暴露",
540
+ shouldShowError: true
541
+ };
542
+ }
543
+ } catch (error) {
544
+ return {
545
+ success: false,
546
+ message: "要件校验失败!",
547
+ shouldShowError: false
548
+ };
549
+ }
550
+ }
530
551
  if (typeof getFormDataMethod === "function") {
531
552
  try {
532
553
  let formData = getFormDataMethod();
@@ -553,8 +574,8 @@ async function handleFormSubmit(node, data, fields, context) {
553
574
  formData = removeEmptyValues(result.data || {});
554
575
  delete formData.pageNo;
555
576
  delete formData.pageSize;
556
- const formComponent2 = (_f = context.components) == null ? void 0 : _f.form;
557
- const setFormDataMethod = (_h = (_g = formComponent2 == null ? void 0 : formComponent2.$) == null ? void 0 : _g.exposed) == null ? void 0 : _h.setFormData;
577
+ const formComponent2 = (_h = context.components) == null ? void 0 : _h.form;
578
+ const setFormDataMethod = (_j = (_i = formComponent2 == null ? void 0 : formComponent2.$) == null ? void 0 : _i.exposed) == null ? void 0 : _j.setFormData;
558
579
  if (typeof setFormDataMethod === "function") {
559
580
  setFormDataMethod(formData);
560
581
  } else {
@@ -640,7 +661,7 @@ async function handleDialog(node, data, fields, context) {
640
661
  }
641
662
  }
642
663
  async function handleRiskSchDialog(node, data, fields, context) {
643
- var _a, _b, _c;
664
+ var _a, _b, _c, _d, _e, _f;
644
665
  const basic = node.basic || {};
645
666
  if (!(basic == null ? void 0 : basic.schNo)) {
646
667
  console.error("风险拦截校验: 缺少 schNo 配置");
@@ -657,6 +678,13 @@ async function handleRiskSchDialog(node, data, fields, context) {
657
678
  await validateMethod();
658
679
  }
659
680
  }
681
+ if (basic == null ? void 0 : basic.docValidate) {
682
+ const formComponent = (_d = context.components) == null ? void 0 : _d.form;
683
+ const docValidateMethod = (_f = (_e = formComponent == null ? void 0 : formComponent.$) == null ? void 0 : _e.exposed) == null ? void 0 : _f.docValidate;
684
+ if (typeof docValidateMethod === "function") {
685
+ await docValidateMethod();
686
+ }
687
+ }
660
688
  const schNo = basic.schNo;
661
689
  const paramList = parseRouteParams(basic == null ? void 0 : basic.params, data, fields);
662
690
  const busNo = parseSingleParamValue(basic.busNo, data, fields);
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
3
- const version = "5.5.72";
3
+ const version = "5.5.74";
4
4
  const packageJson = {
5
5
  version
6
6
  };
@@ -11,7 +11,7 @@ require("../../../node_modules/element-plus/es/index.js");
11
11
  ;/* empty css */
12
12
  const Vue = require("vue");
13
13
  const index$2 = require("../../../node_modules/@element-plus/icons-vue/dist/index.js");
14
- const ValueSelector = require("./ValueSelector.vue.js");
14
+ const ValueSelector = require("./ValueSelector.vue2.js");
15
15
  const index = require("../api/index.js");
16
16
  ;/* empty css */
17
17
  const _pluginVue_exportHelper = require("../../../_virtual/_plugin-vue_export-helper.js");
@@ -39,7 +39,7 @@ const _sfc_main = {
39
39
  modelValue: {
40
40
  type: Object,
41
41
  default: () => ({
42
- optionSource: "custom",
42
+ optionSource: "dictionary",
43
43
  options: [
44
44
  {
45
45
  id: 1769067474103,
@@ -295,5 +295,5 @@ const _sfc_main = {
295
295
  };
296
296
  }
297
297
  };
298
- const OptionConfig = /* @__PURE__ */ _pluginVue_exportHelper.default(_sfc_main, [["__scopeId", "data-v-fd4c229c"]]);
298
+ const OptionConfig = /* @__PURE__ */ _pluginVue_exportHelper.default(_sfc_main, [["__scopeId", "data-v-fe7440f2"]]);
299
299
  exports.default = OptionConfig;
@@ -6,7 +6,7 @@ require("../../../node_modules/element-plus/es/index.js");
6
6
  ;/* empty css */
7
7
  const Vue = require("vue");
8
8
  const index$1 = require("../../../node_modules/@element-plus/icons-vue/dist/index.js");
9
- const ValueSelector = require("./ValueSelector.vue.js");
9
+ const ValueSelector = require("./ValueSelector.vue2.js");
10
10
  ;/* empty css */
11
11
  const _pluginVue_exportHelper = require("../../../_virtual/_plugin-vue_export-helper.js");
12
12
  const index = require("../../../node_modules/element-plus/es/components/button/index.js");
@@ -18,7 +18,7 @@ const index$2 = require("../../../../node_modules/@element-plus/icons-vue/dist/i
18
18
  const common = require("../../packages/utils/common.js");
19
19
  const index$5 = require("../../packages/form/aside/index.js");
20
20
  const index$6 = require("../../packages/table/aside/index.js");
21
- const ValueSelector = require("../../components/ValueSelector.vue.js");
21
+ const ValueSelector = require("../../components/ValueSelector.vue2.js");
22
22
  ;/* empty css */
23
23
  const _pluginVue_exportHelper = require("../../../../_virtual/_plugin-vue_export-helper.js");
24
24
  const index = require("../../../../node_modules/element-plus/es/components/dialog/index.js");
@@ -16,7 +16,7 @@ require("../../../../node_modules/element-plus/theme-chalk/el-tooltip.css.js");
16
16
  require("../../../../node_modules/element-plus/theme-chalk/el-date-picker.css.js");
17
17
  const Vue = require("vue");
18
18
  const index = require("../../../../node_modules/@vueuse/core/dist/index.js");
19
- const ValueSelector = require("../../components/ValueSelector.vue.js");
19
+ const ValueSelector = require("../../components/ValueSelector.vue2.js");
20
20
  const index$1 = require("../../api/index.js");
21
21
  const common = require("../utils/common.js");
22
22
  const datasource = require("../utils/datasource.js");
@@ -32,7 +32,7 @@ require("../../../../node_modules/element-plus/theme-chalk/el-date-picker.css.js
32
32
  ;/* empty css */
33
33
  ;/* empty css */
34
34
  const _pluginVue_exportHelper = require("../../../../_virtual/_plugin-vue_export-helper.js");
35
- ;/* empty css */
35
+ ;/* empty css */
36
36
  ;/* empty css */
37
37
  ;/* empty css */
38
38
  ;/* empty css */
@@ -86,7 +86,7 @@ const widgets = require("../table/property/widgets.vue.js");
86
86
  require("../../../../node_modules/element-plus/theme-chalk/el-tab-pane.css.js");
87
87
  ;/* empty css */
88
88
  ;/* empty css */
89
- ;/* empty css */
89
+ ;/* empty css */
90
90
  ;/* empty css */
91
91
  ;/* empty css */
92
92
  ;/* empty css */
@@ -86,7 +86,7 @@ const widgets = require("../table/property/widgets.vue.js");
86
86
  require("../../../../node_modules/element-plus/theme-chalk/el-tab-pane.css.js");
87
87
  ;/* empty css */
88
88
  ;/* empty css */
89
- ;/* empty css */
89
+ ;/* empty css */
90
90
  ;/* empty css */
91
91
  ;/* empty css */
92
92
  ;/* empty css */
@@ -35,11 +35,20 @@ const _sfc_main = {
35
35
  ]),
36
36
  _: 1
37
37
  }),
38
+ Vue.createVNode(_component_el_form_item, { label: "要件必传校验" }, {
39
+ default: Vue.withCtx(() => [
40
+ Vue.createVNode(_component_el_switch, {
41
+ modelValue: __props.formData.docValidate,
42
+ "onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => __props.formData.docValidate = $event)
43
+ }, null, 8, ["modelValue"])
44
+ ]),
45
+ _: 1
46
+ }),
38
47
  Vue.createVNode(_component_el_form_item, { label: "选择数据源" }, {
39
48
  default: Vue.withCtx(() => [
40
49
  Vue.createVNode(DataSourceSelect.default, {
41
50
  modelValue: __props.formData.dataSourceId,
42
- "onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => __props.formData.dataSourceId = $event)
51
+ "onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => __props.formData.dataSourceId = $event)
43
52
  }, null, 8, ["modelValue"])
44
53
  ]),
45
54
  _: 1
@@ -47,10 +56,10 @@ const _sfc_main = {
47
56
  Vue.createVNode(_component_el_form_item, { label: "扩展参数" }, {
48
57
  default: Vue.withCtx(() => [
49
58
  Vue.createElementVNode("div", _hoisted_1, [
50
- _cache[5] || (_cache[5] = Vue.createElementVNode("div", { class: "condition-desc" }, " 配置额外的请求参数,用于补充表单上没有的字段。 ", -1)),
59
+ _cache[6] || (_cache[6] = Vue.createElementVNode("div", { class: "condition-desc" }, " 配置额外的请求参数,用于补充表单上没有的字段。 ", -1)),
51
60
  Vue.createVNode(ParamsConfig.default, {
52
61
  modelValue: __props.formData.extraParams,
53
- "onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => __props.formData.extraParams = $event)
62
+ "onUpdate:modelValue": _cache[3] || (_cache[3] = ($event) => __props.formData.extraParams = $event)
54
63
  }, null, 8, ["modelValue"])
55
64
  ])
56
65
  ]),
@@ -59,10 +68,10 @@ const _sfc_main = {
59
68
  Vue.createVNode(_component_el_form_item, { label: "字段映射" }, {
60
69
  default: Vue.withCtx(() => [
61
70
  Vue.createElementVNode("div", _hoisted_2, [
62
- _cache[6] || (_cache[6] = Vue.createElementVNode("div", { class: "condition-desc" }, " 当提交的字段与表单字段不一致时,可通过此配置进行映射。 ", -1)),
71
+ _cache[7] || (_cache[7] = Vue.createElementVNode("div", { class: "condition-desc" }, " 当提交的字段与表单字段不一致时,可通过此配置进行映射。 ", -1)),
63
72
  Vue.createVNode(FieldMapping.default, {
64
73
  modelValue: __props.formData.fieldMapping,
65
- "onUpdate:modelValue": _cache[3] || (_cache[3] = ($event) => __props.formData.fieldMapping = $event)
74
+ "onUpdate:modelValue": _cache[4] || (_cache[4] = ($event) => __props.formData.fieldMapping = $event)
66
75
  }, null, 8, ["modelValue"])
67
76
  ])
68
77
  ]),
@@ -73,10 +82,10 @@ const _sfc_main = {
73
82
  Vue.createElementVNode("div", _hoisted_3, [
74
83
  Vue.createVNode(_component_el_switch, {
75
84
  modelValue: __props.formData.returnToForm,
76
- "onUpdate:modelValue": _cache[4] || (_cache[4] = ($event) => __props.formData.returnToForm = $event),
85
+ "onUpdate:modelValue": _cache[5] || (_cache[5] = ($event) => __props.formData.returnToForm = $event),
77
86
  style: { "width": "100%" }
78
87
  }, null, 8, ["modelValue"]),
79
- _cache[7] || (_cache[7] = Vue.createElementVNode("div", { class: "condition-desc" }, " 当开启后,将返回的数据赋值到表单字段及隐藏域中。 ", -1))
88
+ _cache[8] || (_cache[8] = Vue.createElementVNode("div", { class: "condition-desc" }, " 当开启后,将返回的数据赋值到表单字段及隐藏域中。 ", -1))
80
89
  ])
81
90
  ]),
82
91
  _: 1
@@ -85,5 +94,5 @@ const _sfc_main = {
85
94
  };
86
95
  }
87
96
  };
88
- const FormSubmit = /* @__PURE__ */ _pluginVue_exportHelper.default(_sfc_main, [["__scopeId", "data-v-fca821f2"]]);
97
+ const FormSubmit = /* @__PURE__ */ _pluginVue_exportHelper.default(_sfc_main, [["__scopeId", "data-v-1e21f9d9"]]);
89
98
  exports.default = FormSubmit;
@@ -6,7 +6,7 @@ require("../../../../../../node_modules/element-plus/es/index.js");
6
6
  ;/* empty css */
7
7
  const Vue = require("vue");
8
8
  const RiskSchemeSelector = require("../../../../components/RiskSchemeSelector.vue2.js");
9
- const ValueSelector = require("../../../../components/ValueSelector.vue.js");
9
+ const ValueSelector = require("../../../../components/ValueSelector.vue2.js");
10
10
  const ParamsConfig = require("../../../../components/ParamsConfig.vue2.js");
11
11
  const index = require("../../../../../../node_modules/element-plus/es/components/form/index.js");
12
12
  const index$1 = require("../../../../../../node_modules/element-plus/es/components/switch/index.js");
@@ -29,13 +29,22 @@ const _sfc_main = {
29
29
  ]),
30
30
  _: 1
31
31
  }),
32
+ Vue.createVNode(_component_el_form_item, { label: "要件必传校验" }, {
33
+ default: Vue.withCtx(() => [
34
+ Vue.createVNode(_component_el_switch, {
35
+ modelValue: __props.formData.docValidate,
36
+ "onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => __props.formData.docValidate = $event)
37
+ }, null, 8, ["modelValue"])
38
+ ]),
39
+ _: 1
40
+ }),
32
41
  Vue.createVNode(_component_el_form_item, { label: "风险方案" }, {
33
42
  default: Vue.withCtx(() => [
34
43
  Vue.createVNode(RiskSchemeSelector.default, {
35
44
  modelValue: __props.formData.schName,
36
- "onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => __props.formData.schName = $event),
45
+ "onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => __props.formData.schName = $event),
37
46
  schNo: __props.formData.schNo,
38
- "onUpdate:schNo": _cache[2] || (_cache[2] = ($event) => __props.formData.schNo = $event)
47
+ "onUpdate:schNo": _cache[3] || (_cache[3] = ($event) => __props.formData.schNo = $event)
39
48
  }, null, 8, ["modelValue", "schNo"])
40
49
  ]),
41
50
  _: 1
@@ -44,7 +53,7 @@ const _sfc_main = {
44
53
  default: Vue.withCtx(() => [
45
54
  Vue.createVNode(ValueSelector.default, {
46
55
  modelValue: __props.formData.busNo,
47
- "onUpdate:modelValue": _cache[3] || (_cache[3] = ($event) => __props.formData.busNo = $event),
56
+ "onUpdate:modelValue": _cache[4] || (_cache[4] = ($event) => __props.formData.busNo = $event),
48
57
  multiple: false,
49
58
  placeholder: "选择业务主键"
50
59
  }, null, 8, ["modelValue"])
@@ -55,7 +64,7 @@ const _sfc_main = {
55
64
  default: Vue.withCtx(() => [
56
65
  Vue.createVNode(ParamsConfig.default, {
57
66
  modelValue: __props.formData.params,
58
- "onUpdate:modelValue": _cache[4] || (_cache[4] = ($event) => __props.formData.params = $event)
67
+ "onUpdate:modelValue": _cache[5] || (_cache[5] = ($event) => __props.formData.params = $event)
59
68
  }, null, 8, ["modelValue"])
60
69
  ]),
61
70
  _: 1
@@ -13,7 +13,7 @@ require("../../../../../node_modules/element-plus/es/index.js");
13
13
  const Vue = require("vue");
14
14
  const common = require("../../utils/common.js");
15
15
  const eventBus = require("../../utils/eventBus.js");
16
- const ValueSelector = require("../../../components/ValueSelector.vue.js");
16
+ const ValueSelector = require("../../../components/ValueSelector.vue2.js");
17
17
  const index = require("../../../../../node_modules/element-plus/es/components/collapse/index.js");
18
18
  const index$1 = require("../../../../../node_modules/element-plus/es/components/form/index.js");
19
19
  const index$2 = require("../../../../../node_modules/element-plus/es/components/input/index.js");