|
@@ -42,42 +42,6 @@ Page({
|
|
|
}, {
|
|
|
name: '女'
|
|
|
}],
|
|
|
- regularsInfos: {
|
|
|
- visitMode: [{
|
|
|
- name: '电话问候',
|
|
|
- checked: false
|
|
|
- }, {
|
|
|
- name: '上门巡访',
|
|
|
- checked: false
|
|
|
- }, {
|
|
|
- name: '其它',
|
|
|
- checked: false
|
|
|
- }],
|
|
|
- visitModeExt: '', //巡访其他
|
|
|
- visitCount: [{
|
|
|
- name: '每天',
|
|
|
- checked: false
|
|
|
- }, {
|
|
|
- name: '每周',
|
|
|
- checked: false
|
|
|
- }, {
|
|
|
- name: '每月',
|
|
|
- checked: false
|
|
|
- }, {
|
|
|
- name: '每季',
|
|
|
- checked: false
|
|
|
- }, {
|
|
|
- name: '其它',
|
|
|
- checked: false
|
|
|
- }],
|
|
|
- visitCountExt: '', // 频次的其他
|
|
|
- },
|
|
|
- regularsInfo: {
|
|
|
- visitMode: '',
|
|
|
- visitModeExt: '', //巡访其他
|
|
|
- visitCount: '',
|
|
|
- visitCountExt: '', // 频次的其他
|
|
|
- },
|
|
|
nation: '', //民族
|
|
|
idNumber: '', //身份证号
|
|
|
phone: '',
|
|
@@ -105,7 +69,6 @@ Page({
|
|
|
name: "老年人慢性病",
|
|
|
disabled: false
|
|
|
}],
|
|
|
-
|
|
|
disabilityAyy: [{
|
|
|
name: "视力残疾"
|
|
|
}, {
|
|
@@ -314,7 +277,6 @@ Page({
|
|
|
|
|
|
],
|
|
|
isHavePhoto: false,
|
|
|
-
|
|
|
// tab2
|
|
|
childInfo: [{
|
|
|
childrenNum: ''
|
|
@@ -322,11 +284,6 @@ Page({
|
|
|
childNumArr: [
|
|
|
'0个', '1个', '2个', '3个', '3个以上'
|
|
|
],
|
|
|
- // tab2可维护数组
|
|
|
- // childSexArr:{
|
|
|
-
|
|
|
- // }
|
|
|
- // ,
|
|
|
ischildName: [false, false, false],
|
|
|
childSexArr: ['男', '女'],
|
|
|
ischildPhone: [false, false, false],
|
|
@@ -372,8 +329,6 @@ Page({
|
|
|
]
|
|
|
}
|
|
|
}],
|
|
|
- // otherInfo: ,
|
|
|
- // otherInfo: '', //是否有赡养人
|
|
|
othersyrArr: ['是', '否'],
|
|
|
othersyrSexArr: ['男', '女'],
|
|
|
othersyrRelation: [
|
|
@@ -381,7 +336,6 @@ Page({
|
|
|
],
|
|
|
othersyrIsout: ['是', '否'],
|
|
|
region: ['', '', ''],
|
|
|
- // customItem: '其它',
|
|
|
othersyrIsMarry: ['是', '否'],
|
|
|
othersyrTfTimes: [
|
|
|
'0次', '1次', '2次及以上'
|
|
@@ -412,6 +366,42 @@ Page({
|
|
|
// name: '其它'
|
|
|
// }],
|
|
|
// syrIndex:
|
|
|
+ regularsInfos: {
|
|
|
+ visitMode: [{
|
|
|
+ name: '电话问候',
|
|
|
+ checked: false
|
|
|
+ }, {
|
|
|
+ name: '上门巡访',
|
|
|
+ checked: false
|
|
|
+ }, {
|
|
|
+ name: '其它',
|
|
|
+ checked: false
|
|
|
+ }],
|
|
|
+ visitModeExt: '', //巡访其他
|
|
|
+ visitCount: [{
|
|
|
+ name: '每天',
|
|
|
+ checked: false
|
|
|
+ }, {
|
|
|
+ name: '每周',
|
|
|
+ checked: false
|
|
|
+ }, {
|
|
|
+ name: '每月',
|
|
|
+ checked: false
|
|
|
+ }, {
|
|
|
+ name: '每季',
|
|
|
+ checked: false
|
|
|
+ }, {
|
|
|
+ name: '其它',
|
|
|
+ checked: false
|
|
|
+ }],
|
|
|
+ visitCountExt: '', // 频次的其他
|
|
|
+ },
|
|
|
+ regularsInfo: [{
|
|
|
+ visitMode: '',
|
|
|
+ visitModeExt: '', //巡访其他
|
|
|
+ visitCount: '',
|
|
|
+ visitCountExt: '', // 频次的其他
|
|
|
+ }],
|
|
|
},
|
|
|
// 左侧点击
|
|
|
turn(e) {
|
|
@@ -503,7 +493,8 @@ Page({
|
|
|
this.setData({
|
|
|
nameArr: this.data.nameArr.concat(res.data.data),
|
|
|
familyFid: res.data.data.fid,
|
|
|
- [name]: this.data.addOldname
|
|
|
+ [name]: this.data.addOldname,
|
|
|
+ oldInfo: this.data.oldInfo
|
|
|
})
|
|
|
this.getSelfLocation();
|
|
|
console.log(this.data.nameArr)
|
|
@@ -2271,14 +2262,34 @@ Page({
|
|
|
},
|
|
|
// tab3是否有赡养人状态改变
|
|
|
tab3Change1: function (e) {
|
|
|
+ // 否是1
|
|
|
+ console.log(e.detail.value, "1111111");
|
|
|
let isHasOther = 'otherInfo[' + this.data.activeIndex + '].isHasOther'
|
|
|
+ if (e.detail.value == '0') {
|
|
|
+ this.setData({
|
|
|
+ [isHasOther]: this.data.othersyrArr[e.detail.value],
|
|
|
+ })
|
|
|
+ console.log("1111111");
|
|
|
+
|
|
|
+ this.SubmitOldmanInfo({
|
|
|
+ id: this.data.nameArr[this.data.activeIndex]._id,
|
|
|
+ otherInfo: JSON.stringify(this.data.otherInfo[this.data.activeIndex].Info)
|
|
|
+ })
|
|
|
+ } else {
|
|
|
+ this.setData({
|
|
|
+ [isHasOther]: this.data.othersyrArr[e.detail.value],
|
|
|
+ })
|
|
|
+ this.SubmitOldmanInfo({
|
|
|
+ id: this.data.nameArr[this.data.activeIndex]._id,
|
|
|
+ otherInfo: ''
|
|
|
+ })
|
|
|
+ }
|
|
|
+
|
|
|
this.setData({
|
|
|
[isHasOther]: this.data.othersyrArr[e.detail.value],
|
|
|
})
|
|
|
- this.SubmitOldmanInfo({
|
|
|
- id: this.data.nameArr[this.data.activeIndex]._id,
|
|
|
- isHasOther: this.data.othersyrArr[e.detail.value]
|
|
|
- })
|
|
|
+
|
|
|
+
|
|
|
},
|
|
|
// 其他赡养人姓名
|
|
|
tab3Change2: function (e) {
|
|
@@ -3121,6 +3132,8 @@ Page({
|
|
|
phone2 = partol.phone2;
|
|
|
}
|
|
|
|
|
|
+ } else if (item.otherInfo == '') {
|
|
|
+ otherInfo = '否'
|
|
|
} else {
|
|
|
otherInfo = ''
|
|
|
}
|
|
@@ -3254,6 +3267,9 @@ Page({
|
|
|
this.setData({
|
|
|
showBj: true,
|
|
|
nameArr: [],
|
|
|
+ oldInfo: [],
|
|
|
+ childInfo: [],
|
|
|
+ otherInfo: [],
|
|
|
})
|
|
|
}
|
|
|
|