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
7f030408
Commit
7f030408
authored
Apr 26, 2018
by
agping
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
财务修改
parent
704845b2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
38 additions
and
11 deletions
+38
-11
index.html
application/index/view/finance/index.html
+1
-1
reportList.js
public/resource/js/reportList.js
+37
-10
No files found.
application/index/view/finance/index.html
View file @
7f030408
...
...
@@ -118,7 +118,7 @@
<div
class=
"modal-footer"
>
<button
type=
"button"
class=
"btn btn-default"
data-dismiss=
"modal"
>
取消
</button>
<button
type=
"button"
class=
"btn btn-primary"
id=
"confirm_delete
"
>
<button
type=
"button"
class=
"btn btn-primary"
data-dismiss=
"modal"
id=
"confirm_edit
"
>
确定
</button>
</div>
...
...
public/resource/js/reportList.js
View file @
7f030408
...
...
@@ -34,26 +34,23 @@ define(['doT', 'text!temp/reportList_template_tpl.html', 'css!style/home.css', '
$
(
document
).
delegate
(
".edit"
,
"click"
,
function
()
{
//点击操作跟进详情
follow
.
house_id
=
$
(
this
).
attr
(
"data-id"
);
follow
.
Edit
();
});
$
(
document
).
delegate
(
"#confirm_edit"
,
"click"
,
function
()
{
//点击操作跟进详情
follow
.
house_id
=
$
(
this
).
attr
(
"data-id"
);
follow
.
confirmEdit
();
});
// =========三个按钮=========
$
(
document
).
delegate
(
"#information"
,
"click"
,
function
()
{
//点击操作跟进详情
// follow.house_id = $ (this).attr ("data-id");
$
(
document
).
delegate
(
"#information"
,
"click"
,
function
()
{
//点击操作跟进详情
follow
.
Information
();
});
$
(
document
).
delegate
(
"#fees"
,
"click"
,
function
()
{
//点击操作跟进详情
// follow.house_id = $ (this).attr ("data-id");
$
(
document
).
delegate
(
"#fees"
,
"click"
,
function
()
{
//点击操作跟进详情
follow
.
Fees
();
});
$
(
document
).
delegate
(
"#records"
,
"click"
,
function
()
{
//点击操作跟进详情
// follow.house_id = $ (this).attr ("data-id");
$
(
document
).
delegate
(
"#records"
,
"click"
,
function
()
{
//点击操作跟进详情
follow
.
Records
();
});
// ===================
// $ (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
();
...
...
@@ -144,6 +141,36 @@ define(['doT', 'text!temp/reportList_template_tpl.html', 'css!style/home.css', '
}
});
},
confirmEdit
:
function
(){
//修改报告详情
console
.
log
(
22
);
$
.
ajax
({
'type'
:
'POST'
,
'url'
:
'/index/bargainInfo'
,
data
:
{
"id"
:
follow
.
house_id
,
"commission"
:
$
(
".commission"
).
val
(),
"practical_fee"
:
$
(
".practical_fee"
).
val
(),
},
dataType
:
"json"
,
success
:
function
(
data
){
if
(
data
.
code
==
200
){
if
(
data
.
data
)
{
// console.log(data.data.commission);
// $(".create_time").html(data.data.create_time);
// $(".user_phone").html(data.data.user_phone);
// $(".user_name").html(data.data.user_name);
// $(".internal_address").html(data.data.internal_address);
// $(".internal_title").html(data.data.internal_title);
// $(".commission").val(data.data.commission);
// $(".practical_fee").val(data.data.practical_fee);
}
}
else
{
alert
(
'获取失败!'
);
}
}
});
},
// ===========666=========
Information
:
function
(){
$
(
".Tswitch"
).
eq
(
0
).
show
();
...
...
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