正在显示
1 个修改的文件
包含
8 行增加
和
3 行删除
@@ -175,6 +175,9 @@ Page({ | @@ -175,6 +175,9 @@ Page({ | ||
175 | handleAddition: function(data) { | 175 | handleAddition: function(data) { |
176 | var that = this | 176 | var that = this |
177 | var newdata = data.items | 177 | var newdata = data.items |
178 | + this.setData({ | ||
179 | + origindata: data | ||
180 | + }) | ||
178 | if (newdata && newdata.length > 0) { | 181 | if (newdata && newdata.length > 0) { |
179 | if (that.data.cur_status == "continuing_education") { | 182 | if (that.data.cur_status == "continuing_education") { |
180 | var professionlist = newdata[0].profession_items | 183 | var professionlist = newdata[0].profession_items |
@@ -219,6 +222,9 @@ Page({ | @@ -219,6 +222,9 @@ Page({ | ||
219 | if (cosupportlist[i].birthday) { | 222 | if (cosupportlist[i].birthday) { |
220 | cosupportlist[i].birthday = this.formatDate(cosupportlist[i].birthday) | 223 | cosupportlist[i].birthday = this.formatDate(cosupportlist[i].birthday) |
221 | } | 224 | } |
225 | + if (cosupportlist[i].id_card_no) { | ||
226 | + cosupportlist[i].id_card_no = this.formatIdNum(cosupportlist[i].id_card_no) | ||
227 | + } | ||
222 | } | 228 | } |
223 | } | 229 | } |
224 | this.setData({ | 230 | this.setData({ |
@@ -305,7 +311,6 @@ Page({ | @@ -305,7 +311,6 @@ Page({ | ||
305 | reduce_amount: data.month_deduction_amount ? data.month_deduction_amount : 0, | 311 | reduce_amount: data.month_deduction_amount ? data.month_deduction_amount : 0, |
306 | input_disable: true, | 312 | input_disable: true, |
307 | 313 | ||
308 | - origindata: data, | ||
309 | handle_finished: true, | 314 | handle_finished: true, |
310 | person_total_amount: data.person_total_amount ? data.person_total_amount : 0, | 315 | person_total_amount: data.person_total_amount ? data.person_total_amount : 0, |
311 | remaining_amount: data.remaining_amount ? data.remaining_amount : 0, | 316 | remaining_amount: data.remaining_amount ? data.remaining_amount : 0, |
@@ -315,7 +320,6 @@ Page({ | @@ -315,7 +320,6 @@ Page({ | ||
315 | wx.hideLoading() | 320 | wx.hideLoading() |
316 | } else { | 321 | } else { |
317 | this.setData({ | 322 | this.setData({ |
318 | - origindata: data, | ||
319 | additionInfo: newdata | 323 | additionInfo: newdata |
320 | }) | 324 | }) |
321 | } | 325 | } |
@@ -400,7 +404,7 @@ Page({ | @@ -400,7 +404,7 @@ Page({ | ||
400 | 404 | ||
401 | goedit: function(e) { //编辑 | 405 | goedit: function(e) { //编辑 |
402 | console.log("goedit", e) | 406 | console.log("goedit", e) |
403 | - var oridata = this.data.origindata.items | 407 | + var oridata = this.data.origindata?this.data.origindata.items:[] |
404 | var new_info | 408 | var new_info |
405 | if (this.data.cur_status == "continuing_education") { | 409 | if (this.data.cur_status == "continuing_education") { |
406 | if (e.currentTarget.id.indexOf('title') != -1) { | 410 | if (e.currentTarget.id.indexOf('title') != -1) { |
@@ -423,6 +427,7 @@ Page({ | @@ -423,6 +427,7 @@ Page({ | ||
423 | } else { | 427 | } else { |
424 | new_info = oridata[e.currentTarget.id] | 428 | new_info = oridata[e.currentTarget.id] |
425 | } | 429 | } |
430 | + console.log("new_info", new_info) | ||
426 | wx.navigateTo({ | 431 | wx.navigateTo({ |
427 | url: '../addextrainfo/addextrainfo?datas=' + JSON.stringify(new_info) + '&status=' + this.data.cur_status + '&reducetype=' + this.data.reducetypeData[this.data.selected_reduceindex] + '&isedit=true', | 432 | url: '../addextrainfo/addextrainfo?datas=' + JSON.stringify(new_info) + '&status=' + this.data.cur_status + '&reducetype=' + this.data.reducetypeData[this.data.selected_reduceindex] + '&isedit=true', |
428 | }) | 433 | }) |
请
注册
或
登录
后发表评论