家庭收支
This commit is contained in:
@@ -564,8 +564,7 @@ export default {
|
|||||||
{dictName: '是否接受其它健康扶贫', checked: false},
|
{dictName: '是否接受其它健康扶贫', checked: false},
|
||||||
],
|
],
|
||||||
guaranteeList: [],
|
guaranteeList: [],
|
||||||
|
isAdd: 'false',
|
||||||
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
computed: {
|
computed: {
|
||||||
@@ -601,9 +600,11 @@ export default {
|
|||||||
this.id = query.id
|
this.id = query.id
|
||||||
this.getInfo(this.id)
|
this.getInfo(this.id)
|
||||||
|
|
||||||
} else {
|
|
||||||
|
} else if (!query.id) {
|
||||||
this.form.currentAreaId = this.user.areaId
|
this.form.currentAreaId = this.user.areaId
|
||||||
}
|
}
|
||||||
|
// else if (query.id && isAdd)
|
||||||
})
|
})
|
||||||
console.log(this.helthList);
|
console.log(this.helthList);
|
||||||
},
|
},
|
||||||
@@ -699,7 +700,7 @@ export default {
|
|||||||
}
|
}
|
||||||
|
|
||||||
this.basicsCheckList.map((item, index) => {
|
this.basicsCheckList.map((item, index) => {
|
||||||
if (item.checked) {
|
if (item.checked) {
|
||||||
this.basicsList.push(index)
|
this.basicsList.push(index)
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
@@ -707,10 +708,11 @@ export default {
|
|||||||
this.form.basicsCheck = this.basicsList.join(',')
|
this.form.basicsCheck = this.basicsList.join(',')
|
||||||
|
|
||||||
this.guaranteeCheckList.map((item, index) => {
|
this.guaranteeCheckList.map((item, index) => {
|
||||||
if (item.checked) {
|
if (item.checked) {
|
||||||
this.guaranteeList.push(index)
|
this.guaranteeList.push(index)
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
this.form.guaranteeCheck = this.guaranteeList.join(',')
|
this.form.guaranteeCheck = this.guaranteeList.join(',')
|
||||||
|
|
||||||
this.checkInit('jcbxCxyiliao',this.basicsCheckList, 0)
|
this.checkInit('jcbxCxyiliao',this.basicsCheckList, 0)
|
||||||
@@ -727,7 +729,6 @@ export default {
|
|||||||
this.checkInit('bzcsYiliaojiuzhu',this.guaranteeCheckList, 3)
|
this.checkInit('bzcsYiliaojiuzhu',this.guaranteeCheckList, 3)
|
||||||
this.checkInit('bzcsQita',this.guaranteeCheckList, 4)
|
this.checkInit('bzcsQita',this.guaranteeCheckList, 4)
|
||||||
|
|
||||||
|
|
||||||
this.$http.post('/app/apppreventionreturntopoverty/addByEwechat', {
|
this.$http.post('/app/apppreventionreturntopoverty/addByEwechat', {
|
||||||
...this.form,
|
...this.form,
|
||||||
id: this.id || '',
|
id: this.id || '',
|
||||||
|
|||||||
@@ -70,11 +70,11 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="item-info">
|
<div class="item-info">
|
||||||
<label>是否危房</label>
|
<label>是否危房</label>
|
||||||
<span>{{ $dict.getLabel('fpPrtpStatus', info.status) || '-' }}</span>
|
<span>{{ $dict.getLabel('fpYesOrNo', info.dilapidatedHousehold) || '-' }}</span>
|
||||||
</div>
|
</div>
|
||||||
<div class="item-info">
|
<div class="item-info">
|
||||||
<label>饮用水安全问题</label>
|
<label>是否解决安全饮水</label>
|
||||||
<span>{{ $dict.getLabel('fpRiskType', info.riskType) || '-' }}</span>
|
<span>{{ $dict.getLabel('fpYesOrNo', info.drinkingWaterSafety) || '-' }}</span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="item-wrapper">
|
<div class="item-wrapper">
|
||||||
@@ -87,11 +87,11 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="item-info">
|
<div class="item-info">
|
||||||
<label>风险因素</label>
|
<label>风险因素</label>
|
||||||
<span>{{ info.income8 }}元</span>
|
<span>{{ $dict.getLabel('fpRiskType', info.riskType) }}</span>
|
||||||
</div>
|
</div>
|
||||||
<div class="item-info">
|
<div class="item-info">
|
||||||
<label>风险是否已消除</label>
|
<label>风险是否已消除</label>
|
||||||
<span>{{ info.income9 }}元</span>
|
<span>{{ $dict.getLabel('fpYesOrNo', info.riskEliminated) }}</span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="item-wrapper">
|
<div class="item-wrapper">
|
||||||
@@ -104,11 +104,11 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="item-info">
|
<div class="item-info">
|
||||||
<label>家庭纯收入</label>
|
<label>家庭纯收入</label>
|
||||||
<span>{{ info.income8 }}元</span>
|
<span>{{ info.fxxcIncome8 }}元</span>
|
||||||
</div>
|
</div>
|
||||||
<div class="item-info">
|
<div class="item-info">
|
||||||
<label>家庭人均纯收入</label>
|
<label>家庭人均纯收入</label>
|
||||||
<span>{{ info.income9 }}元</span>
|
<span>{{ info.fxxcIncome9 }}元</span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<!-- 风险解除 -->
|
<!-- 风险解除 -->
|
||||||
|
|||||||
@@ -83,7 +83,7 @@
|
|||||||
<span>现住址</span>
|
<span>现住址</span>
|
||||||
</div>
|
</div>
|
||||||
<div class="right">
|
<div class="right">
|
||||||
<AiAreaPicker ref="address" class="aiArea" :fullName.sync="form.currentAreaName" v-model="form.currentAreaId" :areaId="$areaId" mode="custom" all @select="onAreaChange">
|
<AiAreaPicker ref="address" class="aiArea" :fullName.sync="form.currentAreaName" v-model="form.currentAreaId" :areaId="$areaId" mode="custom" :root="$areaId" @select="onAreaChange">
|
||||||
<div class="aiArea">
|
<div class="aiArea">
|
||||||
<span class="label" v-if="form.currentAreaName" style="color:#333;">{{ form.currentAreaName }}</span>
|
<span class="label" v-if="form.currentAreaName" style="color:#333;">{{ form.currentAreaName }}</span>
|
||||||
<span v-else>请选择</span>
|
<span v-else>请选择</span>
|
||||||
@@ -280,7 +280,7 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
|
import {mapState} from 'vuex'
|
||||||
export default {
|
export default {
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
@@ -301,11 +301,11 @@ export default {
|
|||||||
labourStatus: '',
|
labourStatus: '',
|
||||||
workArea: '',
|
workArea: '',
|
||||||
workeMonths: '',
|
workeMonths: '',
|
||||||
basicMedicalTreatment: '02',
|
basicMedicalTreatment: '',
|
||||||
seriousIllnessInsurance: '02',
|
seriousIllnessInsurance: '',
|
||||||
endowmentInsurance: '02',
|
endowmentInsurance: '',
|
||||||
subsistenceAllowance: '02',
|
subsistenceAllowance: '',
|
||||||
specialPovertySupport: '02',
|
specialPovertySupport: '',
|
||||||
girdId: '',
|
girdId: '',
|
||||||
girdName: '',
|
girdName: '',
|
||||||
healthyStatus: '',
|
healthyStatus: '',
|
||||||
@@ -332,11 +332,13 @@ export default {
|
|||||||
return [this.isEdit,this.form.name,this.form.idNumber]
|
return [this.isEdit,this.form.name,this.form.idNumber]
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
...mapState(['user'])
|
||||||
},
|
},
|
||||||
|
|
||||||
onLoad(query) {
|
onLoad(query) {
|
||||||
this.householdIdNumber = query.houseIdNumber
|
this.householdIdNumber = query.houseIdNumber
|
||||||
this.objectType = query.objectType
|
this.objectType = query.objectType
|
||||||
|
this.form.currentAreaId = this.user.areaId
|
||||||
this.$dict.load(['fpRelationship','riskEliminationMethod', 'fpRiskType', 'fpYesOrNo', 'fpNation', 'fpEducation', 'fpStudentsInSchool', 'fpHealth',
|
this.$dict.load(['fpRelationship','riskEliminationMethod', 'fpRiskType', 'fpYesOrNo', 'fpNation', 'fpEducation', 'fpStudentsInSchool', 'fpHealth',
|
||||||
'fpLaborSkills', 'fpPoliticalOutlook', 'sex', 'fpHealth']).then(() => {
|
'fpLaborSkills', 'fpPoliticalOutlook', 'sex', 'fpHealth']).then(() => {
|
||||||
if(query.id) {
|
if(query.id) {
|
||||||
|
|||||||
@@ -281,27 +281,28 @@ export default {
|
|||||||
return {
|
return {
|
||||||
form: {
|
form: {
|
||||||
objectType: '',
|
objectType: '',
|
||||||
dilapidatedHousehold: '',
|
dilapidatedHousehold: '02',
|
||||||
drinkingWaterSafety: '',
|
drinkingWaterSafety: '02',
|
||||||
move: '02',
|
move: '02',
|
||||||
houseArea: '',
|
houseArea: '',
|
||||||
trunkRoadDistance: '',
|
trunkRoadDistance: '',
|
||||||
houseRoadType: '',
|
houseRoadType: '',
|
||||||
fuelType:'',
|
fuelType:'',
|
||||||
houseDamage: '',
|
houseDamage: '02',
|
||||||
drinkingWaterDamage: '',
|
drinkingWaterDamage: '02',
|
||||||
toilet: '',
|
toilet: '02',
|
||||||
electric: '',
|
electric: '02',
|
||||||
television: '',
|
television: '02',
|
||||||
cultivatedLandArea: '', // 耕地面积
|
cultivatedLandArea: '', // 耕地面积
|
||||||
orchardArea: '',
|
orchardArea: '',
|
||||||
woodlandArea: '',
|
woodlandArea: '',
|
||||||
grainForGreenArea: '',
|
grainForGreenArea: '',
|
||||||
grazingGrasslandArea: '',
|
grazingGrasslandArea: '',
|
||||||
longtouqiye: '',
|
watersArea: '',
|
||||||
produceElectric: '',
|
longtouqiye: '02',
|
||||||
nongheshe: '',
|
produceElectric: '02',
|
||||||
cyzfdtr: '',
|
nongheshe: '02',
|
||||||
|
cyzfdtr: '02',
|
||||||
},
|
},
|
||||||
id: '',
|
id: '',
|
||||||
girdId: '',
|
girdId: '',
|
||||||
@@ -341,6 +342,7 @@ export default {
|
|||||||
},
|
},
|
||||||
|
|
||||||
submit() {
|
submit() {
|
||||||
|
|
||||||
this.form.girdId = this.girdId
|
this.form.girdId = this.girdId
|
||||||
this.form.girdName = this.girdName
|
this.form.girdName = this.girdName
|
||||||
this.$http.post('/app/apppreventionreturntopoverty/addByEwechat', {
|
this.$http.post('/app/apppreventionreturntopoverty/addByEwechat', {
|
||||||
|
|||||||
@@ -19,7 +19,7 @@
|
|||||||
<span>脱贫年度</span>
|
<span>脱贫年度</span>
|
||||||
</div>
|
</div>
|
||||||
<div class="right">
|
<div class="right">
|
||||||
<AiSelect dict="fpYera" v-model="form.povertyYear"></AiSelect>
|
<AiSelect dict="fpYear" v-model="form.povertyYear"></AiSelect>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -88,7 +88,7 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="btn">保存</div>
|
<div class="btn" @click="submit">保存</div>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
@@ -102,21 +102,60 @@ export default {
|
|||||||
povertyYear: '',
|
povertyYear: '',
|
||||||
riskType: '',
|
riskType: '',
|
||||||
naturalDisasterType: '',
|
naturalDisasterType: '',
|
||||||
militaryMartyrs: '',
|
militaryMartyrs: '02',
|
||||||
dropOutOfSchool: '',
|
dropOutOfSchool: '02',
|
||||||
dropOutOfSchoolReason: '',
|
dropOutOfSchoolReason: '',
|
||||||
},
|
},
|
||||||
value: '',
|
value: '',
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
onLoad() {
|
onLoad(query) {
|
||||||
this.$dict.load('fpYera','fpType','fpRiskType','fpNaturalDisaster')
|
this.$dict.load('fpYear','fpType','fpRiskType','fpNaturalDisaster').then(()=>{
|
||||||
|
this.getInfo(query.id)
|
||||||
|
})
|
||||||
|
this.id = query.id
|
||||||
|
this.girdId = query.girdId
|
||||||
|
this.girdName = query.girdName
|
||||||
},
|
},
|
||||||
onShow() {
|
onShow() {
|
||||||
document.title = '家庭风险情况'
|
document.title = '家庭风险情况'
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
getInfo(id) {
|
||||||
|
this.$http.post(`/app/apppreventionreturntopoverty/queryDetailById?id=${id}`).then(res => {
|
||||||
|
if (res.code === 0) {
|
||||||
|
this.form = {
|
||||||
|
...this.form,
|
||||||
|
...res.data
|
||||||
|
}
|
||||||
|
}
|
||||||
|
uni.hideLoading()
|
||||||
|
})
|
||||||
|
},
|
||||||
|
|
||||||
|
submit() {
|
||||||
|
if (!this.form.objectType) {
|
||||||
|
return this.$u.toast('请选择监测对象类型')
|
||||||
|
}
|
||||||
|
if (!this.form.riskType) {
|
||||||
|
return this.$u.toast('请选择风险因素')
|
||||||
|
}
|
||||||
|
|
||||||
|
this.form.girdId = this.girdId
|
||||||
|
this.form.girdName = this.girdName
|
||||||
|
this.$http.post('/app/apppreventionreturntopoverty/addByEwechat', {
|
||||||
|
...this.form,
|
||||||
|
id: this.id
|
||||||
|
}).then(res => {
|
||||||
|
if (res.code === 0) {
|
||||||
|
this.$u.toast('保存成功')
|
||||||
|
uni.$emit('reload')
|
||||||
|
uni.navigateBack({
|
||||||
|
delta: 1
|
||||||
|
})
|
||||||
|
}
|
||||||
|
})
|
||||||
|
},
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|||||||
Reference in New Issue
Block a user