Commit b608252f authored by hujun's avatar hujun

财务审核-成交报告

parent 00d97aac
......@@ -20,6 +20,9 @@ class TransferHouseInfo extends Controller
* @throws \think\exception\DbException
*/
public function table() {
Db::table('g_houses')->execute('TRUNCATE `g_houses`');
Db::table('g_houses_to_agents')->execute('TRUNCATE `g_houses_to_agents`');
Db::table('houseinfo_exts')->execute('TRUNCATE `houseinfo_exts`');
$num = Db::table('houseinfos')->order('id desc')->value('id');
$regions = new Regions();
for ($i = 1; $i <= $num; $i++) {
......@@ -56,7 +59,7 @@ class TransferHouseInfo extends Controller
// $g_house_data['case_manager_phone'] = $house_info_data['title'];
//状态 0待审批 1上架 2下架 3回收
if ($g_house_data['room_num_left'] == 0) {
if ($house_info_data['room_num_left'] == 0) {
$g_house_data['status'] = 2;
$g_house_data['shop_area_start'] = $house_info_data['room_area'];
$g_house_data['shop_area_end'] = $house_info_data['room_area2'];
......@@ -109,7 +112,9 @@ class TransferHouseInfo extends Controller
$g_house_data_ext['agent_end_time'] = $house_info_data['exclusive_end'];
$g_house_data_ext['enter_num'] = $house_info_data['enter_num'];
$g_house_data_ext['do_business_date'] = $house_info_data['business_date'];
if (!empty($house_info_data['start_business_date'])) {
$g_house_data_ext['start_business_date'] = $house_info_data['start_business_date'];
}
$g_house_data_ext['opening_date'] = $house_info_data['opentime'];
$g_house_data_ext['sign_rule'] = $house_info_data['singn_rule'];
$g_house_data_ext['landlord_phone'] = $house_info_data['landlord_phone'];
......
......@@ -10,6 +10,7 @@ namespace app\index\controller;
use app\api_broker\service\OrderLogService;
use app\api_broker\untils\PlsDemo;
use app\index\extend\Basic;
use app\model\AAgents;
use app\model\OBargainModel;
......@@ -42,8 +43,23 @@ class Finance extends Basic
$where['e.audit_level'] = 0;
$where['a.status'] = 10;
if (!empty($this->params['check_status'])) {
$where['a.audit_level'] = $this->params['check_status'];
$check_status = [1,2,3];
if (in_array($this->params['check_status'], $check_status)) {
switch ($this->params['check_status']) {
case 1 :
$where['e.audit_level'] = ['NOT IN', '0,2,3'];
break;
case 2 :
$where['e.audit_level'] = ['NOT IN', '0,1,3'];
break;
case 3 :
$where['e.audit_level'] = ['NOT IN', '0,1,2'];
break;
default :
$where['e.audit_level'] = ['NOT IN', '123'];
}
} else {
$where['e.audit_level'] = ['NULL'];
}
if (!empty($this->params['status'])) {
......
......@@ -186,10 +186,10 @@ Route::group('index', [
'getSetting' => ['index/Setting/getSetting', [ 'method' => 'get|post' ] ], //新增和修改全局参数设置
'getMenu' => ['index/Auth/getMenu', [ 'method' => 'get|post' ] ], //新增和修改全局参数设置
'reportListAttache/:check_status' => ['index/Finance/reportList', [ 'method' => 'get' ] ,['check_status'=>0]], //财务 成交报告-未结单-专员审核
'reportListManager/:check_status' => ['index/Finance/reportList', [ 'method' => 'get' ] ,['check_status'=>10]], //财务 成交报告-未结单-经理审核
'reportListMajordomo/:check_status' => ['index/Finance/reportList', [ 'method' => 'get' ] ,['check_status'=>20]], //财务 成交报告-未结单-总监审核
'reportListCashier/:check_status' => ['index/Finance/reportList', [ 'method' => 'get' ] ,['check_status'=>30]], //财务 成交报告-未结单-出纳审核
'reportListStatement/:check_status' => ['index/Finance/reportList', [ 'method' => 'get' ] ,['check_status'=>40]], //财务 成交报告-已结单
'reportListManager/:check_status' => ['index/Finance/reportList', [ 'method' => 'get' ] ,['check_status'=>1]], //财务 成交报告-未结单-经理审核
'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'=>20]], //财务 成交报告-待撤销
'reportListUndone/:status' => ['index/Finance/reportList', [ 'method' => 'get' ] ,['status'=>21]], //财务 成交报告-已撤销
'refundList' => ['index/Finance/refundList', [ 'method' => 'get|post' ] ], //财务 退款
......
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