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
7021bd58
Commit
7021bd58
authored
Dec 20, 2018
by
duxinyuan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
f8de367d
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
78 additions
and
64 deletions
+78
-64
getCollection.html
application/index/view/finance/getCollection.html
+5
-5
getCollection.js
public/resource/js/getCollection.js
+73
-59
No files found.
application/index/view/finance/getCollection.html
View file @
7021bd58
...
...
@@ -477,15 +477,15 @@
<div
class=
"col-xs-12 rep"
>
<div
class=
"form-group"
>
<strong><span
class=
"col-xs-2 ld-Marheight"
>
成交报告ID:
</span></strong>
<div
class=
"col-xs-9"
style=
"padding:0px 10px 0px 5px;"
><input
class=
"form-control"
type=
"text"
value=
""
id=
"report_id_change"
/>
<ul
class=
"reportArea"
style=
"display:none"
></ul></div>
<div
class=
"col-xs-9"
style=
"padding:0px 10px 0px 5px;"
><input
class=
"form-control"
type=
"text"
value=
""
id=
"report_id_change"
data-status=
"200"
/>
<ul
class=
"reportArea"
style=
"display:none"
data-status=
"100"
></ul></div>
</div>
</div>
<div
class=
"col-xs-12"
>
<div
class=
"col-xs-12"
>
<div
class=
"form-group"
>
<strong><span
class=
"col-xs-2 ld-Marheight"
>
调整后带看ID:
</span></strong>
<div
class=
"col-xs-9"
style=
"padding:0px 10px 0px 5px;"
><input
class=
"form-control"
type=
"text"
value=
""
id=
"into_id_change"
/>
<ul
class=
"intoIdArea"
style=
"display:none"
></ul></div>
<div
class=
"col-xs-9"
style=
"padding:0px 10px 0px 5px;"
><input
class=
"form-control"
type=
"text"
value=
""
id=
"into_id_change"
data-status=
"100"
/>
<ul
class=
"intoIdArea"
style=
"display:none"
data-status=
"100"
></ul></div>
<!--<div class="col-xs-6"><input class="form-control" type="text" value="" id="into_id_change" readonly="true"/></div>-->
<!--<span id="into_id_change" class="col-xs-6 ld-Marheight"></span>-->
</div>
...
...
public/resource/js/getCollection.js
View file @
7021bd58
...
...
@@ -32,6 +32,24 @@ define(['doT', 'text!temp/receivables_template_tpl.html', 'css!style/home.css',
event
:
function
()
{
var
that
=
receiv
;
var
_doc
=
$
(
document
);
$
(
document
).
bind
(
"click"
,
function
(
e
){
//id为menu的是菜单,id为open的是打开菜单的按钮
console
.
log
(
"12312321321"
);
console
.
log
(
e
);
if
(
e
.
target
.
dataset
.
status
==
100
){
$
(
'.reportArea'
).
hide
();
$
(
'#report_id_change'
).
val
(
""
);
}
else
if
(
e
.
target
.
dataset
.
status
==
200
){
$
(
'.intoIdArea'
).
hide
();
$
(
'#into_id_change'
).
val
(
""
);
}
else
{
$
(
'.intoIdArea'
).
hide
();
$
(
'.reportArea'
).
hide
();
}
})
$
(
'.pic-con2'
).
show
();
$
(
'.pic-con1'
).
hide
();
$
(
'.tit_con'
).
unbind
(
'click'
).
bind
(
'click'
,
function
(
e
){
...
...
@@ -244,72 +262,68 @@ define(['doT', 'text!temp/receivables_template_tpl.html', 'css!style/home.css',
});
//调整
$
(
"#modal-linetime"
).
on
(
"shown.bs.modal"
,
function
(
event
){
//初始化...
//initMoadalData
that
.
change_show_hide
(
$
(
'#change_type option:selected'
).
text
());
$
(
'#saveChangeBtn'
).
unbind
(
'click'
).
bind
(
'click'
,
function
(
e
){
that
.
saveChange
();
});
//附件上传处理事件
$
(
"#file_input"
).
change
(
function
()
{
var
_this
=
$
(
this
);
var
_spFile
=
_this
.
data
(
'spfile'
);
var
_limitTop
=
_this
.
data
(
'limittop'
);
var
_fileNum
=
_this
.
parent
().
next
().
find
(
'.delet-pic-btn'
).
length
;
//根据删除按钮的个数,确定文件的个数
if
(
_limitTop
&&
(
_fileNum
<
_limitTop
))
{
that
.
uploadImg
(
_this
);
}
else
{
alert
(
'上传上限为 '
+
_limitTop
);
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
);
});
});
$
(
'#saveChangeBtn'
).
unbind
(
'click'
).
bind
(
'click'
,
function
(
e
){
that
.
saveChange
();
});
//附件上传处理事件
$
(
"#file_input"
).
change
(
function
()
{
var
_this
=
$
(
this
);
var
_spFile
=
_this
.
data
(
'spfile'
);
var
_limitTop
=
_this
.
data
(
'limittop'
);
var
_fileNum
=
_this
.
parent
().
next
().
find
(
'.delet-pic-btn'
).
length
;
//根据删除按钮的个数,确定文件的个数
if
(
_limitTop
&&
(
_fileNum
<
_limitTop
))
{
that
.
uploadImg
(
_this
);
}
else
{
alert
(
'上传上限为 '
+
_limitTop
);
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
).
on
(
"input"
,
"#report_id_change"
,
function
()
{
//手机号新增搜索客方
var
val
=
$
(
'#report_id_change'
).
val
()
var
data
=
that
.
getReportDataByDetail
(
val
);
if
(
$
(
"#report_id_change"
).
val
()
==
''
)
{
var
tag
=
""
;
$
(
document
).
on
(
"input"
,
"#report_id_change"
,
function
()
{
//手机号新增搜索客方
var
val
=
$
(
'#report_id_change'
).
val
()
var
data
=
that
.
getReportDataByDetail
(
val
);
if
(
$
(
"#report_id_change"
).
val
()
==
''
)
{
var
tag
=
""
;
// tag += '<li class="hideLI" data-id="' + item.id + '">' + item.id + '-' + item.name + '-' + item.phone + status + '</li>';
$
(
'#reportArea'
).
append
(
tag
);
}
else
{
that
.
search_phone
();
}
});
//带看id搜索
$
(
document
).
on
(
"input"
,
"#into_id_change"
,
function
()
{
var
val
=
$
(
'#into_id_change'
).
val
()
var
data
=
that
.
getReportDataByDetail
(
val
);
if
(
$
(
"#into_id_change"
).
val
()
==
''
)
{
var
tag
=
""
;
$
(
'#reportArea'
).
append
(
tag
);
}
else
{
that
.
search_phone
();
}
});
//带看id搜索
$
(
document
).
on
(
"input"
,
"#into_id_change"
,
function
()
{
var
val
=
$
(
'#into_id_change'
).
val
()
var
data
=
that
.
getReportDataByDetail
(
val
);
if
(
$
(
"#into_id_change"
).
val
()
==
''
)
{
var
tag
=
""
;
// tag += '<li class="hideLI" data-id="' + item.id + '">' + item.id + '-' + item.name + '-' + item.phone + status + '</li>';
$
(
'#intoIdArea'
).
append
(
tag
);
}
else
{
that
.
search_into
();
}
});
//点击li 列表消失
$
(
document
).
delegate
(
".reportIdBuild"
,
"click"
,
function
()
{
that
.
reportIdBuild
(
this
);
});
$
(
document
).
delegate
(
".intoIdBuild"
,
"click"
,
function
()
{
that
.
intoIdBuild
(
this
);
});
$
(
'#intoIdArea'
).
append
(
tag
);
}
else
{
that
.
search_into
();
}
});
//点击li 列表消失
$
(
document
).
delegate
(
".reportIdBuild"
,
"click"
,
function
()
{
that
.
reportIdBuild
(
this
);
});
$
(
document
).
delegate
(
".intoIdBuild"
,
"click"
,
function
()
{
that
.
intoIdBuild
(
this
);
});
//点击li 列表消失
$
(
document
).
delegate
(
".addphone"
,
"click"
,
function
()
{
//list消失新增客户 点击li事件 获取id ul消失
...
...
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