Commit 82c48271 authored by wanghao's avatar wanghao

1 老旧管网改造-新增企业调整-改成下拉动态获取

parent 968365b0
......@@ -187,8 +187,15 @@
</el-col>
<el-col :span="12">
<el-form-item label="燃气企业" prop="beyondEnterpriseId">
<el-input v-model="enterpriseName" :disabled="true"></el-input>
<el-form-item label="燃气企业" prop="beyondEnterpriseId">
<el-select style="width: 100%;" :disabled="isDisabledEnterprise" v-model="form.beyondEnterpriseId" placeholder="请选择">
<el-option
v-for="item in enterprises"
:key="item.enterpriseId"
:label="item.enterpriseName"
:value="item.enterpriseId">
</el-option>
</el-select>
</el-form-item>
<!--<el-form-item label="燃气企业编码" prop="fEntUuid">-->
<!--<el-input v-model="form.fEntUuid" placeholder="请输入燃气企业编码" />-->
......@@ -307,14 +314,14 @@
<el-col :span="12">
<el-form-item label="当前改造进度/百分比" prop="fReconstructionProgress">
<el-input-number style="width: 100%;" v-model="form.fReconstructionProgress" class="left-aligned-input" :controls="false" :min="0" :max="100" precision="2" placeholder="请输入当前改造进度/百分比" />
<el-form-item label="改造进度/百分比" prop="fReconstructionProgress">
<el-input-number style="width: 100%;" v-model="form.fReconstructionProgress" class="left-aligned-input" :controls="false" :min="0" :max="100" precision="2" placeholder="请输入改造进度/百分比" />
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="当前资金拨付进度/百分比" prop="fFundsDisbursementProgress">
<el-input-number style="width: 100%;" v-model="form.fFundsDisbursementProgress" class="left-aligned-input" :controls="false" :min="0" :max="100" precision="2" placeholder="请输入当前资金拨付进度/百分比" />
<el-form-item label="资金拨付进度/百分比" prop="fFundsDisbursementProgress">
<el-input-number style="width: 100%;" v-model="form.fFundsDisbursementProgress" class="left-aligned-input" :controls="false" :min="0" :max="100" precision="2" placeholder="请输入资金拨付进度/百分比" />
</el-form-item>
</el-col>
</el-row>
......@@ -348,6 +355,7 @@ export default {
return {
enterpriseName:"",
user:{},
isDisabledEnterprise: false,
enterprises: [],
countyInfo: [],
// 遮罩层
......@@ -435,18 +443,9 @@ export default {
//所属单位
getEnterpriseLists(){
const param = {};
// this.judgeOperateType(param);
enterpriseLists(param).then(response => {
if (response.rows.length>1){
this.enterprises = response.rows;
this.enterpriseName = response.rows[0].enterpriseName;
}else {
this.enterprises = response.rows;
this.enterpriseName = response.rows[0].enterpriseName;
}
this.enterprises = response.rows;
});
console.log(this.enterprises)
},
beyondEnterpriseFormat(row){
let info = this.enterprises.find(item => item.enterpriseId == row.beyondEnterpriseId);
......@@ -583,6 +582,11 @@ export default {
this.reset();
this.open = true;
this.title = "添加老旧管网改造计划";
// 说明是 企业在新增,直接赋值显示就行了。
if (this.enterprises.length == 1) {
this.form.beyondEnterpriseId = this.enterprises[0].enterpriseId
this.isDisabledEnterprise = true;
}
},
/** 修改按钮操作 */
handleUpdate(row) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment