| | |
| | | // 提交审核意见 |
| | | handleSubmit(mystatus) { |
| | | // this.getUserLoginInfo(); |
| | | const {baseCase} = this; |
| | | this.$refs.viewForm.validate((valid) => { |
| | | if (valid) { |
| | | this.$axios({ |
| | | method: 'post', |
| | | url: 'sccg/check_handle/check', |
| | | data: { |
| | | baseCaseId: baseCase.id, |
| | | checkOpinion: baseCase.auditOpinion, |
| | | currentUser: baseCase.createUser, |
| | | status: mystatus, |
| | | } |
| | | }) |
| | | .then(res=>{ |
| | | console.log(res); |
| | | if(res.code===200){ |
| | | this.$message({ |
| | | type:'success', |
| | | message:mystatus === 0 ? '驳回成功' : '审核通过' |
| | | }) |
| | | this.$emit('closeDialog',{flag:false}); |
| | | } |
| | | |
| | | }) |
| | | .catch(err=>{console.log(err)}); |
| | | } else { |
| | | return false; |
| | | const { baseCase } = this; |
| | | this.$axios({ |
| | | method: 'post', |
| | | url: 'sccg/check_handle/check', |
| | | data: { |
| | | baseCaseId: baseCase.id, |
| | | checkOpinion: baseCase.auditOpinion, |
| | | currentUser: baseCase.createUser, |
| | | status: mystatus, |
| | | } |
| | | }) |
| | | .then(res => { |
| | | console.log(res); |
| | | if (res.code === 200) { |
| | | this.$message({ |
| | | type: 'success', |
| | | message: mystatus === 0 ? '驳回成功' : '审核通过' |
| | | }) |
| | | this.$emit('closeDialog', { flag: false }); |
| | | } |
| | | |
| | | }) |
| | | .catch(err => { console.log(err) }); |
| | | }, |
| | | // 获取当前用户登录信息 |
| | | getUserLoginInfo() { |
| | |
| | | }) |
| | | } |
| | | }, |
| | | props: ['info','closeDialog'] |
| | | props: ['info', 'closeDialog'] |
| | | } |
| | | </script> |
| | | <style lang="scss" scoped> |