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
f3b1773d
Commit
f3b1773d
authored
Sep 12, 2018
by
xishifeng
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
店长周报修改
parent
9a91f1b2
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
146 additions
and
10 deletions
+146
-10
weekly_achieve_dz.html
application/app_broker/view/index/weekly_achieve_dz.html
+70
-6
report_achieve.css
public/app/css/report_achieve.css
+5
-2
daily_achieve_dz.js
public/app/js/daily_achieve_dz.js
+1
-1
weekly.js
public/app/js/weekly.js
+18
-1
weekly_achieve_dz.js
public/app/js/weekly_achieve_dz.js
+52
-0
No files found.
application/app_broker/view/index/weekly_achieve_dz.html
View file @
f3b1773d
...
@@ -115,19 +115,83 @@
...
@@ -115,19 +115,83 @@
<tr
class=
"table-tr-textarea tr-padding60"
>
<tr
class=
"table-tr-textarea tr-padding60"
>
<td>
业绩方面的总结和措施方法
</td>
<td>
业绩方面的总结和措施方法
</td>
<td
colspan=
"6"
>
<td
colspan=
"6"
>
<div
class=
"div-textarea"
contenteditable=
"true"
>
点击填写
</div>
<div
class=
"div-textarea"
contenteditable=
"true"
id=
"mendianzhou_text_data1"
>
点击填写
</div>
</td>
</td>
</tr>
</tr>
<tr
class=
"table-tr-textarea tr-padding60"
>
<tr
class=
"table-tr-textarea tr-padding60"
>
<td>
人员方面的总结和措施方法
</td>
<td>
人员方面的总结和措施方法
</td>
<td
colspan=
"6"
>
<td
colspan=
"6"
>
<div
class=
"div-textarea"
contenteditable=
"true"
>
点击填写
</div>
<div
class=
"div-textarea"
contenteditable=
"true"
id=
"mendianzhou_text_data2"
>
点击填写
</div>
</td>
</tr>
<tr
class=
"table-tr-textarea tr-padding60"
>
<td>
日数据管理方案
</td>
<td
colspan=
"6"
>
<div
class=
"div-textarea"
contenteditable=
"true"
id=
"mendianzhou_text_data3"
>
点击填写
</div>
</td>
</tr>
</tbody>
</table>
<table
border=
"0"
cellspacing=
"0"
cellpadding=
"0"
class=
"table-type11"
>
<tbody>
<tr
class=
"table-tr-single"
><td
colspan=
"7"
>
店长个人本周数据
</td></tr>
<tr
class=
"table-tr-header"
>
<td>
房源
</td>
<td>
客源
</td>
<td>
带看
</td>
<td>
跟进
</td>
<td>
成交
</td>
<td>
网络
</td>
<td>
处罚金额
</td>
</tr>
<tr
class=
"table-tr-gerenshuju"
>
<td></td>
<td></td>
<td></td>
<td><input
type=
"number"
placeholder=
"填写"
/></td>
<td></td>
<td><input
type=
"number"
placeholder=
"填写"
/></td>
<td><input
type=
"number"
placeholder=
"填写"
/></td>
</tr>
</tbody>
</table>
<table
border=
"0"
cellspacing=
"0"
cellpadding=
"0"
class=
"table-type1"
>
<tbody>
<tr
class=
"table-tr-single"
><td
colspan=
"6"
>
店长下周目标个人数据
</td></tr>
<tr
class=
"table-tr-header"
>
<td>
房源
</td>
<td>
客源
</td>
<td>
带看
</td>
<td>
跟进
</td>
<td>
成交
</td>
<td>
网络
</td>
</tr>
<tr>
<td><input
type=
"number"
placeholder=
"填写"
/></td>
<td><input
type=
"number"
placeholder=
"填写"
/></td>
<td><input
type=
"number"
placeholder=
"填写"
/></td>
<td><input
type=
"number"
placeholder=
"填写"
/></td>
<td><input
type=
"number"
placeholder=
"填写"
/></td>
<td><input
type=
"number"
placeholder=
"填写"
/></td>
</tr>
<tr
class=
"table-tr-textarea tr-padding60"
>
<td>
店长个人自律事项
</td>
<td
colspan=
"6"
>
<div
class=
"div-textarea"
contenteditable=
"true"
id=
"dianzhanggeren_text_data1"
>
点击填写
</div>
</td>
</tr>
<tr
class=
"table-tr-textarea tr-padding60"
>
<td>
创新建议
</td>
<td
colspan=
"6"
>
<div
class=
"div-textarea"
contenteditable=
"true"
id=
"dianzhanggeren_text_data2"
>
点击填写
</div>
</td>
</td>
</tr>
</tr>
</tbody>
</tbody>
</table>
</table>
<table
border=
"0"
cellspacing=
"0"
cellpadding=
"0"
class=
"table-type2"
>
<
!--<
table border="0" cellspacing="0" cellpadding="0" class="table-type2">
<tbody>
<tbody>
<tr class="table-tr-single">
<tr class="table-tr-single">
<td colspan="2">业态分析</td>
<td colspan="2">业态分析</td>
...
@@ -145,7 +209,7 @@
...
@@ -145,7 +209,7 @@
</td>
</td>
</tr>
</tr>
</tbody>
</tbody>
</table>
</table>
-->
<table
border=
"0"
cellspacing=
"0"
cellpadding=
"0"
class=
"table-type6"
>
<table
border=
"0"
cellspacing=
"0"
cellpadding=
"0"
class=
"table-type6"
>
<tbody
id=
"yejiInfoArea"
>
<tbody
id=
"yejiInfoArea"
>
...
@@ -176,13 +240,13 @@
...
@@ -176,13 +240,13 @@
<tr
class=
"table-tr-textarea tr-padding60"
>
<tr
class=
"table-tr-textarea tr-padding60"
>
<td>
点评优秀员工
</td>
<td>
点评优秀员工
</td>
<td
colspan=
"4"
>
<td
colspan=
"4"
>
<div
class=
"div-textarea"
contenteditable=
"true"
>
点击填写
</div>
<div
class=
"div-textarea"
contenteditable=
"true"
id=
"yuangong_text_data1"
>
点击填写
</div>
</td>
</td>
</tr>
</tr>
<tr
class=
"table-tr-textarea tr-padding60"
>
<tr
class=
"table-tr-textarea tr-padding60"
>
<td>
点评须进步员工
</td>
<td>
点评须进步员工
</td>
<td
colspan=
"4"
>
<td
colspan=
"4"
>
<div
class=
"div-textarea"
contenteditable=
"true"
>
点击填写
</div>
<div
class=
"div-textarea"
contenteditable=
"true"
id=
"yuangong_text_data2"
>
点击填写
</div>
</td>
</td>
</tr>
</tr>
</tbody>
</tbody>
...
...
public/app/css/report_achieve.css
View file @
f3b1773d
...
@@ -398,9 +398,12 @@ div.div-textarea.div-textarea-mdzj-header{
...
@@ -398,9 +398,12 @@ div.div-textarea.div-textarea-mdzj-header{
width
:
208px
;
width
:
208px
;
}
}
/*第11个table部分*/
/*第11个table部分*/
.table-type1
0
tr
td
{
.table-type1
1
tr
td
{
color
:
#333
;
color
:
#333
;
width
:
148px
;
width
:
100px
;
}
.table-type11
tr
td
:nth-last-of-type
(
1
)
{
width
:
140px
;
}
}
...
...
public/app/js/daily_achieve_dz.js
View file @
f3b1773d
...
@@ -92,7 +92,7 @@ require(['vue', 'vconsole', 'html2canvas', 'css!style/report_achieve.css', 'jque
...
@@ -92,7 +92,7 @@ require(['vue', 'vconsole', 'html2canvas', 'css!style/report_achieve.css', 'jque
_this
.
userId
=
localStorage
.
getItem
(
'userid'
);
_this
.
userId
=
localStorage
.
getItem
(
'userid'
);
$
.
ajax
({
$
.
ajax
({
type
:
'POST'
,
type
:
'POST'
,
url
:
ServerHostTempC
+
'/broker/dayStatement'
,
url
:
'/broker/dayStatement'
,
data
:
{
data
:
{
'AuthToken'
:
_this
.
token
,
'AuthToken'
:
_this
.
token
,
'agent_id'
:
_this
.
userId
,
'agent_id'
:
_this
.
userId
,
...
...
public/app/js/weekly.js
View file @
f3b1773d
...
@@ -31,7 +31,7 @@ require(['vue', 'vconsole', 'css!style/weekly.css', 'jquery0325', 'common'], fun
...
@@ -31,7 +31,7 @@ require(['vue', 'vconsole', 'css!style/weekly.css', 'jquery0325', 'common'], fun
_this
.
dateStart
=
_this
.
countDate
(
_this
.
dateEnd
,
6
,
'jian'
);
_this
.
dateStart
=
_this
.
countDate
(
_this
.
dateEnd
,
6
,
'jian'
);
_this
.
level
=
localStorage
.
getItem
(
'userlevel'
);
_this
.
level
=
localStorage
.
getItem
(
'userlevel'
);
//如果之前有存储的用户输入数据,则打开询问框
//如果之前有存储的用户输入数据,则打开询问框
,总监周报
var
_mdzjZbData
=
localStorage
.
getItem
(
'mdzjZbData'
)
==
null
?
''
:
JSON
.
parse
(
decodeURIComponent
(
localStorage
.
getItem
(
'mdzjZbData'
)));
//用户输入的存储
var
_mdzjZbData
=
localStorage
.
getItem
(
'mdzjZbData'
)
==
null
?
''
:
JSON
.
parse
(
decodeURIComponent
(
localStorage
.
getItem
(
'mdzjZbData'
)));
//用户输入的存储
if
(
_mdzjZbData
&&
_mdzjZbData
[
'userId'
]
==
localStorage
.
getItem
(
'userid'
)){
if
(
_mdzjZbData
&&
_mdzjZbData
[
'userId'
]
==
localStorage
.
getItem
(
'userid'
)){
layer
.
open
({
layer
.
open
({
...
@@ -47,6 +47,23 @@ require(['vue', 'vconsole', 'css!style/weekly.css', 'jquery0325', 'common'], fun
...
@@ -47,6 +47,23 @@ require(['vue', 'vconsole', 'css!style/weekly.css', 'jquery0325', 'common'], fun
}
}
});
});
};
};
//如果之前有存储的用户输入数据,则打开询问框,店长周报
var
_dzZbData
=
localStorage
.
getItem
(
'dzZbData'
)
==
null
?
''
:
JSON
.
parse
(
decodeURIComponent
(
localStorage
.
getItem
(
'dzZbData'
)));
//用户输入的存储
if
(
_dzZbData
&&
_dzZbData
[
'userId'
]
==
localStorage
.
getItem
(
'userid'
)){
layer
.
open
({
content
:
'您有未完成的内容,是否继续?'
,
btn
:
[
'前往'
,
'留在本页'
],
yes
:
function
(
_index
){
var
urlEn
=
encodeURIComponent
(
JSON
.
stringify
({
'startdate'
:
_mdzjZbData
[
'searchTimeStart'
],
'enddate'
:
_mdzjZbData
[
'searchTimeEnd'
]
}));
location
.
href
=
'weekly_achieve_dz?weekly_data='
+
urlEn
;
layer
.
close
(
_index
);
}
});
};
},
},
pageBack
:
function
()
{
pageBack
:
function
()
{
if
(
_appToken
!==
null
)
{
if
(
_appToken
!==
null
)
{
...
...
public/app/js/weekly_achieve_dz.js
View file @
f3b1773d
...
@@ -13,6 +13,9 @@ require(['vue', 'html2canvas', 'css!style/report_achieve.css', 'jquery0325', 'co
...
@@ -13,6 +13,9 @@ require(['vue', 'html2canvas', 'css!style/report_achieve.css', 'jquery0325', 'co
var
_token
=
localStorage
.
getItem
(
'token'
);
var
_token
=
localStorage
.
getItem
(
'token'
);
var
_id
=
localStorage
.
getItem
(
'userid'
);
var
_id
=
localStorage
.
getItem
(
'userid'
);
var
_userInfo
=
JSON
.
parse
(
decodeURIComponent
(
localStorage
.
getItem
(
'userinfo'
)));
//用户信息
var
_userInfo
=
JSON
.
parse
(
decodeURIComponent
(
localStorage
.
getItem
(
'userinfo'
)));
//用户信息
var
_timer
;
//定时器
var
_dzZbData
=
localStorage
.
getItem
(
'dzZbData'
)
==
null
?
''
:
JSON
.
parse
(
decodeURIComponent
(
localStorage
.
getItem
(
'dzZbData'
)));
//用户输入的存储
var
vm
=
new
Vue
({
var
vm
=
new
Vue
({
el
:
'#app'
,
el
:
'#app'
,
...
@@ -67,6 +70,13 @@ require(['vue', 'html2canvas', 'css!style/report_achieve.css', 'jquery0325', 'co
...
@@ -67,6 +70,13 @@ require(['vue', 'html2canvas', 'css!style/report_achieve.css', 'jquery0325', 'co
'renshu'
:
data
[
'data'
][
'agent_total'
],
'renshu'
:
data
[
'data'
][
'agent_total'
],
'yeji'
:
data
[
'data'
][
'performance_week'
]
'yeji'
:
data
[
'data'
][
'performance_week'
]
}));
}));
$
(
'.table-tr-gerenshuju'
).
html
(
'<td>{fangyuan}</td><td>{keyuan}</td><td>{daikan}</td><td><input type="number" placeholder="填写" /></td><td>{chengjiao}</td><td><input type="number" placeholder="填写" /></td><td><input type="number" placeholder="填写" /></td>'
.
stringFormatObj
({
'fangyuan'
:
data
[
'data'
][
'store_manager_list'
][
'house_num'
],
'keyuan'
:
data
[
'data'
][
'store_manager_list'
][
'add_user_num'
],
'daikan'
:
data
[
'data'
][
'store_manager_list'
][
'look_at_num_day_store'
],
'chengjiao'
:
data
[
'data'
][
'store_manager_list'
][
'bargain_sum_store'
]
}));
var
_htmlGroupInfo
=
''
;
var
_htmlGroupInfo
=
''
;
$
.
each
(
data
[
'data'
][
'store_list'
],
function
(
i
,
item
)
{
$
.
each
(
data
[
'data'
][
'store_list'
],
function
(
i
,
item
)
{
...
@@ -79,6 +89,10 @@ require(['vue', 'html2canvas', 'css!style/report_achieve.css', 'jquery0325', 'co
...
@@ -79,6 +89,10 @@ require(['vue', 'html2canvas', 'css!style/report_achieve.css', 'jquery0325', 'co
});
});
});
});
$
(
'#groupInfoArea'
).
after
((
_htmlGroupInfo
===
''
)
?
'<tr><td colspan="5" style="font-weight: normal;line-height: 60px;">暂无</td></tr>'
:
_htmlGroupInfo
);
$
(
'#groupInfoArea'
).
after
((
_htmlGroupInfo
===
''
)
?
'<tr><td colspan="5" style="font-weight: normal;line-height: 60px;">暂无</td></tr>'
:
_htmlGroupInfo
);
//在接口请求完毕后在读缓存
_vueThis
.
readLocalCache
();
//读取本次存储的用户输入
_timer
=
setInterval
(
_vueThis
.
autoLocalStorage
,
120000
);
//2分钟存储一次
}
else
{
}
else
{
layerTipsX
(
data
.
msg
);
layerTipsX
(
data
.
msg
);
...
@@ -204,7 +218,43 @@ require(['vue', 'html2canvas', 'css!style/report_achieve.css', 'jquery0325', 'co
...
@@ -204,7 +218,43 @@ require(['vue', 'html2canvas', 'css!style/report_achieve.css', 'jquery0325', 'co
}
}
});
});
},
},
autoLocalStorage
:
function
()
{
//清除百度地图产生的localStorage和后端产生的a1,b1,c1这些
for
(
var
i
in
localStorage
)
{
if
(
i
.
indexOf
(
'BMap_'
)
===
0
||
i
.
indexOf
(
'1'
)
===
1
)
{
delete
localStorage
[
i
];
};
};
var
_data
=
{
'userId'
:
localStorage
.
getItem
(
'userid'
),
'textdata'
:
{},
'searchTimeStart'
:
_weekly_data
[
'startdate'
],
'searchTimeEnd'
:
_weekly_data
[
'enddate'
]
};
_data
[
'textdata'
]
=
{
'mendianzhou_text_data1'
:
$
.
trim
(
$
(
'#mendianzhou_text_data1'
).
html
()
==
'点击填写'
?
''
:
$
(
'#mendianzhou_text_data1'
).
html
()),
'mendianzhou_text_data2'
:
$
.
trim
(
$
(
'#mendianzhou_text_data2'
).
html
()
==
'点击填写'
?
''
:
$
(
'#mendianzhou_text_data2'
).
html
()),
'mendianzhou_text_data3'
:
$
.
trim
(
$
(
'#mendianzhou_text_data3'
).
html
()
==
'点击填写'
?
''
:
$
(
'#mendianzhou_text_data3'
).
html
()),
'dianzhanggeren_text_data1'
:
$
.
trim
(
$
(
'#dianzhanggeren_text_data1'
).
html
()
==
'点击填写'
?
''
:
$
(
'#dianzhanggeren_text_data1'
).
html
()),
'dianzhanggeren_text_data2'
:
$
.
trim
(
$
(
'#dianzhanggeren_text_data2'
).
html
()
==
'点击填写'
?
''
:
$
(
'#dianzhanggeren_text_data2'
).
html
()),
'yuangong_text_data1'
:
$
.
trim
(
$
(
'#yuangong_text_data1'
).
html
()
==
'点击填写'
?
''
:
$
(
'#yuangong_text_data1'
).
html
()),
'yuangong_text_data2'
:
$
.
trim
(
$
(
'#yuangong_text_data2'
).
html
()
==
'点击填写'
?
''
:
$
(
'#yuangong_text_data2'
).
html
())
};
localStorage
.
setItem
(
'dzZbData'
,
encodeURIComponent
(
JSON
.
stringify
(
_data
)));
},
readLocalCache
:
function
()
{
if
(
_dzZbData
&&
_dzZbData
[
'userId'
]
==
localStorage
.
getItem
(
'userid'
))
{
//总监下周工作重点
for
(
var
i
in
_dzZbData
[
'textdata'
]){
if
(
_dzZbData
[
'textdata'
][
i
]
!=
''
)
{
$
(
'#'
+
i
).
html
(
_dzZbData
[
'textdata'
][
i
]).
addClass
(
'color-submit'
);
};
};
}
},
save
:
function
()
{
save
:
function
()
{
var
_vueThis
=
this
;
var
_timeStampObj
=
$
(
'#time_stamp_area'
);
//时间区域div获取
var
_timeStampObj
=
$
(
'#time_stamp_area'
);
//时间区域div获取
var
_titleBeforeObj
=
$
(
'#titile_before'
);
//titile区域截图前后的div获取
var
_titleBeforeObj
=
$
(
'#titile_before'
);
//titile区域截图前后的div获取
var
_titleTempObj
=
$
(
'#titile_temp'
);
//titile汇报人
var
_titleTempObj
=
$
(
'#titile_temp'
);
//titile汇报人
...
@@ -283,6 +333,8 @@ require(['vue', 'html2canvas', 'css!style/report_achieve.css', 'jquery0325', 'co
...
@@ -283,6 +333,8 @@ require(['vue', 'html2canvas', 'css!style/report_achieve.css', 'jquery0325', 'co
content
:
'截图成功'
,
content
:
'截图成功'
,
btn
:
[
'确定'
],
btn
:
[
'确定'
],
yes
:
function
(
_index
)
{
yes
:
function
(
_index
)
{
localStorage
.
removeItem
(
'dzZbData'
);
_timer
=
setInterval
(
_vueThis
.
autoLocalStorage
,
120000
);
//截图成功之后再开启
layer
.
close
(
_index
);
layer
.
close
(
_index
);
}
}
});
});
...
...
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