diff --git a/app.json b/app.json index 73e2567..00345a9 100644 --- a/app.json +++ b/app.json @@ -156,9 +156,7 @@ "getLocation", "chooseLocation" ], - "navigateToMiniProgramAppIdList": [ - "wx50ebeb95943868cd" - ], + "networkTimeout": { "request": 60000 }, diff --git a/project.private.config.json b/project.private.config.json index a1e1d7f..7c3cec8 100644 --- a/project.private.config.json +++ b/project.private.config.json @@ -263,5 +263,5 @@ ] } }, - "libVersion": "3.1.5" + "libVersion": "2.19.6" } \ No newline at end of file diff --git a/subpages/OCRCard/pages/index/index.js b/subpages/OCRCard/pages/index/index.js index 909af73..e586272 100644 --- a/subpages/OCRCard/pages/index/index.js +++ b/subpages/OCRCard/pages/index/index.js @@ -71,7 +71,7 @@ Page({ getTable: async function (type){ let parm ={ - searchKey:this.data.keyWord, + name:this.data.keyWord, pageSize:10, pageNo:1 } diff --git a/subpages/addResi/component/expandForm/index.js b/subpages/addResi/component/expandForm/index.js index e2fb6d4..e142b56 100644 --- a/subpages/addResi/component/expandForm/index.js +++ b/subpages/addResi/component/expandForm/index.js @@ -20,97 +20,16 @@ Component({ * 组件的初始数据 */ 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: [] - }, - }, + formType:null }, // onReady(){ // }, ready: async function () { - console.log(this.data.formList); + if(this.data.formList && this.data.formList.length >0){ + this.setData({ + formType:this.data.formList[0].formNameP + }) + } }, /** * 组件的方法列表 @@ -134,10 +53,21 @@ Component({ }) }, radioChange(e){ + console.log(e); + const selectedIndex =Number( e.detail.value); let formName = e.currentTarget.dataset.formname; let formValue = Number(e.detail.value); let formNameP = e.currentTarget.dataset.formnamep; this.triggerEvent('changExpandForm',{formName,formNameP,formValue}) + this.setData({ + 'formList': this.data.formList.map(item => { + if (item.formName === formName) { + return { ...item, selectLabel: selectedIndex }; + } else { + return item; + }}) + }) + console.log(this.data.formList); }, bindinput(e){ let formName = e.currentTarget.dataset.formname; @@ -167,10 +97,11 @@ Component({ }, hideForm(){ - this.triggerEvent('hideExpandForm') + this.triggerEvent('hideExpandForm',{formType:this.data.formType}) }, confirm(){ - this.triggerEvent('confirmExpandForm') + console.log(this.data.formList); + this.triggerEvent('confirmExpandForm',{formList:this.data.formList,formType:this.data.formType}) }, diff --git a/subpages/addResi/component/expandForm/index.wxml b/subpages/addResi/component/expandForm/index.wxml index 16f3438..ee75f12 100644 --- a/subpages/addResi/component/expandForm/index.wxml +++ b/subpages/addResi/component/expandForm/index.wxml @@ -17,9 +17,9 @@ {{itemP.label}} -