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"
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) {
//
enterpriseTypeFormat(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") {
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;

Loading…
Cancel
Save