Bläddra i källkod

onlyoffice在线编辑

hanchaobo 2 år sedan
förälder
incheckning
972c409213

+ 8
- 5
src/views/caseManagement/components/addCase.vue Visa fil

84
               </el-select>
84
               </el-select>
85
             </el-form-item>
85
             </el-form-item>
86
           </el-col> -->
86
           </el-col> -->
87
-          <el-col :span="12">
87
+          <el-col :span="12" v-if="buttonFlag">
88
             <el-form-item label="申请人案件证据资料上传:" prop="applicantEvidence">
88
             <el-form-item label="申请人案件证据资料上传:" prop="applicantEvidence">
89
               <el-upload class="upload-demo" ref="fileupload" accept=".png,.jpg,.doc,.docx,.txt,.pdf"
89
               <el-upload class="upload-demo" ref="fileupload" accept=".png,.jpg,.doc,.docx,.txt,.pdf"
90
                 :action="UploadUrl()" :on-success="handlSuccess" :on-remove="handleRemove" :on-preview="handlePreview"
90
                 :action="UploadUrl()" :on-success="handlSuccess" :on-remove="handleRemove" :on-preview="handlePreview"
97
               </el-upload>
97
               </el-upload>
98
             </el-form-item>
98
             </el-form-item>
99
           </el-col>
99
           </el-col>
100
-          <el-col :span="24" v-if="modelFlag">
100
+          <el-col :span="24" v-if="modelFlag && showEvidence">
101
             <el-form-item label="证据:">
101
             <el-form-item label="证据:">
102
               <div v-for="(item, index) in formData.caseAttachList" :key="index" v-if="item.annexType == 2">
102
               <div v-for="(item, index) in formData.caseAttachList" :key="index" v-if="item.annexType == 2">
103
                 <div style="color: blue; cursor: pointer" @click="fileDetil(item.annexPath)">
103
                 <div style="color: blue; cursor: pointer" @click="fileDetil(item.annexPath)">
572
       getUserInfoList: {},
572
       getUserInfoList: {},
573
       applicationFlag: null,
573
       applicationFlag: null,
574
       showmediate: false,
574
       showmediate: false,
575
+      showEvidence: false,//是否显示证据
575
       formZipData: {},
576
       formZipData: {},
576
       nationalityList: [
577
       nationalityList: [
577
         {
578
         {
678
         this.formData.caseAttachList.forEach((item) => {
679
         this.formData.caseAttachList.forEach((item) => {
679
           if (item.annexType == 2) {
680
           if (item.annexType == 2) {
680
             this.applicantEvidence.push(item);
681
             this.applicantEvidence.push(item);
682
+            this.showEvidence = true
681
           } else if (item.annexType == 6) {
683
           } else if (item.annexType == 6) {
682
             // this.respondentEvidence.push(item);
684
             // this.respondentEvidence.push(item);
683
           } else if (item.annexType == 7) {
685
           } else if (item.annexType == 7) {
742
       return this.$confirm(`确定移除 ${file.name}?`);
744
       return this.$confirm(`确定移除 ${file.name}?`);
743
     },
745
     },
744
     handleRemove(file, fileList) {
746
     handleRemove(file, fileList) {
745
-      this.caseAttachListArr = this.caseAttachListArr.filter(
746
-        (item) => item.annexId != file.annexId
747
-      );
747
+      let newcaseAttachList = this.formData.caseAttachList.filter(item => 
748
+        item.annexId !== file.response.annexId
749
+      )
750
+      this.formData.caseAttachList = newcaseAttachList
748
     },
751
     },
749
     handleExceedZip(files, fileList) {
752
     handleExceedZip(files, fileList) {
750
       this.$message.warning(`当前限制选择 1 个文件`);
753
       this.$message.warning(`当前限制选择 1 个文件`);

+ 1
- 1
src/views/caseManagement/components/payDialog.vue Visa fil

130
     handleRemove(file, fileList) {
130
     handleRemove(file, fileList) {
131
       (this.submitForm.payOrderList = []),
131
       (this.submitForm.payOrderList = []),
132
       fileList.forEach((item) => {
132
       fileList.forEach((item) => {
133
-          this.submitForm.payOrderList.push({ annexId:item.response.data.annexId,annexName:item.response.data.annexName });
133
+          this.submitForm.payOrderList.push({ annexId:item.response.annexId,annexName:item.response.annexName });
134
         });
134
         });
135
     },
135
     },
136
     handlePreview(file) {
136
     handlePreview(file) {

+ 2
- 2
src/views/caseManagement/components/paymentdetailsDialog.vue Visa fil

14
         <el-form-item label="缴费金额:" prop="feePayable">
14
         <el-form-item label="缴费金额:" prop="feePayable">
15
           <el-input v-model="form.feePayable" :disabled="true"/>
15
           <el-input v-model="form.feePayable" :disabled="true"/>
16
         </el-form-item>
16
         </el-form-item>
17
-        <el-form-item label="申请人缴费凭证:" v-if="form.caseAttachList">
17
+        <el-form-item label="申请人缴费凭证:" v-if="form.caseAttachList&&form.caseAttachList.length>0 ">
18
           <div style="color: #104fad;cursor:pointer" v-for="(item, index) in form.caseAttachList" :key="index"
18
           <div style="color: #104fad;cursor:pointer" v-for="(item, index) in form.caseAttachList" :key="index"
19
             @click="preview(item.annexPath)">
19
             @click="preview(item.annexPath)">
20
             {{ item.annexName }}
20
             {{ item.annexName }}
21
           </div>
21
           </div>
22
         </el-form-item>
22
         </el-form-item>
23
-        <el-form-item label="被申请人缴费凭证:" v-if="form.resCaseAttachList">
23
+        <el-form-item label="被申请人缴费凭证:" v-if="form.resCaseAttachList&&form.resCaseAttachList.length>0">
24
           <div style="color: #104fad;cursor:pointer" v-for="(item, index) in form.resCaseAttachList" :key="index"
24
           <div style="color: #104fad;cursor:pointer" v-for="(item, index) in form.resCaseAttachList" :key="index"
25
             @click="preview(item.annexPath)">
25
             @click="preview(item.annexPath)">
26
             {{ item.annexName }}
26
             {{ item.annexName }}

+ 1
- 1
src/views/caseManagement/components/respondentPay.vue Visa fil

130
       handleRemove(file, fileList) {
130
       handleRemove(file, fileList) {
131
         (this.submitForm.payOrderList = []),
131
         (this.submitForm.payOrderList = []),
132
         fileList.forEach((item) => {
132
         fileList.forEach((item) => {
133
-            this.submitForm.payOrderList.push({ annexId:item.response.data.annexId,annexName:item.response.data.annexName });
133
+            this.submitForm.payOrderList.push({ annexId:item.response.annexId,annexName:item.response.annexName });
134
           });
134
           });
135
       },
135
       },
136
       handlePreview(file) {
136
       handlePreview(file) {