|  |  | @ -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> | 
			
		
	
	
		
		
			
				
					|  |  | @ -120,7 +118,7 @@ export default { | 
			
		
	
		
		
			
				
					
					|  |  |  |     useTable, |  |  |  |     useTable, | 
			
		
	
		
		
			
				
					
					|  |  |  |     planDetail |  |  |  |     planDetail | 
			
		
	
		
		
			
				
					
					|  |  |  |   }, |  |  |  |   }, | 
			
		
	
		
		
			
				
					
					|  |  |  |   data() { |  |  |  |   data () { | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					|  |  |  |     const _this = this; |  |  |  |     const _this = this; | 
			
		
	
		
		
			
				
					
					|  |  |  |     return { |  |  |  |     return { | 
			
		
	
		
		
			
				
					
					|  |  |  |       loading: false, |  |  |  |       loading: false, | 
			
		
	
	
		
		
			
				
					|  |  | @ -141,11 +139,11 @@ export default { | 
			
		
	
		
		
			
				
					
					|  |  |  |         organizationId: null, |  |  |  |         organizationId: null, | 
			
		
	
		
		
			
				
					
					|  |  |  |         storeId: null, |  |  |  |         storeId: null, | 
			
		
	
		
		
			
				
					
					|  |  |  |         status: 2, |  |  |  |         status: 2, | 
			
		
	
		
		
			
				
					
					|  |  |  |         startDate:null, |  |  |  |         startDate: null, | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |         endDate:null, |  |  |  |         endDate: null, | 
			
				
				
			
		
	
		
		
	
		
		
	
		
		
			
				
					
					|  |  |  |       }, |  |  |  |       }, | 
			
		
	
		
		
			
				
					
					|  |  |  |       startDateOptions:{}, |  |  |  |       startDateOptions: {}, | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |       endDateOptions:{}, |  |  |  |       endDateOptions: {}, | 
			
				
				
			
		
	
		
		
	
		
		
	
		
		
			
				
					
					|  |  |  |       activityData: [ |  |  |  |       activityData: [ | 
			
		
	
		
		
			
				
					
					|  |  |  |         { |  |  |  |         { | 
			
		
	
		
		
			
				
					
					|  |  |  |           activityStatus: "进行中" |  |  |  |           activityStatus: "进行中" | 
			
		
	
	
		
		
			
				
					|  |  | @ -177,7 +175,7 @@ export default { | 
			
		
	
		
		
			
				
					
					|  |  |  |           width: 60, |  |  |  |           width: 60, | 
			
		
	
		
		
			
				
					
					|  |  |  |           align: "center", |  |  |  |           align: "center", | 
			
		
	
		
		
			
				
					
					|  |  |  |           title: "序号", |  |  |  |           title: "序号", | 
			
		
	
		
		
			
				
					
					|  |  |  |           render(h, params) { |  |  |  |           render (h, params) { | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					|  |  |  |             let num = parseInt(params.index) + 1; |  |  |  |             let num = parseInt(params.index) + 1; | 
			
		
	
		
		
			
				
					
					|  |  |  |             console.log(_this.pageSize); |  |  |  |             console.log(_this.pageSize); | 
			
		
	
		
		
			
				
					
					|  |  |  |             if (_this.pageSize > 1) { |  |  |  |             if (_this.pageSize > 1) { | 
			
		
	
	
		
		
			
				
					|  |  | @ -193,7 +191,7 @@ export default { | 
			
		
	
		
		
			
				
					
					|  |  |  |         { |  |  |  |         { | 
			
		
	
		
		
			
				
					
					|  |  |  |           title: "活动类型", |  |  |  |           title: "活动类型", | 
			
		
	
		
		
			
				
					
					|  |  |  |           key: "scheduleVO.name", |  |  |  |           key: "scheduleVO.name", | 
			
		
	
		
		
			
				
					
					|  |  |  |           render(h, params) { |  |  |  |           render (h, params) { | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					|  |  |  |             return h("span", params.row["params"][0]["name"]); |  |  |  |             return h("span", params.row["params"][0]["name"]); | 
			
		
	
		
		
			
				
					
					|  |  |  |           } |  |  |  |           } | 
			
		
	
		
		
			
				
					
					|  |  |  |         }, |  |  |  |         }, | 
			
		
	
	
		
		
			
				
					|  |  | @ -201,14 +199,14 @@ export default { | 
			
		
	
		
		
			
				
					
					|  |  |  |           title: "活动时间", |  |  |  |           title: "活动时间", | 
			
		
	
		
		
			
				
					
					|  |  |  |           key: "beginTime", |  |  |  |           key: "beginTime", | 
			
		
	
		
		
			
				
					
					|  |  |  |           width: 230, |  |  |  |           width: 230, | 
			
		
	
		
		
			
				
					
					|  |  |  |           render(h, params) { |  |  |  |           render (h, params) { | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					|  |  |  |             return h("span", params.row.beginTime + " - " + params.row.endTime); |  |  |  |             return h("span", params.row.beginTime + " - " + params.row.endTime); | 
			
		
	
		
		
			
				
					
					|  |  |  |           } |  |  |  |           } | 
			
		
	
		
		
			
				
					
					|  |  |  |         }, |  |  |  |         }, | 
			
		
	
		
		
			
				
					
					|  |  |  |         { |  |  |  |         { | 
			
		
	
		
		
			
				
					
					|  |  |  |           title: "零售公司", |  |  |  |           title: "零售公司", | 
			
		
	
		
		
			
				
					
					|  |  |  |           key: "shop", |  |  |  |           key: "shop", | 
			
		
	
		
		
			
				
					
					|  |  |  |           render(h, params) { |  |  |  |           render (h, params) { | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					|  |  |  |             return h( |  |  |  |             return h( | 
			
		
	
		
		
			
				
					
					|  |  |  |               "span", |  |  |  |               "span", | 
			
		
	
		
		
			
				
					
					|  |  |  |               params.row.companyName + |  |  |  |               params.row.companyName + | 
			
		
	
	
		
		
			
				
					|  |  | @ -221,7 +219,7 @@ export default { | 
			
		
	
		
		
			
				
					
					|  |  |  |         { |  |  |  |         { | 
			
		
	
		
		
			
				
					
					|  |  |  |           title: "店铺", |  |  |  |           title: "店铺", | 
			
		
	
		
		
			
				
					
					|  |  |  |           key: "shop", |  |  |  |           key: "shop", | 
			
		
	
		
		
			
				
					
					|  |  |  |           render(h, params) { |  |  |  |           render (h, params) { | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					|  |  |  |             return h( |  |  |  |             return h( | 
			
		
	
		
		
			
				
					
					|  |  |  |               "span", |  |  |  |               "span", | 
			
		
	
		
		
			
				
					
					|  |  |  |               params.row.storeName + |  |  |  |               params.row.storeName + | 
			
		
	
	
		
		
			
				
					|  |  | @ -234,21 +232,21 @@ export default { | 
			
		
	
		
		
			
				
					
					|  |  |  |         { |  |  |  |         { | 
			
		
	
		
		
			
				
					
					|  |  |  |           title: "添加好友数", |  |  |  |           title: "添加好友数", | 
			
		
	
		
		
			
				
					
					|  |  |  |           key: "addFriendNum", |  |  |  |           key: "addFriendNum", | 
			
		
	
		
		
			
				
					
					|  |  |  |           render(h, params) { |  |  |  |           render (h, params) { | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					|  |  |  |             return h("span", (params.row.friends || 0) + "人"); |  |  |  |             return h("span", (params.row.friends || 0) + "人"); | 
			
		
	
		
		
			
				
					
					|  |  |  |           } |  |  |  |           } | 
			
		
	
		
		
			
				
					
					|  |  |  |         }, |  |  |  |         }, | 
			
		
	
		
		
			
				
					
					|  |  |  |         { |  |  |  |         { | 
			
		
	
		
		
			
				
					
					|  |  |  |           title: "参与活动客户数", |  |  |  |           title: "参与活动客户数", | 
			
		
	
		
		
			
				
					
					|  |  |  |           key: "joinActivityClientNum", |  |  |  |           key: "joinActivityClientNum", | 
			
		
	
		
		
			
				
					
					|  |  |  |           render(h, params) { |  |  |  |           render (h, params) { | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					|  |  |  |             return h("span", (params.row.friends || 0) + "人"); |  |  |  |             return h("span", (params.row.friends || 0) + "人"); | 
			
		
	
		
		
			
				
					
					|  |  |  |           } |  |  |  |           } | 
			
		
	
		
		
			
				
					
					|  |  |  |         }, |  |  |  |         }, | 
			
		
	
		
		
			
				
					
					|  |  |  |         { |  |  |  |         { | 
			
		
	
		
		
			
				
					
					|  |  |  |           title: "活动码", |  |  |  |           title: "活动码", | 
			
		
	
		
		
			
				
					
					|  |  |  |           key: "activityCode", |  |  |  |           key: "activityCode", | 
			
		
	
		
		
			
				
					
					|  |  |  |           render(h, p) { |  |  |  |           render (h, p) { | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					|  |  |  |             return h( |  |  |  |             return h( | 
			
		
	
		
		
			
				
					
					|  |  |  |               "Button", |  |  |  |               "Button", | 
			
		
	
		
		
			
				
					
					|  |  |  |               { |  |  |  |               { | 
			
		
	
	
		
		
			
				
					|  |  | @ -262,7 +260,7 @@ export default { | 
			
		
	
		
		
			
				
					
					|  |  |  |         { |  |  |  |         { | 
			
		
	
		
		
			
				
					
					|  |  |  |           title: "活动状态", |  |  |  |           title: "活动状态", | 
			
		
	
		
		
			
				
					
					|  |  |  |           key: "status", |  |  |  |           key: "status", | 
			
		
	
		
		
			
				
					
					|  |  |  |           render(h, p) { |  |  |  |           render (h, p) { | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					|  |  |  |             const status = p.row.status; |  |  |  |             const status = p.row.status; | 
			
		
	
		
		
			
				
					
					|  |  |  |             if (status === 1) return h("span", "未开始"); |  |  |  |             if (status === 1) return h("span", "未开始"); | 
			
		
	
		
		
			
				
					
					|  |  |  |             if (status === 2) return h("span", "进行中"); |  |  |  |             if (status === 2) return h("span", "进行中"); | 
			
		
	
	
		
		
			
				
					|  |  | @ -274,7 +272,7 @@ export default { | 
			
		
	
		
		
			
				
					
					|  |  |  |           title: "操作", |  |  |  |           title: "操作", | 
			
		
	
		
		
			
				
					
					|  |  |  |           key: "action", |  |  |  |           key: "action", | 
			
		
	
		
		
			
				
					
					|  |  |  |           width: 200, |  |  |  |           width: 200, | 
			
		
	
		
		
			
				
					
					|  |  |  |           render(h, p) { |  |  |  |           render (h, p) { | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					|  |  |  |             let r = [ |  |  |  |             let r = [ | 
			
		
	
		
		
			
				
					
					|  |  |  |               h( |  |  |  |               h( | 
			
		
	
		
		
			
				
					
					|  |  |  |                 "Button", |  |  |  |                 "Button", | 
			
		
	
	
		
		
			
				
					|  |  | @ -305,30 +303,30 @@ export default { | 
			
		
	
		
		
			
				
					
					|  |  |  |       ] |  |  |  |       ] | 
			
		
	
		
		
			
				
					
					|  |  |  |     }; |  |  |  |     }; | 
			
		
	
		
		
			
				
					
					|  |  |  |   }, |  |  |  |   }, | 
			
		
	
		
		
			
				
					
					|  |  |  |   mounted() { |  |  |  |   mounted () { | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					|  |  |  |     this.setMenuName("活动管理", "活动计划"); |  |  |  |     this.setMenuName("活动管理", "活动计划"); | 
			
		
	
		
		
			
				
					
					|  |  |  |     this.getCompanyInfo(); |  |  |  |     this.getCompanyInfo(); | 
			
		
	
		
		
			
				
					
					|  |  |  |     this.getShopInfo(); |  |  |  |     this.getShopInfo(); | 
			
		
	
		
		
			
				
					
					|  |  |  |     this.searchTable(); |  |  |  |     this.searchTable(); | 
			
		
	
		
		
			
				
					
					|  |  |  |   }, |  |  |  |   }, | 
			
		
	
		
		
			
				
					
					|  |  |  |   methods: { |  |  |  |   methods: { | 
			
		
	
		
		
			
				
					
					|  |  |  |     doShow(show) { |  |  |  |     doShow (show) { | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					|  |  |  |       this.showUse = show; |  |  |  |       this.showUse = show; | 
			
		
	
		
		
			
				
					
					|  |  |  |       this.searchTable(); |  |  |  |       this.searchTable(); | 
			
		
	
		
		
			
				
					
					|  |  |  |     }, |  |  |  |     }, | 
			
		
	
		
		
			
				
					
					|  |  |  |     showDetail(detail) { |  |  |  |     showDetail (detail) { | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					|  |  |  |       let _this = this; |  |  |  |       let _this = this; | 
			
		
	
		
		
			
				
					
					|  |  |  |       this.getDetail(detail.id).then(res => { |  |  |  |       this.getDetail(detail.id).then(res => { | 
			
		
	
		
		
			
				
					
					|  |  |  |         _this.detail = res; |  |  |  |         _this.detail = res; | 
			
		
	
		
		
			
				
					
					|  |  |  |         _this.isShowDetail = true; |  |  |  |         _this.isShowDetail = true; | 
			
		
	
		
		
			
				
					
					|  |  |  |       }); |  |  |  |       }); | 
			
		
	
		
		
			
				
					
					|  |  |  |     }, |  |  |  |     }, | 
			
		
	
		
		
			
				
					
					|  |  |  |     getCompanyInfo() { |  |  |  |     getCompanyInfo () { | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					|  |  |  |       let that = this; |  |  |  |       let that = this; | 
			
		
	
		
		
			
				
					
					|  |  |  |       let data = { |  |  |  |       let data = { | 
			
		
	
		
		
			
				
					
					|  |  |  |         userId: JSON.parse(sessionStorage.getItem("loginInfo")).userId |  |  |  |         userId: JSON.parse(sessionStorage.getItem("loginInfo")).userId | 
			
		
	
		
		
			
				
					
					|  |  |  |       }; |  |  |  |       }; | 
			
		
	
		
		
			
				
					
					|  |  |  |       ActivityManager.getCompany(data, function(data) { |  |  |  |       ActivityManager.getCompany(data, function (data) { | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					|  |  |  |         that.companyList = []; |  |  |  |         that.companyList = []; | 
			
		
	
		
		
			
				
					
					|  |  |  |         data.data.results.forEach(element => { |  |  |  |         data.data.results.forEach(element => { | 
			
		
	
		
		
			
				
					
					|  |  |  |           that.companyList.push({ |  |  |  |           that.companyList.push({ | 
			
		
	
	
		
		
			
				
					|  |  | @ -338,18 +336,18 @@ export default { | 
			
		
	
		
		
			
				
					
					|  |  |  |         }); |  |  |  |         }); | 
			
		
	
		
		
			
				
					
					|  |  |  |       }); |  |  |  |       }); | 
			
		
	
		
		
			
				
					
					|  |  |  |     }, |  |  |  |     }, | 
			
		
	
		
		
			
				
					
					|  |  |  |     selectCompany(value) { |  |  |  |     selectCompany (value) { | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					|  |  |  |       this.customerId = value; |  |  |  |       this.customerId = value; | 
			
		
	
		
		
			
				
					
					|  |  |  |       this.getShopInfo(); |  |  |  |       this.getShopInfo(); | 
			
		
	
		
		
			
				
					
					|  |  |  |     }, |  |  |  |     }, | 
			
		
	
		
		
			
				
					
					|  |  |  |     getShopInfo() { |  |  |  |     getShopInfo () { | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					|  |  |  |       let that = this; |  |  |  |       let that = this; | 
			
		
	
		
		
			
				
					
					|  |  |  |       let data = { |  |  |  |       let data = { | 
			
		
	
		
		
			
				
					
					|  |  |  |         userId: JSON.parse(sessionStorage.getItem("loginInfo")).userId, |  |  |  |         userId: JSON.parse(sessionStorage.getItem("loginInfo")).userId, | 
			
		
	
		
		
			
				
					
					|  |  |  |         customerIds: this.customerId, |  |  |  |         customerIds: this.customerId, | 
			
		
	
		
		
			
				
					
					|  |  |  |         scheduleId: null |  |  |  |         scheduleId: null | 
			
		
	
		
		
			
				
					
					|  |  |  |       }; |  |  |  |       }; | 
			
		
	
		
		
			
				
					
					|  |  |  |       ActivityManager.getShop(data, function(data) { |  |  |  |       ActivityManager.getShop(data, function (data) { | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					|  |  |  |         that.shopList = []; |  |  |  |         that.shopList = []; | 
			
		
	
		
		
			
				
					
					|  |  |  |         data.data.results.forEach(element => { |  |  |  |         data.data.results.forEach(element => { | 
			
		
	
		
		
			
				
					
					|  |  |  |           that.shopList.push({ |  |  |  |           that.shopList.push({ | 
			
		
	
	
		
		
			
				
					|  |  | @ -359,11 +357,11 @@ export default { | 
			
		
	
		
		
			
				
					
					|  |  |  |         }); |  |  |  |         }); | 
			
		
	
		
		
			
				
					
					|  |  |  |       }); |  |  |  |       }); | 
			
		
	
		
		
			
				
					
					|  |  |  |     }, |  |  |  |     }, | 
			
		
	
		
		
			
				
					
					|  |  |  |     handlePage: function(value) { |  |  |  |     handlePage: function (value) { | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					|  |  |  |       this.pageNum = value; |  |  |  |       this.pageNum = value; | 
			
		
	
		
		
			
				
					
					|  |  |  |       this.searchTable(); |  |  |  |       this.searchTable(); | 
			
		
	
		
		
			
				
					
					|  |  |  |     }, |  |  |  |     }, | 
			
		
	
		
		
			
				
					
					|  |  |  |     stop(instance) { |  |  |  |     stop (instance) { | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					|  |  |  |       let _this = this; |  |  |  |       let _this = this; | 
			
		
	
		
		
			
				
					
					|  |  |  |       this.$Modal.confirm({ |  |  |  |       this.$Modal.confirm({ | 
			
		
	
		
		
			
				
					
					|  |  |  |         title: "您确认要终止?", |  |  |  |         title: "您确认要终止?", | 
			
		
	
	
		
		
			
				
					|  |  | @ -382,10 +380,10 @@ export default { | 
			
		
	
		
		
			
				
					
					|  |  |  |             } |  |  |  |             } | 
			
		
	
		
		
			
				
					
					|  |  |  |           ); |  |  |  |           ); | 
			
		
	
		
		
			
				
					
					|  |  |  |         }, |  |  |  |         }, | 
			
		
	
		
		
			
				
					
					|  |  |  |         onCancel: () => {} |  |  |  |         onCancel: () => { } | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					|  |  |  |       }); |  |  |  |       }); | 
			
		
	
		
		
			
				
					
					|  |  |  |     }, |  |  |  |     }, | 
			
		
	
		
		
			
				
					
					|  |  |  |     getDetail(instanceId) { |  |  |  |     getDetail (instanceId) { | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					|  |  |  |       return new Promise((resolve, reject) => { |  |  |  |       return new Promise((resolve, reject) => { | 
			
		
	
		
		
			
				
					
					|  |  |  |         ActivityManager.instanceDetail( |  |  |  |         ActivityManager.instanceDetail( | 
			
		
	
		
		
			
				
					
					|  |  |  |           { |  |  |  |           { | 
			
		
	
	
		
		
			
				
					|  |  | @ -397,7 +395,7 @@ export default { | 
			
		
	
		
		
			
				
					
					|  |  |  |         ); |  |  |  |         ); | 
			
		
	
		
		
			
				
					
					|  |  |  |       }); |  |  |  |       }); | 
			
		
	
		
		
			
				
					
					|  |  |  |     }, |  |  |  |     }, | 
			
		
	
		
		
			
				
					
					|  |  |  |     modify(instance) { |  |  |  |     modify (instance) { | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					|  |  |  |       let _this = this; |  |  |  |       let _this = this; | 
			
		
	
		
		
			
				
					
					|  |  |  |       this.getDetail(instance.id).then(res => { |  |  |  |       this.getDetail(instance.id).then(res => { | 
			
		
	
		
		
			
				
					
					|  |  |  |         store.commit("SET_useData", res); |  |  |  |         store.commit("SET_useData", res); | 
			
		
	
	
		
		
			
				
					|  |  | @ -405,20 +403,20 @@ export default { | 
			
		
	
		
		
			
				
					
					|  |  |  |         _this.showUse = true; |  |  |  |         _this.showUse = true; | 
			
		
	
		
		
			
				
					
					|  |  |  |       }); |  |  |  |       }); | 
			
		
	
		
		
			
				
					
					|  |  |  |     }, |  |  |  |     }, | 
			
		
	
		
		
			
				
					
					|  |  |  |     navigateCode(instance) { |  |  |  |     navigateCode (instance) { | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					|  |  |  |       this.$router.push({ |  |  |  |       this.$router.push({ | 
			
		
	
		
		
			
				
					
					|  |  |  |         path: "/activity/plan/code", |  |  |  |         path: "/activity/plan/code", | 
			
		
	
		
		
			
				
					
					|  |  |  |         query: { instanceId: instance.id } |  |  |  |         query: { instanceId: instance.id } | 
			
		
	
		
		
			
				
					
					|  |  |  |       }); |  |  |  |       }); | 
			
		
	
		
		
			
				
					
					|  |  |  |     }, |  |  |  |     }, | 
			
		
	
		
		
			
				
					
					|  |  |  |     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; | 
			
		
	
	
		
		
			
				
					|  |  | @ -438,21 +436,21 @@ export default { | 
			
		
	
		
		
			
				
					
					|  |  |  |         this.loading = false; |  |  |  |         this.loading = false; | 
			
		
	
		
		
			
				
					
					|  |  |  |       }); |  |  |  |       }); | 
			
		
	
		
		
			
				
					
					|  |  |  |     }, |  |  |  |     }, | 
			
		
	
		
		
			
				
					
					|  |  |  |     startDateChange:function(e){ |  |  |  |     startDateChange: function (e) { | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					|  |  |  |       //设置开始时间 |  |  |  |       //设置开始时间 | 
			
		
	
		
		
			
				
					
					|  |  |  |       this.endDateOptions = { |  |  |  |       this.endDateOptions = { | 
			
		
	
		
		
			
				
					
					|  |  |  |               disabledDate:date =>{ |  |  |  |         disabledDate: date => { | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					|  |  |  |           let startTime = this.formValidate.startDate ? new Date(this.formValidate.startDate).valueOf() : ''; |  |  |  |           let startTime = this.formValidate.startDate ? new Date(this.formValidate.startDate).valueOf() : ''; | 
			
		
	
		
		
			
				
					
					|  |  |  |           return date && (date.valueOf() < startTime) |  |  |  |           return date && (date.valueOf() < startTime) | 
			
		
	
		
		
			
				
					
					|  |  |  |         } |  |  |  |         } | 
			
		
	
		
		
			
				
					
					|  |  |  |       } |  |  |  |       } | 
			
		
	
		
		
			
				
					
					|  |  |  |     }, |  |  |  |     }, | 
			
		
	
		
		
			
				
					
					|  |  |  |       endDateChange:function(e){ |  |  |  |     endDateChange: function (e) { | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					|  |  |  |       //设置结束时间 |  |  |  |       //设置结束时间 | 
			
		
	
		
		
			
				
					
					|  |  |  |           let endTime = this.formValidate.endDate  ? new Date( this.formValidate.endDate ).valueOf()-1*24*60*60*1000 :''; |  |  |  |       let endTime = this.formValidate.endDate ? new Date(this.formValidate.endDate).valueOf() - 1 * 24 * 60 * 60 * 1000 : ''; | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					|  |  |  |       this.startDateOptions = { |  |  |  |       this.startDateOptions = { | 
			
		
	
		
		
			
				
					
					|  |  |  |               disabledDate:date =>{ |  |  |  |         disabledDate: date => { | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |                   return date && (date.valueOf() >endTime); |  |  |  |           return date && (date.valueOf() > endTime); | 
			
				
				
			
		
	
		
		
	
		
		
	
		
		
			
				
					
					|  |  |  |         } |  |  |  |         } | 
			
		
	
		
		
			
				
					
					|  |  |  |       } |  |  |  |       } | 
			
		
	
		
		
			
				
					
					|  |  |  |     } |  |  |  |     } | 
			
		
	
	
		
		
			
				
					|  |  | 
 |