|
|
@@ -11,11 +11,39 @@ $(function(){
|
|
|
|
|
|
//*************************************数据表格******************************************
|
|
|
function initAppealPage(start_date,end_date,user_id) {
|
|
|
+
|
|
|
initQueryParams();
|
|
|
+ initTableRowBtn();
|
|
|
queryAppeal(start_date,end_date,user_id);
|
|
|
}
|
|
|
|
|
|
function initQueryParams() {
|
|
|
+ // 仅选择日期
|
|
|
+ $(".div-start input").datetimepicker(
|
|
|
+ {
|
|
|
+ language: "zh-CN",
|
|
|
+ weekStart: 1,
|
|
|
+ todayBtn: 1,
|
|
|
+ autoclose: 1,
|
|
|
+ todayHighlight: 1,
|
|
|
+ startView: 2,
|
|
|
+ minView: 2,
|
|
|
+ forceParse: 0,
|
|
|
+ format: "yyyy-mm-dd"
|
|
|
+ });
|
|
|
+ // 仅选择日期
|
|
|
+ $(".div-end input").datetimepicker(
|
|
|
+ {
|
|
|
+ language: "zh-CN",
|
|
|
+ weekStart: 1,
|
|
|
+ todayBtn: 1,
|
|
|
+ autoclose: 1,
|
|
|
+ todayHighlight: 1,
|
|
|
+ startView: 2,
|
|
|
+ minView: 2,
|
|
|
+ forceParse: 0,
|
|
|
+ format: "yyyy-mm-dd"
|
|
|
+ });
|
|
|
//获取页面参数
|
|
|
var page_params = $.zui.store.get("page_params");
|
|
|
if(page_params && page_params.status) {
|
|
|
@@ -23,12 +51,29 @@ $(function(){
|
|
|
}
|
|
|
}
|
|
|
|
|
|
+ //初始化表行按钮
|
|
|
+ function initTableRowBtn() {
|
|
|
+ var cols = [
|
|
|
+ {width: 40,height:60, text: '序号', flex: true, colClass: 'text-center',field:'num'},
|
|
|
+ {width: 40,height:60, text: '稽查人员', flex: true,colClass: 'text-center',field:'checkman_name' },
|
|
|
+ {width: 100,height:60, text: '任务名称', flex: true,colClass: 'text-center',field:'check_task_name' },
|
|
|
+ {width: 100,height:60, text: '时间段', flex: true,colClass: 'text-center',field:'check_task_time_name' },
|
|
|
+ {width: 40,height:60, text: '考核人员', flex: true,colClass: 'text-center',field:'checked_name' },
|
|
|
+ {width: 60,height:60, text: '考核部门', flex: true,colClass: 'text-center',field:'feeStationName' },
|
|
|
+ {width: 40,height:60, text: '扣分数', flex: true, colClass: 'text-center',field:'score'},
|
|
|
+ {width: 100,height:60, text: '考核项', flex: true, colClass: 'text-center',field:'name'},
|
|
|
+ {width: 100,height:60, text: '扣分凭证', type: 'imagedd', flex: true, hide:hide,field:'pics'},
|
|
|
+ ];
|
|
|
+ }
|
|
|
+
|
|
|
function queryAppeal(start_date,end_date,user_id){
|
|
|
+
|
|
|
var data = {
|
|
|
- "start_date":start_date,
|
|
|
+ "start_date":start_date,
|
|
|
"end_date":end_date,
|
|
|
"user_id":user_id,
|
|
|
- "queryType":1
|
|
|
+ "queryType":1,
|
|
|
+ "check_status": cur_status,
|
|
|
}
|
|
|
if(hasRole(ROLE_STATION_ADMIN) || hasRole(ROLE_STATION) || hasRole(ROLE_JICHA) || roleContains('STATION')) {
|
|
|
hide = true;
|
|
|
@@ -36,37 +81,25 @@ $(function(){
|
|
|
|
|
|
var cols = [
|
|
|
{width: 40,height:60, text: '序号', flex: true, colClass: 'text-center',field:'num'},
|
|
|
- {width: 40,height:60, text: '稽查人员', flex: true,colClass: '',field:'checkman_name' },
|
|
|
- {width: 100,height:60, text: '任务名称', flex: true,colClass: '',field:'check_task_name' },
|
|
|
- {width: 100,height:60, text: '时间段', flex: true,colClass: '',field:'check_task_time_name' },
|
|
|
- {width: 40,height:60, text: '考核人员', flex: true,colClass: '',field:'checked_name' },
|
|
|
- {width: 60,height:60, text: '考核部门', flex: true,colClass: '',field:'feeStationName' },
|
|
|
- {width: 40,height:60, text: '扣分数', flex: true, colClass: '',field:'score'},
|
|
|
- {width: 100,height:60, text: '考核项', flex: true, colClass: '',sort: 'down',field:'name'},
|
|
|
- {width: 100,height:60, text: '扣分凭证', type: 'imagedd', flex: true, hide:hide,field:'pics'},
|
|
|
+ {width: 40,height:60, text: '稽查人员', flex: true,colClass: 'text-center',field:'checkman_name' },
|
|
|
+ {width: 100,height:60, text: '任务名称', flex: true,colClass: 'text-center',field:'check_task_name' },
|
|
|
+ {width: 100,height:60, text: '时间段', flex: true,colClass: 'text-center',field:'check_task_time_name' },
|
|
|
+ {width: 40,height:60, text: '考核人员', flex: true,colClass: 'text-center',field:'checked_name' },
|
|
|
+ {width: 60,height:60, text: '考核部门', flex: true,colClass: 'text-center',field:'feeStationName' },
|
|
|
+ {width: 40,height:60, text: '扣分数', flex: true, colClass: 'text-center',field:'score'},
|
|
|
+ {width: 100,height:60, text: '考核项', flex: true, colClass: 'text-center',field:'name'},
|
|
|
+ {width: 100,height:60, text: '扣分凭证', type: 'imagedd', flex: true,field:'pics'},
|
|
|
];
|
|
|
if(cur_status==12 || cur_status==13){
|
|
|
data.check_status_arr = [12,13];
|
|
|
}
|
|
|
+
|
|
|
$('.datatable').mytable({'cols':cols,
|
|
|
'url':"/statistics/one/checkedItem/detail/info",
|
|
|
'param':data}
|
|
|
);
|
|
|
}
|
|
|
|
|
|
- function queryUnAssignedTable(){
|
|
|
- var cols = [
|
|
|
- {width: 40,height:60, text: '序号', type: 'number', flex: true, colClass: 'text-center',field: 'num'},
|
|
|
- {width: 40,height:60, text: '稽查人员', type: 'string', flex: true, sort: 'down',field: 'checkman_name'},
|
|
|
- {width: 100,height:60, text: '任务名称', type: 'string', flex: true, sort: 'down',field: 'check_task_name'},
|
|
|
- {width: 100,height:60, text: '时间段', type: 'string', flex: true, sort: 'down',field: 'check_task_time_name'},
|
|
|
- {width: 40,height:60, text: '考核人员', type: 'string', flex: true, sort: 'down',field: 'checked_name'},
|
|
|
- {width: 60,height:60, text: '考核部门', type: 'string', flex: true, sort: 'down',field: 'feeStationName'},
|
|
|
- {width: 40,height:60, text: '扣分数', type: 'string', flex: true, field: 'score'},
|
|
|
- {width: 100,height:60, text: '考核项', type: 'string', flex: true, sort: 'down',field: 'name'},
|
|
|
- {width: 100,height:60, text: '扣分凭证', type: 'imagedd', flex: true, field: 'pics'},
|
|
|
- ] ;
|
|
|
- }
|
|
|
|
|
|
|
|
|
$(".query button").click(function(){
|