作者 何书鹏
1 个管道 的构建 通过 耗费 0 秒

注释修改

... ... @@ -26,8 +26,6 @@ class AfterToBefore extends Api
*
* @ApiParams (name="salary_hand_average", type="inter", required=true, description="税后每月工资")
* @ApiParams (name="add_money", type="inter", required=false, description="每月专项附加金额")
* @ApiParams (name="social_base", type="inter", required=false, description="社保汇缴基数")
* @ApiParams (name="housing_fund_base", type="inter", required=false, description="公积金汇缴基数")
* @ApiParams (name="housing_fund_rate", type="inter", required=false, description="公积金汇缴比例")
*
* @ApiReturn({
... ...
... ... @@ -35,37 +35,37 @@ class BeforeToAfter extends Api
* @ApiReturn({
"code": 1,
"msg": "请求成功",
"time": "1601109651",
"time": "1601360343",
"data": {
"param": { //填过的参数
"salary": "9753.20", //税前每月工资
"month": "12", //工作月份
"annual_bonus": "", //年终奖
"add_money": "", //每月专项附加金额
"add_money": "1500", //每月专项附加金额
"social_base": "", //社保汇缴基数
"housing_fund_base": "", //公积金汇缴基数
"housing_fund_rate": "" //公积金汇缴比例
},
"plan_a": { //方案A
"annual_bonus_fee": 180, //年终奖应缴个税
"annual_bonus_fee": 0, //年终奖应缴个税
"new_person_fee": 556.7, //新税法下累计应缴个人所得税
"new_person_current_fee": 46.39, //新税法下本期应缴个人所得税
"old_person_current_fee": 354.28, //老税法下本期应缴个人所得税
"new_current_salary": 8485, //新税法下个人当月到手工资
"old_current_salary": 8177.11, //老税法下个人当月到手工资
"new_salary_average": 8485, //新税法下个人平均每月到手工资
"old_salary_average": 8177.11, //老税法下个人平均每月到手工资
"cost_new_a": 11911.24 //方案A平均每月用人成本
"new_current_salary": 8000, //新税法下个人当月到手工资
"old_current_salary": 7692.11, //老税法下个人当月到手工资
"new_salary_average": 8000, //新税法下个人平均每月到手工资
"old_salary_average": 7692.11, //老税法下个人平均每月到手工资
"cost_new_a": 11411.24 //方案A平均每月用人成本
},
"plan_b": { //方案B
"new_person_fee": 736.7, //新税法下工资与年终奖累计应缴个人所得税
"new_person_current_fee": 61.39, //新税法下本期应缴个人所得税
"old_person_current_fee": 454.28, //老税法下本期应缴个人所得税
"new_current_salary": 8485, //新税法下个人当月到手工资
"old_current_salary": 8092.11, //老税法下个人当月到手工资
"new_salary_average": 8485, //新税法下个人平均每月到手工资
"old_salary_average": 8092.11, //老税法下个人平均每月到手工资
"cost_new_b": 11911.24 //方案B平均每月用人成本
"new_person_fee": 556.7, //新税法下工资与年终奖累计应缴个人所得税
"new_person_current_fee": 46.39, //新税法下本期应缴个人所得税
"old_person_current_fee": 354.28, //老税法下本期应缴个人所得税
"new_current_salary": 8000, //新税法下个人当月到手工资
"old_current_salary": 7692.11, //老税法下个人当月到手工资
"new_salary_average": 8000, //新税法下个人平均每月到手工资
"old_salary_average": 7692.11, //老税法下个人平均每月到手工资
"cost_new_b": 11411.24 //方案B平均每月用人成本
},
"social_user": { //个人五险一金
"housing_fund": { //基本住房公积金
... ... @@ -88,7 +88,7 @@ class BeforeToAfter extends Api
"rate": "0",
"money": 0
},
"industrial": { //工保险金
"industrial": { //工保险金
"rate": "0",
"money": 0
}
... ... @@ -123,99 +123,155 @@ class BeforeToAfter extends Api
"social_company_money": 1658.04, //单位五险一金合计
"user_go": { //税前工资去向
"salary": 9753.2, //工资
"info": [{
"value": 682.72, //金额值
"zh": "个人基本住房公积金", //中文名称
"en": "Personal basic housing funds" //英文名称
"zh": [{ //中文
"value": 682.72, //金额
"name": "个人基本住房公积金" //名称
},
{
"value": 780.26,
"name": "个人养老保险金"
},
{
"value": 195.06,
"name": "个人医疗保险金"
},
{
"value": 48.77,
"name": "个人失业保险金"
},
{
"value": 46.39,
"name": "个人所得税"
},
{
"value": 8000,
"name": "个人税后月薪"
}
],
"en": [{ //英文
"value": 682.72,
"name": "Personal basic housing funds"
},
{
"value": 780.26,
"zh": "个人养老保险金",
"en": "Personal pension insurance"
"name": "Personal pension insurance"
},
{
"value": 195.06,
"zh": "个人医疗保险金",
"en": "Personal medical insurance"
"name": "Personal medical insurance"
},
{
"value": 48.77,
"zh": "个人失业保险金",
"en": "Personal unemployment insurance"
"name": "Personal unemployment insurance"
},
{
"value": 46.39,
"zh": "个人所得税",
"en": "Personal income tax"
"name": "Personal income tax"
},
{
"value": 8485,
"zh": "个人税后月薪",
"en": "After-tax monthly salary"
"value": 8000,
"name": "After-tax monthly salary"
}
]
},
"company_go": {
单位成本去向 "cost": 11911.24, //成本
"info": [{
"value": 682.72, //金额值
"zh": "企业基本住房公积金", //中文名称
"en": "Company basic housing funds" //英文名称
"company_go": { //单位成本去向
"cost": 11411.24, //成本
"zh": [{ //中文
"value": 682.72, //金额
"name": "企业基本住房公积金" //名称
},
{
"value": 0,
"zh": "企业养老保险金",
"en": "Company pension insurance"
"name": "企业养老保险金"
},
{
"value": 877.79,
"zh": "企业医疗保险金",
"en": "Company medical insurance"
"name": "企业医疗保险金"
},
{
"value": 0,
"zh": "企业失业保险金",
"en": "Company unemployment insurance"
"name": "企业失业保险金"
},
{
"value": 97.53,
"zh": "企业生育保险金",
"en": "Company maternity insurance"
"name": "企业生育保险金"
},
{
"value": 0,
"name": "企业工伤保险金"
},
{
"value": 682.72,
"name": "个人基本住房公积金"
},
{
"value": 780.26,
"name": "个人养老保险金"
},
{
"value": 195.06,
"name": "个人医疗保险金"
},
{
"value": 48.77,
"name": "个人失业保险金"
},
{
"value": 46.39,
"name": "个人所得税"
},
{
"value": 8000,
"name": "个人税后月薪"
}
],
"en": [{ //英文
"value": 682.72,
"name": "Company basic housing funds"
},
{
"value": 0,
"name": "Company pension insurance"
},
{
"value": 877.79,
"name": "Company medical insurance"
},
{
"value": 0,
"name": "Company unemployment insurance"
},
{
"value": 97.53,
"zh": "企业工伤保险金",
"en": "Company work injury insurance"
"name": "Company maternity insurance"
},
{
"value": 0,
"name": "Company work injury insurance"
},
{
"value": 682.72,
"zh": "个人基本住房公积金",
"en": "Personal basic housing funds"
"name": "Personal basic housing funds"
},
{
"value": 780.26,
"zh": "个人养老保险金",
"en": "Personal pension insurance"
"name": "Personal pension insurance"
},
{
"value": 195.06,
"zh": "个人医疗保险金",
"en": "Personal medical insurance"
"name": "Personal medical insurance"
},
{
"value": 48.77,
"zh": "个人失业保险金",
"en": "Personal unemployment insurance"
"name": "Personal unemployment insurance"
},
{
"value": 46.39,
"zh": "个人所得税",
"en": "Personal income tax"
"name": "Personal income tax"
},
{
"value": 8485,
"zh": "个人税后月薪",
"en": "After-tax monthly salary"
"value": 8000,
"name": "After-tax monthly salary"
}
]
}
... ...
... ... @@ -371,37 +371,37 @@
<pre id="sample_response1">{
"code": 1,
"msg": "请求成功",
"time": "1601109651",
"time": "1601360343",
"data": {
"param": { //填过的参数
"salary": "9753.20", //税前每月工资
"month": "12", //工作月份
"annual_bonus": "", //年终奖
"add_money": "", //每月专项附加金额
"add_money": "1500", //每月专项附加金额
"social_base": "", //社保汇缴基数
"housing_fund_base": "", //公积金汇缴基数
"housing_fund_rate": "" //公积金汇缴比例
},
"plan_a": { //方案A
"annual_bonus_fee": 180, //年终奖应缴个税
"annual_bonus_fee": 0, //年终奖应缴个税
"new_person_fee": 556.7, //新税法下累计应缴个人所得税
"new_person_current_fee": 46.39, //新税法下本期应缴个人所得税
"old_person_current_fee": 354.28, //老税法下本期应缴个人所得税
"new_current_salary": 8485, //新税法下个人当月到手工资
"old_current_salary": 8177.11, //老税法下个人当月到手工资
"new_salary_average": 8485, //新税法下个人平均每月到手工资
"old_salary_average": 8177.11, //老税法下个人平均每月到手工资
"cost_new_a": 11911.24 //方案A平均每月用人成本
"new_current_salary": 8000, //新税法下个人当月到手工资
"old_current_salary": 7692.11, //老税法下个人当月到手工资
"new_salary_average": 8000, //新税法下个人平均每月到手工资
"old_salary_average": 7692.11, //老税法下个人平均每月到手工资
"cost_new_a": 11411.24 //方案A平均每月用人成本
},
"plan_b": { //方案B
"new_person_fee": 736.7, //新税法下工资与年终奖累计应缴个人所得税
"new_person_current_fee": 61.39, //新税法下本期应缴个人所得税
"old_person_current_fee": 454.28, //老税法下本期应缴个人所得税
"new_current_salary": 8485, //新税法下个人当月到手工资
"old_current_salary": 8092.11, //老税法下个人当月到手工资
"new_salary_average": 8485, //新税法下个人平均每月到手工资
"old_salary_average": 8092.11, //老税法下个人平均每月到手工资
"cost_new_b": 11911.24 //方案B平均每月用人成本
"new_person_fee": 556.7, //新税法下工资与年终奖累计应缴个人所得税
"new_person_current_fee": 46.39, //新税法下本期应缴个人所得税
"old_person_current_fee": 354.28, //老税法下本期应缴个人所得税
"new_current_salary": 8000, //新税法下个人当月到手工资
"old_current_salary": 7692.11, //老税法下个人当月到手工资
"new_salary_average": 8000, //新税法下个人平均每月到手工资
"old_salary_average": 7692.11, //老税法下个人平均每月到手工资
"cost_new_b": 11411.24 //方案B平均每月用人成本
},
"social_user": { //个人五险一金
"housing_fund": { //基本住房公积金
... ... @@ -424,7 +424,7 @@
"rate": "0",
"money": 0
},
"industrial": { //工保险金
"industrial": { //工保险金
"rate": "0",
"money": 0
}
... ... @@ -459,99 +459,155 @@
"social_company_money": 1658.04, //单位五险一金合计
"user_go": { //税前工资去向
"salary": 9753.2, //工资
"info": [{
"value": 682.72, //金额值
"zh": "个人基本住房公积金", //中文名称
"en": "Personal basic housing funds" //英文名称
"zh": [{ //中文
"value": 682.72, //金额
"name": "个人基本住房公积金" //名称
},
{
"value": 780.26,
"zh": "个人养老保险金",
"en": "Personal pension insurance"
"name": "个人养老保险金"
},
{
"value": 195.06,
"zh": "个人医疗保险金",
"en": "Personal medical insurance"
"name": "个人医疗保险金"
},
{
"value": 48.77,
"zh": "个人失业保险金",
"en": "Personal unemployment insurance"
"name": "个人失业保险金"
},
{
"value": 46.39,
"zh": "个人所得税",
"en": "Personal income tax"
"name": "个人所得税"
},
{
"value": 8485,
"zh": "个人税后月薪",
"en": "After-tax monthly salary"
"value": 8000,
"name": "个人税后月薪"
}
],
"en": [{ //英文
"value": 682.72,
"name": "Personal basic housing funds"
},
{
"value": 780.26,
"name": "Personal pension insurance"
},
{
"value": 195.06,
"name": "Personal medical insurance"
},
{
"value": 48.77,
"name": "Personal unemployment insurance"
},
{
"value": 46.39,
"name": "Personal income tax"
},
{
"value": 8000,
"name": "After-tax monthly salary"
}
]
},
"company_go": {
单位成本去向 "cost": 11911.24, //成本
"info": [{
"value": 682.72, //金额值
"zh": "企业基本住房公积金", //中文名称
"en": "Company basic housing funds" //英文名称
"company_go": { //单位成本去向
"cost": 11411.24, //成本
"zh": [{ //中文
"value": 682.72, //金额
"name": "企业基本住房公积金" //名称
},
{
"value": 0,
"zh": "企业养老保险金",
"en": "Company pension insurance"
"name": "企业养老保险金"
},
{
"value": 877.79,
"zh": "企业医疗保险金",
"en": "Company medical insurance"
"name": "企业医疗保险金"
},
{
"value": 0,
"zh": "企业失业保险金",
"en": "Company unemployment insurance"
"name": "企业失业保险金"
},
{
"value": 97.53,
"zh": "企业生育保险金",
"en": "Company maternity insurance"
"name": "企业生育保险金"
},
{
"value": 0,
"name": "企业工伤保险金"
},
{
"value": 682.72,
"name": "个人基本住房公积金"
},
{
"value": 780.26,
"name": "个人养老保险金"
},
{
"value": 195.06,
"name": "个人医疗保险金"
},
{
"value": 48.77,
"name": "个人失业保险金"
},
{
"value": 46.39,
"name": "个人所得税"
},
{
"value": 8000,
"name": "个人税后月薪"
}
],
"en": [{ //英文
"value": 682.72,
"name": "Company basic housing funds"
},
{
"value": 0,
"name": "Company pension insurance"
},
{
"value": 877.79,
"name": "Company medical insurance"
},
{
"value": 0,
"name": "Company unemployment insurance"
},
{
"value": 97.53,
"zh": "企业工伤保险金",
"en": "Company work injury insurance"
"name": "Company maternity insurance"
},
{
"value": 0,
"name": "Company work injury insurance"
},
{
"value": 682.72,
"zh": "个人基本住房公积金",
"en": "Personal basic housing funds"
"name": "Personal basic housing funds"
},
{
"value": 780.26,
"zh": "个人养老保险金",
"en": "Personal pension insurance"
"name": "Personal pension insurance"
},
{
"value": 195.06,
"zh": "个人医疗保险金",
"en": "Personal medical insurance"
"name": "Personal medical insurance"
},
{
"value": 48.77,
"zh": "个人失业保险金",
"en": "Personal unemployment insurance"
"name": "Personal unemployment insurance"
},
{
"value": 46.39,
"zh": "个人所得税",
"en": "Personal income tax"
"name": "Personal income tax"
},
{
"value": 8485,
"zh": "个人税后月薪",
"en": "After-tax monthly salary"
"value": 8000,
"name": "After-tax monthly salary"
}
]
}
... ... @@ -726,18 +782,6 @@
<td>每月专项附加金额</td>
</tr>
<tr>
<td>social_base</td>
<td>inter</td>
<td></td>
<td>社保汇缴基数</td>
</tr>
<tr>
<td>housing_fund_base</td>
<td>inter</td>
<td></td>
<td>公积金汇缴基数</td>
</tr>
<tr>
<td>housing_fund_rate</td>
<td>inter</td>
<td></td>
... ... @@ -770,14 +814,6 @@
<input type="inter" class="form-control input-sm" id="add_money" placeholder="每月专项附加金额" name="add_money">
</div>
<div class="form-group">
<label class="control-label" for="social_base">social_base</label>
<input type="inter" class="form-control input-sm" id="social_base" placeholder="社保汇缴基数" name="social_base">
</div>
<div class="form-group">
<label class="control-label" for="housing_fund_base">housing_fund_base</label>
<input type="inter" class="form-control input-sm" id="housing_fund_base" placeholder="公积金汇缴基数" name="housing_fund_base">
</div>
<div class="form-group">
<label class="control-label" for="housing_fund_rate">housing_fund_rate</label>
<input type="inter" class="form-control input-sm" id="housing_fund_rate" placeholder="公积金汇缴比例" name="housing_fund_rate">
</div>
... ... @@ -815,40 +851,20 @@
<pre id="sample_response0">{
"code": 1,
"msg": "请求成功",
"time": "1601109651",
"time": "1601358868",
"data": {
"param": { //填过的参数
"salary_hand_average": "9720", //税后每月工资
"add_money": "1500", //每月专项附加金额
"social_base": "", //社保汇缴基数
"housing_fund_base": "", //公积金汇缴基数
"housing_fund_rate": "" //公积金汇缴比例
},
"plan_a": { //方案A
"annual_bonus_fee": 180, //年终奖应缴个税
"new_person_fee": 556.7, //新税法下累计应缴个人所得税
"new_person_current_fee": 46.39, //新税法下本期应缴个人所得税
"old_person_current_fee": 354.28, //老税法下本期应缴个人所得税
"new_current_salary": 8485, //新税法下个人当月到手工资
"old_current_salary": 8177.11, //老税法下个人当月到手工资
"new_salary_average": 8485, //新税法下个人平均每月到手工资
"old_salary_average": 8177.11, //老税法下个人平均每月到手工资
"cost_new_a": 11911.24 //方案A平均每月用人成本
"param": { //已填的选项
"salary_hand_average": "8000",
"add_money": "1500",
"social_base": "",
"housing_fund_base": "",
"housing_fund_rate": ""
},
"plan_b": { //方案B
"new_person_fee": 736.7, //新税法下工资与年终奖累计应缴个人所得税
"new_person_current_fee": 61.39, //新税法下本期应缴个人所得税
"old_person_current_fee": 454.28, //老税法下本期应缴个人所得税
"new_current_salary": 8485, //新税法下个人当月到手工资
"old_current_salary": 8092.11, //老税法下个人当月到手工资
"new_salary_average": 8485, //新税法下个人平均每月到手工资
"old_salary_average": 8092.11, //老税法下个人平均每月到手工资
"cost_new_b": 11911.24 //方案B平均每月用人成本
},
"social_user": { //个人五险一金
"salary_average": 9753.2, //税前平均每月工资
"social_user": { //五险一金-个人
"housing_fund": { //基本住房公积金
"rate": "7", //比率(%)
"money": 682.72 //缴纳金额
"rate": "7", //比率
"money": 682.72 //金额
},
"endowment": { //养老保险金
"rate": "8",
... ... @@ -871,11 +887,11 @@
"money": 0
}
},
"social_user_money": 1706.81, //个人五险一金合计
"social_company": { //单位五险一金
"social_user_money": 1706.81, //五险一金-个人合计
"social_company": { //五险一金-单位
"housing_fund": { //基本住房公积金
"rate": "7", //比率(%)
"money": 682.72 //缴纳金额
"rate": "7", //比率
"money": 682.72 //金额
},
"endowment": { //养老保险金
"rate": "0",
... ... @@ -898,102 +914,160 @@
"money": 0
}
},
"social_company_money": 1658.04, //单位五险一金合计
"social_company_money": 1658.04, //五险一金-单位合计
"person_fee_average": 46.39, //平均月度个人所得税
"company_cost": 11411.24, //公司平均每月用人成本
"user_go": { //税前工资去向
"salary": 9753.2, //工资
"info": [{
"value": 682.72, //金额值
"zh": "个人基本住房公积金", //中文名称
"en": "Personal basic housing funds" //英文名称
"salary": 9753.2, //税前工资
"zh": [{ //中文
"value": 682.72, //金额
"name": "个人基本住房公积金" //名称
},
{
"value": 780.26,
"name": "个人养老保险金"
},
{
"value": 195.06,
"name": "个人医疗保险金"
},
{
"value": 48.77,
"name": "个人失业保险金"
},
{
"value": 46.39,
"name": "个人所得税"
},
{
"value": "8000",
"name": "个人税后月薪"
}
],
"en": [{ //英文
"value": 682.72,
"name": "Personal basic housing funds"
},
{
"value": 780.26,
"zh": "个人养老保险金",
"en": "Personal pension insurance"
"name": "Personal pension insurance"
},
{
"value": 195.06,
"zh": "个人医疗保险金",
"en": "Personal medical insurance"
"name": "Personal medical insurance"
},
{
"value": 48.77,
"zh": "个人失业保险金",
"en": "Personal unemployment insurance"
"name": "Personal unemployment insurance"
},
{
"value": 46.39,
"zh": "个人所得税",
"en": "Personal income tax"
"name": "Personal income tax"
},
{
"value": 8485,
"zh": "个人税后月薪",
"en": "After-tax monthly salary"
"value": "8000",
"name": "After-tax monthly salary"
}
]
},
"company_go": {
单位成本去向 "cost": 11911.24, //成本
"info": [{
"value": 682.72, //金额值
"zh": "企业基本住房公积金", //中文名称
"en": "Company basic housing funds" //英文名称
"company_go": { //单位成本去向
"cost": 11411.24, //成本
"zh": [{ //中文
"value": 682.72, //金额
"name": "企业基本住房公积金" //名称
},
{
"value": 0,
"zh": "企业养老保险金",
"en": "Company pension insurance"
"name": "企业养老保险金"
},
{
"value": 877.79,
"zh": "企业医疗保险金",
"en": "Company medical insurance"
"name": "企业医疗保险金"
},
{
"value": 0,
"zh": "企业失业保险金",
"en": "Company unemployment insurance"
"name": "企业失业保险金"
},
{
"value": 97.53,
"zh": "企业生育保险金",
"en": "Company maternity insurance"
"name": "企业生育保险金"
},
{
"value": 0,
"name": "企业工伤保险金"
},
{
"value": 682.72,
"name": "个人基本住房公积金"
},
{
"value": 780.26,
"name": "个人养老保险金"
},
{
"value": 195.06,
"name": "个人医疗保险金"
},
{
"value": 48.77,
"name": "个人失业保险金"
},
{
"value": 46.39,
"name": "个人所得税"
},
{
"value": "8000",
"name": "个人税后月薪"
}
],
"en": [{ //英文
"value": 682.72,
"name": "Company basic housing funds"
},
{
"value": 0,
"name": "Company pension insurance"
},
{
"value": 877.79,
"name": "Company medical insurance"
},
{
"value": 0,
"name": "Company unemployment insurance"
},
{
"value": 97.53,
"zh": "企业工伤保险金",
"en": "Company work injury insurance"
"name": "Company maternity insurance"
},
{
"value": 0,
"name": "Company work injury insurance"
},
{
"value": 682.72,
"zh": "个人基本住房公积金",
"en": "Personal basic housing funds"
"name": "Personal basic housing funds"
},
{
"value": 780.26,
"zh": "个人养老保险金",
"en": "Personal pension insurance"
"name": "Personal pension insurance"
},
{
"value": 195.06,
"zh": "个人医疗保险金",
"en": "Personal medical insurance"
"name": "Personal medical insurance"
},
{
"value": 48.77,
"zh": "个人失业保险金",
"en": "Personal unemployment insurance"
"name": "Personal unemployment insurance"
},
{
"value": 46.39,
"zh": "个人所得税",
"en": "Personal income tax"
"name": "Personal income tax"
},
{
"value": 8485,
"zh": "个人税后月薪",
"en": "After-tax monthly salary"
"value": "8000",
"name": "After-tax monthly salary"
}
]
}
... ... @@ -4671,7 +4745,7 @@
<div class="row mt0 footer">
<div class="col-md-6" align="left">
Generated on 2020-09-28 16:42:34 </div>
Generated on 2020-09-29 14:46:54 </div>
<div class="col-md-6" align="right">
<a href="./" target="_blank">工资计算器</a>
</div>
... ...