| | |
| | | <el-table-column label="操作" width="240" header-align="center" align="center"> |
| | | <template slot-scope="scope"> |
| | | <el-button type="text" size="medium" @click="updateCauseDialogVisible(scope.row)">编辑</el-button> |
| | | <el-button type="text" size="medium" @click="reporterVisible=true">报案人员</el-button> |
| | | <el-button type="text" size="medium" @click="reporterVisibleBefore(scope.row.id)">报案人员</el-button> |
| | | <el-button type="text" size="medium" @click="handleAudit(scope.row)">群公告</el-button> |
| | | <el-button type="text" size="medium" @click="removeCause(scope.row.id)" style="color:#ff0000">删除 |
| | | </el-button> |
| | |
| | | </span> |
| | | </el-dialog> |
| | | |
| | | <!--修改案件弹窗--> |
| | | <el-dialog title="修改案件" :visible.sync="updateAduitDialogVisible" width="50%" :before-close="updateAduitClose"> |
| | | <!--案件人员弹窗--> |
| | | <el-dialog title="报案人员" :visible.sync="reporterVisible" width="85%" :before-close="reporterVisibleClose"> |
| | | <el-row :gutter="15"> |
| | | <el-form ref="addAduitForm" :model="updataCauseForm" :rules="rules" size="medium" label-width="100px"> |
| | | <el-col :span="18"> |
| | | <el-form-item label="案件编号 " prop="number"> |
| | | <el-input v-model="updataCauseForm.number" clearable :style="{ width: '100%' }"> |
| | | </el-input> |
| | | </el-form-item> |
| | | </el-col> |
| | | <el-col :span="18"> |
| | | <el-form-item label="案件名称" prop="name"> |
| | | <el-input v-model="updataCauseForm.name" clearable :style="{ width: '100%' }"> |
| | | </el-input> |
| | | </el-form-item> |
| | | </el-col> |
| | | <el-col :span="18"> |
| | | <el-form-item label="最发早案时间" prop="firstTime"> |
| | | <el-date-picker v-model="updataCauseForm.firstTime" type="datetime" placeholder="选择日期时间" |
| | | :style="{ width: '100%' }" value-format="yyyy-MM-dd HH:mm:ss"> |
| | | </el-date-picker> |
| | | </el-form-item> |
| | | </el-col> |
| | | <el-col :span="18"> |
| | | <el-form-item label="案件状态" prop="status"> |
| | | <el-select v-model="updataCauseForm.status" clearable :style="{ width: '100%' }"> |
| | | <el-option v-for="item in causeOptions" :key="item.value" :label="item.label" :value="item.value"> |
| | | </el-option> |
| | | </el-select> |
| | | </el-form-item> |
| | | </el-col> |
| | | <el-col :span="18"> |
| | | <el-form-item label="负责人" prop="userId"> |
| | | <el-select v-model="updataCauseForm.userName" clearable :style="{ width: '100%' }"> |
| | | <el-option v-for="item in user" :key="item.userId" :label="item.userName" :value="item.userId" |
| | | :disabled="item.disabled"></el-option> |
| | | </el-select> |
| | | </el-form-item> |
| | | </el-col> |
| | | <el-col :span="18"> |
| | | <el-form-item label="案件描述" prop="description"> |
| | | <el-input v-model="updataCauseForm.description" clearable :style="{ width: '100%', height: '50%' }"> |
| | | </el-input> |
| | | </el-form-item> |
| | | </el-col> |
| | | </el-form> |
| | | </el-row> |
| | | <span slot="footer" class="dialog-footer"> |
| | | <el-button @click="updateAduitDialogVisible = false">取 消</el-button> |
| | | <el-button type="primary" @click="updateCause">确 定</el-button> |
| | | </span> |
| | | </el-dialog> |
| | | <el-card style="height: 100%"> |
| | | <template slot="header"> |
| | | <el-form :inline="true" :model="queryInfoReport" class="demo-form-inline"> |
| | | <el-form-item label="报案人:"> |
| | | <el-input placeholder="请输入姓名或身份证" v-model="queryInfoReport.people"></el-input> |
| | | </el-form-item> |
| | | <el-form-item label="手机号码:"> |
| | | <el-input placeholder="请输入" v-model="queryInfoReport.phoneNumber"></el-input> |
| | | </el-form-item> |
| | | <el-form-item label="是否已进群:"> |
| | | <el-select v-model="queryInfoReport.isInGroup" placeholder="请选择" style="width:50%"> |
| | | <el-option v-for="item in optionsGroup" :key="item.value" :label="item.label" :value="item.value"> |
| | | </el-option> |
| | | </el-select> |
| | | </el-form-item> |
| | | <el-form-item label="报案材料:"> |
| | | <el-select v-model="queryInfoReport.HavaMaterial" placeholder="请选择" style="width:50%"> |
| | | <el-option v-for="item in optionsMate" :key="item.value" :label="item.label" :value="item.value"> |
| | | </el-option> |
| | | </el-select> |
| | | </el-form-item> |
| | | |
| | | |
| | | <!--案件人员弹窗--> |
| | | <el-dialog title="报案人员" :visible.sync="reporterVisible" width="50%" :before-close="updateAduitClose"> |
| | | <el-row :gutter="15"> |
| | | <el-form ref="addAduitForm" :model="updataCauseForm" :rules="rules" size="medium" label-width="100px"> |
| | | <el-col :span="18"> |
| | | <el-form-item label="案件编号 " prop="number"> |
| | | <el-input v-model="updataCauseForm.number" clearable :style="{ width: '100%' }"> |
| | | </el-input> |
| | | </el-form-item> |
| | | </el-col> |
| | | <el-col :span="18"> |
| | | <el-form-item label="案件名称" prop="name"> |
| | | <el-input v-model="updataCauseForm.name" clearable :style="{ width: '100%' }"> |
| | | </el-input> |
| | | </el-form-item> |
| | | </el-col> |
| | | <el-col :span="18"> |
| | | <el-form-item label="最发早案时间" prop="firstTime"> |
| | | <el-date-picker v-model="updataCauseForm.firstTime" type="datetime" placeholder="选择日期时间" |
| | | :style="{ width: '100%' }" value-format="yyyy-MM-dd HH:mm:ss"> |
| | | </el-date-picker> |
| | | </el-form-item> |
| | | </el-col> |
| | | <el-col :span="18"> |
| | | <el-form-item label="案件状态" prop="status"> |
| | | <el-select v-model="updataCauseForm.status" clearable :style="{ width: '100%' }"> |
| | | <el-option v-for="item in causeOptions" :key="item.value" :label="item.label" :value="item.value"> |
| | | </el-option> |
| | | </el-select> |
| | | </el-form-item> |
| | | </el-col> |
| | | <el-col :span="18"> |
| | | <el-form-item label="负责人" prop="userId"> |
| | | <el-select v-model="updataCauseForm.userName" clearable :style="{ width: '100%' }"> |
| | | <el-option v-for="item in user" :key="item.userId" :label="item.userName" :value="item.userId" |
| | | :disabled="item.disabled"></el-option> |
| | | </el-select> |
| | | </el-form-item> |
| | | </el-col> |
| | | <el-col :span="18"> |
| | | <el-form-item label="案件描述" prop="description"> |
| | | <el-input v-model="updataCauseForm.description" clearable :style="{ width: '100%', height: '50%' }"> |
| | | </el-input> |
| | | </el-form-item> |
| | | </el-col> |
| | | </el-form> |
| | | <el-form-item> |
| | | <el-button type="primary" @click="search">查询</el-button> |
| | | </el-form-item> |
| | | <el-form-item> |
| | | <el-button type="primary" @click="addAduitDialogOpen">添加</el-button> |
| | | </el-form-item> |
| | | <!-- <el-form-item> |
| | | <el-button type="primary" @click="exportExcel">导入</el-button> |
| | | </el-form-item> --> |
| | | <el-form-item> |
| | | <el-button type="primary" @click="exportExcel">报案材料导出</el-button> |
| | | </el-form-item> |
| | | |
| | | </el-form> |
| | | </template> |
| | | <el-table :data="reportList"> |
| | | <el-table-column width="80" prop="pic" label="头像"> |
| | | <template slot-scope="scope"> |
| | | <img :src="scope.row.pic" style="width: 40px;height: 40px; border-radius: 50%;"> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column width="80" prop="userName" label="报案人"></el-table-column> |
| | | <el-table-column width="120" prop="userMobile" label="手机号码"></el-table-column> |
| | | <el-table-column width="180" prop="userIdcard" label="证件号码"></el-table-column> |
| | | <el-table-column width="100" prop="isCommission" label="是否代办"> |
| | | <template slot-scope="scope"> |
| | | <span v-if="scope.row.isCommission == 1">是</span> |
| | | <span v-else>否</span> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column width="100" prop="isIntoGroup" label="是否进群"> |
| | | <template slot-scope="scope"> |
| | | <span v-if="scope.row.isIntoGroup == 1">是</span> |
| | | <span v-else>否</span> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column width="100" prop="amountInvolved" label="涉案金额"> |
| | | <template slot-scope="scope"> |
| | | <span>{{ scope.row.amountInvolved === null ? 0 : scope.row.amountInvolved }}</span> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column width="100" prop="reportMaterials" label="报案材料"> |
| | | <template slot-scope="scope"> |
| | | <span>{{ scope.row.reportMaterials === "" ? "未提交" : "已提交" }}</span> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column width="200" prop="reportTime" label="报案时间"> |
| | | <template slot-scope="scope"> |
| | | <span>{{ scope.row.reportTime === null ? "2022-07-12 10:32:56" : scope.row.reportTime }}</span> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column label="操作"> |
| | | <template slot-scope="scope"> |
| | | <el-button type="text" size="medium" @click="updataReport(scope.row)">编辑</el-button> |
| | | <el-button type="text" size="medium" |
| | | @click="leaveReport(scope.row.id, scope.row.causeId, scope.row.groupId)" style="color:#ff0000" |
| | | :disabled="scope.row.isIntoGroup == 0">退群 </el-button> |
| | | <el-button type="text" size="medium" @click="removeReport(scope.row.id, scope.row.causeId)" |
| | | style="color:#ff0000" :disabled="scope.row.isIntoGroup == 1">删除 </el-button> |
| | | </template> |
| | | </el-table-column> |
| | | </el-table> |
| | | <el-pagination @current-change="handleCurrentChange" :current-page="queryInfoReport.current" |
| | | :page-size="queryInfoReport.size" layout="prev, pager, next" :total="reportTotal"></el-pagination> |
| | | </el-card> |
| | | <!--修改案件人员弹窗--> |
| | | <el-dialog title="修改人员" :visible.sync="updateReportVisible" width="50%" :append-to-body="true" |
| | | :before-close="updateReportVisibleclose"> |
| | | <el-row :gutter="20"> |
| | | <el-form ref="updateReportForm" :model="updateReportForm" :rules="reportRules" size="medium" |
| | | label-width="100px"> |
| | | <!-- <el-col :span="12"> --> |
| | | <!-- <el-form-item label="头像" prop="pic" required> |
| | | <el-upload ref="pic" action="/api/minio/upload" :show-file-list="false" |
| | | :on-success="handleAvatarSuccess" list-type="picture-card" accept="image/*" disabled> |
| | | <el-image style="width: 145px; height: 145px" :src="picShow" :preview-src-list="new Array(picShow)"> |
| | | </el-image> |
| | | </el-upload> |
| | | </el-form-item> --> |
| | | <!-- </el-col> --> |
| | | <!-- <el-col :span="12"> |
| | | <el-form-item label="报案人 " prop="userName" > |
| | | <el-input v-model="updateReportForm.userName" placeholder="请输入报案人 " clearable |
| | | :style="{ width: '100%' }"> |
| | | </el-input> |
| | | </el-form-item> |
| | | </el-col> |
| | | <el-col :span="12"> |
| | | <el-form-item label="手机号码" prop="userMobile"> |
| | | <el-input v-model="updateReportForm.userMobile" placeholder="请输入手机号码" clearable |
| | | :style="{ width: '100%' }"> |
| | | </el-input> |
| | | </el-form-item> |
| | | </el-col> |
| | | <el-col :span="12"> |
| | | <el-form-item label="身份证号" prop="userIdcard"> |
| | | <el-input v-model="updateReportForm.userIdcard" placeholder="请输入身份证号" clearable |
| | | :style="{ width: '100%' }"> |
| | | </el-input> |
| | | </el-form-item> |
| | | </el-col> --> |
| | | <el-col :span="12"> |
| | | <el-form-item prop="amountInvolved" label="涉案金额"> |
| | | <el-input v-model="updateReportForm.amountInvolved" placeholder="请输入涉案金额" clearable |
| | | :style="{ width: '100%' }"> |
| | | </el-input> |
| | | </el-form-item> |
| | | </el-col> |
| | | <el-col :span="12"> |
| | | <el-form-item prop="reportTime" label="报案时间"> |
| | | <el-date-picker v-model="updateReportForm.reportTime" type="datetime" placeholder="选择日期时间" |
| | | :style="{ width: '100%' }" value-format="yyyy-MM-dd HH:mm:ss"> |
| | | </el-date-picker> |
| | | </el-form-item> |
| | | </el-col> |
| | | </el-form> |
| | | </el-row> |
| | | <span slot="footer" class="dialog-footer"> |
| | | <el-button @click="updateReportVisible = false">取 消</el-button> |
| | | <el-button type="primary" @click="updateReportInCasue">确 定</el-button> |
| | | </span> |
| | | </el-dialog> |
| | | <!-- 查看详情弹窗 |
| | | <el-dialog title="案件详情" :visible.sync="infoAduitDialogVisible" width="50%" :before-close="infoAduitClose"> |
| | | <el-row :gutter="15"> |
| | | <el-form ref="infoAduitForm" :model="auditInfo" size="medium" label-width="100px"> |
| | | <el-col :span="12"> |
| | | <el-form-item label="头像" prop="pic" required> |
| | | <el-upload ref="pic" action="/api/minio/upload" :show-file-list="false" |
| | | :on-success="handleAvatarSuccess" list-type="picture-card" accept="image/*" disabled> |
| | | <el-image style="width: 145px; height: 145px" :src="picShow" :preview-src-list="new Array(picShow)"> |
| | | </el-image> |
| | | </el-upload> |
| | | </el-form-item> |
| | | </el-col> |
| | | <el-col :span="12"> |
| | | <el-form-item label="报案人 "> |
| | | <el-input v-model="auditInfo.reporterName" disabled :style="{ width: '100%' }"></el-input> |
| | | </el-form-item> |
| | | </el-col> |
| | | <el-col :span="12"> |
| | | <el-form-item label="手机号码"> |
| | | <el-input v-model="auditInfo.mobile" disabled :style="{ width: '100%' }"> |
| | | </el-input> |
| | | </el-form-item> |
| | | </el-col> |
| | | <el-col :span="12"> |
| | | <el-form-item label="身份证号"> |
| | | <el-input v-model="auditInfo.idcard" disabled :style="{ width: '100%' }"> |
| | | </el-input> |
| | | </el-form-item> |
| | | </el-col> |
| | | <el-col :span="12"> |
| | | <el-form-item label="被骗时间"> |
| | | <el-date-picker v-model="auditInfo.tmpTime" type="datetime" placeholder="选择日期时间" |
| | | :style="{ width: '100%' }" format="yyyy-MM-dd HH:mm:ss" :value-format="auditFrom.cheatTime" |
| | | disabled> |
| | | </el-date-picker> |
| | | </el-form-item> |
| | | </el-col> |
| | | <el-col :span="12"> |
| | | <el-form-item label="涉案金额"> |
| | | <el-input v-model="auditInfo.amountInvolved" placeholder="请输入涉案金额" :style="{ width: '100%' }" |
| | | disabled> |
| | | </el-input> |
| | | </el-form-item> |
| | | </el-col> |
| | | <el-col :span="24"> |
| | | <el-form-item label="案件描述"> |
| | | <el-input v-model="auditInfo.reportDescription" placeholder="请输入案件描述" :style="{ width: '100%' }" |
| | | disabled></el-input> |
| | | </el-form-item> |
| | | </el-col> |
| | | <el-col :span="24"> |
| | | <el-form-item label="补充信息"> |
| | | <el-input v-model="auditInfo.information" type="textarea" placeholder="请输入补充信息" |
| | | :autosize="{ minRows: 4, maxRows: 4 }" :style="{ width: '100%' }" disabled></el-input> |
| | | </el-form-item> |
| | | </el-col> |
| | | <el-col :span="24"> |
| | | <el-form-item label="材料"> |
| | | <div class="metalL"></div> |
| | | </el-form-item> |
| | | </el-col> |
| | | <el-col :span="24"> |
| | | <el-form-item label="关联案件" prop="causeId"> |
| | | <el-select v-model="auditFrom.causeId" placeholder="请选择下拉选择" clearable :style="{ width: '50%' }" |
| | | disabled> |
| | | <el-option v-for="item in causeOptions" :key="item.id" :label="item.name" :value="item.id"> |
| | | </el-option> |
| | | </el-select> |
| | | </el-form-item> |
| | | </el-col> |
| | | </el-form> |
| | | </el-row> |
| | | </el-dialog> --> |
| | | </el-row> |
| | | <span slot="footer" class="dialog-footer"> |
| | | <el-button @click="updateAduitDialogVisible = false">取 消</el-button> |
| | | <!-- <span slot="footer" class="dialog-footer"> |
| | | <el-button @click="reporterVisible = false">取 消</el-button> |
| | | <el-button type="primary" @click="updateCause">确 定</el-button> |
| | | </span> |
| | | </span> --> |
| | | </el-dialog> |
| | | </div> |
| | | </template> |
| | |
| | | import { |
| | | casueList, |
| | | remove, |
| | | removeReport, |
| | | leaveReport, |
| | | user, |
| | | updataReportCasue, |
| | | exportReportExcel |
| | | //saveSubject |
| | | } from '@/api/cause' |
| | | |
| | | import { getImgUrl, getReportById, report } from '@/api/common' |
| | | |
| | | |
| | | export default { |
| | | name: "Entry", |
| | | data() { |
| | | return { |
| | | causeId: '', |
| | | exportReportId: '', |
| | | queryInfoReport: { |
| | | people: '', |
| | | phoneNumber: '', |
| | | isInGroup: '5', |
| | | current: 1, |
| | | HavaMaterial: '5', |
| | | size: 10, |
| | | }, |
| | | auditFrom: { |
| | | pic: '', |
| | | reporterName: '', |
| | | mobile: '', |
| | | idcard: '', |
| | | cheatTime: '', |
| | | amountInvolved: '', |
| | | reportDescription: '', |
| | | information: '', |
| | | reportMaterials: "", |
| | | causeId: '', |
| | | fileList: [], |
| | | tmpTime: '', |
| | | }, |
| | | auditInfo: {}, |
| | | picShow: "", |
| | | optionsGroup: [ |
| | | { |
| | | value: '5', |
| | | label: '全部' |
| | | }, |
| | | { |
| | | value: '0', |
| | | label: '是' |
| | | }, |
| | | { |
| | | value: '1', |
| | | label: '否' |
| | | } |
| | | ], |
| | | optionsMate: [ |
| | | { |
| | | value: '5', |
| | | label: '全部' |
| | | }, |
| | | { |
| | | value: '0', |
| | | label: '已提交' |
| | | }, |
| | | { |
| | | value: '1', |
| | | label: '未提交' |
| | | } |
| | | ], |
| | | reportTotal: 0, |
| | | reportList: [], |
| | | addAduitDialogVisible: false, |
| | | infoAduitDialogVisible: false, |
| | | causeOptions: [], |
| | | reportRules: { |
| | | reporterName: [{ |
| | | required: true, |
| | | message: '请输入报案人 ', |
| | | trigger: 'blur' |
| | | }], |
| | | mobile: [{ |
| | | required: true, |
| | | message: '请输入手机号码', |
| | | trigger: 'blur' |
| | | }], |
| | | idcard: [{ |
| | | required: true, |
| | | message: '请输入身份证号', |
| | | trigger: 'blur' |
| | | }], |
| | | tmpTime: [{ |
| | | required: true, |
| | | message: '请输入被骗时间', |
| | | trigger: 'blur' |
| | | }], |
| | | amountInvolved: [{ |
| | | required: true, |
| | | message: '请输入涉案金额', |
| | | trigger: 'blur' |
| | | }], |
| | | reportDescription: [{ |
| | | required: true, |
| | | message: '请输入案件描述', |
| | | trigger: 'blur' |
| | | }], |
| | | information: [{ |
| | | required: true, |
| | | message: '请输入补充信息', |
| | | trigger: 'blur' |
| | | }], |
| | | causeId: [{ |
| | | required: true, |
| | | message: '请选择下拉选择', |
| | | trigger: 'change' |
| | | }], |
| | | }, |
| | | |
| | | |
| | | updateReportForm: [], |
| | | |
| | | //案件人员表格数据 |
| | | updateReportPrams: { |
| | | id: '', |
| | | amountInvolved: '', |
| | | reportTime: '', |
| | | }, |
| | | |
| | | //案件表格数据 |
| | | causeForm: { |
| | | name: '', |
| | | number: '', |
| | |
| | | total: 0, |
| | | addAduitDialogVisible: false, |
| | | updateAduitDialogVisible: false, |
| | | reporterVisible:false, |
| | | reporterVisible: false, |
| | | updateReportVisible: false, |
| | | rules: { |
| | | reporterName: [{ |
| | | required: true, |
| | |
| | | created() { |
| | | this.init(); |
| | | this.userList(); |
| | | |
| | | }, |
| | | methods: |
| | | { |
| | | |
| | | //导出文件 |
| | | exportExcel() { |
| | | this.$http.post('/api/report/exportReporter?id=' + this.exportReportId,{},{ responseType: 'blob' }) |
| | | .then(res => { |
| | | const fileName = decodeURI(res.headers['content-disposition'].split(';')[1].split('=')[1]) |
| | | const blob = new Blob([res.data], { type: 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet' }) |
| | | const elink = document.createElement('a') |
| | | elink.download = fileName |
| | | elink.href = URL.createObjectURL(blob) |
| | | document.body.appendChild(elink) |
| | | elink.click() |
| | | document.body.removeChild(elink) |
| | | }) |
| | | }, |
| | | |
| | | //案件人员编辑表单提交 |
| | | updateReportInCasue() { |
| | | this.updateReportPrams.id = this.updateReportForm.id; |
| | | this.updateReportPrams.amountInvolved = this.updateReportForm.amountInvolved; |
| | | this.updateReportPrams.reportTime = this.updateReportForm.reportTime; |
| | | let form = null; |
| | | form = this.updateReportPrams; |
| | | const data = form; |
| | | updataReportCasue(data).then( |
| | | res => { |
| | | this.$message({ |
| | | message: '修改成功', |
| | | type: 'success' |
| | | }); |
| | | this.get(this.causeId); |
| | | } |
| | | ); |
| | | |
| | | this.updateReportVisible = false; |
| | | }, |
| | | |
| | | //编辑案件人员 |
| | | updataReport(val) { |
| | | this.updateReportVisible = true; |
| | | this.updateReportForm = Object.assign({}, val); |
| | | this.causeId = val.causeId; |
| | | }, |
| | | //行为关闭修改案件人员 |
| | | updateReportVisibleclose() { |
| | | this.updateReportVisible = false; |
| | | }, |
| | | //报案人员 |
| | | reporterVisibleBefore(row) { |
| | | this.reporterVisible = true; |
| | | this.exportReportId = row; |
| | | this.get(row); |
| | | }, |
| | | //报案人员查询 |
| | | get(param) { |
| | | this.$http.get('/api/cause/getReporterList?causeId=' + param).then(res => { |
| | | |
| | | this.reportTotal = res.data.data.total |
| | | this.reportList = res.data.data.records |
| | | this.reportList.forEach(x => { |
| | | if (x.pic === '' || x.pic === null) { |
| | | x.pic = './logo.png'; |
| | | } else { |
| | | getImgUrl(x.pic).then(res => { |
| | | x.pic = res |
| | | }) |
| | | } |
| | | }) |
| | | }) |
| | | } |
| | | , |
| | | infoAduitClose() { |
| | | this.infoAduitDialogVisible = false |
| | | this.$refs.infoAduitForm.resetFields() |
| | | }, |
| | | addAduit() { |
| | | this.$refs.addAduitForm.validate(async (vaild) => { |
| | | if (!vaild) return this.$message.error('输入有误') |
| | | this.auditFrom.reportMaterials = this.auditFrom.fileList.map(i => i.data).join(',') |
| | | report(this.auditFrom).then(res => { |
| | | this.$message.success('提交成功') |
| | | this.addAduitDialogVisible = false |
| | | this.getReportList() |
| | | }).catch(err => { |
| | | this.addAduitClose() |
| | | }) |
| | | }) |
| | | }, |
| | | async getCauseOptions() { |
| | | const { data: data } = await this.$http.get('/api/cause/getCauseIdAndName'); |
| | | this.causeOptions = data.data; |
| | | }, |
| | | handleAvatarSuccess(res, file) { |
| | | this.auditFrom.pic = res.data |
| | | |
| | | getImgUrl(res.data).then(res => { |
| | | this.picShow = res |
| | | }) |
| | | }, |
| | | async handleMaterialSuccess(res, file) { |
| | | this.auditFrom.fileList.push({ |
| | | name: file.name, |
| | | url: await getImgUrl(res.data), |
| | | data: res.data |
| | | }) |
| | | }, |
| | | addAduitClose() { |
| | | this.addAduitDialogVisible = false |
| | | this.$refs.addAduitForm.resetFields() |
| | | this.picShow = "" |
| | | }, |
| | | getReportList() { |
| | | let param = {} |
| | | param.people = this.queryInfoReport.people |
| | | param.phoneNumber = this.queryInfoReport.phoneNumber |
| | | param.current = this.queryInfoReport.current |
| | | param.size = this.queryInfoReport.size |
| | | param.isInGroup = this.queryInfoReport.isInGroup !== '5' ? this.queryInfoReport.isInGroup : '' |
| | | param.HavaMaterial = this.queryInfoReport.HavaMaterial !== '5' ? this.queryInfoReport.HavaMaterial : '' |
| | | getAuditList(param).then(res => { |
| | | this.total = res.total |
| | | this.list = res.records |
| | | this.list.forEach(x => { |
| | | if (x.pic === '' || x.pic === null) { |
| | | x.pic = './logo.png'; |
| | | } else { |
| | | getImgUrl(x.pic).then(res => { |
| | | x.pic = res |
| | | }) |
| | | } |
| | | }) |
| | | }) |
| | | }, |
| | | search() { |
| | | this.getReportList() |
| | | }, |
| | | addAduitDialogOpen() { |
| | | this.addAduitDialogVisible = true |
| | | }, |
| | | |
| | | handleCurrentChange(val) { |
| | | this.queryInfoReport.current = val; |
| | | this.getReportList(); |
| | | }, |
| | | details(id) { |
| | | getReportById(id).then(res => { |
| | | this.auditInfo = res |
| | | if (res.pic === '' || res.pic === null) { |
| | | this.picShow = './logo.png'; |
| | | } else { |
| | | getImgUrl(res.pic).then(res => { |
| | | this.picShow = res |
| | | }) |
| | | } |
| | | this.infoAduitDialogVisible = true |
| | | }) |
| | | }, |
| | | audit(id) { |
| | | |
| | | }, |
| | | |
| | | //案件录入相关 |
| | | |
| | | updateCauseDialogVisible(row) { |
| | | this.updateAduitDialogVisible = true, |
| | | this.updataCauseForm = Object.assign({}, row); |
| | |
| | | updateAduitClose() { |
| | | this.updateAduitDialogVisible = false |
| | | }, |
| | | reporterVisibleClose() { |
| | | this.reporterVisible = false |
| | | }, |
| | | async createCause() { |
| | | let form = null; |
| | | form = this.causeForm; |
| | |
| | | message: "添加成功" |
| | | }); |
| | | this.addAduitDialogVisible = false; |
| | | this.getList(); |
| | | this.getList(); |
| | | } else { |
| | | this.$message({ |
| | | type: "error", |
| | |
| | | type: "success", |
| | | message: "修改成功" |
| | | }); |
| | | if (this.updataCauseForm.status == 0) { |
| | | this.updataCauseForm.status = '未审核'; |
| | | }; |
| | | if (this.updataCauseForm.status == 1) { |
| | | this.updataCauseForm.status = '不予立案'; |
| | | }; |
| | | if (this.updataCauseForm.status == 2) { |
| | | this.updataCauseForm.status = '受理中'; |
| | | }; |
| | | if (this.updataCauseForm.status == 3) { |
| | | this.updataCauseForm.status = '已结案'; |
| | | }; |
| | | if (this.updataCauseForm.status == 4) { |
| | | this.updataCauseForm.status = '已撤案'; |
| | | }; |
| | | if (this.updataCauseForm.status == 0) { |
| | | this.updataCauseForm.status = '未审核'; |
| | | }; |
| | | if (this.updataCauseForm.status == 1) { |
| | | this.updataCauseForm.status = '不予立案'; |
| | | }; |
| | | if (this.updataCauseForm.status == 2) { |
| | | this.updataCauseForm.status = '受理中'; |
| | | }; |
| | | if (this.updataCauseForm.status == 3) { |
| | | this.updataCauseForm.status = '已结案'; |
| | | }; |
| | | if (this.updataCauseForm.status == 4) { |
| | | this.updataCauseForm.status = '已撤案'; |
| | | }; |
| | | this.updateAduitDialogVisible = false; |
| | | // location.reload(); |
| | | this.getList(); |
| | |
| | | , |
| | | addDialogOpen() { |
| | | }, |
| | | exportExcel() { |
| | | }, |
| | | |
| | | handleCurrentChange(val) { |
| | | this.queryInfo.current = val; |
| | | this.getList(); |
| | |
| | | this.getList(); |
| | | } |
| | | ) |
| | | } |
| | | }, |
| | | |
| | | removeReport(val, row) { |
| | | removeReport(val).then( |
| | | res => { |
| | | this.$message({ |
| | | message: '删除成功', |
| | | type: 'success' |
| | | }); |
| | | this.get(row); |
| | | } |
| | | ) |
| | | }, |
| | | |
| | | |
| | | leaveReport(val, row, value) { |
| | | leaveReport(val, value).then( |
| | | res => { |
| | | this.$message({ |
| | | message: '退群成功', |
| | | type: 'success' |
| | | }); |
| | | this.get(row); |
| | | } |
| | | ) |
| | | }, |
| | | |
| | | } |
| | | } |
| | | </script> |