|
|
@ -1,103 +1,92 @@
|
|
|
|
<template>
|
|
|
|
<template>
|
|
|
|
<div>
|
|
|
|
<div>
|
|
|
|
<Spin v-if="saving" fix>加载中...</Spin>
|
|
|
|
<Spin v-if="saving"
|
|
|
|
<Form ref="formValidate" :model="formValidate" :label-width="80">
|
|
|
|
fix>加载中...</Spin>
|
|
|
|
|
|
|
|
<Form ref="formValidate"
|
|
|
|
|
|
|
|
:model="formValidate"
|
|
|
|
|
|
|
|
:label-width="80">
|
|
|
|
<Row :gutter="10">
|
|
|
|
<Row :gutter="10">
|
|
|
|
<i-col span="4">
|
|
|
|
<i-col span="4">
|
|
|
|
<FormItem label="选择日期" prop="">
|
|
|
|
<FormItem label="选择日期"
|
|
|
|
<Date-picker
|
|
|
|
prop="">
|
|
|
|
v-model="formValidate.date"
|
|
|
|
<Date-picker v-model="formValidate.date"
|
|
|
|
type="daterange"
|
|
|
|
type="daterange"
|
|
|
|
placement="bottom-end"
|
|
|
|
placement="bottom-end"
|
|
|
|
placeholder="选择日期区间"
|
|
|
|
placeholder="选择日期区间"></Date-picker>
|
|
|
|
></Date-picker>
|
|
|
|
|
|
|
|
</FormItem>
|
|
|
|
</FormItem>
|
|
|
|
</i-col>
|
|
|
|
</i-col>
|
|
|
|
<i-col span="6">
|
|
|
|
<i-col span="6">
|
|
|
|
<FormItem label="零售公司" prop="">
|
|
|
|
<FormItem label="零售公司"
|
|
|
|
<Select
|
|
|
|
prop="">
|
|
|
|
v-model="formValidate.organizationId"
|
|
|
|
<Select v-model="formValidate.organizationId"
|
|
|
|
filterable
|
|
|
|
filterable
|
|
|
|
@on-change="selectCompany"
|
|
|
|
@on-change="selectCompany"
|
|
|
|
placeholder="全部"
|
|
|
|
placeholder="全部"
|
|
|
|
clearable
|
|
|
|
clearable>
|
|
|
|
>
|
|
|
|
<Option v-for="(item, index) in companyList"
|
|
|
|
<Option
|
|
|
|
|
|
|
|
v-for="(item, index) in companyList"
|
|
|
|
|
|
|
|
:key="index"
|
|
|
|
:key="index"
|
|
|
|
:value="item.value"
|
|
|
|
:value="item.value">{{ item.label }}
|
|
|
|
>{{ item.label }}
|
|
|
|
|
|
|
|
</Option>
|
|
|
|
</Option>
|
|
|
|
</Select>
|
|
|
|
</Select>
|
|
|
|
</FormItem>
|
|
|
|
</FormItem>
|
|
|
|
</i-col>
|
|
|
|
</i-col>
|
|
|
|
<i-col span="6">
|
|
|
|
<i-col span="6">
|
|
|
|
<FormItem label="店铺" prop="">
|
|
|
|
<FormItem label="店铺"
|
|
|
|
<Select
|
|
|
|
prop="">
|
|
|
|
v-model="formValidate.storeId"
|
|
|
|
<Select v-model="formValidate.storeId"
|
|
|
|
filterable
|
|
|
|
filterable
|
|
|
|
placeholder="全部"
|
|
|
|
placeholder="全部"
|
|
|
|
clearable
|
|
|
|
clearable>
|
|
|
|
>
|
|
|
|
<Option v-for="(item, index) in shopList"
|
|
|
|
<Option
|
|
|
|
|
|
|
|
v-for="(item, index) in shopList"
|
|
|
|
|
|
|
|
:key="index"
|
|
|
|
:key="index"
|
|
|
|
:value="item.value"
|
|
|
|
:value="item.value">{{ item.label }}
|
|
|
|
>{{ item.label }}
|
|
|
|
|
|
|
|
</Option>
|
|
|
|
</Option>
|
|
|
|
</Select>
|
|
|
|
</Select>
|
|
|
|
</FormItem>
|
|
|
|
</FormItem>
|
|
|
|
</i-col>
|
|
|
|
</i-col>
|
|
|
|
<i-col span="4">
|
|
|
|
<i-col span="4">
|
|
|
|
<FormItem label="活动状态" prop="">
|
|
|
|
<FormItem label="活动状态"
|
|
|
|
|
|
|
|
prop="">
|
|
|
|
<Select v-model="formValidate.status">
|
|
|
|
<Select v-model="formValidate.status">
|
|
|
|
<Option
|
|
|
|
<Option v-for="(item, index) in activityStatusList"
|
|
|
|
v-for="(item, index) in activityStatusList"
|
|
|
|
|
|
|
|
:key="index"
|
|
|
|
:key="index"
|
|
|
|
:value="item.value"
|
|
|
|
:value="item.value">{{ item.label }}
|
|
|
|
>{{ item.label }}
|
|
|
|
|
|
|
|
</Option>
|
|
|
|
</Option>
|
|
|
|
</Select>
|
|
|
|
</Select>
|
|
|
|
</FormItem>
|
|
|
|
</FormItem>
|
|
|
|
</i-col>
|
|
|
|
</i-col>
|
|
|
|
<i-col span="4">
|
|
|
|
<i-col span="4">
|
|
|
|
<Button type="primary" @click="searchTable">查询</Button>
|
|
|
|
<Button type="primary"
|
|
|
|
|
|
|
|
@click="searchTable">查询</Button>
|
|
|
|
</i-col>
|
|
|
|
</i-col>
|
|
|
|
</Row>
|
|
|
|
</Row>
|
|
|
|
<Row style="margin-top:50px">
|
|
|
|
<Row style="margin-top:50px">
|
|
|
|
<Table
|
|
|
|
<Table :loading="loading"
|
|
|
|
:loading="loading"
|
|
|
|
|
|
|
|
border
|
|
|
|
border
|
|
|
|
@on-row-dblclick="showDetail"
|
|
|
|
@on-row-dblclick="showDetail"
|
|
|
|
:columns="columns1"
|
|
|
|
:columns="columns1"
|
|
|
|
:data="data"
|
|
|
|
:data="data"></Table>
|
|
|
|
></Table>
|
|
|
|
<Page :total="totalSize"
|
|
|
|
<Page
|
|
|
|
|
|
|
|
:total="totalSize"
|
|
|
|
|
|
|
|
:current="pageNum"
|
|
|
|
:current="pageNum"
|
|
|
|
:page-size="pageSize"
|
|
|
|
:page-size="pageSize"
|
|
|
|
show-elevator
|
|
|
|
show-elevator
|
|
|
|
show-total
|
|
|
|
show-total
|
|
|
|
placement="top"
|
|
|
|
placement="top"
|
|
|
|
@on-change="handlePage"
|
|
|
|
@on-change="handlePage"
|
|
|
|
class-name="ks-page"
|
|
|
|
class-name="ks-page"></Page>
|
|
|
|
></Page>
|
|
|
|
|
|
|
|
</Row>
|
|
|
|
</Row>
|
|
|
|
</Form>
|
|
|
|
</Form>
|
|
|
|
<useTable
|
|
|
|
<useTable ref="useTable"
|
|
|
|
ref="useTable"
|
|
|
|
|
|
|
|
@doShow="doShow"
|
|
|
|
@doShow="doShow"
|
|
|
|
:show="showUse"
|
|
|
|
:show="showUse"
|
|
|
|
:isModify="true"
|
|
|
|
:isModify="true"
|
|
|
|
:schedule="activityInstance.scheduleVO"
|
|
|
|
:schedule="activityInstance.scheduleVO"></useTable>
|
|
|
|
></useTable>
|
|
|
|
<Modal v-model="isShowDetail"
|
|
|
|
<Modal
|
|
|
|
|
|
|
|
v-model="isShowDetail"
|
|
|
|
|
|
|
|
title="活动计划详情"
|
|
|
|
title="活动计划详情"
|
|
|
|
width="70%"
|
|
|
|
width="70%"
|
|
|
|
:footer-hide="true"
|
|
|
|
:footer-hide="true">
|
|
|
|
>
|
|
|
|
<planDetail v-if="isShowDetail"
|
|
|
|
<planDetail v-if="isShowDetail" :detail="detail"></planDetail>
|
|
|
|
:detail="detail"></planDetail>
|
|
|
|
</Modal>
|
|
|
|
</Modal>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
</template>
|
|
|
@ -295,6 +284,7 @@ export default {
|
|
|
|
methods: {
|
|
|
|
methods: {
|
|
|
|
doShow (show) {
|
|
|
|
doShow (show) {
|
|
|
|
this.showUse = show;
|
|
|
|
this.showUse = show;
|
|
|
|
|
|
|
|
this.searchTable();
|
|
|
|
},
|
|
|
|
},
|
|
|
|
showDetail (detail) {
|
|
|
|
showDetail (detail) {
|
|
|
|
let _this = this;
|
|
|
|
let _this = this;
|
|
|
@ -410,6 +400,7 @@ export default {
|
|
|
|
params.pageNum = this.pageNum;
|
|
|
|
params.pageNum = this.pageNum;
|
|
|
|
params.pageSize = this.pageSize;
|
|
|
|
params.pageSize = this.pageSize;
|
|
|
|
params = { ...params, ...this.formValidate };
|
|
|
|
params = { ...params, ...this.formValidate };
|
|
|
|
|
|
|
|
params.userId = JSON.parse(sessionStorage.getItem("loginInfo")).userId;
|
|
|
|
if (params.status == 0) {
|
|
|
|
if (params.status == 0) {
|
|
|
|
params.status = undefined;
|
|
|
|
params.status = undefined;
|
|
|
|
}
|
|
|
|
}
|
|
|
|