提交 264504c6efdae68966e03cf4d3f79312e37bbbbd

作者 pangy
1 个父辈 4e7a1543

专项附加 开始非居民逻辑

@@ -65,7 +65,7 @@ Page({ @@ -65,7 +65,7 @@ Page({
65 lovercardtypeData: { 65 lovercardtypeData: {
66 label: '配偶证照类型', 66 label: '配偶证照类型',
67 bindtype: 'lovercardtype', 67 bindtype: 'lovercardtype',
68 - selected: '居民身份证', 68 + // selected: '居民身份证',
69 disabled: true, 69 disabled: true,
70 placeholder: '请选择证照类型', 70 placeholder: '请选择证照类型',
71 values: ["居民身份证", "军官证", '士兵证', '武警警官证', '港澳居民来往内地通行证', '外交官证', '中国护照', 71 values: ["居民身份证", "军官证", '士兵证', '武警警官证', '港澳居民来往内地通行证', '外交官证', '中国护照',
@@ -506,6 +506,16 @@ Page({ @@ -506,6 +506,16 @@ Page({
506 placeholder: '中国', 506 placeholder: '中国',
507 onChange: 'onPickerSelect', 507 onChange: 'onPickerSelect',
508 }, 508 },
  509 + countryData: {
  510 + label: '国籍',
  511 + bindtype: 'country',
  512 + isrequre: true,
  513 + disabled: true,
  514 + selected: '中国',
  515 + // range_key:'name',
  516 + placeholder: '请选择国籍',
  517 + onChange: 'onPickerSelect',
  518 + },
509 // bankInfo: { 519 // bankInfo: {
510 // label: '公积金贷款银行', 520 // label: '公积金贷款银行',
511 // bindtype: 'bank', 521 // bindtype: 'bank',
@@ -708,10 +718,18 @@ Page({ @@ -708,10 +718,18 @@ Page({
708 if (data.name && data.name.length) { 718 if (data.name && data.name.length) {
709 setData.spouse_name = data.name 719 setData.spouse_name = data.name
710 } 720 }
  721 + that.data.lovercardtypeData.selected = data.id_card_type
  722 + setData.lovercardtypeData = that.data.lovercardtypeData
711 if (data.id_card_no && data.id_card_no.length) { 723 if (data.id_card_no && data.id_card_no.length) {
712 setData.spouse_id_card_no = data.id_card_no 724 setData.spouse_id_card_no = data.id_card_no
713 - that.dealIdInfo(data.id_card_no, 'spouse_id_card_no_input') 725 + if ('居民身份证' == data.id_card_type) {
  726 + that.dealIdInfo(data.id_card_no, 'spouse_id_card_no_input')
  727 + }
714 } 728 }
  729 + that.data.loverbirthDate.selected = format.formatTime_date(data.birth_date)
  730 + that.data.loverbirthDate.datelong = data.birth_date
  731 + setData.loverbirthDate = that.data.loverbirthDate
  732 + setData.lover_country = data.native
715 that.setData(setData) 733 that.setData(setData)
716 } 734 }
717 }, 735 },
@@ -785,6 +803,8 @@ Page({ @@ -785,6 +803,8 @@ Page({
785 switch (this.data.cur_index + '') { 803 switch (this.data.cur_index + '') {
786 case 'children_education': 804 case 'children_education':
787 var setData = {} 805 var setData = {}
  806 + this.data.countryData.selected = data.native
  807 + setData.countryData = this.data.countryData
788 if (data.relationship && data.relationship.length) { 808 if (data.relationship && data.relationship.length) {
789 this.data.taxperson_relativeData.selected = data.relationship 809 this.data.taxperson_relativeData.selected = data.relationship
790 setData.taxperson_relativeData = this.data.taxperson_relativeData 810 setData.taxperson_relativeData = this.data.taxperson_relativeData
@@ -817,7 +837,9 @@ Page({ @@ -817,7 +837,9 @@ Page({
817 setData.deduction_amount = data.deduction_amount 837 setData.deduction_amount = data.deduction_amount
818 if (data.children_id_card_no && data.children_id_card_no.length) { 838 if (data.children_id_card_no && data.children_id_card_no.length) {
819 setData.children_id_card_no = data.children_id_card_no 839 setData.children_id_card_no = data.children_id_card_no
820 - this.dealIdInfo(data.children_id_card_no, 'children_id_card_no_input') 840 + if ('居民身份证' == data.id_card_type) {
  841 + this.dealIdInfo(data.children_id_card_no, 'children_id_card_no_input')
  842 + }
821 } 843 }
822 if (data.children_name && data.children_name.length) { 844 if (data.children_name && data.children_name.length) {
823 setData.children_name = data.children_name 845 setData.children_name = data.children_name
@@ -850,7 +872,9 @@ Page({ @@ -850,7 +872,9 @@ Page({
850 } 872 }
851 if (data.spouse_id_card_no && data.spouse_id_card_no.length) { 873 if (data.spouse_id_card_no && data.spouse_id_card_no.length) {
852 setData.spouse_id_card_no = data.spouse_id_card_no 874 setData.spouse_id_card_no = data.spouse_id_card_no
853 - this.dealIdInfo(data.spouse_id_card_no, 'spouse_id_card_no_input') 875 + if ('居民身份证' == data.id_card_type) {
  876 + this.dealIdInfo(data.spouse_id_card_no, 'spouse_id_card_no_input')
  877 + }
854 } 878 }
855 this.setData(setData) 879 this.setData(setData)
856 break; 880 break;
@@ -922,7 +946,9 @@ Page({ @@ -922,7 +946,9 @@ Page({
922 } 946 }
923 if (data.id_card_no && data.id_card_no.length) { 947 if (data.id_card_no && data.id_card_no.length) {
924 setData.id_card_no = data.id_card_no 948 setData.id_card_no = data.id_card_no
925 - this.dealIdInfo(data.id_card_no, 'older_id_card_no_input') 949 + if ('居民身份证' == data.id_card_type) {
  950 + this.dealIdInfo(data.id_card_no, 'older_id_card_no_input')
  951 + }
926 } 952 }
927 if (data.relationship && data.relationship.length) { 953 if (data.relationship && data.relationship.length) {
928 var older_relativeData = this.data.older_relativeData 954 var older_relativeData = this.data.older_relativeData
@@ -968,7 +994,9 @@ Page({ @@ -968,7 +994,9 @@ Page({
968 } 994 }
969 if (data.id_card_no && data.id_card_no.length) { 995 if (data.id_card_no && data.id_card_no.length) {
970 setData.spouse_id_card_no = data.id_card_no 996 setData.spouse_id_card_no = data.id_card_no
971 - this.dealIdInfo(data.id_card_no, 'spouse_id_card_no_input') 997 + if ('居民身份证' == data.id_card_type) {
  998 + this.dealIdInfo(data.id_card_no, 'spouse_id_card_no_input')
  999 + }
972 } 1000 }
973 if (this.data.house_type == 'house_fund_rent'){ 1001 if (this.data.house_type == 'house_fund_rent'){
974 var workingcityInfo = this.data.workingcityInfo 1002 var workingcityInfo = this.data.workingcityInfo
@@ -1097,13 +1125,17 @@ Page({ @@ -1097,13 +1125,17 @@ Page({
1097 switch (this.data.cur_index + '') { 1125 switch (this.data.cur_index + '') {
1098 case 'children_education': 1126 case 'children_education':
1099 var setData = {} 1127 var setData = {}
  1128 + this.data.countryData.selected = data.native
  1129 + setData.countryData = this.data.countryData
1100 var commonbirthDate = this.data.commonbirthDate 1130 var commonbirthDate = this.data.commonbirthDate
1101 commonbirthDate.selected = format.formatTime_date(data.birth_date) 1131 commonbirthDate.selected = format.formatTime_date(data.birth_date)
1102 commonbirthDate.datelong = data.birth_date 1132 commonbirthDate.datelong = data.birth_date
1103 setData.commonbirthDate = commonbirthDate 1133 setData.commonbirthDate = commonbirthDate
1104 if (data.id_card_no && data.id_card_no.length) { 1134 if (data.id_card_no && data.id_card_no.length) {
1105 setData.children_id_card_no = data.id_card_no 1135 setData.children_id_card_no = data.id_card_no
1106 - this.dealIdInfo(data.id_card_no, 'children_id_card_no_input') 1136 + if ('居民身份证' == data.id_card_type) {
  1137 + this.dealIdInfo(data.id_card_no, 'children_id_card_no_input')
  1138 + }
1107 } 1139 }
1108 if (data.name && data.name.length) { 1140 if (data.name && data.name.length) {
1109 setData.children_name = data.name 1141 setData.children_name = data.name
@@ -1126,7 +1158,9 @@ Page({ @@ -1126,7 +1158,9 @@ Page({
1126 } 1158 }
1127 if (data.id_card_no && data.id_card_no.length) { 1159 if (data.id_card_no && data.id_card_no.length) {
1128 setData.id_card_no = data.id_card_no 1160 setData.id_card_no = data.id_card_no
1129 - this.dealIdInfo(data.id_card_no, 'older_id_card_no_input') 1161 + if ('居民身份证' == data.id_card_type) {
  1162 + this.dealIdInfo(data.id_card_no, 'older_id_card_no_input')
  1163 + }
1130 } 1164 }
1131 if (data.family_ties && data.family_ties.length) { 1165 if (data.family_ties && data.family_ties.length) {
1132 var older_relativeData = this.data.older_relativeData 1166 var older_relativeData = this.data.older_relativeData
@@ -1146,7 +1180,9 @@ Page({ @@ -1146,7 +1180,9 @@ Page({
1146 } 1180 }
1147 if (data.id_card_no && data.id_card_no.length) { 1181 if (data.id_card_no && data.id_card_no.length) {
1148 setData.id_card_no = data.id_card_no 1182 setData.id_card_no = data.id_card_no
1149 - this.dealIdInfo(data.id_card_no, 'medical_id_card_no_input') 1183 + if ('居民身份证' == data.id_card_type) {
  1184 + this.dealIdInfo(data.id_card_no, 'medical_id_card_no_input')
  1185 + }
1150 } 1186 }
1151 if (data.family_ties && data.family_ties.length) { 1187 if (data.family_ties && data.family_ties.length) {
1152 var taxperson_relativeData = this.data.taxperson_relativeData 1188 var taxperson_relativeData = this.data.taxperson_relativeData
@@ -1441,13 +1477,13 @@ Page({ @@ -1441,13 +1477,13 @@ Page({
1441 this.showToast('请选择配偶出生日期') 1477 this.showToast('请选择配偶出生日期')
1442 return 1478 return
1443 } 1479 }
1444 - newdata.spouse_id_card_type = '居民身份证' //this.data.lovercardtypeData.selected 1480 + newdata.spouse_id_card_type = this.data.lovercardtypeData.selected
1445 newdata.spouse_birthday = this.data.loverbirthDate.datelong 1481 newdata.spouse_birthday = this.data.loverbirthDate.datelong
1446 } 1482 }
1447 newdata.has_spouse = this.data.hasLover?'y':'n' 1483 newdata.has_spouse = this.data.hasLover?'y':'n'
1448 newdata.relationship = this.data.taxperson_relativeData.selected 1484 newdata.relationship = this.data.taxperson_relativeData.selected
1449 newdata.percent = this.data.childrenpercentData.selected.replace("%","") 1485 newdata.percent = this.data.childrenpercentData.selected.replace("%","")
1450 - newdata.children_id_card_type = '居民身份证' //this.data.childrencardtypeData.selected 1486 + newdata.children_id_card_type = this.data.childrencardtypeData.selected
1451 newdata.children_birthday = this.data.commonbirthDate.datelong 1487 newdata.children_birthday = this.data.commonbirthDate.datelong
1452 newdata.education_period_end = this.data.studyPeriodDate.datelong 1488 newdata.education_period_end = this.data.studyPeriodDate.datelong
1453 newdata.education_end = this.data.studyEndDate.datelong 1489 newdata.education_end = this.data.studyEndDate.datelong
@@ -1787,7 +1823,7 @@ Page({ @@ -1787,7 +1823,7 @@ Page({
1787 return 1823 return
1788 } 1824 }
1789 newdata.id_card_no = newdata.spouse_id_card_no ? newdata.spouse_id_card_no : '' 1825 newdata.id_card_no = newdata.spouse_id_card_no ? newdata.spouse_id_card_no : ''
1790 - newdata.id_card_type = '居民身份证' //this.data.lovercardtypeData.selected 1826 + newdata.id_card_type = this.data.lovercardtypeData.selected
1791 newdata.birthday = this.data.loverbirthDate.datelong 1827 newdata.birthday = this.data.loverbirthDate.datelong
1792 newdata.nation = "中国" 1828 newdata.nation = "中国"
1793 } 1829 }
@@ -28,11 +28,12 @@ @@ -28,11 +28,12 @@
28 <view class='divide_line_30'></view> 28 <view class='divide_line_30'></view>
29 <template is="picker_cell_normal" data="{{...commonbirthDate}}" /> 29 <template is="picker_cell_normal" data="{{...commonbirthDate}}" />
30 <view class='divide_line_30'></view> 30 <view class='divide_line_30'></view>
31 - <view style='height:90rpx'> 31 + <template is="picker_cell_normal" data="{{...countryData}}" />
  32 + <!-- <view style='height:90rpx'>
32 <text class='red_star_right_10'>*</text> 33 <text class='red_star_right_10'>*</text>
33 <text class='text_777_30 float_left'>国籍</text> 34 <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> 35 <text class='text_black_30 float_right' style='line-height: 90rpx;text-align:right' name='children_country'>中国</text>
35 - </view> 36 + </view> -->
36 <view class='divide_line_30'></view> 37 <view class='divide_line_30'></view>
37 <template is="picker_cell_normal" data="{{...taxperson_relativeData}}" /> 38 <template is="picker_cell_normal" data="{{...taxperson_relativeData}}" />
38 </view> 39 </view>
@@ -243,7 +244,7 @@ @@ -243,7 +244,7 @@
243 <view style='height:90rpx'> 244 <view style='height:90rpx'>
244 <text class='red_star_right_10'>*</text> 245 <text class='red_star_right_10'>*</text>
245 <text class='text_777_30 float_left'>公积金贷款银行</text> 246 <text class='text_777_30 float_left'>公积金贷款银行</text>
246 - <input class='input_wrap' placeholder-class='text_999_30 float_right' style='line-height: 90rpx;text-align: right;color:#000;' placeholder='请输入贷款合同编号' name='loan_bank' value='{{loan_bank}}'></input> 247 + <input class='input_wrap' placeholder-class='text_999_30 float_right' style='line-height: 90rpx;text-align: right;color:#000;' placeholder='请输入公积金贷款银行' name='loan_bank' value='{{loan_bank}}'></input>
247 </view> 248 </view>
248 <view class='divide_line_30'></view> 249 <view class='divide_line_30'></view>
249 <template is="picker_cell_normal" data="{{...firstpaybackDate}}" /> 250 <template is="picker_cell_normal" data="{{...firstpaybackDate}}" />
@@ -374,7 +375,7 @@ @@ -374,7 +375,7 @@
374 <view class='divide_line_30'></view> 375 <view class='divide_line_30'></view>
375 <view style='height:90rpx'> 376 <view style='height:90rpx'>
376 <text class='text_777_30 float_left head_in'>国籍</text> 377 <text class='text_777_30 float_left head_in'>国籍</text>
377 - <text class='text_black_30 float_right' style='line-height: 90rpx;text-align:right;' name='lover_country'>中国</text> 378 + <text class='text_black_30 float_right' style='line-height: 90rpx;text-align:right;' name='lover_country'>{{lover_country}}</text>
378 </view> 379 </view>
379 </view> 380 </view>
380 381
@@ -40,12 +40,13 @@ @@ -40,12 +40,13 @@
40 <view class="divide_line_30"></view> 40 <view class="divide_line_30"></view>
41 41
42 <template is="picker_cell_normal" data="{{...genderData}}" /> 42 <template is="picker_cell_normal" data="{{...genderData}}" />
43 - <view class="divide_line_30"></view>  
44 - <view class='item_body'>  
45 - <text class='red_star_right_10'>*</text>  
46 - <text class='text_777_30 float_left' style='line-height: 90rpx'>年龄</text>  
47 - <input class='input_wrap' name='age' type='number' placeholder-class='text_999_30' placeholder='年龄' maxlength='2' value='{{age}}' disabled='{{isIdCard}}'></input>  
48 - </view> 43 + <view class="divide_line_30"></view>
  44 + <template is="picker_cell_normal" data="{{...birthDate}}" />
  45 + <!-- <view class='item_body'>
  46 + <text class='red_star_right_10'>*</text>
  47 + <text class='text_777_30 float_left' style='line-height: 90rpx'>年龄</text>
  48 + <input class='input_wrap' name='age' type='number' placeholder-class='text_999_30' placeholder='年龄' maxlength='2' value='{{age}}' disabled='{{isIdCard}}'></input>
  49 + </view> -->
49 <view class="divide_line_30"></view> 50 <view class="divide_line_30"></view>
50 <template is="picker_cell_normal" data="{{...countryData}}" /> 51 <template is="picker_cell_normal" data="{{...countryData}}" />
51 <!-- <view class='item_body'> 52 <!-- <view class='item_body'>
@@ -422,7 +422,7 @@ Page({ @@ -422,7 +422,7 @@ Page({
422 this.data.birthDate.selected = '' 422 this.data.birthDate.selected = ''
423 } else { 423 } else {
424 // this.data.birthDate.selected = format.yearFormString(tax_info.birth_date) + '-' + format.monthFormString(tax_info.birth_date) + '-' + format.dayFormString(tax_info.birth_date) 424 // this.data.birthDate.selected = format.yearFormString(tax_info.birth_date) + '-' + format.monthFormString(tax_info.birth_date) + '-' + format.dayFormString(tax_info.birth_date)
425 - this.data.birthDate.selected = format.birth_date_str //formatTime_date(tax_info.birth_date) 425 + this.data.birthDate.selected = tax_info.birth_date_str //format.formatTime_date(tax_info.birth_date)
426 } 426 }
427 //非必填 427 //非必填
428 if (tax_info.join_date > 1000) { 428 if (tax_info.join_date > 1000) {
注册登录 后发表评论