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
50f2a90b
authored
Mar 11, 2022
by
杨树贤
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
修复bug
parent
01281b32
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
20 additions
and
12 deletions
app/Http/Services/SupplierAuditService.php
app/Http/Transformers/SupplierTransformer.php
resources/views/script/SupplierListScript.blade.php
resources/views/script/supplier/SupplierBaseScript.blade.php
resources/views/web/supplier/SupplierBase.blade.php
app/Http/Services/SupplierAuditService.php
View file @
50f2a90b
...
...
@@ -66,6 +66,11 @@ class SupplierAuditService
if
(
$result
)
{
//如果状态是复审
if
(
$supplier
[
'status'
]
==
SupplierChannelModel
::
STATUS_NEED_REVIEW
)
{
if
(
$status
==
SupplierChannelModel
::
STATUS_PASSED
)
{
SupplierChannelModel
::
where
(
'supplier_id'
,
$supplierId
)
->
update
([
'level'
=>
'E'
,
]);
}
$auditStatus
=
$status
==
SupplierChannelModel
::
STATUS_PASSED
?
'复审通过'
:
'复审不通过,原因是 : '
.
$rejectReason
;
$action
=
'复审供应商'
;
}
else
{
...
...
@@ -222,8 +227,8 @@ class SupplierAuditService
return
true
;
}
foreach
(
$oldPayTypeData
as
$key
=>
$data
)
{
if
(
array_diff
(
$data
,
array_get
(
$payTypeData
,
$key
)))
{
return
true
;
if
(
array_diff
(
$data
,
array_get
(
$payTypeData
,
$key
)))
{
return
true
;
}
}
}
...
...
app/Http/Transformers/SupplierTransformer.php
View file @
50f2a90b
...
...
@@ -127,8 +127,8 @@ class SupplierTransformer
$log
=
$logModel
->
where
(
'supplier_id'
,
$supplier
[
'supplier_id'
])
->
where
(
'type'
,
LogModel
::
UPDATE_OPERATE
)
->
orderBy
(
'id'
,
'desc'
)
->
first
();
$supplier
[
'last_update_name'
]
=
$log
[
'admin_name'
]
?:
'无'
;
$supplier
[
'last_update_time'
]
=
empty
(
$supplier
[
'last_update_time'
])
?
date
(
'Y-m-d H:i:s'
,
$log
[
'add_time'
])
:
'无'
;
$supplier
[
'last_update_time'
]
=
empty
(
$supplier
[
'last_update_time'
])
?
(
$log
[
'add_time'
]
?
date
(
'Y-m-d H:i:s'
,
$log
[
'add_time'
])
:
'无'
)
:
'无'
;
$supplier
[
'has_certification_name'
]
=
array_get
(
config
(
'fixed.CertificationStatus'
),
array_get
(
$supplier
,
'has_certification'
,
''
),
''
);
$supplier
[
'sku_tag_name'
]
=
array_get
(
config
(
'field.SkuTag'
),
array_get
(
$supplier
,
'sku_tag'
,
''
),
'无'
);
...
...
resources/views/script/SupplierListScript.blade.php
View file @
50f2a90b
...
...
@@ -107,6 +107,11 @@
{
field
:
'has_sku'
,
title
:
'SKU上传'
,
align
:
'center'
,
width
:
80
},
{
field
:
'uploaded_sku'
,
title
:
'SKU合作'
,
align
:
'center'
,
width
:
80
,
templet
:
function
(
data
)
{
return
data
.
uploaded_sku
>
0
?
'是'
:
'否'
;
}
},
{
field
:
'status_name'
,
title
:
'状态'
,
align
:
'center'
,
width
:
80
,
templet
:
function
(
data
)
{
if
(
data
.
status
===
3
)
{
return
"
<
span
style
=
'color: red'
title
=
'" + data.reject_reason + "'
>
" + data.status_name + "
<
/span>
"
...
...
resources/views/script/supplier/SupplierBaseScript.blade.php
View file @
50f2a90b
...
...
@@ -65,14 +65,12 @@
});
//监听供应商类别单选,如果是临时供应商,附件可以不上传
form
.
on
(
'radio(is_type)'
,
function
(
data
){
console
.
log
(
data
.
elem
);
//得到radio原始DOM对象
console
.
log
(
data
.
value
);
//被点击的radio的value值
let
isType
=
data
.
value
;
if
(
isType
===
'1'
)
{
$
(
'#attachment_required_span'
).
hide
();
}
else
{
form
.
on
(
'radio(supplier_type)'
,
function
(
data
){
let
supplier_type
=
data
.
value
;
if
(
supplier_type
===
'1'
)
{
$
(
'#attachment_required_span'
).
show
();
}
else
{
$
(
'#attachment_required_span'
).
hide
();
}
});
...
...
resources/views/web/supplier/SupplierBase.blade.php
View file @
50f2a90b
...
...
@@ -19,7 +19,7 @@
@endif
<div
class=
"layui-form-item"
>
@inject('singleSelectPresenter','App\Presenters\SingleSelectPresenter')
{!! $singleSelectPresenter->render('supplier_type','供应商类别',!empty($supplier)?array_get($supplier,'supplier_type',0):'',config('field.SupplierType'),['required'=>true]) !!}
{!! $singleSelectPresenter->render('supplier_type','供应商类别',!empty($supplier)?array_get($supplier,'supplier_type',0):'
1
',config('field.SupplierType'),['required'=>true]) !!}
</div>
<div
class=
"layui-form-item"
>
<label
class=
"layui-form-label"
><span
class=
"require"
>
*
</span>
供应商名称 :
</label>
...
...
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