odc.xiaohui
2023-03-14 9544188c2b2abc6369178614e91cf57443da1d9a
修改已驳回信息
案件录入-案件状态修改
4个文件已修改
1个文件已添加
253 ■■■■■ 已修改文件
src/api/Audit.js 10 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main.js 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/cause/Entry.vue 151 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/cause/Group.vue 26 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/common/Audit.vue 62 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/api/Audit.js
New file
@@ -0,0 +1,10 @@
import request from '@/plugins/request'
export function reasonForRejection(params) {
    return request({
        url: 'report/reject',
        method: 'post',
        data: params
    })
}
src/main.js
@@ -10,7 +10,7 @@
import './assets/fonts/iconfont.css'
// 导入全局filter
import * as filters from './plugins/filters'
import ElementUI from 'element-ui';
import axios from 'axios'
Vue.prototype.$http = axios
@@ -19,7 +19,7 @@
    Vue.filter(key, filters[key])
})
Vue.use(ElementUI);
Vue.config.productionTip = false
new Vue({
src/views/cause/Entry.vue
@@ -41,11 +41,11 @@
          </el-table-column>
          <el-table-column prop="status" label="案件状态" width="110" header-align="center" align="center">
            <template slot-scope="scope">
              <span v-if="scope.row.status == 0">受理中</span>
              <span v-if="scope.row.status == 1">不予立案</span>
              <span v-if="scope.row.status == 2">以立案</span>
              <span v-if="scope.row.status == 3">已结案</span>
              <span v-if="scope.row.status == 4">已立案</span>
              <span v-if="scope.row.status == 0">立案</span>
              <span v-if="scope.row.status == 1">初查</span>
              <span v-if="scope.row.status == 2">受理</span>
              <span v-if="scope.row.status == 3">移送起诉</span>
              <span v-if="scope.row.status == 4">结案</span>
            </template>
          </el-table-column>
          <el-table-column prop="userName" label="负责人" width="130" header-align="center" align="center">
@@ -70,7 +70,7 @@
    <!--添加案件弹窗-->
    <el-dialog title="添加案件" :visible.sync="addAduitDialogVisible" :before-close="addAduitClose">
      <el-row :gutter="15">
        <el-form ref="causeForm" :model="causeForm" :rules="addCauseRules" size="medium" label-width="100px">
        <el-form ref="causeForm" :model="causeForm" :rules="addCauseRules" size="medium" label-width="140px">
          <el-col :span="12">
            <el-form-item label="案件编号 " prop="number">
              <el-input v-model="causeForm.number" clearable :style="{ width: '100%' }" placeholder="输入案件编号">
@@ -89,10 +89,10 @@
                placeholder="输入预估总金额"></el-input>
            </el-form-item>
          </el-col>
          <el-col :span="14">
          <el-col :span="24">
            <el-form-item label="最早发案时间" prop="firstTime">
              <el-date-picker v-model="causeForm.firstTime" type="datetime" placeholder="选择日期时间" clearable
                :style="{ width: '100%' }" value-format="yyyy-MM-dd HH:mm:ss">
                :style="{ width: '40%' }" value-format="yyyy-MM-dd HH:mm:ss">
              </el-date-picker>
            </el-form-item>
          </el-col>
@@ -813,9 +813,7 @@
      reportCauseId: null,
      reportTotal: 0,
      reportList: [],
      addAduitDialogVisible: false,
      infoAduitDialogVisible: false,
      causeOptions: [],
      groupAnVisible: false,
      addCauseRules: {
        number: [{
@@ -971,49 +969,46 @@
        },
        {
          value: '0',
          label: '受理中'
          label: '立案'
        },
        {
          value: '1',
          label: '不予立案'
          label: '初查'
        },
        {
          value: '2',
          label: '已立案'
          label: '受理'
        },
        {
          value: '3',
          label: '已结案'
          label: '移送起诉'
        },
        {
          value: '4',
          label: '已撤案'
          label: '结案'
        }
      ],
      causeOptions: [
        {
          value: null,
          label: '全部'
          value: 0,
          label: '立案'
        },
        {
          value: '0',
          label: '未审核'
          value: 1,
          label: '初查'
        },
        {
          value: '1',
          label: '不予立案'
          value: 2,
          label: '受理'
        },
        {
          value: '2',
          label: '受理中'
          value: 3,
          label: '移送起诉'
        },
        {
          value: '3',
          label: '已结案'
        },
        {
          value: '4',
          label: '已撤案'
          value: 4,
          label: '结案'
        }
      ],
      total: null,
@@ -1347,25 +1342,25 @@
    //案件录入相关
    updateCauseDialogVisible(row) {
      this.updateAduitDialogVisible = true,
        this.updataCauseForm = Object.assign({}, row);
      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 = true;
      this.updataCauseForm = Object.assign({}, row);
      // 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 = '已撤案';
      // };
    },
    addAduitClose() {
      this.addAduitDialogVisible = false
    },
@@ -1419,21 +1414,21 @@
          data.userId = this.user[key].userId;
        }
      }
      if (data.status == '未审核') {
        data.status = 0;
      }
      if (data.status == '不予立案') {
        data.status = 1;
      }
      if (data.status == '受理中') {
        data.status = 2;
      }
      if (data.status == '已结案') {
        data.status = 3;
      }
      if (data.status == '已撤案') {
        data.status = 4;
      }
      // if (data.status == '未审核') {
      //   data.status = 0;
      // }
      // if (data.status == '不予立案') {
      //   data.status = 1;
      // }
      // if (data.status == '受理中') {
      //   data.status = 2;
      // }
      // if (data.status == '已结案') {
      //   data.status = 3;
      // }
      // if (data.status == '已撤案') {
      //   data.status = 4;
      // }
      this.$http.put('/api/cause/updateCause?id=' + data.id,
        data
      ).then(res => {
@@ -1442,21 +1437,21 @@
            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();
src/views/cause/Group.vue
@@ -182,6 +182,7 @@
                }
              }
              this.messageList = res
              this.sendBtn=false
            })
            getAllNotice(data.id).then(res => this.groupAnList = res)
@@ -234,12 +235,33 @@
          }
        },
        seedMessage() {
          seed(this.field103, this.groupId).then(res => {
          seed(this.field103, this.groupId).then(async res => {
                this.$message({
                  message: '回复成功',
                  type: 'success'
                });
                getAllMessage(this.groupId).then(res => this.messageList = res)
                await getAllMessage(this.groupId).then(res => {
                  res.map(item=>{
                    if (item.pic === '' || item.pic === null){
                    }else {
                      item.pic='/minio/img/'+item.pic
                    }
                  })
                  this.messageList = res
                  // console.log(res)
                })
                // for (let item of this.messageList) {
                //   if (item.pic === '' || item.pic === null) {
                //   } else {
                //     getImgUrl(item.pic).then(res => {
                //       item.pic = res
                //     })
                //   }
                // }
                this.field103 = '';
              }
          )
src/views/common/Audit.vue
@@ -51,7 +51,15 @@
        <el-table-column width="180" prop="idcard" label="证件号码"></el-table-column>
        <el-table-column width="100" prop="isCommission" label="是否审核">
          <template slot-scope="scope">
            <span v-if="scope.row.isCommission == 1">是</span>
            <el-popover
                v-if="scope.row.status == 2"
                placement="bottom"
                title="驳回原因"
                width="200"
                trigger="click"
                :content="scope.row.remarks">
              <el-button type="text"  slot="reference">已驳回</el-button>
            </el-popover>
            <span v-else>否</span>
          </template>
        </el-table-column>
@@ -158,6 +166,7 @@
      </el-row>
      <span slot="footer" class="dialog-footer">
        <el-button @click="addAduitDialogVisible = false">取 消</el-button>
        <el-button type="primary" @click="addAduit">确 定</el-button>
      </span>
    </el-dialog>
@@ -235,8 +244,25 @@
      </el-row>
      <span slot="footer" class="dialog-footer">
        <el-button @click="checkVisible = false">取 消</el-button>
        <el-button type="danger" @click="innerLayerVisible =true">驳 回</el-button>
        <el-button type="primary" @click="checkAdd">确 定</el-button>
      </span>
      <el-dialog
          width="30%"
          title="驳回原因"
          :visible.sync="innerLayerVisible"
          append-to-body>
        <div class="reason-for-rejection">
          <label class="reason-for-rejection-lable">驳回原因:</label>
          <el-input v-model="reasonForRejectionInput" placeholder="请输入内容"></el-input>
        </div>
        <div slot="footer" class="dialog-footer">
          <el-button @click="innerLayerVisible = false">取 消</el-button>
          <el-button type="primary" @click="rejectionConfirmation">确定</el-button>
        </div>
      </el-dialog>
    </el-dialog>
@@ -317,11 +343,15 @@
<script>
import { getAuditList, getImgUrl, getReportById, report, checkPass } from '@/api/common'
import {reasonForRejection} from "@/api/Audit";
export default {
  name: "Audit",
  data() {
    return {
      reasonForRejectionInput:'',
      innerLayerVisible:false,
      current: null,
      size: null,
      queryInfo: {
@@ -408,11 +438,6 @@
          message: '请输入被骗时间',
          trigger: 'blur'
        }],
        cheatTime: [{
          required: true,
          message: '请输入被骗时间',
          trigger: 'blur'
        }],
        amountInvolved: [{
          required: true,
          message: '请输入涉案金额',
@@ -447,6 +472,9 @@
  },
  methods: {
    openInnerLayerVisible(){
    },
    //案件人员导入成功后
    reporterRespond(res) {
      if (res.code == 200) {
@@ -472,10 +500,24 @@
        return false
      }
    },
    rejectionConfirmation(){
      let data={
        id:this.auditInfo.id,
        reason:this.reasonForRejectionInput
      }
      reasonForRejection(data).then(res=>{
        console.log(res)
        this.getList()
        this.checkVisible=false
        this.innerLayerVisible =false
      })
    },
    //审核确定
    checkAdd() {
      let form = null;
      form = this.auditInfo;
      console.log(form)
      this.$refs.infoAduitForm.validate((valid)=>{
        if(valid){
          checkPass(form).then(res => {
@@ -494,6 +536,7 @@
    check(val) {
      getReportById(val).then(res => {
        this.auditInfo = res
        this.reasonForRejectionInput= this.auditInfo.remarks||''
        if (res.pic === '' || res.pic === null) {
          this.picShow = './logo.jpg';
        } else {
@@ -647,4 +690,11 @@
.el-form-item {
  margin-top: 20px;
}
.reason-for-rejection{
  display: flex;
  align-items: center;
  .reason-for-rejection-lable{
    width: 120px;
  }
}
</style>