Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
D
data-collect
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
汪伟伟
data-collect
Commits
142e09ca
Commit
142e09ca
authored
Jan 19, 2024
by
汪伟伟
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
.。。
parent
65665a77
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
17 additions
and
3 deletions
+17
-3
app/Admin/Controllers/AlreadySettlementController.php
+6
-1
app/Admin/Controllers/TasksOrderController.php
+9
-2
app/Models/TasksOrder.php
+2
-0
No files found.
app/Admin/Controllers/AlreadySettlementController.php
View file @
142e09ca
...
@@ -31,7 +31,12 @@ class AlreadySettlementController extends AdminController
...
@@ -31,7 +31,12 @@ class AlreadySettlementController extends AdminController
$grid
->
column
(
'time'
,
'结算时间'
);
$grid
->
column
(
'time'
,
'结算时间'
);
$grid
->
column
(
'num'
,
'数量'
);
$grid
->
column
(
'num'
,
'数量'
);
$grid
->
column
(
'amount'
,
'金额'
);
$grid
->
column
(
'amount'
,
'金额'
);
$grid
->
column
(
'pay_img'
,
'转账截图'
);
$grid
->
column
(
'pay_img'
,
'转账截图'
)
->
display
(
function
(
$val
){
if
(
$val
){
return
"<a href=
{
$val
}
target='_blank' style='color: #00b44e'>点击查看</a>"
;
}
return
$val
;
});
$grid
->
column
(
'status'
,
'状态'
)
->
display
(
function
(
$val
)
{
$grid
->
column
(
'status'
,
'状态'
)
->
display
(
function
(
$val
)
{
return
TasksOrder
::
ORDER_STATUS_DESC
[
$val
];
return
TasksOrder
::
ORDER_STATUS_DESC
[
$val
];
});
});
...
...
app/Admin/Controllers/TasksOrderController.php
View file @
142e09ca
...
@@ -146,7 +146,12 @@ class TasksOrderController extends AdminController
...
@@ -146,7 +146,12 @@ class TasksOrderController extends AdminController
$grid
->
column
(
'time'
);
$grid
->
column
(
'time'
);
$grid
->
column
(
'num'
);
$grid
->
column
(
'num'
);
$grid
->
column
(
'amount'
);
$grid
->
column
(
'amount'
);
$grid
->
column
(
'pay_img'
);
$grid
->
column
(
'pay_img'
)
->
display
(
function
(
$val
){
if
(
$val
){
return
"<a href=
{
$val
}
target='_blank' style='color: #00b44e'>点击查看</a>"
;
}
return
$val
;
});
$grid
->
column
(
'status'
,
'状态'
)
->
display
(
function
(
$val
)
use
(
$grid
)
{
$grid
->
column
(
'status'
,
'状态'
)
->
display
(
function
(
$val
)
use
(
$grid
)
{
if
(
$val
==
3
)
{
if
(
$val
==
3
)
{
$grid
->
disableEditButton
();
$grid
->
disableEditButton
();
...
@@ -196,7 +201,9 @@ class TasksOrderController extends AdminController
...
@@ -196,7 +201,9 @@ class TasksOrderController extends AdminController
// $form->text('time');
// $form->text('time');
// $form->text('num');
// $form->text('num');
// $form->text('amount');
// $form->text('amount');
$form
->
image
(
'pay_img'
)
->
autoUpload
()
->
uniqueName
()
->
saveFullUrl
()
->
override
();
$form
->
image
(
'pay_img'
)
// ->thumbnail('small', $width = 300, $height = 300);
->
autoUpload
()
->
uniqueName
()
->
saveFullUrl
()
->
override
();
// $form->text('status');
// $form->text('status');
// $form->display('created_at');
// $form->display('created_at');
...
...
app/Models/TasksOrder.php
View file @
142e09ca
...
@@ -53,4 +53,6 @@ class TasksOrder extends Model
...
@@ -53,4 +53,6 @@ class TasksOrder extends Model
return
$this
->
hasMany
(
TasksReceive
::
class
,
'order_id'
,
'id'
);
return
$this
->
hasMany
(
TasksReceive
::
class
,
'order_id'
,
'id'
);
}
}
}
}
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