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
9591418f
Commit
9591418f
authored
Dec 13, 2018
by
hujun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
获取时间
parent
eb7f5609
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
50 additions
and
5 deletions
+50
-5
Finance.php
application/index/controller/Finance.php
+28
-5
Setting.php
application/index/controller/Setting.php
+20
-0
Basic.php
application/index/extend/Basic.php
+1
-0
route.php
application/route.php
+1
-0
No files found.
application/index/controller/Finance.php
View file @
9591418f
...
@@ -2404,6 +2404,17 @@ class Finance extends Basic
...
@@ -2404,6 +2404,17 @@ class Finance extends Basic
$list
[
$k
][
'source_id'
]
=
empty
(
$source_id
)
?
0
:
$source_id
;
$list
[
$k
][
'source_id'
]
=
empty
(
$source_id
)
?
0
:
$source_id
;
$bargain_id
=
$this
->
m_bargain
->
selectBargainByOrderNo
(
'id'
,
[
'order_id'
,
$v
[
'order_id'
]]);
$bargain_id
=
$this
->
m_bargain
->
selectBargainByOrderNo
(
'id'
,
[
'order_id'
,
$v
[
'order_id'
]]);
$list
[
$k
][
'bargain_id'
]
=
$bargain_id
[
0
][
'id'
];
$list
[
$k
][
'bargain_id'
]
=
$bargain_id
[
0
][
'id'
];
switch
(
$v
[
'type'
])
{
case
91
:
//中介费 对应业务员:约带看的人 即 反签方
break
;
case
92
:
//案场费 对应业务员:盘方
break
;
default
:
//意向金/保管金 10/30 对应业务员:约带看的人 即 反签方
}
}
}
$data
[
'list'
]
=
$list
;
$data
[
'list'
]
=
$list
;
//加时间条件
//加时间条件
...
@@ -2456,8 +2467,8 @@ class Finance extends Basic
...
@@ -2456,8 +2467,8 @@ class Finance extends Basic
* @return mixed
* @return mixed
*/
*/
public
function
numberTransitionString
(
$data
)
{
public
function
numberTransitionString
(
$data
)
{
//
付款类型 10意向金 20定金 30保管金 40押金 50 租金 60 进场费 70转让费 80其他 90佣金
//
pay_type支付方式 10施总支付宝 11林老师支付宝 20 施总微信 21林老师微信 30pos机器 40地产转账 41世家公账 42 3000账号 50现金 60其他
//
支付方式 10支付宝 20 微信 30pos机器 40转账 50现金 60其他
//
type付款类型 10意向金 20定金 30保管金 40押金 50 租金 60 进场费 70转让费 80其他 90佣金 91中介费 92 案场费
foreach
(
$data
as
$k
=>
$v
)
{
foreach
(
$data
as
$k
=>
$v
)
{
switch
(
$v
[
'type'
])
{
switch
(
$v
[
'type'
])
{
...
@@ -2479,13 +2490,21 @@ class Finance extends Basic
...
@@ -2479,13 +2490,21 @@ class Finance extends Basic
$data
[
$k
][
'type'
]
=
'其他'
;
break
;
$data
[
$k
][
'type'
]
=
'其他'
;
break
;
case
90
:
case
90
:
$data
[
$k
][
'type'
]
=
'佣金'
;
break
;
$data
[
$k
][
'type'
]
=
'佣金'
;
break
;
case
91
:
$data
[
$k
][
'type'
]
=
'中介费'
;
break
;
case
92
:
$data
[
$k
][
'type'
]
=
'案场费'
;
break
;
}
}
switch
(
$v
[
'pay_type'
])
{
switch
(
$v
[
'pay_type'
])
{
case
10
:
case
10
:
$data
[
$k
][
'pay_type'
]
=
'支付宝'
;
break
;
$data
[
$k
][
'pay_type'
]
=
'施总支付宝'
;
break
;
case
11
:
$data
[
$k
][
'pay_type'
]
=
'林老师支付宝'
;
break
;
case
20
:
case
20
:
$data
[
$k
][
'pay_type'
]
=
'微信'
;
break
;
$data
[
$k
][
'pay_type'
]
=
'施总微信'
;
break
;
case
21
:
$data
[
$k
][
'pay_type'
]
=
'林老师微信'
;
break
;
case
30
:
case
30
:
if
(
$v
[
'source'
]
==
0
)
{
if
(
$v
[
'source'
]
==
0
)
{
...
@@ -2496,7 +2515,11 @@ class Finance extends Basic
...
@@ -2496,7 +2515,11 @@ class Finance extends Basic
break
;
break
;
case
40
:
case
40
:
$data
[
$k
][
'pay_type'
]
=
'转账'
;
break
;
$data
[
$k
][
'pay_type'
]
=
'地产转账'
;
break
;
case
41
:
$data
[
$k
][
'pay_type'
]
=
'世家公账'
;
break
;
case
42
:
$data
[
$k
][
'pay_type'
]
=
'3000账号'
;
break
;
case
50
:
case
50
:
$data
[
$k
][
'pay_type'
]
=
'现金'
;
break
;
$data
[
$k
][
'pay_type'
]
=
'现金'
;
break
;
default
:
default
:
...
...
application/index/controller/Setting.php
View file @
9591418f
...
@@ -222,4 +222,23 @@ class Setting extends Basic
...
@@ -222,4 +222,23 @@ class Setting extends Basic
return
$this
->
response
(
$code
,
$msg
,
$data
);
return
$this
->
response
(
$code
,
$msg
,
$data
);
}
}
/**
* @return \think\Response
* @throws \think\db\exception\DataNotFoundException
* @throws \think\db\exception\ModelNotFoundException
* @throws \think\exception\DbException
*/
public
function
getConfigWeek
()
{
$code
=
200
;
$msg
=
''
;
$where
[
'params'
]
=
'week_competition_'
.
$this
->
params
[
'site_id'
];
if
(
empty
(
$this
->
params
[
'site_id'
]))
{
return
$this
->
response
(
101
,
'参数错误'
);
}
$id
=
$this
->
m_config
->
getSettingV2
(
$where
,
'id,rule'
);
$data
=
$id
[
0
][
'rule'
];
return
$this
->
response
(
$code
,
$msg
,
$data
);
}
}
}
\ No newline at end of file
application/index/extend/Basic.php
View file @
9591418f
...
@@ -67,6 +67,7 @@ class Basic extends Controller
...
@@ -67,6 +67,7 @@ class Basic extends Controller
'index/yindaoAndroid'
,
'index/yindaoAndroid'
,
'index/yindaoIos'
,
'index/yindaoIos'
,
'index/getUserMacAddress'
,
'index/getUserMacAddress'
,
'index/getConfigWeek'
);
);
/**
/**
...
...
application/route.php
View file @
9591418f
...
@@ -216,6 +216,7 @@ Route::group('index', [
...
@@ -216,6 +216,7 @@ Route::group('index', [
'getSetting'
=>
[
'index/Setting/getSettingV2'
,
[
'method'
=>
'get|post'
]],
//新增和修改全局参数设置
'getSetting'
=>
[
'index/Setting/getSettingV2'
,
[
'method'
=>
'get|post'
]],
//新增和修改全局参数设置
'configWeek'
=>
[
'index/Setting/configWeek'
,
[
'method'
=>
'getpost'
]],
//周竞赛时间存储
'configWeek'
=>
[
'index/Setting/configWeek'
,
[
'method'
=>
'getpost'
]],
//周竞赛时间存储
'getConfigWeek'
=>
[
'index/Setting/getConfigWeek'
,
[
'method'
=>
'get'
]],
//获取周竞赛时间
'getMenu'
=>
[
'index/Auth/getMenu'
,
[
'method'
=>
'get|post'
]],
//新增和修改全局参数设置
'getMenu'
=>
[
'index/Auth/getMenu'
,
[
'method'
=>
'get|post'
]],
//新增和修改全局参数设置
'reportListOne/:check_status'
=>
[
'index/Finance/reportList'
,
[
'method'
=>
'get'
],
[
'check_status'
=>
1
]],
//财务 成交报告-未结单-第一级审核
'reportListOne/:check_status'
=>
[
'index/Finance/reportList'
,
[
'method'
=>
'get'
],
[
'check_status'
=>
1
]],
//财务 成交报告-未结单-第一级审核
'reportListTwo/:check_status'
=>
[
'index/Finance/reportList'
,
[
'method'
=>
'get'
],
[
'check_status'
=>
2
]],
//财务 成交报告-未结单-第二级审核
'reportListTwo/:check_status'
=>
[
'index/Finance/reportList'
,
[
'method'
=>
'get'
],
[
'check_status'
=>
2
]],
//财务 成交报告-未结单-第二级审核
...
...
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