Commit 6519034e by lizhilin

更新

parent 9dd72064
......@@ -240,22 +240,24 @@ protected function form()
Admin::script(
<<<JS
$(function () {
//社保
$("input[name='social_company_fee']").on('blur', function() {
var person_fee = $("input[name='social_person_fee']").val().length>0?$("input[name='social_person_fee']").val():0;
var company_fee = $("input[name='social_company_fee']").val().length>0?$("input[name='social_company_fee']").val():0;
var total = parseFloat(person_fee) + parseFloat(company_fee);
$("input[name='social']").val(total);
$("input[name='social_person_fee'],input[name='social_company_fee']").on('blur', function() {
var social_person_fee = $("input[name='social_person_fee']").val().length>0?$("input[name='social_person_fee']").val():0;
var social_company_fee = $("input[name='social_company_fee']").val().length>0?$("input[name='social_company_fee']").val():0;
var social_total = parseFloat(social_person_fee) + parseFloat(social_company_fee);
$("input[name='social']").val(social_total);
});
//公积金
$("input[name='accumulation_fund_company_fee']").on('blur', function() {
$("input[name='accumulation_fund_person_fee'],input[name='accumulation_fund_company_fee']").on('blur', function() {
var person_fee = $("input[name='accumulation_fund_person_fee']").val().length>0?$("input[name='accumulation_fund_person_fee']").val():0;
var company_fee = $("input[name='accumulation_fund_company_fee']").val().length>0?$("input[name='accumulation_fund_company_fee']").val():0;
var accumulation_fund = parseFloat(person_fee) + parseFloat(company_fee);
$("input[name='accumulation_fund']").val(accumulation_fund);
});
//无票成本
$("input[name='office_rental_fee']").on('blur', function() {
$("input[name='basic_salary'],input[name='special_additional'],input[name='social_company_fee'],input[name='accumulation_fund_company_fee'],input[name='assistant_fee'],input[name='office_rental_fee']").on('blur', function() {
//基本工资
var salary = $("input[name='basic_salary']").val().length>0?$("input[name='basic_salary']").val():0;
//专项附加
......
......@@ -169,22 +169,24 @@ protected function form()
Admin::script(
<<<JS
$(function () {
//社保
$("input[name='social_company_fee']").on('blur', function() {
var person_fee = $("input[name='social_person_fee']").val().length>0?$("input[name='social_person_fee']").val():0;
var company_fee = $("input[name='social_company_fee']").val().length>0?$("input[name='social_company_fee']").val():0;
var total = parseFloat(person_fee) + parseFloat(company_fee);
$("input[name='social']").val(total);
$("input[name='social_person_fee'],input[name='social_company_fee']").on('blur', function() {
var social_person_fee = $("input[name='social_person_fee']").val().length>0?$("input[name='social_person_fee']").val():0;
var social_company_fee = $("input[name='social_company_fee']").val().length>0?$("input[name='social_company_fee']").val():0;
var social_total = parseFloat(social_person_fee) + parseFloat(social_company_fee);
$("input[name='social']").val(social_total);
});
//公积金
$("input[name='accumulation_fund_company_fee']").on('blur', function() {
var fund_person_fee = $("input[name='accumulation_fund_person_fee']").val().length>0?$("input[name='accumulation_fund_person_fee']").val():0;
var fund_company_fee = $("input[name='accumulation_fund_company_fee']").val().length>0?$("input[name='accumulation_fund_company_fee']").val():0;
var accumulation_fund = parseFloat(fund_person_fee) + parseFloat(fund_company_fee);
$("input[name='accumulation_fund_person_fee'],input[name='accumulation_fund_company_fee']").on('blur', function() {
var person_fee = $("input[name='accumulation_fund_person_fee']").val().length>0?$("input[name='accumulation_fund_person_fee']").val():0;
var company_fee = $("input[name='accumulation_fund_company_fee']").val().length>0?$("input[name='accumulation_fund_company_fee']").val():0;
var accumulation_fund = parseFloat(person_fee) + parseFloat(company_fee);
$("input[name='accumulation_fund']").val(accumulation_fund);
});
//无票成本
$("input[name='office_rental_fee']").on('blur', function() {
$("input[name='basic_salary'],input[name='special_additional'],input[name='social_company_fee'],input[name='accumulation_fund_company_fee'],input[name='assistant_fee'],input[name='office_rental_fee']").on('blur', function() {
//基本工资
var salary = $("input[name='basic_salary']").val().length>0?$("input[name='basic_salary']").val():0;
//专项附加
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment