Browse Source

订单列表增加显示订单状态 售后状态

pull/4/head
liuyu 3 years ago
parent
commit
af3f55da98
  1. 11
      config/define.php
  2. 2
      control/index.php
  3. 4
      view/templates/index/order_list.html

11
config/define.php

@ -29,6 +29,11 @@
define('ORDER_STATUS_DELIVERED', 2);
define('ORDER_STATUS_SIGNED_FOR', 3);
define('ORDER_STATUS_FULL', 5);
$GLOBALS['order_status'] = array(
ORDER_STATUS_WAIT_DELIVER_GOODS => '待发货',
ORDER_STATUS_DELIVERED => '已发货待签收',
ORDER_STATUS_SIGNED_FOR => '已签收',
);
# refund_status 售后状态 1:无售后或售后关闭,2:售后处理中,3:退款中,4: 退款成功 5:全部
define('REFUND_STATUS_NO_AFTER_SALES', 1);
@ -36,6 +41,12 @@
define('REFUND_STATUS_ING', 3);
define('REFUND_STATUS_SUCC', 4);
define('REFUND_STATUS_FULL', 5);
$GLOBALS['refund_status'] = array(
REFUND_STATUS_NO_AFTER_SALES => '无售后或售后关闭',
REFUND_STATUS_AFTER_SALE_ING => '售后处理中',
REFUND_STATUS_ING => '退款中',
REFUND_STATUS_SUCC => '退款成功',
);
# 同步历史订单
define('_RQ_SYNC_HISTORICAL_ORDERS', 'rq_sync_historical_orders');

2
control/index.php

@ -56,6 +56,8 @@ class index extends publicBase {
$this->view['list'] = $list ? $list : array();
$this->view['order_status'] = $GLOBALS['order_status'];
$this->view['refund_status'] = $GLOBALS['refund_status'];
if (empty($list)) return true;
$goods_ids = array_unique(array_column($list, 'goods_id'));

4
view/templates/index/order_list.html

@ -130,6 +130,8 @@
<th>订单号</th>
<th>收入</th>
<th>销售时间</th>
<th>订单状态</th>
<th>售后状态</th>
{if $smarty.get.refund_status == $smarty.const.REFUND_STATUS_AFTER_SALE_ING}
<th>操作</th>
{/if}
@ -142,6 +144,8 @@
<td class='td-valign'>{$item.order_sn}</td>
<td class='td-valign'>{$item.pay_amount}</td>
<td class='td-valign'>{$item.pay_time}</td>
<td class='td-valign'>{$order_status[$item.order_status]}</td>
<td class='td-valign'>{$refund_status[$item.refund_status]}</td>
{if $smarty.get.refund_status == $smarty.const.REFUND_STATUS_AFTER_SALE_ING}
<td class='td-valign'><a href="https://mms.pinduoduo.com/aftersales/aftersale_list" target="_blank">立即处理</a></td>
{/if}

Loading…
Cancel
Save