|
|
|
@ -18,7 +18,7 @@ |
|
|
|
<span v-else-if="item.type==1" style="color:red">*</span> |
|
|
|
{{item.title}} |
|
|
|
</span> |
|
|
|
<sidebarContent :sidebarId="item.id" :dialogType="dialogType" :contentDatas="contentDatas"/> |
|
|
|
<sidebarContent :sidebarId="item.id" :dialogType="dialogType" :contentDatas="contentDatas" :contentDatas1="contentDatas1" /> |
|
|
|
</el-tab-pane> |
|
|
|
</el-tabs> |
|
|
|
</div> |
|
|
|
@ -50,7 +50,7 @@ |
|
|
|
<script> |
|
|
|
import {whySidebar} from '../dialog/sidebar.vue' |
|
|
|
import sidebarContent from '../dialog/content.vue' |
|
|
|
import {getAccountData,getAssetInfo,accountCheck,assertCheck,sendCheck,checkAssetOut} from '../../../api/index' |
|
|
|
import {getAccountData,getAssetInfo,accountCheck,assertCheck,sendCheck,checkAssetOut,getFileType} from '../../../api/index' |
|
|
|
import bus from '../bus' |
|
|
|
export default { |
|
|
|
name:'whyDialog', |
|
|
|
@ -106,7 +106,8 @@ export default { |
|
|
|
report:'' |
|
|
|
}, |
|
|
|
tabID:'', |
|
|
|
contentDatas:'' |
|
|
|
contentDatas:'', |
|
|
|
contentDatas1:'' |
|
|
|
} |
|
|
|
}, |
|
|
|
components:{ |
|
|
|
@ -127,7 +128,7 @@ export default { |
|
|
|
}) |
|
|
|
bus.$on('basics', (e) => { |
|
|
|
console.log(e) |
|
|
|
this.contentDatas=e; |
|
|
|
this.contentDatas1=e; |
|
|
|
// this.$message.success('保存成功,请点击右下角确定按钮进行提交!') |
|
|
|
this.$message.success('保存成功!') |
|
|
|
}) |
|
|
|
@ -142,15 +143,60 @@ export default { |
|
|
|
if (e.key=='else_file') { |
|
|
|
if (e.type==1) { |
|
|
|
this.contentDatas.else_file.push(e.url) |
|
|
|
this.contentDatas1.else_file.push(e.url.url) |
|
|
|
}else{ |
|
|
|
this.contentDatas.else_file[e.index]=e.url |
|
|
|
this.contentDatas1.else_file[e.index]=e.url.url |
|
|
|
} |
|
|
|
}else{ |
|
|
|
this.contentDatas[e.key]=e.url; |
|
|
|
this.contentDatas1[e.key]=e.url.url |
|
|
|
} |
|
|
|
}) |
|
|
|
}, |
|
|
|
methods:{ |
|
|
|
//获取文件类型 |
|
|
|
getFileType(type){ |
|
|
|
let data, |
|
|
|
t=this; |
|
|
|
if (type==0) { |
|
|
|
data={file_info:this.contentDatas} |
|
|
|
}else{ |
|
|
|
data={file_info:this.contentDatas.shop_data} |
|
|
|
} |
|
|
|
getFileType(data).then(res=>{ |
|
|
|
console.info(res) |
|
|
|
if (res.code==100 && res.file_info.length!=0) { |
|
|
|
if (type==0) { |
|
|
|
for(let v in t.contentDatas){ |
|
|
|
for(let key in res.file_info){ |
|
|
|
if(key==v &&res.file_info[key]!=''){ |
|
|
|
if (key=='else_file' && res.file_info['else_file'] ==null) { |
|
|
|
t.contentDatas[v] =[] |
|
|
|
}else{ |
|
|
|
t.contentDatas[v] =res.file_info[key] |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
}else{ |
|
|
|
for(let v in t.contentDatas.shop_data){ |
|
|
|
for(let key in res.file_info){ |
|
|
|
if(key==v &&res.file_info[key]!=''){ |
|
|
|
if (key=='else_file' && res.file_info['else_file'] ==null) { |
|
|
|
t.$set(t.contentDatas,v,[]) |
|
|
|
}else{ |
|
|
|
// t.contentDatas.shop_data[v] =res.file_info[key] |
|
|
|
t.$set(t.contentDatas.shop_data,v,res.file_info[key]) |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
console.info(t.contentDatas) |
|
|
|
} |
|
|
|
}) |
|
|
|
}, |
|
|
|
//资产管理资料查看 |
|
|
|
getAssetInfo(){ |
|
|
|
getAssetInfo(this.query).then(res => { |
|
|
|
@ -161,8 +207,10 @@ export default { |
|
|
|
}else{ |
|
|
|
res.data.establish_time=res.data.establish_time*1000 |
|
|
|
this.contentDatas=res.data |
|
|
|
console.info(this.contentDatas) |
|
|
|
this.contentDatas1=JSON.parse( JSON.stringify(res.data)) |
|
|
|
console.info(this.contentDatas1) |
|
|
|
this.init() |
|
|
|
this.getFileType(1) |
|
|
|
} |
|
|
|
} |
|
|
|
}); |
|
|
|
@ -181,8 +229,10 @@ export default { |
|
|
|
res.data.establish_time=0 |
|
|
|
} |
|
|
|
this.contentDatas=res.data |
|
|
|
console.info(this.contentDatas) |
|
|
|
this.contentDatas1=JSON.parse( JSON.stringify(res.data)) |
|
|
|
console.info(this.contentDatas1) |
|
|
|
this.init() |
|
|
|
this.getFileType(0) |
|
|
|
} |
|
|
|
} |
|
|
|
}); |
|
|
|
@ -197,19 +247,23 @@ export default { |
|
|
|
if (this.contentDatas.account_type==2) { |
|
|
|
this.dialogData.sidebar=[ |
|
|
|
{title:'个人风险评估',type:0,id:'assessment'},{title:'基础信息',type:1,id:'basics'},{title:'身份证(复印件)',type:1,id:'IDCard'}, |
|
|
|
{title:'数字证书申请表',type:1,id:'application'},{title:'资产证明文件',type:2,id:'assets'},{title:'其他要求文件',type:0,id:'elseFile'} |
|
|
|
// {title:'数字证书申请表',type:1,id:'application'}{title:'资产证明文件',type:2,id:'assets'}, |
|
|
|
{title:'其他要求文件',type:0,id:'elseFile'} |
|
|
|
] |
|
|
|
}else{ |
|
|
|
this.dialogData.sidebar=[ |
|
|
|
{title:'企业风险评估',type:0,id:'assessment'},{title:'基础信息',type:1,id:'basics'},{title:'营业执照(复印件)',type:1,id:'license'}, |
|
|
|
{title:'法人代表证明书',type:1,id:'certificate'},{title:'法人身份证(复印件)',type:1,id:'IDCard'},{title:'数字证书申请表',type:1,id:'application'}, |
|
|
|
{title:'法人代表证明书',type:1,id:'certificate'},{title:'法人身份证(复印件)',type:1,id:'IDCard'}, |
|
|
|
// {title:'数字证书申请表',type:1,id:'application'}, |
|
|
|
{title:'银行开户证明',type:1,id:'bankProve'},{title:'开户申请书与承诺书',type:1,id:'promise'},{title:'法人授权委托书',type:0,id:'entrust'}, |
|
|
|
{title:'经办人身份证(复印件)',type:0,id:'operatorIDCard'},{title:'资产证明文件',type:2,id:'assets'},{title:'其他要求文件',type:0,id:'elseFile'} |
|
|
|
{title:'经办人身份证(复印件)',type:0,id:'operatorIDCard'}, |
|
|
|
// {title:'资产证明文件',type:2,id:'assets'}, |
|
|
|
{title:'其他要求文件',type:0,id:'elseFile'} |
|
|
|
] |
|
|
|
} |
|
|
|
}else if(this.dialogType==2 ||this.dialogType==3){ |
|
|
|
this.dialogData.sidebar=[ |
|
|
|
{title:'企业风险评估',type:0,id:'assessment'},{title:'商家概况',type:1,id:'businessInfo'},{title:'资产概况',type:1,id:'assetsInfo'},{title:'资产评估/资产评价报告',type:1,id:'assetValuation'}, |
|
|
|
{title:'企业风险评估',type:0,id:'assessment'},{title:'挂牌方概况',type:1,id:'businessInfo'},{title:'资产概况',type:1,id:'assetsInfo'},{title:'资产评估/资产评价报告',type:1,id:'assetValuation'}, |
|
|
|
{title:'文化大数据标准编号',type:1,id:'dataNumber'} |
|
|
|
] |
|
|
|
// if (this.contentDatas.asset_data.else_serial_file!=null) { |
|
|
|
@ -217,15 +271,17 @@ export default { |
|
|
|
// } |
|
|
|
if (this.assets_type==1) { |
|
|
|
this.dialogData.title='资产信息'; |
|
|
|
this.dialogData.tips='以下为挂牌资产的相关信息'; |
|
|
|
}else if(this.assets_type==2){ |
|
|
|
this.dialogData.title='资产挂牌申请'; |
|
|
|
this.dialogData.tips='以下为挂牌资产的相关信息:'; |
|
|
|
} |
|
|
|
else if(this.assets_type==4){ |
|
|
|
this.dialogData.title='摘牌申请审核'; |
|
|
|
}else{ |
|
|
|
this.dialogData.title='资产发布审核'; |
|
|
|
} |
|
|
|
this.dialogData.tips='以下为资产:20棵沉香树采香权(一年期)的相关资料:'; |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
this.tabID=this.dialogData.sidebar[0].id |
|
|
|
@ -289,10 +345,11 @@ export default { |
|
|
|
}, |
|
|
|
// 提交账户管理资料查看/审核 |
|
|
|
saveAccountCheck(){ |
|
|
|
this.query.account_data=this.contentDatas |
|
|
|
console.info(this.contentDatas1) |
|
|
|
this.query.account_data=this.contentDatas1 |
|
|
|
this.query.account_data.establish_time=this.contentDatas.establish_time/1000; |
|
|
|
delete this.query.account_data['is_status']; |
|
|
|
delete this.query.account_data['id']; |
|
|
|
// delete this.query.account_data['id']; |
|
|
|
accountCheck(this.query).then(res => { |
|
|
|
console.log(res); |
|
|
|
if (res.code==100) { |
|
|
|
|