d4a6b78f
wuxw
OA 中考勤功能开发完成
|
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
|
<template>
<div class="new-oa-workflow-doing-container">
<el-card class="box-card">
<div slot="header" class="flex justify-between ">
<span>{{ $t('newOaWorkflowDoing.myPending') }}</span>
<div class="header-tools">
<el-button type="primary" size="small" @click="_queryUndoOrderMethod">
<i class="el-icon-refresh"></i>
{{ $t('newOaWorkflowDoing.refresh') }}
</el-button>
</div>
</div>
<div class="card-content">
<el-row :gutter="20">
<el-col :span="4" v-for="(item, index) in pendingItems" :key="'pending-' + index">
<div class="item-wrapper text-center">
<el-link type="primary" :underline="true" @click="_toGo(item.url)">
<span>{{ $t(`newOaWorkflowDoing.${item.key}`) }}</span>
<span :class="{ 'red-text': item.count > 0 }">({{ item.count }})</span>
</el-link>
</div>
</el-col>
<el-col :span="4" v-for="(item, index) in newOaWorkflowDoingInfo.newOaWorkflows" :key="'workflow-' + index">
<div class="item-wrapper text-center">
<el-link type="primary" :underline="true" @click="_toGoA(item)">
{{ item.flowName }}
<span>{{ $t('newOaWorkflowDoing.pending') }}</span>
<span :class="{ 'red-text': item.undoCount > 0 }">({{ item.undoCount }})</span>
</el-link>
</div>
</el-col>
</el-row>
</div>
</el-card>
<el-card class="box-card margin-top">
<div slot="header" class="flex justify-between">
<span>{{ $t('newOaWorkflowDoing.myCompleted') }}</span>
</div>
<div class="card-content">
<el-row :gutter="20">
<el-col :span="4" v-for="(item, index) in completedItems" :key="'completed-' + index">
<div class="item-wrapper text-center">
<el-link type="primary" :underline="true" @click="_toGo(item.url)">
<span>{{ $t(`newOaWorkflowDoing.${item.key}`) }}</span>
</el-link>
</div>
</el-col>
<el-col :span="4" v-for="(item, index) in newOaWorkflowDoingInfo.newOaWorkflows"
:key="'workflow-completed-' + index">
<div class="item-wrapper text-center">
<el-link type="primary" :underline="true" @click="_toGoB(item)">
{{ item.flowName }}
<span>{{ $t('newOaWorkflowDoing.completed') }}</span>
</el-link>
</div>
</el-col>
</el-row>
</div>
</el-card>
</div>
</template>
<script>
import { getUndoInfo, listNewOaWorkflows } from '@/api/oa/newOaWorkflowDoingApi'
import { getCommunityId } from '@/api/community/communityApi'
export default {
name: 'NewOaWorkflowDoingList',
data() {
return {
newOaWorkflowDoingInfo: {
newOaWorkflows: [],
repair: 0,
complaint: 0,
purchase: 0,
collection: 0,
contractApply: 0,
contractChange: 0,
allocation: 0,
itemReleaseCount: 0,
visitUndoCount: 0,
ownerSettledApplyCount: 0
},
pendingItems: [
|
caba9d96
wuxw
oa 中除了 工作办理没有测试其他...
|
86
87
88
89
90
91
92
93
94
|
{ key: 'repairPending', url: '/pages/property/repairDispatchManage', count: 0 },
{ key: 'complaintPending', url: '/pages/complaint/uodoComplaints', count: 0 },
{ key: 'purchasePending', url: '/pages/admin/myAuditOrders', count: 0 },
{ key: 'collectionPending', url: '/pages/admin/myItemOutAuditOrders', count: 0 },
{ key: 'contractApplyPending', url: '/pages/admin/contractApplyAuditOrders', count: 0 },
{ key: 'contractChangePending', url: '/pages/admin/contractChangeAuditOrders', count: 0 },
{ key: 'allocationPending', url: '/pages/admin/allocationStorehouseAuditOrders', count: 0 },
{ key: 'itemReleasePending', url: '/pages/property/itemReleaseUndo', count: 0 },
{ key: 'visitPending', url: '/pages/property/visitUndo', count: 0 }
|
d4a6b78f
wuxw
OA 中考勤功能开发完成
|
95
96
|
],
completedItems: [
|
caba9d96
wuxw
oa 中除了 工作办理没有测试其他...
|
97
98
99
100
101
102
103
104
105
|
{ key: 'repairCompleted', url: '/pages/property/myRepairDispatchManage' },
{ key: 'complaintCompleted', url: '/pages/complaint/doHistoryComplaints' },
{ key: 'purchaseCompleted', url: '/pages/admin/myAuditHistoryOrders' },
{ key: 'collectionCompleted', url: '/pages/admin/myItemOutAuditHistoryOrders' },
{ key: 'contractApplyCompleted', url: '/pages/admin/contractApplyAuditHistoryOrders' },
{ key: 'contractChangeCompleted', url: '/pages/admin/contractChangeAuditHistoryOrders' },
{ key: 'allocationCompleted', url: '/pages/admin/allocationStorehouseHistoryAuditOrders' },
{ key: 'itemReleaseCompleted', url: '/pages/property/itemReleaseFinish' },
{ key: 'visitCompleted', url: '/pages/property/visitFinish' }
|
d4a6b78f
wuxw
OA 中考勤功能开发完成
|
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
|
],
communityId: ''
}
},
created() {
this.communityId = getCommunityId()
this._initMethod()
},
methods: {
_initMethod() {
this._listNewOaWorkflows()
this._loadUndoInfo()
},
_toGo(url) {
this.$router.push(url)
},
_toGoA(item) {
|
9c311762
wuxw
工作办理测试中
|
123
|
this.$router.push(`/views/oa/newOaWorkflow?flowId=${item.flowId}&switchValue=newOaWorkflowUndo`)
|
d4a6b78f
wuxw
OA 中考勤功能开发完成
|
124
125
|
},
_toGoB(item) {
|
9c311762
wuxw
工作办理测试中
|
126
|
this.$router.push(`/views/oa/newOaWorkflow?flowId=${item.flowId}&switchValue=newOaWorkflowFinish`)
|
d4a6b78f
wuxw
OA 中考勤功能开发完成
|
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
|
},
async _listNewOaWorkflows() {
try {
const params = {
state: 'C',
page: 1,
row: 100,
flowType: '1001'
}
const { data } = await listNewOaWorkflows(params)
this.newOaWorkflowDoingInfo.newOaWorkflows = data
} catch (error) {
console.error('Failed to fetch workflows:', error)
}
},
async _loadUndoInfo() {
try {
const params = {
communityId: this.communityId,
page: 1,
row: 10
}
|
19bafb73
wuxw
v1.9 优化采购相关bug
|
149
|
const {data} = await getUndoInfo(params)
|
d4a6b78f
wuxw
OA 中考勤功能开发完成
|
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
|
Object.assign(this.newOaWorkflowDoingInfo, data)
// Update counts in pendingItems
this.pendingItems[0].count = this.newOaWorkflowDoingInfo.repair
this.pendingItems[1].count = this.newOaWorkflowDoingInfo.complaint
this.pendingItems[2].count = this.newOaWorkflowDoingInfo.purchase
this.pendingItems[3].count = this.newOaWorkflowDoingInfo.collection
this.pendingItems[4].count = this.newOaWorkflowDoingInfo.contractApply
this.pendingItems[5].count = this.newOaWorkflowDoingInfo.contractChange
this.pendingItems[6].count = this.newOaWorkflowDoingInfo.allocation
this.pendingItems[7].count = this.newOaWorkflowDoingInfo.itemReleaseCount
this.pendingItems[8].count = this.newOaWorkflowDoingInfo.visitUndoCount
} catch (error) {
console.error('Failed to fetch undo info:', error)
}
},
_queryUndoOrderMethod() {
this._listNewOaWorkflows()
this._loadUndoInfo()
}
}
}
</script>
<style lang="scss" scoped>
.new-oa-workflow-doing-container {
padding: 20px;
.box-card {
margin-bottom: 20px;
.header-tools {
float: right;
}
.card-content {
padding: 10px;
}
}
.item-wrapper {
padding: 10px 0;
.red-text {
color: #F56C6C;
}
}
.margin-top {
margin-top: 20px;
}
.text-center {
text-align: center;
}
}
</style>
|