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
da4a8436
Commit
da4a8436
authored
Mar 26, 2019
by
agping
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
财务 日报 优化 调整 退款
parent
dec72b52
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
148 additions
and
9 deletions
+148
-9
financial_manager_daily_list.js
public/resource/js/financial_manager_daily_list.js
+135
-3
videoCheckList.js
public/resource/js/videoCheckList.js
+3
-0
financial_manager_daily_list_template_tpl.html
...e/template/financial_manager_daily_list_template_tpl.html
+10
-6
No files found.
public/resource/js/financial_manager_daily_list.js
View file @
da4a8436
...
...
@@ -387,7 +387,56 @@ define(['doT', 'text!temp/financial_manager_daily_list_template_tpl.html', 'css!
//initMoadalData
that
.
change_show_hide
(
$
(
'#change_type option:selected'
).
text
());
});
//操作----退款
$
(
document
).
on
(
'click'
,
'.money_back'
,
function
(
e
){
var
id
=
e
.
target
.
dataset
.
id
;
var
address
=
e
.
target
.
dataset
.
addr
;
var
comity_time
=
e
.
target
.
dataset
.
comity_tim
;
var
real_money
=
e
.
target
.
dataset
.
real_money
;
var
order_no
=
e
.
target
.
dataset
.
order_no
;
var
order_id
=
e
.
target
.
dataset
.
order_id
;
var
report_id
=
e
.
target
.
dataset
.
report_id
;
var
agent_id
=
e
.
target
.
dataset
.
agent_id
;
var
agent_name
=
e
.
target
.
dataset
.
agent_name
;
var
type
=
e
.
target
.
dataset
.
type
;
that
.
back_id
=
id
;
that
.
back_addr
=
address
;
that
.
back_time
=
comity_time
;
that
.
back_money
=
real_money
;
that
.
back_order_id
=
order_id
;
that
.
back_order_no
=
order_no
;
that
.
back_report_id
=
report_id
;
that
.
back_agent_name
=
agent_name
;
that
.
back_agent_id
=
agent_id
;
$
(
'#back_into_type'
).
text
(
type
);
$
(
'#back_shop_addr'
).
text
(
address
);
if
(
type
==
"意向金"
){
$
(
'.type_baoguan'
).
hide
();
$
(
'.type_zhongjie'
).
hide
();
$
(
'.type_anchang'
).
hide
();
$
(
'.type_yixiang'
).
show
();
}
else
if
(
type
==
"保管金"
){
$
(
'.type_yixiang'
).
hide
();
$
(
'.type_zhongjie'
).
hide
();
$
(
'.type_anchang'
).
hide
();
$
(
'.type_baoguan'
).
show
();
}
else
if
(
type
==
"中介费"
){
$
(
'.type_yixiang'
).
hide
();
$
(
'.type_baoguan'
).
hide
();
$
(
'.type_anchang'
).
hide
();
$
(
'.type_zhongjie'
).
show
();
}
else
if
(
type
==
"案场费"
){
$
(
'.type_yixiang'
).
hide
();
$
(
'.type_baoguan'
).
hide
();
$
(
'.type_zhongjie'
).
hide
();
$
(
'.type_anchang'
).
show
();
}
else
{
}
that
.
getMaxBackPrice
(
id
)
// that.getBack(id);
});
$
(
"#modal-back"
).
on
(
"hide.bs.modal"
,
function
(
event
){
//清空 退款 页面内容
$
(
'#back_type'
).
val
(
''
);
$
(
'#back_price'
).
val
(
''
);
...
...
@@ -693,6 +742,8 @@ define(['doT', 'text!temp/financial_manager_daily_list_template_tpl.html', 'css!
if
(
bargain
.
isFinancial
*
1
==
0
){
$
(
'.add-pic'
).
hide
();
$
(
'.del-details'
).
hide
();
$
(
'.modal-adjust'
).
hide
();
//撤销调整按钮 隐藏
}
...
...
@@ -753,6 +804,7 @@ define(['doT', 'text!temp/financial_manager_daily_list_template_tpl.html', 'css!
if
(
bargain
.
isFinancial
*
1
==
0
){
$
(
'.add-pic'
).
show
();
$
(
'.del-details'
).
show
();
$
(
'.modal-adjust'
).
show
();
}
...
...
@@ -1342,6 +1394,73 @@ define(['doT', 'text!temp/financial_manager_daily_list_template_tpl.html', 'css!
};
return
params
;
},
getBack
:
function
(
id
){
var
that
=
bargain
;
var
params
=
{
'id'
:
id
};
$
.
post
(
''
,
params
,
function
(
data
){
if
(
data
.
code
==
200
)
{
console
.
log
(
data
);
that
.
initBackData
(
data
);
}
else
{
alert
(
data
.
msg
);
}
})
},
initBackData
:
function
(){
var
that
=
bargain
;
$
(
'#back_type'
).
val
(
30
);
$
(
'#back_price'
).
val
(
100
);
$
(
'#back_no'
).
val
(
100
);
$
(
'#back_reason'
).
val
(
100
);
$
(
'#back_into_type'
).
text
(
100
);
$
(
'#back_shop_addr'
).
text
(
100
);
$
(
'#back_price_type'
).
text
(
100
);
$
(
'#back_price_user'
).
val
(
100
);
$
(
'#back_bank'
).
val
(
100
);
$
(
'#back_bank_name'
).
val
(
100
);
$
(
'#back_phone'
).
val
(
100
);
$
(
'#back_others'
).
val
(
100
);
$
(
'#container_body_img_area3'
).
empty
();
},
clearBackData
:
function
(){
var
that
=
bargain
;
$
(
'#back_type'
).
val
(
""
);
$
(
'#back_price'
).
val
(
""
);
$
(
'#back_no'
).
val
(
""
);
$
(
'#back_reason'
).
val
(
""
);
$
(
'#back_into_type'
).
text
(
""
);
$
(
'#back_shop_addr'
).
text
(
""
);
// $('#back_price_type').text("");
$
(
'#back_price_user'
).
val
(
""
);
$
(
'#back_bank'
).
val
(
""
);
$
(
'#back_bank_name'
).
val
(
""
);
$
(
'#back_phone'
).
val
(
""
);
$
(
'#back_others'
).
val
(
""
);
},
saveBack
:
function
(){
var
that
=
bargain
;
var
params
=
that
.
getBackParams
();
if
(
!
params
)
{
return
false
;
}
$
.
post
(
'/index/refundPayLog'
,
params
,
function
(
data
){
if
(
data
.
code
==
200
)
{
$
(
'#modal-back'
).
modal
(
"hide"
)
bargain
.
getList
();
}
else
{
alert
(
data
.
msg
);
}
},
'json'
);
},
//获取调整详情
getAdjustmentDetail
:
function
(
id
){
var
that
=
bargain
;
...
...
@@ -1355,7 +1474,7 @@ define(['doT', 'text!temp/financial_manager_daily_list_template_tpl.html', 'css!
},
//保存调整
saveChange
:
function
(
no
){
var
that
=
receiv
;
var
that
=
bargain
;
if
(
that
.
pay_id
-
0
<
1
){
alert
(
"参数错误!"
);
}
...
...
@@ -1444,6 +1563,9 @@ define(['doT', 'text!temp/financial_manager_daily_list_template_tpl.html', 'css!
$
.
post
(
'/index/collectingBill'
,
params
,
function
(
data
){
if
(
data
.
code
==
200
)
{
$
(
'#modal-linetime'
).
modal
(
'hide'
);
alert
(
data
.
msg
);
bargain
.
getList
();
//调整后的
}
else
{
alert
(
data
.
msg
);
}
...
...
@@ -1451,7 +1573,7 @@ define(['doT', 'text!temp/financial_manager_daily_list_template_tpl.html', 'css!
},
//保存退款
getBackParams
:
function
(){
var
that
=
receiv
;
var
that
=
bargain
;
var
sysans
=
JSON
.
parse
(
decodeURIComponent
(
localStorage
.
getItem
(
'pcUserInfo'
)));
console
.
log
(
sysans
);
var
params
=
{}
;
...
...
@@ -1644,6 +1766,16 @@ define(['doT', 'text!temp/financial_manager_daily_list_template_tpl.html', 'css!
}
})
},
getMaxBackPrice
:
function
(
id
){
var
autgtoken
=
JSON
.
parse
(
decodeURIComponent
(
localStorage
.
getItem
(
'pcUserInfo'
))).
AuthToken
;
$
.
get
(
'/broker/adjustment'
,{
'pay_id'
:
id
,
'AuthToken'
:
autgtoken
},
function
(
data
){
if
(
data
.
code
==
200
)
{
$
(
'#could_price_back'
).
text
(
data
.
data
.
residue_money
);
}
else
{
alert
(
data
.
msg
);
}
})
},
change_show_hide
:
function
(
val
){
if
(
val
==
"意向金"
)
{
$
(
'.choose_topic_1'
).
hide
();
...
...
public/resource/js/videoCheckList.js
View file @
da4a8436
...
...
@@ -176,6 +176,9 @@ define(['doT', 'text!temp/video_check_list_template_tpl.html', 'css!style/home.c
var
params
=
{};
params
.
pageNo
=
house
.
pageNo
;
params
.
pageSize
=
house
.
pageSize
;
params
.
district_id
=
$
(
'#district_id'
).
val
();
//部门
params
.
store_id
=
$
(
'#guest_stores'
).
val
();
//门店
params
.
agent_id
=
house
.
agent_id_phone
?
house
.
agent_id_phone
:
$
(
'#guest_stores_agent'
).
val
();
//下拉搜索 跟进人id
$
.
ajax
({
type
:
'GET'
,
url
:
'/index/houseVideoList'
,
//商铺视频审核
...
...
public/resource/template/financial_manager_daily_list_template_tpl.html
View file @
da4a8436
...
...
@@ -35,10 +35,7 @@
<
a
class
=
"btn1 btn-info record-pic"
href
=
"#modal_financial"
data
-
recordid
=
"[%= it[item]['id'] %]"
data
-
toggle
=
"modal"
>
资料
<
/a
>
<
a
class
=
"btn1 btn-info add-pic"
href
=
"#modal-addPic"
data
-
recordid
=
"[%= it[item]['id'] %]"
data
-
toggle
=
"modal"
>
编辑
<
/a
>
<
a
class
=
"btn1 btn-info money_change"
href
=
"#modal-linetime"
data
-
toggle
=
"modal"
data
-
type
=
'[%= it[item]['
type
'] %]'
data
-
id
=
'[%= it[item]["id"]%]'
data
-
receipt_number
=
'[%= it[item]['
receipt_number
'] %]'
data
-
house_number
=
'[%= it[item]['
house_number
'] %]'
data
-
transfer_name
=
'[%= it[item]['
transfer_name
'] %]'
data
-
order_id
=
'[%= it[item]['
order_id
'] %]'
data
-
type_num
=
'[%= it[item]['
type_num
'] %]'
data
-
income_time
=
'[%= it[item]['
income_time
'] %]'
data
-
pay_type
=
'[%= it[item]['
pay_type_num
'] %]'
>
调整
<
/a
>
<
a
class
=
"btn1 btn-info money_back"
href
=
"#modal-back"
data
-
toggle
=
"modal"
data
-
id
=
'[%= it[item]["id"]%]'
data
-
income_time
=
'[%= it[item]['
income_time
'] %]'
data
-
real_money
=
'[%= it[item]['
real_money
'] %]'
data
-
addr
=
"[%= it[item]['address'] %]"
data
-
report_id
=
'[%= it[item]['
report_id
'] %]'
data
-
order_id
=
'[%= it[item]['
order_id
'] %]'
data
-
order_no
=
'[%= it[item]['
order_no
'] %]'
data
-
agent_id
=
'[%= it[item]['
agent_id
'] %]'
data
-
agent_name
=
'[%= it[item]['
agent_name
'] %]'
data
-
type
=
'[%= it[item]['
type
'] %]'
>
退款
<
/a
>
<
a
class
=
"btn1 btn-info money_back"
href
=
"#modal-back"
data
-
toggle
=
"modal"
data
-
id
=
'[%= it[item]["id"]%]'
data
-
income_time
=
'[%= it[item]['
income_time
'] %]'
data
-
real_money
=
'[%= it[item]['
real_money
'] %]'
data
-
addr
=
"[%= it[item]['house_address'] %]"
data
-
report_id
=
'[%= it[item]['
report_id
'] %]'
data
-
order_id
=
'[%= it[item]['
order_id
'] %]'
data
-
order_no
=
'[%= it[item]['
order_no
'] %]'
data
-
agent_id
=
'[%= it[item]['
agent_id
'] %]'
data
-
agent_name
=
'[%= it[item]['
agent_name
'] %]'
data
-
type
=
'中介费'
>
退款
<
/a
>
[
%
if
(
check_auth
(
'index/delPayLog'
))
{
%
]
...
...
@@ -75,6 +72,7 @@
<
td
>
<
a
class
=
"btn1 btn-info record-pic"
href
=
"#modal_financial"
data
-
recordid
=
"[%= it[item]['id'] %]"
data
-
toggle
=
"modal"
>
资料
<
/a
>
<
a
class
=
"btn1 btn-info add-pic"
href
=
"#modal-addPic"
data
-
recordid
=
"[%= it[item]['id'] %]"
data
-
toggle
=
"modal"
>
编辑
<
/a
>
<
a
class
=
"btn1 btn-info money_back"
href
=
"#modal-back"
data
-
toggle
=
"modal"
data
-
id
=
'[%= it[item]["id"]%]'
data
-
income_time
=
'[%= it[item]['
income_time
'] %]'
data
-
real_money
=
'[%= it[item]['
real_money
'] %]'
data
-
addr
=
"[%= it[item]['address'] %]"
data
-
report_id
=
'[%= it[item]['
report_id
'] %]'
data
-
order_id
=
'[%= it[item]['
order_id
'] %]'
data
-
order_no
=
'[%= it[item]['
order_no
'] %]'
data
-
agent_id
=
'[%= it[item]['
agent_id
'] %]'
data
-
agent_name
=
'[%= it[item]['
agent_name
'] %]'
data
-
type
=
'案场费'
>
退款
<
/a
>
[
%
if
(
check_auth
(
'index/delPayLog'
))
{
%
]
<
a
class
=
"btn1 btn-info del-details"
href
=
"#modal-delete"
data
-
recordid
=
"[%= it[item]['id'] %]"
data
-
toggle
=
"modal"
>
删除
<
/a
>
[
%
}
%
]
...
...
@@ -108,9 +106,10 @@
<
td
>
<
a
class
=
"btn1 btn-info record-pic"
href
=
"#modal_financial"
data
-
recordid
=
"[%= it[item]['id'] %]"
data
-
toggle
=
"modal"
>
资料
<
/a
>
<
a
class
=
"btn1 btn-info add-pic"
href
=
"#modal-addPic"
data
-
recordid
=
"[%= it[item]['id'] %]"
data
-
toggle
=
"modal"
>
编辑
<
/a
>
<
a
class
=
"btn1 btn-info money_change"
href
=
"#modal-linetime"
data
-
toggle
=
"modal"
data
-
type
=
'意向金'
data
-
id
=
'[%= it[item]["id"]%]'
data
-
receipt_number
=
'[%= it[item]['
receipt_number
'] %]'
data
-
house_number
=
'[%= it[item]['
house_number
'] %]'
data
-
transfer_name
=
'[%= it[item]['
transfer_name
'] %]'
data
-
order_id
=
'[%= it[item]['
order_id
'] %]'
data
-
type_num
=
'[%= it[item]['
type_num
'] %]'
data
-
income_time
=
'[%= it[item]['
income_time
'] %]'
data
-
pay_type
=
'[%= it[item]['
pay_type_num
'] %]'
>
调整
<
/a
>
<
a
class
=
"btn1 btn-info money_back"
href
=
"#modal-back"
data
-
toggle
=
"modal"
data
-
id
=
'[%= it[item]["id"]%]'
data
-
income_time
=
'[%= it[item]['
income_time
'] %]'
data
-
real_money
=
'[%= it[item]['
real_money
'] %]'
data
-
addr
=
"[%= it[item]['address'] %]"
data
-
report_id
=
'[%= it[item]['
report_id
'] %]'
data
-
order_id
=
'[%= it[item]['
order_id
'] %]'
data
-
order_no
=
'[%= it[item]['
order_no
'] %]'
data
-
agent_id
=
'[%= it[item]['
agent_id
'] %]'
data
-
agent_name
=
'[%= it[item]['
agent_name
'] %]'
data
-
type
=
'[%= it[item]['
type
'] %]'
>
退款
<
/a
>
<
a
class
=
"btn1 btn-info money_change"
href
=
"#modal-linetime"
data
-
toggle
=
"modal"
data
-
type
=
'意向金'
data
-
id
=
'[%= it[item]["id"]%]'
data
-
receipt_number
=
'[%= it[item]['
receipt_number
'] %]'
data
-
house_number
=
'[%= it[item]['
house_number
'] %]'
data
-
transfer_name
=
'[%= it[item]['
transfer_name
'] %]'
data
-
order_id
=
'[%= it[item]['
order_id
'] %]'
data
-
type_num
=
'[%= it[item]['
type_num
'] %]'
data
-
income_time
=
'[%= it[item]['
income_time
'] %]'
data
-
pay_type
=
'[%= it[item]['
pay_type
'] %]'
>
调整
<
/a
>
<
a
class
=
"btn1 btn-info money_back"
href
=
"#modal-back"
data
-
toggle
=
"modal"
data
-
id
=
'[%= it[item]["id"]%]'
data
-
income_time
=
'[%= it[item]['
income_time
'] %]'
data
-
real_money
=
'[%= it[item]['
real_money
'] %]'
data
-
addr
=
"[%= it[item]['address'] %]"
data
-
report_id
=
'[%= it[item]['
report_id
'] %]'
data
-
order_id
=
'[%= it[item]['
order_id
'] %]'
data
-
order_no
=
'[%= it[item]['
order_no
'] %]'
data
-
agent_id
=
'[%= it[item]['
agent_id
'] %]'
data
-
agent_name
=
'[%= it[item]['
agent_name
'] %]'
data
-
type
=
'意向金'
>
退款
<
/a
>
[
%
if
(
check_auth
(
'index/delPayLog'
))
{
%
]
<
a
class
=
"btn1 btn-info del-details"
href
=
"#modal-delete"
data
-
recordid
=
"[%= it[item]['id'] %]"
data
-
toggle
=
"modal"
>
删除
<
/a
>
[
%
}
%
]
...
...
@@ -144,6 +143,11 @@
<
td
>
<
a
class
=
"btn1 btn-info record-pic"
href
=
"#modal_financial"
data
-
recordid
=
"[%= it[item]['id'] %]"
data
-
toggle
=
"modal"
>
资料
<
/a
>
<
a
class
=
"btn1 btn-info add-pic"
href
=
"#modal-addPic"
data
-
recordid
=
"[%= it[item]['id'] %]"
data
-
toggle
=
"modal"
>
编辑
<
/a>
<
a
class
=
"btn1 btn-info money_change"
href
=
"#modal-linetime"
data
-
toggle
=
"modal"
data
-
type
=
'保管金'
data
-
id
=
'[%= it[item]["id"]%]'
data
-
receipt_number
=
'[%= it[item]['
receipt_number
'] %]'
data
-
house_number
=
'[%= it[item]['
house_number
'] %]'
data
-
transfer_name
=
'[%= it[item]['
transfer_name
'] %]'
data
-
order_id
=
'[%= it[item]['
order_id
'] %]'
data
-
type_num
=
'[%= it[item]['
type_num
'] %]'
data
-
income_time
=
'[%= it[item]['
income_time
'] %]'
data
-
pay_type
=
'[%= it[item]['
pay_type
'] %]'
>
调整
<
/a
>
<
a
class
=
"btn1 btn-info money_back"
href
=
"#modal-back"
data
-
toggle
=
"modal"
data
-
id
=
'[%= it[item]["id"]%]'
data
-
income_time
=
'[%= it[item]['
income_time
'] %]'
data
-
real_money
=
'[%= it[item]['
real_money
'] %]'
data
-
addr
=
"[%= it[item]['address'] %]"
data
-
report_id
=
'[%= it[item]['
report_id
'] %]'
data
-
order_id
=
'[%= it[item]['
order_id
'] %]'
data
-
order_no
=
'[%= it[item]['
order_no
'] %]'
data
-
agent_id
=
'[%= it[item]['
agent_id
'] %]'
data
-
agent_name
=
'[%= it[item]['
agent_name
'] %]'
data
-
type
=
'保管金'
>
退款
<
/a
>
[
%
if
(
check_auth
(
'index/delPayLog'
))
{
%
]
<
a
class
=
"btn1 btn-info del-details"
href
=
"#modal-delete"
data
-
recordid
=
"[%= it[item]['id'] %]"
data
-
toggle
=
"modal"
>
删除
<
/a
>
[
%
}
%
]
...
...
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