|
@@ -621,23 +621,13 @@ export default {
|
|
this.$message.warning(req.message)
|
|
this.$message.warning(req.message)
|
|
})
|
|
})
|
|
} else {
|
|
} else {
|
|
- if (status) {
|
|
|
|
|
|
+ if (status==true) {
|
|
this.$message.success('通过成功')
|
|
this.$message.success('通过成功')
|
|
this.getList()
|
|
this.getList()
|
|
- } else if (!status) {
|
|
|
|
- issueapproval({
|
|
|
|
- flag: 2,
|
|
|
|
- purchaseReceiptReportList: this.modification,
|
|
|
|
- })
|
|
|
|
- .toPromise()
|
|
|
|
- .then((response) => {
|
|
|
|
- this.$message.success('驳回成功')
|
|
|
|
- this.getList()
|
|
|
|
- })
|
|
|
|
- .catch((req) => {
|
|
|
|
- this.$message.success('驳回失败')
|
|
|
|
- })
|
|
|
|
- }
|
|
|
|
|
|
+ } else if (status==false) {
|
|
|
|
+ this.$message.success('驳回成功')
|
|
|
|
+ this.getList()
|
|
|
|
+ }
|
|
}
|
|
}
|
|
},
|
|
},
|
|
handlereject(status) {
|
|
handlereject(status) {
|
|
@@ -651,13 +641,6 @@ export default {
|
|
type: 'warning',
|
|
type: 'warning',
|
|
}).then(() => {
|
|
}).then(() => {
|
|
that.audit(this.modification[0], 0, false, true, '已驳回')
|
|
that.audit(this.modification[0], 0, false, true, '已驳回')
|
|
- // issueapproval({roleFlag:status,flag:2,salesDeliveryReportList:this.modification}).toPromise()
|
|
|
|
- // .then(response => {
|
|
|
|
- // this.$message.success('驳回成功')
|
|
|
|
- // this.getList()
|
|
|
|
- // }).catch(req => {
|
|
|
|
- // this.$message.success('驳回失败')
|
|
|
|
- // })
|
|
|
|
})
|
|
})
|
|
}
|
|
}
|
|
},
|
|
},
|
|
@@ -671,13 +654,6 @@ export default {
|
|
confirmButtonText: '确定',
|
|
confirmButtonText: '确定',
|
|
type: 'warning',
|
|
type: 'warning',
|
|
}).then(() => {
|
|
}).then(() => {
|
|
- // issueapproval({roleFlag:2,flag:1,salesDeliveryReportList:this.modification}).toPromise()
|
|
|
|
- // .then(response => {
|
|
|
|
- // this.$message.success('通过成功')
|
|
|
|
- // this.getList()
|
|
|
|
- // }).catch(req => {
|
|
|
|
- // this.$message.success('通过失败')
|
|
|
|
- // })
|
|
|
|
that.audit(this.modification[0], 0, true)
|
|
that.audit(this.modification[0], 0, true)
|
|
})
|
|
})
|
|
}
|
|
}
|