正在显示
2 个修改的文件
包含
27 行增加
和
1 行删除
@@ -90,6 +90,14 @@ Page({ | @@ -90,6 +90,14 @@ Page({ | ||
90 | placeholder: '请选择出生国家(地区)', | 90 | placeholder: '请选择出生国家(地区)', |
91 | onChange: 'onPickerSelect', | 91 | onChange: 'onPickerSelect', |
92 | }, | 92 | }, |
93 | + taxReasonData: { | ||
94 | + isrequre: true, | ||
95 | + label: '涉税事由', | ||
96 | + bindtype: 'tax_reason', | ||
97 | + placeholder: '请选择涉税事由', | ||
98 | + values: ["理由1", "理由2"], | ||
99 | + onChange: 'onPickerSelect', | ||
100 | + }, | ||
93 | taxpayerTypeData: { | 101 | taxpayerTypeData: { |
94 | isrequre: true, | 102 | isrequre: true, |
95 | label: '纳税人类型', | 103 | label: '纳税人类型', |
@@ -444,7 +452,7 @@ Page({ | @@ -444,7 +452,7 @@ Page({ | ||
444 | this.data.predictLeaveDate.selected = (predictLeaveDate.indexOf("01-01-01") == -1) ? predictLeaveDate : '' | 452 | this.data.predictLeaveDate.selected = (predictLeaveDate.indexOf("01-01-01") == -1) ? predictLeaveDate : '' |
445 | this.data.predictLeaveDate.datelong = tax_info.predict_leave_date | 453 | this.data.predictLeaveDate.datelong = tax_info.predict_leave_date |
446 | // this.data.professionData.selected = tax_info.profession.three_level_name | 454 | // this.data.professionData.selected = tax_info.profession.three_level_name |
447 | - | 455 | + this.data.taxReasonData.selected = tax_info.tax_reason |
448 | this.data.birthDate.end = curdate | 456 | this.data.birthDate.end = curdate |
449 | this.data.startDate.end = curdate | 457 | this.data.startDate.end = curdate |
450 | this.data.endDate.end = curdate | 458 | this.data.endDate.end = curdate |
@@ -491,6 +499,7 @@ Page({ | @@ -491,6 +499,7 @@ Page({ | ||
491 | long_end_date: tax_info.separate_date ? tax_info.separate_date : 0, | 499 | long_end_date: tax_info.separate_date ? tax_info.separate_date : 0, |
492 | endDate: this.data.endDate, | 500 | endDate: this.data.endDate, |
493 | firstEntryDate: this.data.firstEntryDate, | 501 | firstEntryDate: this.data.firstEntryDate, |
502 | + taxReasonData: this.data.taxReasonData, | ||
494 | predictLeaveDate: this.data.predictLeaveDate, | 503 | predictLeaveDate: this.data.predictLeaveDate, |
495 | isIdCard: '居民身份证' == tax_info.id_card_type ? true : false, | 504 | isIdCard: '居民身份证' == tax_info.id_card_type ? true : false, |
496 | card_number: this.data.card_number, | 505 | card_number: this.data.card_number, |
@@ -859,6 +868,16 @@ Page({ | @@ -859,6 +868,16 @@ Page({ | ||
859 | }) | 868 | }) |
860 | } | 869 | } |
861 | break; | 870 | break; |
871 | + case 'tax_reason': | ||
872 | + var taxReasonData = this.data.taxReasonData | ||
873 | + var reason = taxReasonData.values[e.detail.value] | ||
874 | + if (reason != taxReasonData.selected) { | ||
875 | + taxReasonData.selected = reason | ||
876 | + this.setData({ | ||
877 | + taxReasonData: taxReasonData | ||
878 | + }) | ||
879 | + } | ||
880 | + break; | ||
862 | case 'taxpayerType': | 881 | case 'taxpayerType': |
863 | var taxpayerTypeData = this.data.taxpayerTypeData | 882 | var taxpayerTypeData = this.data.taxpayerTypeData |
864 | taxpayerTypeData.selected = taxpayerTypeData.values[e.detail.value] | 883 | taxpayerTypeData.selected = taxpayerTypeData.values[e.detail.value] |
@@ -1217,6 +1236,10 @@ Page({ | @@ -1217,6 +1236,10 @@ Page({ | ||
1217 | this.showtoast('请选择预计离境时间'); | 1236 | this.showtoast('请选择预计离境时间'); |
1218 | return | 1237 | return |
1219 | } | 1238 | } |
1239 | + if (this.data.hasOtherCard && !this.data.taxReasonData.selected) { | ||
1240 | + this.showtoast('请选择涉税事由'); | ||
1241 | + return | ||
1242 | + } | ||
1220 | if (this.data.hasOtherCard && !this.data.otherCardtypeData.selected) { | 1243 | if (this.data.hasOtherCard && !this.data.otherCardtypeData.selected) { |
1221 | // this.showtoast('请选择其他证照类型'); | 1244 | // this.showtoast('请选择其他证照类型'); |
1222 | // return | 1245 | // return |
@@ -1382,6 +1405,7 @@ Page({ | @@ -1382,6 +1405,7 @@ Page({ | ||
1382 | "birth_date": that.data.long_birth_date, | 1405 | "birth_date": that.data.long_birth_date, |
1383 | "first_entry_date": that.data.hasOtherCard ? that.data.firstEntryDate.datelong : null, | 1406 | "first_entry_date": that.data.hasOtherCard ? that.data.firstEntryDate.datelong : null, |
1384 | "predict_leave_date": that.data.hasOtherCard ? that.data.predictLeaveDate.datelong : null, | 1407 | "predict_leave_date": that.data.hasOtherCard ? that.data.predictLeaveDate.datelong : null, |
1408 | + "tax_reason": that.data.hasOtherCard ? that.data.taxReasonData.selected : null, | ||
1385 | "mobile": that.data.mobile, | 1409 | "mobile": that.data.mobile, |
1386 | "current_address": request_current_address, | 1410 | "current_address": request_current_address, |
1387 | "current_address_detail": formdata.current_address_detail, | 1411 | "current_address_detail": formdata.current_address_detail, |
@@ -74,6 +74,8 @@ | @@ -74,6 +74,8 @@ | ||
74 | <template is="picker_cell_normal" data="{{...predictLeaveDate}}" /> | 74 | <template is="picker_cell_normal" data="{{...predictLeaveDate}}" /> |
75 | <view class="divide_line_30"></view> | 75 | <view class="divide_line_30"></view> |
76 | <template is="picker_cell_normal" data="{{...birthCountryData}}" /> | 76 | <template is="picker_cell_normal" data="{{...birthCountryData}}" /> |
77 | + <view class="divide_line_30"></view> | ||
78 | + <template is="picker_cell_normal" data="{{...taxReasonData}}" /> | ||
77 | </view> | 79 | </view> |
78 | <view hidden='{{!isshow01}}'> | 80 | <view hidden='{{!isshow01}}'> |
79 | <view wx:if='{{hasOtherCard}}'> | 81 | <view wx:if='{{hasOtherCard}}'> |
请
注册
或
登录
后发表评论