| | |
| | | <template> |
| | | <div class="ill"> |
| | | <!-- 到达现场情况 --> |
| | | <MyArrive></MyArrive> |
| | | <MyArrive ref="arrive" :arriveData="arriveData"></MyArrive> |
| | | <!-- 调查取证 --> |
| | | <MyEvidence></MyEvidence> |
| | | <MyEvidence ref="evidence" :evidenceData="evidenceData" :illegal-type="illegalType"></MyEvidence> |
| | | <!-- 文种书类 --> |
| | | <MyBook></MyBook> |
| | | <!-- 底部按钮 --> |
| | | <MyBook ref="book" :writ="writ"></MyBook> |
| | | |
| | | <div class="footer"> |
| | | <el-button @click="handleSubmit" type="primary">确定</el-button> |
| | | <el-button>返回</el-button> |
| | | <el-button @click="handleBack">返回</el-button> |
| | | </div> |
| | | </div> |
| | | </template> |
| | |
| | | import MyArrive from '../components/arrive' |
| | | import MyEvidence from "../components/evidence" |
| | | import MyBook from "../components/book" |
| | | import { parseTime } from '@/utils/index' |
| | | import casequery from "@/api/operate/basecase"; |
| | | export default { |
| | | components:{ |
| | | MyArrive,MyEvidence,MyBook |
| | | components: { |
| | | MyArrive, MyEvidence, MyBook |
| | | }, |
| | | data() { |
| | | return { |
| | | |
| | | } |
| | | data() { |
| | | return { |
| | | arriveData: null, |
| | | evidenceData: null, |
| | | writ: null |
| | | } |
| | | }, |
| | | props: ['caseId','closeDialog', 'vioData', 'illegalType', 'imageResourceId'], |
| | | created() { |
| | | this.arriveData = this.vioData.arrivalSituation; |
| | | this.evidenceData = this.vioData.investigation; |
| | | this.writ = this.vioData.writ; |
| | | }, |
| | | methods:{ |
| | | handleSubmit(){ |
| | | methods: { |
| | | handleSubmit() { |
| | | const { arrive, evidence, book } = this.$refs; |
| | | const { arriveForm } = arrive.$refs; |
| | | const { evidenceForm } = evidence.$refs; |
| | | const { bookForm } = book.$refs; |
| | | arriveForm.validate((valid) => { |
| | | if (valid) { |
| | | evidenceForm.validate((flag) => { |
| | | if (flag) { |
| | | bookForm.validate((bookFlag) => { |
| | | if (bookFlag) { |
| | | const arriveData = Object.assign({}, arrive.arrive); |
| | | const evidenceData = Object.assign({}, evidence.evidence); |
| | | const bookData = Object.assign({}, book.book); |
| | | const partyInfo = evidence.user; |
| | | const arrivalSituationId = arriveData.id; |
| | | const investigationId = evidenceData.id; |
| | | const partyInfoId = this.evidenceData ? partyInfo.id : null; |
| | | const evidencePic = evidenceData.pic.join(','); |
| | | const situationPic = arriveData.situationPic.join(','); |
| | | const otherPic = bookData.otherPic.join(','); |
| | | const writPic = bookData.writPic.join(','); |
| | | const rectifiedPic = bookData.rectifiedPic.join(','); |
| | | const originalPic = bookData.originalPic.join(','); |
| | | delete evidenceData.id; |
| | | delete evidenceData.partyInfo; |
| | | delete evidenceData.userInfo; |
| | | delete evidenceData.pic; |
| | | delete arriveData.situationPic; |
| | | delete arriveData.id; |
| | | delete bookData.otherPic; |
| | | delete bookData.writPic; |
| | | delete bookData.rectifiedPic; |
| | | delete bookData.originalPic; |
| | | delete evidenceData.illegalType; |
| | | casequery.updateDisposeResult({ |
| | | caseId: this.caseId, |
| | | imageResourceId: this.imageResourceId, |
| | | pic: evidencePic, |
| | | arrivalSituationId, |
| | | situationPic, |
| | | partyInfoId, |
| | | investigationId, |
| | | otherPic, |
| | | writPic, |
| | | rectifiedPic, |
| | | originalPic, |
| | | ...arriveData, |
| | | ...evidenceData, |
| | | ...partyInfo, |
| | | ...bookData |
| | | }) |
| | | .then(() => { |
| | | this.$message.success('操作成功'); |
| | | this.$emit('closeDialog'); |
| | | }) |
| | | .catch(err => { |
| | | this.$message.error(err); |
| | | }) |
| | | } else { |
| | | return false; |
| | | } |
| | | }) |
| | | |
| | | } else { |
| | | return false; |
| | | } |
| | | }) |
| | | } else { |
| | | evidenceForm.validate((flag) => { |
| | | if (!flag) { |
| | | console.log(bookForm); |
| | | bookForm.validate((bookFlag) => { |
| | | console.log(bookFlag); |
| | | if (!bookFlag) { |
| | | return false; |
| | | } |
| | | }) |
| | | return false; |
| | | } else { |
| | | bookForm.validate((bookFlag) => { |
| | | if (!bookFlag) { |
| | | return false |
| | | } |
| | | }) |
| | | } |
| | | }) |
| | | return false; |
| | | } |
| | | }) |
| | | }, |
| | | handleBack(){ |
| | | this.$emit('closeDialog',{falg:false}) |
| | | } |
| | | } |
| | | } |
| | | </script> |
| | | <style lang="scss" scoped> |
| | | .ill{ |
| | | padding: 20px 200px; |
| | | } |
| | | .ill { |
| | | padding: 20px 200px 100px; |
| | | } |
| | | |
| | | .footer { |
| | | display: flex; |
| | | justify-content: flex-end; |
| | | } |
| | | display: flex; |
| | | justify-content: flex-end; |
| | | } |
| | | </style> |