|
|
@ -133,9 +133,9 @@ |
|
|
|
:formatter="projectTypeFormat" |
|
|
|
min-width="120" |
|
|
|
/> |
|
|
|
<!-- <el-table-column label="项目法人" align="center" prop="unitLeader" min-width="120" /> --> |
|
|
|
<!-- <el-table-column label="项目法人负责人" align="center" prop="unitLeader" min-width="120" /> --> |
|
|
|
<!-- <el-table-column |
|
|
|
label="项目法人" |
|
|
|
label="项目法人负责人" |
|
|
|
align="center" |
|
|
|
prop="projectLegalPerson" |
|
|
|
min-width="120" |
|
|
@ -326,7 +326,7 @@ |
|
|
|
</el-col> |
|
|
|
<!-- 标绘 --> |
|
|
|
<el-col :span="12"> |
|
|
|
<el-form-item label="项目标绘" prop="aaa"> |
|
|
|
<el-form-item label="项目标绘" prop="allLatitudeLongitudeList"> |
|
|
|
<el-button type="primary" style="width: 150px" @click="openDraw" |
|
|
|
>标绘</el-button |
|
|
|
> |
|
|
@ -342,7 +342,7 @@ |
|
|
|
</el-form-item> |
|
|
|
</el-col> |
|
|
|
<!-- <el-col :span="12"> |
|
|
|
<el-form-item label="项目法人" prop="unitLeader"> |
|
|
|
<el-form-item label="项目法人负责人" prop="unitLeader"> |
|
|
|
<el-input |
|
|
|
v-model="form.unitLeader" |
|
|
|
placeholder="请输入项目法人" |
|
|
@ -350,7 +350,7 @@ |
|
|
|
</el-form-item> |
|
|
|
</el-col> --> |
|
|
|
<el-col :span="12"> |
|
|
|
<el-form-item label="项目法人" prop="projectLegalPerson"> |
|
|
|
<el-form-item label="项目法人负责人" prop="projectLegalPerson"> |
|
|
|
<el-input |
|
|
|
v-model="form.projectLegalPerson" |
|
|
|
placeholder="请输入项目法人" |
|
|
@ -450,7 +450,7 @@ |
|
|
|
/> --> |
|
|
|
<el-select |
|
|
|
v-model="form.engineeringPurposes" |
|
|
|
placeholder="请输入工程用途" |
|
|
|
placeholder="请选择工程用途" |
|
|
|
filterable |
|
|
|
clearable |
|
|
|
size="small" |
|
|
@ -465,12 +465,8 @@ |
|
|
|
</el-select> |
|
|
|
</el-form-item> |
|
|
|
</el-col> |
|
|
|
<el-col :span="12"> |
|
|
|
<!-- <el-col :span="12"> |
|
|
|
<el-form-item label="工程类别" prop="workCategory"> |
|
|
|
<!-- <el-input |
|
|
|
v-model="form.workCategory" |
|
|
|
placeholder="请输入工程类别" |
|
|
|
/> --> |
|
|
|
<el-select |
|
|
|
v-model="form.workCategory" |
|
|
|
placeholder="请输入工程用途" |
|
|
@ -487,7 +483,7 @@ |
|
|
|
/> |
|
|
|
</el-select> |
|
|
|
</el-form-item> |
|
|
|
</el-col> |
|
|
|
</el-col> --> |
|
|
|
<el-col :span="12"> |
|
|
|
<el-form-item label="项目建设地址" prop="constructionAddress"> |
|
|
|
<el-input |
|
|
@ -504,7 +500,7 @@ |
|
|
|
/> --> |
|
|
|
<el-select |
|
|
|
v-model="form.constructionMode" |
|
|
|
placeholder="请输入建设模式" |
|
|
|
placeholder="请选择建设模式" |
|
|
|
filterable |
|
|
|
clearable |
|
|
|
size="small" |
|
|
@ -527,7 +523,7 @@ |
|
|
|
/> --> |
|
|
|
<el-select |
|
|
|
v-model="form.constructionNature" |
|
|
|
placeholder="请输入建设模式" |
|
|
|
placeholder="请选择建设性质" |
|
|
|
filterable |
|
|
|
clearable |
|
|
|
size="small" |
|
|
@ -542,9 +538,11 @@ |
|
|
|
</el-select> |
|
|
|
</el-form-item> |
|
|
|
</el-col> |
|
|
|
<el-col :span="12"> |
|
|
|
<el-col :span="24"> |
|
|
|
<el-form-item label="建设内容" prop="constructionContent"> |
|
|
|
<el-input |
|
|
|
type="textarea" |
|
|
|
rows="4" |
|
|
|
v-model="form.constructionContent" |
|
|
|
placeholder="请输入建设内容" |
|
|
|
/> |
|
|
@ -739,22 +737,23 @@ |
|
|
|
</el-select> |
|
|
|
</el-form-item> |
|
|
|
</el-col> |
|
|
|
<el-col :span="12"> |
|
|
|
<!-- <el-col :span="12"> |
|
|
|
<el-form-item label="建设阶段" prop="constructionPhase"> |
|
|
|
<el-input |
|
|
|
v-model="form.constructionPhase" |
|
|
|
placeholder="请输入建设阶段" |
|
|
|
/> |
|
|
|
</el-form-item> |
|
|
|
</el-col> |
|
|
|
<el-col :span="24"> |
|
|
|
</el-col> --> |
|
|
|
|
|
|
|
<!-- <el-col :span="24"> |
|
|
|
<el-form-item label="项目投资主体" prop="investmentSubject"> |
|
|
|
<el-input |
|
|
|
v-model="form.investmentSubject" |
|
|
|
placeholder="请输入项目投资主体" |
|
|
|
/> |
|
|
|
</el-form-item> |
|
|
|
</el-col> |
|
|
|
</el-col> --> |
|
|
|
</el-form> |
|
|
|
</el-row> |
|
|
|
<!-- <div slot="footer" class="dialog-footer"> --> |
|
|
@ -797,7 +796,7 @@ |
|
|
|
{{ this.proMsg.projectName + "[" + this.proMsg.proCode + "]" }} |
|
|
|
</el-descriptions-item> |
|
|
|
<!-- <el-descriptions-item> |
|
|
|
<template slot="label"> 项目法人 </template> |
|
|
|
<template slot="label"> 项目法人负责人 </template> |
|
|
|
{{ this.proMsg.projectLegalPerson }} |
|
|
|
</el-descriptions-item> --> |
|
|
|
<el-descriptions-item> |
|
|
@ -820,10 +819,10 @@ |
|
|
|
<template slot="label"> 工程用途 </template> |
|
|
|
{{ engineeringPurposesFormat(this.proMsg) }} |
|
|
|
</el-descriptions-item> |
|
|
|
<el-descriptions-item> |
|
|
|
<!-- <el-descriptions-item> |
|
|
|
<template slot="label"> 工程类别 </template> |
|
|
|
{{ workCategoryFormat(this.proMsg) }} |
|
|
|
</el-descriptions-item> |
|
|
|
</el-descriptions-item> --> |
|
|
|
|
|
|
|
<el-descriptions-item> |
|
|
|
<template slot="label"> 建设模式 </template> |
|
|
@ -911,14 +910,14 @@ |
|
|
|
<template slot="label"> 是否172项重大水利工程 </template> |
|
|
|
{{ this.proMsg.isMajorProject }} |
|
|
|
</el-descriptions-item> |
|
|
|
<el-descriptions-item> |
|
|
|
<!-- <el-descriptions-item> |
|
|
|
<template slot="label"> 项目投资主体 </template> |
|
|
|
{{ this.proMsg.investmentSubject }} |
|
|
|
</el-descriptions-item> |
|
|
|
<el-descriptions-item> |
|
|
|
</el-descriptions-item> --> |
|
|
|
<!-- <el-descriptions-item> |
|
|
|
<template slot="label"> 建设阶段 </template> |
|
|
|
{{ this.proMsg.constructionPhase }} |
|
|
|
</el-descriptions-item> |
|
|
|
</el-descriptions-item> --> |
|
|
|
<el-descriptions-item> |
|
|
|
<template slot="label"> 资金下达文号 </template> |
|
|
|
{{ this.proMsg.fundingNumber }} |
|
|
@ -1086,6 +1085,34 @@ export default { |
|
|
|
}, |
|
|
|
{ max: 250, message: "字符长度最大为250", trigger: "blur" }, |
|
|
|
], |
|
|
|
allLatitudeLongitudeList: [ |
|
|
|
{ |
|
|
|
required: true, |
|
|
|
message: "请进行项目标绘", |
|
|
|
trigger: "blur", |
|
|
|
}, |
|
|
|
], |
|
|
|
projectType: [ |
|
|
|
{ |
|
|
|
required: true, |
|
|
|
message: "请选择项目类型", |
|
|
|
trigger: "blur", |
|
|
|
}, |
|
|
|
], |
|
|
|
engineeringGrade: [ |
|
|
|
{ |
|
|
|
required: true, |
|
|
|
message: "请选择工程等别", |
|
|
|
trigger: "blur", |
|
|
|
}, |
|
|
|
], |
|
|
|
engineeringPurposes: [ |
|
|
|
{ |
|
|
|
required: true, |
|
|
|
message: "请选择工程用途", |
|
|
|
trigger: "blur", |
|
|
|
}, |
|
|
|
], |
|
|
|
projectLegalUnit: [ |
|
|
|
{ max: 250, message: "字符长度最大为250", trigger: "blur" }, |
|
|
|
], |
|
|
@ -1098,9 +1125,33 @@ export default { |
|
|
|
{ max: 250, message: "字符长度最大为250", trigger: "blur" }, |
|
|
|
], |
|
|
|
constructionAddress: [ |
|
|
|
{ |
|
|
|
required: true, |
|
|
|
message: "请输入项目建设地址", |
|
|
|
trigger: "blur", |
|
|
|
}, |
|
|
|
{ max: 250, message: "字符长度最大为250", trigger: "blur" }, |
|
|
|
], |
|
|
|
constructionMode: [ |
|
|
|
{ |
|
|
|
required: true, |
|
|
|
message: "请选择建设模式", |
|
|
|
trigger: "blur", |
|
|
|
}, |
|
|
|
], |
|
|
|
constructionNature: [ |
|
|
|
{ |
|
|
|
required: true, |
|
|
|
message: "请选择建设性质", |
|
|
|
trigger: "blur", |
|
|
|
}, |
|
|
|
], |
|
|
|
constructionContent: [ |
|
|
|
{ |
|
|
|
required: true, |
|
|
|
message: "请输入建设内容", |
|
|
|
trigger: "blur", |
|
|
|
}, |
|
|
|
{ max: 6550, message: "字符长度最大为6550", trigger: "blur" }, |
|
|
|
], |
|
|
|
basin: [{ max: 250, message: "字符长度最大为250", trigger: "blur" }], |
|
|
@ -1512,6 +1563,9 @@ export default { |
|
|
|
updateUid: null, |
|
|
|
updateTime: null, |
|
|
|
owerDept: null, |
|
|
|
pointLatitudeLongitudeList: null, |
|
|
|
lineLatitudeLongitudeList: null, |
|
|
|
allLatitudeLongitudeList: null, |
|
|
|
}; |
|
|
|
this.resetForm("form"); |
|
|
|
}, |
|
|
@ -1562,6 +1616,9 @@ export default { |
|
|
|
updateUid: null, |
|
|
|
updateTime: null, |
|
|
|
owerDept: null, |
|
|
|
pointLatitudeLongitudeList: null, |
|
|
|
lineLatitudeLongitudeList: null, |
|
|
|
allLatitudeLongitudeList: null, |
|
|
|
}, |
|
|
|
// 排序方式 |
|
|
|
params: { |
|
|
@ -1651,51 +1708,58 @@ export default { |
|
|
|
}, |
|
|
|
/** 提交按钮 */ |
|
|
|
submitForm() { |
|
|
|
this.$refs["form"].validate((valid) => { |
|
|
|
if (valid) { |
|
|
|
this.form.isMajor = this.radio; |
|
|
|
if (this.proNo) { |
|
|
|
this.form.proNo = this.proNo; |
|
|
|
} |
|
|
|
if (this.proCode) { |
|
|
|
this.form.proCode = this.proCode; |
|
|
|
} |
|
|
|
if (this.adcd) { |
|
|
|
this.form.adcd = this.adcd; |
|
|
|
} |
|
|
|
if ( |
|
|
|
this.form.projectName && |
|
|
|
this.form.projectName.indexOf("[") != -1 |
|
|
|
) { |
|
|
|
this.form.projectName = this.form.projectName.slice( |
|
|
|
0, |
|
|
|
this.form.projectName.indexOf("[") |
|
|
|
); |
|
|
|
} |
|
|
|
this.form.pointLatitudeLongitudeList = JSON.stringify(this.potMsg); |
|
|
|
this.form.lineLatitudeLongitudeList = JSON.stringify(this.lineMsg); |
|
|
|
this.form.allLatitudeLongitudeList = JSON.stringify(this.allDrawMsg); |
|
|
|
console.log(this.form); |
|
|
|
// console.log("this.form.isMajor", this.form.isMajor); |
|
|
|
if (this.form.id != null) { |
|
|
|
updateInfo(this.form).then((response) => { |
|
|
|
if (response.code === 200) { |
|
|
|
this.msgSuccess("修改成功"); |
|
|
|
this.open = false; |
|
|
|
this.getList(); |
|
|
|
} |
|
|
|
}); |
|
|
|
} else { |
|
|
|
addInfo(this.form).then((response) => { |
|
|
|
if (response.code === 200) { |
|
|
|
this.msgSuccess("新增成功"); |
|
|
|
this.open = false; |
|
|
|
this.getList(); |
|
|
|
} |
|
|
|
}); |
|
|
|
this.form.pointLatitudeLongitudeList = JSON.stringify(this.potMsg); |
|
|
|
this.form.lineLatitudeLongitudeList = JSON.stringify(this.lineMsg); |
|
|
|
this.form.allLatitudeLongitudeList = JSON.stringify(this.allDrawMsg); |
|
|
|
console.log( |
|
|
|
"allLatitudeLongitudeList", |
|
|
|
this.form.allLatitudeLongitudeList |
|
|
|
); |
|
|
|
setTimeout(() => { |
|
|
|
this.$refs["form"].validate((valid) => { |
|
|
|
if (valid) { |
|
|
|
this.form.isMajor = this.radio; |
|
|
|
if (this.proNo) { |
|
|
|
this.form.proNo = this.proNo; |
|
|
|
} |
|
|
|
if (this.proCode) { |
|
|
|
this.form.proCode = this.proCode; |
|
|
|
} |
|
|
|
if (this.adcd) { |
|
|
|
this.form.adcd = this.adcd; |
|
|
|
} |
|
|
|
if ( |
|
|
|
this.form.projectName && |
|
|
|
this.form.projectName.indexOf("[") != -1 |
|
|
|
) { |
|
|
|
this.form.projectName = this.form.projectName.slice( |
|
|
|
0, |
|
|
|
this.form.projectName.indexOf("[") |
|
|
|
); |
|
|
|
} |
|
|
|
|
|
|
|
console.log(this.form); |
|
|
|
// console.log("this.form.isMajor", this.form.isMajor); |
|
|
|
if (this.form.id != null) { |
|
|
|
updateInfo(this.form).then((response) => { |
|
|
|
if (response.code === 200) { |
|
|
|
this.msgSuccess("修改成功"); |
|
|
|
this.open = false; |
|
|
|
this.getList(); |
|
|
|
} |
|
|
|
}); |
|
|
|
} else { |
|
|
|
addInfo(this.form).then((response) => { |
|
|
|
if (response.code === 200) { |
|
|
|
this.msgSuccess("新增成功"); |
|
|
|
this.open = false; |
|
|
|
this.getList(); |
|
|
|
} |
|
|
|
}); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
}); |
|
|
|
}); |
|
|
|
}, 10); |
|
|
|
}, |
|
|
|
/** 删除按钮操作 */ |
|
|
|
handleDelete(row) { |
|
|
|