|
|
@@ -5,6 +5,7 @@ use common\helpers\Tool;
|
|
|
use common\libs\dataList\DataListInterface;
|
|
|
use common\models\ShopGoods;
|
|
|
use common\libs\dataList\column\DateTime;
|
|
|
+use common\models\ShopGoodsNature;
|
|
|
|
|
|
class GoodsList extends \common\libs\dataList\DataList implements DataListInterface
|
|
|
{
|
|
|
@@ -110,20 +111,6 @@ class GoodsList extends \common\libs\dataList\DataList implements DataListInterf
|
|
|
];
|
|
|
},
|
|
|
],
|
|
|
- 'SELL_PRICE' => [
|
|
|
- 'header' => \Yii::t('ctx', 'shopListSellPrice'), // 商品价格
|
|
|
- 'headerOther' => [
|
|
|
- 'width' => '150',
|
|
|
- ],
|
|
|
- 'value' => function ($row) {
|
|
|
- return Tool::formatPrice($row['SELL_PRICE']);
|
|
|
- },
|
|
|
- 'valueOther' => function ($row) {
|
|
|
- return [
|
|
|
- 'tag' => ['type' => 'danger', 'size' => 'small', 'class' => 'no-border']
|
|
|
- ];
|
|
|
- },
|
|
|
- ],
|
|
|
'PRICE_PV' => [
|
|
|
'header' => \Yii::t('ctx', 'shopListProductsBv'), // 产品BV
|
|
|
'headerOther' => [
|
|
|
@@ -138,34 +125,6 @@ class GoodsList extends \common\libs\dataList\DataList implements DataListInterf
|
|
|
];
|
|
|
},
|
|
|
],
|
|
|
-// 'TAX_RATE' => [
|
|
|
-// 'header' => \Yii::t('ctx', 'shopListTaxRate'), // 税率
|
|
|
-// 'headerOther' => [
|
|
|
-// 'width' => '150',
|
|
|
-// ],
|
|
|
-// 'value' => function ($row) {
|
|
|
-// return Tool::formatPrice($row['TAX_RATE']);
|
|
|
-// },
|
|
|
-// 'valueOther' => function ($row) {
|
|
|
-// return [
|
|
|
-// 'tag' => ['type' => 'danger', 'size' => 'small', 'class' => 'no-border']
|
|
|
-// ];
|
|
|
-// },
|
|
|
-// ],
|
|
|
-// 'TAX' => [
|
|
|
-// 'header' => \Yii::t('ctx', 'shopListTax'), // 税额
|
|
|
-// 'headerOther' => [
|
|
|
-// 'width' => '150',
|
|
|
-// ],
|
|
|
-// 'value' => function ($row) {
|
|
|
-// return Tool::formatPrice($row['SELL_PRICE'] - $row['SELL_PRICE'] / (1 + $row['TAX_RATE'] / 100));
|
|
|
-// },
|
|
|
-// 'valueOther' => function ($row) {
|
|
|
-// return [
|
|
|
-// 'tag' => ['type' => 'danger', 'size' => 'small', 'class' => 'no-border']
|
|
|
-// ];
|
|
|
-// },
|
|
|
-// ],
|
|
|
'STORE_NUMS' => [
|
|
|
'header' => \Yii::t('ctx', 'shopListInventory'), // 库存
|
|
|
'headerOther' => [
|
|
|
@@ -223,7 +182,6 @@ class GoodsList extends \common\libs\dataList\DataList implements DataListInterf
|
|
|
], // 状态,已下架,已上架
|
|
|
'GOODS_NAME'=> ['name'=> \Yii::t('ctx', 'shopListProductName')], // 商品名称
|
|
|
'GOODS_NO'=> ['name'=> \Yii::t('ctx', 'shopListProductsCode')], // 商品编号
|
|
|
- 'SELL_PRICE'=> ['name'=> \Yii::t('ctx', 'shopListSellPrice')], // 销售价格
|
|
|
'PRICE_PV'=> ['name'=> \Yii::t('ctx', 'shopListProductsBv')], // 销售PV
|
|
|
'CATEGORY_TYPE' => [
|
|
|
'name' => \Yii::t('ctx', 'shopListProductCategory'),
|