Parcourir la source

Merge branch 'dev' of http://git.xayunmei.com/SH-Arbitrate/Mediation-Frontend into gyj

gyj il y a 2 ans
Parent
révision
4fc6019ffa

+ 12
- 0
src/views/caseManagement/components/addCase.vue Voir le fichier

@@ -1232,6 +1232,18 @@ export default {
1232 1232
       this.$refs["ruleForm"].validate((valid) => {
1233 1233
         if (valid) {
1234 1234
           if (this.addModifyData == 3) {
1235
+            this.formData.affiliate.applicant.forEach((item) => {
1236
+              // this.$set(item,"organizeFlag",0);
1237
+              // this.$set(item,"roleType",2)
1238
+              item.applicantAgent.organizeFlag = 0;
1239
+              item.applicantAgent.roleType = 2;
1240
+            })
1241
+            this.formData.affiliate.res.forEach((item) => {
1242
+              // this.$set(item,"organizeFlag",0);
1243
+              // this.$set(item,"roleType",4)
1244
+              item.resAgent.organizeFlag = 0;
1245
+              item.applicantAgent.roleType = 4;
1246
+            })
1235 1247
             this.modifyData(this.formData);
1236 1248
           } else if (this.addModifyData == 1) {
1237 1249
             this.insertFn(this.formData);

+ 10
- 5
src/views/caseManagement/components/mediation.vue Voir le fichier

@@ -98,12 +98,12 @@
98 98
         <!-- v-if="!mediationType" -->
99 99
         <el-col :span="24">
100 100
           <el-form-item label="上传调解书">
101
-            <el-upload class="upload-demo" accept=".doc,.docx" ref="upload" :action="UploadUrl()"
102
-              :headers="headers" :data="filedata" :on-preview="handlePreview" :on-remove="handleRemove" :limit="1"
101
+            <el-upload class="upload-demo" accept=".doc,.docx,.pdf" ref="upload" :action="UploadUrl()"
102
+              :headers="headers" :data="filedata" :on-preview="handlePreview" :on-remove="handleRemove" :limit="2"
103 103
               :on-change="beforeUpload" :on-success="handlSuccess" :file-list="fileList">
104 104
               <el-button slot="trigger" size="small" :disabled="!isSecretaryRole" type="primary">选取文件</el-button>
105 105
               <!-- <el-button style="margin-left: 10px;" size="small" type="success" @click="submitUpload">上传到服务器</el-button> -->
106
-              <div slot="tip" class="el-upload__tip">只能上传.doc,docx文件</div>
106
+              <div slot="tip" class="el-upload__tip">只能上传.doc,docx,pdf文件</div>
107 107
             </el-upload>
108 108
           </el-form-item>
109 109
         </el-col>
@@ -178,6 +178,7 @@ export default {
178 178
   },
179 179
   watch: {
180 180
     mediationVisable(val) {
181
+      this.attachList = [];
181 182
       this.formData.mediaResult = 1;
182 183
       this.formData.sealFlag = 1;
183 184
       this.recordArr = [];
@@ -221,7 +222,8 @@ export default {
221 222
     handlePreview(file) {
222 223
     },
223 224
     handleRemove(file, fileList) {
224
-
225
+      let updatedArray = this.attachList.filter(item => item.annexId != file.response.annexId);
226
+      this.attachList = updatedArray;
225 227
     },
226 228
     beforeUpload(flie, fileList) {
227 229
       this.fileList = fileList;
@@ -229,7 +231,7 @@ export default {
229 231
     handlSuccess(res, file) {
230 232
       this.codes = res.code
231 233
       console.log(res)
232
-      this.attachList = [{ annexId: res.annexId,annexType:res.annexType}];
234
+      this.attachList.push({ annexId: res.annexId,annexType:res.annexType});
233 235
       // this.$set(this.mediationData, "attachList", {annexId:res.annexId});
234 236
     },
235 237
     /** 获取案件详情信息 */
@@ -319,6 +321,8 @@ export default {
319 321
         this.$emit("cancelMediation");
320 322
         this.$emit("getList", this.queryParams);
321 323
         this.loadingSubmit = false;
324
+      }).catch(err=>{
325
+        this.loadingSubmit = false;
322 326
       });
323 327
     },
324 328
     cancel() {
@@ -352,6 +356,7 @@ export default {
352 356
           id: this.mediationData.id,
353 357
           caseFlowId: this.mediationData.caseFlowId,
354 358
           sealFlag:this.sealFlag,
359
+          attachList: this.attachList,
355 360
           mediaResult: this.formData.mediaResult,
356 361
         }
357 362
       }