odc.xiaohui
2023-03-14 9544188c2b2abc6369178614e91cf57443da1d9a
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>