提交 473ac5622b0d17c0f985b2d790197855b4489cb1

作者 pangy
1 个父辈 2688f11d

解决报错: 后台去除字段:自然人状态 、联系地址

... ... @@ -241,7 +241,7 @@ Page({
241 241 this.getproffessiondata()
242 242 this.getbanklist()
243 243 },
244   -
  244 +//****************获取自然人数据************/
245 245 getpersonalTax: function(id) {
246 246 var that = this
247 247 wx.showLoading({
... ... @@ -262,7 +262,7 @@ Page({
262 262 // isself: '魏先森' != res.data.name ? false : true
263 263 isself: res.data.family_ties ? false : true
264 264 })
265   - that.handleDatas()
  265 + that.handleDatas(res.data)
266 266 },
267 267 fail(res) {
268 268 console.log(res)
... ... @@ -275,12 +275,11 @@ Page({
275 275 },
276 276
277 277 //对各参数初始赋值
278   - handleDatas: function() {
  278 + handleDatas: function (tax_info) {
279 279 //todo
280 280 var curdate = format.curDateTime()
281 281 console.log('curdate', curdate)
282 282
283   - var tax_info = this.data.taxInfo
284 283 this.data.name = tax_info.name
285 284 if (this.data.isself) {
286 285 this.data.relativeData.disabled = true
... ... @@ -331,7 +330,7 @@ Page({
331 330 this.data.lieshuInfo.selected = tax_info.is_martyr_family
332 331 this.data.lonelyolderInfo.selected = tax_info.is_lonely_man
333 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 334 this.data.currentaddressInfo.selected = tax_info.current_address.province + tax_info.current_address.city + tax_info.current_address.district
336 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 336 this.data.employeeInfo.selected = tax_info.is_employee
... ...
... ... @@ -135,7 +135,7 @@ Page({
135 135
136 136 getStatus: function(data) {
137 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 139 this.setData({
140 140 text_tip: '去查看'
141 141 })
... ...
注册登录 后发表评论