Commit 916d783f authored by hujun's avatar hujun

财务审核4个页面

parent 4b96fa37
......@@ -15,6 +15,7 @@ use app\model\AAgents;
use app\model\OBargainModel;
use app\model\OFinancialAudit;
use app\model\OPayLogModel;
use app\model\ORefundModel;
class Finance extends Basic
{
......@@ -109,12 +110,20 @@ class Finance extends Basic
}
$result = $this->response($data['code'], $data['msg'], $data['data']);
} else {
if ($this->params['check_status'] != 4) {
//未结单
$result = view('finance/index');
} else {
//已结单
$result = view('finance/statement');
$result = '';
switch ($this->params['check_status']) {
case 0 :
//未结单
$result = view('finance/account_statement');break;
case 4 :
//已结单
$result = view('finance/statement');break;
case 5 :
//待撤销
$result = view('finance/wait_backout');break;
case 6 :
//已撤销
$result = view('finance/statement_backout');break;
}
}
......@@ -408,6 +417,13 @@ class Finance extends Basic
* @return \think\response\View
*/
public function refundList() {
return view('refundList');
if (!$this->request->isAjax()) {
return view('refundList');
}
$refund = new ORefundModel();
$refund->selectRefundByOrderNo();
}
}
\ No newline at end of file
......@@ -43,7 +43,8 @@ class Basic extends Controller
'index/banner',
'index/getUserLabel',
'index/bannerList',
'index/getLabelsList'
'index/getLabelsList',
'index/regions'
);
/**
......
......@@ -56,7 +56,7 @@
<div class="col-lg-10 col-lg-offset-0">
<div class="panel panel-default">
<div class="panel-heading breadcrumb">
<li><a href="#">成交报告-未接单666</a></li>
<li><a href="#">成交报告-未结单</a></li>
</div>
<div class="panel-body">
<div class="table-responsive">
......
{layout name="global/frame_tpl" /}
已结单
\ No newline at end of file
{layout name="global/frame_tpl" /}
已撤销
\ No newline at end of file
This diff is collapsed.
......@@ -79,9 +79,13 @@ class ORefundModel extends Model{
/**
* 查询退款记录
* @param string $filed
*
* @param $filed
* @param $params
* @return false|\PDOStatement|string|\think\Collection
* @throws \think\db\exception\DataNotFoundException
* @throws \think\db\exception\ModelNotFoundException
* @throws \think\exception\DbException
*/
public function selectRefundByOrderNo($filed , $params)
{
......
......@@ -189,8 +189,8 @@ Route::group('index', [
'reportListMajordomo/:check_status' => ['index/Finance/reportList', [ 'method' => 'get' ] ,['check_status'=>2]], //财务 成交报告-未结单-总监审核
'reportListCashier/:check_status' => ['index/Finance/reportList', [ 'method' => 'get' ] ,['check_status'=>3]], //财务 成交报告-未结单-出纳审核
'reportListStatement/:check_status' => ['index/Finance/reportList', [ 'method' => 'get' ] ,['check_status'=>4]], //财务 成交报告-已结单
'reportListBackout/:status' => ['index/Finance/reportList', [ 'method' => 'get' ] ,['status'=>5]], //财务 成交报告-待撤销
'reportListUndone/:status' => ['index/Finance/reportList', [ 'method' => 'get' ] ,['status'=>6]], //财务 成交报告-已撤销
'reportListBackout/:check_status' => ['index/Finance/reportList', [ 'method' => 'get' ] ,['check_status'=>5]], //财务 成交报告-待撤销
'reportListUndone/:check_status' => ['index/Finance/reportList', [ 'method' => 'get' ] ,['check_status'=>6]], //财务 成交报告-已撤销
'refundList/:status' => ['index/Finance/refundList', [ 'method' => 'get|post' ], ['status'=>1] ], //财务 退款
'refundedList/:status' => ['index/Finance/refundList', [ 'method' => 'get|post' ], ['status'=>2] ], //财务 已退款
'checkReportAttache/:check_status' => ['index/Finance/checkReport', [ 'method' => 'post' ], ['check_status'=>0]], //审核成交报告-专员审核
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment