index.html 7.3 KB
<div class="pageheader">
    <div class="media">
        <div class="pageicon pull-left">
            <i class="fa fa-th-list"></i>
        </div>
        <div class="media-body">
            <ul class="breadcrumb">
                <li><a href=""><i class="glyphicon glyphicon-home"></i></a></li>
                <li><a href="">合同管理</a></li>
                <li>合同创建</li>
            </ul>

            <div>
                <div style="width: 30%;float: left;">
                    <h4>合同创建</h4>
                </div>
            </div>
        </div>
    </div>
</div>

<div class="contentpanel">
    <div class="panel panel-default" style="margin-bottom:10px;">
        {{# isadd}}
        <div class="panel-heading">
            <a href="/supplier/agreement/add" class="btn btn-success"><i class="fa fa-plus"></i> 创建合同</a>
        </div>
        {{/ isadd}}
        <div class="panel-body">
            <div class="row">
                {{# dropdownstatus}}
                <select name="status" id="status" style="width:150px;" tabindex="-1" title="" class="select2-offscreen">
                    <option value="0" selected="">选择状态</option>
                    <option value="100">暂存</option>
                    <option value="500">审核中</option>
                    <option value="900">审核驳回</option>     
                </select>
                {{/ dropdownstatus}}     
                <select name="supplier-id" id="supplier-name" style="width:280px;" tabindex="-1" title="" class="select2-offscreen">
                    <option value="">选择供应商</option>
                    {{# supplier}}
                    <option value="{{value}}">{{name}}</option>
                    {{/ supplier}}        
                </select>
                <select name="brand-id" id="brand-id" style="width:150px;" tabindex="-1" title="" class="select2-offscreen">
                    <option value="">选择品牌</option>
                    {{# brandName}}
                    <option value="{{value}}">{{name}}</option>
                    {{/ brandName}}        
                </select>
                <button class="btn btn-info" type="submit">查询</button>
                <a href="/erpproduct/brands/index" class="btn btn-info">全部</a>
            </div>
        </div>
    </div>
    <div class="panel panel-primary-head">
        <div id="basicTable_wrapper" class="dataTables_wrapper no-footer">
            <div class="dataTables_length" id="basicTable_length">
                <table id="basicTable" class="table table-striped table-bordered responsive dataTable no-footer" role="grid" aria-describedby="basicTable_info">
                    <thead class="">
                    <tr role="row">
                        <th>合同名称/编号</th>
                        <th>供应商/包含品牌</th>
                        <th>经营模式</th>
                        <th>合同属性</th>
                        <th>有效期</th>
                        <th>操作</th>
                        <th>状态</th>
                        <th>操作</th>
                    </tr>
                    </thead>
                     <tbody>           
                    </tbody>
                </table>
            </div>
            <nav>
                <ul id="pagination" class="pagination pagination-lg" data-page="{{pagination}}"></ul>
            </nav>
        </div>
    </div>
</div>

<input type="hidden" value="{{buttons}}" id="btnAuthority" />

<div class="modal fade" id="modify-pact" tabindex="-1" role="dialog" aria-labelledby="myModalLabel">
    <div class="modal-dialog" role="document">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
                <h4 class="modal-title">修改合同编号</h4>
            </div>
            <div class="modal-body">
                <div class="panel panel-default">
                    <div class="panel-body">
                        <div class="form-group">
                            <label class="col-sm-3 control-label">合同编号</label>
                            <div class="col-sm-9">
                                <input id="agreement-code" type="text" class="form-control" name="agreement-code" style="width:280px;" placeholder="合同编号">
                            </div>
                        </div>
                    </div>
                    <div class="panel-footer">
                        <div class="row">
                            <div class="col-sm-9 col-sm-offset-3">
                                <input type="hidden" name="agreement_id" value="695">
                                <button id="modify-pact-submit" class="btn btn-success" data-loading-text="提交中...">提交</button>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>

<div class="modal fade" id="relieve-pact" tabindex="-1" role="dialog" aria-labelledby="myModalLabel">
    <div class="modal-dialog" role="document">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
                <h4 class="modal-title">温馨提示</h4>
            </div>
            <div class="modal-body">确定要解除该合同吗?</div>
            <div class="modal-footer">
                <button type="button" class="btn btn-default" data-dismiss="modal">取消</button>
                <button type="button" id="postBtn" class="btn btn-primary">确定</button>
            </div>
        </div>
    </div>
</div>

<div class="modal fade" id="renew-pact" tabindex="-1" role="dialog" aria-labelledby="myModalLabel">
    <div class="modal-dialog" role="document">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
                <h4 class="modal-title">修改合同编号</h4>
            </div>
            <div class="modal-body">
                <div class="panel panel-default">
                    <div class="panel-body">
                        <div class="form-group">
                            <label class="col-sm-3 control-label">续约至</label>
                            <div class="col-sm-9">
                                <input id="renew-date" type="text" class="form-control" name="renew-date" style="width:280px;">
                            </div>
                        </div>
                    </div><!-- panel-body -->
                    <div class="panel-footer">
                        <div class="row">
                            <div class="col-sm-9 col-sm-offset-3">
                                <input type="hidden" name="agreement_id" value="695">
                                <button id="renew-pact-submit" class="btn btn-success" data-loading-text="提交中...">提交</button>
                            </div>
                        </div>
                    </div><!-- panel-footer -->
                </div>
            </div>
        </div>
    </div>
</div>