...
|
...
|
@@ -183,6 +183,16 @@ Page({ |
183
|
183
|
placeholder: '请选择赡养类型',
|
184
|
184
|
onChange: 'onPickerSelect'
|
185
|
185
|
},
|
|
186
|
+ shareMethodData: {
|
|
187
|
+ label: '分摊方式',
|
|
188
|
+ isrequre: true,
|
|
189
|
+ bindtype: 'share_method',
|
|
190
|
+ selected: '',
|
|
191
|
+ isblack: 'true',
|
|
192
|
+ values: ["赡养人平均分摊", "赡养人约定分摊", "被赡养人指定分摊"],
|
|
193
|
+ placeholder: '请选择分摊方式',
|
|
194
|
+ onChange: 'onPickerSelect'
|
|
195
|
+ },
|
186
|
196
|
oldercardtypeData: {
|
187
|
197
|
label: '被赡养人证照类型',
|
188
|
198
|
isrequre: true,
|
...
|
...
|
@@ -518,7 +528,7 @@ Page({ |
518
|
528
|
title: title,
|
519
|
529
|
})
|
520
|
530
|
this.initOSS()
|
521
|
|
- if (options.datas && options.datas.length>0) {
|
|
531
|
+ if (options.datas && options.datas.length > 0 && options.datas !="undefined") {
|
522
|
532
|
this.handleTransData(JSON.parse(options.datas))
|
523
|
533
|
}
|
524
|
534
|
},
|
...
|
...
|
@@ -1066,7 +1076,15 @@ Page({ |
1066
|
1076
|
if (this.data.supporttypeData.selected.length < 1) {
|
1067
|
1077
|
this.showToast('请选择赡养类型')
|
1068
|
1078
|
return
|
1069
|
|
- } else if (!formdata.supported_name || formdata.supported_name.length < 1) {
|
|
1079
|
+ }
|
|
1080
|
+ if (!this.data.shareMethodData.hidden) {
|
|
1081
|
+ if (this.data.shareMethodData.selected.length < 1){
|
|
1082
|
+ this.showToast('请选择分摊方式')
|
|
1083
|
+ return
|
|
1084
|
+ }
|
|
1085
|
+ newdata.share_method = this.data.shareMethodData.selected
|
|
1086
|
+ }
|
|
1087
|
+ if (!formdata.supported_name || formdata.supported_name.length < 1) {
|
1070
|
1088
|
this.showToast('请填写赡养人姓名')
|
1071
|
1089
|
return
|
1072
|
1090
|
} else if (this.data.oldercardtypeData.selected.length < 1) {
|
...
|
...
|
@@ -1084,16 +1102,17 @@ Page({ |
1084
|
1102
|
this.showToast('请选择与纳税人关系')
|
1085
|
1103
|
return
|
1086
|
1104
|
}
|
1087
|
|
- if (!formdata.percentage || formdata.percentage.length < 1 || formdata.percentage > 100) {
|
1088
|
|
- this.showToast('请填写合理分摊比例')
|
1089
|
|
- return
|
1090
|
|
- } else {
|
1091
|
|
- newdata.percentage = parseFloat(formdata.percentage)
|
1092
|
|
- }
|
|
1105
|
+ // if (!formdata.percentage || formdata.percentage.length < 1 || formdata.percentage > 100) {
|
|
1106
|
+ // this.showToast('请填写合理分摊比例')
|
|
1107
|
+ // return
|
|
1108
|
+ // } else {
|
|
1109
|
+ // newdata.percentage = parseFloat(formdata.percentage)
|
|
1110
|
+ // }
|
1093
|
1111
|
newdata.birthday = this.data.olderbirthDate.datelong
|
1094
|
1112
|
newdata.relationship = this.data.older_relativeData.selected
|
1095
|
|
- newdata.support_type = this.data.supporttypeData.selected
|
1096
|
|
- newdata.id_card_type = this.data.oldercardtypeData.selected
|
|
1113
|
+ newdata.support_type = this.data.supporttypeData.selected =='独生子女'?'D':'S'
|
|
1114
|
+ newdata.id_card_type = '1' //this.data.oldercardtypeData.selected
|
|
1115
|
+ newdata.nation = "中国"
|
1097
|
1116
|
break;
|
1098
|
1117
|
case 'medical_fund':
|
1099
|
1118
|
subUrl = 'persontax/v1/medical-funds'
|
...
|
...
|
@@ -1229,7 +1248,7 @@ Page({ |
1229
|
1248
|
var request_rent_address = this.getRentAddressRequest()
|
1230
|
1249
|
newdata.house_address = request_rent_address
|
1231
|
1250
|
console.log('request_working_address', request_working_address)
|
1232
|
|
-
|
|
1251
|
+ newdata.nation = "中国"
|
1233
|
1252
|
}
|
1234
|
1253
|
if (formdata.spouse_name || formdata.spouse_id_card_no || this.data.loverbirthDate.selected) {
|
1235
|
1254
|
if (!formdata.spouse_name || formdata.spouse_name.length < 1) {
|
...
|
...
|
@@ -1467,9 +1486,19 @@ Page({ |
1467
|
1486
|
case 'support_type':
|
1468
|
1487
|
var support_typeData = this.data.supporttypeData
|
1469
|
1488
|
support_typeData.selected = support_typeData.values[e.detail.value]
|
|
1489
|
+ var share_methodData = this.data.shareMethodData
|
|
1490
|
+ share_methodData.hidden = e.detail.value == 0
|
1470
|
1491
|
this.setData({
|
1471
|
1492
|
oldersupport_lable: e.detail.value == 0 ? 'single' : 'together',
|
1472
|
|
- supporttypeData: support_typeData
|
|
1493
|
+ supporttypeData: support_typeData,
|
|
1494
|
+ shareMethodData: share_methodData
|
|
1495
|
+ })
|
|
1496
|
+ break;
|
|
1497
|
+ case 'share_method':
|
|
1498
|
+ var share_methodData = this.data.shareMethodData
|
|
1499
|
+ share_methodData.selected = share_methodData.values[e.detail.value]
|
|
1500
|
+ this.setData({
|
|
1501
|
+ shareMethodData: share_methodData
|
1473
|
1502
|
})
|
1474
|
1503
|
break;
|
1475
|
1504
|
case 'oldercardtype':
|
...
|
...
|
|