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
ea26d0a5
Commit
ea26d0a5
authored
May 04, 2018
by
agping
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
财务报告修改
parent
d1eb4298
Hide whitespace changes
Inline
Side-by-side
Showing
14 changed files
with
58 additions
and
570 deletions
+58
-570
account_statement.html
application/index/view/finance/account_statement.html
+1
-1
refundList.html
application/index/view/finance/refundList.html
+1
-1
refund_order_list.html
application/index/view/finance/refund_order_list.html
+1
-1
statement.html
application/index/view/finance/statement.html
+5
-5
statement_backout.html
application/index/view/finance/statement_backout.html
+4
-4
wait_backout.html
application/index/view/finance/wait_backout.html
+2
-2
refundList.js
public/resource/js/refundList.js
+5
-5
refundOrderList.js
public/resource/js/refundOrderList.js
+3
-3
stateMent.js
public/resource/js/stateMent.js
+7
-227
statementBackout.js
public/resource/js/statementBackout.js
+12
-232
waitBackout.js
public/resource/js/waitBackout.js
+2
-71
refund_template_tpl.html
public/resource/template/refund_template_tpl.html
+6
-8
refundorder_template_tpl.html
public/resource/template/refundorder_template_tpl.html
+8
-9
reportList_template_tpl.html
public/resource/template/reportList_template_tpl.html
+1
-1
No files found.
application/index/view/finance/account_statement.html
View file @
ea26d0a5
...
...
@@ -231,7 +231,7 @@
</div>
<div
class=
"modal-body"
>
<div
class=
"modal-body"
id=
"del_msg"
>
确认删除吗?
时间轴
</div>
</div>
<div
class=
"modal-footer"
>
...
...
application/index/view/finance/refundList.html
View file @
ea26d0a5
...
...
@@ -230,7 +230,7 @@
</div>
<div
class=
"modal-body"
>
<div
class=
"modal-body"
id=
"del_msg"
>
确认删除吗?
时间轴
</div>
</div>
<div
class=
"modal-footer"
>
...
...
application/index/view/finance/refund_order_list.html
View file @
ea26d0a5
...
...
@@ -230,7 +230,7 @@
</div>
<div
class=
"modal-body"
>
<div
class=
"modal-body"
id=
"del_msg"
>
确认删除吗?
时间轴
</div>
</div>
<div
class=
"modal-footer"
>
...
...
application/index/view/finance/statement.html
View file @
ea26d0a5
...
...
@@ -71,9 +71,9 @@
<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 btn2 ld-Marheight"
data-rule-phoneus=
"false"
data-rule-required=
"false"
id=
"internal_address"
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=
""
>
<span
class=
"btn btn-info btn3
ld-Marheight
"
id=
"search"
>
搜索
</span>
<span
class=
"btn btn-info btn3
ld-Marheight
"
id=
"reset"
>
重置
</span>
<span
class=
"btn btn-info btn3
ld-Marheight
"
id=
"export"
>
导出excel
</span>
<span
class=
"btn btn-info btn3"
id=
"search"
>
搜索
</span>
<span
class=
"btn btn-info btn3"
id=
"reset"
>
重置
</span>
<span
class=
"btn btn-info btn3"
id=
"export"
>
导出excel
</span>
</form>
</td>
</tr>
...
...
@@ -166,7 +166,7 @@
</div>
<!-- /.modal -->
</div>
<!-- 弹出框 时间 -->
<div
class=
"modal fade"
id=
"modal-time"
tabindex=
"-1"
role=
"dialog"
aria-labelledby=
"myModalLabel"
aria-hidden=
"true"
>
<div
class=
"modal fade"
id=
"modal-
line
time"
tabindex=
"-1"
role=
"dialog"
aria-labelledby=
"myModalLabel"
aria-hidden=
"true"
>
<div
class=
"modal-dialog"
>
<div
class=
"modal-content"
>
<div
class=
"modal-header"
>
...
...
@@ -179,7 +179,7 @@
</div>
<div
class=
"modal-body"
>
<div
class=
"modal-body"
id=
"del_msg"
>
确认删除吗?
时间轴
</div>
</div>
<div
class=
"modal-footer"
>
...
...
application/index/view/finance/statement_backout.html
View file @
ea26d0a5
...
...
@@ -71,8 +71,8 @@
<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 btn2 ld-Marheight"
data-rule-phoneus=
"false"
data-rule-required=
"false"
id=
"internal_address"
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=
""
>
<span
class=
"btn btn-info btn3
ld-Marheight
"
id=
"search"
>
搜索
</span>
<span
class=
"btn btn-info btn3
ld-Marheight
"
id=
"reset"
>
重置
</span>
<span
class=
"btn btn-info btn3"
id=
"search"
>
搜索
</span>
<span
class=
"btn btn-info btn3"
id=
"reset"
>
重置
</span>
</form>
</td>
</tr>
...
...
@@ -164,7 +164,7 @@
</div>
<!-- /.modal -->
</div>
<!-- 弹出框 时间 -->
<div
class=
"modal fade"
id=
"modal-time"
tabindex=
"-1"
role=
"dialog"
aria-labelledby=
"myModalLabel"
aria-hidden=
"true"
>
<div
class=
"modal fade"
id=
"modal-
line
time"
tabindex=
"-1"
role=
"dialog"
aria-labelledby=
"myModalLabel"
aria-hidden=
"true"
>
<div
class=
"modal-dialog"
>
<div
class=
"modal-content"
>
<div
class=
"modal-header"
>
...
...
@@ -177,7 +177,7 @@
</div>
<div
class=
"modal-body"
>
<div
class=
"modal-body"
id=
"del_msg"
>
确认删除吗?
时间轴
</div>
</div>
<div
class=
"modal-footer"
>
...
...
application/index/view/finance/wait_backout.html
View file @
ea26d0a5
...
...
@@ -217,7 +217,7 @@
</div>
<!-- 弹出框 时间 -->
<div
class=
"modal fade"
id=
"modal-time"
tabindex=
"-1"
role=
"dialog"
aria-labelledby=
"myModalLabel"
aria-hidden=
"true"
>
<div
class=
"modal fade"
id=
"modal-time
line
"
tabindex=
"-1"
role=
"dialog"
aria-labelledby=
"myModalLabel"
aria-hidden=
"true"
>
<div
class=
"modal-dialog"
>
<div
class=
"modal-content"
>
<div
class=
"modal-header"
>
...
...
@@ -230,7 +230,7 @@
</div>
<div
class=
"modal-body"
>
<div
class=
"modal-body"
id=
"del_msg"
>
确认删除吗?
时间轴
</div>
</div>
<div
class=
"modal-footer"
>
...
...
public/resource/js/refundList.js
View file @
ea26d0a5
...
...
@@ -350,7 +350,7 @@ define(['doT', 'text!temp/refund_template_tpl.html', 'css!style/home.css', 'ckfi
$
.
ajax
({
type
:
'GET'
,
url
:
'/index/re
port
ListAttache/0'
,
url
:
'/index/re
fund
ListAttache/0'
,
data
:
params
,
timeout
:
30000
,
dataType
:
'json'
,
...
...
@@ -400,7 +400,7 @@ define(['doT', 'text!temp/refund_template_tpl.html', 'css!style/home.css', 'ckfi
$
.
ajax
({
type
:
'GET'
,
url
:
'/index/re
port
ListManager/1'
,
url
:
'/index/re
fund
ListManager/1'
,
data
:
params
,
timeout
:
30000
,
dataType
:
'json'
,
...
...
@@ -451,7 +451,7 @@ define(['doT', 'text!temp/refund_template_tpl.html', 'css!style/home.css', 'ckfi
$
.
ajax
({
type
:
'GET'
,
url
:
'/index/re
port
ListMajordomo/2'
,
url
:
'/index/re
fund
ListMajordomo/2'
,
data
:
params
,
timeout
:
30000
,
dataType
:
'json'
,
...
...
@@ -501,7 +501,7 @@ define(['doT', 'text!temp/refund_template_tpl.html', 'css!style/home.css', 'ckfi
$
.
ajax
({
type
:
'GET'
,
url
:
'/index/re
port
ListCashier/3'
,
url
:
'/index/re
fund
ListCashier/3'
,
data
:
params
,
timeout
:
30000
,
dataType
:
'json'
,
...
...
@@ -541,7 +541,7 @@ define(['doT', 'text!temp/refund_template_tpl.html', 'css!style/home.css', 'ckfi
$
.
ajax
({
type
:
'GET'
,
url
:
'/index/re
port
ListAttache/0'
,
url
:
'/index/re
fund
ListAttache/0'
,
data
:
params
,
timeout
:
30000
,
dataType
:
'json'
,
...
...
public/resource/js/refundOrderList.js
View file @
ea26d0a5
...
...
@@ -541,7 +541,7 @@ define(['doT', 'text!temp/refundorder_template_tpl.html', 'css!style/home.css',
$
.
ajax
({
type
:
'GET'
,
url
:
'/index/re
portListAttache/0
'
,
url
:
'/index/re
fundOrderList
'
,
data
:
params
,
timeout
:
30000
,
dataType
:
'json'
,
...
...
@@ -550,9 +550,9 @@ define(['doT', 'text!temp/refundorder_template_tpl.html', 'css!style/home.css',
if
(
typeof
data
===
'object'
)
{
if
(
data
.
code
==
200
)
{
var
doTtmpl
=
doT
.
template
(
document
.
getElementById
(
'refundorder_list_tpl'
).
innerHTML
);
$
(
"#follow_list"
).
html
(
doTtmpl
(
data
.
data
.
list
));
$
(
"#follow_list"
).
html
(
doTtmpl
(
data
.
data
.
data
.
list
));
/*分页代码*/
add_page
(
data
.
data
.
total
,
pageNo
,
follow
.
pageSize
,
follow
.
getList
);
add_page
(
data
.
data
.
data
.
total
,
pageNo
,
follow
.
pageSize
,
follow
.
getList
);
}
else
{
alert
(
data
[
'msg'
]);
...
...
public/resource/js/stateMent.js
View file @
ea26d0a5
...
...
@@ -35,213 +35,37 @@ define (['doT', 'text!temp/statement_template_tpl.html', 'css!style/home.css','c
business
.
id
=
$
(
this
).
attr
(
"data-id"
);
});
$
(
document
).
delegate
(
".anch"
,
"click"
,
function
()
{
//点击设置案场权限人
$
(
"#myModalLabel"
).
html
(
"设置案场权限人"
);
// 传入data-id
business
.
house_id
=
$
(
this
).
attr
(
"data-id"
);
business
.
type
=
"1"
;
business
.
Anch
();
//获取手机号名字的
});
// 点击设置案场权限人(盘方)
$
(
document
).
delegate
(
".add_applies"
,
"click"
,
function
()
{
//点击设置案场权限人
$
(
"#myModalLabel"
).
html
(
"设置盘方"
);
business
.
house_id
=
$
(
this
).
attr
(
"data-id"
);
business
.
type
=
"2"
;
business
.
Anch
();
});
$
(
document
).
delegate
(
".dujia"
,
"click"
,
function
()
{
//点击独家
business
.
house_id
=
$
(
this
).
attr
(
"data-id"
);
business
.
type
=
"3"
;
business
.
Dujia
();
});
$
(
document
).
delegate
(
".caozuo"
,
"click"
,
function
()
{
//点击操作记录
// business.house_id = $ (this).attr ("data-id");
business
.
Caozuo
();
});
$
(
document
).
delegate
(
".submit_follow2"
,
"click"
,
function
()
{
//提交独家
business
.
Dujianew
();
});
// 提交按钮设置案场权限人
$
(
document
).
delegate
(
".submit_follow"
,
"click"
,
function
()
{
//提交按钮设置案场权限人
business
.
Submit_follow
();
});
$
(
document
).
delegate
(
"#confirm_delete"
,
"click"
,
function
()
{
business
.
delBusiness
();
});
$
(
document
).
delegate
(
".jia"
,
"click"
,
function
()
{
//加号
business
.
jiabox
();
});
$
(
document
).
delegate
(
".addphone"
,
"click"
,
function
()
{
//加号
business
.
addphone
(
this
);
});
$
(
document
).
delegate
(
".jian"
,
"click"
,
function
()
{
//叉号
business
.
jianbox
();
});
// 详情
// 时间轴
$
(
document
).
delegate
(
".timeline"
,
"click"
,
function
()
{
//时间轴
// business.house_id = $ (this).attr ("data-id");
business
.
Timeline
();
});
// 编辑
$
(
document
).
delegate
(
".edit"
,
"click"
,
function
()
{
//点击
操作跟进详情
$
(
document
).
delegate
(
".edit"
,
"click"
,
function
()
{
//点击
编辑
business
.
house_id
=
$
(
this
).
attr
(
"data-id"
);
business
.
Edit
();
});
$
(
document
).
delegate
(
"#confirm_edit"
,
"click"
,
function
()
{
//点击
操作跟进详情
$
(
document
).
delegate
(
"#confirm_edit"
,
"click"
,
function
()
{
//点击
编辑确定
business
.
confirmEdit
();
});
// 点击新增分佣提成
$
(
document
).
delegate
(
"#new-commission"
,
"click"
,
function
()
{
//点击分佣提成
business
.
newCommission
();
business
.
Caozuo
();
});
//table切换
$
(
document
).
delegate
(
"#information"
,
"click"
,
function
()
{
//点击操作跟进详情
$
(
document
).
delegate
(
"#information"
,
"click"
,
function
()
{
business
.
Information
();
});
$
(
document
).
delegate
(
"#fees"
,
"click"
,
function
()
{
//点击操作跟进详情
// business.house_id = $ (this).attr ("data-id");
$
(
document
).
delegate
(
"#fees"
,
"click"
,
function
()
{
console
.
log
(
business
.
house_id
);
business
.
Fees
();
});
$
(
document
).
delegate
(
"#records"
,
"click"
,
function
()
{
//点击操作跟进详情
$
(
document
).
delegate
(
"#records"
,
"click"
,
function
()
{
business
.
Records
();
});
$
(
document
).
delegate
(
".submit_edit"
,
"click"
,
function
()
{
//提交
business
.
house_id
=
$
(
this
).
attr
(
"data-id"
);
business
.
Submit_follow
();
});
// 详情
// 批量修改客方
$
(
document
).
delegate
(
"#modify_add"
,
"click"
,
function
()
{
business
.
modify_add
();
});
// 批量修改客方
$
(
document
).
on
(
'input'
,
'.phone_jia,.phone_add'
,
function
(
e
)
{
//搜索手机号码/加号搜索
e
.
preventDefault
();
e
.
stopPropagation
();
var
_this
=
$
(
this
);
_this
.
next
().
css
(
"display"
,
"block"
);
valueCurrent
=
_this
.
val
();
if
(
valueCurrent
!=
''
){
business
.
resetLoad
(
1
);
business
.
loadMain
(
valueCurrent
,
_this
.
next
());
console
.
log
(
_this
.
next
());
}
else
{
business
.
ldHtml
.
html
(
''
);
return
false
;
}
});
$
(
document
).
delegate
(
".is_show"
,
"click"
,
function
()
{
//推荐至首页
if
(
!
confirm
(
'是否继续?'
))
{
return
;
}
business
.
id
=
$
(
this
).
attr
(
"data-id"
);
var
params
=
{
};
params
.
id
=
$
(
this
).
attr
(
"data-id"
);
var
str
=
$
.
trim
(
$
(
this
).
html
());
if
(
str
===
"推荐至首页"
)
{
params
.
type
=
1
;
$
(
this
).
html
(
'已推荐'
);
}
else
{
params
.
type
=
0
;
$
(
this
).
html
(
'推荐至首页'
);
}
$
.
ajax
({
//推荐至首页
'type'
:
'POST'
,
'url'
:
'/index/carefullyChosen'
,
data
:
{
"houses_id"
:
business
.
id
,
"is_carefully_chosen"
:
params
.
type
},
dataType
:
"json"
,
success
:
function
(
data
){
if
(
data
.
code
==
200
){
if
(
data
.
data
)
{
}
}
else
{
alert
(
"推荐失败!"
)
}
}
});
});
$
(
document
).
delegate
(
"#liudan_pic_btn"
,
"click"
,
function
()
{
//上传图片
var
img_url
=
""
;
BrowseServer
(
'liudan_pic_btn'
,
function
(
url
){
var
alt_img
=
$
(
"#liudan_pic_btn"
).
val
();
alt_img
=
alt_img
.
replace
(
'images/'
,
''
);
img_url
+=
' <img src="'
+
url
+
'" class="jai_dujia" data-img="'
+
alt_img
+
'">'
;
$
(
"#liudan_pic_pre"
).
append
(
img_url
);
});
});
// 下拉列表
var
_ajaxObjTel
=
null
;
_doc
.
on
(
'input'
,
'.phone_jia1'
,
function
(){
var
_this
=
$
(
this
),
_thisVal
=
$
.
trim
(
_this
.
val
());
_this
.
removeAttr
(
'data-id'
);
//移除之前携带的信息
if
(
_thisVal
!=
''
){
_ajaxObjTel
&&
_ajaxObjTel
.
abort
();
_ajaxObjTel
=
$
.
ajax
({
type
:
'GET'
,
url
:
'/index/getBroker_new'
,
data
:
{
'phone'
:
$
.
trim
(
_this
.
val
())
},
timeout
:
30000
,
dataType
:
'json'
,
beforeSend
:
function
()
{},
success
:
function
(
data
)
{
if
(
typeof
data
===
'object'
)
{
if
(
data
.
code
==
200
)
{
if
(
data
[
'data'
].
length
>
0
){
var
_htmlTemp
=
''
;
$
.
each
(
data
[
'data'
],
function
(
i
,
item
)
{
_htmlTemp
+=
'<li data-id="{3}">{2}{0}-{1}<li>'
.
stringFormatObj
({
'0'
:
item
[
'name'
],
'1'
:
item
[
'phone'
],
'2'
:
_this
.
parent
().
nextAll
(
'.input-add-tel'
).
data
(
'hideid'
)?
''
:(
item
[
'id'
]
+
'-'
),
'3'
:
item
[
'id'
]
});
});
// 输出trim
_this
.
next
().
show
().
html
(
_htmlTemp
);
}
else
{
_this
.
next
().
html
(
''
);
};
}
else
{
alert
(
data
[
'msg'
]);
};
}
else
{
alert
(
'数据错误'
);
};
},
error
:
function
()
{
//alert('error');
},
complete
:
function
(
xhr
,
textStatus
){
if
(
textStatus
===
'timeout'
){
alert
(
'请求超时'
);
};
}
});
};
});
_doc
.
on
(
'click'
,
'.jian_class1>ul>li'
,
function
(){
var
_this
=
$
(
this
);
_this
.
parent
().
prev
().
val
(
_this
.
html
()).
attr
(
'data-id'
,
_this
.
attr
(
'data-id'
));
_this
.
parent
().
html
(
''
).
hide
();
});
//
});
},
Timeline
:
function
(){
//获取时间轴
$
.
ajax
({
...
...
@@ -336,7 +160,6 @@ define (['doT', 'text!temp/statement_template_tpl.html', 'css!style/home.css','c
}
});
},
// 新增分佣提成
newCommission
:
function
(){
//新增分佣提成
$
.
ajax
({
'type'
:
'POST'
,
...
...
@@ -358,8 +181,7 @@ define (['doT', 'text!temp/statement_template_tpl.html', 'css!style/home.css','c
}
});
},
// table切换
// table切换
Information
:
function
(){
$
(
".Tswitch"
).
eq
(
0
).
show
();
$
(
".Tswitch"
).
eq
(
1
).
hide
();
...
...
@@ -395,27 +217,6 @@ define (['doT', 'text!temp/statement_template_tpl.html', 'css!style/home.css','c
$
(
"#records"
).
addClass
(
"btn-info"
);
},
Submit_follow
:
function
()
{
//提交
$
.
ajax
({
'type'
:
'POST'
,
'url'
:
'/index/pcEditClient'
,
data
:
{
"id"
:
business
.
house_id
,
"user_nick"
:
$
(
"#cus_name"
).
val
(),
"user_phone"
:
$
(
"#cus_phone"
).
html
(),
"agent_id"
:
business
.
agent_id
,
//客方
"sex"
:
$
(
"#sex"
).
val
()
},
dataType
:
"json"
,
success
:
function
(
data
)
{
if
(
data
.
code
==
200
)
{
if
(
data
.
data
)
{
}
}
else
{
}
}
});
},
getList
:
function
(
pageNo
)
{
business
.
pageNo
=
pageNo
;
var
params
=
{};
...
...
@@ -442,26 +243,6 @@ define (['doT', 'text!temp/statement_template_tpl.html', 'css!style/home.css','c
}
});
},
delBusiness
:
function
()
{
$
.
ajax
({
url
:
'/index/houseDel'
,
type
:
'POST'
,
async
:
true
,
data
:
{
"id"
:
business
.
id
},
dataType
:
'json'
,
success
:
function
(
data
)
{
if
(
data
.
code
==
200
)
{
business
.
getList
(
1
);
$
(
"#modal-delete"
).
modal
(
'hide'
);
}
else
{
$
(
"#del_msg"
).
html
(
'<span style="color: red">删除失败!</span>'
);
}
}
});
},
//详情 时间轴
//时间轴 详情
};
return
business
;
});
\ No newline at end of file
public/resource/js/statementBackout.js
View file @
ea26d0a5
...
...
@@ -31,217 +31,37 @@ define (['doT', 'text!temp/statement_backout_template_tpl.html', 'css!style/home
document
.
getElementById
(
"form_search"
).
reset
();
});
$
(
document
).
delegate
(
".del_modal"
,
"click"
,
function
()
{
business
.
id
=
$
(
this
).
attr
(
"data-id"
);
});
$
(
document
).
delegate
(
".anch"
,
"click"
,
function
()
{
//点击设置案场权限人
$
(
"#myModalLabel"
).
html
(
"设置案场权限人"
);
// 传入data-id
business
.
house_id
=
$
(
this
).
attr
(
"data-id"
);
business
.
type
=
"1"
;
business
.
Anch
();
//获取手机号名字的
});
// 点击设置案场权限人(盘方)
$
(
document
).
delegate
(
".add_applies"
,
"click"
,
function
()
{
//点击设置案场权限人
$
(
"#myModalLabel"
).
html
(
"设置盘方"
);
business
.
house_id
=
$
(
this
).
attr
(
"data-id"
);
business
.
type
=
"2"
;
business
.
Anch
();
});
$
(
document
).
delegate
(
".dujia"
,
"click"
,
function
()
{
//点击独家
business
.
house_id
=
$
(
this
).
attr
(
"data-id"
);
business
.
type
=
"3"
;
business
.
Dujia
();
});
$
(
document
).
delegate
(
".caozuo"
,
"click"
,
function
()
{
//点击操作记录
// business.house_id = $ (this).attr ("data-id");
business
.
Caozuo
();
});
$
(
document
).
delegate
(
".submit_follow2"
,
"click"
,
function
()
{
//提交独家
business
.
Dujianew
();
});
// 提交按钮设置案场权限人
$
(
document
).
delegate
(
".submit_follow"
,
"click"
,
function
()
{
//提交按钮设置案场权限人
business
.
Submit_follow
();
});
$
(
document
).
delegate
(
"#confirm_delete"
,
"click"
,
function
()
{
business
.
delBusiness
();
});
$
(
document
).
delegate
(
".jia"
,
"click"
,
function
()
{
//加号
business
.
jiabox
();
});
$
(
document
).
delegate
(
".addphone"
,
"click"
,
function
()
{
//加号
business
.
addphone
(
this
);
});
$
(
document
).
delegate
(
".jian"
,
"click"
,
function
()
{
//叉号
business
.
jianbox
();
});
// 详情
// 时间轴
$
(
document
).
delegate
(
".timeline"
,
"click"
,
function
()
{
//时间轴
// business.house_id = $ (this).attr ("data-id");
business
.
Timeline
();
});
// 编辑
$
(
document
).
delegate
(
".edit"
,
"click"
,
function
()
{
//点击
操作跟进详情
$
(
document
).
delegate
(
".edit"
,
"click"
,
function
()
{
//点击
编辑
business
.
house_id
=
$
(
this
).
attr
(
"data-id"
);
business
.
Edit
();
});
$
(
document
).
delegate
(
"#confirm_edit"
,
"click"
,
function
()
{
//点击
操作跟进详情
$
(
document
).
delegate
(
"#confirm_edit"
,
"click"
,
function
()
{
//点击
确定编辑
business
.
confirmEdit
();
});
// 点击新增分佣提成
$
(
document
).
delegate
(
"#new-commission"
,
"click"
,
function
()
{
//点击分佣提成
business
.
newCommission
();
business
.
Caozuo
();
});
//table切换
$
(
document
).
delegate
(
"#information"
,
"click"
,
function
()
{
//点击操作跟进详情
$
(
document
).
delegate
(
"#information"
,
"click"
,
function
()
{
business
.
Information
();
});
$
(
document
).
delegate
(
"#fees"
,
"click"
,
function
()
{
//点击操作跟进详情
// business.house_id = $ (this).attr ("data-id");
$
(
document
).
delegate
(
"#fees"
,
"click"
,
function
()
{
console
.
log
(
business
.
house_id
);
business
.
Fees
();
});
$
(
document
).
delegate
(
"#records"
,
"click"
,
function
()
{
//点击操作跟进详情
$
(
document
).
delegate
(
"#records"
,
"click"
,
function
()
{
business
.
Records
();
});
$
(
document
).
delegate
(
".submit_edit"
,
"click"
,
function
()
{
//提交
business
.
house_id
=
$
(
this
).
attr
(
"data-id"
);
business
.
Submit_follow
();
});
// 详情
// 批量修改客方
$
(
document
).
delegate
(
"#modify_add"
,
"click"
,
function
()
{
business
.
modify_add
();
});
// 批量修改客方
$
(
document
).
on
(
'input'
,
'.phone_jia,.phone_add'
,
function
(
e
)
{
//搜索手机号码/加号搜索
e
.
preventDefault
();
e
.
stopPropagation
();
var
_this
=
$
(
this
);
_this
.
next
().
css
(
"display"
,
"block"
);
valueCurrent
=
_this
.
val
();
if
(
valueCurrent
!=
''
){
business
.
resetLoad
(
1
);
business
.
loadMain
(
valueCurrent
,
_this
.
next
());
console
.
log
(
_this
.
next
());
}
else
{
business
.
ldHtml
.
html
(
''
);
return
false
;
}
});
$
(
document
).
delegate
(
".is_show"
,
"click"
,
function
()
{
//推荐至首页
if
(
!
confirm
(
'是否继续?'
))
{
return
;
}
business
.
id
=
$
(
this
).
attr
(
"data-id"
);
var
params
=
{
};
params
.
id
=
$
(
this
).
attr
(
"data-id"
);
var
str
=
$
.
trim
(
$
(
this
).
html
());
if
(
str
===
"推荐至首页"
)
{
params
.
type
=
1
;
$
(
this
).
html
(
'已推荐'
);
}
else
{
params
.
type
=
0
;
$
(
this
).
html
(
'推荐至首页'
);
}
$
.
ajax
({
//推荐至首页
'type'
:
'POST'
,
'url'
:
'/index/carefullyChosen'
,
data
:
{
"houses_id"
:
business
.
id
,
"is_carefully_chosen"
:
params
.
type
},
dataType
:
"json"
,
success
:
function
(
data
){
if
(
data
.
code
==
200
){
if
(
data
.
data
)
{
}
}
else
{
alert
(
"推荐失败!"
)
}
}
});
});
$
(
document
).
delegate
(
"#liudan_pic_btn"
,
"click"
,
function
()
{
//上传图片
var
img_url
=
""
;
BrowseServer
(
'liudan_pic_btn'
,
function
(
url
){
var
alt_img
=
$
(
"#liudan_pic_btn"
).
val
();
alt_img
=
alt_img
.
replace
(
'images/'
,
''
);
img_url
+=
' <img src="'
+
url
+
'" class="jai_dujia" data-img="'
+
alt_img
+
'">'
;
$
(
"#liudan_pic_pre"
).
append
(
img_url
);
});
});
// 下拉列表
var
_ajaxObjTel
=
null
;
_doc
.
on
(
'input'
,
'.phone_jia1'
,
function
(){
var
_this
=
$
(
this
),
_thisVal
=
$
.
trim
(
_this
.
val
());
_this
.
removeAttr
(
'data-id'
);
//移除之前携带的信息
if
(
_thisVal
!=
''
){
_ajaxObjTel
&&
_ajaxObjTel
.
abort
();
_ajaxObjTel
=
$
.
ajax
({
type
:
'GET'
,
url
:
'/index/getBroker_new'
,
data
:
{
'phone'
:
$
.
trim
(
_this
.
val
())
},
timeout
:
30000
,
dataType
:
'json'
,
beforeSend
:
function
()
{},
success
:
function
(
data
)
{
if
(
typeof
data
===
'object'
)
{
if
(
data
.
code
==
200
)
{
if
(
data
[
'data'
].
length
>
0
){
var
_htmlTemp
=
''
;
$
.
each
(
data
[
'data'
],
function
(
i
,
item
)
{
_htmlTemp
+=
'<li data-id="{3}">{2}{0}-{1}<li>'
.
stringFormatObj
({
'0'
:
item
[
'name'
],
'1'
:
item
[
'phone'
],
'2'
:
_this
.
parent
().
nextAll
(
'.input-add-tel'
).
data
(
'hideid'
)?
''
:(
item
[
'id'
]
+
'-'
),
'3'
:
item
[
'id'
]
});
});
// 输出trim
_this
.
next
().
show
().
html
(
_htmlTemp
);
}
else
{
_this
.
next
().
html
(
''
);
};
}
else
{
alert
(
data
[
'msg'
]);
};
}
else
{
alert
(
'数据错误'
);
};
},
error
:
function
()
{
//alert('error');
},
complete
:
function
(
xhr
,
textStatus
){
if
(
textStatus
===
'timeout'
){
alert
(
'请求超时'
);
};
}
});
};
});
_doc
.
on
(
'click'
,
'.jian_class1>ul>li'
,
function
(){
var
_this
=
$
(
this
);
_this
.
parent
().
prev
().
val
(
_this
.
html
()).
attr
(
'data-id'
,
_this
.
attr
(
'data-id'
));
_this
.
parent
().
html
(
''
).
hide
();
});
//
},
Timeline
:
function
(){
//获取时间轴
$
.
ajax
({
...
...
@@ -336,7 +156,6 @@ define (['doT', 'text!temp/statement_backout_template_tpl.html', 'css!style/home
}
});
},
// 新增分佣提成
newCommission
:
function
(){
//新增分佣提成
$
.
ajax
({
'type'
:
'POST'
,
...
...
@@ -359,7 +178,7 @@ define (['doT', 'text!temp/statement_backout_template_tpl.html', 'css!style/home
});
},
// table切换
// table切换
Information
:
function
(){
$
(
".Tswitch"
).
eq
(
0
).
show
();
$
(
".Tswitch"
).
eq
(
1
).
hide
();
...
...
@@ -395,36 +214,15 @@ define (['doT', 'text!temp/statement_backout_template_tpl.html', 'css!style/home
$
(
"#records"
).
addClass
(
"btn-info"
);
},
Submit_follow
:
function
()
{
//提交
$
.
ajax
({
'type'
:
'POST'
,
'url'
:
'/index/pcEditClient'
,
data
:
{
"id"
:
business
.
house_id
,
"user_nick"
:
$
(
"#cus_name"
).
val
(),
"user_phone"
:
$
(
"#cus_phone"
).
html
(),
"agent_id"
:
business
.
agent_id
,
//客方
"sex"
:
$
(
"#sex"
).
val
()
},
dataType
:
"json"
,
success
:
function
(
data
)
{
if
(
data
.
code
==
200
)
{
if
(
data
.
data
)
{
}
}
else
{
}
}
});
},
getList
:
function
(
pageNo
)
{
business
.
pageNo
=
pageNo
;
var
params
=
{};
params
.
pageNo
=
business
.
pageNo
;
params
.
pageSize
=
business
.
pageSize
;
params
.
create_time
=
$
(
'#create_time'
)
.
val
();
//
params
.
end_time
=
$
(
'#end_time'
)
.
val
();
//
params
.
internal_address
=
$
(
'#internal_address'
)
.
val
();
//
params
.
user_phone
=
$
(
'#user_phone'
)
.
val
();
//
params
.
create_time
=
$
(
'#create_time'
)
.
val
();
params
.
end_time
=
$
(
'#end_time'
)
.
val
();
params
.
internal_address
=
$
(
'#internal_address'
)
.
val
();
params
.
user_phone
=
$
(
'#user_phone'
)
.
val
();
$
.
ajax
({
url
:
'/index/reportListUndone/6'
,
//获取列表
...
...
@@ -442,26 +240,7 @@ define (['doT', 'text!temp/statement_backout_template_tpl.html', 'css!style/home
}
});
},
delBusiness
:
function
()
{
$
.
ajax
({
url
:
'/index/houseDel'
,
type
:
'POST'
,
async
:
true
,
data
:
{
"id"
:
business
.
id
},
dataType
:
'json'
,
success
:
function
(
data
)
{
if
(
data
.
code
==
200
)
{
business
.
getList
(
1
);
$
(
"#modal-delete"
).
modal
(
'hide'
);
}
else
{
$
(
"#del_msg"
).
html
(
'<span style="color: red">删除失败!</span>'
);
}
}
});
},
//详情 时间轴
//时间轴 详情
};
return
business
;
});
\ No newline at end of file
public/resource/js/waitBackout.js
View file @
ea26d0a5
...
...
@@ -43,10 +43,7 @@ define(['doT', 'text!temp/wait_backout_template_tpl.html', 'css!style/home.css',
//通过
$
(
document
).
delegate
(
"#confirm_pass"
,
"click"
,
function
()
{
//点击通过
follow
.
confirmPass
();
});
$
(
document
).
delegate
(
".is_pass"
,
"click"
,
function
()
{
//点击通过
follow
.
house_id
=
$
(
this
).
attr
(
"data-id"
);
});
});
// 点击新增分佣提成
$
(
document
).
delegate
(
"#new-commission"
,
"click"
,
function
()
{
//点击分佣提成
follow
.
newCommission
();
...
...
@@ -78,50 +75,6 @@ define(['doT', 'text!temp/wait_backout_template_tpl.html', 'css!style/home.css',
$
(
document
).
delegate
(
"#cashier"
,
"click"
,
function
()
{
//出纳审核
follow
.
Cashier
();
});
//专员审核 总监审核 经理审核 出纳审核
$
(
document
).
on
(
"input"
,
"#cus_fang"
,
function
()
{
//手机号搜索客方2
if
(
$
(
"#cus_fang"
).
val
()
==
''
){
$
(
".user-ul2"
).
html
(
''
);
}
else
{
follow
.
search_phone2
();
}
});
$
(
document
).
delegate
(
".addphone2"
,
"click"
,
function
()
{
//list2消失
follow
.
addphone2
(
this
);
});
},
addphone2
:
function
(
obj
){
var
user_ht
=
$
(
obj
).
html
();
$
(
"#cus_fang"
).
val
(
user_ht
);
$
(
".user-ul2"
).
html
(
''
);
follow
.
agent_id
=
$
(
obj
).
attr
(
"data-id"
);
},
search_phone2
:
function
(){
//手机号
$
.
ajax
({
url
:
'/index/select_by_phone'
,
type
:
'POST'
,
async
:
true
,
data
:
{
"phone"
:
$
(
"#cus_fang"
).
val
()
},
dataType
:
'json'
,
success
:
function
(
data
)
{
if
(
data
.
code
==
200
)
{
var
user_ul2
=
""
;
$
.
each
(
data
.
data
,
function
(
i
,
item
)
{
user_ul2
+=
'<li class="addphone2" data-id="'
+
item
.
id
+
'">'
+
item
.
id
+
'-'
+
item
.
realname
+
'-'
+
item
.
phone
+
'</li>'
;
});
$
(
".user-ul2"
).
html
(
user_ul2
);
}
else
{
alert
(
data
.
msg
);
}
}
});
},
Timeline
:
function
(){
//获取时间轴
$
.
ajax
({
...
...
@@ -252,7 +205,6 @@ define(['doT', 'text!temp/wait_backout_template_tpl.html', 'css!style/home.css',
}
});
},
// 新增分佣提成
newCommission
:
function
(){
//新增分佣提成
$
.
ajax
({
'type'
:
'POST'
,
...
...
@@ -275,7 +227,7 @@ define(['doT', 'text!temp/wait_backout_template_tpl.html', 'css!style/home.css',
});
},
// table切换
// table切换
Information
:
function
(){
$
(
".Tswitch"
).
eq
(
0
).
show
();
$
(
".Tswitch"
).
eq
(
1
).
hide
();
...
...
@@ -311,27 +263,6 @@ define(['doT', 'text!temp/wait_backout_template_tpl.html', 'css!style/home.css',
$
(
"#records"
).
addClass
(
"btn-info"
);
},
Submit_follow
:
function
()
{
//提交
$
.
ajax
({
'type'
:
'POST'
,
'url'
:
'/index/pcEditClient'
,
data
:
{
"id"
:
follow
.
house_id
,
"user_nick"
:
$
(
"#cus_name"
).
val
(),
"user_phone"
:
$
(
"#cus_phone"
).
html
(),
"agent_id"
:
follow
.
agent_id
,
//客方
"sex"
:
$
(
"#sex"
).
val
()
},
dataType
:
"json"
,
success
:
function
(
data
)
{
if
(
data
.
code
==
200
)
{
if
(
data
.
data
)
{
}
}
else
{
}
}
});
},
//专员审核
Commissioner
:
function
(
pageNo
)
{
$
(
"#commissioner"
).
removeClass
(
"btn-default"
);
...
...
public/resource/template/refund_template_tpl.html
View file @
ea26d0a5
...
...
@@ -2,17 +2,15 @@
[
%
if
(
it
)
{
%
]
[
%
for
(
var
item
in
it
){
%
]
<
tr
class
=
"text-center"
>
<
td
>
[
%=
it
[
item
][
'create_time'
]
%
]
<
/td
>
<
td
>
[
%=
it
[
item
][
'internal_address'
]
%
]
<
/td
>
<
td
>
[
%=
it
[
item
][
'internal_title'
]
%
]
<
/td
>
<
td
>
[
%=
it
[
item
][
'agent_name'
]
%
]
<
/td
>
<
td
>
[
%=
it
[
item
][
'report_agent_name'
]
%
]
<
/td
>
<
td
>
[
%=
it
[
item
][
'user_name'
]
%
]
<
/td
>
<
td
>
[
%=
it
[
item
][
'
user_phon
e'
]
%
]
<
/td
>
<
td
>
[
%=
it
[
item
][
'
commission
'
]
%
]
<
/td
>
<
td
>
[
%=
it
[
item
][
'
practical_fee
'
]
%
]
<
/td
>
<
td
>
[
%=
it
[
item
][
'
create_tim
e'
]
%
]
<
/td
>
<
td
>
[
%=
it
[
item
][
'
refund_money
'
]
%
]
<
/td
>
<
td
>
[
%=
it
[
item
][
'
card_no
'
]
%
]
<
/td
>
<
td
>
<
a
class
=
"btn1 btn-success edit"
href
=
"#modal-edit"
data
-
toggle
=
"modal"
data
-
id
=
'[%= it[item]["id"] %]'
>
编辑
<
/a
>
<
a
class
=
"btn1 btn-success edit"
href
=
"#modal-edit"
data
-
toggle
=
"modal"
data
-
id
=
'[%= it[item]["id"] %]'
>
驳回
<
/a
>
<
a
class
=
"btn1 btn-success is_pass"
href
=
"#modal-pass"
data
-
toggle
=
"modal"
data
-
id
=
'[%= it[item]["id"] %]'
>
通过
<
/a
>
<
a
class
=
"btn1 btn-success genjing"
href
=
"#modal-follow"
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
>
<
/td
>
<
/tr
>
...
...
public/resource/template/refundorder_template_tpl.html
View file @
ea26d0a5
...
...
@@ -2,16 +2,13 @@
[
%
if
(
it
)
{
%
]
[
%
for
(
var
item
in
it
){
%
]
<
tr
class
=
"text-center"
>
<
td
>
[
%=
it
[
item
][
'create_time'
]
%
]
<
/td
>
<
td
>
[
%=
it
[
item
][
'internal_address'
]
%
]
<
/td
>
<
td
>
[
%=
it
[
item
][
'internal_title'
]
%
]
<
/td
>
<
td
>
[
%=
it
[
item
][
'agent_name'
]
%
]
<
/td
>
<
td
>
[
%=
it
[
item
][
'report_agent_name'
]
%
]
<
/td
>
<
td
>
[
%=
it
[
item
][
'user_name'
]
%
]
<
/td
>
<
td
>
[
%=
it
[
item
][
'user_phone'
]
%
]
<
/td
>
<
td
>
[
%=
it
[
item
][
'commission'
]
%
]
<
/td
>
<
td
>
<
a
class
=
"btn1 btn-success edit"
href
=
"#modal-edit"
data
-
toggle
=
"modal"
data
-
id
=
'[%= it[item]["id"] %]'
>
编辑
<
/a
>
<
a
class
=
"btn1 btn-success is_pass"
href
=
"#modal-pass"
data
-
toggle
=
"modal"
data
-
id
=
'[%= it[item]["id"] %]'
>
通过
<
/a
>
<
a
class
=
"btn1 btn-success genjing"
href
=
"#modal-follow"
data
-
toggle
=
"modal"
data
-
id
=
'[%= it[item]["id"] %]'
>
跟进
<
/a
>
<
td
>
[
%=
it
[
item
][
'create_time'
]
%
]
<
/td
>
<
td
>
[
%=
it
[
item
][
'refund_money'
]
%
]
<
/td
>
<
td
>
[
%=
it
[
item
][
'card_no'
]
%
]
<
/td
>
<
td
>
<
a
class
=
"btn1 btn-success timeline"
href
=
"#modal-time"
data
-
toggle
=
"modal"
data
-
id
=
'[%= it[item]["id"] %]'
>
时间轴
<
/a
>
<
/td
>
<
/tr
>
...
...
@@ -22,3 +19,4 @@
<
/tr
>
[
%
}
%
]
</script>
\ No newline at end of file
public/resource/template/reportList_template_tpl.html
View file @
ea26d0a5
<script
id=
"reportList_list_tpl"
type=
"text/template"
>
[
%
if
(
it
)
{
%
]
[
%
if
(
it
&&
it
.
length
&&
it
.
length
>
0
)
{
%
]
[
%
for
(
var
item
in
it
){
%
]
<
tr
class
=
"text-center"
>
<
td
>
[
%=
it
[
item
][
'create_time'
]
%
]
<
/td
>
...
...
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