|
|
@@ -126,6 +126,10 @@ class OrderList extends \common\libs\dataList\DataList implements DataListInterf
|
|
|
'header' => \Yii::t('ctx', 'shopOrderListOrderCode'), // 订单号
|
|
|
'headerOther' => ['width' => '200'],
|
|
|
],
|
|
|
+ 'INVOICE_NO' => [
|
|
|
+ 'header' => \Yii::t('ctx', 'taxInvoice'), // 发票号
|
|
|
+ 'headerOther' => ['width' => '200'],
|
|
|
+ ],
|
|
|
// 'STATUS' => null,
|
|
|
'STATUS' => [
|
|
|
'header' => \Yii::t('ctx', 'shopOrderListOrderStatus'), // 订单状态
|
|
|
@@ -425,7 +429,46 @@ class OrderList extends \common\libs\dataList\DataList implements DataListInterf
|
|
|
['id'=>1, 'name'=>\Yii::t('ctx', 'yes')],
|
|
|
['id'=>0, 'name'=>\Yii::t('ctx', 'no')],
|
|
|
]
|
|
|
- ]
|
|
|
+ ],
|
|
|
+ 'PAY_TYPE' => [
|
|
|
+ 'name' => \Yii::t('ctx', 'shopOrderListPayType'), // 支付方式
|
|
|
+ 'other'=> 'select',
|
|
|
+ 'selectData'=>self::getpayTypes()
|
|
|
+ ],
|
|
|
+ 'CREATE_USER_NAME' => [
|
|
|
+ 'name' => \Yii::t('ctx', 'shopOrderListCreatorName'), // 创建人姓名
|
|
|
+ ],
|
|
|
+ 'SKU_CODE' => [
|
|
|
+ 'name' => \Yii::t('ctx', 'shopOrderListProductCode'), // 存货编码
|
|
|
+ ],
|
|
|
+ 'DELIVERY_STATUS_NAME' => [
|
|
|
+ 'name' => \Yii::t('ctx', 'shopOrderListShipmentStatus'), // 发货状态
|
|
|
+ 'other'=> 'select',
|
|
|
+ 'selectData'=>[
|
|
|
+ ['id'=>0, 'name'=>\Yii::t('ctx', 'shopOrderListUndelivered')],
|
|
|
+ ['id'=>1, 'name'=>\Yii::t('ctx', 'shopOrderListDelivered')],
|
|
|
+ ['id'=>2, 'name'=>\Yii::t('ctx', 'shopOrderListConfirmReceipt')],
|
|
|
+ ]
|
|
|
+ ],
|
|
|
+ 'PAY_AT' => [
|
|
|
+ 'name' => \Yii::t('ctx', 'shopOrderListPaymentTime'), // 支付时间
|
|
|
+ 'other' => 'date'
|
|
|
+ ],
|
|
|
+ 'CONSIGNEE' => [
|
|
|
+ 'name' => \Yii::t('ctx', 'shopOrderListRecipient'), // 收货人
|
|
|
+ ],
|
|
|
+ 'GOODS_TITLE' => [
|
|
|
+ 'name' => \Yii::t('ctx', 'shopOrderListProductName'), // 存货名称
|
|
|
+ ],
|
|
|
+ 'CREATE_USER' => [
|
|
|
+ 'name' => \Yii::t('ctx', 'shopOrderListCreatorNo'), // 创建人编号
|
|
|
+ ],
|
|
|
+ 'DEC_USER_NAME' => [
|
|
|
+ 'name' => \Yii::t('ctx', 'shopOrderListStockist'), // 报单中心
|
|
|
+ ],
|
|
|
+ 'INVOICE_NO' => [
|
|
|
+ 'name' => \Yii::t('ctx', 'taxInvoice'), // 发票号
|
|
|
+ ],
|
|
|
];
|
|
|
}
|
|
|
return $this->filterTypes;
|
|
|
@@ -544,6 +587,20 @@ class OrderList extends \common\libs\dataList\DataList implements DataListInterf
|
|
|
];
|
|
|
}
|
|
|
|
|
|
+ return $data;
|
|
|
+ }
|
|
|
+ public function getpayTypes()
|
|
|
+ {
|
|
|
+ $payTypes = ShopGoods::payTypes();
|
|
|
+
|
|
|
+ $data = [];
|
|
|
+ foreach ($payTypes as $key=>$payType) {
|
|
|
+ $data[] = [
|
|
|
+ 'id' => $key,
|
|
|
+ 'name' => $payType['name'],
|
|
|
+ ];
|
|
|
+ }
|
|
|
+
|
|
|
return $data;
|
|
|
}
|
|
|
}
|