| | |
| | | // 获取用户级别保险 |
| | | crudUserInsurance.getTargetYearMonth({ userId: this.form.userId, targetYearMonth: this.form.salaryYearMonth }).then(res => { |
| | | // 公积金基数 |
| | | this.form.accumulationFund = Number(res.accumulationRadix.toFixed(2)) |
| | | this.form.accumulationFund = Number(res.accumulationFund.toFixed(2)) |
| | | // 公积金基数随机数 |
| | | this.accumulationFundRandom = Math.random() |
| | | // 公积金个人缴纳比例 |
| | | this.form.accumulationFundPersonal = Number(res.accumulationPersonalProportion.toFixed(2)) |
| | | this.form.accumulationFundPersonal = Number(res.accumulationFundPersonal.toFixed(2)) |
| | | // 公积金个人缴纳金额 |
| | | this.form.accumulationFundPersonalAmount = Number((res.accumulationFund * (res.accumulationFundPersonal / 100)).toFixed(2)) |
| | | console.log("公积金个人缴纳金额:" + this.form.accumulationFundPersonalAmount) |
| | | // 公积金个人缴纳金额随机数 |
| | | this.accumulationFundPersonalAmountRandom = Math.random() |
| | | // 公积金公司缴纳比例 |
| | | this.form.accumulationFundCompany = Number(res.accumulationCompanyProportion.toFixed(2)) |
| | | this.form.accumulationFundCompany = Number(res.accumulationFundCompany.toFixed(2)) |
| | | // 公积金公司缴纳金额 |
| | | this.form.accumulationFundCompanyAmount = Number((res.accumulationFund * (res.accumulationFundCompany / 100)).toFixed(2)) |
| | | console.log("公积金公司缴纳金额:" + this.form.accumulationFundCompanyAmount) |
| | | // 公积金公司缴纳金额随机数 |
| | | this.accumulationFundCompanyAmountRandom = Math.random() |
| | | |
| | | |
| | | // 养老险基数 |
| | | this.form.retirementInsurance = Number(res.pensionRadix.toFixed(2)) |
| | | this.form.retirementInsurance = Number(res.retirementInsurance.toFixed(2)) |
| | | // 养老险基数随机数 |
| | | this.retirementInsuranceRandom = Math.random() |
| | | // 养老险个人缴纳比例 |
| | | this.form.retirementInsurancePersonal = Number(res.pensionPersonalProportion.toFixed(2)) |
| | | this.form.retirementInsurancePersonal = Number(res.retirementInsurancePersonal.toFixed(2)) |
| | | // 养老险个人缴纳金额 |
| | | this.form.retirementInsurancePersonalAmount = Number((res.retirementInsurance * (res.retirementInsurancePersonal / 100)).toFixed(2)) |
| | | // 养老险个人缴纳金额随机数 |
| | | this.retirementInsurancePersonalAmountRandom = Math.random() |
| | | // 养老险公司缴纳比例 |
| | | this.form.retirementInsuranceCompany = Number(res.pensionCompanyProportion.toFixed(2)) |
| | | this.form.retirementInsuranceCompany = Number(res.retirementInsuranceCompany.toFixed(2)) |
| | | // 养老险公司缴纳金额 |
| | | this.form.retirementInsuranceCompanyAmount = Number((res.retirementInsurance * (res.retirementInsuranceCompany / 100)).toFixed(2)) |
| | | // 养老险公司缴纳金额随机数 |
| | | this.retirementInsuranceCompanyAmountRandom = Math.random() |
| | | |
| | | |
| | | // 医疗险基数 |
| | | this.form.medicalInsurance = Number(res.medicalRadix.toFixed(2)) |
| | | this.form.medicalInsurance = Number(res.medicalInsurance.toFixed(2)) |
| | | // 医疗险基数随机数 |
| | | this.medicalInsuranceRandom = Math.random() |
| | | // 医疗险个人缴纳比例 |
| | | this.form.medicalInsurancePersonal = Number(res.medicalPersonalProportion.toFixed(2)) |
| | | this.form.medicalInsurancePersonal = Number(res.medicalInsurancePersonal.toFixed(2)) |
| | | // 医疗险个人缴纳金额 |
| | | this.form.medicalInsurancePersonalAmount = Number((res.medicalInsurance * (res.medicalInsurancePersonal / 100)).toFixed(2)) |
| | | // 医疗险个人缴纳金额随机数 |
| | | this.medicalInsurancePersonalAmountRandom = Math.random() |
| | | // 医疗险公司缴纳比例 |
| | | this.form.medicalInsuranceCompany = Number(res.medicalCompanyProportion.toFixed(2)) |
| | | this.form.medicalInsuranceCompany = Number(res.medicalInsuranceCompany.toFixed(2)) |
| | | // 医疗险公司缴纳金额 |
| | | this.form.medicalInsuranceCompanyAmount = Number((res.medicalInsurance * (res.medicalInsuranceCompany / 100)).toFixed(2)) |
| | | // 医疗险公司缴纳金额随机数 |
| | | this.medicalInsuranceCompanyAmountRandom = Math.random() |
| | | |
| | | |
| | | // 失业险基数 |
| | | this.form.unemploymentInsurance = Number(res.unemploymentRadix.toFixed(2)) |
| | | this.form.unemploymentInsurance = Number(res.unemploymentInsurance.toFixed(2)) |
| | | // 失业险基数随机数 |
| | | this.unemploymentInsuranceRandom = Math.random() |
| | | // 失业险个人缴纳比例 |
| | | this.form.unemploymentInsurancePersonal = Number(res.unemploymentPersonalProportion.toFixed(2)) |
| | | this.form.unemploymentInsurancePersonal = Number(res.unemploymentInsurancePersonal.toFixed(2)) |
| | | // 失业险个人缴纳金额 |
| | | this.form.unemploymentInsurancePersonalAmount = Number((res.unemploymentInsurance * (res.unemploymentInsurancePersonal / 100)).toFixed(2)) |
| | | // 失业险个人缴纳金额随机数 |
| | | this.unemploymentInsurancePersonalAmountRandom = Math.random() |
| | | // 失业险公司缴纳比例 |
| | | this.form.unemploymentInsuranceCompany = Number(res.unemploymentCompanyProportion.toFixed(2)) |
| | | this.form.unemploymentInsuranceCompany = Number(res.unemploymentInsuranceCompany.toFixed(2)) |
| | | // 失业险公司缴纳金额 |
| | | this.form.unemploymentInsuranceCompanyAmount = Number((res.unemploymentInsurance * (res.unemploymentInsuranceCompany / 100)).toFixed(2)) |
| | | // 失业险公司缴纳金额随机数 |
| | | this.unemploymentInsuranceCompanyAmountRandom = Math.random() |
| | | |
| | | |
| | | // 生育险基数 |
| | | this.form.birthInsurance = Number(res.maternityRadix.toFixed(2)) |
| | | this.form.birthInsurance = Number(res.birthInsurance.toFixed(2)) |
| | | // 生育险基数随机数 |
| | | this.birthInsuranceRandom = Math.random() |
| | | // 生育险个人缴纳比例 |
| | | this.form.birthInsurancePersonal = Number(res.maternityPersonalProportion.toFixed(2)) |
| | | this.form.birthInsurancePersonal = Number(res.birthInsurancePersonal.toFixed(2)) |
| | | // 生育险个人缴纳金额 |
| | | this.form.birthInsurancePersonalAmount = Number((res.birthInsurance * (res.birthInsurancePersonal / 100)).toFixed(2)) |
| | | // 生育险个人缴纳金额随机数 |
| | | this.birthInsurancePersonalAmountRandom = Math.random() |
| | | // 生育险公司缴纳比例 |
| | | this.form.birthInsuranceCompany = Number(res.maternityCompanyProportion.toFixed(2)) |
| | | this.form.birthInsuranceCompany = Number(res.birthInsuranceCompany.toFixed(2)) |
| | | // 生育险公司缴纳金额 |
| | | this.form.birthInsuranceCompanyAmount = Number((res.birthInsurance * (res.birthInsuranceCompany / 100)).toFixed(2)) |
| | | // 生育险公司缴纳金额随机数 |
| | | this.birthInsuranceCompanyAmountRandom = Math.random() |
| | | |
| | | |
| | | // 工伤险基数 |
| | | this.form.employmentInsurance = Number(res.industrialInjuryRadix.toFixed(2)) |
| | | this.form.employmentInsurance = Number(res.employmentInsurance.toFixed(2)) |
| | | // 工伤险基数随机数 |
| | | this.employmentInsuranceRandom = Math.random() |
| | | // 工伤险个人缴纳比例 |
| | | this.form.employmentInsurancePersonal = Number(res.industrialInjuryPersonalProportion.toFixed(2)) |
| | | this.form.employmentInsurancePersonal = Number(res.employmentInsurancePersonal.toFixed(2)) |
| | | // 工伤险个人缴纳金额 |
| | | this.form.employmentInsurancePersonalAmount = Number((res.employmentInsurance * (res.employmentInsurancePersonal / 100)).toFixed(2)) |
| | | // 工伤险个人缴纳金额随机数 |
| | | this.employmentInsurancePersonalAmountRandom = Math.random() |
| | | // 工伤险公司缴纳比例 |
| | | this.form.employmentInsuranceCompany = Number(res.industrialInjuryCompanyProportion.toFixed(2)) |
| | | this.form.employmentInsuranceCompany = Number(res.employmentInsuranceCompany.toFixed(2)) |
| | | // 工伤险公司缴纳金额 |
| | | this.form.employmentInsuranceCompanyAmount = Number((res.employmentInsurance * (res.employmentInsuranceCompany / 100)).toFixed(2)) |
| | | // 工伤险公司缴纳金额随机数 |
| | | this.employmentInsuranceCompanyAmountRandom = Math.random() |
| | | |
| | | // 成功 |
| | | resolve() |
| | | }).catch(() => { |