@fecp/designer 5.5.120 → 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
+ "use strict";
2
+ Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
3
+ 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/1y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NG4eengKbj5yqw8yuB5eKkR3Dz8+Hv4vWI8S/mqlm3z0fLn6myRF07DCf/lllqS6JJ+QjxQ5KLtNTjQ7Xmv6SxOB+nrTB7Pkf7smCR+tJ01K04K5Ox6sqjYaPxlqo1q8AD4sYX0ggmi5NBj+PUDIJPTvZMZekPWWdw2h8oGlG9OmLTr7q/iPCk5oMP12SFeejXf/xRDtGHmrXv35G3NKvCU7ks25i19K3sdSM3qLrT/+mJ2pveNfStAAAAAElFTkSuQmCC";
4
+ exports.default = userImg;
@@ -78,6 +78,7 @@ const index$19 = require("./custom/approvalList/index.js");
78
78
  require("./custom/appTimeLine/index.js");
79
79
  const index$1a = require("./custom/document/index.js");
80
80
  const index$1b = require("./custom/userSelect/index.js");
81
+ const index$1c = require("./custom/customCode/index.js");
81
82
  exports.MobileButton = index.MobileButton;
82
83
  exports.MobileIcon = index$1.MobileIcon;
83
84
  exports.MobileCell = index$2.MobileCell;
@@ -154,3 +155,4 @@ exports.MobileApprovalBar = index$18.MobileApprovalBar;
154
155
  exports.MobileApprovalList = index$19.MobileApprovalList;
155
156
  exports.MobileDocument = index$1a.MobileDocument;
156
157
  exports.MobileUserSelect = index$1b.MobileUserSelect;
158
+ exports.MobileCustomCode = index$1c.MobileCustomCode;
@@ -8,13 +8,13 @@ Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toString
8
8
  ;/* empty css */
9
9
  ;/* empty css */
10
10
  const Vue = require("vue");
11
- ;/* empty css */
12
- const _pluginVue_exportHelper = require("../../../../../../_virtual/_plugin-vue_export-helper.js");
13
11
  ;/* empty css */
14
12
  ;/* empty css */
15
13
  ;/* empty css */
16
14
  ;/* empty css */
17
15
  ;/* empty css */
16
+ ;/* empty css */
17
+ const _pluginVue_exportHelper = require("../../../../../../_virtual/_plugin-vue_export-helper.js");
18
18
  const index$1 = require("../../../../../../node_modules/vant/es/swipe-cell/index.js");
19
19
  const functionCall = require("../../../../../../node_modules/vant/es/dialog/function-call.js");
20
20
  require("../../../../../../node_modules/vant/es/dialog/index.js");
@@ -3,6 +3,8 @@ Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toString
3
3
  ;/* empty css */
4
4
  ;/* empty css */
5
5
  const Vue = require("vue");
6
+ const page = require("../../../page.vue.js");
7
+ const common = require("../../../utils/common.js");
6
8
  ;/* empty css */
7
9
  const _pluginVue_exportHelper = require("../../../../../../_virtual/_plugin-vue_export-helper.js");
8
10
  const index = require("../../../../../../node_modules/vant/es/empty/index.js");
@@ -14,6 +16,14 @@ const _hoisted_2 = {
14
16
  key: 1,
15
17
  class: "route-wrapper"
16
18
  };
19
+ const _hoisted_3 = {
20
+ key: 0,
21
+ class: "approve-wrapper tip"
22
+ };
23
+ const _hoisted_4 = {
24
+ key: 1,
25
+ class: "approve-wrapper"
26
+ };
17
27
  const _sfc_main = {
18
28
  __name: "AppDetail",
19
29
  props: {
@@ -44,14 +54,15 @@ const _sfc_main = {
44
54
  type: Boolean,
45
55
  default: true
46
56
  },
47
- operationPageId: {
48
- type: String,
49
- default: ""
57
+ isDev: {
58
+ type: Boolean,
59
+ default: false
50
60
  }
51
61
  },
52
62
  setup(__props) {
53
63
  var _a, _b;
54
64
  const props = __props;
65
+ const pageList = Vue.inject("pageList");
55
66
  const currentInstance = Vue.getCurrentInstance();
56
67
  const ctx = currentInstance.proxy;
57
68
  ctx.route;
@@ -59,11 +70,17 @@ const _sfc_main = {
59
70
  const taskData = { ...props.params.taskData };
60
71
  const taskParams = { ...props.params };
61
72
  delete taskParams.taskData;
73
+ const appDetailPage = Vue.ref();
62
74
  const canMobileApproval = Vue.ref(true);
63
75
  const baseInfoPageId = Vue.ref("");
76
+ const operationPageId = Vue.ref("");
64
77
  if (props.baseInfoPageSource == "fixed") {
65
78
  baseInfoPageId.value = props.baseInfoPageId;
79
+ appDetailPage.value = common.findPageById(pageList.value, props.baseInfoPageId);
66
80
  }
81
+ const page$1 = Vue.computed(() => {
82
+ return { ...appDetailPage.value, isNavBar: false };
83
+ });
67
84
  const expandingTabOptions = Vue.ref([]);
68
85
  const show = Vue.ref(false);
69
86
  const showEmpty = Vue.ref(false);
@@ -71,7 +88,9 @@ const _sfc_main = {
71
88
  function handleData(data) {
72
89
  if (props.baseInfoPageSource == "dynamic") {
73
90
  baseInfoPageId.value = data.mobileDetailPage;
91
+ appDetailPage.value = common.findPageById(pageList.value, data.mobileDetailPage);
74
92
  }
93
+ operationPageId.value = data.mobileAppPage;
75
94
  canMobileApproval.value = data.mobileApproval != "1";
76
95
  opinionTypeOptions.value = data.approvalBtn.filter(
77
96
  (item) => item.approveType != "C1"
@@ -89,33 +108,35 @@ const _sfc_main = {
89
108
  }
90
109
  const taskId = (_a = props.params) == null ? void 0 : _a.taskId;
91
110
  const type = (_b = props.params) == null ? void 0 : _b.type;
92
- if (!taskId) {
93
- showEmpty.value = true;
94
- } else {
95
- ctx.$http.postForm(
96
- "/base-server/flow/flowApproveDetail/findById",
97
- {
98
- taskId,
99
- type
100
- },
101
- true
102
- ).then((data) => {
103
- if (data.notFound) {
104
- ctx.$http.postForm(
105
- "/base-server/flow/flowApproveDetail/findById",
106
- { taskId, type: "1" },
107
- true
108
- ).then((retryData) => {
109
- if (retryData.notFound) {
110
- taskNotFound.value = true;
111
- return;
112
- }
113
- handleData(retryData);
114
- });
115
- return;
116
- }
117
- handleData(data);
118
- });
111
+ if (!props.isDev) {
112
+ if (!taskId) {
113
+ showEmpty.value = true;
114
+ } else {
115
+ ctx.$http.postFormMobile(
116
+ "/base-server/flow/flowApproveDetail/findById",
117
+ {
118
+ taskId,
119
+ type
120
+ },
121
+ true
122
+ ).then((data) => {
123
+ if (data.notFound) {
124
+ ctx.$http.postFormMobile(
125
+ "/base-server/flow/flowApproveDetail/findById",
126
+ { taskId, type: "1" },
127
+ true
128
+ ).then((retryData) => {
129
+ if (retryData.notFound) {
130
+ taskNotFound.value = true;
131
+ return;
132
+ }
133
+ handleData(retryData);
134
+ });
135
+ return;
136
+ }
137
+ handleData(data);
138
+ });
139
+ }
119
140
  }
120
141
  const activeName = Vue.ref("tab_base_info");
121
142
  const tabsOptions = Vue.computed(() => {
@@ -135,7 +156,6 @@ const _sfc_main = {
135
156
  return (_ctx, _cache) => {
136
157
  var _a2;
137
158
  const _component_van_empty = index.Empty;
138
- const _component_FecMobileTabs = Vue.resolveComponent("FecMobileTabs");
139
159
  const _component_FecMobileApprovalBar = Vue.resolveComponent("FecMobileApprovalBar");
140
160
  return Vue.unref(showEmpty) ? (Vue.openBlock(), Vue.createElementBlock("div", _hoisted_1, [
141
161
  Vue.createVNode(_component_van_empty, {
@@ -148,25 +168,23 @@ const _sfc_main = {
148
168
  description: "任务不存在"
149
169
  })
150
170
  ])) : (Vue.openBlock(), Vue.createElementBlock(Vue.Fragment, { key: 2 }, [
151
- Vue.createVNode(_component_FecMobileTabs, {
152
- modelValue: Vue.unref(activeName),
153
- "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => Vue.isRef(activeName) ? activeName.value = $event : null),
154
- options: Vue.unref(tabsOptions),
155
- params: taskParams,
156
- swipeable: __props.swipeable,
157
- document: __props.document,
158
- approvalHistory: __props.approvalHistory
159
- }, null, 8, ["modelValue", "options", "swipeable", "document", "approvalHistory"]),
160
- Vue.unref(show) && ((_a2 = props.params) == null ? void 0 : _a2.type) == "0" ? (Vue.openBlock(), Vue.createBlock(_component_FecMobileApprovalBar, Vue.mergeProps({ key: 0 }, __props.actionBar, {
171
+ __props.isDev ? (Vue.openBlock(), Vue.createElementBlock("div", _hoisted_3, "审批详情页面显示区")) : (Vue.openBlock(), Vue.createElementBlock("div", _hoisted_4, [
172
+ Vue.unref(appDetailPage) ? (Vue.openBlock(), Vue.createBlock(page.default, {
173
+ key: 0,
174
+ parentPage: Vue.unref(page$1),
175
+ params: taskParams
176
+ }, null, 8, ["parentPage"])) : Vue.createCommentVNode("", true)
177
+ ])),
178
+ Vue.unref(show) && ((_a2 = props.params) == null ? void 0 : _a2.type) == "0" ? (Vue.openBlock(), Vue.createBlock(_component_FecMobileApprovalBar, Vue.mergeProps({ key: 2 }, __props.actionBar, {
161
179
  params: taskParams,
162
180
  taskData,
163
181
  opinionTypeOptions: Vue.unref(opinionTypeOptions),
164
- operationPageId: __props.operationPageId,
182
+ operationPageId: Vue.unref(operationPageId),
165
183
  canMobileApproval: Vue.unref(canMobileApproval)
166
184
  }), null, 16, ["opinionTypeOptions", "operationPageId", "canMobileApproval"])) : Vue.createCommentVNode("", true)
167
185
  ], 64));
168
186
  };
169
187
  }
170
188
  };
171
- const _AppDetail = /* @__PURE__ */ _pluginVue_exportHelper.default(_sfc_main, [["__scopeId", "data-v-ade90293"]]);
189
+ const _AppDetail = /* @__PURE__ */ _pluginVue_exportHelper.default(_sfc_main, [["__scopeId", "data-v-3eeb1e3e"]]);
172
190
  exports.default = _AppDetail;
@@ -165,7 +165,7 @@ const _sfc_main = /* @__PURE__ */ Object.assign({
165
165
  }
166
166
  function fetchData() {
167
167
  loading.value = true;
168
- ctx.$http.postForm(
168
+ ctx.$http.postFormMobile(
169
169
  "/base-server/flow/flowData/findTimeLineByTraceNo",
170
170
  {
171
171
  traceNo: props.traceNo,
@@ -482,5 +482,5 @@ const _sfc_main = /* @__PURE__ */ Object.assign({
482
482
  };
483
483
  }
484
484
  });
485
- const _TimeLineFilter = /* @__PURE__ */ _pluginVue_exportHelper.default(_sfc_main, [["__scopeId", "data-v-e967cbbd"]]);
485
+ const _TimeLineFilter = /* @__PURE__ */ _pluginVue_exportHelper.default(_sfc_main, [["__scopeId", "data-v-5ea2086e"]]);
486
486
  exports.default = _TimeLineFilter;
@@ -31,19 +31,19 @@ require("../../../../../../node_modules/vant/es/toast/index.js");
31
31
  const index = require("../../../../../../node_modules/vant/es/action-bar/index.js");
32
32
  const index$1 = require("../../../../../../node_modules/vant/es/action-bar-button/index.js");
33
33
  const index$2 = require("../../../../../../node_modules/vant/es/popup/index.js");
34
- const index$3 = require("../../../../../../node_modules/vant/es/field/index.js");
35
- const index$4 = require("../../../../../../node_modules/vant/es/picker/index.js");
34
+ const index$3 = require("../../../../../../node_modules/vant/es/form/index.js");
35
+ const index$4 = require("../../../../../../node_modules/vant/es/field/index.js");
36
+ const index$5 = require("../../../../../../node_modules/vant/es/picker/index.js");
36
37
  const _hoisted_1 = {
37
38
  key: 1,
38
39
  class: "fec-mobile-approval-disabled"
39
40
  };
40
- const _hoisted_2 = { class: "appPopContent" };
41
- const _hoisted_3 = {
41
+ const _hoisted_2 = {
42
42
  class: "appOptContent",
43
- style: { "max-height": "235px", "padding-bottom": "0" }
43
+ style: { "height": "200px", "padding-bottom": "0" }
44
44
  };
45
- const _hoisted_4 = { class: "appPopContent" };
46
- const _hoisted_5 = { class: "appOptContent" };
45
+ const _hoisted_3 = { class: "appPopContent" };
46
+ const _hoisted_4 = { class: "appOptContent" };
47
47
  const _sfc_main = {
48
48
  __name: "ApprovalBar",
49
49
  props: {
@@ -94,11 +94,25 @@ const _sfc_main = {
94
94
  };
95
95
  const targetNodeList = Vue.ref([]);
96
96
  const targetNodeSelectShow = Vue.ref(false);
97
+ const operPageRef = Vue.ref();
98
+ const agreeFormRef = Vue.ref();
99
+ const otherFormRef = Vue.ref();
100
+ const agreePopContentRef = Vue.ref(null);
101
+ function layoutDataHeight(height) {
102
+ Vue.nextTick(() => {
103
+ const el = agreePopContentRef.value;
104
+ if (!el) return;
105
+ el.style.height = 272 + height + "px";
106
+ });
107
+ }
97
108
  function clickHandler(item) {
109
+ var _a, _b;
98
110
  console.log("🚀 ~ clickHandler ~ item:", item);
99
111
  if (item.approvalType == "agree") {
112
+ (_a = agreeFormRef.value) == null ? void 0 : _a.resetValidation();
100
113
  showAgreePop.value = true;
101
114
  } else if (item.approvalType == "other") {
115
+ (_b = otherFormRef.value) == null ? void 0 : _b.resetValidation();
102
116
  opinionForm.approveId = "";
103
117
  opinionForm.approveText = "";
104
118
  opinionForm.approveType = "";
@@ -139,48 +153,44 @@ const _sfc_main = {
139
153
  switch (approveType) {
140
154
  //提交到当前节点后的指定节点
141
155
  case "C2":
142
- ctx.$http.postForm(
156
+ ctx.$http.postFormMobile(
143
157
  "/base-server/flow/flowApproveDetail/getAllNextNodeList",
144
158
  { taskId },
145
159
  false
146
160
  ).then((data) => {
147
161
  nodeList.value = data;
148
- debugger;
149
162
  });
150
163
  break;
151
164
  //提交到已执行过的指定节点
152
165
  case "C22":
153
- ctx.$http.postForm(
166
+ ctx.$http.postFormMobile(
154
167
  "/base-server/flow/flowApproveDetail/getFinishNodeList",
155
168
  { taskId },
156
169
  false
157
170
  ).then((data) => {
158
171
  nodeList.value = data;
159
- debugger;
160
172
  });
161
173
  break;
162
174
  //退回到主流指定节点
163
175
  case "R50":
164
- ctx.$http.postForm(
176
+ ctx.$http.postFormMobile(
165
177
  "/base-server/flow/flowApproveDetail/getFinishParentNodeList",
166
178
  { taskId },
167
179
  false
168
180
  ).then((data) => {
169
181
  nodeList.value = data;
170
- debugger;
171
182
  });
172
183
  break;
173
184
  //退回到指定节点
174
185
  case "R5":
175
186
  //退回到指定节点并提交到退回节点
176
187
  case "R55":
177
- ctx.$http.postForm(
188
+ ctx.$http.postFormMobile(
178
189
  "/base-server/flow/flowApproveDetail/getRollBackNodeList",
179
190
  { taskId },
180
191
  false
181
192
  ).then((data) => {
182
193
  nodeList.value = data;
183
- debugger;
184
194
  });
185
195
  break;
186
196
  }
@@ -191,8 +201,23 @@ const _sfc_main = {
191
201
  opinionForm.targetNodeText = (_b = selectedOptions[0]) == null ? void 0 : _b.name;
192
202
  showTargetNodePicker.value = false;
193
203
  }
194
- const operPageRef = Vue.ref();
204
+ function submitAgreeOpinion() {
205
+ var _a, _b;
206
+ if ((_a = operPageRef.value) == null ? void 0 : _a.validate) {
207
+ (_b = operPageRef.value) == null ? void 0 : _b.validate().then(() => {
208
+ submitOpinion();
209
+ });
210
+ }
211
+ }
195
212
  function submitOpinion() {
213
+ const formRef = showAgreePop.value ? agreeFormRef : otherFormRef;
214
+ formRef.value.validate().then(() => {
215
+ doSubmit();
216
+ }).catch((errors) => {
217
+ console.log("表单校验失败:", errors);
218
+ });
219
+ }
220
+ function doSubmit() {
196
221
  var _a;
197
222
  const formData = ((_a = operPageRef.value) == null ? void 0 : _a.getFormData()) || {};
198
223
  const commitData = {
@@ -216,7 +241,11 @@ const _sfc_main = {
216
241
  forbidClick: true,
217
242
  duration: 0
218
243
  });
219
- ctx.$http.post("/base-server/flow/flowApproveDetail/doCommit", commitData, false).then((data) => {
244
+ ctx.$http.postMobile(
245
+ "/base-server/flow/flowApproveDetail/doCommit",
246
+ commitData,
247
+ false
248
+ ).then((data) => {
220
249
  if (data && data.needOper) {
221
250
  functionCall.showFailToast("待开发:需要人工操作的节点");
222
251
  } else {
@@ -234,9 +263,10 @@ const _sfc_main = {
234
263
  return (_ctx, _cache) => {
235
264
  const _component_van_action_bar_button = index$1.ActionBarButton;
236
265
  const _component_van_action_bar = index.ActionBar;
237
- const _component_van_field = index$3.Field;
266
+ const _component_van_field = index$4.Field;
267
+ const _component_van_form = index$3.Form;
238
268
  const _component_van_popup = index$2.Popup;
239
- const _component_van_picker = index$4.Picker;
269
+ const _component_van_picker = index$5.Picker;
240
270
  return Vue.openBlock(), Vue.createElementBlock(Vue.Fragment, null, [
241
271
  Vue.createVNode(_component_van_action_bar, {
242
272
  "safe-area-inset-bottom": "",
@@ -249,7 +279,7 @@ const _sfc_main = {
249
279
  text: item.text,
250
280
  onClick: ($event) => clickHandler(item)
251
281
  }, null, 8, ["class", "text", "onClick"]);
252
- }), 256)) : (Vue.openBlock(), Vue.createElementBlock("div", _hoisted_1, " 当前流程任务不支持移动端审批,请前往 PC 端处理 "))
282
+ }), 256)) : (Vue.openBlock(), Vue.createElementBlock("div", _hoisted_1, " 当前任务节点,不允许移动端办理,请前往 PC 端处理 "))
253
283
  ]),
254
284
  _: 1
255
285
  }, 8, ["style"]),
@@ -261,38 +291,55 @@ const _sfc_main = {
261
291
  style: { "max-height": "80%" }
262
292
  }, {
263
293
  default: Vue.withCtx(() => [
264
- Vue.createElementVNode("div", _hoisted_2, [
294
+ Vue.createElementVNode("div", {
295
+ class: "appPopContent",
296
+ ref_key: "agreePopContentRef",
297
+ ref: agreePopContentRef
298
+ }, [
265
299
  Vue.unref(operPage) ? (Vue.openBlock(), Vue.createBlock(page.default, {
266
300
  key: 0,
267
301
  parentPage: Vue.unref(operPage),
268
302
  params: __props.params,
303
+ onLayoutDataHeight: layoutDataHeight,
269
304
  ref_key: "operPageRef",
270
305
  ref: operPageRef
271
306
  }, null, 8, ["parentPage", "params"])) : Vue.createCommentVNode("", true),
272
- Vue.createElementVNode("div", _hoisted_3, [
273
- Vue.createVNode(_component_van_field, {
274
- modelValue: Vue.unref(opinionForm).approveIdea,
275
- "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => Vue.unref(opinionForm).approveIdea = $event),
276
- rows: "6",
277
- autosize: "",
278
- label: "意见内容",
279
- type: "textarea",
280
- maxlength: "500",
281
- "show-word-limit": "",
282
- placeholder: "请输入审批意见"
283
- }, null, 8, ["modelValue"])
284
- ]),
307
+ Vue.createVNode(_component_van_form, {
308
+ ref_key: "agreeFormRef",
309
+ ref: agreeFormRef,
310
+ required: "auto",
311
+ "show-error": "",
312
+ "show-error-message": false
313
+ }, {
314
+ default: Vue.withCtx(() => [
315
+ Vue.createElementVNode("div", _hoisted_2, [
316
+ Vue.createVNode(_component_van_field, {
317
+ modelValue: Vue.unref(opinionForm).approveIdea,
318
+ "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => Vue.unref(opinionForm).approveIdea = $event),
319
+ rows: "6",
320
+ autosize: "",
321
+ label: "意见内容",
322
+ type: "textarea",
323
+ maxlength: "500",
324
+ "show-word-limit": "",
325
+ placeholder: "请输入审批意见",
326
+ rules: [{ required: true, message: "请输入审批意见" }]
327
+ }, null, 8, ["modelValue"])
328
+ ])
329
+ ]),
330
+ _: 1
331
+ }, 512),
285
332
  Vue.createVNode(_component_van_action_bar, { "safe-area-inset-bottom": "" }, {
286
333
  default: Vue.withCtx(() => [
287
334
  Vue.createVNode(_component_van_action_bar_button, {
288
335
  class: Vue.normalizeClass("icon-blue"),
289
336
  text: "提交",
290
- onClick: submitOpinion
337
+ onClick: submitAgreeOpinion
291
338
  })
292
339
  ]),
293
340
  _: 1
294
341
  })
295
- ])
342
+ ], 512)
296
343
  ]),
297
344
  _: 1
298
345
  }, 8, ["show"]),
@@ -303,39 +350,53 @@ const _sfc_main = {
303
350
  position: "bottom"
304
351
  }, {
305
352
  default: Vue.withCtx(() => [
306
- Vue.createElementVNode("div", _hoisted_4, [
307
- Vue.createElementVNode("div", _hoisted_5, [
308
- Vue.createVNode(_component_van_field, {
309
- modelValue: Vue.unref(opinionForm).approveText,
310
- "onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => Vue.unref(opinionForm).approveText = $event),
311
- "is-link": "",
312
- readonly: "",
313
- label: "审批意见",
314
- placeholder: "请选择审批意见",
315
- onClick: _cache[3] || (_cache[3] = ($event) => showOpinionPicker.value = true)
316
- }, null, 8, ["modelValue"]),
317
- Vue.unref(targetNodeSelectShow) ? (Vue.openBlock(), Vue.createBlock(_component_van_field, {
318
- key: 0,
319
- modelValue: Vue.unref(opinionForm).targetNodeText,
320
- "onUpdate:modelValue": _cache[4] || (_cache[4] = ($event) => Vue.unref(opinionForm).targetNodeText = $event),
321
- "is-link": "",
322
- readonly: "",
323
- label: "目标节点",
324
- placeholder: "请选择目标节点",
325
- onClick: _cache[5] || (_cache[5] = ($event) => showTargetNodePicker.value = true)
326
- }, null, 8, ["modelValue"])) : Vue.createCommentVNode("", true),
327
- Vue.createVNode(_component_van_field, {
328
- modelValue: Vue.unref(opinionForm).approveIdea,
329
- "onUpdate:modelValue": _cache[6] || (_cache[6] = ($event) => Vue.unref(opinionForm).approveIdea = $event),
330
- rows: "6",
331
- autosize: "",
332
- label: "意见内容",
333
- type: "textarea",
334
- maxlength: "500",
335
- "show-word-limit": "",
336
- placeholder: "请输入审批意见"
337
- }, null, 8, ["modelValue"])
338
- ]),
353
+ Vue.createElementVNode("div", _hoisted_3, [
354
+ Vue.createVNode(_component_van_form, {
355
+ ref_key: "otherFormRef",
356
+ ref: otherFormRef,
357
+ required: "auto",
358
+ "show-error": "",
359
+ "show-error-message": false
360
+ }, {
361
+ default: Vue.withCtx(() => [
362
+ Vue.createElementVNode("div", _hoisted_4, [
363
+ Vue.createVNode(_component_van_field, {
364
+ modelValue: Vue.unref(opinionForm).approveText,
365
+ "onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => Vue.unref(opinionForm).approveText = $event),
366
+ "is-link": "",
367
+ readonly: "",
368
+ label: "审批意见",
369
+ placeholder: "请选择审批意见",
370
+ rules: [{ required: true, message: "请选择审批意见" }],
371
+ onClick: _cache[3] || (_cache[3] = ($event) => showOpinionPicker.value = true)
372
+ }, null, 8, ["modelValue"]),
373
+ Vue.unref(targetNodeSelectShow) ? (Vue.openBlock(), Vue.createBlock(_component_van_field, {
374
+ key: 0,
375
+ modelValue: Vue.unref(opinionForm).targetNodeText,
376
+ "onUpdate:modelValue": _cache[4] || (_cache[4] = ($event) => Vue.unref(opinionForm).targetNodeText = $event),
377
+ "is-link": "",
378
+ readonly: "",
379
+ label: "目标节点",
380
+ placeholder: "请选择目标节点",
381
+ rules: [{ required: true, message: "请选择目标节点" }],
382
+ onClick: _cache[5] || (_cache[5] = ($event) => showTargetNodePicker.value = true)
383
+ }, null, 8, ["modelValue"])) : Vue.createCommentVNode("", true),
384
+ Vue.createVNode(_component_van_field, {
385
+ modelValue: Vue.unref(opinionForm).approveIdea,
386
+ "onUpdate:modelValue": _cache[6] || (_cache[6] = ($event) => Vue.unref(opinionForm).approveIdea = $event),
387
+ rows: "6",
388
+ autosize: "",
389
+ label: "意见内容",
390
+ type: "textarea",
391
+ maxlength: "500",
392
+ "show-word-limit": "",
393
+ placeholder: "请输入审批意见",
394
+ rules: [{ required: true, message: "请输入审批意见" }]
395
+ }, null, 8, ["modelValue"])
396
+ ])
397
+ ]),
398
+ _: 1
399
+ }, 512),
339
400
  Vue.createVNode(_component_van_action_bar, { "safe-area-inset-bottom": "" }, {
340
401
  default: Vue.withCtx(() => [
341
402
  Vue.createVNode(_component_van_action_bar_button, {
@@ -389,5 +450,5 @@ const _sfc_main = {
389
450
  };
390
451
  }
391
452
  };
392
- const _ApprovalBar = /* @__PURE__ */ _pluginVue_exportHelper.default(_sfc_main, [["__scopeId", "data-v-8d0c761c"]]);
453
+ const _ApprovalBar = /* @__PURE__ */ _pluginVue_exportHelper.default(_sfc_main, [["__scopeId", "data-v-c40e2cd6"]]);
393
454
  exports.default = _ApprovalBar;
@@ -91,7 +91,7 @@ const _sfc_main = {
91
91
  const errorRef = taskStatus == "0" ? todoError : taskStatus == "1" ? doneError : ccError;
92
92
  errorRef.value = false;
93
93
  const pageNo = taskStatus == "0" ? todoPageNo : taskStatus == "1" ? donePageNo : ccPageNo;
94
- ctx.$http.post(
94
+ ctx.$http.postMobile(
95
95
  "/base-server/flow/workbench/findTaskListByPage",
96
96
  {
97
97
  pageNo,
@@ -251,7 +251,7 @@ const _sfc_main = {
251
251
  forbidClick: true,
252
252
  duration: 0
253
253
  });
254
- ctx.$http.postForm(
254
+ ctx.$http.postFormMobile(
255
255
  "/base-server/flow/flowApproveDetail/doAssign",
256
256
  {
257
257
  taskId: transferItem.value.taskId,
@@ -282,7 +282,7 @@ const _sfc_main = {
282
282
  forbidClick: true,
283
283
  duration: 0
284
284
  });
285
- await ctx.$http.post(
285
+ await ctx.$http.postMobile(
286
286
  "/base-server/flow/flowApproveDetail/undo",
287
287
  data,
288
288
  false
@@ -295,7 +295,7 @@ const _sfc_main = {
295
295
  forbidClick: true,
296
296
  duration: 0
297
297
  });
298
- await ctx.$http.post(
298
+ await ctx.$http.postMobile(
299
299
  "/base-server/flow/flowApproveDetail/recall",
300
300
  data,
301
301
  false
@@ -572,5 +572,5 @@ const _sfc_main = {
572
572
  };
573
573
  }
574
574
  };
575
- const _ApprovalList = /* @__PURE__ */ _pluginVue_exportHelper.default(_sfc_main, [["__scopeId", "data-v-a585d493"]]);
575
+ const _ApprovalList = /* @__PURE__ */ _pluginVue_exportHelper.default(_sfc_main, [["__scopeId", "data-v-5990769f"]]);
576
576
  exports.default = _ApprovalList;