chunk-6bdf784c.53672a58.js 8.7 KB

1
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-6bdf784c"],{b7be:function(t,e,n){"use strict";n.d(e,"y",(function(){return r})),n.d(e,"z",(function(){return a})),n.d(e,"A",(function(){return s})),n.d(e,"B",(function(){return u})),n.d(e,"x",(function(){return c})),n.d(e,"e",(function(){return i})),n.d(e,"k",(function(){return l})),n.d(e,"c",(function(){return d})),n.d(e,"b",(function(){return f})),n.d(e,"d",(function(){return p})),n.d(e,"h",(function(){return g})),n.d(e,"g",(function(){return b})),n.d(e,"l",(function(){return m})),n.d(e,"a",(function(){return h})),n.d(e,"H",(function(){return v})),n.d(e,"E",(function(){return _})),n.d(e,"G",(function(){return k})),n.d(e,"D",(function(){return I})),n.d(e,"F",(function(){return y})),n.d(e,"C",(function(){return w})),n.d(e,"I",(function(){return C})),n.d(e,"f",(function(){return F})),n.d(e,"j",(function(){return L})),n.d(e,"i",(function(){return x})),n.d(e,"v",(function(){return z})),n.d(e,"n",(function(){return S})),n.d(e,"q",(function(){return D})),n.d(e,"r",(function(){return O})),n.d(e,"p",(function(){return E})),n.d(e,"s",(function(){return $})),n.d(e,"w",(function(){return j})),n.d(e,"u",(function(){return B})),n.d(e,"t",(function(){return W})),n.d(e,"m",(function(){return J})),n.d(e,"o",(function(){return P}));var o=n("0c6d");function r(t){return o["a"].get("store/coupon/detail/".concat(t))}function a(t){return o["a"].get("store/coupon/lst",t)}function s(t,e){return o["a"].post("store/coupon/status/".concat(t),{status:e})}function u(t){return o["a"].get("store/coupon/issue",t)}function c(t){return o["a"].delete("store/coupon/delete/".concat(t))}function i(t){return o["a"].get("broadcast/room/lst",t)}function l(t,e){return o["a"].post("broadcast/room/status/".concat(t),e)}function d(t){return o["a"].delete("broadcast/room/delete/".concat(t))}function f(t){return o["a"].get("broadcast/room/apply/form/".concat(t))}function p(t){return o["a"].get("broadcast/room/detail/".concat(t))}function g(t){return o["a"].get("broadcast/goods/lst",t)}function b(t){return o["a"].get("broadcast/goods/detail/".concat(t))}function m(t,e){return o["a"].post("broadcast/goods/status/".concat(t),e)}function h(t){return o["a"].get("broadcast/goods/apply/form/".concat(t))}function v(){return o["a"].get("seckill/config/create/form")}function _(t){return o["a"].get("seckill/config/lst",t)}function k(t){return o["a"].get("seckill/config/update/".concat(t,"/form"))}function I(t){return o["a"].delete("seckill/config/delete/".concat(t))}function y(t,e){return o["a"].post("seckill/config/status/".concat(t),{status:e})}function w(t,e){return o["a"].get("seckill/product/detail/".concat(t),e)}function C(t,e){return o["a"].get("broadcast/room/goods/".concat(t),e)}function F(t){return o["a"].delete("broadcast/goods/delete/".concat(t))}function L(t,e){return o["a"].post("broadcast/room/sort/".concat(t),e)}function x(t,e){return o["a"].post("broadcast/goods/sort/".concat(t),e)}function z(t){return o["a"].post("config/others/group_buying",t)}function S(){return o["a"].get("config/others/group_buying")}function D(t){return o["a"].get("store/product/group/lst",t)}function O(t){return o["a"].get("store/product/group/get/".concat(t))}function E(t){return o["a"].get("store/product/group/detail/".concat(t))}function $(t){return o["a"].post("store/product/group/status",t)}function j(t,e){return o["a"].post("store/product/group/is_show/".concat(t),{status:e})}function B(t){return o["a"].get("store/product/group/get/".concat(t))}function W(t,e){return o["a"].post("store/product/group/update/".concat(t),e)}function J(t){return o["a"].get("store/product/group/buying/lst",t)}function P(t,e){return o["a"].get("store/product/group/buying/detail/".concat(t),e)}},b8cc:function(t,e,n){},f58d:function(t,e,n){"use strict";n.r(e);var o=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"divBox"},[n("el-card",{staticClass:"box-card"},[n("div",{staticClass:"clearfix",attrs:{slot:"header"},slot:"header"},[n("div",{staticClass:"container"},[n("el-form",{attrs:{inline:!0,size:"small"}},[n("el-form-item",{staticClass:"mr10",attrs:{label:"使用状态:"}},[n("el-select",{staticClass:"selWidth",attrs:{placeholder:"请选择状态"},on:{change:t.getIssueList},model:{value:t.tableFromIssue.status,callback:function(e){t.$set(t.tableFromIssue,"status",e)},expression:"tableFromIssue.status"}},[n("el-option",{attrs:{label:"全部",value:""}}),t._v(" "),n("el-option",{attrs:{label:"已使用",value:"1"}}),t._v(" "),n("el-option",{attrs:{label:"未使用",value:"0"}}),t._v(" "),n("el-option",{attrs:{label:"已过期",value:"2"}})],1)],1),t._v(" "),n("el-form-item",{staticClass:"mr10",attrs:{label:"领取人:"}},[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.getIssueList(e)}},model:{value:t.tableFromIssue.username,callback:function(e){t.$set(t.tableFromIssue,"username",e)},expression:"tableFromIssue.username"}},[n("el-button",{staticClass:"el-button-solt",attrs:{slot:"append",icon:"el-icon-search"},on:{click:t.getIssueList},slot:"append"})],1)],1),t._v(" "),n("el-form-item",{staticClass:"mr10",attrs:{label:"优惠劵:"}},[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.getIssueList(e)}},model:{value:t.tableFromIssue.coupon,callback:function(e){t.$set(t.tableFromIssue,"coupon",e)},expression:"tableFromIssue.coupon"}},[n("el-button",{staticClass:"el-button-solt",attrs:{slot:"append",icon:"el-icon-search"},on:{click:t.getIssueList},slot:"append"})],1)],1)],1)],1)]),t._v(" "),n("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.Loading,expression:"Loading"}],staticStyle:{width:"100%"},attrs:{data:t.issueData.data}},[n("el-table-column",{attrs:{prop:"coupon_id",label:"ID","min-width":"80"}}),t._v(" "),n("el-table-column",{attrs:{prop:"coupon_title",label:"优惠券名称","min-width":"150"}}),t._v(" "),n("el-table-column",{attrs:{label:"领取人","min-width":"200"},scopedSlots:t._u([{key:"default",fn:function(e){return[e.row.user?n("span",[t._v(t._s(t._f("filterEmpty")(e.row.user.nickname)))]):n("span",[t._v("未知")])]}}])}),t._v(" "),n("el-table-column",{attrs:{prop:"coupon_price",label:"面值","min-width":"100"}}),t._v(" "),n("el-table-column",{attrs:{prop:"use_min_price",label:"最低消费额","min-width":"120"}}),t._v(" "),n("el-table-column",{attrs:{prop:"start_time",label:"开始使用时间","min-width":"150"}}),t._v(" "),n("el-table-column",{attrs:{prop:"end_time",label:"结束使用时间","min-width":"150"}}),t._v(" "),n("el-table-column",{attrs:{label:"获取方式","min-width":"150"},scopedSlots:t._u([{key:"default",fn:function(e){return[n("span",[t._v(t._s(t._f("failFilter")(e.row.type)))])]}}])}),t._v(" "),n("el-table-column",{attrs:{prop:"is_fail",label:"是否可用","min-width":"100"},scopedSlots:t._u([{key:"default",fn:function(t){return[0===t.row.is_fail?n("i",{staticClass:"el-icon-check",staticStyle:{"font-size":"14px",color:"#0092DC"}}):n("i",{staticClass:"el-icon-download",staticStyle:{"font-size":"14px",color:"#ed5565"}})]}}])}),t._v(" "),n("el-table-column",{attrs:{label:"状态","min-width":"100"},scopedSlots:t._u([{key:"default",fn:function(e){return[n("span",[t._v(t._s(t._f("statusFilter")(e.row.status)))])]}}])})],1),t._v(" "),n("div",{staticClass:"block"},[n("el-pagination",{attrs:{"page-sizes":[10,20,30,40],"page-size":t.tableFromIssue.limit,"current-page":t.tableFromIssue.page,layout:"total, sizes, prev, pager, next, jumper",total:t.issueData.total},on:{"size-change":t.handleSizeChangeIssue,"current-change":t.pageChangeIssue}})],1)],1)],1)},r=[],a=n("b7be"),s=n("83d6"),u={name:"CouponUser",filters:{failFilter:function(t){var e={receive:"自己领取",send:"后台发送",give:"满赠",new:"新人",buy:"买赠送"};return e[t]},statusFilter:function(t){var e={0:"未使用",1:"已使用",2:"已过期"};return e[t]}},data:function(){return{Loading:!1,roterPre:s["roterPre"],tableFromIssue:{page:1,limit:10,coupon:"",status:"",username:""},issueData:{data:[],total:0}}},mounted:function(){this.getIssueList()},methods:{getIssueList:function(){var t=this;this.Loading=!0,Object(a["B"])(this.tableFromIssue).then((function(e){t.issueData.data=e.data.list,t.issueData.total=e.data.count,t.Loading=!1})).catch((function(e){t.Loading=!1,t.$message.error(e.message)}))},pageChangeIssue:function(t){this.tableFromIssue.page=t,this.getIssueList()},handleSizeChangeIssue:function(t){this.tableFromIssue.limit=t,this.getIssueList()}}},c=u,i=(n("f91a"),n("2877")),l=Object(i["a"])(c,o,r,!1,null,"078f15e6",null);e["default"]=l.exports},f91a:function(t,e,n){"use strict";var o=n("b8cc"),r=n.n(o);r.a}}]);