|
|
@@ -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(){
|