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
8d357f27
Commit
8d357f27
authored
May 25, 2018
by
hujun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
edit
parent
99df1817
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
16 additions
and
13 deletions
+16
-13
Finance.php
application/index/controller/Finance.php
+10
-7
OBargainModel.php
application/model/OBargainModel.php
+3
-2
route.php
application/route.php
+3
-4
No files found.
application/index/controller/Finance.php
View file @
8d357f27
...
@@ -864,7 +864,16 @@ class Finance extends Basic
...
@@ -864,7 +864,16 @@ class Finance extends Basic
$m_bargain
=
new
OBargainModel
();
$m_bargain
=
new
OBargainModel
();
if
(
!
empty
(
$this
->
params
[
'excel'
])
&&
$this
->
params
[
'excel'
]
==
1
)
{
if
(
empty
(
$this
->
params
[
'excel'
])
&&
$this
->
params
[
'excel'
]
!=
1
)
{
$fields
=
'f.income_time,a.create_time,a.id,a.agent_id,sum(b.fee) as fee,sum(c.practical_fee) as practical_fee,sum(c.cash) as cash,'
;
$fields
.=
'sum(c.service_charge) as service_charge,sum(b.fee) as fee,sum(c.real_fee) as real_fee,'
;
$fields
.=
'd.name,d.phone'
;
$data
[
'data'
][
'list'
]
=
$m_bargain
->
getCommissionTotalList
(
$pageNo
,
$pageSize
,
'a.id desc'
,
$fields
,
$where
,
$whereOr
);
$data
[
'data'
][
'total'
]
=
$m_bargain
->
getCommissionTotalListTotal
(
$where
,
$whereOr
);
}
else
{
//导出Excel
$fields
=
'f.income_time,a.create_time,sum(b.fee) as fee,sum(f.money) as money,sum(c.cash) as cash,'
;
$fields
=
'f.income_time,a.create_time,sum(b.fee) as fee,sum(f.money) as money,sum(c.cash) as cash,'
;
$fields
.=
'sum(c.service_charge) as service_charge,'
;
$fields
.=
'sum(c.service_charge) as service_charge,'
;
$fields
.=
'd.name,d.phone,sum(c.charity_fund) as charity_fund, sum(should_commission) as should_commission'
;
$fields
.=
'd.name,d.phone,sum(c.charity_fund) as charity_fund, sum(should_commission) as should_commission'
;
...
@@ -903,12 +912,6 @@ class Finance extends Basic
...
@@ -903,12 +912,6 @@ class Finance extends Basic
$title
=
[
'收佣日期/开票日期'
,
'成交日期/开票日期'
,
'所属部门/门店'
,
'业务员'
,
'应分佣金(元)'
,
'手续费(元)'
,
'现金奖(元)'
,
'慈善基金(元)'
,
'实收佣金(元)'
,
'税费(元)'
,
'最终实收(元)'
];
$title
=
[
'收佣日期/开票日期'
,
'成交日期/开票日期'
,
'所属部门/门店'
,
'业务员'
,
'应分佣金(元)'
,
'手续费(元)'
,
'现金奖(元)'
,
'慈善基金(元)'
,
'实收佣金(元)'
,
'税费(元)'
,
'最终实收(元)'
];
$export
->
exportTable
(
'分佣提成汇总表'
,
$excel_data
,
11
,
'分佣提成汇总表'
,
$title
);
$export
->
exportTable
(
'分佣提成汇总表'
,
$excel_data
,
11
,
'分佣提成汇总表'
,
$title
);
return
;
return
;
}
else
{
$fields
=
'a.id,a.agent_id,sum(b.fee) as fee,sum(c.practical_fee) as practical_fee,sum(c.cash) as cash,'
;
$fields
.=
'sum(c.service_charge) as service_charge,sum(b.fee) as fee,sum(c.real_fee) as real_fee,'
;
$fields
.=
'd.name,d.phone'
;
$data
[
'data'
][
'list'
]
=
$m_bargain
->
getCommissionTotalList
(
$pageNo
,
$pageSize
,
'a.id desc'
,
$fields
,
$where
,
$whereOr
);
$data
[
'data'
][
'total'
]
=
$m_bargain
->
getCommissionTotalListTotal
(
$where
,
$whereOr
);
}
}
return
$this
->
response
(
$data
[
'code'
],
$data
[
'msg'
],
$data
[
'data'
]);
return
$this
->
response
(
$data
[
'code'
],
$data
[
'msg'
],
$data
[
'data'
]);
...
...
application/model/OBargainModel.php
View file @
8d357f27
...
@@ -306,6 +306,7 @@ class OBargainModel extends Model
...
@@ -306,6 +306,7 @@ class OBargainModel extends Model
$save_data
[
'audit_name'
]
=
$data
[
'audit_name'
];
$save_data
[
'audit_name'
]
=
$data
[
'audit_name'
];
$return
=
0
;
$return
=
0
;
$audit_level
=
$data
[
'audit_level'
]
-
1
;
$audit_level
=
$data
[
'audit_level'
]
-
1
;
//是否有审核记录,只做一次审核。
//是否有审核记录,只做一次审核。
if
(
isset
(
$audit_data
[
'id'
]))
{
if
(
isset
(
$audit_data
[
'id'
]))
{
//第二、三审核
//第二、三审核
...
@@ -315,7 +316,7 @@ class OBargainModel extends Model
...
@@ -315,7 +316,7 @@ class OBargainModel extends Model
}
}
}
else
{
}
else
{
//第一步审核
//第一步审核
if
(
$data
[
'audit_level'
]
==
=
"0"
)
{
if
(
$data
[
'audit_level'
]
==
"0"
)
{
$save_data
[
'audit_level'
]
=
0
;
$save_data
[
'audit_level'
]
=
0
;
$return
=
$audit
->
addAudit
(
$save_data
);
$return
=
$audit
->
addAudit
(
$save_data
);
}
}
...
@@ -639,7 +640,7 @@ class OBargainModel extends Model
...
@@ -639,7 +640,7 @@ class OBargainModel extends Model
$data
[
$k
][
'district_store'
]
=
$district_store
[
'district_name'
]
.
'-'
.
$district_store
[
'store_name'
];
$data
[
$k
][
'district_store'
]
=
$district_store
[
'district_name'
]
.
'-'
.
$district_store
[
'store_name'
];
}
}
$data
[
$k
][
'tax_fee'
]
=
$m_fee
->
where
(
'bargain_id'
,
$v
[
'id'
])
->
sum
(
'fee'
);
//
$data[$k]['tax_fee'] = $m_fee->where('bargain_id', $v['id'])->sum('fee');
}
}
return
$data
;
return
$data
;
...
...
application/route.php
View file @
8d357f27
...
@@ -199,10 +199,9 @@ Route::group('index', [
...
@@ -199,10 +199,9 @@ Route::group('index', [
'refundListMajordomo/:check_status'
=>
[
'index/Finance/refundList'
,
[
'method'
=>
'get|post'
],
[
'check_status'
=>
2
]
],
//退款列表-总监审核
'refundListMajordomo/:check_status'
=>
[
'index/Finance/refundList'
,
[
'method'
=>
'get|post'
],
[
'check_status'
=>
2
]
],
//退款列表-总监审核
'refundListCashier/:check_status'
=>
[
'index/Finance/refundList'
,
[
'method'
=>
'get|post'
],
[
'check_status'
=>
3
]
],
//退款列表-出纳审核
'refundListCashier/:check_status'
=>
[
'index/Finance/refundList'
,
[
'method'
=>
'get|post'
],
[
'check_status'
=>
3
]
],
//退款列表-出纳审核
'refundOrderList'
=>
[
'index/Finance/refundOrderList'
,
[
'method'
=>
'get'
]
],
//财务 已退款
'refundOrderList'
=>
[
'index/Finance/refundOrderList'
,
[
'method'
=>
'get'
]
],
//财务 已退款
'checkReportAttache/:check_status'
=>
[
'index/Finance/checkReport'
,
[
'method'
=>
'post'
],
[
'check_status'
=>
0
]
],
//审核成交报告-专员审核
'checkReportAttache/:check_status'
=>
[
'index/Finance/checkReport'
,
[
'method'
=>
'post'
],
[
'check_status'
=>
0
]
],
//审核成交报告-专员审核-第一级审核
'checkReportManager/:check_status'
=>
[
'index/Finance/checkReport'
,
[
'method'
=>
'post'
],
[
'check_status'
=>
1
]
],
//审核成交报告-经理审核
'checkReportManager/:check_status'
=>
[
'index/Finance/checkReport'
,
[
'method'
=>
'post'
],
[
'check_status'
=>
1
]
],
//审核成交报告-经理审核-第二级审核
'checkReportMajordomo/:check_status'
=>
[
'index/Finance/checkReport'
,
[
'method'
=>
'post'
],
[
'check_status'
=>
2
]
],
//审核成交报告-总监审核
'checkReportMajordomo/:check_status'
=>
[
'index/Finance/checkReport'
,
[
'method'
=>
'post'
],
[
'check_status'
=>
2
]
],
//审核成交报告-总监审核-第三级审核
'checkReportCashier/:check_status'
=>
[
'index/Finance/checkReport'
,
[
'method'
=>
'post'
],
[
'check_status'
=>
3
]
],
//审核成交报告-出纳审核
'overRuleAttache/:check_status'
=>
[
'index/Finance/overRule'
,
[
'method'
=>
'post'
],
[
'check_status'
=>
0
]
],
//退款审核-驳回-专员审核
'overRuleAttache/:check_status'
=>
[
'index/Finance/overRule'
,
[
'method'
=>
'post'
],
[
'check_status'
=>
0
]
],
//退款审核-驳回-专员审核
'overRuleManager/:check_status'
=>
[
'index/Finance/overRule'
,
[
'method'
=>
'post'
],
[
'check_status'
=>
1
]
],
//退款审核-驳回-经理审核
'overRuleManager/:check_status'
=>
[
'index/Finance/overRule'
,
[
'method'
=>
'post'
],
[
'check_status'
=>
1
]
],
//退款审核-驳回-经理审核
'overRuleMajordomo/:check_status'
=>
[
'index/Finance/overRule'
,
[
'method'
=>
'post'
],
[
'check_status'
=>
2
]
],
//退款审核-驳回-总监审核
'overRuleMajordomo/:check_status'
=>
[
'index/Finance/overRule'
,
[
'method'
=>
'post'
],
[
'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