|
@@ -182,6 +182,27 @@
|
|
|
/>
|
|
|
</el-tab-pane>
|
|
|
|
|
|
+ <!-- 企业详情对话框 -->
|
|
|
+ <el-dialog :title="titleDetail" :visible.sync="openDetail" width="800px" append-to-body >
|
|
|
+ <el-form ref="formDetail" :model="formDetail" label-width="140px" :inline="true">
|
|
|
+ <el-form-item label="企业名称" prop="scyName" >
|
|
|
+ <el-input v-model="formDetail.scyName" placeholder="请输入企业名称" disabled style="width:560px" maxlength="20" show-word-limit/>
|
|
|
+ </el-form-item>
|
|
|
+ <el-form-item label="企业统一代码" prop="scySocialCode">
|
|
|
+ <el-input v-model="formDetail.scySocialCode" placeholder="请输入企业统一代码" disabled maxlength="18" show-word-limit/>
|
|
|
+ </el-form-item>
|
|
|
+ <el-form-item label="联系人" prop="scyLegal">
|
|
|
+ <el-input v-model="formDetail.scyLegal" placeholder="请输入联系人" disabled maxlength="5" show-word-limit/>
|
|
|
+ </el-form-item>
|
|
|
+ <el-form-item label="联系人手机号" prop="scyPhone">
|
|
|
+ <el-input v-model="formDetail.scyPhone" placeholder="请输入联系人手机号" disabled maxlength="11" show-word-limit/>
|
|
|
+ </el-form-item>
|
|
|
+ </el-form>
|
|
|
+ <div slot="footer" class="dialog-footer">
|
|
|
+ <el-button @click="cancelDetail">取 消</el-button>
|
|
|
+ </div>
|
|
|
+ </el-dialog>
|
|
|
+
|
|
|
<!-- 导入窗口 -->
|
|
|
<el-dialog :title="upload.title" :visible.sync="upload.open" width="400px" append-to-body>
|
|
|
<el-upload
|
|
@@ -219,9 +240,7 @@
|
|
|
<el-select
|
|
|
v-model="templateForm.scyId"
|
|
|
filterable
|
|
|
- remote
|
|
|
clearable
|
|
|
- allow-create
|
|
|
reserve-keyword
|
|
|
@clear="clearBoth"
|
|
|
placeholder="请选择核心企业"
|
|
@@ -295,8 +314,10 @@ export default {
|
|
|
// 弹出层标题
|
|
|
title: "",
|
|
|
templateTitle:'',
|
|
|
+ titleDetail : '',
|
|
|
// 是否显示弹出层
|
|
|
templateOpen : false,
|
|
|
+ openDetail : false,
|
|
|
// 导入参数
|
|
|
upload: {
|
|
|
// 是否显示弹出层(导入)
|
|
@@ -387,6 +408,12 @@ export default {
|
|
|
templateForm:{
|
|
|
scyId : null
|
|
|
},
|
|
|
+ formDetail:{
|
|
|
+ scyName : null,
|
|
|
+ scySocialCode : null,
|
|
|
+ scyLegal : null,
|
|
|
+ scyPhone : null
|
|
|
+ },
|
|
|
companyId:null,
|
|
|
templateRules: {
|
|
|
scyId:[
|
|
@@ -467,17 +494,33 @@ export default {
|
|
|
launchScrStatusFormat(row, column) {
|
|
|
return this.selectDictLabel(this.scrStatusOptions, row.launchScrStatus);
|
|
|
},
|
|
|
- //查看企业详情
|
|
|
+ //查询企业详情
|
|
|
handleCompanyQuery(row){
|
|
|
this.reset();
|
|
|
- if(row.launchScrLaunchType == "00"){
|
|
|
- const scyId = row.launchCompanyId;
|
|
|
- Cookies.set("/company/detailComPany/" + scyId + '/', this.$route.fullPath)
|
|
|
- this.$router.push("/company/detailComPany/" + scyId + '/');
|
|
|
- }else if(row.launchScrReceiveType == "00"){
|
|
|
- const scyId = row.launchReceiveScrCompanyId;
|
|
|
- Cookies.set("/company/detailComPany/" + scyId + '/', this.$route.fullPath)
|
|
|
- this.$router.push("/company/detailComPany/" + scyId + '/');
|
|
|
+ if(row.receive == true){
|
|
|
+ const scyId = row.launchCompanyId;
|
|
|
+ listCompanyQuery(scyId).then(response => {
|
|
|
+ if(response.data[0].scyStatus == '00'){
|
|
|
+ Cookies.set("/rel/detailComPany/" + scyId + '/', this.$route.fullPath)
|
|
|
+ this.$router.push("/rel/detailComPany/" + scyId + '/');
|
|
|
+ }else{
|
|
|
+ this.formDetail = response.data[0];
|
|
|
+ this.openDetail = true;
|
|
|
+ this.titleDetail = "详情企业信息";
|
|
|
+ }
|
|
|
+ });
|
|
|
+ }else if(row.launch == true){
|
|
|
+ const scyId = row.launchReceiveScrCompanyId;
|
|
|
+ listCompanyQuery(scyId).then(response => {
|
|
|
+ if(response.data[0].scyStatus == '00'){
|
|
|
+ Cookies.set("/rel/detailComPany/" + scyId + '/', this.$route.fullPath)
|
|
|
+ this.$router.push("/rel/detailComPany/" + scyId + '/');
|
|
|
+ }else{
|
|
|
+ this.formDetail = response.data[0];
|
|
|
+ this.openDetail = true;
|
|
|
+ this.titleDetail = "详情企业信息";
|
|
|
+ }
|
|
|
+ });
|
|
|
}
|
|
|
},
|
|
|
|
|
@@ -583,6 +626,10 @@ export default {
|
|
|
cancel() {
|
|
|
this.reset();
|
|
|
},
|
|
|
+ cancelDetail(){
|
|
|
+ this.openDetail = false;
|
|
|
+ this.reset();
|
|
|
+ },
|
|
|
// 表单重置
|
|
|
reset() {
|
|
|
this.form = {
|
|
@@ -595,6 +642,7 @@ export default {
|
|
|
scrContarctEmail : null
|
|
|
};
|
|
|
this.resetForm("form");
|
|
|
+ this.resetForm("fromDetail");
|
|
|
},
|
|
|
/** 搜索按钮操作 */
|
|
|
handleQuery() {
|