Commit 4c840c7d by 杨树贤

专营字段顺序问题

parent 245acfca
...@@ -216,5 +216,15 @@ return [ ...@@ -216,5 +216,15 @@ return [
'supplier_telephone' => '座机', 'supplier_telephone' => '座机',
'supplier_qq' => 'QQ', 'supplier_qq' => 'QQ',
] ],
'SkuSource' => [
1 => '代购采集',
2 => '代购API',
3 => '代购数据包',
4 => '专营API',
5 => '专营数据包',
6 => '专营后台上传',
7 => '专营云芯上传',
8 => '专营采集',
],
]; ];
\ No newline at end of file
...@@ -44,20 +44,13 @@ ...@@ -44,20 +44,13 @@
let cols = [ let cols = [
{type: 'checkbox'}, {type: 'checkbox'},
{field: 'goods_id', title: 'SKUID', align: 'center', width: 180}, {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) { field: 'status_name', title: '状态', align: 'center', width: 70, templet: function (d) {
return "<a href='{{config('website.FootstoneUrl')}}/footstone/addsku?sku_id=" + data.goods_id + "' style='color:blue' target='_blank'>" return d.goods_status == 1 ? "<a class='layui-btn layui-btn-xs'>上架</a>" :
+ data.goods_name + "</href>" "<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) { field: 'canal', title: '供应商编码', align: 'center', width: 120, templet: function (data) {
if (data.canal) { if (data.canal) {
let supplierId = data.canal.replace(/\D/g, ''); let supplierId = data.canal.replace(/\D/g, '');
...@@ -68,49 +61,54 @@ ...@@ -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: 70 field: 'brand_name', title: '品牌', align: 'center', width: 120
}, },
{field: 'stock', title: '库存数量', align: 'center', width: 80}, {field: 'stock', title: '库存数量', align: 'center', width: 80},
{ {
field: 'cn_price', title: '国内含币价(¥)', align: 'center', width: 120 field: 'cn_price', title: '国内含币价(¥)', align: 'center', width: 120
}, },
{field: 'us_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: 'cn_delivery_time', title: '大陆交期', align: 'center', width: 100},
{field: 'hk_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) { field: 'sku_tags', title: '标签', align: 'center', width: 150, templet: function (data) {
if (data.invalid_sku_tags) { if (data.invalid_sku_tags) {
return `<span>${data.valid_sku_tags}</span>` + ` <span style="color: #D7D7D7">${data.invalid_sku_tags}</span>`; return `<span>${data.valid_sku_tags}</span>` + ` <span style="color: #D7D7D7">${data.invalid_sku_tags}</span>`;
} else { } else {
return `<span>${data.valid_sku_tags}</span>` 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) { field: ' access_way', title: '接入方式', align: 'center', width: 150, templet: function (d) {
return "人工上传"; 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; let currentPage = 0;
table.render({ table.render({
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment