admin-api/public/system/js/chunk-cd601d74.230de9be.js

1 line
20 KiB
JavaScript

(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-cd601d74"],{"2f21":function(t,n,e){"use strict";var o=e("79e5");t.exports=function(t,n){return!!t&&o((function(){n?t.call(null,(function(){}),1):t.call(null)}))}},"503e":function(t,n,e){},"55dd":function(t,n,e){"use strict";var o=e("5ca1"),r=e("d8e8"),a=e("4bf8"),i=e("79e5"),s=[].sort,u=[1,2,3];o(o.P+o.F*(i((function(){u.sort(void 0)}))||!i((function(){u.sort(null)}))||!e("2f21")(s)),"Array",{sort:function(t){return void 0===t?s.call(a(this)):s.call(a(this),r(t))}})},"6ae1":function(t,n,e){"use strict";e("503e")},b7be:function(t,n,e){"use strict";e.d(n,"Fb",(function(){return r})),e.d(n,"Eb",(function(){return a})),e.d(n,"Ab",(function(){return i})),e.d(n,"zb",(function(){return s})),e.d(n,"yb",(function(){return u})),e.d(n,"Bb",(function(){return c})),e.d(n,"Cb",(function(){return l})),e.d(n,"Db",(function(){return d})),e.d(n,"N",(function(){return f})),e.d(n,"I",(function(){return p})),e.d(n,"J",(function(){return g})),e.d(n,"L",(function(){return b})),e.d(n,"K",(function(){return m})),e.d(n,"sb",(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 F})),e.d(n,"tb",(function(){return C})),e.d(n,"ub",(function(){return D})),e.d(n,"Pb",(function(){return x})),e.d(n,"r",(function(){return $})),e.d(n,"q",(function(){return S})),e.d(n,"v",(function(){return L})),e.d(n,"a",(function(){return z})),e.d(n,"Ob",(function(){return P})),e.d(n,"Lb",(function(){return E})),e.d(n,"Nb",(function(){return O})),e.d(n,"Kb",(function(){return j})),e.d(n,"Mb",(function(){return I})),e.d(n,"Hb",(function(){return V})),e.d(n,"Qb",(function(){return q})),e.d(n,"p",(function(){return B})),e.d(n,"t",(function(){return W})),e.d(n,"s",(function(){return J})),e.d(n,"F",(function(){return N})),e.d(n,"x",(function(){return R})),e.d(n,"A",(function(){return A})),e.d(n,"B",(function(){return K})),e.d(n,"z",(function(){return H})),e.d(n,"C",(function(){return M})),e.d(n,"G",(function(){return Q})),e.d(n,"E",(function(){return G})),e.d(n,"D",(function(){return T})),e.d(n,"w",(function(){return U})),e.d(n,"y",(function(){return X})),e.d(n,"M",(function(){return Y})),e.d(n,"eb",(function(){return Z})),e.d(n,"db",(function(){return tt})),e.d(n,"Jb",(function(){return nt})),e.d(n,"W",(function(){return et})),e.d(n,"Sb",(function(){return ot})),e.d(n,"T",(function(){return rt})),e.d(n,"R",(function(){return at})),e.d(n,"S",(function(){return it})),e.d(n,"Ib",(function(){return st})),e.d(n,"O",(function(){return ut})),e.d(n,"f",(function(){return ct})),e.d(n,"e",(function(){return lt})),e.d(n,"d",(function(){return dt})),e.d(n,"c",(function(){return ft})),e.d(n,"b",(function(){return pt})),e.d(n,"P",(function(){return gt})),e.d(n,"k",(function(){return bt})),e.d(n,"i",(function(){return mt})),e.d(n,"h",(function(){return vt})),e.d(n,"j",(function(){return _t})),e.d(n,"g",(function(){return ht})),e.d(n,"Z",(function(){return wt})),e.d(n,"X",(function(){return yt})),e.d(n,"bb",(function(){return kt})),e.d(n,"Y",(function(){return Ft})),e.d(n,"ab",(function(){return Ct})),e.d(n,"Q",(function(){return Dt})),e.d(n,"qb",(function(){return xt})),e.d(n,"pb",(function(){return $t})),e.d(n,"nb",(function(){return St})),e.d(n,"rb",(function(){return Lt})),e.d(n,"V",(function(){return zt})),e.d(n,"mb",(function(){return Pt})),e.d(n,"ob",(function(){return Et})),e.d(n,"lb",(function(){return Ot})),e.d(n,"hb",(function(){return jt})),e.d(n,"jb",(function(){return It})),e.d(n,"ib",(function(){return Vt})),e.d(n,"cb",(function(){return qt})),e.d(n,"U",(function(){return Bt})),e.d(n,"fb",(function(){return Wt})),e.d(n,"kb",(function(){return Jt})),e.d(n,"gb",(function(){return Nt}));var o=e("0c6d");function r(t){return o["a"].get("/store/coupon/platformLst",t)}function a(t){return o["a"].get("/store/coupon/update/".concat(t,"/form"))}function i(t){return o["a"].get("/store/coupon/show/".concat(t))}function s(t){return o["a"].delete("store/coupon/delete/".concat(t))}function u(t){return o["a"].get("/store/coupon/sys/clone/".concat(t,"/form"))}function c(t){return o["a"].get("store/coupon/sys/issue",t)}function l(t,n){return o["a"].get("store/coupon/show_lst/".concat(t),n)}function d(t){return o["a"].get("/store/coupon/send/lst",t)}function f(t){return o["a"].post("store/coupon/send",t)}function p(t){return o["a"].get("store/coupon/detail/".concat(t))}function g(t){return o["a"].get("store/coupon/lst",t)}function b(t,n){return o["a"].post("store/coupon/status/".concat(t),{status:n})}function m(){return o["a"].get("store/coupon/create/form")}function v(t){return o["a"].get("store/coupon/issue",t)}function _(t){return o["a"].delete("store/coupon/delete/".concat(t))}function h(t){return o["a"].get("broadcast/room/lst",t)}function w(t,n){return o["a"].post("broadcast/room/status/".concat(t),n)}function y(t){return o["a"].delete("broadcast/room/delete/".concat(t))}function k(t){return o["a"].get("broadcast/room/apply/form/".concat(t))}function F(t){return o["a"].get("broadcast/room/detail/".concat(t))}function C(t,n){return o["a"].post("broadcast/room/feedsPublic/".concat(t),{status:n})}function D(t,n){return o["a"].post("broadcast/room/comment/".concat(t),{status:n})}function x(t,n){return o["a"].post("broadcast/room/closeKf/".concat(t),{status:n})}function $(t){return o["a"].get("broadcast/goods/lst",t)}function S(t){return o["a"].get("broadcast/goods/detail/".concat(t))}function L(t,n){return o["a"].post("broadcast/goods/status/".concat(t),n)}function z(t){return o["a"].get("broadcast/goods/apply/form/".concat(t))}function P(){return o["a"].get("seckill/config/create/form")}function E(t){return o["a"].get("seckill/config/lst",t)}function O(t){return o["a"].get("seckill/config/update/".concat(t,"/form"))}function j(t){return o["a"].delete("seckill/config/delete/".concat(t))}function I(t,n){return o["a"].post("seckill/config/status/".concat(t),{status:n})}function V(t,n){return o["a"].get("seckill/product/detail/".concat(t),n)}function q(t,n){return o["a"].get("broadcast/room/goods/".concat(t),n)}function B(t){return o["a"].delete("broadcast/goods/delete/".concat(t))}function W(t,n){return o["a"].post("broadcast/room/sort/".concat(t),n)}function J(t,n){return o["a"].post("broadcast/goods/sort/".concat(t),n)}function N(t){return o["a"].post("config/others/group_buying",t)}function R(){return o["a"].get("config/others/group_buying")}function A(t){return o["a"].get("store/product/group/lst",t)}function K(t){return o["a"].get("store/product/group/get/".concat(t))}function H(t){return o["a"].get("store/product/group/detail/".concat(t))}function M(t){return o["a"].post("store/product/group/status",t)}function Q(t,n){return o["a"].post("store/product/group/is_show/".concat(t),{status:n})}function G(t){return o["a"].get("store/product/group/get/".concat(t))}function T(t,n){return o["a"].post("store/product/group/update/".concat(t),n)}function U(t){return o["a"].get("store/product/group/buying/lst",t)}function X(t,n){return o["a"].get("store/product/group/buying/detail/".concat(t),n)}function Y(t,n){return o["a"].get("store/coupon/product/".concat(t),n)}function Z(){return o["a"].get("user/integral/title")}function tt(t){return o["a"].get("user/integral/lst",t)}function nt(t){return o["a"].get("user/integral/excel",t)}function et(){return o["a"].get("user/integral/config")}function ot(t){return o["a"].post("user/integral/config",t)}function rt(t){return o["a"].get("discounts/lst",t)}function at(t,n){return o["a"].post("discounts/status/".concat(t),{status:n})}function it(t){return o["a"].get("discounts/detail/".concat(t))}function st(t){return o["a"].get("marketing/spu/lst",t)}function ut(t){return o["a"].post("activity/atmosphere/create",t)}function ct(t,n){return o["a"].post("activity/atmosphere/update/".concat(t),n)}function lt(t){return o["a"].get("activity/atmosphere/lst",t)}function dt(t){return o["a"].get("activity/atmosphere/detail/".concat(t))}function ft(t,n){return o["a"].post("activity/atmosphere/status/".concat(t),{status:n})}function pt(t){return o["a"].delete("activity/atmosphere/delete/".concat(t))}function gt(t){return o["a"].post("activity/border/create",t)}function bt(t,n){return o["a"].post("activity/border/update/".concat(t),n)}function mt(t){return o["a"].get("activity/border/lst",t)}function vt(t){return o["a"].get("activity/border/detail/".concat(t))}function _t(t,n){return o["a"].post("activity/border/status/".concat(t),{status:n})}function ht(t){return o["a"].delete("activity/border/delete/".concat(t))}function wt(){return o["a"].get("points/cate/lst")}function yt(){return o["a"].get("points/cate/create/form")}function kt(t){return o["a"].get("points/cate/update/form/".concat(t))}function Ft(t){return o["a"].delete("points/cate/delete/".concat(t))}function Ct(t,n){return o["a"].post("points/cate/status/".concat(t),{status:n})}function Dt(t){return o["a"].post("points/product/create",t)}function xt(t,n){return o["a"].post("points/product/update/".concat(t),n)}function $t(t){return o["a"].get("points/product/lst",t)}function St(t){return o["a"].delete("points/product/delete/".concat(t))}function Lt(t,n){return o["a"].post("points/product/status/".concat(t),{status:n})}function zt(t,n){return o["a"].post("points/product/get_attr_value/".concat(t),n)}function Pt(){return o["a"].get("points/cate/select")}function Et(t){return o["a"].get("points/product/detail/".concat(t))}function Ot(t){return o["a"].get("points/order/lst",t)}function jt(t){return o["a"].get("points/order/detail/".concat(t))}function It(t){return o["a"].get("points/order/express/".concat(t))}function Vt(t){return o["a"].get("points/order/excel",t)}function qt(t,n){return o["a"].post("points/order/delivery/".concat(t),n)}function Bt(t){return o["a"].get("store/express/options",t)}function Wt(t){return o["a"].get("points/order/mark/".concat(t,"/form"))}function Jt(t,n){return o["a"].get("points/order/status/".concat(t),n)}function Nt(t){return o["a"].delete("points/order/delete/".concat(t))}},dcdca:function(t,n,e){"use strict";e.r(n);var o=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","label-width":"100px"}},[e("el-form-item",{attrs:{label:"状态:"}},[e("el-radio-group",{attrs:{type:"button"},on:{change:function(n){return t.getList(1)}},model:{value:t.tableForm.status_tag,callback:function(n){t.$set(t.tableForm,"status_tag",n)},expression:"tableForm.status_tag"}},[e("el-radio-button",{attrs:{label:""}},[t._v("全部")]),t._v(" "),e("el-radio-button",{attrs:{label:"0"}},[t._v("待审核")]),t._v(" "),e("el-radio-button",{attrs:{label:"1"}},[t._v("已审核")]),t._v(" "),e("el-radio-button",{attrs:{label:"-1"}},[t._v("审核失败")])],1)],1),t._v(" "),e("el-form-item",{staticStyle:{display:"inline-block"},attrs:{label:"商户类别:"}},[e("el-select",{staticClass:"selWidth",attrs:{clearable:"",placeholder:"请选择"},on:{change:function(n){return t.getList(1)}},model:{value:t.tableForm.is_trader,callback:function(n){t.$set(t.tableForm,"is_trader",n)},expression:"tableForm.is_trader"}},[e("el-option",{attrs:{label:"自营",value:"1"}}),t._v(" "),e("el-option",{attrs:{label:"非自营",value:"0"}})],1)],1),t._v(" "),e("el-form-item",{staticClass:"width100",staticStyle:{display:"inline-block"},attrs:{label:"关键字:"}},[e("el-input",{staticClass:"selWidth",attrs:{placeholder:"请输入直播商品名称/ID",size:"small"},nativeOn:{keyup:function(n){return!n.type.indexOf("key")&&t._k(n.keyCode,"enter",13,n.key,"Enter")?null:t.getList(1)}},model:{value:t.tableForm.keyword,callback:function(n){t.$set(t.tableForm,"keyword",n)},expression:"tableForm.keyword"}},[e("el-button",{staticClass:"el-button-solt",attrs:{slot:"append",icon:"el-icon-search"},on:{click:function(n){return t.getList(1)}},slot:"append"})],1)],1)],1)],1)]),t._v(" "),e("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.listLoading,expression:"listLoading"}],staticStyle:{width:"100%"},attrs:{data:t.tableData.data,size:"small","highlight-current-row":""}},[e("el-table-column",{attrs:{label:"序号","min-width":"50"},scopedSlots:t._u([{key:"default",fn:function(n){return[e("span",[t._v(t._s(n.$index+(t.tableForm.page-1)*t.tableForm.limit+1))])]}}])}),t._v(" "),e("el-table-column",{attrs:{label:"商户名称","min-width":"120"},scopedSlots:t._u([{key:"default",fn:function(n){return[e("span",[t._v(t._s(n.row.merchant?n.row.merchant.mer_name:""))])]}}])}),t._v(" "),e("el-table-column",{attrs:{prop:"mer_name",label:"商户类别","min-width":"80"},scopedSlots:t._u([{key:"default",fn:function(n){return[n.row.merchant?e("span",{staticClass:"spBlock"},[t._v(t._s(n.row.merchant.is_trader?"自营":"非自营"))]):t._e()]}}])}),t._v(" "),e("el-table-column",{attrs:{prop:"goods_id",label:"商品ID","min-width":"80"}}),t._v(" "),e("el-table-column",{attrs:{prop:"name",label:"商品名称","min-width":"150"}}),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(n.row.product?n.row.product.price:""))])]}}])}),t._v(" "),e("el-table-column",{attrs:{prop:"price",label:"直播价","min-width":"90"}}),t._v(" "),e("el-table-column",{attrs:{label:"库存","min-width":"60"},scopedSlots:t._u([{key:"default",fn:function(n){return[e("span",[t._v(t._s(n.row.product?n.row.product.stock:""))])]}}])}),t._v(" "),e("el-table-column",{attrs:{prop:"sort","min-width":"60",label:"排序"}}),t._v(" "),1!=t.tableForm.status_tag?e("el-table-column",{key:"3",attrs:{label:"审核状态","min-width":"90"},scopedSlots:t._u([{key:"default",fn:function(n){return[e("span",[t._v(t._s(t._f("liveReviewStatusFilter")(n.row.status)))]),t._v(" "),-1==n.row.status?e("span",{staticStyle:{display:"block","font-size":"12px"}},[t._v("原因 "+t._s(n.row.error_msg))]):t._e()]}}],null,!1,3159920398)}):t._e(),t._v(" "),e("el-table-column",{attrs:{label:"开启/关闭","min-width":"100"},scopedSlots:t._u([{key:"default",fn:function(n){return[e("el-switch",{attrs:{"active-value":1,"inactive-value":0,"active-text":"开启","inactive-text":"关闭"},nativeOn:{click:function(e){return t.onchangeIsShow(n.row)}},model:{value:n.row.is_show,callback:function(e){t.$set(n.row,"is_show",e)},expression:"scope.row.is_show"}})]}}])}),t._v(" "),e("el-table-column",{attrs:{prop:"create_time",label:"创建时间","min-width":"160"}}),t._v(" "),e("el-table-column",{attrs:{label:"操作","min-width":"150",fixed:"right"},scopedSlots:t._u([{key:"default",fn:function(n){return[0==n.row.status?e("el-button",{staticClass:"mr10",attrs:{type:"text",size:"small"},on:{click:function(e){return t.toExamine(n.row.broadcast_goods_id)}}},[t._v("审核")]):t._e(),t._v(" "),e("el-button",{staticClass:"mr10",attrs:{type:"text",size:"small"},on:{click:function(e){return t.onProDetails(n.row.broadcast_goods_id)}}},[t._v("详情")]),t._v(" "),e("el-button",{staticClass:"mr10",attrs:{type:"text",size:"small"},on:{click:function(e){return t.handleEdit(n.row.broadcast_goods_id)}}},[t._v("编辑")]),t._v(" "),e("el-button",{attrs:{type:"text",size:"small"},on:{click:function(e){return t.handleDelete(n.row.broadcast_goods_id,n.$index)}}},[t._v("删除")])]}}])})],1),t._v(" "),e("div",{staticClass:"block"},[e("el-pagination",{attrs:{"page-sizes":[20,40,60,80],"page-size":t.tableForm.limit,"current-page":t.tableForm.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(" "),e("details-from",{ref:"ProDetail",on:{getList:t.getList}})],1)},r=[],a=e("b7be"),i=e("83d6"),s=function(){var t=this,n=t.$createElement,e=t._self._c||n;return e("div",{staticClass:"divBox"},[t.dialogVisible?e("el-dialog",{attrs:{title:"商品信息",visible:t.dialogVisible,width:"700px"},on:{"update:visible":function(n){t.dialogVisible=n}}},[e("div",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}]},[e("div",{staticClass:"box-container"},[e("div",{staticClass:"list sp"},[e("label",{staticClass:"name"},[t._v("商品名称:")]),t._v(" "),e("span",{staticClass:"info"},[t._v(t._s(t.FormData.name))])]),t._v(" "),e("div",{staticClass:"list sp"},[e("label",{staticClass:"name"},[t._v("直播价:")]),t._v(" "),e("span",{staticClass:"info"},[t._v(t._s(t.FormData.price))])]),t._v(" "),e("div",{staticClass:"list sp"},[e("label",{staticClass:"name"},[t._v("库存:")]),t._v(" "),t.FormData.product?e("span",{staticClass:"info"},[t._v(t._s(t.FormData.product.stock))]):t._e()]),t._v(" "),e("div",{staticClass:"list sp100 image"},[e("label",{staticClass:"name"},[t._v("商品图:")]),t._v(" "),t.FormData.product?e("img",{staticStyle:{"max-width":"150px",height:"80px"},attrs:{src:t.FormData.product.image}}):t._e()]),t._v(" "),e("div",{staticClass:"list sp"},[e("label",{staticClass:"name"},[t._v("审核结果:")]),t._v(" "),e("span",{staticClass:"info"},[t._v(t._s(t._f("liveReviewStatusFilter")(t.FormData.status)))])]),t._v(" "),t.isEdit?e("div",{staticClass:"list"},[e("label",{staticClass:"name"},[t._v("排序:")]),t._v(" "),e("el-input",{staticClass:"selWidth",staticStyle:{"padding-right":"0"},attrs:{type:"number",placeholder:"请输入序号",size:"small"},model:{value:t.FormData.sort,callback:function(n){t.$set(t.FormData,"sort",t._n(n))},expression:"FormData.sort"}}),t._v(" "),e("el-button",{staticStyle:{width:"80px"},attrs:{size:"small",type:"primary"},on:{click:t.handleSort}},[t._v("确定")])],1):e("div",{staticClass:"list sp"},[e("label",{staticClass:"name"},[t._v("排序:")]),t._v(" "),e("span",{staticClass:"info"},[t._v(t._s(t.FormData.sort))])])])])]):t._e()],1)},u=[],c=(e("55dd"),{name:"BroadcastProDetail",data:function(){return{dialogVisible:!1,isEdit:!1,option:{form:{labelWidth:"150px"}},FormData:{sort:0},loading:!1}},mounted:function(){},methods:{getData:function(t){var n=this;this.loading=!0,Object(a["q"])(t).then((function(t){n.FormData=t.data,n.loading=!1,console.log(n.FormData)})).catch((function(t){n.$message.error(t.message),n.loading=!1}))},handleSort:function(){var t=this;Object(a["s"])(this.FormData.broadcast_goods_id,{sort:this.FormData.sort}).then((function(n){console.log(t.FormData),t.dialogVisible=!1,t.$emit("getList"),t.$message.success(n.message)})).catch((function(n){t.$message.error(n.message)}))}}}),l=c,d=(e("6ae1"),e("2877")),f=Object(d["a"])(l,s,u,!1,null,"1d9ea94e",null),p=f.exports,g={name:"BroadcastProList",components:{detailsFrom:p},data:function(){return{Loading:!1,roterPre:i["roterPre"],listLoading:!0,product_id:"",dialogVisible:!1,tableData:{data:[],total:0},tableForm:{page:1,limit:20,status_tag:this.$route.query.status?this.$route.query.status:"",keyword:"",is_trader:"",broadcast_goods_id:this.$route.query.id?this.$route.query.id:""},liveRoomStatus:""}},mounted:function(){this.getList()},methods:{handleEdit:function(t){this.product_id=t,this.$refs.ProDetail.dialogVisible=!0,this.$refs.ProDetail.isEdit=!0,this.$refs.ProDetail.getData(t)},onProDetails:function(t){this.product_id=t,this.$refs.ProDetail.dialogVisible=!0,this.$refs.ProDetail.isEdit=!1,this.$refs.ProDetail.getData(t)},handleDelete:function(t,n){var e=this;this.$modalSureDelete().then((function(){Object(a["p"])(t).then((function(t){var o=t.message;e.$message.success(o),e.tableData.data.splice(n,1),e.getList()})).catch((function(t){var n=t.message;e.$message.error(n)}))}))},handleSizeChangeIssue:function(t){this.tableFormIssue.limit=t,this.getIssueList()},getList:function(t){var n=this;this.listLoading=!0,this.tableForm.page=t||this.tableForm.page,console.log(this.tableForm),Object(a["r"])(this.tableForm).then((function(t){n.tableData.data=t.data.list,n.tableData.total=t.data.count,n.listLoading=!1})).catch((function(t){n.listLoading=!1,n.$message.error(t.message)}))},pageChange:function(t){this.tableForm.page=t,this.getList()},handleSizeChange:function(t){this.tableForm.limit=t,this.getList()},onchangeIsShow:function(t){var n=this;Object(a["v"])(t.broadcast_goods_id,{is_show:t.is_show}).then((function(t){var e=t.message;n.$message.success(e),n.getList()})).catch((function(t){var e=t.message;n.$message.error(e)}))},toExamine:function(t){var n=this;this.$modalForm(Object(a["a"])(t)).then((function(){return n.getList()}))}}},b=g,m=(e("ed9e"),Object(d["a"])(b,o,r,!1,null,"4e9d1cc4",null));n["default"]=m.exports},e70f:function(t,n,e){},ed9e:function(t,n,e){"use strict";e("e70f")}}]);