Преглед изворни кода

签收和归档页面接口开发

gyj пре 2 година
родитељ
комит
5834e7d8ee
2 измењених фајлова са 54 додато и 11 уклоњено
  1. 16
    0
      src/api/caseManagement/caseManagement.js
  2. 38
    11
      src/views/caseManagement/caseList.vue

+ 16
- 0
src/api/caseManagement/caseManagement.js Прегледај датотеку

143
     data: data,
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 Прегледај датотеку

73
                     <el-button size="mini" @click="viewpaymentformRow(scope.row)" type="text"
73
                     <el-button size="mini" @click="viewpaymentformRow(scope.row)" type="text"
74
                         icon="el-icon-edit">查看缴费单</el-button>
74
                         icon="el-icon-edit">查看缴费单</el-button>
75
                     <!-- <el-button size="mini" @click="caseFiling(scope.row)" type="text" icon="el-icon-tickets">案件归档</el-button> -->
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
                     <el-button size="mini" type="text" icon="el-icon-edit"
78
                     <el-button size="mini" type="text" icon="el-icon-edit"
78
                         @click="evidenceUpload(scope.row)">证据修改</el-button>
79
                         @click="evidenceUpload(scope.row)">证据修改</el-button>
79
                     <!-- <el-button size="mini" type="text" icon="el-icon-tickets" @click="payStatus(scope.row)">缴费</el-button> -->
80
                     <!-- <el-button size="mini" type="text" icon="el-icon-tickets" @click="payStatus(scope.row)">缴费</el-button> -->
133
 </template>
134
 </template>
134
 
135
 
135
 <script>
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
 import { listDept } from '@/api/system/dept.js'
138
 import { listDept } from '@/api/system/dept.js'
138
 import { queryCaseFlowInfo } from '@/api/caseprocessManagement/caseprocessManagement.js'
139
 import { queryCaseFlowInfo } from '@/api/caseprocessManagement/caseprocessManagement.js'
139
 import moment from "moment";
140
 import moment from "moment";
268
                 // 用印
269
                 // 用印
269
             }else if(type == 14){
270
             }else if(type == 14){
270
                 // 归档
271
                 // 归档
272
+                this.caseFiling(val);
271
             }else if(type == 15){
273
             }else if(type == 15){
272
-                // 签收
274
+                // 申请人签收
275
+                this.signMediation(val)
273
             }else if(type == 16){
276
             }else if(type == 16){
274
-                // 结束
277
+                // 被申请人签收
278
+                this.receivedMediation(val)
279
+            }else if(type == 17){
280
+                //结束
275
             }
281
             }
276
         },
282
         },
277
         /**查询按钮列表 */
283
         /**查询按钮列表 */
545
             this.showcaseLog = false
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
             this.$modal.confirm("你确定要案件归档吗?").then((res) => {
559
             this.$modal.confirm("你确定要案件归档吗?").then((res) => {
550
-
560
+               msCaseFile(paramValues).then(res=>{
561
+                    this.$modal.msgSuccess("案件归档成功");
562
+                    this.getList(this.queryParams);
563
+               }) 
551
             }).catch(() => {
564
             }).catch(() => {
552
 
565
 
553
             })
566
             })
554
         },
567
         },
555
-        //签收调解书
556
-        signMediation() {
568
+        //申请人签收调解书
569
+        signMediation(row) {
557
             this.$modal.confirm("你确定要签收调解书吗?").then((res) => {
570
             this.$modal.confirm("你确定要签收调解书吗?").then((res) => {
558
-
571
+                this.signingMediationAgreement({caseId:row.id,isSignApply:1})
559
             }).catch(() => {
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
 </script>
595
 </script>