<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
    <head>
        <script th:replace="common/head"></script>
        <!-- 样式 -->
        <link rel="stylesheet" th:href="@{'/css/permission/community-add.css'}" media="all">
        <style>
            .flowCardClass {
                width: 130px;
            }

            #flowCardAdd .layui-form-item .layui-input-inline {
                width: 310px;
            }
            .xm-toolbar .toolbar-tag {
                width: 100%;
                display: flex;
                justify-content: center;
                background-color: #1E9FFF!important;
                color: #fff!important;
            }
        </style>
    </head>
    <body>

        <div class="layui-fluid" id="flowCardAdd">
            <div class="layui-row layui-col-space15">
                <div class="layui-col-md12">
                    <div class="layui-card">
                        <div class="layui-card-body">
                            <div class="layui-form">
                                <div class="layui-form-item">
                                    <label class="layui-form-label flowCardClass"><span class="must">*</span><span>流量卡号:</span></label>
                                    <div class="layui-input-inline">
                                        <input name="cardNum" type="number" lay-verify="required|number|duplicate" placeholder="请输入流量卡号" autocomplete="off" class="layui-input" />
                                    </div>
                                </div>
                                <div class="layui-form-item">
                                    <label class="layui-form-label flowCardClass"><span class="must">*</span><span>运营商:</span></label>
                                    <div class="layui-input-inline">
                                        <div id="operator"></div>
                                        <!--<select name="operator" lay-filter="type" lay-verify="required">
                                            <option value="">请选择</option>
                                            <option value="0">中国移动</option>
                                            <option value="1">中国联通</option>
                                            <option value="2">中国电信</option>
                                            <option value="3">其他</option>
                                        </select>-->
                                    </div>
                                </div>
                                <div class="layui-form-item">
                                    <label class="layui-form-label flowCardClass"><span class="must">*</span><span>卡有效期:</span></label>
                                        <div class="layui-input-inline">
                                            <input type="text"  class="layui-input date-icon" id="card_date"  placeholder="请选择卡号有效期" autocomplete="off" lay-verify="required">
                                            <input type="hidden" lay-verify="required"  name="beginDate" id="begin_date"/>
                                            <input type="hidden" lay-verify="required"  name="endDate" id="end_date"/>
                                        </div>
                                </div>
                                <div class="layui-form-item">
                                    <label class="layui-form-label flowCardClass"><span class="must">*</span><span>所属机构:</span></label>
                                    <div class="layui-input-inline">
                                        <div id="org_id"></div>
                                    </div>
                                </div>
                                <div class="layui-form-item">
                                    <label class="layui-form-label flowCardClass"><span>流量套餐名称:</span></label>
                                    <div class="layui-input-inline">
                                        <input name="packName" type="text" placeholder="" autocomplete="off" class="layui-input" />
                                    </div>
                                </div>
                                <div class="layui-form-item">
                                    <label class="layui-form-label flowCardClass"><span>套餐总流量（MB）:</span></label>
                                    <div class="layui-input-inline">
                                        <input name="packFlow" type="number" placeholder="" autocomplete="off" class="layui-input" />
                                    </div>
                                </div>
                                <div class="layui-form-item">
                                    <div class="layui-input-block">
                                        <button class="layui-btn" lay-submit lay-filter="entity_submit_event">提交</button>
                                        <button type="reset" class="layui-btn layui-btn-primary">取消</button>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>

    </body>
    <!-- javascript -->

    <!--去掉input type="number"后面的箭头-->
    <style type="text/css">
        input::-webkit-outer-spin-button,
        input::-webkit-inner-spin-button {
            -webkit-appearance: none;
        }
        input[type="number"] {
            -moz-appearance: textfield;
        }
    </style>

    <script type="text/javascript" th:src="@{'/layui/layui.js'}" charset="utf-8"></script>
    <script type="text/javascript">
        layui.config({
            base: '/' //静态资源所在路径
        });
    </script>
    <script type="text/javascript" th:src="@{'/js/device/device-flowcard-add.js'}" charset="utf-8"></script>
</html>