admin-api/public/system/js/chunk-683ad31c.9dec9630.js

1 line
19 KiB
JavaScript

(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-683ad31c"],{a4a1:function(t,n,e){"use strict";e.r(n);var r=function(){var t=this,n=t.$createElement,e=t._self._c||n;return e("div",{staticClass:"divBox"},[e("el-card",{staticClass:"box-card"},[e("div",{staticClass:"clearfix",attrs:{slot:"header"},slot:"header"},[e("div",{staticClass:"container"},[e("el-form",{attrs:{size:"small",inline:"","label-width":"100px"}},[e("el-form-item",{attrs:{label:"套餐类型:",clearable:""}},[e("el-select",{attrs:{placeholder:"请选择套餐类型",clearable:""},on:{change:function(n){return t.getList("")}},model:{value:t.tableFrom.type,callback:function(n){t.$set(t.tableFrom,"type",n)},expression:"tableFrom.type"}},[e("el-option",{attrs:{value:"0",label:"固定套餐"}},[t._v("固定套餐")]),t._v(" "),e("el-option",{attrs:{value:"1",label:"搭配套餐"}},[t._v("搭配套餐")])],1)],1),t._v(" "),e("el-form-item",{attrs:{label:"套餐状态:"}},[e("el-select",{attrs:{placeholder:"请选择",clearable:""},on:{change:function(n){return t.getList("")}},model:{value:t.tableFrom.status,callback:function(n){t.$set(t.tableFrom,"status",n)},expression:"tableFrom.status"}},[e("el-option",{attrs:{value:"",label:"全部"}},[t._v("全部")]),t._v(" "),e("el-option",{attrs:{value:"1",label:"上架"}},[t._v("上架")]),t._v(" "),e("el-option",{attrs:{value:"0",label:"下架"}},[t._v("下架")])],1)],1),t._v(" "),e("el-form-item",{attrs:{label:"套餐搜索:"}},[e("el-input",{staticStyle:{width:"200px"},attrs:{placeholder:"请输入套餐名称"},nativeOn:{keyup:function(n){return!n.type.indexOf("key")&&t._k(n.keyCode,"enter",13,n.key,"Enter")?null:t.getList("")}},model:{value:t.tableFrom.title,callback:function(n){t.$set(t.tableFrom,"title",n)},expression:"tableFrom.title"}})],1)],1)],1)]),t._v(" "),e("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],staticStyle:{width:"100%"},attrs:{data:t.tableData.data,size:"small"}},[e("el-table-column",{attrs:{label:"ID",prop:"discount_id","min-width":"80"}}),t._v(" "),e("el-table-column",{attrs:{label:"套餐名称",prop:"title","min-width":"120"}}),t._v(" "),e("el-table-column",{attrs:{label:"套餐类型","min-width":"120"},scopedSlots:t._u([{key:"default",fn:function(n){return[t._v("\n "+t._s(0==n.row.type?"固定套餐":"搭配套餐")+"\n ")]}}])}),t._v(" "),e("el-table-column",{attrs:{label:"显示状态","min-width":"120"},scopedSlots:t._u([{key:"default",fn:function(n){return[e("el-switch",{attrs:{"active-value":1,"inactive-value":0,"active-text":"显示","inactive-text":"隐藏"},on:{change:function(e){return t.onchangeIsShow(n.row)}},model:{value:n.row.status,callback:function(e){t.$set(n.row,"status",e)},expression:"scope.row.status"}})]}}])}),t._v(" "),e("el-table-column",{attrs:{label:"限时","min-width":"120"},scopedSlots:t._u([{key:"default",fn:function(n){return[0==n.row.start_time?e("div",[t._v("不限时")]):e("div",[e("div",[t._v("起:"+t._s(n.row.start_time||"--"))]),t._v(" "),e("div",[t._v("止:"+t._s(n.row.stop_time||"--"))])])]}}])}),t._v(" "),e("el-table-column",{attrs:{label:"创建时间",prop:"create_time","min-width":"120"}}),t._v(" "),e("el-table-column",{attrs:{label:"剩余数量","min-width":"120"},scopedSlots:t._u([{key:"default",fn:function(n){return[t._v("\n "+t._s(n.row.is_limit?n.row.limit_num:"不限量")+"\n ")]}}])}),t._v(" "),e("el-table-column",{attrs:{label:"操作","min-width":"120"},scopedSlots:t._u([{key:"default",fn:function(n){return[e("el-button",{attrs:{type:"text",size:"small"},on:{click:function(e){return t.handleDetail(n.row.discount_id)}}},[t._v("查看")])]}}])})],1),t._v(" "),e("div",{staticClass:"block"},[e("el-pagination",{attrs:{"page-sizes":[20,40,60,80],"page-size":t.tableFrom.limit,"current-page":t.tableFrom.page,layout:"total, sizes, prev, pager, next, jumper",total:t.tableData.total},on:{"size-change":t.handleSizeChange,"current-change":t.pageChange}})],1)],1),t._v(" "),t.dialogVisible?e("el-dialog",{attrs:{title:"套餐详情",center:"",visible:t.dialogVisible,width:"700px"},on:{"update:visible":function(n){t.dialogVisible=n}}},[e("div",{directives:[{name:"loading",rawName:"v-loading",value:t.dialogLoading,expression:"dialogLoading"}]},[e("div",{staticClass:"box-container"},[e("div",{staticClass:"title"},[t._v("基本信息:")]),t._v(" "),e("div",{staticClass:"acea-row"},[e("div",{staticClass:"list sp"},[e("label",{staticClass:"name"},[t._v("套餐名称:")]),t._v(t._s(t.formValidate.title))]),t._v(" "),1==t.formValidate.type?e("div",{staticClass:"list sp100"},[e("label",{staticClass:"name"},[t._v("套餐主商品:")]),t._v(" "),e("div",[e("el-table",{staticClass:"tabNumWidth",attrs:{data:t.specsMainData,border:"",size:"mini"}},[e("el-table-column",{attrs:{prop:"store_name",label:"商品名称","min-width":"200"},scopedSlots:t._u([{key:"default",fn:function(n){return[e("div",{staticClass:"product-data"},[n.row.product?e("img",{staticClass:"image",attrs:{src:n.row.product.image}}):t._e(),t._v(" "),e("div",[t._v(t._s(n.row.product.store_name))])])]}}],null,!1,1244405286)}),t._v(" "),e("el-table-column",{attrs:{label:"参与规格","min-width":"80"},scopedSlots:t._u([{key:"default",fn:function(n){return t._l(n.row.attr,(function(n,r){return e("div",{key:r},[t._v("\n "+t._s(n.sku)+" | "+t._s(n.price)+"\n ")])}))}}],null,!1,14888251)})],1)],1)]):t._e(),t._v(" "),e("div",{staticClass:"list sp100"},[e("label",{staticClass:"name"},[t._v(t._s(1==t.formValidate.type?"套餐搭配商品:":"套餐商品:")+" ")]),t._v(" "),e("div",{staticClass:"labeltop"},[e("el-table",{staticClass:"tabNumWidth",attrs:{data:t.specsData,border:"",size:"mini",height:"260"}},[e("el-table-column",{attrs:{prop:"store_name",label:"商品名称","min-width":"200"},scopedSlots:t._u([{key:"default",fn:function(n){return[e("div",{staticClass:"product-data"},[n.row.product?e("img",{staticClass:"image",attrs:{src:n.row.product.image}}):t._e(),t._v(" "),e("div",[t._v(t._s(n.row.product.store_name))])])]}}],null,!1,1244405286)}),t._v(" "),e("el-table-column",{attrs:{label:"参与规格","min-width":"80"},scopedSlots:t._u([{key:"default",fn:function(n){return t._l(n.row.attr,(function(n,r){return e("div",{key:r},[t._v("\n "+t._s(n.sku)+" | "+t._s(n.price)+"\n ")])}))}}],null,!1,14888251)})],1)],1)])]),t._v(" "),e("div",{staticClass:"title",staticStyle:{"margin-top":"20px"}},[t._v("套餐活动信息:")]),t._v(" "),e("div",{staticClass:"acea-row"},[e("div",{staticClass:"list sp100"},[e("label",{staticClass:"name"},[t._v("活动日期:")]),t._v(" "),t.formValidate.is_time?e("span",[t._v(t._s(t.formValidate.time[0]+"-"+t.formValidate.time[1]))]):e("span",[t._v("不限时")])]),t._v(" "),e("div",{staticClass:"list sp"},[e("label",{staticClass:"name"},[t._v("套餐数量:")]),t._v(t._s(t.formValidate.is_limit?t.formValidate.limit_num:"不限量"))]),t._v(" "),e("div",{staticClass:"list sp"},[e("label",{staticClass:"name"},[t._v("显示状态:")]),t._v(t._s(1===t.formValidate.status?"显示":"不显示"))]),t._v(" "),e("div",{staticClass:"list sp"},[e("label",{staticClass:"name"},[t._v("创建时间:")]),t._v(t._s(t.formValidate.create_time))])])])])]):t._e()],1)},o=[],a=e("c7eb"),u=(e("96cf"),e("1da1")),i=e("b7be"),c=e("61f7"),s=e("83d6"),l={name:"Discounts",filters:{formatDate:function(t){if(0!==t){var n=new Date(1e3*t);return Object(c["formatDate"])(n,"yyyy-MM-dd hh:mm")}}},data:function(){return{loading:!1,dialogLoading:!1,roterPre:s["roterPre"],dialogVisible:!1,tableData:{data:[],total:0},tableFrom:{status:"",title:"",page:1,type:"",limit:15},specsMainData:[],specsData:[],formValidate:{title:"",type:0,image:"",is_time:0,is_limit:0,limit_num:0,link_ids:[],time:[],sort:0,free_shipping:1,status:1,products:[]}}},computed:{},created:function(){this.getList("")},methods:{handleDetail:function(t){var n=this;this.dialogVisible=!0,this.dialogLoading=!0,this.specsMainData=[],this.specsData=[],Object(i["S"])(t).then((function(t){n.formValidate=t.data,n.formValidate.time=t.data.time||[],n.dialogLoading=!1;for(var e=0;e<t.data.discountsProduct.length;e++){var r=t.data.discountsProduct[e];r.attr=[];for(var o=r["product"]&&r["product"]["attrValue"]||[],a=0;a<o.length;a++){var u=o[a];u.productSku&&r.attr.push(u)}1==r.type?n.specsMainData.push(r):n.specsData.push(r)}}))},getList:function(t){var n=this;this.loading=!0,this.tableFrom.page=t||this.tableFrom.page,Object(i["T"])(this.tableFrom).then(function(){var t=Object(u["a"])(Object(a["a"])().mark((function t(e){return Object(a["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:n.tableData.data=e.data.list,n.tableData.total=e.data.count,n.loading=!1;case 3:case"end":return t.stop()}}),t)})));return function(n){return t.apply(this,arguments)}}()).catch((function(t){n.loading=!1,n.$message.error(t.message)}))},pageChange:function(t){this.tableFrom.page=t,this.getList("")},handleSizeChange:function(t){this.tableFrom.limit=t,this.getList("")},onchangeIsShow:function(t){var n=this;Object(i["R"])(t.discount_id,t.status).then(function(){var t=Object(u["a"])(Object(a["a"])().mark((function t(e){return Object(a["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:n.$message.success(e.message),n.getList("");case 2:case"end":return t.stop()}}),t)})));return function(n){return t.apply(this,arguments)}}()).catch((function(t){n.$message.error(t.message),n.getList("")}))}}},d=l,f=(e("ae11"),e("2877")),p=Object(f["a"])(d,r,o,!1,null,"79bd4a4a",null);n["default"]=p.exports},ae11:function(t,n,e){"use strict";e("e7be")},b7be:function(t,n,e){"use strict";e.d(n,"Gb",(function(){return o})),e.d(n,"Fb",(function(){return a})),e.d(n,"Bb",(function(){return u})),e.d(n,"Ab",(function(){return i})),e.d(n,"zb",(function(){return c})),e.d(n,"Cb",(function(){return s})),e.d(n,"Db",(function(){return l})),e.d(n,"Eb",(function(){return d})),e.d(n,"N",(function(){return f})),e.d(n,"I",(function(){return p})),e.d(n,"J",(function(){return b})),e.d(n,"L",(function(){return g})),e.d(n,"K",(function(){return m})),e.d(n,"tb",(function(){return v})),e.d(n,"H",(function(){return _})),e.d(n,"o",(function(){return h})),e.d(n,"u",(function(){return w})),e.d(n,"m",(function(){return y})),e.d(n,"l",(function(){return k})),e.d(n,"n",(function(){return C})),e.d(n,"ub",(function(){return x})),e.d(n,"vb",(function(){return D})),e.d(n,"Qb",(function(){return V})),e.d(n,"r",(function(){return F})),e.d(n,"q",(function(){return S})),e.d(n,"v",(function(){return L})),e.d(n,"a",(function(){return O})),e.d(n,"Pb",(function(){return j})),e.d(n,"Mb",(function(){return z})),e.d(n,"Ob",(function(){return M})),e.d(n,"Lb",(function(){return $})),e.d(n,"Nb",(function(){return P})),e.d(n,"Ib",(function(){return N})),e.d(n,"Rb",(function(){return I})),e.d(n,"p",(function(){return E})),e.d(n,"t",(function(){return J})),e.d(n,"s",(function(){return B})),e.d(n,"F",(function(){return K})),e.d(n,"x",(function(){return R})),e.d(n,"A",(function(){return T})),e.d(n,"B",(function(){return W})),e.d(n,"z",(function(){return q})),e.d(n,"C",(function(){return A})),e.d(n,"G",(function(){return G})),e.d(n,"E",(function(){return Q})),e.d(n,"D",(function(){return H})),e.d(n,"w",(function(){return U})),e.d(n,"y",(function(){return X})),e.d(n,"M",(function(){return Y})),e.d(n,"fb",(function(){return Z})),e.d(n,"eb",(function(){return tt})),e.d(n,"Kb",(function(){return nt})),e.d(n,"X",(function(){return et})),e.d(n,"W",(function(){return rt})),e.d(n,"Tb",(function(){return ot})),e.d(n,"T",(function(){return at})),e.d(n,"R",(function(){return ut})),e.d(n,"S",(function(){return it})),e.d(n,"Jb",(function(){return ct})),e.d(n,"O",(function(){return st})),e.d(n,"f",(function(){return lt})),e.d(n,"e",(function(){return dt})),e.d(n,"d",(function(){return ft})),e.d(n,"c",(function(){return pt})),e.d(n,"b",(function(){return bt})),e.d(n,"P",(function(){return gt})),e.d(n,"k",(function(){return mt})),e.d(n,"i",(function(){return vt})),e.d(n,"h",(function(){return _t})),e.d(n,"j",(function(){return ht})),e.d(n,"g",(function(){return wt})),e.d(n,"ab",(function(){return yt})),e.d(n,"Y",(function(){return kt})),e.d(n,"cb",(function(){return Ct})),e.d(n,"Z",(function(){return xt})),e.d(n,"bb",(function(){return Dt})),e.d(n,"Q",(function(){return Vt})),e.d(n,"rb",(function(){return Ft})),e.d(n,"qb",(function(){return St})),e.d(n,"ob",(function(){return Lt})),e.d(n,"sb",(function(){return Ot})),e.d(n,"V",(function(){return jt})),e.d(n,"nb",(function(){return zt})),e.d(n,"pb",(function(){return Mt})),e.d(n,"mb",(function(){return $t})),e.d(n,"ib",(function(){return Pt})),e.d(n,"kb",(function(){return Nt})),e.d(n,"jb",(function(){return It})),e.d(n,"db",(function(){return Et})),e.d(n,"U",(function(){return Jt})),e.d(n,"gb",(function(){return Bt})),e.d(n,"lb",(function(){return Kt})),e.d(n,"hb",(function(){return Rt}));var r=e("0c6d");function o(t){return r["a"].get("/store/coupon/platformLst",t)}function a(t){return r["a"].get("/store/coupon/update/".concat(t,"/form"))}function u(t){return r["a"].get("/store/coupon/show/".concat(t))}function i(t){return r["a"].delete("store/coupon/delete/".concat(t))}function c(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,n){return r["a"].get("store/coupon/show_lst/".concat(t),n)}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 b(t){return r["a"].get("store/coupon/lst",t)}function g(t,n){return r["a"].post("store/coupon/status/".concat(t),{status:n})}function m(){return r["a"].get("store/coupon/create/form")}function v(t){return r["a"].get("store/coupon/issue",t)}function _(t){return r["a"].delete("store/coupon/delete/".concat(t))}function h(t){return r["a"].get("broadcast/room/lst",t)}function w(t,n){return r["a"].post("broadcast/room/status/".concat(t),n)}function y(t){return r["a"].delete("broadcast/room/delete/".concat(t))}function k(t){return r["a"].get("broadcast/room/apply/form/".concat(t))}function C(t){return r["a"].get("broadcast/room/detail/".concat(t))}function x(t,n){return r["a"].post("broadcast/room/feedsPublic/".concat(t),{status:n})}function D(t,n){return r["a"].post("broadcast/room/comment/".concat(t),{status:n})}function V(t,n){return r["a"].post("broadcast/room/closeKf/".concat(t),{status:n})}function F(t){return r["a"].get("broadcast/goods/lst",t)}function S(t){return r["a"].get("broadcast/goods/detail/".concat(t))}function L(t,n){return r["a"].post("broadcast/goods/status/".concat(t),n)}function O(t){return r["a"].get("broadcast/goods/apply/form/".concat(t))}function j(){return r["a"].get("seckill/config/create/form")}function z(t){return r["a"].get("seckill/config/lst",t)}function M(t){return r["a"].get("seckill/config/update/".concat(t,"/form"))}function $(t){return r["a"].delete("seckill/config/delete/".concat(t))}function P(t,n){return r["a"].post("seckill/config/status/".concat(t),{status:n})}function N(t,n){return r["a"].get("seckill/product/detail/".concat(t),n)}function I(t,n){return r["a"].get("broadcast/room/goods/".concat(t),n)}function E(t){return r["a"].delete("broadcast/goods/delete/".concat(t))}function J(t,n){return r["a"].post("broadcast/room/sort/".concat(t),n)}function B(t,n){return r["a"].post("broadcast/goods/sort/".concat(t),n)}function K(t){return r["a"].post("config/others/group_buying",t)}function R(){return r["a"].get("config/others/group_buying")}function T(t){return r["a"].get("store/product/group/lst",t)}function W(t){return r["a"].get("store/product/group/get/".concat(t))}function q(t){return r["a"].get("store/product/group/detail/".concat(t))}function A(t){return r["a"].post("store/product/group/status",t)}function G(t,n){return r["a"].post("store/product/group/is_show/".concat(t),{status:n})}function Q(t){return r["a"].get("store/product/group/get/".concat(t))}function H(t,n){return r["a"].post("store/product/group/update/".concat(t),n)}function U(t){return r["a"].get("store/product/group/buying/lst",t)}function X(t,n){return r["a"].get("store/product/group/buying/detail/".concat(t),n)}function Y(t,n){return r["a"].get("store/coupon/product/".concat(t),n)}function Z(){return r["a"].get("user/integral/title")}function tt(t){return r["a"].get("user/integral/lst",t)}function nt(t){return r["a"].get("user/integral/excel",t)}function et(t){return r["a"].get("user/integral/hold_list",t)}function rt(){return r["a"].get("user/integral/config")}function ot(t){return r["a"].post("user/integral/config",t)}function at(t){return r["a"].get("discounts/lst",t)}function ut(t,n){return r["a"].post("discounts/status/".concat(t),{status:n})}function it(t){return r["a"].get("discounts/detail/".concat(t))}function ct(t){return r["a"].get("marketing/spu/lst",t)}function st(t){return r["a"].post("activity/atmosphere/create",t)}function lt(t,n){return r["a"].post("activity/atmosphere/update/".concat(t),n)}function dt(t){return r["a"].get("activity/atmosphere/lst",t)}function ft(t){return r["a"].get("activity/atmosphere/detail/".concat(t))}function pt(t,n){return r["a"].post("activity/atmosphere/status/".concat(t),{status:n})}function bt(t){return r["a"].delete("activity/atmosphere/delete/".concat(t))}function gt(t){return r["a"].post("activity/border/create",t)}function mt(t,n){return r["a"].post("activity/border/update/".concat(t),n)}function vt(t){return r["a"].get("activity/border/lst",t)}function _t(t){return r["a"].get("activity/border/detail/".concat(t))}function ht(t,n){return r["a"].post("activity/border/status/".concat(t),{status:n})}function wt(t){return r["a"].delete("activity/border/delete/".concat(t))}function yt(){return r["a"].get("points/cate/lst")}function kt(){return r["a"].get("points/cate/create/form")}function Ct(t){return r["a"].get("points/cate/update/form/".concat(t))}function xt(t){return r["a"].delete("points/cate/delete/".concat(t))}function Dt(t,n){return r["a"].post("points/cate/status/".concat(t),{status:n})}function Vt(t){return r["a"].post("points/product/create",t)}function Ft(t,n){return r["a"].post("points/product/update/".concat(t),n)}function St(t){return r["a"].get("points/product/lst",t)}function Lt(t){return r["a"].delete("points/product/delete/".concat(t))}function Ot(t,n){return r["a"].post("points/product/status/".concat(t),{status:n})}function jt(t,n){return r["a"].post("points/product/get_attr_value/".concat(t),n)}function zt(){return r["a"].get("points/cate/select")}function Mt(t){return r["a"].get("points/product/detail/".concat(t))}function $t(t){return r["a"].get("points/order/lst",t)}function Pt(t){return r["a"].get("points/order/detail/".concat(t))}function Nt(t){return r["a"].get("points/order/express/".concat(t))}function It(t){return r["a"].get("points/order/excel",t)}function Et(t,n){return r["a"].post("points/order/delivery/".concat(t),n)}function Jt(t){return r["a"].get("store/express/options",t)}function Bt(t){return r["a"].get("points/order/mark/".concat(t,"/form"))}function Kt(t,n){return r["a"].get("points/order/status/".concat(t),n)}function Rt(t){return r["a"].delete("points/order/delete/".concat(t))}},e7be:function(t,n,e){}}]);