Browse Source

修改

dev_kxc
xzt 1 year ago
parent
commit
e83143c8c0
  1. 112
      jwtech-admin-page/src/views/projectAndEnterpriseBindingMange/enterpriseBinding/index.vue

112
jwtech-admin-page/src/views/projectAndEnterpriseBindingMange/enterpriseBinding/index.vue

@ -16,10 +16,10 @@
:inline="true" :inline="true"
v-show="showSearch" v-show="showSearch"
> >
<el-form-item label="项目名称" prop="projectName"> <el-form-item label="企业名称" prop="enterpriseName">
<el-input <el-input
v-model="queryParams.data.projectName" v-model="queryParams.data.enterpriseName"
placeholder="请输入项目名称" placeholder="请输入企业名称"
clearable clearable
size="small" size="small"
@keyup.enter.native="handleQuery" @keyup.enter.native="handleQuery"
@ -123,24 +123,55 @@
/> />
<el-table-column <el-table-column
label="项目名称" label="企业名称"
align="center" align="center"
prop="projectName" prop="enterpriseName"
min-width="120" min-width="120"
/> />
<el-table-column <el-table-column
label="项目编号" label="投资组成"
align="center" align="center"
prop="proNo" prop="investmentComposition"
min-width="120" min-width="120"
/> />
<el-table-column <el-table-column
label="行政区划" label="企业所属区划"
align="center" align="center"
prop="adcd" prop="adcd"
min-width="120" min-width="120"
:formatter="$formatAdcd" :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 <el-table-column
label="绑定状态" label="绑定状态"
align="center" align="center"
@ -288,7 +319,7 @@ export default {
pageSize: 10, pageSize: 10,
ids: null, ids: null,
data: { data: {
projectName: null, enterpriseName: null,
adcd: null, adcd: null,
}, },
// //
@ -333,8 +364,8 @@ export default {
title: "", title: "",
// //
multiple: true, multiple: true,
// //
proNos: [], ids: [],
// //
form: {}, form: {},
rules: { rules: {
@ -342,28 +373,14 @@ export default {
{ required: true, message: "请选择关联的项目", trigger: "blur" }, { required: true, message: "请选择关联的项目", trigger: "blur" },
], ],
}, },
// //
zd_projectTypeOptions: [], enterpriseTypeOptions: [],
//
ms_projectTypeOptions: [],
//
constructionNatureOptions: [],
//
projectNameOptions: [],
}; };
}, },
created() { created() {
this.getList(); this.getList();
this.getDicts("CONSTRUCTION_NATURE").then((response) => { this.getDicts("qualification_type").then((response) => {
this.constructionNatureOptions = response.data; this.enterpriseTypeOptions = 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.getTreeData(); this.getTreeData();
@ -381,26 +398,12 @@ export default {
this.loading = false; this.loading = false;
}); });
}, },
// //
constructionNatureFormat(row, column) { enterpriseTypeFormat(row, column) {
return this.selectDictLabel( return this.selectDictLabel(
this.constructionNatureOptions, this.enterpriseTypeOptions,
row.constructionNature row.enterpriseType
); ).replace("资质", "");
},
//
projectTypeFormat(row, column) {
if (row.isMajor == "zd") {
return this.selectDictLabel(
this.zd_projectTypeOptions,
row.projectType
);
} else if (row.isMajor == "ms") {
return this.selectDictLabel(
this.ms_projectTypeOptions,
row.projectType
);
}
}, },
// //
cancel() { cancel() {
@ -457,9 +460,9 @@ export default {
}, },
// //
handleSelectionChange(selection) { handleSelectionChange(selection) {
this.proNos = selection.map((item) => item.proNo); this.ids = selection.map((item) => item.id);
this.multiple = !selection.length; this.multiple = !selection.length;
console.log(1111, this.proNos); console.log(1111, this.ids);
}, },
/** 新增按钮操作 */ /** 新增按钮操作 */
@ -469,14 +472,13 @@ export default {
// }); // });
// this.open = true; // this.open = true;
// this.title = ""; // this.title = "";
let proNos = row.proNo ? [row.proNo] : this.proNos; let ids = row.id ? [row.id] : this.ids;
// this.form.proNo = proNos; this.submitForm(ids);
this.submitForm(proNos);
}, },
submitForm(proNos) { submitForm(ids) {
// this.$refs["form"].validate((valid) => { // this.$refs["form"].validate((valid) => {
// if (valid) { // if (valid) {
legalLinkEnterprise(proNos).then((res) => { legalLinkEnterprise(ids).then((res) => {
if (res.code === 200) { if (res.code === 200) {
this.msgSuccess("绑定成功"); this.msgSuccess("绑定成功");
// this.open = false; // this.open = false;

Loading…
Cancel
Save