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
a6d7126d
Commit
a6d7126d
authored
Mar 13, 2019
by
agping
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
666
parent
29708ad5
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
69 additions
and
15 deletions
+69
-15
account_statement.html
application/index/view/finance/account_statement.html
+2
-5
reportList.js
public/resource/js/reportList.js
+62
-5
reportList_template_tpl.html
public/resource/template/reportList_template_tpl.html
+5
-5
No files found.
application/index/view/finance/account_statement.html
View file @
a6d7126d
...
@@ -1268,17 +1268,14 @@
...
@@ -1268,17 +1268,14 @@
<th
class=
"text-center"
>
客户ID
</th>
<th
class=
"text-center"
>
客户ID
</th>
<th
class=
"text-center"
>
客户手机号
</th>
<th
class=
"text-center"
>
客户手机号
</th>
</tr>
</tr>
</thead>
</thead>
<tbody
class=
"text-center"
id=
"maintable_envelope_list"
>
<tbody
class=
"text-center"
id=
"maintable_envelope_list"
>
</tbody>
</tbody>
</table>
</table>
</div>
</div>
<div
class=
"envelope-details"
style=
"margin-bottom: 30px;"
>
注:确认分佣后系统会立即返现500元现金给客户
</div>
<div
class=
"envelope-details"
style=
"margin-bottom: 30px;"
>
注:确认分佣后系统会立即返现现金到对应的客户账户上
</div>
<div
class=
"envelope-details"
style=
"margin-bottom: 10px;"
>
邀请成交奖励:
</div>
<div>
成交客户: 客户ID:45123,周小雨 139****5642
</div>
<div>
成交客户的邀请人:客户ID:4512,洛可可 138****3214
</div>
<div
class=
"envelope-details"
style=
"margin-top: 10px;"
>
注:确认分佣后系统会立即返现500元现金给客户
</div>
</div>
</div>
<div
class=
"modal-footer"
>
<div
class=
"modal-footer"
>
...
...
public/resource/js/reportList.js
View file @
a6d7126d
...
@@ -18,6 +18,7 @@ define(['doT', 'text!temp/reportList_template_tpl.html', 'css!style/home.css', '
...
@@ -18,6 +18,7 @@ define(['doT', 'text!temp/reportList_template_tpl.html', 'css!style/home.css', '
house_fatherid
:
''
,
house_fatherid
:
''
,
detailTabIndexLiu
:
0
,
//查看 弹出框 tab切换 初始化
detailTabIndexLiu
:
0
,
//查看 弹出框 tab切换 初始化
report_id_liu
:
0
,
report_id_liu
:
0
,
report_id_show
:
0
,
init
:
function
()
{
init
:
function
()
{
//初始化dot
//初始化dot
$
(
document
.
body
).
append
(
template
);
$
(
document
.
body
).
append
(
template
);
...
@@ -174,6 +175,7 @@ define(['doT', 'text!temp/reportList_template_tpl.html', 'css!style/home.css', '
...
@@ -174,6 +175,7 @@ define(['doT', 'text!temp/reportList_template_tpl.html', 'css!style/home.css', '
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
();
bargain
.
bargaininfoShow
();
bargain
.
bargaininfoShow
();
bargain
.
bargaininfoShowLiu
();
});
});
//详情弹出框里的tab点击事件,成交信息,分佣提成,开票税费
//详情弹出框里的tab点击事件,成交信息,分佣提成,开票税费
...
@@ -955,6 +957,52 @@ define(['doT', 'text!temp/reportList_template_tpl.html', 'css!style/home.css', '
...
@@ -955,6 +957,52 @@ define(['doT', 'text!temp/reportList_template_tpl.html', 'css!style/home.css', '
}
}
});
});
},
},
bargaininfoShowLiu
:
function
()
{
//获取report_id
$
.
ajax
({
'type'
:
'GET'
,
'url'
:
'/index/bargainInfo'
,
data
:
{
"id"
:
bargain
.
bargain_id
},
dataType
:
"json"
,
success
:
function
(
data
)
{
if
(
data
.
code
==
200
)
{
if
(
data
.
data
)
{
bargain
.
report_id_liu
=
data
.
data
.
report_id
;
bargain
.
bargaininfoShowRed
();
}
}
else
{
alert
(
'获取失败!'
);
}
}
});
},
//隐藏显示 红包列表
bargaininfoShowRed
:
function
()
{
$
.
ajax
({
'type'
:
'GET'
,
'url'
:
'/index/checkReferrer'
,
data
:
{
"report_id"
:
bargain
.
report_id_liu
},
dataType
:
"json"
,
success
:
function
(
data
)
{
if
(
data
.
code
==
200
)
{
if
(
data
.
data
.
is_show
==
1
)
{
$
(
'.envelope-list'
).
show
();
bargain
.
report_id_show
=
1
;
}
else
{
$
(
'.envelope-list'
).
hide
();
bargain
.
report_id_show
=
0
;
}
}
else
{
alert
(
'获取失败!'
);
}
}
});
},
bargaininfoSave
:
function
()
{
//修改报告详情
bargaininfoSave
:
function
()
{
//修改报告详情
if
(
!
bargain
.
isBargaininfoSaveIngFlag
){
if
(
!
bargain
.
isBargaininfoSaveIngFlag
){
bargain
.
isBargaininfoSaveIngFlag
=
true
;
bargain
.
isBargaininfoSaveIngFlag
=
true
;
...
@@ -1382,11 +1430,20 @@ define(['doT', 'text!temp/reportList_template_tpl.html', 'css!style/home.css', '
...
@@ -1382,11 +1430,20 @@ define(['doT', 'text!temp/reportList_template_tpl.html', 'css!style/home.css', '
var
_role
=
_$v
.
attr
(
'data-role'
);
//盘方等类型
var
_role
=
_$v
.
attr
(
'data-role'
);
//盘方等类型
var
_scaleVal
=
$
.
trim
(
_$v
.
find
(
'.detail-modal-maid-span-scale'
).
html
());
//分佣比例
var
_scaleVal
=
$
.
trim
(
_$v
.
find
(
'.detail-modal-maid-span-scale'
).
html
());
//分佣比例
var
_shouldCommissionVal
=
$
.
trim
(
_$v
.
find
(
'.detail-modal-maid-td-should-commission'
).
html
());
//应分佣金
var
_shouldCommissionVal
=
$
.
trim
(
_$v
.
find
(
'.detail-modal-maid-td-should-commission'
).
html
());
//应分佣金
var
_dataTemp
=
{
if
(
bargain
.
report_id_show
==
1
){
'bargain_id'
:
_$v
.
attr
(
'data-id'
),
//成交报告id
var
_dataTemp
=
{
'last_commission_id'
:
_$v
.
attr
(
'lastid'
)?
_$v
.
attr
(
'lastid'
):
0
,
//最后一个提交的记录id
'report_id'
:
bargain
.
report_id_liu
,
'is_account_commission'
:
type
//0是保存,1是确认分佣
'bargain_id'
:
_$v
.
attr
(
'data-id'
),
//成交报告id
};
'last_commission_id'
:
_$v
.
attr
(
'lastid'
)?
_$v
.
attr
(
'lastid'
):
0
,
//最后一个提交的记录id
'is_account_commission'
:
type
//0是保存,1是确认分佣
}
}
else
{
var
_dataTemp
=
{
'bargain_id'
:
_$v
.
attr
(
'data-id'
),
//成交报告id
'last_commission_id'
:
_$v
.
attr
(
'lastid'
)?
_$v
.
attr
(
'lastid'
):
0
,
//最后一个提交的记录id
'is_account_commission'
:
type
//0是保存,1是确认分佣
}
}
if
((
type
==
'1'
)
&&
(
_scaleVal
==
''
||
_shouldCommissionVal
==
''
)){
if
((
type
==
'1'
)
&&
(
_scaleVal
==
''
||
_shouldCommissionVal
==
''
)){
//如果是确认分佣,则每项必填。保存,则不加限制
//如果是确认分佣,则每项必填。保存,则不加限制
_stopFlag
=
true
;
_stopFlag
=
true
;
...
...
public/resource/template/reportList_template_tpl.html
View file @
a6d7126d
...
@@ -234,11 +234,11 @@
...
@@ -234,11 +234,11 @@
[
%
for
(
var
item
in
it
){
%
]
[
%
for
(
var
item
in
it
){
%
]
<
tr
class
=
"text-center"
>
<
tr
class
=
"text-center"
>
<
td
>
[
%=
it
[
item
][
'id'
]
%
]
<
/td
>
<
td
>
[
%=
it
[
item
][
'id'
]
%
]
<
/td
>
<
td
>
[
%=
it
[
item
][
'
bargain_id
'
]
%
]
<
/td
>
<
td
>
[
%=
it
[
item
][
'
user_type
'
]
%
]
<
/td
>
<
td
>
[
%=
it
[
item
][
'
income_tim
e'
]
%
]
<
/td
>
<
td
>
[
%=
it
[
item
][
'
titl
e'
]
%
]
<
/td
>
<
td
>
[
%=
it
[
item
][
'
name
'
]
%
]
<
/td
>
<
td
>
[
%=
it
[
item
][
'
validity
'
]
%
]
<
/td
>
<
td
>
[
%=
it
[
item
][
'
current_agent_name
'
]
%
]
<
/td
>
<
td
>
[
%=
it
[
item
][
'
id
'
]
%
]
<
/td
>
<
td
>
[
%=
it
[
item
][
'
store_nam
e'
]
%
]
<
/td
>
<
td
>
[
%=
it
[
item
][
'
phon
e'
]
%
]
<
/td
>
<
/tr
>
<
/tr
>
[
%
}
%
]
[
%
}
%
]
[
%
}
else
{
%
]
[
%
}
else
{
%
]
...
...
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