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
85c16925
Commit
85c16925
authored
Feb 18, 2019
by
duxinyuan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改状态详情
parent
076935f4
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
152 additions
and
96 deletions
+152
-96
getCollection.html
application/index/view/finance/getCollection.html
+2
-2
getCollection.js
public/resource/js/getCollection.js
+74
-71
receivables_template_tpl.html
public/resource/template/receivables_template_tpl.html
+76
-23
No files found.
application/index/view/finance/getCollection.html
View file @
85c16925
...
@@ -1074,7 +1074,7 @@
...
@@ -1074,7 +1074,7 @@
<tr>
<tr>
<th
class=
"text-center"
>
提交时间
</th>
<th
class=
"text-center"
>
提交时间
</th>
<th
class=
"text-center"
>
收款ID
</th>
<th
class=
"text-center"
>
收款ID
</th>
<th
class=
"text-center"
>
订单
ID
</th>
<th
class=
"text-center"
>
带看
ID
</th>
<th
class=
"text-center"
>
成交报告ID
</th>
<th
class=
"text-center"
>
成交报告ID
</th>
<th
class=
"text-center"
>
入账日期
</th>
<th
class=
"text-center"
>
入账日期
</th>
<th
class=
"text-center"
>
提交人
</th>
<th
class=
"text-center"
>
提交人
</th>
...
@@ -1118,7 +1118,7 @@
...
@@ -1118,7 +1118,7 @@
<th
class=
"text-center"
>
入账日期
</th>
<th
class=
"text-center"
>
入账日期
</th>
<th
class=
"text-center"
>
退款类型
</th>
<th
class=
"text-center"
>
退款类型
</th>
<th
class=
"text-center"
>
提交人
</th>
<th
class=
"text-center"
>
提交人
</th>
<th
class=
"text-center"
>
提交时间
</th
>
<!-- <th class="text-center">提交时间</th>--
>
<th
class=
"text-center"
>
商铺地址
</th>
<th
class=
"text-center"
>
商铺地址
</th>
</tr>
</tr>
</thead>
</thead>
...
...
public/resource/js/getCollection.js
View file @
85c16925
...
@@ -353,7 +353,7 @@ define(['doT', 'text!temp/receivables_template_tpl.html', 'css!style/home.css',
...
@@ -353,7 +353,7 @@ define(['doT', 'text!temp/receivables_template_tpl.html', 'css!style/home.css',
$
(
document
).
on
(
'click'
,
'.add-status'
,
function
(
e
){
$
(
document
).
on
(
'click'
,
'.add-status'
,
function
(
e
){
var
id
=
e
.
target
.
dataset
.
id
;
var
id
=
e
.
target
.
dataset
.
id
;
// that.deleteId = id ;
// that.deleteId = id ;
that
.
getStatusList
(
1
);
that
.
getStatusList
(
id
);
});
});
//操作----删除
//操作----删除
...
@@ -1622,80 +1622,83 @@ define(['doT', 'text!temp/receivables_template_tpl.html', 'css!style/home.css',
...
@@ -1622,80 +1622,83 @@ define(['doT', 'text!temp/receivables_template_tpl.html', 'css!style/home.css',
* 获取表格数据
* 获取表格数据
* @param {Object} no
* @param {Object} no
*/
*/
getStatusList
:
function
(
no
){
getStatusList
:
function
(
id
){
var
that
=
receiv
;
var
that
=
receiv
;
that
.
pageNo
=
no
;
// that.pageNo = no;
var
params
=
that
.
buildSearchParams
(
false
);
var
params
=
{
params
.
pageNo
=
that
.
pageNo
;
'pay_id'
:
id
params
.
pageSize
=
that
.
pageSize
;
}
var
testDatas
=
[
// params.pageNo = that.pageNo;
{
// params.pageSize = that.pageSize ;
'aaa'
:
000
,
// params.pay_id = id ;
'bbb'
:
111
,
// var testDatas = [
'ccc'
:
222
,
// {
'ddd'
:
333
,
// 'aaa' : 000 ,
'eee'
:
444
,
// 'bbb' : 111,
'fff'
:
555
,
// 'ccc' : 222,
'ggg'
:
666
,
// 'ddd' : 333,
'hhh'
:
777
,
// 'eee' :444,
'iii'
:
888
,
// 'fff' : 555,
'jjj'
:
999
,
// 'ggg' : 666,
'kkk'
:
'---'
,
// 'hhh' : 777 ,
'lll'
:
'kkk'
// 'iii' : 888 ,
},
// 'jjj' : 999 ,
]
// 'kkk' :'---',
// 'lll' : 'kkk'
// },
var
doTtmpl1
=
doT
.
template
(
document
.
getElementById
(
'status_body_1'
).
innerHTML
);
// ]
$
(
"#statusBody1"
).
html
(
doTtmpl1
(
testDatas
));
//
//
var
doTtmpl2
=
doT
.
template
(
document
.
getElementById
(
'status_body_2'
).
innerHTML
);
// var doTtmpl1 = doT.template(document.getElementById('status_body_1').innerHTML);
$
(
"#statusBody2"
).
html
(
doTtmpl2
(
testDatas
));
// $("#statusBody1").html(doTtmpl1(testDatas));
//
var
doTtmpl3
=
doT
.
template
(
document
.
getElementById
(
'status_body_3'
).
innerHTML
);
// var doTtmpl2 = doT.template(document.getElementById('status_body_2').innerHTML);
$
(
"#statusBody3"
).
html
(
doTtmpl3
(
testDatas
));
// $("#statusBody2").html(doTtmpl2(testDatas));
//
// var doTtmpl3 = doT.template(document.getElementById('status_body_3').innerHTML);
// $("#statusBody3").html(doTtmpl3(testDatas));
//
//
$
.
ajax
({
type
:
'GET'
,
url
:
'/index/getPayLogData'
,
data
:
params
,
timeout
:
30000
,
dataType
:
'json'
,
beforeSend
:
function
()
{},
success
:
function
(
data
)
{
if
(
typeof
data
===
'object'
)
{
if
(
data
.
code
==
200
)
{
// that.listData = data.data;
console
.
log
(
"123123123-----------------------------------------"
);
console
.
log
(
data
.
data
.
list
);
var
doTtmpl1
=
doT
.
template
(
document
.
getElementById
(
'status_body_1'
).
innerHTML
);
$
(
"#statusBody1"
).
html
(
doTtmpl1
(
data
.
data
.
pay_log
));
var
doTtmpl2
=
doT
.
template
(
document
.
getElementById
(
'status_body_2'
).
innerHTML
);
$
(
"#statusBody2"
).
html
(
doTtmpl2
(
data
.
data
.
pay_log_adjustment
));
// $.ajax({
var
doTtmpl3
=
doT
.
template
(
document
.
getElementById
(
'status_body_3'
).
innerHTML
);
// type: 'GET',
$
(
"#statusBody3"
).
html
(
doTtmpl3
(
data
.
data
.
pay_log_refund
));
// url: '/index/getCollection',
/*分页代码*/
// data: params,
// add_page(data.data.total, no, that.pageSize, that.getList);
// timeout: 30000,
}
else
{
// dataType: 'json',
alert
(
data
[
'msg'
]);
// beforeSend: function() {},
};
// success: function(data) {
}
else
{
// if(typeof data === 'object') {
alert
(
'数据错误'
);
// if(data.code == 200) {
};
// that.listData = data.data.list;
},
// console.log("123123123-----------------------------------------");
error
:
function
()
{
// console.log(data.data.list);
alert
(
'error'
);
// var doTtmpl1 = doT.template(document.getElementById('status_body_1').innerHTML);
},
// $("#statusBody1").html(doTtmpl1(data.data.list));
complete
:
function
(
xhr
,
textStatus
)
{
//
if
(
textStatus
===
'timeout'
)
{
// var doTtmpl2 = doT.template(document.getElementById('status_body_2').innerHTML);
alert
(
'请求超时'
);
// $("#statusBody2").html(doTtmpl2(data.data.list));
};
//
}
// var doTtmpl3 = doT.template(document.getElementById('status_body_3').innerHTML);
});
// $("#statusBody3").html(doTtmpl3(data.data.list));
// /*分页代码*/
//// 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('请求超时');
// };
// }
// });
},
},
...
...
public/resource/template/receivables_template_tpl.html
View file @
85c16925
...
@@ -74,15 +74,6 @@
...
@@ -74,15 +74,6 @@
</script>
</script>
<script
id=
"status_body_1"
type=
"text/template"
>
<script
id=
"status_body_1"
type=
"text/template"
>
[
%
if
(
it
&&
it
.
length
!=
0
)
{
%
]
[
%
if
(
it
&&
it
.
length
!=
0
)
{
%
]
[
%
for
(
var
item
in
it
){
%
]
[
%
for
(
var
item
in
it
){
%
]
...
@@ -98,7 +89,27 @@
...
@@ -98,7 +89,27 @@
<
td
>
[
%=
it
[
item
][
'type'
]
%
]
<
/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
][
'real_money'
]
%
]
<
/td
>
[
%
if
(
it
[
item
][
'is_refund'
]
==
1
){
%
]
[
%
if
(
it
[
item
][
'source'
]
==
0
)
{
%
]
<
td
>
正常收款
,
被退款
<
/td
>
[
%
}
else
if
(
it
[
item
][
'source'
]
==
1
)
{
%
]
<
td
>
正常收款
,
被退款
<
/td
>
[
%
}
else
if
(
it
[
item
][
'source'
]
==
2
)
{
%
]
<
td
>
被调整收款
(
调整
ID
:[
%=
it
[
item
][
'source_id'
]
%
],
被退款
)
<
/td
>
[
%
}
else
{
%
]
<
td
>
被退款
<
/td
>
[
%
}
%
]
[
%
}
else
{
%
]
[
%
if
(
it
[
item
][
'source'
]
==
0
)
{
%
]
<
td
>
正常收款
<
/td
>
[
%
}
else
if
(
it
[
item
][
'source'
]
==
1
)
{
%
]
<
td
>
正常收款
<
/td
>
[
%
}
else
if
(
it
[
item
][
'source'
]
==
2
)
{
%
]
<
td
>
被调整收款
(
调整
ID
:[
%=
it
[
item
][
'source_id'
]
%
])
<
/td
>
[
%
}
else
{
%
]
<
td
>--<
/td
>
[
%
}
%
]
[
%
}
%
]
<
/tr
>
<
/tr
>
[
%
}
%
]
[
%
}
%
]
[
%
}
else
{
%
]
[
%
}
else
{
%
]
...
@@ -115,14 +126,28 @@
...
@@ -115,14 +126,28 @@
<
td
>
[
%=
it
[
item
][
'create_time'
]
%
]
<
/td
>
<
td
>
[
%=
it
[
item
][
'create_time'
]
%
]
<
/td
>
<
td
>
[
%=
it
[
item
][
'id'
]
%
]
<
/td
>
<
td
>
[
%=
it
[
item
][
'id'
]
%
]
<
/td
>
<
td
>
[
%=
it
[
item
][
'order_id'
]
%
]
<
/td
>
<
td
>
[
%=
it
[
item
][
'order_id'
]
%
]
<
/td
>
<
td
>
[
%=
it
[
item
][
'bargain_id'
]
%
]
<
/td
>
<
td
>
[
%=
it
[
item
][
'paylog_id'
]
%
]
<
/td
>
<
td
>
[
%=
it
[
item
][
'house_id'
]
%
]
<
/td
>
<
td
>
[
%=
it
[
item
][
'address'
]
%
]
<
/td
>
<
td
>
[
%=
it
[
item
][
'money'
]
%
]
<
/td
>
<
td
>
[
%=
it
[
item
][
'income_time'
]
%
]
<
/td
>
<
td
>
[
%=
it
[
item
][
'income_time'
]
%
]
<
/td
>
[
%
if
(
it
[
item
][
'type'
]
==
1
)
{
%
]
<
td
>
意向金转中介费
<
/td
>
[
%
}
else
if
(
it
[
item
][
'type'
]
==
2
)
{
%
]
<
td
>
意向金转案场费
<
/td
>
[
%
}
else
if
(
it
[
item
][
'type'
]
==
3
)
{
%
]
<
td
>
意向金转意向金
<
/td
>
[
%
}
else
if
(
it
[
item
][
'type'
]
==
4
)
{
%
]
<
td
>
保管金转中介费
<
/td
>
[
%
}
else
if
(
it
[
item
][
'type'
]
==
5
)
{
%
]
<
td
>
保管金转案场费
<
/td
>
[
%
}
else
if
(
it
[
item
][
'type'
]
==
7
){
%
]
<
td
>
意向金转保管金
<
/td
>
[
%
}
else
{
%
]
<
td
>
保管金转保管金
<
/td
>
[
%
}
%
]
<
td
>
[
%=
it
[
item
][
'new_paylog_id '
]
%
]
<
/td
>
<
td
>
[
%=
it
[
item
][
'name'
]
%
]
<
/td
>
<
td
>
[
%=
it
[
item
][
'name'
]
%
]
<
/td
>
<
td
>
[
%=
it
[
item
][
'current_agent_name'
]
%
]
<
/td
>
<
td
>
[
%=
it
[
item
][
'store_name'
]
%
]
<
/td
>
<
td
>
[
%=
it
[
item
][
'type'
]
%
]
<
/td
>
<
td
>
[
%=
it
[
item
][
'money'
]
%
]
<
/td
>
<
td
>
[
%=
it
[
item
][
'real_money'
]
%
]
<
/td
>
<
/tr
>
<
/tr
>
[
%
}
%
]
[
%
}
%
]
[
%
}
else
{
%
]
[
%
}
else
{
%
]
...
@@ -138,15 +163,43 @@
...
@@ -138,15 +163,43 @@
<
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
][
'id'
]
%
]
<
/td
>
[
%
if
(
it
[
item
][
'status'
]
==
0
)
{
%
]
<
td
>
审核中
<
/td
>
[
%
}
else
if
(
it
[
item
][
'status'
]
==
1
)
{
%
]
<
td
>
审核中
<
/td
>
[
%
}
else
if
(
it
[
item
][
'status'
]
==
2
)
{
%
]
<
td
>
退款成功
<
/td
>
[
%
}
else
if
(
it
[
item
][
'status'
]
==
3
)
{
%
]
<
td
>
已审核
<
/td
>
[
%
}
else
if
(
it
[
item
][
'status'
]
==
4
)
{
%
]
<
td
>
驳回
<
/td
>
[
%
}
else
{
%
]
<
td
>--<
/td
>
[
%
}
%
]
<
td
>
[
%=
it
[
item
][
'order_id'
]
%
]
<
/td
>
<
td
>
[
%=
it
[
item
][
'order_id'
]
%
]
<
/td
>
<
td
>
[
%=
it
[
item
][
'bargain_id'
]
%
]
<
/td
>
<
td
>
[
%=
it
[
item
][
'pay_log_id'
]
%
]
<
/td
>
<
td
>
[
%=
it
[
item
][
'refund_money'
]
%
]
<
/td
>
<
td
>
[
%=
it
[
item
][
'income_time'
]
%
]
<
/td
>
<
td
>
[
%=
it
[
item
][
'income_time'
]
%
]
<
/td
>
<
td
>
[
%=
it
[
item
][
'name'
]
%
]
<
/td
>
<!--<
td
>
[
%=
it
[
item
][
'type'
]
%
]
<
/td>--
>
<
td
>
[
%=
it
[
item
][
'current_agent_name'
]
%
]
<
/td
>
[
%
if
(
it
[
item
][
'type'
]
==
1
)
{
%
]
<
td
>
[
%=
it
[
item
][
'store_name'
]
%
]
<
/td
>
<
td
>
意向金转定
<
/td
>
<
td
>
[
%=
it
[
item
][
'type'
]
%
]
<
/td
>
[
%
}
else
if
(
it
[
item
][
'type'
]
==
2
)
{
%
]
<
td
>
[
%=
it
[
item
][
'money'
]
%
]
<
/td
>
<
td
>
退保管金
<
/td
>
<
td
>
[
%=
it
[
item
][
'real_money'
]
%
]
<
/td
>
[
%
}
else
if
(
it
[
item
][
'type'
]
==
3
)
{
%
]
<
td
>
保管金转定
<
/td
>
[
%
}
else
if
(
it
[
item
][
'type'
]
==
4
)
{
%
]
<
td
>
退中介费
<
/td
>
[
%
}
else
if
(
it
[
item
][
'type'
]
==
5
)
{
%
]
<
td
>
退案场费
<
/td
>
[
%
}
else
if
(
it
[
item
][
'type'
]
==
0
)
{
%
]
<
td
>
退意向金
<
/td
>
[
%
}
else
{
%
]
<
td
>--<
/td
>
[
%
}
%
]
<
td
>
[
%=
it
[
item
][
'agent_name'
]
%
]
<
/td
>
<!--<
td
>
[
%=
it
[
item
][
'store_name'
]
%
]
<
/td>--
>
<!--<
td
>
[
%=
it
[
item
][
'house_id'
]
%
]
<
/td>--
>
<
td
>
[
%=
it
[
item
][
'address'
]
%
]
<
/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