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
71524c25
Commit
71524c25
authored
Dec 23, 2024
by
lizhilin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
更新
parent
06965fe7
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
45 additions
and
17 deletions
+45
-17
app/Admin/Actions/CovenantReturn.php
+2
-2
app/Admin/Controllers/CovenantController.php
+1
-1
app/Admin/Controllers/LawyerCostController.php
+2
-2
app/Admin/Controllers/LawyerCostListController.php
+2
-2
app/Admin/Controllers/PrincipalController.php
+38
-10
No files found.
app/Admin/Actions/CovenantReturn.php
View file @
71524c25
...
...
@@ -27,7 +27,7 @@ public function __construct($title = '', $cid = 0)
/**
* @return string
*/
protected
$title
=
'<i class="feather icon-circle"> 已退
还
</i>'
;
protected
$title
=
'<i class="feather icon-circle"> 已退
案
</i>'
;
/**
* 按钮文本
*
...
...
@@ -61,7 +61,7 @@ public function render()
// 这里直接创建一个modal框 model的内容由工具表单提供,这里也需要创建一个工具表单才行
return
Modal
::
make
()
->
lg
()
->
title
(
'已退
还
'
)
->
title
(
'已退
案
'
)
->
button
(
$this
->
title
)
->
body
(
CovenantReturnForm
::
make
()
->
payload
([
'cid'
=>
$this
->
cid
]));
//->button("<button class='btn btn-sm btn-primary'>$this->title</button>"); // 这个button就是对应上面的按钮
...
...
app/Admin/Controllers/CovenantController.php
View file @
71524c25
...
...
@@ -45,7 +45,7 @@ protected function grid()
return
$val
?
'已结案'
:
'未结案'
;
});
$grid
->
column
(
'is_return'
,
'退还状态'
)
->
display
(
function
(
$val
)
{
return
$val
?
'已退
还'
:
'未退还
'
;
return
$val
?
'已退
案'
:
'未退案
'
;
});
$grid
->
column
(
'return_fee'
,
'退还结案费'
);
// $grid->column('created_at');
...
...
app/Admin/Controllers/LawyerCostController.php
View file @
71524c25
...
...
@@ -227,7 +227,7 @@ protected function form()
$form
->
text
(
'office_rental_fee'
)
->
readOnly
();
$form
->
text
(
'noticket_cost'
)
->
readOnly
();
$form
->
text
(
'advance_fee'
)
->
readOnly
();
$form
->
text
(
'personal_income_tax'
)
->
re
adOnly
();
$form
->
text
(
'personal_income_tax'
)
->
re
quired
();
}
else
{
$form
->
text
(
'year'
)
->
default
(
date
(
'Y'
))
->
readOnly
();
$form
->
select
(
'month'
)
->
options
(
ModelLawyerCost
::
MONTH
)
->
readOnly
();
...
...
@@ -248,7 +248,7 @@ protected function form()
$form
->
text
(
'office_rental_fee'
)
->
required
();
$form
->
text
(
'noticket_cost'
)
->
readOnly
();
$form
->
text
(
'advance_fee'
);
$form
->
text
(
'personal_income_tax'
)
->
re
quired
();
$form
->
text
(
'personal_income_tax'
)
->
re
adOnly
();
}
$form
->
disableCreatingCheck
();
...
...
app/Admin/Controllers/LawyerCostListController.php
View file @
71524c25
...
...
@@ -157,7 +157,7 @@ protected function form()
$form
->
text
(
'office_rental_fee'
)
->
readOnly
();
$form
->
text
(
'noticket_cost'
)
->
readOnly
();
$form
->
text
(
'advance_fee'
)
->
readOnly
();
$form
->
text
(
'personal_income_tax'
)
->
re
adOnly
();
$form
->
text
(
'personal_income_tax'
)
->
re
quired
();
}
else
{
$form
->
text
(
'year'
)
->
default
(
date
(
'Y'
))
->
readOnly
();
//$form->select('month')->options(ModelLawyerCost::MONTH)->disable();
...
...
@@ -187,7 +187,7 @@ protected function form()
$form
->
text
(
'office_rental_fee'
)
->
required
();
$form
->
text
(
'noticket_cost'
)
->
readOnly
();
$form
->
text
(
'advance_fee'
);
$form
->
text
(
'personal_income_tax'
)
->
re
quired
();
$form
->
text
(
'personal_income_tax'
)
->
re
adOnly
();
}
$form
->
disableCreatingCheck
();
$form
->
disableEditingCheck
();
...
...
app/Admin/Controllers/PrincipalController.php
View file @
71524c25
...
...
@@ -11,6 +11,7 @@
use
Illuminate\Http\Request
;
use
Illuminate\Support\Facades\DB
;
use
Dcat\Admin\Admin
;
use
Dcat\Admin\Widgets\Card
;
class
PrincipalController
extends
AdminController
{
...
...
@@ -22,23 +23,50 @@ class PrincipalController extends AdminController
protected
function
grid
()
{
return
Grid
::
make
(
new
Principal
(),
function
(
Grid
$grid
)
{
$ptype
=
$grid
->
model
()
->
filter
()
->
input
(
'wtype'
)
??
1
;
$grid
->
model
()
->
where
(
'wtype'
,
$ptype
)
->
orderBy
(
"id"
,
"desc"
);
$ptype
=
$grid
->
model
()
->
filter
()
->
input
(
'wtype'
)
??
0
;
$where
=
$ptype
?
[
'wtype'
=>
$ptype
]
:
[];
$grid
->
model
()
->
where
(
$where
)
->
orderBy
(
"id"
,
"desc"
);
//$grid->column('id')->sortable();
$grid
->
column
(
'number'
);
if
(
$ptype
==
1
)
{
$grid
->
column
(
'wtype'
,
'类型'
)
->
display
(
function
(
$val
)
{
return
$val
==
1
?
'单位'
:
'个人'
;
})
->
width
(
50
);
//if ($ptype == 1) {
$grid
->
column
(
'company'
);
$grid
->
column
(
'tax_number'
);
$grid
->
column
(
'address'
);
$grid
->
column
(
'tel'
);
$grid
->
column
(
'bank_name'
);
$grid
->
column
(
'bank_account'
);
$grid
->
column
(
'contacts'
);
}
else
{
$grid
->
column
(
'bank_name'
,
'开户银行'
);
$grid
->
column
(
'bank_account'
)
->
width
(
90
)
->
if
(
function
(
$column
)
{
return
$column
->
getValue
();
})
->
display
(
'查看'
)
->
modal
(
function
(
$modal
)
{
$modal
->
title
(
'开户账号'
);
$content
=
$this
->
bank_account
;
$card
=
new
Card
(
null
,
$content
);
return
"<div style='padding:10px 10px 0;width:100%;'>
$card
</div>"
;
})
->
else
(
function
(
$column
)
{
return
''
;
});
$grid
->
column
(
'contacts'
)
->
width
(
90
);
//} else {
$grid
->
column
(
'name'
);
$grid
->
column
(
'identity_card'
);
//$grid->column('identity_card');
$grid
->
column
(
'identity_card'
)
->
width
(
90
)
->
if
(
function
(
$column
)
{
return
$column
->
getValue
();
})
->
display
(
'查看'
)
->
modal
(
function
(
$modal
)
{
$modal
->
title
(
'身份信息'
);
$content
=
$this
->
identity_card
;
$card
=
new
Card
(
null
,
$content
);
return
"<div style='padding:10px 10px 0;width:100%;'>
$card
</div>"
;
})
->
else
(
function
(
$column
)
{
return
''
;
});
$grid
->
column
(
'address'
,
'联系地址'
);
}
//
}
$grid
->
column
(
'phone'
);
// $grid->column('created_at');
// $grid->column('updated_at')->sortable();
...
...
@@ -56,7 +84,7 @@ protected function grid()
$filter
->
like
(
'tax_number'
)
->
width
(
3
);
$filter
->
like
(
'name'
)
->
width
(
3
);
$filter
->
like
(
'identity_card'
)
->
width
(
3
);
$filter
->
equal
(
'wtype'
,
'类型'
)
->
select
([
1
=>
'单位'
,
2
=>
'个人'
])
->
width
(
3
)
->
default
(
1
)
;
$filter
->
equal
(
'wtype'
,
'类型'
)
->
select
([
1
=>
'单位'
,
2
=>
'个人'
])
->
width
(
3
);
});
$grid
->
actions
(
function
(
Grid\Displayers\Actions
$actions
)
{
...
...
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