正在显示
1 个修改的文件
包含
16 行增加
和
2 行删除
| @@ -21,6 +21,7 @@ const Deduce_amounts_month = { | @@ -21,6 +21,7 @@ const Deduce_amounts_month = { | ||
| 21 | const Deduce_amounts_year = { | 21 | const Deduce_amounts_year = { |
| 22 | 'children_education': 12000, | 22 | 'children_education': 12000, |
| 23 | 'continuing_education': 4800, | 23 | 'continuing_education': 4800, |
| 24 | + 'continuing_education_non': 3600, | ||
| 24 | 'support_duty': 24000, | 25 | 'support_duty': 24000, |
| 25 | 'medical_fund': 0, | 26 | 'medical_fund': 0, |
| 26 | 'house_fund': 0 | 27 | 'house_fund': 0 |
| @@ -1465,7 +1466,7 @@ Page({ | @@ -1465,7 +1466,7 @@ Page({ | ||
| 1465 | if (e.detail.value == '0') { | 1466 | if (e.detail.value == '0') { |
| 1466 | deduction_amount = Deduce_amounts_month[this.data.cur_index] | 1467 | deduction_amount = Deduce_amounts_month[this.data.cur_index] |
| 1467 | } else { | 1468 | } else { |
| 1468 | - deduction_amount = Deduce_amounts_year[this.data.cur_indexfan] | 1469 | + deduction_amount = Deduce_amounts_year[this.data.cur_index] |
| 1469 | } | 1470 | } |
| 1470 | reduce_typeData.selected = reduce_typeData.values[e.detail.value] | 1471 | reduce_typeData.selected = reduce_typeData.values[e.detail.value] |
| 1471 | this.setData({ | 1472 | this.setData({ |
| @@ -1476,9 +1477,22 @@ Page({ | @@ -1476,9 +1477,22 @@ Page({ | ||
| 1476 | case 'edu_type': | 1477 | case 'edu_type': |
| 1477 | var edutypee_data = this.data.edutypeData | 1478 | var edutypee_data = this.data.edutypeData |
| 1478 | edutypee_data.selected = edutypee_data.values[e.detail.value] | 1479 | edutypee_data.selected = edutypee_data.values[e.detail.value] |
| 1480 | + var reducetypeData = this.data.reducetypeData | ||
| 1481 | + var deduction_amount | ||
| 1482 | + if (e.detail.value == '1') {//非学历教育 | ||
| 1483 | + reducetypeData.selected = '年度' | ||
| 1484 | + reducetypeData.disabled = true | ||
| 1485 | + deduction_amount = Deduce_amounts_year['continuing_education_non'] | ||
| 1486 | + }else { | ||
| 1487 | + reducetypeData.disabled = false | ||
| 1488 | + reducetypeData.selected = '月度' | ||
| 1489 | + deduction_amount = Deduce_amounts_month['continuing_education'] | ||
| 1490 | + } | ||
| 1479 | this.setData({ | 1491 | this.setData({ |
| 1480 | edu_lable: e.detail.value == 0 ? 'school' : 'tech', | 1492 | edu_lable: e.detail.value == 0 ? 'school' : 'tech', |
| 1481 | - edutypeData: edutypee_data | 1493 | + edutypeData: edutypee_data, |
| 1494 | + reducetypeData: reducetypeData, | ||
| 1495 | + deduction_amount: deduction_amount | ||
| 1482 | }) | 1496 | }) |
| 1483 | break; | 1497 | break; |
| 1484 | case 'edu_style': | 1498 | case 'edu_style': |
请
注册
或
登录
后发表评论