|
|
@ -16,10 +16,10 @@ |
|
|
|
:inline="true" |
|
|
|
v-show="showSearch" |
|
|
|
> |
|
|
|
<el-form-item label="项目名称" prop="projectName"> |
|
|
|
<el-form-item label="企业名称" prop="enterpriseName"> |
|
|
|
<el-input |
|
|
|
v-model="queryParams.data.projectName" |
|
|
|
placeholder="请输入项目名称" |
|
|
|
v-model="queryParams.data.enterpriseName" |
|
|
|
placeholder="请输入企业名称" |
|
|
|
clearable |
|
|
|
size="small" |
|
|
|
@keyup.enter.native="handleQuery" |
|
|
@ -123,24 +123,55 @@ |
|
|
|
/> |
|
|
|
|
|
|
|
<el-table-column |
|
|
|
label="项目名称" |
|
|
|
label="企业名称" |
|
|
|
align="center" |
|
|
|
prop="projectName" |
|
|
|
prop="enterpriseName" |
|
|
|
min-width="120" |
|
|
|
/> |
|
|
|
<el-table-column |
|
|
|
label="项目编号" |
|
|
|
label="投资组成" |
|
|
|
align="center" |
|
|
|
prop="proNo" |
|
|
|
prop="investmentComposition" |
|
|
|
min-width="120" |
|
|
|
/> |
|
|
|
<el-table-column |
|
|
|
label="行政区划" |
|
|
|
label="企业所属区划" |
|
|
|
align="center" |
|
|
|
prop="adcd" |
|
|
|
min-width="120" |
|
|
|
:formatter="$formatAdcd" |
|
|
|
/> |
|
|
|
<el-table-column |
|
|
|
label="企业类型" |
|
|
|
align="center" |
|
|
|
prop="enterpriseType" |
|
|
|
:formatter="enterpriseTypeFormat" |
|
|
|
min-width="120" |
|
|
|
/> |
|
|
|
<el-table-column |
|
|
|
label="成立日期" |
|
|
|
align="center" |
|
|
|
prop="establishmentDate" |
|
|
|
width="180" |
|
|
|
> |
|
|
|
<template slot-scope="scope"> |
|
|
|
<span>{{ |
|
|
|
parseTime(scope.row.establishmentDate, "{y}-{m}-{d}") |
|
|
|
}}</span> |
|
|
|
</template> |
|
|
|
</el-table-column> |
|
|
|
<el-table-column |
|
|
|
label="法定代表人" |
|
|
|
align="center" |
|
|
|
prop="legalRepresentative" |
|
|
|
min-width="120" |
|
|
|
/> |
|
|
|
<el-table-column |
|
|
|
label="法人身份证号" |
|
|
|
align="center" |
|
|
|
prop="corporateIdNumber" |
|
|
|
min-width="120" |
|
|
|
/> |
|
|
|
<el-table-column |
|
|
|
label="绑定状态" |
|
|
|
align="center" |
|
|
@ -288,7 +319,7 @@ export default { |
|
|
|
pageSize: 10, |
|
|
|
ids: null, |
|
|
|
data: { |
|
|
|
projectName: null, |
|
|
|
enterpriseName: null, |
|
|
|
adcd: null, |
|
|
|
}, |
|
|
|
// 排序方式 |
|
|
@ -333,8 +364,8 @@ export default { |
|
|
|
title: "", |
|
|
|
// 非多个禁用 |
|
|
|
multiple: true, |
|
|
|
// 选中的项目数组 |
|
|
|
proNos: [], |
|
|
|
// 选中的企业数组 |
|
|
|
ids: [], |
|
|
|
// 表单参数 |
|
|
|
form: {}, |
|
|
|
rules: { |
|
|
@ -342,28 +373,14 @@ export default { |
|
|
|
{ required: true, message: "请选择关联的项目", trigger: "blur" }, |
|
|
|
], |
|
|
|
}, |
|
|
|
// 重大项目字典 |
|
|
|
zd_projectTypeOptions: [], |
|
|
|
// 面上项目字典 |
|
|
|
ms_projectTypeOptions: [], |
|
|
|
// 建设性质字典 |
|
|
|
constructionNatureOptions: [], |
|
|
|
//项目名称 |
|
|
|
projectNameOptions: [], |
|
|
|
// 企业资质字典 |
|
|
|
enterpriseTypeOptions: [], |
|
|
|
}; |
|
|
|
}, |
|
|
|
created() { |
|
|
|
this.getList(); |
|
|
|
this.getDicts("CONSTRUCTION_NATURE").then((response) => { |
|
|
|
this.constructionNatureOptions = response.data; |
|
|
|
}); |
|
|
|
this.getDicts("major_project").then((response) => { |
|
|
|
// console.log("4444444444444444", response.data); |
|
|
|
this.zd_projectTypeOptions = response.data; |
|
|
|
}); |
|
|
|
this.getDicts("general_project").then((response) => { |
|
|
|
// console.log("5555555555555", response.data); |
|
|
|
this.ms_projectTypeOptions = response.data; |
|
|
|
this.getDicts("qualification_type").then((response) => { |
|
|
|
this.enterpriseTypeOptions = response.data; |
|
|
|
}); |
|
|
|
|
|
|
|
this.getTreeData(); |
|
|
@ -381,26 +398,12 @@ export default { |
|
|
|
this.loading = false; |
|
|
|
}); |
|
|
|
}, |
|
|
|
// 建设性质字典 |
|
|
|
constructionNatureFormat(row, column) { |
|
|
|
return this.selectDictLabel( |
|
|
|
this.constructionNatureOptions, |
|
|
|
row.constructionNature |
|
|
|
); |
|
|
|
}, |
|
|
|
// 项目类型字典翻译 |
|
|
|
projectTypeFormat(row, column) { |
|
|
|
if (row.isMajor == "zd") { |
|
|
|
return this.selectDictLabel( |
|
|
|
this.zd_projectTypeOptions, |
|
|
|
row.projectType |
|
|
|
); |
|
|
|
} else if (row.isMajor == "ms") { |
|
|
|
// 资质类别字典翻译 |
|
|
|
enterpriseTypeFormat(row, column) { |
|
|
|
return this.selectDictLabel( |
|
|
|
this.ms_projectTypeOptions, |
|
|
|
row.projectType |
|
|
|
); |
|
|
|
} |
|
|
|
this.enterpriseTypeOptions, |
|
|
|
row.enterpriseType |
|
|
|
).replace("资质", ""); |
|
|
|
}, |
|
|
|
// 取消按钮 |
|
|
|
cancel() { |
|
|
@ -457,9 +460,9 @@ export default { |
|
|
|
}, |
|
|
|
// 多选框选中数据 |
|
|
|
handleSelectionChange(selection) { |
|
|
|
this.proNos = selection.map((item) => item.proNo); |
|
|
|
this.ids = selection.map((item) => item.id); |
|
|
|
this.multiple = !selection.length; |
|
|
|
console.log(1111, this.proNos); |
|
|
|
console.log(1111, this.ids); |
|
|
|
}, |
|
|
|
|
|
|
|
/** 新增按钮操作 */ |
|
|
@ -469,14 +472,13 @@ export default { |
|
|
|
// }); |
|
|
|
// this.open = true; |
|
|
|
// this.title = "绑定项目"; |
|
|
|
let proNos = row.proNo ? [row.proNo] : this.proNos; |
|
|
|
// this.form.proNo = proNos; |
|
|
|
this.submitForm(proNos); |
|
|
|
let ids = row.id ? [row.id] : this.ids; |
|
|
|
this.submitForm(ids); |
|
|
|
}, |
|
|
|
submitForm(proNos) { |
|
|
|
submitForm(ids) { |
|
|
|
// this.$refs["form"].validate((valid) => { |
|
|
|
// if (valid) { |
|
|
|
legalLinkEnterprise(proNos).then((res) => { |
|
|
|
legalLinkEnterprise(ids).then((res) => { |
|
|
|
if (res.code === 200) { |
|
|
|
this.msgSuccess("绑定成功"); |
|
|
|
// this.open = false; |
|
|
|