mirror of
https://gitee.com/java110/MicroCommunityWeb.git
synced 2026-06-12 10:00:56 +08:00
v1.9 优化物品放行bug
This commit is contained in:
parent
69b4c460c1
commit
1e992649e5
@ -116,7 +116,7 @@ export default {
|
|||||||
},
|
},
|
||||||
_openDetail(item) {
|
_openDetail(item) {
|
||||||
this.$router.push({
|
this.$router.push({
|
||||||
path: '/views/property/itemReleaseDetail',
|
path: '/views/work/itemReleaseDetail',
|
||||||
query: {
|
query: {
|
||||||
irId: item.irId,
|
irId: item.irId,
|
||||||
flowId: item.flowId
|
flowId: item.flowId
|
||||||
@ -125,7 +125,7 @@ export default {
|
|||||||
},
|
},
|
||||||
_openAuditUndoDetail(undo) {
|
_openAuditUndoDetail(undo) {
|
||||||
this.$router.push({
|
this.$router.push({
|
||||||
path: '/views/property/itemReleaseDetail',
|
path: '/views/work/itemReleaseDetail',
|
||||||
query: {
|
query: {
|
||||||
irId: undo.irId,
|
irId: undo.irId,
|
||||||
flowId: undo.flowId,
|
flowId: undo.flowId,
|
||||||
|
|||||||
@ -86,7 +86,7 @@
|
|||||||
<el-row :gutter="20" class="margin-top">
|
<el-row :gutter="20" class="margin-top">
|
||||||
<el-col :span="24">
|
<el-col :span="24">
|
||||||
<el-card shadow="never">
|
<el-card shadow="never">
|
||||||
<div slot="header" class="clearfix">
|
<div slot="header" class="flex justify-between">
|
||||||
<span>{{ $t('editItemReleaseView.releaseItems') }}</span>
|
<span>{{ $t('editItemReleaseView.releaseItems') }}</span>
|
||||||
<el-button type="primary" size="small" style="float: right;" @click="addResName">
|
<el-button type="primary" size="small" style="float: right;" @click="addResName">
|
||||||
<i class="el-icon-plus"></i>
|
<i class="el-icon-plus"></i>
|
||||||
|
|||||||
@ -184,7 +184,10 @@ import SelectStaff from '@/components/staff/SelectStaff'
|
|||||||
import {
|
import {
|
||||||
listItemReleaseRes,
|
listItemReleaseRes,
|
||||||
listItemRelease,
|
listItemRelease,
|
||||||
auditUndoItemRelease
|
auditUndoItemRelease,
|
||||||
|
queryOaWorkflowUser,
|
||||||
|
listRunWorkflowImage,
|
||||||
|
queryNextDealUser
|
||||||
} from '@/api/work/itemReleaseDetailApi'
|
} from '@/api/work/itemReleaseDetailApi'
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
@ -266,9 +269,17 @@ export default {
|
|||||||
console.error('获取放行详情失败:', error)
|
console.error('获取放行详情失败:', error)
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
_loadComments() {
|
async _loadComments() {
|
||||||
// TODO: 需要实现工单评论接口
|
// TODO: 需要实现工单评论接口
|
||||||
console.log('加载评论')
|
console.log('加载评论')
|
||||||
|
const { data } = await queryOaWorkflowUser({
|
||||||
|
page: 1,
|
||||||
|
row: 1,
|
||||||
|
flowId: this.itemReleaseDetailInfo.flowId,
|
||||||
|
id: this.itemReleaseDetailInfo.irId,
|
||||||
|
communityId: this.communityId
|
||||||
|
})
|
||||||
|
this.itemReleaseDetailInfo.comments = data
|
||||||
},
|
},
|
||||||
_goBack() {
|
_goBack() {
|
||||||
this.$router.go(-1)
|
this.$router.go(-1)
|
||||||
@ -306,13 +317,22 @@ export default {
|
|||||||
this.$message.error(error.message || this.$t('itemReleaseDetail.submitFailed'))
|
this.$message.error(error.message || this.$t('itemReleaseDetail.submitFailed'))
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
_loadNextAuditPerson() {
|
async _loadNextAuditPerson() {
|
||||||
// TODO: 需要实现获取下一处理人接口
|
// TODO: 需要实现获取下一处理人接口
|
||||||
console.log('加载下一处理人')
|
console.log('加载下一处理人')
|
||||||
|
const { data } = await queryNextDealUser({
|
||||||
|
startUserId: this.itemReleaseDetailInfo.pools.createUserId,
|
||||||
|
taskId: this.itemReleaseDetailInfo.audit.taskId,
|
||||||
|
communityId: this.communityId
|
||||||
|
})
|
||||||
|
this.itemReleaseDetailInfo.nextAudit = data[0]
|
||||||
},
|
},
|
||||||
_openNewOaWorkflowDetailImg() {
|
async _openNewOaWorkflowDetailImg() {
|
||||||
// TODO: 需要实现获取流程图接口
|
const { data } = await listRunWorkflowImage({
|
||||||
console.log('加载流程图')
|
businessKey: this.itemReleaseDetailInfo.irId,
|
||||||
|
communityId: this.communityId
|
||||||
|
})
|
||||||
|
this.itemReleaseDetailInfo.imgData = 'data:image/png;base64,' + data
|
||||||
},
|
},
|
||||||
handleStaffSelect(staff) {
|
handleStaffSelect(staff) {
|
||||||
this.itemReleaseDetailInfo.audit.staffId = staff.staffId
|
this.itemReleaseDetailInfo.audit.staffId = staff.staffId
|
||||||
|
|||||||
@ -94,7 +94,7 @@
|
|||||||
<el-button size="mini" @click="_openDetail(scope.row)">
|
<el-button size="mini" @click="_openDetail(scope.row)">
|
||||||
{{ $t('common.detail') }}
|
{{ $t('common.detail') }}
|
||||||
</el-button>
|
</el-button>
|
||||||
<el-button size="mini" type="primary" @click="_openEditItemReleaseModel(scope.row)">
|
<el-button size="mini" type="primary" v-if="scope.row.state != 'C'" @click="_openEditItemReleaseModel(scope.row)">
|
||||||
{{ $t('common.edit') }}
|
{{ $t('common.edit') }}
|
||||||
</el-button>
|
</el-button>
|
||||||
<el-button size="mini" type="danger" @click="_openDeleteItemReleaseModel(scope.row)">
|
<el-button size="mini" type="danger" @click="_openDeleteItemReleaseModel(scope.row)">
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user