index.js 1.23 KB
'use strict';
var $ = require('jquery'),
    common=require('../common/common');

var ENUM={
    status:{0:'待审核',1:'审核通过',2:'驳回',3:'过期',4:'作废'},//全部
    tips:{"0":0,"1":0,"2":0,"3":0,"4":0,"all":0}
}

var t = new common.tab({
    el:"#basicTab",
    click:function(){
        g.reload(1);
    },
    columns:[
        {name:"0",display:"待审核({0})"},
        {name:"1",display:"审核通过({1})"},
        {name:"2",display:"驳回({2})"},
        {name:"3",display:"过期({3})"},
        {name:"4",display:"作废({4})"},
        {name:"all",display:"全部({all})"}
    ]
}).init(ENUM.tips);


var g = new common.grid({
    el: '#basicTable',
    parms:function(){
    	return {
            batchNo:common.util.__input("filter-id"),
            name:common.util.__input("filter-name"),
            reqDepartment:common.util.__input("filter-dep"),
            status: t.active
        };
    },
    columns:[
    	{display:"SKN",name:"skn"},
    	{display:"SKN",name:"skn"},
    	{display:"SKN",name:"skn"},
    	{display:"SKN",name:"skn"},
    	{display:"SKN",name:"skn"},
    	{display:"SKN",name:"skn"},
    	{display:"SKN",name:"skn"},
    	{display:"SKN",name:"skn"},
    	{display:"SKN",name:"skn"}
    ]
});