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
944c03a8
Commit
944c03a8
authored
Jul 25, 2019
by
agping
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
fd7d157d
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
36 additions
and
13 deletions
+36
-13
accountingTable.html
application/index/view/cost/accountingTable.html
+2
-2
accountingTable.js
public/resource/js/accountingTable.js
+5
-6
public.js
public/resource/js/public.js
+5
-5
quicklyGenerate.js
public/resource/js/quicklyGenerate.js
+24
-0
No files found.
application/index/view/cost/accountingTable.html
View file @
944c03a8
...
...
@@ -20,9 +20,9 @@
<div
class=
"panel-heading breadcrumb"
>
<li>
<span
class=
"manager-title ld-Marheight"
></span>
<input
id=
"count_time"
class=
"form-control ld-Marheight"
type=
"text"
placeholder=
"请选择"
onclick=
"WdatePicker({el:this,dateFmt:'yyyy-MM',readOnly:'readonly' })"
style=
"width: 150px;float: left;"
>
<input
type=
"month"
id=
"count_time"
class=
"form-control ld-Marheight"
placeholder=
"请选择"
style=
"width: 180px;float: left;"
/
>
<a
class=
"btn btn-info is-print ld-Marheight"
style=
"margin-left: 20px;"
>
打印
</a>
<
a
class=
"btn btn-info is-close ld-Marheight"
style=
"margin-left: 20px;"
>
导出excel
</a
>
<
!--<a class="btn btn-info is-close ld-Marheight" style="margin-left: 20px;">导出excel</a>--
>
</li>
</div>
...
...
public/resource/js/accountingTable.js
View file @
944c03a8
...
...
@@ -35,13 +35,12 @@ define(['doT','html2canvas','text!temp/accountingTable_list_template_tpl.html',
var
_doc
=
$
(
document
);
//门店成本 时间搜索
_doc
.
on
(
'input'
,
'#create_time_start'
,
function
()
{
bargain
.
financialTime
=
$
(
'#create_time_start'
).
val
();
if
(
!
(
$
(
'#create_time_start'
).
val
())){
_doc
.
on
(
'input'
,
'#count_time'
,
function
()
{
if
(
!
(
$
(
'#count_time'
).
val
())){
alert
(
'时间不能为空!'
);
return
}
bargain
.
getList
(
1
);
bargain
.
getList
();
});
//点击详情
$
(
document
).
on
(
'click'
,
'.checkCost'
,
function
(
e
){
//点击审核按钮 调整审核页面
...
...
@@ -57,10 +56,10 @@ define(['doT','html2canvas','text!temp/accountingTable_list_template_tpl.html',
},
//获取门店成本数据
getList
:
function
(
pageNo
){
getList
:
function
(){
var
params
=
{
'store_id'
:
bargain
.
store_id
,
'setting_date'
:
$
(
'#count_time'
).
val
()
+
'-01'
,
'setting_date'
:
$
(
'#count_time'
).
val
()
+
'-01'
,
// 'setting_date': "2019-06-01",
// 'store_id':49,
};
...
...
public/resource/js/public.js
View file @
944c03a8
...
...
@@ -400,15 +400,15 @@ function switchFeeSiteId(str){
//费用项目 100房租租金 101水电费 102其他费用 201总部固定成本 301分部固定成本 401同联发展基金 501家庭基金报销 502社保报销 503总经理基薪 504区域秘书基薪 505招聘成本 506区域经理基本工资平摊 507宿舍成本 508宿舍亏损 509手续费 510员工工资成本 511网络报销 512离职员工网络 513门店独有成本其他费用
switch
(
String
(
str
)){
case
'10001'
:
return
'上海
市
'
;
return
'上海'
;
case
'10002'
:
return
'杭州
市
'
;
return
'杭州'
;
case
'10003'
:
return
'深圳
市
'
;
return
'深圳'
;
case
'10004'
:
return
'广州
市
'
;
return
'广州'
;
case
'10005'
:
return
'北京
市
'
;
return
'北京'
;
default
:
return
'暂无数据'
;
}
...
...
public/resource/js/quicklyGenerate.js
View file @
944c03a8
define
([
'doT'
,
'text!temp/cost_details_template_tpl.html'
,
'css!style/home.css'
,
'ckfinder'
,
'ckfinderStart'
,
"datetimepicker"
,
'pagination'
,
'bootstrapJs'
,
'blow-up'
],
function
(
doT
,
template
)
{
var
user_info_obj
=
JSON
.
parse
(
decodeURIComponent
(
localStorage
.
getItem
(
'pcUserInfo'
)));
//读取缓存
cost
=
{
pageNo
:
1
,
/*第几页*/
...
...
@@ -66,6 +68,28 @@ define(['doT', 'text!temp/cost_details_template_tpl.html', 'css!style/home.css',
},
totalFee
:
function
()
{
//一键生成
$
.
ajax
({
url
:
'/index/creationStoreFee'
,
type
:
'post'
,
async
:
true
,
data
:
{
"setting_date"
:
$
(
"#comit_time_start"
).
val
()
+
'-01'
,
"agent_id"
:
user_info_obj
.
id
,
},
dataType
:
'json'
,
success
:
function
(
data
)
{
if
(
data
.
code
==
200
)
{
alert
(
data
.
msg
);
}
else
{
alert
(
data
.
msg
);
}
}
});
},
//获取审核记录
getList
:
function
(){
var
that
=
cost
;
...
...
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