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
1474e927
authored
Jul 13, 2022
by
杨树贤
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
IQC检测查看权限设置
parent
d7522e3d
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
29 additions
and
1 deletions
app/Http/Controllers/Filter/SupplierExaminationFilter.php
resources/views/script/AddSupplierExaminationScript.blade.php
resources/views/script/UpdateSupplierExaminationScript.blade.php
resources/views/web/SupplierExaminationList.blade.php
app/Http/Controllers/Filter/SupplierExaminationFilter.php
View file @
1474e927
...
...
@@ -13,8 +13,19 @@ class SupplierExaminationFilter
public
function
listFilter
(
$request
)
{
$map
=
$request
->
all
();
$canViewAllSupplierExamination
=
checkPerm
(
'ViewAllSupplierExamination'
);
$name
=
$request
->
user
->
name
;
$model
=
new
SupplierExaminationModel
();
$query
=
$model
->
orderBy
(
'id'
,
'desc'
);
if
(
$canViewAllSupplierExamination
)
{
}
else
{
$query
->
where
(
'purchase_name'
,
$name
);
}
if
(
!
empty
(
$map
[
'supplier_name'
]))
{
$query
->
where
(
'supplier_name'
,
'like'
,
"%${map['supplier_name']}%"
);
}
...
...
resources/views/script/AddSupplierExaminationScript.blade.php
View file @
1474e927
<script>
layui
.
use
([
'table'
,
'form'
,
'element'
,
'table'
,
'layer'
,
'admin'
,
'xmSelect'
],
function
()
{
layui
.
use
([
'table'
,
'form'
,
'element'
,
'table'
,
'layer'
,
'admin'
,
'xmSelect'
],
function
()
{
let
admin
=
layui
.
admin
;
let
form
=
layui
.
form
;
let
element
=
layui
.
element
;
let
xmSelect
=
layui
.
xmSelect
;
form
.
on
(
'submit(addSupplierExamination)'
,
function
(
data
)
{
layer
.
confirm
(
'是否确认新增IQC检测资料?'
,
function
(
index
)
{
let
url
=
'/api/supplier_examination/AddSupplierExamination'
;
let
res
=
ajax
(
url
,
data
.
field
);
if
(
!
res
)
{
...
...
@@ -20,8 +21,11 @@
}
return
false
;
});
});
form
.
on
(
'submit(cancel)'
,
function
(
data
)
{
layer
.
confirm
(
'是否退出新增IQC检测资料?'
,
function
(
index
)
{
admin
.
closeThisDialog
();
});
});
});
</script>
\ No newline at end of file
resources/views/script/UpdateSupplierExaminationScript.blade.php
View file @
1474e927
...
...
@@ -6,6 +6,7 @@
let
xmSelect
=
layui
.
xmSelect
;
form
.
on
(
'submit(addSupplierExamination)'
,
function
(
data
)
{
layer
.
confirm
(
'是否确认修改IQC检测资料s?'
,
function
(
index
)
{
let
url
=
'/api/supplier_examination/UpdateSupplierExamination'
;
let
res
=
ajax
(
url
,
data
.
field
);
if
(
!
res
)
{
...
...
@@ -20,6 +21,7 @@
}
return
false
;
});
});
form
.
on
(
'submit(cancel)'
,
function
(
data
)
{
admin
.
closeThisDialog
();
});
...
...
resources/views/web/SupplierExaminationList.blade.php
View file @
1474e927
...
...
@@ -35,12 +35,22 @@
</div>
<div
style=
"margin-left: 20px;margin-right: 20px"
>
<div
class=
"layui-btn-group demoTable"
style=
"margin-top: 15px"
>
@if(checkPerm('AddSupplierExamination'))
<button
type=
"button"
class=
"layui-btn layui-btn-sm"
id=
"add_supplier_examination"
>
新增
</button>
@endif
@if(checkPerm('UpdateSupplierExamination'))
<button
type=
"button"
class=
"layui-btn layui-btn-sm"
id=
"update_supplier_examination"
>
编辑
</button>
@endif
@if(checkPerm('ImportSupplierExamination'))
<button
type=
"button"
class=
"layui-btn layui-btn-sm"
id=
"import_supplier_examination"
>
导入
</button>
@endif
<a
href=
"/data/import_supplier_examination_template.xlsx"
target=
"_blank"
class=
"layui-btn layui-btn-sm"
id=
"download_supplier_examination_import_template"
>
下载模板
</a>
@if(checkPerm('DeleteSupplierExamination'))
<button
type=
"button"
class=
"layui-btn layui-btn-sm"
id=
"delete_supplier_examination"
>
删除
</button>
@endif
</div>
<table
class=
"layui-table"
id=
"supplierExaminationList"
lay-filter=
"supplierExaminationList"
></table>
...
...
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