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
04e3622c
Commit
04e3622c
authored
Apr 13, 2018
by
xishifeng
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
业绩周报修改
parent
db5d355a
Hide whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
152 additions
and
10 deletions
+152
-10
achieve_region.html
application/app_broker/view/index/achieve_region.html
+5
-1
weekly_achieve_dz.html
application/app_broker/view/index/weekly_achieve_dz.html
+12
-0
weekly_achieve_mdzj.html
application/app_broker/view/index/weekly_achieve_mdzj.html
+12
-0
achieve_temp.css
public/app/css/achieve_temp.css
+10
-0
achieve_region.js
public/app/js/achieve_region.js
+21
-5
common.js
public/app/js/common.js
+23
-3
daily_achieve_dz.js
public/app/js/daily_achieve_dz.js
+2
-0
daily_achieve_mdzj.js
public/app/js/daily_achieve_mdzj.js
+2
-0
daily_achieve_ywy.js
public/app/js/daily_achieve_ywy.js
+2
-0
weekly_achieve_dz.js
public/app/js/weekly_achieve_dz.js
+31
-1
weekly_achieve_mdzj.js
public/app/js/weekly_achieve_mdzj.js
+32
-0
No files found.
application/app_broker/view/index/achieve_region.html
View file @
04e3622c
...
...
@@ -75,7 +75,11 @@
</section>
<ul
class=
'achieve_zz_ul'
v-for=
"(item,index) in tabsMain"
:key=
"item.title"
v-show=
"index == initTabNumMain"
:id=
"'listall_'+index"
>
<li
v-for=
"(item2,index2) in item.dataList"
:data-id=
"item2.store_id"
>
<div>
{{item2.store_name}}
</div>
<!--<div>{{dealName(item2.store_name, item2.name)}}</div>-->
<div
class=
"db-line"
>
<div
class=
"ellipsis"
>
{{item2.store_name}}
</div>
<div
class=
"ellipsis"
>
{{item2.name}}
</div>
</div>
<div>
{{item2.add_house_num}}
</div>
<div>
{{item2.add_user_num}}
</div>
<div>
{{item2.march_in_num}}
</div>
...
...
application/app_broker/view/index/weekly_achieve_dz.html
View file @
04e3622c
...
...
@@ -31,6 +31,18 @@
<tbody>
<tr
class=
"table-tr-single"
><td
colspan=
"4"
>
月数据
</td></tr>
<tr
is=
"my-tr1"
v-for=
"(item, index) in trArr"
v-bind:data=
"item"
:peoplenum=
"peopleNum"
:key=
"item.titlename"
></tr>
<tr>
<td>
本月目标单数
</td>
<td><input
type=
"number"
placeholder=
"填写"
v-model
.
number=
"dsmb"
/></td>
<td>
本月完成单数
</td>
<td><input
type=
"number"
placeholder=
"填写"
v-model
.
number=
"dswc"
/></td>
</tr>
<tr>
<td>
单数差额
</td>
<td>
{{danshuChae}}
</td>
<td>
人均单数
</td>
<td>
{{danshuRenjun}}
</td>
</tr>
<!--<tr class="">
<td>本月业绩(元)</td>
<td><input type="number" placeholder="填写" /></td>
...
...
application/app_broker/view/index/weekly_achieve_mdzj.html
View file @
04e3622c
...
...
@@ -105,6 +105,18 @@
<td>
人均实收(元)
</td>
<td
class=
"shishou_renjun"
contenteditable=
"true"
></td>
</tr>
<tr>
<td>
本月目标单数
</td>
<td><input
type=
"number"
placeholder=
"填写"
class=
"danshu_mubiao"
/></td>
<td>
本月完成单数
</td>
<td><input
type=
"number"
placeholder=
"填写"
class=
"danshu_wancheng"
/></td>
</tr>
<tr>
<td>
单数差额
</td>
<td
class=
"danshu_chae"
></td>
<td>
人均单数
</td>
<td
class=
"danshu_renjun"
contenteditable=
"true"
></td>
</tr>
<tr
class=
"table-tr-textarea tr-padding20"
>
<td>
下周工作重
<br
/>
点
</td>
<td
colspan=
"3"
>
...
...
public/app/css/achieve_temp.css
View file @
04e3622c
...
...
@@ -869,3 +869,13 @@ div.pop_box>ul>li+li{
.mask_shop_area_content
>
.article_main
>
ul
>
li
+
li
{
border-top
:
1px
solid
#e6e6e6
;
}
/*补充*/
.db-line
{
padding-top
:
.2rem
;
}
.db-line
>
div
{
line-height
:
.4rem
;
font-size
:
.3rem
;
}
public/app/js/achieve_region.js
View file @
04e3622c
...
...
@@ -90,7 +90,11 @@ require(['vue', 'css!style/achieve_temp.css', 'jquery0325', 'common'], function(
_this
.
startDate
=
start_date
;
_this
.
endDate
=
end_date
;
_this
.
ajaxMainNum
(
function
(){
_this
.
ajaxUl
();
if
(
_this
.
userLevel
==
'30'
||
_this
.
userLevel
==
'40'
){
_this
.
ajaxUl
(
_this
.
initTabNumMain
===
0
?
2
:
1
);
}
else
{
_this
.
ajaxUl
(
1
);
}
});
});
},
...
...
@@ -99,7 +103,11 @@ require(['vue', 'css!style/achieve_temp.css', 'jquery0325', 'common'], function(
_this
.
initTabNumMain
=
index
;
if
(
!
_this
.
tabsMain
[
index
].
isLoadMain
)
{
//Vue.set(_this.tabsMain[index], 'isLoadMain', true);
_this
.
ajaxUl
();
if
(
_this
.
userLevel
==
'30'
||
_this
.
userLevel
==
'40'
){
_this
.
ajaxUl
(
_this
.
initTabNumMain
===
0
?
2
:
1
);
}
else
{
_this
.
ajaxUl
(
1
);
}
}
},
initTime
:
function
(
callback
)
{
...
...
@@ -159,7 +167,11 @@ require(['vue', 'css!style/achieve_temp.css', 'jquery0325', 'common'], function(
sessionStorage
.
setItem
(
'achieve_search_start_date'
,
_this
.
startDate
);
sessionStorage
.
setItem
(
'achieve_search_end_date'
,
_this
.
endDate
);
_this
.
ajaxMainNum
(
function
(){
_this
.
ajaxUl
();
if
(
_this
.
userLevel
==
'30'
||
_this
.
userLevel
==
'40'
){
_this
.
ajaxUl
(
_this
.
initTabNumMain
===
0
?
2
:
1
);
}
else
{
_this
.
ajaxUl
(
1
);
}
});
},
...
...
@@ -215,7 +227,7 @@ require(['vue', 'css!style/achieve_temp.css', 'jquery0325', 'common'], function(
}
});
},
ajaxUl
:
function
(){
ajaxUl
:
function
(
type
){
var
_this
=
this
;
$
.
ajax
({
type
:
'GET'
,
...
...
@@ -224,7 +236,8 @@ require(['vue', 'css!style/achieve_temp.css', 'jquery0325', 'common'], function(
'AuthToken'
:
_this
.
token
,
'agent_id'
:
_this
.
ywyId
,
'start_time'
:
_this
.
startDate
,
'end_time'
:
_this
.
endDate
'end_time'
:
_this
.
endDate
,
'is_store'
:
type
// 'agent_id': 1,
// 'start_time': '2018-03-10',
// 'end_time': '2018-03-23'
...
...
@@ -259,6 +272,9 @@ require(['vue', 'css!style/achieve_temp.css', 'jquery0325', 'common'], function(
};
}
});
},
dealName
:
function
(
str1
,
str2
){
return
str1
+
'<br />'
+
str2
;
}
},
computed
:
{
...
...
public/app/js/common.js
View file @
04e3622c
...
...
@@ -14,7 +14,7 @@ function getUrlParam(name) {
//手机号码格式正则验证 by xishifeng
function
is_mobile
(
text
)
{
return
/^1
[
34578
]\d{9}
$/
.
test
(
text
)?
1
:
0
;
return
/^1
[
1234567890
]\d{9}
$/
.
test
(
text
)?
1
:
0
;
}
//device判断设备是安卓还是苹果 by xishfieng 2017.04.26
...
...
@@ -250,11 +250,31 @@ function loginCs(phone, pwd){
},
dataType
:
"json"
,
success
:
function
(
data
)
{
console
.
log
(
data
.
data
.
AuthToken
);
},
error
:
function
()
{
error
:
function
(
data
)
{
},
complete
:
function
(
xhr
,
textStatus
)
{
}
});
}
function
loginCsNew
(
phone
,
pwd
){
var
myHeaders
=
new
Headers
();
myHeaders
.
append
(
'Content-Type'
,
'application/x-www-form-urlencoded; charset=UTF-8'
);
var
formData
=
new
FormData
();
formData
.
append
(
'phone'
,
phone
);
formData
.
append
(
'pwd'
,
pwd
);
var
request
=
new
Request
(
'https://pre2.tonglianjituan.com/broker/login'
,
{
method
:
'post'
,
mode
:
'cors'
,
body
:
formData
,
headers
:
myHeaders
});
fetch
(
request
).
then
(
function
(
response
){
console
.
log
(
response
);
//response.json();
}).
then
(
function
(
result
){
console
.
log
(
result
);
});
};
public/app/js/daily_achieve_dz.js
View file @
04e3622c
...
...
@@ -16,6 +16,8 @@ require(['vue', 'html2canvas', 'css!style/report_achieve.css', 'jquery0325', 'co
'titlename'
:
'业绩(元)'
},
{
'titlename'
:
'实收(元)'
},
{
'titlename'
:
'成交单数'
}],
peopleNum
:
1
,
nowDayNum
:
parseInt
(
new
Date
().
getDate
()),
...
...
public/app/js/daily_achieve_mdzj.js
View file @
04e3622c
...
...
@@ -14,6 +14,8 @@ require(['vue', 'html2canvas', 'css!style/report_achieve.css', 'jquery0325', 'co
'titlename'
:
'业绩(元)'
},
{
'titlename'
:
'实收(元)'
},
{
'titlename'
:
'成交单数'
}],
peopleNum
:
1
,
nowDayNum
:
parseInt
(
new
Date
().
getDate
()),
...
...
public/app/js/daily_achieve_ywy.js
View file @
04e3622c
...
...
@@ -16,6 +16,8 @@ require(['vue', 'html2canvas', 'css!style/report_achieve.css', 'jquery0325', 'co
'titlename'
:
'业绩(元)'
},
{
'titlename'
:
'实收(元)'
},
{
'titlename'
:
'成交单数'
}],
canClickFlag
:
true
},
...
...
public/app/js/weekly_achieve_dz.js
View file @
04e3622c
...
...
@@ -26,7 +26,9 @@ require(['vue', 'html2canvas', 'css!style/report_achieve.css', 'jquery0325', 'co
'titlename2'
:
'人均实收(元)'
,
}],
peopleNum
:
1
,
token
:
''
token
:
''
,
dsmb
:
''
,
dswc
:
''
},
components
:
{
'my-tr1'
:
{
...
...
@@ -42,6 +44,24 @@ require(['vue', 'html2canvas', 'css!style/report_achieve.css', 'jquery0325', 'co
return
dealJineNum
(
this
.
wancheng
/
this
.
peoplenum
);
}
}
},
'my-tr2'
:
{
props
:
[
'data'
,
'peoplenum'
],
template
:
'#tr1'
,
data
:
function
()
{
return
{
mubiao
:
''
,
wancheng
:
''
}
},
computed
:
{
chae
:
function
()
{
return
dealJineNum
(
this
.
mubiao
-
this
.
wancheng
);
},
renjun
:
function
()
{
return
dealJineNum
(
this
.
wancheng
/
this
.
peoplenum
);
}
}
}
},
created
:
function
()
{
...
...
@@ -319,6 +339,16 @@ require(['vue', 'html2canvas', 'css!style/report_achieve.css', 'jquery0325', 'co
});
}
}
},
computed
:
{
danshuChae
:
function
(){
var
_this
=
this
;
return
dealJineNum
(
_this
.
dsmb
-
_this
.
dswc
);
},
danshuRenjun
:
function
(){
var
_this
=
this
;
return
dealJineNum
(
_this
.
dswc
/
_this
.
peopleNum
);
}
}
});
...
...
public/app/js/weekly_achieve_mdzj.js
View file @
04e3622c
...
...
@@ -79,6 +79,8 @@ $(function() {
'yjbz'
:
$
.
trim
(
_tableFirstObj
.
find
(
'.yeji_benzhou'
).
val
()),
'yjby'
:
$
.
trim
(
_tableFirstObj
.
find
(
'.yeji_benyue'
).
val
()),
'ssmq'
:
$
.
trim
(
_tableFirstObj
.
find
(
'.shishou_muqian'
).
val
()),
'dsmbby'
:
$
.
trim
(
_tableFirstObj
.
find
(
'.danshu_mubiao'
).
val
()),
'dswcby'
:
$
.
trim
(
_tableFirstObj
.
find
(
'.danshu_wancheng'
).
val
()),
'xzGzzd'
:
$
.
trim
(
_tableFirstObj
.
find
(
'.xz_gzzd'
).
html
()
==
'点击填写'
?
''
:
_tableFirstObj
.
find
(
'.xz_gzzd'
).
html
()),
'rsjGlfa'
:
$
.
trim
(
_tableFirstObj
.
find
(
'.rsj_glfa'
).
html
()
==
'点击填写'
?
''
:
_tableFirstObj
.
find
(
'.rsj_glfa'
).
html
()),
'xzRyGscs'
:
$
.
trim
(
_tableFirstObj
.
find
(
'.xz_ry_gscs'
).
html
()
==
'点击填写'
?
''
:
_tableFirstObj
.
find
(
'.xz_ry_gscs'
).
html
())
...
...
@@ -145,6 +147,15 @@ $(function() {
if
(
_mdzjZbData
[
'zjyj'
][
'yjbz'
]
!=
''
&&
_mdzjZbData
[
'zjyj'
][
'yjsz'
]
!=
''
)
{
_tableFirstObj
.
find
(
'.shangsheng_xiahua'
).
html
(
dealJineNum
(
Number
(
_mdzjZbData
[
'zjyj'
][
'yjbz'
])
-
Number
(
_mdzjZbData
[
'zjyj'
][
'yjsz'
])));
};
if
(
_mdzjZbData
[
'zjyj'
][
'dswcby'
]
!=
''
)
{
_tableFirstObj
.
find
(
'.danshu_wancheng'
).
val
(
_mdzjZbData
[
'zjyj'
][
'dswcby'
]);
_tableFirstObj
.
find
(
'.danshu_renjun'
).
html
(
dealJineNum
(
Number
(
_mdzjZbData
[
'zjyj'
][
'dswcby'
])
/
Number
(
_tableFirstObj
.
find
(
'.renshu_benzhou'
).
html
())));
if
(
_mdzjZbData
[
'zjyj'
][
'dsmbby'
]
!=
''
)
{
_tableFirstObj
.
find
(
'.danshu_mubiao'
).
val
(
_mdzjZbData
[
'zjyj'
][
'dsmbby'
]);
_tableFirstObj
.
find
(
'.danshu_chae'
).
html
(
dealJineNum
(
Number
(
_mdzjZbData
[
'zjyj'
][
'dsmbby'
])
-
Number
(
_mdzjZbData
[
'zjyj'
][
'dswcby'
])));
};
};
};
// _mdzjZbData['sjcn']['jl'] != '' && _sjcnObjJl.html(_mdzjZbData['sjcn']['jl']).addClass('color-submit');
...
...
@@ -468,6 +479,27 @@ $(function() {
_tableObj
.
find
(
'.shangsheng_xiahua'
).
html
(
dealJineNum
(
Number
(
_yejiBenzhou
)
-
Number
(
_this
.
val
())));
}
});
_doc
.
on
(
'input'
,
'.danshu_mubiao'
,
function
(
e
)
{
e
.
preventDefault
();
e
.
stopPropagation
();
var
_this
=
$
(
this
);
var
_tableObj
=
_this
.
closest
(
'table'
);
var
_danshuWancheng
=
_tableObj
.
find
(
'.danshu_wancheng'
).
val
();
if
(
_danshuWancheng
!==
''
)
{
_tableObj
.
find
(
'.danshu_chae'
).
html
(
dealJineNum
(
Number
(
_this
.
val
())
-
Number
(
_danshuWancheng
)));
}
});
_doc
.
on
(
'input'
,
'.danshu_wancheng'
,
function
(
e
)
{
e
.
preventDefault
();
e
.
stopPropagation
();
var
_this
=
$
(
this
);
var
_tableObj
=
_this
.
closest
(
'table'
);
var
_danshuMubiao
=
_tableObj
.
find
(
'.danshu_mubiao'
).
val
();
if
(
_danshuMubiao
!==
''
)
{
_tableObj
.
find
(
'.danshu_chae'
).
html
(
dealJineNum
(
Number
(
_danshuMubiao
)
-
Number
(
_this
.
val
())));
_tableObj
.
find
(
'.danshu_renjun'
).
html
(
dealJineNum
(
Number
(
_this
.
val
())
/
Number
(
_tableObj
.
find
(
'.renshu_benzhou'
).
html
())));
}
});
_btnOkObj
.
click
(
function
(
e
)
{
e
.
preventDefault
();
...
...
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