|
@@ -88,7 +88,7 @@ Page({ |
|
@@ -88,7 +88,7 @@ Page({ |
88
|
lefttext: "添加家庭成员并申报",
|
88
|
lefttext: "添加家庭成员并申报",
|
89
|
righttext: "确定为该选择的人申报",
|
89
|
righttext: "确定为该选择的人申报",
|
90
|
},
|
90
|
},
|
91
|
- reduce_amount: 0,
|
91
|
+ reduce_amount: -1,
|
92
|
selected_reduceindex: 0,
|
92
|
selected_reduceindex: 0,
|
93
|
selected_addindex: 0
|
93
|
selected_addindex: 0
|
94
|
},
|
94
|
},
|
|
@@ -172,6 +172,26 @@ Page({ |
|
@@ -172,6 +172,26 @@ Page({ |
172
|
if (newdata[i].patient_birthday) {
|
172
|
if (newdata[i].patient_birthday) {
|
173
|
newdata[i].patient_birthday = this.formatDate(newdata[i].patient_birthday)
|
173
|
newdata[i].patient_birthday = this.formatDate(newdata[i].patient_birthday)
|
174
|
}
|
174
|
}
|
|
|
175
|
+ //详情迁移
|
|
|
176
|
+ if (newdata[i].children_birthday) {
|
|
|
177
|
+ newdata[i].children_birthday = this.formatDate(newdata[i].children_birthday)
|
|
|
178
|
+ }
|
|
|
179
|
+ if (newdata[i].spouse_birthday) {
|
|
|
180
|
+ newdata[i].spouse_birthday = this.formatDate(newdata[i].spouse_birthday)
|
|
|
181
|
+ }
|
|
|
182
|
+ if (newdata[i].birthday) {
|
|
|
183
|
+ newdata[i].birthday = this.formatDate(newdata[i].birthday)
|
|
|
184
|
+ }
|
|
|
185
|
+ if (newdata[i].rent_start) {
|
|
|
186
|
+ newdata[i].rent_start = this.formatDate(newdata[i].rent_start)
|
|
|
187
|
+ }
|
|
|
188
|
+ if (newdata[i].rent_end) {
|
|
|
189
|
+ newdata[i].rent_end = this.formatDate(newdata[i].rent_end)
|
|
|
190
|
+ }
|
|
|
191
|
+
|
|
|
192
|
+ newdata[i].children_id_card_no = this.formatIdNum(newdata[i].children_id_card_no)
|
|
|
193
|
+ newdata[i].spouse_id_card_no = this.formatIdNum(newdata[i].spouse_id_card_no)
|
|
|
194
|
+ newdata[i].id_card_no = this.formatIdNum(newdata[i].id_card_no)
|
175
|
|
195
|
|
176
|
if (newdata[i].house_address) {
|
196
|
if (newdata[i].house_address) {
|
177
|
if (newdata[i].house_address.province == newdata[i].house_address.city) {
|
197
|
if (newdata[i].house_address.province == newdata[i].house_address.city) {
|
|
@@ -180,6 +200,11 @@ Page({ |
|
@@ -180,6 +200,11 @@ Page({ |
180
|
newdata[i].house_address_new = newdata[i].house_address.province + newdata[i].house_address.city + newdata[i].house_address.district
|
200
|
newdata[i].house_address_new = newdata[i].house_address.province + newdata[i].house_address.city + newdata[i].house_address.district
|
181
|
}
|
201
|
}
|
182
|
}
|
202
|
}
|
|
|
203
|
+
|
|
|
204
|
+ if (newdata[i].work_city) {
|
|
|
205
|
+ newdata[i].work_city_new = newdata[i].work_city.province + newdata[i].work_city.city
|
|
|
206
|
+ }
|
|
|
207
|
+
|
183
|
if (newdata[i].co_supporters && newdata[i].co_supporters.length > 0) {
|
208
|
if (newdata[i].co_supporters && newdata[i].co_supporters.length > 0) {
|
184
|
for (var j = 0; j < newdata[i].co_supporters.length; j++) {
|
209
|
for (var j = 0; j < newdata[i].co_supporters.length; j++) {
|
185
|
if (newdata[i].co_supporters[j].birthday) {
|
210
|
if (newdata[i].co_supporters[j].birthday) {
|
|
@@ -188,7 +213,6 @@ Page({ |
|
@@ -188,7 +213,6 @@ Page({ |
188
|
newdata[i].co_supporters[j].id_card_no = this.formatIdNum(newdata[i].co_supporters[j].id_card_no)
|
213
|
newdata[i].co_supporters[j].id_card_no = this.formatIdNum(newdata[i].co_supporters[j].id_card_no)
|
189
|
}
|
214
|
}
|
190
|
}
|
215
|
}
|
191
|
- newdata[i].id_card_no = this.formatIdNum(newdata[i].id_card_no)
|
|
|
192
|
}
|
216
|
}
|
193
|
|
217
|
|
194
|
var housetype_new = this.data.house_type
|
218
|
var housetype_new = this.data.house_type
|
|
@@ -277,7 +301,10 @@ Page({ |
|
@@ -277,7 +301,10 @@ Page({ |
277
|
this.showToast("请选择分摊方式")
|
301
|
this.showToast("请选择分摊方式")
|
278
|
return
|
302
|
return
|
279
|
}
|
303
|
}
|
280
|
- if (this.data.reduce_amount < 1 || this.data.reduce_amount > 1000) {
|
304
|
+ if (this.data.reduce_amount == -1){
|
|
|
305
|
+ this.showToast("请输入扣除金额")
|
|
|
306
|
+ return
|
|
|
307
|
+ }else if (this.data.reduce_amount < 1 || this.data.reduce_amount > 1000) {
|
281
|
this.showToast("本年度月扣除金额不得大于1000")
|
308
|
this.showToast("本年度月扣除金额不得大于1000")
|
282
|
return
|
309
|
return
|
283
|
}
|
310
|
}
|
|
@@ -506,11 +533,15 @@ Page({ |
|
@@ -506,11 +533,15 @@ Page({ |
506
|
|
533
|
|
507
|
bindinput: function(e) {
|
534
|
bindinput: function(e) {
|
508
|
console.log("bindinput", e)
|
535
|
console.log("bindinput", e)
|
|
|
536
|
+ var inputamount
|
509
|
if (e.detail.value && e.detail.value.replace(/\s+/g, "").length>0){
|
537
|
if (e.detail.value && e.detail.value.replace(/\s+/g, "").length>0){
|
510
|
- this.setData({
|
|
|
511
|
- reduce_amount: parseFloat(e.detail.value)
|
|
|
512
|
- })
|
538
|
+ inputamount = parseFloat(e.detail.value)+0
|
|
|
539
|
+ }else{
|
|
|
540
|
+ inputamount = -1
|
513
|
}
|
541
|
}
|
|
|
542
|
+ this.setData({
|
|
|
543
|
+ reduce_amount: inputamount
|
|
|
544
|
+ })
|
514
|
},
|
545
|
},
|
515
|
|
546
|
|
516
|
showToast: function(data) {
|
547
|
showToast: function(data) {
|