vue2-client 1.14.41 → 1.14.43
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/.env +1 -1
- package/package.json +1 -1
- package/src/base-client/components/common/XReport/XReport.vue +1 -1
- package/src/base-client/components/common/XTab/XTab.vue +22 -7
- package/src/base-client/components/common/XTable/XTable.vue +3 -1
- package/src/base-client/components/common/XUploadFilesView/index.vue +485 -0
- package/src/base-client/components/his/XShiftSchedule/XShiftSchedule.vue +9 -9
- package/src/base-client/components/his/XTextCard/XTextCard.vue +207 -207
- package/src/base-client/components/his/XTreeRows/TreeNode.vue +100 -100
- package/src/base-client/components/his/XTreeRows/XTreeRows.vue +197 -197
- package/src/base-client/components/his/threeTestOrders/editor.vue +111 -111
- package/src/base-client/components/his/threeTestOrders/textBox.vue +50 -102
- package/src/base-client/components/his/threeTestOrders/threeTestOrders.vue +376 -386
- package/src/pages/WorkflowDetail/WorkFlowDemo.vue +1 -1
- package/src/pages/WorkflowDetail/WorkflowDetail.vue +151 -50
- package/src/pages/WorkflowDetail/WorkflowPageDetail/WorkFlowBaseInformation.vue +244 -131
- package/src/pages/WorkflowDetail/WorkflowPageDetail/WorkFlowHandle.vue +188 -139
- package/src/pages/WorkflowDetail/WorkflowPageDetail/WorkFlowTimeline.vue +3 -2
- package/Users/objecrt/af-vue2-client/src/base-client/components/his/XShiftSchedule/XShiftSchedule.vue +0 -36
- package/src/base-client/components/TreeList/TreeList.vue +0 -91
- package/src/base-client/components/TreeList/TreeNode.vue +0 -81
- package/src/base-client/components/common/XCardSet/XTiltle.vue +0 -191
|
@@ -2,64 +2,97 @@
|
|
|
2
2
|
<!-- 抽屉 -->
|
|
3
3
|
<a-drawer
|
|
4
4
|
:visible="visible"
|
|
5
|
-
width="
|
|
5
|
+
width="95vw"
|
|
6
6
|
:placement="direction"
|
|
7
7
|
title="流程详情"
|
|
8
8
|
@close="onClose"
|
|
9
|
+
class="modern-workflow-drawer"
|
|
10
|
+
:bodyStyle="{ padding: '0', background: '#f5f7fa' }"
|
|
11
|
+
:headerStyle="{ borderBottom: '1px solid #eaedf2', padding: '16px 24px' }"
|
|
9
12
|
>
|
|
10
|
-
<div>
|
|
11
|
-
<!--
|
|
12
|
-
<
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
13
|
+
<div class="workflow-container">
|
|
14
|
+
<!-- 基础信息卡片 -->
|
|
15
|
+
<div class="info-section">
|
|
16
|
+
<workflow-base-information
|
|
17
|
+
v-if="details"
|
|
18
|
+
ref="baseInformation"
|
|
19
|
+
:workflow-id="workflowId"
|
|
20
|
+
:details="details"
|
|
21
|
+
:visible="visible"
|
|
22
|
+
class="base-info-card"
|
|
23
|
+
/>
|
|
24
|
+
</div>
|
|
25
|
+
|
|
26
|
+
<!-- 内容区域 -->
|
|
27
|
+
<div class="content-section" :style="{ minHeight: screenHeight * 0.7 + 'px' }">
|
|
28
|
+
<a-card class="content-card" :bordered="false">
|
|
29
|
+
<a-tabs
|
|
30
|
+
:activeKey="activeKey"
|
|
31
|
+
@change="changeTab"
|
|
32
|
+
class="modern-tabs"
|
|
33
|
+
:tabBarStyle="{ marginBottom: '5px', borderBottom: '1px solid #eaedf2' }"
|
|
34
|
+
>
|
|
35
|
+
<!-- 查看/编辑进度标签页 -->
|
|
36
|
+
<a-tab-pane key="1" tab="开始工作">
|
|
37
|
+
<template v-if="details">
|
|
38
|
+
<WorkFlowHandle
|
|
39
|
+
v-if="activeKey === '1' && details.f_state !== undefined && steps !== undefined"
|
|
40
|
+
ref="workflowHandle"
|
|
41
|
+
:workflow-id="workflowId"
|
|
42
|
+
:workflowState="details.f_state === 1"
|
|
43
|
+
:complete-time="details.f_complete_time"
|
|
44
|
+
:stepsForChild="steps"
|
|
45
|
+
:visible="visible"
|
|
46
|
+
:taskName="details.f_task_name"
|
|
47
|
+
:details="details"
|
|
48
|
+
@refresh="stepChanged"
|
|
49
|
+
@success="success"
|
|
50
|
+
@nextClick="nextClick"
|
|
51
|
+
class="handle-content"
|
|
52
|
+
/>
|
|
53
|
+
</template>
|
|
54
|
+
</a-tab-pane>
|
|
55
|
+
|
|
56
|
+
<!-- 任务流转记录标签页 -->
|
|
57
|
+
<a-tab-pane key="2" tab="流转记录">
|
|
58
|
+
<workflow-log
|
|
59
|
+
v-if="activeKey === '2'"
|
|
30
60
|
:workflow-id="workflowId"
|
|
31
|
-
|
|
32
|
-
:complete-time="details.f_complete_time"
|
|
33
|
-
:stepsForChild="steps"
|
|
34
|
-
:visible="visible"
|
|
35
|
-
:taskName="details.f_task_name"
|
|
36
|
-
:details="details"
|
|
37
|
-
@refresh="stepChanged"
|
|
38
|
-
@success="success"
|
|
39
|
-
@nextClick="nextClick"
|
|
61
|
+
class="log-content"
|
|
40
62
|
/>
|
|
41
63
|
</a-tab-pane>
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
</a-tab-pane>
|
|
64
|
+
|
|
65
|
+
<!-- 任务留言标签页 -->
|
|
45
66
|
<a-tab-pane key="4">
|
|
46
|
-
<span slot="tab">
|
|
67
|
+
<span slot="tab" class="message-tab">
|
|
47
68
|
<span>任务留言</span>
|
|
48
69
|
<a-badge
|
|
49
70
|
:count="messageList.length"
|
|
50
|
-
:offset="[
|
|
51
|
-
:
|
|
71
|
+
:offset="[8, -4]"
|
|
72
|
+
:numberStyle="{ backgroundColor: '#5B6B8F', fontSize: '12px', padding: '0 6px', height: '18px', lineHeight: '18px', borderRadius: '9px' }"
|
|
73
|
+
/>
|
|
52
74
|
</span>
|
|
53
|
-
<
|
|
54
|
-
<
|
|
75
|
+
<div class="message-content">
|
|
76
|
+
<template v-if="details">
|
|
55
77
|
<leave-message
|
|
56
|
-
:workflowId="
|
|
78
|
+
:workflowId="workflowId"
|
|
57
79
|
:projectName="details.f_task_name"
|
|
58
80
|
:data="messageList"
|
|
59
81
|
:loading="messageLoading"
|
|
60
|
-
@success="success"
|
|
61
|
-
|
|
62
|
-
|
|
82
|
+
@success="success"
|
|
83
|
+
class="leave-message-component"
|
|
84
|
+
/>
|
|
85
|
+
</template>
|
|
86
|
+
</div>
|
|
87
|
+
</a-tab-pane>
|
|
88
|
+
|
|
89
|
+
<!-- 查看附件标签页 -->
|
|
90
|
+
<a-tab-pane key="5" tab="查看附件">
|
|
91
|
+
<template v-if="details">
|
|
92
|
+
<XUploadFilesView
|
|
93
|
+
:currUserInfo="{ f_userinfo_id: 90613 }"
|
|
94
|
+
/>
|
|
95
|
+
</template>
|
|
63
96
|
</a-tab-pane>
|
|
64
97
|
</a-tabs>
|
|
65
98
|
</a-card>
|
|
@@ -77,6 +110,7 @@ import { postByServiceName } from '@vue2-client/services/api/restTools'
|
|
|
77
110
|
import { workFlowViewApi } from '@vue2-client/services/api/workFlow'
|
|
78
111
|
import WorkflowLog from './WorkflowPageDetail/WorkflowLog.vue'
|
|
79
112
|
import LeaveMessage from './WorkflowPageDetail/LeaveMessage'
|
|
113
|
+
import XUploadFilesView from '@vue2-client/base-client/components/common/XUploadFilesView/index.vue'
|
|
80
114
|
|
|
81
115
|
export default {
|
|
82
116
|
name: 'WorkflowDetail',
|
|
@@ -85,7 +119,8 @@ export default {
|
|
|
85
119
|
WorkFlowHandle,
|
|
86
120
|
XFormTable,
|
|
87
121
|
WorkflowLog,
|
|
88
|
-
LeaveMessage
|
|
122
|
+
LeaveMessage,
|
|
123
|
+
XUploadFilesView
|
|
89
124
|
},
|
|
90
125
|
data () {
|
|
91
126
|
return {
|
|
@@ -98,7 +133,7 @@ export default {
|
|
|
98
133
|
// 保存流程和留言信息
|
|
99
134
|
steps: undefined,
|
|
100
135
|
// 基础信息
|
|
101
|
-
details:
|
|
136
|
+
details: undefined,
|
|
102
137
|
// 是否已完成
|
|
103
138
|
allStepDown: false,
|
|
104
139
|
// 给XFormTable增加额外查询条件
|
|
@@ -113,7 +148,7 @@ export default {
|
|
|
113
148
|
messageList: [],
|
|
114
149
|
messageLoading: true,
|
|
115
150
|
workflowId: '',
|
|
116
|
-
direction: '',
|
|
151
|
+
direction: 'right',
|
|
117
152
|
visible: false
|
|
118
153
|
}
|
|
119
154
|
},
|
|
@@ -150,7 +185,7 @@ export default {
|
|
|
150
185
|
this.visible = false
|
|
151
186
|
this.activeKey = '1'
|
|
152
187
|
this.allStepDown = false
|
|
153
|
-
this.details =
|
|
188
|
+
this.details = undefined
|
|
154
189
|
this.fixedAddForm = {}
|
|
155
190
|
this.fixedQueryForm = {}
|
|
156
191
|
this.steps = undefined
|
|
@@ -180,7 +215,7 @@ export default {
|
|
|
180
215
|
this.fixedAddForm.a_f_workflow_id = this.workflowId
|
|
181
216
|
},
|
|
182
217
|
// 初始化两张固定表
|
|
183
|
-
async init ({ workflowId, direction, visible = true }) {
|
|
218
|
+
async init ({ workflowId, direction = 'right', visible = true }) {
|
|
184
219
|
this.workflowId = workflowId
|
|
185
220
|
this.direction = direction
|
|
186
221
|
this.visible = visible
|
|
@@ -204,6 +239,72 @@ export default {
|
|
|
204
239
|
</script>
|
|
205
240
|
|
|
206
241
|
<style lang="less" scoped>
|
|
242
|
+
.workflow-container {
|
|
243
|
+
height: 100%;
|
|
244
|
+
display: flex;
|
|
245
|
+
flex-direction: column;
|
|
246
|
+
|
|
247
|
+
.info-section {
|
|
248
|
+
padding: 16px 24px;
|
|
249
|
+
background-color: #fff;
|
|
250
|
+
border-bottom: 1px solid #eaedf2;
|
|
251
|
+
}
|
|
252
|
+
|
|
253
|
+
.content-section {
|
|
254
|
+
flex: 1;
|
|
255
|
+
padding: 16px 24px;
|
|
256
|
+
|
|
257
|
+
.content-card {
|
|
258
|
+
border-radius: 8px;
|
|
259
|
+
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
|
|
260
|
+
height: 100%;
|
|
261
|
+
|
|
262
|
+
/deep/ .ant-card-body {
|
|
263
|
+
padding: 0px 24px 24px;
|
|
264
|
+
}
|
|
265
|
+
}
|
|
266
|
+
}
|
|
267
|
+
}
|
|
268
|
+
|
|
269
|
+
.modern-tabs {
|
|
270
|
+
/deep/ .ant-tabs-nav {
|
|
271
|
+
margin-bottom: 0;
|
|
272
|
+
}
|
|
273
|
+
|
|
274
|
+
/deep/ .ant-tabs-tab {
|
|
275
|
+
padding: 12px 0;
|
|
276
|
+
margin-right: 48px;
|
|
277
|
+
font-size: 15px;
|
|
278
|
+
}
|
|
279
|
+
|
|
280
|
+
/deep/ .ant-tabs-tab-active {
|
|
281
|
+
font-weight: 500;
|
|
282
|
+
}
|
|
283
|
+
|
|
284
|
+
/deep/ .ant-tabs-ink-bar {
|
|
285
|
+
height: 3px;
|
|
286
|
+
border-radius: 3px 3px 0 0;
|
|
287
|
+
}
|
|
288
|
+
}
|
|
289
|
+
|
|
290
|
+
.message-tab {
|
|
291
|
+
display: flex;
|
|
292
|
+
align-items: center;
|
|
293
|
+
gap: 6px;
|
|
294
|
+
}
|
|
295
|
+
|
|
296
|
+
.message-content {
|
|
297
|
+
max-width: 900px;
|
|
298
|
+
|
|
299
|
+
.leave-message-component {
|
|
300
|
+
width: 100%;
|
|
301
|
+
}
|
|
302
|
+
}
|
|
303
|
+
|
|
304
|
+
.log-content {
|
|
305
|
+
margin-top: 16px;
|
|
306
|
+
}
|
|
307
|
+
|
|
207
308
|
/deep/ .step-label {
|
|
208
309
|
&:not(:first-child) {
|
|
209
310
|
margin-left: 16px;
|
|
@@ -220,15 +321,15 @@ export default {
|
|
|
220
321
|
margin-right: 8px;
|
|
221
322
|
|
|
222
323
|
&.blue {
|
|
223
|
-
border: 3px solid
|
|
324
|
+
border: 3px solid #5B6B8F;
|
|
224
325
|
}
|
|
225
326
|
|
|
226
327
|
&.green {
|
|
227
|
-
border: 3px solid
|
|
328
|
+
border: 3px solid #4CAF50;
|
|
228
329
|
}
|
|
229
330
|
|
|
230
331
|
&.gray {
|
|
231
|
-
border: 3px solid
|
|
332
|
+
border: 3px solid #cfd8e3;
|
|
232
333
|
}
|
|
233
334
|
}
|
|
234
335
|
}
|