ssfg 4 سال پیش
والد
کامیت
41f8a988f9
2فایلهای تغییر یافته به همراه284 افزوده شده و 147 حذف شده
  1. 267 128
      pages/collectInfo/collectInfo.js
  2. 17 19
      pages/collectInfo/collectInfo.wxml

+ 267 - 128
pages/collectInfo/collectInfo.js

@@ -64,7 +64,7 @@ Page({
         name: "老年人慢性病",
         disabled: false
       }],
-     
+
       disabilityAyy: [{
         name: "视力残疾"
       }, {
@@ -92,62 +92,94 @@ Page({
       }, {
         name: "恶性肿瘤"
       }],
-      ability:'',//老年人能力情况
-      livingCondition:'',//生活经济情况
-      moneyFromAyy: [{name:"家庭经营性收入"}, {name:"工资性收入"}, {name:"转移性收入"}, {name:"财产性收入"}, {name:"其它"}],
+      ability: '', //老年人能力情况
+      livingCondition: '', //生活经济情况
+      moneyFromAyy: [{
+        name: "家庭经营性收入"
+      }, {
+        name: "工资性收入"
+      }, {
+        name: "转移性收入"
+      }, {
+        name: "财产性收入"
+      }, {
+        name: "其它"
+      }],
+      income: '',
+      sourceOfIncomeExt:'',//其他收入情况
+      familyHelpArr: [{
+        name: "低保"
+      }, {
+        name: "建档立卡贫困户"
+      }, {
+        name: "医疗救助"
+      }, {
+        name: "临时救助"
+      }, {
+        name: "老年人福利津贴"
+      }, {
+        name: "残疾人两项补贴(或一项补贴)"
+      }, {
+        name: "其他救助"
+      }],
+      rescueStateExt:'',//其他救助
+      loneArr: [{
+        name: "是"
+      }, {
+        name: "否"
+      }],
+      liveStatus: [{
+        name: "无人陪伴居住",
+        disabled: false
+      }, {
+        name: "配偶",
+        disabled: false
+      }, {
+        name: "近亲属",
+        disabled: false
+      }, {
+        name: "未成年孙子女",
+        disabled: false
+      }, {
+        name: "其他情形",
+        disabled: false
+      }],
+      accompanyExt:'',//陪伴居住其他
+      oftenMan: [{
+        name: "无人照料",
+        disabled: false
+      }, {
+        name: "近亲属",
+        disabled: false
+      }, {
+        name: "配偶",
+        disabled: false
+      }, {
+        name: "邻里互助",
+        disabled: false
+      }, {
+        name: "购买养老服务",
+        disabled: false
+      }, {
+        name: "其他人员",
+        disabled: false
+      }],
+      lookAfterExt:'',//其他日常生活照料人关系
+      mainLookName:'',//日常生活照料人姓名
+      mainLookSex: [{name:"男"}, {name:"女"}],
+      mainLookPhone:'',//日常生活照料人电话
     }],
     mzArr: ["汉族", "壮族", "满族", "回族", "苗族", "维吾尔族", "土家族", "彝族", "蒙古族", "藏族", "布依族", "侗族", "瑶族", "朝鲜族", "白族", "哈尼族",
       "哈萨克族", "黎族", "傣族", "畲族", "傈僳族", "仡佬族", "东乡族", "高山族", "拉祜族", "水族", "佤族", "纳西族", "羌族", "土族", "仫佬族", "锡伯族",
       "柯尔克孜族", "达斡尔族", "景颇族", "毛南族", "撒拉族", "布朗族", "塔吉克族", "阿昌族", "普米族", "鄂温克族", "怒族", "京族", "基诺族", "德昂族", "保安族",
       "俄罗斯族", "裕固族", "乌孜别克族", "门巴族", "鄂伦春族", "独龙族", "塔塔尔族", "赫哲族", "珞巴族"
     ],
-    ableStatus: ["完全自理", "半失能(部分自理)", "完全失能"],//老年人能力情况
+    ableStatus: ["完全自理", "半失能(部分自理)", "完全失能"], //老年人能力情况
     chooseAdressArr: [],
     disableLeval: ["一级", "二级", "三级", "四级"],
     moneyStatus: ["建档立卡贫困户", "一般家庭", "低保", "特困供养人员"],
-    
     payMoney: ["5000元以下", "5000-10000元", "10000元以上"],
-    familyHelpArr: [
-      "低保", "建档立卡贫困户", "医疗救助", "临时救助", "老年人福利津贴", "残疾人两项补贴(或一项补贴)", "其他救助"
-    ],
-    loneArr: ["是", "否"],
-    liveStatus: [{
-      name: "无人陪伴居住",
-      disabled: false
-    }, {
-      name: "配偶",
-      disabled: false
-    }, {
-      name: "近亲属",
-      disabled: false
-    }, {
-      name: "未成年孙子女",
-      disabled: false
-    }, {
-      name: "其他情形",
-      disabled: false
-    }],
-
-    oftenMan: [{
-      name: "无人照料",
-      disabled: false
-    }, {
-      name: "近亲属",
-      disabled: false
-    }, {
-      name: "配偶",
-      disabled: false
-    }, {
-      name: "邻里互助",
-      disabled: false
-    }, {
-      name: "购买养老服务",
-      disabled: false
-    }, {
-      name: "其他人员",
-      disabled: false
-    }],
-    lookafterSex: ["男", "女"],
+   
     loveRequire: ["生活照料", "生产帮助", "精神慰藉", "医疗保健", "权益维护", "安全监护", "文化娱乐", "紧急救助", "其它"],
     oldType: [{
       name: "农村留守老年人",
@@ -437,7 +469,6 @@ Page({
             }, {
               name: "多重残疾"
             }],
-            // disableLeval: ["一级", "二级", "三级", "四级"],
             disabilityLevel: '', //残疾人等级
             sickType: [{
               name: "重大器官类疾病"
@@ -450,8 +481,81 @@ Page({
             }, {
               name: "恶性肿瘤"
             }],
-            ability:'',
-            moneyFromAyy: [{name:"家庭经营性收入"}, {name:"工资性收入"}, {name:"转移性收入"}, {name:"财产性收入"}, {name:"其它"}],
+            ability: '',
+            moneyFromAyy: [{
+              name: "家庭经营性收入"
+            }, {
+              name: "工资性收入"
+            }, {
+              name: "转移性收入"
+            }, {
+              name: "财产性收入"
+            }, {
+              name: "其它"
+            }],
+            income: '',
+            sourceOfIncomeExt:'',
+            familyHelpArr: [{
+              name: "低保"
+            }, {
+              name: "建档立卡贫困户"
+            }, {
+              name: "医疗救助"
+            }, {
+              name: "临时救助"
+            }, {
+              name: "老年人福利津贴"
+            }, {
+              name: "残疾人两项补贴(或一项补贴)"
+            }, {
+              name: "其他救助"
+            }],
+            rescueStateExt:'',//其他救助
+            loneArr: [{
+              name: "是"
+            }, {
+              name: "否"
+            }],
+            liveStatus: [{
+              name: "无人陪伴居住",
+              disabled: false
+            }, {
+              name: "配偶",
+              disabled: false
+            }, {
+              name: "近亲属",
+              disabled: false
+            }, {
+              name: "未成年孙子女",
+              disabled: false
+            }, {
+              name: "其他情形",
+              disabled: false
+            }],
+            accompanyExt:'',//陪伴居住其他
+            oftenMan: [{
+              name: "无人照料",
+              disabled: false
+            }, {
+              name: "近亲属",
+              disabled: false
+            }, {
+              name: "配偶",
+              disabled: false
+            }, {
+              name: "邻里互助",
+              disabled: false
+            }, {
+              name: "购买养老服务",
+              disabled: false
+            }, {
+              name: "其他人员",
+              disabled: false
+            }],
+            lookAfterExt:'',//其他日常生活照料人
+            mainLookName:'',//日常生活照料人姓名
+            mainLookSex: [{name:"男"}, {name:"女"}],
+            mainLookPhone:''//日常生活照料人电话
           })
           console.log(this.data.oldInfo)
           this.setData({
@@ -864,17 +968,6 @@ Page({
         [revise3]: false,
       })
     }
-    // if (index1 >= 0 && index < 0) {
-    //   this.setData({
-    //     oldHealth2: true
-    //   })
-    // } else {
-    //   this.setData({
-    //     oldHealth2: false,
-    //     oldDisableType: false,
-    //     issickTypeNull: false
-    //   })
-    // }
     if (index2 >= 0 && index < 0) {
       this.setData({
         isSick: true
@@ -991,7 +1084,7 @@ Page({
     // }
     this.SubmitOldmanInfo({
       id: this.data.nameArr[this.data.activeIndex]._id,
-      ability: this.data.disableLeval[e.detail.value]
+      ability: this.data.ableStatus[e.detail.value]
     })
   },
   // 生活经济情况
@@ -1048,6 +1141,10 @@ Page({
       this.setData({
         moneyOtherQtnull: false
       })
+      let sourceOfIncomeExt = 'oldInfo[' + this.data.activeIndex + '].sourceOfIncomeExt'
+      this.setData({
+        [sourceOfIncomeExt]: e.detail.value
+      })
       this.SubmitOldmanInfo({
         id: this.data.nameArr[this.data.activeIndex]._id,
         sourceOfIncomeExt: e.detail.value
@@ -1056,8 +1153,9 @@ Page({
   },
   // 本人上年度可支配收入
   tab1Change15: function (e) {
+    let income = 'oldInfo[' + this.data.activeIndex + '].income'
     this.setData({
-      payIndex: e.detail.value
+      [income]: this.data.payMoney[e.detail.value]
     })
     this.SubmitOldmanInfo({
       id: this.data.nameArr[this.data.activeIndex]._id,
@@ -1066,6 +1164,22 @@ Page({
   },
   // 家庭救助帮扶情况
   tab1Change16: function (e) {
+    console.log(e.detail.value)
+    const items = this.data.oldInfo[this.data.activeIndex].familyHelpArr
+    const values = e.detail.value
+    for (let i = 0, lenI = items.length; i < lenI; ++i) {
+      items[i].checked = false
+      for (let j = 0, lenJ = values.length; j < lenJ; ++j) {
+        if (items[i].name === values[j]) {
+          items[i].checked = true
+          break
+        }
+      }
+    }
+    let familyHelpArr = 'oldInfo[' + this.data.activeIndex + '].familyHelpArr'
+    this.setData({
+      [familyHelpArr]: items
+    })
     if (e.detail.value.length == 0) {
       this.setData({
         familyHelp: true
@@ -1076,23 +1190,12 @@ Page({
         familyHelp: false
       })
     }
-    let index = e.detail.value.indexOf('其他救助')
-    if (index >= 0) {
-      this.setData({
-        familyHelpQt: true
-      })
-    } else {
-      this.setData({
-        familyHelpQt: false,
-        otherhelpQtnull: false
-      })
-    }
     this.SubmitOldmanInfo({
       id: this.data.nameArr[this.data.activeIndex]._id,
       rescueState: JSON.stringify(e.detail.value)
     })
   },
-  // 其他家庭救助帮扶情况
+  // 其他救助帮扶情况
   tab1Change16_1: function (e) {
     if (e.detail.value == null || e.detail.value == '') {
       this.setData({
@@ -1102,6 +1205,10 @@ Page({
       this.setData({
         otherhelpQtnull: false
       })
+      let rescueStateExt = 'oldInfo[' + this.data.activeIndex + '].rescueStateExt'
+      this.setData({
+        [rescueStateExt]: e.detail.value
+      })
       this.SubmitOldmanInfo({
         id: this.data.nameArr[this.data.activeIndex]._id,
         rescueStateExt: e.detail.value
@@ -1111,6 +1218,22 @@ Page({
   // 是否为失独家庭
   tab1Change17: function (e) {
     console.log(e.detail.value)
+    let data = this.data.oldInfo[this.data.activeIndex].loneArr.map(v => {
+      if (v.name == e.detail.value) {
+        return {
+          name: v.name,
+          checked: true
+        }
+      }
+      return {
+        name: v.name,
+        checked: false
+      }
+    })
+    let loneArr = 'oldInfo[' + this.data.activeIndex + '].loneArr'
+    this.setData({
+      [loneArr]: data
+    })
     this.SubmitOldmanInfo({
       id: this.data.nameArr[this.data.activeIndex]._id,
       isLoss: e.detail.value
@@ -1119,7 +1242,7 @@ Page({
   // 陪伴居住情况
   tab1Change18: function (e) {
     console.log(e.detail.value)
-    const items = this.data.liveStatus
+    const items = this.data.oldInfo[this.data.activeIndex].liveStatus
     const values = e.detail.value
     for (let i = 0, lenI = items.length; i < lenI; ++i) {
       items[i].checked = false
@@ -1130,17 +1253,18 @@ Page({
         }
       }
     }
+    let liveStatus = 'oldInfo[' + this.data.activeIndex + '].liveStatus'
     this.setData({
-      liveStatus: items
-    })
-    let revise1 = "liveStatus[1].disabled";
-    let revise2 = "liveStatus[2].disabled";
-    let revise3 = "liveStatus[3].disabled";
-    let revise4 = "liveStatus[4].disabled";
-    let rev1 = "liveStatus[1].checked";
-    let rev2 = "liveStatus[2].checked";
-    let rev3 = "liveStatus[3].checked";
-    let rev4 = "liveStatus[4].checked";
+      [liveStatus]: items
+    })
+    let revise1 = "oldInfo[" + this.data.activeIndex + "].liveStatus[1].disabled";
+    let revise2 = "oldInfo[" + this.data.activeIndex + "].liveStatus[2].disabled";
+    let revise3 = "oldInfo[" + this.data.activeIndex + "].liveStatus[3].disabled";
+    let revise4 = "oldInfo[" + this.data.activeIndex + "].liveStatus[4].disabled";
+    let rev1 = "oldInfo[" + this.data.activeIndex + "].liveStatus[1].checked";
+    let rev2 = "oldInfo[" + this.data.activeIndex + "].liveStatus[2].checked";
+    let rev3 = "oldInfo[" + this.data.activeIndex + "].liveStatus[3].checked";
+    let rev4 = "oldInfo[" + this.data.activeIndex + "].liveStatus[4].checked";
     if (e.detail.value.length == 0) {
       this.setData({
         isliveNull: true
@@ -1151,8 +1275,8 @@ Page({
       })
     }
     let index = e.detail.value.indexOf('无人陪伴居住');
-    let index1 = e.detail.value.indexOf('其他情形');
     if (index >= 0) {
+      console.log('有无人陪伴居住')
       this.setData({
         [revise1]: true,
         [revise2]: true,
@@ -1167,6 +1291,7 @@ Page({
         id: this.data.nameArr[this.data.activeIndex]._id,
         health: JSON.stringify(['无人陪伴居住'])
       })
+      console.log(this.data.oldInfo[this.data.activeIndex].liveStatus)
     } else {
       this.setData({
         [revise1]: false,
@@ -1175,16 +1300,6 @@ Page({
         [revise4]: false
       })
     }
-    if (index1 >= 0) {
-      this.setData({
-        isliveQt: true
-      })
-    } else {
-      this.setData({
-        isliveQt: false,
-        isliveQtNull: false
-      })
-    }
     if (index < 0 && e.detail.value.length != 0) {
       this.SubmitOldmanInfo({
         id: this.data.nameArr[this.data.activeIndex]._id,
@@ -1202,6 +1317,10 @@ Page({
       this.setData({
         isliveQtNull: false
       })
+      let accompanyExt = 'oldInfo[' + this.data.activeIndex + '].accompanyExt'
+      this.setData({
+        [accompanyExt]: e.detail.value
+      })
       this.SubmitOldmanInfo({
         id: this.data.nameArr[this.data.activeIndex]._id,
         accompanyExt: e.detail.value
@@ -1211,7 +1330,7 @@ Page({
   // 日常生活照料人
   tab1Change19: function (e) {
     console.log(e.detail.value)
-    const items = this.data.oftenMan
+    const items = this.data.oldInfo[this.data.activeIndex].oftenMan
     const values = e.detail.value
     for (let i = 0, lenI = items.length; i < lenI; ++i) {
       items[i].checked = false
@@ -1222,19 +1341,20 @@ Page({
         }
       }
     }
+    let oftenMan = 'oldInfo[' + this.data.activeIndex + '].oftenMan'
     this.setData({
-      oftenMan: items
-    })
-    let revise1 = "oftenMan[1].disabled";
-    let revise2 = "oftenMan[2].disabled";
-    let revise3 = "oftenMan[3].disabled";
-    let revise4 = "oftenMan[4].disabled";
-    let revise5 = "oftenMan[5].disabled";
-    let rev1 = "oftenMan[1].checked";
-    let rev2 = "oftenMan[2].checked";
-    let rev3 = "oftenMan[3].checked";
-    let rev4 = "oftenMan[4].checked";
-    let rev5 = "oftenMan[5].checked";
+      [oftenMan]: items
+    })
+    let revise1 = "oldInfo[" + this.data.activeIndex + "].oftenMan[1].disabled";
+    let revise2 = "oldInfo[" + this.data.activeIndex + "].oftenMan[2].disabled";
+    let revise3 = "oldInfo[" + this.data.activeIndex + "].oftenMan[3].disabled";
+    let revise4 = "oldInfo[" + this.data.activeIndex + "].oftenMan[4].disabled";
+    let revise5 = "oldInfo[" + this.data.activeIndex + "].oftenMan[5].disabled";
+    let rev1 = "oldInfo[" + this.data.activeIndex + "].oftenMan[1].checked";
+    let rev2 = "oldInfo[" + this.data.activeIndex + "].oftenMan[2].checked";
+    let rev3 = "oldInfo[" + this.data.activeIndex + "].oftenMan[3].checked";
+    let rev4 = "oldInfo[" + this.data.activeIndex + "].oftenMan[4].checked";
+    let rev5 = "oldInfo[" + this.data.activeIndex + "].oftenMan[5].checked";
     if (e.detail.value.length == 0) {
       this.setData({
         isoftenManNull: true
@@ -1245,7 +1365,6 @@ Page({
       })
     }
     let index = e.detail.value.indexOf('无人照料');
-    let index1 = e.detail.value.indexOf('其他人员');
     if (index >= 0) {
       this.setData({
         [revise1]: true,
@@ -1272,29 +1391,20 @@ Page({
         [revise5]: false
       })
     }
-    if (index1 >= 0) {
-      this.setData({
-        isoftenManQt: true
-      })
-    } else {
-      this.setData({
-        isoftenManQt: false,
-        isoftenReaNull: false
-      })
-    }
     if (index < 0 && e.detail.value.length != 0) {
-      this.setData({
-        ofenmanDetail: true
-      })
+      // this.setData({
+      //   ofenmanDetail: true
+      // })
       this.SubmitOldmanInfo({
         id: this.data.nameArr[this.data.activeIndex]._id,
         lookAfter: JSON.stringify(e.detail.value)
       })
-    } else {
-      this.setData({
-        ofenmanDetail: false
-      })
     }
+    // else {
+    //   this.setData({
+    //     ofenmanDetail: false
+    //   })
+    // }
   },
   // 其他人员关系
   tab1Change20: function (e) {
@@ -1306,6 +1416,10 @@ Page({
       this.setData({
         isoftenReaNull: false
       })
+      let lookAfterExt = 'oldInfo[' + this.data.activeIndex + '].lookAfterExt'
+      this.setData({
+        [lookAfterExt]: e.detail.value
+      })
       this.SubmitOldmanInfo({
         id: this.data.nameArr[this.data.activeIndex]._id,
         lookAfterExt: e.detail.value
@@ -1322,6 +1436,10 @@ Page({
       this.setData({
         lookAfterName: false
       })
+      let mainLookName = 'oldInfo[' + this.data.activeIndex + '].mainLookName'
+      this.setData({
+        [mainLookName]: e.detail.value
+      })
       this.SubmitOldmanInfo({
         id: this.data.nameArr[this.data.activeIndex]._id,
         mainLookName: e.detail.value
@@ -1330,6 +1448,23 @@ Page({
   },
   // 主要照料人性别
   tab1Change22: function (e) {
+    console.log(e.detail.value)
+    let data = this.data.oldInfo[this.data.activeIndex].mainLookSex.map(v => {
+      if (v.name == e.detail.value) {
+        return {
+          name: v.name,
+          checked: true
+        }
+      }
+      return {
+        name: v.name,
+        checked: false
+      }
+    })
+    let mainLookSex = 'oldInfo[' + this.data.activeIndex + '].mainLookSex'
+    this.setData({
+      [mainLookSex]: data
+    })
     this.SubmitOldmanInfo({
       id: this.data.nameArr[this.data.activeIndex]._id,
       mainLookSex: e.detail.value
@@ -1345,6 +1480,10 @@ Page({
       this.setData({
         islookPhoneNull: false
       })
+      let mainLookPhone = 'oldInfo[' + this.data.activeIndex + '].mainLookPhone'
+      this.setData({
+        [mainLookPhone]: e.detail.value
+      })
       this.SubmitOldmanInfo({
         id: this.data.nameArr[this.data.activeIndex]._id,
         mainLookPhone: e.detail.value

+ 17 - 19
pages/collectInfo/collectInfo.wxml

@@ -193,69 +193,67 @@
 					</checkbox-group>
 				</view>
 				<view wx:if="{{moneyFromOther}}" class="required">收入来源不能为空哦!</view>
-				<input wx:if="{{oldInfo[activeIndex].moneyFromAyy[4].checked}}" placeholder="请填写其它收入来源" bindblur="tab1Change14_1" name="name" class="otherinput" />
+				<input wx:if="{{oldInfo[activeIndex].moneyFromAyy[4].checked}}" value="{{oldInfo[activeIndex].sourceOfIncomeExt}}" placeholder="请填写其它收入来源" bindblur="tab1Change14_1" name="name" class="otherinput" />
 				<view wx:if="{{moneyOtherQtnull}}" class="required">其它收入来源不能为空哦!</view>
-
-				
 				<view class="name"><text class="red">*</text>本人上年度可支配收入</view>
-				<picker bindchange="tab1Change15" value="{{payMoney[payIndex]}}" range="{{payMoney}}">
+				<picker bindchange="tab1Change15" value="{{oldInfo[activeIndex].income}}" range="{{payMoney}}">
 					<view class="picker">
-						{{payMoney[payIndex]}}
+						{{oldInfo[activeIndex].income}}
 					</view>
 				</picker>
 				<view class="block">
 					<view class="name"><text class="red">*</text>家庭救助帮扶情况</view>
 					<checkbox-group bindchange="tab1Change16">
-						<label wx:for="{{familyHelpArr}}" wx:key="{{item}}">
-							<checkbox value="{{item}}" color="#fff" />{{item}}
+						<label wx:for="{{oldInfo[activeIndex].familyHelpArr}}" wx:key="{{item.name}}">
+							<checkbox value="{{item.name}}" checked="{{item.checked}}" color="#fff" />{{item.name}}
 						</label>
 					</checkbox-group>
 				</view>
 				<view wx:if="{{familyHelp}}" class="required">家庭救助帮扶情况不能为空哦!</view>
-				<input wx:if="{{familyHelpQt}}" placeholder="请填写其它救助情况" bindblur="tab1Change16_1" name="name" class="otherinput" />
+				<input wx:if="{{oldInfo[activeIndex].familyHelpArr[6].checked}}" value="{{oldInfo[activeIndex].rescueStateExt}}" placeholder="请填写其它救助情况" bindblur="tab1Change16_1" class="otherinput" />
 				<view wx:if="{{otherhelpQtnull}}" class="required">其它救助情况不能为空哦!</view>
 				<view class="block">
 					<view class="name"><text class="red">*</text>是否为失独家庭</view>
 					<radio-group bindchange="tab1Change17">
-						<label wx:for="{{loneArr}}" wx:key="{{item}}">
-							<radio value="{{item}}" color="#fff" />{{item}}
+						<label wx:for="{{oldInfo[activeIndex].loneArr}}" wx:key="{{item.name}}">
+							<radio value="{{item.name}}" checked="{{item.checked}}" color="#fff" />{{item.name}}
 						</label>
 					</radio-group>
 				</view>
 				<view class="block">
 					<view class="name"><text class="red">*</text>陪伴居住情况</view>
 					<checkbox-group bindchange="tab1Change18">
-						<label wx:for="{{liveStatus}}" wx:key="{{item.name}}">
+						<label wx:for="{{oldInfo[activeIndex].liveStatus}}" wx:key="{{item.name}}">
 							<checkbox value="{{item.name}}" disabled="{{item.disabled}}" checked="{{item.checked}}" color="#fff" />{{item.name}}
 						</label>
 					</checkbox-group>
 				</view>
 				<view wx:if="{{isliveNull}}" class="required">陪伴居住情况不能为空哦!</view>
-				<input wx:if="{{isliveQt}}" placeholder="请填写其他陪伴居住情况" bindblur="tab1Change18_1" name="name" class="otherinput" />
+				<input wx:if="{{oldInfo[activeIndex].liveStatus[4].checked}}" value="{{oldInfo[activeIndex].accompanyExt}}" placeholder="请填写其他陪伴居住情况" bindblur="tab1Change18_1"  class="otherinput" />
 				<view wx:if="{{isliveQtNull}}" class="required">其他陪伴居住情况不能为空哦!</view>
 				<view class="block">
 					<view class="name"><text class="red">*</text>日常生活照料人</view>
 					<checkbox-group bindchange="tab1Change19">
-						<label wx:for="{{oftenMan}}" wx:key="{{item.name}}">
+						<label wx:for="{{oldInfo[activeIndex].oftenMan}}" wx:key="{{item.name}}">
 							<checkbox value="{{item.name}}" disabled="{{item.disabled}}" checked="{{item.checked}}" color="#fff" />{{item.name}}
 						</label>
 					</checkbox-group>
 				</view>
 				<view wx:if="{{isoftenManNull}}" class="required">日常生活照料人不能为空哦!</view>
-				<input wx:if="{{isoftenManQt}}" bindblur="tab1Change20" placeholder="请填写人员关系" name="name" class="otherinput" />
+				<input wx:if="{{oldInfo[activeIndex].oftenMan[5].checked}}" value="{{oldInfo[activeIndex].lookAfterExt}}" bindblur="tab1Change20" placeholder="请填写人员关系" class="otherinput" />
 				<view wx:if="{{isoftenReaNull}}" class="required">人员关系不能为空哦!</view>
-				<view wx:if="{{ofenmanDetail}}">
-					<view class="block"><text class="red">*</text>主要照料人姓名<input bindblur="tab1Change21" placeholder="请填写主要照料人姓名" name="name" /></view>
+				<view wx:if="{{oldInfo[activeIndex].oftenMan[1].checked||oldInfo[activeIndex].oftenMan[2].checked||oldInfo[activeIndex].oftenMan[3].checked||oldInfo[activeIndex].oftenMan[4].checked||oldInfo[activeIndex].oftenMan[5].checked}}">
+					<view class="block"><text class="red">*</text>主要照料人姓名<input value="{{oldInfo[activeIndex].mainLookName}}" bindblur="tab1Change21" placeholder="请填写主要照料人姓名" /></view>
 					<view class="required" wx:if="{{lookAfterName}}">主要照料人姓名不能为空哦!</view>
 					<view class="block">
 						<view class="name"><text class="red">*</text>主要照料人性别</view>
 						<radio-group bindchange="tab1Change22">
-							<label wx:for="{{lookafterSex}}" wx:key="{{item}}">
-								<radio value="{{item}}" color="#fff" />{{item}}
+							<label wx:for="{{oldInfo[activeIndex].mainLookSex}}" wx:key="{{item.name}}">
+								<radio value="{{item.name}}" checked="{{item.checked}}" color="#fff" />{{item.name}}
 							</label>
 						</radio-group>
 					</view>
-					<view class="block"><text class="red">*</text>主要照料人电话<input bindblur="tab1Change23" placeholder="请填写主要照料人电话" name="name" /></view>
+					<view class="block"><text class="red">*</text>主要照料人电话<input value="{{oldInfo[activeIndex].mainLookPhone}}" bindblur="tab1Change23" placeholder="请填写主要照料人电话" name="name" /></view>
 					<view class="required" wx:if="{{islookPhoneNull}}">主要照料人电话不能为空哦!</view>
 				</view>
 				<view class="block">