/**
 * 对账模块-查看OA审批日志页面JS
 *
 * Created by li.kui on 2020/8/15.
 */
'use strict';
var el = {
    oaProcessNo: '#oaProcessNo',
    tb: '#tb',
    bodyHeight: document.documentElement.clientHeight
};

$(function () {
    var oaProcessNo = $(el.oaProcessNo).val();

    $(el.tb).datagrid({
        loadMsg: '数据加载中......',
        emptyMsg: '暂无数据',
        url: g.ctx + 'fin/common/rest/find/oa/log',
        height: el.bodyHeight,
        singleSelect: false,
        rownumbers: true,
        pagination: false,
        queryParams: {
            oaProcessNo: oaProcessNo
        },
        columns: [
            [
                {
                    field: 'nodeName',
                    title: '节点名称',
                    width: 110
                },
                {
                    field: 'operateDate',
                    title: '节点提交日期',
                    width: 140,
                    formatter: function (value, row) {
                        return value + ' ' + row.operateTime;
                    }
                },
                {
                    field: 'operateType',
                    title: '节点操作类型',
                    width: 120
                },
                {
                    field: 'operatorDept',
                    title: '节点操作人所在部门',
                    width: 180
                },
                {
                    field: 'operatorName',
                    title: '节点提交人姓名',
                    width: 120
                },
                {
                    field: 'remark',
                    title: '备注',
                    width: 300
                }
            ]
        ]
    });
});