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
cc873269
Commit
cc873269
authored
Aug 16, 2019
by
agping
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
城市部门
parent
dbf106e6
Show whitespace changes
Inline
Side-by-side
Showing
13 changed files
with
222 additions
and
78 deletions
+222
-78
daily_list.html
application/index/view/finance/daily_list.html
+10
-0
pay_check_list.html
application/index/view/finance/pay_check_list.html
+9
-0
account_statement_shop.html
...ion/index/view/officeBuilding/account_statement_shop.html
+10
-0
methodOfAnalysis.html
application/index/view/work_learning/methodOfAnalysis.html
+9
-0
qualityAssessment.html
application/index/view/work_learning/qualityAssessment.html
+9
-0
valueAssessment.html
application/index/view/work_learning/valueAssessment.html
+9
-0
agent.js
public/resource/js/agent.js
+3
-0
financial_daily_list.js
public/resource/js/financial_daily_list.js
+33
-13
methodOfAnalysis.js
public/resource/js/methodOfAnalysis.js
+21
-15
openCheckList.js
public/resource/js/openCheckList.js
+33
-8
qualityAssessment.js
public/resource/js/qualityAssessment.js
+21
-16
reportListShop.js
public/resource/js/reportListShop.js
+34
-11
valueAssessment.js
public/resource/js/valueAssessment.js
+21
-15
No files found.
application/index/view/finance/daily_list.html
View file @
cc873269
...
...
@@ -78,6 +78,8 @@
<option
value=
"10001"
>
上海市
</option>
<option
value=
"10002"
>
杭州市
</option>
<option
value=
"10003"
>
深圳市
</option>
<option
value=
"10004"
>
广州市
</option>
<option
value=
"10005"
>
北京市
</option>
</select>
<span
class=
"fore-span margin-left-10"
>
提交时间:
</span>
...
...
@@ -94,6 +96,14 @@
<option
value=
"0"
>
我未审核过
</option>
</select>
<input
class=
"form-control btn2"
data-rule-phoneus=
"false"
data-rule-required=
"false"
id=
"financial_id"
placeholder=
"财务日报ID"
type=
"text"
value=
""
>
<select
class=
"form-control btn4 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>
<select
name=
"district_id"
class=
"form-control btn4"
>
<option
value=
""
>
提交人所在部门
</option>
</select>
...
...
application/index/view/finance/pay_check_list.html
View file @
cc873269
...
...
@@ -353,6 +353,15 @@
<input
class=
"form-control btn2 ld-Marheight"
data-rule-phoneus=
"false"
data-rule-required=
"false"
id=
"order_id"
placeholder=
"带看订单ID"
type=
"text"
value=
""
>
<input
class=
"form-control btn2 ld-Marheight"
data-rule-phoneus=
"false"
data-rule-required=
"false"
id=
"house_id"
placeholder=
"商铺ID"
type=
"text"
value=
""
>
<input
class=
"form-control btn2 ld-Marheight"
data-rule-phoneus=
"false"
data-rule-required=
"false"
id=
"house_address"
placeholder=
"商铺地址"
type=
"text"
value=
""
>
<select
class=
"form-control btn4 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>
<select
class=
"form-control btn2 ld-Marheight"
id=
"commit_home"
>
<option
value=
""
>
提交人所在部门
</option>
</select>
...
...
application/index/view/officeBuilding/account_statement_shop.html
View file @
cc873269
...
...
@@ -229,6 +229,16 @@
<input
class=
"form-control btn2"
data-rule-phoneus=
"false"
data-rule-required=
"false"
id=
"maintable_internal_address"
placeholder=
"商铺地址"
type=
"text"
value=
""
>
<input
class=
"form-control btn2"
data-rule-phoneus=
"false"
data-rule-required=
"false"
id=
"maintable_shop_num"
placeholder=
"商铺号"
type=
"text"
value=
""
>
<input
class=
"form-control btn2"
data-rule-phoneus=
"false"
data-rule-required=
"false"
id=
"maintable_user_phone"
placeholder=
"客户电话"
type=
"text"
value=
""
>
<select
class=
"form-control btn4 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>
<select
name=
"district_id"
class=
"form-control btn4"
>
<option
value=
""
>
约带看人所在部门
</option>
</select>
...
...
application/index/view/work_learning/methodOfAnalysis.html
View file @
cc873269
...
...
@@ -84,10 +84,19 @@
<input
class=
"form-control btn4 ld-Marheight"
value=
""
data-rule-phoneus=
"false"
data-rule-required=
"false"
id=
"create_time_start"
name=
"start_date1"
type=
"date"
>
<span
class=
"fore-span ld-Marheight"
>
-
</span>
<input
class=
"form-control btn4 ld-Marheight"
value=
""
data-rule-phoneus=
"false"
data-rule-required=
"false"
id=
"create_time_end"
name=
"end_date1"
type=
"date"
>
<select
class=
"form-control btn2 input 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>
<select
class=
"form-control btn4 ld-Marheight input"
name=
""
id=
"district_id"
>
<option
value=
""
>
选择部门
</option>
</select>
<select
class=
"form-control btn4 ld-Marheight input"
name=
""
id=
"guest_stores"
value=
""
>
<option
value=
""
>
选择门店
</option>
</select>
<span
class=
"btn btn-info btn3 ld-Marheight"
id=
"search"
>
搜索
</span>
<span
class=
"btn btn-info btn3 ld-Marheight"
id=
"reset"
>
重置
</span>
...
...
application/index/view/work_learning/qualityAssessment.html
View file @
cc873269
...
...
@@ -84,10 +84,19 @@
<input
class=
"form-control btn4 ld-Marheight"
value=
""
data-rule-phoneus=
"false"
data-rule-required=
"false"
id=
"create_time_start"
name=
"start_date1"
type=
"date"
>
<span
class=
"fore-span ld-Marheight"
>
-
</span>
<input
class=
"form-control btn4 ld-Marheight"
value=
""
data-rule-phoneus=
"false"
data-rule-required=
"false"
id=
"create_time_end"
name=
"end_date1"
type=
"date"
>
<select
class=
"form-control btn2 input 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>
<select
class=
"form-control btn4 ld-Marheight input"
name=
""
id=
"district_id"
>
<option
value=
""
>
选择部门
</option>
</select>
<select
class=
"form-control btn4 ld-Marheight input"
name=
""
id=
"guest_stores"
value=
""
>
<option
value=
""
>
选择门店
</option>
</select>
<span
class=
"btn btn-info btn3 ld-Marheight"
id=
"search"
>
搜索
</span>
<span
class=
"btn btn-info btn3 ld-Marheight"
id=
"reset"
>
重置
</span>
...
...
application/index/view/work_learning/valueAssessment.html
View file @
cc873269
...
...
@@ -84,10 +84,19 @@
<input
class=
"form-control btn4 ld-Marheight"
value=
""
data-rule-phoneus=
"false"
data-rule-required=
"false"
id=
"create_time_start"
name=
"start_date1"
type=
"date"
>
<span
class=
"fore-span ld-Marheight"
>
-
</span>
<input
class=
"form-control btn4 ld-Marheight"
value=
""
data-rule-phoneus=
"false"
data-rule-required=
"false"
id=
"create_time_end"
name=
"end_date1"
type=
"date"
>
<select
class=
"form-control btn2 input 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>
<select
class=
"form-control btn4 ld-Marheight input"
name=
""
id=
"district_id"
>
<option
value=
""
>
选择部门
</option>
</select>
<select
class=
"form-control btn4 ld-Marheight input"
name=
""
id=
"guest_stores"
value=
""
>
<option
value=
""
>
选择门店
</option>
</select>
<span
class=
"btn btn-info btn3 ld-Marheight"
id=
"search"
>
搜索
</span>
<span
class=
"btn btn-info btn3 ld-Marheight"
id=
"reset"
>
重置
</span>
...
...
public/resource/js/agent.js
View file @
cc873269
...
...
@@ -812,6 +812,7 @@ define(['doT', 'text!temp/agent_template_tpl.html', 'text!temp/phoneBinding_temp
params
.
group_name
=
$
(
"input[name='groupname']"
).
val
();
params
.
district_id
=
$
(
"#district_id2"
).
val
();
params
.
store_id
=
$
(
"#guest_stores"
).
val
();
// params.site_id = $("#district_id2_city").val();//站点筛选
params
.
status
=
$
(
"select[name=agent_status]"
).
val
();
$
.
ajax
({
url
:
'/index/AgentList'
,
...
...
@@ -1012,6 +1013,8 @@ define(['doT', 'text!temp/agent_template_tpl.html', 'text!temp/phoneBinding_temp
str
+=
'<option value="'
+
item
.
id
+
'">'
+
item
.
district_name
+
'</option>'
;
});
$
(
'#district_id2'
).
html
(
str
);
$
(
'#guest_stores'
).
html
(
'<option value="">选择门店</option>'
);
}
}
});
...
...
public/resource/js/financial_daily_list.js
View file @
cc873269
...
...
@@ -75,28 +75,23 @@ define(['doT', 'text!temp/financial_daily_list_template_tpl.html', 'css!style/ho
bargain
.
agent_id_phone
=
''
;
});
var
_doc
=
$
(
document
);
bargain
.
getDistrict
(
function
()
{
_doc
.
on
(
'input'
,
'[name=district_id],#district_id2'
,
function
()
{
$
(
document
).
on
(
"input"
,
"#district_id2_city"
,
function
()
{
//点击城市
//列表选择城市
bargain
.
getDistrictList
();
});
_doc
.
on
(
'input'
,
'[name=district_id]'
,
function
()
{
var
_this
=
$
(
this
);
var
_id
=
_this
.
val
();
_this
.
next
().
html
(
''
);
//先清空
//新增 编辑
var
_objTemp
=
_this
.
parent
().
next
().
find
(
'select'
);
_objTemp
.
html
(
''
);
//先清空
if
(
_id
&&
_id
!=
'0'
)
{
bargain
.
getDistrictStoreList
(
_id
,
function
(
_data
)
{
// var _str = '';
var
_str
=
'<option value="">全部</option>'
;
var
_str
=
'<option value="">提交人所在门店</option>'
;
$
.
each
(
_data
,
function
(
i
,
item
)
{
_str
+=
'<option value="'
+
item
.
id
+
'">'
+
item
.
store_name
+
'</option>'
;
});
_objTemp
.
html
(
_str
);
_this
.
next
().
html
(
_str
);
});
}
else
{};
});
});
},
//获取一级审核,二级审核,三级审核不同的ajax请求url
switchStatus
:
function
(){
...
...
@@ -186,14 +181,39 @@ define(['doT', 'text!temp/financial_daily_list_template_tpl.html', 'css!style/ho
$
.
each
(
data
.
data
,
function
(
i
,
item
)
{
str
+=
'<option value="'
+
item
.
id
+
'">'
+
item
.
district_name
+
'</option>'
;
});
$
(
'[name=district_id]'
).
append
(
str
);
$
(
'#district_id2'
).
append
(
str
);
//
$('[name=district_id]').append(str);
//
$('#district_id2').append(str);
fn
&&
fn
();
}
}
});
},
//获取城市所在部门
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>'
;
});
$
(
'[name=district_id]'
).
html
(
str
);
$
(
'[name=store_id]'
).
html
(
'<option value="">提交人所在门店</option>'
);
}
}
});
},
//统计
getListTotal
:
function
()
{
$
.
ajax
({
...
...
public/resource/js/methodOfAnalysis.js
View file @
cc873269
...
...
@@ -18,8 +18,11 @@
event
:
function
()
{
var
_doc
=
$
(
document
);
//二级联动
report
.
getDistrict
(
function
(){
_doc
.
on
(
'input'
,
'#district_id, #district_id2'
,
function
(){
$
(
document
).
on
(
"input"
,
"#district_id2_city"
,
function
()
{
//点击城市
//列表选择城市
report
.
getDistrictList
();
});
_doc
.
on
(
'input'
,
'#district_id'
,
function
(){
var
_this
=
$
(
this
);
var
_id
=
_this
.
val
();
_this
.
next
().
html
(
''
);
//先清空
...
...
@@ -34,7 +37,6 @@
}
else
{
};
});
});
//业绩图片 显示
$
(
document
).
delegate
(
".review-images"
,
"click"
,
function
()
{
//提交
$
(
'.review-images2'
).
attr
(
'src'
,
ServerHostImageLiu
+
'/static/week_work_img/'
+
$
(
this
).
attr
(
"data-img"
));
...
...
@@ -148,23 +150,27 @@
}
});
},
//调用部门 和 门店的接口
getDistrict
:
function
(
fn
)
{
$
.
ajax
({
//获取城市所在部门
getDistrictList
:
function
(
fn
)
{
$
.
ajax
({
url
:
'/index/getDistrict'
,
type
:
'GET'
,
async
:
true
,
data
:
{
"pageSize"
:
1000
},
data
:
{
"pageSize"
:
1000
,
"site_id"
:
$
(
'#district_id2_city'
).
val
()
},
dataType
:
'json'
,
success
:
function
(
data
)
{
if
(
data
.
code
==
200
&&
data
.
data
!=
null
)
{
var
str
=
'
'
;
$
.
each
(
data
.
data
,
function
(
i
,
item
)
{
str
+=
'<option value="'
+
item
.
id
+
'">'
+
item
.
district_name
+
'</option>'
;
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>'
;
});
$
(
"#district_id"
).
append
(
str
);
$
(
"#district_id2"
).
append
(
str
);
fn
&&
fn
();
$
(
'[name=district_id]'
).
html
(
str
);
$
(
'#guest_stores'
).
html
(
'<option value="">选择门店</option>'
);
}
}
});
...
...
public/resource/js/openCheckList.js
View file @
cc873269
...
...
@@ -127,25 +127,24 @@ define(['doT', 'text!temp/open_check_template_tpl.html', 'css!style/home.css', '
$
(
document
).
on
(
'click'
,
'#check_yes'
,
function
(
e
){
that
.
checkRefund
();
});
$
(
document
).
on
(
"input"
,
"#district_id2_city"
,
function
()
{
//点击城市
//列表选择城市
refund
.
getDistrictList
();
});
//二级联动
that
.
getDistrict
(
function
()
{
_doc
.
on
(
'input'
,
'#commit_home'
,
function
()
{
var
_this
=
$
(
this
);
var
_id
=
$
(
'#commit_home'
).
val
();
$
(
'#commit_shop'
).
html
(
''
);
//先清空
if
(
_id
&&
_id
!=
'0'
)
{
that
.
getDistrictStoreList
(
_id
,
function
(
_data
)
{
var
_str
=
'<option value="0">全部
</option>'
;
var
_str
=
'<option value="">提交人所在门店
</option>'
;
$
.
each
(
_data
,
function
(
i
,
item
)
{
_str
+=
'<option value="'
+
item
.
id
+
'">'
+
item
.
store_name
+
'</option>'
;
});
$
(
'#commit_shop'
).
append
(
_str
)
$
(
'#commit_shop'
).
html
(
_str
)
});
}
else
{};
});
});
//点击li 列表消失
$
(
document
).
delegate
(
".addphone"
,
"click"
,
function
()
{
//list消失新增客户 点击li事件 获取id ul消失
...
...
@@ -386,7 +385,7 @@ define(['doT', 'text!temp/open_check_template_tpl.html', 'css!style/home.css', '
$
.
each
(
data
.
data
,
function
(
i
,
item
)
{
str
+=
'<option value="'
+
item
.
id
+
'">'
+
item
.
district_name
+
'</option>'
;
});
$
(
'#commit_home'
).
append
(
str
);
//
$('#commit_home').append(str);
fn
&&
fn
();
}
else
{
alert
(
data
.
msg
)
...
...
@@ -394,6 +393,32 @@ define(['doT', 'text!temp/open_check_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>'
;
});
// $('[name=district_id]').html(str);
$
(
'#commit_home'
).
html
(
str
);
$
(
'#commit_shop'
).
html
(
'<option value="">提交人所在门店</option>'
);
}
}
});
},
getDistrictStoreList
:
function
(
id
,
fn
)
{
$
.
ajax
({
url
:
'/index/getDistrictStoreList'
,
...
...
public/resource/js/qualityAssessment.js
View file @
cc873269
...
...
@@ -18,11 +18,13 @@
event
:
function
()
{
var
_doc
=
$
(
document
);
//二级联动
report
.
getDistrict
(
function
(){
_doc
.
on
(
'input'
,
'#district_id, #district_id2'
,
function
(){
$
(
document
).
on
(
"input"
,
"#district_id2_city"
,
function
()
{
//点击城市
//列表选择城市
report
.
getDistrictList
();
});
_doc
.
on
(
'input'
,
'#district_id'
,
function
(){
var
_this
=
$
(
this
);
var
_id
=
_this
.
val
();
_this
.
next
().
html
(
''
);
//先清空
if
(
_id
&&
_id
!=
'0'
){
report
.
getDistrictStoreList
(
_id
,
function
(
_data
){
var
_str
=
'<option value="">选择门店</option>'
;
...
...
@@ -34,7 +36,6 @@
}
else
{
};
});
});
//业绩图片 显示
$
(
document
).
delegate
(
".review-images"
,
"click"
,
function
()
{
//提交
$
(
'.review-images2'
).
attr
(
'src'
,
ServerHostImageLiu
+
'/static/week_work_img/'
+
$
(
this
).
attr
(
"data-img"
));
...
...
@@ -148,23 +149,27 @@
}
});
},
//调用部门 和 门店的接口
getDistrict
:
function
(
fn
)
{
$
.
ajax
({
//获取城市所在部门
getDistrictList
:
function
(
fn
)
{
$
.
ajax
({
url
:
'/index/getDistrict'
,
type
:
'GET'
,
async
:
true
,
data
:
{
"pageSize"
:
1000
},
data
:
{
"pageSize"
:
1000
,
"site_id"
:
$
(
'#district_id2_city'
).
val
()
},
dataType
:
'json'
,
success
:
function
(
data
)
{
if
(
data
.
code
==
200
&&
data
.
data
!=
null
)
{
var
str
=
'
'
;
$
.
each
(
data
.
data
,
function
(
i
,
item
)
{
str
+=
'<option value="'
+
item
.
id
+
'">'
+
item
.
district_name
+
'</option>'
;
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>'
;
});
$
(
"#district_id"
).
append
(
str
);
$
(
"#district_id2"
).
append
(
str
);
fn
&&
fn
();
$
(
'[name=district_id]'
).
html
(
str
);
$
(
'#guest_stores'
).
html
(
'<option value="">选择门店</option>'
);
}
}
});
...
...
public/resource/js/reportListShop.js
View file @
cc873269
...
...
@@ -604,28 +604,24 @@ define(['doT', 'text!temp/reportList_shop_template_tpl.html', 'css!style/home.cs
});
var
_doc
=
$
(
document
);
bargain
.
getDistrict
(
function
()
{
_doc
.
on
(
'input'
,
'[name=district_id],#district_id2'
,
function
()
{
$
(
document
).
on
(
"input"
,
"#district_id2_city"
,
function
()
{
//点击城市
//列表选择城市
bargain
.
getDistrictList
();
});
_doc
.
on
(
'input'
,
'[name=district_id]'
,
function
()
{
var
_this
=
$
(
this
);
var
_id
=
_this
.
val
();
_this
.
next
().
html
(
''
);
//先清空
//新增 编辑
var
_objTemp
=
_this
.
parent
().
next
().
find
(
'select'
);
_objTemp
.
html
(
''
);
//先清空
if
(
_id
&&
_id
!=
'0'
)
{
bargain
.
getDistrictStoreList
(
_id
,
function
(
_data
)
{
// var _str = '';
var
_str
=
'<option value="0">全部</option>'
;
var
_str
=
'<option value="0">约带看人所在门店</option>'
;
$
.
each
(
_data
,
function
(
i
,
item
)
{
_str
+=
'<option value="'
+
item
.
id
+
'">'
+
item
.
store_name
+
'</option>'
;
});
_objTemp
.
html
(
_str
);
_this
.
next
().
html
(
_str
);
});
}
else
{};
});
});
//收款详情页面
$
(
document
).
on
(
'click'
,
'.add-pic'
,
function
(
e
){
// 初始化界面
...
...
@@ -2447,7 +2443,7 @@ define(['doT', 'text!temp/reportList_shop_template_tpl.html', 'css!style/home.cs
$
.
each
(
data
.
data
,
function
(
i
,
item
)
{
str
+=
'<option value="'
+
item
.
id
+
'">'
+
item
.
district_name
+
'</option>'
;
});
$
(
'[name=district_id]'
).
append
(
str
);
//
$('[name=district_id]').append(str);
$
(
'#district_id2'
).
append
(
str
);
fn
&&
fn
();
...
...
@@ -2455,6 +2451,33 @@ define(['doT', 'text!temp/reportList_shop_template_tpl.html', 'css!style/home.cs
}
});
},
//获取城市所在部门
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 = '';
var
str
=
'<option value="">约带看人所在部门</option>'
;
$
.
each
(
data
.
data
,
function
(
i
,
item
)
{
str
+=
'<option value="'
+
item
.
id
+
'">'
+
item
.
district_name
+
'</option>'
;
});
// $('#district_id2').html(str);
$
(
'[name=district_id]'
).
html
(
str
);
$
(
'[name=store_id]'
).
html
(
'<option value="">约带看人所在门店</option>'
);
//置空门店
}
}
});
},
getDistrictStoreList
:
function
(
id
,
fn
)
{
$
.
ajax
({
url
:
'/index/getDistrictStoreList'
,
...
...
public/resource/js/valueAssessment.js
View file @
cc873269
...
...
@@ -17,9 +17,12 @@
},
event
:
function
()
{
var
_doc
=
$
(
document
);
$
(
document
).
on
(
"input"
,
"#district_id2_city"
,
function
()
{
//点击城市
//列表选择城市
report
.
getDistrictList
();
});
//二级联动
report
.
getDistrict
(
function
(){
_doc
.
on
(
'input'
,
'#district_id, #district_id2'
,
function
(){
_doc
.
on
(
'input'
,
'#district_id'
,
function
(){
var
_this
=
$
(
this
);
var
_id
=
_this
.
val
();
_this
.
next
().
html
(
''
);
//先清空
...
...
@@ -34,7 +37,6 @@
}
else
{
};
});
});
//业绩图片 显示
$
(
document
).
delegate
(
".review-images"
,
"click"
,
function
()
{
//提交
$
(
'.review-images2'
).
attr
(
'src'
,
ServerHostImageLiu
+
'/static/week_work_img/'
+
$
(
this
).
attr
(
"data-img"
));
...
...
@@ -149,23 +151,27 @@
}
});
},
//调用部门 和 门店的接口
getDistrict
:
function
(
fn
)
{
$
.
ajax
({
//获取城市所在部门
getDistrictList
:
function
(
fn
)
{
$
.
ajax
({
url
:
'/index/getDistrict'
,
type
:
'GET'
,
async
:
true
,
data
:
{
"pageSize"
:
1000
},
data
:
{
"pageSize"
:
1000
,
"site_id"
:
$
(
'#district_id2_city'
).
val
()
},
dataType
:
'json'
,
success
:
function
(
data
)
{
if
(
data
.
code
==
200
&&
data
.
data
!=
null
)
{
var
str
=
'
'
;
$
.
each
(
data
.
data
,
function
(
i
,
item
)
{
str
+=
'<option value="'
+
item
.
id
+
'">'
+
item
.
district_name
+
'</option>'
;
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>'
;
});
$
(
"#district_id"
).
append
(
str
);
$
(
"#district_id2"
).
append
(
str
);
fn
&&
fn
();
$
(
'[name=district_id]'
).
html
(
str
);
$
(
'#guest_stores'
).
html
(
'<option value="">选择门店</option>'
);
}
}
});
...
...
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