<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ include file="/webpage/include/taglib.jsp"%>
<html>
<head>
    <title>创建工程</title>
    <link rel="stylesheet" type="text/css" href="${ctxp}/static/plugin/assets/layui/css/layui.css"/>
    <!--<script type="text/javascript" src="layui/lay/modules/jquery.js"></script>-->
</head>
<style>
    .limit-divbr{
        /*background-color: darkblue;*/
        width: 10%;
        margin-left: 45%;
        height: 11px;
        line-height: 11px;
    }
    .layui-icon-layer{
        display: none;
    }
    .layui-icon-file{
        display: none;
    }
</style>
<body style="text-align: center;background-color: white">
<form class="layui-form" action="${ctx}/jkxl/import" method="post" style="margin-top: 60px;" enctype="multipart/form-data">
    <sys:message content="${message}"/>
    <div class="" style="margin-left: 30px;">
        <input type="button" class="layui-btn layui-btn-radiu" value="选择结算文件" id="btnxz"/>
        <input type="text" style="border-style:none;border:0;" readonly="readonly"/>
        <input type="file" style="display: none;" accept=".xls,.xlsx" id="myfile" name="file"/>
    </div>
    <div class="limit-divbr"></div>
    <div class="layui-form-item">
        <div class="layui-inline">
            <span>*结算书文件为博微导出xls/xlsx格式文件</span>
        </div>
    </div>
    <!---------列表---------->
    <div class="layui-form-item">
        <div class="layui-inline">
            <label class="layui-form-label">*项目划分</label>
            <div class="layui-input-inline">
                <select name="xmhf" lay-verify="required" lay-search="">
                    <option value="">请选择</option>
                    <option value="1">架空线路工程</option>
                    <option value="2">-空-</option>
                </select>
            </div>
        </div>
    </div>
    <div class="layui-form-item">
        <div class="layui-inline">
            <label class="layui-form-label">*调整文件</label>
            <div class="layui-input-inline">
                <select name="tzwj" lay-verify="required" lay-search="">
                    <option value="">请选择</option>
                    <option value="1">2016年调差价系数文件（50号文件）</option>
                    <option value="2">-空-</option>
                </select>
            </div>
        </div>
    </div>
    <div class="layui-form-item">
        <div class="layui-inline">
            <label class="layui-form-label">*进项税率</label>
            <div class="layui-input-inline">
                <select name="jxsl" lay-verify="required" lay-search="">
                    <option value="">请选择</option>
                    <option value="0.13">13%</option>
                    <option value="0.16">16%</option>
                    <option value="0.17">17%</option>
                </select>
            </div>
        </div>
    </div>
    <div class="layui-form-item">
        <div class="layui-inline">
            <label class="layui-form-label">项目名称</label>
            <div class="layui-input-inline">
                <input type="text" name="name" class="layui-input" id="inputwrite">
            </div>
        </div>
    </div>
    <div class="layui-form-item">
        <div class="layui-inline">
            <label class="layui-form-label">项目编号</label>
            <div class="layui-input-inline">
                <input type="text" name="" class="layui-input">
            </div>
        </div>
    </div>
    <div class="layui-form-item">
        <div class="layui-input-block">
            <button class="layui-btn" lay-submit="" lay-filter="mysubmit">创建</button>
            <button type="reset" class="layui-btn layui-btn-primary">取消</button>
        </div>
    </div>
</form>
<%--<script type="text/javascript" src="${ctx}/static/plugin/assets/layui/layui.js"></script>--%>
<script type="text/javascript" src="${ctxp}/static/plugin/assets/jquery-3.2.1.min.js"></script>
<script type="text/javascript" src="${ctxp}/static/plugin/assets/layui/layui.all.js"></script>
<!-------js---------->
<script>
    layui.use(['form', 'layedit', 'laydate'], function(){
        var form = layui.form;
        form.render();
    })
</script>
<script>
    $(function(){
        $("#btnxz").click(function(){
            $("#myfile").trigger("click");
        })
        $("#myfile").bind("change",function(){
            $("#inputwrite").attr("value",$("#myfile").val());
        });

    });
</script>
</body>
</html>
