소스 검색

fix:批量导入优化

刘恒 2 년 전
부모
커밋
86dc7cda17

+ 4 - 2
src/views/FinancialManagement/CarInsurance/CompanySettlement/CarInsurance/DocumentaryFeesDetail.vue

@@ -434,7 +434,7 @@
         >
       </span>
     </el-dialog>
-    <el-dialog :visible.sync="importVisible" width="25%">
+    <el-dialog :visible.sync="importVisible" title="批量导入" width="25%">
       <el-upload
         style="margin-bottom: 10px"
         action="#"
@@ -1060,6 +1060,7 @@ export default {
           this.excelFileList = fileList;
           this.progressPercent = 100;
           this.findPage();
+          this.importVisible = false;
         } else {
           this.excelFileList = [];
           this.progressPercent = 0;
@@ -1071,6 +1072,7 @@ export default {
     //增加类型批量导入
     addTypeImport() {
       this.importVisible = true;
+      this.excelFileList = [];
     },
     templateDownload() {
       let a = document.createElement("a");
@@ -1564,7 +1566,7 @@ export default {
 
 <style scoped>
 .upload-demo {
-  display: inline-block;
+  /* display: inline-block; */
 }
 .avatar {
   border: 1px dashed #d9d9d9;

+ 4 - 2
src/views/FinancialManagement/CarInsurance/CompanySettlement/CarInsurance/HandlingFees.vue

@@ -467,7 +467,7 @@
       >
       </el-progress>
     </el-dialog>
-    <el-dialog :visible.sync="importVisible" width="25%">
+    <el-dialog :visible.sync="importVisible" title="批量导入" width="25%">
       <el-upload
         style="margin-bottom: 10px"
         action="#"
@@ -1119,6 +1119,7 @@ export default {
           this.excelFileList = fileList;
           this.progressPercent = 100;
           this.findPage();
+          this.importVisible = false;
         } else {
           this.excelFileList = [];
           this.progressPercent = 0;
@@ -1130,6 +1131,7 @@ export default {
     //增加类型批量导入
     addTypeImport() {
       this.importVisible = true;
+      this.excelFileList = [];
     },
     agrmentlist() {
       this.$api.task.findPtlAgreementListNew({ type: "2" }).then((res) => {
@@ -1616,7 +1618,7 @@ export default {
 
 <style scoped>
 .upload-demo {
-  display: inline-block;
+  /* display: inline-block; */
 }
 .customStyle {
   margin-bottom: 20px;

+ 4 - 2
src/views/FinancialManagement/CarInsurance/CompanySettlement/NoCarInsurance/DocumentaryFeesDetail.vue

@@ -398,7 +398,7 @@
         >
       </span>
     </el-dialog>
-    <el-dialog :visible.sync="importVisible" width="25%">
+    <el-dialog :visible.sync="importVisible" title="批量导入" width="25%">
       <el-upload
         style="margin-bottom: 10px"
         action="#"
@@ -966,6 +966,7 @@ export default {
           this.excelFileList = fileList;
           this.progressPercent = 100;
           this.findPage();
+          this.importVisible = false;
         } else {
           this.excelFileList = [];
           this.progressPercent = 0;
@@ -977,6 +978,7 @@ export default {
     //增加类型批量导入
     addTypeImport() {
       this.importVisible = true;
+      this.excelFileList = [];
     },
     templateDownload() {
       let a = document.createElement("a");
@@ -1447,7 +1449,7 @@ export default {
 
 <style scoped>
 .upload-demo {
-  display: inline-block;
+  /* display: inline-block; */
 }
 .avatar {
   border: 1px dashed #d9d9d9;

+ 4 - 2
src/views/FinancialManagement/CarInsurance/CompanySettlement/NoCarInsurance/HandlingFees.vue

@@ -441,7 +441,7 @@
         >
       </span>
     </el-dialog>
-    <el-dialog :visible.sync="importVisible" width="25%">
+    <el-dialog :visible.sync="importVisible" title="批量导入" width="25%">
       <el-upload
         style="margin-bottom: 10px"
         action="#"
@@ -1026,6 +1026,7 @@ export default {
           this.excelFileList = fileList;
           this.progressPercent = 100;
           this.findPage();
+          this.importVisible = false;
         } else {
           this.excelFileList = [];
           this.progressPercent = 0;
@@ -1037,6 +1038,7 @@ export default {
     //增加类型批量导入
     addTypeImport() {
       this.importVisible = true;
+      this.excelFileList = [];
     },
     // 编辑
     editBtn(row) {
@@ -1486,7 +1488,7 @@ export default {
 
 <style scoped>
 .upload-demo {
-  display: inline-block;
+  /* display: inline-block; */
 }
 .customStyle {
   margin-bottom: 20px;

+ 4 - 2
src/views/FinancialManagement/CarInsurance/PlatformSettlement/NonVehicleBalance.vue

@@ -881,7 +881,7 @@
         </el-table-column>
       </el-table>
     </el-dialog>
-    <el-dialog :visible.sync="importVisible" width="25%">
+    <el-dialog :visible.sync="importVisible" title="批量导入" width="25%">
       <el-upload
         style="margin-bottom: 10px"
         action="#"
@@ -1542,6 +1542,7 @@ export default {
           this.excelFileList = fileList;
           this.progressPercent = 100;
           this.findPage();
+          this.importVisible = false;
         } else {
           this.excelFileList = [];
           this.progressPercent = 0;
@@ -1553,6 +1554,7 @@ export default {
     //增加类型批量导入
     addTypeImport() {
       this.importVisible = true;
+      this.excelFileList = [];
     },
     //重置表单查询信息
     handleResetForm() {
@@ -2042,7 +2044,7 @@ export default {
   display: none;
 }
 .upload-demo {
-  display: inline-block;
+  // display: inline-block;
 }
 .inputType {
   width: 180px;