<!DOCTYPE html>
<html>
<head>
    <title>门店活动统计</title>
    #parse("sys/header.html")
</head>
<body>
<div id="rrapp" v-cloak>
	<div v-show="!showViewList">
        <Row :gutter="16">
            <div class="search-group">
                <i-col span="4">
                    <i-input v-model="q.name" @on-enter="query" placeholder="名称"/>
                </i-col>
                <i-button @click="query">查询</i-button>
                <i-button @click="reloadSearch">重置</i-button>
            </div>
            <!--<div class="buttons-group">
                #if($shiro.hasPermission("mkstoretopicstat:save"))
                <i-button type="info" @click="add"><i class="fa fa-plus"></i>&nbsp;新增</i-button>
                #end
                #if($shiro.hasPermission("mkstoretopicstat:update"))
                <i-button type="warning" @click="update"><i class="fa fa-pencil-square-o"></i>&nbsp;修改</i-button>
                #end
                #if($shiro.hasPermission("mkstoretopicstat:delete"))
                <i-button type="error" @click="del"><i class="fa fa-trash-o"></i>&nbsp;删除</i-button>
                #end
            </div>-->
        </Row>
	    <table id="jqGrid"></table>
	    <div id="jqGridPager"></div>
    </div>

    <Card v-show="!showOrderList" style="width: 1680px;">
        <p slot="title">{{title}}</p>

        <Row :gutter="16">
            <div class="search-group">
                <i-col span="4">
                    <i-select v-model="o.orderStatus" placeholder="订单状态">
                        <i-option v-for="macro in orderStatusList" :value="macro.value" :key="macro.id">{{macro.name}}
                        </i-option>
                        <!--<i-option value="402">完成</i-option>-->
                    </i-select>
                </i-col>
                <i-button @click="queryOrder">查询</i-button>
                <i-button @click="reloadOrderSearch">重置</i-button>
            </div>
        </Row>
        <!--<i-button type="info" @click="exportOrder"><i class="fa fa-cloud-download"></i>&nbsp;订单导出</i-button>-->
        <i-button type="warning" @click="reload" style="margin-left: 8px"/>返回</i-button>

        <table id="jqGridOrder"></table>
        <div id="jqGridPagerOrder"></div>
    </Card>

    <Card v-show="!statInfoList">
        <p slot="title">{{title}}</p>
        <i-form :model="mkStoreTopicStat" :label-width="100">
            <Form-item label="所属活动">
                {{mkStoreTopicStat.storeTopicName}}
            </Form-item>
            <Form-item label="所属门店">
                {{mkStoreTopicStat.storeName}}
            </Form-item>
            <Form-item label="浏览数" prop="browseNum">
                {{mkStoreTopicStat.browseNum}}
            </Form-item>
            <Form-item label="访客量" prop="visitNum">
                {{mkStoreTopicStat.visitNum}}
            </Form-item>
            <Form-item label="连带浏览量" prop="relaBrowseNum">
                {{mkStoreTopicStat.relaBrowseNum}}
            </Form-item>
            <Form-item label="连带访客量" prop="relaVisitorNum">
                {{mkStoreTopicStat.relaVisitorNum}}
            </Form-item>
            <Form-item label="页面访问深度" prop="visitPageDeep">
                {{mkStoreTopicStat.visitPageDeep}}
            </Form-item>
            <!--<Form-item label="转发访客量" prop="transVisitorNum">-->
                <!--{{mkStoreTopicStat.transVisitorNum}}-->
            <!--</Form-item>-->
            <Form-item label="下单单数" prop="submitOrderNum">
                {{mkStoreTopicStat.submitOrderNum}}
            </Form-item>
            <Form-item label="下单人数" prop="submitNum">
                {{mkStoreTopicStat.submitNum}}
            </Form-item>
            <Form-item label="支付单数" prop="payOrderNum">
                {{mkStoreTopicStat.payOrderNum}}
            </Form-item>
            <!--<Form-item label="连带支付单数" prop="relaPayOrderNum">-->
                <!--{{mkStoreTopicStat.relaPayOrderNum}}-->
            <!--</Form-item>-->
            <Form-item label="支付人数" prop="payerNum">
                {{mkStoreTopicStat.payerNum}}
            </Form-item>
            <!--<Form-item label="连带支付人数" prop="relaPayerNum">-->
                <!--{{mkStoreTopicStat.relaPayerNum}}-->
            <!--</Form-item>-->
            <Form-item label="支付件数" prop="payCaseNum">
                {{mkStoreTopicStat.payCaseNum}}
            </Form-item>
            <!--<Form-item label="连带支付件数" prop="relaPayCaseNum">-->
                <!--{{mkStoreTopicStat.relaPayCaseNum}}-->
            <!--</Form-item>-->
            <Form-item label="应收金额" prop="receivMoney">
                {{mkStoreTopicStat.receivMoney==null?'':'￥'+mkStoreTopicStat.receivMoney}}
            </Form-item>
            <!--<Form-item label="连带应收金额" prop="relaReceivMoney">-->
                <!--￥{{mkStoreTopicStat.relaReceivMoney}}-->
            <!--</Form-item>-->
            <Form-item label="实收金额" prop="actMoney">
                {{mkStoreTopicStat.actMoney==null?'':'￥'+mkStoreTopicStat.actMoney}}
            </Form-item>
            <!--<Form-item label="连带实收金额" prop="relaActMoney">-->
                <!--￥{{mkStoreTopicStat.relaActMoney}}-->
            <!--</Form-item>-->
            <!--<Form-item label="备注" prop="note">-->
                <!--{{mkStoreTopicStat.note}}-->
            <!--</Form-item>-->
            <Form-item>
                <i-button type="warning" @click="reload" style="margin-left: 8px"/>返回</i-button>
            </Form-item>
        </i-form>
    </Card>
    <Card v-show="!showList">
        <p slot="title">{{title}}</p>
		<i-form ref="formValidate" :model="mkStoreTopicStat" :rules="ruleValidate" :label-width="80">
            <Form-item label="活动id" prop="storeTopicId">
                <i-input v-model="mkStoreTopicStat.storeTopicId" placeholder="活动id"/>
            </Form-item>
            <Form-item label="门店id" prop="storeId">
                <i-input v-model="mkStoreTopicStat.storeId" placeholder="门店id"/>
            </Form-item>
            <Form-item label="浏览数" prop="browseNum">
                <i-input v-model="mkStoreTopicStat.browseNum" placeholder="浏览数"/>
            </Form-item>
            <Form-item label="访客量" prop="visitNum">
                <i-input v-model="mkStoreTopicStat.visitNum" placeholder="访客量"/>
            </Form-item>
            <Form-item label="连带浏览量" prop="relaBrowseNum">
                <i-input v-model="mkStoreTopicStat.relaBrowseNum" placeholder="连带浏览量"/>
            </Form-item>
            <Form-item label="连带访客量" prop="relaVisitorNum">
                <i-input v-model="mkStoreTopicStat.relaVisitorNum" placeholder="连带访客量"/>
            </Form-item>
            <Form-item label="页面访问深度" prop="visitPageDeep">
                <i-input v-model="mkStoreTopicStat.visitPageDeep" placeholder="页面访问深度"/>
            </Form-item>
            <Form-item label="转发访客量" prop="transVisitorNum">
                <i-input v-model="mkStoreTopicStat.transVisitorNum" placeholder="转发访客量"/>
            </Form-item>
            <Form-item label="下单单数" prop="submitOrderNum">
                <i-input v-model="mkStoreTopicStat.submitOrderNum" placeholder="下单单数"/>
            </Form-item>
            <Form-item label="下单人数" prop="submitNum">
                <i-input v-model="mkStoreTopicStat.submitNum" placeholder="下单人数"/>
            </Form-item>
            <Form-item label="支付单数" prop="payOrderNum">
                <i-input v-model="mkStoreTopicStat.payOrderNum" placeholder="支付单数"/>
            </Form-item>
            <Form-item label="连带支付单数" prop="relaPayOrderNum">
                <i-input v-model="mkStoreTopicStat.relaPayOrderNum" placeholder="连带支付单数"/>
            </Form-item>
            <Form-item label="支付人数" prop="payerNum">
                <i-input v-model="mkStoreTopicStat.payerNum" placeholder="支付人数"/>
            </Form-item>
            <Form-item label="连带支付人数" prop="relaPayerNum">
                <i-input v-model="mkStoreTopicStat.relaPayerNum" placeholder="连带支付人数"/>
            </Form-item>
            <Form-item label="支付件数" prop="payCaseNum">
                <i-input v-model="mkStoreTopicStat.payCaseNum" placeholder="支付件数"/>
            </Form-item>
            <Form-item label="连带支付件数" prop="relaPayCaseNum">
                <i-input v-model="mkStoreTopicStat.relaPayCaseNum" placeholder="连带支付件数"/>
            </Form-item>
            <Form-item label="应收金额" prop="receivMoney">
                <i-input v-model="mkStoreTopicStat.receivMoney" placeholder="应收金额"/>
            </Form-item>
            <Form-item label="连带应收金额" prop="relaReceivMoney">
                <i-input v-model="mkStoreTopicStat.relaReceivMoney" placeholder="连带应收金额"/>
            </Form-item>
            <Form-item label="实收金额" prop="actMoney">
                <i-input v-model="mkStoreTopicStat.actMoney" placeholder="实收金额"/>
            </Form-item>
            <Form-item label="连带实收金额" prop="relaActMoney">
                <i-input v-model="mkStoreTopicStat.relaActMoney" placeholder="连带实收金额"/>
            </Form-item>
            <Form-item label="是否有效,0:有效，1:无效" prop="isValid">
                <i-input v-model="mkStoreTopicStat.isValid" placeholder="是否有效,0:有效，1:无效"/>
            </Form-item>
            <Form-item label="备注" prop="note">
                <i-input v-model="mkStoreTopicStat.note" placeholder="备注"/>
            </Form-item>
            <Form-item label="创建人编号" prop="createrSn">
                <i-input v-model="mkStoreTopicStat.createrSn" placeholder="创建人编号"/>
            </Form-item>
            <Form-item label="创建时间" prop="createTime">
                <i-input v-model="mkStoreTopicStat.createTime" placeholder="创建时间"/>
            </Form-item>
            <Form-item label="修改人编号" prop="moderSn">
                <i-input v-model="mkStoreTopicStat.moderSn" placeholder="修改人编号"/>
            </Form-item>
            <Form-item label="修改时间" prop="modTime">
                <i-input v-model="mkStoreTopicStat.modTime" placeholder="修改时间"/>
            </Form-item>
            <Form-item label="时间戳" prop="tstm">
                <i-input v-model="mkStoreTopicStat.tstm" placeholder="时间戳"/>
            </Form-item>
            <Form-item>
                <i-button type="primary" @click="handleSubmit('formValidate')">提交</i-button>
                <i-button type="warning" @click="reload" style="margin-left: 8px"/>返回</i-button>
                <i-button type="ghost" @click="handleReset('formValidate')" style="margin-left: 8px">重置</i-button>
            </Form-item>
        </i-form>
	</Card>
</div>

<script src="${rc.contextPath}/js/statis/mkstoretopicstat.js?_${date.systemTime}"></script>
</body>
</html>