|
|
@@ -86,28 +86,28 @@ class OrderList extends \common\libs\dataList\DataList implements DataListInterf
|
|
|
'ID' => null,
|
|
|
'DEC_SN' => null,
|
|
|
'USER_NAME' => [
|
|
|
- 'header' => 'Member Code', // 会员编号
|
|
|
+ 'header' => \Yii::t('ctx', 'shopOrderListMemberCode'), // 会员编号
|
|
|
'headerOther' => ['width' => '120'],
|
|
|
],
|
|
|
'DEC_USER_NAME' => [
|
|
|
- 'header' => 'Stockist', // 报单中心
|
|
|
+ 'header' => \Yii::t('ctx', 'shopOrderListStockist'), // 报单中心
|
|
|
'headerOther' => ['width' => '120'],
|
|
|
],
|
|
|
'CREATE_USER' => [
|
|
|
- 'header' => 'Creator No', // 创建人编号
|
|
|
+ 'header' => \Yii::t('ctx', 'shopOrderListCreatorNo'), // 创建人编号
|
|
|
'headerOther' => ['width' => '120'],
|
|
|
],
|
|
|
'CREATE_USER_NAME' => [
|
|
|
- 'header' => 'Creator Name', // 创建人姓名
|
|
|
+ 'header' => \Yii::t('ctx', 'shopOrderListCreatorName'), // 创建人姓名
|
|
|
'headerOther' => ['width' => '120'],
|
|
|
],
|
|
|
'SN' => [
|
|
|
- 'header' => 'Order Code', // 订单号
|
|
|
+ 'header' => \Yii::t('ctx', 'shopOrderListOrderCode'), // 订单号
|
|
|
'headerOther' => ['width' => '200'],
|
|
|
],
|
|
|
// 'STATUS' => null,
|
|
|
'STATUS' => [
|
|
|
- 'header' => 'Status', // 订单状态
|
|
|
+ 'header' => \Yii::t('ctx', 'shopOrderListOrderStatus'), // 订单状态
|
|
|
'headerOther' => [
|
|
|
'width' => '110',
|
|
|
],
|
|
|
@@ -116,72 +116,72 @@ class OrderList extends \common\libs\dataList\DataList implements DataListInterf
|
|
|
},
|
|
|
],
|
|
|
'SKU_CODE' => [
|
|
|
- 'header' => 'Product Code', // 存货编码
|
|
|
+ 'header' => \Yii::t('ctx', 'shopOrderListProductCode'), // 存货编码
|
|
|
'headerOther' => ['width' => '150'],
|
|
|
],
|
|
|
'GOODS_TITLE' => [
|
|
|
- 'header' => 'Product Name', // 存货名称
|
|
|
+ 'header' => \Yii::t('ctx', 'shopOrderListProductName'), // 存货名称
|
|
|
'headerOther' => ['width' => '200'],
|
|
|
],
|
|
|
'CONSIGNEE' => [
|
|
|
- 'header' => 'Recipient', // 收货人
|
|
|
+ 'header' => \Yii::t('ctx', 'shopOrderListRecipient'), // 收货人
|
|
|
'headerOther' => [
|
|
|
'width' => '150',
|
|
|
],
|
|
|
],
|
|
|
'MOBILE' => [
|
|
|
- 'header' => 'Contact 1', // 联系方式1
|
|
|
+ 'header' => \Yii::t('ctx', 'shopOrderListContactOne'), // 联系方式1
|
|
|
'headerOther' => [
|
|
|
'width' => '150',
|
|
|
],
|
|
|
],
|
|
|
'TEL' => [
|
|
|
- 'header' => 'Contact 2', // 联系方式2
|
|
|
+ 'header' => \Yii::t('ctx', 'shopOrderListContactTwo'), // 联系方式2
|
|
|
],
|
|
|
'PROVINCE' => [
|
|
|
- 'header' => 'State', // 州
|
|
|
+ 'header' => \Yii::t('ctx', 'shopOrderListState'), // 州
|
|
|
'headerOther' => ['width' => '120'],
|
|
|
'value' => function ($row) use($regionConfig) {
|
|
|
return $regionConfig[$row['PROVINCE']]['REGION_NAME'] ?? '';
|
|
|
},
|
|
|
],
|
|
|
'CITY' => [
|
|
|
- 'header' => 'Local Government Area', // 地方政府
|
|
|
+ 'header' => \Yii::t('ctx', 'shopOrderListLocalGovernmentArea'), // 地方政府
|
|
|
'headerOther' => ['width' => '170'],
|
|
|
'value' => function ($row) use($regionConfig) {
|
|
|
return $regionConfig[$row['CITY']]['REGION_NAME'] ?? '';
|
|
|
},
|
|
|
],
|
|
|
'COUNTY' => [
|
|
|
- 'header' => 'City', // 区
|
|
|
+ 'header' => \Yii::t('ctx', 'shopOrderListCity'), // 区
|
|
|
'headerOther' => ['width' => '120'],
|
|
|
'value' => function ($row) use($regionConfig) {
|
|
|
return $regionConfig[$row['COUNTY']]['REGION_NAME'] ?? '';
|
|
|
},
|
|
|
],
|
|
|
'ADDRESS' => [
|
|
|
- 'header' => 'Detailed Address', // 详细地址
|
|
|
+ 'header' => \Yii::t('ctx', 'shopOrderListDetailedAddress'), // 详细地址
|
|
|
'headerOther' => [
|
|
|
'width' => '300',
|
|
|
],
|
|
|
],
|
|
|
'PERIOD_NUM' => [
|
|
|
- 'header' => 'Period', // 期数
|
|
|
+ 'header' => \Yii::t('ctx', 'shopOrderListPeriod'), // 期数
|
|
|
],
|
|
|
'ORDER_TYPE' => [
|
|
|
- 'header' => 'Order Type', // 订单类型
|
|
|
+ 'header' => \Yii::t('ctx', 'shopOrderListOrderType'), // 订单类型
|
|
|
'headerOther' => ['width' => '140'],
|
|
|
'value' => function ($row) {
|
|
|
switch ($row['ORDER_TYPE']) {
|
|
|
case 'ZC':
|
|
|
- return 'Welcome Pack';
|
|
|
+ return \Yii::t('ctx', 'shopOrderListOrderTypeZc');
|
|
|
case 'FX':
|
|
|
- return in_array($row['PAY_TYPE'], ['cash', 'pay_stack']) ? 'Repeat Purchase': 'Points'; //'重消' : '积分'
|
|
|
+ return in_array($row['PAY_TYPE'], ['cash', 'pay_stack']) ? \Yii::t('ctx', 'shopOrderListOrderTypeRepeatPurchase'): \Yii::t('ctx', 'shopOrderListOrderTypePoints'); //'重消' : '积分'
|
|
|
}
|
|
|
},
|
|
|
],
|
|
|
'CREATED_AT' => [
|
|
|
- 'header' => 'Creation Time', // 创建时间
|
|
|
+ 'header' => \Yii::t('ctx', 'shopOrderListCreationTime'), // 创建时间
|
|
|
'value' => function ($row) {
|
|
|
return (new DateTime([
|
|
|
'value' => $row['CREATED_AT'],
|
|
|
@@ -190,14 +190,14 @@ class OrderList extends \common\libs\dataList\DataList implements DataListInterf
|
|
|
'headerOther' => ['width' => '190'],
|
|
|
],
|
|
|
'PAY_TYPE' => [
|
|
|
- 'header' => 'Pay Type', // 支付方式
|
|
|
+ 'header' => \Yii::t('ctx', 'shopOrderListPayType'), // 支付方式
|
|
|
'value' => function ($row) {
|
|
|
return ShopGoods::payTypes()[$row['PAY_TYPE']]['name'] ?? ShopGoods::payTypes()['cash']['name'];
|
|
|
},
|
|
|
'headerOther' => ['width' => '190'],
|
|
|
],
|
|
|
'PAY_AT' => [
|
|
|
- 'header' => 'Payment Time', // 支付时间
|
|
|
+ 'header' => \Yii::t('ctx', 'shopOrderListPaymentTime'), // 支付时间
|
|
|
'value' => function ($row) {
|
|
|
return (new DateTime([
|
|
|
'value' => $row['PAY_AT'],
|
|
|
@@ -206,7 +206,7 @@ class OrderList extends \common\libs\dataList\DataList implements DataListInterf
|
|
|
'headerOther' => ['width' => '190'],
|
|
|
],
|
|
|
'DELIVERY_AT' => [
|
|
|
- 'header' => 'Delivery Time', // 发货时间
|
|
|
+ 'header' => \Yii::t('ctx', 'shopOrderListDeliveryTime'), // 发货时间
|
|
|
'value' => function ($row) {
|
|
|
return (new DateTime([
|
|
|
'value' => $row['DELIVERY_AT'],
|
|
|
@@ -215,11 +215,11 @@ class OrderList extends \common\libs\dataList\DataList implements DataListInterf
|
|
|
'headerOther' => ['width' => '190'],
|
|
|
],
|
|
|
'BUY_NUMS' => [
|
|
|
- 'header' => 'Qty', // 数量
|
|
|
+ 'header' => \Yii::t('ctx', 'shopOrderListQty'), // 数量
|
|
|
'headerOther' => ['width' => '100'],
|
|
|
],
|
|
|
'REAL_PRICE' => [
|
|
|
- 'header' => 'Item Pricing', // 商品单价
|
|
|
+ 'header' => \Yii::t('ctx', 'shopOrderListItemPricing'), // 商品单价
|
|
|
'headerOther' => [
|
|
|
'width' => '150',
|
|
|
],
|
|
|
@@ -233,7 +233,7 @@ class OrderList extends \common\libs\dataList\DataList implements DataListInterf
|
|
|
},
|
|
|
],
|
|
|
'TOTAL_PRICE' => [
|
|
|
- 'header' => 'Total Price', // 订单总价
|
|
|
+ 'header' => \Yii::t('ctx', 'shopOrderListTotalPrice'), // 订单总价
|
|
|
'headerOther' => [
|
|
|
'width' => '150',
|
|
|
],
|
|
|
@@ -247,7 +247,7 @@ class OrderList extends \common\libs\dataList\DataList implements DataListInterf
|
|
|
},
|
|
|
],
|
|
|
'REAL_PV' => [
|
|
|
- 'header' => 'BV Amount', // 商品金额
|
|
|
+ 'header' => \Yii::t('ctx', 'shopOrderListBVAmount'), // 商品金额
|
|
|
'headerOther' => [
|
|
|
'width' => '150',
|
|
|
],
|
|
|
@@ -261,7 +261,7 @@ class OrderList extends \common\libs\dataList\DataList implements DataListInterf
|
|
|
},
|
|
|
],
|
|
|
'STANDARD_PRICE' => [
|
|
|
- 'header' => 'Total Price($)', // 商品金额
|
|
|
+ 'header' => \Yii::t('ctx', 'shopOrderListUsTotalPrice'), // 美元价格或标准价格
|
|
|
'headerOther' => [
|
|
|
'width' => '150',
|
|
|
],
|
|
|
@@ -275,7 +275,7 @@ class OrderList extends \common\libs\dataList\DataList implements DataListInterf
|
|
|
},
|
|
|
],
|
|
|
'PAY_FREIGHT' => [
|
|
|
- 'header' => 'Freight', // 运费
|
|
|
+ 'header' => \Yii::t('ctx', 'shopOrderListFreight'), // 运费
|
|
|
'headerOther' => [
|
|
|
'width' => '150',
|
|
|
],
|
|
|
@@ -289,7 +289,7 @@ class OrderList extends \common\libs\dataList\DataList implements DataListInterf
|
|
|
},
|
|
|
],
|
|
|
'TAX_RATE' => [
|
|
|
- 'header' => 'Tax Rate', // 税率
|
|
|
+ 'header' => \Yii::t('ctx', 'shopOrderListTaxRate'), // 税率
|
|
|
'headerOther' => [
|
|
|
'width' => '150',
|
|
|
],
|
|
|
@@ -303,7 +303,7 @@ class OrderList extends \common\libs\dataList\DataList implements DataListInterf
|
|
|
},
|
|
|
],
|
|
|
'TAX_AMOUNT' => [
|
|
|
- 'header' => 'Tax', // 税额
|
|
|
+ 'header' => \Yii::t('ctx', 'shopOrderListTax'), // 税额
|
|
|
'headerOther' => [
|
|
|
'width' => '150',
|
|
|
],
|
|
|
@@ -317,22 +317,22 @@ class OrderList extends \common\libs\dataList\DataList implements DataListInterf
|
|
|
},
|
|
|
],
|
|
|
'EXPRESS_COMPANY' => [
|
|
|
- 'header' => 'Courier Services Company', // 快递公司
|
|
|
+ 'header' => \Yii::t('ctx', 'shopOrderListCourierCompany'), // 快递公司
|
|
|
'headerOther' => ['width' => '190'],
|
|
|
],
|
|
|
'ORDER_TRACK_NO' => [
|
|
|
- 'header' => 'Courier Number', // 快递单号
|
|
|
+ 'header' => \Yii::t('ctx', 'shopOrderListCourierNumber'), // 快递单号
|
|
|
'headerOther' => ['width' => '200'],
|
|
|
],
|
|
|
'EXPRESS_TYPE' => [
|
|
|
- 'header' => 'Shipping Method', // 发货方式
|
|
|
+ 'header' => \Yii::t('ctx', 'shopOrderListShippingMethod'), // 发货方式
|
|
|
'headerOther' => ['width' => '150'],
|
|
|
'value' => function ($row) {
|
|
|
- return $row['EXPRESS_TYPE']==0 ? 'Mailing ':' Auto pick '; // '邮寄' : '自提'
|
|
|
+ return $row['EXPRESS_TYPE']==0 ? \Yii::t('ctx', 'shopOrderListShippingMethodMailing') : \Yii::t('ctx', 'shopOrderListShippingMethodAutoPick'); // '邮寄' : '自提'
|
|
|
},
|
|
|
],
|
|
|
'FRONT_REMARK' => [
|
|
|
- 'header' => 'Member Notes', // 会员备注
|
|
|
+ 'header' => \Yii::t('ctx', 'shopOrderListMemberNotes'), // 会员备注
|
|
|
'headerOther' => [
|
|
|
'width' => '200',
|
|
|
],
|
|
|
@@ -345,7 +345,7 @@ class OrderList extends \common\libs\dataList\DataList implements DataListInterf
|
|
|
],
|
|
|
'DELIVERY_STATUS' => null,
|
|
|
'DELIVERY_STATUS_NAME' => [
|
|
|
- 'header' => 'Shipment Status', // 发货状态
|
|
|
+ 'header' => \Yii::t('ctx', 'shopOrderListShipmentStatus'), // 发货状态
|
|
|
'headerOther' => [
|
|
|
'width' => '130',
|
|
|
],
|
|
|
@@ -356,7 +356,7 @@ class OrderList extends \common\libs\dataList\DataList implements DataListInterf
|
|
|
'IS_AUTO' => [
|
|
|
'header' => 'Is Auto', // 是否自动
|
|
|
'value' => function ($row) {
|
|
|
- return $row['IS_AUTO'] == 1 ? 'Yes' : 'No';
|
|
|
+ return $row['IS_AUTO'] == 1 ? \Yii::t('ctx', 'shopOrderListIsAutoYes') : \Yii::t('ctx', 'shopOrderListIsAutoNo');
|
|
|
},
|
|
|
],
|
|
|
];
|
|
|
@@ -372,21 +372,21 @@ class OrderList extends \common\libs\dataList\DataList implements DataListInterf
|
|
|
{
|
|
|
if(!$this->filterTypes){
|
|
|
$this->filterTypes = [
|
|
|
- 'SN'=> ['name'=> 'Order No'],//订单编号
|
|
|
- 'USER_NAME'=> ['name'=> 'Member Code'],//会员编号
|
|
|
- 'MOBILE'=> ['name'=> 'Contact 1'],//联系方式1
|
|
|
+ 'SN'=> ['name'=> \Yii::t('ctx', 'shopOrderListOrderNo')],//订单编号
|
|
|
+ 'USER_NAME'=> ['name'=> \Yii::t('ctx', 'shopOrderListMemberCode')],//会员编号
|
|
|
+ 'MOBILE'=> ['name'=> \Yii::t('ctx', 'shopOrderListContactOne')],//联系方式1
|
|
|
'ORDER_TYPE'=> [
|
|
|
- 'name'=> 'Order Type',
|
|
|
+ 'name'=> \Yii::t('ctx', 'shopOrderListOrderType'),
|
|
|
'other'=> 'select',
|
|
|
'selectData'=> [
|
|
|
- ['id' => 'ZC', 'name' => 'Welcome Pack'],
|
|
|
- ['id' => 'FX', 'name' => 'Repeat Purchase'],
|
|
|
+ ['id' => 'ZC', 'name' => \Yii::t('ctx', 'shopOrderListOrderTypeZc')],
|
|
|
+ ['id' => 'FX', 'name' => \Yii::t('ctx', 'shopOrderListOrderTypeRepeatPurchase')],
|
|
|
]
|
|
|
- ],
|
|
|
- 'PERIOD_NUM'=> ['name'=> 'Number Of Periods'],//期数
|
|
|
- 'CREATED_AT'=> ['name'=> 'Creation Time', 'other'=>'date'],//创建时间
|
|
|
+ ],
|
|
|
+ 'PERIOD_NUM'=> ['name'=> \Yii::t('ctx', 'numberOfPeriods')],//期数
|
|
|
+ 'CREATED_AT'=> ['name'=> \Yii::t('ctx', 'shopOrderListCreationTime'), 'other'=>'date'],//创建时间
|
|
|
'STATUS'=> [
|
|
|
- 'name'=> 'Status',
|
|
|
+ 'name'=> \Yii::t('ctx', 'shopOrderListOrderStatus'),
|
|
|
'other'=> 'select',
|
|
|
'selectData'=> [
|
|
|
['id' => \Yii::$app->params['orderStatus']['paid']['value'], 'name' => \Yii::$app->params['orderStatus']['paid']['label']],
|
|
|
@@ -395,11 +395,11 @@ class OrderList extends \common\libs\dataList\DataList implements DataListInterf
|
|
|
]
|
|
|
],
|
|
|
'IS_AUTO' => [
|
|
|
- 'name'=>'Is Auto',
|
|
|
+ 'name'=>\Yii::t('ctx', 'shopOrderListIsAuto'),
|
|
|
'other'=> 'select',
|
|
|
'selectData'=> [
|
|
|
- ['id'=>1, 'name'=>'YES'],
|
|
|
- ['id'=>0, 'name'=>'NO'],
|
|
|
+ ['id'=>1, 'name'=>\Yii::t('ctx', 'shopOrderListIsAutoYes')],
|
|
|
+ ['id'=>0, 'name'=>\Yii::t('ctx', 'shopOrderListIsAutoNo')],
|
|
|
]
|
|
|
]
|
|
|
];
|