|
|
@ -2,6 +2,7 @@ |
|
|
|
import api from "../../../../utils/api" |
|
|
|
var http = require('../../../../utils/request.js') |
|
|
|
var fly = require('../../../../utils/request') |
|
|
|
const App = getApp() |
|
|
|
|
|
|
|
import { |
|
|
|
cardHide |
|
|
@ -199,6 +200,7 @@ Page({ |
|
|
|
spouseSituationList: [], //配偶情况
|
|
|
|
unemploymentReasonList: [], //失业原因
|
|
|
|
employmentWishList: [], //就业意愿
|
|
|
|
specialResidentCategory:[],//特殊人群
|
|
|
|
genderList: [{ |
|
|
|
label: '男', |
|
|
|
value: '1' |
|
|
@ -243,454 +245,449 @@ Page({ |
|
|
|
}, |
|
|
|
showExpand: false, |
|
|
|
expandFormList: [], |
|
|
|
orgList: [{ |
|
|
|
id: 'healthDto', |
|
|
|
children: [{ |
|
|
|
orgList: [ |
|
|
|
{ |
|
|
|
id: "healthyDto", |
|
|
|
|
|
|
|
children: [ |
|
|
|
{ |
|
|
|
label: "残疾类别", |
|
|
|
itemType: "select", |
|
|
|
formNameP: "healthDto", |
|
|
|
formName: "disabilityCategoryCode", |
|
|
|
opctionUrl: 'sys/dict/data/dictlist', |
|
|
|
opctionParams: { |
|
|
|
dictType: 'disability_category_code' |
|
|
|
}, |
|
|
|
opction: [] |
|
|
|
opctionUrl: "sys/dict/data/dictlist", |
|
|
|
opctionParams: { dictType: "disability_category_code" }, |
|
|
|
opction: [], |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: "残疾等级", |
|
|
|
itemType: "select", |
|
|
|
formNameP: "healthDto", |
|
|
|
formName: "disabilityLevel", |
|
|
|
opctionUrl: 'sys/dict/data/dictlist', |
|
|
|
opctionParams: { |
|
|
|
dictType: 'disability_level' |
|
|
|
}, |
|
|
|
opction: [] |
|
|
|
opctionUrl: "sys/dict/data/dictlist", |
|
|
|
opctionParams: { dictType: "disability_level" }, |
|
|
|
opction: [], |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: "残疾证号", |
|
|
|
formNameP: "healthDto", |
|
|
|
itemType: "input", |
|
|
|
formName: "disabilityNum", |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: "残疾说明", |
|
|
|
formNameP: "healthDto", |
|
|
|
itemType: "input", |
|
|
|
formName: "disabilityDesc", |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: "监护人", |
|
|
|
itemType: "radio", |
|
|
|
formNameP: "healthDto", |
|
|
|
formName: "guardianFlag", |
|
|
|
opction: [{ |
|
|
|
label: '有', |
|
|
|
formName: '', |
|
|
|
value: 1 |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: '无', |
|
|
|
formName: '', |
|
|
|
value: 0 |
|
|
|
} |
|
|
|
] |
|
|
|
opction: [ |
|
|
|
{ label: "有", formName: "", value: 1 }, |
|
|
|
{ label: "无", formName: "", value: 0 }, |
|
|
|
], |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: "监护人姓名", |
|
|
|
formNameP: "healthDto", |
|
|
|
itemType: "input", |
|
|
|
formName: "guardianName", |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: "监护人联系电话", |
|
|
|
formNameP: "healthDto", |
|
|
|
itemType: "input", |
|
|
|
formName: "guardianMobile", |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: "技能特长", |
|
|
|
formNameP: "healthDto", |
|
|
|
itemType: "radio", |
|
|
|
formName: "specialSkillFlag", |
|
|
|
opction: [{ |
|
|
|
label: '有', |
|
|
|
formName: '', |
|
|
|
value: 1 |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: '无', |
|
|
|
formName: '', |
|
|
|
value: 0 |
|
|
|
} |
|
|
|
] |
|
|
|
opction: [ |
|
|
|
{ label: "有", formName: "", value: 1 }, |
|
|
|
{ label: "无", formName: "", value: 0 }, |
|
|
|
], |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: "劳动能力", |
|
|
|
formNameP: "healthDto", |
|
|
|
itemType: "radio", |
|
|
|
formName: "workCapacityFlag", |
|
|
|
opction: [{ |
|
|
|
label: '有', |
|
|
|
formName: '', |
|
|
|
value: 1 |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: '无', |
|
|
|
formName: '', |
|
|
|
value: 0 |
|
|
|
} |
|
|
|
] |
|
|
|
opction: [ |
|
|
|
{ label: "有", formName: "", value: 1 }, |
|
|
|
{ label: "无", formName: "", value: 0 }, |
|
|
|
], |
|
|
|
}, |
|
|
|
] |
|
|
|
], |
|
|
|
}, |
|
|
|
{ |
|
|
|
id: 'seriousIllnessDto', |
|
|
|
children: [{ |
|
|
|
id: "seriousIllnessDto", |
|
|
|
children: [ |
|
|
|
{ |
|
|
|
label: "所患大病", |
|
|
|
itemType: "checkbox", |
|
|
|
formName: "illnessCodes", |
|
|
|
opctionUrl: 'sys/dict/data/dictlist', |
|
|
|
opctionParams: { |
|
|
|
dictType: 'illness_code' |
|
|
|
opctionUrl: "sys/dict/data/dictlist", |
|
|
|
opctionParams: { dictType: "illness_code" }, |
|
|
|
opction: [], |
|
|
|
formNameP: "seriousIllnessDto", |
|
|
|
}, |
|
|
|
opction: [] |
|
|
|
}, ] |
|
|
|
], |
|
|
|
}, |
|
|
|
{ |
|
|
|
id: 'chronicDiseaseDto', |
|
|
|
children: [{ |
|
|
|
id: "chronicDiseaseDto", |
|
|
|
children: [ |
|
|
|
{ |
|
|
|
label: "所患慢病", |
|
|
|
itemType: "checkbox", |
|
|
|
formName: "chronicDiseaseCodes", |
|
|
|
opctionUrl: 'sys/dict/data/dictlist', |
|
|
|
opctionParams: { |
|
|
|
dictType: 'chronic_disease_code' |
|
|
|
opctionUrl: "sys/dict/data/dictlist", |
|
|
|
opctionParams: { dictType: "chronic_disease_code" }, |
|
|
|
opction: [], |
|
|
|
formNameP: "chronicDiseaseDto", |
|
|
|
}, |
|
|
|
opction: [] |
|
|
|
}, ] |
|
|
|
], |
|
|
|
}, |
|
|
|
{ |
|
|
|
id: 'deathDto', |
|
|
|
children: [{ |
|
|
|
id: "deathDto", |
|
|
|
children: [ |
|
|
|
{ |
|
|
|
label: "死亡时间", |
|
|
|
itemType: "datepicker1", |
|
|
|
itemType: "datepicker", |
|
|
|
formName: "deathTime", |
|
|
|
}, ] |
|
|
|
formNameP: "deathDto", |
|
|
|
}, |
|
|
|
], |
|
|
|
}, |
|
|
|
{ |
|
|
|
id: 'oldPeopleDto', |
|
|
|
children: [{ |
|
|
|
id: "oldPeopleDto", |
|
|
|
children: [ |
|
|
|
{ |
|
|
|
label: "老年人分类", |
|
|
|
itemType: "checkbox", |
|
|
|
formName: "oldPeopleCategories", |
|
|
|
opctionUrl: 'sys/dict/data/dictlist', |
|
|
|
opctionParams: { |
|
|
|
dictType: 'oldPeople_categories' |
|
|
|
}, |
|
|
|
opctionUrl: "sys/dict/data/dictlist", |
|
|
|
opctionParams: { dictType: "oldPeople_categories" }, |
|
|
|
formNameP: "oldPeopleDto", |
|
|
|
opction:[] |
|
|
|
|
|
|
|
}, |
|
|
|
{ |
|
|
|
label: "居住情况", |
|
|
|
itemType: "select", |
|
|
|
formName: "resideSituation", |
|
|
|
opctionUrl: 'sys/dict/data/dictlist', |
|
|
|
opctionParams: { |
|
|
|
dictType: 'reside_situation' |
|
|
|
}, |
|
|
|
opctionUrl: "sys/dict/data/dictlist", |
|
|
|
opctionParams: { dictType: "reside_situation" }, |
|
|
|
formNameP: "oldPeopleDto", |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: "高龄补助", |
|
|
|
itemType: "inputNum", |
|
|
|
formName: "oldSubsidy", |
|
|
|
formNameP: "oldPeopleDto", |
|
|
|
}, |
|
|
|
] |
|
|
|
], |
|
|
|
}, |
|
|
|
{ |
|
|
|
id: 'subsistenceAllowanceDto', |
|
|
|
children: [{ |
|
|
|
id: "subsistenceAllowanceDto", |
|
|
|
children: [ |
|
|
|
{ |
|
|
|
label: "低保类别", |
|
|
|
itemType: "select", |
|
|
|
formName: "category", |
|
|
|
opctionUrl: 'sys/dict/data/dictlist', |
|
|
|
opctionParams: { |
|
|
|
dictType: 'subsistence_allowance_category' |
|
|
|
}, |
|
|
|
opctionUrl: "sys/dict/data/dictlist", |
|
|
|
opctionParams: { dictType: "subsistence_allowance_category" }, |
|
|
|
formNameP: "subsistenceAllowanceDto", |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: "低保享受原因", |
|
|
|
itemType: "checkbox", |
|
|
|
formName: "reasons", |
|
|
|
opctionUrl: 'sys/dict/data/dictlist', |
|
|
|
opctionParams: { |
|
|
|
dictType: 'subsistence_allowance_reasons' |
|
|
|
}, |
|
|
|
opction: [] |
|
|
|
opctionUrl: "sys/dict/data/dictlist", |
|
|
|
opctionParams: { dictType: "subsistence_allowance_reasons" }, |
|
|
|
opction: [], |
|
|
|
formNameP: "subsistenceAllowanceDto", |
|
|
|
}, |
|
|
|
|
|
|
|
] |
|
|
|
], |
|
|
|
}, |
|
|
|
{ |
|
|
|
id: "parymemberInfoDto", |
|
|
|
children: [{ |
|
|
|
children: [ |
|
|
|
{ |
|
|
|
label: "入党时间", |
|
|
|
itemType: "datepicker1", |
|
|
|
itemType: "datepicker", |
|
|
|
formName: "joinTime", |
|
|
|
opction: [] |
|
|
|
formNameP: "parymemberInfoDto", |
|
|
|
opction: [], |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: "转正时间", |
|
|
|
itemType: "datepicker1", |
|
|
|
itemType: "datepicker", |
|
|
|
formName: "positiveTime", |
|
|
|
opction: [] |
|
|
|
formNameP: "parymemberInfoDto", |
|
|
|
opction: [], |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: "所属党组织", |
|
|
|
itemType: "cascader1", |
|
|
|
formName: "partyOrgId", |
|
|
|
opction: [] |
|
|
|
formNameP: "parymemberInfoDto", |
|
|
|
opction: [], |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: "流动党员", |
|
|
|
itemType: "radio", |
|
|
|
formName: "flowFlag", |
|
|
|
opction: [{ |
|
|
|
label: '是', |
|
|
|
value: 1 |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: '否', |
|
|
|
value: 0 |
|
|
|
}, |
|
|
|
] |
|
|
|
formNameP: "parymemberInfoDto", |
|
|
|
opction: [ |
|
|
|
{ label: "是", value: 1 }, |
|
|
|
{ label: "否", value: 0 }, |
|
|
|
], |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: "流动党员活动证号", |
|
|
|
itemType: "input", |
|
|
|
formName: "flowActNum", |
|
|
|
formNameP: "parymemberInfoDto", |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: "职务", |
|
|
|
itemType: "select", |
|
|
|
formName: "partyJob", |
|
|
|
opctionUrl: 'sys/dict/data/dictlist', |
|
|
|
opctionParams: { |
|
|
|
dictType: 'party_job' |
|
|
|
}, |
|
|
|
opction: [] |
|
|
|
opctionUrl: "sys/dict/data/dictlist", |
|
|
|
opctionParams: { dictType: "party_job" }, |
|
|
|
formNameP: "parymemberInfoDto", |
|
|
|
opction: [], |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: "工作职责", |
|
|
|
itemType: "input", |
|
|
|
formName: "duty", |
|
|
|
formNameP: "parymemberInfoDto", |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: "是否退休", |
|
|
|
itemType: "radio", |
|
|
|
formName: "retiredFlag", |
|
|
|
opction: [{ |
|
|
|
label: '是', |
|
|
|
value: 1 |
|
|
|
formNameP: "parymemberInfoDto", |
|
|
|
opction: [ |
|
|
|
{ label: "是", value: 1 }, |
|
|
|
{ label: "否", value: 0 }, |
|
|
|
], |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: '否', |
|
|
|
value: 0 |
|
|
|
}, |
|
|
|
] |
|
|
|
}, { |
|
|
|
label: "党员中心户", |
|
|
|
itemType: "radio", |
|
|
|
formName: "centerFlag", |
|
|
|
opction: [{ |
|
|
|
label: '是', |
|
|
|
value: 1 |
|
|
|
formNameP: "parymemberInfoDto", |
|
|
|
opction: [ |
|
|
|
{ label: "是", value: 1 }, |
|
|
|
{ label: "否", value: 0 }, |
|
|
|
], |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: '否', |
|
|
|
value: 0 |
|
|
|
}, |
|
|
|
] |
|
|
|
}, { |
|
|
|
label: "免学习", |
|
|
|
itemType: "radio", |
|
|
|
formName: "studyNotNeed", |
|
|
|
opction: [{ |
|
|
|
label: '是', |
|
|
|
value: 1 |
|
|
|
formNameP: "parymemberInfoDto", |
|
|
|
opction: [ |
|
|
|
{ label: "是", value: 1 }, |
|
|
|
{ label: "否", value: 0 }, |
|
|
|
], |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: '否', |
|
|
|
value: 0 |
|
|
|
}, |
|
|
|
] |
|
|
|
}, { |
|
|
|
label: "入党时所在党支部", |
|
|
|
itemType: "input", |
|
|
|
formName: "joinBranchName", |
|
|
|
}, { |
|
|
|
formNameP: "parymemberInfoDto", |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: "组织关系转入社区时间", |
|
|
|
itemType: "datepicker1", |
|
|
|
itemType: "datepicker", |
|
|
|
formName: "joinCommunityTime", |
|
|
|
opction: [] |
|
|
|
formNameP: "parymemberInfoDto", |
|
|
|
opction: [], |
|
|
|
}, |
|
|
|
] |
|
|
|
], |
|
|
|
}, |
|
|
|
{ |
|
|
|
id: 'ensureHouseDto', |
|
|
|
children: [{ |
|
|
|
id: "ensureHouseDto", |
|
|
|
children: [ |
|
|
|
{ |
|
|
|
label: "所在社区", |
|
|
|
itemType: "input", |
|
|
|
formName: "liveCommunity", |
|
|
|
formNameP: "ensureHouseDto", |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: "住房性质", |
|
|
|
itemType: "select", |
|
|
|
formName: "housingNature", |
|
|
|
opctionUrl: 'sys/dict/data/house', |
|
|
|
opctionParams: { |
|
|
|
formCode: "resi_base_info" |
|
|
|
opctionUrl: "sys/dict/data/house", |
|
|
|
opctionParams: { formCode: "resi_base_info" }, |
|
|
|
formNameP: "ensureHouseDto", |
|
|
|
opction: [], |
|
|
|
}, |
|
|
|
opction: [] |
|
|
|
} |
|
|
|
] |
|
|
|
], |
|
|
|
}, |
|
|
|
{ |
|
|
|
id: 'veteranDto', |
|
|
|
children: [{ |
|
|
|
id: "veteranDto", |
|
|
|
children: [ |
|
|
|
{ |
|
|
|
label: "入伍时间", |
|
|
|
itemType: "datepicker1", |
|
|
|
itemType: "datepicker", |
|
|
|
formName: "joinArmyTime", |
|
|
|
opction: [] |
|
|
|
formNameP: "veteranDto", |
|
|
|
opction: [], |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: "退伍时间", |
|
|
|
itemType: "datepicker1", |
|
|
|
itemType: "datepicker", |
|
|
|
formName: "leaveArmyTime", |
|
|
|
opction: [] |
|
|
|
formNameP: "veteranDto", |
|
|
|
opction: [], |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: "服役单位", |
|
|
|
itemType: "input", |
|
|
|
formName: "serviceUnit", |
|
|
|
formNameP: "veteranDto", |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: "接收单位", |
|
|
|
itemType: "input", |
|
|
|
formName: "receiveUnit", |
|
|
|
formNameP: "veteranDto", |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: "待安置补助金", |
|
|
|
itemType: "inputNum", |
|
|
|
formName: "settlementAmount", |
|
|
|
opction: [ |
|
|
|
|
|
|
|
] |
|
|
|
formNameP: "veteranDto", |
|
|
|
opction: [], |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: "培训状况", |
|
|
|
itemType: "input", |
|
|
|
formName: "trainDesc", |
|
|
|
formNameP: "veteranDto", |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: "现就业情况", |
|
|
|
itemType: "input", |
|
|
|
formName: "employmentSituation", |
|
|
|
formNameP: "veteranDto", |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: "是否办理公益性岗位", |
|
|
|
itemType: "radio", |
|
|
|
formName: "pubWelfareJobFlag", |
|
|
|
opction: [{ |
|
|
|
label: '是', |
|
|
|
value: 1 |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: '否', |
|
|
|
value: 0 |
|
|
|
formNameP: "veteranDto", |
|
|
|
opction: [ |
|
|
|
{ label: "是", value: 1 }, |
|
|
|
{ label: "否", value: 0 }, |
|
|
|
], |
|
|
|
}, |
|
|
|
] |
|
|
|
} |
|
|
|
] |
|
|
|
], |
|
|
|
}, |
|
|
|
{ |
|
|
|
id: 'unitedFrontDto', |
|
|
|
children: [{ |
|
|
|
id: "unitedFrontDto", |
|
|
|
children: [ |
|
|
|
{ |
|
|
|
label: "统战类型", |
|
|
|
itemType: "input", |
|
|
|
formNameP: "unitedFrontDto", |
|
|
|
formName: "unitedFrontType", |
|
|
|
}] |
|
|
|
}, |
|
|
|
], |
|
|
|
}, |
|
|
|
{ |
|
|
|
id: "volunteerDto", |
|
|
|
children: [ |
|
|
|
{ |
|
|
|
id: 'volunteerDto', |
|
|
|
children: [{ |
|
|
|
label: "志愿者类别", |
|
|
|
itemType: "checkbox", |
|
|
|
formName: "volunteerCategory", |
|
|
|
opctionUrl: 'sys/dict/data/dictlist', |
|
|
|
opctionParams: { |
|
|
|
dictType: "VOLUNTEER_CATEGORY" |
|
|
|
formNameP: "volunteerDto", |
|
|
|
opctionUrl: "sys/dict/data/dictlist", |
|
|
|
opctionParams: { dictType: "VOLUNTEER_CATEGORY" }, |
|
|
|
opction: [], |
|
|
|
}, |
|
|
|
opction: [] |
|
|
|
}] |
|
|
|
], |
|
|
|
}, |
|
|
|
{ |
|
|
|
id: 'specialSupportDto', |
|
|
|
id: "specialSupportDto", |
|
|
|
children: [ |
|
|
|
|
|
|
|
{ //0
|
|
|
|
{ |
|
|
|
label: "特扶类别", |
|
|
|
itemType: "select", |
|
|
|
formName: "specialSupportType", |
|
|
|
opction: [{ |
|
|
|
value: '1', |
|
|
|
label: '失独' |
|
|
|
formNameP: "specialSupportDto", |
|
|
|
opction: [ |
|
|
|
{ |
|
|
|
value: "1", |
|
|
|
label: "失独", |
|
|
|
}, |
|
|
|
{ |
|
|
|
value: '2', |
|
|
|
label: '伤残' |
|
|
|
} |
|
|
|
] |
|
|
|
value: "2", |
|
|
|
label: "伤残", |
|
|
|
}, |
|
|
|
], |
|
|
|
}, |
|
|
|
{ //1
|
|
|
|
{ |
|
|
|
//1
|
|
|
|
label: "子女姓名", |
|
|
|
itemType: "input", |
|
|
|
formName: "childName", |
|
|
|
opction: [] |
|
|
|
formNameP: "specialSupportDto", |
|
|
|
opction: [], |
|
|
|
}, |
|
|
|
{ //2
|
|
|
|
{ |
|
|
|
//2
|
|
|
|
label: "子女性别", |
|
|
|
itemType: "select", |
|
|
|
formName: "childGender", |
|
|
|
opction: [{ |
|
|
|
value: '1', |
|
|
|
label: '男' |
|
|
|
formNameP: "specialSupportDto", |
|
|
|
opction: [ |
|
|
|
{ |
|
|
|
value: "1", |
|
|
|
label: "男", |
|
|
|
}, |
|
|
|
{ |
|
|
|
value: '2', |
|
|
|
label: '女' |
|
|
|
} |
|
|
|
] |
|
|
|
value: "2", |
|
|
|
label: "女", |
|
|
|
}, |
|
|
|
], |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: "子女死亡日期", |
|
|
|
itemType: "datepicker1", |
|
|
|
formName: "certificateDate", |
|
|
|
itemType: "datepicker", |
|
|
|
formName: "childDeathDate", |
|
|
|
formNameP: "specialSupportDto", |
|
|
|
opction: [], |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: "子女伤残类别", |
|
|
|
itemType: "select", |
|
|
|
formName: "childDisabilityCategoryCode", |
|
|
|
opctionUrl: 'sys/dict/data/dictlist', |
|
|
|
opctionParams: { |
|
|
|
dictType: 'disability_category_code' |
|
|
|
}, |
|
|
|
opction: [] |
|
|
|
opctionUrl: "sys/dict/data/dictlist", |
|
|
|
formNameP: "specialSupportDto", |
|
|
|
opctionParams: { dictType: "disability_category_code" }, |
|
|
|
opction: [], |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: "子女伤残等级", |
|
|
|
itemType: "select", |
|
|
|
formNameP: "specialSupportDto", |
|
|
|
formName: "childDisabilityLevel", |
|
|
|
opctionUrl: 'sys/dict/data/dictlist', |
|
|
|
opctionParams: { |
|
|
|
dictType: 'disability_level' |
|
|
|
opctionUrl: "sys/dict/data/dictlist", |
|
|
|
opctionParams: { dictType: "disability_level" }, |
|
|
|
opction: [], |
|
|
|
}, |
|
|
|
opction: [] |
|
|
|
} |
|
|
|
|
|
|
|
] |
|
|
|
], |
|
|
|
}, |
|
|
|
], |
|
|
|
popupTitle: '新增' |
|
|
@ -815,7 +812,7 @@ Page({ |
|
|
|
activeForm: 3 |
|
|
|
}) |
|
|
|
} |
|
|
|
|
|
|
|
console.log(this.data.form); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -899,6 +896,9 @@ Page({ |
|
|
|
http.post("sys/dict/data/dictlist", { |
|
|
|
dictType: "career_goals", |
|
|
|
}), |
|
|
|
http.post("sys/dict/data/dictlist", { |
|
|
|
dictType: "special_resident_category", |
|
|
|
}), |
|
|
|
]; |
|
|
|
const dictKeys = [ |
|
|
|
"nationalityList", |
|
|
@ -911,6 +911,7 @@ Page({ |
|
|
|
"spouseSituationList", |
|
|
|
"unemploymentReasonList", |
|
|
|
"employmentWishList", |
|
|
|
"specialResidentCategory" |
|
|
|
]; // 对应的键名
|
|
|
|
|
|
|
|
const results = await Promise.all(requests); |
|
|
@ -1028,7 +1029,7 @@ Page({ |
|
|
|
getQuartersOptions(gridId, indexP) { |
|
|
|
let parm = { |
|
|
|
gridId, |
|
|
|
agencyId: this.data.agecyId |
|
|
|
agencyId:App.globalData.user.agencyId |
|
|
|
} |
|
|
|
api.getQuartersOptions(parm).then(res => { |
|
|
|
this.setData({ |
|
|
@ -1070,6 +1071,8 @@ Page({ |
|
|
|
this.setData({ |
|
|
|
['form.resideInfoDtos[' + e.currentTarget.dataset.indexp + '].resiHouseRel']: this.data.resiHouseRelList[e.detail.value].value, |
|
|
|
['form.resideInfoDtos[' + e.currentTarget.dataset.indexp + '].resiHouseRelName']: this.data.resiHouseRelList[e.detail.value].label, |
|
|
|
['form.resideInfoDtos[' + e.currentTarget.dataset.indexp + '].householdSituation']:this.data.resiHouseRelList[e.detail.value].value == '0'?'rhyz':'rzhbz', |
|
|
|
['form.resideInfoDtos[' + e.currentTarget.dataset.indexp + '].householdSituationName']: this.data.dicts.householdSituationList[e.detail.value == 1?1:0].label, |
|
|
|
|
|
|
|
}) |
|
|
|
}, |
|
|
@ -1079,6 +1082,12 @@ Page({ |
|
|
|
['form.resideInfoDtos[' + e.currentTarget.dataset.indexp + '].houseHolderRelName']: this.data.dicts.houseHolderRelList[e.detail.value].label, |
|
|
|
}) |
|
|
|
}, |
|
|
|
bindPickerChangeHouseholdSituation(e){ |
|
|
|
this.setData({ |
|
|
|
['form.resideInfoDtos[' + e.currentTarget.dataset.indexp + '].householdSituation']: this.data.dicts.householdSituationList[e.detail.value].value, |
|
|
|
['form.resideInfoDtos[' + e.currentTarget.dataset.indexp + '].householdSituationName']: this.data.dicts.householdSituationList[e.detail.value].label, |
|
|
|
}) |
|
|
|
}, |
|
|
|
bindCurrentResidenceInput(e) { |
|
|
|
this.setData({ |
|
|
|
['form.resideInfoDtos[' + e.currentTarget.dataset.indexp + '].currentResidence']: e.detail.value, |
|
|
@ -1148,7 +1157,7 @@ Page({ |
|
|
|
}, |
|
|
|
bindIdNumInput(e) { |
|
|
|
this.setData({ |
|
|
|
'form.baseInfoDto.name': e.detail.value, |
|
|
|
'form.baseInfoDto.idNum': e.detail.value, |
|
|
|
}) |
|
|
|
}, |
|
|
|
bindPickerChangeNationality(e) { |
|
|
@ -1164,10 +1173,10 @@ Page({ |
|
|
|
'form.baseInfoDto.mobile': e.detail.value, |
|
|
|
}) |
|
|
|
}, |
|
|
|
bindPickerChangeGender() { |
|
|
|
bindPickerChangeGender(e) { |
|
|
|
this.setData({ |
|
|
|
genderName: this.data.genderList[e.detail.value].label, |
|
|
|
"form.gender": this.data.genderList[e.detail.value].value |
|
|
|
genderName: this.data.dicts.genderList[e.detail.value].label, |
|
|
|
"form.gender": this.data.dicts.genderList[e.detail.value].value |
|
|
|
}) |
|
|
|
}, |
|
|
|
bindDateChange(e) { |
|
|
@ -1190,6 +1199,7 @@ Page({ |
|
|
|
this.setData({ |
|
|
|
"form.familyInfoDto.marriage": this.data.dicts.marriageList[e.detail.value].value, |
|
|
|
marriageName: this.data.dicts.marriageList[e.detail.value].label, |
|
|
|
"form.familyInfoDto.spouseSituation":null |
|
|
|
}) |
|
|
|
}, |
|
|
|
bindPickerChangeSpouse(e) { |
|
|
@ -1284,6 +1294,13 @@ Page({ |
|
|
|
employmentWishName: this.data.dicts.employmentWishList[e.detail.value].label |
|
|
|
}) |
|
|
|
}, |
|
|
|
bindElderlyFlag(e){ |
|
|
|
this.setData({ |
|
|
|
"form.familyInfoDto.elderlyFlag": this.data.dicts.employmentWishList[e.detail.value].value, |
|
|
|
employmentWishName: this.data.dicts.employmentWishList[e.detail.value].label |
|
|
|
}) |
|
|
|
console.log(this.data.form); |
|
|
|
}, |
|
|
|
bindElderlyRelation(e) { |
|
|
|
this.setData({ |
|
|
|
"form.familyInfoDto.elderlyRelation": this.data.dicts.houseHolderRelList[e.detail.value].value, |
|
|
@ -1298,16 +1315,46 @@ Page({ |
|
|
|
//**拓展信息end */
|
|
|
|
|
|
|
|
//**人员标签start */
|
|
|
|
bindPartyFlag(e){ |
|
|
|
this.setData({ |
|
|
|
'form.baseInfoDto.categoryInfo.partyFlag':e.detail.value |
|
|
|
}) |
|
|
|
}, |
|
|
|
bindSpecialCategory(e){ |
|
|
|
console.log(e); |
|
|
|
if(e.detail.value == '1'){ |
|
|
|
|
|
|
|
let specialCategoryCodes = this.data.form.specialDto.specialCategoryCodes; |
|
|
|
specialCategoryCodes.push(e.currentTarget.dataset.category); |
|
|
|
this.setData({ |
|
|
|
'form.specialDto.specialCategoryCodes': specialCategoryCodes, |
|
|
|
'form.baseInfoDto.categoryInfo.specialCrowdFlag':1 |
|
|
|
}); |
|
|
|
}else{ |
|
|
|
let specialCategoryCodes = this.data.form.specialDto.specialCategoryCodes; |
|
|
|
specialCategoryCodes= specialCategoryCodes.filter(item => item != e.currentTarget.dataset.category); |
|
|
|
this.setData({ |
|
|
|
'form.specialDto.specialCategoryCodes':specialCategoryCodes |
|
|
|
}) |
|
|
|
} |
|
|
|
console.log(this.data.form); |
|
|
|
}, |
|
|
|
onCloseExpandForm() { |
|
|
|
this.setData({ |
|
|
|
showExpand: false |
|
|
|
}) |
|
|
|
}, |
|
|
|
bindResiLabelFlag(e) { |
|
|
|
let flagLabel = e.currentTarget.dataset.field.toString(); |
|
|
|
if(e.detail.value ==='1'){ |
|
|
|
this.setData({ |
|
|
|
[flagLabel]: Number(e.detail.value) |
|
|
|
}) |
|
|
|
['form.baseInfoDto.categoryInfo.' + e.target.dataset.category]: 1 |
|
|
|
}); |
|
|
|
}else{ |
|
|
|
this.setData({ |
|
|
|
['form.baseInfoDto.categoryInfo.' + e.target.dataset.category]: 0 |
|
|
|
}); |
|
|
|
} |
|
|
|
console.log(this.data.form); |
|
|
|
}, |
|
|
|
showDetailForm(e) { |
|
|
|
let arr = this.data.orgList.filter(item => item.id === e.currentTarget.dataset.dto) |
|
|
@ -1353,6 +1400,28 @@ Page({ |
|
|
|
this.setData({ |
|
|
|
showExpand: false |
|
|
|
}) |
|
|
|
} |
|
|
|
}, |
|
|
|
changExpandForm(e){ |
|
|
|
console.log(e); |
|
|
|
this.setData({ |
|
|
|
['form.' + e.detail.formNameP+'.'+ e.detail.formName]:e.detail.formValue |
|
|
|
}) |
|
|
|
console.log(this.data.form); |
|
|
|
}, |
|
|
|
//**人员标签end */
|
|
|
|
|
|
|
|
// 提交
|
|
|
|
saveForm(){ |
|
|
|
let form = {...this.data.form}; |
|
|
|
form.resideInfoDtos.forEach(item=>{ |
|
|
|
delete item.optionsB, |
|
|
|
delete item.optionsD |
|
|
|
delete item.optionsH |
|
|
|
delete item.optionsV |
|
|
|
}) |
|
|
|
api.submitResi(form).then(res=>{ |
|
|
|
console.log(res); |
|
|
|
}) |
|
|
|
console.log(this.data.form); |
|
|
|
} |
|
|
|
}) |