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
90c06161
Commit
90c06161
authored
May 24, 2018
by
xishifeng
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
暂存2
parent
2bd8685a
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
178 additions
and
324 deletions
+178
-324
account_statement.html
application/index/view/finance/account_statement.html
+8
-9
report_list.css
public/resource/css/report_list.css
+14
-0
reportList.js
public/resource/js/reportList.js
+133
-301
reportList_template_tpl.html
public/resource/template/reportList_template_tpl.html
+23
-14
No files found.
application/index/view/finance/account_statement.html
View file @
90c06161
...
@@ -16,7 +16,7 @@
...
@@ -16,7 +16,7 @@
<table
class=
"table table-striped table-bordered table-hover table-condensed"
>
<table
class=
"table table-striped table-bordered table-hover table-condensed"
>
<thead>
<thead>
<tr>
<tr>
<td
colspan=
"9"
>
<td
colspan=
"9"
class=
"maintable-top-sub-tr"
>
<a
class=
"btn btn-info liudan_pic_btn"
id=
"commissioner"
>
第一级审核
</a>
<a
class=
"btn btn-info liudan_pic_btn"
id=
"commissioner"
>
第一级审核
</a>
<a
class=
"btn btn-default liudan_pic_btn"
id=
"manager"
>
第二级审核
</a>
<a
class=
"btn btn-default liudan_pic_btn"
id=
"manager"
>
第二级审核
</a>
<a
class=
"btn btn-default liudan_pic_btn"
id=
"director"
>
第三级审核
</a>
<a
class=
"btn btn-default liudan_pic_btn"
id=
"director"
>
第三级审核
</a>
...
@@ -33,13 +33,13 @@
...
@@ -33,13 +33,13 @@
<input
class=
"form-control btn2 ld-Marheight"
data-rule-phoneus=
"false"
data-rule-required=
"false"
id=
"internal_address"
placeholder=
"商铺地址"
type=
"text"
value=
""
>
<input
class=
"form-control btn2 ld-Marheight"
data-rule-phoneus=
"false"
data-rule-required=
"false"
id=
"internal_address"
placeholder=
"商铺地址"
type=
"text"
value=
""
>
<input
class=
"form-control btn2 ld-Marheight"
data-rule-phoneus=
"false"
data-rule-required=
"false"
id=
"internal_num"
placeholder=
"商铺号"
type=
"text"
value=
""
>
<input
class=
"form-control btn2 ld-Marheight"
data-rule-phoneus=
"false"
data-rule-required=
"false"
id=
"internal_num"
placeholder=
"商铺号"
type=
"text"
value=
""
>
<input
class=
"form-control btn2 ld-Marheight"
data-rule-phoneus=
"false"
data-rule-required=
"false"
id=
"user_phone"
placeholder=
"客户电话"
type=
"text"
value=
""
>
<input
class=
"form-control btn2 ld-Marheight"
data-rule-phoneus=
"false"
data-rule-required=
"false"
id=
"user_phone"
placeholder=
"客户电话"
type=
"text"
value=
""
>
<span
class=
"btn btn-info btn3 search"
id=
"search
0
"
>
搜索
</span>
<span
class=
"btn btn-info btn3 search"
id=
"search"
>
搜索
</span>
<span
class=
"btn btn-info btn3"
id=
"reset"
>
重置
</span>
<span
class=
"btn btn-info btn3"
id=
"reset"
>
重置
</span>
<span
class=
"btn btn-info btn3"
id=
"export"
>
导出excel
</span>
<span
class=
"btn btn-info btn3"
id=
"export"
>
导出excel
</span>
</form>
</form>
</td>
</td>
</tr>
</tr>
<tr>
<tr
class=
"maintable-tr-bar"
>
<th
class=
"text-center"
>
提交时间
</th>
<th
class=
"text-center"
>
提交时间
</th>
<th
class=
"text-center"
>
商铺地址
</th>
<th
class=
"text-center"
>
商铺地址
</th>
<th
class=
"text-center"
>
商铺号
</th>
<th
class=
"text-center"
>
商铺号
</th>
...
@@ -74,10 +74,10 @@
...
@@ -74,10 +74,10 @@
<button
type=
"button"
class=
"close"
data-dismiss=
"modal"
aria-hidden=
"true"
>
<button
type=
"button"
class=
"close"
data-dismiss=
"modal"
aria-hidden=
"true"
>
×
×
</button>
</button>
<h4
class=
"modal-title"
>
<h4
class=
"modal-title
detail-modal-header-tab
"
>
<
span
class=
"btn btn-info"
id=
"information"
>
成交信息
</span
>
<
a
href=
"javascript:;"
class=
"btn btn-info"
id=
"information"
>
成交信息
</a
>
<
span
class=
"btn btn-default caozuo"
id=
"fees"
>
分佣提成
</span>
<
a
href=
"javascript:;"
class=
"btn btn-default caozuo"
id=
"fees"
>
分佣提成
</span>
<
span
class=
"btn btn-default"
id=
"records"
>
开票税费
</span>
<
a
href=
"javascript:;"
class=
"btn btn-default"
id=
"records"
>
开票税费
</span>
</h4>
</h4>
</div>
</div>
<div
class=
"modal-body modal-body-two"
>
<div
class=
"modal-body modal-body-two"
>
...
@@ -111,7 +111,6 @@
...
@@ -111,7 +111,6 @@
<div
class=
"right"
>
<div
class=
"right"
>
<span
class=
"left-deal"
>
是否开业:
</span>
<span
class=
"left-deal"
>
是否开业:
</span>
<select
class=
"form-control"
id=
"is_open"
>
<select
class=
"form-control"
id=
"is_open"
>
<option
value=
"-1"
>
是否开业
</option>
<option
value=
"0"
>
否
</option>
<option
value=
"0"
>
否
</option>
<option
value=
"1"
>
是
</option>
<option
value=
"1"
>
是
</option>
</select>
<br
/>
</select>
<br
/>
...
@@ -141,7 +140,7 @@
...
@@ -141,7 +140,7 @@
<input
type=
"hidden"
class=
"page-pass"
/>
<input
type=
"hidden"
class=
"page-pass"
/>
</div>
</div>
<div>
<div>
<span>
备注:
</span>
<span
class=
"bargain-info-span-beizhu"
>
备注:
</span>
<textarea
name=
""
rows=
""
cols=
""
id=
"note_content"
></textarea>
<textarea
name=
""
rows=
""
cols=
""
id=
"note_content"
></textarea>
</div>
</div>
</form>
</form>
...
...
public/resource/css/report_list.css
View file @
90c06161
...
@@ -143,9 +143,23 @@
...
@@ -143,9 +143,23 @@
width
:
1030px
;
width
:
1030px
;
}
}
/*成交信息tab*/
.bargain-info-span-beizhu
{
/*display: inline-block;
height: 150px;
line-height: 150px;*/
}
#note_content
{
width
:
480px
;
height
:
150px
;
}
/*main-table部分,待补充*/
.maintable-tr-bar
{}
.maintable-tr-bar
>
th
:nth-of-type
(
1
)
{}
/*开票税费tab相关的内容*/
.shuifee-table
{
.shuifee-table
{
width
:
600px
;
width
:
600px
;
}
}
...
...
public/resource/js/reportList.js
View file @
90c06161
...
@@ -4,104 +4,83 @@ define(['doT', 'text!temp/reportList_template_tpl.html', 'text!temp/reportList_s
...
@@ -4,104 +4,83 @@ define(['doT', 'text!temp/reportList_template_tpl.html', 'text!temp/reportList_s
/*第几页*/
/*第几页*/
pageSize
:
10
,
pageSize
:
10
,
/*每页显示多少条*/
/*每页显示多少条*/
id
:
''
,
mainTabIndex
:
0
,
detailTabIndex
:
0
,
bargain_id
:
''
,
bargain_id
:
''
,
stopstatus
:
true
,
boxphoto
:
''
,
init
:
function
()
{
init
:
function
()
{
//初始化dot
//初始化dot
$
(
document
.
body
).
append
(
template
);
$
(
document
.
body
).
append
(
template
);
$
(
document
.
body
).
append
(
template2
);
$
(
document
.
body
).
append
(
template2
);
bargain
.
getList
(
0
);
bargain
.
getList
(
1
);
bargain
.
event
();
bargain
.
event
();
},
},
event
:
function
()
{
event
:
function
()
{
var
_doc
=
$
(
document
);
var
_doc
=
$
(
document
);
_doc
.
on
(
'click'
,
'#search0'
,
function
(
e
)
{
//主页面一级审核,二级审核,三级审核,结单四个tab的点击事件
e
.
preventDefault
();
//专员审核 总监审核 经理审核 出纳审核
e
.
stopPropagation
();
_doc
.
on
(
'click'
,
'.maintable-top-sub-tr>a'
,
function
(
e
){
bargain
.
getList
(
1
);
//一级审核搜索
});
_doc
.
on
(
'click'
,
'#search1'
,
function
(
e
)
{
e
.
preventDefault
();
e
.
stopPropagation
();
bargain
.
Manager
(
1
);
//二级审核搜索
});
_doc
.
on
(
'click'
,
'#search2'
,
function
(
e
)
{
e
.
preventDefault
();
e
.
preventDefault
();
e
.
stopPropagation
();
e
.
stopPropagation
();
bargain
.
Director
(
1
);
//三级级审核搜索
var
_this
=
$
(
this
);
_this
.
removeClass
(
'btn-default'
).
addClass
(
'btn-info'
).
siblings
().
removeClass
(
'btn-info'
).
addClass
(
'btn-default'
);
bargain
.
mainTabIndex
=
_this
.
index
();
console
.
log
(
bargain
.
mainTabIndex
);
bargain
.
getList
(
1
);
});
});
_doc
.
on
(
'click'
,
'#searchStatement'
,
function
(
e
)
{
//搜索按钮的事件
_doc
.
on
(
'click'
,
'#search'
,
function
(
e
)
{
e
.
preventDefault
();
e
.
preventDefault
();
e
.
stopPropagation
();
e
.
stopPropagation
();
bargain
.
Cashier
(
1
);
//结单搜索
$
(
"#reset"
).
click
();
//先重置输入框
bargain
.
getList
(
1
);
//一级审核搜索
});
});
$
(
"#reset"
).
click
(
function
()
{
//重置
//搜索的重置
$
(
"#reset"
).
click
(
function
()
{
document
.
getElementById
(
"form_search"
).
reset
();
document
.
getElementById
(
"form_search"
).
reset
();
});
});
_doc
.
delegate
(
".timeline"
,
"click"
,
function
()
{
//时间轴
//时间轴按钮
_doc
.
on
(
"click"
,
".timeline"
,
function
()
{
bargain
.
Timeline
();
bargain
.
Timeline
();
});
});
_doc
.
on
(
'click'
,
'.details-btn'
,
function
()
{
//点击获取报告详情
bargain
.
bargain_id
=
$
(
this
).
attr
(
"data-id"
);
//点击通过
bargain
.
Edit
();
_doc
.
delegate
(
".is_pass"
,
"click"
,
function
()
{
});
bargain
.
bargain_id
=
$
(
this
).
closest
(
'tr'
).
attr
(
"data-id"
);
_doc
.
delegate
(
".is_pass"
,
"click"
,
function
()
{
//点击通过
bargain
.
bargain_id
=
$
(
this
).
attr
(
"data-id"
);
});
_doc
.
delegate
(
"#confirm_edit"
,
"click"
,
function
()
{
//点击成交信息确定
bargain
.
confirmEdit
();
});
_doc
.
delegate
(
".caozuo"
,
"click"
,
function
()
{
//点击分佣提成
bargain
.
Caozuo
();
});
_doc
.
delegate
(
"#records"
,
"click"
,
function
()
{
//点击收款记录
//bargain.Records();
bargain
.
shuiFee
();
});
});
_doc
.
delegate
(
"#confirm_pass"
,
"click"
,
function
()
{
//点击通过按钮
//点击通过,确定按钮触发的事件
_doc
.
delegate
(
"#confirm_pass"
,
"click"
,
function
()
{
bargain
.
confirmPass
();
bargain
.
confirmPass
();
});
});
// 点击新增分佣提成
_doc
.
delegate
(
"#new-commission"
,
"click"
,
function
()
{
//点击分佣提成
//点击获取报告详情
bargain
.
newCommission
();
_doc
.
on
(
'click'
,
'.details-btn'
,
function
()
{
bargain
.
Caozuo
();
bargain
.
bargain_id
=
$
(
this
).
closest
(
'tr'
).
attr
(
"data-id"
);
});
bargain
.
Edit
();
//table切换
_doc
.
delegate
(
"#information"
,
"click"
,
function
()
{
bargain
.
Information
();
});
_doc
.
delegate
(
"#fees"
,
"click"
,
function
()
{
bargain
.
Fees
();
});
//专员审核 总监审核 经理审核 出纳审核
_doc
.
delegate
(
"#commissioner"
,
"click"
,
function
()
{
bargain
.
Commissioner
();
$
(
".search"
).
attr
(
"id"
,
"search0"
);
});
_doc
.
delegate
(
"#manager"
,
"click"
,
function
()
{
bargain
.
Manager
();
$
(
".search"
).
attr
(
"id"
,
"search1"
);
});
_doc
.
delegate
(
"#director"
,
"click"
,
function
()
{
bargain
.
Director
();
$
(
".search"
).
attr
(
"id"
,
"search2"
);
});
});
_doc
.
delegate
(
"#cashier"
,
"click"
,
function
()
{
bargain
.
Cashier
();
//详情弹出框里的tab点击事件,成交信息,分佣提成,开票税费
$
(
".search"
).
attr
(
"id"
,
"searchStatement"
);
_doc
.
on
(
'click'
,
'.detail-modal-header-tab>a'
,
function
(
e
){
e
.
preventDefault
();
e
.
stopPropagation
();
var
_this
=
$
(
this
);
_this
.
removeClass
(
'btn-default'
).
addClass
(
'btn-info'
).
siblings
().
removeClass
(
'btn-info'
).
addClass
(
'btn-default'
);
bargain
.
detailTabIndex
=
_this
.
index
();
console
.
log
(
bargain
.
detailTabIndex
);
if
(
bargain
.
detailTabIndex
==
0
){
bargain
.
Information
();
}
else
if
(
bargain
.
detailTabIndex
==
1
){
bargain
.
Fees
();
}
else
{
bargain
.
shuiFee
();
}
});
});
//详情弹出框,成交信息里的实收佣金相关的事件
var
_iYJAAObj
=
$
(
'#input_yongjin_add_area'
);
var
_iYJAAObj
=
$
(
'#input_yongjin_add_area'
);
_doc
.
on
(
'click'
,
'#input_yongjin_add_btn'
,
function
(
e
){
_doc
.
on
(
'click'
,
'#input_yongjin_add_btn'
,
function
(
e
){
e
.
preventDefault
();
e
.
preventDefault
();
...
@@ -114,11 +93,31 @@ define(['doT', 'text!temp/reportList_template_tpl.html', 'text!temp/reportList_s
...
@@ -114,11 +93,31 @@ define(['doT', 'text!temp/reportList_template_tpl.html', 'text!temp/reportList_s
};
};
});
});
//详情弹出框,成交信息里的实收佣金相关的事件,点击x删除这条
_doc
.
on
(
'click'
,
'.input-yongjin-cancel-pic'
,
function
(
e
){
_doc
.
on
(
'click'
,
'.input-yongjin-cancel-pic'
,
function
(
e
){
e
.
preventDefault
();
e
.
preventDefault
();
e
.
stopPropagation
();
e
.
stopPropagation
();
$
(
this
).
parent
().
remove
();
$
(
this
).
parent
().
remove
();
})
});
//点击成交信息确定
_doc
.
delegate
(
"#confirm_edit"
,
"click"
,
function
()
{
bargain
.
confirmEdit
();
});
// 点击新增分佣提成
_doc
.
delegate
(
"#new-commission"
,
"click"
,
function
()
{
bargain
.
newCommission
();
bargain
.
Caozuo
();
});
//转到一级审核
_doc
.
on
(
'click'
,
'.btn-trans-one'
,
function
(
e
){
e
.
preventDefault
();
e
.
stopPropagation
();
bargain
.
bargain_id
=
$
(
this
).
closest
(
'tr'
).
attr
(
"data-id"
);
bargain
.
transFirstExamine
();
});
},
},
Timeline
:
function
()
{
//获取时间轴
Timeline
:
function
()
{
//获取时间轴
$
.
ajax
({
$
.
ajax
({
...
@@ -475,239 +474,70 @@ define(['doT', 'text!temp/reportList_template_tpl.html', 'text!temp/reportList_s
...
@@ -475,239 +474,70 @@ define(['doT', 'text!temp/reportList_template_tpl.html', 'text!temp/reportList_s
}
}
});
});
},
},
//一级审核
//转到一级审核
Commissioner
:
function
(
pageNo
)
{
transFirstExamine
:
function
(){
$
(
"#commissioner"
).
removeClass
(
"btn-default"
);
$
(
"#commissioner"
).
addClass
(
"btn-info"
);
$
(
"#manager"
).
removeClass
(
"btn-info"
);
$
(
"#manager"
).
addClass
(
"btn-default"
);
$
(
"#director"
).
removeClass
(
"btn-info"
);
$
(
"#director"
).
addClass
(
"btn-default"
);
$
(
"#cashier"
).
removeClass
(
"btn-info"
);
$
(
"#cashier"
).
addClass
(
"btn-default"
);
bargain
.
pageNo
=
pageNo
;
var
params
=
{};
params
.
pageNo
=
bargain
.
pageNo
;
params
.
pageSize
=
bargain
.
pageSize
;
params
.
create_time
=
$
(
'#create_time'
).
val
();
params
.
internal_address
=
$
(
'#internal_address'
).
val
();
params
.
user_phone
=
$
(
'#user_phone'
).
val
();
params
.
house_number
=
$
(
'#internal_num'
).
val
();
$
.
ajax
({
type
:
'GET'
,
url
:
'/index/reportListOne/1'
,
data
:
params
,
timeout
:
30000
,
dataType
:
'json'
,
beforeSend
:
function
()
{},
success
:
function
(
data
)
{
if
(
typeof
data
===
'object'
)
{
if
(
data
.
code
==
200
)
{
var
doTtmpl
=
doT
.
template
(
document
.
getElementById
(
'reportList_list_tpl'
).
innerHTML
);
$
(
"#follow_list"
).
html
(
doTtmpl
(
data
.
data
.
list
));
// var user_info_obj = JSON.parse(decodeURIComponent(sessionStorage.getItem('pcUserInfo')));
/*分页代码*/
add_page
(
data
.
data
.
total
,
pageNo
,
bargain
.
pageSize
,
bargain
.
getList
);
}
else
{
alert
(
data
[
'msg'
]);
};
}
else
{
alert
(
'数据错误'
);
};
},
error
:
function
()
{
alert
(
'error'
);
},
complete
:
function
(
xhr
,
textStatus
)
{
if
(
textStatus
===
'timeout'
)
{
alert
(
'请求超时'
);
};
}
});
},
//二级审核
Manager
:
function
(
pageNo
)
{
console
.
log
(
5555
);
$
(
"#commissioner"
).
removeClass
(
"btn-info"
);
$
(
"#commissioner"
).
addClass
(
"btn-default"
);
$
(
"#manager"
).
removeClass
(
"btn-default"
);
$
(
"#manager"
).
addClass
(
"btn-info"
);
$
(
"#director"
).
removeClass
(
"btn-info"
);
$
(
"#director"
).
addClass
(
"btn-default"
);
$
(
"#cashier"
).
removeClass
(
"btn-info"
);
$
(
"#cashier"
).
addClass
(
"btn-default"
);
bargain
.
pageNo
=
pageNo
;
var
params
=
{};
params
.
pageNo
=
bargain
.
pageNo
;
params
.
pageSize
=
bargain
.
pageSize
;
params
.
create_time
=
$
(
'#create_time'
).
val
();
params
.
internal_address
=
$
(
'#internal_address'
).
val
();
params
.
user_phone
=
$
(
'#user_phone'
).
val
();
params
.
house_number
=
$
(
'#internal_num'
).
val
();
$
.
ajax
({
type
:
'GET'
,
url
:
'/index/reportListTwo/2'
,
data
:
params
,
timeout
:
30000
,
dataType
:
'json'
,
beforeSend
:
function
()
{},
success
:
function
(
data
)
{
if
(
typeof
data
===
'object'
)
{
if
(
data
.
code
==
200
)
{
var
doTtmpl
=
doT
.
template
(
document
.
getElementById
(
'reportList_list_tpl'
).
innerHTML
);
$
(
"#follow_list"
).
html
(
doTtmpl
(
data
.
data
.
list
));
var
user_info_obj
=
JSON
.
parse
(
decodeURIComponent
(
sessionStorage
.
getItem
(
'pcUserInfo'
)));
/*分页代码*/
add_page
(
data
.
data
.
total
,
pageNo
,
bargain
.
pageSize
,
bargain
.
getList
);
}
else
{
alert
(
data
[
'msg'
]);
};
}
else
{
alert
(
'数据错误'
);
};
},
error
:
function
()
{
alert
(
'error'
);
},
complete
:
function
(
xhr
,
textStatus
)
{
if
(
textStatus
===
'timeout'
)
{
alert
(
'请求超时'
);
};
}
});
},
//二级审核
//三级审核
Director
:
function
(
pageNo
)
{
$
(
"#commissioner"
).
removeClass
(
"btn-info"
);
$
(
"#commissioner"
).
addClass
(
"btn-default"
);
$
(
"#manager"
).
removeClass
(
"btn-info"
);
$
(
"#manager"
).
addClass
(
"btn-default"
);
$
(
"#director"
).
removeClass
(
"btn-default"
);
$
(
"#director"
).
addClass
(
"btn-info"
);
$
(
"#cashier"
).
removeClass
(
"btn-info"
);
$
(
"#cashier"
).
addClass
(
"btn-default"
);
bargain
.
pageNo
=
pageNo
;
var
params
=
{};
params
.
pageNo
=
bargain
.
pageNo
;
params
.
pageSize
=
bargain
.
pageSize
;
params
.
create_time
=
$
(
'#create_time'
).
val
();
params
.
internal_address
=
$
(
'#internal_address'
).
val
();
params
.
user_phone
=
$
(
'#user_phone'
).
val
();
params
.
house_number
=
$
(
'#internal_num'
).
val
();
$
.
ajax
({
$
.
ajax
({
type
:
'GET'
,
type
:
'POST'
,
url
:
'/index/reportListThree/3'
,
url
:
'/index/toReportListOne'
,
data
:
params
,
data
:
{
timeout
:
30000
,
'bargain_id'
:
bargain
.
bargain_id
dataType
:
'json'
,
},
beforeSend
:
function
()
{},
timeout
:
30000
,
success
:
function
(
data
)
{
dataType
:
'json'
,
if
(
typeof
data
===
'object'
)
{
beforeSend
:
function
()
{},
if
(
data
.
code
==
200
)
{
success
:
function
(
_data
)
{
var
doTtmpl
=
doT
.
template
(
document
.
getElementById
(
'reportList_list_tpl'
).
innerHTML
);
if
(
typeof
_data
===
'object'
)
{
$
(
"#follow_list"
).
html
(
doTtmpl
(
data
.
data
.
list
));
if
(
_data
[
'code'
]
==
'200'
)
{
var
user_info_obj
=
JSON
.
parse
(
decodeURIComponent
(
sessionStorage
.
getItem
(
'pcUserInfo'
)));
alert
(
'修改成功'
);
bargain
.
getList
(
1
);
/*分页代码*/
}
else
{
add_page
(
data
.
data
.
total
,
pageNo
,
bargain
.
pageSize
,
bargain
.
getList
);
layerTipsX
(
_data
[
'msg'
]);
}
}
else
{
}
else
{
alert
(
data
[
'msg'
]);
layerTipsX
(
'数据错误'
);
};
};
}
else
{
},
alert
(
'数据错误'
);
error
:
function
()
{
};
layerTipsX
(
'enter error'
);
},
},
error
:
function
()
{
complete
:
function
(
xhr
,
textStatus
){
alert
(
'error'
);
if
(
textStatus
===
'timeout'
)
{
},
//处理超时的逻辑
complete
:
function
(
xhr
,
textStatus
)
{
layerTipsX
(
'请求超时,请重试'
);
if
(
textStatus
===
'timeout'
)
{
};
alert
(
'请求超时'
);
}
};
}
});
});
},
},
//三级审核
//获取一级审核,二级审核,三级审核,结单不同的ajax请求url
switchUrl
:
function
(){
//结单
console
.
log
(
this
.
mainTabIndex
);
Cashier
:
function
(
pageNo
)
{
switch
(
Number
(
this
.
mainTabIndex
)){
$
(
"#commissioner"
).
addClass
(
"btn-default"
);
case
0
:
$
(
"#manager"
).
removeClass
(
"btn-info"
);
return
'/index/reportListOne/1'
;
$
(
"#manager"
).
addClass
(
"btn-default"
);
case
1
:
$
(
"#director"
).
removeClass
(
"btn-info"
);
return
'/index/reportListTwo/2'
;
$
(
"#director"
).
addClass
(
"btn-default"
);
case
2
:
$
(
"#cashier"
).
removeClass
(
"btn-default"
);
return
'/index/reportListThree/3'
;
$
(
"#cashier"
).
addClass
(
"btn-info"
);
case
3
:
return
'/index/reportListStatement/4'
;
bargain
.
pageNo
=
pageNo
;
default
:
var
params
=
{};
return
''
;
params
.
pageNo
=
bargain
.
pageNo
;
}
params
.
pageSize
=
bargain
.
pageSize
;
params
.
create_time
=
$
(
'#create_time'
).
val
();
params
.
internal_address
=
$
(
'#internal_address'
).
val
();
params
.
user_phone
=
$
(
'#user_phone'
).
val
();
params
.
house_number
=
$
(
'#internal_num'
).
val
();
$
.
ajax
({
type
:
'GET'
,
url
:
'/index/reportListStatement/4'
,
data
:
params
,
timeout
:
30000
,
dataType
:
'json'
,
beforeSend
:
function
()
{},
success
:
function
(
data
)
{
if
(
typeof
data
===
'object'
)
{
if
(
data
.
code
==
200
)
{
var
doTtmpl
=
doT
.
template
(
document
.
getElementById
(
'reportList_list_tpl'
).
innerHTML
);
$
(
"#follow_list"
).
html
(
doTtmpl
(
data
.
data
.
list
));
var
user_info_obj
=
JSON
.
parse
(
decodeURIComponent
(
sessionStorage
.
getItem
(
'pcUserInfo'
)));
/*分页代码*/
add_page
(
data
.
data
.
total
,
pageNo
,
bargain
.
pageSize
,
bargain
.
getList
);
}
else
{
alert
(
data
[
'msg'
]);
};
}
else
{
alert
(
'数据错误'
);
};
},
error
:
function
()
{
alert
(
'error'
);
},
complete
:
function
(
xhr
,
textStatus
)
{
if
(
textStatus
===
'timeout'
)
{
alert
(
'请求超时'
);
};
}
});
},
},
//
结单
//
获取一级审核,二级审核,三级审核,结单数据列表共用的方法
//搜索 列表渲染
getList
:
function
(
pageNo
){
getList
:
function
(
pageNo
)
{
console
.
count
(
'bar'
);
bargain
.
pageNo
=
pageNo
;
var
params
=
{
var
params
=
{};
'pageNo'
:
pageNo
,
params
.
pageNo
=
bargain
.
pageNo
;
'pageSize'
:
bargain
.
pageSize
,
params
.
pageSize
=
bargain
.
pageSize
;
'create_time'
:
$
.
trim
(
$
(
'#create_time'
).
val
()),
params
.
create_time
=
$
(
'#create_time'
).
val
();
'internal_address'
:
$
.
trim
(
$
(
'#internal_address'
).
val
()),
params
.
internal_address
=
$
(
'#internal_address'
).
val
();
'user_phone'
:
$
.
trim
(
$
(
'#user_phone'
).
val
()),
params
.
user_phone
=
$
(
'#user_phone'
).
val
();
'house_number'
:
$
.
trim
(
$
(
'#internal_num'
).
val
())
params
.
house_number
=
$
(
'#internal_num'
).
val
()
;
}
;
$
.
ajax
({
$
.
ajax
({
type
:
'GET'
,
type
:
'GET'
,
url
:
'/index/reportListOne/1'
,
url
:
bargain
.
switchUrl
()
,
data
:
params
,
data
:
params
,
timeout
:
30000
,
timeout
:
30000
,
dataType
:
'json'
,
dataType
:
'json'
,
...
@@ -716,8 +546,10 @@ define(['doT', 'text!temp/reportList_template_tpl.html', 'text!temp/reportList_s
...
@@ -716,8 +546,10 @@ define(['doT', 'text!temp/reportList_template_tpl.html', 'text!temp/reportList_s
if
(
typeof
data
===
'object'
)
{
if
(
typeof
data
===
'object'
)
{
if
(
data
.
code
==
200
)
{
if
(
data
.
code
==
200
)
{
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
));
// var user_info_obj = JSON.parse(decodeURIComponent(sessionStorage.getItem('pcUserInfo')));
/*分页代码*/
/*分页代码*/
console
.
log
(
993
);
add_page
(
data
.
data
.
total
,
pageNo
,
bargain
.
pageSize
,
bargain
.
getList
);
add_page
(
data
.
data
.
total
,
pageNo
,
bargain
.
pageSize
,
bargain
.
getList
);
}
else
{
}
else
{
...
...
public/resource/template/reportList_template_tpl.html
View file @
90c06161
<script
id=
"reportList_list_tpl"
type=
"text/template"
>
<script
id=
"reportList_list_tpl"
type=
"text/template"
>
[
%
if
(
it
&&
it
.
length
&&
it
.
length
>
0
)
{
%
]
[
%
if
(
it
[
"list"
]
&&
it
[
"list"
].
length
&&
it
[
"list"
]
.
length
>
0
)
{
%
]
[
%
for
(
var
item
in
it
){
%
]
[
%
for
(
var
item
in
it
[
"list"
]
){
%
]
<
tr
class
=
"text-center"
>
<
tr
class
=
"text-center"
data
-
id
=
'[%= it["list"][item]["id"] %]'
>
<
td
>
[
%=
it
[
item
][
'create_time'
]
%
]
<
/td
>
<
td
>
[
%=
it
[
"list"
][
item
][
'create_time'
]
%
]
<
/td
>
<
td
>
[
%=
it
[
item
][
'internal_address'
]
%
]
<
/td
>
<
td
>
[
%=
it
[
"list"
][
item
][
'internal_address'
]
%
]
<
/td
>
<
td
>
[
%=
it
[
item
][
'internal_title'
]
%
]
<
/td
>
<
td
>
[
%=
it
[
"list"
][
item
][
'internal_title'
]
%
]
<
/td
>
<
td
>
[
%=
it
[
item
][
'user_name'
]
%
]
<
/td
>
<
td
>
[
%=
it
[
"list"
][
item
][
'user_name'
]
%
]
<
/td
>
<
td
>
[
%=
it
[
item
][
'user_phone'
]
%
]
<
/td
>
<
td
>
[
%=
it
[
"list"
][
item
][
'user_phone'
]
%
]
<
/td
>
<
td
>
[
%=
it
[
item
][
'commission'
]
%
]
<
/td
>
<
td
>
[
%=
it
[
"list"
][
item
][
'commission'
]
%
]
<
/td
>
<
td
>
[
%=
it
[
item
][
'practical_fee'
]
%
]
<
/td
>
<
td
>
[
%=
it
[
"list"
][
item
][
'practical_fee'
]
%
]
<
/td
>
<
td
>
<
td
>
[
%
if
(
check_auth
(
'index/bargainInfo'
))
{
%
]
[
%
if
(
check_auth
(
'index/bargainInfo'
))
{
%
]
<
a
class
=
"btn1 btn-success details-btn"
href
=
"#modal-edit"
data
-
toggle
=
"modal"
data
-
id
=
'[%= it[item]["id"] %]'
>
详情
<
/a
>
<
a
class
=
"btn1 btn-success details-btn"
href
=
"#modal-edit"
data
-
toggle
=
"modal"
>
详情
<
/a
>
[
%
}
%
]
[
%
}
%
]
[
%
if
(
check_auth
(
'index/checkReportAttache/0'
)
||
check_auth
(
'index/checkReportManager/1'
)
||
check_auth
(
'index/checkReportMajordomo/2'
)
||
check_auth
(
'index/checkReportCashier/3'
))
{
%
]
[
%
if
(
it
[
"step"
]
<
3
)
{
%
]
<
a
class
=
"btn1 btn-success is_pass"
href
=
"#modal-pass"
data
-
toggle
=
"modal"
data
-
id
=
'[%= it[item]["id"] %]'
>
通过
<
/a
>
[
%
if
(
check_auth
(
'index/checkReportAttache/0'
)
||
check_auth
(
'index/checkReportManager/1'
)
||
check_auth
(
'index/checkReportMajordomo/2'
)
||
check_auth
(
'index/checkReportCashier/3'
))
{
%
]
<
a
class
=
"btn1 btn-success is_pass"
href
=
"#modal-pass"
data
-
toggle
=
"modal"
>
通过
<
/a
>
[
%
}
%
]
[
%
}
else
if
(
it
[
"step"
]
==
3
)
{
%
]
[
%
if
(
check_auth
(
'index/toReportListOne'
))
{
%
]
<
a
class
=
"btn1 btn-success btn-trans-one"
>
转到一级审核
<
/a
>
[
%
}
%
]
[
%
if
(
check_auth
(
'index/checkOver'
))
{
%
]
<
a
class
=
"btn1 btn-success btn-jiedan"
>
结单
<
/a
>
[
%
}
%
]
[
%
}
%
]
[
%
}
%
]
<
a
class
=
"btn1 btn-success timeline"
href
=
"#modal-time"
data
-
toggle
=
"modal"
data
-
id
=
'[%= it[item]["id"] %]'
>
时间轴
<
/a
>
<
a
class
=
"btn1 btn-success timeline"
href
=
"#modal-time"
data
-
toggle
=
"modal"
>
时间轴
<
/a
>
<
/td
>
<
/td
>
<
/tr
>
<
/tr
>
[
%
}
%
]
[
%
}
%
]
...
...
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