...
|
...
|
@@ -40,6 +40,7 @@ Page({ |
40
|
40
|
edit_id:null,
|
41
|
41
|
data: {
|
42
|
42
|
hasLover:false,
|
|
43
|
+ hasGetLover:false,
|
43
|
44
|
house_type: "",
|
44
|
45
|
deduction_amount: '',
|
45
|
46
|
lable: 0,
|
...
|
...
|
@@ -640,7 +641,7 @@ Page({ |
640
|
641
|
var hasLoverData = that.data.hasLoverData
|
641
|
642
|
hasLoverData.selected = '是'
|
642
|
643
|
hasLoverData.disabled = true
|
643
|
|
- var data = res.data.items[0], setData = { hasLover: true, hasLoverData: hasLoverData}
|
|
644
|
+ var data = res.data.items[0], setData = { hasGetLover:true, hasLover: true, hasLoverData: hasLoverData}
|
644
|
645
|
if (data.name && data.name.length) {
|
645
|
646
|
setData.spouse_name = data.name
|
646
|
647
|
}
|
...
|
...
|
@@ -689,11 +690,11 @@ Page({ |
689
|
690
|
childrenpercentData.selected = data.percent + '%'
|
690
|
691
|
setData.childrenpercentData = childrenpercentData
|
691
|
692
|
var studystartdate = this.data.studystartdate
|
692
|
|
- studystartdate.selected = format.formatTime_date(data.education_start)
|
|
693
|
+ studystartdate.selected = format.formatTime_month(data.education_start)
|
693
|
694
|
studystartdate.datelong = data.education_start
|
694
|
695
|
setData.studystartdate = studystartdate
|
695
|
696
|
var studyenddate = this.data.studyenddate
|
696
|
|
- studyenddate.selected = format.formatTime_date(data.education_end)
|
|
697
|
+ studyenddate.selected = format.formatTime_month(data.education_end)
|
697
|
698
|
studyenddate.datelong = data.education_end
|
698
|
699
|
setData.studyenddate = studyenddate
|
699
|
700
|
setData.deduction_amount = data.deduction_amount
|
...
|
...
|
@@ -725,6 +726,7 @@ Page({ |
725
|
726
|
hasLoverData.selected = data.has_spouse == 'y' ? '是' : '否'
|
726
|
727
|
hasLoverData.disabled = data.has_spouse == 'y' ? true : false
|
727
|
728
|
setData.hasLover = data.has_spouse == 'y' ? true : false
|
|
729
|
+ setData.hasGetLover = data.has_spouse == 'y' ? true : false
|
728
|
730
|
setData.hasLoverData = hasLoverData
|
729
|
731
|
if (data.spouse_name && data.spouse_name.length) {
|
730
|
732
|
setData.spouse_name = data.spouse_name
|
...
|
...
|
@@ -750,11 +752,11 @@ Page({ |
750
|
752
|
setData.edulevelData = edulevelData
|
751
|
753
|
}
|
752
|
754
|
var studystartdate = this.data.studystartdate
|
753
|
|
- studystartdate.selected = format.formatTime_date(data.education_start)
|
|
755
|
+ studystartdate.selected = format.formatTime_month(data.education_start)
|
754
|
756
|
studystartdate.datelong = data.education_start
|
755
|
757
|
setData.studystartdate = studystartdate
|
756
|
758
|
var studyenddate = this.data.studyenddate
|
757
|
|
- studyenddate.selected = format.formatTime_date(data.education_end)
|
|
759
|
+ studyenddate.selected = format.formatTime_month(data.education_end)
|
758
|
760
|
studyenddate.datelong = data.education_end
|
759
|
761
|
setData.studyenddate = studyenddate
|
760
|
762
|
|
...
|
...
|
@@ -837,6 +839,7 @@ Page({ |
837
|
839
|
var hasLoverData = this.data.hasLoverData
|
838
|
840
|
hasLoverData.selected = data.has_spouse == 'y'?'是':'否'
|
839
|
841
|
setData.hasLover = data.has_spouse=='y'?true:false
|
|
842
|
+ setData.hasGetLover = data.has_spouse == 'y' ? true : false
|
840
|
843
|
setData.hasLoverData = hasLoverData
|
841
|
844
|
if (data.spouse_name && data.spouse_name.length) {
|
842
|
845
|
setData.spouse_name = data.spouse_name
|
...
|
...
|
|