会计云税务管理个人所得税其他附商业健康保险附子操作指南
会计云税务管理个人所得税其他附项商业健康保险附子操作指南
添加操作
handleAddAcTaxPiIncomeReportingMedicalInsurance() {
let obj = {};
obj.identificationCode = '';
obj.policyEffectiveDate = '';
obj.annualPremium = '';
obj.monthlyPremium = '';
obj.deductible = '';
this.acTaxPiIncomeReportingMedicalInsuranceList.push(obj);
},
删除操作
handleDeleteAcTaxPiIncomeReportingMedicalInsurance() {
if (this.checkedAcTaxPiIncomeReportingMedicalInsurance.length == 0) {
this.$alert(
'请先选择要删除的会计云-税务管理-个人所得税-其他附-商业健康保险附-子数据',
'提示',
{ confirmButtonText: '确定' }
);
} else {
this.acTaxPiIncomeReportingMedicalInsuranceList.splice(
this.checkedAcTaxPiIncomeReportingMedicalInsurance[0].index - 1,
1
);
}
},
handleDeleteAcTaxPiIncomeReportingMedicalInsurance() {
if(this.checkedAcTaxPiIncomeReportingMedicalInsurance.length != 1){
this.checkedAcTaxPiIncomeReportingMedicalInsurance.splice(this.checkedAcTaxPiIncomeReportingMedicalInsurance.indexOf(row),1)
this.countNum()
}
},
数量统计
countNum(){
this.limit = 0
this.checkedAcTaxPiIncomeReportingMedicalInsuranceforEach((item,index)=>{
if(!!item.donateAmount && !!item.deductionRatio){
if(item.deductionRatio == 100){
this.limit = this.BigNumber(item.donateAmount).times(item.deductionRatio).div(100).plus(this.limit).toNumber()
}
if(item.deductionRatio == 30 && item.donateAmount > this.BigNumber(this.data.taxableIncome).times(0.3).toNumber()){
console.log(this.BigNumber(this.data.taxableIncome).times(0.3).toNumber(),this.data.taxableIncome);
this.limit = this.BigNumber(this.limit).plus(this.BigNumber(this.data.taxableIncome).times(0.3)).toNumber()
}else if(item.deductionRatio == 30 && item.donateAmount <= this.BigNumber(this.data.taxableIncome).times(0.3).toNumber()){
this.limit = this.BigNumber(this.limit).plus(item.donateAmount).toNumber()
}
}
})
},
注意:
- 上述代码示例仅供参考,实际代码可能需要根据具体情况进行调整。
- 为了提高代码可读性和可维护性,建议使用清晰的变量名和注释。
- 在使用第三方库时,请确保其版本与您的项目兼容。
原文地址: https://www.cveoy.top/t/topic/pgzG 著作权归作者所有。请勿转载和采集!