正在显示
2 个修改的文件
包含
5 行增加
和
6 行删除
@@ -241,7 +241,7 @@ Page({ | @@ -241,7 +241,7 @@ Page({ | ||
241 | this.getproffessiondata() | 241 | this.getproffessiondata() |
242 | this.getbanklist() | 242 | this.getbanklist() |
243 | }, | 243 | }, |
244 | - | 244 | +//****************获取自然人数据************/ |
245 | getpersonalTax: function(id) { | 245 | getpersonalTax: function(id) { |
246 | var that = this | 246 | var that = this |
247 | wx.showLoading({ | 247 | wx.showLoading({ |
@@ -262,7 +262,7 @@ Page({ | @@ -262,7 +262,7 @@ Page({ | ||
262 | // isself: '魏先森' != res.data.name ? false : true | 262 | // isself: '魏先森' != res.data.name ? false : true |
263 | isself: res.data.family_ties ? false : true | 263 | isself: res.data.family_ties ? false : true |
264 | }) | 264 | }) |
265 | - that.handleDatas() | 265 | + that.handleDatas(res.data) |
266 | }, | 266 | }, |
267 | fail(res) { | 267 | fail(res) { |
268 | console.log(res) | 268 | console.log(res) |
@@ -275,12 +275,11 @@ Page({ | @@ -275,12 +275,11 @@ Page({ | ||
275 | }, | 275 | }, |
276 | 276 | ||
277 | //对各参数初始赋值 | 277 | //对各参数初始赋值 |
278 | - handleDatas: function() { | 278 | + handleDatas: function (tax_info) { |
279 | //todo | 279 | //todo |
280 | var curdate = format.curDateTime() | 280 | var curdate = format.curDateTime() |
281 | console.log('curdate', curdate) | 281 | console.log('curdate', curdate) |
282 | 282 | ||
283 | - var tax_info = this.data.taxInfo | ||
284 | this.data.name = tax_info.name | 283 | this.data.name = tax_info.name |
285 | if (this.data.isself) { | 284 | if (this.data.isself) { |
286 | this.data.relativeData.disabled = true | 285 | this.data.relativeData.disabled = true |
@@ -331,7 +330,7 @@ Page({ | @@ -331,7 +330,7 @@ Page({ | ||
331 | this.data.lieshuInfo.selected = tax_info.is_martyr_family | 330 | this.data.lieshuInfo.selected = tax_info.is_martyr_family |
332 | this.data.lonelyolderInfo.selected = tax_info.is_lonely_man | 331 | this.data.lonelyolderInfo.selected = tax_info.is_lonely_man |
333 | this.data.bankInfo.selected = tax_info.bank | 332 | this.data.bankInfo.selected = tax_info.bank |
334 | - this.data.contactaddressInfo.selected = tax_info.contact_address.province + tax_info.contact_address.city + tax_info.contact_address.district | 333 | + // this.data.contactaddressInfo.selected = tax_info.contact_address.province + tax_info.contact_address.city + tax_info.contact_address.district |
335 | this.data.currentaddressInfo.selected = tax_info.current_address.province + tax_info.current_address.city + tax_info.current_address.district | 334 | this.data.currentaddressInfo.selected = tax_info.current_address.province + tax_info.current_address.city + tax_info.current_address.district |
336 | this.data.birthaddressInfo.selected = (tax_info.huji_address.province + tax_info.huji_address.city + tax_info.huji_address.district).replace(/(^\s*)|(\s*$)/g, "") | 335 | this.data.birthaddressInfo.selected = (tax_info.huji_address.province + tax_info.huji_address.city + tax_info.huji_address.district).replace(/(^\s*)|(\s*$)/g, "") |
337 | this.data.employeeInfo.selected = tax_info.is_employee | 336 | this.data.employeeInfo.selected = tax_info.is_employee |
@@ -135,7 +135,7 @@ Page({ | @@ -135,7 +135,7 @@ Page({ | ||
135 | 135 | ||
136 | getStatus: function(data) { | 136 | getStatus: function(data) { |
137 | console.log('data', data) | 137 | console.log('data', data) |
138 | - if (data[0].family_ties.length < 1 && data[0].name.length > 0 && data[0].taxpayer_status.length > 0 && data[0].id_card_type.length > 0 && data[0].id_card_no.length > 0 && data[0].mobile.length > 0) { | 138 | + if (data[0].family_ties.length < 1 && data[0].name.length > 0 && data[0].id_card_type.length > 0 && data[0].id_card_no.length > 0 && data[0].mobile.length > 0) { |
139 | this.setData({ | 139 | this.setData({ |
140 | text_tip: '去查看' | 140 | text_tip: '去查看' |
141 | }) | 141 | }) |
请
注册
或
登录
后发表评论