peixh %!s(int64=4) %!d(string=hai) anos
pai
achega
7bc372f396
Modificáronse 1 ficheiros con 22 adicións e 10 borrados
  1. 22 10
      front-vue/src/views/service/financeRecord/recordSeal.vue

+ 22 - 10
front-vue/src/views/service/financeRecord/recordSeal.vue

@@ -551,17 +551,29 @@ export default {
     },
      //获取合同文件
     getContractFile(){
-        
-         getContractFile(this.zcFinanceInf).then((response) => {
-                if(response.data.list){
-                    this.pdfFileList = response.data.list;
-                }
-            });
-        //文件存在
-        if(this.pdfFileList.length > 0 ){
+        const loading = this.$loading({
+            lock: true,
+            text: 'Loading',
+            background: 'rgba(0, 0, 0,0)'
+        });
+        getContractFile(this.zcFinanceInf).then((response) => {
+            loading.close();
+            if(response.data.list){
+                this.pdfFileList = response.data.list;
+            }
+                //文件存在
+            if(this.pdfFileList.length > 0 ){
                 this.pdfShowDialog = true;
-                
-        }
+
+            }else{
+                this.$message({
+                message: '文件不存在!',
+                type: 'warning'
+                });
+            }
+        }).catch((response)=>{
+            loading.close();
+        });
     },
     //选择类型
     selectType(){