启程易购后端代码
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
qicheng_shop_backend/public/system/js/chunk-01480f32.ed9df5dd.js

1 lines
17 KiB

(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-01480f32"],{"17e9":function(t,n,e){"use strict";e("90cd")},"8c44":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("div",{staticClass:"selCard"},[e("el-form",{ref:"searchForm",attrs:{model:t.tableFromIssue,size:"small","label-width":"85px",inline:!0}},[e("el-form-item",{attrs:{label:"使用状态:",prop:"status"}},[e("el-select",{staticClass:"selWidth",attrs:{placeholder:"请选择状态"},on:{change:function(n){return t.getIssueList(1)}},model:{value:t.tableFromIssue.status,callback:function(n){t.$set(t.tableFromIssue,"status",n)},expression:"tableFromIssue.status"}},[e("el-option",{attrs:{label:"全部",value:""}}),t._v(" "),e("el-option",{attrs:{label:"已使用",value:"1"}}),t._v(" "),e("el-option",{attrs:{label:"未使用",value:"0"}}),t._v(" "),e("el-option",{attrs:{label:"已过期",value:"2"}})],1)],1),t._v(" "),e("el-form-item",{attrs:{label:"领取人:",prop:"username"}},[e("el-input",{staticClass:"selWidth",attrs:{placeholder:"请输入领取人"},nativeOn:{keyup:function(n){return!n.type.indexOf("key")&&t._k(n.keyCode,"enter",13,n.key,"Enter")?null:t.getIssueList(1)}},model:{value:t.tableFromIssue.username,callback:function(n){t.$set(t.tableFromIssue,"username",n)},expression:"tableFromIssue.username"}})],1),t._v(" "),e("el-form-item",{attrs:{label:"优惠劵:",prop:"coupon_id"}},[e("el-input",{staticClass:"selWidth",attrs:{placeholder:"请输入优惠劵ID"},nativeOn:{keyup:function(n){return!n.type.indexOf("key")&&t._k(n.keyCode,"enter",13,n.key,"Enter")?null:t.getIssueList(1)}},model:{value:t.tableFromIssue.coupon_id,callback:function(n){t.$set(t.tableFromIssue,"coupon_id",n)},expression:"tableFromIssue.coupon_id"}})],1),t._v(" "),e("el-form-item",{attrs:{label:"获取方式:",prop:"type"}},[e("el-select",{staticClass:"selWidth",attrs:{placeholder:"请选择",clearable:""},on:{change:function(n){return t.getIssueList(1)}},model:{value:t.tableFromIssue.type,callback:function(n){t.$set(t.tableFromIssue,"type",n)},expression:"tableFromIssue.type"}},[e("el-option",{attrs:{label:"全部",value:""}}),t._v(" "),e("el-option",{attrs:{label:"手动领取",value:"receive"}}),t._v(" "),e("el-option",{attrs:{label:"新人券",value:"new"}}),t._v(" "),e("el-option",{attrs:{label:"赠送券",value:"buy"}}),t._v(" "),e("el-option",{attrs:{label:"后台发送券",value:"send"}})],1)],1),t._v(" "),e("el-form-item",{attrs:{label:"优惠券类型",prop:"coupon_type"}},[e("el-select",{staticClass:"selWidth",attrs:{placeholder:"请选择状态"},on:{change:function(n){return t.getIssueList(1)}},model:{value:t.tableFromIssue.coupon_type,callback:function(n){t.$set(t.tableFromIssue,"coupon_type",n)},expression:"tableFromIssue.coupon_type"}},[e("el-option",{attrs:{label:"全部",value:""}}),t._v(" "),e("el-option",{attrs:{label:"通用券",value:10}}),t._v(" "),e("el-option",{attrs:{label:"品类券",value:11}}),t._v(" "),e("el-option",{attrs:{label:"跨店券",value:12}})],1)],1),t._v(" "),e("el-form-item",[e("el-button",{attrs:{type:"primary",size:"small"},on:{click:function(n){return t.getIssueList(1)}}},[t._v("搜索")]),t._v(" "),e("el-button",{attrs:{size:"small"},on:{click:function(n){return t.searchReset()}}},[t._v("重置")])],1)],1)],1),t._v(" "),e("el-card",{staticClass:"mt14"},[e("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.Loading,expression:"Loading"}],attrs:{data:t.issueData.data,size:"small"}},[e("el-table-column",{attrs:{prop:"coupon_id",label:"ID","min-width":"80"}}),t._v(" "),e("el-table-column",{attrs:{prop:"coupon_title",label:"优惠券名称","min-width":"150"}}),t._v(" "),e("el-table-column",{attrs:{label:"领取人","min-width":"100"},scopedSlots:t._u([{key:"default",fn:function(n){return[n.row.user?e("span",[t._v(t._s(t._f("filterEmpty")(n.row.user.nickname)))]):e("span",[t._v("未知")])]}}])}),t._v(" "),e("el-table-column",{attrs:{label:"优惠券类型","min-width":"100"},scopedSlots:t._u([{key:"default",fn:function(n){return n.row.coupon.type?[e("span",{staticClass:"info"},[t._v(t._s(t._f("couponTypeFilter")(n.row.coupon.type)))])]:void 0}}],null,!0)}),t._v(" "),e("el-table-column",{attrs:{prop:"coupon_price",label:"面值","min-width":"80"}}),t._v(" "),e("el-table-column",{attrs:{prop:"use_min_price",label:"最低消费额","min-width":"120"}}),t._v(" "),e("el-table-column",{attrs:{prop:"start_time",label:"开始使用时间","min-width":"150"}}),t._v(" "),e("el-table-column",{attrs:{prop:"end_time",label:"结束使用时间","min-width":"150"}}),t._v(" "),e("el-table-column",{attrs:{label:"获取方式","min-width":"150"},scopedSlots:t._u([{key:"default",fn:function(n){return[e("span",[t._v(t._s(t._f("failFilter")(n.row.type)))])]}}])}),t._v(" "),e("el-table-column",{attrs:{prop:"is_fail",label:"是否可用","min-width":"80"},scopedSlots:t._u([{key:"default",fn:function(t){return[0===t.row.is_fail&&0==t.row.status?e("i",{staticClass:"el-icon-check",staticStyle:{"font-size":"14px",color:"#0092dc"}}):e("i",{staticClass:"el-icon-close",staticStyle:{"font-size":"14px",color:"#ed5565"}})]}}])}),t._v(" "),e("el-table-column",{attrs:{label:"状态","min-width":"100"},scopedSlots:t._u([{key:"default",fn:function(n){return[e("span",[t._v(t._s(t._f("statusFilter")(n.row.status)))])]}}])})],1),t._v(" "),e("div",{staticClass:"block"},[e("el-pagination",{attrs:{background:"","page-size":t.tableFromIssue.limit,"current-page":t.tableFromIssue.page,layout:"total, prev, pager, next, jumper",total:t.issueData.total},on:{"size-change":t.handleSizeChangeIssue,"current-change":t.pageChangeIssue}})],1)],1)],1)},o=[],u=e("b7be"),c=e("83d6"),a={name:"CouponRecord",filters:{failFilter:function(t){var n={receive:"自己领取",send:"后台发送",give:"满赠",new:"新人",buy:"买赠送"};return n[t]},statusFilter:function(t){var n={0:"未使用",1:"已使用",2:"已过期"};return n[t]}},data:function(){return{Loading:!1,roterPre:c["roterPre"],tableFromIssue:{page:1,limit:10,coupon_id:"",status:"",username:"",coupon_type:"",type:""},issueData:{data:[],total:0}}},mounted:function(){this.getIssueList()},methods:{searchReset:function(){this.$refs.searchForm.resetFields(),this.getIssueList(1)},getIssueList:function(t){var n=this;this.Loading=!0,this.tableFromIssue.page=t||this.tableFromIssue.page,Object(u["Kb"])(this.tableFromIssue).then((function(t){n.issueData.data=t.data.list,n.issueData.total=t.data.count,n.Loading=!1})).catch((function(t){n.Loading=!1,n.$message.error(t.message)}))},pageChangeIssue:function(t){this.tableFromIssue.page=t,this.getIssueList()},handleSizeChangeIssue:function(t){this.tableFromIssue.limit=t,this.getIssueList()}}},s=a,i=(e("17e9"),e("2877")),l=Object(i["a"])(s,r,o,!1,null,"72f95a26",null);n["default"]=l.exports},"90cd":function(t,n,e){},b7be:function(t,n,e){"use strict";e.d(n,"Ob",(function(){return o})),e.d(n,"Nb",(function(){return u})),e.d(n,"Jb",(function(){return c})),e.d(n,"Ib",(function(){return a})),e.d(n,"Hb",(function(){return s})),e.d(n,"Kb",(function(){return i})),e.d(n,"Lb",(function(){return l})),e.d(n,"Mb",(function(){return f})),e.d(n,"W",(function(){return d})),e.d(n,"R",(function(){return p})),e.d(n,"S",(function(){return b})),e.d(n,"U",(function(){return g})),e.d(n,"T",(function(){return m})),e.d(n,"Bb",(function(){return v})),e.d(n,"Q",(function(){return _})),e.d(n,"x",(function(){return y})),e.d(n,"D",(function(){return h})),e.d(n,"v",(function(){return I})),e.d(n,"u",(function(){return k})),e.d(n,"w",(function(){return w})),e.d(n,"Cb",(function(){return F})),e.d(n,"Db",(function(){return C})),e.d(n,"Yb",(function(){return x})),e.d(n,"A",(function(){return L})),e.d(n,"z",(function(){return z})),e.d(n,"E",(function(){return S})),e.d(n,"i",(function(){return D})),e.d(n,"Xb",(function(){return O})),e.d(n,"Ub",(function(){return $})),e.d(n,"Wb",(function(){return W})),e.d(n,"Tb",(function(){return j})),e.d(n,"Vb",(function(){return E})),e.d(n,"Qb",(function(){return R})),e.d(n,"Zb",(function(){return J})),e.d(n,"y",(function(){return K})),e.d(n,"C",(function(){return P})),e.d(n,"B",(function(){return B})),e.d(n,"O",(function(){return N})),e.d(n,"G",(function(){return T})),e.d(n,"J",(function(){return q})),e.d(n,"K",(function(){return A})),e.d(n,"I",(function(){return H})),e.d(n,"L",(function(){return M})),e.d(n,"P",(function(){return Q})),e.d(n,"N",(function(){return U})),e.d(n,"M",(function(){return V})),e.d(n,"F",(function(){return X})),e.d(n,"H",(function(){return Y})),e.d(n,"V",(function(){return Z})),e.d(n,"nb",(function(){return G})),e.d(n,"mb",(function(){return tt})),e.d(n,"Sb",(function(){return nt})),e.d(n,"fb",(function(){return et})),e.d(n,"cc",(function(){return rt})),e.d(n,"cb",(function(){return ot})),e.d(n,"ab",(function(){return ut})),e.d(n,"bb",(function(){return ct})),e.d(n,"Rb",(function(){return at})),e.d(n,"X",(function(){return st})),e.d(n,"o",(function(){return it})),e.d(n,"n",(function(){return lt})),e.d(n,"m",(function(){return ft})),e.d(n,"l",(function(){return dt})),e.d(n,"k",(function(){return pt})),e.d(n,"Y",(function(){return bt})),e.d(n,"t",(function(){return gt})),e.d(n,"r",(function(){return mt})),e.d(n,"q",(function(){return vt})),e.d(n,"s",(function(){return _t})),e.d(n,"p",(function(){return yt})),e.d(n,"ib",(function(){return ht})),e.d(n,"gb",(function(){return It})),e.d(n,"kb",(function(){return kt})),e.d(n,"hb",(function(){return wt})),e.d(n,"jb",(function(){return Ft})),e.d(n,"Z",(function(){return Ct})),e.d(n,"zb",(function(){return xt})),e.d(n,"yb",(function(){return Lt})),e.d(n,"wb",(function(){return zt})),e.d(n,"Ab",(function(){return St})),e.d(n,"eb",(function(){return Dt})),e.d(n,"vb",(function(){return Ot})),e.d(n,"xb",(function(){return $t})),e.d(n,"ub",(function(){return Wt})),e.d(n,"qb",(function(){return jt})),e.d(n,"sb",(function(){return Et})),e.d(n,"rb",(function(){return Rt})),e.d(n,"lb",(function(){return Jt})),e.d(n,"db",(function(){return Kt})),e.d(n,"ob",(function(){return Pt})),e.d(n,"tb",(function(){return Bt})),e.d(n,"pb",(function(){return Nt})),e.d(n,"a",(function(){return Tt})),e.d(n,"ac",(function(){return qt})),e.d(n,"d",(function(){return At})),e.d(n,"f",(function(){return Ht})),e.d(n,"c",(function(){return Mt})),e.d(n,"j",(function(){return Qt})),e.d(n,"b",(function(){return Ut})),e.d(n,"h",(function(){return Vt})),e.d(n,"e",(function(){return Xt})),e.d(n,"g",(function(){return Yt}));var r=e("0c6d");function o(t){return r["a"].get("/store/coupon/platformLst",t)}function u(t){return r["a"].get("/store/coupon/update/".concat(t,"/form"))}function c(t){return r["a"].get("/store/coupon/show/".concat(t))}function a(t){return r["a"].delete("store/coupon/delete/".concat(t))}function s(t){return r["a"].get("/store/coupon/sys/clone/".concat(t,"/form"))}function i(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 f(t){return r["a"].get("/store/coupon/send/lst",t)}function d(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 y(t){return r["a"].get("broadcast/room/lst",t)}function h(t,n){return r["a"].post("broadcast/room/status/".concat(t),n)}function I(t){return r["a"].delete("broadcast/room/delete/".concat(t))}function k(t){return r["a"].get("broadcast/room/apply/form/".concat(t))}function w(t){return r["a"].get("broadcast/room/detail/".concat(t))}function F(t,n){return r["a"].post("broadcast/room/feedsPublic/".concat(t),{status:n})}function C(t,n){return r["a"].post("broadcast/room/comment/".concat(t),{status:n})}function x(t,n){return r["a"].post("broadcast/room/closeKf/".concat(t),{status:n})}function L(t){return r["a"].get("broadcast/goods/lst",t)}function z(t){return r["a"].get("broadcast/goods/detail/".concat(t))}function S(t,n){return r["a"].post("broadcast/goods/status/".concat(t),n)}function D(t){return r["a"].get("broadcast/goods/apply/form/".concat(t))}function O(){return r["a"].get("seckill/config/create/form")}function $(t){return r["a"].get("seckill/config/lst",t)}function W(t){return r["a"].get("seckill/config/update/".concat(t,"/form"))}function j(t){return r["a"].delete("seckill/config/delete/".concat(t))}function E(t,n){return r["a"].post("seckill/config/status/".concat(t),{status:n})}function R(t,n){return r["a"].get("seckill/product/detail/".concat(t),n)}function J(t,n){return r["a"].get("broadcast/room/goods/".concat(t),n)}function K(t){return r["a"].delete("broadcast/goods/delete/".concat(t))}function P(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 N(t){return r["a"].post("config/others/group_buying",t)}function T(){return r["a"].get("config/others/group_buying")}function q(t){return r["a"].get("store/product/group/lst",t)}function A(t){return r["a"].get("store/product/group/get/".concat(t))}function H(t){return r["a"].get("store/product/group/detail/".concat(t))}function M(t){return r["a"].post("store/product/group/status",t)}function Q(t,n){return r["a"].post("store/product/group/is_show/".concat(t),{status:n})}function U(t){return r["a"].get("store/product/group/get/".concat(t))}function V(t,n){return r["a"].post("store/product/group/update/".concat(t),n)}function X(t){return r["a"].get("store/product/group/buying/lst",t)}function Y(t,n){return r["a"].get("store/product/group/buying/detail/".concat(t),n)}function Z(t,n){return r["a"].get("store/coupon/product/".concat(t),n)}function G(){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(){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 ut(t,n){return r["a"].post("discounts/status/".concat(t),{status:n})}function ct(t){return r["a"].get("discounts/detail/".concat(t))}function at(t){return r["a"].get("marketing/spu/lst",t)}function st(t){return r["a"].post("activity/atmosphere/create",t)}function it(t,n){return r["a"].post("activity/atmosphere/update/".concat(t),n)}function lt(t){return r["a"].get("activity/atmosphere/lst",t)}function ft(t){return r["a"].get("activity/atmosphere/detail/".concat(t))}function dt(t,n){return r["a"].post("activity/atmosphere/status/".concat(t),{status:n})}function pt(t){return r["a"].delete("activity/atmosphere/delete/".concat(t))}function bt(t){return r["a"].post("activity/border/create",t)}function gt(t,n){return r["a"].post("activity/border/update/".concat(t),n)}function mt(t){return r["a"].get("activity/border/lst",t)}function vt(t){return r["a"].get("activity/border/detail/".concat(t))}function _t(t,n){return r["a"].post("activity/border/status/".concat(t),{status:n})}function yt(t){return r["a"].delete("activity/border/delete/".concat(t))}function ht(){return r["a"].get("points/cate/lst")}function It(){return r["a"].get("points/cate/create/form")}function kt(t){return r["a"].get("points/cate/update/form/".concat(t))}function wt(t){return r["a"].delete("points/cate/delete/".concat(t))}function Ft(t,n){return r["a"].post("points/cate/status/".concat(t),{status:n})}function Ct(t){return r["a"].post("points/product/create",t)}function xt(t,n){return r["a"].post("points/product/update/".concat(t),n)}function Lt(t){return r["a"].get("points/product/lst",t)}function zt(t){return r["a"].delete("points/product/delete/".concat(t))}function St(t,n){return r["a"].post("points/product/status/".concat(t),{status:n})}function Dt(t,n){return r["a"].post("points/product/get_attr_value/".concat(t),n)}function Ot(){return r["a"].get("points/cate/select")}function $t(t){return r["a"].get("points/product/detail/".concat(t))}function Wt(t){return r["a"].get("points/order/lst",t)}function jt(t){return r["a"].get("points/order/detail/".concat(t))}function Et(t){return r["a"].get("points/order/express/".concat(t))}function Rt(t){return r["a"].get("points/order/excel",t)}function Jt(t,n){return r["a"].post("points/order/delivery/".concat(t),n)}function Kt(t){return r["a"].get("store/express/options",t)}function Pt(t){return r["a"].get("points/order/mark/".concat(t,"/form"))}function Bt(t,n){return r["a"].get("points/order/status/".concat(t),n)}function Nt(t){return r["a"].delete("points/order/delete/".concat(t))}function Tt(t){return r["a"].post("activity/form/create",t)}function qt(){return r["a"].get("system/form/select")}function At(t){return r["a"].get("activity/form/lst",t)}function Ht(t,n){return r["a"].post("activity/form/status/".concat(t),{status:n})}function Mt(t){return r["a"].get("activity/form/detail/".concat(t))}function Qt(t,n){return r["a"].get("system/form/info/".concat(t),n)}function Ut(t){return r["a"].delete("activity/form/delete/".concat(t))}function Vt(t,n){return r["a"].get("activity/form/user/lst/".concat(t),n)}function Xt(t,n){return r["a"].get("activity/form/excel/".concat(t),n)}function Yt(t,n){return r["a"].post("activity/form/update/".concat(t),n)}}}]);