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
02894097
Commit
02894097
authored
Oct 11, 2019
by
agping
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
收款记录 加城市 部门 门店
parent
6d0c16ff
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
47 additions
and
7 deletions
+47
-7
getCollectionShop.html
application/index/view/officeBuilding/getCollectionShop.html
+10
-0
getCollectionShop.js
public/resource/js/getCollectionShop.js
+37
-7
No files found.
application/index/view/officeBuilding/getCollectionShop.html
View file @
02894097
...
@@ -456,6 +456,16 @@
...
@@ -456,6 +456,16 @@
<select class="form-control ld-Marheight user_city_choose_site_list" id="city">
<select class="form-control ld-Marheight user_city_choose_site_list" id="city">
</select>
</select>
</div>-->
</div>-->
<div
class=
"form-group"
>
<select
class=
"form-control ld-Marheight"
name=
""
id=
"district_id2_city"
>
<option
value=
""
>
提交人所在城市
</option>
<option
value=
"10001"
>
上海市
</option>
<option
value=
"10002"
>
杭州市
</option>
<option
value=
"10003"
>
深圳市
</option>
<option
value=
"10004"
>
广州市
</option>
<option
value=
"10005"
>
北京市
</option>
</select>
</div>
<div
class=
"form-group"
>
<div
class=
"form-group"
>
<select
class=
"form-control ld-Marheight"
id=
"commit_home"
>
<select
class=
"form-control ld-Marheight"
id=
"commit_home"
>
<option
value=
""
>
提交人所在部门
</option>
<option
value=
""
>
提交人所在部门
</option>
...
...
public/resource/js/getCollectionShop.js
View file @
02894097
...
@@ -786,23 +786,24 @@ define(['doT', 'text!temp/receivables_template_tpl.html', 'css!style/home.css',
...
@@ -786,23 +786,24 @@ define(['doT', 'text!temp/receivables_template_tpl.html', 'css!style/home.css',
$
(
this
).
parent
().
parent
().
remove
();
$
(
this
).
parent
().
parent
().
remove
();
});
});
$
(
document
).
on
(
"input"
,
"#district_id2_city"
,
function
()
{
//点击城市
//列表选择城市
that
.
getDistrictList
();
});
//二级联动
//二级联动
that
.
getDistrict
(
function
()
{
_doc
.
on
(
'input'
,
'#commit_home'
,
function
()
{
_doc
.
on
(
'input'
,
'#commit_home'
,
function
()
{
var
_this
=
$
(
this
);
var
_this
=
$
(
this
);
var
_id
=
$
(
'#commit_home'
).
val
();
var
_id
=
$
(
'#commit_home'
).
val
();
$
(
'#commit_shop'
).
html
(
''
);
//先清空
if
(
_id
&&
_id
!=
'0'
)
{
if
(
_id
&&
_id
!=
'0'
)
{
that
.
getDistrictStoreList
(
_id
,
function
(
_data
)
{
that
.
getDistrictStoreList
(
_id
,
function
(
_data
)
{
var
_str
=
'<option value="0">全部
</option>'
;
var
_str
=
'<option value="">提交人所在门店
</option>'
;
$
.
each
(
_data
,
function
(
i
,
item
)
{
$
.
each
(
_data
,
function
(
i
,
item
)
{
_str
+=
'<option value="'
+
item
.
id
+
'">'
+
item
.
store_name
+
'</option>'
;
_str
+=
'<option value="'
+
item
.
id
+
'">'
+
item
.
store_name
+
'</option>'
;
});
});
$
(
'#commit_shop'
).
append
(
_str
)
$
(
'#commit_shop'
).
html
(
_str
)
});
});
}
else
{};
}
else
{};
});
});
});
//分佣方 姓名下拉式
//分佣方 姓名下拉式
$
(
document
).
on
(
"input"
,
"#comit_name"
,
function
()
{
//手机号新增搜索客方
$
(
document
).
on
(
"input"
,
"#comit_name"
,
function
()
{
//手机号新增搜索客方
...
@@ -1117,7 +1118,30 @@ define(['doT', 'text!temp/receivables_template_tpl.html', 'css!style/home.css',
...
@@ -1117,7 +1118,30 @@ define(['doT', 'text!temp/receivables_template_tpl.html', 'css!style/home.css',
}
}
});
});
},
},
//获取城市所在部门
getDistrictList
:
function
(
fn
)
{
$
.
ajax
({
url
:
'/index/getDistrict'
,
type
:
'GET'
,
async
:
true
,
data
:
{
"pageSize"
:
1000
,
"site_id"
:
$
(
'#district_id2_city'
).
val
()
},
dataType
:
'json'
,
success
:
function
(
data
)
{
if
(
data
.
code
==
200
&&
data
.
data
!=
null
)
{
var
str
=
'<option value="">提交人所在部门</option>'
;
$
.
each
(
data
.
data
,
function
(
i
,
item
)
{
str
+=
'<option value="'
+
item
.
id
+
'">'
+
item
.
district_name
+
'</option>'
;
});
$
(
'#commit_home'
).
html
(
str
);
$
(
'#commit_shop'
).
html
(
'<option value="">提交人所在门店</option>'
);
}
}
});
},
//获取城市所在部门的门店
getDistrictStoreList
:
function
(
id
,
fn
)
{
getDistrictStoreList
:
function
(
id
,
fn
)
{
$
.
ajax
({
$
.
ajax
({
url
:
'/index/getDistrictStoreList'
,
url
:
'/index/getDistrictStoreList'
,
...
@@ -1132,7 +1156,7 @@ define(['doT', 'text!temp/receivables_template_tpl.html', 'css!style/home.css',
...
@@ -1132,7 +1156,7 @@ define(['doT', 'text!temp/receivables_template_tpl.html', 'css!style/home.css',
if
(
data
.
code
==
200
&&
data
.
data
!=
null
)
{
if
(
data
.
code
==
200
&&
data
.
data
!=
null
)
{
fn
&&
fn
(
data
.
data
);
fn
&&
fn
(
data
.
data
);
}
else
{
}
else
{
alert
(
data
.
msg
)
;
alert
(
data
.
msg
)
}
}
}
}
});
});
...
@@ -1612,6 +1636,12 @@ define(['doT', 'text!temp/receivables_template_tpl.html', 'css!style/home.css',
...
@@ -1612,6 +1636,12 @@ define(['doT', 'text!temp/receivables_template_tpl.html', 'css!style/home.css',
var
params
=
that
.
buildSearchParams
(
false
);
var
params
=
that
.
buildSearchParams
(
false
);
params
.
pageNo
=
that
.
pageNo
;
params
.
pageNo
=
that
.
pageNo
;
params
.
pageSize
=
that
.
pageSize
;
params
.
pageSize
=
that
.
pageSize
;
if
(
$
(
"#district_id2_city"
).
val
()){
if
(
!
$
(
"#commit_home"
).
val
()){
alert
(
'请选择部门进行搜索'
);
return
}
}
$
.
ajax
({
$
.
ajax
({
type
:
'GET'
,
type
:
'GET'
,
url
:
'/index/getCollection'
,
url
:
'/index/getCollection'
,
...
...
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