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
284efe14
authored
Aug 06, 2021
by
mushishixian
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
修改问题
parent
1ee01750
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
37 additions
and
3 deletions
app/Http/Services/SupplierService.php
resources/views/script/supplier/SupplierBaseScript.blade.php
resources/views/web/SupplierDetail.blade.php
resources/views/web/supplier/SupplierBase.blade.php
app/Http/Services/SupplierService.php
View file @
284efe14
...
...
@@ -95,7 +95,12 @@ class SupplierService
return
$value
;
},
$channel
);
//默认是待审核
$channel
[
'status'
]
=
SupplierChannelModel
::
STATUS_PENDING
;
//判断是否是直接添加并且申请审核
if
(
request
()
->
get
(
'direct_apply'
))
{
$channel
[
'status'
]
=
SupplierChannelModel
::
STATUS_IN_REVIEW
;
}
else
{
$channel
[
'status'
]
=
SupplierChannelModel
::
STATUS_PENDING
;
}
//第一次新增的供应商,都需要进行复审
$channel
[
'need_review'
]
=
1
;
$contactField
=
[
...
...
resources/views/script/supplier/SupplierBaseScript.blade.php
View file @
284efe14
<script>
layui
.
use
([
'table'
,
'form'
,
'element'
,
'layer'
,
'admin'
,
'laydate'
,
'xmSelect'
,
'selectN'
,
'tagsInput'
],
function
()
{
layui
.
use
([
'table'
,
'form'
,
'element'
,
'layer'
,
'admin'
,
'laydate'
,
'xmSelect'
,
'selectN'
,
'tagsInput'
],
function
()
{
let
admin
=
layui
.
admin
;
let
form
=
layui
.
form
;
let
selectN
=
layui
.
selectN
;
...
...
@@ -81,6 +81,13 @@
name
:
'brand_name'
,
value
:
'brand_id'
,
},
filterMethod
:
function
(
val
,
item
,
index
,
prop
)
{
if
(
val
===
item
.
brand_name
.
toLowerCase
())
{
//把brand_name相同的搜索出来
return
true
;
}
return
item
.
brand_name
.
toLowerCase
().
indexOf
(
val
)
===
0
;
//不知道的就不管了
},
pageSize
:
30
,
data
:
brandList
,
on
:
function
(
brandList
)
{
...
...
@@ -173,5 +180,23 @@
}
return
false
;
});
form
.
on
(
'submit(addAndApplySupplier)'
,
function
(
data
)
{
layer
.
confirm
(
'确定直接申请审核吗?确定后会直接进入审核中的状态,无法进行二次修改'
,
function
(
index
)
{
let
url
=
'/api/supplier/AddSupplier?direct_apply=1'
;
let
res
=
ajax
(
url
,
data
.
field
);
if
(
!
res
)
{
layer
.
msg
(
'网络错误,请重试'
,
{
icon
:
6
});
}
else
{
if
(
res
.
err_code
===
0
)
{
admin
.
closeThisDialog
();
parent
.
layer
.
msg
(
res
.
err_msg
,
{
icon
:
6
});
}
else
{
parent
.
layer
.
msg
(
res
.
err_msg
,
{
icon
:
5
});
}
}
});
return
false
;
});
});
</script>
\ No newline at end of file
resources/views/web/SupplierDetail.blade.php
View file @
284efe14
...
...
@@ -134,7 +134,7 @@
</div>
<div
class=
"layui-col-md3"
>
@if ($supplier['region']==2)
<span
class=
"required_field"
>
*
</span>
所属省市 :{{$province_city}}
所属省市 :{{$province_city}}
@endif
</div>
</div>
...
...
resources/views/web/supplier/SupplierBase.blade.php
View file @
284efe14
...
...
@@ -340,6 +340,9 @@
<div
class=
"layui-col-md4"
style=
"margin-top: 30px"
>
<div
class=
"layui-row"
style=
"text-align: right"
>
<button
type=
"button"
class=
"layui-btn layui-btn submit-loading"
lay-submit
lay-filter=
"addAndApplySupplier"
>
申请审核
</button>
<button
type=
"button"
class=
"layui-btn layui-btn submit-loading"
lay-submit
lay-filter=
"addSupplier"
>
确认
</button>
<button
lay-filter=
"cancelAddSupplier"
...
...
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