修改流程详情
This commit is contained in:
@@ -225,6 +225,7 @@
|
|||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
</el-table>
|
</el-table>
|
||||||
|
<loading :loading="loading">数据获取中</loading>
|
||||||
</div>
|
</div>
|
||||||
<el-dialog
|
<el-dialog
|
||||||
title="查看修改前内容"
|
title="查看修改前内容"
|
||||||
@@ -248,6 +249,7 @@ export default {
|
|||||||
name: "bzzqyjStep1-9",
|
name: "bzzqyjStep1-9",
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
|
loading:false,
|
||||||
itermsConditionsFlag: false,
|
itermsConditionsFlag: false,
|
||||||
itermsConditionsTitle: '',
|
itermsConditionsTitle: '',
|
||||||
histortData: [],
|
histortData: [],
|
||||||
@@ -298,10 +300,12 @@ export default {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
getHistoryData () {
|
getHistoryData () {
|
||||||
|
this.loading = true
|
||||||
this.$http.get('lawss/activiti/get_list_by_instance', {
|
this.$http.get('lawss/activiti/get_list_by_instance', {
|
||||||
prcNum: this.$route.query.prcNum,
|
prcNum: this.$route.query.prcNum,
|
||||||
}, {}, res => {
|
}, {}, res => {
|
||||||
this.histortData = res
|
this.histortData = res
|
||||||
|
this.loading = false
|
||||||
}, e => {})
|
}, e => {})
|
||||||
},
|
},
|
||||||
upload(row, title) {
|
upload(row, title) {
|
||||||
|
|||||||
@@ -176,6 +176,7 @@
|
|||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
</el-table>
|
</el-table>
|
||||||
|
<loading :loading="loading">数据获取中</loading>
|
||||||
</div>
|
</div>
|
||||||
<ProcessFooter
|
<ProcessFooter
|
||||||
show-submit
|
show-submit
|
||||||
@@ -216,6 +217,7 @@ export default {
|
|||||||
name: "bzzqyjStep2",
|
name: "bzzqyjStep2",
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
|
loading:false,
|
||||||
commentText2: '',
|
commentText2: '',
|
||||||
onlyKey: '',
|
onlyKey: '',
|
||||||
drawerModal: false,
|
drawerModal: false,
|
||||||
@@ -312,10 +314,12 @@ export default {
|
|||||||
window.location.href = '/api/att/attFile/downloadFile?fileId=' + item.id
|
window.location.href = '/api/att/attFile/downloadFile?fileId=' + item.id
|
||||||
},
|
},
|
||||||
getHistoryData() {
|
getHistoryData() {
|
||||||
|
this.loading = true
|
||||||
this.$http.get("lawss/activiti/get_list_by_instance", {
|
this.$http.get("lawss/activiti/get_list_by_instance", {
|
||||||
prcNum: this.$route.query.prcNum
|
prcNum: this.$route.query.prcNum
|
||||||
}, {}, res => {
|
}, {}, res => {
|
||||||
this.histortData = res;
|
this.histortData = res;
|
||||||
|
this.loading = false
|
||||||
}, e => {
|
}, e => {
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -278,6 +278,7 @@
|
|||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
</el-table>
|
</el-table>
|
||||||
|
<loading :loading="loading">数据获取中</loading>
|
||||||
</div>
|
</div>
|
||||||
<ProcessFooter
|
<ProcessFooter
|
||||||
v-show="!disabledXX"
|
v-show="!disabledXX"
|
||||||
@@ -385,6 +386,7 @@ export default {
|
|||||||
name: "bzzqyjStep5-1",
|
name: "bzzqyjStep5-1",
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
|
loading:false,
|
||||||
disabledXX:!!this.$route.query.disabledXX,
|
disabledXX:!!this.$route.query.disabledXX,
|
||||||
activeNames: '1',
|
activeNames: '1',
|
||||||
clickFlag: false,
|
clickFlag: false,
|
||||||
@@ -614,10 +616,12 @@ export default {
|
|||||||
window.location.href = '/api/att/attFile/downloadFile?fileId=' + item.id
|
window.location.href = '/api/att/attFile/downloadFile?fileId=' + item.id
|
||||||
},
|
},
|
||||||
getHistoryData() {
|
getHistoryData() {
|
||||||
|
this.loading = true
|
||||||
this.$http.get("lawss/activiti/get_list_by_instance", {
|
this.$http.get("lawss/activiti/get_list_by_instance", {
|
||||||
prcNum: this.$route.query.prcNum
|
prcNum: this.$route.query.prcNum
|
||||||
}, {}, res => {
|
}, {}, res => {
|
||||||
this.histortData = res;
|
this.histortData = res;
|
||||||
|
this.loading = false
|
||||||
}, e => {
|
}, e => {
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -33,12 +33,13 @@
|
|||||||
{{val1}}
|
{{val1}}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="flow-group-process-content-bottom" v-if="item.userNames && item.userNames.length > 0">
|
<div class="flow-group-process-content-bottom"
|
||||||
|
v-if="item.userNames && item.userNames.length > 0">
|
||||||
<div v-if="item.userNames && item.userNames.length > 0"
|
<div v-if="item.userNames && item.userNames.length > 0"
|
||||||
v-for="val in item.userNames">
|
v-for="val in item.userNames">
|
||||||
<div>{{val}}</div>
|
<div>{{val}}</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</el-tooltip>
|
</el-tooltip>
|
||||||
<div class="flow-group-process-content-bottom" v-if="!item.userNames">
|
<div class="flow-group-process-content-bottom" v-if="!item.userNames">
|
||||||
<div>暂未选择处理人</div>
|
<div>暂未选择处理人</div>
|
||||||
@@ -134,18 +135,15 @@
|
|||||||
prop="taskKeyShow"
|
prop="taskKeyShow"
|
||||||
label="任务步骤"
|
label="任务步骤"
|
||||||
align="center"
|
align="center"
|
||||||
sortable="custom"
|
|
||||||
/>
|
/>
|
||||||
<el-table-column
|
<el-table-column
|
||||||
prop="userName"
|
prop="userName"
|
||||||
label="任务受理人"
|
label="任务受理人"
|
||||||
align="center"
|
align="center"
|
||||||
sortable="custom"
|
|
||||||
/>
|
/>
|
||||||
<el-table-column
|
<el-table-column
|
||||||
prop="createTime"
|
prop="createTime"
|
||||||
label="创建时间"
|
label="创建时间"
|
||||||
sortable="custom"
|
|
||||||
align="center"
|
align="center"
|
||||||
>
|
>
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
@@ -176,7 +174,7 @@
|
|||||||
align="center"
|
align="center"
|
||||||
>
|
>
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
<span>{{ scope.row.endTime ? '已完成' : scope.row.receiveStatus ? '已接收' : '未完成' }}</span>
|
<span>{{ scope.row.taskStatusShow }}</span>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
</el-table>
|
</el-table>
|
||||||
@@ -332,10 +330,10 @@
|
|||||||
_this: this
|
_this: this
|
||||||
}, res => {
|
}, res => {
|
||||||
this.nameList = res
|
this.nameList = res
|
||||||
this.nameList.forEach(val=>{
|
this.nameList.forEach(val => {
|
||||||
if (val.userNames){
|
if (val.userNames) {
|
||||||
val.userNames = val.userNames.split(',')
|
val.userNames = val.userNames.split(',')
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
this.$nextTick(() => {
|
this.$nextTick(() => {
|
||||||
let flowGroupProcess = document.getElementsByClassName('flow-group-process')
|
let flowGroupProcess = document.getElementsByClassName('flow-group-process')
|
||||||
@@ -354,10 +352,10 @@
|
|||||||
checkedRole(data) {
|
checkedRole(data) {
|
||||||
this.assigneeNewLoading = true
|
this.assigneeNewLoading = true
|
||||||
changeAssigneeNew({
|
changeAssigneeNew({
|
||||||
taskId: this.selectPeople.id, // 任务id
|
taskId: this.selectPeople.taskId || this.selectPeople.id, // 任务id
|
||||||
assignee: data[0].id, // 被委托人
|
assignee: data[0].id, // 被委托人
|
||||||
userId: this.selectPeople.assigneeId, // 委托人
|
userId: this.selectPeople.userId || this.selectPeople.assigneeId, // 委托人
|
||||||
pId: this.selectPeople.processInstanceId // 流程实例
|
pId: this.selectPeople.prcId || this.selectPeople.processInstanceId // 流程实例
|
||||||
}).then(res => {
|
}).then(res => {
|
||||||
this.assigneeNewLoading = false
|
this.assigneeNewLoading = false
|
||||||
if (res.success) {
|
if (res.success) {
|
||||||
@@ -370,22 +368,51 @@
|
|||||||
}
|
}
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
integrateData(list) {
|
||||||
|
list = list.reverse()
|
||||||
|
let row = {}
|
||||||
|
for (let i = 0; i < list.length; i++) {
|
||||||
|
if (list[i].taskId) {
|
||||||
|
row = list[i]
|
||||||
|
return row
|
||||||
|
} else {
|
||||||
|
if (list[i].children && list[i].children.length > 0) {
|
||||||
|
let children = list[i].children.reverse()
|
||||||
|
for (let j = 0; j < children.length; j++) {
|
||||||
|
if (children[j].taskId){
|
||||||
|
row = children[j]
|
||||||
|
return row
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
// 汇总流程
|
// 汇总流程
|
||||||
approveHandler() {
|
approveHandler() {
|
||||||
const index = this.detailData.length - 1 // 当前流程任务最后一步index
|
const index = this.detailData.length - 1 // 当前流程任务最后一步index
|
||||||
const isEnd = true
|
const isEnd = true
|
||||||
let row = {...this.detailData[this.approveRowIndex + 1]}// 汇总页下一步拿到数据
|
let prcType = ''
|
||||||
if (this.approveRowIndex === this.detailData.length - 1) { // 最后一步
|
let row = {}
|
||||||
row = {...this.detailData[this.approveRowIndex]}
|
if (this.$route.query.oldAndNew == 'new' && this.$route.query.flowType == '3') {
|
||||||
|
row = this.integrateData(JSON.parse(JSON.stringify(this.detailData)))
|
||||||
|
prcType = row.flowType
|
||||||
|
row.taskInfo = row.taskKeyShow
|
||||||
|
row.taskIds = row.taskId
|
||||||
|
row.tabsName = this.$route.query.tabsName
|
||||||
|
row.prcType = row.flowType
|
||||||
|
} else {
|
||||||
|
row = {...this.detailData[this.approveRowIndex + 1]}// 汇总页下一步拿到数据
|
||||||
|
if (this.approveRowIndex === this.detailData.length - 1) { // 最后一步
|
||||||
|
row = {...this.detailData[this.approveRowIndex]}
|
||||||
|
}
|
||||||
|
row.taskIds = row.id
|
||||||
|
row.taskInfo = row.name
|
||||||
|
row.tabsName = this.$route.query.tabsName
|
||||||
|
const currentItem = this.detailData[this.approveRowIndex]
|
||||||
|
row.currentItem = currentItem
|
||||||
|
prcType = this.detailData[index].prcType
|
||||||
}
|
}
|
||||||
row.taskIds = row.id
|
|
||||||
row.taskInfo = row.name
|
|
||||||
row.tabsName = this.$route.query.tabsName
|
|
||||||
|
|
||||||
const currentItem = this.detailData[this.approveRowIndex]
|
|
||||||
row.currentItem = currentItem
|
|
||||||
|
|
||||||
const prcType = this.detailData[index].prcType || this.detailData[index].flowType // 流程类型
|
|
||||||
if (isEnd) {
|
if (isEnd) {
|
||||||
if (this.$store.state.detailMap !== '') {
|
if (this.$store.state.detailMap !== '') {
|
||||||
const lastDetailMap = this.$store.getters.getLastDetailMap
|
const lastDetailMap = this.$store.getters.getLastDetailMap
|
||||||
@@ -492,14 +519,22 @@
|
|||||||
* @Description: 查看流程最后一步
|
* @Description: 查看流程最后一步
|
||||||
*/
|
*/
|
||||||
seeProcessLast() {
|
seeProcessLast() {
|
||||||
|
const row = {...this.detailData[0]}
|
||||||
|
let prcType = ''
|
||||||
const index = this.detailData.length - 1 // 当前流程任务最后一步index
|
const index = this.detailData.length - 1 // 当前流程任务最后一步index
|
||||||
const isEnd = true
|
const isEnd = true
|
||||||
const row = {...this.detailData[0]}
|
if (this.$route.query.oldAndNew == 'new' && this.$route.query.flowType == '3') {
|
||||||
row.taskIds = row.id
|
prcType = row.flowType
|
||||||
row.taskInfo = row.name
|
row.taskInfo = row.taskKeyShow
|
||||||
row.tabsName = this.$route.query.tabsName
|
row.taskIds = row.taskId
|
||||||
const prcType = this.detailData[index].prcType // 流程类型
|
row.tabsName = this.$route.query.tabsName
|
||||||
console.log(prcType);
|
row.prcType = row.flowType
|
||||||
|
} else {
|
||||||
|
row.taskIds = row.id
|
||||||
|
row.taskInfo = row.name
|
||||||
|
row.tabsName = this.$route.query.tabsName
|
||||||
|
prcType = this.detailData[index].prcType
|
||||||
|
}
|
||||||
// 判断当前流程是否已全部办理完成
|
// 判断当前流程是否已全部办理完成
|
||||||
// this.detailData.map(item => {
|
// this.detailData.map(item => {
|
||||||
// if (!item.endTime) {
|
// if (!item.endTime) {
|
||||||
@@ -666,15 +701,15 @@
|
|||||||
name: componentName,
|
name: componentName,
|
||||||
query: {
|
query: {
|
||||||
bpnId: row.bpnId,
|
bpnId: row.bpnId,
|
||||||
taskIds: row.id,
|
taskIds: row.taskIds || row.id,
|
||||||
prcId: row.processInstanceId,
|
prcId: row.prcId || row.processInstanceId,
|
||||||
prcNum: row.prcNum,
|
prcNum: row.prcNum,
|
||||||
prcName: row.prcName,
|
prcName: row.prcName,
|
||||||
prcType: row.prcType,
|
prcType: row.prcType,
|
||||||
disabledXX: true,
|
disabledXX: true,
|
||||||
verifySarStandard: true,
|
verifySarStandard: true,
|
||||||
index: this.approveRowIndex,
|
index: this.approveRowIndex,
|
||||||
processInstanceId: row.processInstanceId
|
processInstanceId: row.prcId || row.processInstanceId
|
||||||
},
|
},
|
||||||
params: {
|
params: {
|
||||||
currentItem: row.currentItem
|
currentItem: row.currentItem
|
||||||
@@ -1575,9 +1610,9 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
mounted() {
|
mounted() {
|
||||||
if (this.$route.query.oldAndNew == 'new' && this.$route.query.flowType == '3'){
|
if (this.$route.query.oldAndNew == 'new' && this.$route.query.flowType == '3') {
|
||||||
this.getProcessList()
|
this.getProcessList()
|
||||||
}else{
|
} else {
|
||||||
this.processNum()
|
this.processNum()
|
||||||
}
|
}
|
||||||
this.processTable()
|
this.processTable()
|
||||||
|
|||||||
Reference in New Issue
Block a user