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
65308984
Commit
65308984
authored
Dec 21, 2018
by
hujun
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'hujun-commission' into test
parents
cb104148
78a46cb2
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
228 additions
and
75 deletions
+228
-75
Finance.php
application/index/controller/Finance.php
+0
-0
RankingList.php
application/index/controller/RankingList.php
+2
-2
commission_total.html
application/index/view/finance/commission_total.html
+26
-3
OPartialCommission.php
application/model/OPartialCommission.php
+126
-63
route.php
application/route.php
+1
-1
commissionTotal.js
public/resource/js/commissionTotal.js
+72
-5
commissionTotal_template_tpl.html
public/resource/template/commissionTotal_template_tpl.html
+1
-1
No files found.
application/index/controller/Finance.php
View file @
65308984
This diff is collapsed.
Click to expand it.
application/index/controller/RankingList.php
View file @
65308984
...
@@ -32,11 +32,11 @@ class RankingList extends Basic{
...
@@ -32,11 +32,11 @@ class RankingList extends Basic{
*/
*/
public
function
getRandKingList
(){
public
function
getRandKingList
(){
$params
=
$this
->
params
;
$params
=
$this
->
params
;
/*
$params = array(
$params
=
array
(
"position"
=>
1
,
//职称 1店长 2经理 3主任 4顾问 0新人
"position"
=>
1
,
//职称 1店长 2经理 3主任 4顾问 0新人
"pk_type"
=>
2
//pk类型 1月pk 2周pk
"pk_type"
=>
2
//pk类型 1月pk 2周pk
);
);
$this->siteId = 10001;
*/
$this
->
siteId
=
10001
;
if
(
!
isset
(
$params
[
"position"
])
||
$params
[
"position"
]
<
0
||
$params
[
"position"
]
>
5
){
if
(
!
isset
(
$params
[
"position"
])
||
$params
[
"position"
]
<
0
||
$params
[
"position"
]
>
5
){
return
$this
->
response
(
"101"
,
"请求参数错误"
);
return
$this
->
response
(
"101"
,
"请求参数错误"
);
}
}
...
...
application/index/view/finance/commission_total.html
View file @
65308984
...
@@ -65,6 +65,21 @@
...
@@ -65,6 +65,21 @@
.clear
{
.clear
{
clear
:
both
;
clear
:
both
;
}
}
.user-ul
{
height
:
auto
;
float
:
left
;
position
:
relative
;
left
:
-40px
;
}
.user-ul
li
{
list-style
:
none
;
line-height
:
30px
;
}
.left-phone
{
float
:
left
;
margin-top
:
10px
;
margin-left
:
10px
;
}
</style>
</style>
<div
id=
"page-content-wrapper"
>
<div
id=
"page-content-wrapper"
>
<div
class=
"container"
>
<div
class=
"container"
>
...
@@ -117,9 +132,11 @@
...
@@ -117,9 +132,11 @@
<input class="form-control btn2 ld-Marheight" data-rule-phoneus="false" data-rule-required="false" id="store_name" placeholder="所属门店名称" type="text" value="">-->
<input class="form-control btn2 ld-Marheight" data-rule-phoneus="false" data-rule-required="false" id="store_name" placeholder="所属门店名称" type="text" value="">-->
<!--<input class="form-control btn2 ld-Marheight" data-rule-phoneus="false" data-rule-required="false" id="internal_num" placeholder="商铺号" type="text" value="">-->
<!--<input class="form-control btn2 ld-Marheight" data-rule-phoneus="false" data-rule-required="false" id="internal_num" placeholder="商铺号" type="text" value="">-->
<input
class=
"form-control btn2 ld-Marheight"
data-rule-phoneus=
"false"
data-rule-required=
"false"
id=
"user_name"
placeholder=
"业务员姓名"
type=
"text"
value=
""
>
<div
class=
"left-phone"
>
<input
class=
"form-control btn2 ld-Marheight"
data-rule-phoneus=
"false"
data-rule-required=
"false"
id=
"user_phone"
placeholder=
"业务员手机号"
type=
"text"
value=
""
>
<input
class=
"form-control"
data-rule-phoneus=
"false"
data-rule-required=
"false"
id=
"partical_name"
placeholder=
"分佣方姓名"
type=
"text"
value=
""
>
<ul
class=
"user-ul"
></ul>
</div>
<!--<span class="fore-span ld-Marheight">开票日期:</span>
<!--<span class="fore-span ld-Marheight">开票日期:</span>
<input class="form-control btn4 ld-Marheight" value="" data-rule-phoneus="false" data-rule-required="false" id="create_ticketTime" name="start_date" type="date" disabled="disabled">
<input class="form-control btn4 ld-Marheight" value="" data-rule-phoneus="false" data-rule-required="false" id="create_ticketTime" name="start_date" type="date" disabled="disabled">
<span class="fore-span ld-Marheight">-</span>
<span class="fore-span ld-Marheight">-</span>
...
@@ -132,6 +149,12 @@
...
@@ -132,6 +149,12 @@
<span
style=
"margin-left: 5px;font-size: 16px;font-weight: 600;"
>
<span
style=
"margin-left: 5px;font-size: 16px;font-weight: 600;"
>
最终实收总计:
<span
class=
"total-money"
></span>
元
最终实收总计:
<span
class=
"total-money"
></span>
元
</span>
</span>
<span
style=
"margin-left: 5px;font-size: 16px;font-weight: 600;"
>
税费总计:
<span
class=
"total-taxes"
></span>
元
</span>
<span
style=
"margin-left: 5px;font-size: 16px;font-weight: 600;"
>
最终实收总计:
<span
class=
"total-all"
></span>
元
</span>
</form>
</form>
</td>
</td>
</tr>
</tr>
...
...
application/model/OPartialCommission.php
View file @
65308984
...
@@ -209,67 +209,77 @@ class OPartialCommission extends BaseModel
...
@@ -209,67 +209,77 @@ class OPartialCommission extends BaseModel
*
*
* @param int $pageNo
* @param int $pageNo
* @param int $pageSize
* @param int $pageSize
* @param string $order_
* @param string $field
* @param string $field
* @param string $params
* @param string $params
* @param $operation_start_data
* @return mixed
* @param $operation_end_data
* @throws \think\db\exception\BindParamException
* @return false|\PDOStatement|string|\think\Collection
* @throws \think\exception\PDOException
* @throws \think\db\exception\DataNotFoundException
* @throws \think\db\exception\ModelNotFoundException
* @throws \think\exception\DbException
*/
*/
public
function
getCommissionTotalList
(
$pageNo
=
1
,
$pageSize
=
15
,
$
order_
=
'a.id desc'
,
$field
=
''
,
$params
=
''
,
$operation_start_data
,
$operation_end_data
)
public
function
getCommissionTotalList
(
$pageNo
=
1
,
$pageSize
=
15
,
$
field
=
''
,
$params
=
''
)
{
{
$data
=
$this
->
alias
(
'a'
)
$sql
=
"( SELECT
->
field
(
$field
)
{
$field
}
->
join
(
'o_bargain b'
,
'a.bargain_id = b.id'
,
'left'
)
FROM
->
join
(
'o_bargain e'
,
'b.father_id = e.id or b.id=e.id and e.father_id=0'
,
'left'
)
o_partial_commission a
->
join
(
'o_real_income f'
,
'e.id = f.bargain_id'
,
'left'
)
LEFT JOIN o_real_income b ON a.real_income_id = b.id
->
join
(
'a_agents d'
,
'a.agent_id = d.id'
,
'left'
)
LEFT JOIN o_taxes c ON a.agent_id = c.agent_id
->
where
(
$params
)
LEFT JOIN a_agents d ON a.agent_id = d.id
->
order
(
$order_
)
LEFT JOIN o_bargain e ON a.bargain_id = e.id
->
limit
(
$pageSize
)
WHERE
->
page
(
$pageNo
)
{
$params
}
->
group
(
'a.agent_id'
)
AND a.practical_fee > 0
->
select
();
AND c.fee > 0
GROUP BY
$m_agent
=
new
AAgents
();
a.agent_id
$m_tax
=
new
OTaxes
();
) UNION ALL
(
foreach
(
$data
as
$k
=>
$v
)
{
SELECT
if
(
isset
(
$v
[
'agent_id'
]))
{
{
$field
}
$district_store
=
$m_agent
->
getStoreDistrict
(
'store_name,district_name'
,
[
'a.id'
=>
$v
[
'agent_id'
]
]);
FROM
$data
[
$k
][
'district_store'
]
=
$district_store
[
'district_name'
]
.
'-'
.
$district_store
[
'store_name'
];
o_partial_commission a
LEFT JOIN o_real_income b ON a.real_income_id = b.id
//税费
LEFT JOIN o_taxes c ON a.agent_id = c.agent_id
$data
[
$k
][
'fee'
]
=
$m_tax
->
where
(
'operation_date'
,
'between time'
,
[
$operation_start_data
,
$operation_end_data
])
LEFT JOIN a_agents d ON a.agent_id = d.id
->
where
(
'agent_id'
,
$v
[
'agent_id'
])
->
sum
(
'fee'
);
LEFT JOIN o_bargain e ON a.bargain_id = e.id
WHERE
//去除多次应分佣金
{
$params
}
$should_commission
=
$this
->
where
(
'confirm_date'
,
'between time'
,
[
$operation_start_data
,
$operation_end_data
])
AND a.practical_fee IS NULL
->
where
(
'agent_id'
,
$v
[
'agent_id'
])
->
group
(
'bargain_id'
)
->
column
(
'should_commission'
);
AND c.fee > 0
GROUP BY
$data
[
$k
][
'should_commission'
]
=
0
;
a.agent_id
foreach
(
$should_commission
as
$kk
=>
$vv
)
{
) UNION ALL
$data
[
$k
][
'should_commission'
]
+=
$vv
;
(
}
SELECT
{
$field
}
$field_sum
=
'sum(practical_fee) as practical_fee,sum(cash) as cash,sum(real_fee) as real_fee,sum(service_charge) as service_charge,
FROM
sum(charity_fund) as charity_fund'
;
o_partial_commission a
//应分佣金
LEFT JOIN o_real_income b ON a.real_income_id = b.id
$partial_commission
=
$this
->
field
(
$field_sum
)
->
where
(
'confirm_date'
,
'between time'
,
[
$operation_start_data
,
$operation_end_data
])
LEFT JOIN o_taxes c ON a.agent_id = c.agent_id
->
where
(
'agent_id'
,
$v
[
'agent_id'
])
->
find
();
LEFT JOIN a_agents d ON a.agent_id = d.id
LEFT JOIN o_bargain e ON a.bargain_id = e.id
$data
[
$k
][
'practical_fee'
]
=
$partial_commission
[
'practical_fee'
];
WHERE
$data
[
$k
][
'cash'
]
=
$partial_commission
[
'cash'
];
{
$params
}
$data
[
$k
][
'real_fee'
]
=
$partial_commission
[
'real_fee'
];
AND a.practical_fee > 0
$data
[
$k
][
'service_charge'
]
=
$partial_commission
[
'service_charge'
];
AND c.fee IS NULL
$data
[
$k
][
'charity_fund'
]
=
$partial_commission
[
'charity_fund'
];
GROUP BY
}
a.agent_id
}
) limit
{
$pageNo
}
,
{
$pageSize
}
"
;
return
$this
->
query
(
$sql
);
}
return
$data
;
/**
* @param $field
* @param $where
* @return float|int
*/
public
function
getCommissionTotalInfo
(
$field
,
$where
)
{
return
$this
->
alias
(
'a'
)
->
join
(
'o_real_income b'
,
'a.real_income_id = b.id'
,
'left'
)
->
join
(
'o_taxes c'
,
'a.agent_id = c.agent_id'
,
'left'
)
->
join
(
'a_agents d'
,
'a.agent_id = d.id'
,
'left'
)
->
join
(
'o_bargain e'
,
'a.bargain_id = e.id'
,
'left'
)
->
where
(
$where
)
->
sum
(
$field
);
}
}
/**
/**
...
@@ -347,15 +357,68 @@ class OPartialCommission extends BaseModel
...
@@ -347,15 +357,68 @@ class OPartialCommission extends BaseModel
* @param $params
* @param $params
* @return int|string
* @return int|string
*/
*/
/**
* @param $params
* @return mixed
* @throws \think\db\exception\BindParamException
* @throws \think\exception\PDOException
*/
public
function
getCommissionTotalListTotal
(
$params
)
public
function
getCommissionTotalListTotal
(
$params
)
{
{
return
$this
->
alias
(
'a'
)
$sql
=
"SELECT
->
join
(
'o_bargain b'
,
'a.bargain_id = b.id'
,
'left'
)
COUNT( * ) AS count
->
join
(
'o_real_income f'
,
'b.id = f.bargain_id'
,
'left'
)
FROM
->
join
(
'a_agents d'
,
'a.agent_id = d.id'
,
'left'
)
(
->
where
(
$params
)
->
group
(
'a.agent_id'
)
( SELECT
->
count
();
count(a.id) as num
FROM
o_partial_commission a
LEFT JOIN o_real_income b ON a.real_income_id = b.id
LEFT JOIN o_taxes c ON a.agent_id = c.agent_id
LEFT JOIN a_agents d ON a.agent_id = d.id
LEFT JOIN o_bargain e ON a.bargain_id = e.id
WHERE
{
$params
}
AND a.practical_fee > 0
AND c.fee > 0
GROUP BY
a.agent_id
) UNION ALL
(
SELECT
count(a.id)
FROM
o_partial_commission a
LEFT JOIN o_real_income b ON a.real_income_id = b.id
LEFT JOIN o_taxes c ON a.agent_id = c.agent_id
LEFT JOIN a_agents d ON a.agent_id = d.id
LEFT JOIN o_bargain e ON a.bargain_id = e.id
WHERE
{
$params
}
AND a.practical_fee IS NULL
AND c.fee > 0
GROUP BY
a.agent_id
) UNION ALL
(
SELECT
count(a.id)
FROM
o_partial_commission a
LEFT JOIN o_real_income b ON a.real_income_id = b.id
LEFT JOIN o_taxes c ON a.agent_id = c.agent_id
LEFT JOIN a_agents d ON a.agent_id = d.id
LEFT JOIN o_bargain e ON a.bargain_id = e.id
WHERE
{
$params
}
AND a.practical_fee > 0
AND c.fee IS NULL
GROUP BY
a.agent_id
) ) as _group_count_"
;
$num
=
$this
->
query
(
$sql
);
return
$num
[
0
][
'count'
];
}
}
/**
/**
...
...
application/route.php
View file @
65308984
...
@@ -258,7 +258,7 @@ Route::group('index', [
...
@@ -258,7 +258,7 @@ Route::group('index', [
'searchBargainAgents'
=>
[
'index/Finance/searchBargainAgents'
,
[
'method'
=>
'GET'
]],
//成交报告id获取盘方,客方,反签,独家,合作方
'searchBargainAgents'
=>
[
'index/Finance/searchBargainAgents'
,
[
'method'
=>
'GET'
]],
//成交报告id获取盘方,客方,反签,独家,合作方
'searchOrderAgents'
=>
[
'index/Finance/searchOrderAgents'
,
[
'method'
=>
'GET'
]],
//order_id获取盘方,客方,反签,独家,合作方
'searchOrderAgents'
=>
[
'index/Finance/searchOrderAgents'
,
[
'method'
=>
'GET'
]],
//order_id获取盘方,客方,反签,独家,合作方
'getTallAgeList'
=>
[
'index/Finance/getTallAgeList'
,
[
'method'
=>
'GET'
]],
//税费承担明细表
'getTallAgeList'
=>
[
'index/Finance/getTallAgeList'
,
[
'method'
=>
'GET'
]],
//税费承担明细表
'getCommissionTotalList'
=>
[
'index/Finance/getCommissionTotalList
V2
'
,
[
'method'
=>
'GET'
]],
//分佣提成汇总表
'getCommissionTotalList'
=>
[
'index/Finance/getCommissionTotalList'
,
[
'method'
=>
'GET'
]],
//分佣提成汇总表
'getCollection'
=>
[
'index/Finance/getCollection'
,
[
'method'
=>
'post|get'
]],
//收款记录
'getCollection'
=>
[
'index/Finance/getCollection'
,
[
'method'
=>
'post|get'
]],
//收款记录
'addRealMoney'
=>
[
'index/Finance/addRealMoney'
,
[
'method'
=>
'post|get'
]],
//新增实收
'addRealMoney'
=>
[
'index/Finance/addRealMoney'
,
[
'method'
=>
'post|get'
]],
//新增实收
'visitShop'
=>
[
'index/Supervise/visitShop'
,
[
'method'
=>
'get'
]],
//门店拜访
'visitShop'
=>
[
'index/Supervise/visitShop'
,
[
'method'
=>
'get'
]],
//门店拜访
...
...
public/resource/js/commissionTotal.js
View file @
65308984
...
@@ -13,6 +13,7 @@ define(['doT', 'text!temp/commissionTotal_template_tpl.html', 'css!style/home.cs
...
@@ -13,6 +13,7 @@ define(['doT', 'text!temp/commissionTotal_template_tpl.html', 'css!style/home.cs
ldHtml
:
$
(
'.phone_list'
),
ldHtml
:
$
(
'.phone_list'
),
boxphoto
:
''
,
boxphoto
:
''
,
exclusive_id
:
0
,
exclusive_id
:
0
,
agent_id_phone
:
0
,
init
:
function
()
{
init
:
function
()
{
//初始化dot
//初始化dot
$
(
"body"
).
append
(
template
);
$
(
"body"
).
append
(
template
);
...
@@ -54,7 +55,7 @@ define(['doT', 'text!temp/commissionTotal_template_tpl.html', 'css!style/home.cs
...
@@ -54,7 +55,7 @@ define(['doT', 'text!temp/commissionTotal_template_tpl.html', 'css!style/home.cs
$
(
'#confirm_commission'
).
val
(
day_end
);
$
(
'#confirm_commission'
).
val
(
day_end
);
//初始化收佣日期
//初始化收佣日期
business
.
getList
();
business
.
getList
(
1
);
business
.
event
();
business
.
event
();
business
.
getDistrict
();
business
.
getDistrict
();
},
},
...
@@ -98,7 +99,19 @@ define(['doT', 'text!temp/commissionTotal_template_tpl.html', 'css!style/home.cs
...
@@ -98,7 +99,19 @@ define(['doT', 'text!temp/commissionTotal_template_tpl.html', 'css!style/home.cs
$
(
"#reset"
).
click
(
function
()
{
//重置
$
(
"#reset"
).
click
(
function
()
{
//重置
document
.
getElementById
(
"form_search"
).
reset
();
document
.
getElementById
(
"form_search"
).
reset
();
});
});
//分佣方 姓名下拉式
$
(
document
).
on
(
"input"
,
"#partical_name"
,
function
()
{
//手机号新增搜索客方
if
(
$
(
"#partical_name"
).
val
()
==
''
)
{
business
.
agent_id_phone
=
''
;
$
(
".user-ul"
).
html
(
''
);
}
else
{
business
.
search_phone
();
}
});
//点击li 列表消失
$
(
document
).
delegate
(
".addphone"
,
"click"
,
function
()
{
//list消失新增客户 点击li事件 获取id ul消失
business
.
addphone
(
this
);
});
$
(
document
).
delegate
(
".del_modal"
,
"click"
,
function
()
{
$
(
document
).
delegate
(
".del_modal"
,
"click"
,
function
()
{
business
.
id
=
$
(
this
).
attr
(
"data-id"
);
business
.
id
=
$
(
this
).
attr
(
"data-id"
);
...
@@ -411,8 +424,7 @@ define(['doT', 'text!temp/commissionTotal_template_tpl.html', 'css!style/home.cs
...
@@ -411,8 +424,7 @@ define(['doT', 'text!temp/commissionTotal_template_tpl.html', 'css!style/home.cs
}
}
params
.
pageNo
=
business
.
pageNo
;
params
.
pageNo
=
business
.
pageNo
;
params
.
pageSize
=
business
.
pageSize
;
params
.
pageSize
=
business
.
pageSize
;
params
.
name
=
$
(
'#user_name'
).
val
();
params
.
agent_id
=
business
.
agent_id_phone
;
params
.
phone
=
$
(
'#user_phone'
).
val
();
params
.
income_start_date
=
$
(
'#create_time'
).
val
();
params
.
income_start_date
=
$
(
'#create_time'
).
val
();
params
.
income_end_date
=
$
(
'#end_time'
).
val
();
params
.
income_end_date
=
$
(
'#end_time'
).
val
();
params
.
bargain_start_date
=
$
(
'#create_dealtime'
).
val
();
params
.
bargain_start_date
=
$
(
'#create_dealtime'
).
val
();
...
@@ -420,6 +432,7 @@ define(['doT', 'text!temp/commissionTotal_template_tpl.html', 'css!style/home.cs
...
@@ -420,6 +432,7 @@ define(['doT', 'text!temp/commissionTotal_template_tpl.html', 'css!style/home.cs
params
.
confirm_date
=
$
(
'#confirm_commission'
).
val
();
params
.
confirm_date
=
$
(
'#confirm_commission'
).
val
();
params
.
district_id
=
$
(
"#district_id"
).
val
();
//部门id 添加字段
params
.
district_id
=
$
(
"#district_id"
).
val
();
//部门id 添加字段
params
.
store_id
=
$
(
'#guest_stores'
).
val
();
params
.
store_id
=
$
(
'#guest_stores'
).
val
();
console
.
log
(
params
)
$
.
ajax
({
$
.
ajax
({
url
:
'/index/getCommissionTotalList'
,
//获取列表
url
:
'/index/getCommissionTotalList'
,
//获取列表
type
:
'GET'
,
type
:
'GET'
,
...
@@ -433,6 +446,8 @@ define(['doT', 'text!temp/commissionTotal_template_tpl.html', 'css!style/home.cs
...
@@ -433,6 +446,8 @@ define(['doT', 'text!temp/commissionTotal_template_tpl.html', 'css!style/home.cs
$
(
"#business_list"
).
html
(
doTtmpl
(
data
.
data
.
list
));
$
(
"#business_list"
).
html
(
doTtmpl
(
data
.
data
.
list
));
//汇总总计
//汇总总计
$
(
'.total-money'
).
html
(
data
.
data
.
total_money
);
$
(
'.total-money'
).
html
(
data
.
data
.
total_money
);
$
(
'.total-taxes'
).
html
(
data
.
data
.
total_taxes
);
$
(
'.total-all'
).
html
(
data
.
data
.
total_money
-
data
.
data
.
total_taxes
);
/*分页代码*/
/*分页代码*/
add_page
(
data
.
data
.
total
,
pageNo
,
business
.
pageSize
,
business
.
getList
);
add_page
(
data
.
data
.
total
,
pageNo
,
business
.
pageSize
,
business
.
getList
);
}
else
{
}
else
{
...
@@ -526,7 +541,58 @@ define(['doT', 'text!temp/commissionTotal_template_tpl.html', 'css!style/home.cs
...
@@ -526,7 +541,58 @@ define(['doT', 'text!temp/commissionTotal_template_tpl.html', 'css!style/home.cs
}
}
window
.
open
(
str
)
window
.
open
(
str
)
}
},
//分佣方 姓名搜索
search_phone
:
function
()
{
//手机号新增客户
$
.
ajax
({
url
:
'/index/getBroker_new'
,
type
:
'GET'
,
async
:
true
,
data
:
{
"phone"
:
$
(
"#partical_name"
).
val
(),
'all'
:
1
},
dataType
:
'json'
,
success
:
function
(
data
)
{
if
(
data
.
code
==
200
)
{
var
user_ul
=
""
;
$
.
each
(
data
.
data
,
function
(
i
,
item
)
{
if
(
item
.
status
==
0
){
var
status
=
' '
;
};
if
(
item
.
status
==
1
){
var
status
=
'-长假'
;
};
if
(
item
.
status
==
2
){
var
status
=
'-离职'
;
};
if
(
item
.
status
==
3
){
var
status
=
'-转勤'
;
};
if
(
item
.
status
==
4
){
var
status
=
'-黑名单'
;
}
user_ul
+=
'<li class="addphone" data-id="'
+
item
.
id
+
'">'
+
item
.
id
+
'-'
+
item
.
name
+
'-'
+
item
.
phone
+
status
+
'</li>'
;
});
$
(
".user-ul"
).
html
(
user_ul
);
}
else
{
alert
(
data
.
msg
);
}
}
});
},
//将li里的值 赋给input(分佣方姓名)
addphone
:
function
(
obj
)
{
//新增客户 input赋值
var
user_ht
=
$
(
obj
).
html
()
+
''
;
console
.
log
(
user_ht
.
length
);
var
user_ht_str
=
user_ht
.
substring
(
0
,
user_ht
.
length
-
3
);
$
(
"#partical_name"
).
val
(
user_ht_str
);
$
(
".user-ul"
).
html
(
''
);
business
.
agent_id_phone
=
$
(
obj
).
attr
(
"data-id"
);
},
};
};
return
business
;
return
business
;
});
});
\ No newline at end of file
public/resource/template/commissionTotal_template_tpl.html
View file @
65308984
...
@@ -31,7 +31,7 @@
...
@@ -31,7 +31,7 @@
[
%
}
%
]
[
%
}
%
]
<
/td
>
<
/td
>
<
td
>
<
td
>
[
%=
it
[
item
][
'
over_
fee'
]
%
]
[
%=
it
[
item
][
'
practical_fee'
]
-
it
[
item
][
'
fee'
]
%
]
<
/td
>
<
/td
>
<
/tr
>
<
/tr
>
[
%
}
%
]
[
%
}
%
]
...
...
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