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
4c840c7d
authored
Apr 23, 2023
by
杨树贤
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
专营字段顺序问题
parent
245acfca
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
40 additions
and
31 deletions
config/field.php
resources/views/script/SkuListScript.blade.php
config/field.php
View file @
4c840c7d
...
...
@@ -216,5 +216,15 @@ return [
'supplier_telephone'
=>
'座机'
,
'supplier_qq'
=>
'QQ'
,
]
],
'SkuSource'
=>
[
1
=>
'代购采集'
,
2
=>
'代购API'
,
3
=>
'代购数据包'
,
4
=>
'专营API'
,
5
=>
'专营数据包'
,
6
=>
'专营后台上传'
,
7
=>
'专营云芯上传'
,
8
=>
'专营采集'
,
],
];
\ No newline at end of file
resources/views/script/SkuListScript.blade.php
View file @
4c840c7d
...
...
@@ -44,20 +44,13 @@
let
cols
=
[
{
type
:
'checkbox'
},
{
field
:
'goods_id'
,
title
:
'SKUID'
,
align
:
'center'
,
width
:
180
},
{
field
:
'cp_time'
,
title
:
'上架有效期'
,
align
:
'center'
,
width
:
180
},
{
field
:
'
goods_name'
,
title
:
'型号'
,
align
:
'center'
,
width
:
200
,
templet
:
function
(
data
)
{
return
"
<
a
href
=
'{{config('
website
.
FootstoneUrl
')}}/footstone/addsku?sku_id=" + data.goods_id + "'
style
=
'color:blue'
target
=
'_blank'
>
"
+ data.goods_name + "
<
/href>
"
field
:
'
status_name'
,
title
:
'状态'
,
align
:
'center'
,
width
:
70
,
templet
:
function
(
d
)
{
return
d
.
goods_status
==
1
?
"
<
a
class
=
'layui-btn layui-btn-xs'
>
上架
<
/a>"
:
"
<
a
class
=
'layui-btn layui-btn-xs layui-btn-danger'
>
下架
<
/a>"
;
}
},
{
field
:
'brand_name'
,
title
:
'品牌'
,
align
:
'center'
,
width
:
120
},
{
field
:
'encap'
,
title
:
'封装'
,
align
:
'center'
,
width
:
80
},
{
field
:
'goods_label_name'
,
title
:
'SKU显示类型'
,
align
:
'center'
,
width
:
120
},
{
field
:
'canal'
,
title
:
'供应商编码'
,
align
:
'center'
,
width
:
120
,
templet
:
function
(
data
)
{
if
(
data
.
canal
)
{
let
supplierId
=
data
.
canal
.
replace
(
/
\D
/g
,
''
);
...
...
@@ -68,49 +61,54 @@
}
}
},
{
field
:
'encoded_user_name'
,
title
:
'内部采购'
,
align
:
'center'
,
width
:
100
},
{
field
:
'goods_name'
,
title
:
'型号'
,
align
:
'center'
,
width
:
200
,
templet
:
function
(
data
)
{
return
"
<
a
href
=
'{{config('
website
.
FootstoneUrl
')}}/footstone/addsku?sku_id=" + data.goods_id + "'
style
=
'color:blue'
target
=
'_blank'
>
"
+ data.goods_name + "
<
/href>
"
}
},
{
field
:
'
moq'
,
title
:
'起订量'
,
align
:
'center'
,
width
:
7
0
field
:
'
brand_name'
,
title
:
'品牌'
,
align
:
'center'
,
width
:
12
0
},
{
field
:
'stock'
,
title
:
'库存数量'
,
align
:
'center'
,
width
:
80
},
{
field
:
'cn_price'
,
title
:
'国内含币价(¥)'
,
align
:
'center'
,
width
:
120
},
{
field
:
'us_price'
,
title
:
'香港交货价($)'
,
align
:
'center'
,
width
:
120
},
{
field
:
'moq'
,
title
:
'起订量'
,
align
:
'center'
,
width
:
70
},
{
field
:
'mpq'
,
title
:
'标准包装量'
,
align
:
'center'
,
width
:
120
},
{
field
:
'multiple'
,
title
:
'递增量'
,
align
:
'center'
,
width
:
90
},
{
field
:
'encap'
,
title
:
'封装'
,
align
:
'center'
,
width
:
80
},
{
field
:
'batch_sn'
,
title
:
'批次'
,
align
:
'center'
,
width
:
80
},
{
field
:
'goods_label_name'
,
title
:
'SKU显示类型'
,
align
:
'center'
,
width
:
120
},
{
field
:
'cn_delivery_time'
,
title
:
'大陆交期'
,
align
:
'center'
,
width
:
100
},
{
field
:
'hk_delivery_time'
,
title
:
'香港交期'
,
align
:
'center'
,
width
:
100
},
{
field
:
'is_prefer'
,
title
:
'精选'
,
align
:
'center'
,
width
:
70
,
templet
:
function
(
d
)
{
return
d
.
is_prefer
?
"是"
:
"否"
;
}
},
{
field
:
'sku_tags'
,
title
:
'标签'
,
align
:
'center'
,
width
:
150
,
templet
:
function
(
data
)
{
if
(
data
.
invalid_sku_tags
)
{
return
`<span>
${
data
.
valid_sku_tags
}
</span>`
+
` <span style="color: #D7D7D7">
${
data
.
invalid_sku_tags
}
</span>`
;
}
else
{
return
`<span>
${
data
.
valid_sku_tags
}
</span>`
}
}
},
{
field
:
'status_name'
,
title
:
'状态'
,
align
:
'center'
,
width
:
70
,
templet
:
function
(
d
)
{
return
d
.
goods_status
==
1
?
"
<
a
class
=
'layui-btn layui-btn-xs'
>
上架
<
/a>"
:
"
<
a
class
=
'layui-btn layui-btn-xs layui-btn-danger'
>
下架
<
/a>"
;
}
},
{
field
:
'is_prefer'
,
title
:
'精选'
,
align
:
'center'
,
width
:
70
,
templet
:
function
(
d
)
{
return
d
.
is_prefer
?
"是"
:
"否"
;
}
},
{
field
:
'encoded_user_name'
,
title
:
'内部采购'
,
align
:
'center'
,
width
:
100
},
{
field
:
'update_time'
,
title
:
'更新时间'
,
align
:
'center'
,
width
:
150
},
{
field
:
'mpq'
,
title
:
'标准包装量'
,
align
:
'center'
,
width
:
120
},
{
field
:
'batch_sn'
,
title
:
'批次'
,
align
:
'center'
,
width
:
80
},
{
field
:
'audit_time'
,
title
:
'审核时间'
,
align
:
'center'
,
width
:
150
},
{
field
:
'audit_user'
,
title
:
'审核人'
,
align
:
'center'
,
width
:
100
},
// {field: 'create_time', title: '上传时间', align: 'center', width: 150},
{
field
:
' access_way'
,
title
:
'接入方式'
,
align
:
'center'
,
width
:
150
,
templet
:
function
(
d
)
{
return
"人工上传"
;
}
},
{
field
:
'audit_user'
,
title
:
'审核人'
,
align
:
'center'
,
width
:
100
},
{
field
:
'update_time'
,
title
:
'更新时间'
,
align
:
'center'
,
width
:
150
},
{
field
:
'audit_time'
,
title
:
'审核时间'
,
align
:
'center'
,
width
:
150
},
{
field
:
'cp_time'
,
title
:
'上架有效期'
,
align
:
'center'
,
width
:
180
},
];
let
currentPage
=
0
;
table
.
render
({
...
...
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