Edit.html 5.77 KB
<%include '../../common/views/__ui/header'%>
<%include '../../common/views/__partail/ListHeader'%>
<div class="contentpanel">
    <div class="row">
        <div class="col-md-12">
            <div class="panel panel-default">

                <div class="panel-body nopadding">

                    <form id="new-class-form" class="form-horizontal form-bordered" method="post" action="<%action%>">

                    </form>
                </div>

                <div class="panel-footer">
                    <button type="submit" class="btn btn-success">保存</button>
                    <a href="/erpproduct/sort/index" class="btn btn-danger">取消</a>
                </div>
            </div>
        </div>

    </div>
</div>

<script type="text/template" id="template">
    <div class="form-group">
        <label class="col-md-2 control-label">
            物理类目<span class="red">*</span>
        </label>

        <div class="col-md-5">
            <input id="sortName" class="form-control" required type="text" value="[[sortName]]" placeholder="品类名称">
        </div>
    </div>

    <div class="form-group">
        <label class="col-md-2 control-label">
            品类缩写<span class="red">*</span>
        </label>

        <div class="col-md-5">
            <input id="sortInitials" class="form-control" required type="text" value="[[sortInitials]]" placeholder="品类缩写">
        </div>
    </div>

    <div class="form-group">
        <label class="col-md-2 control-label">
            分类
        </label>

        <div class="col-md-5">
            <div id="sortTree"></div>
        </div>
    </div>

    <div class="form-group">
        <label class="col-md-2 control-label">性别
            <span class="red">*</span>
        </label>

        <div class="col-md-5">
            <select id="gender" value="[[gender]]" tabindex="3" class="form-control height40" name="gender">
                    <option value="3">通用</option>
                    <option value="1"></option>
                    <option value="2"></option>
            </select>
        </div>
    </div>

    <div class="form-group">
        <label class="col-md-2 control-label">图标
            <span class="red"></span>
        </label>

        <div class="col-md-5">
            <input type="file" id="sortIco" name="sortIco" value="[[sortIco]]">
        </div>
    </div>

    <div class="form-group">
        <label class="col-md-2 control-label">排序
            <span class="red">*</span>
        </label>

        <div class="col-md-5">
            <input id="orderBy" class="form-control" required value="[[orderBy]]" type="number" placeholder="">
        </div>
    </div>

    <div class="form-group">
        <label class="col-md-2 control-label">状态</label>
        <div class="col-md-5 form-inline">
            <div class="radio">
                <label><input type="radio" value="1" name="status">开启</label>
            </div>
            <div class="radio" style="margin-left: 10px">
                <label><input type="radio" value="0" name="status">关闭</label>
            </div>
            <input id="status" type="hidden" value="[[status||'0']]" for="radio">
        </div>
    </div>

    <div class="form-group category-min-level-3" display="sortLevel && sortLevel != 1 && sortLevel != 2" id="taxRate_div">
        <label class="col-md-2 control-label">发票税率 <span class="red">*</span></label>
        <div class="col-sm-8">
            <label class="radio-inline">
                <input type="radio" name="taxRate" value="0"/>0</label>
            <label class="radio-inline">
                <input type="radio" name="taxRate" value="0.06"/>0.06</label>
            <label class="radio-inline">
                <input type="radio" name="taxRate" value="0.1"/>0.10</label>
            <label class="radio-inline">
                <input type="radio" name="taxRate" value="0.11"/>0.11</label>
            <label class="radio-inline">
                <input type="radio" name="taxRate" value="0.13"/>0.13</label>
            <label class="radio-inline">
                <input type="radio" name="taxRate" value="0.16"/>0.16</label>
            <label class="radio-inline">
                <input type="radio" name="taxRate" value="0.17"/>0.17</label>
        </div>
        <input type="hidden" id="taxRate" value="[[taxRate]]" for="radio">
    </div>

    <div class="form-group category-min-level-3" display="sortLevel && sortLevel != 1 && sortLevel != 2" id="composite-rate-div">
        <label class="col-md-2 control-label">综合税率 <span class="red">*</span></label>
        <div class="col-sm-5">
            <input type="text" id="compositeRate" class="form-control" value="[[compositeRate]]">
        </div>
    </div>

    <div class="form-group category-min-level-3" display="sortLevel && sortLevel != 1 && sortLevel != 2" id="net-weight-div">
        <label class="col-md-2 control-label">净重  <span class="red"></span></label>
        <div class="col-sm-5">
            <div class="input-group">
                <input type="text" id="netWeight" class="form-control" type="number" value="[[netWeight]]">
                <div class="input-group-addon"> kg</div>
            </div>
        </div>
    </div>

    <div class="form-group category-min-level-3" display="sortLevel && sortLevel != 1 && sortLevel != 2" id="gross-weight-div">
        <label class="col-md-2 control-label">毛重</label>
        <div class="col-sm-5">
            <div class="input-group">
                <input type="text" id="grossWeight" class="form-control" type="number" value="[[grossWeight]]">
                <div class="input-group-addon"> kg</div>
            </div>
        </div>
    </div>

    <input id="id" class="form-control" type="hidden" value="[[id]]">
</script>
<%include '../../common/views/__ui/footer'%>