(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-35836934"],{1615:function(t,e,r){"use strict";r.d(e,"l",(function(){return n})),r.d(e,"t",(function(){return i})),r.d(e,"n",(function(){return l})),r.d(e,"a",(function(){return o})),r.d(e,"q",(function(){return d})),r.d(e,"r",(function(){return s})),r.d(e,"o",(function(){return u})),r.d(e,"p",(function(){return c})),r.d(e,"s",(function(){return m})),r.d(e,"c",(function(){return p})),r.d(e,"b",(function(){return h})),r.d(e,"k",(function(){return f})),r.d(e,"m",(function(){return g})),r.d(e,"j",(function(){return b})),r.d(e,"d",(function(){return T})),r.d(e,"g",(function(){return y})),r.d(e,"f",(function(){return v})),r.d(e,"h",(function(){return E})),r.d(e,"i",(function(){return w})),r.d(e,"e",(function(){return S})),r.d(e,"y",(function(){return q})),r.d(e,"z",(function(){return F})),r.d(e,"x",(function(){return P})),r.d(e,"u",(function(){return _})),r.d(e,"w",(function(){return O})),r.d(e,"v",(function(){return C}));var a=r("b775");r("2c37");function n(t){return a["a"].request({method:"GET",url:"/chargesTemplate/list",params:t})}function i(t){return a["a"].request({method:"POST",url:"/expenseBill/refund",data:t})}function l(t){return a["a"].request({method:"GET",url:"/dailyPayment/findEnableTempleDetail",params:t})}function o(t){return a["a"].request({method:"GET",url:"/activityManagement/findEnableTempleDetail",params:t})}function d(t){return a["a"].request({method:"POST",url:"/dailyPaymentPlan/insert",data:t})}function s(t){return a["a"].request({method:"POST",url:"/dailyPaymentPlan/update",data:t})}function u(t){return a["a"].request({method:"POST",url:"/dailyPayment/insert",data:t})}function c(t){return a["a"].request({method:"POST",url:"/dailyPayment/insertOrder",data:t})}function m(t){return a["a"].request({method:"POST",url:"/dailyPayment/push",data:t})}function p(t){return a["a"].request({method:"POST",url:"/advancePayment/refund",data:t})}function h(t){return a["a"].request({method:"POST",url:"/advancePayment/recharge",data:t})}function f(t){return a["a"].request({method:"GET",url:"/chargesTemplate/isEnable",params:t})}function g(t){return a["a"].request({method:"POST",url:"/chargesTemplate/update",data:t})}function b(t){return a["a"].request({method:"POST",url:"/chargesTemplate/insert",data:t})}function T(t){return a["a"].request({method:"POST",url:"/chargesTemplate/delete",data:t})}function y(t){return a["a"].request({method:"POST",url:"/chargesTemplateDetail/insert",data:t})}function v(t){return a["a"].request({method:"GET",url:"/chargesTemplateDetail/findById",params:t})}function E(t){return a["a"].request({method:"GET",url:"/chargesTemplateDetail/isEnable",params:t})}function w(t){return a["a"].request({method:"POST",url:"/chargesTemplateDetail/update",data:t})}function S(t){return a["a"].request({method:"POST",url:"/chargesTemplateDetail/delete",data:t})}function q(t){return a["a"].request({method:"POST",url:"/paper/insert",data:t})}function F(t){return a["a"].request({method:"POST",url:"/paper/recipients",data:t})}function P(t){return a["a"].request({method:"POST",url:"/meterReadingRecord/updateRemakes",data:t})}function _(t){return a["a"].request({method:"POST",url:"/meterReadingRecord/createShareBill",data:t})}function O(t){return a["a"].request({method:"POST",url:"/meterReadingRecord/ShareBillPushDetails",data:t})}function C(t){return a["a"].request({method:"POST",url:"/meterReadingRecord/ShareBillPush",data:t})}},ac8a:function(t,e,r){"use strict";r("ebad")},be8e:function(t,e,r){"use strict";r.r(e);var a=function(){var t=this,e=t._self._c;return e("div",{staticClass:"main-content"},[t._m(0),e("div",{staticClass:"content"},[e("div",{staticClass:"content-btn"},[e("el-button",{staticClass:"init-button",attrs:{icon:"el-icon-plus"},on:{click:function(e){return t.add()}}},[t._v("新增活动")])],1),e("div",{},[e("VueTable",{ref:"table",attrs:{config:t.config},on:{tableCheck:t.tableCheck}},[e("template",{slot:"tabs"},[e("el-tabs",{on:{"tab-click":t.handleClick},model:{value:t.activeName,callback:function(e){t.activeName=e},expression:"activeName"}},[e("el-tab-pane",{attrs:{label:"全部",name:"0"}}),e("el-tab-pane",{attrs:{label:"未开始",name:"1"}}),e("el-tab-pane",{attrs:{label:"进行中",name:"2"}}),e("el-tab-pane",{attrs:{label:"已结束",name:"3"}})],1)],1),e("template",{slot:"footer"},[e("div",{staticClass:"table-footer"},[e("button",{on:{click:function(e){return t.edit(t.table_row)}}},[t._v("修改")]),e("button",{on:{click:function(e){return t.del(t.table_row)}}},[t._v("删除")]),e("button",{on:{click:function(e){return t.registratinRecord(t.table_row)}}},[t._v("报名记录")])])])],2),e("Drawer",{attrs:{drawerTitle:t.addEidtTitle,drawerVrisible:t.addEidt_vrisible},on:{drawerClose:t.addEidtClose}},[e("div",{staticStyle:{padding:"30px"}},[e("FromCard",[e("template",{slot:"title"},[t._v("基本信息")]),[e("VueForm",{ref:"addEidtVueForm",attrs:{formObj:t.addEidtForm},on:{ruleSuccess:t.addRuleSuccess}},[e("template",{slot:"fileUrls"},[[e("el-upload",{attrs:{action:t.$baseUrl+"upload/uploadActivity","on-success":t.ImgeSuccess,"file-list":t.imglist,"on-exceed":t.handleExceed,limit:1,accept:".jpg,.png,.JPG,.PNG","before-upload":t.beforeAvatarUpload}},[e("el-button",{attrs:{icon:"el-icon-edit",size:"small"}},[t._v("上传图片")]),e("span",{staticStyle:{"margin-left":"10px","font-size":"12px",color:"#444444"}},[t._v("建议比例:3:2")]),e("div",{staticClass:"el-upload__tip",attrs:{slot:"tip"},slot:"tip"},[e("span",[t._v("支持扩展名:png,jpg")])])],1)]],2)],2)]],2)],1),e("div",{attrs:{slot:"footer"},slot:"footer"},[e("button",{staticClass:"btn-orange",on:{click:function(e){return t.addEidtSubmit()}}},[e("span",[e("i",{staticClass:"el-icon-circle-check"}),t._v("提交")])]),e("button",{staticClass:"btn-gray",on:{click:t.addEidtClose}},[e("span",[t._v("取消")])])])]),e("Drawer",{attrs:{drawerTitle:"报名记录",drawerVrisible:t.record_vrisible},on:{drawerClose:t.recordClose}},[e("div",{staticStyle:{padding:"30px"}},[e("FromCard",[e("template",{slot:"title"},[t._v("基本信息")]),e("div",{staticClass:"flex",staticStyle:{padding:"10px 0"}},[e("div",{staticStyle:{width:"60px"}},[t._v("活动标题")]),e("div",{staticStyle:{flex:"1","padding-left":"10px"}},[t._v(t._s(t.table_row.length?t.table_row[0].title:""))])]),e("div",{staticClass:"flex",staticStyle:{padding:"10px 0"}},[e("div",{staticStyle:{width:"60px"}},[t._v("文化传播")]),e("div",{staticStyle:{flex:"1","padding-left":"10px"}},[e("tableData",{attrs:{config:t.recordTableData}})],1)])],2)],1),e("div",{attrs:{slot:"footer"},slot:"footer"},[e("button",{staticClass:"btn-orange",on:{click:function(e){return t.recordClose()}}},[e("span",[e("i",{staticClass:"el-icon-circle-check"}),t._v("确定")])])])])],1)])])},n=[function(){var t=this,e=t._self._c;return e("div",{staticClass:"main-titel"},[e("span",[t._v("活动管理")])])}],i=r("c356"),l=r("1615"),o={data(){return{table_row:[],imglist:[],record_vrisible:!1,config:{thead:[{label:"序号",type:"index",width:"80"},{label:"通知标题",prop:"title",width:"180"},{label:"主办方",prop:"sponsorUnit",width:"100"},{label:"活动地点",prop:"location",width:"140"},{label:"活动联系人",prop:"name",width:"140"},{label:"联系电话",prop:"tel",width:"140"},{label:"报名开始时间",prop:"registrationStartTime",width:"180"},{label:"报名截止时间",prop:"registrationEndTime",width:"180"},{label:"活动开始时间",prop:"activityStartTime",width:"180"},{label:"活动结束时间",prop:"activityEndTime",width:"180"},{label:"状态",prop:"status",width:"auto",type:"function",callback:(t,e)=>{switch(t.status){case 1:return"未开始";case 2:return"进行中";case 3:return"已结束"}}},{label:"报名人数",prop:"registrationNumber",width:" 180"},{label:"收费标准",prop:"participantsNumber",width:"120"},{label:"退费",prop:"refund",width:"120"},{label:"创建人",prop:"createName",width:"100"},{label:"更新时间",prop:"updateDate",width:"180"}],table_data:[],url:"activityManagementList",search_item:[{type:"Input",label:"通知标题",placeholder:"请输入内容",prop:"title"},{type:"startDate",label:"活动开始时间",placeholder:"请选择开始日期",prop:"activityStartTimeStart"},{type:"endDate",label:"活动结束时间",placeholder:"请选择结束时间",prop:"activityStartTimeEnd"}],data:{pageNum:1,size:10}},addEidtTitle:"新增活动",addEidt_vrisible:!1,addEidtForm:{ruleForm:{sponsorId:null,title:null,content:null,fileUrls:[],location:null,registrationStartTime:null,registrationEndTime:null,activityStartTime:null,activityEndTime:null,participantsNumber:null,chargesTemplateDetailId:null,status:0,refund:null,name:null,tel:null},rules:{sponsorId:[{required:!0,message:"请输入",trigger:"change"}],title:[{required:!0,message:"请输入",trigger:"change"}],content:[{required:!0,message:"请选择",trigger:"change"}],location:[{required:!0,message:"请选择",trigger:"change"}],registrationStartTime:[{required:!0,message:"请选择",trigger:"change"}],registrationEndTime:[{required:!0,message:"请输入",trigger:"change"}],activityStartTime:[{required:!0,message:"请选择",trigger:"change"}],activityEndTime:[{required:!0,message:"请选择",trigger:"change"}],participantsNumber:[{required:!0,message:"请选择",trigger:"change"}],name:[{required:!0,message:"请选择",trigger:"change"}],tel:[{required:!0,message:"请选择",trigger:"change"}]},form_item:[{type:"Select",label:"主办方",width:"50%",placeholder:"请选择",prop:"sponsorId",options:[]},{type:"Input",label:"活动标题",placeholder:"请输入",prop:"title",width:"100%"},{type:"textarea",label:"活动内容 ",placeholder:"请输入",width:"100%",rows:5,prop:"content"},{type:"Slot",label:"图片",placeholder:"请输入",width:"100%",rows:5,prop:"fileUrls",slotName:"fileUrls"},{type:"Input",label:"活动地点",placeholder:"请输入",prop:"location",width:"100%"},{type:"DateTime",label:"报名开始时间",placeholder:"请选择",width:"50%",prop:"registrationStartTime"},{type:"DateTime",label:"报名截止时间",placeholder:"请选择",width:"50%",prop:"registrationEndTime"},{type:"DateTime",label:"活动开始时间",placeholder:"请选择",width:"50%",prop:"activityStartTime"},{type:"DateTime",label:"活动截止时间",placeholder:"请选择",width:"50%",prop:"activityEndTime"},{type:"Input",label:"参与人数",width:"50%",placeholder:"请输入",prop:"participantsNumber"},{type:"Select",label:"收费标准",width:"50%",placeholder:"请选择",prop:"chargesTemplateDetailId",options:[{value:1,label:"半年付"},{value:2,label:"一年付"}]},{type:"Input",label:"退费",width:"50%",placeholder:"请输入",prop:"refund"},{type:"Input",label:"联系人",width:"50%",placeholder:"请输入",prop:"name"},{type:"Input",label:"联系电话",width:"50%",placeholder:"请输入",prop:"tel"}]},activeName:"0",editID:null,recordTableData:{thead:[{label:"序号",type:"index",width:"80"},{label:"姓名",prop:"residentName",width:"auto"},{label:"联系方式",prop:"residentTel",width:"auto"},{label:"报名时间",prop:"registrationDate",width:"auto"}],table_data:[],checkbox:!1}}},created(){let t={pageNum:1,size:100};Object(i["y"])(t).then(t=>{console.log(t);const e=t.tableList.map(t=>({value:t.id,label:t.sponsorUnit}));let r=this.addEidtForm.form_item.find(t=>"sponsorId"===t.prop);r.options=e}),Object(l["a"])().then(t=>{const e=t.data.map(t=>({value:t.id,label:t.name,unitPrice:t.unitPrice,type:t.type}));let r=this.addEidtForm.form_item.find(t=>"chargesTemplateDetailId"===t.prop);r.options=e})},methods:{handleClick(t,e){let r=null;r=0!=this.activeName?this.activeName:null;const a={pageNum:1,size:10,status:r};this.$refs.table.requestData(a)},recordClose(){this.record_vrisible=!1},registratinRecord(t){t.length>1?this.$message.error("只能查看一条数据的详情"):t.length?Object(i["b"])({id:t[0].id}).then(t=>{console.log(t),this.recordTableData.table_data=t||[],this.record_vrisible=!0}):this.$message.error("请选择")},del(t){if(t.length){let t=[];for(let e=0;e{this.$refs.table.tableDelete(t)}).catch(t=>{})}else this.$message.error("请选中需要删除的数据")},tableCheck(t){this.table_row=t},addEidtClose(){this.addEidt_vrisible=!1,this.imglist=[];for(let t in this.addEidtForm.ruleForm)this.addEidtForm.ruleForm[t]=null,this.addEidtForm.ruleForm.file=[]},addRuleSuccess(){if(this.editID){let t={id:this.editID,...this.addEidtForm.ruleForm};Object(i["d"])(t).then(t=>{t.status&&(this.$message({message:t.message,type:"success"}),this.addEidtClose(),this.$refs.table.loadData())})}else Object(i["c"])(this.addEidtForm.ruleForm).then(t=>{t.status&&(this.$message({message:t.message,type:"success"}),this.addEidtClose(),this.$refs.table.loadData())})},addEidtSubmit(){this.$refs.addEidtVueForm.submitForm()},edit(t){t.length>1?this.$message.error("只能查看一条数据的详情"):t.length?2!=t[0].status?Object(i["a"])({id:t[0].id}).then(t=>{if(console.log(t),this.editID=t.id,t.imgUrls.length){let e={name:t.imgUrls[0].url,url:t.imgUrls[0].url};this.addEidtForm.ruleForm.fileUrls=[t.imgUrls[0].url],this.$set(this.imglist,0,e)}else this.addEidtForm.ruleForm.fileUrls=[];this.addEidtForm.ruleForm.sponsorId=t.sponsorId,this.addEidtForm.ruleForm.title=t.title,this.addEidtForm.ruleForm.content=t.content,this.addEidtForm.ruleForm.location=t.location,this.addEidtForm.ruleForm.registrationStartTime=t.registrationStartTime,this.addEidtForm.ruleForm.registrationEndTime=t.registrationEndTime,this.addEidtForm.ruleForm.activityStartTime=t.activityStartTime,this.addEidtForm.ruleForm.activityEndTime=t.activityEndTime,this.addEidtForm.ruleForm.participantsNumber=t.participantsNumber,this.addEidtForm.ruleForm.chargesTemplateDetailId=t.chargesTemplateDetailId,this.addEidtForm.ruleForm.status=t.status,this.addEidtForm.ruleForm.refund=t.refund,this.addEidtForm.ruleForm.name=t.name,this.addEidtForm.ruleForm.tel=t.tel,this.addEidt_vrisible=!0}):this.$message({message:"该状态不可修改",type:"error"}):this.$message.error("请选择")},add(){this.addEidt_vrisible=!0},ImgeSuccess(t,e){console.log(t),this.$set(this.addEidtForm.ruleForm.fileUrls,0,t.url)},beforeAvatarUpload(t){const e=t.size/1024/1024<2,r="image/png"===t.type,a="image/jpeg"===t.type;return r||a||this.$message.error("上传头像图片只能是 JPG/PNG 格式!"),e||this.$message.error("上传头像图片大小不能超过 2MB!"),(r||a)&&e},handleExceed(t,e){this.$message.error(`当前限制选择 1 个文件,本次选择了 ${t.length} 个文件,共选择了 ${t.length+e.length} 个文件`)}}},d=o,s=(r("ac8a"),r("2877")),u=Object(s["a"])(d,a,n,!1,null,"66c7f295",null);e["default"]=u.exports},c356:function(t,e,r){"use strict";r.d(e,"g",(function(){return n})),r.d(e,"u",(function(){return i})),r.d(e,"t",(function(){return l})),r.d(e,"v",(function(){return o})),r.d(e,"a",(function(){return d})),r.d(e,"d",(function(){return s})),r.d(e,"c",(function(){return u})),r.d(e,"b",(function(){return c})),r.d(e,"e",(function(){return m})),r.d(e,"x",(function(){return p})),r.d(e,"z",(function(){return h})),r.d(e,"w",(function(){return f})),r.d(e,"f",(function(){return g})),r.d(e,"h",(function(){return b})),r.d(e,"y",(function(){return T})),r.d(e,"m",(function(){return y})),r.d(e,"o",(function(){return v})),r.d(e,"l",(function(){return E})),r.d(e,"q",(function(){return w})),r.d(e,"r",(function(){return S})),r.d(e,"p",(function(){return q})),r.d(e,"n",(function(){return F})),r.d(e,"i",(function(){return P})),r.d(e,"s",(function(){return _})),r.d(e,"k",(function(){return O})),r.d(e,"j",(function(){return C}));var a=r("b775");r("2c37");function n(t){return a["a"].request({method:"POST",url:"/announcementManagement/release",data:t})}function i(t){return a["a"].request({method:"POST",url:"/notificationManagement/insert",data:t})}function l(t){return a["a"].request({method:"GET",url:"/notificationManagement/findById",params:t})}function o(t){return a["a"].request({method:"POST",url:"/notificationManagement/update",data:t})}function d(t){return a["a"].request({method:"GET",url:"/activityManagement/findById",params:t})}function s(t){return a["a"].request({method:"POST",url:"/activityManagement/update",data:t})}function u(t){return a["a"].request({method:"POST",url:"/activityManagement/insert",data:t})}function c(t){return a["a"].request({method:"GET",url:"/activityManagement/findRegistrationById",params:t})}function m(t){return a["a"].request({method:"GET",url:"/announcementManagement/findById",params:t})}function p(t){return a["a"].request({method:"POST",url:"/sponsorManagement/insert",data:t})}function h(t){return a["a"].request({method:"POST",url:"/sponsorManagement/update",data:t})}function f(t){return a["a"].request({method:"GET",url:"/sponsorManagement/findById",params:t})}function g(t){return a["a"].request({method:"POST",url:"/announcementManagement/insert",data:t})}function b(t){return a["a"].request({method:"POST",url:"/announcementManagement/update",data:t})}function T(t){return a["a"].request({method:"GET",url:"/sponsorManagement/list",params:t})}function y(t){return a["a"].request({method:"POST",url:"/newsCategoryManagement/insert",data:t})}function v(t){return a["a"].request({method:"POST",url:"/newsCategoryManagement/update",data:t})}function E(t){return a["a"].request({method:"GET",url:"/newsCategoryManagement/findById",params:t})}function w(t){return a["a"].request({method:"POST",url:"/newsManagement/insert",data:t})}function S(t){return a["a"].request({method:"POST",url:"/newsManagement/update",data:t})}function q(t){return a["a"].request({method:"GET",url:"/newsManagement/findById",params:t})}function F(t){return a["a"].request({method:"GET",url:"/newsCategoryManagement/list",params:t})}function P(t){return a["a"].request({method:"POST",url:"electronicCommerceCategory/insert",data:t})}function _(t){return a["a"].request({method:"GET",url:"newsManagement/updateCrawling",params:t})}function O(t){return a["a"].request({method:"POST",url:"electronicCommerce/insert",data:t})}function C(t){return a["a"].request({method:"GET",url:"/electronicCommerceCategory/list",params:t})}},ebad:function(t,e,r){}}]); //# sourceMappingURL=chunk-35836934.656f3669.js.map