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
e51ea860
Commit
e51ea860
authored
Dec 25, 2018
by
agping
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
财务加编辑
parent
78d18e85
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
695 additions
and
25 deletions
+695
-25
daily_details.html
application/index/view/finance/daily_details.html
+352
-22
financial_manager_daily_list.js
public/resource/js/financial_manager_daily_list.js
+338
-0
marchinList.js
public/resource/js/marchinList.js
+1
-0
financial_manager_daily_list_template_tpl.html
...e/template/financial_manager_daily_list_template_tpl.html
+4
-3
No files found.
application/index/view/finance/daily_details.html
View file @
e51ea860
...
...
@@ -89,14 +89,6 @@
position
:
relative
;
overflow
:
hidden
;
}
#file_input
{
opacity
:
0
;
position
:
absolute
;
top
:
0
;
left
:
145px
;
height
:
35px
;
width
:
80px
;
}
.modal-body-width
{
width
:
800px
;
}
...
...
@@ -104,11 +96,9 @@
color
:
red
;
cursor
:
pointer
;
}
.black-list-text
{
width
:
500px
;
height
:
100px
;
vertical-align
:
top
;
margin-bottom
:
20px
;
.span-del2-du
,
.span-del-du
{
color
:
red
;
cursor
:
pointer
;
}
/*图片*/
...
...
@@ -186,6 +176,77 @@
.tip-con
{
margin-top
:
5px
;
}
/*收款详情*/
#container_body_img_area_du
>
div
{
float
:
left
;
width
:
216px
;
}
.modal-body-width-du
{
width
:
1200px
;
}
.col-xs-12
{
overflow
:
hidden
;
}
.p-a-0
{
padding
:
0px
;
}
.p-l-15
{
padding-left
:
15px
!important
;
}
.p-t-10
{
padding-top
:
10px
!important
;
}
.no-border
{
border
:
none
;
}
#preview
img
{
height
:
300px
!important
;
width
:
500px
!important
;
}
#preview
{
height
:
300px
!important
;
width
:
500px
!important
;
}
.active
{
color
:
dodgerblue
;
}
#file_input_pic
{
opacity
:
0
;
position
:
absolute
;
top
:
0
;
left
:
145px
;
height
:
35px
;
width
:
80px
;
}
.hide
{
display
:
none
!important
;
}
.result-du
{
width
:
130px
;
height
:
auto
;
float
:
left
;
text-align
:
center
;
color
:
red
;
}
.result-du
>
img
,
.result2-du
>
img
{
width
:
120px
;
height
:
120px
;
margin-top
:
8px
;
}
#container_body_du
{
position
:
relative
;
overflow
:
hidden
;
}
.tit_con
{
cursor
:
pointer
;
}
.form-group
{
margin
:
10px
;
}
</style>
<div
id=
"page-content-wrapper"
>
<div
class=
"container"
>
...
...
@@ -222,7 +283,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>
</tr>
</thead>
<tbody
class=
"text-center"
id=
"maintable_list_a"
>
...
...
@@ -250,7 +311,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>
</tr>
</thead>
<tbody
class=
"text-center"
id=
"maintable_list_b"
>
...
...
@@ -276,7 +337,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>
</tr>
</thead>
<tbody
class=
"text-center"
id=
"maintable_list_c"
>
...
...
@@ -301,7 +362,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>
</tr>
</thead>
<tbody
class=
"text-center"
id=
"maintable_list_d"
>
...
...
@@ -502,14 +563,9 @@
<div
class=
"form-group full-width-100 full-pic-area"
>
<!--input上传图片-->
<div
id=
"container_body"
>
<!--<label> 简历等文件(选填:图片格式):</label>-->
<!--<button type="button btn2" class="btn btn-default">上传图片</button>-->
<!--<input type="file" id="file_input"/>-->
<div
id=
"container_body_img_area"
></div>
</div>
</div>
<!--<ul class="img-pre-ul" id="xiangqing_pic_ul">
</ul>-->
</li>
</ul>
...
...
@@ -550,3 +606,276 @@
</div>
<!-- /.modal -->
</div>
<!-- 收款详情 -->
<div
class=
"modal fade"
id=
"modal-addPic"
tabindex=
"-1"
role=
"dialog"
aria-labelledby=
"myModalLabel"
aria-hidden=
"true"
>
<div
class=
"modal-dialog modal-body-width-du"
>
<div
class=
"modal-content"
>
<div
class=
"modal-header"
>
<button
type=
"button"
class=
"close"
data-dismiss=
"modal"
aria-hidden=
"true"
>
×
</button>
<h4
class=
"modal-title tit_con active shoukuanxiangqing"
style=
"width:auto!important;float:left"
>
收款详情
</h4>
<h4
class=
"modal-title tit_con"
style=
"width:auto!important;float:left;margin-left:20px;"
>
收款图片
</h4>
</div>
<div
class=
"modal-body modal-body-height pic-con1"
style=
"height: 528px;"
>
<ul
class=
"list-group "
>
<li
class=
"list-group-item"
>
<div
class=
"form-group full-width-100 full-pic-area"
>
<!--input上传图片-->
<div
id=
"container_body_du"
>
<label>
请选择一个图像文件:
</label>
<button
type=
"button btn2"
class=
"btn btn-default"
>
上传图片
</button>
<input
type=
"file"
id=
"file_input_pic"
/>
<div
id=
"container_body_img_area_du"
></div>
</div>
</div>
<ul
class=
"img-pre-ul"
id=
"xiangqing_pic_ul"
>
</ul>
</li>
</ul>
</div>
<div
class=
"modal-footer pic-con1"
>
<button
type=
"button btn2"
class=
"btn btn-primary"
id=
"saveBtn"
data-dismiss=
"modal"
>
保存
</button>
</div>
<div
class=
"modal-body modal-body-height pic-con2"
style=
"height: 528px;"
>
<form
class=
""
>
<div
class=
"col-xs-12"
>
<div
class=
"col-xs-3"
>
<div
class=
"form-group"
>
<strong><span>
入账ID:
</span></strong>
<span
id=
"ruzhangId"
>
45122
</span>
</div>
</div>
<div
class=
"col-xs-3"
>
<div
class=
"form-group"
>
<strong><span>
带看ID:
</span></strong>
<span
id=
"dingdanId"
>
45122
</span>
</div>
</div>
<div
class=
"col-xs-3"
>
<div
class=
"form-group"
>
<strong><span>
成交报告ID:
</span></strong>
<span
id=
"chengjiaobaogaoId"
>
45122
</span>
</div>
</div>
<div
class=
"col-xs-3"
>
<div
class=
"form-group"
>
<strong><span>
房源ID:
</span></strong>
<span
id=
"fangyuanId"
>
45122
</span>
</div>
</div>
</div>
<div
class=
"col-xs-12"
>
<div
class=
"col-xs-6"
>
<div
class=
"form-group"
>
<strong><span
class=
"col-xs-3 ld-Marheight"
>
提交人:
</span></strong>
<span
id=
"tijiaoren"
class=
"col-xs-6 ld-Marheight"
>
forgina
</span>
</div>
</div>
<div
class=
"col-xs-6"
>
<div
class=
"form-group"
>
<strong><span
class=
"col-xs-3 ld-Marheight"
>
房源地址:
</span></strong>
<span
id=
"address"
class=
"col-xs-6 ld-Marheight"
>
上海市南京东路123号
</span>
</div>
</div>
</div>
<div
class=
"col-xs-12"
>
<div
class=
"col-xs-6"
>
<div
class=
"form-group"
>
<strong><span
class=
"col-xs-3 ld-Marheight"
>
提交时间:
</span></strong>
<span
id=
"comit_time"
class=
"col-xs-6 ld-Marheight"
></span>
</div>
</div>
<div
class=
"col-xs-6"
>
<div
class=
"form-group"
>
<strong><span
class=
"col-xs-3 ld-Marheight"
>
入账类型:
</span></strong>
<span
id=
"intoType"
class=
"col-xs-6 ld-Marheight"
>
中介费
</span>
</div>
</div>
<div
class=
"col-xs-6"
>
<div
class=
"form-group"
>
<strong><span
class=
"col-xs-3 ld-Marheight"
>
商铺号:
</span></strong>
<!--<input class="form-control" type="text" value="2018" id="shopNo" />-->
<span
id=
"shopNo"
class=
"col-xs-6 ld-Marheight"
></span>
</div>
</div>
<div
class=
"col-xs-6"
>
<div
class=
"form-group"
>
<strong><span
class=
"col-xs-3 ld-Marheight"
>
成交价:
</span></strong>
<!--<input class="form-control" type="text" value="2018" id="salePrice" />-->
<span
id=
"salePrice"
class=
"col-xs-6 ld-Marheight"
></span>
<!--<strong><span class="col-xs-2 ld-Marheight">元</span></strong>-->
</div>
</div>
<div
class=
"col-xs-6"
>
<div
class=
"form-group"
>
<strong><span
class=
"col-xs-3 ld-Marheight"
>
入账日期:
</span></strong>
<div
class=
"col-xs-6"
>
<input
class=
"form-control"
type=
"text"
value=
""
id=
"intoDate"
onClick=
"WdatePicker({el:this,dateFmt:'yyyy-MM-dd',maxDate:'%y-%M-%d',readOnly:true})"
/>
</div>
</div>
</div>
<div
class=
"col-xs-6"
>
<div
class=
"form-group"
>
<strong><span
class=
"col-xs-3 ld-Marheight"
>
入账金额:
</span></strong>
<div
class=
"col-xs-6"
><input
class=
"form-control"
type=
"text"
value=
""
id=
"intoPrice"
/></div>
<strong><span
class=
"col-xs-2 ld-Marheight"
>
元
</span></strong>
</div>
</div>
<div
class=
"col-xs-6"
>
<div
class=
"form-group"
>
<strong><span
class=
"col-xs-3 ld-Marheight"
>
手续费:
</span></strong>
<div
class=
"col-xs-6"
><input
class=
"form-control"
type=
"text"
value=
""
id=
"shouxu"
/></div>
<strong><span
class=
"col-xs-2 ld-Marheight"
>
元
</span></strong>
</div>
</div>
<div
class=
"col-xs-6"
>
<div
class=
"form-group"
>
<strong><span
class=
"col-xs-3 ld-Marheight"
>
实付金额:
</span></strong>
<div
class=
"col-xs-6"
><input
class=
"form-control"
type=
"text"
value=
""
id=
"realPrice"
/></div>
<strong><span
class=
"col-xs-2 ld-Marheight"
>
元
</span></strong>
</div>
</div>
<div
class=
"col-xs-6 zjcon"
>
<div
class=
"form-group"
>
<strong><span
class=
"col-xs-3 ld-Marheight"
>
应收金额:
</span></strong>
<!--<div class="col-xs-6"><input class="form-control" type="text" value="" id="getPrice" /></div>-->
<span
id=
"getPrice"
class=
" col-xs-6 ld-Marheight"
></span>
<!--<strong><span class="col-xs-2 ld-Marheight">元</span></strong>-->
</div>
</div>
<div
class=
"col-xs-6 zjcon"
>
<div
class=
"form-group"
>
<strong><span
class=
"col-xs-3 ld-Marheight"
>
多收金额:
</span></strong>
<!--<div class="col-xs-6"><input class="form-control" type="text" value="" id="morePrice" /></div>-->
<span
id=
"morePrice"
class=
" col-xs-6 ld-Marheight"
></span>
<!--<strong><span class="col-xs-2 ld-Marheight">元</span></strong>-->
</div>
</div>
</div>
<div
class=
"col-xs-12"
>
<div
class=
"col-xs-6"
>
<div
class=
"form-group"
>
<strong><span
class=
"col-xs-3 ld-Marheight"
>
对应业务员:
</span></strong>
<span
id=
"person"
class=
"col-xs-6 ld-Marheight"
></span>
</div>
</div>
<div
class=
"col-xs-6"
>
<div
class=
"form-group"
>
<strong><span
class=
"col-xs-3 ld-Marheight"
>
所属门店:
</span></strong>
<span
id=
"belongT"
class=
" col-xs-6 ld-Marheight"
></span>
</div>
</div>
</div>
<div
class=
"col-xs-12"
>
<div
class=
"col-xs-6 zhzd"
>
<div
class=
"form-group"
>
<strong><span
class=
"col-xs-3 ld-Marheight"
>
最后转定时间:
</span></strong>
<div
class=
"col-xs-6"
>
<input
class=
"form-control"
type=
"text"
value=
""
id=
"lastTime"
onClick=
"WdatePicker({el:this,dateFmt:'yyyy-MM-dd',maxDate:'%y-%M-%d',readOnly:true})"
/>
</div>
</div>
</div>
<div
class=
"col-xs-6 shout"
>
<div
class=
"form-group"
>
<strong><span
class=
"col-xs-3 ld-Marheight"
>
收条编号:
</span></strong>
<div
class=
"col-xs-6"
>
<input
class=
"form-control"
type=
"text"
value=
""
id=
"shoutiao"
/>
</div>
</div>
</div>
</div>
<div
class=
"col-xs-12"
>
<div
class=
"col-xs-6"
>
<div
class=
"form-group"
>
<strong><span
class=
"col-xs-3 ld-Marheight"
>
支付方式:
</span></strong>
<div
class=
"col-xs-6"
>
<select
class=
"form-control"
id=
"payType"
>
<option
value=
"10"
>
施总支付宝
</option>
<option
value=
"11"
>
林老师支付宝
</option>
<option
value=
"20"
>
施总微信
</option>
<option
value=
"21"
>
林老师微信
</option>
<option
value=
"30"
>
pos机器
</option>
<option
value=
"40"
>
地产转账
</option>
<option
value=
"41"
>
世家公账
</option>
<option
value=
"42"
>
3000账号
</option>
<option
value=
"50"
>
现金
</option>
<option
value=
"60"
>
其他
</option>
</select>
</div>
</div>
</div>
<div
class=
"col-xs-6"
>
<div
class=
"form-group"
>
<strong><span
class=
"col-xs-3 ld-Marheight"
>
转账户名:
</span></strong>
<div
class=
"col-xs-6"
><input
class=
"form-control"
type=
"text"
value=
""
id=
"payNo"
/></div>
</div>
</div>
<div
class=
"col-xs-6"
>
<div
class=
"form-group"
>
<strong><span
class=
"col-xs-3 ld-Marheight"
>
业态/品牌:
</span></strong>
<span
id=
"pinpai"
class=
"col-xs-6 ld-Marheight"
></span>
</div>
</div>
</div>
<div
class=
"col-xs-12"
>
<div
class=
"col-xs-6 ky"
>
<div
class=
"form-group"
>
<strong><span
class=
"col-xs-3 ld-Marheight"
>
是否开业:
</span></strong>
<!--<div class="col-xs-6">-->
<span
id=
"running"
class=
"col-xs-6 ld-Marheight"
></span>
<!--<select class="form-control" id="running">
<option value="0">是</option>
<option value="1">否</option>
</select>-->
<!--</div>-->
</div>
</div>
<div
class=
"col-xs-6 xqac"
>
<div
class=
"form-group"
>
<strong><span
class=
"col-xs-3 ld-Marheight"
>
是否分红:
</span></strong>
<div
class=
"col-xs-6"
>
<select
class=
"form-control"
id=
"fenhong"
>
<option
value=
""
>
请选择
</option>
<option
value=
"0"
>
是
</option>
<option
value=
"1"
>
否
</option>
</select>
</div>
</div>
</div>
</div>
<div
class=
"col-xs-12"
>
<div
class=
"col-xs-6"
>
<div
class=
"form-group"
>
<strong><span
class=
"col-xs-3 ld-Marheight"
>
来源:
</span></strong>
<span
id=
"comes"
class=
"col-xs-6 ld-Marheight"
></span>
</div>
</div>
<div
class=
"col-xs-6"
>
<div
class=
"form-group"
>
<strong><span
class=
"col-xs-3 ld-Marheight"
>
状态:
</span></strong>
<span
id=
"status"
class=
" col-xs-6 ld-Marheight"
>
正常
</span>
</div>
</div>
</div>
</form>
</div>
<div
class=
"modal-footer pic-con2"
>
<button
type=
"button btn2"
class=
"btn btn-primary"
id=
"savePayBtn"
data-dismiss=
"modal"
>
保存
</button>
</div>
</div>
<!-- /.modal-content -->
</div>
<!-- /.modal -->
</div>
\ No newline at end of file
public/resource/js/financial_manager_daily_list.js
View file @
e51ea860
...
...
@@ -16,6 +16,9 @@ define(['doT', 'text!temp/financial_manager_daily_list_template_tpl.html', 'css!
operationStatus
:
0
,
daily_id
:
0
,
//日报id
store_id
:
''
,
//日报id
house_fatherid
:
''
,
//收款id
house_id
:
''
,
init
:
function
()
{
//初始化时间
var
myDate
=
new
Date
();
...
...
@@ -90,7 +93,147 @@ define(['doT', 'text!temp/financial_manager_daily_list_template_tpl.html', 'css!
bargain
.
getPic
();
});
//收款详情页面
$
(
document
).
on
(
'click'
,
'.add-pic'
,
function
(
e
){
// 初始化界面
$
(
'.pic-con2'
).
show
();
$
(
'.pic-con1'
).
hide
();
var
id
=
$
(
this
).
attr
(
"data-recordid"
);
//获取收款详情单条数据
bargain
.
getMoneyDetail
(
id
);
bargain
.
house_fatherid
=
id
;
//获取图片
bargain
.
getaddPicList
(
id
);
});
//收款图片 和 收款详情切换
$
(
'.tit_con'
).
unbind
(
'click'
).
bind
(
'click'
,
function
(
e
){
$
(
this
).
parent
(
'div'
).
find
(
'h4.active'
).
removeClass
(
"active"
);
$
(
this
).
addClass
(
"active"
);
if
(
e
.
currentTarget
.
innerHTML
==
"收款图片"
){
$
(
'.pic-con1'
).
show
();
$
(
'.pic-con2'
).
hide
();
}
else
{
$
(
'.pic-con2'
).
show
();
$
(
'.pic-con1'
).
hide
();
}
});
//图片上传相关
$
(
'#file_input_pic'
).
on
(
'change'
,
function
(){
var
_this
=
$
(
this
);
var
formData
=
new
FormData
();
formData
.
append
(
'type'
,
'chat'
);
formData
.
append
(
'image'
,
_this
[
0
].
files
[
0
]);
$
.
ajax
({
type
:
'post'
,
url
:
'/index/uploadImg'
,
data
:
formData
,
dataType
:
'json'
,
contentType
:
false
,
cache
:
false
,
processData
:
false
,
beforeSend
:
function
()
{},
success
:
function
(
_data
)
{
if
(
_data
.
code
==
200
)
{
console
.
log
(
5555
)
$
(
'#container_body_img_area_du'
).
append
(
'<div class="result-du"><img data-imgname="{0}" src="{1}" alt=""/> <span class="span-del-du">删除</span></div>'
.
stringFormatObj
({
'0'
:
_data
.
data
.
img_path
,
'1'
:
_data
.
data
.
internet_img_name
?
urlDeal
(
_data
.
data
.
internet_img_name
):
_data
.
data
.
internet_img_name
}));
}
else
{
alert
(
_data
.
msg
);
};
},
error
:
function
()
{
alert
(
'enter error'
);
},
complete
:
function
(
xhr
,
textStatus
)
{
if
(
textStatus
===
'timeout'
)
{
//处理超时的逻辑
alert
(
'请求超时,请重试'
);
};
}
});
});
//图片删除事件
_doc
.
on
(
'click'
,
'.span-del-du'
,
function
(
e
)
{
e
.
preventDefault
();
e
.
stopPropagation
();
$
(
this
).
parent
().
remove
();
});
//图片删除,已有的则调用接口删除
_doc
.
on
(
'click'
,
'.span-del2-du'
,
function
(
e
)
{
var
_this
=
$
(
this
);
e
.
preventDefault
();
e
.
stopPropagation
();
if
(
confirm
(
'确认删除吗?'
)){
_this
.
parent
().
remove
();
bargain
.
spandelList
(
_this
.
prev
().
attr
(
'data-imgid'
));
};
});
//保存收款信息
// $("#modal-addPic").on("shown.bs.modal", function(event){
// $('#savePayBtn').click(function(){
// console.log(122)
// bargain.saveRecervables();
// })
// });
_doc
.
on
(
'click'
,
'#savePayBtn'
,
function
(
e
)
{
var
_this
=
$
(
this
);
e
.
preventDefault
();
e
.
stopPropagation
();
bargain
.
saveRecervables
();
});
//保存上传的图片
_doc
.
on
(
'click'
,
'#saveBtn'
,
function
(
e
)
{
var
_this
=
$
(
this
);
e
.
preventDefault
();
e
.
stopPropagation
();
var
imgname
=
[];
for
(
var
i
=
0
;
i
<
$
(
'.result-du'
).
length
;
i
++
)
{
imgname
[
i
]
=
$
(
'.result-du>img'
).
eq
(
i
).
attr
(
'data-imgname'
);
};
var
id_pic
=
bargain
.
house_fatherid
;
var
_data
=
{
img_id
:
id_pic
};
//无新的图片上传 不调用接口
if
(
imgname
.
join
(
','
))
{
_data
[
'img_name'
]
=
imgname
.
join
(
','
);
}
else
{
return
};
$
.
ajax
({
type
:
'GET'
,
url
:
'/index/addReceiptImg'
,
data
:
_data
,
dataType
:
'json'
,
beforeSend
:
function
()
{},
success
:
function
(
_data
)
{
if
(
typeof
_data
===
'object'
)
{
alert
(
'保存成功'
);
$
(
'#container_body_img_area-du'
).
html
(
""
);
$
(
'.pic-con2'
).
show
();
$
(
'.pic-con1'
).
hide
();
$
(
'.active'
).
removeClass
(
"active"
);
$
(
'.shoukuanxiangqing'
).
addClass
(
"active"
);
}
else
{
alert
(
'数据错误'
);
};
},
error
:
function
()
{
alert
(
'enter error'
);
},
complete
:
function
(
xhr
,
textStatus
)
{
if
(
textStatus
===
'timeout'
)
{
//处理超时的逻辑
alert
(
'请求超时,请重试'
);
};
}
});
});
//收款详情页面
//店长提交日报
_doc
.
on
(
'click'
,
'.is-submit'
,
function
(
e
)
{
...
...
@@ -448,6 +591,201 @@ define(['doT', 'text!temp/financial_manager_daily_list_template_tpl.html', 'css!
}
});
},
//获取收款详情
getMoneyDetail
:
function
(
id
){
var
that
=
bargain
;
var
params
=
{
'pay_id'
:
id
};
$
.
post
(
'/index/getCollectionDetail'
,
params
,
function
(
data
){
if
(
data
.
code
==
200
)
{
that
.
getValueFunction
(
data
.
data
);
}
else
{
alert
(
data
.
msg
);
}
},
'json'
)
},
getValueFunction
:
function
(
data
){
$
(
'.zhzd'
).
show
();
$
(
'.zjcon'
).
hide
();
var
doc
=
$
(
'#modal-addPic'
);
doc
.
find
(
"#ruzhangId"
).
text
(
data
.
id
);
doc
.
find
(
"#dingdanId"
).
text
(
data
.
order_id
);
doc
.
find
(
"#chengjiaobaogaoId"
).
text
(
data
.
bargain_id
);
doc
.
find
(
"#fangyuanId"
).
text
(
data
.
house_id
);
doc
.
find
(
"#tijiaoren"
).
text
(
data
.
agent_name
);
doc
.
find
(
"#address"
).
text
(
data
.
address
);
doc
.
find
(
"#comit_time"
).
text
(
data
.
create_time
);
if
(
data
.
type
==
10
){
doc
.
find
(
"#intoType"
).
text
(
'意向金'
);
}
else
if
(
data
.
type
==
20
)
{
doc
.
find
(
"#intoType"
).
text
(
'定金'
);
}
else
if
(
data
.
type
==
30
)
{
doc
.
find
(
"#intoType"
).
text
(
'保管金'
);
}
else
if
(
data
.
type
==
40
)
{
doc
.
find
(
"#intoType"
).
text
(
'押金'
);
}
else
if
(
data
.
type
==
50
)
{
doc
.
find
(
"#intoType"
).
text
(
'租金'
);
}
else
if
(
data
.
type
==
60
)
{
doc
.
find
(
"#intoType"
).
text
(
'进场费 '
);
}
else
if
(
data
.
type
==
70
)
{
doc
.
find
(
"#intoType"
).
text
(
'转让费'
);
}
else
if
(
data
.
type
==
80
)
{
doc
.
find
(
"#intoType"
).
text
(
'其他'
);
}
else
if
(
data
.
type
==
90
)
{
doc
.
find
(
"#intoType"
).
text
(
'佣金'
);
}
else
if
(
data
.
type
==
91
)
{
doc
.
find
(
"#intoType"
).
text
(
'中介费'
);
$
(
'.zhzd'
).
hide
();
}
else
if
(
data
.
type
==
92
)
{
doc
.
find
(
"#intoType"
).
text
(
'案场费'
);
$
(
'.zhzd'
).
hide
();
}
else
{
doc
.
find
(
"#intoType"
).
text
(
'佣金'
);
}
doc
.
find
(
"#shopNo"
).
text
(
data
.
house_number
);
doc
.
find
(
"#intoDate"
).
val
(
data
.
income_time
);
doc
.
find
(
"#salePrice"
).
text
(
data
.
price
+
"元"
);
doc
.
find
(
"#intoPrice"
).
val
(
data
.
money
);
doc
.
find
(
"#shouxu"
).
val
(
data
.
transaction_fee
);
doc
.
find
(
"#realPrice"
).
val
(
data
.
real_money
);
doc
.
find
(
"#getPrice"
).
text
(((
data
.
price
-
0
)
*
0.8
)
+
"元"
);
doc
.
find
(
"#morePrice"
).
text
(
Math
.
floor
((
data
.
money
-
((
data
.
price
-
0
)
*
0.8
))
*
100
)
/
100
+
"元"
);
$
(
"#person"
).
text
(
data
.
current_agent_name
);
$
(
"#belongT"
).
text
(
data
.
store_name
);
doc
.
find
(
"#payType"
).
val
(
data
.
pay_type
);
doc
.
find
(
"#payNo"
).
val
(
data
.
transfer_name
);
doc
.
find
(
"#running"
).
text
(
data
.
is_open
==
1
?
"是"
:
"否"
);
doc
.
find
(
"#fenhong"
).
val
(
data
.
is_dividend
);
doc
.
find
(
'#pinpai'
).
text
(
data
.
industry_type
);
if
(
data
.
source
==
0
)
{
$
(
"#comes"
).
text
(
'APP'
);
doc
.
find
(
"#status"
).
text
(
"正常"
);
}
else
if
(
data
.
source
==
1
){
$
(
"#comes"
).
text
(
'智能pos机'
);
doc
.
find
(
"#status"
).
text
(
"正常"
);
}
else
{
$
(
"#comes"
).
text
(
'调整'
);
doc
.
find
(
"#status"
).
text
(
"被调整"
);
}
// doc.find("#status").text(data.source_id);
doc
.
find
(
"#lastTime"
).
val
(
data
.
last_transfer_time
);
doc
.
find
(
"#shoutiao"
).
val
(
data
.
receipt_number
);
if
(
data
.
type
==
91
||
data
.
type
==
92
)
{
$
(
'.xqac'
).
show
();
}
else
{
$
(
'.xqac'
).
hide
();
}
if
(
data
.
type
==
10
||
data
.
type
==
30
)
{
$
(
'.ky'
).
hide
();
$
(
'.shout'
).
show
();
}
else
{
$
(
'.ky'
).
show
();
$
(
'.shout'
).
hide
();
}
if
(
data
.
type
==
91
){
$
(
'.zjcon'
).
show
();
}
},
//获取收款图片
getaddPicList
:
function
(
id
)
{
$
(
'#container_body_img_area_du'
).
html
(
''
);
//每回先清空所有图片
var
id_pic
=
id
;
//follow.house_fatherid > 0?follow.house_fatherid:follow.house_id;
$
(
'.result2-du,.result-du'
).
remove
();
//删除之前存在的图片 显示从接口获取的数据 用来区分新添加的 和 已经保存的
$
.
ajax
({
'type'
:
'GET'
,
'url'
:
'/index/receiptImgList'
,
data
:
{
"id"
:
id_pic
,
},
dataType
:
"json"
,
success
:
function
(
data
)
{
if
(
data
.
code
==
200
)
{
//渲染已经有的列表
// <img src='[%= it[item]["agent_img"] %]' class="diagram-image J_preview"
// data-bimg='[%= it[item]["agent_img"] %]'>
for
(
i
=
0
;
i
<
data
.
data
.
length
;
i
++
)
{
$
(
'#container_body_img_area_du'
).
append
(
'<div class="result2-du"><img data-imgid="{0}" src="{1}" alt="" class="diagram-image J_preview" data-bimg="{1}"/> <span class="span-del2-du">删除</span></div>'
.
stringFormatObj
({
'0'
:
data
.
data
[
i
].
id
,
'1'
:
data
.
data
[
i
].
img_name
?
urlDeal
(
data
.
data
[
i
].
img_name
):
data
.
data
[
i
].
img_name
}));
};
}
else
{
alert
(
data
.
msg
)
}
}
});
},
spandelList
:
function
(
n
)
{
//删除已经保存的图片都调用
$
.
ajax
({
'type'
:
'POST'
,
'url'
:
'/index/deleteReceiptImg'
,
data
:
{
id
:
n
},
dataType
:
"json"
,
success
:
function
(
data
)
{
if
(
data
.
code
==
200
)
{
}
else
{
alert
(
data
.
msg
)
}
}
});
},
//保存收款信息
saveRecervables
:
function
(){
var
that
=
bargain
;
var
params
=
that
.
recervablesParams
();
$
.
post
(
'/index/getCollectionEdit'
,
params
,
function
(
data
){
if
(
data
.
code
==
200
)
{
// that.getList(that.pageNo);
}
else
{
alert
(
data
.
msg
);
}
},
'json'
)
},
//保存收款信息 调用接口
recervablesParams
:
function
(){
var
params
=
{}
;
if
(
$
(
'#ruzhangId'
).
text
()){
//入账ID
params
.
pay_id
=
$
(
'#ruzhangId'
).
text
()
};
if
(
$
(
'#intoDate'
).
val
()){
//入账日期
params
.
income_time
=
$
(
'#intoDate'
).
val
()
};
if
(
$
(
'#intoPrice'
).
val
()){
//入账金额
params
.
money
=
$
(
'#intoPrice'
).
val
()
};
if
(
$
(
'#shouxu'
).
val
()){
//手续费
params
.
transaction_fee
=
$
(
'#shouxu'
).
val
()
};
if
(
$
(
'#realPrice'
).
val
()){
//实付金额
params
.
real_money
=
$
(
'#realPrice'
).
val
()
};
if
(
$
(
'#payType'
).
val
()){
//支付方式
params
.
pay_type
=
$
(
'#payType'
).
val
()
};
if
(
$
(
'#payNo'
).
val
()){
//支付户名
params
.
transfer_name
=
$
(
'#payNo'
).
val
()
};
if
(
$
(
'#running'
).
val
()){
//是否开业 1是 0否
params
.
is_open
=
$
(
'#running'
).
val
()
};
if
(
$
(
'#fenhong'
).
val
()){
//分红
params
.
is_dividend
=
$
(
'#fenhong'
).
val
()
};
if
(
$
(
'#lastTime'
).
val
()){
//最后转定时间
params
.
last_transfer_time
=
$
(
'#lastTime'
).
val
()
};
if
(
$
(
'#intoType'
).
text
()
==
'意向金'
||
$
(
'#intoType'
).
text
()
==
'保管金'
)
{
if
(
$
(
'#shoutiao'
).
val
()){
params
.
receipt_number
=
$
(
'#shoutiao'
).
val
()
}
}
return
params
;
},
};
return
bargain
;
...
...
public/resource/js/marchinList.js
View file @
e51ea860
...
...
@@ -173,6 +173,7 @@ define(['doT', 'css!style/home.css', 'ckfinder', 'ckfinderStart', "datetimepick
params
.
report_agent_name
=
$
(
'#report_agent_name'
).
val
();
params
.
house_title
=
$
(
'#house_title'
).
val
();
params
.
shop_type
=
$
(
'#shop_type'
).
val
()
*
1
;
//跟进搜索
params
.
order_id
=
$
(
'#bargain_id'
).
val
()
*
1
;
//带看订单ID搜索
params
.
pageNo
=
follow
.
pageNo
;
params
.
pageSize
=
follow
.
pageSize
;
$
.
ajax
({
...
...
public/resource/template/financial_manager_daily_list_template_tpl.html
View file @
e51ea860
...
...
@@ -19,6 +19,7 @@
<
td
>
[
%=
swred
(
it
[
item
][
'is_dividend'
])
%
]
<
/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 add-pic"
href
=
"#modal-addPic"
data
-
recordid
=
"[%= it[item]['id'] %]"
data
-
toggle
=
"modal"
>
编辑
<
/a
>
<
/td
>
<
/tr
>
[
%
}
%
]
...
...
@@ -47,7 +48,7 @@
<
td
>
[
%=
it
[
item
][
'remark'
]
%
]
<
/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 add-pic"
href
=
"#modal-addPic"
data
-
recordid
=
"[%= it[item]['id'] %]"
data
-
toggle
=
"modal"
>
编辑
<
/a
>
<
/td
>
<
/tr
>
[
%
}
%
]
...
...
@@ -74,7 +75,7 @@
<
td
>
[
%=
it
[
item
][
'receipt_number'
]
%
]
<
/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 add-pic"
href
=
"#modal-addPic"
data
-
recordid
=
"[%= it[item]['id'] %]"
data
-
toggle
=
"modal"
>
编辑
<
/a
>
<
/td
>
<
/tr
>
[
%
}
%
]
...
...
@@ -100,7 +101,7 @@
<
td
>
[
%=
it
[
item
][
'receipt_number'
]
%
]
<
/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 add-pic"
href
=
"#modal-addPic"
data
-
recordid
=
"[%= it[item]['id'] %]"
data
-
toggle
=
"modal"
>
编辑
<
/a>
<
/td
>
<
/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