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
00b5aa2f
authored
Jul 19, 2023
by
杨树贤
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
优化
parent
2f18cce7
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
6 deletions
app/Http/Transformers/SupplierTransformer.php
resources/views/script/SupplierListScript.blade.php
resources/views/web/SupplierDetail.blade.php
app/Http/Transformers/SupplierTransformer.php
View file @
00b5aa2f
...
...
@@ -34,7 +34,7 @@ class SupplierTransformer
$supplier
[
'viewed'
]
=
array_get
(
$viewData
,
$supplier
[
'supplier_id'
],
false
);
$supplier
=
$this
->
getStockupType
(
$supplier
);
$supplier
[
'supplier_group'
]
=
array_get
(
config
(
'fixed.SupplierGroup'
),
$supplier
[
'supplier_group'
],
'未设置'
);
$supplier
[
'purchase_type'
]
=
array_get
(
config
(
'field.PurchaseType'
),
$supplier
[
'purchase_type'
],
'无'
);
$supplier
[
'purchase_type
_name
'
]
=
array_get
(
config
(
'field.PurchaseType'
),
$supplier
[
'purchase_type'
],
'无'
);
$supplier
[
'region_name'
]
=
array_get
(
config
(
'fixed.Region'
),
$supplier
[
'region'
]);
$supplier
[
'create_time'
]
=
$supplier
[
'create_time'
]
?
date
(
'Y-m-d H:i:s'
,
$supplier
[
'create_time'
])
:
''
;
$supplier
[
'audit_time'
]
=
$supplier
[
'audit_time'
]
?
date
(
'Y-m-d H:i:s'
,
$supplier
[
'audit_time'
])
:
''
;
...
...
@@ -204,7 +204,8 @@ class SupplierTransformer
array_get
(
$supplier
,
'has_certification'
,
''
),
''
);
$supplier
[
'sku_tag_name'
]
=
array_get
(
config
(
'field.SkuTag'
),
array_get
(
$supplier
,
'sku_tag'
,
''
),
'无'
);
$supplier
[
'sku_mode_name'
]
=
array_get
(
config
(
'field.SkuMode'
),
array_get
(
$supplier
,
'sku_mode'
,
''
),
'无'
);
$supplier
[
'purchase_type'
]
=
array_get
(
config
(
'field.PurchaseType'
),
array_get
(
$supplier
,
'purchase_type'
,
''
),
'无'
);
// $supplier['purchase_type'] = array_get(config('field.PurchaseType'), array_get($supplier, 'purchase_type', ''), '无');
$supplier
[
'purchase_type_name'
]
=
array_get
(
config
(
'field.PurchaseType'
),
$supplier
[
'purchase_type'
],
'无'
);
return
$supplier
;
}
...
...
resources/views/script/SupplierListScript.blade.php
View file @
00b5aa2f
...
...
@@ -120,7 +120,7 @@
return
"
<
span
title
=
'" + data.stockup_type + "'
>
" + data.stockup_type + "
<
/span>
"
}
},
{
field
:
'purchase_type'
,
title
:
'代购类型'
,
align
:
'center'
,
width
:
80
},
{
field
:
'purchase_type
_name
'
,
title
:
'代购类型'
,
align
:
'center'
,
width
:
80
},
{
field
:
'has_quality_assurance_agreement'
,
title
:
'品质协议'
,
...
...
resources/views/web/SupplierDetail.blade.php
View file @
00b5aa2f
...
...
@@ -49,9 +49,8 @@
{{$supplier['stockup_type_name']}}
@endif
</div>
<div
class=
"layui-col-md2"
>
代购类型 : {{$supplier['purchase_type']}}
</div>
{{--
<div
class=
"layui-col-md2"
>
--}}
{{--
</div>
--}}
<div
class=
"layui-col-md2"
>
线上采购员 : {{$supplier['yunxin_channel_username']}}
</div>
...
...
@@ -201,6 +200,9 @@
<div
class=
"layui-col-md3"
>
<span
class=
"required_field"
>
*
</span>
合作类型 :{{$supplier['stockup_type_name']}}
</div>
<div
class=
"layui-col-md2"
>
代购类型 : {{$supplier['purchase_type_name']}}
</div>
</div>
<div
class=
"layui-row"
>
<div
class=
"layui-col-md2"
>
...
...
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