|
@@ -13,7 +13,7 @@ class GoodsList extends \common\libs\dataList\DataList implements DataListInterf
|
|
|
* @return string
|
|
* @return string
|
|
|
*/
|
|
*/
|
|
|
public function getListName(){
|
|
public function getListName(){
|
|
|
- return '商品列表';
|
|
|
|
|
|
|
+ return 'Products list';//商品列表
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
/**
|
|
@@ -38,11 +38,11 @@ class GoodsList extends \common\libs\dataList\DataList implements DataListInterf
|
|
|
$this->columns = [
|
|
$this->columns = [
|
|
|
'ID' => null,
|
|
'ID' => null,
|
|
|
'GOODS_NAME' => [
|
|
'GOODS_NAME' => [
|
|
|
- 'header' => '商品名称',
|
|
|
|
|
|
|
+ 'header' => 'Products name',//商品名称
|
|
|
'headerOther' => ['width' => '200'],
|
|
'headerOther' => ['width' => '200'],
|
|
|
],
|
|
],
|
|
|
'GOODS_NO' => [
|
|
'GOODS_NO' => [
|
|
|
- 'header' => '商品编号',
|
|
|
|
|
|
|
+ 'header' => 'Products code',//商品编号
|
|
|
'headerOther' => ['width' => '200'],
|
|
'headerOther' => ['width' => '200'],
|
|
|
],
|
|
],
|
|
|
// 'TYPE' => [
|
|
// 'TYPE' => [
|
|
@@ -53,7 +53,7 @@ class GoodsList extends \common\libs\dataList\DataList implements DataListInterf
|
|
|
// 'headerOther' => ['width' => '150'],
|
|
// 'headerOther' => ['width' => '150'],
|
|
|
// ],
|
|
// ],
|
|
|
'SELL_DISCOUNT' => [
|
|
'SELL_DISCOUNT' => [
|
|
|
- 'header' => '商品折扣',
|
|
|
|
|
|
|
+ 'header' => 'Products discount',//商品折扣
|
|
|
'value' => function($row) {
|
|
'value' => function($row) {
|
|
|
$discount = 0;
|
|
$discount = 0;
|
|
|
if ($row['TYPE'] == 1) {
|
|
if ($row['TYPE'] == 1) {
|
|
@@ -69,7 +69,7 @@ class GoodsList extends \common\libs\dataList\DataList implements DataListInterf
|
|
|
'headerOther' => ['width' => '150'],
|
|
'headerOther' => ['width' => '150'],
|
|
|
],
|
|
],
|
|
|
'GIFT_TYPE' => [
|
|
'GIFT_TYPE' => [
|
|
|
- 'header' => '商品类型',
|
|
|
|
|
|
|
+ 'header' => 'Products type',//商品类型
|
|
|
'value' => function($row){
|
|
'value' => function($row){
|
|
|
$giftType = ShopGoods::GIFT_TYPE;
|
|
$giftType = ShopGoods::GIFT_TYPE;
|
|
|
$gift = explode(',',$row['GIFT_TYPE']);
|
|
$gift = explode(',',$row['GIFT_TYPE']);
|
|
@@ -83,7 +83,7 @@ class GoodsList extends \common\libs\dataList\DataList implements DataListInterf
|
|
|
'headerOther' => ['width' => '150'],
|
|
'headerOther' => ['width' => '150'],
|
|
|
],
|
|
],
|
|
|
'CATEGORY_TYPE' => [
|
|
'CATEGORY_TYPE' => [
|
|
|
- 'header' => '商品分类',
|
|
|
|
|
|
|
+ 'header' => 'Products Category',//商品分类
|
|
|
'value' => function($row) {
|
|
'value' => function($row) {
|
|
|
$categoryType = array_column(ShopGoods::CATEGORY_TYPE, NULL, 'id');
|
|
$categoryType = array_column(ShopGoods::CATEGORY_TYPE, NULL, 'id');
|
|
|
return $categoryType[$row['CATEGORY_TYPE']]['name'] ?? '';
|
|
return $categoryType[$row['CATEGORY_TYPE']]['name'] ?? '';
|
|
@@ -91,7 +91,7 @@ class GoodsList extends \common\libs\dataList\DataList implements DataListInterf
|
|
|
'headerOther' => ['width' => '150'],
|
|
'headerOther' => ['width' => '150'],
|
|
|
],
|
|
],
|
|
|
'SELL_TYPE' => [
|
|
'SELL_TYPE' => [
|
|
|
- 'header' => '购买方式',
|
|
|
|
|
|
|
+ 'header' => 'Purchase method',//购买方式
|
|
|
'value' => function($row){
|
|
'value' => function($row){
|
|
|
$sellType = ShopGoods::SALE_TYPE;
|
|
$sellType = ShopGoods::SALE_TYPE;
|
|
|
$sel = explode(',',$row['SELL_TYPE']);
|
|
$sel = explode(',',$row['SELL_TYPE']);
|
|
@@ -104,7 +104,7 @@ class GoodsList extends \common\libs\dataList\DataList implements DataListInterf
|
|
|
'headerOther' => ['width' => '150'],
|
|
'headerOther' => ['width' => '150'],
|
|
|
],
|
|
],
|
|
|
'SELL_PRICE' => [
|
|
'SELL_PRICE' => [
|
|
|
- 'header' => '销售价格',
|
|
|
|
|
|
|
+ 'header' => 'Products Prices ',//商品价格
|
|
|
'headerOther' => [
|
|
'headerOther' => [
|
|
|
'width' => '150',
|
|
'width' => '150',
|
|
|
],
|
|
],
|
|
@@ -118,7 +118,7 @@ class GoodsList extends \common\libs\dataList\DataList implements DataListInterf
|
|
|
},
|
|
},
|
|
|
],
|
|
],
|
|
|
'PRICE_PV' => [
|
|
'PRICE_PV' => [
|
|
|
- 'header' => '销售PV',
|
|
|
|
|
|
|
+ 'header' => 'Products BV',//产品BV
|
|
|
'headerOther' => [
|
|
'headerOther' => [
|
|
|
'width' => '150',
|
|
'width' => '150',
|
|
|
],
|
|
],
|
|
@@ -132,22 +132,22 @@ class GoodsList extends \common\libs\dataList\DataList implements DataListInterf
|
|
|
},
|
|
},
|
|
|
],
|
|
],
|
|
|
'STORE_NUMS' => [
|
|
'STORE_NUMS' => [
|
|
|
- 'header' => '库存',
|
|
|
|
|
|
|
+ 'header' => 'Inventory',//库存
|
|
|
'headerOther' => [
|
|
'headerOther' => [
|
|
|
'width' => '110',
|
|
'width' => '110',
|
|
|
],
|
|
],
|
|
|
],
|
|
],
|
|
|
'STATUS' => [
|
|
'STATUS' => [
|
|
|
- 'header' => '状态',
|
|
|
|
|
|
|
+ 'header' => 'STATUS',//状态
|
|
|
'value' => function($row) {
|
|
'value' => function($row) {
|
|
|
- return $row['STATUS'] == 1 ? '已上架' : '已下架';
|
|
|
|
|
|
|
+ return $row['STATUS'] == 1 ? 'On sale' : 'Sold out'; //已上架:已下架
|
|
|
},
|
|
},
|
|
|
'headerOther' => [
|
|
'headerOther' => [
|
|
|
'width' => '110',
|
|
'width' => '110',
|
|
|
],
|
|
],
|
|
|
],
|
|
],
|
|
|
'UPDATED_AT' => [
|
|
'UPDATED_AT' => [
|
|
|
- 'header' => '更新时间',
|
|
|
|
|
|
|
+ 'header' => 'Update time',//更新时间
|
|
|
'value' => function ($row) {
|
|
'value' => function ($row) {
|
|
|
return (new DateTime([
|
|
return (new DateTime([
|
|
|
'value' => $row['UPDATED_AT'],
|
|
'value' => $row['UPDATED_AT'],
|
|
@@ -169,14 +169,15 @@ class GoodsList extends \common\libs\dataList\DataList implements DataListInterf
|
|
|
if(!$this->filterTypes){
|
|
if(!$this->filterTypes){
|
|
|
$this->filterTypes = [
|
|
$this->filterTypes = [
|
|
|
//'TYPE' => ['isUserTable' => false, 'name' => '商品来源', 'other' => 'select', 'selectData' => [['id' => 1, 'name' => '国内商品'], ['id' => 2, 'name' => '进口商品']]],
|
|
//'TYPE' => ['isUserTable' => false, 'name' => '商品来源', 'other' => 'select', 'selectData' => [['id' => 1, 'name' => '国内商品'], ['id' => 2, 'name' => '进口商品']]],
|
|
|
- 'GIFT_TYPE' => ['isUserTable' => false, 'name' => '商品类型', 'other' => 'select', 'selectData' => [['id' => 1, 'name' => '报单区'], ['id' => 2, 'name' => '复消区'], ['id' => 3, 'name' => '工作室报单'], ['id' => 4, 'name' => '工作室复消']]],
|
|
|
|
|
- 'STATUS'=> ['name'=> '状态', 'other'=> 'select', 'selectData'=> [['id'=> 0, 'name'=> '已下架'],['id'=> 1, 'name'=> '已上架']]],
|
|
|
|
|
- 'GOODS_NAME'=> ['name'=> '商品名称'],
|
|
|
|
|
- 'GOODS_NO'=> ['name'=> '商品编号'],
|
|
|
|
|
|
|
+ //'GIFT_TYPE' => ['isUserTable' => false, 'name' => '商品类型', 'other' => 'select', 'selectData' => [['id' => 1, 'name' => '报单区'], ['id' => 2, 'name' => '复消区'], ['id' => 3, 'name' => '工作室报单'], ['id' => 4, 'name' => '工作室复消']]],
|
|
|
|
|
+ 'GIFT_TYPE' => ['isUserTable' => false, 'name' => 'Products type', 'other' => 'select', 'selectData' => [['id' => 1, 'name' => 'Entry area'], ['id' => 2, 'name' => 'Reselling area'], ['id' => 3, 'name' => 'Office Entry area'], ['id' => 4, 'name' => 'Office Reselling area']]],
|
|
|
|
|
+ 'STATUS'=> ['name'=> 'Status', 'other'=> 'select', 'selectData'=> [['id'=> 0, 'name'=> 'Sold out'],['id'=> 1, 'name'=> 'On sale']]],//状态,已下架,已上架
|
|
|
|
|
+ 'GOODS_NAME'=> ['name'=> 'Products name'],//商品名称
|
|
|
|
|
+ 'GOODS_NO'=> ['name'=> 'Products code'],//商品编号
|
|
|
// 'SELL_TYPE'=> ['name'=> '复消购买方式', 'other'=> 'select', 'selectData'=> [['id'=> 1, 'name'=> '余额购买'],['id'=> 2, 'name'=> '积分购买']]],
|
|
// 'SELL_TYPE'=> ['name'=> '复消购买方式', 'other'=> 'select', 'selectData'=> [['id'=> 1, 'name'=> '余额购买'],['id'=> 2, 'name'=> '积分购买']]],
|
|
|
- 'SELL_PRICE'=> ['name'=> '销售价格'],
|
|
|
|
|
- 'PRICE_PV'=> ['name'=> '销售PV'],
|
|
|
|
|
- 'CATEGORY_TYPE' => ['name' => '商品分类', 'other'=> 'select', 'selectData'=> ShopGoods::CATEGORY_TYPE],
|
|
|
|
|
|
|
+ 'SELL_PRICE'=> ['name'=> 'Products Prices'],//销售价格
|
|
|
|
|
+ 'PRICE_PV'=> ['name'=> 'Products BV'],//销售PV
|
|
|
|
|
+ 'CATEGORY_TYPE' => ['name' => 'Products Category', 'other'=> 'select', 'selectData'=> ShopGoods::CATEGORY_TYPE],//商品分类
|
|
|
];
|
|
];
|
|
|
}
|
|
}
|
|
|
return $this->filterTypes;
|
|
return $this->filterTypes;
|