@fecp/designer 5.5.119 → 5.5.121

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 (115) hide show
  1. package/es/designer/package.json.mjs +1 -1
  2. package/es/designer/src/packages/dataSource/index.vue.mjs +3 -3
  3. package/es/designer/src/packages/dialog/index.vue2.mjs +15 -15
  4. package/es/designer/src/packages/dialog/useDialogDialog.mjs +1 -1
  5. package/es/designer/src/packages/dialogGlobal/index.vue2.mjs +15 -16
  6. package/es/designer/src/packages/dialogGlobal/useDialogGlobalDialog.mjs +1 -1
  7. package/es/designer/src/packages/event/pageEvent.vue.mjs +1 -1
  8. package/es/designer/src/packages/form/index.vue.mjs +2 -2
  9. package/es/designer/src/packages/form/property/widgets.vue.mjs +2 -2
  10. package/es/designer.css +505 -415
  11. package/es/packages/mobile/index.mjs +2 -0
  12. package/es/packages/mobile/src/api/index.mjs +1 -1
  13. package/es/packages/mobile/src/assets/images/baseRate.png.mjs +1 -1
  14. package/es/packages/mobile/src/assets/images/home-bg.png.mjs +1 -1
  15. package/es/packages/mobile/src/assets/images/rentCalc.png.mjs +1 -1
  16. package/es/packages/mobile/src/assets/images/user.png.mjs +4 -0
  17. package/es/packages/mobile/src/components/all.mjs +2 -0
  18. package/es/packages/mobile/src/components/base/card/Card.vue.mjs +2 -2
  19. package/es/packages/mobile/src/components/custom/appDetail/AppDetail.vue.mjs +62 -44
  20. package/es/packages/mobile/src/components/custom/appTimeLine/AppTimeLine.vue.mjs +2 -2
  21. package/es/packages/mobile/src/components/custom/approvalBar/ApprovalBar.vue.mjs +128 -67
  22. package/es/packages/mobile/src/components/custom/approvalList/ApprovalList.vue.mjs +5 -5
  23. package/es/packages/mobile/src/components/custom/customCode/CustomCode.vue.mjs +60 -0
  24. package/es/packages/mobile/src/components/custom/customCode/index.mjs +10 -0
  25. package/es/packages/mobile/src/components/custom/document/Document.vue.mjs +2 -2
  26. package/es/packages/mobile/src/components/custom/userSelect/UserSelect.vue.mjs +2 -2
  27. package/es/packages/mobile/src/components/dataDisplay/cardList/CardList.vue.mjs +187 -7
  28. package/es/packages/mobile/src/components/dataDisplay/dataStat/DataStat.vue.mjs +2 -2
  29. package/es/packages/mobile/src/components/dataDisplay/mine/Mine.vue.mjs +33 -9
  30. package/es/packages/mobile/src/components/dataDisplay/rentCalcResult/RentCalcResult.vue.mjs +39 -79
  31. package/es/packages/mobile/src/components/feedback/quickFilter/QuickFilter.vue.mjs +10 -2
  32. package/es/packages/mobile/src/components/form/field/Field.vue.mjs +167 -32
  33. package/es/packages/mobile/src/components/form/fieldArea/FieldArea.vue.mjs +3 -2
  34. package/es/packages/mobile/src/components/form/fieldCalendarPicker/FieldCalendarPicker.vue.mjs +13 -15
  35. package/es/packages/mobile/src/components/form/fieldCascaderPicker/fieldCascaderPicker.vue.mjs +10 -10
  36. package/es/packages/mobile/src/components/form/fieldCheckbox/FieldCheckbox.vue.mjs +7 -23
  37. package/es/packages/mobile/src/components/form/fieldDatePicker/FieldDatePicker.vue.mjs +14 -26
  38. package/es/packages/mobile/src/components/form/fieldDateTimePicker/FieldDateTimePicker.vue.mjs +14 -15
  39. package/es/packages/mobile/src/components/form/fieldIndustry/FieldIndustry.vue.mjs +6 -19
  40. package/es/packages/mobile/src/components/form/fieldPicker/FieldPicker.vue.mjs +9 -25
  41. package/es/packages/mobile/src/components/form/fieldRadio/FieldRadio.vue.mjs +8 -24
  42. package/es/packages/mobile/src/components/form/search/Search.vue.mjs +15 -6
  43. package/es/packages/mobile/src/components/form/uploader/Uploader.vue.mjs +2 -2
  44. package/es/packages/mobile/src/components/navigation/tabbar/Tabbar.vue.mjs +9 -5
  45. package/es/packages/mobile/src/components/navigation/tabs/Tabs.vue.mjs +58 -25
  46. package/es/packages/mobile/src/index.vue.mjs +21 -4
  47. package/es/packages/mobile/src/page.vue.mjs +342 -138
  48. package/es/packages/mobile/src/utils/common.mjs +21 -0
  49. package/es/packages/mobile/src/utils/datasource.mjs +3 -3
  50. package/es/packages/mobile/src/utils/eventFlow/actionHandlers.mjs +35 -22
  51. package/es/packages/mobile/src/utils/formatterUtil.mjs +4 -24
  52. package/es/packages/mobile/src/utils/formulajs/calculate.mjs +11 -5
  53. package/es/packages/mobile/src/utils/optionUtil.mjs +3 -28
  54. package/es/packages/mobile/src/utils/pageHistory.mjs +16 -0
  55. package/es/packages/mobile/src/utils/validation.mjs +129 -0
  56. package/es/packages/vue/src/components/forms/number/Number.vue.mjs +3 -2
  57. package/es/packages/vue/src/components/table/TableColumn.vue.mjs +12 -8
  58. package/lib/designer/package.json.js +1 -1
  59. package/lib/designer/src/packages/dataSource/index.vue.js +3 -3
  60. package/lib/designer/src/packages/dialog/index.vue2.js +15 -15
  61. package/lib/designer/src/packages/dialog/useDialogDialog.js +1 -1
  62. package/lib/designer/src/packages/dialogGlobal/index.vue2.js +15 -16
  63. package/lib/designer/src/packages/dialogGlobal/useDialogGlobalDialog.js +1 -1
  64. package/lib/designer/src/packages/event/pageEvent.vue.js +1 -1
  65. package/lib/designer/src/packages/form/index.vue.js +2 -2
  66. package/lib/designer/src/packages/form/property/widgets.vue.js +2 -2
  67. package/lib/designer.css +505 -415
  68. package/lib/packages/mobile/index.js +4 -2
  69. package/lib/packages/mobile/src/api/index.js +1 -1
  70. package/lib/packages/mobile/src/assets/images/baseRate.png.js +1 -1
  71. package/lib/packages/mobile/src/assets/images/home-bg.png.js +1 -1
  72. package/lib/packages/mobile/src/assets/images/rentCalc.png.js +1 -1
  73. package/lib/packages/mobile/src/assets/images/user.png.js +4 -0
  74. package/lib/packages/mobile/src/components/all.js +2 -0
  75. package/lib/packages/mobile/src/components/base/card/Card.vue.js +2 -2
  76. package/lib/packages/mobile/src/components/custom/appDetail/AppDetail.vue.js +61 -43
  77. package/lib/packages/mobile/src/components/custom/appTimeLine/AppTimeLine.vue.js +2 -2
  78. package/lib/packages/mobile/src/components/custom/approvalBar/ApprovalBar.vue.js +131 -70
  79. package/lib/packages/mobile/src/components/custom/approvalList/ApprovalList.vue.js +5 -5
  80. package/lib/packages/mobile/src/components/custom/customCode/CustomCode.vue.js +60 -0
  81. package/lib/packages/mobile/src/components/custom/customCode/index.js +10 -0
  82. package/lib/packages/mobile/src/components/custom/document/Document.vue.js +2 -2
  83. package/lib/packages/mobile/src/components/custom/userSelect/UserSelect.vue.js +2 -2
  84. package/lib/packages/mobile/src/components/dataDisplay/cardList/CardList.vue.js +187 -7
  85. package/lib/packages/mobile/src/components/dataDisplay/dataStat/DataStat.vue.js +2 -2
  86. package/lib/packages/mobile/src/components/dataDisplay/mine/Mine.vue.js +38 -14
  87. package/lib/packages/mobile/src/components/dataDisplay/rentCalcResult/RentCalcResult.vue.js +39 -79
  88. package/lib/packages/mobile/src/components/feedback/quickFilter/QuickFilter.vue.js +10 -2
  89. package/lib/packages/mobile/src/components/form/field/Field.vue.js +165 -30
  90. package/lib/packages/mobile/src/components/form/fieldArea/FieldArea.vue.js +3 -2
  91. package/lib/packages/mobile/src/components/form/fieldCalendarPicker/FieldCalendarPicker.vue.js +13 -15
  92. package/lib/packages/mobile/src/components/form/fieldCascaderPicker/fieldCascaderPicker.vue.js +9 -9
  93. package/lib/packages/mobile/src/components/form/fieldCheckbox/FieldCheckbox.vue.js +6 -22
  94. package/lib/packages/mobile/src/components/form/fieldDatePicker/FieldDatePicker.vue.js +13 -25
  95. package/lib/packages/mobile/src/components/form/fieldDateTimePicker/FieldDateTimePicker.vue.js +13 -14
  96. package/lib/packages/mobile/src/components/form/fieldIndustry/FieldIndustry.vue.js +6 -19
  97. package/lib/packages/mobile/src/components/form/fieldPicker/FieldPicker.vue.js +8 -24
  98. package/lib/packages/mobile/src/components/form/fieldRadio/FieldRadio.vue.js +7 -23
  99. package/lib/packages/mobile/src/components/form/search/Search.vue.js +15 -6
  100. package/lib/packages/mobile/src/components/form/uploader/Uploader.vue.js +2 -2
  101. package/lib/packages/mobile/src/components/navigation/tabbar/Tabbar.vue.js +9 -5
  102. package/lib/packages/mobile/src/components/navigation/tabs/Tabs.vue.js +61 -28
  103. package/lib/packages/mobile/src/index.vue.js +20 -3
  104. package/lib/packages/mobile/src/page.vue.js +341 -137
  105. package/lib/packages/mobile/src/utils/common.js +21 -0
  106. package/lib/packages/mobile/src/utils/datasource.js +3 -3
  107. package/lib/packages/mobile/src/utils/eventFlow/actionHandlers.js +35 -22
  108. package/lib/packages/mobile/src/utils/formatterUtil.js +3 -23
  109. package/lib/packages/mobile/src/utils/formulajs/calculate.js +11 -5
  110. package/lib/packages/mobile/src/utils/optionUtil.js +2 -27
  111. package/lib/packages/mobile/src/utils/pageHistory.js +16 -0
  112. package/lib/packages/mobile/src/utils/validation.js +129 -0
  113. package/lib/packages/vue/src/components/forms/number/Number.vue.js +3 -2
  114. package/lib/packages/vue/src/components/table/TableColumn.vue.js +12 -8
  115. package/package.json +1 -1
@@ -0,0 +1,4 @@
1
+ const userImg = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAIAAAACACAMAAAD04JH5AAACvlBMVEVHcEz3y6c9PT36yqo+Pj4/Pz8+Pj48PDxAQEA/Pz+Sp/8+Pj4/Pz+Tpv+Tp/+Spv+VrP89PT2Tp//2yqn2y6j1yqmTp/+Tp/+Up/9AQECTp/+Spv+Tp/+Spv+UqP+Sp/+Zrf+Tp/89PT2Tpv+lpf8+Pj72yahAQECRpv+Sp/8/Pz+Tp/+Spv/3y6iTpv+Sp/+Up/+Spv+TqP/2yqmTp/+Tpv+VqP+Sp//Cv+D/zqf/0aqQqv//z6qSp/+Spv/2yqmVqv/1yqmSp/+Tpv/4y6r1yaiSqv+Spv+Vp/+Rpv////+UqP+UqP+TqP+Tp//2yqn2yqmXqv+Pr/+Oqv+Zs/+Tpv+Tpv/1yaj/0a73yan5y6r1yqiSpv+Tp/+Tpv+Tp/+TqP+SqP+Sp/+Tp/8+Pj72yqmTpv+TqP/3yqo9PT2Tpv/1yan2yqj1yqj2yqmSp//2yqmUqP/1yamSp//2yamTp/+Sp/+Sp//1yqmTqP/5zKySpv8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JJ+QjxQ5KLtNTjQ7Xmv6SxOB+nrTB7Pkf7smCR+tJ01K04K5Ox6sqjYaPxlqo1q8AD4sYX0ggmi5NBj+PUDIJPTvZMZekPWWdw2h8oGlG9OmLTr7q/iPCk5oMP12SFeejXf/xRDtGHmrXv35G3NKvCU7ks25i19K3sdSM3qLrT/+mJ2pveNfStAAAAAElFTkSuQmCC";
2
+ export {
3
+ userImg as default
4
+ };
@@ -76,6 +76,7 @@ import { MobileApprovalList } from "./custom/approvalList/index.mjs";
76
76
  import "./custom/appTimeLine/index.mjs";
77
77
  import { MobileDocument } from "./custom/document/index.mjs";
78
78
  import { MobileUserSelect } from "./custom/userSelect/index.mjs";
79
+ import { MobileCustomCode } from "./custom/customCode/index.mjs";
79
80
  export {
80
81
  MobileActionBar,
81
82
  MobileActionSheet,
@@ -92,6 +93,7 @@ export {
92
93
  MobileCheckboxGroup,
93
94
  MobileCollapse,
94
95
  MobileCollapseItem,
96
+ MobileCustomCode,
95
97
  MobileDataStat,
96
98
  MobileDivider,
97
99
  MobileDocument,
@@ -6,13 +6,13 @@
6
6
  /* empty css */
7
7
  /* empty css */
8
8
  import { createBlock, openBlock, withCtx, createVNode, renderSlot } from "vue";
9
- /* empty css */
10
- import _export_sfc from "../../../../../../_virtual/_plugin-vue_export-helper.mjs";
11
9
  /* empty css */
12
10
  /* empty css */
13
11
  /* empty css */
14
12
  /* empty css */
15
13
  /* empty css */
14
+ /* empty css */
15
+ import _export_sfc from "../../../../../../_virtual/_plugin-vue_export-helper.mjs";
16
16
  import { SwipeCell } from "../../../../../../node_modules/vant/es/swipe-cell/index.mjs";
17
17
  import { showConfirmDialog } from "../../../../../../node_modules/vant/es/dialog/function-call.mjs";
18
18
  import "../../../../../../node_modules/vant/es/dialog/index.mjs";
@@ -1,6 +1,8 @@
1
1
  /* empty css */
2
2
  /* empty css */
3
- import { getCurrentInstance, ref, computed, resolveComponent, createElementBlock, unref, openBlock, createVNode, Fragment, createBlock, createCommentVNode, isRef, mergeProps } from "vue";
3
+ import { inject, getCurrentInstance, ref, computed, resolveComponent, createElementBlock, unref, openBlock, createVNode, Fragment, createBlock, createCommentVNode, mergeProps } from "vue";
4
+ import MobilePage from "../../../page.vue.mjs";
5
+ import { findPageById } from "../../../utils/common.mjs";
4
6
  /* empty css */
5
7
  import _export_sfc from "../../../../../../_virtual/_plugin-vue_export-helper.mjs";
6
8
  import { Empty } from "../../../../../../node_modules/vant/es/empty/index.mjs";
@@ -12,6 +14,14 @@ const _hoisted_2 = {
12
14
  key: 1,
13
15
  class: "route-wrapper"
14
16
  };
17
+ const _hoisted_3 = {
18
+ key: 0,
19
+ class: "approve-wrapper tip"
20
+ };
21
+ const _hoisted_4 = {
22
+ key: 1,
23
+ class: "approve-wrapper"
24
+ };
15
25
  const _sfc_main = {
16
26
  __name: "AppDetail",
17
27
  props: {
@@ -42,14 +52,15 @@ const _sfc_main = {
42
52
  type: Boolean,
43
53
  default: true
44
54
  },
45
- operationPageId: {
46
- type: String,
47
- default: ""
55
+ isDev: {
56
+ type: Boolean,
57
+ default: false
48
58
  }
49
59
  },
50
60
  setup(__props) {
51
61
  var _a, _b;
52
62
  const props = __props;
63
+ const pageList = inject("pageList");
53
64
  const currentInstance = getCurrentInstance();
54
65
  const ctx = currentInstance.proxy;
55
66
  ctx.route;
@@ -57,11 +68,17 @@ const _sfc_main = {
57
68
  const taskData = { ...props.params.taskData };
58
69
  const taskParams = { ...props.params };
59
70
  delete taskParams.taskData;
71
+ const appDetailPage = ref();
60
72
  const canMobileApproval = ref(true);
61
73
  const baseInfoPageId = ref("");
74
+ const operationPageId = ref("");
62
75
  if (props.baseInfoPageSource == "fixed") {
63
76
  baseInfoPageId.value = props.baseInfoPageId;
77
+ appDetailPage.value = findPageById(pageList.value, props.baseInfoPageId);
64
78
  }
79
+ const page = computed(() => {
80
+ return { ...appDetailPage.value, isNavBar: false };
81
+ });
65
82
  const expandingTabOptions = ref([]);
66
83
  const show = ref(false);
67
84
  const showEmpty = ref(false);
@@ -69,7 +86,9 @@ const _sfc_main = {
69
86
  function handleData(data) {
70
87
  if (props.baseInfoPageSource == "dynamic") {
71
88
  baseInfoPageId.value = data.mobileDetailPage;
89
+ appDetailPage.value = findPageById(pageList.value, data.mobileDetailPage);
72
90
  }
91
+ operationPageId.value = data.mobileAppPage;
73
92
  canMobileApproval.value = data.mobileApproval != "1";
74
93
  opinionTypeOptions.value = data.approvalBtn.filter(
75
94
  (item) => item.approveType != "C1"
@@ -87,33 +106,35 @@ const _sfc_main = {
87
106
  }
88
107
  const taskId = (_a = props.params) == null ? void 0 : _a.taskId;
89
108
  const type = (_b = props.params) == null ? void 0 : _b.type;
90
- if (!taskId) {
91
- showEmpty.value = true;
92
- } else {
93
- ctx.$http.postForm(
94
- "/base-server/flow/flowApproveDetail/findById",
95
- {
96
- taskId,
97
- type
98
- },
99
- true
100
- ).then((data) => {
101
- if (data.notFound) {
102
- ctx.$http.postForm(
103
- "/base-server/flow/flowApproveDetail/findById",
104
- { taskId, type: "1" },
105
- true
106
- ).then((retryData) => {
107
- if (retryData.notFound) {
108
- taskNotFound.value = true;
109
- return;
110
- }
111
- handleData(retryData);
112
- });
113
- return;
114
- }
115
- handleData(data);
116
- });
109
+ if (!props.isDev) {
110
+ if (!taskId) {
111
+ showEmpty.value = true;
112
+ } else {
113
+ ctx.$http.postFormMobile(
114
+ "/base-server/flow/flowApproveDetail/findById",
115
+ {
116
+ taskId,
117
+ type
118
+ },
119
+ true
120
+ ).then((data) => {
121
+ if (data.notFound) {
122
+ ctx.$http.postFormMobile(
123
+ "/base-server/flow/flowApproveDetail/findById",
124
+ { taskId, type: "1" },
125
+ true
126
+ ).then((retryData) => {
127
+ if (retryData.notFound) {
128
+ taskNotFound.value = true;
129
+ return;
130
+ }
131
+ handleData(retryData);
132
+ });
133
+ return;
134
+ }
135
+ handleData(data);
136
+ });
137
+ }
117
138
  }
118
139
  const activeName = ref("tab_base_info");
119
140
  const tabsOptions = computed(() => {
@@ -133,7 +154,6 @@ const _sfc_main = {
133
154
  return (_ctx, _cache) => {
134
155
  var _a2;
135
156
  const _component_van_empty = Empty;
136
- const _component_FecMobileTabs = resolveComponent("FecMobileTabs");
137
157
  const _component_FecMobileApprovalBar = resolveComponent("FecMobileApprovalBar");
138
158
  return unref(showEmpty) ? (openBlock(), createElementBlock("div", _hoisted_1, [
139
159
  createVNode(_component_van_empty, {
@@ -146,27 +166,25 @@ const _sfc_main = {
146
166
  description: "任务不存在"
147
167
  })
148
168
  ])) : (openBlock(), createElementBlock(Fragment, { key: 2 }, [
149
- createVNode(_component_FecMobileTabs, {
150
- modelValue: unref(activeName),
151
- "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => isRef(activeName) ? activeName.value = $event : null),
152
- options: unref(tabsOptions),
153
- params: taskParams,
154
- swipeable: __props.swipeable,
155
- document: __props.document,
156
- approvalHistory: __props.approvalHistory
157
- }, null, 8, ["modelValue", "options", "swipeable", "document", "approvalHistory"]),
158
- unref(show) && ((_a2 = props.params) == null ? void 0 : _a2.type) == "0" ? (openBlock(), createBlock(_component_FecMobileApprovalBar, mergeProps({ key: 0 }, __props.actionBar, {
169
+ __props.isDev ? (openBlock(), createElementBlock("div", _hoisted_3, "审批详情页面显示区")) : (openBlock(), createElementBlock("div", _hoisted_4, [
170
+ unref(appDetailPage) ? (openBlock(), createBlock(MobilePage, {
171
+ key: 0,
172
+ parentPage: unref(page),
173
+ params: taskParams
174
+ }, null, 8, ["parentPage"])) : createCommentVNode("", true)
175
+ ])),
176
+ unref(show) && ((_a2 = props.params) == null ? void 0 : _a2.type) == "0" ? (openBlock(), createBlock(_component_FecMobileApprovalBar, mergeProps({ key: 2 }, __props.actionBar, {
159
177
  params: taskParams,
160
178
  taskData,
161
179
  opinionTypeOptions: unref(opinionTypeOptions),
162
- operationPageId: __props.operationPageId,
180
+ operationPageId: unref(operationPageId),
163
181
  canMobileApproval: unref(canMobileApproval)
164
182
  }), null, 16, ["opinionTypeOptions", "operationPageId", "canMobileApproval"])) : createCommentVNode("", true)
165
183
  ], 64));
166
184
  };
167
185
  }
168
186
  };
169
- const _AppDetail = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-ade90293"]]);
187
+ const _AppDetail = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-3eeb1e3e"]]);
170
188
  export {
171
189
  _AppDetail as default
172
190
  };
@@ -163,7 +163,7 @@ const _sfc_main = /* @__PURE__ */ Object.assign({
163
163
  }
164
164
  function fetchData() {
165
165
  loading.value = true;
166
- ctx.$http.postForm(
166
+ ctx.$http.postFormMobile(
167
167
  "/base-server/flow/flowData/findTimeLineByTraceNo",
168
168
  {
169
169
  traceNo: props.traceNo,
@@ -480,7 +480,7 @@ const _sfc_main = /* @__PURE__ */ Object.assign({
480
480
  };
481
481
  }
482
482
  });
483
- const _TimeLineFilter = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-e967cbbd"]]);
483
+ const _TimeLineFilter = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-5ea2086e"]]);
484
484
  export {
485
485
  _TimeLineFilter as default
486
486
  };
@@ -16,7 +16,7 @@
16
16
  /* empty css */
17
17
  /* empty css */
18
18
  /* empty css */
19
- import { getCurrentInstance, inject, ref, reactive, createElementBlock, openBlock, Fragment, createVNode, normalizeStyle, withCtx, renderList, createBlock, normalizeClass, unref, isRef, createElementVNode, createCommentVNode } from "vue";
19
+ import { getCurrentInstance, inject, ref, reactive, createElementBlock, openBlock, Fragment, createVNode, normalizeStyle, withCtx, renderList, createBlock, normalizeClass, unref, isRef, createElementVNode, createCommentVNode, nextTick } from "vue";
20
20
  import { findPageById } from "../../../utils/common.mjs";
21
21
  import { pageHistory } from "../../../utils/pageHistory.mjs";
22
22
  import emitter from "../../../utils/eventBus.mjs";
@@ -29,19 +29,19 @@ import "../../../../../../node_modules/vant/es/toast/index.mjs";
29
29
  import { ActionBar } from "../../../../../../node_modules/vant/es/action-bar/index.mjs";
30
30
  import { ActionBarButton } from "../../../../../../node_modules/vant/es/action-bar-button/index.mjs";
31
31
  import { Popup } from "../../../../../../node_modules/vant/es/popup/index.mjs";
32
+ import { Form } from "../../../../../../node_modules/vant/es/form/index.mjs";
32
33
  import { Field } from "../../../../../../node_modules/vant/es/field/index.mjs";
33
34
  import { Picker } from "../../../../../../node_modules/vant/es/picker/index.mjs";
34
35
  const _hoisted_1 = {
35
36
  key: 1,
36
37
  class: "fec-mobile-approval-disabled"
37
38
  };
38
- const _hoisted_2 = { class: "appPopContent" };
39
- const _hoisted_3 = {
39
+ const _hoisted_2 = {
40
40
  class: "appOptContent",
41
- style: { "max-height": "235px", "padding-bottom": "0" }
41
+ style: { "height": "200px", "padding-bottom": "0" }
42
42
  };
43
- const _hoisted_4 = { class: "appPopContent" };
44
- const _hoisted_5 = { class: "appOptContent" };
43
+ const _hoisted_3 = { class: "appPopContent" };
44
+ const _hoisted_4 = { class: "appOptContent" };
45
45
  const _sfc_main = {
46
46
  __name: "ApprovalBar",
47
47
  props: {
@@ -92,11 +92,25 @@ const _sfc_main = {
92
92
  };
93
93
  const targetNodeList = ref([]);
94
94
  const targetNodeSelectShow = ref(false);
95
+ const operPageRef = ref();
96
+ const agreeFormRef = ref();
97
+ const otherFormRef = ref();
98
+ const agreePopContentRef = ref(null);
99
+ function layoutDataHeight(height) {
100
+ nextTick(() => {
101
+ const el = agreePopContentRef.value;
102
+ if (!el) return;
103
+ el.style.height = 272 + height + "px";
104
+ });
105
+ }
95
106
  function clickHandler(item) {
107
+ var _a, _b;
96
108
  console.log("🚀 ~ clickHandler ~ item:", item);
97
109
  if (item.approvalType == "agree") {
110
+ (_a = agreeFormRef.value) == null ? void 0 : _a.resetValidation();
98
111
  showAgreePop.value = true;
99
112
  } else if (item.approvalType == "other") {
113
+ (_b = otherFormRef.value) == null ? void 0 : _b.resetValidation();
100
114
  opinionForm.approveId = "";
101
115
  opinionForm.approveText = "";
102
116
  opinionForm.approveType = "";
@@ -137,48 +151,44 @@ const _sfc_main = {
137
151
  switch (approveType) {
138
152
  //提交到当前节点后的指定节点
139
153
  case "C2":
140
- ctx.$http.postForm(
154
+ ctx.$http.postFormMobile(
141
155
  "/base-server/flow/flowApproveDetail/getAllNextNodeList",
142
156
  { taskId },
143
157
  false
144
158
  ).then((data) => {
145
159
  nodeList.value = data;
146
- debugger;
147
160
  });
148
161
  break;
149
162
  //提交到已执行过的指定节点
150
163
  case "C22":
151
- ctx.$http.postForm(
164
+ ctx.$http.postFormMobile(
152
165
  "/base-server/flow/flowApproveDetail/getFinishNodeList",
153
166
  { taskId },
154
167
  false
155
168
  ).then((data) => {
156
169
  nodeList.value = data;
157
- debugger;
158
170
  });
159
171
  break;
160
172
  //退回到主流指定节点
161
173
  case "R50":
162
- ctx.$http.postForm(
174
+ ctx.$http.postFormMobile(
163
175
  "/base-server/flow/flowApproveDetail/getFinishParentNodeList",
164
176
  { taskId },
165
177
  false
166
178
  ).then((data) => {
167
179
  nodeList.value = data;
168
- debugger;
169
180
  });
170
181
  break;
171
182
  //退回到指定节点
172
183
  case "R5":
173
184
  //退回到指定节点并提交到退回节点
174
185
  case "R55":
175
- ctx.$http.postForm(
186
+ ctx.$http.postFormMobile(
176
187
  "/base-server/flow/flowApproveDetail/getRollBackNodeList",
177
188
  { taskId },
178
189
  false
179
190
  ).then((data) => {
180
191
  nodeList.value = data;
181
- debugger;
182
192
  });
183
193
  break;
184
194
  }
@@ -189,8 +199,23 @@ const _sfc_main = {
189
199
  opinionForm.targetNodeText = (_b = selectedOptions[0]) == null ? void 0 : _b.name;
190
200
  showTargetNodePicker.value = false;
191
201
  }
192
- const operPageRef = ref();
202
+ function submitAgreeOpinion() {
203
+ var _a, _b;
204
+ if ((_a = operPageRef.value) == null ? void 0 : _a.validate) {
205
+ (_b = operPageRef.value) == null ? void 0 : _b.validate().then(() => {
206
+ submitOpinion();
207
+ });
208
+ }
209
+ }
193
210
  function submitOpinion() {
211
+ const formRef = showAgreePop.value ? agreeFormRef : otherFormRef;
212
+ formRef.value.validate().then(() => {
213
+ doSubmit();
214
+ }).catch((errors) => {
215
+ console.log("表单校验失败:", errors);
216
+ });
217
+ }
218
+ function doSubmit() {
194
219
  var _a;
195
220
  const formData = ((_a = operPageRef.value) == null ? void 0 : _a.getFormData()) || {};
196
221
  const commitData = {
@@ -214,7 +239,11 @@ const _sfc_main = {
214
239
  forbidClick: true,
215
240
  duration: 0
216
241
  });
217
- ctx.$http.post("/base-server/flow/flowApproveDetail/doCommit", commitData, false).then((data) => {
242
+ ctx.$http.postMobile(
243
+ "/base-server/flow/flowApproveDetail/doCommit",
244
+ commitData,
245
+ false
246
+ ).then((data) => {
218
247
  if (data && data.needOper) {
219
248
  showFailToast("待开发:需要人工操作的节点");
220
249
  } else {
@@ -233,6 +262,7 @@ const _sfc_main = {
233
262
  const _component_van_action_bar_button = ActionBarButton;
234
263
  const _component_van_action_bar = ActionBar;
235
264
  const _component_van_field = Field;
265
+ const _component_van_form = Form;
236
266
  const _component_van_popup = Popup;
237
267
  const _component_van_picker = Picker;
238
268
  return openBlock(), createElementBlock(Fragment, null, [
@@ -247,7 +277,7 @@ const _sfc_main = {
247
277
  text: item.text,
248
278
  onClick: ($event) => clickHandler(item)
249
279
  }, null, 8, ["class", "text", "onClick"]);
250
- }), 256)) : (openBlock(), createElementBlock("div", _hoisted_1, " 当前流程任务不支持移动端审批,请前往 PC 端处理 "))
280
+ }), 256)) : (openBlock(), createElementBlock("div", _hoisted_1, " 当前任务节点,不允许移动端办理,请前往 PC 端处理 "))
251
281
  ]),
252
282
  _: 1
253
283
  }, 8, ["style"]),
@@ -259,38 +289,55 @@ const _sfc_main = {
259
289
  style: { "max-height": "80%" }
260
290
  }, {
261
291
  default: withCtx(() => [
262
- createElementVNode("div", _hoisted_2, [
292
+ createElementVNode("div", {
293
+ class: "appPopContent",
294
+ ref_key: "agreePopContentRef",
295
+ ref: agreePopContentRef
296
+ }, [
263
297
  unref(operPage) ? (openBlock(), createBlock(MobilePage, {
264
298
  key: 0,
265
299
  parentPage: unref(operPage),
266
300
  params: __props.params,
301
+ onLayoutDataHeight: layoutDataHeight,
267
302
  ref_key: "operPageRef",
268
303
  ref: operPageRef
269
304
  }, null, 8, ["parentPage", "params"])) : createCommentVNode("", true),
270
- createElementVNode("div", _hoisted_3, [
271
- createVNode(_component_van_field, {
272
- modelValue: unref(opinionForm).approveIdea,
273
- "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => unref(opinionForm).approveIdea = $event),
274
- rows: "6",
275
- autosize: "",
276
- label: "意见内容",
277
- type: "textarea",
278
- maxlength: "500",
279
- "show-word-limit": "",
280
- placeholder: "请输入审批意见"
281
- }, null, 8, ["modelValue"])
282
- ]),
305
+ createVNode(_component_van_form, {
306
+ ref_key: "agreeFormRef",
307
+ ref: agreeFormRef,
308
+ required: "auto",
309
+ "show-error": "",
310
+ "show-error-message": false
311
+ }, {
312
+ default: withCtx(() => [
313
+ createElementVNode("div", _hoisted_2, [
314
+ createVNode(_component_van_field, {
315
+ modelValue: unref(opinionForm).approveIdea,
316
+ "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => unref(opinionForm).approveIdea = $event),
317
+ rows: "6",
318
+ autosize: "",
319
+ label: "意见内容",
320
+ type: "textarea",
321
+ maxlength: "500",
322
+ "show-word-limit": "",
323
+ placeholder: "请输入审批意见",
324
+ rules: [{ required: true, message: "请输入审批意见" }]
325
+ }, null, 8, ["modelValue"])
326
+ ])
327
+ ]),
328
+ _: 1
329
+ }, 512),
283
330
  createVNode(_component_van_action_bar, { "safe-area-inset-bottom": "" }, {
284
331
  default: withCtx(() => [
285
332
  createVNode(_component_van_action_bar_button, {
286
333
  class: normalizeClass("icon-blue"),
287
334
  text: "提交",
288
- onClick: submitOpinion
335
+ onClick: submitAgreeOpinion
289
336
  })
290
337
  ]),
291
338
  _: 1
292
339
  })
293
- ])
340
+ ], 512)
294
341
  ]),
295
342
  _: 1
296
343
  }, 8, ["show"]),
@@ -301,39 +348,53 @@ const _sfc_main = {
301
348
  position: "bottom"
302
349
  }, {
303
350
  default: withCtx(() => [
304
- createElementVNode("div", _hoisted_4, [
305
- createElementVNode("div", _hoisted_5, [
306
- createVNode(_component_van_field, {
307
- modelValue: unref(opinionForm).approveText,
308
- "onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => unref(opinionForm).approveText = $event),
309
- "is-link": "",
310
- readonly: "",
311
- label: "审批意见",
312
- placeholder: "请选择审批意见",
313
- onClick: _cache[3] || (_cache[3] = ($event) => showOpinionPicker.value = true)
314
- }, null, 8, ["modelValue"]),
315
- unref(targetNodeSelectShow) ? (openBlock(), createBlock(_component_van_field, {
316
- key: 0,
317
- modelValue: unref(opinionForm).targetNodeText,
318
- "onUpdate:modelValue": _cache[4] || (_cache[4] = ($event) => unref(opinionForm).targetNodeText = $event),
319
- "is-link": "",
320
- readonly: "",
321
- label: "目标节点",
322
- placeholder: "请选择目标节点",
323
- onClick: _cache[5] || (_cache[5] = ($event) => showTargetNodePicker.value = true)
324
- }, null, 8, ["modelValue"])) : createCommentVNode("", true),
325
- createVNode(_component_van_field, {
326
- modelValue: unref(opinionForm).approveIdea,
327
- "onUpdate:modelValue": _cache[6] || (_cache[6] = ($event) => unref(opinionForm).approveIdea = $event),
328
- rows: "6",
329
- autosize: "",
330
- label: "意见内容",
331
- type: "textarea",
332
- maxlength: "500",
333
- "show-word-limit": "",
334
- placeholder: "请输入审批意见"
335
- }, null, 8, ["modelValue"])
336
- ]),
351
+ createElementVNode("div", _hoisted_3, [
352
+ createVNode(_component_van_form, {
353
+ ref_key: "otherFormRef",
354
+ ref: otherFormRef,
355
+ required: "auto",
356
+ "show-error": "",
357
+ "show-error-message": false
358
+ }, {
359
+ default: withCtx(() => [
360
+ createElementVNode("div", _hoisted_4, [
361
+ createVNode(_component_van_field, {
362
+ modelValue: unref(opinionForm).approveText,
363
+ "onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => unref(opinionForm).approveText = $event),
364
+ "is-link": "",
365
+ readonly: "",
366
+ label: "审批意见",
367
+ placeholder: "请选择审批意见",
368
+ rules: [{ required: true, message: "请选择审批意见" }],
369
+ onClick: _cache[3] || (_cache[3] = ($event) => showOpinionPicker.value = true)
370
+ }, null, 8, ["modelValue"]),
371
+ unref(targetNodeSelectShow) ? (openBlock(), createBlock(_component_van_field, {
372
+ key: 0,
373
+ modelValue: unref(opinionForm).targetNodeText,
374
+ "onUpdate:modelValue": _cache[4] || (_cache[4] = ($event) => unref(opinionForm).targetNodeText = $event),
375
+ "is-link": "",
376
+ readonly: "",
377
+ label: "目标节点",
378
+ placeholder: "请选择目标节点",
379
+ rules: [{ required: true, message: "请选择目标节点" }],
380
+ onClick: _cache[5] || (_cache[5] = ($event) => showTargetNodePicker.value = true)
381
+ }, null, 8, ["modelValue"])) : createCommentVNode("", true),
382
+ createVNode(_component_van_field, {
383
+ modelValue: unref(opinionForm).approveIdea,
384
+ "onUpdate:modelValue": _cache[6] || (_cache[6] = ($event) => unref(opinionForm).approveIdea = $event),
385
+ rows: "6",
386
+ autosize: "",
387
+ label: "意见内容",
388
+ type: "textarea",
389
+ maxlength: "500",
390
+ "show-word-limit": "",
391
+ placeholder: "请输入审批意见",
392
+ rules: [{ required: true, message: "请输入审批意见" }]
393
+ }, null, 8, ["modelValue"])
394
+ ])
395
+ ]),
396
+ _: 1
397
+ }, 512),
337
398
  createVNode(_component_van_action_bar, { "safe-area-inset-bottom": "" }, {
338
399
  default: withCtx(() => [
339
400
  createVNode(_component_van_action_bar_button, {
@@ -387,7 +448,7 @@ const _sfc_main = {
387
448
  };
388
449
  }
389
450
  };
390
- const _ApprovalBar = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-8d0c761c"]]);
451
+ const _ApprovalBar = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-c40e2cd6"]]);
391
452
  export {
392
453
  _ApprovalBar as default
393
454
  };
@@ -89,7 +89,7 @@ const _sfc_main = {
89
89
  const errorRef = taskStatus == "0" ? todoError : taskStatus == "1" ? doneError : ccError;
90
90
  errorRef.value = false;
91
91
  const pageNo = taskStatus == "0" ? todoPageNo : taskStatus == "1" ? donePageNo : ccPageNo;
92
- ctx.$http.post(
92
+ ctx.$http.postMobile(
93
93
  "/base-server/flow/workbench/findTaskListByPage",
94
94
  {
95
95
  pageNo,
@@ -249,7 +249,7 @@ const _sfc_main = {
249
249
  forbidClick: true,
250
250
  duration: 0
251
251
  });
252
- ctx.$http.postForm(
252
+ ctx.$http.postFormMobile(
253
253
  "/base-server/flow/flowApproveDetail/doAssign",
254
254
  {
255
255
  taskId: transferItem.value.taskId,
@@ -280,7 +280,7 @@ const _sfc_main = {
280
280
  forbidClick: true,
281
281
  duration: 0
282
282
  });
283
- await ctx.$http.post(
283
+ await ctx.$http.postMobile(
284
284
  "/base-server/flow/flowApproveDetail/undo",
285
285
  data,
286
286
  false
@@ -293,7 +293,7 @@ const _sfc_main = {
293
293
  forbidClick: true,
294
294
  duration: 0
295
295
  });
296
- await ctx.$http.post(
296
+ await ctx.$http.postMobile(
297
297
  "/base-server/flow/flowApproveDetail/recall",
298
298
  data,
299
299
  false
@@ -570,7 +570,7 @@ const _sfc_main = {
570
570
  };
571
571
  }
572
572
  };
573
- const _ApprovalList = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-a585d493"]]);
573
+ const _ApprovalList = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-5990769f"]]);
574
574
  export {
575
575
  _ApprovalList as default
576
576
  };