@fecp/designer 5.5.110 → 5.5.112
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.
- package/es/designer/package.json.mjs +1 -1
- package/es/designer/src/packages/dialog/useDialogDialog.mjs +1 -1
- package/es/designer/src/packages/dialogGlobal/useDialogGlobalDialog.mjs +1 -1
- package/es/designer/src/packages/form/property/widgets.vue.mjs +2 -2
- package/es/designer.css +284 -138
- package/es/packages/mobile/index.mjs +0 -2
- package/es/packages/mobile/src/components/all.mjs +2 -2
- package/es/packages/mobile/src/components/custom/appDetail/AppDetail.vue.mjs +38 -10
- package/es/packages/mobile/src/components/custom/appTimeLine/AppTimeLine.vue.mjs +340 -0
- package/es/packages/mobile/src/components/custom/appTimeLine/index.mjs +10 -0
- package/es/packages/mobile/src/components/custom/approvalBar/ApprovalBar.vue.mjs +142 -62
- package/es/packages/mobile/src/components/custom/approvalList/ApprovalCard.vue.mjs +7 -6
- package/es/packages/mobile/src/components/custom/approvalList/ApprovalList.vue.mjs +168 -52
- package/es/packages/mobile/src/components/custom/timeLineFilter/index.mjs +1 -5
- package/es/packages/mobile/src/components/dataDisplay/menuGrid/MenuGrid.vue.mjs +2 -2
- package/es/packages/mobile/src/components/navigation/navBar/NavBar.vue.mjs +2 -2
- package/es/packages/mobile/src/components/navigation/tabs/Tabs.vue.mjs +15 -7
- package/es/packages/mobile/src/index.vue.mjs +3 -3
- package/es/packages/mobile/src/page.vue.mjs +53 -3
- package/es/packages/vue/src/components/layout/Layout.vue.mjs +1 -1
- package/es/packages/vue/src/utils/datasource.mjs +5 -1
- package/lib/designer/package.json.js +1 -1
- package/lib/designer/src/packages/dialog/useDialogDialog.js +1 -1
- package/lib/designer/src/packages/dialogGlobal/useDialogGlobalDialog.js +1 -1
- package/lib/designer/src/packages/form/property/widgets.vue.js +2 -2
- package/lib/designer.css +284 -138
- package/lib/packages/mobile/index.js +8 -10
- package/lib/packages/mobile/src/components/all.js +8 -8
- package/lib/packages/mobile/src/components/custom/appDetail/AppDetail.vue.js +37 -9
- package/lib/packages/mobile/src/components/custom/appTimeLine/AppTimeLine.vue.js +340 -0
- package/lib/packages/mobile/src/components/custom/appTimeLine/index.js +10 -0
- package/lib/packages/mobile/src/components/custom/approvalBar/ApprovalBar.vue.js +141 -61
- package/lib/packages/mobile/src/components/custom/approvalList/ApprovalCard.vue.js +7 -6
- package/lib/packages/mobile/src/components/custom/approvalList/ApprovalList.vue.js +168 -52
- package/lib/packages/mobile/src/components/custom/timeLineFilter/index.js +1 -4
- package/lib/packages/mobile/src/components/dataDisplay/menuGrid/MenuGrid.vue.js +2 -2
- package/lib/packages/mobile/src/components/navigation/navBar/NavBar.vue.js +2 -2
- package/lib/packages/mobile/src/components/navigation/tabs/Tabs.vue.js +14 -6
- package/lib/packages/mobile/src/index.vue.js +3 -3
- package/lib/packages/mobile/src/page.vue.js +53 -3
- package/lib/packages/vue/src/components/layout/Layout.vue.js +1 -1
- package/lib/packages/vue/src/utils/datasource.js +5 -1
- package/package.json +1 -1
|
@@ -3,7 +3,7 @@ Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toString
|
|
|
3
3
|
const all = require("./src/components/all.js");
|
|
4
4
|
require("./node_modules/@vant/touch-emulator/dist/index.js");
|
|
5
5
|
;/* empty css */
|
|
6
|
-
const index$
|
|
6
|
+
const index$17 = ;/* empty css */
|
|
7
7
|
const index$1 = require("./src/components/base/button/index.js");
|
|
8
8
|
const index$2 = require("./src/components/base/icon/index.js");
|
|
9
9
|
const index$3 = require("./src/components/base/cell/index.js");
|
|
@@ -71,10 +71,9 @@ const index$10 = require("./src/components/navigation/tabbar/index.js");
|
|
|
71
71
|
const index$11 = require("./src/components/navigation/tabbarItem/index.js");
|
|
72
72
|
const index$12 = require("./src/components/navigation/treeSelect/index.js");
|
|
73
73
|
const index$13 = require("./src/components/layout/layout/index.js");
|
|
74
|
-
const index$14 = require("./src/components/custom/
|
|
75
|
-
const index$15 = require("./src/components/custom/
|
|
76
|
-
const index$16 = require("./src/components/custom/
|
|
77
|
-
const index$17 = require("./src/components/custom/approvalList/index.js");
|
|
74
|
+
const index$14 = require("./src/components/custom/appDetail/index.js");
|
|
75
|
+
const index$15 = require("./src/components/custom/approvalBar/index.js");
|
|
76
|
+
const index$16 = require("./src/components/custom/approvalList/index.js");
|
|
78
77
|
const functionCall = require("./node_modules/vant/es/dialog/function-call.js");
|
|
79
78
|
const functionCall$1 = require("./node_modules/vant/es/image-preview/function-call.js");
|
|
80
79
|
const functionCall$2 = require("./node_modules/vant/es/notify/function-call.js");
|
|
@@ -84,7 +83,7 @@ const index = {
|
|
|
84
83
|
for (let c in all) {
|
|
85
84
|
app.use(all[c]);
|
|
86
85
|
}
|
|
87
|
-
app.component("FecMobileApp", index$
|
|
86
|
+
app.component("FecMobileApp", index$17.default);
|
|
88
87
|
}
|
|
89
88
|
};
|
|
90
89
|
exports.MobileButton = index$1.MobileButton;
|
|
@@ -154,10 +153,9 @@ exports.MobileTabbar = index$10.MobileTabbar;
|
|
|
154
153
|
exports.MobileTabbarItem = index$11.MobileTabbarItem;
|
|
155
154
|
exports.MobileTreeSelect = index$12.MobileTreeSelect;
|
|
156
155
|
exports.MobileLayout = index$13.MobileLayout;
|
|
157
|
-
exports.
|
|
158
|
-
exports.
|
|
159
|
-
exports.
|
|
160
|
-
exports.MobileApprovalList = index$17.MobileApprovalList;
|
|
156
|
+
exports.MobileAppDetail = index$14.MobileAppDetail;
|
|
157
|
+
exports.MobileApprovalBar = index$15.MobileApprovalBar;
|
|
158
|
+
exports.MobileApprovalList = index$16.MobileApprovalList;
|
|
161
159
|
exports.closeDialog = functionCall.closeDialog;
|
|
162
160
|
exports.showConfirmDialog = functionCall.showConfirmDialog;
|
|
163
161
|
exports.showDialog = functionCall.showDialog;
|
|
@@ -67,10 +67,11 @@ const index$$ = require("./navigation/tabbar/index.js");
|
|
|
67
67
|
const index$10 = require("./navigation/tabbarItem/index.js");
|
|
68
68
|
const index$11 = require("./navigation/treeSelect/index.js");
|
|
69
69
|
const index$12 = require("./layout/layout/index.js");
|
|
70
|
-
|
|
71
|
-
const index$
|
|
72
|
-
const index$
|
|
73
|
-
const index$
|
|
70
|
+
require("./custom/timeLineFilter/index.js");
|
|
71
|
+
const index$13 = require("./custom/appDetail/index.js");
|
|
72
|
+
const index$14 = require("./custom/approvalBar/index.js");
|
|
73
|
+
const index$15 = require("./custom/approvalList/index.js");
|
|
74
|
+
require("./custom/appTimeLine/index.js");
|
|
74
75
|
exports.MobileButton = index.MobileButton;
|
|
75
76
|
exports.MobileIcon = index$1.MobileIcon;
|
|
76
77
|
exports.MobileCell = index$2.MobileCell;
|
|
@@ -138,7 +139,6 @@ exports.MobileTabbar = index$$.MobileTabbar;
|
|
|
138
139
|
exports.MobileTabbarItem = index$10.MobileTabbarItem;
|
|
139
140
|
exports.MobileTreeSelect = index$11.MobileTreeSelect;
|
|
140
141
|
exports.MobileLayout = index$12.MobileLayout;
|
|
141
|
-
exports.
|
|
142
|
-
exports.
|
|
143
|
-
exports.
|
|
144
|
-
exports.MobileApprovalList = index$16.MobileApprovalList;
|
|
142
|
+
exports.MobileAppDetail = index$13.MobileAppDetail;
|
|
143
|
+
exports.MobileApprovalBar = index$14.MobileApprovalBar;
|
|
144
|
+
exports.MobileApprovalList = index$15.MobileApprovalList;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
|
3
3
|
const Vue = require("vue");
|
|
4
|
+
const index = require("../appTimeLine/index.js");
|
|
4
5
|
;/* empty css */
|
|
5
6
|
const _pluginVue_exportHelper = require("../../../../../../_virtual/_plugin-vue_export-helper.js");
|
|
6
7
|
const _sfc_main = {
|
|
@@ -33,20 +34,37 @@ const _sfc_main = {
|
|
|
33
34
|
actionBar: {
|
|
34
35
|
type: Object
|
|
35
36
|
},
|
|
36
|
-
|
|
37
|
-
type:
|
|
38
|
-
default:
|
|
37
|
+
swipeable: {
|
|
38
|
+
type: Boolean,
|
|
39
|
+
default: true
|
|
39
40
|
},
|
|
40
|
-
|
|
41
|
+
operationPageId: {
|
|
41
42
|
type: String,
|
|
42
43
|
default: ""
|
|
43
44
|
}
|
|
44
45
|
},
|
|
45
46
|
setup(__props) {
|
|
47
|
+
var _a, _b;
|
|
46
48
|
const props = __props;
|
|
47
49
|
const currentInstance = Vue.getCurrentInstance();
|
|
48
50
|
const ctx = currentInstance.proxy;
|
|
49
51
|
ctx.route;
|
|
52
|
+
const opinionTypeOptions = Vue.ref([]);
|
|
53
|
+
const taskData = { ...props.params.taskData };
|
|
54
|
+
const taskParams = { ...props.params };
|
|
55
|
+
delete taskParams.taskData;
|
|
56
|
+
ctx.$http.postForm(
|
|
57
|
+
"/base-server/flow/flowApproveDetail/findById",
|
|
58
|
+
{
|
|
59
|
+
taskId: (_a = props.params) == null ? void 0 : _a.taskId,
|
|
60
|
+
type: (_b = props.params) == null ? void 0 : _b.type
|
|
61
|
+
},
|
|
62
|
+
false
|
|
63
|
+
).then((data) => {
|
|
64
|
+
opinionTypeOptions.value = data.approvalBtn.filter(
|
|
65
|
+
(item) => item.approveType != "C1"
|
|
66
|
+
);
|
|
67
|
+
});
|
|
50
68
|
const activeName = Vue.ref("tab_base_info");
|
|
51
69
|
const baseInfoPageId = Vue.ref("");
|
|
52
70
|
if (props.baseInfoPageSource == "dynamic") ;
|
|
@@ -66,7 +84,11 @@ const _sfc_main = {
|
|
|
66
84
|
tabs.push({ id: "tab_doc_info", title: "要件信息" });
|
|
67
85
|
}
|
|
68
86
|
if (props.approvalHistory) {
|
|
69
|
-
tabs.push({
|
|
87
|
+
tabs.push({
|
|
88
|
+
id: "tab_timeline_info",
|
|
89
|
+
title: "审批历史",
|
|
90
|
+
component: index.MobileTimeLineFilter
|
|
91
|
+
});
|
|
70
92
|
}
|
|
71
93
|
return tabs;
|
|
72
94
|
});
|
|
@@ -81,12 +103,18 @@ const _sfc_main = {
|
|
|
81
103
|
modelValue: Vue.unref(activeName),
|
|
82
104
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => Vue.isRef(activeName) ? activeName.value = $event : null),
|
|
83
105
|
options: Vue.unref(tabsOptions),
|
|
84
|
-
params:
|
|
85
|
-
|
|
86
|
-
|
|
106
|
+
params: taskParams,
|
|
107
|
+
swipeable: __props.swipeable
|
|
108
|
+
}, null, 8, ["modelValue", "options", "swipeable"]),
|
|
109
|
+
__props.actionBar ? (Vue.openBlock(), Vue.createBlock(_component_FecMobileApprovalBar, Vue.mergeProps({ key: 0 }, __props.actionBar, {
|
|
110
|
+
params: taskParams,
|
|
111
|
+
taskData,
|
|
112
|
+
opinionTypeOptions: Vue.unref(opinionTypeOptions),
|
|
113
|
+
operationPageId: __props.operationPageId
|
|
114
|
+
}), null, 16, ["opinionTypeOptions", "operationPageId"])) : Vue.createCommentVNode("", true)
|
|
87
115
|
], 64);
|
|
88
116
|
};
|
|
89
117
|
}
|
|
90
118
|
};
|
|
91
|
-
const _AppDetail = /* @__PURE__ */ _pluginVue_exportHelper.default(_sfc_main, [["__scopeId", "data-v-
|
|
119
|
+
const _AppDetail = /* @__PURE__ */ _pluginVue_exportHelper.default(_sfc_main, [["__scopeId", "data-v-081aef4a"]]);
|
|
92
120
|
exports.default = _AppDetail;
|
|
@@ -0,0 +1,340 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
|
3
|
+
;/* empty css */
|
|
4
|
+
;/* empty css */
|
|
5
|
+
;/* empty css */
|
|
6
|
+
;/* empty css */
|
|
7
|
+
;/* empty css */
|
|
8
|
+
;/* empty css */
|
|
9
|
+
const Vue = require("vue");
|
|
10
|
+
;/* empty css */
|
|
11
|
+
const _pluginVue_exportHelper = require("../../../../../../_virtual/_plugin-vue_export-helper.js");
|
|
12
|
+
const index = require("../../../../node_modules/vant/es/loading/index.js");
|
|
13
|
+
const index$1 = require("../../../../node_modules/vant/es/steps/index.js");
|
|
14
|
+
const index$2 = require("../../../../node_modules/vant/es/step/index.js");
|
|
15
|
+
const _hoisted_1 = { class: "fec-mobile-approval-timeline" };
|
|
16
|
+
const _hoisted_2 = {
|
|
17
|
+
key: 0,
|
|
18
|
+
class: "fec-timeline-loading"
|
|
19
|
+
};
|
|
20
|
+
const _hoisted_3 = { class: "fec-step-square" };
|
|
21
|
+
const _hoisted_4 = { class: "fec-step-square-text" };
|
|
22
|
+
const _hoisted_5 = { class: "fec-step-square" };
|
|
23
|
+
const _hoisted_6 = { class: "fec-step-square-text" };
|
|
24
|
+
const _hoisted_7 = { class: "fec-step-square" };
|
|
25
|
+
const _hoisted_8 = { class: "fec-step-square-text" };
|
|
26
|
+
const _hoisted_9 = { class: "fec-step-header" };
|
|
27
|
+
const _hoisted_10 = { class: "fec-step-title" };
|
|
28
|
+
const _hoisted_11 = { class: "fec-step-name" };
|
|
29
|
+
const _hoisted_12 = {
|
|
30
|
+
key: 0,
|
|
31
|
+
class: "fec-step-role"
|
|
32
|
+
};
|
|
33
|
+
const _hoisted_13 = { class: "fec-step-header-right" };
|
|
34
|
+
const _hoisted_14 = { class: "fec-step-time" };
|
|
35
|
+
const _hoisted_15 = {
|
|
36
|
+
key: 0,
|
|
37
|
+
class: "fec-step-desc"
|
|
38
|
+
};
|
|
39
|
+
const _hoisted_16 = { class: "fec-step-opinion" };
|
|
40
|
+
const _hoisted_17 = {
|
|
41
|
+
key: 0,
|
|
42
|
+
class: "fec-step-desc-text"
|
|
43
|
+
};
|
|
44
|
+
const _sfc_main = {
|
|
45
|
+
__name: "AppTimeLine",
|
|
46
|
+
props: {
|
|
47
|
+
// 业务主键号
|
|
48
|
+
traceNo: {
|
|
49
|
+
type: String,
|
|
50
|
+
default: ""
|
|
51
|
+
},
|
|
52
|
+
// 图标映射(可配置)
|
|
53
|
+
iconMap: {
|
|
54
|
+
type: Object,
|
|
55
|
+
default: () => ({
|
|
56
|
+
同意: { color: "#52c41a", icon: "✓" },
|
|
57
|
+
打回: { color: "#f5222d", icon: "✕" },
|
|
58
|
+
终止: { color: "#f5222d", icon: "■" },
|
|
59
|
+
发起流程: { color: "#52c41a", icon: "✓" },
|
|
60
|
+
当前任务: { color: "#fa8c16", icon: "○" }
|
|
61
|
+
})
|
|
62
|
+
}
|
|
63
|
+
},
|
|
64
|
+
setup(__props) {
|
|
65
|
+
const props = __props;
|
|
66
|
+
const loading = Vue.ref(false);
|
|
67
|
+
const hisTask = Vue.ref([]);
|
|
68
|
+
const task = Vue.ref([]);
|
|
69
|
+
const mockData = {
|
|
70
|
+
task: [
|
|
71
|
+
{
|
|
72
|
+
taskDefinitionKey: "UserTask_05pjyxs",
|
|
73
|
+
name: "业务部负责人审批",
|
|
74
|
+
createTime: "2026-06-16 14:37:03",
|
|
75
|
+
taskId: "c9b2007a-694d-11f1-bc9c-5405db9932f3",
|
|
76
|
+
duration: "35分10秒",
|
|
77
|
+
assignee: [
|
|
78
|
+
{
|
|
79
|
+
opName: "大鹏租赁业务部主管",
|
|
80
|
+
opNo: "dpzl02",
|
|
81
|
+
userId: "14c87112e7324486aec4721abf14f1f1"
|
|
82
|
+
},
|
|
83
|
+
{
|
|
84
|
+
opName: "王永超",
|
|
85
|
+
opNo: "wych",
|
|
86
|
+
userId: "6ae80b11533adcf510ec44632ce69213"
|
|
87
|
+
},
|
|
88
|
+
{
|
|
89
|
+
opName: "管理员",
|
|
90
|
+
opNo: "admin",
|
|
91
|
+
userId: "ae1d74c1f44ea40dfd9c9f30d45b3084"
|
|
92
|
+
},
|
|
93
|
+
{
|
|
94
|
+
opName: "业务部负责人",
|
|
95
|
+
opNo: "0002",
|
|
96
|
+
userId: "ff1825c49ee45bda61413461bed41ba0"
|
|
97
|
+
}
|
|
98
|
+
],
|
|
99
|
+
taskType: "task"
|
|
100
|
+
}
|
|
101
|
+
],
|
|
102
|
+
hisTask: [
|
|
103
|
+
{
|
|
104
|
+
taskDefinitionKey: "UserTask_1gwjv5e",
|
|
105
|
+
name: "业务经理发起",
|
|
106
|
+
createTime: "2026-06-16 14:26:24",
|
|
107
|
+
taskType: "task",
|
|
108
|
+
taskId: "4c5d747e-694c-11f1-b0e9-5405db9932f3",
|
|
109
|
+
assignee: "huyanming",
|
|
110
|
+
assigneeName: "huyanming",
|
|
111
|
+
endTime: "2026-06-16 14:37:03",
|
|
112
|
+
endDate: "2026-06-16 14:37:03",
|
|
113
|
+
duration: "10分39秒",
|
|
114
|
+
approveName: "同意",
|
|
115
|
+
approveDesc: "123123123"
|
|
116
|
+
},
|
|
117
|
+
{
|
|
118
|
+
taskDefinitionKey: "UserTask_1c82hgw",
|
|
119
|
+
name: "风控部负责人",
|
|
120
|
+
createTime: "2026-06-16 14:20:39",
|
|
121
|
+
taskType: "task",
|
|
122
|
+
taskId: "7e7868d3-694b-11f1-b0e9-5405db9932f3",
|
|
123
|
+
assignee: "admin",
|
|
124
|
+
assigneeName: "管理员",
|
|
125
|
+
endTime: "2026-06-16 14:26:24",
|
|
126
|
+
endDate: "2026-06-16 14:26:24",
|
|
127
|
+
duration: "5分45秒",
|
|
128
|
+
approveName: "打回",
|
|
129
|
+
approveDesc: "打回审批意见111111"
|
|
130
|
+
},
|
|
131
|
+
{
|
|
132
|
+
taskDefinitionKey: "UserTask_080zfmp",
|
|
133
|
+
name: "风控经理",
|
|
134
|
+
createTime: "2026-06-15 16:47:02",
|
|
135
|
+
taskType: "task",
|
|
136
|
+
taskId: "c76f76b6-6896-11f1-8f11-f64eb4e04b4b",
|
|
137
|
+
assignee: "admin",
|
|
138
|
+
assigneeName: "管理员",
|
|
139
|
+
endTime: "2026-06-16 14:20:36",
|
|
140
|
+
endDate: "2026-06-16 14:20:36",
|
|
141
|
+
duration: "21小时33分",
|
|
142
|
+
approveName: "同意",
|
|
143
|
+
approveDesc: "222222222"
|
|
144
|
+
},
|
|
145
|
+
{
|
|
146
|
+
taskDefinitionKey: "UserTask_05pjyxs",
|
|
147
|
+
name: "业务部负责人审批",
|
|
148
|
+
createTime: "2026-06-03 17:34:07",
|
|
149
|
+
taskType: "task",
|
|
150
|
+
taskId: "5e59eff6-5f2f-11f1-ab6a-fa163ecd6953",
|
|
151
|
+
assignee: "admin",
|
|
152
|
+
assigneeName: "管理员",
|
|
153
|
+
endTime: "2026-06-15 16:47:02",
|
|
154
|
+
endDate: "2026-06-15 16:47:02",
|
|
155
|
+
duration: "11天23小时",
|
|
156
|
+
approveName: "同意",
|
|
157
|
+
approveDesc: "同意"
|
|
158
|
+
},
|
|
159
|
+
{
|
|
160
|
+
taskDefinitionKey: "UserTask_1gwjv5e",
|
|
161
|
+
name: "业务经理发起",
|
|
162
|
+
createTime: "2026-06-03 17:34:07",
|
|
163
|
+
taskType: "task",
|
|
164
|
+
taskId: "5e409b8f-5f2f-11f1-ab6a-fa163ecd6953",
|
|
165
|
+
assignee: "huyanming",
|
|
166
|
+
assigneeName: "huyanming",
|
|
167
|
+
endTime: "2026-06-03 17:34:07",
|
|
168
|
+
endDate: "2026-06-03 17:34:07",
|
|
169
|
+
duration: "149毫秒",
|
|
170
|
+
approveName: "发起流程",
|
|
171
|
+
approveDesc: ""
|
|
172
|
+
}
|
|
173
|
+
]
|
|
174
|
+
};
|
|
175
|
+
Vue.watch(
|
|
176
|
+
() => props.traceNo,
|
|
177
|
+
(val) => {
|
|
178
|
+
if (val) {
|
|
179
|
+
fetchData();
|
|
180
|
+
} else {
|
|
181
|
+
hisTask.value = [];
|
|
182
|
+
task.value = [];
|
|
183
|
+
}
|
|
184
|
+
},
|
|
185
|
+
{ immediate: true }
|
|
186
|
+
);
|
|
187
|
+
function fetchData() {
|
|
188
|
+
loading.value = true;
|
|
189
|
+
setTimeout(() => {
|
|
190
|
+
hisTask.value = mockData.hisTask || [];
|
|
191
|
+
task.value = mockData.task || [];
|
|
192
|
+
loading.value = false;
|
|
193
|
+
}, 300);
|
|
194
|
+
}
|
|
195
|
+
const timelineList = Vue.computed(() => {
|
|
196
|
+
const list = [];
|
|
197
|
+
const his = (hisTask.value || []).slice().sort((a, b) => {
|
|
198
|
+
return new Date(a.createTime) - new Date(b.createTime);
|
|
199
|
+
});
|
|
200
|
+
his.forEach((item) => {
|
|
201
|
+
list.push({ ...item, __type: "history" });
|
|
202
|
+
});
|
|
203
|
+
(task.value || []).forEach((item) => {
|
|
204
|
+
list.push({ ...item, __type: "current" });
|
|
205
|
+
});
|
|
206
|
+
return list;
|
|
207
|
+
});
|
|
208
|
+
function getName(item) {
|
|
209
|
+
var _a;
|
|
210
|
+
if (item.__type === "current" && Array.isArray(item.assignee)) {
|
|
211
|
+
return ((_a = item.assignee[0]) == null ? void 0 : _a.opName) || "未知";
|
|
212
|
+
}
|
|
213
|
+
return item.assigneeName || item.name || "未知";
|
|
214
|
+
}
|
|
215
|
+
function getRole(item) {
|
|
216
|
+
return item.name || "";
|
|
217
|
+
}
|
|
218
|
+
function getInitial(item) {
|
|
219
|
+
const name = getName(item);
|
|
220
|
+
return name ? name.charAt(0) : "?";
|
|
221
|
+
}
|
|
222
|
+
function getOpinion(item) {
|
|
223
|
+
if (item.__type === "current") {
|
|
224
|
+
return "待审批";
|
|
225
|
+
}
|
|
226
|
+
return item.approveName || "";
|
|
227
|
+
}
|
|
228
|
+
function getOpinionDesc(item) {
|
|
229
|
+
if (item.__type === "current") return "";
|
|
230
|
+
return item.approveDesc || "";
|
|
231
|
+
}
|
|
232
|
+
function getIconColor(item) {
|
|
233
|
+
var _a;
|
|
234
|
+
if (item.__type === "current") {
|
|
235
|
+
return ((_a = props.iconMap["当前任务"]) == null ? void 0 : _a.color) || "#fa8c16";
|
|
236
|
+
}
|
|
237
|
+
const opinion = item.approveName || "";
|
|
238
|
+
if (props.iconMap[opinion]) {
|
|
239
|
+
return props.iconMap[opinion].color;
|
|
240
|
+
}
|
|
241
|
+
if (opinion.includes("同意") || opinion.includes("发起")) return "#52c41a";
|
|
242
|
+
if (opinion.includes("打回") || opinion.includes("终止") || opinion.includes("拒绝"))
|
|
243
|
+
return "#f5222d";
|
|
244
|
+
return "#52c41a";
|
|
245
|
+
}
|
|
246
|
+
function getIconText(item) {
|
|
247
|
+
var _a;
|
|
248
|
+
if (item.__type === "current") {
|
|
249
|
+
return ((_a = props.iconMap["当前任务"]) == null ? void 0 : _a.icon) || "○";
|
|
250
|
+
}
|
|
251
|
+
const opinion = item.approveName || "";
|
|
252
|
+
if (props.iconMap[opinion]) {
|
|
253
|
+
return props.iconMap[opinion].icon;
|
|
254
|
+
}
|
|
255
|
+
return "✓";
|
|
256
|
+
}
|
|
257
|
+
function formatTime(time) {
|
|
258
|
+
if (!time) return "";
|
|
259
|
+
const d = new Date(time);
|
|
260
|
+
if (isNaN(d.getTime())) return time;
|
|
261
|
+
const pad = (n) => String(n).padStart(2, "0");
|
|
262
|
+
return `${d.getFullYear()}-${pad(d.getMonth() + 1)}-${pad(d.getDate())} ${pad(
|
|
263
|
+
d.getHours()
|
|
264
|
+
)}:${pad(d.getMinutes())}`;
|
|
265
|
+
}
|
|
266
|
+
return (_ctx, _cache) => {
|
|
267
|
+
const _component_van_loading = index.Loading;
|
|
268
|
+
const _component_van_step = index$2.Step;
|
|
269
|
+
const _component_van_steps = index$1.Steps;
|
|
270
|
+
return Vue.openBlock(), Vue.createElementBlock("div", _hoisted_1, [
|
|
271
|
+
Vue.unref(loading) ? (Vue.openBlock(), Vue.createElementBlock("div", _hoisted_2, [
|
|
272
|
+
Vue.createVNode(_component_van_loading, {
|
|
273
|
+
size: "20",
|
|
274
|
+
color: "#999"
|
|
275
|
+
}, {
|
|
276
|
+
default: Vue.withCtx(() => _cache[0] || (_cache[0] = [
|
|
277
|
+
Vue.createTextVNode("加载中...")
|
|
278
|
+
])),
|
|
279
|
+
_: 1
|
|
280
|
+
})
|
|
281
|
+
])) : (Vue.openBlock(), Vue.createBlock(_component_van_steps, {
|
|
282
|
+
key: 1,
|
|
283
|
+
direction: "vertical",
|
|
284
|
+
active: Vue.unref(timelineList).length - 1,
|
|
285
|
+
"active-color": "#52c41a",
|
|
286
|
+
"inactive-icon": "circle",
|
|
287
|
+
class: "fec-steps"
|
|
288
|
+
}, {
|
|
289
|
+
default: Vue.withCtx(() => [
|
|
290
|
+
(Vue.openBlock(true), Vue.createElementBlock(Vue.Fragment, null, Vue.renderList(Vue.unref(timelineList), (item, index2) => {
|
|
291
|
+
return Vue.openBlock(), Vue.createBlock(_component_van_step, {
|
|
292
|
+
key: item.taskId || index2,
|
|
293
|
+
class: Vue.normalizeClass(["fec-step", `fec-step-${item.__type}`])
|
|
294
|
+
}, {
|
|
295
|
+
"finish-icon": Vue.withCtx(() => [
|
|
296
|
+
Vue.createElementVNode("div", _hoisted_3, [
|
|
297
|
+
Vue.createElementVNode("span", _hoisted_4, Vue.toDisplayString(getInitial(item)), 1)
|
|
298
|
+
])
|
|
299
|
+
]),
|
|
300
|
+
"active-icon": Vue.withCtx(() => [
|
|
301
|
+
Vue.createElementVNode("div", _hoisted_5, [
|
|
302
|
+
Vue.createElementVNode("span", _hoisted_6, Vue.toDisplayString(getInitial(item)), 1)
|
|
303
|
+
])
|
|
304
|
+
]),
|
|
305
|
+
"inactive-icon": Vue.withCtx(() => [
|
|
306
|
+
Vue.createElementVNode("div", _hoisted_7, [
|
|
307
|
+
Vue.createElementVNode("span", _hoisted_8, Vue.toDisplayString(getInitial(item)), 1)
|
|
308
|
+
])
|
|
309
|
+
]),
|
|
310
|
+
default: Vue.withCtx(() => [
|
|
311
|
+
Vue.createElementVNode("div", _hoisted_9, [
|
|
312
|
+
Vue.createElementVNode("div", _hoisted_10, [
|
|
313
|
+
Vue.createElementVNode("span", _hoisted_11, Vue.toDisplayString(getName(item)), 1),
|
|
314
|
+
getRole(item) ? (Vue.openBlock(), Vue.createElementBlock("span", _hoisted_12, Vue.toDisplayString(getRole(item)), 1)) : Vue.createCommentVNode("", true)
|
|
315
|
+
]),
|
|
316
|
+
Vue.createElementVNode("div", _hoisted_13, [
|
|
317
|
+
Vue.createElementVNode("div", _hoisted_14, Vue.toDisplayString(formatTime(item.endTime || item.createTime)), 1),
|
|
318
|
+
getOpinion(item) ? (Vue.openBlock(), Vue.createElementBlock("div", _hoisted_15, [
|
|
319
|
+
Vue.createElementVNode("span", {
|
|
320
|
+
class: "fec-step-icon",
|
|
321
|
+
style: Vue.normalizeStyle({ background: getIconColor(item) })
|
|
322
|
+
}, Vue.toDisplayString(getIconText(item)), 5),
|
|
323
|
+
Vue.createElementVNode("span", _hoisted_16, Vue.toDisplayString(getOpinion(item)), 1)
|
|
324
|
+
])) : Vue.createCommentVNode("", true)
|
|
325
|
+
])
|
|
326
|
+
]),
|
|
327
|
+
getOpinionDesc(item) ? (Vue.openBlock(), Vue.createElementBlock("div", _hoisted_17, Vue.toDisplayString(getOpinionDesc(item)), 1)) : Vue.createCommentVNode("", true)
|
|
328
|
+
]),
|
|
329
|
+
_: 2
|
|
330
|
+
}, 1032, ["class"]);
|
|
331
|
+
}), 128))
|
|
332
|
+
]),
|
|
333
|
+
_: 1
|
|
334
|
+
}, 8, ["active"]))
|
|
335
|
+
]);
|
|
336
|
+
};
|
|
337
|
+
}
|
|
338
|
+
};
|
|
339
|
+
const _TimeLineFilter = /* @__PURE__ */ _pluginVue_exportHelper.default(_sfc_main, [["__scopeId", "data-v-ca283130"]]);
|
|
340
|
+
exports.default = _TimeLineFilter;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
|
3
|
+
const AppTimeLine = require("./AppTimeLine.vue.js");
|
|
4
|
+
const install = require("../../../utils/install.js");
|
|
5
|
+
const MobileTimeLineFilter = install.default.withInstall(
|
|
6
|
+
"MobileTimeLineFilter",
|
|
7
|
+
AppTimeLine.default
|
|
8
|
+
);
|
|
9
|
+
exports.MobileTimeLineFilter = MobileTimeLineFilter;
|
|
10
|
+
exports.default = MobileTimeLineFilter;
|