mirror of
https://gitee.com/ShopeX/OMS
synced 2026-03-23 02:45:33 +08:00
55 lines
2.3 KiB
PHP
55 lines
2.3 KiB
PHP
<?php
|
|
/**
|
|
* Copyright 2012-2026 ShopeX (https://www.shopex.cn)
|
|
*
|
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
* you may not use this file except in compliance with the License.
|
|
* You may obtain a copy of the License at
|
|
*
|
|
* http://www.apache.org/licenses/LICENSE-2.0
|
|
*
|
|
* Unless required by applicable law or agreed to in writing, software
|
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
* See the License for the specific language governing permissions and
|
|
* limitations under the License.
|
|
*/
|
|
|
|
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,
|
|
));
|
|
}
|
|
|
|
}
|
|
?>
|