Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
T
tl_estate
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
hujun
tl_estate
Commits
b608252f
Commit
b608252f
authored
Apr 18, 2018
by
hujun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
财务审核-成交报告
parent
00d97aac
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
29 additions
and
8 deletions
+29
-8
TransferHouseInfo.php
application/api/controller/TransferHouseInfo.php
+7
-2
Finance.php
application/index/controller/Finance.php
+18
-2
route.php
application/route.php
+4
-4
No files found.
application/api/controller/TransferHouseInfo.php
View file @
b608252f
...
@@ -20,6 +20,9 @@ class TransferHouseInfo extends Controller
...
@@ -20,6 +20,9 @@ class TransferHouseInfo extends Controller
* @throws \think\exception\DbException
* @throws \think\exception\DbException
*/
*/
public
function
table
()
{
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'
);
$num
=
Db
::
table
(
'houseinfos'
)
->
order
(
'id desc'
)
->
value
(
'id'
);
$regions
=
new
Regions
();
$regions
=
new
Regions
();
for
(
$i
=
1
;
$i
<=
$num
;
$i
++
)
{
for
(
$i
=
1
;
$i
<=
$num
;
$i
++
)
{
...
@@ -56,7 +59,7 @@ class TransferHouseInfo extends Controller
...
@@ -56,7 +59,7 @@ class TransferHouseInfo extends Controller
// $g_house_data['case_manager_phone'] = $house_info_data['title'];
// $g_house_data['case_manager_phone'] = $house_info_data['title'];
//状态 0待审批 1上架 2下架 3回收
//状态 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
[
'status'
]
=
2
;
$g_house_data
[
'shop_area_start'
]
=
$house_info_data
[
'room_area'
];
$g_house_data
[
'shop_area_start'
]
=
$house_info_data
[
'room_area'
];
$g_house_data
[
'shop_area_end'
]
=
$house_info_data
[
'room_area2'
];
$g_house_data
[
'shop_area_end'
]
=
$house_info_data
[
'room_area2'
];
...
@@ -109,7 +112,9 @@ class TransferHouseInfo extends Controller
...
@@ -109,7 +112,9 @@ class TransferHouseInfo extends Controller
$g_house_data_ext
[
'agent_end_time'
]
=
$house_info_data
[
'exclusive_end'
];
$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
[
'enter_num'
]
=
$house_info_data
[
'enter_num'
];
$g_house_data_ext
[
'do_business_date'
]
=
$house_info_data
[
'business_date'
];
$g_house_data_ext
[
'do_business_date'
]
=
$house_info_data
[
'business_date'
];
$g_house_data_ext
[
'start_business_date'
]
=
$house_info_data
[
'start_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
[
'opening_date'
]
=
$house_info_data
[
'opentime'
];
$g_house_data_ext
[
'sign_rule'
]
=
$house_info_data
[
'singn_rule'
];
$g_house_data_ext
[
'sign_rule'
]
=
$house_info_data
[
'singn_rule'
];
$g_house_data_ext
[
'landlord_phone'
]
=
$house_info_data
[
'landlord_phone'
];
$g_house_data_ext
[
'landlord_phone'
]
=
$house_info_data
[
'landlord_phone'
];
...
...
application/index/controller/Finance.php
View file @
b608252f
...
@@ -10,6 +10,7 @@ namespace app\index\controller;
...
@@ -10,6 +10,7 @@ namespace app\index\controller;
use
app\api_broker\service\OrderLogService
;
use
app\api_broker\service\OrderLogService
;
use
app\api_broker\untils\PlsDemo
;
use
app\index\extend\Basic
;
use
app\index\extend\Basic
;
use
app\model\AAgents
;
use
app\model\AAgents
;
use
app\model\OBargainModel
;
use
app\model\OBargainModel
;
...
@@ -42,8 +43,23 @@ class Finance extends Basic
...
@@ -42,8 +43,23 @@ class Finance extends Basic
$where
[
'e.audit_level'
]
=
0
;
$where
[
'e.audit_level'
]
=
0
;
$where
[
'a.status'
]
=
10
;
$where
[
'a.status'
]
=
10
;
if
(
!
empty
(
$this
->
params
[
'check_status'
]))
{
$check_status
=
[
1
,
2
,
3
];
$where
[
'a.audit_level'
]
=
$this
->
params
[
'check_status'
];
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'
]))
{
if
(
!
empty
(
$this
->
params
[
'status'
]))
{
...
...
application/route.php
View file @
b608252f
...
@@ -186,10 +186,10 @@ Route::group('index', [
...
@@ -186,10 +186,10 @@ Route::group('index', [
'getSetting'
=>
[
'index/Setting/getSetting'
,
[
'method'
=>
'get|post'
]
],
//新增和修改全局参数设置
'getSetting'
=>
[
'index/Setting/getSetting'
,
[
'method'
=>
'get|post'
]
],
//新增和修改全局参数设置
'getMenu'
=>
[
'index/Auth/getMenu'
,
[
'method'
=>
'get|post'
]
],
//新增和修改全局参数设置
'getMenu'
=>
[
'index/Auth/getMenu'
,
[
'method'
=>
'get|post'
]
],
//新增和修改全局参数设置
'reportListAttache/:check_status'
=>
[
'index/Finance/reportList'
,
[
'method'
=>
'get'
]
,[
'check_status'
=>
0
]],
//财务 成交报告-未结单-专员审核
'reportListAttache/:check_status'
=>
[
'index/Finance/reportList'
,
[
'method'
=>
'get'
]
,[
'check_status'
=>
0
]],
//财务 成交报告-未结单-专员审核
'reportListManager/:check_status'
=>
[
'index/Finance/reportList'
,
[
'method'
=>
'get'
]
,[
'check_status'
=>
1
0
]],
//财务 成交报告-未结单-经理审核
'reportListManager/:check_status'
=>
[
'index/Finance/reportList'
,
[
'method'
=>
'get'
]
,[
'check_status'
=>
1
]],
//财务 成交报告-未结单-经理审核
'reportListMajordomo/:check_status'
=>
[
'index/Finance/reportList'
,
[
'method'
=>
'get'
]
,[
'check_status'
=>
2
0
]],
//财务 成交报告-未结单-总监审核
'reportListMajordomo/:check_status'
=>
[
'index/Finance/reportList'
,
[
'method'
=>
'get'
]
,[
'check_status'
=>
2
]],
//财务 成交报告-未结单-总监审核
'reportListCashier/:check_status'
=>
[
'index/Finance/reportList'
,
[
'method'
=>
'get'
]
,[
'check_status'
=>
3
0
]],
//财务 成交报告-未结单-出纳审核
'reportListCashier/:check_status'
=>
[
'index/Finance/reportList'
,
[
'method'
=>
'get'
]
,[
'check_status'
=>
3
]],
//财务 成交报告-未结单-出纳审核
'reportListStatement/:check_status'
=>
[
'index/Finance/reportList'
,
[
'method'
=>
'get'
]
,[
'check_status'
=>
4
0
]],
//财务 成交报告-已结单
'reportListStatement/:check_status'
=>
[
'index/Finance/reportList'
,
[
'method'
=>
'get'
]
,[
'check_status'
=>
4
]],
//财务 成交报告-已结单
'reportListBackout/:status'
=>
[
'index/Finance/reportList'
,
[
'method'
=>
'get'
]
,[
'status'
=>
20
]],
//财务 成交报告-待撤销
'reportListBackout/:status'
=>
[
'index/Finance/reportList'
,
[
'method'
=>
'get'
]
,[
'status'
=>
20
]],
//财务 成交报告-待撤销
'reportListUndone/:status'
=>
[
'index/Finance/reportList'
,
[
'method'
=>
'get'
]
,[
'status'
=>
21
]],
//财务 成交报告-已撤销
'reportListUndone/:status'
=>
[
'index/Finance/reportList'
,
[
'method'
=>
'get'
]
,[
'status'
=>
21
]],
//财务 成交报告-已撤销
'refundList'
=>
[
'index/Finance/refundList'
,
[
'method'
=>
'get|post'
]
],
//财务 退款
'refundList'
=>
[
'index/Finance/refundList'
,
[
'method'
=>
'get|post'
]
],
//财务 退款
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment