This commit is contained in:
parent
8e00760338
commit
4b1f4c2cb1
|
|
@ -814,15 +814,25 @@ export default {
|
||||||
},
|
},
|
||||||
// 完成退料
|
// 完成退料
|
||||||
async handleComplete() {
|
async handleComplete() {
|
||||||
|
console.log('🚀 ~ handleComplete ~ handleComplete:', this.$refs.homeTbRef.tableList)
|
||||||
let param1 = {
|
let param1 = {
|
||||||
parentId: this.sendParams.id,
|
parentId: this.sendParams.id,
|
||||||
}
|
}
|
||||||
const res1 = await getRecord(param1)
|
const res1 = await getRecord(param1)
|
||||||
if (res1.code == 200) {
|
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 = {
|
let param = {
|
||||||
createBy: sessionStorage.getItem('userId'),
|
createBy: sessionStorage.getItem('userId'),
|
||||||
parentId: this.sendParams.id,
|
parentId: this.sendParams.id,
|
||||||
taskId: this.sendParams.taskId,
|
taskId: this.sendParams.taskId,
|
||||||
|
typeId: typeId,
|
||||||
}
|
}
|
||||||
endBack(param).then((response) => {
|
endBack(param).then((response) => {
|
||||||
if (response.code == 200) {
|
if (response.code == 200) {
|
||||||
|
|
|
||||||
|
|
@ -406,7 +406,7 @@ export default {
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
created() {
|
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.getList()
|
||||||
this.getTaskTypeList()
|
this.getTaskTypeList()
|
||||||
},
|
},
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue