Browse Source

签收和归档页面接口开发

gyj 2 years ago
parent
commit
5834e7d8ee
2 changed files with 54 additions and 11 deletions
  1. 16
    0
      src/api/caseManagement/caseManagement.js
  2. 38
    11
      src/views/caseManagement/caseList.vue

+ 16
- 0
src/api/caseManagement/caseManagement.js View File

@@ -143,3 +143,19 @@ export function listCaseLogRecord(data) {
143 143
     data: data,
144 144
   })
145 145
 }
146
+// 案件归档
147
+export function msCaseFile(data) {
148
+  return request({
149
+    url: "/mssignSeal/msCaseFile",
150
+    method: "post",
151
+    data: data,
152
+  })
153
+}
154
+//申请人和被申请人签收调解书
155
+export function msCaseSign(data) {
156
+  return request({
157
+    url: "/mssignSeal/msCaseSign",
158
+    method: "post",
159
+    data: data,
160
+  })
161
+}

+ 38
- 11
src/views/caseManagement/caseList.vue View File

@@ -73,7 +73,8 @@
73 73
                     <el-button size="mini" @click="viewpaymentformRow(scope.row)" type="text"
74 74
                         icon="el-icon-edit">查看缴费单</el-button>
75 75
                     <!-- <el-button size="mini" @click="caseFiling(scope.row)" type="text" icon="el-icon-tickets">案件归档</el-button> -->
76
-                    <!-- <el-button size="mini" @click="signMediation(scope.row)" type="text" icon="el-icon-edit-outline">签收调解书</el-button>                  -->
76
+                    <!-- <el-button size="mini" @click="signMediation(scope.row)" type="text" icon="el-icon-edit-outline">申请人签收</el-button> -->
77
+                    <!-- <el-button size="mini" @click="receivedMediation(scope.row)" type="text" icon="el-icon-edit-outline">被申请人签收</el-button>                 -->
77 78
                     <el-button size="mini" type="text" icon="el-icon-edit"
78 79
                         @click="evidenceUpload(scope.row)">证据修改</el-button>
79 80
                     <!-- <el-button size="mini" type="text" icon="el-icon-tickets" @click="payStatus(scope.row)">缴费</el-button> -->
@@ -133,7 +134,7 @@
133 134
 </template>
134 135
 
135 136
 <script>
136
-import { caseApplicationList, caseApplicationSelectById,submitCaseApply,selectPaymentDetail,sealApply,selectSealUrl,listCaseLogRecord} from '@/api/caseManagement/caseManagement.js'
137
+import { caseApplicationList, caseApplicationSelectById,submitCaseApply,selectPaymentDetail,sealApply,selectSealUrl,listCaseLogRecord,msCaseFile,msCaseSign} from '@/api/caseManagement/caseManagement.js'
137 138
 import { listDept } from '@/api/system/dept.js'
138 139
 import { queryCaseFlowInfo } from '@/api/caseprocessManagement/caseprocessManagement.js'
139 140
 import moment from "moment";
@@ -268,10 +269,15 @@ export default {
268 269
                 // 用印
269 270
             }else if(type == 14){
270 271
                 // 归档
272
+                this.caseFiling(val);
271 273
             }else if(type == 15){
272
-                // 签收
274
+                // 申请人签收
275
+                this.signMediation(val)
273 276
             }else if(type == 16){
274
-                // 结束
277
+                // 被申请人签收
278
+                this.receivedMediation(val)
279
+            }else if(type == 17){
280
+                //结束
275 281
             }
276 282
         },
277 283
         /**查询按钮列表 */
@@ -545,24 +551,45 @@ export default {
545 551
             this.showcaseLog = false
546 552
         },
547 553
         // 案件归档
548
-        caseFiling() {
554
+        caseFiling(row) {
555
+            console.log(row.id)
556
+            let paramValues = {
557
+                ids:[row.id]
558
+            }
549 559
             this.$modal.confirm("你确定要案件归档吗?").then((res) => {
550
-
560
+               msCaseFile(paramValues).then(res=>{
561
+                    this.$modal.msgSuccess("案件归档成功");
562
+                    this.getList(this.queryParams);
563
+               }) 
551 564
             }).catch(() => {
552 565
 
553 566
             })
554 567
         },
555
-        //签收调解书
556
-        signMediation() {
568
+        //申请人签收调解书
569
+        signMediation(row) {
557 570
             this.$modal.confirm("你确定要签收调解书吗?").then((res) => {
558
-
571
+                this.signingMediationAgreement({caseId:row.id,isSignApply:1})
559 572
             }).catch(() => {
560 573
 
561 574
             })
562 575
         },
563
-        departmentApplica() {
576
+        //被申请人签收调解书
577
+        receivedMediation(row) {
578
+            this.$modal.confirm("你确定要签收调解书吗?").then((res) => {
579
+                this.signingMediationAgreement({caseId:row.id,isSignRespon:1})
580
+            }).catch(() => {
564 581
 
565
-        }
582
+            })
583
+        },
584
+        // 申请人和被申请人签收调解书接口
585
+         signingMediationAgreement(val){
586
+             console.log(val)
587
+             msCaseSign(val).then(res=>{
588
+                 this.$modal.msgSuccess("签收成功");
589
+                 this.getList(this.queryParams);
590
+             })
591
+         }
592
+ 
566 593
     },
567 594
 };
568 595
 </script>