<!DOCTYPE html>
<html>
<head>
    <title></title>
    #parse("sys/header.html")
    <style>
        .upload-list {
            display: inline-block;
            width: 60px;
            height: 60px;
            text-align: center;
            line-height: 60px;
            border: 1px solid transparent;
            border-radius: 4px;
            overflow: hidden;
            background: #fff;
            position: relative;
            box-shadow: 0 1px 1px rgba(0, 0, 0, .2);
            margin-right: 4px;
        }

        .upload-list img {
            width: 100%;
            height: 100%;
        }

        .upload-list-cover {
            display: none;
            position: absolute;
            top: 0;
            bottom: 0;
            left: 0;
            right: 0;
            background: rgba(0, 0, 0, .6);
        }

        .upload-list:hover .upload-list-cover {
            display: block;
        }

        .upload-list-cover i {
            color: #fff;
            font-size: 20px;
            cursor: pointer;
            margin: 0 2px;
        }

        .hselect {
            margin: 0;
            padding: 0;
        }
    </style>
</head>
<body>
<div id="rrapp" v-cloak>
    <div v-show="showList">
        <Row :gutter="16">
            <div class="search-group">
                <i-col span="4">
                    <i-input v-model="q.prodBarcode" @on-enter="query" placeholder="商品编码"/>
                </i-col>
                <i-button @click="query">查询</i-button>
                <i-button @click="reloadSearch">重置</i-button>
            </div>
            <div class="buttons-group">
                <i-button type="info" @click="getTotal"><i class="fa"></i>&nbsp;全选</i-button>
                #if($shiro.hasPermission("goods:update"))
                <i-button type="info" @click="getInfo"><i class="fa fa-plus"></i>&nbsp;普货订单生成</i-button>
                <i-button class="btn btn-outline btn-primary" onclick="vm.removeData()"><i class="fa fa-remove"></i>批量删除</i-button>&nbsp;
                #end
            </div>
        </Row>
        <table id="jqGrid"></table>
        <!--<div id="jqGridPager">-->
            <!--商品合计：{{goodsTotalPrice}}-->
            <!--实收：{{applyPrice}}-->
        <!--</div>-->
    </div>

    <Card v-show="!showList">
        <p slot="title">{{title}}</p>
        <i-form ref="formValidate" :model="offlineCart" :rules="ruleValidate" :label-width="140">
            <table class="table">
                <tr>
                    <th style="text-align: left; width: 600px; font-weight: bold;" colspan="2">商品名称</th>
                    <th style="text-align: center; width: 240px; font-weight: bold;">单价</th>
                    <th style="text-align: center; width: 240px; font-weight: bold;">数量</th>
                    <th style="text-align: center; width: 240px; font-weight: bold;">小计</th>
                </tr>
                <tr v-for="(item,index) in offlineCartList">
                    <td colspan="2"><p style="line-height: 30px;">{{item.goodsName}}</p></td>
                    <td align="center"><p style="line-height: 30px;">￥{{item.retailPrice}}</p></td>
                    <td align="center"><p style="line-height: 30px;">{{item.number}}</p></td>
                    <td align="center">￥{{item.number * item.retailPrice}}</td>
                </tr>
                <tr>
                    <td align="left" colspan="2" style="font-weight: bold;">总计</td>
                    <td align="center">-</td>
                    <td align="center">-</td>
                    <td align="center">￥{{goodsTotalPrice}}</td>
                </tr>
            </table>
            <i-button type="primary" @click="handleSubmit('formValidate')">提交</i-button>
            <i-button type="warning" @click="back" style="margin-left: 8px"/>返回</i-button>
        </i-form>
    </Card>
</div>
<script src="${rc.contextPath}/js/shop/scannShop.js?_${date.systemTime}"></script>
</body>
</html>