Browse Source

问题修改

rongxin_dev
庞东旭 1 day ago
parent
commit
6c2b097197
2 changed files with 7 additions and 10 deletions
  1. +2
    -2
      src/views/sunVillage_info/list_operatingAssets_detail.vue
  2. +5
    -8
      src/views/sunVillage_info/list_operatingAssets_detail2.vue

+ 2
- 2
src/views/sunVillage_info/list_operatingAssets_detail.vue View File

@@ -7,7 +7,7 @@
<div class="list_main"> <div class="list_main">
<van-divider>固定资产信息</van-divider> <van-divider>固定资产信息</van-divider>
<van-field readonly v-model="form.name" type="textarea" autosize label="资产名称" placeholder="资产名称" input-align="right" :border="false"/> <van-field readonly v-model="form.name" type="textarea" autosize label="资产名称" placeholder="资产名称" input-align="right" :border="false"/>
<van-field readonly v-model="form.useType" label="使用状态" placeholder="使用状态" input-align="right" :border="false"/>
<van-field readonly v-model="form.useTypeText" label="使用状态" placeholder="使用状态" input-align="right" :border="false"/>
<van-field readonly v-model="form.originalValue + '元'" label="原值" placeholder="原值" input-align="right" :border="false"/> <van-field readonly v-model="form.originalValue + '元'" label="原值" placeholder="原值" input-align="right" :border="false"/>
<van-field readonly v-model="form.buildTime" label="购建时间" placeholder="构建时间" input-align="right" :border="false"/> <van-field readonly v-model="form.buildTime" label="购建时间" placeholder="构建时间" input-align="right" :border="false"/>
<van-field readonly v-model="form.quantity" label="数量" placeholder="数量" input-align="right" :border="false"/> <van-field readonly v-model="form.quantity" label="数量" placeholder="数量" input-align="right" :border="false"/>
@@ -47,7 +47,7 @@
}; };
jyxzcqkgkDetail(this.$route.query.id).then((res) => { jyxzcqkgkDetail(this.$route.query.id).then((res) => {
if (res.code === 200) { if (res.code === 200) {
res.data.useType = this.selectDictLabel(this.useTypeOptions, res.data.useType);
res.data.useTypeText = this.selectDictLabel(this.useTypeOptions, res.data.useType);
this.form = res.data; this.form = res.data;
} }
}) })


+ 5
- 8
src/views/sunVillage_info/list_operatingAssets_detail2.vue View File

@@ -6,8 +6,8 @@
</div> </div>
<div class="list_main"> <div class="list_main">
<van-divider>资源性资产信息</van-divider> <van-divider>资源性资产信息</van-divider>
<van-field readonly v-model="form.resourceType" label="资源类型" placeholder="资源类型" input-align="right" :border="false"/>
<van-field readonly v-model="form.useType" label="使用情况" placeholder="使用情况" input-align="right" :border="false"/>
<van-field readonly v-model="form.resourceTypeText" label="资源类型" placeholder="资源类型" input-align="right" :border="false"/>
<van-field readonly v-model="form.useTypeText" label="使用情况" placeholder="使用情况" input-align="right" :border="false"/>
<van-field readonly v-model="form.totalArea + '亩'" label="面积" placeholder="面积" input-align="right" :border="false"/> <van-field readonly v-model="form.totalArea + '亩'" label="面积" placeholder="面积" input-align="right" :border="false"/>
<div v-if="form.contractionId"> <div v-if="form.contractionId">
<van-divider>关联合同信息</van-divider> <van-divider>关联合同信息</van-divider>
@@ -29,7 +29,7 @@
return { return {
form: {}, form: {},
useTypeOptions: [], useTypeOptions: [],
usedTypeOptions: [],
usedAreaOptions: [],
resourceTypeOptions: [] resourceTypeOptions: []
}; };
}, },
@@ -37,9 +37,6 @@
this.getDicts("use_type").then((response) => { this.getDicts("use_type").then((response) => {
this.useTypeOptions = response.data; this.useTypeOptions = response.data;
}); });
this.getDicts("used_area").then((response) => {
this.usedTypeOptions = response.data;
});
this.getDicts("resource_type").then((response) => { this.getDicts("resource_type").then((response) => {
this.resourceTypeOptions = response.data; this.resourceTypeOptions = response.data;
}); });
@@ -54,8 +51,8 @@
}; };
jyxzyqkgkDetail(this.$route.query.id).then((res) => { jyxzyqkgkDetail(this.$route.query.id).then((res) => {
if (res.code === 200) { if (res.code === 200) {
res.data.useType = this.selectDictLabel(this.useTypeOptions, res.data.useType);
res.data.resourceType = this.selectDictLabel(this.resourceTypeOptions, res.data.resourceType);
res.data.useTypeText = this.selectDictLabel(this.useTypeOptions, res.data.useType);
res.data.resourceTypeText = this.selectDictLabel(this.resourceTypeOptions, res.data.resourceType);
this.form = res.data; this.form = res.data;
} }
}) })


Loading…
Cancel
Save