|
@@ -41,24 +41,24 @@ class Order extends Backend
|
|
|
// 视图赋值
|
|
|
$this->view->assign("orderStatusList", OrderEnum::getOrderStatusList());
|
|
|
$this->view->assign("statusList", $this->model->getStatusList());
|
|
|
- $this->view->assign("payModeList", OrderEnum::getPayModeList());
|
|
|
+ // $this->view->assign("payModeList", OrderEnum::getPayModeList());
|
|
|
$this->view->assign("payTypeList", PayEnum::getPayMethodList());
|
|
|
$this->view->assign("orderTypeList", OrderEnum::getOrderTypeList());
|
|
|
$this->view->assign("deliveryTypeList", OrderEnum::getDeliveryTypeList());
|
|
|
$this->view->assign("invoiceStatusList", OrderEnum::getInvoiceStatusList());
|
|
|
- $this->view->assign("activityTypeList", OrderEnum::getActivityTypeList());
|
|
|
+ // $this->view->assign("activityTypeList", OrderEnum::getActivityTypeList());
|
|
|
$this->view->assign("actionTypeList", OrderActionEnum::getActionTypeList());
|
|
|
$this->view->assign("saleStatusList", GoodsEnum::getSaleStatusMap());
|
|
|
|
|
|
// 前端配置
|
|
|
$this->assignconfig('orderStatusList', json_encode(OrderEnum::getOrderStatusList()));
|
|
|
- $this->assignconfig('payModeList', json_encode(OrderEnum::getPayModeList()));
|
|
|
+ // $this->assignconfig('payModeList', json_encode(OrderEnum::getPayModeList()));
|
|
|
$this->assignconfig('payTypeList', json_encode(PayEnum::getPayMethodList()));
|
|
|
$this->assignconfig('statusList', json_encode($this->model->getStatusList()));
|
|
|
$this->assignconfig('orderTypeList', json_encode(OrderEnum::getOrderTypeList()));
|
|
|
$this->assignconfig('deliveryTypeList', json_encode(OrderEnum::getDeliveryTypeList()));
|
|
|
$this->assignconfig('invoiceStatusList', json_encode(OrderEnum::getInvoiceStatusList()));
|
|
|
- $this->assignconfig('activityTypeList', json_encode(OrderEnum::getActivityTypeList()));
|
|
|
+ // $this->assignconfig('activityTypeList', json_encode(OrderEnum::getActivityTypeList()));
|
|
|
$this->assignconfig('actionTypeList', json_encode(OrderActionEnum::getActionTypeList()));
|
|
|
$this->assignconfig('saleStatusList', json_encode(GoodsEnum::getSaleStatusMap()));
|
|
|
|
|
@@ -212,15 +212,15 @@ class Order extends Backend
|
|
|
$rowData['source_text'] = ChannelEnum::getChannelText($rowData['source'] ?? '');
|
|
|
$rowData['type_text'] = $this->getTypeText($rowData['type']);
|
|
|
$rowData['pay_type_text'] = $this->getPayTypeText($rowData['pay_type']);
|
|
|
- $rowData['pay_mode_text'] = $this->getPayModeText($rowData['pay_mode']);
|
|
|
+ // $rowData['pay_mode_text'] = $this->getPayModeText($rowData['pay_mode']);
|
|
|
$rowData['delivery_type_text'] = $this->getDeliveryTypeText($rowData['delivery_type']);
|
|
|
|
|
|
if (!empty($rowData['invoice_status'])) {
|
|
|
$rowData['invoice_status_text'] = $this->getInvoiceStatusText($rowData['invoice_status']);
|
|
|
}
|
|
|
- if (!empty($rowData['activity_type'])) {
|
|
|
- $rowData['activity_type_text'] = $this->getActivityTypeText($rowData['activity_type']);
|
|
|
- }
|
|
|
+ // if (!empty($rowData['activity_type'])) {
|
|
|
+ // $rowData['activity_type_text'] = $this->getActivityTypeText($rowData['activity_type']);
|
|
|
+ // }
|
|
|
|
|
|
// 处理订单商品的规格信息和售后状态文本
|
|
|
if (!empty($rowData['order_goods'])) {
|
|
@@ -278,14 +278,7 @@ class Order extends Backend
|
|
|
return PayEnum::getPayMethodText($payType);
|
|
|
}
|
|
|
|
|
|
- /**
|
|
|
- * 获取支付模式文本
|
|
|
- */
|
|
|
- private function getPayModeText($payMode)
|
|
|
- {
|
|
|
- // 直接使用OrderEnum的支付模式枚举
|
|
|
- return OrderEnum::getPayModeText($payMode);
|
|
|
- }
|
|
|
+
|
|
|
|
|
|
/**
|
|
|
* 获取发货方式文本
|
|
@@ -303,15 +296,6 @@ class Order extends Backend
|
|
|
return OrderEnum::getInvoiceStatusText($invoiceStatus);
|
|
|
}
|
|
|
|
|
|
- /**
|
|
|
- * 获取活动类型文本
|
|
|
- */
|
|
|
- private function getActivityTypeText($activityType)
|
|
|
- {
|
|
|
- return OrderEnum::getActivityTypeText($activityType);
|
|
|
- }
|
|
|
-
|
|
|
-
|
|
|
|
|
|
/**
|
|
|
* 获取售后状态文本
|