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
83c6f601
Commit
83c6f601
authored
Dec 19, 2018
by
duxinyuan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
123
parent
dfef28d1
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
152 additions
and
7 deletions
+152
-7
adjustment.html
application/index/view/finance/adjustment.html
+2
-0
getCollection.html
application/index/view/finance/getCollection.html
+14
-0
adjustment.js
public/resource/js/adjustment.js
+67
-1
getCollection.js
public/resource/js/getCollection.js
+69
-6
No files found.
application/index/view/finance/adjustment.html
View file @
83c6f601
...
@@ -310,6 +310,8 @@
...
@@ -310,6 +310,8 @@
<option value="1">二店</option>
<option value="1">二店</option>
</select>-->
</select>-->
<input
class=
"form-control btn2 ld-Marheight"
data-rule-phoneus=
"false"
data-rule-required=
"false"
id=
"comit_name"
placeholder=
"提交人姓名"
type=
"text"
value=
""
>
<input
class=
"form-control btn2 ld-Marheight"
data-rule-phoneus=
"false"
data-rule-required=
"false"
id=
"comit_name"
placeholder=
"提交人姓名"
type=
"text"
value=
""
>
<ul
class=
"user-ul"
style=
"display:none"
></ul>
<!--<input class="form-control btn2 ld-Marheight" data-rule-phoneus="false" data-rule-required="false" id="comit_name" placeholder="提交人姓名" type="text" value="">-->
<input
class=
"form-control btn2 ld-Marheight"
data-rule-phoneus=
"false"
data-rule-required=
"false"
id=
"comit_phone"
placeholder=
"提交人手机号"
type=
"text"
value=
""
>
<input
class=
"form-control btn2 ld-Marheight"
data-rule-phoneus=
"false"
data-rule-required=
"false"
id=
"comit_phone"
placeholder=
"提交人手机号"
type=
"text"
value=
""
>
<span
class=
"btn btn-info btn3 ld-Marheight"
id=
"search"
style=
"float:left"
>
搜索
</span>
<span
class=
"btn btn-info btn3 ld-Marheight"
id=
"search"
style=
"float:left"
>
搜索
</span>
<span
class=
"btn btn-info btn3 ld-Marheight"
id=
"reset"
style=
"float:left"
>
重置
</span>
<span
class=
"btn btn-info btn3 ld-Marheight"
id=
"reset"
style=
"float:left"
>
重置
</span>
...
...
application/index/view/finance/getCollection.html
View file @
83c6f601
...
@@ -27,6 +27,19 @@
...
@@ -27,6 +27,19 @@
list-style
:
none
;
list-style
:
none
;
line-height
:
20px
;
line-height
:
20px
;
}
}
.user-ul
{
float
:
left
;
position
:
relative
;
overflow-y
:
scroll
;
height
:
100px
;
left
:
0px
;
width
:
100%
;
line-height
:
30px
;
}
.user-ul
li
{
list-style
:
none
;
line-height
:
20px
;
}
ul
{
ul
{
-webkit-padding-start
:
0px
!important
;
-webkit-padding-start
:
0px
!important
;
...
@@ -362,6 +375,7 @@
...
@@ -362,6 +375,7 @@
<option
value=
""
>
提交人所在门店
</option>
<option
value=
""
>
提交人所在门店
</option>
</select>
</select>
<input
class=
"form-control btn2 ld-Marheight"
data-rule-phoneus=
"false"
data-rule-required=
"false"
id=
"comit_name"
placeholder=
"提交人姓名"
type=
"text"
value=
""
>
<input
class=
"form-control btn2 ld-Marheight"
data-rule-phoneus=
"false"
data-rule-required=
"false"
id=
"comit_name"
placeholder=
"提交人姓名"
type=
"text"
value=
""
>
<ul
class=
"user-ul"
style=
"display:none"
></ul>
<span
class=
"btn btn-info btn3 ld-Marheight"
id=
"search"
style=
"float:left"
>
搜索
</span>
<span
class=
"btn btn-info btn3 ld-Marheight"
id=
"search"
style=
"float:left"
>
搜索
</span>
<span
class=
"btn btn-info btn3 ld-Marheight"
id=
"reset"
style=
"float:left"
>
重置
</span>
<span
class=
"btn btn-info btn3 ld-Marheight"
id=
"reset"
style=
"float:left"
>
重置
</span>
...
...
public/resource/js/adjustment.js
View file @
83c6f601
...
@@ -10,6 +10,7 @@ define(['doT', 'text!temp/adjustment_template_tpl.html', 'css!style/home.css', '
...
@@ -10,6 +10,7 @@ define(['doT', 'text!temp/adjustment_template_tpl.html', 'css!style/home.css', '
collection_del_id
:
''
,
collection_del_id
:
''
,
listData
:
""
,
listData
:
""
,
moneyTotal
:
""
,
moneyTotal
:
""
,
agent_id_phone
:
''
,
init
:
function
()
{
init
:
function
()
{
//初始化dot
//初始化dot
$
(
document
.
body
).
append
(
template
);
$
(
document
.
body
).
append
(
template
);
...
@@ -95,6 +96,71 @@ define(['doT', 'text!temp/adjustment_template_tpl.html', 'css!style/home.css', '
...
@@ -95,6 +96,71 @@ define(['doT', 'text!temp/adjustment_template_tpl.html', 'css!style/home.css', '
}
else
{};
}
else
{};
});
});
});
});
//点击li 列表消失
$
(
document
).
delegate
(
".addphone"
,
"click"
,
function
()
{
//list消失新增客户 点击li事件 获取id ul消失
that
.
addphone
(
this
);
});
//分佣方 姓名下拉式
$
(
document
).
on
(
"input"
,
"#comit_name"
,
function
()
{
//手机号新增搜索客方
if
(
$
(
"#comit_name"
).
val
()
==
''
)
{
bargain
.
agent_id_phone
=
''
;
$
(
".user-ul"
).
html
(
''
);
}
else
{
that
.
search_person
();
}
});
},
search_person
:
function
()
{
//手机号新增客户
$
.
ajax
({
url
:
'/index/getBroker_new'
,
type
:
'GET'
,
async
:
true
,
data
:
{
"phone"
:
$
(
"#comit_name"
).
val
(),
'all'
:
1
},
dataType
:
'json'
,
success
:
function
(
data
)
{
if
(
data
.
code
==
200
)
{
var
user_ul
=
""
;
$
.
each
(
data
.
data
,
function
(
i
,
item
)
{
if
(
item
.
status
==
0
||
item
.
status
==
4
){
var
status
=
' '
;
};
if
(
item
.
status
==
1
){
var
status
=
'-长假'
;
};
if
(
item
.
status
==
2
){
var
status
=
'-离职'
;
};
if
(
item
.
status
==
3
){
var
status
=
'-转勤'
;
}
user_ul
+=
'<li class="addphone" data-id="'
+
item
.
id
+
'">'
+
item
.
id
+
'-'
+
item
.
name
+
'-'
+
item
.
phone
+
status
+
'</li>'
;
});
$
(
".user-ul"
).
html
(
user_ul
);
$
(
".user-ul"
).
show
();
}
else
{
alert
(
data
.
msg
);
}
}
});
},
//将li里的值 赋给input(分佣方姓名)
addphone
:
function
(
obj
)
{
//新增客户 input赋值
var
that
=
receiv
;
var
user_ht
=
$
(
obj
).
html
()
+
''
;
console
.
log
(
user_ht
.
length
);
var
user_ht_str
=
user_ht
.
substring
(
0
,
user_ht
.
length
-
3
);
$
(
"#comit_name"
).
val
(
user_ht_str
);
$
(
".user-ul"
).
html
(
''
);
$
(
".user-ul"
).
hide
();
that
.
agent_id_phone
=
$
(
obj
).
attr
(
"data-id"
);
},
},
getDistrict
:
function
(
fn
)
{
getDistrict
:
function
(
fn
)
{
...
@@ -266,7 +332,7 @@ define(['doT', 'text!temp/adjustment_template_tpl.html', 'css!style/home.css', '
...
@@ -266,7 +332,7 @@ define(['doT', 'text!temp/adjustment_template_tpl.html', 'css!style/home.css', '
var
shoped_addr
=
$
(
'#shoped_addr'
).
val
();
var
shoped_addr
=
$
(
'#shoped_addr'
).
val
();
var
commit_home
=
$
(
'#commit_home'
).
val
();
var
commit_home
=
$
(
'#commit_home'
).
val
();
var
commit_shop
=
$
(
'#commit_shop'
).
val
();
var
commit_shop
=
$
(
'#commit_shop'
).
val
();
var
comit_name
=
$
(
'#comit_name'
).
val
();
var
comit_name
=
that
.
agent_id_phone
;
//
$('#comit_name').val();
var
comit_phone
=
$
(
'#comit_phone'
).
val
();
var
comit_phone
=
$
(
'#comit_phone'
).
val
();
var
choose_type
=
$
(
'.btn-group'
).
find
(
'.btn-info'
).
html
();
var
choose_type
=
$
(
'.btn-group'
).
find
(
'.btn-info'
).
html
();
var
params
=
{};
var
params
=
{};
...
...
public/resource/js/getCollection.js
View file @
83c6f601
...
@@ -22,6 +22,7 @@ define(['doT', 'text!temp/receivables_template_tpl.html', 'css!style/home.css',
...
@@ -22,6 +22,7 @@ define(['doT', 'text!temp/receivables_template_tpl.html', 'css!style/home.css',
transfer_name
:
''
,
transfer_name
:
''
,
totalCount
:
0
,
totalCount
:
0
,
receipt_number
:
''
,
receipt_number
:
''
,
agent_id_phone
:
''
,
init
:
function
()
{
init
:
function
()
{
//初始化dot
//初始化dot
$
(
document
.
body
).
append
(
template
);
$
(
document
.
body
).
append
(
template
);
...
@@ -271,11 +272,6 @@ define(['doT', 'text!temp/receivables_template_tpl.html', 'css!style/home.css',
...
@@ -271,11 +272,6 @@ define(['doT', 'text!temp/receivables_template_tpl.html', 'css!style/home.css',
var
val
=
$
(
'#change_type option:selected'
).
text
();
var
val
=
$
(
'#change_type option:selected'
).
text
();
that
.
change_show_hide
(
val
);
that
.
change_show_hide
(
val
);
});
});
$
(
document
).
delegate
(
".hideLI"
,
"click"
,
function
(
e
)
{
//list消失新增客户 点击li事件 获取id ul消失
//that.addphone(this);
//todo list detail
});
//成交报告搜索
//成交报告搜索
$
(
document
).
on
(
"input"
,
"#report_id_change"
,
function
()
{
//手机号新增搜索客方
$
(
document
).
on
(
"input"
,
"#report_id_change"
,
function
()
{
//手机号新增搜索客方
...
@@ -310,9 +306,16 @@ define(['doT', 'text!temp/receivables_template_tpl.html', 'css!style/home.css',
...
@@ -310,9 +306,16 @@ define(['doT', 'text!temp/receivables_template_tpl.html', 'css!style/home.css',
$
(
document
).
delegate
(
".intoIdBuild"
,
"click"
,
function
()
{
$
(
document
).
delegate
(
".intoIdBuild"
,
"click"
,
function
()
{
that
.
intoIdBuild
(
this
);
that
.
intoIdBuild
(
this
);
});
});
});
});
//点击li 列表消失
$
(
document
).
delegate
(
".addphone"
,
"click"
,
function
()
{
//list消失新增客户 点击li事件 获取id ul消失
that
.
addphone
(
this
);
});
//图片,附件上传删除键事件
//图片,附件上传删除键事件
$
(
document
).
on
(
'click'
,
'.delet-pic-btn'
,
function
(
e
)
{
$
(
document
).
on
(
'click'
,
'.delet-pic-btn'
,
function
(
e
)
{
var
_this
=
$
(
this
);
var
_this
=
$
(
this
);
...
@@ -338,6 +341,66 @@ define(['doT', 'text!temp/receivables_template_tpl.html', 'css!style/home.css',
...
@@ -338,6 +341,66 @@ define(['doT', 'text!temp/receivables_template_tpl.html', 'css!style/home.css',
}
else
{};
}
else
{};
});
});
});
});
//分佣方 姓名下拉式
$
(
document
).
on
(
"input"
,
"#comit_name"
,
function
()
{
//手机号新增搜索客方
if
(
$
(
"#comit_name"
).
val
()
==
''
)
{
bargain
.
agent_id_phone
=
''
;
$
(
".user-ul"
).
html
(
''
);
}
else
{
that
.
search_person
();
}
});
},
search_person
:
function
()
{
//手机号新增客户
$
.
ajax
({
url
:
'/index/getBroker_new'
,
type
:
'GET'
,
async
:
true
,
data
:
{
"phone"
:
$
(
"#comit_name"
).
val
(),
'all'
:
1
},
dataType
:
'json'
,
success
:
function
(
data
)
{
if
(
data
.
code
==
200
)
{
var
user_ul
=
""
;
$
.
each
(
data
.
data
,
function
(
i
,
item
)
{
if
(
item
.
status
==
0
||
item
.
status
==
4
){
var
status
=
' '
;
};
if
(
item
.
status
==
1
){
var
status
=
'-长假'
;
};
if
(
item
.
status
==
2
){
var
status
=
'-离职'
;
};
if
(
item
.
status
==
3
){
var
status
=
'-转勤'
;
}
user_ul
+=
'<li class="addphone" data-id="'
+
item
.
id
+
'">'
+
item
.
id
+
'-'
+
item
.
name
+
'-'
+
item
.
phone
+
status
+
'</li>'
;
});
$
(
".user-ul"
).
html
(
user_ul
);
$
(
".user-ul"
).
show
();
}
else
{
alert
(
data
.
msg
);
}
}
});
},
//将li里的值 赋给input(分佣方姓名)
addphone
:
function
(
obj
)
{
//新增客户 input赋值
var
that
=
receiv
;
var
user_ht
=
$
(
obj
).
html
()
+
''
;
console
.
log
(
user_ht
.
length
);
var
user_ht_str
=
user_ht
.
substring
(
0
,
user_ht
.
length
-
3
);
$
(
"#comit_name"
).
val
(
user_ht_str
);
$
(
".user-ul"
).
html
(
''
);
$
(
".user-ul"
).
hide
();
that
.
agent_id_phone
=
$
(
obj
).
attr
(
"data-id"
);
},
},
spandelList
:
function
(
n
)
{
//删除已经保存的图片都调用
spandelList
:
function
(
n
)
{
//删除已经保存的图片都调用
...
@@ -824,7 +887,7 @@ define(['doT', 'text!temp/receivables_template_tpl.html', 'css!style/home.css',
...
@@ -824,7 +887,7 @@ define(['doT', 'text!temp/receivables_template_tpl.html', 'css!style/home.css',
var
shop_addr
=
$
(
'#shop_addr'
).
val
();
var
shop_addr
=
$
(
'#shop_addr'
).
val
();
var
commit_home
=
$
(
'#commit_home'
).
val
();
var
commit_home
=
$
(
'#commit_home'
).
val
();
var
commit_shop
=
$
(
'#commit_shop'
).
val
();
var
commit_shop
=
$
(
'#commit_shop'
).
val
();
var
comit_name
=
$
(
'#comit_name'
).
val
();
var
comit_name
=
that
.
agent_id_phone
;
//
$('#comit_name').val();
var
params
=
{};
var
params
=
{};
var
paramsStr
=
"?"
;
var
paramsStr
=
"?"
;
if
(
commite_time_start
)
{
if
(
commite_time_start
)
{
...
...
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