Commit 1e992649e53a632b5403ca08488bd6f200cebe3d
1 parent
69b4c460
v1.9 优化物品放行bug
Showing
4 changed files
with
30 additions
and
10 deletions
src/views/resource/itemReleaseUndoList.vue
| ... | ... | @@ -116,7 +116,7 @@ export default { |
| 116 | 116 | }, |
| 117 | 117 | _openDetail(item) { |
| 118 | 118 | this.$router.push({ |
| 119 | - path: '/views/property/itemReleaseDetail', | |
| 119 | + path: '/views/work/itemReleaseDetail', | |
| 120 | 120 | query: { |
| 121 | 121 | irId: item.irId, |
| 122 | 122 | flowId: item.flowId |
| ... | ... | @@ -125,7 +125,7 @@ export default { |
| 125 | 125 | }, |
| 126 | 126 | _openAuditUndoDetail(undo) { |
| 127 | 127 | this.$router.push({ |
| 128 | - path: '/views/property/itemReleaseDetail', | |
| 128 | + path: '/views/work/itemReleaseDetail', | |
| 129 | 129 | query: { |
| 130 | 130 | irId: undo.irId, |
| 131 | 131 | flowId: undo.flowId, | ... | ... |
src/views/work/editItemReleaseViewList.vue
| ... | ... | @@ -86,7 +86,7 @@ |
| 86 | 86 | <el-row :gutter="20" class="margin-top"> |
| 87 | 87 | <el-col :span="24"> |
| 88 | 88 | <el-card shadow="never"> |
| 89 | - <div slot="header" class="clearfix"> | |
| 89 | + <div slot="header" class="flex justify-between"> | |
| 90 | 90 | <span>{{ $t('editItemReleaseView.releaseItems') }}</span> |
| 91 | 91 | <el-button type="primary" size="small" style="float: right;" @click="addResName"> |
| 92 | 92 | <i class="el-icon-plus"></i> | ... | ... |
src/views/work/itemReleaseDetailList.vue
| ... | ... | @@ -184,7 +184,10 @@ import SelectStaff from '@/components/staff/SelectStaff' |
| 184 | 184 | import { |
| 185 | 185 | listItemReleaseRes, |
| 186 | 186 | listItemRelease, |
| 187 | - auditUndoItemRelease | |
| 187 | + auditUndoItemRelease, | |
| 188 | + queryOaWorkflowUser, | |
| 189 | + listRunWorkflowImage, | |
| 190 | + queryNextDealUser | |
| 188 | 191 | } from '@/api/work/itemReleaseDetailApi' |
| 189 | 192 | |
| 190 | 193 | export default { |
| ... | ... | @@ -266,9 +269,17 @@ export default { |
| 266 | 269 | console.error('获取放行详情失败:', error) |
| 267 | 270 | } |
| 268 | 271 | }, |
| 269 | - _loadComments() { | |
| 272 | + async _loadComments() { | |
| 270 | 273 | // TODO: 需要实现工单评论接口 |
| 271 | 274 | console.log('加载评论') |
| 275 | + const { data } = await queryOaWorkflowUser({ | |
| 276 | + page: 1, | |
| 277 | + row: 1, | |
| 278 | + flowId: this.itemReleaseDetailInfo.flowId, | |
| 279 | + id: this.itemReleaseDetailInfo.irId, | |
| 280 | + communityId: this.communityId | |
| 281 | + }) | |
| 282 | + this.itemReleaseDetailInfo.comments = data | |
| 272 | 283 | }, |
| 273 | 284 | _goBack() { |
| 274 | 285 | this.$router.go(-1) |
| ... | ... | @@ -306,13 +317,22 @@ export default { |
| 306 | 317 | this.$message.error(error.message || this.$t('itemReleaseDetail.submitFailed')) |
| 307 | 318 | } |
| 308 | 319 | }, |
| 309 | - _loadNextAuditPerson() { | |
| 320 | + async _loadNextAuditPerson() { | |
| 310 | 321 | // TODO: 需要实现获取下一处理人接口 |
| 311 | 322 | console.log('加载下一处理人') |
| 323 | + const { data } = await queryNextDealUser({ | |
| 324 | + startUserId: this.itemReleaseDetailInfo.pools.createUserId, | |
| 325 | + taskId: this.itemReleaseDetailInfo.audit.taskId, | |
| 326 | + communityId: this.communityId | |
| 327 | + }) | |
| 328 | + this.itemReleaseDetailInfo.nextAudit = data[0] | |
| 312 | 329 | }, |
| 313 | - _openNewOaWorkflowDetailImg() { | |
| 314 | - // TODO: 需要实现获取流程图接口 | |
| 315 | - console.log('加载流程图') | |
| 330 | + async _openNewOaWorkflowDetailImg() { | |
| 331 | + const { data } = await listRunWorkflowImage({ | |
| 332 | + businessKey: this.itemReleaseDetailInfo.irId, | |
| 333 | + communityId: this.communityId | |
| 334 | + }) | |
| 335 | + this.itemReleaseDetailInfo.imgData = 'data:image/png;base64,' + data | |
| 316 | 336 | }, |
| 317 | 337 | handleStaffSelect(staff) { |
| 318 | 338 | this.itemReleaseDetailInfo.audit.staffId = staff.staffId | ... | ... |
src/views/work/itemReleaseManageList.vue
| ... | ... | @@ -94,7 +94,7 @@ |
| 94 | 94 | <el-button size="mini" @click="_openDetail(scope.row)"> |
| 95 | 95 | {{ $t('common.detail') }} |
| 96 | 96 | </el-button> |
| 97 | - <el-button size="mini" type="primary" @click="_openEditItemReleaseModel(scope.row)"> | |
| 97 | + <el-button size="mini" type="primary" v-if="scope.row.state != 'C'" @click="_openEditItemReleaseModel(scope.row)"> | |
| 98 | 98 | {{ $t('common.edit') }} |
| 99 | 99 | </el-button> |
| 100 | 100 | <el-button size="mini" type="danger" @click="_openDeleteItemReleaseModel(scope.row)"> | ... | ... |