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
b5e81bc3
Commit
b5e81bc3
authored
Aug 07, 2018
by
clone
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'test-0806-bug' of
https://gitee.com/zwyjjc/tl_estate
into test-0806-bug
parents
37a0c07a
48182783
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
618 additions
and
368 deletions
+618
-368
performancesubsidiaryList.html
...view/performancesubsidiary/performancesubsidiaryList.html
+100
-142
commission.js
public/resource/js/commission.js
+2
-2
performance_subsidiary.js
public/resource/js/performance_subsidiary.js
+475
-211
tax.js
public/resource/js/tax.js
+2
-2
user.js
public/resource/js/user.js
+32
-1
performance_subsidiary_template_tpl.html
...esource/template/performance_subsidiary_template_tpl.html
+0
-2
reportList_no_edit_template_tpl.html
...ic/resource/template/reportList_no_edit_template_tpl.html
+6
-7
user_template_tpl.html
public/resource/template/user_template_tpl.html
+1
-1
No files found.
application/index/view/performancesubsidiary/performancesubsidiaryList.html
View file @
b5e81bc3
{layout name="global/frame_tpl" /}
{layout name="global/frame_tpl" /}
<input
type=
"hidden"
class=
"page-load"
id=
"performance_subsidiary"
/>
<input
type=
"hidden"
class=
"page-load"
id=
"performance_subsidiary"
/>
<style>
<style
type=
"text/css"
>
#note_text
{
.clear
{
width
:
80%
;
clear
:
both
;
margin-left
:
48px
;
}
margin-top
:
-20px
;
}
#note_text_re
{
width
:
80%
;
margin-left
:
48px
;
margin-top
:
-20px
;
}
.Tswitch_one
{
display
:
none
;
}
.Tswitch_two
{
display
:
none
;
}
.left
{
float
:
left
;
width
:
340px
;
line-height
:
36px
;
}
.right
{
line-height
:
36px
;
}
.btn_2
{
width
:
60px
;
display
:
inline-block
;
height
:
26px
;
padding
:
3px
6px
}
.edit_new
{
float
:
right
;
margin-bottom
:
5px
;
margin-top
:
-10px
;
}
.form-control-one
{
display
:
inline-block
;
width
:
40%
;
}
#form_search
{
line-height
:
48px
;
}
.modal-body-two
{
height
:
500px
;
overflow-y
:
scroll
;
}
.clear
{
clear
:
both
;
}
.text-width-yeji
{
font-size
:
16px
;
font-weight
:
800
;
}
</style>
</style>
<div
id=
"page-content-wrapper"
>
<div
id=
"page-content-wrapper"
>
<div
class=
"container"
>
<div
class=
"container"
>
<div
class=
"row"
>
<div
class=
"row"
>
<div
class=
""
>
<div
class=
""
>
<div
class=
"panel panel-default"
>
<div
class=
"panel panel-default"
>
<div
class=
"panel-heading breadcrumb"
>
<div
class=
"panel-heading breadcrumb"
>
<li><a
href=
"#"
>
业绩明细
</a></li>
<li>
</div>
<a
href=
"#"
>
业绩明细
</a>
</li>
<div
class=
"panel-body"
>
</div>
<div
class=
"table-responsive"
>
<div
class=
"panel-body"
>
<table
class=
"table table-striped table-bordered table-hover table-condensed"
>
<div
class=
"table-responsive"
>
<thead>
<table
class=
"table table-striped table-bordered table-hover table-condensed"
>
<tr>
<thead>
<td
colspan=
"9"
>
<!--三级审核的搜索功能-->
<form
id=
"form_search"
>
<tr>
<!--<span class="fore-span ld-Marheight">商铺类型:</span>-->
<td
colspan=
"9"
>
<select
class=
"form-control btn2 ld-Marheight"
name=
"maintable_shop_type"
id=
"maintable_shop_type"
>
<form
id=
"maintable_form_search"
>
<!--<span class="fore-span">商铺类型:</span>-->
<select
class=
"form-control btn2"
name=
"maintable_shop_type"
id=
"maintable_shop_type"
>
<option
value=
"-1"
>
商铺类型
</option>
<option
value=
"-1"
>
商铺类型
</option>
<option
value=
"0"
>
商场
</option>
<option
value=
"0"
>
商场
</option>
<option
value=
"1"
>
街铺
</option>
<option
value=
"1"
>
街铺
</option>
</select>
</select>
<!--<span class="fore-span ld-Marheight
">成交类型:</span>-->
<!--<span class="fore-span
">成交类型:</span>-->
<select
class=
"form-control btn2 ld-Marheight"
name=
"maintable_shop_type"
id=
"maintable_shop
_type"
>
<select
class=
"form-control btn2"
name=
"maintable_shop_type"
id=
"maintable_deal
_type"
>
<option
value=
"-1"
>
成交类型
</option>
<option
value=
"-1"
>
成交类型
</option>
<option
value=
"0"
>
出租
</option>
<option
value=
"0"
>
出租
</option>
<option
value=
"1"
>
增佣
</option>
<option
value=
"1"
>
增佣
</option>
<option
value=
"2"
>
代理费
</option>
<option
value=
"2"
>
代理费
</option>
<option
value=
"3"
>
好处费
</option>
<option
value=
"3"
>
好处费
</option>
</select>
</select>
<span
class=
"fore-span ld-Marheight"
>
提交时间:
</span>
<span
class=
"fore-span margin-left-10"
>
提交时间:
</span>
<input
class=
"form-control btn4 ld-Marheight"
value=
""
data-rule-phoneus=
"false"
data-rule-required=
"false"
id=
"create_time"
name=
"start_date"
type=
"date"
>
<input
class=
"form-control btn4"
value=
""
data-rule-phoneus=
"false"
data-rule-required=
"false"
id=
"maintable_create_time"
name=
"start_date"
type=
"date"
>
<span
class=
"fore-span ld-Marheight"
>
-
</span>
<span
class=
"fore-span margin-left-10"
>
至
</span>
<input
class=
"form-control btn4 ld-Marheight"
value=
""
data-rule-phoneus=
"false"
data-rule-required=
"false"
id=
"end_time"
name=
"end_date"
type=
"date"
>
<input
class=
"form-control btn4"
value=
""
data-rule-phoneus=
"false"
data-rule-required=
"false"
id=
"maintable_end_time"
name=
"end_date"
type=
"date"
>
<input
class=
"form-control btn2 ld-Marheight"
data-rule-phoneus=
"false"
data-rule-required=
"false"
id=
"internal_address"
placeholder=
"商铺地址"
type=
"text"
value=
""
>
<input
class=
"form-control btn2"
data-rule-phoneus=
"false"
data-rule-required=
"false"
id=
"maintable_internal_address"
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"
data-rule-phoneus=
"false"
data-rule-required=
"false"
id=
"maintable_shop_num"
placeholder=
"商铺号"
type=
"text"
value=
""
>
<!--<input class="form-control btn2" data-rule-phoneus="false" data-rule-required="false" id="maintable_user_phone" placeholder="客户电话" type="text" value="">-->
<!--<div class="clear">
<select
name=
"district_id"
class=
"form-control btn4"
>
</div>-->
<select
name=
"district_id"
class=
"form-control btn4 ld-Marheight"
>
<option
value=
""
>
分佣方所在部门
</option>
<option
value=
""
>
分佣方所在部门
</option>
</select>
</select>
<select
name=
"store_id"
class=
"form-control btn4
ld-Marheight
"
>
<select
name=
"store_id"
class=
"form-control btn4"
>
<option
value=
""
>
分佣方所在门店
</option>
<option
value=
""
>
分佣方所在门店
</option>
</select>
</select>
<input
class=
"form-control btn2 ld-Marheight"
data-rule-phoneus=
"false"
data-rule-required=
"false"
id=
"user_name"
placeholder=
"分佣方姓名"
type=
"text"
value=
""
>
<input
class=
"form-control btn2"
data-rule-phoneus=
"false"
data-rule-required=
"false"
id=
"agent_name"
placeholder=
"分佣方姓名"
type=
"text"
value=
""
>
<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 btn2"
data-rule-phoneus=
"false"
data-rule-required=
"false"
id=
"agent_phone"
placeholder=
"分佣方手机号"
type=
"text"
value=
""
>
<!--<input class="form-control btn2" data-rule-phoneus="false" data-rule-required="false" id="partical_name" placeholder="分佣方姓名" type="text" value="">-->
<span
class=
"btn btn-info btn3"
id=
"search"
>
搜索
</span>
<div
class=
"clear"
>
<span
class=
"btn btn-info btn3"
id=
"reset"
>
重置
</span>
<!--<span class="btn btn-info btn3" id="export">导出excel</span>-->
</div>
<span
class=
"text-width-yeji"
>
业绩总计:
</span><span
id=
"performance_subsidiary_Total"
class=
"text-width-yeji"
></span>
<span
class=
"btn btn-info btn3 search"
id=
"maintable_search"
>
搜索
</span>
</form>
<span
class=
"btn btn-info btn3"
id=
"maintable_reset"
>
重置
</span>
</td>
<span>
业绩总计:
</span><span
id=
"performance_subsidiary_total"
>
15000
</span>
</tr>
<!--<span class="btn btn-info btn3" id="maintable_export">导出excel</span>-->
<tr>
</form>
<th
class=
"text-center"
>
开票日期
</th>
</td>
<th
class=
"text-center"
>
所属部门/门店
</th>
</tr>
<th
class=
"text-center"
>
业务员
</th>
<tr
class=
"maintable-tr-bar"
>
<th
class=
"text-center"
>
商铺地址
</th>
<th
class=
"text-center"
>
提交时间
</th>
<th
class=
"text-center"
>
商铺号
</th>
<th
class=
"text-center"
>
是否开业
</th>
<th
class=
"text-center"
>
税费(元)
</th>
<th
class=
"text-center"
>
商铺地址
</th>
<th
class=
"text-center"
>
操作
</th>
<th
class=
"text-center"
>
商铺号
</th>
</tr>
<th
class=
"text-center"
>
成交客户
</th>
</thead>
<th
class=
"text-center"
>
客户电话
</th>
<tbody
class=
"text-center"
id=
"business_list"
>
<!--<th class="text-center">成交类型</th>
</table>
<th class="text-center">应收佣金(元)</th>-->
</div>
<th
class=
"text-center"
>
操作
</th>
<!-- /#page-content-wrapper -->
</tr>
<div
class=
"text-right"
id=
"pagediv"
>
</thead>
<tbody
class=
"text-center"
id=
"maintable_list"
>
</div>
</tbody>
</div>
</table>
</div>
</div>
</div>
<!-- /#page-content-wrapper -->
<div
class=
"text-right"
id=
"pagediv"
>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<!-- 弹出框 详情 -->
<!-- 弹出框 详情 -->
<div
class=
"modal fade"
id=
"modal_detail"
tabindex=
"-1"
role=
"dialog"
aria-labelledby=
"myModalLabel"
aria-hidden=
"true"
>
<div
class=
"modal fade"
id=
"modal_detail"
tabindex=
"-1"
role=
"dialog"
aria-labelledby=
"myModalLabel"
aria-hidden=
"true"
>
...
@@ -160,53 +115,54 @@
...
@@ -160,53 +115,54 @@
<br
/>
<br
/>
<span>
商铺地址:
</span><span
id=
"bargaininfo_internal_address"
></span><br>
<span>
商铺地址:
</span><span
id=
"bargaininfo_internal_address"
></span><br>
<span>
业态:
</span>
<input
class=
"form-control"
id=
"bargaininfo_yetai"
disabled=
"disabled"
type=
"text"
><br>
<span>
业态:
</span>
<input
class=
"form-control"
id=
"bargaininfo_yetai"
type=
"text"
><br>
<span>
客户姓名:
</span><span
id=
"bargaininfo_user_name"
></span><br>
<span>
客户姓名:
</span><span
id=
"bargaininfo_user_name"
></span><br>
<span>
成交类型:
</span>
<span>
成交类型:
</span>
<select
class=
"form-control"
id=
"bargaininfo_type"
disabled=
"disabled"
>
<select
class=
"form-control"
id=
"bargaininfo_type"
>
<option
value=
"10"
>
出租
</option>
<option
value=
"10"
>
出租
</option>
<option
value=
"20"
>
增佣
</option>
<option
value=
"20"
>
增佣
</option>
<option
value=
"30"
>
代理
</option>
<option
value=
"30"
>
代理
</option>
<option
value=
"40"
>
好处费
</option>
<option
value=
"40"
>
好处费
</option>
</select>
</select>
<br
/>
<br
/>
<span>
应收总佣金:
</span>
<input
class=
"form-control"
id=
"bargaininfo_total_commission"
type=
"number"
disabled=
"disabled"
>
元
<br>
<span>
应收总佣金:
</span>
<input
class=
"form-control"
id=
"bargaininfo_total_commission"
type=
"number"
>
元
<br>
</div>
</div>
<div
class=
"detail-modal-bargaininfo-main-right"
>
<div
class=
"detail-modal-bargaininfo-main-right"
>
<span>
是否开业:
</span>
<span>
是否开业:
</span>
<select
class=
"form-control"
id=
"bargaininfo_is_open"
disabled=
"disabled"
>
<select
class=
"form-control"
id=
"bargaininfo_is_open"
>
<option
value=
"0"
>
否
</option>
<option
value=
"0"
>
否
</option>
<option
value=
"1"
>
是
</option>
<option
value=
"1"
>
是
</option>
</select>
<br
/>
</select>
<br
/>
<span>
商铺号:
</span><span
id=
"bargaininfo_shop_num"
></span><br>
<span>
商铺号:
</span><span
id=
"bargaininfo_shop_num"
></span><br>
<!--<span>预计收款时间:</span><span id="bargaininfo_expect_payback_time"></span><br>-->
<span>
预计收款时间:
</span><input
type=
"date"
id=
"bargaininfo_expect_payback_time"
placeholder=
"请输入"
><br>
<span>
客户电话:
</span><span
id=
"bargaininfo_user_phone"
></span><br>
<span>
客户电话:
</span><span
id=
"bargaininfo_user_phone"
></span><br>
<span>
预计收款时间:
</span><input
type=
"date"
id=
"bargaininfo_expect_payback_time"
readonly=
"readonly"
placeholder=
"请输入"
><br>
<span>
成交日期:
</span><span
id=
"bargaininfo_create_time"
></span><br>
<span>
成交日期:
</span><span
id=
"bargaininfo_create_time"
></span><br>
<span>
成交价:
</span>
<input
class=
"form-control"
id=
"bargaininfo_chengjiao_price"
disabled=
"disabled"
type=
"number"
>
元
<span>
成交价:
</span>
<input
class=
"form-control"
id=
"bargaininfo_chengjiao_price"
type=
"number"
>
元
</div>
</div>
<div
class=
"detail-modal-bargaininfo-commission-inputpar"
>
<div
class=
"detail-modal-bargaininfo-commission-inputpar"
>
<div
class=
"detail-modal-bargaininfo-commission-addarea"
>
<div
class=
"detail-modal-bargaininfo-commission-addarea"
>
<div
class=
"form-group detail-modal-bargaininfo-commission-sec"
>
<div
class=
"form-group detail-modal-bargaininfo-commission-sec"
>
<label
class=
""
>
实收佣金:
</label>
<label
class=
""
>
实收佣金:
</label>
<div
class=
"input-group"
>
<div
class=
"input-group"
>
<input
type=
"number"
class=
"form-control"
placeholder=
"请输入"
disabled=
"disabled"
>
<input
type=
"number"
class=
"form-control"
placeholder=
"请输入"
>
<div
class=
"input-group-addon"
>
元
</div>
<div
class=
"input-group-addon"
>
元
</div>
</div>
</div>
<label
class=
""
>
收佣日期:
</label>
<label
class=
""
>
收佣日期:
</label>
<div
class=
"input-group"
>
<div
class=
"input-group"
>
<input
type=
"date"
class=
"form-control"
placeholder=
"请输入"
disabled=
"disabled"
>
<input
type=
"date"
class=
"form-control"
placeholder=
"请输入"
>
</div>
</div>
<!--<mark href="javascript:;" class="detail-modal-bargaininfo-commission-cancel-pic"><img src="/resource/image/search_gb.png" /></mark>-->
<!--<mark href="javascript:;" class="detail-modal-bargaininfo-commission-cancel-pic"><img src="/resource/image/search_gb.png" /></mark>-->
</div>
</div>
</div>
</div>
<
!--<
div id="bargaininfo_commission_add_btn">
<div
id=
"bargaininfo_commission_add_btn"
>
<img
src=
"/resource/image/jia2@2x.png"
/>
<img
src=
"/resource/image/jia2@2x.png"
/>
</div>
-->
</div>
</div>
</div>
<div>
<div>
<span
class=
"detail-modal-bargaininfo-span-beizhu"
>
备注:
</span>
<span
class=
"detail-modal-bargaininfo-span-beizhu"
>
备注:
</span>
<textarea
id=
"bargaininfo_beizhu"
disabled=
"disabled"
></textarea>
<textarea
id=
"bargaininfo_beizhu"
></textarea>
</div>
</div>
</form>
</form>
<div
class=
"tc"
>
<div
class=
"tc"
>
...
@@ -215,9 +171,11 @@
...
@@ -215,9 +171,11 @@
</div>
</div>
<div
class=
"detail-modal-body-sec"
>
<div
class=
"detail-modal-body-sec"
>
<div
class=
"detail-modal-maid-top-btn-area oh"
>
<div
class=
"detail-modal-maid-top-btn-area oh"
>
<!--<a class="btn btn-success" href="#modal_new_maid" data-toggle="modal">新增</a>-->
<!--<a class="btn btn-success" id="maid_new_btn" href="#modal_new_maid" data-toggle="modal">新增</a>-->
<!--<a id="maid_new_btn" class="btn btn-primary" data-toggle="modal">增加实收</a>-->
<!--<a id="maid_add_btn" class="btn btn-primary" data-toggle="modal">增加实收</a>
<a id="maid_count_btn" class="btn btn-primary" title="可自动计算实收佣金和合计">计算</a>-->
</div>
</div>
<!--<p class="text-right" id="maid_count_tips_p"><span>提示:</span>点击<span>计算</span>按钮可自动计算<span>实收佣金</span>和<span>合计</span>的内容</p>-->
<table
class=
"table table-striped table-bordered table-hover table-condensed"
id=
"maid_table_main"
>
<table
class=
"table table-striped table-bordered table-hover table-condensed"
id=
"maid_table_main"
>
<thead>
<thead>
<tr>
<tr>
...
@@ -232,6 +190,7 @@
...
@@ -232,6 +190,7 @@
<th
class=
"text-center"
>
现金奖(元)
</th>
<th
class=
"text-center"
>
现金奖(元)
</th>
<th
class=
"text-center"
>
实收佣金(元)
</th>
<th
class=
"text-center"
>
实收佣金(元)
</th>
<th
class=
"text-center"
>
确认时间
</th>
<th
class=
"text-center"
>
确认时间
</th>
<th
class=
"text-center"
>
操作
</th>
</tr>
</tr>
</thead>
</thead>
<tbody
class=
"text-center"
id=
"maid_new_table_list"
>
<tbody
class=
"text-center"
id=
"maid_new_table_list"
>
...
@@ -289,8 +248,9 @@
...
@@ -289,8 +248,9 @@
</table>
</table>
<div
class=
"detail-modal-maid-bottom-btn-area text-right"
>
<div
class=
"detail-modal-maid-bottom-btn-area text-right"
>
<!--<a id="maid_ok_btn" class="btn btn-primary" data-toggle="modal">确认分佣</a>-->
<!--<a id="maid_save_btn" class="btn btn-primary" data-toggle="modal">保存</a>-->
<!--<a id="maid_ok_btn" class="btn btn-primary" data-toggle="modal">确认分佣</a>
<a id="maid_save_btn" class="btn btn-primary" data-toggle="modal">保存</a>-->
</div>
</div>
<!--分佣提成-->
<!--分佣提成-->
</div>
</div>
...
@@ -379,17 +339,15 @@
...
@@ -379,17 +339,15 @@
<option
value=
"3"
>
反签
</option>
<option
value=
"3"
>
反签
</option>
<option
value=
"4"
>
独家
</option>
<option
value=
"4"
>
独家
</option>
<option
value=
"5"
>
合作方
</option>
<option
value=
"5"
>
合作方
</option>
<option
value=
"6"
>
APP盘下载方
</option>
<option
value=
"7"
>
APP客下载方
</option>
</select>
</select>
</div>
</div>
<div
class=
"po-relative"
>
<div
class=
"po-relative"
>
<span>
业务员:
</span><input
class=
"form-control"
type=
"text"
id=
"addmaid_input_ywy"
/>
<span>
业务员:
</span><input
class=
"form-control"
type=
"text"
id=
"addmaid_input_ywy"
/>
<ul>
<ul>
<li
data-id=
"5755"
>
5755-测试-小杨业务员-17621975554
</li>
<!--<li data-id="5755">5755-测试-小杨业务员-17621975554</li>
<li
data-id=
"5755"
>
5755-测试-小杨业务员-17621975554
</li>
<li data-id="5755">5755-测试-小杨业务员-17621975554</li>-->
<li
data-id=
"5755"
>
5755-测试-小杨业务员-17621975554
</li>
<li
data-id=
"5755"
>
5755-测试-小杨业务员-17621975554
</li>
<li
data-id=
"5755"
>
5755-测试-小杨业务员-17621975554
</li>
<li
data-id=
"5755"
>
5755-测试-小杨业务员-17621975554
</li>
</ul>
</ul>
</div>
</div>
<div>
<div>
...
@@ -479,5 +437,4 @@
...
@@ -479,5 +437,4 @@
<!-- /.modal-content -->
<!-- /.modal-content -->
</div>
</div>
<!-- /.modal -->
<!-- /.modal -->
</div>
</div>
\ No newline at end of file
public/resource/js/commission.js
View file @
b5e81bc3
define
([
'doT'
,
'text!temp/commission_template_tpl.html'
,
'text!temp/reportLis
_template_tpl.html'
,
'css!style/home.css'
,
'css!style/report_list.css'
,
'ckfinder'
,
'ckfinderStart'
,
'pagination'
,
'bootstrapJs'
],
function
(
doT
,
template
,
template_tax
)
{
define
([
'doT'
,
'text!temp/commission_template_tpl.html'
,
'text!temp/reportLis
t_template_tpl.html'
,
'css!style/home.css'
,
'css!style/report_list.css'
,
'ckfinder'
,
'ckfinderStart'
,
'pagination'
,
'bootstrapJs'
],
function
(
doT
,
template
,
template_tax
,
template_maid
,
template_maid_sub1
)
{
bargain
=
{
bargain
=
{
pageNo
:
1
,
pageNo
:
1
,
/*第几页*/
/*第几页*/
...
@@ -13,7 +13,7 @@ define(['doT', 'text!temp/commission_template_tpl.html', 'text!temp/reportLis_te
...
@@ -13,7 +13,7 @@ define(['doT', 'text!temp/commission_template_tpl.html', 'text!temp/reportLis_te
maidTotalCommission
:
0
,
//应收总佣金
maidTotalCommission
:
0
,
//应收总佣金
init
:
function
()
{
init
:
function
()
{
//初始化dot
//初始化dot
$
(
document
.
body
).
append
(
template
+
template_tax
);
$
(
document
.
body
).
append
(
template
+
template_tax
+
template_maid
+
template_maid_sub1
);
bargain
.
getList
(
1
);
bargain
.
getList
(
1
);
bargain
.
event
();
bargain
.
event
();
},
},
...
...
public/resource/js/performance_subsidiary.js
View file @
b5e81bc3
define
([
'doT'
,
'text!temp/performance_subsidiary_template_tpl.html'
,
'text!temp/reportList_no_edit_template_tpl.html'
,
'css!style/home.css'
,
'css!style/report_list.css'
,
'ckfinder'
,
'ckfinderStart'
,
'pagination'
,
'bootstrapJs'
],
function
(
doT
,
template
,
template_tax
)
{
define
([
'doT'
,
'text!temp/performance_subsidiary_template_tpl.html'
,
'text!temp/reportList_no_edit_template_tpl.html'
,
'css!style/home.css'
,
'css!style/report_list.css'
,
'ckfinder'
,
'ckfinderStart'
,
'pagination'
,
'bootstrapJs'
],
function
(
doT
,
template
,
template_tax
,
template_maid
,
template_maid_sub1
)
{
bargain
=
{
bargain
=
{
pageNo
:
1
,
pageNo
:
1
,
/*第几页*/
/*第几页*/
...
@@ -7,25 +7,17 @@ define(['doT','text!temp/performance_subsidiary_template_tpl.html', 'text!temp/r
...
@@ -7,25 +7,17 @@ define(['doT','text!temp/performance_subsidiary_template_tpl.html', 'text!temp/r
mainTabIndex
:
0
,
mainTabIndex
:
0
,
detailTabIndex
:
0
,
detailTabIndex
:
0
,
bargain_id
:
''
,
bargain_id
:
''
,
father_id
:
''
,
order_id
:
0
,
//订单id
order_id
:
0
,
//订单id
panfangData
:
null
,
panfangData
:
null
,
maidTotalCommission
:
0
,
//应收总佣金
maidTotalCommission
:
0
,
//应收总佣金
init
:
function
()
{
init
:
function
()
{
//初始化dot
//初始化dot
$
(
document
.
body
).
append
(
template
+
template_tax
);
$
(
document
.
body
).
append
(
template
+
template_tax
);
bargain
.
getList
(
1
);
bargain
.
getList
(
1
);
bargain
.
event
();
bargain
.
event
();
},
},
event
:
function
()
{
event
:
function
()
{
var
_doc
=
$
(
document
);
var
_doc
=
$
(
document
);
$
(
"#search"
).
click
(
function
()
{
bargain
.
getList
(
1
);
});
$
(
"#reset"
).
click
(
function
()
{
//重置
document
.
getElementById
(
"form_search"
).
reset
();
});
//主页面一级审核,二级审核,三级审核,结单四个tab的点击事件
//主页面一级审核,二级审核,三级审核,结单四个tab的点击事件
//专员审核 总监审核 经理审核 出纳审核
//专员审核 总监审核 经理审核 出纳审核
_doc
.
on
(
'click'
,
'.maintable-top-sub-tr>a'
,
function
(
e
){
_doc
.
on
(
'click'
,
'.maintable-top-sub-tr>a'
,
function
(
e
){
...
@@ -38,9 +30,6 @@ define(['doT','text!temp/performance_subsidiary_template_tpl.html', 'text!temp/r
...
@@ -38,9 +30,6 @@ define(['doT','text!temp/performance_subsidiary_template_tpl.html', 'text!temp/r
console
.
log
(
bargain
.
mainTabIndex
);
console
.
log
(
bargain
.
mainTabIndex
);
bargain
.
getList
(
1
);
bargain
.
getList
(
1
);
});
});
$
(
"#export"
).
click
(
function
()
{
//导出列表
bargain
.
exportList
();
});
//搜索按钮的事件
//搜索按钮的事件
_doc
.
on
(
'click'
,
'#maintable_search'
,
function
(
e
)
{
_doc
.
on
(
'click'
,
'#maintable_search'
,
function
(
e
)
{
...
@@ -53,35 +42,11 @@ define(['doT','text!temp/performance_subsidiary_template_tpl.html', 'text!temp/r
...
@@ -53,35 +42,11 @@ define(['doT','text!temp/performance_subsidiary_template_tpl.html', 'text!temp/r
$
(
"#maintable_reset"
).
click
(
function
()
{
$
(
"#maintable_reset"
).
click
(
function
()
{
document
.
getElementById
(
"maintable_form_search"
).
reset
();
document
.
getElementById
(
"maintable_form_search"
).
reset
();
});
});
//部门 门店 联动
var
_doc
=
$
(
document
);
bargain
.
getDistrict
(
function
()
{
_doc
.
on
(
'input'
,
'[name=district_id],#district_id2'
,
function
()
{
var
_this
=
$
(
this
);
var
_id
=
_this
.
val
();
_this
.
next
().
html
(
''
);
//先清空
//新增 编辑
var
_objTemp
=
_this
.
parent
().
next
().
find
(
'select'
);
_objTemp
.
html
(
''
);
//先清空
if
(
_id
&&
_id
!=
'0'
)
{
bargain
.
getDistrictStoreList
(
_id
,
function
(
_data
)
{
// var _str = '';
var
_str
=
'<option value="0">全部</option>'
;
$
.
each
(
_data
,
function
(
i
,
item
)
{
_str
+=
'<option value="'
+
item
.
id
+
'">'
+
item
.
store_name
+
'</option>'
;
});
_objTemp
.
html
(
_str
);
_this
.
next
().
html
(
_str
);
});
}
else
{};
});
});
//时间轴按钮
//时间轴按钮
//
_doc.on("click", ".timeline", function() {
_doc
.
on
(
"click"
,
".timeline"
,
function
()
{
//
bargain.Timeline();
bargain
.
Timeline
();
//
});
});
//转到一级审核
//转到一级审核
_doc
.
on
(
'click'
,
'.maintable-btn-trans-one'
,
function
(
e
){
_doc
.
on
(
'click'
,
'.maintable-btn-trans-one'
,
function
(
e
){
...
@@ -123,13 +88,9 @@ define(['doT','text!temp/performance_subsidiary_template_tpl.html', 'text!temp/r
...
@@ -123,13 +88,9 @@ define(['doT','text!temp/performance_subsidiary_template_tpl.html', 'text!temp/r
bargain
.
pass
();
bargain
.
pass
();
});
});
//点击获取报告详情
//点击
详情按钮事件,
获取报告详情
_doc
.
on
(
'click'
,
'.details-btn'
,
function
()
{
_doc
.
on
(
'click'
,
'.details-btn'
,
function
()
{
bargain
.
bargain_id
=
$
(
this
).
closest
(
'tr'
).
attr
(
"data-id"
);
bargain
.
bargain_id
=
$
(
this
).
closest
(
'tr'
).
attr
(
"data-id"
);
bargain
.
father_id
=
$
(
this
).
closest
(
'tr'
).
attr
(
"data-fatherid"
);
console
.
log
(
bargain
.
bargain_id
);
console
.
log
(
bargain
.
father_id
);
$
(
'.detail-modal-header-tab>a:nth-of-type(1)'
).
removeClass
(
'btn-default'
).
addClass
(
'btn-info'
).
siblings
().
removeClass
(
'btn-info'
).
addClass
(
'btn-default'
);
$
(
'.detail-modal-header-tab>a:nth-of-type(1)'
).
removeClass
(
'btn-default'
).
addClass
(
'btn-info'
).
siblings
().
removeClass
(
'btn-info'
).
addClass
(
'btn-default'
);
bargain
.
detailTabIndex
=
0
;
bargain
.
detailTabIndex
=
0
;
$
(
'.detail-modal-body-sec:nth-of-type(1)'
).
show
().
siblings
().
hide
();
$
(
'.detail-modal-body-sec:nth-of-type(1)'
).
show
().
siblings
().
hide
();
...
@@ -162,7 +123,7 @@ define(['doT','text!temp/performance_subsidiary_template_tpl.html', 'text!temp/r
...
@@ -162,7 +123,7 @@ define(['doT','text!temp/performance_subsidiary_template_tpl.html', 'text!temp/r
alert
(
'最多添加5条'
);
alert
(
'最多添加5条'
);
return
false
;
return
false
;
}
else
{
}
else
{
_iYJAAObj
.
append
(
'<div class="form-group detail-modal-bargaininfo-commission-sec"><label class="">实收佣金:</label><div class="input-group"><input type="number"class="form-control"placeholder="请输入"
disabled="disabled"><div class="input-group-addon">元</div></div><label class="">收佣日期:</label><div class="input-group"><input type="date"class="form-control"placeholder="请输入"disabled="disabled"></div><mark href="javascript:;"class="detail-modal-bargaininfo-commission-cancel-pic"
></mark></div>'
);
_iYJAAObj
.
append
(
'<div class="form-group detail-modal-bargaininfo-commission-sec"><label class="">实收佣金:</label><div class="input-group"><input type="number"class="form-control"placeholder="请输入"
><div class="input-group-addon">元</div></div><label class="">收佣日期:</label><div class="input-group"><input type="date"class="form-control"placeholder="请输入"></div><mark href="javascript:;"class="detail-modal-bargaininfo-commission-cancel-pic"><img src="/resource/image/search_gb.png"/
></mark></div>'
);
};
};
});
});
...
@@ -207,13 +168,37 @@ define(['doT','text!temp/performance_subsidiary_template_tpl.html', 'text!temp/r
...
@@ -207,13 +168,37 @@ define(['doT','text!temp/performance_subsidiary_template_tpl.html', 'text!temp/r
bargain
.
newAddTaxOk
();
bargain
.
newAddTaxOk
();
});
});
//详情弹出框,点击删除时的提交
_doc
.
on
(
'click'
,
'.detail-modal-shuiFee-del-btn'
,
function
(
e
){
e
.
preventDefault
();
e
.
stopPropagation
();
if
(
confirm
(
'确认删除吗?'
)){
bargain
.
delTaxOk
(
$
(
this
).
attr
(
'data-recordid'
));
}
else
{
}
});
//详情弹出框,分佣提成里,点击新增
//详情弹出框,分佣提成里,点击新增
_doc
.
on
(
'click'
,
'
[href="#modal_new_maid"]
'
,
function
(
e
){
_doc
.
on
(
'click'
,
'
#maid_new_btn
'
,
function
(
e
){
e
.
preventDefault
();
e
.
preventDefault
();
e
.
stopPropagation
();
e
.
stopPropagation
();
$
(
'#modal_new_maid'
).
removeAttr
(
'data-id'
).
find
(
'.modal-title'
).
html
(
'新增分佣提成'
);
bargain
.
newAddMaid
();
bargain
.
newAddMaid
();
});
});
//详情弹出框,分佣提成里,点击编辑
_doc
.
on
(
'click'
,
'.detail-modal-maid-a-edit'
,
function
(
e
){
e
.
preventDefault
();
e
.
stopPropagation
();
var
_id
=
$
(
this
).
closest
(
'tr'
).
attr
(
'data-id'
);
$
(
'#modal_new_maid'
).
attr
(
'data-id'
,
_id
).
find
(
'.modal-title'
).
html
(
'编辑分佣提成'
);
bargain
.
newAddMaid
(
function
(){
bargain
.
getMaidInfo
(
_id
);
});
});
//详情弹出框,分佣提成里,点击新增,分佣方选择时触发的事件
//详情弹出框,分佣提成里,点击新增,分佣方选择时触发的事件
_doc
.
on
(
'input'
,
'#addmaid_input_servant'
,
function
(
e
){
_doc
.
on
(
'input'
,
'#addmaid_input_servant'
,
function
(
e
){
var
_this
=
$
(
this
);
var
_this
=
$
(
this
);
...
@@ -252,6 +237,17 @@ define(['doT','text!temp/performance_subsidiary_template_tpl.html', 'text!temp/r
...
@@ -252,6 +237,17 @@ define(['doT','text!temp/performance_subsidiary_template_tpl.html', 'text!temp/r
}
}
});
});
//详情弹出框,分佣提成里,点击删除触发的事件
_doc
.
on
(
'click'
,
'.detail-modal-maid-a-del'
,
function
(
e
){
e
.
preventDefault
();
e
.
stopPropagation
();
var
_this
=
$
(
this
);
if
(
confirm
(
'确认删除吗?'
)){
var
_id
=
_this
.
closest
(
'tr'
).
attr
(
'data-id'
);
bargain
.
deletMaid
(
_id
);
};
});
//详情弹出框,分佣提成里,点击新增,分佣方选择,弹出选择列表触发的事件
//详情弹出框,分佣提成里,点击新增,分佣方选择,弹出选择列表触发的事件
_doc
.
on
(
'click'
,
'#addmaid_select_ul>li'
,
function
(
e
){
_doc
.
on
(
'click'
,
'#addmaid_select_ul>li'
,
function
(
e
){
e
.
preventDefault
();
e
.
preventDefault
();
...
@@ -269,7 +265,14 @@ define(['doT','text!temp/performance_subsidiary_template_tpl.html', 'text!temp/r
...
@@ -269,7 +265,14 @@ define(['doT','text!temp/performance_subsidiary_template_tpl.html', 'text!temp/r
_doc
.
on
(
'click'
,
'#addmaid_ok_btn'
,
function
(
e
){
_doc
.
on
(
'click'
,
'#addmaid_ok_btn'
,
function
(
e
){
e
.
preventDefault
();
e
.
preventDefault
();
e
.
stopPropagation
();
e
.
stopPropagation
();
bargain
.
newAddMaidOk
();
var
_id
=
$
(
'#modal_new_maid'
).
attr
(
'data-id'
);
if
(
_id
===
undefined
){
//新增
bargain
.
newAddMaidOk
();
}
else
{
//编辑
bargain
.
editMaidOk
();
}
});
});
//详情弹出框,分佣提成里,点击确认分佣触发的事件
//详情弹出框,分佣提成里,点击确认分佣触发的事件
...
@@ -287,12 +290,11 @@ define(['doT','text!temp/performance_subsidiary_template_tpl.html', 'text!temp/r
...
@@ -287,12 +290,11 @@ define(['doT','text!temp/performance_subsidiary_template_tpl.html', 'text!temp/r
_doc
.
on
(
'click'
,
'#maid_save_btn'
,
function
(
e
){
_doc
.
on
(
'click'
,
'#maid_save_btn'
,
function
(
e
){
e
.
preventDefault
();
e
.
preventDefault
();
e
.
stopPropagation
();
e
.
stopPropagation
();
// bargain.maidSave();
bargain
.
maidConfirmOk
(
0
);
bargain
.
maidConfirmOk
(
0
);
});
});
//详情弹出框,分佣提成里,点击增加实收按钮
//详情弹出框,分佣提成里,点击增加实收按钮
_doc
.
on
(
'click'
,
'#maid_
new
_btn'
,
function
(
e
){
_doc
.
on
(
'click'
,
'#maid_
add
_btn'
,
function
(
e
){
e
.
preventDefault
();
e
.
preventDefault
();
e
.
stopPropagation
();
e
.
stopPropagation
();
var
_temp
=
$
(
'.detail-modal-maid-span-time'
);
var
_temp
=
$
(
'.detail-modal-maid-span-time'
);
...
@@ -319,6 +321,13 @@ define(['doT','text!temp/performance_subsidiary_template_tpl.html', 'text!temp/r
...
@@ -319,6 +321,13 @@ define(['doT','text!temp/performance_subsidiary_template_tpl.html', 'text!temp/r
};
};
});
});
//详情弹出框,分佣提成里,点击计算执行的方法
_doc
.
on
(
'click'
,
'#maid_count_btn'
,
function
(
e
){
e
.
preventDefault
();
e
.
stopPropagation
();
bargain
.
maidCount
(
1
);
//1为正常计算的时候
});
//新增分佣提成,业务员input输入搜索,点击之后赋值
//新增分佣提成,业务员input输入搜索,点击之后赋值
_doc
.
on
(
'click'
,
'#addmaid_input_ywy+ul>li'
,
function
()
{
_doc
.
on
(
'click'
,
'#addmaid_input_ywy+ul>li'
,
function
()
{
var
_this
=
$
(
this
);
var
_this
=
$
(
this
);
...
@@ -335,57 +344,57 @@ define(['doT','text!temp/performance_subsidiary_template_tpl.html', 'text!temp/r
...
@@ -335,57 +344,57 @@ define(['doT','text!temp/performance_subsidiary_template_tpl.html', 'text!temp/r
var
_addmaid_input_servantObj
=
$
(
'#addmaid_input_servant'
);
var
_addmaid_input_servantObj
=
$
(
'#addmaid_input_servant'
);
_doc
.
on
(
'input'
,
'#addmaid_input_ywy'
,
function
()
{
_doc
.
on
(
'input'
,
'#addmaid_input_ywy'
,
function
()
{
var
_this
=
$
(
this
);
var
_this
=
$
(
this
);
if
(
_addmaid_input_servantObj
.
val
()
==
'5'
){
//当分佣方的值为5,合作方的时候,才能查询
//当分佣方的值为5,合作方的时候,才能查询
var
_thisVal
=
$
.
trim
(
_this
.
val
());
var
_thisVal
=
$
.
trim
(
_this
.
val
());
_this
.
removeAttr
(
'data-id'
);
//移除之前携带的信息
_this
.
removeAttr
(
'data-id'
);
//移除之前携带的信息
if
(
_thisVal
!=
''
)
{
if
(
_thisVal
!=
''
)
{
_ajaxObjTel
&&
_ajaxObjTel
.
abort
();
_ajaxObjTel
&&
_ajaxObjTel
.
abort
();
_ajaxObjTel
=
$
.
ajax
({
_ajaxObjTel
=
$
.
ajax
({
type
:
'GET'
,
type
:
'GET'
,
url
:
'/index/getBroker_new'
,
url
:
'/index/getBroker_new'
,
data
:
{
data
:
{
'phone'
:
$
.
trim
(
_this
.
val
())
'phone'
:
$
.
trim
(
_this
.
val
())
},
},
timeout
:
30000
,
timeout
:
30000
,
dataType
:
'json'
,
dataType
:
'json'
,
beforeSend
:
function
()
{},
beforeSend
:
function
()
{},
success
:
function
(
data
)
{
success
:
function
(
data
)
{
if
(
typeof
data
===
'object'
)
{
if
(
typeof
data
===
'object'
)
{
if
(
data
.
code
==
200
)
{
if
(
data
.
code
==
200
)
{
if
(
data
[
'data'
].
length
>
0
)
{
if
(
data
[
'data'
].
length
>
0
)
{
var
_htmlTemp
=
''
;
var
_htmlTemp
=
''
;
$
.
each
(
data
[
'data'
],
function
(
i
,
item
)
{
$
.
each
(
data
[
'data'
],
function
(
i
,
item
)
{
_htmlTemp
+=
'<li data-id="{3}">{0}-{1}<li>'
.
stringFormatObj
({
_htmlTemp
+=
'<li data-id="{3}">{0}-{1}<li>'
.
stringFormatObj
({
'0'
:
item
[
'name'
],
'0'
:
item
[
'name'
],
'1'
:
item
[
'phone'
],
'1'
:
item
[
'phone'
],
'3'
:
item
[
'id'
]
'3'
:
item
[
'id'
]
});
});
});
_this
.
next
().
show
().
html
(
_htmlTemp
);
});
}
else
{
_this
.
next
().
show
().
html
(
_htmlTemp
);
_this
.
next
().
html
(
''
);
};
}
else
{
}
else
{
alert
(
data
[
'msg'
]
);
_this
.
next
().
html
(
''
);
};
};
}
else
{
}
else
{
alert
(
'数据错误'
);
alert
(
data
[
'msg'
]
);
};
};
},
}
else
{
error
:
function
()
{
alert
(
'数据错误'
);
//alert('error');
};
},
},
complete
:
function
(
xhr
,
textStatus
)
{
error
:
function
()
{
if
(
textStatus
===
'timeout'
)
{
//alert('error');
alert
(
'请求超时'
);
},
};
complete
:
function
(
xhr
,
textStatus
)
{
}
if
(
textStatus
===
'timeout'
)
{
});
alert
(
'请求超时'
);
}
else
{
};
_this
.
next
().
hide
();
}
}
});
}
else
{}
}
else
{
_this
.
next
().
hide
();
}
});
});
...
@@ -399,8 +408,39 @@ define(['doT','text!temp/performance_subsidiary_template_tpl.html', 'text!temp/r
...
@@ -399,8 +408,39 @@ define(['doT','text!temp/performance_subsidiary_template_tpl.html', 'text!temp/r
console
.
log
(
_id
);
console
.
log
(
_id
);
$
(
'.iframe-time-line'
).
attr
(
'src'
,
'/app_broker/timeline_pc?order_id='
+
_id
);
$
(
'.iframe-time-line'
).
attr
(
'src'
,
'/app_broker/timeline_pc?order_id='
+
_id
);
});
});
var
_doc
=
$
(
document
);
bargain
.
getDistrict
(
function
()
{
_doc
.
on
(
'input'
,
'[name=district_id],#district_id2'
,
function
()
{
var
_this
=
$
(
this
);
var
_id
=
_this
.
val
();
_this
.
next
().
html
(
''
);
//先清空
//新增 编辑
var
_objTemp
=
_this
.
parent
().
next
().
find
(
'select'
);
_objTemp
.
html
(
''
);
//先清空
if
(
_id
&&
_id
!=
'0'
)
{
bargain
.
getDistrictStoreList
(
_id
,
function
(
_data
)
{
// var _str = '';
var
_str
=
'<option value="0">全部</option>'
;
$
.
each
(
_data
,
function
(
i
,
item
)
{
_str
+=
'<option value="'
+
item
.
id
+
'">'
+
item
.
store_name
+
'</option>'
;
});
_objTemp
.
html
(
_str
);
_this
.
next
().
html
(
_str
);
});
}
else
{};
});
});
},
},
getDefaultRadio
:
function
(
v
){
getDefaultRadio
:
function
(
v
){
//1,盘方
//2,客方
//3,反签
//4,独家
//5,合作方
//6,APP盘下载方
//7,APP客下载方
switch
(
Number
(
v
)){
switch
(
Number
(
v
)){
case
1
:
case
1
:
return
25
;
return
25
;
...
@@ -409,7 +449,11 @@ define(['doT','text!temp/performance_subsidiary_template_tpl.html', 'text!temp/r
...
@@ -409,7 +449,11 @@ define(['doT','text!temp/performance_subsidiary_template_tpl.html', 'text!temp/r
case
3
:
case
3
:
return
35
;
return
35
;
case
4
:
case
4
:
return
10
;
return
100
;
case
6
:
return
5
;
case
7
:
return
5
;
default
:
default
:
return
25
;
return
25
;
}
}
...
@@ -446,38 +490,31 @@ define(['doT','text!temp/performance_subsidiary_template_tpl.html', 'text!temp/r
...
@@ -446,38 +490,31 @@ define(['doT','text!temp/performance_subsidiary_template_tpl.html', 'text!temp/r
}
}
});
});
},
},
//
Timeline: function() { //获取时间轴
Timeline
:
function
()
{
//获取时间轴
//
$.ajax({
$
.
ajax
({
//
'type': 'GET',
'type'
:
'GET'
,
//
'url': '/index/selectReportAll',
'url'
:
'/index/selectReportAll'
,
//
data: {
data
:
{
//
"order_id": bargain.bargain_id
"order_id"
:
bargain
.
bargain_id
//
},
},
//
dataType: "json",
dataType
:
"json"
,
//
success: function(data) {
success
:
function
(
data
)
{
//
if(data.code == 200) {
if
(
data
.
code
==
200
)
{
//
if(data.data) {
if
(
data
.
data
)
{
//
console.log(data.data);
console
.
log
(
data
.
data
);
//
}
}
//
} else {
}
else
{
//
alert('获取失败!');
alert
(
'获取失败!'
);
//
}
}
//
}
}
//
});
});
//
},
},
bargaininfoShow
:
function
()
{
//报告详情
bargaininfoShow
:
function
()
{
//报告详情
var
bargainId
;
if
(
bargain
.
father_id
==
0
){
bargainId
=
bargain
.
bargain_id
;
}
else
{
bargainId
=
bargain
.
father_id
;
}
$
.
ajax
({
$
.
ajax
({
'type'
:
'GET'
,
'type'
:
'GET'
,
'url'
:
'/index/bargainInfo'
,
'url'
:
'/index/bargainInfo'
,
data
:
{
data
:
{
"id"
:
bargain
I
d
"id"
:
bargain
.
bargain_i
d
},
},
dataType
:
"json"
,
dataType
:
"json"
,
success
:
function
(
data
)
{
success
:
function
(
data
)
{
...
@@ -505,16 +542,16 @@ define(['doT','text!temp/performance_subsidiary_template_tpl.html', 'text!temp/r
...
@@ -505,16 +542,16 @@ define(['doT','text!temp/performance_subsidiary_template_tpl.html', 'text!temp/r
if
(
data
.
data
.
practical_fee
.
length
>
0
){
if
(
data
.
data
.
practical_fee
.
length
>
0
){
_inputAreaTempObj
.
html
(
''
);
_inputAreaTempObj
.
html
(
''
);
}
else
{
}
else
{
_inputAreaTempObj
.
html
(
'<div class="form-group detail-modal-bargaininfo-commission-sec"><label class="">实收佣金:</label><div class="input-group"><input type="number"class="form-control"placeholder="请输入"
disabled="disabled"><div class="input-group-addon">元</div></div><label class="">收佣日期:</label><div class="input-group"><input type="date"class="form-control"placeholder="请输入"disabled="disabled"></div><mark href="javascript:;"class="detail-modal-bargaininfo-commission-cancel-pic"
></mark></div>'
);
_inputAreaTempObj
.
html
(
'<div class="form-group detail-modal-bargaininfo-commission-sec"><label class="">实收佣金:</label><div class="input-group"><input type="number"class="form-control"placeholder="请输入"
><div class="input-group-addon">元</div></div><label class="">收佣日期:</label><div class="input-group"><input type="date"class="form-control"placeholder="请输入"></div><mark href="javascript:;"class="detail-modal-bargaininfo-commission-cancel-pic"><img src="/resource/image/search_gb.png"/
></mark></div>'
);
};
};
$
.
each
(
data
.
data
.
practical_fee
,
function
(
i
,
v
)
{
$
.
each
(
data
.
data
.
practical_fee
,
function
(
i
,
v
)
{
_inputAreaTempObj
.
append
(
'<div data-id="{id}" class="form-group detail-modal-bargaininfo-commission-sec"><label class="">实收佣金:</label><div class="input-group"><input type="number"class="form-control"placeholder="请输入"value="{0}"
disabled="disabled"><div class="input-group-addon">元</div></div><label class="">收佣日期:</label><div class="input-group"><input type="date"class="form-control"placeholder="请输入"value="{1}"disabled="disabled
"></div></div>'
.
stringFormatObj
({
_inputAreaTempObj
.
append
(
'<div data-id="{id}" class="form-group detail-modal-bargaininfo-commission-sec"><label class="">实收佣金:</label><div class="input-group"><input type="number"class="form-control"placeholder="请输入"value="{0}"
><div class="input-group-addon">元</div></div><label class="">收佣日期:</label><div class="input-group"><input type="date"class="form-control"placeholder="请输入"value="{1}
"></div></div>'
.
stringFormatObj
({
'0'
:
v
.
money
,
'0'
:
v
.
money
,
'1'
:
v
.
income_time
,
'1'
:
v
.
income_time
,
'id'
:
v
.
fee_id
'id'
:
v
.
fee_id
}));
}));
});
});
}
}
;
}
}
...
@@ -530,7 +567,12 @@ define(['doT','text!temp/performance_subsidiary_template_tpl.html', 'text!temp/r
...
@@ -530,7 +567,12 @@ define(['doT','text!temp/performance_subsidiary_template_tpl.html', 'text!temp/r
'commission'
:
$
.
trim
(
$
(
'#bargaininfo_total_commission'
).
val
()),
'commission'
:
$
.
trim
(
$
(
'#bargaininfo_total_commission'
).
val
()),
'content'
:
$
.
trim
(
$
(
'#bargaininfo_beizhu'
).
val
()),
'content'
:
$
.
trim
(
$
(
'#bargaininfo_beizhu'
).
val
()),
'is_open'
:
$
(
'#bargaininfo_is_open'
).
val
(),
'is_open'
:
$
(
'#bargaininfo_is_open'
).
val
(),
'trade_type'
:
$
(
'#bargaininfo_type'
).
val
()
'trade_type'
:
$
(
'#bargaininfo_type'
).
val
(),
'industry_type'
:
$
.
trim
(
$
(
'#bargaininfo_yetai'
).
val
()),
'price'
:
$
(
'#bargaininfo_chengjiao_price'
).
val
(),
'estimated_receipt_date'
:
$
(
'#bargaininfo_expect_payback_time'
).
val
(),
'step'
:
bargain
.
mainTabIndex
+
1
};
};
$
.
each
(
$
(
'.detail-modal-bargaininfo-commission-sec'
),
function
(
i
,
v
)
{
$
.
each
(
$
(
'.detail-modal-bargaininfo-commission-sec'
),
function
(
i
,
v
)
{
_data
[
'practical_fee['
+
i
+
']'
]
=
{
_data
[
'practical_fee['
+
i
+
']'
]
=
{
...
@@ -549,7 +591,7 @@ define(['doT','text!temp/performance_subsidiary_template_tpl.html', 'text!temp/r
...
@@ -549,7 +591,7 @@ define(['doT','text!temp/performance_subsidiary_template_tpl.html', 'text!temp/r
alert
(
'修改成功'
);
alert
(
'修改成功'
);
bargain
.
bargaininfoShow
();
bargain
.
bargaininfoShow
();
bargain
.
getList
(
0
);
//
bargain.getList(0);
}
else
{
}
else
{
alert
(
data
.
msg
);
alert
(
data
.
msg
);
}
}
...
@@ -557,19 +599,13 @@ define(['doT','text!temp/performance_subsidiary_template_tpl.html', 'text!temp/r
...
@@ -557,19 +599,13 @@ define(['doT','text!temp/performance_subsidiary_template_tpl.html', 'text!temp/r
});
});
},
},
maidShow
:
function
()
{
maidShow
:
function
()
{
$
(
'
[href="#modal_new_maid"]
'
).
hide
();
//默认隐藏新增按钮
$
(
'
#maid_new_btn
'
).
hide
();
//默认隐藏新增按钮
$
(
"#maid_new_table_list"
).
html
(
''
);
$
(
"#maid_new_table_list"
).
html
(
''
);
var
bargainId2
;
if
(
bargain
.
father_id
==
0
){
bargainId2
=
bargain
.
bargain_id
;
}
else
{
bargainId2
=
bargain
.
father_id
;
};
$
.
ajax
({
$
.
ajax
({
type
:
'GET'
,
type
:
'GET'
,
url
:
'/index/commissionList'
,
url
:
'/index/commissionList'
,
data
:
{
data
:
{
'id'
:
bargain
Id2
'id'
:
bargain
.
bargain_id
},
},
timeout
:
30000
,
timeout
:
30000
,
dataType
:
'json'
,
dataType
:
'json'
,
...
@@ -586,8 +622,9 @@ define(['doT','text!temp/performance_subsidiary_template_tpl.html', 'text!temp/r
...
@@ -586,8 +622,9 @@ define(['doT','text!temp/performance_subsidiary_template_tpl.html', 'text!temp/r
});
});
//如果确认时间都有,都不为空,则把新增按钮显示出来
//如果确认时间都有,都不为空,则把新增按钮显示出来
if
(
_isShowAddBtnFlag
){
if
(
_isShowAddBtnFlag
){
$
(
'
[href="#modal_new_maid"]
'
).
show
();
$
(
'
#maid_new_btn
'
).
show
();
};
};
bargain
.
maidCount
(
2
);
//计算合计的内容
}
else
{
}
else
{
layerTipsX
(
_data
[
'msg'
]);
layerTipsX
(
_data
[
'msg'
]);
}
}
...
@@ -631,13 +668,14 @@ define(['doT','text!temp/performance_subsidiary_template_tpl.html', 'text!temp/r
...
@@ -631,13 +668,14 @@ define(['doT','text!temp/performance_subsidiary_template_tpl.html', 'text!temp/r
"source"
:
1
,
"source"
:
1
,
"status"
:
10
,
"status"
:
10
,
"remark"
:
$
.
trim
(
$
(
"#pass_beizhu"
).
val
()),
"remark"
:
$
.
trim
(
$
(
"#pass_beizhu"
).
val
()),
'step'
:
bargain
.
mainTabIndex
+
1
},
},
dataType
:
"json"
,
dataType
:
"json"
,
success
:
function
(
data
)
{
success
:
function
(
data
)
{
if
(
data
.
code
==
200
)
{
if
(
data
.
code
==
200
)
{
if
(
data
.
data
)
{
if
(
data
.
data
)
{
bargain
.
getList
(
1
);
//
bargain.getList(1);
}
}
}
else
{
}
else
{
alert
(
'获取失败!'
);
alert
(
'获取失败!'
);
...
@@ -648,17 +686,11 @@ define(['doT','text!temp/performance_subsidiary_template_tpl.html', 'text!temp/r
...
@@ -648,17 +686,11 @@ define(['doT','text!temp/performance_subsidiary_template_tpl.html', 'text!temp/r
// 开票税费
// 开票税费
taxShow
:
function
()
{
taxShow
:
function
()
{
var
bargainId3
;
if
(
bargain
.
father_id
==
0
){
bargainId3
=
bargain
.
bargain_id
;
}
else
{
bargainId3
=
bargain
.
father_id
;
};
$
.
ajax
({
$
.
ajax
({
type
:
'GET'
,
type
:
'GET'
,
url
:
'/index/getTallAge'
,
url
:
'/index/getTallAge'
,
data
:
{
data
:
{
'bargain_id'
:
bargain
Id3
'bargain_id'
:
bargain
.
bargain_id
},
},
timeout
:
30000
,
timeout
:
30000
,
dataType
:
'json'
,
dataType
:
'json'
,
...
@@ -685,7 +717,46 @@ define(['doT','text!temp/performance_subsidiary_template_tpl.html', 'text!temp/r
...
@@ -685,7 +717,46 @@ define(['doT','text!temp/performance_subsidiary_template_tpl.html', 'text!temp/r
}
}
});
});
},
},
newAddMaid
:
function
(){
// 获取之前的分佣信息
getMaidInfo
:
function
(
id
)
{
$
.
ajax
({
type
:
'GET'
,
url
:
'/index/getBargainCommission'
,
data
:
{
'bargain_id'
:
id
},
timeout
:
30000
,
dataType
:
'json'
,
beforeSend
:
function
()
{},
success
:
function
(
_data
)
{
if
(
typeof
_data
===
'object'
)
{
if
(
_data
[
'code'
]
==
'200'
)
{
$
(
'#addmaid_input_servant'
).
val
(
_data
.
data
.
role
);
$
(
'#addmaid_input_ywy'
).
val
(
_data
.
data
.
name
+
'-'
+
_data
.
data
.
phone
).
attr
(
'data-id'
,
_data
.
data
.
agent_id
);
$
(
'#addmaid_input_ratio'
).
val
(
_data
.
data
.
scale
);
$
(
'#addmaid_input_cash'
).
val
(
_data
.
data
.
scale_fee
);
bargain
.
getDepart
(
_data
.
data
.
agent_id
,
function
(
obj
){
$
(
'#addmaid_input_shop'
).
val
(
obj
.
district_name
+
'-'
+
obj
.
store_name
);
});
}
else
{
layerTipsX
(
_data
[
'msg'
]);
}
}
else
{
layerTipsX
(
'数据错误'
);
};
},
error
:
function
()
{
layerTipsX
(
'enter error'
);
},
complete
:
function
(
xhr
,
textStatus
){
if
(
textStatus
===
'timeout'
)
{
//处理超时的逻辑
layerTipsX
(
'请求超时,请重试'
);
};
}
});
},
newAddMaid
:
function
(
fn
){
$
.
ajax
({
$
.
ajax
({
type
:
'GET'
,
type
:
'GET'
,
url
:
'/index/searchOrderAgents'
,
url
:
'/index/searchOrderAgents'
,
...
@@ -700,6 +771,7 @@ define(['doT','text!temp/performance_subsidiary_template_tpl.html', 'text!temp/r
...
@@ -700,6 +771,7 @@ define(['doT','text!temp/performance_subsidiary_template_tpl.html', 'text!temp/r
if
(
_data
[
'code'
]
==
'200'
)
{
if
(
_data
[
'code'
]
==
'200'
)
{
bargain
.
panfangData
=
_data
.
data
;
bargain
.
panfangData
=
_data
.
data
;
console
.
log
(
bargain
.
panfangData
);
console
.
log
(
bargain
.
panfangData
);
fn
&&
fn
();
}
else
{
}
else
{
layerTipsX
(
_data
[
'msg'
]);
layerTipsX
(
_data
[
'msg'
]);
}
}
...
@@ -718,8 +790,8 @@ define(['doT','text!temp/performance_subsidiary_template_tpl.html', 'text!temp/r
...
@@ -718,8 +790,8 @@ define(['doT','text!temp/performance_subsidiary_template_tpl.html', 'text!temp/r
}
}
});
});
},
},
//新增时,点确定按钮
newAddMaidOk
:
function
(){
newAddMaidOk
:
function
(){
console
.
log
(
7789
);
$
.
ajax
({
$
.
ajax
({
type
:
'POST'
,
type
:
'POST'
,
url
:
'/index/addBargain'
,
url
:
'/index/addBargain'
,
...
@@ -729,6 +801,7 @@ define(['doT','text!temp/performance_subsidiary_template_tpl.html', 'text!temp/r
...
@@ -729,6 +801,7 @@ define(['doT','text!temp/performance_subsidiary_template_tpl.html', 'text!temp/r
'scale_fee'
:
$
(
'#addmaid_input_cash'
).
val
(),
'scale_fee'
:
$
(
'#addmaid_input_cash'
).
val
(),
'role'
:
$
(
'#addmaid_input_servant'
).
val
(),
'role'
:
$
(
'#addmaid_input_servant'
).
val
(),
'scale'
:
$
(
'#addmaid_input_ratio'
).
val
(),
'scale'
:
$
(
'#addmaid_input_ratio'
).
val
(),
'step'
:
bargain
.
mainTabIndex
+
1
,
'source'
:
1
'source'
:
1
},
},
timeout
:
30000
,
timeout
:
30000
,
...
@@ -757,6 +830,112 @@ define(['doT','text!temp/performance_subsidiary_template_tpl.html', 'text!temp/r
...
@@ -757,6 +830,112 @@ define(['doT','text!temp/performance_subsidiary_template_tpl.html', 'text!temp/r
}
}
});
});
},
},
//编辑时,点确定按钮
editMaidOk
:
function
(){
$
.
ajax
({
type
:
'POST'
,
url
:
'/index/getBargainCommission'
,
data
:
{
'bargain_id'
:
$
(
'#modal_new_maid'
).
attr
(
'data-id'
),
'agent_id'
:
$
(
'#addmaid_input_ywy'
).
attr
(
'data-id'
),
'scale_fee'
:
$
(
'#addmaid_input_cash'
).
val
(),
'role'
:
$
(
'#addmaid_input_servant'
).
val
(),
'scale'
:
$
(
'#addmaid_input_ratio'
).
val
()
},
timeout
:
30000
,
dataType
:
'json'
,
beforeSend
:
function
()
{},
success
:
function
(
_data
)
{
if
(
typeof
_data
===
'object'
)
{
if
(
_data
[
'code'
]
==
'200'
)
{
alert
(
'编辑成功!'
);
bargain
.
maidShow
();
}
else
{
layerTipsX
(
_data
[
'msg'
]);
}
}
else
{
layerTipsX
(
'数据错误'
);
};
},
error
:
function
()
{
layerTipsX
(
'enter error'
);
},
complete
:
function
(
xhr
,
textStatus
){
if
(
textStatus
===
'timeout'
)
{
//处理超时的逻辑
layerTipsX
(
'请求超时,请重试'
);
};
}
});
},
maidCount
:
function
(
type
){
//计算每个实收佣金
var
_rateTotal
=
0
;
//分佣比例
var
_yingfenTotal
=
0
;
//应分佣金
var
_yufenTotal
=
0
;
//预分佣金
var
_shouxuTotal
=
0
;
//手续费
var
_cishanTotal
=
0
;
//慈善基金
var
_xianjinTotal
=
0
;
//现金奖
var
_shishouTotal
=
0
;
//实收佣金
//计算实收佣金
if
(
type
===
1
){
//如果是而类型1,则计算每个实收佣金,和合计
$
.
each
(
$
(
'.detail-modal-maid-span-practical-fee'
),
function
(
i
,
v
)
{
var
_vObj
=
$
(
v
);
var
a
=
Number
(
_vObj
.
parent
().
find
(
'.detail-modal-maid-span-real-fee'
).
html
());
//预分佣金
var
b
=
Number
(
_vObj
.
parent
().
find
(
'.detail-modal-maid-span-service-charge'
).
html
());
//手续费
var
c
=
Number
(
_vObj
.
parent
().
find
(
'.detail-modal-maid-span-charity-fund'
).
html
());
//慈善基金
var
d
=
Number
(
_vObj
.
parent
().
find
(
'.detail-modal-maid-span-cash'
).
html
());
//现金奖
var
_smallTotal
=
dealJineNum
(
a
-
b
-
c
-
d
);
_shishouTotal
+=
_smallTotal
;
_vObj
.
html
(
_smallTotal
);
});
$
(
'#maid_count_total_shishou'
).
html
(
dealJineNum
(
_shishouTotal
));
}
else
if
(
type
===
2
){
//如果是类型2,则直接计算合计
$
.
each
(
$
(
'.detail-modal-maid-span-practical-fee'
),
function
(
i
,
v
)
{
_shishouTotal
+=
Number
(
$
(
v
).
html
());
});
$
(
'#maid_count_total_shishou'
).
html
(
dealJineNum
(
_shishouTotal
));
}
else
{}
//计算分佣比例
$
.
each
(
$
(
'.detail-modal-maid-span-scale'
),
function
(
i
,
v
)
{
_rateTotal
+=
Number
(
$
(
v
).
html
());
});
$
(
'#maid_count_total_rate'
).
html
(
_rateTotal
+
'%'
);
//计算应分佣金
$
.
each
(
$
(
'.detail-modal-maid-td-should-commission'
),
function
(
i
,
v
)
{
_yingfenTotal
+=
Number
(
$
(
v
).
html
());
});
$
(
'#maid_count_total_yingfen'
).
html
(
dealJineNum
(
_yingfenTotal
));
//计算预分佣金
$
.
each
(
$
(
'.detail-modal-maid-span-real-fee'
),
function
(
i
,
v
)
{
_yufenTotal
+=
Number
(
$
(
v
).
html
());
});
$
(
'#maid_count_total_yufen'
).
html
(
dealJineNum
(
_yufenTotal
));
//计算手续费
$
.
each
(
$
(
'.detail-modal-maid-span-service-charge'
),
function
(
i
,
v
)
{
_shouxuTotal
+=
Number
(
$
(
v
).
html
());
});
$
(
'#maid_count_total_shouxu'
).
html
(
dealJineNum
(
_shouxuTotal
));
//计算慈善基金
$
.
each
(
$
(
'.detail-modal-maid-span-charity-fund'
),
function
(
i
,
v
)
{
_cishanTotal
+=
Number
(
$
(
v
).
html
());
});
$
(
'#maid_count_total_cishan'
).
html
(
dealJineNum
(
_cishanTotal
));
//计算现金奖
$
.
each
(
$
(
'.detail-modal-maid-span-cash'
),
function
(
i
,
v
)
{
_xianjinTotal
+=
Number
(
$
(
v
).
html
());
});
$
(
'#maid_count_total_xianjin'
).
html
(
dealJineNum
(
_xianjinTotal
));
},
maidTest
:
function
(
type
){
maidTest
:
function
(
type
){
var
_stopFlag
=
false
;
var
_stopFlag
=
false
;
var
_data
=
[];
var
_data
=
[];
...
@@ -776,7 +955,8 @@ define(['doT','text!temp/performance_subsidiary_template_tpl.html', 'text!temp/r
...
@@ -776,7 +955,8 @@ define(['doT','text!temp/performance_subsidiary_template_tpl.html', 'text!temp/r
'last_commission_id'
:
_$v
.
attr
(
'lastid'
)?
_$v
.
attr
(
'lastid'
):
0
,
//最后一个提交的记录id
'last_commission_id'
:
_$v
.
attr
(
'lastid'
)?
_$v
.
attr
(
'lastid'
):
0
,
//最后一个提交的记录id
'is_account_commission'
:
type
//0是保存,1是确认分佣
'is_account_commission'
:
type
//0是保存,1是确认分佣
};
};
if
(
_scaleVal
==
''
||
_shouldCommissionVal
==
''
){
if
((
type
==
'1'
)
&&
(
_scaleVal
==
''
||
_shouldCommissionVal
==
''
)){
//如果是确认分佣,则每项必填。保存,则不加限制
_stopFlag
=
true
;
_stopFlag
=
true
;
}
else
{
}
else
{
var
_parObj2
=
_$v
.
find
(
'.detail-modal-maid-mix-td>div'
);
var
_parObj2
=
_$v
.
find
(
'.detail-modal-maid-mix-td>div'
);
...
@@ -791,7 +971,8 @@ define(['doT','text!temp/performance_subsidiary_template_tpl.html', 'text!temp/r
...
@@ -791,7 +971,8 @@ define(['doT','text!temp/performance_subsidiary_template_tpl.html', 'text!temp/r
var
_csjj
=
$
.
trim
(
_$v2
.
find
(
'.detail-modal-maid-span-charity-fund'
).
html
());
var
_csjj
=
$
.
trim
(
_$v2
.
find
(
'.detail-modal-maid-span-charity-fund'
).
html
());
var
_xjj
=
$
.
trim
(
_$v2
.
find
(
'.detail-modal-maid-span-cash'
).
html
());
var
_xjj
=
$
.
trim
(
_$v2
.
find
(
'.detail-modal-maid-span-cash'
).
html
());
var
_ssyj
=
$
.
trim
(
_$v2
.
find
(
'.detail-modal-maid-span-practical-fee'
).
html
());
var
_ssyj
=
$
.
trim
(
_$v2
.
find
(
'.detail-modal-maid-span-practical-fee'
).
html
());
if
(
_sfyj
==
''
||
_sxf
==
''
||
_csjj
==
''
||
_xjj
==
''
||
_ssyj
==
''
){
if
((
type
==
'1'
)
&&
(
_sfyj
==
''
||
_sxf
==
''
||
_csjj
==
''
||
_xjj
==
''
||
_ssyj
==
''
)){
//如果是确认分佣,则每项必填。保存,则不加限制
_stopFlag
=
true
;
_stopFlag
=
true
;
}
else
{
}
else
{
_dataTemp
[
'commission_date['
+
i2
+
']'
]
=
{
_dataTemp
[
'commission_date['
+
i2
+
']'
]
=
{
...
@@ -800,14 +981,14 @@ define(['doT','text!temp/performance_subsidiary_template_tpl.html', 'text!temp/r
...
@@ -800,14 +981,14 @@ define(['doT','text!temp/performance_subsidiary_template_tpl.html', 'text!temp/r
'scale'
:
Number
(
_scaleVal
),
//分佣比例
'scale'
:
Number
(
_scaleVal
),
//分佣比例
'should_commission'
:
_shouldCommissionVal
,
//应分佣金
'should_commission'
:
_shouldCommissionVal
,
//应分佣金
'commission_id'
:
_cid
,
//子记录id
'commission_id'
:
_cid
,
//子记录id
'real_fee'
:
_sfyj
,
//
实
分佣金
'real_fee'
:
_sfyj
,
//
预
分佣金
'service_charge'
:
_sxf
,
//手续费
'service_charge'
:
_sxf
,
//手续费
'charity_fund'
:
_csjj
,
//慈善基金
'charity_fund'
:
_csjj
,
//慈善基金
'cash'
:
_xjj
,
//现金奖
'cash'
:
_xjj
,
//现金奖
'practical_fee'
:
_ssyj
//实收佣金
'practical_fee'
:
_ssyj
,
//实收佣金,
'step'
:
bargain
.
mainTabIndex
+
1
};
};
}
}
});
});
}
else
{
}
else
{
...
@@ -820,6 +1001,7 @@ define(['doT','text!temp/performance_subsidiary_template_tpl.html', 'text!temp/r
...
@@ -820,6 +1001,7 @@ define(['doT','text!temp/performance_subsidiary_template_tpl.html', 'text!temp/r
_scaleTotal
+=
Number
(
$
.
trim
(
v
.
innerHTML
));
_scaleTotal
+=
Number
(
$
.
trim
(
v
.
innerHTML
));
});
});
if
(
_scaleTotal
!=
100
){
if
(
_scaleTotal
!=
100
){
//确认分佣和保存,都必须满足比例等于100%才能提交
_stopFlag
=
true
;
_stopFlag
=
true
;
_errorTips
=
'分佣比例一定要是100%,否则无法提交'
;
_errorTips
=
'分佣比例一定要是100%,否则无法提交'
;
};
};
...
@@ -905,13 +1087,14 @@ define(['doT','text!temp/performance_subsidiary_template_tpl.html', 'text!temp/r
...
@@ -905,13 +1087,14 @@ define(['doT','text!temp/performance_subsidiary_template_tpl.html', 'text!temp/r
$
(
'#addtax_date'
).
val
(
_data
[
'data'
][
0
][
'operation_date'
]);
$
(
'#addtax_date'
).
val
(
_data
[
'data'
][
0
][
'operation_date'
]);
var
_htmlTemp
=
'<tr><td>分佣方</td><td>业务员</td><td>分佣比例</td><td>税费</td></tr>'
;
var
_htmlTemp
=
'<tr><td>分佣方</td><td>业务员</td><td>分佣比例</td><td>税费</td></tr>'
;
$
.
each
(
_data
[
'data'
],
function
(
i
,
v
)
{
$
.
each
(
_data
[
'data'
],
function
(
i
,
v
)
{
_htmlTemp
+=
'<tr class="addtax-modal-tax-table-datatr" data-id="{id}" data-role="{role}"><td>{0}</td><td>{1}</td><td>{2}%</td><td contenteditable>{3}</td></tr>'
.
stringFormatObj
({
_htmlTemp
+=
'<tr class="addtax-modal-tax-table-datatr" data-
feeid="{feeid}" data-agent
id="{id}" data-role="{role}"><td>{0}</td><td>{1}</td><td>{2}%</td><td contenteditable>{3}</td></tr>'
.
stringFormatObj
({
'0'
:
v
.
role_name
,
'0'
:
v
.
role_name
,
'1'
:
v
.
name
+
'-'
+
v
.
phone
,
'1'
:
v
.
name
+
'-'
+
v
.
phone
,
'2'
:
v
.
scale
,
'2'
:
v
.
scale
,
'3'
:
(
obj
[
'type'
]
===
'new'
)?
''
:
v
.
fee
,
'3'
:
(
obj
[
'type'
]
===
'new'
)?
''
:
v
.
fee
,
'role'
:
v
.
role
,
'role'
:
v
.
role
,
'id'
:
v
.
id
'id'
:
v
.
agent_id
,
'feeid'
:
v
.
id
});
});
});
});
$
(
'.addtax-modal-tax-table'
).
html
(
_htmlTemp
);
$
(
'.addtax-modal-tax-table'
).
html
(
_htmlTemp
);
...
@@ -949,12 +1132,12 @@ define(['doT','text!temp/performance_subsidiary_template_tpl.html', 'text!temp/r
...
@@ -949,12 +1132,12 @@ define(['doT','text!temp/performance_subsidiary_template_tpl.html', 'text!temp/r
$
.
each
(
$
(
'.addtax-modal-tax-table-datatr'
),
function
(
i
,
v
)
{
$
.
each
(
$
(
'.addtax-modal-tax-table-datatr'
),
function
(
i
,
v
)
{
_data
[
'tax['
+
i
+
']'
]
=
{
_data
[
'tax['
+
i
+
']'
]
=
{
'fee'
:
v
.
childNodes
[
3
].
innerHTML
,
'fee'
:
v
.
childNodes
[
3
].
innerHTML
,
'agent_id'
:
JSON
.
parse
(
decodeURIComponent
(
sessionStorage
.
getItem
(
'pcUserInfo'
))).
id
,
'agent_id'
:
v
.
getAttribute
(
'data-agentid'
)
,
'role'
:
v
.
getAttribute
(
'data-role'
),
'role'
:
v
.
getAttribute
(
'data-role'
),
'scale'
:
v
.
childNodes
[
2
].
innerHTML
.
split
(
'%'
)[
0
]
'scale'
:
v
.
childNodes
[
2
].
innerHTML
.
split
(
'%'
)[
0
]
};
};
if
(
_tempTableObj
.
attr
(
'data-type'
)
===
'edit'
){
if
(
_tempTableObj
.
attr
(
'data-type'
)
===
'edit'
){
_data
[
'tax['
+
i
+
']'
][
'fee_id'
]
=
v
.
getAttribute
(
'data-id'
);
_data
[
'tax['
+
i
+
']'
][
'fee_id'
]
=
v
.
getAttribute
(
'data-
fee
id'
);
};
};
});
});
$
.
ajax
({
$
.
ajax
({
...
@@ -967,7 +1150,12 @@ define(['doT','text!temp/performance_subsidiary_template_tpl.html', 'text!temp/r
...
@@ -967,7 +1150,12 @@ define(['doT','text!temp/performance_subsidiary_template_tpl.html', 'text!temp/r
success
:
function
(
_data
)
{
success
:
function
(
_data
)
{
if
(
typeof
_data
===
'object'
)
{
if
(
typeof
_data
===
'object'
)
{
if
(
_data
[
'code'
]
==
'200'
)
{
if
(
_data
[
'code'
]
==
'200'
)
{
alert
(
'新增成功!'
);
if
(
_tempTableObj
.
attr
(
'data-type'
)
===
'edit'
){
alert
(
'编辑成功!'
);
}
else
{
alert
(
'新增成功!'
);
};
bargain
.
taxShow
();
bargain
.
taxShow
();
}
else
{
}
else
{
layerTipsX
(
_data
[
'msg'
]);
layerTipsX
(
_data
[
'msg'
]);
...
@@ -987,6 +1175,74 @@ define(['doT','text!temp/performance_subsidiary_template_tpl.html', 'text!temp/r
...
@@ -987,6 +1175,74 @@ define(['doT','text!temp/performance_subsidiary_template_tpl.html', 'text!temp/r
}
}
});
});
},
},
//删除开票税费调用接口
delTaxOk
:
function
(
id
)
{
$
.
ajax
({
type
:
'POST'
,
url
:
'/index/delTaxes'
,
data
:
{
'taxes_id'
:
id
},
timeout
:
30000
,
dataType
:
'json'
,
beforeSend
:
function
()
{},
success
:
function
(
_data
)
{
if
(
typeof
_data
===
'object'
)
{
if
(
_data
[
'code'
]
==
'200'
)
{
alert
(
'删除成功!'
);
bargain
.
taxShow
();
}
else
{
layerTipsX
(
_data
[
'msg'
]);
}
}
else
{
layerTipsX
(
'数据错误'
);
};
},
error
:
function
()
{
layerTipsX
(
'enter error'
);
},
complete
:
function
(
xhr
,
textStatus
){
if
(
textStatus
===
'timeout'
)
{
//处理超时的逻辑
layerTipsX
(
'请求超时,请重试'
);
};
}
});
},
//分佣提成,删除
deletMaid
:
function
(
id
){
$
.
ajax
({
type
:
'POST'
,
url
:
'/index/delPartialCommission'
,
data
:
{
'partial_id'
:
id
},
timeout
:
30000
,
dataType
:
'json'
,
beforeSend
:
function
()
{},
success
:
function
(
_data
)
{
if
(
typeof
_data
===
'object'
)
{
if
(
_data
[
'code'
]
==
'200'
)
{
alert
(
'删除成功'
);
bargain
.
maidShow
();
}
else
{
layerTipsX
(
_data
[
'msg'
]);
}
}
else
{
layerTipsX
(
'数据错误'
);
};
},
error
:
function
()
{
layerTipsX
(
'enter error'
);
},
complete
:
function
(
xhr
,
textStatus
){
if
(
textStatus
===
'timeout'
)
{
//处理超时的逻辑
layerTipsX
(
'请求超时,请重试'
);
};
}
});
},
//转到一级审核
//转到一级审核
transFirstExamine
:
function
(){
transFirstExamine
:
function
(){
$
.
ajax
({
$
.
ajax
({
...
@@ -1002,7 +1258,7 @@ define(['doT','text!temp/performance_subsidiary_template_tpl.html', 'text!temp/r
...
@@ -1002,7 +1258,7 @@ define(['doT','text!temp/performance_subsidiary_template_tpl.html', 'text!temp/r
if
(
typeof
_data
===
'object'
)
{
if
(
typeof
_data
===
'object'
)
{
if
(
_data
[
'code'
]
==
'200'
)
{
if
(
_data
[
'code'
]
==
'200'
)
{
alert
(
'修改成功'
);
alert
(
'修改成功'
);
bargain
.
getList
(
1
);
//
bargain.getList(1);
}
else
{
}
else
{
layerTipsX
(
_data
[
'msg'
]);
layerTipsX
(
_data
[
'msg'
]);
}
}
...
@@ -1021,6 +1277,7 @@ define(['doT','text!temp/performance_subsidiary_template_tpl.html', 'text!temp/r
...
@@ -1021,6 +1277,7 @@ define(['doT','text!temp/performance_subsidiary_template_tpl.html', 'text!temp/r
}
}
});
});
},
},
//结单
account
:
function
(){
account
:
function
(){
$
.
ajax
({
$
.
ajax
({
type
:
'POST'
,
type
:
'POST'
,
...
@@ -1035,7 +1292,7 @@ define(['doT','text!temp/performance_subsidiary_template_tpl.html', 'text!temp/r
...
@@ -1035,7 +1292,7 @@ define(['doT','text!temp/performance_subsidiary_template_tpl.html', 'text!temp/r
if
(
typeof
_data
===
'object'
)
{
if
(
typeof
_data
===
'object'
)
{
if
(
_data
[
'code'
]
==
'200'
)
{
if
(
_data
[
'code'
]
==
'200'
)
{
alert
(
'结单成功!'
);
alert
(
'结单成功!'
);
bargain
.
getList
(
1
);
//
bargain.getList(1);
}
else
{
}
else
{
layerTipsX
(
_data
[
'msg'
]);
layerTipsX
(
_data
[
'msg'
]);
}
}
...
@@ -1055,66 +1312,72 @@ define(['doT','text!temp/performance_subsidiary_template_tpl.html', 'text!temp/r
...
@@ -1055,66 +1312,72 @@ define(['doT','text!temp/performance_subsidiary_template_tpl.html', 'text!temp/r
});
});
},
},
//获取一级审核,二级审核,三级审核,结单不同的ajax请求url
//获取一级审核,二级审核,三级审核,结单不同的ajax请求url
//
switchUrl: function(){
switchUrl
:
function
(){
//
switch (Number(this.mainTabIndex)){
switch
(
Number
(
this
.
mainTabIndex
)){
//
case 0:
case
0
:
//
return '/index/reportListOne/1';
return
'/index/reportListOne/1'
;
//
case 1:
case
1
:
//
return '/index/reportListTwo/2';
return
'/index/reportListTwo/2'
;
//
case 2:
case
2
:
//
return '/index/reportListThree/3';
return
'/index/reportListThree/3'
;
//
case 3:
case
3
:
//
return '/index/reportListStatement/4';
return
'/index/reportListStatement/4'
;
//
default:
default
:
//
return '';
return
''
;
//
}
}
//
},
},
//获取一级审核,二级审核,三级审核,结单数据列表共用的方法
//获取一级审核,二级审核,三级审核,结单数据列表共用的方法
getList
:
function
(
pageNo
)
{
getList
:
function
(
pageNo
){
bargain
.
pageNo
=
pageNo
;
console
.
count
(
'bar'
);
var
params
=
{};
var
params
=
{
params
.
pageNo
=
bargain
.
pageNo
;
'pageNo'
:
pageNo
,
params
.
pageSize
=
bargain
.
pageSize
;
'pageSize'
:
bargain
.
pageSize
,
params
.
create_time
=
$
(
'#create_time'
)
.
val
();
'shop_type'
:
$
(
'#maintable_shop_type'
).
val
(),
params
.
end_time
=
$
(
'#end_time'
)
.
val
();
'create_time'
:
$
.
trim
(
$
(
'#maintable_create_time'
).
val
()),
params
.
internal_address
=
$
(
'#internal_address'
).
val
();
'end_time'
:
$
.
trim
(
$
(
'#maintable_end_time'
).
val
()),
params
.
name
=
$
(
'#user_name'
).
val
();
'internal_address'
:
$
.
trim
(
$
(
'#maintable_internal_address'
).
val
()),
params
.
phone
=
$
(
'#user_phone'
).
val
();
'user_phone'
:
$
.
trim
(
$
(
'#maintable_user_phone'
).
val
()),
params
.
house_number
=
$
(
'#internal_num'
).
val
();
'house_number'
:
$
.
trim
(
$
(
'#maintable_shop_num'
).
val
()),
//业绩明细 搜索条件
'district_id'
:
$
(
"select[name='district_id'] option:selected"
).
val
(),
'store_id'
:
$
(
"select[name='store_id'] option:selected"
).
val
(),
'agent_name'
:
$
.
trim
(
$
(
'#agent_name'
).
val
()),
'agent_phone'
:
$
.
trim
(
$
(
'#agent_phone'
).
val
()),
'partial_name'
:
$
.
trim
(
$
(
'#partical_name'
).
val
())
};
$
.
ajax
({
$
.
ajax
({
url
:
'/index/getTallAgeList'
,
//获取列表
type
:
'GET'
,
type
:
'GET'
,
async
:
true
,
// url: bargain.switchUrl(),
url
:
'/index/getTallAgeList'
,
//获取列表
data
:
params
,
data
:
params
,
timeout
:
30000
,
dataType
:
'json'
,
dataType
:
'json'
,
beforeSend
:
function
()
{},
success
:
function
(
data
)
{
success
:
function
(
data
)
{
// console.log(data);
if
(
typeof
data
===
'object'
)
{
var
temp
=
document
.
getElementById
(
'performance_subsidiary_list_tpl'
).
innerHTML
;
if
(
data
.
code
==
200
)
{
var
doTtmpl
=
doT
.
template
(
temp
);
var
doTtmpl
=
doT
.
template
(
document
.
getElementById
(
'performance_subsidiary_list_tpl'
).
innerHTML
);
$
(
"#business_list"
).
html
(
doTtmpl
(
data
.
data
.
list
));
$
(
"#maintable_list"
).
html
(
doTtmpl
(
data
.
data
.
list
));
$
(
"#performance_subsidiary_Total"
).
html
(
data
.
data
.
total_fee
);
// var user_info_obj = JSON.parse(decodeURIComponent(localStorage.getItem('pcUserInfo')));
/*分页代码*/
/*分页代码*/
add_page
(
data
.
data
.
total
,
pageNo
,
bargain
.
pageSize
,
bargain
.
getList
);
add_page
(
data
.
data
.
total
,
pageNo
,
bargain
.
pageSize
,
bargain
.
getList
);
//总的税费
}
else
{
alert
(
data
[
'msg'
]);
};
}
else
{
alert
(
'数据错误'
);
};
},
error
:
function
()
{
alert
(
'error'
);
},
complete
:
function
(
xhr
,
textStatus
)
{
if
(
textStatus
===
'timeout'
)
{
alert
(
'请求超时'
);
};
}
}
});
});
},
exportList
:
function
(
pageNo
)
{
//导出分佣提成列表
bargain
.
pageNo
=
pageNo
;
var
create_time
=
$
(
'#create_time'
).
val
();
var
end_time
=
$
(
'#end_time'
).
val
();
var
internal_address
=
$
(
'#internal_address'
).
val
();
var
agent
=
$
(
'#user_name'
).
val
();
var
user_phone
=
$
(
'#user_phone'
).
val
();
var
house_number
=
$
(
'#internal_num'
).
val
();
window
.
open
(
'/index/exportExcel?create_time='
+
create_time
+
'&end_time='
+
end_time
+
'&internal_address='
+
internal_address
+
'&name='
+
agent
+
'&phone='
+
user_phone
+
'&house_number='
+
house_number
);
},
},
getDistrict
:
function
(
fn
)
{
getDistrict
:
function
(
fn
)
{
$
.
ajax
({
$
.
ajax
({
...
@@ -1158,4 +1421,4 @@ define(['doT','text!temp/performance_subsidiary_template_tpl.html', 'text!temp/r
...
@@ -1158,4 +1421,4 @@ define(['doT','text!temp/performance_subsidiary_template_tpl.html', 'text!temp/r
},
},
};
};
return
bargain
;
return
bargain
;
});
});
\ No newline at end of file
public/resource/js/tax.js
View file @
b5e81bc3
define
([
'doT'
,
'text!temp/tax_template_tpl.html'
,
'text!temp/reportList_template_tpl.html'
,
'css!style/home.css'
,
'css!style/report_list.css'
,
'ckfinder'
,
'ckfinderStart'
,
'pagination'
,
'bootstrapJs'
],
function
(
doT
,
template
,
template_tax
)
{
define
([
'doT'
,
'text!temp/tax_template_tpl.html'
,
'text!temp/reportList_template_tpl.html'
,
'css!style/home.css'
,
'css!style/report_list.css'
,
'ckfinder'
,
'ckfinderStart'
,
'pagination'
,
'bootstrapJs'
],
function
(
doT
,
template
,
template_tax
,
template_maid
,
template_maid_sub1
)
{
bargain
=
{
bargain
=
{
pageNo
:
1
,
pageNo
:
1
,
/*第几页*/
/*第几页*/
...
@@ -13,7 +13,7 @@ define(['doT','text!temp/tax_template_tpl.html', 'text!temp/reportList_template_
...
@@ -13,7 +13,7 @@ define(['doT','text!temp/tax_template_tpl.html', 'text!temp/reportList_template_
maidTotalCommission
:
0
,
//应收总佣金
maidTotalCommission
:
0
,
//应收总佣金
init
:
function
()
{
init
:
function
()
{
//初始化dot
//初始化dot
$
(
document
.
body
).
append
(
template
+
template_tax
);
$
(
document
.
body
).
append
(
template
+
template_tax
+
template_maid
+
template_maid_sub1
);
bargain
.
getList
(
1
);
bargain
.
getList
(
1
);
bargain
.
event
();
bargain
.
event
();
},
},
...
...
public/resource/js/user.js
View file @
b5e81bc3
...
@@ -6,10 +6,12 @@ define(['doT', 'text!temp/user_template_tpl.html', 'ckfinder', 'ckfinderStart',
...
@@ -6,10 +6,12 @@ define(['doT', 'text!temp/user_template_tpl.html', 'ckfinder', 'ckfinderStart',
pageSize
:
15
,
pageSize
:
15
,
/*每页显示多少条*/
/*每页显示多少条*/
user_id
:
0
,
user_id
:
0
,
user_type
:
''
,
user_phone
:
''
,
user_phone
:
''
,
urls
:
''
,
urls
:
''
,
agent_id_two
:
''
,
agent_id_two
:
''
,
agent_id2
:
0
,
agent_id2
:
0
,
agent_id_infor
:
0
,
isAjaxSaving
:
false
,
isAjaxSaving
:
false
,
init
:
function
()
{
init
:
function
()
{
//初始化dot
//初始化dot
...
@@ -74,6 +76,18 @@ define(['doT', 'text!temp/user_template_tpl.html', 'ckfinder', 'ckfinderStart',
...
@@ -74,6 +76,18 @@ define(['doT', 'text!temp/user_template_tpl.html', 'ckfinder', 'ckfinderStart',
_doc
.
on
(
'click'
,
'#look_shop_date'
,
function
()
{
_doc
.
on
(
'click'
,
'#look_shop_date'
,
function
()
{
$
(
'.datetimepicker'
).
show
();
$
(
'.datetimepicker'
).
show
();
});
});
//上一页 获取客户详情
_doc
.
on
(
'click'
,
'#user_up'
,
function
()
{
user_type
=
'last'
;
user
.
getInfor
();
});
//下一页 获取客户详情
_doc
.
on
(
'click'
,
'#user_down'
,
function
()
{
user_type
=
'next'
;
user
.
getInfor
();
});
// _doc.on('click', '.take-look', function(e) {//点击约带看 获取 客户姓名 编号 电话
// _doc.on('click', '.take-look', function(e) {//点击约带看 获取 客户姓名 编号 电话
// e.preventDefault();
// e.preventDefault();
// e.stopPropagation();
// e.stopPropagation();
...
@@ -171,7 +185,7 @@ define(['doT', 'text!temp/user_template_tpl.html', 'ckfinder', 'ckfinderStart',
...
@@ -171,7 +185,7 @@ define(['doT', 'text!temp/user_template_tpl.html', 'ckfinder', 'ckfinderStart',
$
(
document
).
delegate
(
".caozuo"
,
"click"
,
function
()
{
//点击操作跟进详情
$
(
document
).
delegate
(
".caozuo"
,
"click"
,
function
()
{
//点击操作跟进详情
user
.
user_id
=
$
(
this
).
attr
(
"data-id"
);
user
.
user_id
=
$
(
this
).
attr
(
"data-id"
);
user
.
user_phone
=
$
(
this
).
attr
(
"data-phone"
);
user
.
user_phone
=
$
(
this
).
attr
(
"data-phone"
);
user
.
agent_id_infor
=
$
(
this
).
attr
(
"data-agentId"
);
$
(
'#take_look_name'
).
html
(
$
(
this
).
attr
(
"data-name"
));
$
(
'#take_look_name'
).
html
(
$
(
this
).
attr
(
"data-name"
));
$
(
'#take_look_phone'
).
html
(
$
(
this
).
attr
(
"data-phone"
));
$
(
'#take_look_phone'
).
html
(
$
(
this
).
attr
(
"data-phone"
));
$
(
'#take_look_id'
).
html
(
$
(
this
).
attr
(
"data-id"
));
$
(
'#take_look_id'
).
html
(
$
(
this
).
attr
(
"data-id"
));
...
@@ -892,6 +906,23 @@ define(['doT', 'text!temp/user_template_tpl.html', 'ckfinder', 'ckfinderStart',
...
@@ -892,6 +906,23 @@ define(['doT', 'text!temp/user_template_tpl.html', 'ckfinder', 'ckfinderStart',
}
}
});
});
},
},
getInfor
:
function
(
params
)
{
var
user_info_obj
=
JSON
.
parse
(
decodeURIComponent
(
localStorage
.
getItem
(
'pcUserInfo'
)));
//读取缓存
$
.
ajax
({
url
:
'broker/getLastOrNextUserID'
,
//上一页 下一页 调用接口
type
:
'GET'
,
async
:
true
,
data
:
{
"user_id"
:
user
.
user_id
,
"agent_id"
:
user_info_obj
.
id
,
"type"
:
user_type
},
dataType
:
'json'
,
success
:
function
(
data
)
{
}
});
},
getGenjinLabel
:
function
()
{
getGenjinLabel
:
function
()
{
$
(
'#genj_text'
).
val
(
''
);
$
(
'#genj_text'
).
val
(
''
);
$
.
ajax
({
$
.
ajax
({
...
...
public/resource/template/performance_subsidiary_template_tpl.html
View file @
b5e81bc3
...
@@ -8,8 +8,6 @@
...
@@ -8,8 +8,6 @@
<
td
>
[
%=
it
[
item
][
'internal_address'
]
%
]
<
/td
>
<
td
>
[
%=
it
[
item
][
'internal_address'
]
%
]
<
/td
>
<
td
>
[
%=
it
[
item
][
'house_number'
]
%
]
<
/td
>
<
td
>
[
%=
it
[
item
][
'house_number'
]
%
]
<
/td
>
<
td
>
[
%=
it
[
item
][
'fee'
]
%
]
<
/td
>
<
td
>
[
%=
it
[
item
][
'fee'
]
%
]
<
/td
>
<
td
>
<
td
>
<
a
class
=
"btn1 btn-success details-btn"
href
=
"#modal_detail"
data
-
toggle
=
"modal"
data
-
id
=
'[%= it[item]["id"] %]'
>
详情
<
/a
>
<
a
class
=
"btn1 btn-success details-btn"
href
=
"#modal_detail"
data
-
toggle
=
"modal"
data
-
id
=
'[%= it[item]["id"] %]'
>
详情
<
/a
>
<
a
class
=
"btn1 btn-success timeline"
href
=
"#modal-time"
data
-
toggle
=
"modal"
data
-
id
=
'[%= it[item]["id"] %]'
>
时间轴
<
/a
>
<
a
class
=
"btn1 btn-success timeline"
href
=
"#modal-time"
data
-
toggle
=
"modal"
data
-
id
=
'[%= it[item]["id"] %]'
>
时间轴
<
/a
>
...
...
public/resource/template/reportList_no_edit_template_tpl.html
View file @
b5e81bc3
...
@@ -72,9 +72,9 @@
...
@@ -72,9 +72,9 @@
<
/table
>
<
/table
>
<
/div
>
<
/div
>
<
div
>
<
div
>
<
a
class
=
"btn btn-default"
href
=
"#modal_new_tax"
data
-
recordid
=
"[%= it[item]['id'] %]"
data
-
toggle
=
"modal"
>
编辑
<
/a
>
<
!--<
a
class
=
"btn btn-default"
href
=
"#modal_new_tax"
data
-
recordid
=
"[%= it[item]['id'] %]"
data
-
toggle
=
"modal"
>
编辑
<
/a>--
>
<
br
/><
br
/>
<
br
/><
br
/>
<
a
class
=
"btn btn-danger detail-modal-shuiFee-del-btn"
href
=
"javascript:;"
data
-
recordid
=
"[%= it[item]['id'] %]"
>
删除
<
/a
>
<
!--<
a
class
=
"btn btn-danger detail-modal-shuiFee-del-btn"
href
=
"javascript:;"
data
-
recordid
=
"[%= it[item]['id'] %]"
>
删除
<
/a>--
>
<
/div
>
<
/div
>
<
/section
>
<
/section
>
[
%
}
%
]
[
%
}
%
]
...
@@ -116,15 +116,14 @@
...
@@ -116,15 +116,14 @@
<
/div>
<
/div>
[
%
}
%
]
[
%
}
%
]
<
/td
>
<
/td
>
<!--
不能操作
-->
<
td
>
<!--<
td
>
<!--
[
%
if
(
check_auth
(
'index/getBargainCommission'
))
{
%
]
[
%
if
(
check_auth
(
'index/getBargainCommission'
))
{
%
]
<
a
href
=
"#modal_new_maid"
class
=
"btn-success detail-modal-maid-a-edit"
data
-
toggle
=
"modal"
>
编辑
<
/a
>
<
a
href
=
"#modal_new_maid"
class
=
"btn-success detail-modal-maid-a-edit"
data
-
toggle
=
"modal"
>
编辑
<
/a
>
[
%
}
%
]
[
%
}
%
]
[
%
if
(
check_auth
(
'index/delPartialCommission'
)
&&
(
it
[
'data'
][
i
][
'father_id'
]
!=
0
))
{
%
]
[
%
if
(
check_auth
(
'index/delPartialCommission'
)
&&
(
it
[
'data'
][
i
][
'father_id'
]
!=
0
))
{
%
]
<
a
href
=
"javascript:;"
class
=
"btn-danger detail-modal-maid-a-del"
>
删除
<
/a
>
<
a
href
=
"javascript:;"
class
=
"btn-danger detail-modal-maid-a-del"
>
删除
<
/a
>
[
%
}
%
]
[
%
}
%
]
-->
<
/td>
--
>
<
/td
>
<
/tr
>
<
/tr
>
[
%
}
%
]
[
%
}
%
]
[
%
}
else
{
%
]
[
%
}
else
{
%
]
...
...
public/resource/template/user_template_tpl.html
View file @
b5e81bc3
...
@@ -42,7 +42,7 @@
...
@@ -42,7 +42,7 @@
<
td
width
=
"16%"
>
<
td
width
=
"16%"
>
[
%
if
((
check_auth
(
'auth_vip'
)
&&
it
[
item
][
'vip'
])
||
(
it
[
item
][
'agent_id'
]
==
0
)
||
(
it
[
item
][
'agent_id'
]
==
it
[
item
][
'current_agent_id'
])
||
check_auth
(
'index/useraction_search'
)
)
{
%
]
[
%
if
((
check_auth
(
'auth_vip'
)
&&
it
[
item
][
'vip'
])
||
(
it
[
item
][
'agent_id'
]
==
0
)
||
(
it
[
item
][
'agent_id'
]
==
it
[
item
][
'current_agent_id'
])
||
check_auth
(
'index/useraction_search'
)
)
{
%
]
<
a
class
=
"btn1 caozuo genj_ure caozuo-add-color [%= getLoaclId(it[item]['id']) %]"
href
=
"#modal-record"
data
-
toggle
=
"modal"
data
-
phone
=
'[%= it[item]["user_phone"] %]'
data
-
id
=
'[%= it[item]["id"] %]'
data
-
name
=
'[%= it[item]["user_name"] %]'
>
详情
/
跟进
<
/a> 
;
<
a
class
=
"btn1 caozuo genj_ure caozuo-add-color [%= getLoaclId(it[item]['id']) %]"
href
=
"#modal-record"
data
-
toggle
=
"modal"
data
-
phone
=
'[%= it[item]["user_phone"] %]'
data
-
id
=
'[%= it[item]["id"] %]'
data
-
agentId
=
'[%= it[item]["agent_id"] %]'
data
-
name
=
'[%= it[item]["user_name"] %]'
>
详情
/
跟进
<
/a> 
;
<
a
class
=
"btn1 btn-success caozuo"
href
=
"#modal-record-edit"
data
-
toggle
=
"modal"
data
-
phone
=
'[%= it[item]["user_phone"] %]'
data
-
id
=
'[%= it[item]["id"] %]'
>
客户编辑
<
/a> 
;
<
a
class
=
"btn1 btn-success caozuo"
href
=
"#modal-record-edit"
data
-
toggle
=
"modal"
data
-
phone
=
'[%= it[item]["user_phone"] %]'
data
-
id
=
'[%= it[item]["id"] %]'
>
客户编辑
<
/a> 
;
...
...
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