You've already forked qlg.tsgz.moe
Init Repo
This commit is contained in:
62
hyhproject/home2/controller/Settlements.php
Executable file
62
hyhproject/home2/controller/Settlements.php
Executable file
@ -0,0 +1,62 @@
|
||||
<?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);
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user