| | |
| | | <template> |
| | | <div class="ill"> |
| | | <!-- 到达现场情况 --> |
| | | <MyArrive ref="arrive"></MyArrive> |
| | | <MyArrive ref="arrive" :arriveData="arriveData"></MyArrive> |
| | | <!-- 调查取证 --> |
| | | <MyEvidence ref="evidence" :mytype="2" :mycode="mycode"></MyEvidence> |
| | | <MyEvidence ref="evidence" :evidenceData="evidenceData" :mytype="2" :mycode="mycode"></MyEvidence> |
| | | <!-- 文种书类 --> |
| | | <MyBook ref="book" :mycode="mycode"></MyBook> |
| | | <MyBook ref="book" :writ="writ" :mycode="mycode"></MyBook> |
| | | |
| | | <div class="footer"> |
| | | <el-button @click="handleSubmit" type="primary">确定</el-button> |
| | |
| | | components: { |
| | | MyArrive, MyEvidence, MyBook |
| | | }, |
| | | data() { |
| | | return { |
| | | // result:'', |
| | | } |
| | | }, |
| | | props: ['caseId','closeDialog','mycode'], |
| | | data() { |
| | | return { |
| | | arriveData: null, |
| | | evidenceData: null, |
| | | writ: null |
| | | } |
| | | }, |
| | | props: ['caseId','closeDialog','mycode', 'vioData'], |
| | | created() { |
| | | this.getUserId(); |
| | | this.arriveData = this.vioData.arrivalSituation; |
| | | this.evidenceData = this.vioData.investigation; |
| | | this.writ = this.vioData.writ; |
| | | }, |
| | | methods: { |
| | | handleSubmit() { |
| | |
| | | const { evidenceForm } = evidence.$refs; |
| | | const { bookForm } = book.$refs; |
| | | arriveForm.validate((valid) => { |
| | | // const partyInfoId = this.evidenceData ? partyInfo.id : null; |
| | | if (valid) { |
| | | console.log(valid); |
| | | evidenceForm.validate((flag) => { |
| | | if (flag) { |
| | | console.log(flag); |
| | | bookForm.validate((bookFlag) => { |
| | | console.log(bookFlag); |
| | | if (bookFlag) { |
| | | this.$axios({ |
| | | method: 'post', |
| | |
| | | situationExplain: arrive.arrive.situationExplain, |
| | | replyExplain: arrive.arrive.replyExplain, |
| | | situationPic: `${arrive.arrive.situationPic}`, |
| | | // |
| | | |
| | | undertaker: evidence.evidence.undertaker, |
| | | assistant: evidence.evidence.assistant, |
| | | investigationTime: parseTime(evidence.evidence.investigationTime), |
| | |
| | | caseAction: evidence.evidence.caseAction, |
| | | description: evidence.evidence.description, |
| | | pic: `${evidence.evidence.pic}`, |
| | | // |
| | | // illegalType: evidence.user.illegalType, |
| | | partyInfoId: this.evidenceData ? evidence.evidence.partyInfo.id : null, |
| | | |
| | | name: evidence.user.name, |
| | | phoneCode: evidence.user.phoneCode, |
| | | certificateType: evidence.user.certificateType, |
| | |
| | | }) |
| | | return false; |
| | | } |
| | | }) |
| | | }, |
| | | // 获取用户id |
| | | getUserId(){ |
| | | const myname = sessionStorage.getItem('name'); |
| | | this.$axios({ |
| | | method:'get', |
| | | url:'sccg/admin/info?name='+myname, |
| | | }) |
| | | .then(res=>{ |
| | | }) |
| | | }, |
| | | handleBack(){ |