提交 6c319305dcd69cf52e070aa866722bca774b8546

作者 pangy
1 个父辈 00ab5b2f

添加涉税事由字段

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