zx/public/system/js/chunk-044e5d0a.5106da3f.js

1 line
20 KiB
JavaScript

(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-044e5d0a"],{"0b65":function(t,e,n){"use strict";e["a"]={shortcuts:[{text:"今天",onClick:function(t){var e=new Date,n=new Date;n.setTime(new Date((new Date).getFullYear(),(new Date).getMonth(),(new Date).getDate())),t.$emit("pick",[n,e])}},{text:"昨天",onClick:function(t){var e=new Date,n=new Date;n.setTime(n.setTime(new Date((new Date).getFullYear(),(new Date).getMonth(),(new Date).getDate()-1))),e.setTime(e.setTime(new Date((new Date).getFullYear(),(new Date).getMonth(),(new Date).getDate()-1))),t.$emit("pick",[n,e])}},{text:"最近7天",onClick:function(t){var e=new Date,n=new Date;n.setTime(n.getTime()-6048e5),t.$emit("pick",[n,e])}},{text:"最近30天",onClick:function(t){var e=new Date,n=new Date;n.setTime(n.getTime()-2592e6),t.$emit("pick",[n,e])}},{text:"本月",onClick:function(t){var e=new Date,n=new Date;n.setTime(n.setTime(new Date((new Date).getFullYear(),(new Date).getMonth(),1))),t.$emit("pick",[n,e])}},{text:"本年",onClick:function(t){var e=new Date,n=new Date;n.setTime(n.setTime(new Date((new Date).getFullYear(),0,1))),t.$emit("pick",[n,e])}}]}},"1a9d":function(t,e,n){"use strict";n.r(e);var r=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"divBox"},[n("div",{staticClass:"selCard"},[n("el-form",{ref:"searchForm",attrs:{model:t.tableFrom,inline:"",size:"small","label-width":"85px"}},[n("el-form-item",{attrs:{label:"活动日期:"}},[n("el-date-picker",{staticStyle:{width:"280px"},attrs:{"value-format":"yyyy/MM/dd",format:"yyyy/MM/dd",size:"small",type:"daterange",placement:"bottom-end",placeholder:"自定义时间","picker-options":t.pickerOptions},on:{change:t.onchangeTime},model:{value:t.timeVal,callback:function(e){t.timeVal=e},expression:"timeVal"}})],1),t._v(" "),n("el-form-item",{attrs:{label:"活动名称:",prop:"name"}},[n("el-input",{staticClass:"selWidth",attrs:{placeholder:"请输入活动名称"},nativeOn:{keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.getList(1)}},model:{value:t.tableFrom.name,callback:function(e){t.$set(t.tableFrom,"name",e)},expression:"tableFrom.name"}})],1),t._v(" "),n("el-form-item",{attrs:{label:"活动状态:",prop:"active_status"}},[n("el-select",{staticClass:"selWidth",attrs:{placeholder:"请选择",clearable:""},on:{change:function(e){return t.getList(1)}},model:{value:t.tableFrom.active_status,callback:function(e){t.$set(t.tableFrom,"active_status",e)},expression:"tableFrom.active_status"}},t._l(t.storeStatusList,(function(t){return n("el-option",{key:t.value,attrs:{label:t.label,value:t.value}})})),1)],1),t._v(" "),n("el-form-item",{attrs:{label:"是否开启:",prop:"seckill_active_status"}},[n("el-select",{staticClass:"selWidth",attrs:{placeholder:"请选择",clearable:""},on:{change:t.getList},model:{value:t.tableFrom.seckill_active_status,callback:function(e){t.$set(t.tableFrom,"seckill_active_status",e)},expression:"tableFrom.seckill_active_status"}},[n("el-option",{attrs:{label:"开启",value:"1"}}),t._v(" "),n("el-option",{attrs:{label:"关闭",value:"0"}})],1)],1),t._v(" "),n("el-form-item",[n("el-button",{attrs:{type:"primary",size:"small"},on:{click:function(e){return t.getList(1)}}},[t._v("搜索")]),t._v(" "),n("el-button",{attrs:{size:"small"},on:{click:function(e){return t.searchReset()}}},[t._v("重置")])],1)],1)],1),t._v(" "),n("el-card",{staticClass:"mt14"},[n("div",{staticClass:"mb14"},[n("router-link",{staticClass:"mr10",attrs:{to:{path:t.roterPre+"/marketing/seckill/store_seckill/create"}}},[n("el-button",{attrs:{size:"small",type:"primary"}},[t._v("添加秒杀活动")])],1)],1),t._v(" "),n("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.listLoading,expression:"listLoading"}],attrs:{data:t.tableData.data,size:"small"}},[n("el-table-column",{attrs:{prop:"seckill_active_id",label:"ID","min-width":"50"}}),t._v(" "),n("el-table-column",{attrs:{label:"活动名称",prop:"name","min-width":"120"}}),t._v(" "),n("el-table-column",{attrs:{prop:"product_count",label:"商品数量","min-width":"90"}}),t._v(" "),n("el-table-column",{attrs:{prop:"merchant_count",label:"商家数量","min-width":"90"}}),t._v(" "),n("el-table-column",{attrs:{label:"活动状态",prop:"status_text","min-width":"90"}}),t._v(" "),n("el-table-column",{attrs:{label:"活动日期","min-width":"180"},scopedSlots:t._u([{key:"default",fn:function(e){return[n("div",[t._v(t._s(e.row.start_day)+" - "+t._s(e.row.end_day))])]}}])}),t._v(" "),n("el-table-column",{attrs:{label:"活动时间","min-width":"100"},scopedSlots:t._u([{key:"default",fn:function(e){return t._l(e.row.seckill_time_text_arr,(function(e,r){return n("div",{key:r},[t._v(t._s(e)),n("br")])}))}}])}),t._v(" "),n("el-table-column",{attrs:{prop:"create_time",label:"创建时间","min-width":"150"}}),t._v(" "),n("el-table-column",{attrs:{prop:"status",label:"活动开关","min-width":"90"},scopedSlots:t._u([{key:"default",fn:function(e){return[n("el-switch",{attrs:{"active-value":1,"inactive-value":0,"active-text":"开启","inactive-text":"关闭"},on:{change:function(n){return t.onchangeIsShow(e.row)}},model:{value:e.row.status,callback:function(n){t.$set(e.row,"status",n)},expression:"scope.row.status"}})]}}])}),t._v(" "),n("el-table-column",{attrs:{label:"操作","min-width":"150",fixed:"right"},scopedSlots:t._u([{key:"default",fn:function(e){return[n("el-button",{attrs:{type:"text",size:"small"}},[n("router-link",{attrs:{to:{path:t.roterPre+"/marketing/seckill/store_seckill/create/"+e.row.seckill_active_id+"/look"}}},[t._v("\n 查看\n ")])],1),t._v(" "),n("el-button",{attrs:{type:"text",size:"small"}},[n("router-link",{attrs:{to:{path:t.roterPre+"/marketing/seckill/store_seckill/statistics/"+e.row.seckill_active_id}}},[t._v("\n 统计\n ")])],1),t._v(" "),n("el-dropdown",{staticClass:"ml10"},[n("span",{staticClass:"el-dropdown-link"},[t._v("\n 更多"),n("i",{staticClass:"el-icon-arrow-down el-icon--right"})]),t._v(" "),n("el-dropdown-menu",{attrs:{slot:"dropdown"},slot:"dropdown"},[n("el-dropdown-item",[n("router-link",{attrs:{to:{path:t.roterPre+"/marketing/seckill/store_seckill/create/"+e.row.seckill_active_id+"/edit"}}},[t._v("\n 编辑\n ")])],1),t._v(" "),n("el-dropdown-item",[n("router-link",{attrs:{to:{path:t.roterPre+"/marketing/seckill/store_seckill/create/"+e.row.seckill_active_id+"/copy"}}},[t._v("\n 复制\n ")])],1),t._v(" "),n("el-dropdown-item",{nativeOn:{click:function(n){return t.handleDelete(e.row.seckill_active_id,e.$index)}}},[t._v("删除")])],1)],1)]}}])})],1),t._v(" "),n("div",{staticClass:"block"},[n("el-pagination",{attrs:{background:"","page-size":t.tableFrom.limit,"current-page":t.tableFrom.page,layout:"total, prev, pager, next, jumper",total:t.tableData.total},on:{"size-change":t.handleSizeChange,"current-change":t.pageChange}})],1)],1)],1)},o=[],c=n("b7be"),a=n("83d6"),u=n("0b65"),i={name:"StoreSeckill",components:{},data:function(){return{pickerOptions:u["a"],storeStatusList:[{label:"正在进行",value:1},{label:"未开始",value:0},{label:"已结束",value:-1}],timeVal:[],roterPre:a["roterPre"],listLoading:!0,tableData:{data:[],total:0},tableFrom:{page:1,limit:20,active_status:"",keyword:"",seckill_active_status:""}}},mounted:function(){this.getList("")},methods:{searchReset:function(){this.timeVal=[],this.tableFrom.date="",this.$refs.searchForm.resetFields(),this.getList(1)},onchangeTime:function(t){this.timeVal=t,this.tableFrom.date=t?this.timeVal.join("-"):"",this.tableFrom.page=1,this.getList(1)},onchangeIsShow:function(t){var e=this;Object(c["Yb"])(t.seckill_active_id,t.status).then((function(t){var n=t.message;e.$message.success(n),e.getList("")})).catch((function(t){var n=t.message;e.$message.error(n)}))},getList:function(t){var e=this;this.listLoading=!0,this.tableFrom.page=t||this.tableFrom.page,Object(c["Vb"])(this.tableFrom).then((function(t){e.tableData.data=t.data.list,e.tableData.total=t.data.count,e.listLoading=!1})).catch((function(t){e.listLoading=!1,e.$message.error(t.message)}))},pageChange:function(t){this.tableFrom.page=t,this.getList("")},handleSizeChange:function(t){this.tableFrom.limit=t,this.getList(1)},handleDelete:function(t,e){var n=this;this.$modalSure("确定删除该秒杀活动").then((function(){Object(c["Tb"])(t).then((function(t){var e=t.message;n.$message.success(e);var r=1===n.tableData.data.length&&n.tableFrom.page>1?n.tableFrom.page-1:"";n.getList(r)})).catch((function(t){var e=t.message;n.$message.error(e)}))}))}}},s=i,l=n("2877"),d=Object(l["a"])(s,r,o,!1,null,"20c21503",null);e["default"]=d.exports},b7be:function(t,e,n){"use strict";n.d(e,"Qb",(function(){return o})),n.d(e,"Pb",(function(){return c})),n.d(e,"Lb",(function(){return a})),n.d(e,"Kb",(function(){return u})),n.d(e,"Jb",(function(){return i})),n.d(e,"Mb",(function(){return s})),n.d(e,"Nb",(function(){return l})),n.d(e,"Ob",(function(){return d})),n.d(e,"W",(function(){return f})),n.d(e,"R",(function(){return p})),n.d(e,"S",(function(){return g})),n.d(e,"U",(function(){return m})),n.d(e,"T",(function(){return b})),n.d(e,"Db",(function(){return v})),n.d(e,"Q",(function(){return h})),n.d(e,"x",(function(){return k})),n.d(e,"D",(function(){return _})),n.d(e,"v",(function(){return w})),n.d(e,"u",(function(){return y})),n.d(e,"w",(function(){return D})),n.d(e,"Eb",(function(){return x})),n.d(e,"Fb",(function(){return F})),n.d(e,"nc",(function(){return C})),n.d(e,"A",(function(){return L})),n.d(e,"z",(function(){return $})),n.d(e,"E",(function(){return T})),n.d(e,"i",(function(){return S})),n.d(e,"mc",(function(){return z})),n.d(e,"jc",(function(){return O})),n.d(e,"lc",(function(){return M})),n.d(e,"ic",(function(){return P})),n.d(e,"kc",(function(){return V})),n.d(e,"Zb",(function(){return j})),n.d(e,"oc",(function(){return Y})),n.d(e,"y",(function(){return W})),n.d(e,"C",(function(){return E})),n.d(e,"B",(function(){return I})),n.d(e,"O",(function(){return J})),n.d(e,"G",(function(){return B})),n.d(e,"J",(function(){return K})),n.d(e,"K",(function(){return N})),n.d(e,"I",(function(){return R})),n.d(e,"L",(function(){return q})),n.d(e,"P",(function(){return A})),n.d(e,"N",(function(){return Q})),n.d(e,"M",(function(){return U})),n.d(e,"F",(function(){return X})),n.d(e,"H",(function(){return Z})),n.d(e,"V",(function(){return G})),n.d(e,"pb",(function(){return H})),n.d(e,"ob",(function(){return tt})),n.d(e,"hc",(function(){return et})),n.d(e,"fb",(function(){return nt})),n.d(e,"rc",(function(){return rt})),n.d(e,"cb",(function(){return ot})),n.d(e,"ab",(function(){return ct})),n.d(e,"bb",(function(){return at})),n.d(e,"gc",(function(){return ut})),n.d(e,"X",(function(){return it})),n.d(e,"o",(function(){return st})),n.d(e,"n",(function(){return lt})),n.d(e,"m",(function(){return dt})),n.d(e,"l",(function(){return ft})),n.d(e,"k",(function(){return pt})),n.d(e,"Y",(function(){return gt})),n.d(e,"t",(function(){return mt})),n.d(e,"r",(function(){return bt})),n.d(e,"q",(function(){return vt})),n.d(e,"s",(function(){return ht})),n.d(e,"p",(function(){return kt})),n.d(e,"kb",(function(){return _t})),n.d(e,"ib",(function(){return wt})),n.d(e,"mb",(function(){return yt})),n.d(e,"jb",(function(){return Dt})),n.d(e,"lb",(function(){return xt})),n.d(e,"Z",(function(){return Ft})),n.d(e,"Bb",(function(){return Ct})),n.d(e,"Ab",(function(){return Lt})),n.d(e,"yb",(function(){return $t})),n.d(e,"Cb",(function(){return Tt})),n.d(e,"eb",(function(){return St})),n.d(e,"xb",(function(){return zt})),n.d(e,"zb",(function(){return Ot})),n.d(e,"wb",(function(){return Mt})),n.d(e,"sb",(function(){return Pt})),n.d(e,"ub",(function(){return Vt})),n.d(e,"tb",(function(){return jt})),n.d(e,"nb",(function(){return Yt})),n.d(e,"db",(function(){return Wt})),n.d(e,"qb",(function(){return Et})),n.d(e,"vb",(function(){return It})),n.d(e,"rb",(function(){return Jt})),n.d(e,"a",(function(){return Bt})),n.d(e,"pc",(function(){return Kt})),n.d(e,"d",(function(){return Nt})),n.d(e,"f",(function(){return Rt})),n.d(e,"c",(function(){return qt})),n.d(e,"j",(function(){return At})),n.d(e,"b",(function(){return Qt})),n.d(e,"h",(function(){return Ut})),n.d(e,"e",(function(){return Xt})),n.d(e,"g",(function(){return Zt})),n.d(e,"Sb",(function(){return Gt})),n.d(e,"ac",(function(){return Ht})),n.d(e,"Vb",(function(){return te})),n.d(e,"Tb",(function(){return ee})),n.d(e,"Ub",(function(){return ne})),n.d(e,"Wb",(function(){return re})),n.d(e,"Yb",(function(){return oe})),n.d(e,"gb",(function(){return ce})),n.d(e,"hb",(function(){return ae})),n.d(e,"dc",(function(){return ue})),n.d(e,"fc",(function(){return ie})),n.d(e,"Xb",(function(){return se})),n.d(e,"cc",(function(){return le})),n.d(e,"bc",(function(){return de})),n.d(e,"ec",(function(){return fe}));var r=n("0c6d");function o(t){return r["a"].get("/store/coupon/platformLst",t)}function c(t){return r["a"].get("/store/coupon/update/".concat(t,"/form"))}function a(t){return r["a"].get("/store/coupon/show/".concat(t))}function u(t){return r["a"].delete("store/coupon/delete/".concat(t))}function i(t){return r["a"].get("/store/coupon/sys/clone/".concat(t,"/form"))}function s(t){return r["a"].get("store/coupon/sys/issue",t)}function l(t,e){return r["a"].get("store/coupon/show_lst/".concat(t),e)}function d(t){return r["a"].get("/store/coupon/send/lst",t)}function f(t){return r["a"].post("store/coupon/send",t)}function p(t){return r["a"].get("store/coupon/detail/".concat(t))}function g(t){return r["a"].get("store/coupon/lst",t)}function m(t,e){return r["a"].post("store/coupon/status/".concat(t),{status:e})}function b(){return r["a"].get("store/coupon/create/form")}function v(t){return r["a"].get("store/coupon/issue",t)}function h(t){return r["a"].delete("store/coupon/delete/".concat(t))}function k(t){return r["a"].get("broadcast/room/lst",t)}function _(t,e){return r["a"].post("broadcast/room/status/".concat(t),e)}function w(t){return r["a"].delete("broadcast/room/delete/".concat(t))}function y(t){return r["a"].get("broadcast/room/apply/form/".concat(t))}function D(t){return r["a"].get("broadcast/room/detail/".concat(t))}function x(t,e){return r["a"].post("broadcast/room/feedsPublic/".concat(t),{status:e})}function F(t,e){return r["a"].post("broadcast/room/comment/".concat(t),{status:e})}function C(t,e){return r["a"].post("broadcast/room/closeKf/".concat(t),{status:e})}function L(t){return r["a"].get("broadcast/goods/lst",t)}function $(t){return r["a"].get("broadcast/goods/detail/".concat(t))}function T(t,e){return r["a"].post("broadcast/goods/status/".concat(t),e)}function S(t){return r["a"].get("broadcast/goods/apply/form/".concat(t))}function z(){return r["a"].get("seckill/config/create/form")}function O(t){return r["a"].get("seckill/config/lst",t)}function M(t){return r["a"].get("seckill/config/update/".concat(t,"/form"))}function P(t){return r["a"].delete("seckill/config/delete/".concat(t))}function V(t,e){return r["a"].post("seckill/config/status/".concat(t),{status:e})}function j(t,e){return r["a"].get("seckill/product/detail/".concat(t),e)}function Y(t,e){return r["a"].get("broadcast/room/goods/".concat(t),e)}function W(t){return r["a"].delete("broadcast/goods/delete/".concat(t))}function E(t,e){return r["a"].post("broadcast/room/sort/".concat(t),e)}function I(t,e){return r["a"].post("broadcast/goods/sort/".concat(t),e)}function J(t){return r["a"].post("config/others/group_buying",t)}function B(){return r["a"].get("config/others/group_buying")}function K(t){return r["a"].get("store/product/group/lst",t)}function N(t){return r["a"].get("store/product/group/get/".concat(t))}function R(t){return r["a"].get("store/product/group/detail/".concat(t))}function q(t){return r["a"].post("store/product/group/status",t)}function A(t,e){return r["a"].post("store/product/group/is_show/".concat(t),{status:e})}function Q(t){return r["a"].get("store/product/group/get/".concat(t))}function U(t,e){return r["a"].post("store/product/group/update/".concat(t),e)}function X(t){return r["a"].get("store/product/group/buying/lst",t)}function Z(t,e){return r["a"].get("store/product/group/buying/detail/".concat(t),e)}function G(t,e){return r["a"].get("store/coupon/product/".concat(t),e)}function H(){return r["a"].get("user/integral/title")}function tt(t){return r["a"].get("user/integral/lst",t)}function et(t){return r["a"].get("user/integral/excel",t)}function nt(){return r["a"].get("user/integral/config")}function rt(t){return r["a"].post("user/integral/config",t)}function ot(t){return r["a"].get("discounts/lst",t)}function ct(t,e){return r["a"].post("discounts/status/".concat(t),{status:e})}function at(t){return r["a"].get("discounts/detail/".concat(t))}function ut(t){return r["a"].get("marketing/spu/lst",t)}function it(t){return r["a"].post("activity/atmosphere/create",t)}function st(t,e){return r["a"].post("activity/atmosphere/update/".concat(t),e)}function lt(t){return r["a"].get("activity/atmosphere/lst",t)}function dt(t){return r["a"].get("activity/atmosphere/detail/".concat(t))}function ft(t,e){return r["a"].post("activity/atmosphere/status/".concat(t),{status:e})}function pt(t){return r["a"].delete("activity/atmosphere/delete/".concat(t))}function gt(t){return r["a"].post("activity/border/create",t)}function mt(t,e){return r["a"].post("activity/border/update/".concat(t),e)}function bt(t){return r["a"].get("activity/border/lst",t)}function vt(t){return r["a"].get("activity/border/detail/".concat(t))}function ht(t,e){return r["a"].post("activity/border/status/".concat(t),{status:e})}function kt(t){return r["a"].delete("activity/border/delete/".concat(t))}function _t(){return r["a"].get("points/cate/lst")}function wt(){return r["a"].get("points/cate/create/form")}function yt(t){return r["a"].get("points/cate/update/form/".concat(t))}function Dt(t){return r["a"].delete("points/cate/delete/".concat(t))}function xt(t,e){return r["a"].post("points/cate/status/".concat(t),{status:e})}function Ft(t){return r["a"].post("points/product/create",t)}function Ct(t,e){return r["a"].post("points/product/update/".concat(t),e)}function Lt(t){return r["a"].get("points/product/lst",t)}function $t(t){return r["a"].delete("points/product/delete/".concat(t))}function Tt(t,e){return r["a"].post("points/product/status/".concat(t),{status:e})}function St(t,e){return r["a"].post("points/product/get_attr_value/".concat(t),e)}function zt(){return r["a"].get("points/cate/select")}function Ot(t){return r["a"].get("points/product/detail/".concat(t))}function Mt(t){return r["a"].get("points/order/lst",t)}function Pt(t){return r["a"].get("points/order/detail/".concat(t))}function Vt(t){return r["a"].get("points/order/express/".concat(t))}function jt(t){return r["a"].get("points/order/excel",t)}function Yt(t,e){return r["a"].post("points/order/delivery/".concat(t),e)}function Wt(t){return r["a"].get("store/express/options",t)}function Et(t){return r["a"].get("points/order/mark/".concat(t,"/form"))}function It(t,e){return r["a"].get("points/order/status/".concat(t),e)}function Jt(t){return r["a"].delete("points/order/delete/".concat(t))}function Bt(t){return r["a"].post("activity/form/create",t)}function Kt(){return r["a"].get("system/form/select")}function Nt(t){return r["a"].get("activity/form/lst",t)}function Rt(t,e){return r["a"].post("activity/form/status/".concat(t),{status:e})}function qt(t){return r["a"].get("activity/form/detail/".concat(t))}function At(t,e){return r["a"].get("system/form/info/".concat(t),e)}function Qt(t){return r["a"].delete("activity/form/delete/".concat(t))}function Ut(t,e){return r["a"].get("activity/form/user/lst/".concat(t),e)}function Xt(t,e){return r["a"].get("activity/form/excel/".concat(t),e)}function Zt(t,e){return r["a"].post("activity/form/update/".concat(t),e)}function Gt(t){return r["a"].post("seckill/active/create",t)}function Ht(t){return r["a"].get("seckill/config/select",t)}function te(t){return r["a"].get("seckill/active/lst",t)}function ee(t){return r["a"].delete("seckill/active/delete/".concat(t))}function ne(t){return r["a"].get("seckill/active/detail/".concat(t))}function re(t,e){return r["a"].post("seckill/active/update/".concat(t),e)}function oe(t,e){return r["a"].post("seckill/active/update_status/".concat(t),{status:e})}function ce(t){return r["a"].get("store/product/self_lst",t)}function ae(t){return r["a"].get("seckill/product/list",t)}function ue(t){return r["a"].get("seckill/product/switchStatus/".concat(t,"/form"))}function ie(t,e){return r["a"].post("seckill/product/update/".concat(t),e)}function se(t){return r["a"].get("seckill/active/chart_panel/".concat(t))}function le(t,e){return r["a"].get("seckill/active/chart_people/".concat(t),e)}function de(t,e){return r["a"].get("seckill/active/chart_order/".concat(t),e)}function fe(t,e){return r["a"].get("seckill/active/chart_product/".concat(t),e)}}}]);