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
6a67aaa9
Commit
6a67aaa9
authored
Oct 08, 2019
by
hujun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
收款列表城市搜索
parent
4d9908a6
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
46 additions
and
4 deletions
+46
-4
getCollectionShop.html
application/index/view/officeBuilding/getCollectionShop.html
+4
-1
getCollectionShop.js
public/resource/js/getCollectionShop.js
+42
-3
No files found.
application/index/view/officeBuilding/getCollectionShop.html
View file @
6a67aaa9
...
...
@@ -452,7 +452,10 @@
<option
value=
"1"
>
正常
</option>
</select>
</div>
<div
class=
"form-group"
>
<select
class=
"form-control ld-Marheight user_city_choose_site_list"
id=
"city"
>
</select>
</div>
<div
class=
"form-group"
>
<select
class=
"form-control ld-Marheight"
id=
"commit_home"
>
<option
value=
""
>
提交人所在部门
</option>
...
...
public/resource/js/getCollectionShop.js
View file @
6a67aaa9
...
...
@@ -46,6 +46,7 @@ define(['doT', 'text!temp/receivables_template_tpl.html', 'css!style/home.css',
$
(
document
.
body
).
append
(
template
);
receiv
.
getList
(
1
);
receiv
.
event
();
receiv
.
getCitySite
();
},
event
:
function
()
{
var
that
=
receiv
;
...
...
@@ -823,6 +824,10 @@ define(['doT', 'text!temp/receivables_template_tpl.html', 'css!style/home.css',
$
(
"#is_open"
).
val
(
-
1
);
}
});
$
(
".user_city_choose_site_list"
).
on
(
"change"
,
function
(){
receiv
.
getDistrict
();
})
},
getMaxBackPrice
:
function
(
id
){
...
...
@@ -1095,21 +1100,26 @@ define(['doT', 'text!temp/receivables_template_tpl.html', 'css!style/home.css',
},
getDistrict
:
function
(
fn
)
{
var
site_id_city
=
$
(
".user_city_choose_site_list"
).
val
();
if
(
!
site_id_city
)
{
return
false
;
}
$
.
ajax
({
url
:
'/index/getDistrict'
,
type
:
'GET'
,
async
:
true
,
data
:
{
"pageSize"
:
1000
"pageSize"
:
1000
,
"site_id"
:
site_id_city
},
dataType
:
'json'
,
success
:
function
(
data
)
{
if
(
data
.
code
==
200
&&
data
.
data
!=
null
)
{
var
str
=
''
;
var
str
=
'
<option value="">提交人所在部门</option>
'
;
$
.
each
(
data
.
data
,
function
(
i
,
item
)
{
str
+=
'<option value="'
+
item
.
id
+
'">'
+
item
.
district_name
+
'</option>'
;
});
$
(
'#commit_home'
).
append
(
str
);
$
(
'#commit_home'
).
html
(
str
);
fn
&&
fn
();
}
else
{
alert
(
data
.
msg
);
...
...
@@ -1475,6 +1485,7 @@ define(['doT', 'text!temp/receivables_template_tpl.html', 'css!style/home.css',
var
shop_addr
=
$
(
'#shop_addr'
).
val
(
""
);
var
commit_home
=
$
(
'#commit_home'
).
val
(
""
);
var
commit_shop
=
$
(
'#commit_shop'
).
val
(
""
);
var
city
=
$
(
'#commit_shop'
).
val
(
""
);
var
comit_name
=
$
(
'#comit_name'
).
val
(
""
);
var
is_open
=
$
(
'#is_open'
).
val
(
"-1"
);
var
is_normality
=
$
(
'#is_normality'
).
val
(
"0"
);
...
...
@@ -1509,6 +1520,7 @@ define(['doT', 'text!temp/receivables_template_tpl.html', 'css!style/home.css',
var
shop_addr
=
$
(
'#shop_addr'
).
val
();
var
commit_home
=
$
(
'#commit_home'
).
val
();
var
commit_shop
=
$
(
'#commit_shop'
).
val
();
var
city
=
$
(
'#city'
).
val
();
var
comit_name
=
that
.
agent_id_phone
;
//$('#comit_name').val();
var
params
=
{};
var
paramsStr
=
""
;
...
...
@@ -2174,6 +2186,33 @@ define(['doT', 'text!temp/receivables_template_tpl.html', 'css!style/home.css',
}
});
},
getCitySite
()
{
$
.
ajax
({
url
:
'/index/getAgentGroupSite'
,
type
:
'GET'
,
async
:
true
,
data
:
{
},
dataType
:
'json'
,
success
:
function
(
data
)
{
if
(
data
.
code
==
200
&&
data
.
data
.
length
!=
0
)
{
var
str
=
'<option value="">选择城市</option>'
;
$
.
each
(
data
.
data
,
function
(
i
,
item
)
{
str
+=
'<option value="'
+
item
.
id
+
'">'
+
item
.
city
+
'</option>'
;
});
$
(
".user_city_choose_site_list"
).
append
(
str
);
}
else
{
var
_str1
=
'<option value="">选择城市</option>'
;
var
_city
=
user_info_obj
.
city
;
var
_siteID
=
user_info_obj
.
site_id
;
var
_str
=
_str1
+
'<option value="'
+
_siteID
+
'">'
+
_city
+
'</option>'
;
$
(
".user_city_choose_site_list"
).
append
(
_str
);
};
// $(".user_city_choose_site_list").val(user_info_obj.site_id);//给默认值
}
});
}
...
...
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