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,7 +116,7 @@ export default { | ||
| 116 | }, | 116 | }, |
| 117 | _openDetail(item) { | 117 | _openDetail(item) { |
| 118 | this.$router.push({ | 118 | this.$router.push({ |
| 119 | - path: '/views/property/itemReleaseDetail', | 119 | + path: '/views/work/itemReleaseDetail', |
| 120 | query: { | 120 | query: { |
| 121 | irId: item.irId, | 121 | irId: item.irId, |
| 122 | flowId: item.flowId | 122 | flowId: item.flowId |
| @@ -125,7 +125,7 @@ export default { | @@ -125,7 +125,7 @@ export default { | ||
| 125 | }, | 125 | }, |
| 126 | _openAuditUndoDetail(undo) { | 126 | _openAuditUndoDetail(undo) { |
| 127 | this.$router.push({ | 127 | this.$router.push({ |
| 128 | - path: '/views/property/itemReleaseDetail', | 128 | + path: '/views/work/itemReleaseDetail', |
| 129 | query: { | 129 | query: { |
| 130 | irId: undo.irId, | 130 | irId: undo.irId, |
| 131 | flowId: undo.flowId, | 131 | flowId: undo.flowId, |
src/views/work/editItemReleaseViewList.vue
| @@ -86,7 +86,7 @@ | @@ -86,7 +86,7 @@ | ||
| 86 | <el-row :gutter="20" class="margin-top"> | 86 | <el-row :gutter="20" class="margin-top"> |
| 87 | <el-col :span="24"> | 87 | <el-col :span="24"> |
| 88 | <el-card shadow="never"> | 88 | <el-card shadow="never"> |
| 89 | - <div slot="header" class="clearfix"> | 89 | + <div slot="header" class="flex justify-between"> |
| 90 | <span>{{ $t('editItemReleaseView.releaseItems') }}</span> | 90 | <span>{{ $t('editItemReleaseView.releaseItems') }}</span> |
| 91 | <el-button type="primary" size="small" style="float: right;" @click="addResName"> | 91 | <el-button type="primary" size="small" style="float: right;" @click="addResName"> |
| 92 | <i class="el-icon-plus"></i> | 92 | <i class="el-icon-plus"></i> |
src/views/work/itemReleaseDetailList.vue
| @@ -184,7 +184,10 @@ import SelectStaff from '@/components/staff/SelectStaff' | @@ -184,7 +184,10 @@ import SelectStaff from '@/components/staff/SelectStaff' | ||
| 184 | import { | 184 | import { |
| 185 | listItemReleaseRes, | 185 | listItemReleaseRes, |
| 186 | listItemRelease, | 186 | listItemRelease, |
| 187 | - auditUndoItemRelease | 187 | + auditUndoItemRelease, |
| 188 | + queryOaWorkflowUser, | ||
| 189 | + listRunWorkflowImage, | ||
| 190 | + queryNextDealUser | ||
| 188 | } from '@/api/work/itemReleaseDetailApi' | 191 | } from '@/api/work/itemReleaseDetailApi' |
| 189 | 192 | ||
| 190 | export default { | 193 | export default { |
| @@ -266,9 +269,17 @@ export default { | @@ -266,9 +269,17 @@ export default { | ||
| 266 | console.error('获取放行详情失败:', error) | 269 | console.error('获取放行详情失败:', error) |
| 267 | } | 270 | } |
| 268 | }, | 271 | }, |
| 269 | - _loadComments() { | 272 | + async _loadComments() { |
| 270 | // TODO: 需要实现工单评论接口 | 273 | // TODO: 需要实现工单评论接口 |
| 271 | console.log('加载评论') | 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 | _goBack() { | 284 | _goBack() { |
| 274 | this.$router.go(-1) | 285 | this.$router.go(-1) |
| @@ -306,13 +317,22 @@ export default { | @@ -306,13 +317,22 @@ export default { | ||
| 306 | this.$message.error(error.message || this.$t('itemReleaseDetail.submitFailed')) | 317 | this.$message.error(error.message || this.$t('itemReleaseDetail.submitFailed')) |
| 307 | } | 318 | } |
| 308 | }, | 319 | }, |
| 309 | - _loadNextAuditPerson() { | 320 | + async _loadNextAuditPerson() { |
| 310 | // TODO: 需要实现获取下一处理人接口 | 321 | // TODO: 需要实现获取下一处理人接口 |
| 311 | console.log('加载下一处理人') | 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 | handleStaffSelect(staff) { | 337 | handleStaffSelect(staff) { |
| 318 | this.itemReleaseDetailInfo.audit.staffId = staff.staffId | 338 | this.itemReleaseDetailInfo.audit.staffId = staff.staffId |
src/views/work/itemReleaseManageList.vue
| @@ -94,7 +94,7 @@ | @@ -94,7 +94,7 @@ | ||
| 94 | <el-button size="mini" @click="_openDetail(scope.row)"> | 94 | <el-button size="mini" @click="_openDetail(scope.row)"> |
| 95 | {{ $t('common.detail') }} | 95 | {{ $t('common.detail') }} |
| 96 | </el-button> | 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 | {{ $t('common.edit') }} | 98 | {{ $t('common.edit') }} |
| 99 | </el-button> | 99 | </el-button> |
| 100 | <el-button size="mini" type="danger" @click="_openDeleteItemReleaseModel(scope.row)"> | 100 | <el-button size="mini" type="danger" @click="_openDeleteItemReleaseModel(scope.row)"> |