1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495 |
- {extend name="common/common2" /}
- {block name="main"}
- <div class="row">
- <div class="col-sm-12">
- <div class="ibox float-e-margins">
- <!--<div class="ibox-title">-->
- <!--<h5>{$meta_title}</h5>-->
- <!--<div class="ibox-tools">-->
- <!--<a class="toback" href="{:url('index')}">-->
- <!--返回上一页-->
- <!--</a>-->
- <!--</div>-->
- <!--</div>-->
- <div class="ibox-content">
- <form method="post" action="{:url('add')}" class="form-horizontal">
- <div class="form-group">
- <label class="col-sm-2 control-label">备注</label>
- <div class="col-sm-8">
- <textarea name="remark" class="form-control" id="remark" cols="30" rows="5">{$info.remark|default=''}</textarea>
- </div>
- </div>
- <div class="form-group">
- <label class="col-sm-2 control-label">选择盘库物品<span class="text-danger">*</span></label>
- <div class="col-sm-8">
- <a url="{:url('CompanyGoods/selectGoods')}" href="javascript:;" data-title="选择物品" onclick="layer_open(this,0)" class="btn btn-primary">选择物品</a>
- <table class="table table-striped table-bordered">
- <thead>
- <tr>
- <th>名称</th>
- <th>品牌</th>
- <th>规格</th>
- <th>类型</th>
- <th>单价</th>
- <th>数量</th>
- </tr>
- </thead>
- <tbody class="layer-photos" id="layer-photos">
- </tbody>
- </table>
- </div>
- </div>
- <div class="hr-line-dashed"></div>
- <div class="form-group">
- <div class="col-sm-6 col-sm-offset-2">
- <button class="btn btn-primary ajax-post" data-layer_c="1" target-form="form-horizontal" type="submit">确 定</button>
- <button class="btn cancel-btn btn-default" type="button">取 消</button>
- </div>
- </div>
- </form>
- </div>
- </div>
- </div>
- </div>
- {/block}
- {block name="script"}
- <script type="text/javascript" src="/static/layDate-v5.0.9/laydate.js"></script>
- <script>
- laydate.render({
- elem: '#buy_time',
- trigger: 'click' ,
- theme:'#284a94'
- });
- $(document).ready(function(){
- localStorage.removeItem("mateapply");
- localStorage.removeItem("mateapplyids");
- });
- var lists = [];
- function formatList() {
- var str = '';
- let ids = [];
- for (let o in lists){
- ids.push(lists[o].id);
- str += '<tr>';
- str += '<td><input type="hidden" name="goods[]" value="'+lists[o].id+'">'+lists[o].title+'</td>';
- str += '<td>'+lists[o].brand+'</td>';
- str += '<td>'+lists[o].spec+'</td>';
- str += '<td>'+lists[o].type+'</td>';
- str += '<td>'+lists[o].price+'</td>';
- str += '<td>'+lists[o].nums+'</td>';
- str += '</tr>';
- }
- $('#layer-photos').html(str);
- if(ids.length > 0){
- localStorage.setItem("mateapply", JSON.stringify(lists));
- localStorage.setItem("mateapplyids", JSON.stringify(ids));
- }else{
- localStorage.removeItem("mateapply");
- localStorage.removeItem("mateapplyids");
- }
- console.log(keyword);
- }
- </script>
- {/block}
|