Просмотр исходного кода

Merge branch 'hcb' of SH-Arbitrate/Arbitrate-Frontend into dev

hanchaobo 2 лет назад
Родитель
Сommit
e509704df0

+ 20
- 5
src/api/awardManagement/awardManagement.js Просмотреть файл

@@ -67,10 +67,17 @@ export function adjudicationLogistics(data) {
67 67
         params: data
68 68
     })
69 69
 }
70
-// 签名(暂时只改案件状态)
71
-export function adjudicationSignature(data) {
70
+// // 签名(暂时只改案件状态)
71
+// export function adjudicationSignature(data) {
72
+//     return request({
73
+//         url: '/adjudication/signature',
74
+//         method: 'post',
75
+//         data: data
76
+//     })
77
+// }
78
+export function selectSignUrl(data) {
72 79
     return request({
73
-        url: '/adjudication/signature',
80
+        url: '/caseApplication/selectSignUrl',
74 81
         method: 'post',
75 82
         data: data
76 83
     })
@@ -84,9 +91,17 @@ export function adjudicationCaseFile(data) {
84 91
     })
85 92
 }
86 93
 // 用印(暂时只改案件状态)
87
-export function adjudicationStamp(data) {
94
+// export function adjudicationStamp(data) {
95
+//     return request({
96
+//         url: '/adjudication/stamp',
97
+//         method: 'post',
98
+//         data: data
99
+//     })
100
+// }
101
+
102
+export function selectSealUrl(data) {
88 103
     return request({
89
-        url: '/adjudication/stamp',
104
+        url: '/caseApplication/selectSealUrl',
90 105
         method: 'post',
91 106
         data: data
92 107
     })

+ 31
- 18
src/views/awardManagement/listofAwards.vue Просмотреть файл

@@ -89,7 +89,9 @@ import {
89 89
     caseApplicationDetail,
90 90
     adjudicationLogistics,
91 91
     adjudicationCaseFile,
92
-    adjudicationStamp
92
+    adjudicationStamp,
93
+    selectSignUrl,
94
+    selectSealUrl
93 95
 } from "@/api/awardManagement/awardManagement";
94 96
 import paymentdetailsDialog from "./components/paymentdetailsDialog.vue";
95 97
 import mailawardDialog from './components/MailawardDialog.vue';
@@ -140,7 +142,7 @@ export default {
140 142
         this.getList(this.queryParams);
141 143
     },
142 144
     methods: {
143
-        updataList(){
145
+        updataList() {
144 146
             this.getList(this.queryParams);
145 147
         },
146 148
         /** 搜索按钮操作 */
@@ -164,20 +166,27 @@ export default {
164 166
         },
165 167
         // model框显示
166 168
         showModel(row, type) {
167
-            this.getDetail({ id: row.id });
168
-            this.openDialog = true;
169
+
169 170
             switch (type) {
170 171
                 case 1:
172
+                    this.getDetail({ id: row.id });
173
+                    this.openDialog = true;
171 174
                     this.title = "核验裁决书";
172 175
                     this.flag = 1;
173 176
                     break;
174 177
                 case 2:
178
+                    this.getDetail({ id: row.id });
179
+                    this.openDialog = true;
175 180
                     this.title = "审核裁决书";
176 181
                     this.flag = 2;
177 182
                     break;
178 183
                 case 3:
179
-                    this.title = "裁决书签名";
180
-                    this.flag = 3;
184
+                    // this.title = "裁决书签名";
185
+                    // this.flag = 3;
186
+                    selectSignUrl({ id: row.id }).then(res => {
187
+                        let url = res.data.signUrl;
188
+                        window.open(url)
189
+                    })
181 190
                     break;
182 191
                 default:
183 192
                     break;
@@ -191,20 +200,24 @@ export default {
191 200
         showaffixModel(row) {
192 201
             this.$modal.confirm('是否进行用印申请?')
193 202
                 .then(function () {
194
-                  return adjudicationStamp({id:row.id});
195
-            })
196
-            .then(() => {
197
-                this.getList(this.queryParams);
198
-                this.$modal.msgSuccess("用印成功!");
199
-            })
200
-            .catch(function () {
201
-            });
203
+                    // return adjudicationStamp({ id: row.id });
204
+                    selectSealUrl({ id: row.id }).then(res => {
205
+                        let url = res.data.sealUrl;
206
+                        window.open(url)
207
+                    })
208
+                })
209
+                // .then(() => {
210
+                //     this.getList(this.queryParams);
211
+                //     this.$modal.msgSuccess("用印成功!");
212
+                // })
213
+                .catch(function () {
214
+                });
202 215
         },
203 216
         // 快递信息弹框
204 217
         showDeliveryModel(row) {
205
-            console.log(row,'快递');
218
+            console.log(row, '快递');
206 219
             this.showDelivery = true
207
-            this.getadjudicationLogistics({id:row.id})
220
+            this.getadjudicationLogistics({ id: row.id })
208 221
         },
209 222
         closeDeliveryModel() {
210 223
             this.showDelivery = false
@@ -221,12 +234,12 @@ export default {
221 234
         showCasefilingModel(row) {
222 235
             this.$modal.confirm('是否确认立即进行案件扫描?').then(
223 236
                 function () {
224
-                    return adjudicationCaseFile({id:row.id})
237
+                    return adjudicationCaseFile({ id: row.id })
225 238
                 }
226 239
             ).then(() => {
227 240
                 this.getList(this.queryParams);
228 241
                 this.$modal.msgSuccess("归档成功!");
229
-            }).catch(function () {})
242
+            }).catch(function () { })
230 243
         },
231 244
         // 送达裁决书弹框
232 245
         showMailaward(row) {

+ 0
- 8
src/views/caseManagement/caseList.vue Просмотреть файл

@@ -526,14 +526,6 @@ export default {
526 526
       this.loading = true;
527 527
       caseApply(val).then((response) => {
528 528
         this.dataList = response.rows;
529
-        // this.dataList.forEach((item) => {
530
-        //   if (item.arbitratMethod == 1) {
531
-        //     item.arbitratMethod = "视频仲裁";
532
-        //   }
533
-        //   if (item.arbitratMethod == 2) {
534
-        //     item.arbitratMethod = "书面仲裁";
535
-        //   }
536
-        // });
537 529
         this.total = response.total;
538 530
         this.loading = false;
539 531
       });