Files
OMS/app/omeanalysts/lib/ome/goodsaftersale.php
2026-01-04 19:08:31 +08:00

81 lines
2.7 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 omeanalysts_ome_goodsaftersale extends eccommon_analysis_abstract implements eccommon_analysis_interface{
public $detail_options = array(
'hidden' => true,
);
public $graph_options = array(
'hidden' => true,
);
public $type_options = array(
'display' => 'true',
);
function __construct(&$app)
{
parent::__construct($app);
$this->_render = kernel::single('desktop_controller');
for($i=0;$i<=5;$i++){
if ($i == 1) continue;
$val = $i+1;
$this->_render->pagedata['time_shortcut'][$i] = $val;
}
}
/**
* 获取_type
* @return mixed 返回结果
*/
public function get_type(){
$lab = '店铺';
$typeObj = $this->app->model('ome_type');
$data = $typeObj->get_shop();
$return = array(
'lab' => $lab,
'data' => $data,
);
return $return;
}
/**
* 查找er
* @return mixed 返回结果
*/
public function finder(){
return array(
'model' => 'omeanalysts_mdl_ome_goodsaftersale',
'params' => array(
'actions'=>array(
array(
'class' => 'export',
'label' => '生成报表',
'href'=>'index.php?app=omeanalysts&ctl=ome_goodsaftersale&act=index&action=export',
'target'=>'{width:400,height:170,title:\'生成报表\'}'
),
),
'title'=>app::get('omeanalysts')->_('商品售后汇总<script>if($$(".finder-list").getElement("tbody").get("html") == "\n" || $$(".finder-list").getElement("tbody").get("html") == "" ){$$(".export").set("href","javascript:;").set("onclick", "alert(\"没有可以生成的数据\")");}else{$$(".export").set("href",\'index.php?app=omeanalysts&ctl=ome_goodsaftersale&act=index&action=export\');}</script>'),
'use_buildin_recycle'=>false,
'use_buildin_selectrow'=>false,
'use_buildin_filter'=>true,
),
);
}
}