@fecp/designer 5.5.121 → 5.6.2

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 (80) hide show
  1. package/es/designer/package.json.mjs +1 -1
  2. package/es/designer/src/assets/logo.png.mjs +1 -1
  3. package/es/designer/src/components/EventConfigButton.vue.mjs +2 -2
  4. package/es/designer/src/packages/dialog/useDialogDialog.mjs +1 -1
  5. package/es/designer/src/packages/dialogGlobal/useDialogGlobalDialog.mjs +1 -1
  6. package/es/designer/src/packages/form/property/contract.vue.mjs +15 -1
  7. package/es/designer/src/packages/form/property/pageFooterBtn.vue.mjs +2 -2
  8. package/es/designer/src/packages/form/property/pageHeaderBtn.vue.mjs +2 -2
  9. package/es/designer/src/packages/form/property/widgets.vue.mjs +6 -6
  10. package/es/designer/src/packages/table/property/customBtn.vue.mjs +2 -2
  11. package/es/designer/src/packages/table/property/optBtn.vue.mjs +2 -2
  12. package/es/designer/src/packages/table/property/widgets.vue.mjs +2 -2
  13. package/es/designer.css +408 -393
  14. package/es/logo.ico +0 -0
  15. package/es/packages/mobile/src/components/base/card/Card.vue.mjs +2 -2
  16. package/es/packages/mobile/src/components/custom/appDetail/AppDetail.vue.mjs +4 -3
  17. package/es/packages/mobile/src/components/custom/appTimeLine/AppTimeLine.vue.mjs +8 -4
  18. package/es/packages/mobile/src/components/custom/approvalBar/ApprovalBar.vue.mjs +11 -7
  19. package/es/packages/mobile/src/components/custom/approvalList/ApprovalCard.vue.mjs +3 -3
  20. package/es/packages/mobile/src/components/custom/approvalList/ApprovalList.vue.mjs +32 -22
  21. package/es/packages/mobile/src/components/custom/document/Document.vue.mjs +2 -2
  22. package/es/packages/mobile/src/components/custom/userSelect/UserSelect.vue.mjs +2 -2
  23. package/es/packages/mobile/src/components/dataDisplay/cardList/CardList.vue.mjs +4 -3
  24. package/es/packages/mobile/src/components/dataDisplay/dataStat/DataStat.vue.mjs +109 -47
  25. package/es/packages/mobile/src/components/form/search/Search.vue.mjs +1 -1
  26. package/es/packages/mobile/src/components/navigation/tabbar/Tabbar.vue.mjs +10 -3
  27. package/es/packages/mobile/src/components/navigation/tabs/Tabs.vue.mjs +4 -2
  28. package/es/packages/mobile/src/page.vue.mjs +3 -3
  29. package/es/packages/mobile/src/utils/datasource.mjs +1 -1
  30. package/es/packages/mobile/src/utils/idea/vue3sfc.mjs +3 -1
  31. package/es/packages/mobile/src/utils/optionUtil.mjs +1 -1
  32. package/es/packages/vue/src/components/bus/approvalHistory/timeLine.vue.mjs +1 -1
  33. package/es/packages/vue/src/components/bus/contract/Contract.vue.mjs +12 -1
  34. package/es/packages/vue/src/components/bus/flowChart/bpmnjs/component/timeline.vue.mjs +2 -2
  35. package/es/packages/vue/src/components/forms/form/Form.vue.mjs +5 -2
  36. package/es/packages/vue/src/components/forms/roleSelect/RoleSelect.vue.mjs +2 -2
  37. package/es/packages/vue/src/components/forms/subTable/SubTable.vue.mjs +20 -26
  38. package/es/packages/vue/src/components/forms/userSelect/UserSelect.vue.mjs +2 -2
  39. package/es/packages/vue/src/components/table/Table.vue.mjs +5 -2
  40. package/es/packages/vue/src/components/table/TableColumn.vue.mjs +7 -9
  41. package/es/packages/vue/src/directive/auth.mjs +2 -1
  42. package/es/packages/vue/src/utils/parseRouteParams.mjs +2 -2
  43. package/lib/designer/package.json.js +1 -1
  44. package/lib/designer/src/assets/logo.png.js +1 -1
  45. package/lib/designer/src/components/EventConfigButton.vue.js +2 -2
  46. package/lib/designer/src/packages/dialog/useDialogDialog.js +1 -1
  47. package/lib/designer/src/packages/dialogGlobal/useDialogGlobalDialog.js +1 -1
  48. package/lib/designer/src/packages/form/property/contract.vue.js +15 -1
  49. package/lib/designer/src/packages/form/property/widgets.vue.js +2 -2
  50. package/lib/designer.css +408 -393
  51. package/lib/logo.ico +0 -0
  52. package/lib/packages/mobile/src/components/base/card/Card.vue.js +2 -2
  53. package/lib/packages/mobile/src/components/custom/appDetail/AppDetail.vue.js +4 -3
  54. package/lib/packages/mobile/src/components/custom/appTimeLine/AppTimeLine.vue.js +8 -4
  55. package/lib/packages/mobile/src/components/custom/approvalBar/ApprovalBar.vue.js +10 -6
  56. package/lib/packages/mobile/src/components/custom/approvalList/ApprovalCard.vue.js +3 -3
  57. package/lib/packages/mobile/src/components/custom/approvalList/ApprovalList.vue.js +32 -22
  58. package/lib/packages/mobile/src/components/custom/document/Document.vue.js +2 -2
  59. package/lib/packages/mobile/src/components/custom/userSelect/UserSelect.vue.js +2 -2
  60. package/lib/packages/mobile/src/components/dataDisplay/cardList/CardList.vue.js +4 -3
  61. package/lib/packages/mobile/src/components/dataDisplay/dataStat/DataStat.vue.js +109 -47
  62. package/lib/packages/mobile/src/components/form/search/Search.vue.js +1 -1
  63. package/lib/packages/mobile/src/components/navigation/tabbar/Tabbar.vue.js +10 -3
  64. package/lib/packages/mobile/src/components/navigation/tabs/Tabs.vue.js +4 -2
  65. package/lib/packages/mobile/src/page.vue.js +3 -3
  66. package/lib/packages/mobile/src/utils/datasource.js +1 -1
  67. package/lib/packages/mobile/src/utils/idea/vue3sfc.js +3 -1
  68. package/lib/packages/mobile/src/utils/optionUtil.js +1 -1
  69. package/lib/packages/vue/src/components/bus/approvalHistory/timeLine.vue.js +1 -1
  70. package/lib/packages/vue/src/components/bus/contract/Contract.vue.js +12 -1
  71. package/lib/packages/vue/src/components/bus/flowChart/bpmnjs/component/timeline.vue.js +2 -2
  72. package/lib/packages/vue/src/components/forms/form/Form.vue.js +5 -2
  73. package/lib/packages/vue/src/components/forms/roleSelect/RoleSelect.vue.js +2 -2
  74. package/lib/packages/vue/src/components/forms/subTable/SubTable.vue.js +20 -26
  75. package/lib/packages/vue/src/components/forms/userSelect/UserSelect.vue.js +2 -2
  76. package/lib/packages/vue/src/components/table/Table.vue.js +5 -2
  77. package/lib/packages/vue/src/components/table/TableColumn.vue.js +7 -9
  78. package/lib/packages/vue/src/directive/auth.js +2 -1
  79. package/lib/packages/vue/src/utils/parseRouteParams.js +2 -2
  80. package/package.json +1 -1
package/es/logo.ico CHANGED
Binary file
@@ -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";
9
11
  /* empty css */
10
12
  /* empty css */
11
13
  /* empty css */
12
14
  /* empty css */
13
15
  /* 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";
@@ -84,6 +84,7 @@ const _sfc_main = {
84
84
  const showEmpty = ref(false);
85
85
  const taskNotFound = ref(false);
86
86
  function handleData(data) {
87
+ taskParams.processInstanceId = data.processInstanceId;
87
88
  if (props.baseInfoPageSource == "dynamic") {
88
89
  baseInfoPageId.value = data.mobileDetailPage;
89
90
  appDetailPage.value = findPageById(pageList.value, data.mobileDetailPage);
@@ -111,7 +112,7 @@ const _sfc_main = {
111
112
  showEmpty.value = true;
112
113
  } else {
113
114
  ctx.$http.postFormMobile(
114
- "/base-server/flow/flowApproveDetail/findById",
115
+ "/" + window.$servers.base + "/flow/flowApproveDetail/findById",
115
116
  {
116
117
  taskId,
117
118
  type
@@ -120,7 +121,7 @@ const _sfc_main = {
120
121
  ).then((data) => {
121
122
  if (data.notFound) {
122
123
  ctx.$http.postFormMobile(
123
- "/base-server/flow/flowApproveDetail/findById",
124
+ "/" + window.$servers.base + "/flow/flowApproveDetail/findById",
124
125
  { taskId, type: "1" },
125
126
  true
126
127
  ).then((retryData) => {
@@ -184,7 +185,7 @@ const _sfc_main = {
184
185
  };
185
186
  }
186
187
  };
187
- const _AppDetail = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-3eeb1e3e"]]);
188
+ const _AppDetail = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-2edc3d85"]]);
188
189
  export {
189
190
  _AppDetail as default
190
191
  };
@@ -104,6 +104,10 @@ const _sfc_main = /* @__PURE__ */ Object.assign({
104
104
  type: String,
105
105
  default: ""
106
106
  },
107
+ processInstanceId: {
108
+ type: String,
109
+ default: ""
110
+ },
107
111
  hisTaskData: {
108
112
  type: Array,
109
113
  default: []
@@ -152,7 +156,7 @@ const _sfc_main = /* @__PURE__ */ Object.assign({
152
156
  currentAssignees.value = item.assignee || [];
153
157
  showAssigneePopup.value = true;
154
158
  }
155
- if (props.traceNo) {
159
+ if (props.processInstanceId) {
156
160
  fetchData();
157
161
  } else if (props.hisTaskData.length > 0) {
158
162
  hisTask.value = props.hisTaskData;
@@ -164,9 +168,9 @@ const _sfc_main = /* @__PURE__ */ Object.assign({
164
168
  function fetchData() {
165
169
  loading.value = true;
166
170
  ctx.$http.postFormMobile(
167
- "/base-server/flow/flowData/findTimeLineByTraceNo",
171
+ "/" + window.$servers.base + "/flow/flowData/findTimeLineByProcessInstanceId",
168
172
  {
169
- traceNo: props.traceNo,
173
+ processInstanceId: props.processInstanceId,
170
174
  type: "app",
171
175
  taskDefKey: ""
172
176
  },
@@ -480,7 +484,7 @@ const _sfc_main = /* @__PURE__ */ Object.assign({
480
484
  };
481
485
  }
482
486
  });
483
- const _TimeLineFilter = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-5ea2086e"]]);
487
+ const _TimeLineFilter = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-c284e414"]]);
484
488
  export {
485
489
  _TimeLineFilter as default
486
490
  };
@@ -24,7 +24,7 @@ import MobilePage from "../../../page.vue.mjs";
24
24
  import { useStore } from "../../../../../../node_modules/vuex/dist/vuex.esm-bundler.mjs";
25
25
  /* empty css */
26
26
  import _export_sfc from "../../../../../../_virtual/_plugin-vue_export-helper.mjs";
27
- import { showLoadingToast, showFailToast, showSuccessToast } from "../../../../../../node_modules/vant/es/toast/function-call.mjs";
27
+ import { showLoadingToast, showFailToast, showSuccessToast, closeToast } from "../../../../../../node_modules/vant/es/toast/function-call.mjs";
28
28
  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";
@@ -152,7 +152,7 @@ const _sfc_main = {
152
152
  //提交到当前节点后的指定节点
153
153
  case "C2":
154
154
  ctx.$http.postFormMobile(
155
- "/base-server/flow/flowApproveDetail/getAllNextNodeList",
155
+ "/" + window.$servers.base + "/flow/flowApproveDetail/getAllNextNodeList",
156
156
  { taskId },
157
157
  false
158
158
  ).then((data) => {
@@ -162,7 +162,7 @@ const _sfc_main = {
162
162
  //提交到已执行过的指定节点
163
163
  case "C22":
164
164
  ctx.$http.postFormMobile(
165
- "/base-server/flow/flowApproveDetail/getFinishNodeList",
165
+ "/" + window.$servers.base + "/flow/flowApproveDetail/getFinishNodeList",
166
166
  { taskId },
167
167
  false
168
168
  ).then((data) => {
@@ -172,7 +172,7 @@ const _sfc_main = {
172
172
  //退回到主流指定节点
173
173
  case "R50":
174
174
  ctx.$http.postFormMobile(
175
- "/base-server/flow/flowApproveDetail/getFinishParentNodeList",
175
+ "/" + window.$servers.base + "/flow/flowApproveDetail/getFinishParentNodeList",
176
176
  { taskId },
177
177
  false
178
178
  ).then((data) => {
@@ -184,7 +184,7 @@ const _sfc_main = {
184
184
  //退回到指定节点并提交到退回节点
185
185
  case "R55":
186
186
  ctx.$http.postFormMobile(
187
- "/base-server/flow/flowApproveDetail/getRollBackNodeList",
187
+ "/" + window.$servers.base + "/flow/flowApproveDetail/getRollBackNodeList",
188
188
  { taskId },
189
189
  false
190
190
  ).then((data) => {
@@ -205,6 +205,8 @@ const _sfc_main = {
205
205
  (_b = operPageRef.value) == null ? void 0 : _b.validate().then(() => {
206
206
  submitOpinion();
207
207
  });
208
+ } else {
209
+ submitOpinion();
208
210
  }
209
211
  }
210
212
  function submitOpinion() {
@@ -240,7 +242,7 @@ const _sfc_main = {
240
242
  duration: 0
241
243
  });
242
244
  ctx.$http.postMobile(
243
- "/base-server/flow/flowApproveDetail/doCommit",
245
+ "/" + window.$servers.base + "/flow/flowApproveDetail/doCommit",
244
246
  commitData,
245
247
  false
246
248
  ).then((data) => {
@@ -253,6 +255,8 @@ const _sfc_main = {
253
255
  emitter.emit("refreshFlowCutNum");
254
256
  goBack();
255
257
  }
258
+ }).finally(() => {
259
+ closeToast();
256
260
  });
257
261
  }
258
262
  const goBack = () => {
@@ -448,7 +452,7 @@ const _sfc_main = {
448
452
  };
449
453
  }
450
454
  };
451
- const _ApprovalBar = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-c40e2cd6"]]);
455
+ const _ApprovalBar = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-7696094a"]]);
452
456
  export {
453
457
  _ApprovalBar as default
454
458
  };
@@ -74,7 +74,7 @@ const _sfc_main = {
74
74
  _: 1
75
75
  })) : createCommentVNode("", true)
76
76
  ]),
77
- __props.type != "0" ? (openBlock(), createElementBlock("span", {
77
+ __props.type != "0" && __props.item.statusText ? (openBlock(), createElementBlock("span", {
78
78
  key: 0,
79
79
  class: "fec-card-status",
80
80
  style: normalizeStyle({ background: __props.item.statusColor || "#fa8c16" })
@@ -83,7 +83,7 @@ const _sfc_main = {
83
83
  name: __props.item.statusIcon || "clock-o",
84
84
  size: "12"
85
85
  }, null, 8, ["name"]),
86
- createTextVNode(" " + toDisplayString(__props.item.statusText || "待处理"), 1)
86
+ createTextVNode(" " + toDisplayString(__props.item.statusText), 1)
87
87
  ], 4)) : createCommentVNode("", true)
88
88
  ]),
89
89
  createElementVNode("div", _hoisted_5, [
@@ -158,7 +158,7 @@ const _sfc_main = {
158
158
  };
159
159
  }
160
160
  };
161
- const ApprovalCard = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-404eba8c"]]);
161
+ const ApprovalCard = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-7261618f"]]);
162
162
  export {
163
163
  ApprovalCard as default
164
164
  };
@@ -90,7 +90,7 @@ const _sfc_main = {
90
90
  errorRef.value = false;
91
91
  const pageNo = taskStatus == "0" ? todoPageNo : taskStatus == "1" ? donePageNo : ccPageNo;
92
92
  ctx.$http.postMobile(
93
- "/base-server/flow/workbench/findTaskListByPage",
93
+ "/" + window.$servers.base + "/flow/workbench/findTaskListByPage",
94
94
  {
95
95
  pageNo,
96
96
  pageSize,
@@ -99,7 +99,7 @@ const _sfc_main = {
99
99
  },
100
100
  false
101
101
  ).then((data) => {
102
- const list = data.list;
102
+ const list = data.list || data;
103
103
  switch (taskStatus) {
104
104
  case "0":
105
105
  list.forEach((item) => {
@@ -114,14 +114,16 @@ const _sfc_main = {
114
114
  break;
115
115
  case "1":
116
116
  list.forEach((item) => {
117
- if (item.isEnd) {
118
- item.statusColor = "#52c41a";
119
- item.statusIcon = "checked";
120
- item.statusText = "已完成";
121
- } else {
122
- item.statusColor = "#fa8c16";
123
- item.statusIcon = "more";
124
- item.statusText = "进行中";
117
+ if ("isEnd" in item) {
118
+ if (item.isEnd) {
119
+ item.statusColor = "#52c41a";
120
+ item.statusIcon = "checked";
121
+ item.statusText = "已完成";
122
+ } else {
123
+ item.statusColor = "#fa8c16";
124
+ item.statusIcon = "more";
125
+ item.statusText = "进行中";
126
+ }
125
127
  }
126
128
  });
127
129
  doneList.value.push(...list);
@@ -131,14 +133,16 @@ const _sfc_main = {
131
133
  break;
132
134
  case "2":
133
135
  list.forEach((item) => {
134
- if (item.isEnd) {
135
- item.statusColor = "#52c41a";
136
- item.statusIcon = "checked";
137
- item.statusText = "已完成";
138
- } else {
139
- item.statusColor = "#fa8c16";
140
- item.statusIcon = "more";
141
- item.statusText = "进行中";
136
+ if ("isEnd" in item) {
137
+ if (item.isEnd) {
138
+ item.statusColor = "#52c41a";
139
+ item.statusIcon = "checked";
140
+ item.statusText = "已完成";
141
+ } else {
142
+ item.statusColor = "#fa8c16";
143
+ item.statusIcon = "more";
144
+ item.statusText = "进行中";
145
+ }
142
146
  }
143
147
  });
144
148
  ccList.value.push(...list);
@@ -149,6 +153,9 @@ const _sfc_main = {
149
153
  }
150
154
  }).catch((err) => {
151
155
  errorRef.value = true;
156
+ if (taskStatus == "0") todoPageNo--;
157
+ else if (taskStatus == "1") donePageNo--;
158
+ else ccPageNo--;
152
159
  }).finally(() => {
153
160
  switch (taskStatus) {
154
161
  case "0":
@@ -250,7 +257,7 @@ const _sfc_main = {
250
257
  duration: 0
251
258
  });
252
259
  ctx.$http.postFormMobile(
253
- "/base-server/flow/flowApproveDetail/doAssign",
260
+ "/" + window.$servers.base + "/flow/flowApproveDetail/doAssign",
254
261
  {
255
262
  taskId: transferItem.value.taskId,
256
263
  opNo: ((_a = store.getters.user) == null ? void 0 : _a.opNo) || "",
@@ -263,6 +270,7 @@ const _sfc_main = {
263
270
  todoList.value = [];
264
271
  todoFinished.value = false;
265
272
  todoPageNo = 0;
273
+ emitter.emit("refreshFlowCutNum");
266
274
  onTodoLoad();
267
275
  });
268
276
  }
@@ -281,11 +289,12 @@ const _sfc_main = {
281
289
  duration: 0
282
290
  });
283
291
  await ctx.$http.postMobile(
284
- "/base-server/flow/flowApproveDetail/undo",
292
+ "/" + window.$servers.base + "/flow/flowApproveDetail/undo",
285
293
  data,
286
294
  false
287
295
  );
288
296
  showSuccessToast("撤销成功");
297
+ emitter.emit("refreshFlowCutNum");
289
298
  } else if (type == "recall") {
290
299
  console.log("召回:", item, "原因:", reason);
291
300
  showLoadingToast({
@@ -294,11 +303,12 @@ const _sfc_main = {
294
303
  duration: 0
295
304
  });
296
305
  await ctx.$http.postMobile(
297
- "/base-server/flow/flowApproveDetail/recall",
306
+ "/" + window.$servers.base + "/flow/flowApproveDetail/recall",
298
307
  data,
299
308
  false
300
309
  );
301
310
  showSuccessToast("召回成功");
311
+ emitter.emit("refreshFlowCutNum");
302
312
  }
303
313
  onSearch();
304
314
  }
@@ -570,7 +580,7 @@ const _sfc_main = {
570
580
  };
571
581
  }
572
582
  };
573
- const _ApprovalList = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-5990769f"]]);
583
+ const _ApprovalList = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-67d02900"]]);
574
584
  export {
575
585
  _ApprovalList as default
576
586
  };
@@ -132,7 +132,7 @@ const _sfc_main = {
132
132
  function fetchData() {
133
133
  loading.value = true;
134
134
  ctx.$http.postMobile(
135
- "/base-server/docBusFiletype/getRootTree4Mobile",
135
+ "/" + window.$servers.base + "/docBusFiletype/getRootTree4Mobile",
136
136
  {
137
137
  isEdit: false,
138
138
  paramList: [
@@ -361,7 +361,7 @@ const _sfc_main = {
361
361
  };
362
362
  }
363
363
  };
364
- const _Document = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-c2db27bd"]]);
364
+ const _Document = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-f45752e0"]]);
365
365
  export {
366
366
  _Document as default
367
367
  };
@@ -164,7 +164,7 @@ const _sfc_main = {
164
164
  function fetchData(keyword = "") {
165
165
  listLoading.value = true;
166
166
  ctx.$http.postMobile(
167
- "/base-server/mobileApi/findSysUserByPage",
167
+ "/" + window.$servers.base + "/mobileApi/findSysUserByPage",
168
168
  {
169
169
  pageNo: pageNum.value,
170
170
  pageSize,
@@ -314,7 +314,7 @@ const _sfc_main = {
314
314
  };
315
315
  }
316
316
  };
317
- const _UserSelect = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-4aaba0be"]]);
317
+ const _UserSelect = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-f74f73d1"]]);
318
318
  export {
319
319
  _UserSelect as default
320
320
  };
@@ -126,7 +126,7 @@ const _sfc_main = /* @__PURE__ */ Object.assign({
126
126
  }
127
127
  function dicHandler(dictionaryValue) {
128
128
  return ctx.$http.postFormMobile(
129
- "/base-server/parm/sysParmDic/getDicListByKey",
129
+ "/" + window.$servers.base + "/parm/sysParmDic/getDicListByKey",
130
130
  {
131
131
  keyName: dictionaryValue
132
132
  },
@@ -202,6 +202,7 @@ const _sfc_main = /* @__PURE__ */ Object.assign({
202
202
  } catch (err) {
203
203
  console.error(err);
204
204
  error.value = true;
205
+ pageNo--;
205
206
  loading.value = false;
206
207
  }
207
208
  }
@@ -264,7 +265,7 @@ const _sfc_main = /* @__PURE__ */ Object.assign({
264
265
  try {
265
266
  const keyName = Array.from(dictionaryKeys).join(",");
266
267
  const response = await ctx.$http.postFormMobile(
267
- "/base-server/parm/sysParmDic/getDicListByKey",
268
+ "/" + window.$servers.base + "/parm/sysParmDic/getDicListByKey",
268
269
  {
269
270
  keyName
270
271
  },
@@ -422,7 +423,7 @@ const _sfc_main = /* @__PURE__ */ Object.assign({
422
423
  };
423
424
  }
424
425
  });
425
- const _CardList = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-68f16109"]]);
426
+ const _CardList = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-13759ee7"]]);
426
427
  export {
427
428
  _CardList as default
428
429
  };
@@ -51,57 +51,119 @@ const _sfc_main = /* @__PURE__ */ Object.assign({
51
51
  name: "FecMobileDataStat"
52
52
  }, {
53
53
  __name: "DataStat",
54
- props: {},
54
+ props: {
55
+ busType: {
56
+ type: String,
57
+ default: "lease"
58
+ }
59
+ },
55
60
  setup(__props) {
61
+ const props = __props;
56
62
  const currentInstance = getCurrentInstance();
57
63
  const ctx = currentInstance.proxy;
58
64
  const loading = ref(true);
59
65
  const dataList = ref([]);
60
- ctx.$http.postFormMobile("/base-server/sysHome/getData4UpperLeft", {}, false).then((data) => {
61
- dataList.value = [
62
- {
63
- label: "资产总额",
64
- value: data.dueAmt,
65
- unit: "万元",
66
- theme: "blue"
67
- },
68
- {
69
- label: "客户数量",
70
- value: data.cusCount,
71
- unit: "",
72
- theme: "mint"
73
- },
74
- {
75
- label: "资产余额",
76
- value: data.dueBal,
77
- unit: "",
78
- theme: "purple"
79
- },
80
- {
81
- label: "今日到期租金",
82
- value: data.currRentAmt,
83
- unit: "",
84
- theme: "mist"
85
- },
86
- {
87
- label: "未结清合同",
88
- value: data.unSettleContNum,
89
- unit: "",
90
- theme: "orange"
91
- },
92
- {
93
- label: "未来7日到期租金",
94
- value: data.laterRentAmt,
95
- unit: "",
96
- theme: "rose"
97
- }
98
- ];
99
- }).catch((err) => {
100
- console.error("[DataStat] 加载失败", err);
101
- dataList.value = [];
102
- }).finally(() => {
103
- loading.value = false;
104
- });
66
+ if (props.busType == "lease") {
67
+ ctx.$http.postFormMobile(
68
+ "/" + window.$servers.base + "/sysHome/getData4UpperLeft",
69
+ {},
70
+ false
71
+ ).then((data) => {
72
+ dataList.value = [
73
+ {
74
+ label: "资产总额",
75
+ value: data.dueAmt,
76
+ unit: "万元",
77
+ theme: "blue"
78
+ },
79
+ {
80
+ label: "客户数量",
81
+ value: data.cusCount,
82
+ unit: "人",
83
+ theme: "mint"
84
+ },
85
+ {
86
+ label: "资产余额",
87
+ value: data.dueBal,
88
+ unit: "万",
89
+ theme: "purple"
90
+ },
91
+ {
92
+ label: "今日到期租金",
93
+ value: data.currRentAmt,
94
+ unit: "万",
95
+ theme: "mist"
96
+ },
97
+ {
98
+ label: "未结清合同",
99
+ value: data.unSettleContNum,
100
+ unit: "笔",
101
+ theme: "orange"
102
+ },
103
+ {
104
+ label: "未来7日到期租金",
105
+ value: data.laterRentAmt,
106
+ unit: "万",
107
+ theme: "rose"
108
+ }
109
+ ];
110
+ }).catch((err) => {
111
+ console.error("[DataStat] 加载失败", err);
112
+ dataList.value = [];
113
+ }).finally(() => {
114
+ loading.value = false;
115
+ });
116
+ } else if (props.busType == "gntee") {
117
+ ctx.$http.postFormMobile(
118
+ "/" + window.$servers.gntee + "/guarCont/getStatisData4HomePageUpperLeft",
119
+ {},
120
+ false
121
+ ).then((data) => {
122
+ dataList.value = [
123
+ {
124
+ label: "合同金额",
125
+ value: data.guarAmt,
126
+ unit: "万元",
127
+ theme: "blue"
128
+ },
129
+ {
130
+ label: "客户数量",
131
+ value: data.cusCount,
132
+ unit: "人",
133
+ theme: "mint"
134
+ },
135
+ {
136
+ label: "待放款金额",
137
+ value: data.guarWaitAmt,
138
+ unit: "万",
139
+ theme: "mist"
140
+ },
141
+ {
142
+ label: "在保余额",
143
+ value: data.guarBalAmt,
144
+ unit: "万",
145
+ theme: "purple"
146
+ },
147
+ {
148
+ label: "在保客户数量",
149
+ value: data.guarCusCont,
150
+ unit: "人",
151
+ theme: "orange"
152
+ },
153
+ {
154
+ label: "代偿余额",
155
+ value: data.advanceBal,
156
+ unit: "万",
157
+ theme: "rose"
158
+ }
159
+ ];
160
+ }).catch((err) => {
161
+ console.error("[DataStat] 加载失败", err);
162
+ dataList.value = [];
163
+ }).finally(() => {
164
+ loading.value = false;
165
+ });
166
+ }
105
167
  const hero = computed(() => dataList.value[0] || null);
106
168
  const rows = computed(() => {
107
169
  const rest = dataList.value.slice(1);
@@ -214,7 +276,7 @@ const _sfc_main = /* @__PURE__ */ Object.assign({
214
276
  };
215
277
  }
216
278
  });
217
- const _DataStat = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-69ffb999"]]);
279
+ const _DataStat = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-1c07f859"]]);
218
280
  export {
219
281
  _DataStat as default
220
282
  };
@@ -94,7 +94,7 @@ const _sfc_main = {
94
94
  try {
95
95
  const keyName = Array.from(dictionaryKeys).join(",");
96
96
  const response = await ctx.$http.postFormMobile(
97
- "/base-server/parm/sysParmDic/getDicListByKey",
97
+ "/" + window.$servers.base + "/parm/sysParmDic/getDicListByKey",
98
98
  {
99
99
  keyName
100
100
  },
@@ -52,7 +52,11 @@ const _sfc_main = {
52
52
  });
53
53
  });
54
54
  function getFlowCutNum() {
55
- ctx.$http.postMobile("/base-server/flow/workbench/getTaskCutByUser", null, false).then((data) => {
55
+ ctx.$http.postMobile(
56
+ "/" + window.$servers.base + "/flow/workbench/getTaskCutByUser",
57
+ null,
58
+ false
59
+ ).then((data) => {
56
60
  flowMsgNum.value = data;
57
61
  });
58
62
  }
@@ -62,7 +66,7 @@ const _sfc_main = {
62
66
  });
63
67
  function getMessageCutNum() {
64
68
  ctx.$http.postFormMobile(
65
- "/base-server/msgMessages/initMsgUnReadNum",
69
+ "/" + window.$servers.base + "/msgMessages/initMsgUnReadNum",
66
70
  {
67
71
  opNo: store.getters.user.opNo
68
72
  },
@@ -72,6 +76,9 @@ const _sfc_main = {
72
76
  });
73
77
  }
74
78
  getMessageCutNum();
79
+ emitter.on("refreshMsgCutNum", () => {
80
+ getMessageCutNum();
81
+ });
75
82
  const msgSocket = SocketService.Instance;
76
83
  msgSocket.connect(
77
84
  `${ctx.$envConfig.web_socket_url}/message4ws4Mobile/${((_a = store.getters.user) == null ? void 0 : _a.corpId) || ""}${store.getters.user.opNo}`
@@ -114,7 +121,7 @@ const _sfc_main = {
114
121
  };
115
122
  }
116
123
  };
117
- const _Tabbar = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-5e9f5a59"]]);
124
+ const _Tabbar = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-b7b7084a"]]);
118
125
  export {
119
126
  _Tabbar as default
120
127
  };
@@ -120,12 +120,14 @@ const _sfc_main = {
120
120
  });
121
121
  const componentParams = computed(() => {
122
122
  let traceNo = props.params.traceNo;
123
+ let processInstanceId = props.params.processInstanceId;
123
124
  if (props.busPkField) {
124
125
  traceNo = props.formData[props.busPkField];
125
126
  }
126
127
  return {
127
128
  ...props.formData,
128
- traceNo
129
+ traceNo,
130
+ processInstanceId
129
131
  };
130
132
  });
131
133
  const compHeight = computed(() => {
@@ -211,7 +213,7 @@ const _sfc_main = {
211
213
  };
212
214
  }
213
215
  };
214
- const _Tabs = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-217113cd"]]);
216
+ const _Tabs = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-b22e2eda"]]);
215
217
  export {
216
218
  _Tabs as default
217
219
  };