<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="utf-8">
    <title>项目可研报告编辑</title>
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <link rel="stylesheet" th:href="@{/lib/layui/css/layui.css}" media="all">
    <link rel="stylesheet" th:href="@{/css/public.css}" media="all">
    <style>
        body {
            background-color: #ffffff;
        }

        .layui-body {
            overflow-y: scroll;
        }
    </style>
</head>
<body>
<div class="layui-tab layui-tab-card">
    <ul class="layui-tab-title">
        <li class="layui-this">常规</li>
        <li>目的和意义</li>
        <li>研究水平</li>
        <li>理论实践依据</li>
        <li>研究内容</li>
        <li>经济性财务合规性</li>
        <li>预期目标</li>
        <li>合作单位</li>
        <li>承担单位条件</li>
        <li>进度安排</li>
        <li>经费预算</li>
        <li>审查意见</li>
        <li>附件</li>
        <li>签名盖章</li>
    </ul>
    <div class="layui-tab-content">
        <!--常规开始-->
        <div class="layui-tab-item layui-show">
            <form class="layui-form" action="" lay-filter="formDemo">
                <div class="layui-form layuimini-form">
                    <div class="layui-form-item">
                        <label class="layui-form-label" style="width: 90px">名称</label>
                        <div class="layui-input-inline" style="width: 85%">
                            <input type="hidden" id="id" name="id" th:value="${report.id}">
                            <input type="text" id="mc" name="mc" th:value="${report.mc}" class="layui-input" readonly>
                        </div>
                    </div>
                    <div class="layui-form-item">
                        <label class="layui-form-label" style="width: 90px">申请单位</label>
                        <div class="layui-input-inline" style="width: 85%">
                            <input type="hidden" name="sqdw" id="sqdw" th:value="${report.sqdw}" class="layui-input">
                            <input type="text" id="sqdwName" name="sqdwName" th:value="${report.sqdwName}"
                                   class="layui-input" readonly>
                        </div>
                    </div>
                    <div class="layui-form-item layui-inline" style="width: 100%">
                        <label class="layui-form-label" style="width: 90px">项目起止时间</label>
                        <div class="layui-input-inline" style="width: 85%">
                            <div class="layui-input-inline">
                                <input type="text" name="qs" id="qs" th:value="${report.qs}" class="layui-input"
                                       readonly>
                            </div>
                            <div class="layui-form-mid">-</div>
                            <div class="layui-input-inline">
                                <input type="text" name="wc" id="wc" th:value="${report.wc}" class="layui-input"
                                       readonly>
                            </div>
                        </div>
                    </div>

                    <div class="layui-form-item">
                        <label class="layui-form-label" style="width: 90px">项目类型</label>
                        <div class="layui-input-inline" style="width: 85%">
                            <input type="hidden" name="xmlx" id="xmlx" th:value="${report.xmlx}" class="layui-input"
                                   readonly>
                            <input type="text" name="xmlxmc" id="xmlxmc" th:value="${report.xmlxmc}" class="layui-input"
                                   readonly>
                        </div>
                    </div>

                    <div class="layui-form-item ">
                        <label class="layui-form-label" style="width: 90px">项目负责人</label>
                        <div class="layui-input-inline"
                             style="width: 84.8%;height: 230px;border: 1px solid;border-color: #dddddd">
                            <table class="layui-hide" id="currentTableId1" lay-filter="currentTableId1"
                                   style="padding-top: 0px;margin-top: 0px"></table>
                        </div>
                    </div>
                    <div class="layui-form-item layui-inline" style="width: 100%">
                        <label class="layui-form-label" style="width: 90px">通讯地址</label>
                        <div class="layui-input-inline" style="width: 85%">
                            <div class="layui-input-inline" style="width: 400px">
                                <input type="text" name="txdd" id="txdd" th:value="${report.txdd}" class="layui-input"
                                       readonly>
                            </div>
                            <div class="layui-form-label">邮政编码</div>
                            <div class="layui-input-inline" style="width: 300px">
                                <input type="text" name="yzbm" id="yzbm" th:value="${report.yzbm}" class="layui-input"
                                       readonly>
                            </div>
                        </div>
                    </div>
                    <div class="layui-form-item layui-inline" style="width: 100%">
                        <label class="layui-form-label" style="width: 90px">电话</label>
                        <div class="layui-input-inline" style="width: 85%">
                            <div class="layui-input-inline" style="width: 400px">
                                <input type="text" name="dh" id="dh" th:value="${report.dh}" class="layui-input"
                                       readonly>
                            </div>
                            <div class="layui-form-label">传真</div>
                            <div class="layui-input-inline" style="width: 300px">
                                <input type="text" name="cz" id="cz" th:value="${report.cz}" class="layui-input"
                                       readonly>
                            </div>
                        </div>
                    </div>
                    <div class="layui-form-item layui-inline" style="width: 100%">
                        <label class="layui-form-label" style="width: 90px">所属部门</label>
                        <div class="layui-input-inline" style="width: 85%">
                            <div class="layui-input-inline" id="parent_div" style="width: 400px">
                                <input type="hidden" name="ssbm" id="ssbm" th:value="${report.ssbm}"
                                       class="layui-input">
                                <input type="text" id="ssbmName" name="ssbmName" th:value="${report.ssbmName}"
                                       class="layui-input" readonly>
                            </div>
                            <div class="layui-form-label">申请日期</div>
                            <div class="layui-input-inline" style="width: 300px">
                                <input type="text" name="sqrq" id="sqrq" th:value="${report.sqrq}" class="layui-input"
                                       readonly>
                            </div>
                        </div>
                    </div>
                </div>
            </form>
        </div>
        <!--常规结束-->
        <!--目的和意义开始-->
        <div class="layui-tab-item">
            <form class="layui-form" action="" lay-filter="formDemo">
                <div class="layui-form layuimini-form" style="padding-bottom: 100px">
                    <!--                <div class="layui-form layuimini-form">-->
                    <div class="layui-form-item">
                        <label class="layui-form-label" style="width: 90px">目的和意义</label>
                        <div class="layui-input-inline" style="width: 85%">
                            <textarea id="mdhyywb" name="mdhyywb" th:text="${report.mdhyywb}" class="layui-textarea"
                                      style="width: 100%;height: 339px" readonly></textarea>
                        </div>
                    </div>
                    <div class="layui-form-item">
                        <label class="layui-form-label" style="width: 90px"></label>
                        <input type="hidden" id="mdhyy" name="mdhyy" class="layui-input"/>
                        <div class="layui-input-inline" style="width: 85%">
                            <table class="layui-hide" id="currentTableId_MDHYY" lay-filter="currentTableId_MDHYY"
                                   style="padding-top: 0px;margin-top: 0px"></table>
                        </div>
                    </div>
                </div>
            </form>
        </div>
        <!--目的和意义结束-->
        <!--研究水平开始-->
        <div class="layui-tab-item">
            <form class="layui-form" action="" lay-filter="formDemo">
                <div class="layui-form layuimini-form">
                    <div class="layui-form-item">
                        <label class="layui-form-label" style="width: 90px">研究水平</label>
                        <div class="layui-input-inline" style="width: 85%">
                            <textarea id="gnwyjspzswb" name="gnwyjspzswb" th:text="${report.gnwyjspzswb}"
                                      class="layui-textarea" style="width: 100%;height: 339px" readonly></textarea>
                        </div>
                    </div>
                    <div class="layui-form-item">
                        <label class="layui-form-label" style="width: 90px">
                        </label>
                        <input type="hidden" id="gnwyjspzs" name="gnwyjspzs" class="layui-input"/>
                        <div class="layui-input-inline" style="width: 85%">
                            <table class="layui-hide" id="currentTableId_YJSP" lay-filter="currentTableId_YJSP"
                                   style="padding-top: 0px;margin-top: 0px"></table>
                        </div>
                    </div>
                </div>
            </form>
        </div>
        <!--研究水平结束-->
        <!--理论实践依据开始-->
        <div class="layui-tab-item">
            <form class="layui-form" action="" lay-filter="formDemo">
                <div class="layui-form layuimini-form">
                    <div class="layui-form-item">
                        <label class="layui-form-label" style="width: 90px">理论实践依据</label>
                        <div class="layui-input-inline" style="width: 85%">
                            <textarea id="xmdllhsjyjwb" name="xmdllhsjyjwb" th:text="${report.xmdllhsjyjwb}"
                                      class="layui-textarea" style="width: 100%;height: 339px" readonly></textarea>
                        </div>
                    </div>
                    <div class="layui-form-item">
                        <label class="layui-form-label" style="width: 90px">
                        </label>
                        <input type="hidden" id="xmdllhsjyj" name="xmdllhsjyj" class="layui-input"/>
                        <div class="layui-input-inline" style="width: 85%">
                            <table class="layui-hide" id="currentTableId_LLSJYJ" lay-filter="currentTableId_LLSJYJ"
                                   style="padding-top: 0px;margin-top: 0px"></table>
                        </div>
                    </div>
                </div>
            </form>
        </div>
        <!--理论实践依据结束-->
        <!--研究内容开始-->
        <div class="layui-tab-item">
            <form class="layui-form" action="" lay-filter="formDemo">
                <div class="layui-form layuimini-form">
                    <div class="layui-form-item">
                        <label class="layui-form-label" style="width: 90px">研究内容</label>
                        <div class="layui-input-inline" style="width: 85%">
                            <textarea id="xmyjnrhssfawb" name="xmyjnrhssfawb" th:text="${report.xmyjnrhssfawb}"
                                      class="layui-textarea" style="width: 100%;height: 339px" readonly></textarea>
                        </div>
                    </div>
                    <div class="layui-form-item">
                        <label class="layui-form-label" style="width: 90px">
                        </label>
                        <input type="hidden" id="xmyjnrhssfa" name="xmyjnrhssfa" th:value="${report.xmyjnrhssfa}"
                               class="layui-input"/>
                        <div class="layui-input-inline" style="width: 85%">
                            <table class="layui-hide" id="currentTableId_YJNR" lay-filter="currentTableId_YJNR"
                                   style="padding-top: 0px;margin-top: 0px"></table>
                        </div>
                    </div>
                </div>
            </form>
        </div>
        <!--研究内容结束-->
        <!--经济性财务合规性开始-->
        <div class="layui-tab-item" style="min-height: 525px">
            <form class="layui-form" action="" lay-filter="formDemo">
                <div class="layui-form layuimini-form">
                    <div class="layui-form-item">
                        <label class="layui-form-label" style="width: 90px">经济性<br/>财务合规性</label>
                        <div class="layui-input-inline" style="width: 85%">
                            <textarea id="jjxycwhgx" name="jjxycwhgx" th:text="${report.jjxycwhgx}"
                                      class="layui-textarea" style="width: 100%;height: 470px" readonly></textarea>
                        </div>
                    </div>
                </div>
            </form>
        </div>
        <!--经济性财务合规性结束-->
        <!--预期目标开始-->
        <div class="layui-tab-item" style="min-height: 525px">
            <form class="layui-form" action="" lay-filter="formDemo">
                <div class="layui-form layuimini-form">
                    <div class="layui-form-item">
                        <label class="layui-form-label" style="width: 90px">预期目标<br/>和成果形式</label>
                        <div class="layui-input-inline" style="width: 85%">
                            <textarea id="yqmbhcgxs" name="yqmbhcgxs" th:text="${report.yqmbhcgxs}"
                                      class="layui-textarea" style="width: 100%;height: 470px" readonly></textarea>
                        </div>
                    </div>
                </div>
            </form>
        </div>
        <!--预期目标结束-->
        <!--合作单位开始-->
        <div class="layui-tab-item" style="min-height: 525px">
            <form class="layui-form" action="" lay-filter="formDemo">
                <div class="layui-form layuimini-form">
                    <div class="layui-form-item">
                        <label class="layui-form-label" style="width: 90px">合作单位或<br/>依托工程单位<br/>落实情况</label>
                        <div class="layui-input-inline" style="width: 85%">
                            <textarea id="hzdwhytgcdwlsqk" name="hzdwhytgcdwlsqk" th:text="${report.hzdwhytgcdwlsqk}"
                                      class="layui-textarea" style="width: 100%;height: 470px" readonly></textarea>
                        </div>
                    </div>
                </div>
            </form>
        </div>
        <!--合作单位结束-->
        <!--承担单位条件开始-->
        <div class="layui-tab-item" style="min-height: 525px; padding-left: 30px; padding-right: 30px">
            <form class="layui-form" action="" lay-filter="formDemo">
                <div class="layui-form layuimini-form">
                    <div class="layui-form-item">
                        <input type="hidden" id="xmcddwdtj" name="xmcddwdtj" th:value="${report.xmcddwdtj}"
                               class="layui-input"/>
                        <div class="layui-input-inline" style="width: 100%">
                            <table class="layui-hide" id="currentTableId_CDDWTJ" lay-filter="currentTableId_CDDWTJ"
                                   style="padding-top: 0px;margin-top: 0px"></table>
                        </div>
                    </div>
                </div>
            </form>
        </div>
        <!--承担单位条件结束-->
        <!--进度安排开始-->
        <div class="layui-tab-item" style="min-height: 525px; padding-left: 30px; padding-right: 30px">
            <form class="layui-form" action="" lay-filter="formDemo">
                <div class="layui-form layuimini-form">
                    <div class="layui-form-item ">
                        <div class="layui-input-inline" style="width: 100%">
                            <table class="layui-hide" id="planTableId" lay-filter="planTableId"
                                   style="padding-top: 0px;margin-top: 0px"></table>
                        </div>
                    </div>
                </div>
            </form>
        </div>
        <!--进度安排结束-->
        <!--经费预算开始-->
        <div class="layui-tab-item" style="min-height: 515px; padding-left: 30px; padding-right: 30px">
            <form class="layui-form" action="" lay-filter="formDemo">
                <div class="layui-form layuimini-form">
                    <table class="layui-hide" id="currentTableId_Jfys" lay-filter="currentTableFilter5"></table>
                </div>
            </form>
        </div>
        <!--经费预算结束-->
        <!--审查意见开始-->
        <div class="layui-tab-item">
            <form class="layui-form" action="" lay-filter="formDemo">
                <div class="layui-form layuimini-form">
                    <div class="layui-form-item">
                        <label class="layui-form-label" style="width: 90px">审查意见</label>
                        <div class="layui-input-inline" style="width: 85%">
                            <textarea id="sqdwldscyj1" name="sqdwldscyj1" th:text = "${report.sqdwldscyj1}" class="layui-textarea"
                                      style="width: 100%;height: 339px"></textarea>
                            <label class="layui-form-label" style="color:grey;width: 100%;text-align: left">文本内容，如果包含图片，请下载模板编辑后上传，并清空当前编辑框</label>
                        </div>
                    </div>
                    <div class="layui-form-item">
                        <label class="layui-form-label" style="width: 90px">
                        </label>
                        <input type="hidden" id="scyjfj" name="scyjfj" class="layui-input"/>
                        <div class="layui-input-inline" style="width: 85%">
                            <table class="layui-hide" id="currentTableId_SCYJ" lay-filter="currentTableId_SCYJ"
                                   style="padding-top: 0px;margin-top: 0px"></table>
                        </div>
                    </div>
                    <div class="layui-btn-container">
                        <label class="layui-form-label" style="width: 90px"></label>
                        <button type="button" class="layui-btn layui-btn upload" lay-data="{fileType:'scyjFile'}">
                            <i class="layui-icon layui-icon-export" style="font-size: 10px;"></i>上传附件
                        </button>
                        <a class="layui-btn layui-btn-primary" th:href="${scyjTemplate}">
                            <i class="layui-icon layui-icon-export" style="font-size: 10px;"></i>下载模板
                        </a>
                        <button class="layui-btn layui-btn layui-btn-danger" lay-filter="delScyj">
                            <i class="layui-icon layui-icon-delete" style="font-size: 10px;"></i>删除
                        </button>
                    </div>
                </div>
                <!-- 右侧悬浮按钮 -->
                <div class="layui-form layuimini-form">
                    <div class="right-bottom-btn">
                        <button type="button" class="layui-btn" lay-filter="saveScyj">
                            <i class="layui-icon layui-icon-ok"></i>保存
                        </button>
                        <button class="layui-btn" lay-filter="cancleBtn">
                            <i class="layui-icon layui-icon-close"></i>取消
                        </button>
                    </div>
                </div>
            </form>
        </div>
        <!--审查意见结束-->
        <!--附件开始-->
        <div class="layui-tab-item" style="min-height: 525px; padding-left: 30px; padding-right: 30px">
            <form class="layui-form" action="" lay-filter="formDemo">
                <div class="layui-form layuimini-form">
                    <div class="layui-form-item">
                        <input type="hidden" id="fj" name="fj" th:value="${report.fj}" class="layui-input"/>
                        <div class="layui-input-inline" style="width: 100%">
                            <table class="layui-hide" id="currentTableId_FJ" lay-filter="currentTableId_FJ"
                                   style="padding-top: 0px;margin-top: 0px"></table>
                        </div>
                    </div>
                </div>
            </form>
        </div>
        <!--附件结束-->
        <!--签名盖章开始-->
        <div class="layui-tab-item" style="min-height: 525px; padding-left: 30px; padding-right: 30px">
            <form class="layui-form" action="" lay-filter="formDemo">
                <div class="layui-form layuimini-form">
                    <div class="layui-form-item">
                        <div class="layui-input-inline" style="width: 100%">
                            <table class="layui-hide" id="currentTableId_QMGZ" lay-filter="currentTableId_QMGZ"
                                   style="padding-top: 0px;margin-top: 0px"></table>
                        </div>
                    </div>
                </div>
            </form>
        </div>
        <!--签名盖章结束-->
        <div class="layui-form layuimini-form">
            <!-- 右侧悬浮按钮 -->
            <div class="right-bottom-btn" style="padding-right: 1%">
                <button class="layui-btn" lay-filter="cancleBtn"><i
                        class="layui-icon layui-icon-close"></i>关闭
                </button>
            </div>
        </div>
    </div>
</div>
<script th:src="@{/lib/jquery-3.4.1/jquery-3.4.1.min.js}" charset="utf-8"></script>
<script th:src="@{/lib/layui-v2.6.3/layui.js}" charset="utf-8"></script>
<script th:src="@{/lib/coco-message/coco-message.js}" charset="utf-8"></script>
<script th:src="@{/js/lay-config.js}" charset="utf-8"></script>
<script th:src="@{/lib/xm-select-v1.2.2/xm-select.js}" charset="utf-8"></script>
<script type="text/javascript" th:inline="javascript">
    AjaxUtil.ctx = /*[[@{/}]]*/'';
    var updateflag = 0;
    var prjMember = [];

    var userList1 = [];

    layui.use(['form', 'layer', 'table', 'treeTable'], function () {
        var form = layui.form,
            table = layui.table,
            treeTable = layui.treeTable,
            laydate = layui.laydate,
            layer = layui.layer;
        var xmId = $("#id").val();


        var tableData = new Array(); // 用于存放表格数据

        //项目负责人
        var directorData = eval('(' + [[${report.staDirectorList}]] + ')');

        var currTable1 = table.render({
            elem: '#currentTableId1',
            data: directorData,
            cols: [
                [
                    {type: "checkbox", width: '60', fixed: 'left'},
                    {type: 'numbers', width: '100', title: '序号', align: 'center'},
                    {field: 'xm', width: '120', title: '姓名'},
                    {field: 'dwmc', width: '300', title: '单位'},
                    {field: 'gddh', width: '150', title: '联系电话'}
                ]
            ],
            autoSort: true,
            initSort: {
                field: 'xh', //排序字段
                type: 'asc' //排序方式:desc 降序,asc 升序
            }
        });
        var currTable_mdhyy = fileTableInit(table, '#currentTableId_MDHYY', eval('(' + [[${report.mdhyy}]] + ')'), 'mdhyyFile');
        var currTable_yjsp = fileTableInit(table, '#currentTableId_YJSP', eval('(' + [[${report.gnwyjspzs}]] + ')'), 'yjspFile');
        var currTable_llsjyj = fileTableInit(table, '#currentTableId_LLSJYJ', eval('(' + [[${report.xmdllhsjyj}]] + ')'), 'llsjyjFile');
        var currTable_yjnr = fileTableInit(table, '#currentTableId_YJNR', eval('(' + [[${report.xmyjnrhssfa}]] + ')'), 'yjnrFile');
        var currTable_cddwtj = fileTableInit(table, '#currentTableId_CDDWTJ', eval('(' + [[${report.xmcddwdtj}]] + ')'), 'cddwtjFile');
        var currTable_scyj = fileTableInit(table, '#currentTableId_SCYJ', eval('(' + [[${report.scyjfj}]] + ')'), 'scyjFile');
        var currTable_fj = fileTableInit(table, '#currentTableId_FJ', eval('(' + [[${report.fj}]] + ')'), 'fjFile');
        var currTable_qmgz = fileTableInit(table, '#currentTableId_QMGZ', eval('(' + [[${report.ygzmwj}]] + ')'), 'gmgzFile');

        //进度安排
        var planTableData = new Array(); // 用于存放表格数据
        var layPlanTableId = "layTable";

        var planData = eval('(' + [[${report.staScheduleList}]] + ')');
        var planTable = table.render({
            elem: '#planTableId',
            id: layPlanTableId,
            data: planData,
            cols: [
                [
                    {type: 'numbers', width: '60', align: 'center'},
                    {field: 'yjnr', width: '60%', title: '研究内容', edit: 'text', align: 'left'},
                    {
                        field: 'qssj',
                        width: '120',
                        title: '起始日期',
                        event: 'planStartDate',
                        data_field: 'qsrq',
                        align: 'center'
                    },
                    {
                        field: 'jssj',
                        width: '120',
                        title: '结束日期',
                        event: 'planEndDate',
                        data_field: 'jsrq',
                        align: 'center'
                    }
                ]
            ],
            autoSort: false,
            // limits: [10, 15, 20, 25, 50, 100],
            limit: 20,
            page: false,
            skin: 'grid',
            done: function (res, curr, count) { // done为数据渲染完的回调
                planTableData = res.data;

            }
        });

        //经费预算
        var dataBudget = new Array();
        $.ajax({
            url: AjaxUtil.ctx + 'staBudget/list/' + xmId,
            type: "post",
            async: false,
            dataType: "json",
            success: function (result) {
                dataBudget = result;
            }
        });
        treeTable.render({
            elem: '#currentTableId_Jfys',
            data: dataBudget,
            skin: 'grid',
            tree: {
                treeColIndex: 1,
                treeSpid: "",   //最上级的父级id
                iconIndex: 1,   // 折叠图标显示在第几列
                isPidData: true,// 是否是id、pid形式数据
                idName: 'bm',  // id字段名称
                pidName: 'fj', // pid字段名称
                arrowType: 'arrow2',
                getIcon: 'ew-tree-icon-style2',
                openName: 'bm'
            },
            treeDefaultClose: false,
            page: false,
            // toolbar: '#toolbarDemo',
            cols: [
                [
                    {type: 'numbers'},
                    {field: 'mc', width: '26%', title: '名称'},
                    // {field: 'px', width: '6%', title: '排序'},
                    // {field: 'nf', width: '6%', title: '年份'},
                    {field: 'ysje', width: '12%', title: '预算金额(万元)'},
                    {field: "dw1", width: '15%', title: '陕西电科院(万元)'},
                    {field: "dw2", width: '15%', title: '拟合作单位1(万元)'},
                    {field: "dw3", width: '15%', title: '拟合作单位2(万元)'},
                    {field: "dw4", width: '15%', title: '拟合作单位3(万元)'},
                    {field: "dw5", width: '15%', title: '拟合作单位4(万元)'},
                    {field: "dw6", width: '15%', title: '拟合作单位5(万元)'}
                    // {field: 'hjbm', width: '8%', title: '合计编码'},
                    // {field: 'bz', width: '15%', title: '备注'}
                ]
            ]
        });
        //双击（目的和意义）
        table.on('rowDouble(currentTableId_MDHYY)', function (obj) {
            window.open(obj.data.Url);
        });
        //双击（研究水平）
        table.on('rowDouble(currentTableId_YJSP)', function (obj) {
            window.open(obj.data.Url);
        });
        //双击（理论实践依据）
        table.on('rowDouble(currentTableId_LLSJYJ)', function (obj) {
            window.open(obj.data.Url);
        });
        //双击（研究内容）
        table.on('rowDouble(currentTableId_YJNR)', function (obj) {
            window.open(obj.data.Url);
        });
        //双击（承担单位条件）
        table.on('rowDouble(currentTableId_CDDWTJ)', function (obj) {
            window.open(obj.data.Url);
        });
        //双击（审查意见）
        table.on('rowDouble(currentTableId_SCYJ)', function (obj) {
            window.open(obj.data.Url);
        });
        //双击（附件）
        table.on('rowDouble(currentTableId_FJ)', function (obj) {
            window.open(obj.data.Url);
        });
        //双击（签名盖章）
        table.on('rowDouble(currentTableId_QMGZ)', function (obj) {
            window.open(obj.data.Url);
        });

        // 监听取消按钮
        $("button[lay-filter='cancleBtn']").click(function () {
            var iframeIndex = parent.layer.getFrameIndex(window.name);
            parent.layer.close(iframeIndex);
        });
    });

    function setUpdateFlag() {
        updateflag = 1;
    }

    //从子页面设置父页面的值
    function setData(id, name) {
        ObjId = id;
        ObjName = name;
    }

    function setMember(member) {
        prjMember = member;
        userList1.push(member);
    }

    function setCompany(company) {
        prjCompany = company;
    }

    function fileTableInit(table, tableID, tableData, fileType) {
        return table.render({
            elem: tableID,
            data: tableData,
            cols: [
                [
                    {type: 'numbers', align: 'center',title: '序号'},
                    {field: 'wjm', title: '文件名', width: '40%'},
                    {field: 'scrq', title: '上传日期', width: '20%'},
                    /*{field: 'sm', title: '说明', edit: 'text', width: '30%'}*/
                ]
            ],
            autoSort: false,
            limits: [10, 15, 20, 25, 50, 100],
            limit: 10,
            page: false,
            skin: 'grid',
            done: function (res, curr, count) { // done为数据渲染完的回调
            }
        });
    }
</script>
</body>
</html>