防返贫
This commit is contained in:
@@ -711,20 +711,26 @@ export default {
|
|||||||
getInfo(id) {
|
getInfo(id) {
|
||||||
this.$http.post(`/app/apppreventionreturntopoverty/queryDetailById?id=${id}`).then(res => {
|
this.$http.post(`/app/apppreventionreturntopoverty/queryDetailById?id=${id}`).then(res => {
|
||||||
if (res?.data) {
|
if (res?.data) {
|
||||||
res.data.basicsCheckList = res.data.basicsCheck.split(',')
|
if(res.data.basicsCheckList) {
|
||||||
res.data.basicsCheckList.map((item, index) => {
|
res.data.basicsCheckList = res.data.basicsCheck.split(',')
|
||||||
this.basicsCheckList[index].checked = true
|
res.data.basicsCheckList.map((item, index) => {
|
||||||
})
|
this.basicsCheckList[index].checked = true
|
||||||
res.data.guaranteeCheckList = res.data.guaranteeCheck.split(',')
|
})
|
||||||
res.data.guaranteeCheckList.map((item, index) => {
|
}
|
||||||
this.guaranteeCheckList[index].checked = true
|
if(res.data.guaranteeCheckLis) {
|
||||||
})
|
res.data.guaranteeCheckList = res.data.guaranteeCheck.split(',')
|
||||||
|
res.data.guaranteeCheckList.map((item, index) => {
|
||||||
res.data.healthyStatusList = res.data.healthyStatus.split(',')
|
this.guaranteeCheckList[index].checked = true
|
||||||
this.helthList.map(items => {
|
})
|
||||||
items.checked = res.data.healthyStatusList.includes(items.dictValue)
|
}
|
||||||
})
|
|
||||||
|
if(res.data.healthyStatusList) {
|
||||||
|
res.data.healthyStatusList = res.data.healthyStatus.split(',')
|
||||||
|
this.helthList.map(items => {
|
||||||
|
items.checked = res.data.healthyStatusList.includes(items.dictValue)
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
this.form = { ...this.form, ...res.data }
|
this.form = { ...this.form, ...res.data }
|
||||||
|
|
||||||
if (this.form.photo) {
|
if (this.form.photo) {
|
||||||
|
|||||||
@@ -7,7 +7,7 @@
|
|||||||
<span>工资性收入(元)</span>
|
<span>工资性收入(元)</span>
|
||||||
</div>
|
</div>
|
||||||
<div class="right">
|
<div class="right">
|
||||||
<input placeholder="请输入" v-model="form.income3" type="number"
|
<input placeholder="请输入" v-model.number="form.income3" type="number"
|
||||||
placeholder-style="color: #999; font-size: 30rpx;" maxlength="9"/>
|
placeholder-style="color: #999; font-size: 30rpx;" maxlength="9"/>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -18,7 +18,7 @@
|
|||||||
<span>生产经营收入(元)</span>
|
<span>生产经营收入(元)</span>
|
||||||
</div>
|
</div>
|
||||||
<div class="right">
|
<div class="right">
|
||||||
<input placeholder="请输入" v-model="form.income4" type="number"
|
<input placeholder="请输入" v-model.number="form.income4" type="number"
|
||||||
placeholder-style="color: #999; font-size: 30rpx;" maxlength="9"/>
|
placeholder-style="color: #999; font-size: 30rpx;" maxlength="9"/>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -29,7 +29,7 @@
|
|||||||
<span>计划生育金(元)</span>
|
<span>计划生育金(元)</span>
|
||||||
</div>
|
</div>
|
||||||
<div class="right">
|
<div class="right">
|
||||||
<input placeholder="请输入" v-model="form.income5" type="number"
|
<input placeholder="请输入" v-model.number="form.income5" type="number"
|
||||||
placeholder-style="color: #999; font-size: 30rpx;" maxlength="9"/>
|
placeholder-style="color: #999; font-size: 30rpx;" maxlength="9"/>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -40,7 +40,7 @@
|
|||||||
<span>资产收益扶贫分红收入</span>
|
<span>资产收益扶贫分红收入</span>
|
||||||
</div>
|
</div>
|
||||||
<div class="right">
|
<div class="right">
|
||||||
<input placeholder="请输入" v-model="form.income6" type="number"
|
<input placeholder="请输入" v-model.number="form.income6" type="number"
|
||||||
placeholder-style="color: #999; font-size: 30rpx;" maxlength="9"/>
|
placeholder-style="color: #999; font-size: 30rpx;" maxlength="9"/>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -51,7 +51,7 @@
|
|||||||
<span>养老保险金(元)</span>
|
<span>养老保险金(元)</span>
|
||||||
</div>
|
</div>
|
||||||
<div class="right">
|
<div class="right">
|
||||||
<input placeholder="请输入" v-model="form.income9" type="number"
|
<input placeholder="请输入" v-model.number="form.income9" type="number"
|
||||||
placeholder-style="color: #999; font-size: 30rpx;" maxlength="9"/>
|
placeholder-style="color: #999; font-size: 30rpx;" maxlength="9"/>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -64,7 +64,7 @@
|
|||||||
<span>低保金(元)</span>
|
<span>低保金(元)</span>
|
||||||
</div>
|
</div>
|
||||||
<div class="right">
|
<div class="right">
|
||||||
<input placeholder="请输入" v-model="form.income7" type="number"
|
<input placeholder="请输入" v-model.number="form.income7" type="number"
|
||||||
placeholder-style="color: #999; font-size: 30rpx;" maxlength="9"/>
|
placeholder-style="color: #999; font-size: 30rpx;" maxlength="9"/>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -75,7 +75,7 @@
|
|||||||
<span>特困供养金(元)</span>
|
<span>特困供养金(元)</span>
|
||||||
</div>
|
</div>
|
||||||
<div class="right">
|
<div class="right">
|
||||||
<input placeholder="请输入" v-model="form.income8" type="number"
|
<input placeholder="请输入" v-model.number="form.income8" type="number"
|
||||||
placeholder-style="color: #999; font-size: 30rpx;" maxlength="9"/>
|
placeholder-style="color: #999; font-size: 30rpx;" maxlength="9"/>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -86,7 +86,7 @@
|
|||||||
<span>生态补偿金(元)</span>
|
<span>生态补偿金(元)</span>
|
||||||
</div>
|
</div>
|
||||||
<div class="right">
|
<div class="right">
|
||||||
<input placeholder="请输入" v-model="form.income10" type="number"
|
<input placeholder="请输入" v-model.number="form.income10" type="number"
|
||||||
placeholder-style="color: #999; font-size: 30rpx;" maxlength="9"/>
|
placeholder-style="color: #999; font-size: 30rpx;" maxlength="9"/>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -97,7 +97,7 @@
|
|||||||
<span>财产性收入(元)</span>
|
<span>财产性收入(元)</span>
|
||||||
</div>
|
</div>
|
||||||
<div class="right">
|
<div class="right">
|
||||||
<input placeholder="请输入" v-model="form.income13" type="number"
|
<input placeholder="请输入" v-model.number="form.income13" type="number"
|
||||||
placeholder-style="color: #999; font-size: 30rpx;" maxlength="9"/>
|
placeholder-style="color: #999; font-size: 30rpx;" maxlength="9"/>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -108,7 +108,7 @@
|
|||||||
<span>其他财产性收入</span>
|
<span>其他财产性收入</span>
|
||||||
</div>
|
</div>
|
||||||
<div class="right">
|
<div class="right">
|
||||||
<input placeholder="请输入" v-model="form.income14" type="number"
|
<input placeholder="请输入" v-model.number="form.income14" type="number"
|
||||||
placeholder-style="color: #999; font-size: 30rpx;" maxlength="9"/>
|
placeholder-style="color: #999; font-size: 30rpx;" maxlength="9"/>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -119,7 +119,7 @@
|
|||||||
<span>转移性收入(元)</span>
|
<span>转移性收入(元)</span>
|
||||||
</div>
|
</div>
|
||||||
<div class="right">
|
<div class="right">
|
||||||
<input placeholder="请输入" v-model="form.income11" type="number"
|
<input placeholder="请输入" v-model.number="form.income11" type="number"
|
||||||
placeholder-style="color: #999; font-size: 30rpx;" maxlength="9"/>
|
placeholder-style="color: #999; font-size: 30rpx;" maxlength="9"/>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -130,7 +130,7 @@
|
|||||||
<span>其他转移性收入(元)</span>
|
<span>其他转移性收入(元)</span>
|
||||||
</div>
|
</div>
|
||||||
<div class="right">
|
<div class="right">
|
||||||
<input placeholder="请输入" v-model="form.income12" type="number"
|
<input placeholder="请输入" v-model.number="form.income12" type="number"
|
||||||
placeholder-style="color: #999; font-size: 30rpx;" maxlength="9"/>
|
placeholder-style="color: #999; font-size: 30rpx;" maxlength="9"/>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -141,7 +141,7 @@
|
|||||||
<span>生产经营性支出(元)</span>
|
<span>生产经营性支出(元)</span>
|
||||||
</div>
|
</div>
|
||||||
<div class="right">
|
<div class="right">
|
||||||
<input placeholder="请输入" v-model="form.income15" type="number"
|
<input placeholder="请输入" v-model.number="form.income15" type="number"
|
||||||
placeholder-style="color: #999; font-size: 30rpx;" maxlength="9"/>
|
placeholder-style="color: #999; font-size: 30rpx;" maxlength="9"/>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -152,7 +152,7 @@
|
|||||||
<span>纳入监测对象的收入参考范围</span>
|
<span>纳入监测对象的收入参考范围</span>
|
||||||
</div>
|
</div>
|
||||||
<div class="right">
|
<div class="right">
|
||||||
<input placeholder="请输入" v-model="form.income1" type="number"
|
<input placeholder="请输入" v-model.number="form.income1" type="number"
|
||||||
placeholder-style="color: #999; font-size: 30rpx;" maxlength="9"/>
|
placeholder-style="color: #999; font-size: 30rpx;" maxlength="9"/>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -163,7 +163,7 @@
|
|||||||
<span>纳入监测对象的人均收入参考范围</span>
|
<span>纳入监测对象的人均收入参考范围</span>
|
||||||
</div>
|
</div>
|
||||||
<div class="right">
|
<div class="right">
|
||||||
<input placeholder="请输入" v-model="form.income2" type="number"
|
<input placeholder="请输入" v-model.number="form.income2" type="number"
|
||||||
placeholder-style="color: #999; font-size: 30rpx;" maxlength="9"/>
|
placeholder-style="color: #999; font-size: 30rpx;" maxlength="9"/>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -214,8 +214,18 @@ export default {
|
|||||||
|
|
||||||
methods: {
|
methods: {
|
||||||
getInfo(id) {
|
getInfo(id) {
|
||||||
|
|
||||||
this.$http.post(`/app/apppreventionreturntopoverty/queryDetailById?id=${id}`).then(res => {
|
this.$http.post(`/app/apppreventionreturntopoverty/queryDetailById?id=${id}`).then(res => {
|
||||||
|
// var arr = ['income1','income2','income3','income4','income5','income6','income8','income9','income10','income11','income12','income13','income14','income15']
|
||||||
|
// var newArr = {}
|
||||||
if (res.code === 0) {
|
if (res.code === 0) {
|
||||||
|
// for(let key in res.data) {
|
||||||
|
// if(arr.includes(key)) {
|
||||||
|
// newArr = res.data[key] == 0? '':res.data[key]
|
||||||
|
// }
|
||||||
|
// }
|
||||||
|
// this.form = {...newArr}
|
||||||
|
|
||||||
this.form = {
|
this.form = {
|
||||||
...this.form,
|
...this.form,
|
||||||
...res.data
|
...res.data
|
||||||
|
|||||||
Reference in New Issue
Block a user