From 9544188c2b2abc6369178614e91cf57443da1d9a Mon Sep 17 00:00:00 2001
From: odc.xiaohui <xiaohui@Q1>
Date: 星期二, 14 三月 2023 18:06:48 +0800
Subject: [PATCH] 修改已驳回信息 案件录入-案件状态修改

---
 src/views/common/Audit.vue |   62 ++++++++++++++++++++++++++++---
 1 files changed, 56 insertions(+), 6 deletions(-)

diff --git a/src/views/common/Audit.vue b/src/views/common/Audit.vue
index 871ebd2..8708333 100644
--- a/src/views/common/Audit.vue
+++ b/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>

--
Gitblit v1.8.0