|
@@ -45,6 +45,20 @@
|
|
|
></el-option>
|
|
></el-option>
|
|
|
</el-select>
|
|
</el-select>
|
|
|
</el-form-item>
|
|
</el-form-item>
|
|
|
|
|
+ <el-form-item label="认证状态" prop="scpStatus">
|
|
|
|
|
+ <el-select v-model="queryParams.scpStatus"
|
|
|
|
|
+ placeholder="认证状态"
|
|
|
|
|
+ clearable
|
|
|
|
|
+ size="small"
|
|
|
|
|
+ style="width: 215px">
|
|
|
|
|
+ <el-option
|
|
|
|
|
+ v-for="dict in scpStatusOptions"
|
|
|
|
|
+ :key="dict.dictValue"
|
|
|
|
|
+ :label="dict.dictLabel"
|
|
|
|
|
+ :value="dict.dictValue"
|
|
|
|
|
+ ></el-option>
|
|
|
|
|
+ </el-select>
|
|
|
|
|
+ </el-form-item>
|
|
|
<el-form-item label="链属关系" prop="scrType">
|
|
<el-form-item label="链属关系" prop="scrType">
|
|
|
<el-select v-model="queryParams.scrType"
|
|
<el-select v-model="queryParams.scrType"
|
|
|
placeholder="链属关系"
|
|
placeholder="链属关系"
|
|
@@ -94,46 +108,75 @@
|
|
|
<el-table-column label="社会统一代码" align="center" prop="companyCode" v-if="uncheckList.companyCode" show-overflow-tooltip>
|
|
<el-table-column label="社会统一代码" align="center" prop="companyCode" v-if="uncheckList.companyCode" show-overflow-tooltip>
|
|
|
<template slot-scope="scope">
|
|
<template slot-scope="scope">
|
|
|
<span v-if="scope.row.launch">{{scope.row.receiveScySocialCode}}</span>
|
|
<span v-if="scope.row.launch">{{scope.row.receiveScySocialCode}}</span>
|
|
|
- <span v-else>{{scope.row.launchScySocialCode}}</span>
|
|
|
|
|
|
|
+ <span v-if="scope.row.receive">{{scope.row.launchScySocialCode}}</span>
|
|
|
|
|
+ <span v-if="scope.row.spare">{{scope.row.scpSocialCode}}</span>
|
|
|
</template>
|
|
</template>
|
|
|
</el-table-column>
|
|
</el-table-column>
|
|
|
<el-table-column label="企业名称" align="center" prop="companyName" v-if="uncheckList.companyName" show-overflow-tooltip>
|
|
<el-table-column label="企业名称" align="center" prop="companyName" v-if="uncheckList.companyName" show-overflow-tooltip>
|
|
|
<template slot-scope="scope">
|
|
<template slot-scope="scope">
|
|
|
<span v-if="scope.row.launch">{{scope.row.receiveScyName}}</span>
|
|
<span v-if="scope.row.launch">{{scope.row.receiveScyName}}</span>
|
|
|
- <span v-else>{{scope.row.launchScyName}}</span>
|
|
|
|
|
|
|
+ <span v-if="scope.row.receive">{{scope.row.launchScyName}}</span>
|
|
|
|
|
+ <span v-if="scope.row.spare">{{scope.row.scpName}}</span>
|
|
|
</template>
|
|
</template>
|
|
|
</el-table-column>
|
|
</el-table-column>
|
|
|
<el-table-column label="链属关系" align="center" prop="companyType" v-if="uncheckList.companyType">
|
|
<el-table-column label="链属关系" align="center" prop="companyType" v-if="uncheckList.companyType">
|
|
|
<template slot-scope="scope">
|
|
<template slot-scope="scope">
|
|
|
<span v-if="scope.row.launch">{{companyTypeFormat(scope.row.launchScrReceiveType)}}</span>
|
|
<span v-if="scope.row.launch">{{companyTypeFormat(scope.row.launchScrReceiveType)}}</span>
|
|
|
- <span v-else>{{companyTypeFormat(scope.row.launchScrLaunchType)}}</span>
|
|
|
|
|
|
|
+ <span v-if="scope.row.receive">{{companyTypeFormat(scope.row.launchScrLaunchType)}}</span>
|
|
|
|
|
+ <span v-if="scope.row.spare">{{companyTypeFormat(scope.row.scpType)}}</span>
|
|
|
</template>
|
|
</template>
|
|
|
</el-table-column>
|
|
</el-table-column>
|
|
|
- <el-table-column label="联系人" align="center" prop="launchScrContarct" v-if="uncheckList.launchScrContarct">
|
|
|
|
|
|
|
+ <el-table-column label="联系人" align="center" prop="scpContarct" v-if="uncheckList.scpContarct">
|
|
|
</el-table-column>
|
|
</el-table-column>
|
|
|
- <el-table-column label="联系电话" align="center" prop="launchScrContarctPhone" v-if="uncheckList.launchScrContarctPhone">
|
|
|
|
|
|
|
+ <el-table-column label="联系电话" align="center" prop="scpContarctPhone" v-if="uncheckList.scpContarctPhone">
|
|
|
</el-table-column>
|
|
</el-table-column>
|
|
|
- <el-table-column label="邮箱" align="center" prop="launchScrContarctEmail" v-if="uncheckList.launchScrContarctEmail" show-overflow-tooltip>
|
|
|
|
|
|
|
+ <el-table-column label="邮箱" align="center" prop="scpContarctEmail" v-if="uncheckList.scpContarctEmail" show-overflow-tooltip>
|
|
|
</el-table-column>
|
|
</el-table-column>
|
|
|
- <el-table-column label="状态" align="center" prop="launchScrStatus" v-if="uncheckList.launchScrStatus" :formatter="launchScrStatusFormat">
|
|
|
|
|
|
|
+ <el-table-column label="链属状态" align="center" prop="launchScrStatus" v-if="uncheckList.launchScrStatus" :formatter="launchScrStatusFormat">
|
|
|
|
|
+ </el-table-column>
|
|
|
|
|
+ <el-table-column label="认证状态" align="center" prop="scpStatus" v-if="uncheckList.scpStatus" :formatter="scpStatusFormat">
|
|
|
</el-table-column>
|
|
</el-table-column>
|
|
|
<el-table-column label="操作" align="center" class-name="small-padding fixed-width" width="150">
|
|
<el-table-column label="操作" align="center" class-name="small-padding fixed-width" width="150">
|
|
|
<template slot-scope="scope">
|
|
<template slot-scope="scope">
|
|
|
<el-button
|
|
<el-button
|
|
|
|
|
+ v-if="!scope.row.spare"
|
|
|
size="mini"
|
|
size="mini"
|
|
|
type="text"
|
|
type="text"
|
|
|
@click="handleCompanyQuery(scope.row)"
|
|
@click="handleCompanyQuery(scope.row)"
|
|
|
v-hasPermi="['service:rel:query']"
|
|
v-hasPermi="['service:rel:query']"
|
|
|
>详情</el-button>
|
|
>详情</el-button>
|
|
|
<el-button
|
|
<el-button
|
|
|
- v-if="scope.row.launch && scope.row.launchScrReceiveType == '01' && scope.row.launchScrStatus =='01'"
|
|
|
|
|
- v-else="scope.row.launchScrLaunchType == '01' && scope.row.launchScrStatus =='01'"
|
|
|
|
|
|
|
+ v-if="scope.row.launch && scope.row.launchScrStatus == '02'"
|
|
|
|
|
+ size="mini"
|
|
|
|
|
+ type="text"
|
|
|
|
|
+ @click="handleRelInvite(scope.row)"
|
|
|
|
|
+ v-hasPermi="['service:rel:update']"
|
|
|
|
|
+ >重邀</el-button>
|
|
|
|
|
+ <el-button
|
|
|
|
|
+ v-if="handleRel && scope.row.launchScrStatus == '01'"
|
|
|
size="mini"
|
|
size="mini"
|
|
|
type="text"
|
|
type="text"
|
|
|
@click="handleDelete(scope.row)"
|
|
@click="handleDelete(scope.row)"
|
|
|
v-hasPermi="['service:rel:delete']"
|
|
v-hasPermi="['service:rel:delete']"
|
|
|
>解绑</el-button>
|
|
>解绑</el-button>
|
|
|
<el-button
|
|
<el-button
|
|
|
|
|
+ v-if="scope.row.spare && scope.row.scpStatus == '00'"
|
|
|
|
|
+ size="mini"
|
|
|
|
|
+ type="text"
|
|
|
|
|
+ @click="handleSpareDelete(scope.row)"
|
|
|
|
|
+ v-hasPermi="['service:spare:removeSpare']"
|
|
|
|
|
+ >解绑</el-button>
|
|
|
|
|
+ <el-button
|
|
|
|
|
+ v-if="
|
|
|
|
|
+ scope.row.scpInvite == '1' && scope.row.scpStatus == '00'
|
|
|
|
|
+ && scope.row.scpContarct && scope.row.scpContarctPhone
|
|
|
|
|
+ "
|
|
|
|
|
+ size="mini"
|
|
|
|
|
+ type="text"
|
|
|
|
|
+ @click="handleInvite(scope.row)"
|
|
|
|
|
+ v-hasPermi="['service:spare:invite']"
|
|
|
|
|
+ >重邀</el-button>
|
|
|
|
|
+ <el-button
|
|
|
v-if="handleRel && scope.row.launchScrStatus =='00' && scope.row.receive"
|
|
v-if="handleRel && scope.row.launchScrStatus =='00' && scope.row.receive"
|
|
|
size="mini"
|
|
size="mini"
|
|
|
type="text"
|
|
type="text"
|
|
@@ -249,7 +292,7 @@
|
|
|
<el-table-column label="操作" align="center" class-name="small-padding fixed-width" width="150">
|
|
<el-table-column label="操作" align="center" class-name="small-padding fixed-width" width="150">
|
|
|
<template slot-scope="scope">
|
|
<template slot-scope="scope">
|
|
|
<el-button
|
|
<el-button
|
|
|
- v-if="scope.row.scpInvite == '1'"
|
|
|
|
|
|
|
+ v-if="scope.row.scpInvite == '1' && scope.row.scpContarct && scope.row.scpContarctPhone"
|
|
|
size="mini"
|
|
size="mini"
|
|
|
type="text"
|
|
type="text"
|
|
|
@click="handleInvite(scope.row)"
|
|
@click="handleInvite(scope.row)"
|
|
@@ -259,7 +302,7 @@
|
|
|
size="mini"
|
|
size="mini"
|
|
|
type="text"
|
|
type="text"
|
|
|
@click="handleSpareDelete(scope.row)"
|
|
@click="handleSpareDelete(scope.row)"
|
|
|
- v-hasPermi="['service:rel:delete']"
|
|
|
|
|
|
|
+ v-hasPermi="['service:spare:removeSpare']"
|
|
|
>解绑</el-button>
|
|
>解绑</el-button>
|
|
|
</template>
|
|
</template>
|
|
|
</el-table-column>
|
|
</el-table-column>
|
|
@@ -468,7 +511,8 @@ export default {
|
|
|
companyName: null,
|
|
companyName: null,
|
|
|
scySocialCode: null,
|
|
scySocialCode: null,
|
|
|
scrStatus: null,
|
|
scrStatus: null,
|
|
|
- scrType: null
|
|
|
|
|
|
|
+ scrType: null,
|
|
|
|
|
+ scpStatus : null
|
|
|
},
|
|
},
|
|
|
//未认证列表查询参数
|
|
//未认证列表查询参数
|
|
|
spareParams:{
|
|
spareParams:{
|
|
@@ -499,20 +543,24 @@ export default {
|
|
|
value: '链属关系'
|
|
value: '链属关系'
|
|
|
},
|
|
},
|
|
|
{
|
|
{
|
|
|
- label: 'launchScrContarct',
|
|
|
|
|
|
|
+ label: 'scpContarct',
|
|
|
value: '联系人'
|
|
value: '联系人'
|
|
|
},
|
|
},
|
|
|
{
|
|
{
|
|
|
- label: 'launchScrContarctPhone',
|
|
|
|
|
|
|
+ label: 'scpContarctPhone',
|
|
|
value: '联系电话'
|
|
value: '联系电话'
|
|
|
},
|
|
},
|
|
|
{
|
|
{
|
|
|
- label: 'launchScrContarctEmail',
|
|
|
|
|
|
|
+ label: 'scpContarctEmail',
|
|
|
value: '邮箱'
|
|
value: '邮箱'
|
|
|
},
|
|
},
|
|
|
{
|
|
{
|
|
|
label: 'launchScrStatus',
|
|
label: 'launchScrStatus',
|
|
|
- value: '状态'
|
|
|
|
|
|
|
+ value: '链属状态'
|
|
|
|
|
+ },
|
|
|
|
|
+ {
|
|
|
|
|
+ label: 'scpStatus',
|
|
|
|
|
+ value: '认证状态'
|
|
|
},
|
|
},
|
|
|
],
|
|
],
|
|
|
checkList: [],//筛选列选中的数据列表--显示隐藏列用
|
|
checkList: [],//筛选列选中的数据列表--显示隐藏列用
|
|
@@ -577,7 +625,7 @@ export default {
|
|
|
},
|
|
},
|
|
|
};
|
|
};
|
|
|
},
|
|
},
|
|
|
- activated() {
|
|
|
|
|
|
|
+ created() {
|
|
|
this.getDicts("sys_scr_status").then(response => {
|
|
this.getDicts("sys_scr_status").then(response => {
|
|
|
this.scrStatusOptions = response.data;
|
|
this.scrStatusOptions = response.data;
|
|
|
});
|
|
});
|
|
@@ -697,9 +745,15 @@ export default {
|
|
|
if (list[i].launchCompanyId == response.msg) {
|
|
if (list[i].launchCompanyId == response.msg) {
|
|
|
list[i].receive = false;
|
|
list[i].receive = false;
|
|
|
list[i].launch = true;
|
|
list[i].launch = true;
|
|
|
|
|
+ list[i].spare = false;
|
|
|
}else if(list[i].launchReceiveScrCompanyId == response.msg){
|
|
}else if(list[i].launchReceiveScrCompanyId == response.msg){
|
|
|
list[i].launch = false;
|
|
list[i].launch = false;
|
|
|
list[i].receive = true;
|
|
list[i].receive = true;
|
|
|
|
|
+ list[i].spare = false;
|
|
|
|
|
+ }else if(list[i].scpCompanyId == response.msg){
|
|
|
|
|
+ list[i].launch = false;
|
|
|
|
|
+ list[i].receive = false;
|
|
|
|
|
+ list[i].spare = true;
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
this.companyRelList = list;
|
|
this.companyRelList = list;
|
|
@@ -874,12 +928,14 @@ submitForm() {
|
|
|
console.log(self.form,"提交表单")
|
|
console.log(self.form,"提交表单")
|
|
|
addRel(self.form).then(response => {
|
|
addRel(self.form).then(response => {
|
|
|
this.msgSuccess("新增成功");
|
|
this.msgSuccess("新增成功");
|
|
|
|
|
+ loading.close();
|
|
|
this.open = false;
|
|
this.open = false;
|
|
|
this.getList();
|
|
this.getList();
|
|
|
this.getSpare();
|
|
this.getSpare();
|
|
|
this.getCompanyList();
|
|
this.getCompanyList();
|
|
|
|
|
+ }).catch((response) => {
|
|
|
|
|
+ loading.close();
|
|
|
});
|
|
});
|
|
|
- loading.close();
|
|
|
|
|
}
|
|
}
|
|
|
});
|
|
});
|
|
|
},
|
|
},
|
|
@@ -888,10 +944,10 @@ submitForm() {
|
|
|
const launchScrId = row.launchScrId || this.ids;
|
|
const launchScrId = row.launchScrId || this.ids;
|
|
|
if (row.launchCompanyId == this.loginId) {
|
|
if (row.launchCompanyId == this.loginId) {
|
|
|
const scyName = row.receiveScyName;
|
|
const scyName = row.receiveScyName;
|
|
|
- this.$confirm('确认与"' + scyName + '"的链属关系?', "警告", {
|
|
|
|
|
|
|
+ this.$confirm('确认与"' + scyName + '"的链属关系?',"确认链属",{
|
|
|
confirmButtonText: "确定",
|
|
confirmButtonText: "确定",
|
|
|
cancelButtonText: "取消",
|
|
cancelButtonText: "取消",
|
|
|
- type: "warning"
|
|
|
|
|
|
|
+ type: "success"
|
|
|
}).then(function() {
|
|
}).then(function() {
|
|
|
const state = "01";
|
|
const state = "01";
|
|
|
return updateRel(launchScrId,state);
|
|
return updateRel(launchScrId,state);
|
|
@@ -909,10 +965,10 @@ submitForm() {
|
|
|
});
|
|
});
|
|
|
}else if(row.launchReceiveScrCompanyId == this.loginId){
|
|
}else if(row.launchReceiveScrCompanyId == this.loginId){
|
|
|
const scyName = row.launchScyName;
|
|
const scyName = row.launchScyName;
|
|
|
- this.$confirm('确认与"' + scyName + '"的链属关系?', "警告", {
|
|
|
|
|
|
|
+ this.$confirm('确认与"' + scyName + '"的链属关系?',"确认链属",{
|
|
|
confirmButtonText: "确定",
|
|
confirmButtonText: "确定",
|
|
|
cancelButtonText: "取消",
|
|
cancelButtonText: "取消",
|
|
|
- type: "warning"
|
|
|
|
|
|
|
+ type: "success"
|
|
|
}).then(function() {
|
|
}).then(function() {
|
|
|
const state = "01";
|
|
const state = "01";
|
|
|
return updateRel(launchScrId,state);
|
|
return updateRel(launchScrId,state);
|
|
@@ -931,6 +987,54 @@ submitForm() {
|
|
|
});
|
|
});
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
|
|
|
+ //重邀拒绝链属
|
|
|
|
|
+ handleRelInvite(row){
|
|
|
|
|
+ const launchScrId = row.launchScrId || this.ids;
|
|
|
|
|
+ if (row.launchCompanyId == this.loginId) {
|
|
|
|
|
+ const scyName = row.receiveScyName;
|
|
|
|
|
+ this.$confirm('邀请与"' + scyName + '"的链属关系?',"邀请",{
|
|
|
|
|
+ confirmButtonText: "确定",
|
|
|
|
|
+ cancelButtonText: "取消",
|
|
|
|
|
+ type: "info"
|
|
|
|
|
+ }).then(function() {
|
|
|
|
|
+ const state = "00";
|
|
|
|
|
+ return updateRel(launchScrId,state);
|
|
|
|
|
+ }).then(() => {
|
|
|
|
|
+ this.msgSuccess("邀请成功");
|
|
|
|
|
+ this.getList();
|
|
|
|
|
+ this.getSpare();
|
|
|
|
|
+ this.getCompanyList();
|
|
|
|
|
+ })
|
|
|
|
|
+ .catch(() => {
|
|
|
|
|
+ this.$message({
|
|
|
|
|
+ type: "warning",
|
|
|
|
|
+ message: "已取消邀请",
|
|
|
|
|
+ });
|
|
|
|
|
+ });
|
|
|
|
|
+ }else if(row.launchReceiveScrCompanyId == this.loginId){
|
|
|
|
|
+ const scyName = row.launchScyName;
|
|
|
|
|
+ this.$confirm('邀请与"' + scyName + '"的链属关系?',"邀请",{
|
|
|
|
|
+ confirmButtonText: "确定",
|
|
|
|
|
+ cancelButtonText: "取消",
|
|
|
|
|
+ type: "info"
|
|
|
|
|
+ }).then(function() {
|
|
|
|
|
+ const state = "01";
|
|
|
|
|
+ return updateRel(launchScrId,state);
|
|
|
|
|
+ }).then(() => {
|
|
|
|
|
+ this.msgSuccess("邀请成功");
|
|
|
|
|
+ this.getList();
|
|
|
|
|
+ this.getSpare();
|
|
|
|
|
+ this.getCompanyList();
|
|
|
|
|
+ })
|
|
|
|
|
+ .catch(() => {
|
|
|
|
|
+ this.$message({
|
|
|
|
|
+ type: "warning",
|
|
|
|
|
+ message: "已取消邀请",
|
|
|
|
|
+
|
|
|
|
|
+ });
|
|
|
|
|
+ });
|
|
|
|
|
+ }
|
|
|
|
|
+ },
|
|
|
/* 拒绝链属 */
|
|
/* 拒绝链属 */
|
|
|
handleRefuse(row){
|
|
handleRefuse(row){
|
|
|
const launchScrId = row.launchScrId || this.ids;
|
|
const launchScrId = row.launchScrId || this.ids;
|
|
@@ -1038,8 +1142,10 @@ submitForm() {
|
|
|
}).then(function() {
|
|
}).then(function() {
|
|
|
return removeSpare(scpId);
|
|
return removeSpare(scpId);
|
|
|
}).then(() => {
|
|
}).then(() => {
|
|
|
- this.getSpare();
|
|
|
|
|
this.msgSuccess("解绑成功");
|
|
this.msgSuccess("解绑成功");
|
|
|
|
|
+ this.getList();
|
|
|
|
|
+ this.getSpare();
|
|
|
|
|
+ this.getCompanyList();
|
|
|
})
|
|
})
|
|
|
.catch(() => {
|
|
.catch(() => {
|
|
|
this.$message({
|
|
this.$message({
|
|
@@ -1059,9 +1165,6 @@ submitForm() {
|
|
|
background: "rgba(0, 0, 0, 0.7)",
|
|
background: "rgba(0, 0, 0, 0.7)",
|
|
|
})
|
|
})
|
|
|
againInvite(row).then(response => {
|
|
againInvite(row).then(response => {
|
|
|
- this.getList();
|
|
|
|
|
- this.getSpare();
|
|
|
|
|
- this.getCompanyList();
|
|
|
|
|
}).then(() => {
|
|
}).then(() => {
|
|
|
this.msgSuccess("重邀成功");
|
|
this.msgSuccess("重邀成功");
|
|
|
this.getList();
|
|
this.getList();
|