|
@@ -68,7 +68,7 @@ export default {
|
|
|
status: '',
|
|
|
fastSearch: ''
|
|
|
},
|
|
|
- applyId: ''
|
|
|
+ applyRow: {}
|
|
|
}
|
|
|
},
|
|
|
computed: {
|
|
@@ -201,13 +201,14 @@ export default {
|
|
|
|
|
|
// 申请
|
|
|
apply(row) {
|
|
|
- this.applyId = row.id
|
|
|
+ this.applyRow = row
|
|
|
this.$refs.receiveDialog.show = true
|
|
|
},
|
|
|
|
|
|
// 确认申请
|
|
|
applySure() {
|
|
|
- applyApproval(this.applyId).then(res => {
|
|
|
+ const { id, taskId } = this.applyId
|
|
|
+ applyApproval({ id, taskId }).then(res => {
|
|
|
if (res.success) {
|
|
|
this.$message.success('申请成功')
|
|
|
this.$refs.receiveDialog.show = false
|