|
|
@ -1,107 +1,105 @@
|
|
|
|
<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.startDate"
|
|
|
|
<Date-picker v-model="formValidate.startDate"
|
|
|
|
:options='startDateOptions'
|
|
|
|
:options='startDateOptions'
|
|
|
|
type="date"
|
|
|
|
type="date"
|
|
|
|
placement="bottom-end"
|
|
|
|
placement="bottom-end"
|
|
|
|
placeholder="选择日期区间"
|
|
|
|
placeholder="选择日期区间"
|
|
|
|
format="yyyy-MM-dd"
|
|
|
|
format="yyyy-MM-dd"
|
|
|
|
@on-change="startDateChange"
|
|
|
|
@on-change="startDateChange"></Date-picker>
|
|
|
|
></Date-picker>
|
|
|
|
|
|
|
|
</FormItem>
|
|
|
|
</FormItem>
|
|
|
|
</i-col>
|
|
|
|
</i-col>
|
|
|
|
|
|
|
|
|
|
|
|
<i-col span="4">
|
|
|
|
<i-col span="4">
|
|
|
|
<FormItem label="结束日期" prop>
|
|
|
|
<FormItem label="结束日期"
|
|
|
|
<Date-picker
|
|
|
|
prop>
|
|
|
|
v-model="formValidate.endDate"
|
|
|
|
<Date-picker v-model="formValidate.endDate"
|
|
|
|
:options='endDateOptions'
|
|
|
|
:options='endDateOptions'
|
|
|
|
type="date"
|
|
|
|
type="date"
|
|
|
|
placement="bottom-end"
|
|
|
|
placement="bottom-end"
|
|
|
|
placeholder="选择结束日期"
|
|
|
|
placeholder="选择结束日期"
|
|
|
|
format="yyyy-MM-dd"
|
|
|
|
format="yyyy-MM-dd"
|
|
|
|
@on-change="endDateChange"
|
|
|
|
@on-change="endDateChange"></Date-picker>
|
|
|
|
></Date-picker>
|
|
|
|
|
|
|
|
</FormItem>
|
|
|
|
</FormItem>
|
|
|
|
</i-col>
|
|
|
|
</i-col>
|
|
|
|
<i-col span="4">
|
|
|
|
<i-col span="4">
|
|
|
|
<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 }}</Option>
|
|
|
|
>{{ item.label }}</Option>
|
|
|
|
|
|
|
|
</Select>
|
|
|
|
</Select>
|
|
|
|
</FormItem>
|
|
|
|
</FormItem>
|
|
|
|
</i-col>
|
|
|
|
</i-col>
|
|
|
|
<i-col span="6">
|
|
|
|
<i-col span="6">
|
|
|
|
<FormItem label="店铺" prop>
|
|
|
|
<FormItem label="店铺"
|
|
|
|
<Select v-model="formValidate.storeId" filterable placeholder="全部" clearable>
|
|
|
|
prop>
|
|
|
|
<Option
|
|
|
|
<Select v-model="formValidate.storeId"
|
|
|
|
v-for="(item, index) in shopList"
|
|
|
|
filterable
|
|
|
|
|
|
|
|
placeholder="全部"
|
|
|
|
|
|
|
|
clearable>
|
|
|
|
|
|
|
|
<Option v-for="(item, index) in shopList"
|
|
|
|
:key="index"
|
|
|
|
:key="index"
|
|
|
|
:value="item.value"
|
|
|
|
:value="item.value">{{ item.label }}</Option>
|
|
|
|
>{{ item.label }}</Option>
|
|
|
|
|
|
|
|
</Select>
|
|
|
|
</Select>
|
|
|
|
</FormItem>
|
|
|
|
</FormItem>
|
|
|
|
</i-col>
|
|
|
|
</i-col>
|
|
|
|
<i-col span="3">
|
|
|
|
<i-col span="3">
|
|
|
|
<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 }}</Option>
|
|
|
|
>{{ item.label }}</Option>
|
|
|
|
|
|
|
|
</Select>
|
|
|
|
</Select>
|
|
|
|
</FormItem>
|
|
|
|
</FormItem>
|
|
|
|
</i-col>
|
|
|
|
</i-col>
|
|
|
|
<i-col span="3">
|
|
|
|
<i-col span="3">
|
|
|
|
<Button type="primary" @click="() => {pageNum = 1;searchTable()}">查询</Button>
|
|
|
|
<Button type="primary"
|
|
|
|
|
|
|
|
@click="() => {pageNum = 1;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="活动计划详情" width="70%" :footer-hide="true">
|
|
|
|
title="活动计划详情"
|
|
|
|
<planDetail v-if="isShowDetail" :detail="detail"></planDetail>
|
|
|
|
width="70%"
|
|
|
|
|
|
|
|
:footer-hide="true">
|
|
|
|
|
|
|
|
<planDetail v-if="isShowDetail"
|
|
|
|
|
|
|
|
:detail="detail"></planDetail>
|
|
|
|
</Modal>
|
|
|
|
</Modal>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
</template>
|
|
|
@ -413,12 +411,12 @@ export default {
|
|
|
|
},
|
|
|
|
},
|
|
|
|
searchTable (params = {}) {
|
|
|
|
searchTable (params = {}) {
|
|
|
|
this.loading = true;
|
|
|
|
this.loading = true;
|
|
|
|
if (this.formValidate.startDate !== "") {
|
|
|
|
if (this.formValidate.startDate) {
|
|
|
|
this.formValidate.startDate = formatDate(this.formValidate.startDate);
|
|
|
|
this.formValidate.startDate = formatDate(this.formValidate.startDate);
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
this.formValidate.startDate = undefined;
|
|
|
|
this.formValidate.startDate = undefined;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if (!!this.formValidate.endDate) {
|
|
|
|
if (this.formValidate.endDate) {
|
|
|
|
this.formValidate.endDate = formatDate(this.formValidate.endDate);
|
|
|
|
this.formValidate.endDate = formatDate(this.formValidate.endDate);
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
this.formValidate.endDate = undefined;
|
|
|
|
this.formValidate.endDate = undefined;
|
|
|
|