提交 90c1874c720329b7ba453bfb3ffee3d3d2fcdf64

作者 pangy
1 个父辈 835d99ba

子女教育 加关系字段

@@ -561,6 +561,10 @@ Page({ @@ -561,6 +561,10 @@ Page({
561 if (options.isedit != 'true'){ 561 if (options.isedit != 'true'){
562 this.getTaxList() 562 this.getTaxList()
563 } 563 }
  564 + this.data.taxperson_relativeData.values = ['子','女']
  565 + this.setData({
  566 + taxperson_relativeData: this.data.taxperson_relativeData
  567 + })
564 } else if ("continuing_education" == options.status) { 568 } else if ("continuing_education" == options.status) {
565 this.getCertificates() 569 this.getCertificates()
566 var studystart_date = this.data.studystartdate 570 var studystart_date = this.data.studystartdate
@@ -781,6 +785,10 @@ Page({ @@ -781,6 +785,10 @@ Page({
781 switch (this.data.cur_index + '') { 785 switch (this.data.cur_index + '') {
782 case 'children_education': 786 case 'children_education':
783 var setData = {} 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 var commonbirthDate = this.data.commonbirthDate 792 var commonbirthDate = this.data.commonbirthDate
785 commonbirthDate.selected = format.formatTime_date(data.birth_date) 793 commonbirthDate.selected = format.formatTime_date(data.birth_date)
786 commonbirthDate.datelong = data.birth_date 794 commonbirthDate.datelong = data.birth_date
@@ -793,9 +801,11 @@ Page({ @@ -793,9 +801,11 @@ Page({
793 studystartdate.datelong = data.education_start 801 studystartdate.datelong = data.education_start
794 setData.studystartdate = studystartdate 802 setData.studystartdate = studystartdate
795 var studyEndDate = this.data.studyEndDate 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 var studyPeriodDate = this.data.studyPeriodDate 809 var studyPeriodDate = this.data.studyPeriodDate
800 if (data.education_period_end > 0){ 810 if (data.education_period_end > 0){
801 studyPeriodDate.selected = format.formatTime_month(data.education_period_end) 811 studyPeriodDate.selected = format.formatTime_month(data.education_period_end)
@@ -1097,6 +1107,11 @@ Page({ @@ -1097,6 +1107,11 @@ Page({
1097 if (data.name && data.name.length) { 1107 if (data.name && data.name.length) {
1098 setData.children_name = data.name 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 this.setData(setData) 1115 this.setData(setData)
1101 break; 1116 break;
1102 case 'support_duty': 1117 case 'support_duty':
@@ -1367,6 +1382,11 @@ Page({ @@ -1367,6 +1382,11 @@ Page({
1367 // this.showToast('请选择子女出生日期') 1382 // this.showToast('请选择子女出生日期')
1368 // return 1383 // return
1369 // } 1384 // }
  1385 +
  1386 + if (this.data.taxperson_relativeData.selected.length < 1) {
  1387 + this.showToast('请选择与纳税人关系')
  1388 + return
  1389 + }
1370 if (this.data.childrenpercentData.selected.length < 1) { 1390 if (this.data.childrenpercentData.selected.length < 1) {
1371 this.showToast('请选择分配比例') 1391 this.showToast('请选择分配比例')
1372 return 1392 return
@@ -33,6 +33,8 @@ @@ -33,6 +33,8 @@
33 <text class='text_777_30 float_left'>国籍</text> 33 <text class='text_777_30 float_left'>国籍</text>
34 <text class='text_black_30 float_right' style='line-height: 90rpx;text-align:right' name='children_country'>中国</text> 34 <text class='text_black_30 float_right' style='line-height: 90rpx;text-align:right' name='children_country'>中国</text>
35 </view> 35 </view>
  36 + <view class='divide_line_30'></view>
  37 + <template is="picker_cell_normal" data="{{...taxperson_relativeData}}" />
36 </view> 38 </view>
37 39
38 <view style='height:20rpx;width:100%;background:#F8F8F8;'></view> 40 <view style='height:20rpx;width:100%;background:#F8F8F8;'></view>
注册登录 后发表评论