Files
OMS/app/ome/lib/desktop/widgets/service/aftersale.php
2026-01-04 19:08:31 +08:00

42 lines
1.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.
*/
class ome_desktop_widgets_service_aftersale{
/**
* 获取_menugroup
* @return mixed 返回结果
*/
public function get_menugroup(){
$returnProductObj = app::get('ome')->model('return_product');
$returnProcessObj = app::get('ome')->model('return_process');
$refundObj = app::get('ome')->model('refund_apply');
$data['label'] = '售后服务';
$data['type'] = 'aftersale';
$data['value']['0']['count'] = $refundObj->count(array('status'=>array('0','1')));
$data['value']['0']['label'] = '待退款';
$data['value']['1']['count'] = $returnProductObj->count(array('status'=>'1'));
$data['value']['1']['label'] = '售后待审核';
$data['value']['2']['count'] = $returnProcessObj->count(array('recieved'=>'false'));
$data['value']['2']['label'] = '售后待收货';
$data['value']['3']['count'] = $returnProcessObj->count(array('recieved'=>'true','verify'=>'false'));
$data['value']['3']['label'] = '售后待质检';
$data['value']['4']['count'] = $returnProductObj->count(array('status'=>'7'));
$data['value']['4']['label'] = '待退换货确认';
return $data;
}
}