mirror of
https://gitee.com/ShopeX/OMS
synced 2026-03-23 19:05:34 +08:00
92 lines
2.8 KiB
PHP
92 lines
2.8 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.
|
|
*/
|
|
/**
|
|
* 仓/商品 冻结对列表
|
|
*
|
|
* @access public
|
|
* @author maxiaochen<maxiaochen@shopex.cn>
|
|
* @version 1.0 queue.php 2025-02-14
|
|
*/
|
|
class ome_ctl_admin_freeze_queue extends desktop_controller
|
|
{
|
|
|
|
var $workground = "adminpanel";
|
|
|
|
/**
|
|
* _views
|
|
* @return mixed 返回值
|
|
*/
|
|
|
|
public function _views()
|
|
{
|
|
$branchFQMdl = app::get('ome')->model('branch_freeze_queue');
|
|
$materialFQMdl = app::get('ome')->model('material_freeze_queue');
|
|
|
|
$base_filter = array();
|
|
$sub_menu = array(
|
|
0 => array('label' => __('仓冻结队列'), 'filter' => $base_filter, 'mdl' => $branchFQMdl),
|
|
1 => array('label' => __('商品冻结队列'), 'filter' => $base_filter, 'mdl' => $materialFQMdl),
|
|
);
|
|
|
|
foreach ($sub_menu as $k => $v) {
|
|
$sub_menu[$k]['filter'] = $v['filter'] ? $v['filter'] : null;
|
|
$sub_menu[$k]['addon'] = $v['mdl']->viewcount($v['filter']);
|
|
$sub_menu[$k]['href'] = 'index.php?app=ome&ctl=admin_freeze_queue&act=index&view=' . $k;
|
|
}
|
|
|
|
return $sub_menu;
|
|
}
|
|
|
|
/**
|
|
* index
|
|
* @return mixed 返回值
|
|
*/
|
|
public function index()
|
|
{
|
|
!$_GET['view'] && $_GET['view'] = 0;
|
|
|
|
switch ($_GET['view']) {
|
|
case '0':
|
|
$this->title = '仓冻结队列列表';
|
|
$mdl = "ome_mdl_branch_freeze_queue";
|
|
break;
|
|
case '1':
|
|
$this->title = '商品冻结队列列表';
|
|
$mdl = "ome_mdl_material_freeze_queue";
|
|
break;
|
|
default:
|
|
$this->title = '仓冻结队列列表';
|
|
$mdl = "ome_mdl_branch_freeze_queue";
|
|
break;
|
|
}
|
|
|
|
$actions = array();
|
|
$params = array(
|
|
'actions' => $actions,
|
|
'title' => $this->title,
|
|
'use_buildin_set_tag' => false,
|
|
'use_buildin_filter' => false,
|
|
'use_buildin_export' => false,
|
|
'use_buildin_import' => false,
|
|
'use_buildin_recycle' => false,
|
|
);
|
|
|
|
$this->finder($mdl, $params);
|
|
}
|
|
|
|
}
|