正在显示
2 个修改的文件
包含
25 行增加
和
3 行删除
... | ... | @@ -561,6 +561,10 @@ Page({ |
561 | 561 | if (options.isedit != 'true'){ |
562 | 562 | this.getTaxList() |
563 | 563 | } |
564 | + this.data.taxperson_relativeData.values = ['子','女'] | |
565 | + this.setData({ | |
566 | + taxperson_relativeData: this.data.taxperson_relativeData | |
567 | + }) | |
564 | 568 | } else if ("continuing_education" == options.status) { |
565 | 569 | this.getCertificates() |
566 | 570 | var studystart_date = this.data.studystartdate |
... | ... | @@ -781,6 +785,10 @@ Page({ |
781 | 785 | switch (this.data.cur_index + '') { |
782 | 786 | case 'children_education': |
783 | 787 | var setData = {} |
788 | + if (data.relationship && data.relationship.length) { | |
789 | + this.data.taxperson_relativeData.selected = data.relationship | |
790 | + setData.taxperson_relativeData = this.data.taxperson_relativeData | |
791 | + } | |
784 | 792 | var commonbirthDate = this.data.commonbirthDate |
785 | 793 | commonbirthDate.selected = format.formatTime_date(data.birth_date) |
786 | 794 | commonbirthDate.datelong = data.birth_date |
... | ... | @@ -793,9 +801,11 @@ Page({ |
793 | 801 | studystartdate.datelong = data.education_start |
794 | 802 | setData.studystartdate = studystartdate |
795 | 803 | var studyEndDate = this.data.studyEndDate |
796 | - studyEndDate.selected = format.formatTime_month(data.education_end) | |
797 | - studyEndDate.datelong = data.education_end | |
798 | - setData.studyEndDate = studyEndDate | |
804 | + if (data.education_end > 0) { | |
805 | + studyEndDate.selected = format.formatTime_month(data.education_end) | |
806 | + studyEndDate.datelong = data.education_end | |
807 | + setData.studyEndDate = studyEndDate | |
808 | + } | |
799 | 809 | var studyPeriodDate = this.data.studyPeriodDate |
800 | 810 | if (data.education_period_end > 0){ |
801 | 811 | studyPeriodDate.selected = format.formatTime_month(data.education_period_end) |
... | ... | @@ -1097,6 +1107,11 @@ Page({ |
1097 | 1107 | if (data.name && data.name.length) { |
1098 | 1108 | setData.children_name = data.name |
1099 | 1109 | } |
1110 | + if (data.family_ties && data.family_ties.length) { | |
1111 | + var taxperson_relativeData = this.data.taxperson_relativeData | |
1112 | + taxperson_relativeData.selected = data.family_ties | |
1113 | + setData.taxperson_relativeData = taxperson_relativeData | |
1114 | + } | |
1100 | 1115 | this.setData(setData) |
1101 | 1116 | break; |
1102 | 1117 | case 'support_duty': |
... | ... | @@ -1367,6 +1382,11 @@ Page({ |
1367 | 1382 | // this.showToast('请选择子女出生日期') |
1368 | 1383 | // return |
1369 | 1384 | // } |
1385 | + | |
1386 | + if (this.data.taxperson_relativeData.selected.length < 1) { | |
1387 | + this.showToast('请选择与纳税人关系') | |
1388 | + return | |
1389 | + } | |
1370 | 1390 | if (this.data.childrenpercentData.selected.length < 1) { |
1371 | 1391 | this.showToast('请选择分配比例') |
1372 | 1392 | return | ... | ... |
... | ... | @@ -33,6 +33,8 @@ |
33 | 33 | <text class='text_777_30 float_left'>国籍</text> |
34 | 34 | <text class='text_black_30 float_right' style='line-height: 90rpx;text-align:right' name='children_country'>中国</text> |
35 | 35 | </view> |
36 | + <view class='divide_line_30'></view> | |
37 | + <template is="picker_cell_normal" data="{{...taxperson_relativeData}}" /> | |
36 | 38 | </view> |
37 | 39 | |
38 | 40 | <view style='height:20rpx;width:100%;background:#F8F8F8;'></view> | ... | ... |
请
注册
或
登录
后发表评论