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
470c9c93
Commit
470c9c93
authored
Dec 03, 2024
by
lizhilin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
更新
parent
690278f5
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
4 deletions
+12
-4
app/Admin/Controllers/ViewCovenantInvoicedController.php
+6
-2
app/Admin/Controllers/ViewCovenantReceivedController.php
+6
-2
No files found.
app/Admin/Controllers/ViewCovenantInvoicedController.php
View file @
470c9c93
...
...
@@ -27,7 +27,11 @@ protected function grid()
{
return
Grid
::
make
(
new
ModelsCovenantReceivePayment
(),
function
(
Grid
$grid
)
{
$cid
=
$grid
->
model
()
->
filter
()
->
input
(
'cid'
)
??
0
;
$lawyer_id
=
0
;
if
(
$cid
)
{
$cobj
=
ModelsCovenant
::
find
(
$cid
);
$lawyer_id
=
$cobj
->
lawyer_id
;
}
if
(
Admin
::
user
()
->
can
(
'view-invoiced-add'
))
{
$grid
->
tools
(
function
(
Grid\Tools
$tools
)
use
(
$cid
)
{
$tools
->
append
(
Modal
::
make
()
...
...
@@ -41,7 +45,7 @@ protected function grid()
->
body
(
CovenantInvoiceForm
::
make
()
->
payload
([
'id'
=>
$cid
])));
});
}
$grid
->
model
()
->
where
(
'rtype'
,
2
)
->
orderBy
(
"id"
,
"desc"
);
$grid
->
model
()
->
where
(
'
lawyer_id'
,
$lawyer_id
)
->
where
(
'
rtype'
,
2
)
->
orderBy
(
"id"
,
"desc"
);
//$grid->column('id')->sortable();
$grid
->
column
(
'invoiced_at'
,
'开票时间'
);
$grid
->
column
(
'invoiced_money'
,
'开票金额'
);
...
...
app/Admin/Controllers/ViewCovenantReceivedController.php
View file @
470c9c93
...
...
@@ -29,7 +29,11 @@ protected function grid()
{
return
Grid
::
make
(
new
ModelsCovenantReceivePayment
(),
function
(
Grid
$grid
)
{
$cid
=
$grid
->
model
()
->
filter
()
->
input
(
'cid'
)
??
0
;
$lawyer_id
=
0
;
if
(
$cid
)
{
$cobj
=
ModelsCovenant
::
find
(
$cid
);
$lawyer_id
=
$cobj
->
lawyer_id
;
}
$grid
->
tools
(
function
(
Grid\Tools
$tools
)
use
(
$cid
)
{
if
(
Admin
::
user
()
->
can
(
'view-received-add'
))
{
...
...
@@ -46,7 +50,7 @@ protected function grid()
});
$grid
->
model
()
->
where
(
'rtype'
,
1
)
->
orderBy
(
"id"
,
"desc"
);
$grid
->
model
()
->
where
(
'
lawyer_id'
,
$lawyer_id
)
->
where
(
'
rtype'
,
1
)
->
orderBy
(
"id"
,
"desc"
);
//$grid->column('id')->sortable();
$grid
->
column
(
'received_type'
,
'收款账户'
)
->
display
(
function
(
$val
)
{
return
$val
==
1
?
'基本户'
:
'其它'
;
...
...
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