<!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("mkstorepromstat:save"))
                <i-button type="info" @click="add"><i class="fa fa-plus"></i>&nbsp;新增</i-button>
                #end
                #if($shiro.hasPermission("mkstorepromstat:update"))
                <i-button type="warning" @click="update"><i class="fa fa-pencil-square-o"></i>&nbsp;修改</i-button>
                #end
                #if($shiro.hasPermission("mkstorepromstat: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="!showList">
        <p slot="title">{{title}}</p>
		<i-form ref="formValidate" :model="mkStorePromStat" :rules="ruleValidate" :label-width="80">
            <Form-item label="推广ID" prop="promId">
                <i-input v-model="mkStorePromStat.promId" placeholder="推广ID"/>
            </Form-item>
            <Form-item label="门店id" prop="storeId">
                <i-input v-model="mkStorePromStat.storeId" placeholder="门店id"/>
            </Form-item>
            <Form-item label="浏览数" prop="browseNum">
                <i-input v-model="mkStorePromStat.browseNum" placeholder="浏览数"/>
            </Form-item>
            <Form-item label="访客量" prop="visitNum">
                <i-input v-model="mkStorePromStat.visitNum" placeholder="访客量"/>
            </Form-item>
            <Form-item label="连带浏览量" prop="relaBrowseNum">
                <i-input v-model="mkStorePromStat.relaBrowseNum" placeholder="连带浏览量"/>
            </Form-item>
            <Form-item label="连带访客量" prop="relaVisitorNum">
                <i-input v-model="mkStorePromStat.relaVisitorNum" placeholder="连带访客量"/>
            </Form-item>
            <Form-item label="人均停留时长(秒)" prop="aveStopTime">
                <i-input v-model="mkStorePromStat.aveStopTime" placeholder="人均停留时长(秒)"/>
            </Form-item>
            <Form-item label="人均访问次数" prop="aveVisitorNum">
                <i-input v-model="mkStorePromStat.aveVisitorNum" placeholder="人均访问次数"/>
            </Form-item>
            <Form-item label="页面访问深度" prop="visitPageDeep">
                <i-input v-model="mkStorePromStat.visitPageDeep" placeholder="页面访问深度"/>
            </Form-item>
            <Form-item label="转发访客量" prop="transVisitorNum">
                <i-input v-model="mkStorePromStat.transVisitorNum" placeholder="转发访客量"/>
            </Form-item>
            <Form-item label="转发次数" prop="transNum">
                <i-input v-model="mkStorePromStat.transNum" placeholder="转发次数"/>
            </Form-item>
            <Form-item label="支付单数" prop="payOrderNum">
                <i-input v-model="mkStorePromStat.payOrderNum" placeholder="支付单数"/>
            </Form-item>
            <Form-item label="连带支付单数" prop="relaPayOrderNum">
                <i-input v-model="mkStorePromStat.relaPayOrderNum" placeholder="连带支付单数"/>
            </Form-item>
            <Form-item label="支付人数" prop="payerNum">
                <i-input v-model="mkStorePromStat.payerNum" placeholder="支付人数"/>
            </Form-item>
            <Form-item label="连带支付人数" prop="relaPayerNum">
                <i-input v-model="mkStorePromStat.relaPayerNum" placeholder="连带支付人数"/>
            </Form-item>
            <Form-item label="支付件数" prop="payCaseNum">
                <i-input v-model="mkStorePromStat.payCaseNum" placeholder="支付件数"/>
            </Form-item>
            <Form-item label="连带支付件数" prop="relaPayCaseNum">
                <i-input v-model="mkStorePromStat.relaPayCaseNum" placeholder="连带支付件数"/>
            </Form-item>
            <Form-item label="应收金额" prop="receivMoney">
                <i-input v-model="mkStorePromStat.receivMoney" placeholder="应收金额"/>
            </Form-item>
            <Form-item label="连带应收金额" prop="relaReceivMoney">
                <i-input v-model="mkStorePromStat.relaReceivMoney" placeholder="连带应收金额"/>
            </Form-item>
            <Form-item label="实收金额" prop="actMoney">
                <i-input v-model="mkStorePromStat.actMoney" placeholder="实收金额"/>
            </Form-item>
            <Form-item label="连带实收金额" prop="relaActMoney">
                <i-input v-model="mkStorePromStat.relaActMoney" placeholder="连带实收金额"/>
            </Form-item>
            <Form-item label="是否有效" prop="isValid">
                <i-input v-model="mkStorePromStat.isValid" 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>

    <Card v-show="!statInfoList">
        <p slot="title">{{title}}</p>
        <i-form :model="mkStorePromStat" :label-width="100">
            <Form-item label="推广ID" prop="promId">
                {{mkStorePromStat.promId}}
            </Form-item>
            <Form-item label="门店id" prop="storeId">
                {{mkStorePromStat.storeId}}
            </Form-item>
            <Form-item label="浏览数" prop="browseNum">
                {{mkStorePromStat.browseNum}}
            </Form-item>
            <Form-item label="访客量" prop="visitNum">
                {{mkStorePromStat.visitNum}}
            </Form-item>
            <Form-item label="连带浏览量" prop="relaBrowseNum">
                {{mkStorePromStat.relaBrowseNum}}
            </Form-item>
            <Form-item label="连带访客量" prop="relaVisitorNum">
                {{mkStorePromStat.relaVisitorNum}}
            </Form-item>
            <!--<Form-item label="人均停留时长(秒)" prop="aveStopTime">-->
                <!--{{mkStorePromStat.aveStopTime}}-->
            <!--</Form-item>-->
            <!--<Form-item label="人均访问次数" prop="aveVisitorNum">-->
                <!--{{mkStorePromStat.aveVisitorNum}}-->
            <!--</Form-item>-->
            <Form-item label="页面访问深度" prop="visitPageDeep">
                {{mkStorePromStat.visitPageDeep}}
            </Form-item>
            <Form-item label="转发访客量" prop="transVisitorNum">
                {{mkStorePromStat.transVisitorNum}}
            </Form-item>
            <Form-item label="转发次数" prop="transNum">
                {{mkStorePromStat.transNum}}
            </Form-item>
            <Form-item label="支付单数" prop="payOrderNum">
                {{mkStorePromStat.payOrderNum}}
            </Form-item>
            <!--<Form-item label="连带支付单数" prop="relaPayOrderNum">-->
                <!--{{mkStorePromStat.relaPayOrderNum}}-->
            <!--</Form-item>-->
            <Form-item label="支付人数" prop="payerNum">
                {{mkStorePromStat.payerNum}}
            </Form-item>
            <!--<Form-item label="连带支付人数" prop="relaPayerNum">-->
                <!--{{mkStorePromStat.relaPayerNum}}-->
            <!--</Form-item>-->
            <Form-item label="支付件数" prop="payCaseNum">
                {{mkStorePromStat.payCaseNum}}
            </Form-item>
            <!--<Form-item label="连带支付件数" prop="relaPayCaseNum">-->
                <!--{{mkStorePromStat.relaPayCaseNum}}-->
            <!--</Form-item>-->
            <Form-item label="应收金额" prop="receivMoney">
                {{mkStorePromStat.receivMoney}}
            </Form-item>
            <!--<Form-item label="连带应收金额" prop="relaReceivMoney">-->
                <!--{{mkStorePromStat.relaReceivMoney}}-->
            <!--</Form-item>-->
            <Form-item label="实收金额" prop="actMoney">
                {{mkStorePromStat.actMoney}}
            </Form-item>
            <!--<Form-item label="连带实收金额" prop="relaActMoney">-->
                <!--{{mkStorePromStat.relaActMoney}}-->
            <!--</Form-item>-->
            <!--<Form-item label="是否有效" prop="isValid">-->
                <!--<i-input v-model="mkStorePromStat.isValid" 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 v-show="!showOrderList" style="width: 1600px">-->
        <!--<p slot="title">{{title}}</p>-->
        <!--<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>-->
        <!--</Row>-->
        <!--<table id="jqGridOrder"></table>-->
        <!--<div id="jqGridPagerOrder"></div>-->
        <!--<i-button type="warning" @click="reload" style="margin-left: 8px"/>返回</i-button>-->
    <!--</div>-->
    <div 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>
    </div>
</div>

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