|
|
|
// subpages/addResi/com/expandForm.js
|
|
|
|
|
|
|
|
Component({
|
|
|
|
|
|
|
|
/**
|
|
|
|
* 组件的属性列表
|
|
|
|
*/
|
|
|
|
properties: {
|
|
|
|
"formList": {
|
|
|
|
"type": Array,
|
|
|
|
"value": []
|
|
|
|
},
|
|
|
|
"popupTitle":{
|
|
|
|
"type": String,
|
|
|
|
"value": ""
|
|
|
|
}
|
|
|
|
},
|
|
|
|
|
|
|
|
/**
|
|
|
|
* 组件的初始数据
|
|
|
|
*/
|
|
|
|
data: {
|
|
|
|
form:{
|
|
|
|
// 党员信息
|
|
|
|
parymemberInfoDto: {
|
|
|
|
joinTime: null,
|
|
|
|
positiveTime: null,
|
|
|
|
partyOrgId: null,
|
|
|
|
flowFlag: null,
|
|
|
|
flowActNum: null,
|
|
|
|
partyJob: null,
|
|
|
|
duty: null,
|
|
|
|
retiredFlag: null,
|
|
|
|
centerFlag: null,
|
|
|
|
studyNotNeed: null,
|
|
|
|
joinBranchName: null,
|
|
|
|
joinCommunityTime: null
|
|
|
|
},
|
|
|
|
// 残疾信息
|
|
|
|
healthDto: {
|
|
|
|
disabilityCategoryCode: null,
|
|
|
|
disabilityLevel: null,
|
|
|
|
disabilityNum: null,
|
|
|
|
disabilityDesc: null,
|
|
|
|
guardianFlag: null,
|
|
|
|
guardianName: null,
|
|
|
|
guardianMobile:null,
|
|
|
|
specialSkillFlag: null,
|
|
|
|
workCapacityFlag: null
|
|
|
|
},
|
|
|
|
// 大病信息
|
|
|
|
seriousIllnessDto: {
|
|
|
|
illnessCodes: []
|
|
|
|
},
|
|
|
|
// 慢病信息
|
|
|
|
chronicDiseaseDto: {
|
|
|
|
chronicDiseaseCodes: []
|
|
|
|
},
|
|
|
|
// 死亡信息
|
|
|
|
deathDto: {
|
|
|
|
deathTime: null
|
|
|
|
},
|
|
|
|
// 老年人
|
|
|
|
oldPeopleDto: {
|
|
|
|
oldPeopleCategories: [],
|
|
|
|
resideSituation: null,
|
|
|
|
oldSubsidy: null
|
|
|
|
},
|
|
|
|
// 低保人员
|
|
|
|
subsistenceAllowanceDto: {
|
|
|
|
reasons: [],
|
|
|
|
category:null ,
|
|
|
|
},
|
|
|
|
// 退役军人
|
|
|
|
veteranDto: {
|
|
|
|
joinArmyTime: null,
|
|
|
|
leaveArmyTime: null,
|
|
|
|
serviceUnit: null,
|
|
|
|
receiveUnit: null,
|
|
|
|
settlementAmount: null,
|
|
|
|
trainDesc: null,
|
|
|
|
employmentSituation: null,
|
|
|
|
pubWelfareJobFlag: null
|
|
|
|
},
|
|
|
|
|
|
|
|
// 保障房人员
|
|
|
|
ensureHouseDto: {
|
|
|
|
liveCommunity: null,
|
|
|
|
housingNature: null
|
|
|
|
},
|
|
|
|
// 统战人员
|
|
|
|
unitedFrontDto: {
|
|
|
|
unitedFrontType: null
|
|
|
|
},
|
|
|
|
//特扶人员
|
|
|
|
specialSupportDto: {
|
|
|
|
specialSupportType: null,//特扶类别
|
|
|
|
childName: null,//子女姓名
|
|
|
|
childGender: null,//子女性别
|
|
|
|
childDeathDate: null,//子女死亡日期
|
|
|
|
childDisabilityCategoryCode: null,//伤残类别
|
|
|
|
childDisabilityLevel: null,//伤残等级
|
|
|
|
},
|
|
|
|
// 志愿者
|
|
|
|
volunteerDto: {
|
|
|
|
volunteerCategory: []
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
// onReady(){
|
|
|
|
// },
|
|
|
|
ready: async function () {
|
|
|
|
console.log(this.data.formList);
|
|
|
|
},
|
|
|
|
/**
|
|
|
|
* 组件的方法列表
|
|
|
|
*/
|
|
|
|
methods: {
|
|
|
|
bindPicker(e){
|
|
|
|
const selectedIndex = e.detail.value;
|
|
|
|
let opction = e.currentTarget.dataset.opction;
|
|
|
|
let formName = e.currentTarget.dataset.formname;
|
|
|
|
let formValue = opction[selectedIndex];
|
|
|
|
let formNameP = e.currentTarget.dataset.formnamep;
|
|
|
|
let {label,value} = formValue;
|
|
|
|
this.triggerEvent('changExpandForm',{formName,formNameP,formValue:value})
|
|
|
|
this.setData({
|
|
|
|
'formList': this.data.formList.map(item => {
|
|
|
|
if (item.formName === formName) {
|
|
|
|
return { ...item, selectLabel: label };
|
|
|
|
} else {
|
|
|
|
return item;
|
|
|
|
}})
|
|
|
|
})
|
|
|
|
},
|
|
|
|
radioChange(e){
|
|
|
|
let formName = e.currentTarget.dataset.formname;
|
|
|
|
let formValue = Number(e.detail.value);
|
|
|
|
let formNameP = e.currentTarget.dataset.formnamep;
|
|
|
|
this.triggerEvent('changExpandForm',{formName,formNameP,formValue})
|
|
|
|
},
|
|
|
|
bindinput(e){
|
|
|
|
let formName = e.currentTarget.dataset.formname;
|
|
|
|
let formValue = e.detail.value;
|
|
|
|
let formNameP = e.currentTarget.dataset.formnamep;
|
|
|
|
this.triggerEvent('changExpandForm',{formNameP,formName,formValue})
|
|
|
|
},
|
|
|
|
bindCheckbox(e){
|
|
|
|
let formName = e.currentTarget.dataset.formname;
|
|
|
|
let formValue = e.detail.value;
|
|
|
|
let formNameP = e.currentTarget.dataset.formnamep;
|
|
|
|
this.triggerEvent('changExpandForm',{formNameP,formName,formValue})
|
|
|
|
},
|
|
|
|
bindDateChange(e){
|
|
|
|
let formName = e.currentTarget.dataset.formname;
|
|
|
|
let formNameP = e.currentTarget.dataset.formnamep;
|
|
|
|
|
|
|
|
this.triggerEvent('changExpandForm',{formName,formNameP,formValue: e.detail.value})
|
|
|
|
this.setData({
|
|
|
|
'formList': this.data.formList.map(item => {
|
|
|
|
if (item.formName === formName) {
|
|
|
|
return { ...item, selectLabel: e.detail.value };
|
|
|
|
} else {
|
|
|
|
return item;
|
|
|
|
}})
|
|
|
|
})
|
|
|
|
},
|
|
|
|
|
|
|
|
hideForm(){
|
|
|
|
this.triggerEvent('hideExpandForm')
|
|
|
|
},
|
|
|
|
confirm(){
|
|
|
|
this.triggerEvent('confirmExpandForm')
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
})
|