提交 6e53c69d30be69169bf9700d69801d133bceeb73

作者 pangy
1 个父辈 8475aeb8

开启 家庭成员非居民逻辑,外籍修改

@@ -24,7 +24,6 @@ Page({ @@ -24,7 +24,6 @@ Page({
24 requestBody: {}, 24 requestBody: {},
25 idInfoData: '', 25 idInfoData: '',
26 profession_index: [], 26 profession_index: [],
27 - overseas:'否',  
28 relativeData: { 27 relativeData: {
29 isrequre: true, 28 isrequre: true,
30 label: '与本人关系', 29 label: '与本人关系',
@@ -38,8 +37,7 @@ Page({ @@ -38,8 +37,7 @@ Page({
38 }, 37 },
39 cardtypeData: { 38 cardtypeData: {
40 isrequre: true, 39 isrequre: true,
41 - disabled: true,  
42 - selected:'居民身份证', 40 + // selected:'居民身份证',
43 label: '证照类型', 41 label: '证照类型',
44 bindtype: 'cardtype', 42 bindtype: 'cardtype',
45 placeholder: '请选择证照类型', 43 placeholder: '请选择证照类型',
@@ -52,7 +50,7 @@ Page({ @@ -52,7 +50,7 @@ Page({
52 isrequre: true, 50 isrequre: true,
53 label: '是否境外人员', 51 label: '是否境外人员',
54 bindtype: 'forigner', 52 bindtype: 'forigner',
55 - placeholder: '', 53 + placeholder: '是否境外人员',
56 disabled: true, 54 disabled: true,
57 values: ["否", "是"], 55 values: ["否", "是"],
58 onChange: 'onPickerSelect' 56 onChange: 'onPickerSelect'
@@ -72,7 +70,7 @@ Page({ @@ -72,7 +70,7 @@ Page({
72 label: '国籍', 70 label: '国籍',
73 bindtype: 'country', 71 bindtype: 'country',
74 isrequre: true, 72 isrequre: true,
75 - selected: '中国', 73 + // selected: '中国',
76 disabled: true, 74 disabled: true,
77 // range_key:'name', 75 // range_key:'name',
78 placeholder: '请选择国籍', 76 placeholder: '请选择国籍',
@@ -174,7 +172,7 @@ Page({ @@ -174,7 +172,7 @@ Page({
174 this.data.genderData.selected = tax_info.gender 172 this.data.genderData.selected = tax_info.gender
175 this.data.countryData.selected = tax_info.native 173 this.data.countryData.selected = tax_info.native
176 // this.data.genderData.disabled = isDisable 174 // this.data.genderData.disabled = isDisable
177 - 175 + this.data.forignerInfo.selected = tax_info.is_overseas_personnel
178 this.setData({ 176 this.setData({
179 isDisable: isDisable, 177 isDisable: isDisable,
180 relativeData: this.data.relativeData, 178 relativeData: this.data.relativeData,
@@ -185,7 +183,8 @@ Page({ @@ -185,7 +183,8 @@ Page({
185 genderData: this.data.genderData, 183 genderData: this.data.genderData,
186 isIdCard: '居民身份证' == tax_info.id_card_type ? true : false, 184 isIdCard: '居民身份证' == tax_info.id_card_type ? true : false,
187 card_number: tax_info.id_card_no, 185 card_number: tax_info.id_card_no,
188 - countryData: this.data.countryData 186 + countryData: this.data.countryData,
  187 + forignerInfo: this.data.forignerInfo
189 }) 188 })
190 // this.dealIdInfo(tax_info.id_card_no)//处理了性别和年龄 189 // this.dealIdInfo(tax_info.id_card_no)//处理了性别和年龄
191 }, 190 },
@@ -268,8 +267,9 @@ Page({ @@ -268,8 +267,9 @@ Page({
268 is_idcard = false 267 is_idcard = false
269 this.data.genderData.disabled = false 268 this.data.genderData.disabled = false
270 } 269 }
271 - this.data.overseas = '否' 270 + this.data.forignerInfo.selected = '是'
272 if ('居民身份证' == new_type || '中国护照' == new_type) { 271 if ('居民身份证' == new_type || '中国护照' == new_type) {
  272 + this.data.forignerInfo.selected = '否'
273 this.data.countryData.selected = '中国' 273 this.data.countryData.selected = '中国'
274 this.data.countryData.disabled = true 274 this.data.countryData.disabled = true
275 } else if (new_type.indexOf("港澳") != -1) { 275 } else if (new_type.indexOf("港澳") != -1) {
@@ -280,7 +280,6 @@ Page({ @@ -280,7 +280,6 @@ Page({
280 this.data.countryData.selected = '中国台湾' 280 this.data.countryData.selected = '中国台湾'
281 this.data.countryData.disabled = true 281 this.data.countryData.disabled = true
282 } else { 282 } else {
283 - this.data.overseas = '是'  
284 this.data.countryData.selected = '' 283 this.data.countryData.selected = ''
285 this.data.countryData.values = this.countrys ? this.countrys : [] 284 this.data.countryData.values = this.countrys ? this.countrys : []
286 this.data.countryData.disabled = false 285 this.data.countryData.disabled = false
@@ -290,7 +289,7 @@ Page({ @@ -290,7 +289,7 @@ Page({
290 genderData: this.data.genderData, 289 genderData: this.data.genderData,
291 countryData: this.data.countryData, 290 countryData: this.data.countryData,
292 cardtypeData: this.data.cardtypeData, 291 cardtypeData: this.data.cardtypeData,
293 - overseas: this.data.overseas, 292 + forignerInfo: this.data.forignerInfo
294 }) 293 })
295 294
296 295
@@ -463,7 +462,7 @@ Page({ @@ -463,7 +462,7 @@ Page({
463 //"age": formdata.age ? formdata.age : '',//不传 462 //"age": formdata.age ? formdata.age : '',//不传
464 "age": formdata.age ? formdata.age : '', 463 "age": formdata.age ? formdata.age : '',
465 "native": that.data.countryData.selected, 464 "native": that.data.countryData.selected,
466 - "is_overseas_personnel": that.data.overseas, 465 + "is_overseas_personnel": that.data.forignerInfo.selected,
467 }, 466 },
468 header: { 467 header: {
469 'content-type': 'application/json', // 默认值 468 'content-type': 'application/json', // 默认值
@@ -54,12 +54,7 @@ @@ -54,12 +54,7 @@
54 <text class='text_black_30 float_right' style='line-height: 90rpx' >中国</text> 54 <text class='text_black_30 float_right' style='line-height: 90rpx' >中国</text>
55 </view> --> 55 </view> -->
56 <view class="divide_line_30"></view> 56 <view class="divide_line_30"></view>
57 - <view class='item_body'>  
58 - <text class='red_star_right_10'>*</text>  
59 - <text class='text_777_30 float_left' style='line-height: 90rpx'>是否境外人员</text>  
60 - <text class='text_black_30 float_right' style='line-height: 90rpx' >{{overseas}}</text>  
61 - </view>  
62 - <!-- <template is="picker_cell_normal" data="{{...forignerInfo}}" /> --> 57 + <template is="picker_cell_normal" data="{{...forignerInfo}}" />
63 <view class="divide_line_30"></view> 58 <view class="divide_line_30"></view>
64 <view class='item_body'> 59 <view class='item_body'>
65 <text class='text_777_30 float_left head_in' style='line-height: 90rpx'>联系电话</text> 60 <text class='text_777_30 float_left head_in' style='line-height: 90rpx'>联系电话</text>
注册登录 后发表评论