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
e298e283
Commit
e298e283
authored
May 07, 2018
by
hujun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改财务审核
parent
39b1a1ab
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
104 additions
and
106 deletions
+104
-106
Finance.php
application/index/controller/Finance.php
+35
-37
OBargainModel.php
application/model/OBargainModel.php
+1
-1
reportList.js
public/resource/js/reportList.js
+68
-68
No files found.
application/index/controller/Finance.php
View file @
e298e283
...
@@ -29,35 +29,53 @@ class Finance extends Basic
...
@@ -29,35 +29,53 @@ class Finance extends Basic
*/
*/
public
function
reportList
()
{
public
function
reportList
()
{
if
(
$this
->
request
->
isAjax
())
{
if
(
!
$this
->
request
->
isAjax
())
{
$result
=
''
;
switch
(
$this
->
params
[
'check_status'
])
{
case
0
:
//未结单
$result
=
view
(
'finance/account_statement'
);
break
;
case
4
:
//已结单
$result
=
view
(
'finance/statement'
);
break
;
case
5
:
//待撤销
$result
=
view
(
'finance/wait_backout'
);
break
;
case
6
:
//已撤销
$result
=
view
(
'finance/statement_backout'
);
break
;
}
return
$result
;
}
$data
[
'code'
]
=
200
;
$data
[
'code'
]
=
200
;
$data
[
'msg'
]
=
""
;
$data
[
'msg'
]
=
""
;
$data
[
'data'
]
=
[];
$data
[
'data'
]
=
[];
if
(
$this
->
request
->
isGet
())
{
$pageNo
=
empty
(
$this
->
params
[
'pageNo'
])
?
1
:
$this
->
params
[
'pageNo'
];
$pageNo
=
empty
(
$this
->
params
[
'pageNo'
])
?
1
:
$this
->
params
[
'pageNo'
];
$pageSize
=
empty
(
$this
->
params
[
'pageSize'
])
?
15
:
$this
->
params
[
'pageSize'
];
$pageSize
=
empty
(
$this
->
params
[
'pageSize'
])
?
15
:
$this
->
params
[
'pageSize'
];
$fields
=
'a.id,a.create_time,b.user_phone,b.user_name,d.internal_title,d.internal_address,a.commission,a.practical_fee,a.order_no,content'
;
$fields
=
'a.id,a.create_time,b.user_phone,b.user_name,d.internal_title,d.internal_address,a.commission,a.practical_fee,a.order_no,content'
;
$where
[
'a.father_id'
]
=
0
;
$where
[
'a.father_id'
]
=
0
;
$where
[
'c.is_del'
]
=
0
;
$where
[
'c.is_del'
]
=
0
;
$where
[
'e.audit_level'
]
=
0
;
$where
[
'a.status'
]
=
10
;
$where
[
'a.status'
]
=
10
;
$check_status
=
[
0
,
1
,
2
,
3
,
4
]
;
$order
=
'e.id desc'
;
if
(
in_array
(
$this
->
params
[
'check_status'
],
$check_status
))
{
switch
(
$this
->
params
[
'check_status'
])
{
switch
(
$this
->
params
[
'check_status'
])
{
case
1
:
case
1
:
//成交报告列表-专员
审核
//成交报告列表-经理
审核
$where
[
'e.audit_level'
]
=
[
'NOT IN'
,
'0,2,3'
]
;
$where
[
'e.audit_level'
]
=
0
;
break
;
break
;
case
2
:
case
2
:
//成交报告列表-经理
审核
//成交报告列表-总监
审核
$where
[
'e.audit_level'
]
=
[
'NOT IN'
,
'0,1,3'
]
;
$where
[
'e.audit_level'
]
=
1
;
break
;
break
;
case
3
:
case
3
:
//成交报告列表-总监
审核
//成交报告列表-出纳
审核
$where
[
'e.audit_level'
]
=
[
'NOT IN'
,
'0,1,2'
]
;
$where
[
'e.audit_level'
]
=
2
;
break
;
break
;
case
4
:
case
4
:
//成交报告列表-已结单
//成交报告列表-已结单
...
@@ -94,10 +112,9 @@ class Finance extends Basic
...
@@ -94,10 +112,9 @@ class Finance extends Basic
$where
[
'a.status'
]
=
21
;
$where
[
'a.status'
]
=
21
;
break
;
break
;
default
:
default
:
$where
[
'e.audit_level'
]
=
[
'NULL'
];
//成交报告列表-专员审核
}
$where
[
'e.audit_level'
]
=
NULL
;
}
else
{
$order
=
'a.id DESC'
;
$where
[
'e.audit_level'
]
=
[
'NULL'
];
}
}
if
(
!
empty
(
$this
->
params
[
'status'
]))
{
if
(
!
empty
(
$this
->
params
[
'status'
]))
{
...
@@ -105,29 +122,10 @@ class Finance extends Basic
...
@@ -105,29 +122,10 @@ class Finance extends Basic
}
}
$bargain
=
new
OBargainModel
();
$bargain
=
new
OBargainModel
();
$data
[
'data'
][
'list'
]
=
$bargain
->
getBargain
(
$pageNo
,
$pageSize
,
'a.id DESC'
,
$fields
,
$where
);
$data
[
'data'
][
'list'
]
=
$bargain
->
getBargain
(
$pageNo
,
$pageSize
,
$order
,
$fields
,
$where
);
$data
[
'data'
][
'total'
]
=
$bargain
->
getBargainTotal
(
$where
);
$data
[
'data'
][
'total'
]
=
$bargain
->
getBargainTotal
(
$where
);
}
$result
=
$this
->
response
(
$data
[
'code'
],
$data
[
'msg'
],
$data
[
'data'
]);
}
else
{
$result
=
''
;
switch
(
$this
->
params
[
'check_status'
])
{
case
0
:
//未结单
$result
=
view
(
'finance/account_statement'
);
break
;
case
4
:
//已结单
$result
=
view
(
'finance/statement'
);
break
;
case
5
:
//待撤销
$result
=
view
(
'finance/wait_backout'
);
break
;
case
6
:
//已撤销
$result
=
view
(
'finance/statement_backout'
);
break
;
}
}
return
$
result
;
return
$
this
->
response
(
$data
[
'code'
],
$data
[
'msg'
],
$data
[
'data'
])
;
}
}
/**
/**
...
@@ -144,7 +142,7 @@ class Finance extends Basic
...
@@ -144,7 +142,7 @@ class Finance extends Basic
$data
[
'data'
]
=
[];
$data
[
'data'
]
=
[];
$bargain
=
new
OBargainModel
();
$bargain
=
new
OBargainModel
();
//dump($this->params);die;
if
(
empty
(
$this
->
params
[
'id'
])
||
empty
(
$this
->
params
[
'source'
])
||
empty
(
$this
->
params
[
'status'
]))
{
if
(
empty
(
$this
->
params
[
'id'
])
||
empty
(
$this
->
params
[
'source'
])
||
empty
(
$this
->
params
[
'status'
]))
{
$data
[
'code'
]
=
101
;
$data
[
'code'
]
=
101
;
$data
[
'msg'
]
=
'Id is null'
;
$data
[
'msg'
]
=
'Id is null'
;
...
...
application/model/OBargainModel.php
View file @
e298e283
...
@@ -278,7 +278,7 @@ class OBargainModel extends Model
...
@@ -278,7 +278,7 @@ class OBargainModel extends Model
* @throws \think\exception\DbException
* @throws \think\exception\DbException
* @throws \think\exception\PDOException
* @throws \think\exception\PDOException
*/
*/
public
function
addCheckBargain
(
int
$id
,
array
$data
,
int
$source
,
int
$status
)
:
array
{
public
function
addCheckBargain
(
int
$id
,
array
$data
,
int
$source
,
int
$status
)
:
bool
{
$this
->
startTrans
();
$this
->
startTrans
();
$bargain_data
=
$this
->
field
(
'id,report_id,agent_id,order_no,order_id'
)
->
where
([
$bargain_data
=
$this
->
field
(
'id,report_id,agent_id,order_no,order_id'
)
->
where
([
'id'
=>
$id
,
'id'
=>
$id
,
...
...
public/resource/js/reportList.js
View file @
e298e283
define
([
'doT'
,
'text!temp/reportList_template_tpl.html'
,
'css!style/home.css'
,
'ckfinder'
,
'ckfinderStart'
,
'pagination'
,
'bootstrapJs'
],
function
(
doT
,
template
)
{
define
([
'doT'
,
'text!temp/reportList_template_tpl.html'
,
'css!style/home.css'
,
'ckfinder'
,
'ckfinderStart'
,
'pagination'
,
'bootstrapJs'
],
function
(
doT
,
template
)
{
follow
=
{
bargain
=
{
pageNo
:
1
,
pageNo
:
1
,
/*第几页*/
/*第几页*/
pageSize
:
10
,
pageSize
:
10
,
/*每页显示多少条*/
/*每页显示多少条*/
id
:
''
,
id
:
''
,
house
_id
:
''
,
bargain
_id
:
''
,
type
:
''
,
type
:
''
,
valueCurrent
:
''
,
valueCurrent
:
''
,
ajaxObj
:
''
,
ajaxObj
:
''
,
...
@@ -15,68 +14,74 @@ define(['doT', 'text!temp/reportList_template_tpl.html', 'css!style/home.css', '
...
@@ -15,68 +14,74 @@ define(['doT', 'text!temp/reportList_template_tpl.html', 'css!style/home.css', '
init
:
function
()
{
init
:
function
()
{
//初始化dot
//初始化dot
$
(
document
.
body
).
append
(
template
);
$
(
document
.
body
).
append
(
template
);
follow
.
getList
(
0
);
bargain
.
getList
(
0
);
follow
.
event
();
bargain
.
event
();
},
},
event
:
function
()
{
event
:
function
()
{
$
(
"#search"
).
click
(
function
()
{
$
(
"#search"
).
click
(
function
()
{
follow
.
getList
(
1
);
bargain
.
getList
(
1
);
});
});
$
(
"#reset"
).
click
(
function
()
{
//重置
$
(
"#reset"
).
click
(
function
()
{
//重置
document
.
getElementById
(
"form_search"
).
reset
();
document
.
getElementById
(
"form_search"
).
reset
();
});
});
$
(
document
).
delegate
(
".timeline"
,
"click"
,
function
()
{
//时间轴
$
(
document
).
delegate
(
".timeline"
,
"click"
,
function
()
{
//时间轴
follow
.
Timeline
();
bargain
.
Timeline
();
});
});
$
(
document
).
delegate
(
".edit"
,
"click"
,
function
()
{
//点击编辑
$
(
document
).
delegate
(
".edit"
,
"click"
,
function
()
{
//点击编辑
follow
.
house_id
=
$
(
this
).
attr
(
"data-id"
);
bargain
.
bargain_id
=
$
(
this
).
attr
(
"data-id"
);
follow
.
Edit
();
bargain
.
Edit
();
});
$
(
document
).
delegate
(
".is_pass"
,
"click"
,
function
()
{
//点击编辑
bargain
.
bargain_id
=
$
(
this
).
attr
(
"data-id"
);
});
});
$
(
document
).
delegate
(
"#confirm_edit"
,
"click"
,
function
()
{
//点击成交信息确定
$
(
document
).
delegate
(
"#confirm_edit"
,
"click"
,
function
()
{
//点击成交信息确定
follow
.
confirmEdit
();
bargain
.
confirmEdit
();
});
});
$
(
document
).
delegate
(
".caozuo"
,
"click"
,
function
()
{
//点击分佣提成
$
(
document
).
delegate
(
".caozuo"
,
"click"
,
function
()
{
//点击分佣提成
follow
.
Caozuo
();
bargain
.
Caozuo
();
});
});
$
(
document
).
delegate
(
"#records"
,
"click"
,
function
()
{
//点击收款记录
$
(
document
).
delegate
(
"#records"
,
"click"
,
function
()
{
//点击收款记录
follow
.
Records
();
bargain
.
Records
();
});
});
$
(
document
).
delegate
(
"#confirm_pass"
,
"click"
,
function
()
{
//点击通过按钮
$
(
document
).
delegate
(
"#confirm_pass"
,
"click"
,
function
()
{
//点击通过按钮
follow
.
confirmPass
();
bargain
.
confirmPass
();
});
});
// 点击新增分佣提成
// 点击新增分佣提成
$
(
document
).
delegate
(
"#new-commission"
,
"click"
,
function
()
{
//点击分佣提成
$
(
document
).
delegate
(
"#new-commission"
,
"click"
,
function
()
{
//点击分佣提成
follow
.
newCommission
();
bargain
.
newCommission
();
follow
.
Caozuo
();
bargain
.
Caozuo
();
});
});
//table切换
//table切换
$
(
document
).
delegate
(
"#information"
,
"click"
,
function
()
{
$
(
document
).
delegate
(
"#information"
,
"click"
,
function
()
{
follow
.
Information
();
bargain
.
Information
();
});
});
$
(
document
).
delegate
(
"#fees"
,
"click"
,
function
()
{
$
(
document
).
delegate
(
"#fees"
,
"click"
,
function
()
{
follow
.
Fees
();
bargain
.
Fees
();
});
});
//专员审核 总监审核 经理审核 出纳审核
//专员审核 总监审核 经理审核 出纳审核
$
(
document
).
delegate
(
"#commissioner"
,
"click"
,
function
()
{
$
(
document
).
delegate
(
"#commissioner"
,
"click"
,
function
()
{
follow
.
Commissioner
();
bargain
.
Commissioner
();
});
});
$
(
document
).
delegate
(
"#manager"
,
"click"
,
function
()
{
$
(
document
).
delegate
(
"#manager"
,
"click"
,
function
()
{
follow
.
Manager
();
bargain
.
Manager
();
});
});
$
(
document
).
delegate
(
"#director"
,
"click"
,
function
()
{
$
(
document
).
delegate
(
"#director"
,
"click"
,
function
()
{
follow
.
Director
();
bargain
.
Director
();
});
});
$
(
document
).
delegate
(
"#cashier"
,
"click"
,
function
()
{
$
(
document
).
delegate
(
"#cashier"
,
"click"
,
function
()
{
follow
.
Cashier
();
bargain
.
Cashier
();
});
});
},
},
Timeline
:
function
(){
//获取时间轴
Timeline
:
function
(){
//获取时间轴
$
.
ajax
({
$
.
ajax
({
'type'
:
'GET'
,
'type'
:
'GET'
,
'url'
:
'/index/selectReportAll'
,
'url'
:
'/index/selectReportAll'
,
data
:
{
"order_id"
:
follow
.
house
_id
},
data
:
{
"order_id"
:
bargain
.
bargain
_id
},
dataType
:
"json"
,
dataType
:
"json"
,
success
:
function
(
data
){
success
:
function
(
data
){
if
(
data
.
code
==
200
){
if
(
data
.
code
==
200
){
...
@@ -102,7 +107,7 @@ define(['doT', 'text!temp/reportList_template_tpl.html', 'css!style/home.css', '
...
@@ -102,7 +107,7 @@ define(['doT', 'text!temp/reportList_template_tpl.html', 'css!style/home.css', '
$
.
ajax
({
$
.
ajax
({
'type'
:
'GET'
,
'type'
:
'GET'
,
'url'
:
'/index/bargainInfo'
,
'url'
:
'/index/bargainInfo'
,
data
:
{
"id"
:
follow
.
house
_id
},
data
:
{
"id"
:
bargain
.
bargain
_id
},
dataType
:
"json"
,
dataType
:
"json"
,
success
:
function
(
data
){
success
:
function
(
data
){
if
(
data
.
code
==
200
){
if
(
data
.
code
==
200
){
...
@@ -125,7 +130,7 @@ define(['doT', 'text!temp/reportList_template_tpl.html', 'css!style/home.css', '
...
@@ -125,7 +130,7 @@ define(['doT', 'text!temp/reportList_template_tpl.html', 'css!style/home.css', '
$
.
ajax
({
$
.
ajax
({
'type'
:
'POST'
,
'type'
:
'POST'
,
'url'
:
'/index/editBargainInfo'
,
'url'
:
'/index/editBargainInfo'
,
data
:
{
"id"
:
follow
.
house
_id
,
data
:
{
"id"
:
bargain
.
bargain
_id
,
"scale_fee"
:
$
(
".commission"
).
val
(),
"scale_fee"
:
$
(
".commission"
).
val
(),
"practical_fee"
:
$
(
".practical_fee"
).
val
()
"practical_fee"
:
$
(
".practical_fee"
).
val
()
},
},
...
@@ -142,7 +147,6 @@ define(['doT', 'text!temp/reportList_template_tpl.html', 'css!style/home.css', '
...
@@ -142,7 +147,6 @@ define(['doT', 'text!temp/reportList_template_tpl.html', 'css!style/home.css', '
},
},
//通过
//通过
confirmPass
:
function
(){
//点击通过
confirmPass
:
function
(){
//点击通过
console
.
log
(
$
(
'.btn-info'
).
index
());
var
a_url
;
var
a_url
;
if
(
$
(
'.btn-info'
).
index
()
==
0
){
if
(
$
(
'.btn-info'
).
index
()
==
0
){
a_url
=
"/index/checkReportAttache/0"
a_url
=
"/index/checkReportAttache/0"
...
@@ -156,12 +160,11 @@ define(['doT', 'text!temp/reportList_template_tpl.html', 'css!style/home.css', '
...
@@ -156,12 +160,11 @@ define(['doT', 'text!temp/reportList_template_tpl.html', 'css!style/home.css', '
if
(
$
(
'.btn-info'
).
index
()
==
3
)
{
if
(
$
(
'.btn-info'
).
index
()
==
3
)
{
a_url
=
"/index/checkReportCashier/3"
a_url
=
"/index/checkReportCashier/3"
};
};
// console.log($('.btn-info').index());
console
.
log
(
follow
.
house_id
);
$
.
ajax
({
$
.
ajax
({
'type'
:
'POST'
,
'type'
:
'POST'
,
'url'
:
a_url
,
'url'
:
a_url
,
data
:
{
"id"
:
follow
.
house
_id
,
data
:
{
"id"
:
bargain
.
bargain
_id
,
"source"
:
1
,
"source"
:
1
,
"status"
:
10
,
"status"
:
10
,
"remark"
:
$
(
"#note_text"
).
val
(),
"remark"
:
$
(
"#note_text"
).
val
(),
...
@@ -169,21 +172,18 @@ define(['doT', 'text!temp/reportList_template_tpl.html', 'css!style/home.css', '
...
@@ -169,21 +172,18 @@ define(['doT', 'text!temp/reportList_template_tpl.html', 'css!style/home.css', '
dataType
:
"json"
,
dataType
:
"json"
,
success
:
function
(
data
){
success
:
function
(
data
){
if
(
data
.
code
==
200
){
if
(
data
.
code
==
200
){
if
(
data
.
data
)
{
bargain
.
getList
(
1
);
console
.
log
(
666
);
}
}
else
{
}
else
{
alert
(
'获取
失败!'
);
alert
(
'通过
失败!'
);
}
}
}
}
});
});
},
},
Caozuo
:
function
(){
//分佣提成数据
Caozuo
:
function
(){
//分佣提成数据
$
.
ajax
({
$
.
ajax
({
'type'
:
'GET'
,
'type'
:
'GET'
,
'url'
:
'/index/commissionList'
,
'url'
:
'/index/commissionList'
,
data
:
{
"id"
:
follow
.
house
_id
},
data
:
{
"id"
:
bargain
.
bargain
_id
},
dataType
:
"json"
,
dataType
:
"json"
,
success
:
function
(
data
){
success
:
function
(
data
){
if
(
data
.
code
==
200
){
if
(
data
.
code
==
200
){
...
@@ -221,7 +221,7 @@ define(['doT', 'text!temp/reportList_template_tpl.html', 'css!style/home.css', '
...
@@ -221,7 +221,7 @@ define(['doT', 'text!temp/reportList_template_tpl.html', 'css!style/home.css', '
$
.
ajax
({
$
.
ajax
({
'type'
:
'GET'
,
'type'
:
'GET'
,
'url'
:
'/index/payLogList'
,
'url'
:
'/index/payLogList'
,
data
:
{
"id"
:
follow
.
house
_id
},
data
:
{
"id"
:
bargain
.
bargain
_id
},
dataType
:
"json"
,
dataType
:
"json"
,
success
:
function
(
data
){
success
:
function
(
data
){
if
(
data
.
code
==
200
){
if
(
data
.
code
==
200
){
...
@@ -298,7 +298,7 @@ define(['doT', 'text!temp/reportList_template_tpl.html', 'css!style/home.css', '
...
@@ -298,7 +298,7 @@ define(['doT', 'text!temp/reportList_template_tpl.html', 'css!style/home.css', '
$
.
ajax
({
$
.
ajax
({
'type'
:
'POST'
,
'type'
:
'POST'
,
'url'
:
'/index/addBargain'
,
'url'
:
'/index/addBargain'
,
data
:
{
"id"
:
follow
.
house
_id
,
data
:
{
"id"
:
bargain
.
bargain
_id
,
"role"
:
$
(
"#is_carefully_chosen"
).
val
(),
"role"
:
$
(
"#is_carefully_chosen"
).
val
(),
"scale"
:
$
(
"#commission-rate"
).
val
(),
"scale"
:
$
(
"#commission-rate"
).
val
(),
"scale_fee"
:
$
(
"#should-commission"
).
val
(),
"scale_fee"
:
$
(
"#should-commission"
).
val
(),
...
@@ -345,10 +345,10 @@ define(['doT', 'text!temp/reportList_template_tpl.html', 'css!style/home.css', '
...
@@ -345,10 +345,10 @@ define(['doT', 'text!temp/reportList_template_tpl.html', 'css!style/home.css', '
'type'
:
'POST'
,
'type'
:
'POST'
,
'url'
:
'/index/pcEditClient'
,
'url'
:
'/index/pcEditClient'
,
data
:
{
data
:
{
"id"
:
follow
.
house
_id
,
"id"
:
bargain
.
bargain
_id
,
"user_nick"
:
$
(
"#cus_name"
).
val
(),
"user_nick"
:
$
(
"#cus_name"
).
val
(),
"user_phone"
:
$
(
"#cus_phone"
).
html
(),
"user_phone"
:
$
(
"#cus_phone"
).
html
(),
"agent_id"
:
follow
.
agent_id
,
//客方
"agent_id"
:
bargain
.
agent_id
,
//客方
"sex"
:
$
(
"#sex"
).
val
()
"sex"
:
$
(
"#sex"
).
val
()
},
},
dataType
:
"json"
,
dataType
:
"json"
,
...
@@ -371,11 +371,11 @@ define(['doT', 'text!temp/reportList_template_tpl.html', 'css!style/home.css', '
...
@@ -371,11 +371,11 @@ define(['doT', 'text!temp/reportList_template_tpl.html', 'css!style/home.css', '
$
(
"#director"
).
addClass
(
"btn-default"
);
$
(
"#director"
).
addClass
(
"btn-default"
);
$
(
"#cashier"
).
removeClass
(
"btn-info"
);
$
(
"#cashier"
).
removeClass
(
"btn-info"
);
$
(
"#cashier"
).
addClass
(
"btn-default"
);
$
(
"#cashier"
).
addClass
(
"btn-default"
);
console
.
log
(
$
(
'.btn-info'
).
index
());
follow
.
pageNo
=
pageNo
;
bargain
.
pageNo
=
pageNo
;
var
params
=
{};
var
params
=
{};
params
.
pageNo
=
follow
.
pageNo
;
params
.
pageNo
=
bargain
.
pageNo
;
params
.
pageSize
=
follow
.
pageSize
;
params
.
pageSize
=
bargain
.
pageSize
;
$
.
ajax
({
$
.
ajax
({
type
:
'GET'
,
type
:
'GET'
,
...
@@ -390,9 +390,8 @@ define(['doT', 'text!temp/reportList_template_tpl.html', 'css!style/home.css', '
...
@@ -390,9 +390,8 @@ define(['doT', 'text!temp/reportList_template_tpl.html', 'css!style/home.css', '
var
doTtmpl
=
doT
.
template
(
document
.
getElementById
(
'reportList_list_tpl'
).
innerHTML
);
var
doTtmpl
=
doT
.
template
(
document
.
getElementById
(
'reportList_list_tpl'
).
innerHTML
);
$
(
"#follow_list"
).
html
(
doTtmpl
(
data
.
data
.
list
));
$
(
"#follow_list"
).
html
(
doTtmpl
(
data
.
data
.
list
));
// var user_info_obj = JSON.parse(decodeURIComponent(sessionStorage.getItem('pcUserInfo')));
// var user_info_obj = JSON.parse(decodeURIComponent(sessionStorage.getItem('pcUserInfo')));
// console.log(user_info_obj.level);
/*分页代码*/
/*分页代码*/
add_page
(
data
.
data
.
total
,
pageNo
,
follow
.
pageSize
,
follow
.
getList
);
add_page
(
data
.
data
.
total
,
pageNo
,
bargain
.
pageSize
,
bargain
.
getList
);
}
else
{
}
else
{
alert
(
data
[
'msg'
]);
alert
(
data
[
'msg'
]);
...
@@ -423,11 +422,11 @@ define(['doT', 'text!temp/reportList_template_tpl.html', 'css!style/home.css', '
...
@@ -423,11 +422,11 @@ define(['doT', 'text!temp/reportList_template_tpl.html', 'css!style/home.css', '
$
(
"#director"
).
addClass
(
"btn-default"
);
$
(
"#director"
).
addClass
(
"btn-default"
);
$
(
"#cashier"
).
removeClass
(
"btn-info"
);
$
(
"#cashier"
).
removeClass
(
"btn-info"
);
$
(
"#cashier"
).
addClass
(
"btn-default"
);
$
(
"#cashier"
).
addClass
(
"btn-default"
);
console
.
log
(
$
(
'.btn-info'
).
index
());
follow
.
pageNo
=
pageNo
;
bargain
.
pageNo
=
pageNo
;
var
params
=
{};
var
params
=
{};
params
.
pageNo
=
follow
.
pageNo
;
params
.
pageNo
=
bargain
.
pageNo
;
params
.
pageSize
=
follow
.
pageSize
;
params
.
pageSize
=
bargain
.
pageSize
;
$
.
ajax
({
$
.
ajax
({
type
:
'GET'
,
type
:
'GET'
,
...
@@ -442,9 +441,9 @@ define(['doT', 'text!temp/reportList_template_tpl.html', 'css!style/home.css', '
...
@@ -442,9 +441,9 @@ define(['doT', 'text!temp/reportList_template_tpl.html', 'css!style/home.css', '
var
doTtmpl
=
doT
.
template
(
document
.
getElementById
(
'reportList_list_tpl'
).
innerHTML
);
var
doTtmpl
=
doT
.
template
(
document
.
getElementById
(
'reportList_list_tpl'
).
innerHTML
);
$
(
"#follow_list"
).
html
(
doTtmpl
(
data
.
data
.
list
));
$
(
"#follow_list"
).
html
(
doTtmpl
(
data
.
data
.
list
));
var
user_info_obj
=
JSON
.
parse
(
decodeURIComponent
(
sessionStorage
.
getItem
(
'pcUserInfo'
)));
var
user_info_obj
=
JSON
.
parse
(
decodeURIComponent
(
sessionStorage
.
getItem
(
'pcUserInfo'
)));
console
.
log
(
user_info_obj
.
level
);
/*分页代码*/
/*分页代码*/
add_page
(
data
.
data
.
total
,
pageNo
,
follow
.
pageSize
,
follow
.
getList
);
add_page
(
data
.
data
.
total
,
pageNo
,
bargain
.
pageSize
,
bargain
.
getList
);
}
else
{
}
else
{
alert
(
data
[
'msg'
]);
alert
(
data
[
'msg'
]);
...
@@ -476,11 +475,11 @@ define(['doT', 'text!temp/reportList_template_tpl.html', 'css!style/home.css', '
...
@@ -476,11 +475,11 @@ define(['doT', 'text!temp/reportList_template_tpl.html', 'css!style/home.css', '
$
(
"#director"
).
addClass
(
"btn-info"
);
$
(
"#director"
).
addClass
(
"btn-info"
);
$
(
"#cashier"
).
removeClass
(
"btn-info"
);
$
(
"#cashier"
).
removeClass
(
"btn-info"
);
$
(
"#cashier"
).
addClass
(
"btn-default"
);
$
(
"#cashier"
).
addClass
(
"btn-default"
);
console
.
log
(
$
(
'.btn-info'
).
index
());
follow
.
pageNo
=
pageNo
;
bargain
.
pageNo
=
pageNo
;
var
params
=
{};
var
params
=
{};
params
.
pageNo
=
follow
.
pageNo
;
params
.
pageNo
=
bargain
.
pageNo
;
params
.
pageSize
=
follow
.
pageSize
;
params
.
pageSize
=
bargain
.
pageSize
;
$
.
ajax
({
$
.
ajax
({
type
:
'GET'
,
type
:
'GET'
,
...
@@ -495,9 +494,9 @@ define(['doT', 'text!temp/reportList_template_tpl.html', 'css!style/home.css', '
...
@@ -495,9 +494,9 @@ define(['doT', 'text!temp/reportList_template_tpl.html', 'css!style/home.css', '
var
doTtmpl
=
doT
.
template
(
document
.
getElementById
(
'reportList_list_tpl'
).
innerHTML
);
var
doTtmpl
=
doT
.
template
(
document
.
getElementById
(
'reportList_list_tpl'
).
innerHTML
);
$
(
"#follow_list"
).
html
(
doTtmpl
(
data
.
data
.
list
));
$
(
"#follow_list"
).
html
(
doTtmpl
(
data
.
data
.
list
));
var
user_info_obj
=
JSON
.
parse
(
decodeURIComponent
(
sessionStorage
.
getItem
(
'pcUserInfo'
)));
var
user_info_obj
=
JSON
.
parse
(
decodeURIComponent
(
sessionStorage
.
getItem
(
'pcUserInfo'
)));
console
.
log
(
user_info_obj
.
level
);
/*分页代码*/
/*分页代码*/
add_page
(
data
.
data
.
total
,
pageNo
,
follow
.
pageSize
,
follow
.
getList
);
add_page
(
data
.
data
.
total
,
pageNo
,
bargain
.
pageSize
,
bargain
.
getList
);
}
else
{
}
else
{
alert
(
data
[
'msg'
]);
alert
(
data
[
'msg'
]);
...
@@ -528,11 +527,11 @@ define(['doT', 'text!temp/reportList_template_tpl.html', 'css!style/home.css', '
...
@@ -528,11 +527,11 @@ define(['doT', 'text!temp/reportList_template_tpl.html', 'css!style/home.css', '
$
(
"#director"
).
addClass
(
"btn-default"
);
$
(
"#director"
).
addClass
(
"btn-default"
);
$
(
"#cashier"
).
removeClass
(
"btn-default"
);
$
(
"#cashier"
).
removeClass
(
"btn-default"
);
$
(
"#cashier"
).
addClass
(
"btn-info"
);
$
(
"#cashier"
).
addClass
(
"btn-info"
);
console
.
log
(
$
(
'.btn-info'
).
index
());
follow
.
pageNo
=
pageNo
;
bargain
.
pageNo
=
pageNo
;
var
params
=
{};
var
params
=
{};
params
.
pageNo
=
follow
.
pageNo
;
params
.
pageNo
=
bargain
.
pageNo
;
params
.
pageSize
=
follow
.
pageSize
;
params
.
pageSize
=
bargain
.
pageSize
;
$
.
ajax
({
$
.
ajax
({
type
:
'GET'
,
type
:
'GET'
,
...
@@ -547,9 +546,9 @@ define(['doT', 'text!temp/reportList_template_tpl.html', 'css!style/home.css', '
...
@@ -547,9 +546,9 @@ define(['doT', 'text!temp/reportList_template_tpl.html', 'css!style/home.css', '
var
doTtmpl
=
doT
.
template
(
document
.
getElementById
(
'reportList_list_tpl'
).
innerHTML
);
var
doTtmpl
=
doT
.
template
(
document
.
getElementById
(
'reportList_list_tpl'
).
innerHTML
);
$
(
"#follow_list"
).
html
(
doTtmpl
(
data
.
data
.
list
));
$
(
"#follow_list"
).
html
(
doTtmpl
(
data
.
data
.
list
));
var
user_info_obj
=
JSON
.
parse
(
decodeURIComponent
(
sessionStorage
.
getItem
(
'pcUserInfo'
)));
var
user_info_obj
=
JSON
.
parse
(
decodeURIComponent
(
sessionStorage
.
getItem
(
'pcUserInfo'
)));
console
.
log
(
user_info_obj
.
level
);
/*分页代码*/
/*分页代码*/
add_page
(
data
.
data
.
total
,
pageNo
,
follow
.
pageSize
,
follow
.
getList
);
add_page
(
data
.
data
.
total
,
pageNo
,
bargain
.
pageSize
,
bargain
.
getList
);
}
else
{
}
else
{
alert
(
data
[
'msg'
]);
alert
(
data
[
'msg'
]);
...
@@ -571,10 +570,10 @@ define(['doT', 'text!temp/reportList_template_tpl.html', 'css!style/home.css', '
...
@@ -571,10 +570,10 @@ define(['doT', 'text!temp/reportList_template_tpl.html', 'css!style/home.css', '
//出纳审核
//出纳审核
getList
:
function
(
pageNo
)
{
getList
:
function
(
pageNo
)
{
follow
.
pageNo
=
pageNo
;
bargain
.
pageNo
=
pageNo
;
var
params
=
{};
var
params
=
{};
params
.
pageNo
=
follow
.
pageNo
;
params
.
pageNo
=
bargain
.
pageNo
;
params
.
pageSize
=
follow
.
pageSize
;
params
.
pageSize
=
bargain
.
pageSize
;
$
.
ajax
({
$
.
ajax
({
type
:
'GET'
,
type
:
'GET'
,
...
@@ -589,7 +588,7 @@ define(['doT', 'text!temp/reportList_template_tpl.html', 'css!style/home.css', '
...
@@ -589,7 +588,7 @@ define(['doT', 'text!temp/reportList_template_tpl.html', 'css!style/home.css', '
var
doTtmpl
=
doT
.
template
(
document
.
getElementById
(
'reportList_list_tpl'
).
innerHTML
);
var
doTtmpl
=
doT
.
template
(
document
.
getElementById
(
'reportList_list_tpl'
).
innerHTML
);
$
(
"#follow_list"
).
html
(
doTtmpl
(
data
.
data
.
list
));
$
(
"#follow_list"
).
html
(
doTtmpl
(
data
.
data
.
list
));
// var user_info_obj = JSON.parse(decodeURIComponent(sessionStorage.getItem('pcUserInfo')));
// var user_info_obj = JSON.parse(decodeURIComponent(sessionStorage.getItem('pcUserInfo')));
// console.log(user_info_obj.level);
// $(".edit").hide();
// $(".edit").hide();
// $(".is_pass").hide();
// $(".is_pass").hide();
// $(".genjing").hide();
// $(".genjing").hide();
...
@@ -599,7 +598,7 @@ define(['doT', 'text!temp/reportList_template_tpl.html', 'css!style/home.css', '
...
@@ -599,7 +598,7 @@ define(['doT', 'text!temp/reportList_template_tpl.html', 'css!style/home.css', '
// }
// }
/*分页代码*/
/*分页代码*/
add_page
(
data
.
data
.
total
,
pageNo
,
follow
.
pageSize
,
follow
.
getList
);
add_page
(
data
.
data
.
total
,
pageNo
,
bargain
.
pageSize
,
bargain
.
getList
);
}
else
{
}
else
{
alert
(
data
[
'msg'
]);
alert
(
data
[
'msg'
]);
...
@@ -619,5 +618,5 @@ define(['doT', 'text!temp/reportList_template_tpl.html', 'css!style/home.css', '
...
@@ -619,5 +618,5 @@ define(['doT', 'text!temp/reportList_template_tpl.html', 'css!style/home.css', '
});
});
}
}
};
};
return
follow
;
return
bargain
;
});
});
\ No newline at end of file
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