Files
OMS/app/omeauto/controller/admin/order.php
2025-12-28 23:13:25 +08:00

44 lines
1.8 KiB
PHP
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
<?php
/**
* Copyright © ShopeX http://www.shopex.cn. All rights reserved.
* See LICENSE file for license details.
*/
class omeauto_ctl_admin_order extends desktop_controller{
var $name = "订单中心";
var $workground = "order_center";
var $order_type = 'all';
function dispatch(){
$this->title = '订单调度';
switch ($_GET['flt'])
{
case 'autoassigned':
$this->order_type = 'autoassigned';
$this->base_filter = array('abnormal'=>'false','is_fail'=>'false','is_auto'=>'true');
$this->base_filter['process_status'] = array('unconfirmed','confirmed','splitting','splited','remain_cancel');
$this->title = '自动处理订单';
$finder_aliasname = "order_dispatch_autoassigned";
$finder_cols = "order_bn,process_status,ship_name,ship_area,total_amount";
break;
}
$this->finder('ome_mdl_orders',array(
'title' => $this->title,
'actions' => array(
array('label'=>'订单分派','submit'=>'index.php?app=ome&ctl=admin_order&act=dispatching','target'=>'dialog::{width:400,height:200,title:\'订单分派\'}'),
array('label'=>'订单分派统计','href'=>'index.php?app=ome&ctl=admin_order&act=count_dispatch','target'=>'dialog::{width:1000,height:400,title:\'订单分派统计\'}'),
),
'base_filter' => $this->base_filter,
'use_buildin_new_dialog' => false,
'use_buildin_set_tag'=>false,
'use_buildin_recycle'=>false,
'use_buildin_export'=>false,
'use_buildin_import'=>false,
'use_buildin_filter'=>true,
'finder_aliasname'=>$finder_aliasname,
'finder_cols'=>$finder_cols,
));
}
}
?>