<template>
|
<div class="ill">
|
<!-- 到达现场情况 -->
|
<MyArrive ref="arrive"></MyArrive>
|
<!-- 调查取证 -->
|
<MyEvidence ref="evidence"></MyEvidence>
|
<!-- 文种书类 -->
|
<MyBook ref="book"></MyBook>
|
<!-- <div class="result">
|
<el-input v-model="result" placeholder="请输入处理意见"></el-input>
|
</div> -->
|
<!-- 底部按钮 -->
|
<div class="footer">
|
<el-button @click="handleSubmit" type="primary">确定</el-button>
|
<el-button>返回</el-button>
|
</div>
|
</div>
|
</template>
|
<script>
|
import MyArrive from '../components/arrive'
|
import MyEvidence from "../components/evidence"
|
import MyBook from "../components/book"
|
export default {
|
components: {
|
MyArrive, MyEvidence, MyBook
|
},
|
data() {
|
return {
|
// result:'',
|
}
|
},
|
props: ['caseId'],
|
created() {
|
console.log(this.caseId);
|
this.getUserId();
|
},
|
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) {
|
console.log(valid);
|
evidenceForm.validate((flag) => {
|
if (flag) {
|
console.log(flag);
|
bookForm.validate((bookFlag) => {
|
console.log(bookFlag);
|
if (bookFlag) {
|
this.$axios({
|
method: 'post',
|
url: `sccg/dispatch_handle/addition_dispose_result?caseId=${this.caseId}&type=2`,
|
data: {
|
arrivalAddress: arrive.arrive.arrivalAddress,
|
arrivalTime: arrive.arrive.arrivalTime,
|
situationExplain: arrive.arrive.situationExplain,
|
replyExplain: arrive.arrive.replyExplain,
|
situationPic: `${arrive.arrive.situationPic}`,
|
//
|
undertaker: evidence.evidence.undertaker,
|
assistant: evidence.evidence.assistant,
|
investigationTime: evidence.evidence.investigationTime,
|
address: evidence.evidence.address,
|
caseAction: evidence.evidence.caseAction,
|
description: evidence.evidence.description,
|
pic: `${evidence.evidence.pic}`,
|
//
|
illegalType: evidence.user.illegalType,
|
name: evidence.user.name,
|
phoneCode: evidence.user.phoneCode,
|
certificateType: `${evidence.user.certificateType}`,
|
certificateCode: evidence.user.certificateCode,
|
educationDegree: `${evidence.user.educationDegree}`,
|
career: evidence.user.career,
|
work: evidence.user.work,
|
nation: evidence.user.nation,
|
nativePlace: evidence.user.nativePlace,
|
liveAddress: evidence.user.liveAddress,
|
registerAddress: evidence.user.registerAddress,
|
//
|
writType: book.book.writType,
|
writCode: book.book.writCode,
|
// illegalType: book.book.illegalType,
|
sendTime: book.book.sendTime,
|
limitTime: book.book.limitTime,
|
sendContent: book.book.sendContent,
|
rectifySituation:book.book.rectifySituation,
|
rectifyTime: book.book.rectifyTime,
|
remark: book.book.remark,
|
writPic: `${book.book.writPic}`,
|
originalPic: `${book.book.originalPic}`,
|
rectifiedPic: `${book.book.rectifiedPic}`,
|
otherPic: `${book.book.otherPic}`,
|
}
|
})
|
.then(res => {
|
console.log(res);
|
if (res.code === 200) {
|
this.$message({
|
type: 'success',
|
message: '上传成功',
|
})
|
this.$emit('closeDialog', { flag: false });
|
} else {
|
this.$message({
|
type: 'warning',
|
message: res.message
|
})
|
}
|
})
|
} 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;
|
}
|
})
|
},
|
// 获取用户id
|
getUserId(){
|
const myname = sessionStorage.getItem('name');
|
this.$axios({
|
method:'get',
|
url:'sccg/admin/info?name='+myname,
|
})
|
.then(res=>{
|
console.log(res);
|
})
|
}
|
}
|
}
|
</script>
|
<style lang="scss" scoped>
|
.ill {
|
padding: 20px 200px;
|
}
|
|
.footer {
|
display: flex;
|
justify-content: flex-end;
|
}
|
</style>
|