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
e9eb73ea
Commit
e9eb73ea
authored
Jan 23, 2024
by
汪伟伟
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
未审核页 重构
parent
440bc69d
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
12 changed files
with
126 additions
and
124 deletions
+126
-124
app/Admin/Controllers/AlreadyApproveController.php
+4
-1
app/Admin/Controllers/AlreadyDoneTaskController.php
+5
-3
app/Admin/Controllers/AlreadySettlementController.php
+2
-0
app/Admin/Controllers/CreateOrderController.php
+1
-0
app/Admin/Controllers/NoDoneTaskController.php
+11
-0
app/Admin/Controllers/TaskController.php
+4
-1
app/Admin/Controllers/TaskReceiveController.php
+3
-0
app/Admin/Controllers/TasksApproveController.php
+85
-117
app/Admin/Controllers/TasksCollectController.php
+2
-0
app/Admin/Controllers/TasksOrderController.php
+3
-0
app/Admin/routes.php
+6
-2
resources/views/admin/check.blade.php
+0
-0
No files found.
app/Admin/Controllers/AlreadyApproveController.php
View file @
e9eb73ea
...
@@ -23,8 +23,11 @@ class AlreadyApproveController extends AdminController
...
@@ -23,8 +23,11 @@ class AlreadyApproveController extends AdminController
protected
function
grid
()
protected
function
grid
()
{
{
return
Grid
::
make
(
TasksApprove
::
with
([
'task'
,
'collects'
,
'user'
]),
function
(
Grid
$grid
)
{
return
Grid
::
make
(
TasksApprove
::
with
([
'task'
,
'collects'
,
'user'
]),
function
(
Grid
$grid
)
{
$grid
->
addTableClass
([
'table-text-center'
]);
//设置表格文字居中
$grid
->
model
()
->
where
(
'status'
,
'>'
,
0
)
->
orderBy
(
'task_id'
,
'desc'
);
$grid
->
model
()
->
where
(
'status'
,
'>'
,
0
)
->
orderBy
(
'updated_at'
,
'desc'
)
->
orderBy
(
'task_id'
,
'desc'
);
...
...
app/Admin/Controllers/AlreadyDoneTaskController.php
View file @
e9eb73ea
...
@@ -28,6 +28,8 @@ class AlreadyDoneTaskController extends AdminController
...
@@ -28,6 +28,8 @@ class AlreadyDoneTaskController extends AdminController
return
Grid
::
make
(
TasksReceive
::
with
([
'task'
,
'collects'
,
'user'
,
'approve'
]),
function
(
Grid
$grid
){
return
Grid
::
make
(
TasksReceive
::
with
([
'task'
,
'collects'
,
'user'
,
'approve'
]),
function
(
Grid
$grid
){
$user
=
Admin
::
user
();
$user
=
Admin
::
user
();
$user
->
is_admin
==
0
&&
$grid
->
model
()
->
where
(
'user_id'
,
$user
->
id
);
$user
->
is_admin
==
0
&&
$grid
->
model
()
->
where
(
'user_id'
,
$user
->
id
);
$grid
->
addTableClass
([
'table-text-center'
]);
//设置表格文字居中
$grid
->
model
()
->
where
(
'status'
,
'>'
,
0
)
->
orderBy
(
'updated_at'
,
'desc'
);
$grid
->
model
()
->
where
(
'status'
,
'>'
,
0
)
->
orderBy
(
'updated_at'
,
'desc'
);
// dd(trans('admin.view'));//查看
// dd(trans('admin.view'));//查看
...
@@ -73,9 +75,9 @@ class AlreadyDoneTaskController extends AdminController
...
@@ -73,9 +75,9 @@ class AlreadyDoneTaskController extends AdminController
$html
=
\App\Models\TasksReceive
::
STATUS_DESC
[
$val
];
$html
=
\App\Models\TasksReceive
::
STATUS_DESC
[
$val
];
if
(
$val
==
2
)
{
if
(
$val
==
2
)
{
//
dd
($this->id,$this->approve->msg);
//
var_dump
($this->id,$this->approve->msg);
Tooltip
::
make
(
'.ti-shi-span'
)
->
title
(
$this
->
approve
->
msg
);
Tooltip
::
make
(
'.ti-shi-span'
.
$this
->
approve
->
id
)
->
title
(
$this
->
approve
->
msg
);
return
"<span style='color: red' class='ti-shi-span'>
{
$html
}
<i class='feather icon-help-circle'></i></span>"
;
return
"<span style='color: red' class='ti-shi-span
{
$this
->
approve
->
id
}
'>
{
$html
}
<i class='feather icon-help-circle'></i></span>"
;
}
else
{
}
else
{
return
$html
;
return
$html
;
}
}
...
...
app/Admin/Controllers/AlreadySettlementController.php
View file @
e9eb73ea
...
@@ -20,6 +20,8 @@ class AlreadySettlementController extends AdminController
...
@@ -20,6 +20,8 @@ class AlreadySettlementController extends AdminController
return
response
()
->
redirectTo
(
'/orders'
);
return
response
()
->
redirectTo
(
'/orders'
);
}
else
{
}
else
{
return
Grid
::
make
(
TasksOrder
::
query
(),
function
(
Grid
$grid
)
use
(
$user
)
{
return
Grid
::
make
(
TasksOrder
::
query
(),
function
(
Grid
$grid
)
use
(
$user
)
{
$grid
->
addTableClass
([
'table-text-center'
]);
//设置表格文字居中
$grid
->
model
()
->
where
(
'user_id'
,
$user
->
id
);
$grid
->
model
()
->
where
(
'user_id'
,
$user
->
id
);
// 在 display 回调中使用
// 在 display 回调中使用
...
...
app/Admin/Controllers/CreateOrderController.php
View file @
e9eb73ea
...
@@ -17,6 +17,7 @@ class CreateOrderController extends AdminController
...
@@ -17,6 +17,7 @@ class CreateOrderController extends AdminController
protected
function
grid
()
protected
function
grid
()
{
{
return
Grid
::
make
(
TasksReceive
::
with
([
'task'
,
'collects'
,
'user'
]),
function
(
Grid
$grid
)
{
return
Grid
::
make
(
TasksReceive
::
with
([
'task'
,
'collects'
,
'user'
]),
function
(
Grid
$grid
)
{
$grid
->
addTableClass
([
'table-text-center'
]);
//设置表格文字居中
$grid
->
model
()
->
where
(
'status'
,
3
);
//3:审核通过但未结算的任务
$grid
->
model
()
->
where
(
'status'
,
3
);
//3:审核通过但未结算的任务
...
...
app/Admin/Controllers/NoDoneTaskController.php
View file @
e9eb73ea
...
@@ -29,6 +29,8 @@ class NoDoneTaskController extends AdminController
...
@@ -29,6 +29,8 @@ class NoDoneTaskController extends AdminController
return
Grid
::
make
(
TasksReceive
::
with
([
'task'
,
'collects'
,
'user'
]),
function
(
Grid
$grid
)
{
return
Grid
::
make
(
TasksReceive
::
with
([
'task'
,
'collects'
,
'user'
]),
function
(
Grid
$grid
)
{
$user
=
Admin
::
user
();
$user
=
Admin
::
user
();
$user
->
is_admin
==
0
&&
$grid
->
model
()
->
where
(
'user_id'
,
$user
->
id
);
$user
->
is_admin
==
0
&&
$grid
->
model
()
->
where
(
'user_id'
,
$user
->
id
);
$grid
->
addTableClass
([
'table-text-center'
]);
//设置表格文字居中
$grid
->
model
()
->
where
(
'status'
,
0
);
$grid
->
model
()
->
where
(
'status'
,
0
);
// dd(trans('admin.view'));//查看
// dd(trans('admin.view'));//查看
...
@@ -140,6 +142,15 @@ class NoDoneTaskController extends AdminController
...
@@ -140,6 +142,15 @@ class NoDoneTaskController extends AdminController
$receive
->
status
=
1
;
$receive
->
status
=
1
;
TasksCollect
::
query
()
->
where
(
'receive_id'
,
$id
)
->
update
([
'is_find'
=>
0
,
'remark'
=>
$remark
]);
TasksCollect
::
query
()
->
where
(
'receive_id'
,
$id
)
->
update
([
'is_find'
=>
0
,
'remark'
=>
$remark
]);
$receive
->
save
();
$receive
->
save
();
TasksApprove
::
query
()
->
updateOrCreate
([
//审核表里新增一条记录
'task_id'
=>
$receive
->
task_id
,
'user_id'
=>
$receive
->
user_id
,
'receive_id'
=>
$receive
->
id
,
],
[
'task_id'
=>
$receive
->
task_id
,
'user_id'
=>
$receive
->
user_id
,
'receive_id'
=>
$receive
->
id
,
]);
}
}
$no
=
\App\Models\TasksReceive
::
query
()
$no
=
\App\Models\TasksReceive
::
query
()
...
...
app/Admin/Controllers/TaskController.php
View file @
e9eb73ea
...
@@ -41,6 +41,7 @@ class TaskController extends AdminController
...
@@ -41,6 +41,7 @@ class TaskController extends AdminController
// $model = \App\Models\Task::query()->whereNotIn('id',$exists)
// $model = \App\Models\Task::query()->whereNotIn('id',$exists)
return
Grid
::
make
(
new
Task
(),
function
(
Grid
$grid
)
use
(
$user
,
$exists
)
{
return
Grid
::
make
(
new
Task
(),
function
(
Grid
$grid
)
use
(
$user
,
$exists
)
{
$grid
->
addTableClass
([
'table-text-center'
]);
//设置表格文字居中
// $grid->title('dasd');
// $grid->title('dasd');
$grid
->
model
()
->
whereNotIn
(
'id'
,
$exists
);
$grid
->
model
()
->
whereNotIn
(
'id'
,
$exists
);
...
@@ -134,7 +135,9 @@ class TaskController extends AdminController
...
@@ -134,7 +135,9 @@ class TaskController extends AdminController
protected
function
grid
()
protected
function
grid
()
{
{
return
Grid
::
make
(
new
Task
(),
function
(
Grid
$grid
)
{
return
Grid
::
make
(
new
Task
(),
function
(
Grid
$grid
)
{
$grid
->
model
()
->
orderBy
(
'created_at'
,
'desc'
);
$grid
->
addTableClass
([
'table-text-center'
]);
//设置表格文字居中
$grid
->
model
()
->
orderBy
(
'created_at'
,
'desc'
);
// dd(trans('admin.view'));//查看
// dd(trans('admin.view'));//查看
// 在 display 回调中使用
// 在 display 回调中使用
...
...
app/Admin/Controllers/TaskReceiveController.php
View file @
e9eb73ea
...
@@ -47,6 +47,8 @@ class TaskReceiveController extends AdminController
...
@@ -47,6 +47,8 @@ class TaskReceiveController extends AdminController
{
{
return
Grid
::
make
(
TasksOrder
::
query
(),
function
(
Grid
$grid
)
{
return
Grid
::
make
(
TasksOrder
::
query
(),
function
(
Grid
$grid
)
{
$user
=
Admin
::
user
();
$user
=
Admin
::
user
();
$grid
->
addTableClass
([
'table-text-center'
]);
//设置表格文字居中
$grid
->
model
()
->
where
(
'user_id'
,
$user
->
id
);
$grid
->
model
()
->
where
(
'user_id'
,
$user
->
id
);
// 在 display 回调中使用
// 在 display 回调中使用
...
@@ -88,6 +90,7 @@ class TaskReceiveController extends AdminController
...
@@ -88,6 +90,7 @@ class TaskReceiveController extends AdminController
if
(
$status
==
0
)
$grid
->
model
()
->
where
(
'status'
,
0
);
if
(
$status
==
0
)
$grid
->
model
()
->
where
(
'status'
,
0
);
if
(
$status
==
1
)
$grid
->
model
()
->
where
(
'status'
,
'>'
,
0
);
if
(
$status
==
1
)
$grid
->
model
()
->
where
(
'status'
,
'>'
,
0
);
// dd(trans('admin.view'));//查看
// dd(trans('admin.view'));//查看
$grid
->
addTableClass
([
'table-text-center'
]);
//设置表格文字居中
$grid
->
model
()
->
orderBy
(
'created_at'
,
'desc'
);
$grid
->
model
()
->
orderBy
(
'created_at'
,
'desc'
);
// 在 display 回调中使用
// 在 display 回调中使用
...
...
app/Admin/Controllers/TasksApproveController.php
View file @
e9eb73ea
This diff is collapsed.
Click to expand it.
app/Admin/Controllers/TasksCollectController.php
View file @
e9eb73ea
...
@@ -18,6 +18,8 @@ class TasksCollectController extends AdminController
...
@@ -18,6 +18,8 @@ class TasksCollectController extends AdminController
protected
function
grid
()
protected
function
grid
()
{
{
return
Grid
::
make
(
new
TasksCollect
(),
function
(
Grid
$grid
)
{
return
Grid
::
make
(
new
TasksCollect
(),
function
(
Grid
$grid
)
{
$grid
->
addTableClass
([
'table-text-center'
]);
//设置表格文字居中
$grid
->
column
(
'id'
)
->
sortable
();
$grid
->
column
(
'id'
)
->
sortable
();
$grid
->
column
(
'task_id'
);
$grid
->
column
(
'task_id'
);
$grid
->
column
(
'user_id'
);
$grid
->
column
(
'user_id'
);
...
...
app/Admin/Controllers/TasksOrderController.php
View file @
e9eb73ea
...
@@ -35,6 +35,7 @@ class TasksOrderController extends AdminController
...
@@ -35,6 +35,7 @@ class TasksOrderController extends AdminController
return
Grid
::
make
(
\App\Admin\Repositories\TasksReceive
::
with
([
'task'
,
'collects'
,
'user'
]),
function
(
Grid
$grid
)
use
(
$id
,
$type
)
{
return
Grid
::
make
(
\App\Admin\Repositories\TasksReceive
::
with
([
'task'
,
'collects'
,
'user'
]),
function
(
Grid
$grid
)
use
(
$id
,
$type
)
{
$user
=
Admin
::
user
();
$user
=
Admin
::
user
();
// dd(trans('admin.view'));//查看
// dd(trans('admin.view'));//查看
$grid
->
addTableClass
([
'table-text-center'
]);
//设置表格文字居中
$grid
->
title
(
'结算单详情'
);
$grid
->
title
(
'结算单详情'
);
...
@@ -137,6 +138,8 @@ class TasksOrderController extends AdminController
...
@@ -137,6 +138,8 @@ class TasksOrderController extends AdminController
protected
function
grid
()
protected
function
grid
()
{
{
return
Grid
::
make
(
TasksOrder
::
with
([
'user'
]),
function
(
Grid
$grid
)
{
return
Grid
::
make
(
TasksOrder
::
with
([
'user'
]),
function
(
Grid
$grid
)
{
$grid
->
addTableClass
([
'table-text-center'
]);
//设置表格文字居中
// 在 display 回调中使用
// 在 display 回调中使用
$grid
->
column
(
'序号'
)
->
display
(
function
()
{
$grid
->
column
(
'序号'
)
->
display
(
function
()
{
return
$this
->
_index
+
1
;
return
$this
->
_index
+
1
;
...
...
app/Admin/routes.php
View file @
e9eb73ea
...
@@ -32,8 +32,12 @@ Route::group([
...
@@ -32,8 +32,12 @@ Route::group([
$router
->
resource
(
'settle'
,
'AlreadySettlementController'
);
$router
->
resource
(
'settle'
,
'AlreadySettlementController'
);
$router
->
resource
(
'approves'
,
'TasksApproveController'
);
// $router->resource('approves', 'TasksApproveController');
// $router->get('approves', 'TasksApproveController@checkData');
$router
->
get
(
'approves'
,
'TasksApproveController@checkData'
);
$router
->
get
(
'pass/{id}'
,
'TasksApproveController@pass'
);
$router
->
get
(
'noPass/{id}'
,
'TasksApproveController@noPass'
);
$router
->
get
(
'allPass/{id}'
,
'TasksApproveController@allPass'
);
$router
->
get
(
'allNoPass/{id}'
,
'TasksApproveController@allNoPass'
);
$router
->
resource
(
'alreadyApprove'
,
'AlreadyApproveController'
);
$router
->
resource
(
'alreadyApprove'
,
'AlreadyApproveController'
);
$router
->
resource
(
'orders'
,
'TasksOrderController'
);
$router
->
resource
(
'orders'
,
'TasksOrderController'
);
...
...
resources/views/admin/check.blade.php
View file @
e9eb73ea
This diff is collapsed.
Click to expand it.
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