Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
L
lvsuo-pc
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lizhilin
lvsuo-pc
Commits
6519034e
Commit
6519034e
authored
Dec 06, 2024
by
lizhilin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
更新
parent
9dd72064
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
21 additions
and
17 deletions
+21
-17
app/Admin/Controllers/LawyerCostController.php
+9
-7
app/Admin/Controllers/LawyerCostListController.php
+12
-10
No files found.
app/Admin/Controllers/LawyerCostController.php
View file @
6519034e
...
@@ -240,22 +240,24 @@ protected function form()
...
@@ -240,22 +240,24 @@ protected function form()
Admin
::
script
(
Admin
::
script
(
<<<
JS
<<<
JS
$
(
function
()
{
$
(
function
()
{
//社保
//社保
$
(
"input[name='social_company_fee']"
)
.
on
(
'blur'
,
function
()
{
$
(
"input[name='social_person_fee'],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
social_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
social_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
);
var
social_total
=
parseFloat
(
social_person_fee
)
+
parseFloat
(
social_company_fee
);
$
(
"input[name='social']"
)
.
val
(
total
);
$
(
"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
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
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
);
var
accumulation_fund
=
parseFloat
(
person_fee
)
+
parseFloat
(
company_fee
);
$
(
"input[name='accumulation_fund']"
)
.
val
(
accumulation_fund
);
$
(
"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
;
var
salary
=
$
(
"input[name='basic_salary']"
)
.
val
()
.
length
>
0
?
$
(
"input[name='basic_salary']"
)
.
val
()
:
0
;
//专项附加
//专项附加
...
...
app/Admin/Controllers/LawyerCostListController.php
View file @
6519034e
...
@@ -169,22 +169,24 @@ protected function form()
...
@@ -169,22 +169,24 @@ protected function form()
Admin
::
script
(
Admin
::
script
(
<<<
JS
<<<
JS
$
(
function
()
{
$
(
function
()
{
//社保
//社保
$
(
"input[name='social_company_fee']"
)
.
on
(
'blur'
,
function
()
{
$
(
"input[name='social_person_fee'],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
social_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
social_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
);
var
social_total
=
parseFloat
(
social_person_fee
)
+
parseFloat
(
social_company_fee
);
$
(
"input[name='social']"
)
.
val
(
total
);
$
(
"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
fund_
person_fee
=
$
(
"input[name='accumulation_fund_person_fee']"
)
.
val
()
.
length
>
0
?
$
(
"input[name='accumulation_fund_person_fee']"
)
.
val
()
:
0
;
var
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
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
);
var
accumulation_fund
=
parseFloat
(
person_fee
)
+
parseFloat
(
company_fee
);
$
(
"input[name='accumulation_fund']"
)
.
val
(
accumulation_fund
);
$
(
"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
;
var
salary
=
$
(
"input[name='basic_salary']"
)
.
val
()
.
length
>
0
?
$
(
"input[name='basic_salary']"
)
.
val
()
:
0
;
//专项附加
//专项附加
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment