Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
杨树贤
/
liexin_supplier
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
88f28d8b
authored
Jul 13, 2023
by
杨树贤
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
申请审核问题
parent
86fd0ba3
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 additions
and
10 deletions
app/Http/Services/SupplierShareApplyService.php
resources/views/script/AuditSupplierShareApplyScript.blade.php
app/Http/Services/SupplierShareApplyService.php
View file @
88f28d8b
...
@@ -122,7 +122,6 @@ class SupplierShareApplyService
...
@@ -122,7 +122,6 @@ class SupplierShareApplyService
$departmentService
=
new
DepartmentService
();
$departmentService
=
new
DepartmentService
();
$topDepartment
=
$departmentService
->
getUpperDepartmentByUserIdForShareApply
(
$userId
);
$topDepartment
=
$departmentService
->
getUpperDepartmentByUserIdForShareApply
(
$userId
);
$departmentId
=
$topDepartment
[
'department_id'
];
$departmentId
=
$topDepartment
[
'department_id'
];
$applyModel
=
new
SupplierShareApplyModel
();
$applyModel
=
new
SupplierShareApplyModel
();
$query
=
$applyModel
::
with
([
$query
=
$applyModel
::
with
([
'supplier'
=>
function
(
$q
)
{
'supplier'
=>
function
(
$q
)
{
...
@@ -139,14 +138,6 @@ class SupplierShareApplyService
...
@@ -139,14 +138,6 @@ class SupplierShareApplyService
$q
->
where
(
'apply_department_id'
,
$departmentId
)
->
where
(
'review_uid'
,
0
)
->
where
(
'audit_uid'
,
'!='
,
0
)
$q
->
where
(
'apply_department_id'
,
$departmentId
)
->
where
(
'review_uid'
,
0
)
->
where
(
'audit_uid'
,
'!='
,
0
)
->
where
(
'status'
,
SupplierShareApplyModel
::
STATUS_NEED_REVIEW
);
->
where
(
'status'
,
SupplierShareApplyModel
::
STATUS_NEED_REVIEW
);
})
->
orderBy
(
'id'
,
'desc'
);
})
->
orderBy
(
'id'
,
'desc'
);
// $query = $applyModel::with([
// 'supplier' => function ($q) {
// $q->select(['supplier_name', 'supplier_id','yunxin_channel_uid']);
// },
// 'department',
// 'apply_department',
// 'apply_user'
// ])->orderBy('id', 'desc');
$limit
=
request
()
->
get
(
'limit'
,
20
);
$limit
=
request
()
->
get
(
'limit'
,
20
);
$list
=
$query
->
paginate
(
$limit
)
->
toArray
();
$list
=
$query
->
paginate
(
$limit
)
->
toArray
();
$transformer
=
new
SupplierShareApplyTransformer
();
$transformer
=
new
SupplierShareApplyTransformer
();
...
...
resources/views/script/AuditSupplierShareApplyScript.blade.php
View file @
88f28d8b
...
@@ -59,7 +59,7 @@
...
@@ -59,7 +59,7 @@
let
url
=
'/api/supplier_share_apply/AuditSupplierShareApply'
;
let
url
=
'/api/supplier_share_apply/AuditSupplierShareApply'
;
let
result
=
ajax
(
url
,
{
let
result
=
ajax
(
url
,
{
status
:
status
,
status
:
status
,
id
:
id
,
id
:
data
.
id
,
});
});
if
(
result
.
err_code
===
0
)
{
if
(
result
.
err_code
===
0
)
{
layer
.
msg
(
'审核成功'
,
{
icon
:
6
})
layer
.
msg
(
'审核成功'
,
{
icon
:
6
})
...
...
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