This commit is contained in:
bb_pan 2025-05-28 17:14:06 +08:00
parent 8e00760338
commit 4b1f4c2cb1
2 changed files with 11 additions and 1 deletions

View File

@ -814,15 +814,25 @@ export default {
},
// 退
async handleComplete() {
console.log('🚀 ~ handleComplete ~ handleComplete:', this.$refs.homeTbRef.tableList)
let param1 = {
parentId: this.sendParams.id,
}
const res1 = await getRecord(param1)
if (res1.code == 200) {
let typeId = ''
if (this.$refs.homeTbRef.tableList.length > 0) {
this.$refs.homeTbRef.tableList.forEach((item) => {
if (item.backStatus == 0) {
typeId += item.modelId + ','
}
})
}
let param = {
createBy: sessionStorage.getItem('userId'),
parentId: this.sendParams.id,
taskId: this.sendParams.taskId,
typeId: typeId,
}
endBack(param).then((response) => {
if (response.code == 200) {

View File

@ -406,7 +406,7 @@ export default {
}
},
created() {
this.isOnRoles = this.roles ? this.roles.split(',').some((role) => ['em01', 'em02', 'fgs', 'sgb', 'dm01', ].includes(role)) : false
this.isOnRoles = this.roles ? this.roles.split(',').some((role) => ['em01', 'em02', 'fgs', 'sgb', 'dm01', 'dm02' ].includes(role)) : false
this.getList()
this.getTaskTypeList()
},