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
060666dc
Commit
060666dc
authored
Jan 17, 2019
by
agping
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
财务日报 删除 编辑
parent
068a32a3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
103 additions
and
19 deletions
+103
-19
daily_details.html
application/index/view/finance/daily_details.html
+33
-0
financial_manager_daily_list.js
public/resource/js/financial_manager_daily_list.js
+55
-19
financial_manager_daily_list_template_tpl.html
...e/template/financial_manager_daily_list_template_tpl.html
+15
-0
No files found.
application/index/view/finance/daily_details.html
View file @
060666dc
...
@@ -279,6 +279,7 @@
...
@@ -279,6 +279,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>
<th
class=
"text-center"
>
支付方式
</th>
<th
class=
"text-center"
>
转账户名
</th>
<th
class=
"text-center"
>
转账户名
</th>
...
@@ -307,6 +308,7 @@
...
@@ -307,6 +308,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>
<th
class=
"text-center"
>
转账户名
</th>
<th
class=
"text-center"
>
业务员
</th>
<th
class=
"text-center"
>
业务员
</th>
...
@@ -879,4 +881,34 @@
...
@@ -879,4 +881,34 @@
<!-- /.modal-content -->
<!-- /.modal-content -->
</div>
</div>
<!-- /.modal -->
<!-- /.modal -->
</div>
<!-- /#删除模态框 -->
<div
class=
"modal fade"
id=
"modal-delete"
tabindex=
"-1"
role=
"dialog"
aria-labelledby=
"myModalLabel"
aria-hidden=
"true"
>
<div
class=
"modal-dialog"
>
<div
class=
"modal-content"
>
<div
class=
"modal-header"
>
<button
type=
"button"
class=
"close"
data-dismiss=
"modal"
aria-hidden=
"true"
>
×
</button>
<h4
class=
"modal-title"
>
删除
</h4>
</div>
<div
class=
"modal-body"
>
<div
class=
"modal-body"
>
<input
type=
"hidden"
value=
""
id=
"delete_id"
/>
确认删除吗?
</div>
</div>
<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"
data-dismiss=
"modal"
>
删除
</button>
</div>
</div>
<!-- /.modal-content -->
</div>
<!-- /.modal -->
</div>
</div>
\ No newline at end of file
public/resource/js/financial_manager_daily_list.js
View file @
060666dc
...
@@ -62,16 +62,6 @@ define(['doT', 'text!temp/financial_manager_daily_list_template_tpl.html', 'css!
...
@@ -62,16 +62,6 @@ define(['doT', 'text!temp/financial_manager_daily_list_template_tpl.html', 'css!
},
},
event
:
function
()
{
event
:
function
()
{
var
_doc
=
$
(
document
);
var
_doc
=
$
(
document
);
//主页面一级审核,二级审核,三级审核tab的点击事件
_doc
.
on
(
'click'
,
'.maintable-top-sub-tr>a'
,
function
(
e
){
e
.
preventDefault
();
e
.
stopPropagation
();
var
_this
=
$
(
this
);
_this
.
removeClass
(
'btn-default'
).
addClass
(
'btn-info'
).
siblings
().
removeClass
(
'btn-info'
).
addClass
(
'btn-default'
);
bargain
.
mainTabIndex
=
_this
.
index
();
console
.
log
(
bargain
.
mainTabIndex
);
bargain
.
getList
(
1
);
});
//店长日报 时间搜索
//店长日报 时间搜索
_doc
.
on
(
'input'
,
'#create_time_start'
,
function
()
{
_doc
.
on
(
'input'
,
'#create_time_start'
,
function
()
{
bargain
.
financialTime
=
$
(
'#create_time_start'
).
val
();
bargain
.
financialTime
=
$
(
'#create_time_start'
).
val
();
...
@@ -81,25 +71,31 @@ define(['doT', 'text!temp/financial_manager_daily_list_template_tpl.html', 'css!
...
@@ -81,25 +71,31 @@ define(['doT', 'text!temp/financial_manager_daily_list_template_tpl.html', 'css!
}
}
bargain
.
getList
(
1
);
bargain
.
getList
(
1
);
});
});
//搜索按钮的事件
_doc
.
on
(
'click'
,
'#maintable_search'
,
function
(
e
)
{
e
.
preventDefault
();
e
.
stopPropagation
();
bargain
.
getList
(
1
);
//一级审核搜索
});
//财务日报审核 点击关闭按钮
//财务日报审核 点击关闭按钮
_doc
.
on
(
'click'
,
'.is-close'
,
function
(
e
)
{
_doc
.
on
(
'click'
,
'.is-close'
,
function
(
e
)
{
e
.
preventDefault
();
e
.
preventDefault
();
e
.
stopPropagation
();
e
.
stopPropagation
();
location
.
href
=
'/index/dailyList'
location
.
href
=
'/index/dailyList'
});
});
//点击删除按钮 获取收款id
_doc
.
on
(
'click'
,
'.del-details'
,
function
(
e
)
{
e
.
preventDefault
();
e
.
stopPropagation
();
bargain
.
recordid
=
$
(
this
).
attr
(
"data-recordid"
);
});
//点击删除 删除详情
_doc
.
on
(
'click'
,
'#confirm_delete'
,
function
(
e
)
{
e
.
preventDefault
();
e
.
stopPropagation
();
bargain
.
delDetail
();;
});
//点击资料 显示图片
//点击资料 显示图片
_doc
.
on
(
'click'
,
'.record-pic'
,
function
(
e
)
{
_doc
.
on
(
'click'
,
'.record-pic'
,
function
(
e
)
{
e
.
preventDefault
();
e
.
preventDefault
();
e
.
stopPropagation
();
e
.
stopPropagation
();
bargain
.
recordid
=
$
(
this
).
attr
(
"data-recordid"
);
bargain
.
recordid
=
$
(
this
).
attr
(
"data-recordid"
);
bargain
.
getPic
();
bargain
.
getPic
();
});
});
//收款详情页面
//收款详情页面
$
(
document
).
on
(
'click'
,
'.add-pic'
,
function
(
e
){
$
(
document
).
on
(
'click'
,
'.add-pic'
,
function
(
e
){
...
@@ -386,7 +382,13 @@ define(['doT', 'text!temp/financial_manager_daily_list_template_tpl.html', 'css!
...
@@ -386,7 +382,13 @@ define(['doT', 'text!temp/financial_manager_daily_list_template_tpl.html', 'css!
$
(
'#maintable_list_f'
).
show
();
$
(
'#maintable_list_f'
).
show
();
}
else
{
}
else
{
$
(
'#maintable_list_f'
).
hide
();
$
(
'#maintable_list_f'
).
hide
();
};
//店长财务日报 已提交 不显示删除按钮 编辑按钮
if
(
bargain
.
isFinancial
*
1
==
0
){
$
(
'.add-pic'
).
hide
();
$
(
'.del-details'
).
hide
();
}
}
}
else
{
//未提交
}
else
{
//未提交
$
(
'.is-submit'
).
show
();
$
(
'.is-submit'
).
show
();
...
@@ -404,6 +406,13 @@ define(['doT', 'text!temp/financial_manager_daily_list_template_tpl.html', 'css!
...
@@ -404,6 +406,13 @@ define(['doT', 'text!temp/financial_manager_daily_list_template_tpl.html', 'css!
$
(
'#pay_h'
).
html
(
data
.
data
.
total_info
.
other_bank
);
$
(
'#pay_h'
).
html
(
data
.
data
.
total_info
.
other_bank
);
$
(
'#pay_i'
).
html
(
''
);
$
(
'#pay_i'
).
html
(
''
);
$
(
'#pay_j'
).
html
(
''
);
$
(
'#pay_j'
).
html
(
''
);
//店长财务日报 未提交 显示删除按钮 编辑按钮
if
(
bargain
.
isFinancial
*
1
==
0
){
$
(
'.add-pic'
).
show
();
$
(
'.del-details'
).
show
();
}
}
}
//入账总计
//入账总计
...
@@ -427,10 +436,17 @@ define(['doT', 'text!temp/financial_manager_daily_list_template_tpl.html', 'css!
...
@@ -427,10 +436,17 @@ define(['doT', 'text!temp/financial_manager_daily_list_template_tpl.html', 'css!
$
(
'.is-submit-pass-btn'
).
hide
();
$
(
'.is-submit-pass-btn'
).
hide
();
$
(
'.is-submit-passed'
).
hide
();
$
(
'.is-submit-passed'
).
hide
();
$
(
'#maintable_list_total'
).
hide
();
$
(
'#maintable_list_total'
).
hide
();
$
(
'.add-pic'
).
hide
();
//财务日报 已审核 不显示编辑按钮
if
(
bargain
.
isFinancial
*
1
==
1
){
$
(
'.add-pic'
).
hide
();
//财务看的 财务日报 已审核 不显示编辑按钮
$
(
'.del-details'
).
hide
();
}
}
else
{
}
else
{
$
(
'.add-pic'
).
show
();
//财务日报 没有审核完 显示编辑按钮
if
(
bargain
.
isFinancial
*
1
==
1
){
$
(
'.add-pic'
).
show
();
//财务看的 财务日报 没有审核完 显示编辑按钮
$
(
'.del-details'
).
show
();
}
if
(
getUrlParam
(
'time'
)){
if
(
getUrlParam
(
'time'
)){
$
(
'.is-submit-pass-btn'
).
show
();
$
(
'.is-submit-pass-btn'
).
show
();
$
(
'.is-submit-passed'
).
show
();
$
(
'.is-submit-passed'
).
show
();
...
@@ -605,6 +621,26 @@ define(['doT', 'text!temp/financial_manager_daily_list_template_tpl.html', 'css!
...
@@ -605,6 +621,26 @@ define(['doT', 'text!temp/financial_manager_daily_list_template_tpl.html', 'css!
}
}
});
});
},
},
//删除详情
delDetail
:
function
()
{
$
.
ajax
({
url
:
'/index/delPayLog'
,
type
:
'POST'
,
async
:
true
,
data
:
{
'pay_id'
:
bargain
.
recordid
},
dataType
:
'json'
,
success
:
function
(
data
)
{
if
(
data
.
code
==
200
)
{
alert
(
'删除成功'
);
bargain
.
getList
();
}
else
{
alert
(
data
.
msg
);
}
}
});
},
//获取收款详情
//获取收款详情
getMoneyDetail
:
function
(
id
){
getMoneyDetail
:
function
(
id
){
var
that
=
bargain
;
var
that
=
bargain
;
...
...
public/resource/template/financial_manager_daily_list_template_tpl.html
View file @
060666dc
...
@@ -10,6 +10,7 @@
...
@@ -10,6 +10,7 @@
<
td
>
[
%=
it
[
item
][
'price'
]
%
]
<
/td
>
<
td
>
[
%=
it
[
item
][
'price'
]
%
]
<
/td
>
<
td
>
[
%=
(
it
[
item
][
'price'
]
*
0.7
).
toFixed
(
2
)
%
]
<
/td
>
<
td
>
[
%=
(
it
[
item
][
'price'
]
*
0.7
).
toFixed
(
2
)
%
]
<
/td
>
<
td
>
[
%=
it
[
item
][
'money'
]
%
]
<
/td
>
<
td
>
[
%=
it
[
item
][
'money'
]
%
]
<
/td
>
<
td
>
[
%=
'之前已收佣'
%
]
<
/td
>
<
td
>
[
%=
(
it
[
item
][
'money'
]
*
1
-
(
it
[
item
][
'price'
]
*
0.7
)).
toFixed
(
2
)
%
]
<
/td
>
<
td
>
[
%=
(
it
[
item
][
'money'
]
*
1
-
(
it
[
item
][
'price'
]
*
0.7
)).
toFixed
(
2
)
%
]
<
/td
>
<
td
>
[
%=
sw
(
it
[
item
][
'pay_type'
])
%
]
<
/td
>
<
td
>
[
%=
sw
(
it
[
item
][
'pay_type'
])
%
]
<
/td
>
<
td
>
[
%
if
(
it
[
item
][
"transfer_name"
]
!=
null
)
{
%
]
[
%=
it
[
item
][
"transfer_name"
]
%
]
[
%
}
%
]
<
/td
>
<
td
>
[
%
if
(
it
[
item
][
"transfer_name"
]
!=
null
)
{
%
]
[
%=
it
[
item
][
"transfer_name"
]
%
]
[
%
}
%
]
<
/td
>
...
@@ -20,6 +21,9 @@
...
@@ -20,6 +21,9 @@
<
td
>
<
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 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 add-pic"
href
=
"#modal-addPic"
data
-
recordid
=
"[%= it[item]['id'] %]"
data
-
toggle
=
"modal"
>
编辑
<
/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
>
[
%
}
%
]
<
/td
>
<
/td
>
<
/tr
>
<
/tr
>
[
%
}
%
]
[
%
}
%
]
...
@@ -39,6 +43,7 @@
...
@@ -39,6 +43,7 @@
<
td
>
[
%=
it
[
item
][
'house_address'
]
%
]
<
/td
>
<
td
>
[
%=
it
[
item
][
'house_address'
]
%
]
<
/td
>
<
td
>
[
%=
it
[
item
][
'price'
]
%
]
<
/td
>
<
td
>
[
%=
it
[
item
][
'price'
]
%
]
<
/td
>
<
td
>
[
%=
it
[
item
][
'money'
]
%
]
<
/td
>
<
td
>
[
%=
it
[
item
][
'money'
]
%
]
<
/td
>
<
td
>
[
%=
'之前已收佣'
%
]
<
/td
>
<
td
>
[
%=
sw
(
it
[
item
][
'pay_type'
])
%
]
<
/td
>
<
td
>
[
%=
sw
(
it
[
item
][
'pay_type'
])
%
]
<
/td
>
<
td
>
[
%
if
(
it
[
item
][
"transfer_name"
]
!=
null
)
{
%
]
[
%=
it
[
item
][
"transfer_name"
]
%
]
[
%
}
%
]
<
/td
>
<
td
>
[
%
if
(
it
[
item
][
"transfer_name"
]
!=
null
)
{
%
]
[
%=
it
[
item
][
"transfer_name"
]
%
]
[
%
}
%
]
<
/td
>
<
td
>
[
%=
it
[
item
][
'agent_name'
]
%
]
<
/td
>
<
td
>
[
%=
it
[
item
][
'agent_name'
]
%
]
<
/td
>
...
@@ -49,6 +54,9 @@
...
@@ -49,6 +54,9 @@
<
td
>
<
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 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 add-pic"
href
=
"#modal-addPic"
data
-
recordid
=
"[%= it[item]['id'] %]"
data
-
toggle
=
"modal"
>
编辑
<
/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
>
[
%
}
%
]
<
/td
>
<
/td
>
<
/tr
>
<
/tr
>
[
%
}
%
]
[
%
}
%
]
...
@@ -76,6 +84,9 @@
...
@@ -76,6 +84,9 @@
<
td
>
<
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 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 add-pic"
href
=
"#modal-addPic"
data
-
recordid
=
"[%= it[item]['id'] %]"
data
-
toggle
=
"modal"
>
编辑
<
/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
>
[
%
}
%
]
<
/td
>
<
/td
>
<
/tr
>
<
/tr
>
[
%
}
%
]
[
%
}
%
]
...
@@ -102,6 +113,10 @@
...
@@ -102,6 +113,10 @@
<
td
>
<
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 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 add-pic"
href
=
"#modal-addPic"
data
-
recordid
=
"[%= it[item]['id'] %]"
data
-
toggle
=
"modal"
>
编辑
<
/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
>
[
%
}
%
]
<
/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