Files
addons
app_download_files
extend
hyhproject
admin
app
common
home
home2
behavior
common
conf
controller
Ads.php
Alipays.php
Areas.php
Base.php
Brands.php
Carts.php
Cashconfigs.php
Cashdraws.php
Error.php
Favorites.php
Goods.php
Goodsappraises.php
Goodscats.php
Goodsconsult.php
Goodsvirtuals.php
Helpcenter.php
Imports.php
Index.php
Informs.php
Invoices.php
Logmoneys.php
Messages.php
News.php
Ordercomplains.php
Orderrefunds.php
Orders.php
Reports.php
Settlements.php
Shopcats.php
Shopconfigs.php
Shopfreights.php
Shoproles.php
Shops.php
Shopusers.php
Switchs.php
Tmp.php
Unionpays.php
Useraddress.php
Users.php
Userscores.php
Wallets.php
Weixinpays.php
model
validate
view
mobile2
wechat2
.htaccess
command.php
mobile
oss
static
thinkphp
upload
vendor
wxtmp
.gitignore
.htaccess
.user.ini
404.html
H5B854518.wgt
admin.php
app-release.apk
app_download.html
cash.lock
demo.php
get_startup.php
get_version.php
get_version_new.php
index.html
index.php
qlg.tar.gz
reg.lock
robots.txt
qlg.tsgz.moe/hyhproject/home2/controller/Settlements.php
2019-09-06 23:53:10 +08:00

63 lines
1.3 KiB
PHP
Executable File

<?php
namespace wstmart\home\controller;
use wstmart\home\model\Settlements as M;
/**
* ============================================================================
* 结算控制器
*/
class Settlements extends Base{
protected $beforeActionList = ['checkShopAuth'];
public function index(){
return $this->fetch('shops/settlements/list');
}
/**
* 获取结算单
*/
public function pageQuery(){
$m = new M();
$rs = $m->pageQuery();
return WSTReturn('',1,$rs);
}
/**
* 获取待结算订单
*/
public function pageUnSettledQuery(){
$m = new M();
$rs = $m->pageUnSettledQuery();
return WSTReturn('',1,$rs);
}
/**
* 结算订单
*/
public function settlement(){
$m = new M();
return $m->settlement();
}
/**
* 获取已结算订单
*/
public function pageSettledQuery(){
$m = new M();
$rs = $m->pageSettledQuery();
return WSTReturn('',1,$rs);
}
/**
* 查看结算详情
*/
public function view(){
$m = new M();
$rs = $m->getById();
$this->assign('object',$rs);
return $this->fetch('shops/settlements/view');
}
/**
* 导出订单
*/
public function toExport(){
$m = new M();
$rs = $m->toExport();
$this->assign('rs',$rs);
}
}