|
@@ -2625,24 +2625,28 @@
|
|
ponuploadEnd(item,fileVal,bigType){
|
|
ponuploadEnd(item,fileVal,bigType){
|
|
var newobj={}
|
|
var newobj={}
|
|
var responseText=JSON.parse(item.responseText)
|
|
var responseText=JSON.parse(item.responseText)
|
|
- var url=responseText.fileName
|
|
|
|
- var urlOnline=responseText.urlOnline
|
|
|
|
- if(fileVal=='frsfzrmx'){
|
|
|
|
- this.datainfo.corporationFront=url;
|
|
|
|
- // 获取姓名 身份证号
|
|
|
|
- this.getocrIdCard(urlOnline,fileVal)
|
|
|
|
- }else if(fileVal=='frsfzghm'){
|
|
|
|
- this.datainfo.corporationBack=url
|
|
|
|
- }else if(fileVal=='frsfzpormx'){
|
|
|
|
- this.datainfo.spouseFront=url
|
|
|
|
- this.getocrIdCard(urlOnline,fileVal)
|
|
|
|
- }else if(fileVal=='frsfzpoghm'){
|
|
|
|
- this.datainfo.spouseBack=url
|
|
|
|
- // }else if(fileVal=='fdbrsfzrmx'){
|
|
|
|
- // this.getocrIdCard(urlOnline,fileVal)
|
|
|
|
- // this.datainfo.guaranteeFront=url
|
|
|
|
- // }else if(fileVal=='fdbrsfzghm'){
|
|
|
|
- // this.datainfo.guaranteeBack=url
|
|
|
|
|
|
+ if(responseText.code==200){
|
|
|
|
+ var url=responseText.fileName
|
|
|
|
+ var urlOnline=responseText.urlOnline
|
|
|
|
+ if(fileVal=='frsfzrmx'){
|
|
|
|
+ this.datainfo.corporationFront=url;
|
|
|
|
+ // 获取姓名 身份证号
|
|
|
|
+ this.getocrIdCard(urlOnline,fileVal)
|
|
|
|
+ }else if(fileVal=='frsfzghm'){
|
|
|
|
+ this.datainfo.corporationBack=url
|
|
|
|
+ }else if(fileVal=='frsfzpormx'){
|
|
|
|
+ this.datainfo.spouseFront=url
|
|
|
|
+ this.getocrIdCard(urlOnline,fileVal)
|
|
|
|
+ }else if(fileVal=='frsfzpoghm'){
|
|
|
|
+ this.datainfo.spouseBack=url
|
|
|
|
+ // }else if(fileVal=='fdbrsfzrmx'){
|
|
|
|
+ // this.getocrIdCard(urlOnline,fileVal)
|
|
|
|
+ // this.datainfo.guaranteeFront=url
|
|
|
|
+ // }else if(fileVal=='fdbrsfzghm'){
|
|
|
|
+ // this.datainfo.guaranteeBack=url
|
|
|
|
+ }
|
|
|
|
+ }else{
|
|
|
|
+ this.$toast(responseText.msg)
|
|
}
|
|
}
|
|
},
|
|
},
|
|
getDocumentList(){
|
|
getDocumentList(){
|
|
@@ -2762,15 +2766,19 @@
|
|
onuploadEnd(item,fileVal,bigType) {
|
|
onuploadEnd(item,fileVal,bigType) {
|
|
var newobj={}
|
|
var newobj={}
|
|
var responseText=JSON.parse(item.responseText)
|
|
var responseText=JSON.parse(item.responseText)
|
|
- newobj.name=responseText.newFileName;
|
|
|
|
- newobj.oldName=responseText.originalFilename;
|
|
|
|
- newobj.url=responseText.fileName;
|
|
|
|
- newobj.type=fileVal;
|
|
|
|
- newobj.bigType=bigType;
|
|
|
|
- this.filelist.push(newobj)
|
|
|
|
- this.datainfo.loanApplicationFjList=JSON.parse(JSON.stringify(this.filelist))
|
|
|
|
- if(fileVal=='fdbqyyyzz'){
|
|
|
|
- this.datainfo.guaranteeShareholderName='';
|
|
|
|
|
|
+ if(responseText.code==200){
|
|
|
|
+ newobj.name=responseText.newFileName;
|
|
|
|
+ newobj.oldName=responseText.originalFilename;
|
|
|
|
+ newobj.url=responseText.fileName;
|
|
|
|
+ newobj.type=fileVal;
|
|
|
|
+ newobj.bigType=bigType;
|
|
|
|
+ this.filelist.push(newobj)
|
|
|
|
+ this.datainfo.loanApplicationFjList=JSON.parse(JSON.stringify(this.filelist))
|
|
|
|
+ if(fileVal=='fdbqyyyzz'){
|
|
|
|
+ this.datainfo.guaranteeShareholderName='';
|
|
|
|
+ }
|
|
|
|
+ }else{
|
|
|
|
+ this.$toast(responseText.msg)
|
|
}
|
|
}
|
|
},
|
|
},
|
|
// 股东附件上传 fileVal 为索引
|
|
// 股东附件上传 fileVal 为索引
|
|
@@ -2779,67 +2787,79 @@
|
|
var type=bigType;
|
|
var type=bigType;
|
|
var obj=this.gdlist[idx];
|
|
var obj=this.gdlist[idx];
|
|
var responseText=JSON.parse(item.responseText);
|
|
var responseText=JSON.parse(item.responseText);
|
|
- if(type=='cardz'){
|
|
|
|
- obj.cardz=responseText.fileName
|
|
|
|
- }else if(type=='cardf'){
|
|
|
|
- obj.cardf=responseText.fileName
|
|
|
|
- }else if(type=='zx'){
|
|
|
|
- obj.zxurl.push(responseText.fileName)
|
|
|
|
- // obj.zxurl[0]=responseText.fileName
|
|
|
|
- }else if(type=='zhz'){
|
|
|
|
- // obj.zhizhao.push(responseText.fileName)
|
|
|
|
- // obj.zhizhao[0]=responseText.fileName
|
|
|
|
- this.getOcrBusinessLicense(responseText.urlOnline,responseText.fileName,idx)
|
|
|
|
- return
|
|
|
|
|
|
+ if(responseText.code==200){
|
|
|
|
+ if(type=='cardz'){
|
|
|
|
+ obj.cardz=responseText.fileName
|
|
|
|
+ }else if(type=='cardf'){
|
|
|
|
+ obj.cardf=responseText.fileName
|
|
|
|
+ }else if(type=='zx'){
|
|
|
|
+ obj.zxurl.push(responseText.fileName)
|
|
|
|
+ // obj.zxurl[0]=responseText.fileName
|
|
|
|
+ }else if(type=='zhz'){
|
|
|
|
+ // obj.zhizhao.push(responseText.fileName)
|
|
|
|
+ // obj.zhizhao[0]=responseText.fileName
|
|
|
|
+ this.getOcrBusinessLicense(responseText.urlOnline,responseText.fileName,idx)
|
|
|
|
+ return
|
|
|
|
+ }
|
|
|
|
+ console.log(this.gdlist,3)
|
|
|
|
+ this.gdlist.splice(idx,1,obj)
|
|
|
|
+ // this.datainfo.shareholderFjList=JSON.parse(JSON.stringify(this.gdlist))
|
|
|
|
+ }else{
|
|
|
|
+ this.$toast(responseText.msg)
|
|
}
|
|
}
|
|
- console.log(this.gdlist,3)
|
|
|
|
- this.gdlist.splice(idx,1,obj)
|
|
|
|
- // this.datainfo.shareholderFjList=JSON.parse(JSON.stringify(this.gdlist))
|
|
|
|
},
|
|
},
|
|
// 反担保附件上传bigType 为索引
|
|
// 反担保附件上传bigType 为索引
|
|
fdbuploadEnd(item,fileVal,bigType){
|
|
fdbuploadEnd(item,fileVal,bigType){
|
|
var idx=Number(bigType);
|
|
var idx=Number(bigType);
|
|
var obj=this.fdarlist[idx].guaranteeInfoFjList;
|
|
var obj=this.fdarlist[idx].guaranteeInfoFjList;
|
|
var responseText=JSON.parse(item.responseText);
|
|
var responseText=JSON.parse(item.responseText);
|
|
- var urlOnline=responseText.urlOnline
|
|
|
|
- // 附件赋值
|
|
|
|
- var newobj={};
|
|
|
|
- newobj.name=responseText.newFileName;
|
|
|
|
- newobj.oldName=responseText.originalFilename;
|
|
|
|
- newobj.url=responseText.fileName;
|
|
|
|
- newobj.type=fileVal;
|
|
|
|
- if(fileVal=='fdbrsfzrmx'||fileVal=='fdbrsfzghm'){//身份证
|
|
|
|
- // 找索引
|
|
|
|
- const index = obj.findIndex(text => text.type === fileVal);
|
|
|
|
- if(index!=-1){
|
|
|
|
- this.fdarlist[idx].guaranteeInfoFjList.splice(index,1,newobj)
|
|
|
|
- }else{
|
|
|
|
- this.fdarlist[idx].guaranteeInfoFjList.push(newobj)
|
|
|
|
- }
|
|
|
|
- if(fileVal=='fdbrsfzrmx'){
|
|
|
|
- this.getocrIdCard(urlOnline,fileVal,idx)
|
|
|
|
|
|
+ if(responseText.code==200){
|
|
|
|
+ var urlOnline=responseText.urlOnline
|
|
|
|
+ // 附件赋值
|
|
|
|
+ var newobj={};
|
|
|
|
+ newobj.name=responseText.newFileName;
|
|
|
|
+ newobj.oldName=responseText.originalFilename;
|
|
|
|
+ newobj.url=responseText.fileName;
|
|
|
|
+ newobj.type=fileVal;
|
|
|
|
+ if(fileVal=='fdbrsfzrmx'||fileVal=='fdbrsfzghm'){//身份证
|
|
|
|
+ // 找索引
|
|
|
|
+ const index = obj.findIndex(text => text.type === fileVal);
|
|
|
|
+ if(index!=-1){
|
|
|
|
+ this.fdarlist[idx].guaranteeInfoFjList.splice(index,1,newobj)
|
|
|
|
+ }else{
|
|
|
|
+ this.fdarlist[idx].guaranteeInfoFjList.push(newobj)
|
|
|
|
+ }
|
|
|
|
+ if(fileVal=='fdbrsfzrmx'){
|
|
|
|
+ this.getocrIdCard(urlOnline,fileVal,idx)
|
|
|
|
+ }
|
|
|
|
+ return
|
|
}
|
|
}
|
|
- return
|
|
|
|
|
|
+ this.fdarlist[idx].guaranteeInfoFjList.push(newobj)
|
|
|
|
+ }else{
|
|
|
|
+ this.$toast(responseText.msg)
|
|
}
|
|
}
|
|
- this.fdarlist[idx].guaranteeInfoFjList.push(newobj)
|
|
|
|
},
|
|
},
|
|
// 反担保企业附件上传bigType 为索引
|
|
// 反担保企业附件上传bigType 为索引
|
|
fdbqyuploadEnd(item,fileVal,bigType){
|
|
fdbqyuploadEnd(item,fileVal,bigType){
|
|
var idx=Number(bigType);
|
|
var idx=Number(bigType);
|
|
var obj=this.fdaqylist[idx].guaranteeInfoFjList;
|
|
var obj=this.fdaqylist[idx].guaranteeInfoFjList;
|
|
var responseText=JSON.parse(item.responseText);
|
|
var responseText=JSON.parse(item.responseText);
|
|
- var urlOnline=responseText.urlOnline
|
|
|
|
- // 附件赋值
|
|
|
|
- var newobj={};
|
|
|
|
- newobj.name=responseText.newFileName;
|
|
|
|
- newobj.oldName=responseText.originalFilename;
|
|
|
|
- newobj.url=responseText.fileName;
|
|
|
|
- newobj.type=fileVal;
|
|
|
|
- if(fileVal=='fdbqyyyzz'){
|
|
|
|
- this.getOcrBusinessLicensefdb(newobj,urlOnline,idx)
|
|
|
|
- return
|
|
|
|
|
|
+ if(responseText.code==200){
|
|
|
|
+ var urlOnline=responseText.urlOnline
|
|
|
|
+ // 附件赋值
|
|
|
|
+ var newobj={};
|
|
|
|
+ newobj.name=responseText.newFileName;
|
|
|
|
+ newobj.oldName=responseText.originalFilename;
|
|
|
|
+ newobj.url=responseText.fileName;
|
|
|
|
+ newobj.type=fileVal;
|
|
|
|
+ if(fileVal=='fdbqyyyzz'){
|
|
|
|
+ this.getOcrBusinessLicensefdb(newobj,urlOnline,idx)
|
|
|
|
+ return
|
|
|
|
+ }
|
|
|
|
+ this.fdaqylist[idx].guaranteeInfoFjList.push(newobj)
|
|
|
|
+ }else{
|
|
|
|
+ this.$toast(responseText.msg)
|
|
}
|
|
}
|
|
- this.fdaqylist[idx].guaranteeInfoFjList.push(newobj)
|
|
|
|
},
|
|
},
|
|
// 申请附件上传
|
|
// 申请附件上传
|
|
fjonuploadEnd(item,fileVal,bigType,idx){
|
|
fjonuploadEnd(item,fileVal,bigType,idx){
|
|
@@ -2847,13 +2867,16 @@
|
|
var newobj={};
|
|
var newobj={};
|
|
var sbfjlist=this.sbfjlist[idx].fjlist;
|
|
var sbfjlist=this.sbfjlist[idx].fjlist;
|
|
var responseText=JSON.parse(item.responseText)
|
|
var responseText=JSON.parse(item.responseText)
|
|
- newobj.name=responseText.newFileName;
|
|
|
|
- newobj.oldName=responseText.originalFilename;
|
|
|
|
- newobj.url=responseText.fileName;
|
|
|
|
- newobj.type=fileVal;
|
|
|
|
- newobj.bigType=bigType;
|
|
|
|
- this.sbfjlist[idx].fjlist.push(newobj)
|
|
|
|
-
|
|
|
|
|
|
+ if(responseText.code==200){
|
|
|
|
+ newobj.name=responseText.newFileName;
|
|
|
|
+ newobj.oldName=responseText.originalFilename;
|
|
|
|
+ newobj.url=responseText.fileName;
|
|
|
|
+ newobj.type=fileVal;
|
|
|
|
+ newobj.bigType=bigType;
|
|
|
|
+ this.sbfjlist[idx].fjlist.push(newobj)
|
|
|
|
+ }else{
|
|
|
|
+ this.$toast(responseText.msg)
|
|
|
|
+ }
|
|
},
|
|
},
|
|
getDelsbFj(idx,fidx){
|
|
getDelsbFj(idx,fidx){
|
|
var that=this;
|
|
var that=this;
|