@fecp/designer 5.5.100 → 5.5.102

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 (75) hide show
  1. package/es/designer/package.json.mjs +1 -1
  2. package/es/designer/src/packages/dialog/useDialogDialog.mjs +1 -1
  3. package/es/designer/src/packages/dialogGlobal/useDialogGlobalDialog.mjs +1 -1
  4. package/es/designer/src/packages/form/property/widgets.vue.mjs +2 -2
  5. package/es/designer.css +436 -125
  6. package/es/packages/mobile/index.mjs +4 -0
  7. package/es/packages/mobile/src/components/all.mjs +4 -0
  8. package/es/packages/mobile/src/components/custom/appDetail/AppDetail.vue.mjs +69 -9
  9. package/es/packages/mobile/src/components/custom/approvalBar/ApprovalBar.vue.mjs +191 -0
  10. package/es/packages/mobile/src/components/custom/approvalBar/index.mjs +10 -0
  11. package/es/packages/mobile/src/components/custom/approvalList/ApprovalList.vue.mjs +391 -0
  12. package/es/packages/mobile/src/components/custom/approvalList/index.mjs +10 -0
  13. package/es/packages/mobile/src/components/dataDisplay/cardList/CardList.vue.mjs +2 -18
  14. package/es/packages/mobile/src/components/dataDisplay/table/Table.vue.mjs +43 -11
  15. package/es/packages/mobile/src/components/form/field/Field.vue.mjs +38 -26
  16. package/es/packages/mobile/src/components/form/fieldArea/FieldArea.vue.mjs +4 -2
  17. package/es/packages/mobile/src/components/form/fieldCalendarPicker/FieldCalendarPicker.vue.mjs +1 -1
  18. package/es/packages/mobile/src/components/form/fieldCascaderPicker/fieldCascaderPicker.vue.mjs +1 -1
  19. package/es/packages/mobile/src/components/form/fieldDatePicker/FieldDatePicker.vue.mjs +1 -1
  20. package/es/packages/mobile/src/components/form/fieldDateTimePicker/FieldDateTimePicker.vue.mjs +1 -1
  21. package/es/packages/mobile/src/components/form/fieldIndustry/FieldIndustry.vue.mjs +38 -27
  22. package/es/packages/mobile/src/components/form/fieldPicker/FieldPicker.vue.mjs +58 -41
  23. package/es/packages/mobile/src/components/form/fieldTimePicker/FieldTimePicker.vue.mjs +1 -1
  24. package/es/packages/mobile/src/components/navigation/tabs/Tabs.vue.mjs +34 -5
  25. package/es/packages/mobile/src/composables/usePageEvents.mjs +80 -0
  26. package/es/packages/mobile/src/index.vue.mjs +11 -21
  27. package/es/packages/mobile/src/page.vue.mjs +152 -12
  28. package/es/packages/mobile/src/utils/common.mjs +15 -0
  29. package/es/packages/mobile/src/utils/datasource.mjs +12 -1
  30. package/es/packages/mobile/src/utils/eventFlow/actionHandlers.mjs +852 -0
  31. package/es/packages/mobile/src/utils/eventFlow/eventFlowHandler.mjs +94 -0
  32. package/es/packages/mobile/src/utils/eventFlowParser.mjs +396 -0
  33. package/es/packages/mobile/src/utils/formatterUtil.mjs +1 -0
  34. package/es/packages/mobile/src/utils/parseFilterConfig.mjs +98 -0
  35. package/es/packages/vue/src/components/forms/form/Form.vue.mjs +1 -1
  36. package/es/packages/vue/src/components/forms/subTable/SubTable.vue.mjs +8 -7
  37. package/es/packages/vue/src/components/table/Table.vue.mjs +11 -1
  38. package/lib/designer/package.json.js +1 -1
  39. package/lib/designer/src/packages/dialog/useDialogDialog.js +1 -1
  40. package/lib/designer/src/packages/dialogGlobal/useDialogGlobalDialog.js +1 -1
  41. package/lib/designer/src/packages/form/property/widgets.vue.js +2 -2
  42. package/lib/designer.css +436 -125
  43. package/lib/packages/mobile/index.js +6 -2
  44. package/lib/packages/mobile/src/components/all.js +4 -0
  45. package/lib/packages/mobile/src/components/custom/appDetail/AppDetail.vue.js +68 -8
  46. package/lib/packages/mobile/src/components/custom/approvalBar/ApprovalBar.vue.js +191 -0
  47. package/lib/packages/mobile/src/components/custom/approvalBar/index.js +10 -0
  48. package/lib/packages/mobile/src/components/custom/approvalList/ApprovalList.vue.js +391 -0
  49. package/lib/packages/mobile/src/components/custom/approvalList/index.js +10 -0
  50. package/lib/packages/mobile/src/components/dataDisplay/cardList/CardList.vue.js +2 -18
  51. package/lib/packages/mobile/src/components/dataDisplay/table/Table.vue.js +43 -11
  52. package/lib/packages/mobile/src/components/form/field/Field.vue.js +37 -25
  53. package/lib/packages/mobile/src/components/form/fieldArea/FieldArea.vue.js +4 -2
  54. package/lib/packages/mobile/src/components/form/fieldCalendarPicker/FieldCalendarPicker.vue.js +1 -1
  55. package/lib/packages/mobile/src/components/form/fieldCascaderPicker/fieldCascaderPicker.vue.js +1 -1
  56. package/lib/packages/mobile/src/components/form/fieldDatePicker/FieldDatePicker.vue.js +1 -1
  57. package/lib/packages/mobile/src/components/form/fieldDateTimePicker/FieldDateTimePicker.vue.js +1 -1
  58. package/lib/packages/mobile/src/components/form/fieldIndustry/FieldIndustry.vue.js +37 -26
  59. package/lib/packages/mobile/src/components/form/fieldPicker/FieldPicker.vue.js +57 -40
  60. package/lib/packages/mobile/src/components/form/fieldTimePicker/FieldTimePicker.vue.js +1 -1
  61. package/lib/packages/mobile/src/components/navigation/tabs/Tabs.vue.js +33 -4
  62. package/lib/packages/mobile/src/composables/usePageEvents.js +80 -0
  63. package/lib/packages/mobile/src/index.vue.js +11 -21
  64. package/lib/packages/mobile/src/page.vue.js +151 -11
  65. package/lib/packages/mobile/src/utils/common.js +15 -0
  66. package/lib/packages/mobile/src/utils/datasource.js +14 -3
  67. package/lib/packages/mobile/src/utils/eventFlow/actionHandlers.js +852 -0
  68. package/lib/packages/mobile/src/utils/eventFlow/eventFlowHandler.js +94 -0
  69. package/lib/packages/mobile/src/utils/eventFlowParser.js +396 -0
  70. package/lib/packages/mobile/src/utils/formatterUtil.js +1 -0
  71. package/lib/packages/mobile/src/utils/parseFilterConfig.js +98 -0
  72. package/lib/packages/vue/src/components/forms/form/Form.vue.js +1 -1
  73. package/lib/packages/vue/src/components/forms/subTable/SubTable.vue.js +7 -6
  74. package/lib/packages/vue/src/components/table/Table.vue.js +11 -1
  75. package/package.json +1 -1
@@ -71,6 +71,8 @@ import { MobileTreeSelect } from "./src/components/navigation/treeSelect/index.m
71
71
  import { MobileLayout } from "./src/components/layout/layout/index.mjs";
72
72
  import { MobileTimeLineFilter } from "./src/components/custom/timeLineFilter/index.mjs";
73
73
  import { MobileAppDetail } from "./src/components/custom/appDetail/index.mjs";
74
+ import { MobileApprovalBar } from "./src/components/custom/approvalBar/index.mjs";
75
+ import { MobileApprovalList } from "./src/components/custom/approvalList/index.mjs";
74
76
  import { closeDialog, showConfirmDialog, showDialog } from "./node_modules/vant/es/dialog/function-call.mjs";
75
77
  import { showImagePreview } from "./node_modules/vant/es/image-preview/function-call.mjs";
76
78
  import { closeNotify, showNotify } from "./node_modules/vant/es/notify/function-call.mjs";
@@ -87,6 +89,8 @@ export {
87
89
  MobileActionBar,
88
90
  MobileActionSheet,
89
91
  MobileAppDetail,
92
+ MobileApprovalBar,
93
+ MobileApprovalList,
90
94
  MobileBackTop,
91
95
  MobileButton,
92
96
  MobileCard,
@@ -67,10 +67,14 @@ import { MobileTreeSelect } from "./navigation/treeSelect/index.mjs";
67
67
  import { MobileLayout } from "./layout/layout/index.mjs";
68
68
  import { MobileTimeLineFilter } from "./custom/timeLineFilter/index.mjs";
69
69
  import { MobileAppDetail } from "./custom/appDetail/index.mjs";
70
+ import { MobileApprovalBar } from "./custom/approvalBar/index.mjs";
71
+ import { MobileApprovalList } from "./custom/approvalList/index.mjs";
70
72
  export {
71
73
  MobileActionBar,
72
74
  MobileActionSheet,
73
75
  MobileAppDetail,
76
+ MobileApprovalBar,
77
+ MobileApprovalList,
74
78
  MobileBackTop,
75
79
  MobileButton,
76
80
  MobileCard,
@@ -1,32 +1,92 @@
1
- import { computed, resolveComponent, createBlock, openBlock, unref } from "vue";
1
+ import { getCurrentInstance, ref, computed, resolveComponent, createElementBlock, openBlock, Fragment, createVNode, createBlock, createCommentVNode, unref, isRef, normalizeProps, mergeProps } from "vue";
2
2
  /* empty css */
3
3
  import _export_sfc from "../../../../../../_virtual/_plugin-vue_export-helper.mjs";
4
4
  const _sfc_main = {
5
5
  __name: "AppDetail",
6
6
  props: {
7
- //任务对象+流程变量
7
+ params: {
8
+ type: Object,
9
+ default: {}
10
+ },
11
+ baseInfoPageSource: {
12
+ type: String,
13
+ default: "dynamic"
14
+ },
15
+ baseInfoPageId: {
16
+ type: String,
17
+ default: ""
18
+ },
8
19
  options: {
9
20
  type: Array,
10
21
  default: []
22
+ },
23
+ document: {
24
+ type: Boolean,
25
+ default: false
26
+ },
27
+ approvalHistory: {
28
+ type: Boolean,
29
+ default: false
30
+ },
31
+ actionBar: {
32
+ type: Object
33
+ },
34
+ taskId: {
35
+ type: String,
36
+ default: ""
37
+ },
38
+ taskType: {
39
+ type: String,
40
+ default: ""
11
41
  }
12
42
  },
13
43
  setup(__props) {
14
44
  const props = __props;
45
+ const currentInstance = getCurrentInstance();
46
+ const ctx = currentInstance.proxy;
47
+ ctx.route;
48
+ const activeName = ref("tab_base_info");
49
+ const baseInfoPageId = ref("");
50
+ if (props.baseInfoPageSource == "dynamic") ;
51
+ else {
52
+ baseInfoPageId.value = props.baseInfoPageId;
53
+ }
15
54
  const tabsOptions = computed(() => {
16
- return [
17
- { id: "tab_base_info", title: "基本信息" },
18
- ...props.options || [],
19
- { id: "tab_doc_info", title: "要件信息" },
20
- { id: "tab_timeline_info", title: "审批历史" }
55
+ const tabs = [
56
+ {
57
+ id: "tab_base_info",
58
+ title: "基本信息",
59
+ pageId: baseInfoPageId.value
60
+ },
61
+ ...props.options || []
21
62
  ];
63
+ if (props.document) {
64
+ tabs.push({ id: "tab_doc_info", title: "要件信息" });
65
+ }
66
+ if (props.approvalHistory) {
67
+ tabs.push({ id: "tab_timeline_info", title: "审批历史" });
68
+ }
69
+ return tabs;
70
+ });
71
+ computed(() => {
72
+ return tabsOptions.value.find((item) => item.id == activeName.value);
22
73
  });
23
74
  return (_ctx, _cache) => {
24
75
  const _component_FecMobileTabs = resolveComponent("FecMobileTabs");
25
- return openBlock(), createBlock(_component_FecMobileTabs, { options: unref(tabsOptions) }, null, 8, ["options"]);
76
+ const _component_FecMobileApprovalBar = resolveComponent("FecMobileApprovalBar");
77
+ return openBlock(), createElementBlock(Fragment, null, [
78
+ createVNode(_component_FecMobileTabs, {
79
+ modelValue: unref(activeName),
80
+ "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => isRef(activeName) ? activeName.value = $event : null),
81
+ options: unref(tabsOptions),
82
+ params: __props.params
83
+ }, null, 8, ["modelValue", "options", "params"]),
84
+ __props.actionBar ? (openBlock(), createBlock(_component_FecMobileApprovalBar, normalizeProps(mergeProps({ key: 0 }, __props.actionBar)), null, 16)) : createCommentVNode("", true)
85
+ ], 64);
26
86
  };
27
87
  }
28
88
  };
29
- const _AppDetail = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-8844ccf3"]]);
89
+ const _AppDetail = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-ab2095bf"]]);
30
90
  export {
31
91
  _AppDetail as default
32
92
  };
@@ -0,0 +1,191 @@
1
+ /* empty css */
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
+ /* empty css */
18
+ /* empty css */
19
+ import { ref, reactive, createElementBlock, openBlock, Fragment, createVNode, withCtx, renderList, createBlock, normalizeClass, unref, isRef, createElementVNode, createCommentVNode } from "vue";
20
+ /* empty css */
21
+ import _export_sfc from "../../../../../../_virtual/_plugin-vue_export-helper.mjs";
22
+ import { ActionBar } from "../../../../node_modules/vant/es/action-bar/index.mjs";
23
+ import { ActionBarButton } from "../../../../node_modules/vant/es/action-bar-button/index.mjs";
24
+ import { Popup } from "../../../../node_modules/vant/es/popup/index.mjs";
25
+ import { Field } from "../../../../node_modules/vant/es/field/index.mjs";
26
+ import { Picker } from "../../../../node_modules/vant/es/picker/index.mjs";
27
+ const _hoisted_1 = { class: "appPopContent" };
28
+ const _hoisted_2 = { class: "appOptContent" };
29
+ const _sfc_main = {
30
+ __name: "ApprovalBar",
31
+ props: {
32
+ actionBarOptions: {
33
+ type: Array,
34
+ default: []
35
+ }
36
+ },
37
+ setup(__props) {
38
+ const showAgreePop = ref(false);
39
+ const showOtherPop = ref(false);
40
+ const showOpinionPicker = ref(false);
41
+ const showTargetNodePicker = ref(false);
42
+ const currentActionItem = ref({});
43
+ const opinionForm = reactive({
44
+ opinionType: "",
45
+ opinionContent: "",
46
+ targetNode: ""
47
+ });
48
+ function clickHandler(item) {
49
+ console.log("🚀 ~ clickHandler ~ item:", item);
50
+ if (item.approvalType == "agree") {
51
+ showAgreePop.value = true;
52
+ } else if (item.approvalType == "other") {
53
+ currentActionItem.value = item;
54
+ opinionForm.opinionType = "";
55
+ opinionForm.opinionContent = "";
56
+ opinionForm.targetNode = "";
57
+ showOtherPop.value = true;
58
+ }
59
+ }
60
+ function onOpinionConfirm({ selectedOptions }) {
61
+ var _a;
62
+ opinionForm.opinionType = ((_a = selectedOptions[0]) == null ? void 0 : _a.value) || "";
63
+ showOpinionPicker.value = false;
64
+ }
65
+ function onTargetNodeConfirm({ selectedOptions }) {
66
+ var _a;
67
+ opinionForm.targetNode = ((_a = selectedOptions[0]) == null ? void 0 : _a.value) || "";
68
+ showTargetNodePicker.value = false;
69
+ }
70
+ function submitOpinion() {
71
+ console.log("提交审批意见:", opinionForm);
72
+ showOtherPop.value = false;
73
+ }
74
+ return (_ctx, _cache) => {
75
+ const _component_van_action_bar_button = ActionBarButton;
76
+ const _component_van_action_bar = ActionBar;
77
+ const _component_van_popup = Popup;
78
+ const _component_van_field = Field;
79
+ const _component_van_picker = Picker;
80
+ return openBlock(), createElementBlock(Fragment, null, [
81
+ createVNode(_component_van_action_bar, { "safe-area-inset-bottom": "" }, {
82
+ default: withCtx(() => [
83
+ (openBlock(true), createElementBlock(Fragment, null, renderList(__props.actionBarOptions, (item) => {
84
+ return openBlock(), createBlock(_component_van_action_bar_button, {
85
+ class: normalizeClass(item.bgClass || "icon-blue"),
86
+ text: item.text,
87
+ onClick: ($event) => clickHandler(item)
88
+ }, null, 8, ["class", "text", "onClick"]);
89
+ }), 256))
90
+ ]),
91
+ _: 1
92
+ }),
93
+ createVNode(_component_van_popup, {
94
+ show: unref(showAgreePop),
95
+ "onUpdate:show": _cache[0] || (_cache[0] = ($event) => isRef(showAgreePop) ? showAgreePop.value = $event : null),
96
+ round: "",
97
+ position: "bottom",
98
+ style: { height: "30%" }
99
+ }, null, 8, ["show"]),
100
+ createVNode(_component_van_popup, {
101
+ show: unref(showOtherPop),
102
+ "onUpdate:show": _cache[6] || (_cache[6] = ($event) => isRef(showOtherPop) ? showOtherPop.value = $event : null),
103
+ round: "",
104
+ position: "bottom"
105
+ }, {
106
+ default: withCtx(() => [
107
+ createElementVNode("div", _hoisted_1, [
108
+ createElementVNode("div", _hoisted_2, [
109
+ createVNode(_component_van_field, {
110
+ modelValue: unref(currentActionItem).opinionType,
111
+ "onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => unref(currentActionItem).opinionType = $event),
112
+ "is-link": "",
113
+ readonly: "",
114
+ label: "审批意见",
115
+ placeholder: "请选择审批意见",
116
+ onClick: _cache[2] || (_cache[2] = ($event) => showOpinionPicker.value = true)
117
+ }, null, 8, ["modelValue"]),
118
+ unref(currentActionItem).needTargetNode ? (openBlock(), createBlock(_component_van_field, {
119
+ key: 0,
120
+ modelValue: unref(opinionForm).targetNode,
121
+ "onUpdate:modelValue": _cache[3] || (_cache[3] = ($event) => unref(opinionForm).targetNode = $event),
122
+ "is-link": "",
123
+ readonly: "",
124
+ label: "目标节点",
125
+ placeholder: "请选择目标节点",
126
+ onClick: _cache[4] || (_cache[4] = ($event) => showTargetNodePicker.value = true)
127
+ }, null, 8, ["modelValue"])) : createCommentVNode("", true),
128
+ createVNode(_component_van_field, {
129
+ modelValue: unref(opinionForm).opinionContent,
130
+ "onUpdate:modelValue": _cache[5] || (_cache[5] = ($event) => unref(opinionForm).opinionContent = $event),
131
+ rows: "6",
132
+ autosize: "",
133
+ label: "意见内容",
134
+ type: "textarea",
135
+ maxlength: "500",
136
+ "show-word-limit": "",
137
+ placeholder: "请输入审批意见"
138
+ }, null, 8, ["modelValue"])
139
+ ]),
140
+ createVNode(_component_van_action_bar, { "safe-area-inset-bottom": "" }, {
141
+ default: withCtx(() => [
142
+ createVNode(_component_van_action_bar_button, {
143
+ class: normalizeClass("icon-blue"),
144
+ text: "提交",
145
+ onClick: submitOpinion
146
+ })
147
+ ]),
148
+ _: 1
149
+ })
150
+ ])
151
+ ]),
152
+ _: 1
153
+ }, 8, ["show"]),
154
+ createVNode(_component_van_popup, {
155
+ show: unref(showOpinionPicker),
156
+ "onUpdate:show": _cache[8] || (_cache[8] = ($event) => isRef(showOpinionPicker) ? showOpinionPicker.value = $event : null),
157
+ round: "",
158
+ position: "bottom"
159
+ }, {
160
+ default: withCtx(() => [
161
+ createVNode(_component_van_picker, {
162
+ columns: unref(currentActionItem).opinionOptions || [],
163
+ onConfirm: onOpinionConfirm,
164
+ onCancel: _cache[7] || (_cache[7] = ($event) => showOpinionPicker.value = false)
165
+ }, null, 8, ["columns"])
166
+ ]),
167
+ _: 1
168
+ }, 8, ["show"]),
169
+ createVNode(_component_van_popup, {
170
+ show: unref(showTargetNodePicker),
171
+ "onUpdate:show": _cache[10] || (_cache[10] = ($event) => isRef(showTargetNodePicker) ? showTargetNodePicker.value = $event : null),
172
+ round: "",
173
+ position: "bottom"
174
+ }, {
175
+ default: withCtx(() => [
176
+ createVNode(_component_van_picker, {
177
+ columns: unref(currentActionItem).targetNodeOptions || [],
178
+ onConfirm: onTargetNodeConfirm,
179
+ onCancel: _cache[9] || (_cache[9] = ($event) => showTargetNodePicker.value = false)
180
+ }, null, 8, ["columns"])
181
+ ]),
182
+ _: 1
183
+ }, 8, ["show"])
184
+ ], 64);
185
+ };
186
+ }
187
+ };
188
+ const _ApprovalBar = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-fc8cdb72"]]);
189
+ export {
190
+ _ApprovalBar as default
191
+ };
@@ -0,0 +1,10 @@
1
+ import _ApprovalBar from "./ApprovalBar.vue.mjs";
2
+ import install from "../../../utils/install.mjs";
3
+ const MobileApprovalBar = install.withInstall(
4
+ "MobileApprovalBar",
5
+ _ApprovalBar
6
+ );
7
+ export {
8
+ MobileApprovalBar,
9
+ MobileApprovalBar as default
10
+ };