|
|
@ -228,6 +228,23 @@ |
|
|
|
> |
|
|
|
<el-row :gutter="15"> |
|
|
|
<el-form ref="form" :model="form" :rules="rules" label-width="110px"> |
|
|
|
<el-col :span="12"> |
|
|
|
<el-form-item label="是否属于规划内" prop="isBelongPlanning"> |
|
|
|
<el-select |
|
|
|
v-model="form.isBelongPlanning" |
|
|
|
placeholder="是否属于规划内" |
|
|
|
clearable |
|
|
|
size="small" |
|
|
|
> |
|
|
|
<el-option |
|
|
|
v-for="dict in IS" |
|
|
|
:key="dict" |
|
|
|
:label="dict" |
|
|
|
:value="dict" |
|
|
|
/> |
|
|
|
</el-select> |
|
|
|
</el-form-item> |
|
|
|
</el-col> |
|
|
|
<el-col :span="12"> |
|
|
|
<el-form-item label="项目名称" prop="projectName"> |
|
|
|
<el-select |
|
|
@ -242,6 +259,7 @@ |
|
|
|
:key="dict.projectName + dict.id" |
|
|
|
:label="dict.projectName + '[' + dict.projectCode + ']'" |
|
|
|
:value="dict.projectName + '[' + dict.projectCode + ']'" |
|
|
|
@click.native="getId(dict)" |
|
|
|
/> |
|
|
|
</el-select> |
|
|
|
</el-form-item> |
|
|
@ -542,6 +560,14 @@ export default { |
|
|
|
}); |
|
|
|
}, |
|
|
|
methods: { |
|
|
|
getId(res) { |
|
|
|
// console.log(res) |
|
|
|
getProposal(res.id).then((response) => { |
|
|
|
// console.log(response.data) |
|
|
|
this.projectType = response.data.projectType; |
|
|
|
this.proNo = res.proNo; |
|
|
|
}); |
|
|
|
}, |
|
|
|
clear() { |
|
|
|
this.fileList = []; |
|
|
|
this.attachmentList = []; |
|
|
@ -705,6 +731,8 @@ export default { |
|
|
|
); |
|
|
|
if (valid) { |
|
|
|
if (this.form.id != null) { |
|
|
|
this.form.proNo = this.proNo; |
|
|
|
this.form.projectType = this.projectType; |
|
|
|
updateFeasibility(this.form).then((response) => { |
|
|
|
if (response.code === 200) { |
|
|
|
this.msgSuccess("修改成功"); |
|
|
@ -714,6 +742,7 @@ export default { |
|
|
|
}); |
|
|
|
} else { |
|
|
|
this.form.proNo = this.proNo; |
|
|
|
this.form.projectType = this.projectType; |
|
|
|
addFeasibility(this.form).then((response) => { |
|
|
|
if (response.code === 200) { |
|
|
|
this.msgSuccess("新增成功"); |
|
|
|