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
4ddd7271
Commit
4ddd7271
authored
Dec 14, 2018
by
duxinyuan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
commite
parent
962c72cf
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
299 additions
and
89 deletions
+299
-89
receivables.html
application/index/view/finance/receivables.html
+41
-20
receivables.js
public/resource/js/receivables.js
+238
-59
receivables_template_tpl.html
public/resource/template/receivables_template_tpl.html
+20
-10
No files found.
application/index/view/finance/receivables.html
View file @
4ddd7271
...
@@ -296,7 +296,8 @@
...
@@ -296,7 +296,8 @@
</select>
</select>
<select
class=
"form-control btn2 ld-Marheight"
id=
"come_from"
>
<select
class=
"form-control btn2 ld-Marheight"
id=
"come_from"
>
<option
value=
""
>
来源
</option>
<option
value=
""
>
来源
</option>
<option
value=
"0"
>
提交
</option>
<option
value=
"0"
>
app
</option>
<option
value=
"1"
>
智能pos机
</option>
<option
value=
"1"
>
调整
</option>
<option
value=
"1"
>
调整
</option>
</select>
</select>
<input
class=
"form-control btn2 ld-Marheight"
data-rule-phoneus=
"false"
data-rule-required=
"false"
id=
"order_id"
placeholder=
"订单ID"
type=
"text"
value=
""
>
<input
class=
"form-control btn2 ld-Marheight"
data-rule-phoneus=
"false"
data-rule-required=
"false"
id=
"order_id"
placeholder=
"订单ID"
type=
"text"
value=
""
>
...
@@ -306,22 +307,18 @@
...
@@ -306,22 +307,18 @@
<input
class=
"form-control btn2 ld-Marheight"
data-rule-phoneus=
"false"
data-rule-required=
"false"
id=
"shop_addr"
placeholder=
"商铺地址"
type=
"text"
value=
""
>
<input
class=
"form-control btn2 ld-Marheight"
data-rule-phoneus=
"false"
data-rule-required=
"false"
id=
"shop_addr"
placeholder=
"商铺地址"
type=
"text"
value=
""
>
<select
class=
"form-control btn2 ld-Marheight"
id=
"commit_home"
>
<select
class=
"form-control btn2 ld-Marheight"
id=
"commit_home"
>
<option
value=
""
>
提交人所在部门
</option>
<option
value=
""
>
提交人所在部门
</option>
<option
value=
"0"
>
一部
</option>
<option
value=
"1"
>
二部
</option>
</select>
</select>
<select
class=
"form-control btn2 ld-Marheight"
id=
"commit_shop"
>
<select
class=
"form-control btn2 ld-Marheight"
id=
"commit_shop"
>
<option
value=
""
>
提交人所在门店
</option>
<option
value=
""
>
提交人所在门店
</option>
<option
value=
"0"
>
一店
</option>
<option
value=
"1"
>
二店
</option>
</select>
</select>
<input
class=
"form-control btn2 ld-Marheight"
data-rule-phoneus=
"false"
data-rule-required=
"false"
id=
"comit_name"
placeholder=
"提交人姓名"
type=
"text"
value=
""
>
<input
class=
"form-control btn2 ld-Marheight"
data-rule-phoneus=
"false"
data-rule-required=
"false"
id=
"comit_name"
placeholder=
"提交人姓名"
type=
"text"
value=
""
>
<span
class=
"btn btn-info btn3 ld-Marheight"
id=
"search"
style=
"float:left"
>
搜索
</span>
<span
class=
"btn btn-info btn3 ld-Marheight"
id=
"search"
style=
"float:left"
>
搜索
</span>
<span
class=
"btn btn-info btn3 ld-Marheight"
id=
"reset"
style=
"float:left"
>
重置
</span>
<span
class=
"btn btn-info btn3 ld-Marheight"
id=
"reset"
style=
"float:left"
>
重置
</span>
<!--<span class="money_total_two fore-span ld-Marheight ">实付总额:</span><span id="money_total" class="money_total_two_shifu fore-span ld-Marheight">1268</span>元-->
<!--<span class="money_total_two fore-span ld-Marheight ">实付总额:</span><span id="money_total" class="money_total_two_shifu fore-span ld-Marheight">1268</span>元-->
<
span
class=
"btn btn-info btn3 ld-Marheight"
id=
"export"
style=
"float:left"
>
导出报表
</span
>
<
!--<span class="btn btn-info btn3 ld-Marheight" id="export" style="float:left">导出报表</span>--
>
<span
class=
"btn btn-info btn3 ld-Marheight"
id=
"count"
style=
"float:left"
>
统计
</span>
<span
class=
"btn btn-info btn3 ld-Marheight"
id=
"count"
style=
"float:left"
>
统计
</span>
<span
class=
"money_total_two ld-Marheight "
style=
"float:left"
>
实付总额:
</span><span
style=
"float:left"
id=
"money_total"
class=
"money_total_two_shifu fore-span ld-Marheight"
>
1268
元
</span>
<span
class=
"money_total_two ld-Marheight "
style=
"float:left"
>
实付总额:
</span><span
style=
"float:left"
id=
"money_total"
class=
"money_total_two_shifu fore-span ld-Marheight"
>
0
元
</span>
</form>
</form>
</td>
</td>
</tr>
</tr>
...
@@ -387,55 +384,79 @@
...
@@ -387,55 +384,79 @@
<div
class=
"modal-body modal-body-height"
>
<div
class=
"modal-body modal-body-height"
>
<form
class=
""
>
<form
class=
""
>
<div
class=
"col-xs-12"
>
<div
class=
"col-xs-12"
>
<div
class=
"col-xs-12"
>
<span>
该笔收款可调整/退款金额:
<strong><span
id=
"could_price"
>
1000
</span></strong>
元
</span>
</div>
<div
class=
"col-xs-6"
>
<div
class=
"col-xs-6"
>
<div
class=
"form-group"
>
<div
class=
"form-group"
>
<strong><span
class=
"col-xs-
3 ld-Marheight"
>
商铺ID:
</span></strong>
<strong><span
class=
"col-xs-
4 ld-Marheight"
>
调整后
商铺ID:
</span></strong>
<span
id=
"shop_id_change"
class=
"col-xs-6 ld-Marheight"
>
123456
</span>
<span
id=
"shop_id_change"
class=
"col-xs-6 ld-Marheight"
>
123456
</span>
</div>
</div>
</div>
</div>
<div
class=
"col-xs-6"
>
<div
class=
"col-xs-6"
>
<div
class=
"form-group"
>
<div
class=
"form-group"
>
<strong><span
class=
"col-xs-
3 ld-Marheight"
>
商铺地址:
</span></strong>
<strong><span
class=
"col-xs-
4 ld-Marheight"
>
调整后
商铺地址:
</span></strong>
<span
id=
"shop_addr_change"
class=
"col-xs-6 ld-Marheight"
>
123456
</span>
<span
id=
"shop_addr_change"
class=
"col-xs-6 ld-Marheight"
>
123456
</span>
</div>
</div>
</div>
</div>
<div
class=
"col-xs-6"
>
<div
class=
"col-xs-6"
>
<div
class=
"form-group"
>
<div
class=
"form-group"
>
<strong><span
class=
"col-xs-
3
ld-Marheight"
>
调整为:
</span></strong>
<strong><span
class=
"col-xs-
4
ld-Marheight"
>
调整为:
</span></strong>
<div
class=
"col-xs-6"
>
<div
class=
"col-xs-6"
>
<select
class=
"form-control"
id=
"change_type"
>
<select
class=
"form-control"
id=
"change_type"
>
<option
value=
"0"
>
佣金
</option>
<option
class=
"yixiangjin"
value=
"0"
>
中介费
</option>
<option
value=
"1"
>
意向金
</option>
<option
class=
"yixiangjin"
value=
"1"
>
案场费
</option>
<option
value=
"2"
>
保管金
</option>
<option
class=
"yixiangjin"
value=
"2"
>
意向金
</option>
<option
class=
"baoguanjin"
value=
"0"
>
中介费
</option>
<option
class=
"baoguanjin"
value=
"1"
>
案场费
</option>
<option
class=
"baoguanjin"
value=
"2"
>
保管金
</option>
</select>
</select>
</div>
</div>
</div>
</div>
</div>
</div>
<div
class=
"col-xs-6"
>
<div
class=
"col-xs-6"
>
<div
class=
"form-group"
>
<div
class=
"form-group"
>
<strong><span
class=
"col-xs-
3 ld-Marheight"
>
调整金额
:
</span></strong>
<strong><span
class=
"col-xs-
4 ld-Marheight"
>
调整金额(元)
:
</span></strong>
<div
class=
"col-xs-6"
><input
class=
"form-control"
type=
"text"
value=
"2018"
id=
"change_price"
/></div>
<div
class=
"col-xs-6"
><input
class=
"form-control"
type=
"text"
value=
"2018"
id=
"change_price"
/></div>
<
strong><span
class=
"col-xs-2 ld-Marheight"
>
元
</span></strong
>
<
!--<strong><span class="col-xs-2 ld-Marheight">元</span></strong>--
>
</div>
</div>
</div>
</div>
<div
class=
"col-xs-6"
>
<div
class=
"col-xs-6"
>
<div
class=
"form-group"
>
<div
class=
"form-group"
>
<strong><span
class=
"col-xs-
3
ld-Marheight"
>
成交报告ID:
</span></strong>
<strong><span
class=
"col-xs-
4
ld-Marheight"
>
成交报告ID:
</span></strong>
<div
class=
"col-xs-6"
><input
class=
"form-control"
type=
"text"
value=
"2018"
id=
"report_id_change"
/></div>
<div
class=
"col-xs-6"
><input
class=
"form-control"
type=
"text"
value=
"2018"
id=
"report_id_change"
/></div>
<ul
class=
"reportArea"
></ul>
</div>
</div>
</div>
</div>
<div
class=
"col-xs-6"
>
<div
class=
"col-xs-6"
>
<div
class=
"form-group"
>
<div
class=
"form-group"
>
<strong><span
class=
"col-xs-
3 ld-Marheight"
>
订单
ID:
</span></strong>
<strong><span
class=
"col-xs-
4 ld-Marheight"
>
调整后带看
ID:
</span></strong>
<div
class=
"col-xs-6"
><input
class=
"form-control"
type=
"text"
value=
"2018"
id=
"into_id_change"
/></div>
<div
class=
"col-xs-6"
><input
class=
"form-control"
type=
"text"
value=
"2018"
id=
"into_id_change"
/></div>
</div>
</div>
</div>
</div>
<div
class=
"col-xs-6 choose_topic_1"
>
<div
class=
"form-group"
>
<strong><span
class=
"col-xs-4 ld-Marheight"
>
是否分红:
</span></strong>
<div
class=
"col-xs-6"
>
<select
class=
"form-control "
id=
"change_fenhong"
>
<option
value=
"0"
>
否
</option>
<option
value=
"1"
>
是
</option>
</select>
</div>
</div>
</div>
<div
class=
"col-xs-6 choose_topic_2"
>
<div
class=
"form-group"
>
<strong><span
class=
"col-xs-4 ld-Marheight"
>
最后转定时间:
</span></strong>
<div
class=
"col-xs-6"
><input
class=
"form-control"
type=
"text"
value=
"2018"
id=
"change_time"
/></div>
</div>
</div>
<!--上传图片-->
<!--上传图片-->
<div
class=
"col-xs-12
p-a-0
"
>
<div
class=
"col-xs-12
"
style=
"margin-top:20px;
"
>
<div
class=
"col-xs-12"
>
<div
class=
"col-xs-12"
style=
"padding-left:30px;"
>
<label>
上传资料图片:
</label>
<label>
上传资料图片:
</label>
</div>
</div>
<div
class=
"col-xs-12
p-a-0
"
>
<div
class=
"col-xs-12"
>
<div
class=
"file-upload-area p-a-0 "
>
<div
class=
"file-upload-area p-a-0 "
>
<ul
class=
"img-pre-ul"
id=
"fujian_ul"
></ul>
<ul
class=
"img-pre-ul"
id=
"fujian_ul"
></ul>
<div
class=
"btn-area"
>
<div
class=
"btn-area"
>
...
...
public/resource/js/receivables.js
View file @
4ddd7271
...
@@ -8,6 +8,8 @@ define(['doT', 'text!temp/receivables_template_tpl.html', 'css!style/home.css',
...
@@ -8,6 +8,8 @@ define(['doT', 'text!temp/receivables_template_tpl.html', 'css!style/home.css',
house_id
:
''
,
house_id
:
''
,
house_fatherid
:
''
,
house_fatherid
:
''
,
collection_del_id
:
''
,
collection_del_id
:
''
,
change_max
:
''
,
listData
:
''
,
init
:
function
()
{
init
:
function
()
{
//初始化dot
//初始化dot
$
(
document
.
body
).
append
(
template
);
$
(
document
.
body
).
append
(
template
);
...
@@ -34,6 +36,14 @@ define(['doT', 'text!temp/receivables_template_tpl.html', 'css!style/home.css',
...
@@ -34,6 +36,14 @@ define(['doT', 'text!temp/receivables_template_tpl.html', 'css!style/home.css',
//操作---调整
//操作---调整
$
(
document
).
on
(
'click'
,
'.money_change'
,
function
(
e
){
$
(
document
).
on
(
'click'
,
'.money_change'
,
function
(
e
){
var
id
=
e
.
target
.
dataset
.
id
;
var
id
=
e
.
target
.
dataset
.
id
;
var
type
=
e
.
target
.
dataset
.
type
;
if
(
type
==
"意向金"
){
$
(
'.baoguanjin'
).
hide
();
$
(
'.yixiangjin'
).
show
();
}
else
{
$
(
'.yixiangjin'
).
hide
();
$
(
'.baoguanjin'
).
show
();
}
that
.
changeType
(
id
);
that
.
changeType
(
id
);
console
.
log
(
id
)
console
.
log
(
id
)
});
});
...
@@ -55,6 +65,10 @@ define(['doT', 'text!temp/receivables_template_tpl.html', 'css!style/home.css',
...
@@ -55,6 +65,10 @@ define(['doT', 'text!temp/receivables_template_tpl.html', 'css!style/home.css',
$
(
document
).
on
(
'click'
,
'#export'
,
function
(
e
){
$
(
document
).
on
(
'click'
,
'#export'
,
function
(
e
){
that
.
exportExcel
();
that
.
exportExcel
();
});
});
//统计
$
(
document
).
on
(
'click'
,
'#count'
,
function
(
e
){
that
.
countValue
();
});
//收款详情
//收款详情
$
(
"#modal-addPic"
).
on
(
"shown.bs.modal"
,
function
(
event
){
$
(
"#modal-addPic"
).
on
(
"shown.bs.modal"
,
function
(
event
){
$
(
'#savePayBtn'
).
click
(
function
(){
$
(
'#savePayBtn'
).
click
(
function
(){
...
@@ -63,9 +77,20 @@ define(['doT', 'text!temp/receivables_template_tpl.html', 'css!style/home.css',
...
@@ -63,9 +77,20 @@ define(['doT', 'text!temp/receivables_template_tpl.html', 'css!style/home.css',
});
});
//调整
//调整
$
(
"#modal-linetime"
).
on
(
"shown.bs.modal"
,
function
(
event
){
$
(
"#modal-linetime"
).
on
(
"shown.bs.modal"
,
function
(
event
){
//initMoadalData
that
.
change_show_hide
(
$
(
'#change_type option:selected'
).
text
());
$
(
'#saveChangeBtn'
).
click
(
function
(){
$
(
'#saveChangeBtn'
).
click
(
function
(){
that
.
saveChange
();
that
.
saveChange
();
});
});
$
(
'#change_price'
).
change
(
function
(){
var
price
=
$
(
'#change_price'
).
val
();
if
(
price
>
that
.
change_max
){
$
(
'#change_price'
).
val
(
that
.
change_max
);
}
});
//附件上传处理事件
//附件上传处理事件
$
(
"#file_input"
).
change
(
function
()
{
$
(
"#file_input"
).
change
(
function
()
{
var
_this
=
$
(
this
);
var
_this
=
$
(
this
);
...
@@ -79,15 +104,131 @@ define(['doT', 'text!temp/receivables_template_tpl.html', 'css!style/home.css',
...
@@ -79,15 +104,131 @@ define(['doT', 'text!temp/receivables_template_tpl.html', 'css!style/home.css',
return
false
;
return
false
;
};
};
});
});
$
(
'#change_type'
).
change
(
function
(
e
){
console
.
log
(
$
(
'#change_type option:selected'
).
text
());
var
val
=
$
(
'#change_type option:selected'
).
text
();
that
.
change_show_hide
(
val
);
});
$
(
document
).
delegate
(
".hideLI"
,
"click"
,
function
(
e
)
{
//list消失新增客户 点击li事件 获取id ul消失
//that.addphone(this);
//todo list detail
});
$
(
document
).
on
(
"input"
,
"#report_id_change"
,
function
()
{
//手机号新增搜索客方
var
val
=
$
(
'#report_id_change'
).
val
()
var
data
=
that
.
getReportDataByDetail
(
val
);
if
(
$
(
"#report_id_change"
).
val
()
==
''
)
{
bargain
.
agent_id_phone
=
''
;
$
(
".user-ul"
).
html
(
''
);
var
tag
=
""
;
tag
+=
'<li class="hideLI" data-id="'
+
item
.
id
+
'">'
+
item
.
id
+
'-'
+
item
.
name
+
'-'
+
item
.
phone
+
status
+
'</li>'
;
$
(
'#reportArea'
).
append
(
tag
);
}
else
{
bargain
.
search_phone
();
}
});
});
//图片,附件上传删除键事件
$
(
document
).
on
(
'click'
,
'.delet-pic-btn'
,
function
(
e
)
{
var
_this
=
$
(
this
);
e
.
preventDefault
();
e
.
stopPropagation
();
$
(
this
).
parent
().
parent
().
remove
();
});
});
var
aaa
=
[{
'create_time'
:
'12'
,
'income_time'
:
'13'
,
'report_agent_name'
:
'14'
,
'report_agent_phone'
:
'15'
,
'store_name'
:
'16'
,
'money'
:
'17'
,
//二级联动
'real_money'
:
'18'
,
'type'
:
'19'
,
'pay_type'
:
'10'
,
'internal_address'
:
'21'
,
'house_number'
:
'31'
,
'aaa'
:
'41'
,
'bbb'
:
'51'
,
'id'
:
'61'
},{
that
.
getDistrict
(
function
()
{
'create_time'
:
'12'
,
'income_time'
:
'13'
,
'report_agent_name'
:
'14'
,
'report_agent_phone'
:
'15'
,
'store_name'
:
'16'
,
'money'
:
'17'
,
_doc
.
on
(
'input'
,
'#commit_home'
,
function
()
{
'real_money'
:
'18'
,
'type'
:
'19'
,
'pay_type'
:
'10'
,
'internal_address'
:
'21'
,
'house_number'
:
'31'
,
'aaa'
:
'41'
,
'bbb'
:
'51'
,
'id'
:
'80'
}]
var
_this
=
$
(
this
);
var
temp
=
document
.
getElementById
(
'receivables_template_tpl'
).
innerHTML
;
var
_id
=
$
(
'#commit_home'
).
val
();
var
doTtmpl
=
doT
.
template
(
temp
);
$
(
'#commit_shop'
).
html
(
''
);
//先清空
$
(
"#order_list"
).
html
(
doTtmpl
(
aaa
));
if
(
_id
&&
_id
!=
'0'
)
{
that
.
getDistrictStoreList
(
_id
,
function
(
_data
)
{
var
_str
=
'<option value="0">全部</option>'
;
$
.
each
(
_data
,
function
(
i
,
item
)
{
_str
+=
'<option value="'
+
item
.
id
+
'">'
+
item
.
store_name
+
'</option>'
;
});
$
(
'#commit_shop'
).
append
(
_str
)
});
}
else
{};
});
});
},
getDistrict
:
function
(
fn
)
{
$
.
ajax
({
url
:
'/index/getDistrict'
,
type
:
'GET'
,
async
:
true
,
data
:
{
"pageSize"
:
1000
},
dataType
:
'json'
,
success
:
function
(
data
)
{
if
(
data
.
code
==
200
&&
data
.
data
!=
null
)
{
var
str
=
''
;
$
.
each
(
data
.
data
,
function
(
i
,
item
)
{
str
+=
'<option value="'
+
item
.
id
+
'">'
+
item
.
district_name
+
'</option>'
;
});
$
(
'#commit_home'
).
append
(
str
);
fn
&&
fn
();
}
}
});
},
getDistrictStoreList
:
function
(
id
,
fn
)
{
$
.
ajax
({
url
:
'/index/getDistrictStoreList'
,
type
:
'GET'
,
async
:
true
,
data
:
{
'id'
:
id
,
"pageSize"
:
1000
},
dataType
:
'json'
,
success
:
function
(
data
)
{
if
(
data
.
code
==
200
&&
data
.
data
!=
null
)
{
fn
&&
fn
(
data
.
data
);
}
}
});
},
countValue
:
function
(){
var
that
=
receiv
;
var
data
=
that
.
listData
;
console
.
log
(
data
);
var
value
=
0
;
for
(
var
i
=
0
;
i
<
data
.
length
;
i
++
){
value
=
value
+
(
data
[
i
].
money
-
0
);
}
console
.
log
(
value
);
$
(
'#money_total'
).
text
(
value
+
"元"
);
},
getReportDataByDetail
:
function
(
val
){
$
.
post
(
''
,{
'val'
:
val
},
function
(
data
){
return
data
;
})
},
change_show_hide
:
function
(
val
){
if
(
val
==
"意向金"
)
{
$
(
'.choose_topic_1'
).
hide
();
$
(
'.choose_topic_2'
).
show
();
}
else
if
(
val
==
'保管金'
)
{
$
(
'.choose_topic_1'
).
hide
();
$
(
'.choose_topic_2'
).
show
();
}
else
{
console
.
log
(
"else"
)
$
(
'.choose_topic_2'
).
hide
();
$
(
'.choose_topic_1'
).
show
();
}
},
},
//上传图片
//上传图片
...
@@ -110,8 +251,7 @@ define(['doT', 'text!temp/receivables_template_tpl.html', 'css!style/home.css',
...
@@ -110,8 +251,7 @@ define(['doT', 'text!temp/receivables_template_tpl.html', 'css!style/home.css',
var
tag
=
''
;
var
tag
=
''
;
tag
+=
'<div class="col-xs-3 pictures" id='
+
_data
.
data
.
img_path
+
'>'
;
tag
+=
'<div class="col-xs-3 pictures" id='
+
_data
.
data
.
img_path
+
'>'
;
tag
+=
' <img src="/'
+
_url
+
'" class="" id="" width="90%">'
;
tag
+=
' <img src="/'
+
_url
+
'" class="" id="" width="90%">'
;
tag
+=
' <div style="text-align:center" id="'
+
_data
.
data
.
img_path
+
'"><a href="javascript:;" class="delet-pic-btn">删除</a></div>'
;
// tag += ' <div style="text-align:center" id="'+_data.data.img_path+'"><a href="javascript:;" class="delet-pic-btn">删除</a></div>';
tag
+=
'</div>'
;
tag
+=
'</div>'
;
$
(
'.img_area'
).
append
(
tag
)
$
(
'.img_area'
).
append
(
tag
)
}
else
{
}
else
{
...
@@ -258,34 +398,6 @@ define(['doT', 'text!temp/receivables_template_tpl.html', 'css!style/home.css',
...
@@ -258,34 +398,6 @@ define(['doT', 'text!temp/receivables_template_tpl.html', 'css!style/home.css',
return
params
;
return
params
;
},
},
getValueFunction
:
function
(){
$
(
'#ruzhangId'
).
text
();
//入账ID
$
(
'#dingdanId'
).
text
();
//订单ID
$
(
'#chengjiaobaogaoId'
).
text
();
//成交报告ID
$
(
'#fangyuanId'
).
text
();
//房源ID
$
(
'#tijiaoren'
).
text
();
//提交人
$
(
'#address'
).
text
();
//房源地址
$
(
'#comit_time'
).
text
();
//提交时间
$
(
'#intoType'
).
text
();
//入账类型
$
(
'#shopNo'
).
val
();
//商铺号
$
(
'#intoDate'
).
val
();
//入账日期
$
(
'#salePrice'
).
val
();
//成交价
$
(
'#intoPrice'
).
val
();
//入账金额
$
(
'#shouxu'
).
val
();
//手续费
$
(
'#realPrice'
).
val
();
//实付金额
$
(
'#getPrice'
).
val
();
//应收金额
$
(
'#morePrice'
).
val
();
//多收金额
$
(
'#person'
).
text
();
//业务员
$
(
'#belongT'
).
text
();
//所属门店
$
(
'#payType'
).
val
();
//支付方式
$
(
'#payNo'
).
val
();
//支付户名
$
(
'#running'
).
val
();
//是否开业 1是 0否
$
(
'#fenhong'
).
val
();
//分红
$
(
'#comes'
).
text
();
//来源
$
(
'#status'
).
text
();
//装填
$
(
'#lastTime'
).
val
();
//最后转定时间
},
/**
/**
* 重置查询条件
* 重置查询条件
*/
*/
...
@@ -302,8 +414,8 @@ define(['doT', 'text!temp/receivables_template_tpl.html', 'css!style/home.css',
...
@@ -302,8 +414,8 @@ define(['doT', 'text!temp/receivables_template_tpl.html', 'css!style/home.css',
var
report_id
=
$
(
'#report_id'
).
val
(
""
);
var
report_id
=
$
(
'#report_id'
).
val
(
""
);
var
shop_id
=
$
(
'#shop_id'
).
val
(
""
);
var
shop_id
=
$
(
'#shop_id'
).
val
(
""
);
var
shop_addr
=
$
(
'#shop_addr'
).
val
(
""
);
var
shop_addr
=
$
(
'#shop_addr'
).
val
(
""
);
var
commit_home
=
$
(
'#commit_home'
).
val
(
""
);
var
commit_home
=
$
(
'#commit_home'
).
html
(
'<option value="">提交人所在部门</option>'
);
var
commit_shop
=
$
(
'#commit_shop'
).
val
(
""
);
var
commit_shop
=
$
(
'#commit_shop'
).
html
(
'<option value="">提交人所在门店</option>'
);
var
comit_name
=
$
(
'#comit_name'
).
val
(
""
);
var
comit_name
=
$
(
'#comit_name'
).
val
(
""
);
},
},
...
@@ -312,16 +424,20 @@ define(['doT', 'text!temp/receivables_template_tpl.html', 'css!style/home.css',
...
@@ -312,16 +424,20 @@ define(['doT', 'text!temp/receivables_template_tpl.html', 'css!style/home.css',
*/
*/
exportExcel
:
function
(){
exportExcel
:
function
(){
var
that
=
receiv
;
var
that
=
receiv
;
var
params
=
that
.
buildSearchParams
();
var
params
=
that
.
buildSearchParams
(
true
);
$
.
post
(
''
,
params
,
function
(
data
){
$
.
post
(
''
,
params
,
function
(
data
){
console
.
log
(
data
);
console
.
log
(
data
);
})
})
window
.
open
(
'/index/getCollection?'
+
'excel=1&start_time='
+
params
.
start_time
+
'&end_time='
+
params
.
end_time
+
'&internal_address='
+
params
.
internal_address
+
'&id='
+
params
.
id
+
'&income_start_time='
+
params
.
income_start_time
+
'&income_end_time='
+
params
.
income_end_time
+
'&agent_name='
+
params
.
agent_name
+
'&store_id='
+
params
.
store_id
+
'&district_id='
+
params
.
district_id
+
'&pay_type='
+
params
.
pay_type
+
'&type='
+
params
.
type
);
},
},
/**
/**
* 获取查询参数
* 获取查询参数
*/
*/
buildSearchParams
:
function
(){
buildSearchParams
:
function
(
excel
){
var
commite_time_start
=
$
(
'#comit_time_start'
).
val
();
var
commite_time_start
=
$
(
'#comit_time_start'
).
val
();
var
commite_time_end
=
$
(
'#comit_time_end'
).
val
();
var
commite_time_end
=
$
(
'#comit_time_end'
).
val
();
var
into_time_start
=
$
(
'#into_time_start'
).
val
();
var
into_time_start
=
$
(
'#into_time_start'
).
val
();
...
@@ -338,52 +454,75 @@ define(['doT', 'text!temp/receivables_template_tpl.html', 'css!style/home.css',
...
@@ -338,52 +454,75 @@ define(['doT', 'text!temp/receivables_template_tpl.html', 'css!style/home.css',
var
commit_shop
=
$
(
'#commit_shop'
).
val
();
var
commit_shop
=
$
(
'#commit_shop'
).
val
();
var
comit_name
=
$
(
'#comit_name'
).
val
();
var
comit_name
=
$
(
'#comit_name'
).
val
();
var
params
=
{};
var
params
=
{};
var
paramsStr
=
"?"
;
if
(
commite_time_start
)
{
if
(
commite_time_start
)
{
params
.
commite_time_start
=
commite_time_start
;
params
.
income_start_time
=
commite_time_start
;
paramsStr
+=
"income_start_time="
+
commite_time_start
+
"&"
}
}
if
(
commite_time_end
)
{
if
(
commite_time_end
)
{
params
.
commite_time_end
=
commite_time_end
;
params
.
income_end_time
=
commite_time_end
;
paramsStr
+=
"income_end_time="
+
commite_time_end
+
"&"
}
}
if
(
into_time_start
)
{
if
(
into_time_start
)
{
params
.
into_time_start
=
into_time_start
;
params
.
start_time
=
into_time_start
;
paramsStr
+=
"start_time="
+
into_time_start
+
"&"
}
}
if
(
into_time_end
)
{
if
(
into_time_end
)
{
params
.
into_time_end
=
into_time_end
;
params
.
end_time
=
into_time_end
;
paramsStr
+=
"end_time="
+
into_time_end
+
"&"
}
}
if
(
maintable_deal_type
)
{
if
(
maintable_deal_type
)
{
params
.
maintable_deal_type
=
maintable_deal_type
;
params
.
type
=
maintable_deal_type
;
paramsStr
+=
"type="
+
maintable_deal_type
+
"&"
}
}
if
(
maintable_pay_type
)
{
if
(
maintable_pay_type
)
{
params
.
maintable_pay_type
=
maintable_pay_type
;
params
.
pay_type
=
maintable_pay_type
;
paramsStr
+=
"pay_type="
+
maintable_pay_type
+
"&"
}
}
if
(
come_from
)
{
if
(
come_from
)
{
params
.
come_from
=
come_from
;
params
.
soucre
=
come_from
;
paramsStr
+=
"soucre="
+
come_from
+
"&"
}
}
if
(
order_id
)
{
if
(
order_id
)
{
params
.
order_id
=
order_id
;
params
.
order_id
=
order_id
;
paramsStr
+=
"order_id="
+
order_id
+
"&"
}
}
if
(
get_id
)
{
if
(
get_id
)
{
params
.
get_id
=
get_id
;
params
.
pay_id
=
get_id
;
paramsStr
+=
"pay_id="
+
get_id
+
"&"
}
}
if
(
report_id
)
{
if
(
report_id
)
{
params
.
report_id
=
report_id
;
params
.
bargain_id
=
report_id
;
}
paramsStr
+=
"bargain_id="
+
report_id
+
"&"
if
(
shop_id
)
{
params
.
shop_id
=
shop_id
;
}
}
if
(
shop_addr
)
{
if
(
shop_addr
)
{
params
.
shop_addr
=
shop_addr
;
params
.
internal_address
=
shop_addr
;
paramsStr
+=
"internal_address="
+
shop_addr
+
"&"
}
if
(
shop_id
)
{
params
.
id
=
shop_id
;
paramsStr
+=
"id="
+
shop_id
+
"&"
}
}
if
(
commit_home
)
{
if
(
commit_home
)
{
params
.
commit_home
=
commit_home
;
params
.
district_id
=
commit_home
;
paramsStr
+=
"district_id="
+
commit_home
+
"&"
}
}
if
(
commit_shop
)
{
if
(
commit_shop
)
{
params
.
commit_shop
=
commit_shop
;
params
.
store_id
=
commit_shop
;
paramsStr
+=
"store_id="
+
commit_shop
+
"&"
}
}
if
(
comit_name
)
{
if
(
comit_name
)
{
params
.
comit_name
=
comit_name
;
params
.
agent_name
=
comit_name
;
paramsStr
+=
"agent_name="
+
comit_name
+
"&"
}
if
(
excel
)
{
return
paramsStr
.
substr
(
0
,
paramsStr
.
length
-
1
)
}
else
{
return
params
;
}
}
return
params
;
},
},
/**
/**
...
@@ -392,8 +531,44 @@ define(['doT', 'text!temp/receivables_template_tpl.html', 'css!style/home.css',
...
@@ -392,8 +531,44 @@ define(['doT', 'text!temp/receivables_template_tpl.html', 'css!style/home.css',
*/
*/
getList
:
function
(
no
){
getList
:
function
(
no
){
var
that
=
receiv
;
var
that
=
receiv
;
var
params
=
that
.
buildSearchParams
();
that
.
pageNo
=
no
;
var
params
=
that
.
buildSearchParams
(
false
);
params
.
pageNo
=
that
.
pageNo
;
params
.
pageSize
=
that
.
pageSize
;
console
.
log
(
params
)
;
console
.
log
(
params
)
;
$
.
ajax
({
type
:
'GET'
,
url
:
'/index/getCollection'
,
data
:
params
,
timeout
:
30000
,
dataType
:
'json'
,
beforeSend
:
function
()
{},
success
:
function
(
data
)
{
if
(
typeof
data
===
'object'
)
{
if
(
data
.
code
==
200
)
{
that
.
listData
=
data
.
data
.
list
;
var
doTtmpl
=
doT
.
template
(
document
.
getElementById
(
'receivables_template_tpl'
).
innerHTML
);
$
(
"#order_list"
).
html
(
doTtmpl
(
data
.
data
.
list
));
// $("#money_total").html(data.data.money_total)
/*分页代码*/
add_page
(
data
.
data
.
total
,
no
,
that
.
pageSize
,
that
.
getList
);
}
else
{
alert
(
data
[
'msg'
]);
};
}
else
{
alert
(
'数据错误'
);
};
},
error
:
function
()
{
alert
(
'error'
);
},
complete
:
function
(
xhr
,
textStatus
)
{
if
(
textStatus
===
'timeout'
)
{
alert
(
'请求超时'
);
};
}
});
},
},
/**
/**
* 时间轴
* 时间轴
...
@@ -438,7 +613,11 @@ define(['doT', 'text!temp/receivables_template_tpl.html', 'css!style/home.css',
...
@@ -438,7 +613,11 @@ define(['doT', 'text!temp/receivables_template_tpl.html', 'css!style/home.css',
$
.
post
(
''
,
params
,
function
(
data
){
$
.
post
(
''
,
params
,
function
(
data
){
console
.
log
(
data
);
console
.
log
(
data
);
that
.
getValueFunction
();
that
.
getValueFunction
();
// that.change_max = 10000;
// alert(that.change_max)
},
'json'
)
},
'json'
)
that
.
change_max
=
10000
;
},
},
/**
/**
* 删除收款记录
* 删除收款记录
...
...
public/resource/template/receivables_template_tpl.html
View file @
4ddd7271
...
@@ -3,23 +3,33 @@
...
@@ -3,23 +3,33 @@
[
%
for
(
var
item
in
it
){
%
]
[
%
for
(
var
item
in
it
){
%
]
<
tr
class
=
"text-center"
>
<
tr
class
=
"text-center"
>
<
td
>
[
%=
it
[
item
][
'create_time'
]
%
]
<
/td
>
<
td
>
[
%=
it
[
item
][
'create_time'
]
%
]
<
/td
>
<
td
>
[
%=
it
[
item
][
'id'
]
%
]
<
/td
>
<
td
>
[
%=
it
[
item
][
'order_id'
]
%
]
<
/td
>
<
td
>
[
%=
it
[
item
][
'bargain_id'
]
%
]
<
/td
>
<
td
>
[
%=
it
[
item
][
'income_time'
]
%
]
<
/td
>
<
td
>
[
%=
it
[
item
][
'income_time'
]
%
]
<
/td
>
<
td
>
[
%=
it
[
item
][
'report_agent_name'
]
%
]
-
[
%=
it
[
item
][
'report_agent_phone'
]
%
]
<
/td
>
<
td
>
[
%=
it
[
item
][
''
]
%
]
<
/td
>
<
td
>
[
%=
it
[
item
][
'report_agent_name'
]
%
]
<
/td
>
<
td
>
[
%=
it
[
item
][
'store_name'
]
%
]
<
/td
>
<
td
>
[
%=
it
[
item
][
'store_name'
]
%
]
<
/td
>
<
td
>
[
%=
it
[
item
][
'type'
]
%
]
<
/td
>
<
td
>
[
%=
it
[
item
][
'money'
]
%
]
<
/td
>
<
td
>
[
%=
it
[
item
][
'money'
]
%
]
<
/td
>
<
td
>
[
%=
it
[
item
][
'real_money'
]
%
]
<
/td
>
<
td
>
[
%=
it
[
item
][
'real_money'
]
%
]
<
/td
>
<
td
>
[
%=
it
[
item
][
'type'
]
%
]
<
/td
>
[
%
if
(
it
[
item
][
'soucre'
]
==
0
)
{
%
]
<
td
>
[
%=
it
[
item
][
'pay_type'
]
%
]
<
/td
>
<
td
>
APP
<
/td
>
<
td
>
[
%=
it
[
item
][
'internal_address'
]
%
]
<
/td
>
[
%
}
else
if
(
it
[
item
][
'soucre'
]
==
1
)
{
%
]
<
td
>
[
%=
it
[
item
][
'house_number'
]
%
]
<
/td
>
<
td
>
智能
pos
机
<
/td
>
<
td
>
[
%=
it
[
item
][
'report_agent_phone'
]
%
]
<
/td
>
[
%
}
else
if
(
it
[
item
][
'soucre'
]
==
2
)
{
%
]
<
td
>
[
%=
it
[
item
][
'bbb'
]
%
]
<
/td
>
<
td
>
调整
<
/td
>
<
td
>
[
%=
it
[
item
][
'aaa'
]
%
]
<
/td
>
[
%
}
else
{
%
]
<
td
>--<
/td
>
[
%
}
%
]
<
td
>
[
%=
it
[
item
][
'soucre_id'
]
%
]
<
/td
>
<
td
>
<
td
>
<
a
class
=
"btn1 btn-success timeline"
href
=
"#modal-time"
data
-
toggle
=
"modal"
data
-
id
=
'[%= it[item]["order_id"] %]'
>
时间轴
<
/a
>
<
a
class
=
"btn1 btn-success timeline"
href
=
"#modal-time"
data
-
toggle
=
"modal"
data
-
id
=
'[%= it[item]["order_id"] %]'
>
时间轴
<
/a
>
<
a
class
=
"btn1 btn-success add-pic"
href
=
"#modal-addPic"
data
-
toggle
=
"modal"
data
-
id
=
'[%= it[item]["id"] %]'
>
收款详情
<
/a
>
<
a
class
=
"btn1 btn-success add-pic"
href
=
"#modal-addPic"
data
-
toggle
=
"modal"
data
-
id
=
'[%= it[item]["id"] %]'
>
收款详情
<
/a
>
<
a
class
=
"btn1 btn-success money_change"
href
=
"#modal-linetime"
data
-
toggle
=
"modal"
data
-
id
=
'[%= it[item]["id"]%]'
>
调整
<
/a
>
[
%
if
(
it
[
item
][
'type'
]
==
"意向金"
||
it
[
item
][
'type'
]
==
"保管金"
)
{
%
]
<!--<
a
class
=
"btn1 btn-success money_back"
href
=
"#modal-back"
data
-
toggle
=
"modal"
data
-
id
=
'[%= it[item]["id"]%]'
>
退款
<
/a>--
>
<
a
class
=
"btn1 btn-success money_change"
href
=
"#modal-linetime"
data
-
toggle
=
"modal"
data
-
type
=
'[%= it[item]['
type
'] %]'
data
-
id
=
'[%= it[item]["id"]%]'
>
调整
<
/a
>
[
%
}
%
]
<!--<
a
class
=
"btn1 btn-success money_back"
href
=
"#modal-back"
data
-
toggle
=
"modal"
data
-
id
=
'[%= it[item]["id"]%]'
>
退款
<
/a>--
>
<
a
class
=
"btn1 btn-success list_delete"
href
=
"#modal-delete"
data
-
toggle
=
"modal"
data
-
id
=
'[%= it[item]["id"]%]'
>
删除
<
/a
>
<
a
class
=
"btn1 btn-success list_delete"
href
=
"#modal-delete"
data
-
toggle
=
"modal"
data
-
id
=
'[%= it[item]["id"]%]'
>
删除
<
/a
>
<
/td
>
<
/td
>
<
/tr
>
<
/tr
>
...
...
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