|
@@ -604,21 +604,33 @@ export default {
|
|
|
},
|
|
|
//提交报告
|
|
|
handleSubmitReport(item){
|
|
|
- approveInterence.reportSmartSubmit({
|
|
|
- ReportId:Number(item.SmartReportId)
|
|
|
- }).then(res=>{
|
|
|
- if(res.Ret!==200) return
|
|
|
- this.$message.success("提交成功")
|
|
|
- this.getReportList()
|
|
|
+ this.$confirm("是否确认提交该报告进入审批流程?","提示",{
|
|
|
+ confirmButtonText:'确定',
|
|
|
+ cancelButtonText:'取消',
|
|
|
+ type:'warning',
|
|
|
+ }).then(()=>{
|
|
|
+ approveInterence.reportSmartSubmit({
|
|
|
+ ReportId:Number(item.SmartReportId)
|
|
|
+ }).then(res=>{
|
|
|
+ if(res.Ret!==200) return
|
|
|
+ this.$message.success("提交成功")
|
|
|
+ this.getReportList()
|
|
|
+ })
|
|
|
})
|
|
|
},
|
|
|
cancelReport(item){
|
|
|
- approveInterence.reportSmartCancel({
|
|
|
- ReportId:Number(item.SmartReportId)
|
|
|
- }).then(res=>{
|
|
|
- if(res.Ret!==200) return
|
|
|
- this.$message.success("撤销成功")
|
|
|
- this.getReportList()
|
|
|
+ this.$confirm("你确定要撤销申请吗?","提示",{
|
|
|
+ confirmButtonText:'确定',
|
|
|
+ cancelButtonText:'取消',
|
|
|
+ type:'warning',
|
|
|
+ }).then(()=>{
|
|
|
+ approveInterence.reportSmartCancel({
|
|
|
+ ReportId:Number(item.SmartReportId)
|
|
|
+ }).then(res=>{
|
|
|
+ if(res.Ret!==200) return
|
|
|
+ this.$message.success("撤销成功")
|
|
|
+ this.getReportList()
|
|
|
+ })
|
|
|
})
|
|
|
},
|
|
|
|