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
6a42e204
Commit
6a42e204
authored
Jun 05, 2018
by
agping
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
收款记录修改
parent
1ea92998
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
28 additions
and
40 deletions
+28
-40
getCollection.html
application/index/view/collection/getCollection.html
+21
-3
getCollection.js
public/resource/js/getCollection.js
+7
-37
No files found.
application/index/view/collection/getCollection.html
View file @
6a42e204
...
...
@@ -93,6 +93,24 @@
</div>
</div>
</div>
<!--时间轴-->
<div
class=
"modal fade"
id=
"modal-time"
tabindex=
"-1"
role=
"dialog"
aria-labelledby=
"myModalLabel"
aria-hidden=
"true"
>
<div
class=
"modal-dialog"
>
<div
class=
"modal-content"
>
<div
class=
"modal-header"
>
<button
type=
"button"
class=
"close"
data-dismiss=
"modal"
aria-hidden=
"true"
>
×
</button>
<h4
class=
"modal-title"
>
时间轴
</h4>
</div>
<div
class=
"modal-body"
class=
"iframe-div-parent"
>
<iframe
class=
"iframe-time-line"
></iframe>
</div>
</div>
<!-- /.modal-content -->
</div>
<!-- /.modal -->
</div>
<div
class=
"modal fade"
id=
"modal-linetime"
tabindex=
"-1"
role=
"dialog"
aria-labelledby=
"myModalLabel"
aria-hidden=
"true"
>
<div
class=
"modal-dialog"
>
<div
class=
"modal-content"
>
...
...
@@ -101,18 +119,18 @@
×
</button>
<h4
class=
"modal-title"
>
收
款记录
收
付金额
</h4>
</div>
<div
class=
"modal-body"
>
<div
class=
"modal-body"
id=
"del_msg"
>
实付金额:
<input
type=
"number"
/>
元
实付金额:
<input
type=
"number"
id=
'real_money'
/>
元
</div>
</div>
<div
class=
"modal-footer"
>
<!--<button type="button" class="btn btn-default" data-dismiss="modal">关闭
</button>-->
<button
type=
"button"
class=
"btn btn-primary"
id=
" "
data-dismiss=
"modal"
>
<button
type=
"button"
class=
"btn btn-primary
submit_edit
"
id=
" "
data-dismiss=
"modal"
>
保存
</button>
</div>
...
...
public/resource/js/getCollection.js
View file @
6a42e204
...
...
@@ -20,13 +20,11 @@ define(['doT', 'text!temp/get_collection_template_tpl.html', 'css!style/home.css
},
event
:
function
()
{
var
_doc
=
$
(
document
);
_doc
.
on
(
"click"
,
".timeline"
,
function
()
{
follow
.
Timeline
();
});
_doc
.
on
(
'click'
,
'a[href="#modal-time"]'
,
function
(
e
){
_doc
.
on
(
'click'
,
'a[href="#modal-time"]'
,
function
(
e
){
follow
.
house_id
=
$
(
this
).
attr
(
"data-id"
);
e
.
preventDefault
();
e
.
stopPropagation
();
var
_this
=
$
(
this
);
console
.
log
(
'follow.house_id'
);
$
(
'.iframe-time-line'
).
attr
(
'src'
,
'/app_broker/timeline_pc?order_id='
+
follow
.
house_id
);
});
$
(
"#search"
).
click
(
function
()
{
...
...
@@ -35,10 +33,7 @@ define(['doT', 'text!temp/get_collection_template_tpl.html', 'css!style/home.css
$
(
"#reset"
).
click
(
function
()
{
//重置
document
.
getElementById
(
"form_search"
).
reset
();
});
$
(
document
).
delegate
(
".caozuo"
,
"click"
,
function
()
{
//点击操作跟进详情
follow
.
house_id
=
$
(
this
).
attr
(
"data-id"
);
follow
.
Caozuo
();
});
$
(
document
).
delegate
(
".submit_edit"
,
"click"
,
function
()
{
//提交
follow
.
house_id
=
$
(
this
).
attr
(
"data-id"
);
follow
.
Submit_follow
();
...
...
@@ -87,38 +82,13 @@ define(['doT', 'text!temp/get_collection_template_tpl.html', 'css!style/home.css
});
},
//时间轴点击事件
Timeline
:
function
()
{
//获取时间轴
$
.
ajax
({
'type'
:
'GET'
,
'url'
:
'/index/selectReportAll'
,
data
:
{
"order_id"
:
follow
.
house_id
},
dataType
:
"json"
,
success
:
function
(
data
)
{
if
(
data
.
code
==
200
)
{
if
(
data
.
data
)
{
console
.
log
(
data
.
data
);
}
}
else
{
alert
(
'获取失败!'
);
}
}
});
},
Submit_follow
:
function
()
{
//提交
$
.
ajax
({
'type'
:
'POST'
,
'url'
:
'
/index/pcEditClient
'
,
'url'
:
'
index/addRealMoney
'
,
data
:
{
"id"
:
follow
.
house_id
,
"user_nick"
:
$
(
"#cus_name"
).
val
(),
"user_phone"
:
$
(
"#cus_phone"
).
html
(),
"agent_id"
:
follow
.
agent_id
,
//客方
"sex"
:
$
(
"#sex"
).
val
()
"collection_id"
:
follow
.
house_id
,
"real_money"
:
$
(
"#real_money"
).
val
(),
},
dataType
:
"json"
,
success
:
function
(
data
)
{
...
...
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