|
@@ -83,13 +83,13 @@ Page({ |
|
@@ -83,13 +83,13 @@ Page({ |
83
|
onChange: 'onPickerSelect'
|
83
|
onChange: 'onPickerSelect'
|
84
|
},
|
84
|
},
|
85
|
childrencardtypeData: {
|
85
|
childrencardtypeData: {
|
86
|
- label: '子女身份证件类型',
|
86
|
+ label: '子女证照类型',
|
87
|
isrequre: true,
|
87
|
isrequre: true,
|
88
|
bindtype: 'childrencardtype',
|
88
|
bindtype: 'childrencardtype',
|
89
|
selected: '居民身份证',
|
89
|
selected: '居民身份证',
|
90
|
disabled: true,
|
90
|
disabled: true,
|
91
|
isblack: 'true',
|
91
|
isblack: 'true',
|
92
|
- placeholder: '请选择身份证件类型',
|
92
|
+ placeholder: '请选择证照类型',
|
93
|
values: ["居民身份证", "军官证", '士兵证', '武警警官证', '港澳居民来往内地通行证', '外交官证', '中国护照',
|
93
|
values: ["居民身份证", "军官证", '士兵证', '武警警官证', '港澳居民来往内地通行证', '外交官证', '中国护照',
|
94
|
'外国护照', '香港永久性居民身份证', '澳门特别行政区永久性居民身份证', '台湾身份证', '台湾居民来往大陆通行证', '外国人永久居留证'
|
94
|
'外国护照', '香港永久性居民身份证', '澳门特别行政区永久性居民身份证', '台湾身份证', '台湾居民来往大陆通行证', '外国人永久居留证'
|
95
|
],
|
95
|
],
|
|
@@ -168,26 +168,26 @@ Page({ |
|
@@ -168,26 +168,26 @@ Page({ |
168
|
onChange: 'onPickerSelect'
|
168
|
onChange: 'onPickerSelect'
|
169
|
},
|
169
|
},
|
170
|
oldercardtypeData: {
|
170
|
oldercardtypeData: {
|
171
|
- label: '被赡养人证件类型',
|
171
|
+ label: '被赡养人证照类型',
|
172
|
isrequre: true,
|
172
|
isrequre: true,
|
173
|
disabled: true,
|
173
|
disabled: true,
|
174
|
bindtype: 'oldercardtype',
|
174
|
bindtype: 'oldercardtype',
|
175
|
selected: '居民身份证',
|
175
|
selected: '居民身份证',
|
176
|
isblack: 'true',
|
176
|
isblack: 'true',
|
177
|
- placeholder: '请选择被赡养人证件类型',
|
177
|
+ placeholder: '请选择被赡养人证照类型',
|
178
|
values: ["居民身份证", "军官证", '士兵证', '武警警官证', '港澳居民来往内地通行证', '外交官证', '中国护照',
|
178
|
values: ["居民身份证", "军官证", '士兵证', '武警警官证', '港澳居民来往内地通行证', '外交官证', '中国护照',
|
179
|
'外国护照', '香港永久性居民身份证', '澳门特别行政区永久性居民身份证', '台湾身份证', '台湾居民来往大陆通行证', '外国人永久居留证'
|
179
|
'外国护照', '香港永久性居民身份证', '澳门特别行政区永久性居民身份证', '台湾身份证', '台湾居民来往大陆通行证', '外国人永久居留证'
|
180
|
],
|
180
|
],
|
181
|
onChange: 'onPickerSelect'
|
181
|
onChange: 'onPickerSelect'
|
182
|
},
|
182
|
},
|
183
|
cardtypeData: {
|
183
|
cardtypeData: {
|
184
|
- label: '身份证件类型',
|
184
|
+ label: '证照类型',
|
185
|
isrequre: true,
|
185
|
isrequre: true,
|
186
|
bindtype: 'cardtype',
|
186
|
bindtype: 'cardtype',
|
187
|
selected: '居民身份证',
|
187
|
selected: '居民身份证',
|
188
|
disabled: true,
|
188
|
disabled: true,
|
189
|
isblack: 'true',
|
189
|
isblack: 'true',
|
190
|
- placeholder: '请选择证件类型',
|
190
|
+ placeholder: '证照类型',
|
191
|
values: ["居民身份证", "军官证", '士兵证', '武警警官证', '港澳居民来往内地通行证', '外交官证', '中国护照',
|
191
|
values: ["居民身份证", "军官证", '士兵证', '武警警官证', '港澳居民来往内地通行证', '外交官证', '中国护照',
|
192
|
'外国护照', '香港永久性居民身份证', '澳门特别行政区永久性居民身份证', '台湾身份证', '台湾居民来往大陆通行证', '外国人永久居留证'
|
192
|
'外国护照', '香港永久性居民身份证', '澳门特别行政区永久性居民身份证', '台湾身份证', '台湾居民来往大陆通行证', '外国人永久居留证'
|
193
|
],
|
193
|
],
|
|
@@ -206,19 +206,20 @@ Page({ |
|
@@ -206,19 +206,20 @@ Page({ |
206
|
end: '2018-01-01',
|
206
|
end: '2018-01-01',
|
207
|
onChange: 'onPickerSelect',
|
207
|
onChange: 'onPickerSelect',
|
208
|
},
|
208
|
},
|
209
|
- singlechildData: {
|
|
|
210
|
- label: '是否独生子女',
|
|
|
211
|
- bindtype: 'single_child',
|
|
|
212
|
- selected: '',
|
|
|
213
|
- isblack: 'true',
|
|
|
214
|
- values: ["是", "否"],
|
|
|
215
|
- placeholder: '请选择是否独生子女',
|
|
|
216
|
- onChange: 'onPickerSelect'
|
|
|
217
|
- },
|
209
|
+ // singlechildData: {
|
|
|
210
|
+ // label: '是否独生子女',
|
|
|
211
|
+ // bindtype: 'single_child',
|
|
|
212
|
+ // selected: '',
|
|
|
213
|
+ // isblack: 'true',
|
|
|
214
|
+ // values: ["是", "否"],
|
|
|
215
|
+ // placeholder: '请选择是否独生子女',
|
|
|
216
|
+ // onChange: 'onPickerSelect'
|
|
|
217
|
+ // },
|
218
|
beforemarryData: {
|
218
|
beforemarryData: {
|
219
|
label: '是否首套婚前贷款且婚后各自扣除',
|
219
|
label: '是否首套婚前贷款且婚后各自扣除',
|
220
|
bindtype: 'before_marry',
|
220
|
bindtype: 'before_marry',
|
221
|
selected: '',
|
221
|
selected: '',
|
|
|
222
|
+ isrequre: true,
|
222
|
isblack: 'true',
|
223
|
isblack: 'true',
|
223
|
values: ["是", "否"],
|
224
|
values: ["是", "否"],
|
224
|
placeholder: '请选择',
|
225
|
placeholder: '请选择',
|
|
@@ -228,6 +229,7 @@ Page({ |
|
@@ -228,6 +229,7 @@ Page({ |
228
|
label: '是否本人借款',
|
229
|
label: '是否本人借款',
|
229
|
bindtype: 'is_self_loan',
|
230
|
bindtype: 'is_self_loan',
|
230
|
selected: '',
|
231
|
selected: '',
|
|
|
232
|
+ isrequre: true,
|
231
|
isblack: 'true',
|
233
|
isblack: 'true',
|
232
|
values: ["是", "否"],
|
234
|
values: ["是", "否"],
|
233
|
placeholder: '请选择',
|
235
|
placeholder: '请选择',
|
|
@@ -235,7 +237,7 @@ Page({ |
|
@@ -235,7 +237,7 @@ Page({ |
235
|
},
|
237
|
},
|
236
|
reducetypeData: {
|
238
|
reducetypeData: {
|
237
|
label: '扣除方式',
|
239
|
label: '扣除方式',
|
238
|
- isrequre: true,
|
240
|
+ isrequre: false,
|
239
|
bindtype: 'reduce_type',
|
241
|
bindtype: 'reduce_type',
|
240
|
selected: '',
|
242
|
selected: '',
|
241
|
isblack: 'true',
|
243
|
isblack: 'true',
|
|
@@ -289,6 +291,7 @@ Page({ |
|
@@ -289,6 +291,7 @@ Page({ |
289
|
label: '证书类型',
|
291
|
label: '证书类型',
|
290
|
bindtype: 'identify_type',
|
292
|
bindtype: 'identify_type',
|
291
|
selected: '',
|
293
|
selected: '',
|
|
|
294
|
+ isrequre: true,
|
292
|
isblack: 'true',
|
295
|
isblack: 'true',
|
293
|
values: ["产权证", "不动产权登记证", "出售合同号", "预售合同号"],
|
296
|
values: ["产权证", "不动产权登记证", "出售合同号", "预售合同号"],
|
294
|
placeholder: '请选择证书类型',
|
297
|
placeholder: '请选择证书类型',
|
|
@@ -298,6 +301,7 @@ Page({ |
|
@@ -298,6 +301,7 @@ Page({ |
298
|
label: '贷款类型',
|
301
|
label: '贷款类型',
|
299
|
bindtype: 'loan_type',
|
302
|
bindtype: 'loan_type',
|
300
|
selected: '',
|
303
|
selected: '',
|
|
|
304
|
+ isrequre: true,
|
301
|
isblack: 'true',
|
305
|
isblack: 'true',
|
302
|
values: ["公积金贷款", "商业贷款"],
|
306
|
values: ["公积金贷款", "商业贷款"],
|
303
|
placeholder: '请选择贷款类型',
|
307
|
placeholder: '请选择贷款类型',
|
|
@@ -307,6 +311,7 @@ Page({ |
|
@@ -307,6 +311,7 @@ Page({ |
307
|
label: '出租方类型',
|
311
|
label: '出租方类型',
|
308
|
bindtype: 'lease_type',
|
312
|
bindtype: 'lease_type',
|
309
|
selected: '',
|
313
|
selected: '',
|
|
|
314
|
+ isrequre: true,
|
310
|
isblack: 'true',
|
315
|
isblack: 'true',
|
311
|
values: ["组织", "自然人"],
|
316
|
values: ["组织", "自然人"],
|
312
|
placeholder: '请选择出租方类型',
|
317
|
placeholder: '请选择出租方类型',
|
|
@@ -315,6 +320,7 @@ Page({ |
|
@@ -315,6 +320,7 @@ Page({ |
315
|
workingcityInfo: {
|
320
|
workingcityInfo: {
|
316
|
label: '主要工作城市',
|
321
|
label: '主要工作城市',
|
317
|
mode: 'region',
|
322
|
mode: 'region',
|
|
|
323
|
+ isrequre: true,
|
318
|
bindtype: 'working_city',
|
324
|
bindtype: 'working_city',
|
319
|
isblack: 'true',
|
325
|
isblack: 'true',
|
320
|
address_code: ['', ''],
|
326
|
address_code: ['', ''],
|
|
@@ -326,6 +332,8 @@ Page({ |
|
@@ -326,6 +332,8 @@ Page({ |
326
|
houseLocateInfo: {
|
332
|
houseLocateInfo: {
|
327
|
label: '房屋坐落地址',
|
333
|
label: '房屋坐落地址',
|
328
|
mode: 'region',
|
334
|
mode: 'region',
|
|
|
335
|
+ isrequre: true,
|
|
|
336
|
+ isrequre: true,
|
329
|
bindtype: 'house_locate',
|
337
|
bindtype: 'house_locate',
|
330
|
isblack: 'true',
|
338
|
isblack: 'true',
|
331
|
address_code: ['', '', ''],
|
339
|
address_code: ['', '', ''],
|
|
@@ -334,10 +342,24 @@ Page({ |
|
@@ -334,10 +342,24 @@ Page({ |
334
|
placeholder: '请选择地址',
|
342
|
placeholder: '请选择地址',
|
335
|
onChange: 'onPickerSelect'
|
343
|
onChange: 'onPickerSelect'
|
336
|
},
|
344
|
},
|
|
|
345
|
+ rentLocateInfo: {
|
|
|
346
|
+ label: '租赁房屋坐落地址',
|
|
|
347
|
+ mode: 'region',
|
|
|
348
|
+ isrequre: true,
|
|
|
349
|
+ isrequre: true,
|
|
|
350
|
+ bindtype: 'rent_house_locate',
|
|
|
351
|
+ isblack: 'true',
|
|
|
352
|
+ address_code: ['', '', ''],
|
|
|
353
|
+ address_value: ['', '', ''],
|
|
|
354
|
+ selected: '',
|
|
|
355
|
+ placeholder: '请选择地址',
|
|
|
356
|
+ onChange: 'onPickerSelect'
|
|
|
357
|
+ },
|
337
|
firstpaybackDate: {
|
358
|
firstpaybackDate: {
|
338
|
label: '首次还款日期',
|
359
|
label: '首次还款日期',
|
339
|
bindtype: 'payback_date',
|
360
|
bindtype: 'payback_date',
|
340
|
selected: '',
|
361
|
selected: '',
|
|
|
362
|
+ isrequre: true,
|
341
|
isblack: 'true',
|
363
|
isblack: 'true',
|
342
|
values: ["是", "否"],
|
364
|
values: ["是", "否"],
|
343
|
placeholder: '请选择日期',
|
365
|
placeholder: '请选择日期',
|
|
@@ -351,6 +373,7 @@ Page({ |
|
@@ -351,6 +373,7 @@ Page({ |
351
|
label: '租赁期起',
|
373
|
label: '租赁期起',
|
352
|
bindtype: 'lease_start_date',
|
374
|
bindtype: 'lease_start_date',
|
353
|
selected: '',
|
375
|
selected: '',
|
|
|
376
|
+ isrequre: true,
|
354
|
isblack: 'true',
|
377
|
isblack: 'true',
|
355
|
values: ["是", "否"],
|
378
|
values: ["是", "否"],
|
356
|
placeholder: '请选择日期',
|
379
|
placeholder: '请选择日期',
|
|
@@ -362,8 +385,9 @@ Page({ |
|
@@ -362,8 +385,9 @@ Page({ |
362
|
},
|
385
|
},
|
363
|
leaseendDate: {
|
386
|
leaseendDate: {
|
364
|
label: '租赁期止',
|
387
|
label: '租赁期止',
|
365
|
- bindtype: 'lease_start_date',
|
388
|
+ bindtype: 'lease_end_date',
|
366
|
selected: '',
|
389
|
selected: '',
|
|
|
390
|
+ isrequre: true,
|
367
|
isblack: 'true',
|
391
|
isblack: 'true',
|
368
|
values: ["是", "否"],
|
392
|
values: ["是", "否"],
|
369
|
placeholder: '请选择日期',
|
393
|
placeholder: '请选择日期',
|
|
@@ -377,32 +401,20 @@ Page({ |
|
@@ -377,32 +401,20 @@ Page({ |
377
|
label: '贷款期限(月数)',
|
401
|
label: '贷款期限(月数)',
|
378
|
bindtype: 'loan_datelong',
|
402
|
bindtype: 'loan_datelong',
|
379
|
selected: '',
|
403
|
selected: '',
|
|
|
404
|
+ isrequre: true,
|
380
|
isblack: 'true',
|
405
|
isblack: 'true',
|
381
|
values: ["1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12"],
|
406
|
values: ["1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12"],
|
382
|
placeholder: '请选择贷款期限',
|
407
|
placeholder: '请选择贷款期限',
|
383
|
onChange: 'onPickerSelect'
|
408
|
onChange: 'onPickerSelect'
|
384
|
},
|
409
|
},
|
385
|
- reducedateData: {
|
|
|
386
|
- label: '扣除时间',
|
|
|
387
|
- bindtype: 'reduce_date',
|
|
|
388
|
- selected: '',
|
|
|
389
|
- isblack: 'true',
|
|
|
390
|
- values: ["是", "否"],
|
|
|
391
|
- placeholder: '请选择扣除时间',
|
|
|
392
|
- onChange: 'onPickerSelect',
|
|
|
393
|
- mode: "date",
|
|
|
394
|
- fields: "month",
|
|
|
395
|
- start: '1970-01',
|
|
|
396
|
- datelong: 0,
|
|
|
397
|
- },
|
|
|
398
|
- eduCountryData: {
|
410
|
+ schoolCountryData: {
|
399
|
label: '就读国家',
|
411
|
label: '就读国家',
|
400
|
- bindtype: 'edu_country',
|
412
|
+ bindtype: 'school_country',
|
401
|
isrequre: true,
|
413
|
isrequre: true,
|
402
|
- selected: '',
|
414
|
+ selected: '中国(大陆)',
|
403
|
isblack: 'true',
|
415
|
isblack: 'true',
|
404
|
values: [],
|
416
|
values: [],
|
405
|
- placeholder: '中国',
|
417
|
+ placeholder: '中国(大陆)',
|
406
|
onChange: 'onPickerSelect',
|
418
|
onChange: 'onPickerSelect',
|
407
|
},
|
419
|
},
|
408
|
edu_lable: "school",
|
420
|
edu_lable: "school",
|
|
@@ -455,14 +467,12 @@ Page({ |
|
@@ -455,14 +467,12 @@ Page({ |
455
|
commonbirthDate: commonbirth_date
|
467
|
commonbirthDate: commonbirth_date
|
456
|
})
|
468
|
})
|
457
|
}
|
469
|
}
|
458
|
-
|
|
|
459
|
-
|
|
|
460
|
- var title = '添加' + AddTypeNames[nameKey]
|
470
|
+ var title = '添加' + AddTypeNames[nameKey]
|
461
|
|
471
|
|
462
|
this.setData({
|
472
|
this.setData({
|
463
|
title: title,
|
473
|
title: title,
|
464
|
cur_index: nameKey,
|
474
|
cur_index: nameKey,
|
465
|
- house_type : frontPage.data.house_type,
|
475
|
+ house_type: frontPage.data.house_type,
|
466
|
reducetypeData: reduce_typeData,
|
476
|
reducetypeData: reduce_typeData,
|
467
|
deduction_amount: deduction_amount
|
477
|
deduction_amount: deduction_amount
|
468
|
})
|
478
|
})
|
|
@@ -479,13 +489,13 @@ Page({ |
|
@@ -479,13 +489,13 @@ Page({ |
479
|
loadCountry: function() {
|
489
|
loadCountry: function() {
|
480
|
countryInfo.init(this)
|
490
|
countryInfo.init(this)
|
481
|
var countrylist = this.data.country
|
491
|
var countrylist = this.data.country
|
482
|
- var country_data = this.data.eduCountryData
|
492
|
+ var country_data = this.data.schoolCountryData
|
483
|
for (var i = 0; i < countrylist.length; i++) {
|
493
|
for (var i = 0; i < countrylist.length; i++) {
|
484
|
country_data.values.push(countrylist[i].name)
|
494
|
country_data.values.push(countrylist[i].name)
|
485
|
}
|
495
|
}
|
486
|
console.log("countrydata", country_data)
|
496
|
console.log("countrydata", country_data)
|
487
|
this.setData({
|
497
|
this.setData({
|
488
|
- eduCountryData: country_data
|
498
|
+ schoolCountryData: country_data
|
489
|
})
|
499
|
})
|
490
|
|
500
|
|
491
|
},
|
501
|
},
|
|
@@ -541,9 +551,9 @@ Page({ |
|
@@ -541,9 +551,9 @@ Page({ |
541
|
// }
|
551
|
// }
|
542
|
this.setData(setData)
|
552
|
this.setData(setData)
|
543
|
break;
|
553
|
break;
|
544
|
- // case 'continuing_education':
|
|
|
545
|
- // var setData = {}
|
|
|
546
|
- // break;
|
554
|
+ // case 'continuing_education':
|
|
|
555
|
+ // var setData = {}
|
|
|
556
|
+ // break;
|
547
|
case 'medical_fund':
|
557
|
case 'medical_fund':
|
548
|
var setData = {}
|
558
|
var setData = {}
|
549
|
if (data.name && data.name.length) {
|
559
|
if (data.name && data.name.length) {
|
|
@@ -686,7 +696,7 @@ Page({ |
|
@@ -686,7 +696,7 @@ Page({ |
686
|
case 'children_education':
|
696
|
case 'children_education':
|
687
|
subUrl = 'persontax/v1/children-educations'
|
697
|
subUrl = 'persontax/v1/children-educations'
|
688
|
if (!formdata.children_id_card_no || formdata.children_id_card_no.length < 1) {
|
698
|
if (!formdata.children_id_card_no || formdata.children_id_card_no.length < 1) {
|
689
|
- this.showToast('请填写子女证件号码')
|
699
|
+ this.showToast('请填写子女证照号码')
|
690
|
return
|
700
|
return
|
691
|
}
|
701
|
}
|
692
|
if (!formdata.children_name || formdata.children_name.length < 1) {
|
702
|
if (!formdata.children_name || formdata.children_name.length < 1) {
|
|
@@ -719,8 +729,8 @@ Page({ |
|
@@ -719,8 +729,8 @@ Page({ |
719
|
this.showToast('请选择受教育终止日期')
|
729
|
this.showToast('请选择受教育终止日期')
|
720
|
return
|
730
|
return
|
721
|
}
|
731
|
}
|
722
|
- if (this.data.eduCountryData.selected.length < 1) {
|
|
|
723
|
- this.showToast('请选择就读地区')
|
732
|
+ if (!formdata.school_name || formdata.school_name.length < 1) {
|
|
|
733
|
+ this.showToast('请选择就读学校')
|
724
|
return
|
734
|
return
|
725
|
}
|
735
|
}
|
726
|
|
736
|
|
|
@@ -729,17 +739,12 @@ Page({ |
|
@@ -729,17 +739,12 @@ Page({ |
729
|
this.showToast('请填写配偶姓名')
|
739
|
this.showToast('请填写配偶姓名')
|
730
|
return
|
740
|
return
|
731
|
} else if (!formdata.spouse_id_card_no || formdata.spouse_id_card_no.length < 1) {
|
741
|
} else if (!formdata.spouse_id_card_no || formdata.spouse_id_card_no.length < 1) {
|
732
|
- this.showToast('请填写配偶证件号码')
|
742
|
+ this.showToast('请填写配偶证照号码')
|
733
|
return
|
743
|
return
|
734
|
} else if (this.data.loverbirthDate.selected.length < 1) {
|
744
|
} else if (this.data.loverbirthDate.selected.length < 1) {
|
735
|
this.showToast('请选择配偶出生日期')
|
745
|
this.showToast('请选择配偶出生日期')
|
736
|
return
|
746
|
return
|
737
|
}
|
747
|
}
|
738
|
- // if (this.data.taxperson_relativeData.selected.length < 1) {
|
|
|
739
|
- // this.showToast('请选择与纳税人关系')
|
|
|
740
|
- // return
|
|
|
741
|
- // }
|
|
|
742
|
-
|
|
|
743
|
}
|
748
|
}
|
744
|
newdata.relationship = this.data.taxperson_relativeData.selected
|
749
|
newdata.relationship = this.data.taxperson_relativeData.selected
|
745
|
newdata.children_id_card_type = '1' //this.data.childrencardtypeData.selected
|
750
|
newdata.children_id_card_type = '1' //this.data.childrencardtypeData.selected
|
|
@@ -747,6 +752,7 @@ Page({ |
|
@@ -747,6 +752,7 @@ Page({ |
747
|
newdata.education_end = this.data.studystartdate.datelong
|
752
|
newdata.education_end = this.data.studystartdate.datelong
|
748
|
newdata.education_start = this.data.studyenddate.datelong
|
753
|
newdata.education_start = this.data.studyenddate.datelong
|
749
|
newdata.education_period = this.data.childedudegreeData.selected
|
754
|
newdata.education_period = this.data.childedudegreeData.selected
|
|
|
755
|
+ newdata.school_name = this.data.schoolCountryData.selected
|
750
|
newdata.children_nation = "中国"
|
756
|
newdata.children_nation = "中国"
|
751
|
newdata.spouse_id_card_type = '1' //this.data.lovercardtypeData.selected
|
757
|
newdata.spouse_id_card_type = '1' //this.data.lovercardtypeData.selected
|
752
|
newdata.spouse_birthday = this.data.loverbirthDate.datelong > 0 ? this.data.loverbirthDate.datelong : 0
|
758
|
newdata.spouse_birthday = this.data.loverbirthDate.datelong > 0 ? this.data.loverbirthDate.datelong : 0
|
|
@@ -764,11 +770,11 @@ Page({ |
|
@@ -764,11 +770,11 @@ Page({ |
764
|
return
|
770
|
return
|
765
|
}
|
771
|
}
|
766
|
if (this.data.studystartdate.selected.length < 1) {
|
772
|
if (this.data.studystartdate.selected.length < 1) {
|
767
|
- this.showToast('请选择受入学日期')
|
773
|
+ this.showToast('请选择受入学时间')
|
768
|
return
|
774
|
return
|
769
|
}
|
775
|
}
|
770
|
if (this.data.studyenddate.selected.length < 1) {
|
776
|
if (this.data.studyenddate.selected.length < 1) {
|
771
|
- this.showToast('请选择受预计毕业日期')
|
777
|
+ this.showToast('请选择受毕业时间')
|
772
|
return
|
778
|
return
|
773
|
}
|
779
|
}
|
774
|
newdata.education_start = this.data.studystartdate.datelong
|
780
|
newdata.education_start = this.data.studystartdate.datelong
|
|
@@ -810,10 +816,10 @@ Page({ |
|
@@ -810,10 +816,10 @@ Page({ |
810
|
this.showToast('请填写赡养人姓名')
|
816
|
this.showToast('请填写赡养人姓名')
|
811
|
return
|
817
|
return
|
812
|
} else if (this.data.oldercardtypeData.selected.length < 1) {
|
818
|
} else if (this.data.oldercardtypeData.selected.length < 1) {
|
813
|
- this.showToast('请选择赡养人证件类型')
|
819
|
+ this.showToast('请选择赡养人证照类型')
|
814
|
return
|
820
|
return
|
815
|
} else if (!formdata.older_idno || formdata.older_idno.length < 1) {
|
821
|
} else if (!formdata.older_idno || formdata.older_idno.length < 1) {
|
816
|
- this.showToast('请填写赡养人证件号')
|
822
|
+ this.showToast('请填写赡养人证照号')
|
817
|
return
|
823
|
return
|
818
|
}
|
824
|
}
|
819
|
if (this.data.olderbirthDate.selected.length < 1) {
|
825
|
if (this.data.olderbirthDate.selected.length < 1) {
|
|
@@ -824,6 +830,12 @@ Page({ |
|
@@ -824,6 +830,12 @@ Page({ |
824
|
this.showToast('请选择与纳税人关系')
|
830
|
this.showToast('请选择与纳税人关系')
|
825
|
return
|
831
|
return
|
826
|
}
|
832
|
}
|
|
|
833
|
+ if (!formdata.percent || formdata.percent.length < 1) {
|
|
|
834
|
+ this.showToast('请填写扣除分摊比例')
|
|
|
835
|
+ return
|
|
|
836
|
+ } else {
|
|
|
837
|
+ newdata.percentage = parseFloat(formdata.percent)
|
|
|
838
|
+ }
|
827
|
newdata.older_birthday = this.data.olderbirthDate.datelong
|
839
|
newdata.older_birthday = this.data.olderbirthDate.datelong
|
828
|
newdata.older_relative = this.data.older_relativeData.selected
|
840
|
newdata.older_relative = this.data.older_relativeData.selected
|
829
|
newdata.support_type = this.data.supporttypeData.selected
|
841
|
newdata.support_type = this.data.supporttypeData.selected
|
|
@@ -835,15 +847,15 @@ Page({ |
|
@@ -835,15 +847,15 @@ Page({ |
835
|
this.showToast('请填写姓名')
|
847
|
this.showToast('请填写姓名')
|
836
|
return
|
848
|
return
|
837
|
} else if (this.data.cardtypeData.selected.length < 1) {
|
849
|
} else if (this.data.cardtypeData.selected.length < 1) {
|
838
|
- this.showToast('请选择证件类型')
|
850
|
+ this.showToast('请选择证照类型')
|
839
|
return
|
851
|
return
|
840
|
} else if (!formdata.id_card_no || formdata.id_card_no.length < 1) {
|
852
|
} else if (!formdata.id_card_no || formdata.id_card_no.length < 1) {
|
841
|
- this.showToast('请填写证件号码')
|
853
|
+ this.showToast('请填写证照号码')
|
842
|
return
|
854
|
return
|
843
|
} else if (this.data.commonbirthDate.selected.length < 1) {
|
855
|
} else if (this.data.commonbirthDate.selected.length < 1) {
|
844
|
this.showToast('请选择病人出生日期')
|
856
|
this.showToast('请选择病人出生日期')
|
845
|
return
|
857
|
return
|
846
|
- }else if (this.data.taxperson_relativeData.selected.length < 1) {
|
858
|
+ } else if (this.data.taxperson_relativeData.selected.length < 1) {
|
847
|
this.showToast('请选择与纳税人关系')
|
859
|
this.showToast('请选择与纳税人关系')
|
848
|
return
|
860
|
return
|
849
|
} else if (!formdata.total_amount || formdata.total_amount < 0) {
|
861
|
} else if (!formdata.total_amount || formdata.total_amount < 0) {
|
|
@@ -862,24 +874,10 @@ Page({ |
|
@@ -862,24 +874,10 @@ Page({ |
862
|
newdata.patient_birthday = "中国"
|
874
|
newdata.patient_birthday = "中国"
|
863
|
break;
|
875
|
break;
|
864
|
case 'house_fund':
|
876
|
case 'house_fund':
|
865
|
- // subUrl = 'persontax/v1/medical-funds'
|
877
|
+ subUrl = 'persontax/v1/house-funds'
|
866
|
console.log('TITLE', this.data.title)
|
878
|
console.log('TITLE', this.data.title)
|
867
|
- if (!formdata.lover_name || formdata.lover_name.length < 1) {
|
|
|
868
|
- this.showToast('请填写配偶姓名')
|
|
|
869
|
- return
|
|
|
870
|
- } else if (!formdata.lover_idno || formdata.lover_idno.length < 1) {
|
|
|
871
|
- this.showToast('请填写配偶证件号码')
|
|
|
872
|
- return
|
|
|
873
|
- }
|
|
|
874
|
- if (this.data.lovercardtypeData.selected.length < 1) {
|
|
|
875
|
- this.showToast('请选择配偶证件类型')
|
|
|
876
|
- return
|
|
|
877
|
- }
|
|
|
878
|
- if (this.data.loverbirthDate.selected.length < 1) {
|
|
|
879
|
- this.showToast('请选择配偶出生日期')
|
|
|
880
|
- return
|
|
|
881
|
- }
|
|
|
882
|
- if (this.data.title == "添加住房贷款利息") {
|
879
|
+
|
|
|
880
|
+ if (this.data.house_type == "house_fund_loan") {
|
883
|
if (this.data.houseLocateInfo.address_value.length < 1) {
|
881
|
if (this.data.houseLocateInfo.address_value.length < 1) {
|
884
|
this.showToast('请选择住房地址')
|
882
|
this.showToast('请选择住房地址')
|
885
|
return
|
883
|
return
|
|
@@ -889,6 +887,12 @@ Page({ |
|
@@ -889,6 +887,12 @@ Page({ |
889
|
} else if (!formdata.identify_no || formdata.identify_no.length < 1) {
|
887
|
} else if (!formdata.identify_no || formdata.identify_no.length < 1) {
|
890
|
this.showToast('请填写证书号码')
|
888
|
this.showToast('请填写证书号码')
|
891
|
return
|
889
|
return
|
|
|
890
|
+ } else if (this.data.beforemarryData.selected.length < 1) {
|
|
|
891
|
+ this.showToast('请选择是否首套贷款')
|
|
|
892
|
+ return
|
|
|
893
|
+ } else if (this.data.isselfData.selected.length < 1) {
|
|
|
894
|
+ this.showToast('请选择是否本人借款')
|
|
|
895
|
+ return
|
892
|
} else if (this.data.loantypeData.selected.length < 1) {
|
896
|
} else if (this.data.loantypeData.selected.length < 1) {
|
893
|
this.showToast('请选择贷款类型')
|
897
|
this.showToast('请选择贷款类型')
|
894
|
return
|
898
|
return
|
|
@@ -903,23 +907,36 @@ Page({ |
|
@@ -903,23 +907,36 @@ Page({ |
903
|
return
|
907
|
return
|
904
|
}
|
908
|
}
|
905
|
newdata.house_location = this.data.houseLocateInfo.address_value[0] + this.data.houseLocateInfo.address_value[1] + this.data.houseLocateInfo.address_value[2]
|
909
|
newdata.house_location = this.data.houseLocateInfo.address_value[0] + this.data.houseLocateInfo.address_value[1] + this.data.houseLocateInfo.address_value[2]
|
|
|
910
|
+ newdata.loan_before_marry = this.data.beforemarryData.selected == "是" ? 'y' : 'n'
|
|
|
911
|
+ newdata.loan_by_self = this.data.isselfData.selected == "是" ? 'y' : 'n'
|
|
|
912
|
+ newdata.identify_type = this.data.identifytypeData.selected
|
|
|
913
|
+
|
906
|
newdata.identify_type = this.data.identifytypeData.selected
|
914
|
newdata.identify_type = this.data.identifytypeData.selected
|
907
|
newdata.loan_type = this.data.loantypeData.selected
|
915
|
newdata.loan_type = this.data.loantypeData.selected
|
908
|
newdata.payback_date = this.data.firstpaybackDate.selected
|
916
|
newdata.payback_date = this.data.firstpaybackDate.selected
|
909
|
newdata.loan_datelong = this.data.loandatelongData.selected
|
917
|
newdata.loan_datelong = this.data.loandatelongData.selected
|
910
|
- } else if (this.data.title == "添加住房租金") {
|
|
|
911
|
- if (this.data.houseLocateInfo.address_value.length < 1) {
|
|
|
912
|
- this.showToast('请选择住房地址')
|
918
|
+ } else if (this.data.house_type == "house_fund_rent") {
|
|
|
919
|
+ if (this.data.workingcityInfo.address_value.length < 1) {
|
|
|
920
|
+ this.showToast('请选择工作城市')
|
913
|
return
|
921
|
return
|
914
|
} else if (this.data.leasetypeData.selected.length < 1) {
|
922
|
} else if (this.data.leasetypeData.selected.length < 1) {
|
915
|
this.showToast('请选择出租方类型')
|
923
|
this.showToast('请选择出租方类型')
|
916
|
return
|
924
|
return
|
|
|
925
|
+ } else if (!formdata.lease_name || formdata.lease_name.length < 1) {
|
|
|
926
|
+ this.showToast('请填写出租方名称')
|
|
|
927
|
+ return
|
|
|
928
|
+ } else if (!formdata.lease_idno || formdata.lease_idno.length < 1) {
|
|
|
929
|
+ this.showToast('请填写纳税人识别号')
|
|
|
930
|
+ return
|
917
|
} else if (!formdata.identify_no || formdata.identify_no.length < 1) {
|
931
|
} else if (!formdata.identify_no || formdata.identify_no.length < 1) {
|
918
|
this.showToast('请填写出租方号码')
|
932
|
this.showToast('请填写出租方号码')
|
919
|
return
|
933
|
return
|
920
|
} else if (this.data.identifytypeData.selected.length < 1) {
|
934
|
} else if (this.data.identifytypeData.selected.length < 1) {
|
921
|
this.showToast('请选择证件类型')
|
935
|
this.showToast('请选择证件类型')
|
922
|
return
|
936
|
return
|
|
|
937
|
+ } else if (this.data.rentLocateInfo.address_value.length < 1) {
|
|
|
938
|
+ this.showToast('请选择房屋地址')
|
|
|
939
|
+ return
|
923
|
} else if (!formdata.identify_no || formdata.identify_no.length < 1) {
|
940
|
} else if (!formdata.identify_no || formdata.identify_no.length < 1) {
|
924
|
this.showToast('请填写证件号码')
|
941
|
this.showToast('请填写证件号码')
|
925
|
return
|
942
|
return
|
|
@@ -930,12 +947,25 @@ Page({ |
|
@@ -930,12 +947,25 @@ Page({ |
930
|
this.showToast('请选择日期')
|
947
|
this.showToast('请选择日期')
|
931
|
return
|
948
|
return
|
932
|
}
|
949
|
}
|
933
|
- newdata.house_location = this.data.houseLocateInfo.address_value[0] + this.data.houseLocateInfo.address_value[1] + this.data.houseLocateInfo.address_value[2]
|
950
|
+ newdata.house_address = this.data.rentLocateInfo.address_value[0] + this.data.rentLocateInfo.address_value[1] + this.data.rentLocateInfo.address_value[2]
|
|
|
951
|
+ newdata.work_city = this.data.workingcityInfo.address_value[0] + this.data.workingcityInfo.address_value[1] + this.data.workingcityInfo.address_value[2]
|
934
|
newdata.lease_type = this.data.leasetypeData.selected
|
952
|
newdata.lease_type = this.data.leasetypeData.selected
|
935
|
newdata.identify_type = this.data.identifytypeData.selected
|
953
|
newdata.identify_type = this.data.identifytypeData.selected
|
936
|
newdata.lease_startdate = this.data.leasestartDate.selected
|
954
|
newdata.lease_startdate = this.data.leasestartDate.selected
|
937
|
newdata.lease_enddate = this.data.leaseendDate.selected
|
955
|
newdata.lease_enddate = this.data.leaseendDate.selected
|
938
|
- Console.log('houseLocateInfo', this.data.houseLocateInfo)
|
956
|
+ console.log('houseLocateInfo', this.data.houseLocateInfo)
|
|
|
957
|
+ }
|
|
|
958
|
+ if (formdata.spouse_name || formdata.spouse_id_card_no || this.data.loverbirthDate.selected) {
|
|
|
959
|
+ if (!formdata.spouse_name || formdata.spouse_name.length < 1) {
|
|
|
960
|
+ this.showToast('请填写配偶姓名')
|
|
|
961
|
+ return
|
|
|
962
|
+ } else if (!formdata.spouse_id_card_no || formdata.spouse_id_card_no.length < 1) {
|
|
|
963
|
+ this.showToast('请填写配偶证照号码')
|
|
|
964
|
+ return
|
|
|
965
|
+ } else if (this.data.loverbirthDate.selected.length < 1) {
|
|
|
966
|
+ this.showToast('请选择配偶出生日期')
|
|
|
967
|
+ return
|
|
|
968
|
+ }
|
939
|
}
|
969
|
}
|
940
|
newdata.lover_cardtype = this.data.lovercardtypeData.selected
|
970
|
newdata.lover_cardtype = this.data.lovercardtypeData.selected
|
941
|
newdata.lover_birthdate = this.data.loverbirthDate.selected
|
971
|
newdata.lover_birthdate = this.data.loverbirthDate.selected
|
|
@@ -1079,11 +1109,11 @@ Page({ |
|
@@ -1079,11 +1109,11 @@ Page({ |
1079
|
// edudegreeData: edudegree_data
|
1109
|
// edudegreeData: edudegree_data
|
1080
|
// })
|
1110
|
// })
|
1081
|
// break;
|
1111
|
// break;
|
1082
|
- case 'edu_country':
|
|
|
1083
|
- var eduCountry_data = this.data.eduCountryData
|
1112
|
+ case 'school_country':
|
|
|
1113
|
+ var eduCountry_data = this.data.schoolCountryData
|
1084
|
eduCountry_data.selected = eduCountry_data.values[e.detail.value]
|
1114
|
eduCountry_data.selected = eduCountry_data.values[e.detail.value]
|
1085
|
this.setData({
|
1115
|
this.setData({
|
1086
|
- eduCountryData: eduCountry_data
|
1116
|
+ schoolCountryData: eduCountry_data
|
1087
|
})
|
1117
|
})
|
1088
|
break;
|
1118
|
break;
|
1089
|
case 'support_type':
|
1119
|
case 'support_type':
|
|
@@ -1168,6 +1198,21 @@ Page({ |
|
@@ -1168,6 +1198,21 @@ Page({ |
1168
|
identifytypeData: identifytype_Data
|
1198
|
identifytypeData: identifytype_Data
|
1169
|
})
|
1199
|
})
|
1170
|
break;
|
1200
|
break;
|
|
|
1201
|
+ case 'before_marry':
|
|
|
1202
|
+ var beforemarry_Data = this.data.beforemarryData
|
|
|
1203
|
+ beforemarry_Data.selected = beforemarry_Data.values[e.detail.value]
|
|
|
1204
|
+ this.setData({
|
|
|
1205
|
+ beforemarryData: beforemarry_Data
|
|
|
1206
|
+ })
|
|
|
1207
|
+ break;
|
|
|
1208
|
+ case 'is_self_loan':
|
|
|
1209
|
+ var isself_Data = this.data.isselfData
|
|
|
1210
|
+ isself_Data.selected = isself_Data.values[e.detail.value]
|
|
|
1211
|
+ this.setData({
|
|
|
1212
|
+ isselfData: isself_Data
|
|
|
1213
|
+ })
|
|
|
1214
|
+ break;
|
|
|
1215
|
+
|
1171
|
case 'loan_type':
|
1216
|
case 'loan_type':
|
1172
|
var loantype_Data = this.data.loantypeData
|
1217
|
var loantype_Data = this.data.loantypeData
|
1173
|
loantype_Data.selected = loantype_Data.values[e.detail.value]
|
1218
|
loantype_Data.selected = loantype_Data.values[e.detail.value]
|
|
@@ -1178,7 +1223,7 @@ Page({ |
|
@@ -1178,7 +1223,7 @@ Page({ |
1178
|
case 'payback_date':
|
1223
|
case 'payback_date':
|
1179
|
var firstpayback_Date = this.data.firstpaybackDate
|
1224
|
var firstpayback_Date = this.data.firstpaybackDate
|
1180
|
firstpayback_Date.selected = e.detail.value
|
1225
|
firstpayback_Date.selected = e.detail.value
|
1181
|
- console.log('reduce_date', Date.parse(new Date(e.detail.value)))
|
1226
|
+ console.log('payback_date', Date.parse(new Date(e.detail.value)))
|
1182
|
this.setData({
|
1227
|
this.setData({
|
1183
|
firstpaybackDate: firstpayback_Date
|
1228
|
firstpaybackDate: firstpayback_Date
|
1184
|
})
|
1229
|
})
|
|
@@ -1200,7 +1245,7 @@ Page({ |
|
@@ -1200,7 +1245,7 @@ Page({ |
1200
|
case 'lease_start_date':
|
1245
|
case 'lease_start_date':
|
1201
|
var leasestart_Date = this.data.leasestartDate
|
1246
|
var leasestart_Date = this.data.leasestartDate
|
1202
|
leasestart_Date.selected = e.detail.value
|
1247
|
leasestart_Date.selected = e.detail.value
|
1203
|
- console.log('reduce_date', Date.parse(new Date(e.detail.value)))
|
1248
|
+ console.log('lease_start_date', Date.parse(new Date(e.detail.value)))
|
1204
|
this.setData({
|
1249
|
this.setData({
|
1205
|
leasestartDate: leasestart_Date
|
1250
|
leasestartDate: leasestart_Date
|
1206
|
})
|
1251
|
})
|
|
@@ -1208,7 +1253,7 @@ Page({ |
|
@@ -1208,7 +1253,7 @@ Page({ |
1208
|
case 'lease_end_date':
|
1253
|
case 'lease_end_date':
|
1209
|
var leaseend_Date = this.data.leaseendDate
|
1254
|
var leaseend_Date = this.data.leaseendDate
|
1210
|
leaseend_Date.selected = e.detail.value
|
1255
|
leaseend_Date.selected = e.detail.value
|
1211
|
- console.log('reduce_date', Date.parse(new Date(e.detail.value)))
|
1256
|
+ console.log('lease_end_date', Date.parse(new Date(e.detail.value)))
|
1212
|
this.setData({
|
1257
|
this.setData({
|
1213
|
leaseendDate: leaseend_Date
|
1258
|
leaseendDate: leaseend_Date
|
1214
|
})
|
1259
|
})
|
|
@@ -1227,13 +1272,32 @@ Page({ |
|
@@ -1227,13 +1272,32 @@ Page({ |
1227
|
houseLocateInfo: house_address
|
1272
|
houseLocateInfo: house_address
|
1228
|
})
|
1273
|
})
|
1229
|
break;
|
1274
|
break;
|
1230
|
- case 'reduce_date':
|
|
|
1231
|
- var reducedate_data = this.data.reducedateData
|
|
|
1232
|
- reducedate_data.selected = e.detail.value
|
|
|
1233
|
- reducedate_data.datelong = Date.parse(new Date(e.detail.value)) / 1000,
|
|
|
1234
|
- console.log('reduce_date', Date.parse(new Date(e.detail.value)))
|
1275
|
+ case 'working_city':
|
|
|
1276
|
+ console.log('working_city', e)
|
|
|
1277
|
+ var work_address = this.data.workingcityInfo;
|
|
|
1278
|
+ work_address.address_value = e.detail.value
|
|
|
1279
|
+ if (e.detail.value[0] == e.detail.value[1]) {
|
|
|
1280
|
+ work_address.selected = e.detail.value[1] + e.detail.value[2]
|
|
|
1281
|
+ } else {
|
|
|
1282
|
+ work_address.selected = e.detail.value[0] + e.detail.value[1] + e.detail.value[2]
|
|
|
1283
|
+
|
|
|
1284
|
+ }
|
|
|
1285
|
+ this.setData({
|
|
|
1286
|
+ workingcityInfo: work_address
|
|
|
1287
|
+ })
|
|
|
1288
|
+ break;
|
|
|
1289
|
+ case 'rent_house_locate':
|
|
|
1290
|
+ console.log('rent_house_locate', e)
|
|
|
1291
|
+ var rent_address = this.data.rentLocateInfo;
|
|
|
1292
|
+ rent_address.address_value = e.detail.value
|
|
|
1293
|
+ if (e.detail.value[0] == e.detail.value[1]) {
|
|
|
1294
|
+ rent_address.selected = e.detail.value[1] + e.detail.value[2]
|
|
|
1295
|
+ } else {
|
|
|
1296
|
+ rent_address.selected = e.detail.value[0] + e.detail.value[1] + e.detail.value[2]
|
|
|
1297
|
+
|
|
|
1298
|
+ }
|
1235
|
this.setData({
|
1299
|
this.setData({
|
1236
|
- reducedateData: reducedate_data
|
1300
|
+ rentLocateInfo: rent_address
|
1237
|
})
|
1301
|
})
|
1238
|
break;
|
1302
|
break;
|
1239
|
}
|
1303
|
}
|