|
|
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-60f093d9"],{"3a89":function(t,e,a){"use strict";a("a190")},a190:function(t,e,a){},a71a:function(t,e){t.exports="data:image/png;base64,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"},b7be:function(t,e,a){"use strict";a.d(e,"Ob",(function(){return s})),a.d(e,"Nb",(function(){return n})),a.d(e,"Jb",(function(){return r})),a.d(e,"Ib",(function(){return o})),a.d(e,"Hb",(function(){return l})),a.d(e,"Kb",(function(){return c})),a.d(e,"Lb",(function(){return u})),a.d(e,"Mb",(function(){return d})),a.d(e,"W",(function(){return m})),a.d(e,"R",(function(){return p})),a.d(e,"S",(function(){return f})),a.d(e,"U",(function(){return v})),a.d(e,"T",(function(){return _})),a.d(e,"Bb",(function(){return b})),a.d(e,"Q",(function(){return g})),a.d(e,"x",(function(){return h})),a.d(e,"D",(function(){return C})),a.d(e,"v",(function(){return y})),a.d(e,"u",(function(){return w})),a.d(e,"w",(function(){return k})),a.d(e,"Cb",(function(){return D})),a.d(e,"Db",(function(){return x})),a.d(e,"Yb",(function(){return A})),a.d(e,"A",(function(){return L})),a.d(e,"z",(function(){return F})),a.d(e,"E",(function(){return S})),a.d(e,"i",(function(){return O})),a.d(e,"Xb",(function(){return V})),a.d(e,"Ub",(function(){return T})),a.d(e,"Wb",(function(){return B})),a.d(e,"Tb",(function(){return z})),a.d(e,"Vb",(function(){return j})),a.d(e,"Qb",(function(){return P})),a.d(e,"Zb",(function(){return R})),a.d(e,"y",(function(){return I})),a.d(e,"C",(function(){return N})),a.d(e,"B",(function(){return W})),a.d(e,"O",(function(){return Y})),a.d(e,"G",(function(){return G})),a.d(e,"J",(function(){return X})),a.d(e,"K",(function(){return M})),a.d(e,"I",(function(){return E})),a.d(e,"L",(function(){return J})),a.d(e,"P",(function(){return H})),a.d(e,"N",(function(){return K})),a.d(e,"M",(function(){return U})),a.d(e,"F",(function(){return Q})),a.d(e,"H",(function(){return $})),a.d(e,"V",(function(){return Z})),a.d(e,"nb",(function(){return q})),a.d(e,"mb",(function(){return tt})),a.d(e,"Sb",(function(){return et})),a.d(e,"fb",(function(){return at})),a.d(e,"cc",(function(){return it})),a.d(e,"cb",(function(){return st})),a.d(e,"ab",(function(){return nt})),a.d(e,"bb",(function(){return rt})),a.d(e,"Rb",(function(){return ot})),a.d(e,"X",(function(){return lt})),a.d(e,"o",(function(){return ct})),a.d(e,"n",(function(){return ut})),a.d(e,"m",(function(){return dt})),a.d(e,"l",(function(){return mt})),a.d(e,"k",(function(){return pt})),a.d(e,"Y",(function(){return ft})),a.d(e,"t",(function(){return vt})),a.d(e,"r",(function(){return _t})),a.d(e,"q",(function(){return bt})),a.d(e,"s",(function(){return gt})),a.d(e,"p",(function(){return ht})),a.d(e,"ib",(function(){return Ct})),a.d(e,"gb",(function(){return yt})),a.d(e,"kb",(function(){return wt})),a.d(e,"hb",(function(){return kt})),a.d(e,"jb",(function(){return Dt})),a.d(e,"Z",(function(){return xt})),a.d(e,"zb",(function(){return At})),a.d(e,"yb",(function(){return Lt})),a.d(e,"wb",(function(){return Ft})),a.d(e,"Ab",(function(){return St})),a.d(e,"eb",(function(){return Ot})),a.d(e,"vb",(function(){return Vt})),a.d(e,"xb",(function(){return Tt})),a.d(e,"ub",(function(){return Bt})),a.d(e,"qb",(function(){return zt})),a.d(e,"sb",(function(){return jt})),a.d(e,"rb",(function(){return Pt})),a.d(e,"lb",(function(){return Rt})),a.d(e,"db",(function(){return It})),a.d(e,"ob",(function(){return Nt})),a.d(e,"tb",(function(){return Wt})),a.d(e,"pb",(function(){return Yt})),a.d(e,"a",(function(){return Gt})),a.d(e,"ac",(function(){return Xt})),a.d(e,"d",(function(){return Mt})),a.d(e,"f",(function(){return Et})),a.d(e,"c",(function(){return Jt})),a.d(e,"j",(function(){return Ht})),a.d(e,"b",(function(){return Kt})),a.d(e,"h",(function(){return Ut})),a.d(e,"e",(function(){return Qt})),a.d(e,"g",(function(){return $t}));var i=a("0c6d");function s(t){return i["a"].get("/store/coupon/platformLst",t)}function n(t){return i["a"].get("/store/coupon/update/".concat(t,"/form"))}function r(t){return i["a"].get("/store/coupon/show/".concat(t))}function o(t){return i["a"].delete("store/coupon/delete/".concat(t))}function l(t){return i["a"].get("/store/coupon/sys/clone/".concat(t,"/form"))}function c(t){return i["a"].get("store/coupon/sys/issue",t)}function u(t,e){return i["a"].get("store/coupon/show_lst/".concat(t),e)}function d(t){return i["a"].get("/store/coupon/send/lst",t)}function m(t){return i["a"].post("store/coupon/send",t)}function p(t){return i["a"].get("store/coupon/detail/".concat(t))}function f(t){return i["a"].get("store/coupon/lst",t)}function v(t,e){return i["a"].post("store/coupon/status/".concat(t),{status:e})}function _(){return i["a"].get("store/coupon/create/form")}function b(t){return i["a"].get("store/coupon/issue",t)}function g(t){return i["a"].delete("store/coupon/delete/".concat(t))}function h(t){return i["a"].get("broadcast/room/lst",t)}function C(t,e){return i["a"].post("broadcast/room/status/".concat(t),e)}function y(t){return i["a"].delete("broadcast/room/delete/".concat(t))}function w(t){return i["a"].get("broadcast/room/apply/form/".concat(t))}function k(t){return i["a"].get("broadcast/room/detail/".concat(t))}function D(t,e){return i["a"].post("broadcast/room/feedsPublic/".concat(t),{status:e})}function x(t,e){return i["a"].post("broadcast/room/comment/".concat(t),{status:e})}function A(t,e){return i["a"].post("broadcast/room/closeKf/".concat(t),{status:e})}function L(t){return i["a"].get("broadcast/goods/lst",t)}function F(t){return i["a"].get("broadcast/goods/detail/".concat(t))}function S(t,e){return i["a"].post("broadcast/goods/status/".concat(t),e)}function O(t){return i["a"].get("broadcast/goods/apply/form/".concat(t))}function V(){return i["a"].get("seckill/config/create/form")}function T(t){return i["a"].get("seckill/config/lst",t)}function B(t){return i["a"].get("seckill/config/update/".concat(t,"/form"))}function z(t){return i["a"].delete("seckill/config/delete/".concat(t))}function j(t,e){return i["a"].post("seckill/config/status/".concat(t),{status:e})}function P(t,e){return i["a"].get("seckill/product/detail/".concat(t),e)}function R(t,e){return i["a"].get("broadcast/room/goods/".concat(t),e)}function I(t){return i["a"].delete("broadcast/goods/delete/".concat(t))}function N(t,e){return i["a"].post("broadcast/room/sort/".concat(t),e)}function W(t,e){return i["a"].post("broadcast/goods/sort/".concat(t),e)}function Y(t){return i["a"].post("config/others/group_buying",t)}function G(){return i["a"].get("config/others/group_buying")}function X(t){return i["a"].get("store/product/group/lst",t)}function M(t){return i["a"].get("store/product/group/get/".concat(t))}function E(t){return i["a"].get("store/product/group/detail/".concat(t))}function J(t){return i["a"].post("store/product/group/status",t)}function H(t,e){return i["a"].post("store/product/group/is_show/".concat(t),{status:e})}function K(t){return i["a"].get("store/product/group/get/".concat(t))}function U(t,e){return i["a"].post("store/product/group/update/".concat(t),e)}function Q(t){return i["a"].get("store/product/group/buying/lst",t)}function $(t,e){return i["a"].get("store/product/group/buying/detail/".concat(t),e)}function Z(t,e){return i["a"].get("store/coupon/product/".concat(t),e)}function q(){return i["a"].get("user/integral/title")}function tt(t){return i["a"].get("user/integral/lst",t)}function et(t){return i["a"].get("user/integral/excel",t)}function at(){return i["a"].get("user/integral/config")}function it(t){return i["a"].post("user/integral/config",t)}function st(t){return i["a"].get("discounts/lst",t)}function nt(t,e){return i["a"].post("discounts/status/".concat(t),{status:e})}function rt(t){return i["a"].get("discounts/detail/".concat(t))}function ot(t){return i["a"].get("marketing/spu/lst",t)}function lt(t){return i["a"].post("activity/atmosphere/create",t)}function ct(t,e){return i["a"].post("activity/atmosphere/update/".concat(t),e)}function ut(t){return i["a"].get("activity/atmosphere/lst",t)}function dt(t){return i["a"].get("activity/atmosphere/detail/".concat(t))}function mt(t,e){return i["a"].post("activity/atmosphere/status/".concat(t),{status:e})}function pt(t){return i["a"].delete("activity/atmosphere/delete/".concat(t))}function ft(t){return i["a"].post("activity/border/create",t)}function vt(t,e){return i["a"].post("activity/border/update/".concat(t),e)}function _t(t){return i["a"].get("activity/border/lst",t)}function bt(t){return i["a"].get("activity/border/detail/".concat(t))}function gt(t,e){return i["a"].post("activity/border/status/".concat(t),{status:e})}function ht(t){return i["a"].delete("activity/border/delete/".concat(t))}function Ct(){return i["a"].get("points/cate/lst")}function yt(){return i["a"].get("points/cate/create/form")}function wt(t){return i["a"].get("points/cate/update/form/".concat(t))}function kt(t){return i["a"].delete("points/cate/delete/".concat(t))}function Dt(t,e){return i["a"].post("points/cate/status/".concat(t),{status:e})}function xt(t){return i["a"].post("points/product/create",t)}function At(t,e){return i["a"].post("points/product/update/".concat(t),e)}function Lt(t){return i["a"].get("points/product/lst",t)}function Ft(t){return i["a"].delete("points/product/delete/".concat(t))}function St(t,e){return i["a"].post("points/product/status/".concat(t),{status:e})}function Ot(t,e){return i["a"].post("points/product/get_attr_value/".concat(t),e)}function Vt(){return i["a"].get("points/cate/select")}function Tt(t){return i["a"].get("points/product/detail/".concat(t))}function Bt(t){return i["a"].get("points/order/lst",t)}function zt(t){return i["a"].get("points/order/detail/".concat(t))}function jt(t){return i["a"].get("points/order/express/".concat(t))}function Pt(t){return i["a"].get("points/order/excel",t)}function Rt(t,e){return i["a"].post("points/order/delivery/".concat(t),e)}function It(t){return i["a"].get("store/express/options",t)}function Nt(t){return i["a"].get("points/order/mark/".concat(t,"/form"))}function Wt(t,e){return i["a"].get("points/order/status/".concat(t),e)}function Yt(t){return i["a"].delete("points/order/delete/".concat(t))}function Gt(t){return i["a"].post("activity/form/create",t)}function Xt(){return i["a"].get("system/form/select")}function Mt(t){return i["a"].get("activity/form/lst",t)}function Et(t,e){return i["a"].post("activity/form/status/".concat(t),{status:e})}function Jt(t){return i["a"].get("activity/form/detail/".concat(t))}function Ht(t,e){return i["a"].get("system/form/info/".concat(t),e)}function Kt(t){return i["a"].delete("activity/form/delete/".concat(t))}function Ut(t,e){return i["a"].get("activity/form/user/lst/".concat(t),e)}function Qt(t,e){return i["a"].get("activity/form/excel/".concat(t),e)}function $t(t,e){return i["a"].post("activity/form/update/".concat(t),e)}},d4bf:function(t,e,a){},d88b:function(t,e,a){"use strict";a("d4bf")},fe2f:function(t,e,a){"use strict";a.r(e);var i=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"divBox"},[a("div",{staticClass:"selCard"},[a("el-form",{ref:"searchForm",attrs:{inline:"",size:"small",model:t.tableFrom,"label-width":"85px"}},[a("el-form-item",{attrs:{label:"商品分类:",prop:"pid"}},[a("el-cascader",{staticClass:"selWidth",attrs:{options:t.merCateList,props:{checkStrictly:!0,emitPath:!1},clearable:""},on:{change:function(e){return t.getList(1)}},model:{value:t.tableFrom.pid,callback:function(e){t.$set(t.tableFrom,"pid",e)},expression:"tableFrom.pid"}})],1),t._v(" "),a("el-form-item",{attrs:{label:"商户名称:",prop:"mer_id"}},[a("el-select",{staticClass:"selWidth",attrs:{clearable:"",filterable:"",placeholder:"请选择"},on:{change:function(e){return t.getList(1)}},model:{value:t.tableFrom.mer_id,callback:function(e){t.$set(t.tableFrom,"mer_id",e)},expression:"tableFrom.mer_id"}},t._l(t.merSelect,(function(t){return a("el-option",{key:t.mer_id,attrs:{label:t.mer_name,value:t.mer_id}})})),1)],1),t._v(" "),a("el-form-item",{attrs:{label:"商户类别:",prop:"is_trader"}},[a("el-select",{staticClass:"selWidth",attrs:{clearable:"",placeholder:"请选择"},on:{change:function(e){return t.getList(1)}},model:{value:t.tableFrom.is_trader,callback:function(e){t.$set(t.tableFrom,"is_trader",e)},expression:"tableFrom.is_trader"}},[a("el-option",{attrs:{label:"自营",value:"1"}}),t._v(" "),a("el-option",{attrs:{label:"非自营",value:"0"}})],1)],1),t._v(" "),a("el-form-item",{attrs:{label:"商品状态:",prop:"us_status"}},[a("el-select",{staticClass:"filter-item selWidth",attrs:{placeholder:"请选择",clearable:""},on:{change:function(e){return t.getList(1)}},model:{value:t.tableFrom.us_status,callback:function(e){t.$set(t.tableFrom,"us_status",e)},expression:"tableFrom.us_status"}},t._l(t.productStatusList,(function(t){return a("el-option",{key:t.value,attrs:{label:t.label,value:t.value}})})),1)],1),t._v(" "),a("el-form-item",{attrs:{label:"推荐级别:",prop:"star"}},[a("el-select",{staticClass:"filter-item selWidth",attrs:{placeholder:"请选择",clearable:""},on:{change:function(e){return t.getList(1)}},model:{value:t.tableFrom.star,callback:function(e){t.$set(t.tableFrom,"star",e)},expression:"tableFrom.star"}},t._l(t.recommendedLevelStatus,(function(t){return a("el-option",{key:t.value,attrs:{label:t.label,value:t.value}})})),1)],1),t._v(" "),a("el-form-item",{attrs:{label:"标签:",prop:"sys_labels"}},[a("el-select",{staticClass:"filter-item selWidth",attrs:{placeholder:"请选择",clearable:"",filterable:""},on:{change:function(e){return t.getList(1)}},model:{value:t.tableFrom.sys_labels,callback:function(e){t.$set(t.tableFrom,"sys_labels",e)},expression:"tableFrom.sys_labels"}},t._l(t.labelList,(function(t){return a("el-option",{key:t.id,attrs:{label:t.name,value:t.id}})})),1)],1),t._v(" "),a("el-form-item",{attrs:{label:"会员价:",prop:"svip_price_type"}},[a("el-select",{staticClass:"selWidth",attrs:{placeholder:"请选择",clearable:""},on:{change:function(e){return t.getList(1)}},model:{value:t.tableFrom.svip_price_type,callback:function(e){t.$set(t.tableFrom,"svip_price_type",e)},expression:"tableFrom.svip_price_type"}},[a("el-option",{attrs:{label:"未设置",value:"0"}}),t._v(" "),a("el-option",{attrs:{label:"默认设置",value:"1"}}),t._v(" "),a("el-option",{attrs:{label:"自定义设置",value:"2"}})],1)],1),t._v(" "),a("el-form-item",{attrs:{label:"商品推荐:",prop:"hot_type"}},[a("el-select",{staticClass:"filter-item selWidth",attrs:{placeholder:"请选择",clearable:"",filterable:""},on:{change:function(e){return t.getList(1)}},model:{value:t.tableFrom.hot_type,callback:function(e){t.$set(t.tableFrom,"hot_type",e)},expression:"tableFrom.hot_type"}},t._l(t.recommendList,(function(t){return a("el-option",{key:t.value,attrs:{label:t.name,value:t.value}})})),1)],1),t._v(" "),a("el-form-item",{attrs:{label:"商品类型:",prop:"is_ficti"}},[a("el-select",{staticClass:"filter-item selWidth",attrs:{placeholder:"请选择",clearable:""},on:{change:function(e){return t.getList(1)}},model:{value:t.tableFrom.is_ficti,callback:function(e){t.$set(t.tableFrom,"is_ficti",e)},expression:"tableFrom.is_ficti"}},t._l(t.productTypeList,(function(t){return a("el-option",{key:t.value,attrs:{label:t.label,value:t.value}})})),1)],1),t._v(" "),a("el-form-item",{attrs:{label:"商品搜索:",prop:"keyword"}},[a("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.keyword,callback:function(e){t.$set(t.tableFrom,"keyword",e)},expression:"tableFrom.keyword"}})],1),t._v(" "),a("el-form-item",[a("el-button",{attrs:{type:"primary",size:"small"},on:{click:function(e){return t.getList(1)}}},[t._v("搜索")]),t._v(" "),a("el-button",{attrs:{size:"small"},on:{click:function(e){return t.searchReset()}}},[t._v("重置")])],1)],1)],1),t._v(" "),a("el-card",{staticClass:"mt14"},[a("el-tabs",{on:{"tab-click":function(e){t.getList(1),t.getLstFilterApi()}},model:{value:t.tableFrom.type,callback:function(e){t.$set(t.tableFrom,"type",e)},expression:"tableFrom.type"}},t._l(t.headeNum,(function(t,e){return a("el-tab-pane",{key:e,attrs:{name:t.type.toString(),label:t.name+"("+t.count+")"}})})),1),t._v(" "),a("div",{staticClass:"mt5 mb20"},[a("el-button",{directives:[{name:"show",rawName:"v-show",value:"6"===t.tableFrom.type,expression:"tableFrom.type === '6'"}],attrs:{size:"small",disabled:0==t.multipleSelection.length},on:{click:t.batch}},[t._v("批量审核")]),t._v(" "),a("el-button",{attrs:{size:"small",disabled:0==t.multipleSelection.length},on:{click:t.batchOff}},[t._v("批量强制下架")]),t._v(" "),a("el-button",{attrs:{size:"small",disabled:0==t.multipleSelection.length},on:{click:function(e){return t.batchShow(0)}}},[t._v("批量不显示")]),t._v(" "),a("el-button",{attrs:{size:"small",disabled:0==t.multipleSelection.length},on:{click:function(e){return t.batchShow(1)}}},[t._v("批量显示")]),t._v(" "),a("el-button",{attrs:{disabled:0==t.multipleSelection.length,size:"small"},on:{click:t.batchLabel}},[t._v("批量设置标签")]),t._v(" "),a("el-button",{attrs:{disabled:0==t.multipleSelection.length,size:"small"},on:{click:t.batchRecommend}},[t._v("批量设置推荐")])],1),t._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.listLoading,expression:"listLoading"}],attrs:{data:t.tableData.data,size:"small"},on:{"selection-change":t.handleSelectionChange}},[Number(t.tableFrom.type)<7?a("el-table-column",{key:"2",attrs:{type:"selection",width:"55"}}):t._e(),t._v(" "),a("el-table-column",{attrs:{type:"expand"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("el-form",{staticClass:"demo-table-expand",attrs:{"label-position":"left",inline:""}},[a("el-form-item",{attrs:{label:"平台分类:"}},[a("span",[t._v(t._s(e.row.storeCategory?e.row.storeCategory.cate_name:"-"))])]),t._v(" "),a("el-form-item",{attrs:{label:"商品分类:"}},[e.row.merCateId.length?t._l(e.row.merCateId,(function(e,i){return a("span",{key:i,staticClass:"mr10"},[t._v(t._s(e.category?e.category.cate_name:"-"))])})):a("span",[t._v("-")])],2),t._v(" "),a("el-form-item",{attrs:{label:"品牌:"}},[a("span",[t._v(t._s(e.row.brand?e.row.brand.brand_name:"其它"))])]),t._v(" "),a("el-form-item",{attrs:{label:"市场价格:"}},[a("span",[t._v(t._s(t._f("filterEmpty")(e.row.ot_price)))])]),t._v(" "),a("el-form-item",{attrs:{label:"成本价:"}},[a("span",[t._v(t._s(t._f("filterEmpty")(e.row.cost)))])]),t._v(" "),a("el-form-item",{attrs:{label:"收藏:"}},[a("span",[t._v(t._s(t._f("filterEmpty")(e.row.care_count)))])]),t._v(" "),a("el-form-item",{attrs:{label:"已售数量:"}},[a("span",[t._v(t._s(t._f("filterEmpty")(e.row.ficti)))])])],1)]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"product_id",label:"ID","min-width":"80"}}),t._v(" "),a("el-table-column",{attrs:{label:"商品图","min-width":"70"},scopedSlots:t._u([{key:"default",fn:function(t){return[a("div",{staticClass:"demo-image__preview"},[a("el-image",{staticStyle:{width:"36px",height:"36px"},attrs:{src:t.row.image,"preview-src-list":[t.row.image]}})],1)]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"store_name",label:"商品名称","min-width":"200"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("div",[a("span",{staticClass:"tags_name",class:"name"+e.row.spec_type},[t._v(t._s(0==e.row.spec_type?"[单规格]":"[多规格]"))]),t._v(t._s(e.row.store_name||"-"))])]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"商户名称","min-width":"150"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.merchant?e.row.merchant.mer_name:""))])]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"price",label:"商品售价","min-width":"80"}}),t._v(" "),a("el-table-column",{attrs:{prop:"sales",label:"销量","min-width":"70"}}),t._v(" "),a("el-table-column",{attrs:{prop:"stock",label:"库存","min-width":"70"}}),t._v(" "),a("el-table-column",{attrs:{label:"推荐级别","min-width":"150"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("el-rate",{attrs:{disabled:"",colors:t.colors},model:{value:e.row.star,callback:function(a){t.$set(e.row,"star",a)},expression:"scope.row.star"}})]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"rank",label:"排序","min-width":"60"}}),t._v(" "),a("el-table-column",{attrs:{prop:"status",label:"是否显示","min-width":"80"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("el-switch",{attrs:{"active-value":1,"inactive-value":0,"active-text":"显示","inactive-text":"隐藏"},on:{change:function(a){return t.onchangeIsShow(e.row)}},model:{value:e.row.is_used,callback:function(a){t.$set(e.row,"is_used",a)},expression:"scope.row.is_used"}})]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"stock",label:"商品状态","min-width":"90"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(t._f("productStatusFilter")(e.row.us_status)))])]}}])}),t._v(" "),Number(t.tableFrom.type)<7?a("el-table-column",{key:"8",attrs:{label:"操作","min-width":"180",fixed:"right"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("el-button",{attrs:{type:"text",size:"small"},on:{click:function(a){return t.onDetails(e.row.product_id)}}},[t._v("详情")]),t._v(" "),"6"===t.tableFrom.type?a("el-button",{attrs:{type:"text",size:"small"},nativeOn:{click:function(a){return t.toExamine(e.row.product_id)}}},[t._v("审核")]):t._e(),t._v(" "),a("el-button",{staticClass:"mr10",attrs:{type:"text",size:"small"},on:{click:function(a){return t.handlePreview(e.row.product_id)}}},[t._v("预览")]),t._v(" "),a("el-dropdown",[a("span",{staticClass:"el-dropdown-link"},[t._v("\n 更多"),a("i",{staticClass:"el-icon-arrow-down el-icon--right"})]),t._v(" "),a("el-dropdown-menu",{attrs:{slot:"dropdown"},slot:"dropdown"},[Number(t.tableFrom.type)<7?a("el-dropdown-item",{nativeOn:{click:function(a){return t.onEdit(e.row.product_id)}}},[t._v("编辑商品")]):t._e(),t._v(" "),5!=t.tableFrom.type?a("el-dropdown-item",[a("router-link",{staticStyle:{"font-size":"14px"},attrs:{to:{path:t.roterPre+"/product/comment/?product_id="+e.row.product_id}}},[t._v("\n 查看评价\n ")])],1):t._e(),t._v(" "),"5"!==t.tableFrom.type?a("el-dropdown-item",{nativeOn:{click:function(a){return t.onEditLabel(e.row)}}},[t._v("编辑标签")]):t._e(),t._v(" "),"6"===t.tableFrom.type||"1"===t.tableFrom.type?a("el-dropdown-item",{nativeOn:{click:function(a){return t.toVirtualSales(e.row.product_id)}}},[t._v("已售数量")]):t._e(),t._v(" "),Number(t.tableFrom.type)<3?a("el-dropdown-item",{nativeOn:{click:function(a){return t.toOff(e.row.product_id)}}},[t._v("强制下架")]):t._e()],1)],1)]}}],null,!1,3350770274)}):t._e()],1),t._v(" "),a("div",{staticClass:"block"},[a("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),t._v(" "),a("info-from",{ref:"infoFrom",attrs:{"is-show":t.isShow,ids:t.OffId},on:{subSuccess:t.subSuccess}}),t._v(" "),a("el-dialog",{attrs:{title:"商品编辑",visible:t.dialogVisible,width:"960px","before-close":t.handleClose,"append-to-body":t.append},on:{"update:visible":function(e){t.dialogVisible=e}}},[a("el-form",{directives:[{name:"loading",rawName:"v-loading",value:t.fullscreenLoading,expression:"fullscreenLoading"}],ref:"formValidate",staticClass:"formValidate mt20",attrs:{rules:t.ruleValidate,model:t.formValidate,size:"small","label-width":"100px"},nativeOn:{submit:function(t){t.preventDefault()}}},[a("el-form-item",{attrs:{label:"商品名称:",prop:"store_name"}},[a("el-input",{attrs:{size:"small",placeholder:"请输入商品名称"},model:{value:t.formValidate.store_name,callback:function(e){t.$set(t.formValidate,"store_name",e)},expression:"formValidate.store_name"}})],1),t._v(" "),a("el-form-item",{attrs:{label:"星级推荐:"}},[a("el-rate",{staticClass:"rate_star",staticStyle:{"margin-top":"4px"},attrs:{colors:t.colors},model:{value:t.formValidate.star,callback:function(e){t.$set(t.formValidate,"star",e)},expression:"formValidate.star"}}),t._v(" "),a("span",{staticStyle:{"margin-top":"4px","font-size":"12px"}},[t._v("备注:5星为最高推荐级别,1星为最低推荐级别,设置后会在商城商品列表、搜索商品列表中体现。")])],1),t._v(" "),a("el-form-item",{attrs:{label:"商品推荐:"}},[a("el-checkbox-group",{attrs:{size:"small"},on:{change:t.onChangeGroup},model:{value:t.checkboxGroup,callback:function(e){t.checkboxGroup=e},expression:"checkboxGroup"}},t._l(t.recommend,(function(e,i){return a("el-checkbox",{key:i,attrs:{label:e.value}},[t._v(t._s(e.name))])})),1)],1),t._v(" "),a("el-form-item",{attrs:{label:"排序:"}},[a("el-input-number",{staticStyle:{width:"200px"},attrs:{size:"small",placeholder:"请输入排序序号"},model:{value:t.formValidate.rank,callback:function(e){t.$set(t.formValidate,"rank",e)},expression:"formValidate.rank"}})],1),t._v(" "),a("el-col",{attrs:{span:24}},[a("el-form-item",{attrs:{label:"商品详情:"}},[a("ueditor-from",{attrs:{content:t.formValidate.content},model:{value:t.formValidate.content,callback:function(e){t.$set(t.formValidate,"content",e)},expression:"formValidate.content"}})],1)],1),t._v(" "),a("el-form-item",{staticStyle:{"margin-top":"30px"}},[a("el-button",{staticClass:"submission",attrs:{type:"primary",size:"small"},on:{click:function(e){return t.handleSubmit("formValidate")}}},[t._v("提交")])],1)],1)],1),t._v(" "),t.previewVisible?a("div",[a("div",{staticClass:"bg",on:{click:function(e){e.stopPropagation(),t.previewVisible=!1}}}),t._v(" "),t.previewVisible?a("preview-box",{ref:"previewBox",attrs:{"goods-id":t.goodsId,"product-type":0,"preview-key":t.previewKey}}):t._e()],1):t._e(),t._v(" "),t.dialogLabel?a("el-dialog",{attrs:{title:"选择标签",visible:t.dialogLabel,width:"470px","before-close":t.handleClose},on:{"update:visible":function(e){t.dialogLabel=e}}},[a("el-form",{ref:"labelForm",attrs:{model:t.labelForm,size:"small"},nativeOn:{submit:function(t){t.preventDefault()}}},[a("el-form-item",[a("el-select",{staticClass:"width100",attrs:{clearable:"",filterable:"",multiple:"",size:"small",placeholder:"请选择"},model:{value:t.labelForm.sys_labels,callback:function(e){t.$set(t.labelForm,"sys_labels",e)},expression:"labelForm.sys_labels"}},t._l(t.labelList,(function(t){return a("el-option",{key:t.id,attrs:{label:t.name,value:t.id.toString()}})})),1)],1)],1),t._v(" "),a("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{attrs:{size:"small"},on:{click:function(e){t.dialogLabel=!1}}},[t._v("取消")]),t._v(" "),a("el-button",{attrs:{type:"primary",size:"small"},on:{click:function(e){return t.submitForm("labelForm")}}},[t._v("提交")])],1)],1):t._e(),t._v(" "),t.dialogRecommend?a("el-dialog",{attrs:{title:"推荐设置",visible:t.dialogRecommend,width:"800px","before-close":t.handleClose},on:{"update:visible":function(e){t.dialogRecommend=e}}},[a("el-form",{attrs:{size:"small"},nativeOn:{submit:function(t){t.preventDefault()}}},[a("el-form-item",{attrs:{label:"商品推荐:"}},[a("el-checkbox-group",{attrs:{size:"small"},on:{change:t.onChangeRecommend},model:{value:t.recommendGroup,callback:function(e){t.recommendGroup=e},expression:"recommendGroup"}},t._l(t.recommend,(function(e,i){return a("el-checkbox",{key:i,attrs:{label:e.value}},[t._v(t._s(e.name))])})),1)],1)],1),t._v(" "),a("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{attrs:{type:"primary"},on:{click:t.submitRecommendForm}},[t._v("提交")])],1)],1):t._e(),t._v(" "),a("pro-detail",{ref:"proDetail",attrs:{productId:t.product_id,drawer:t.drawer},on:{closeDrawer:t.closeDrawer,changeDrawer:t.changeDrawer}})],1)},s=[],n=(a("c5f6"),a("6762"),a("2fdb"),a("c80c")),r=(a("96cf"),a("3b8d")),o=(a("7f7f"),a("c4c8")),l=a("83d6"),c=a("6461"),u=a("ef0d"),d=a("8c98"),m=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[a("el-drawer",{attrs:{"with-header":!1,visible:t.drawer,size:"1100px",direction:t.direction,"before-close":t.handleClose},on:{"update:visible":function(e){t.drawer=e}}},[a("div",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}]},[a("div",{staticClass:"head"},[a("div",{staticClass:"full"},[a("img",{staticClass:"order_icon",attrs:{src:t.orderImg,alt:""}}),t._v(" "),a("div",{staticClass:"text"},[a("div",{staticClass:"title"},[t._v(t._s(t.productData.store_name))]),t._v(" "),a("div",[a("span",{staticClass:"mr20"},[t._v("商品ID:"+t._s(t.productData.product_id))])])])]),t._v(" "),a("ul",{staticClass:"list"},[a("li",{staticClass:"item"},[a("div",{staticClass:"title"},[t._v("商品类型")]),t._v(" "),a("div",[t._v(t._s(0==t.productData.type?"普通商品":1==t.productData.type?"虚拟商品":"卡密商品"))])]),t._v(" "),a("li",{staticClass:"item"},[a("div",{staticClass:"title"},[t._v("商品状态")]),t._v(" "),a("div",[t._v(t._s(1==t.productData.status?"上架显示":"下架"))])]),t._v(" "),a("li",{staticClass:"item"},[a("div",{staticClass:"title"},[t._v("销量")]),t._v(" "),a("div",[t._v(t._s(t.productData.sales))])]),t._v(" "),a("li",{staticClass:"item"},[a("div",{staticClass:"title"},[t._v("库存")]),t._v(" "),a("div",[t._v(t._s(t.productData.stock))])]),t._v(" "),a("li",{staticClass:"item"},[a("div",{staticClass:"title"},[t._v("创建时间")]),t._v(" "),a("div",[t._v(t._s(t.productData.create_time))])])])]),t._v(" "),a("el-tabs",{attrs:{type:"border-card"},on:{"tab-click":t.tabClick},model:{value:t.activeName,callback:function(e){t.activeName=e},expression:"activeName"}},[a("el-tab-pane",{attrs:{label:"基本信息",name:"basic"}},[a("div",{staticClass:"section"},[a("ul",{staticClass:"list"},[a("li",{staticClass:"item item100"},[a("div",{staticClass:"item-title"},[t._v("封面图:")]),t._v(" "),a("img",{staticStyle:{width:"40px",height:"40px","margin-right":"12px"},attrs:{src:t.productData.image}})]),t._v(" "),a("li",{staticClass:"item item100"},[a("div",{staticClass:"item-title"},[t._v("轮播图:")]),t._v(" "),t._l(t.productData.slider_image,(function(t,e){return a("img",{key:e,staticStyle:{width:"40px",height:"40px","margin-right":"12px"},attrs:{src:t}})}))],2)]),t._v(" "),a("li",{staticClass:"item item100"},[a("div",{staticClass:"item-title"},[t._v("商品简介:")]),t._v(" "),a("div",{staticClass:"value"},[t._v(t._s(t.productData.store_info))])]),t._v(" "),a("ul",{staticClass:"list"},[a("li",{staticClass:"item"},[a("div",{staticClass:"item-title"},[t._v("平台分类:")]),t._v(" "),a("div",{staticClass:"value"},[t._v(t._s(t.productData.storeCategory&&t.productData.storeCategory.cate_name||"-"))])]),t._v(" "),t.productData.merCateId&&t.productData.merCateId.length>0?a("li",{staticClass:"item"},[a("div",{staticClass:"item-title"},[t._v("商户分类:")]),t._v(" "),a("div",{staticClass:"value"},t._l(t.productData.merCateId,(function(e,i){return a("span",{key:i},[t._v(t._s(e.category&&e.category.cate_name)+" ")])})),0)]):t._e(),t._v(" "),a("li",{staticClass:"item"},[a("div",{staticClass:"item-title"},[t._v("商品标签:")]),t._v(" "),t.productData.mer_labels&&t.productData.mer_labels_data.length||t.productData.sys_labels_data&&t.productData.sys_labels_data.length?a("div",{staticClass:"value"},[t.productData.mer_labels_data&&t.productData.mer_labels_data.length?t._l(t.productData.mer_labels_data,(function(e,i){return a("span",{key:i,staticClass:"value-item"},[t._v(" "+t._s(e)+" ")])})):t._e(),t._v(" "),t.productData.sys_labels_data&&t.productData.sys_labels_data.length?t._l(t.productData.sys_labels_data,(function(e,i){return a("span",{key:i,staticClass:"value-item"},[t._v(" "+t._s(e)+" ")])})):t._e()],2):a("div",{staticClass:"value"},[a("span",[t._v("-")])])]),t._v(" "),a("li",{staticClass:"item"},[a("div",{staticClass:"item-title"},[t._v("品牌选择:")]),t._v(" "),a("div",{staticClass:"value"},[t._v(t._s(t.productData.brand&&t.productData.brand.brand_name||"其它"))])]),t._v(" "),a("li",{staticClass:"item"},[a("div",{staticClass:"item-title"},[t._v("单位:")]),t._v(" "),a("div",{staticClass:"value"},[t._v(t._s(t.productData.unit_name))])]),t._v(" "),a("li",{staticClass:"item"},[a("div",{staticClass:"item-title"},[t._v("关键字:")]),t._v(" "),a("div",{staticClass:"value"},[t._v(t._s(t.productData.keyword||"-"))])]),t._v(" "),a("li",{staticClass:"item"},[a("div",{staticClass:"item-title"},[t._v("配送方式:")]),t._v(" "),0==t.productData.type?[2==t.productData.delivery_way.length?a("div",{staticClass:"value"},[t._v("快递/到店自提")]):1==t.productData.delivery_way.length?a("div",[t._v(t._s(1==t.productData.delivery_way[0]?"到店自提":"快递"))]):t._e()]:[1==t.productData.type?a("div",{staticClass:"value"},[t._v("虚拟发货")]):2==t.productData.type?a("div",{staticClass:"value"},[t._v("卡密发货")]):t._e()]],2)]),t._v(" "),t.productData.video_link?a("ul",{staticClass:"list"},[a("li",{staticClass:"item item100"},[a("div",{staticClass:"item-title"},[t._v("主图视频:")]),t._v(" "),a("video",{staticStyle:{width:"300px",height:"150px","border-radius":"10px"},attrs:{src:t.productData.video_link,controls:"controls"}},[t._v("\n 您的浏览器不支持 video 标签。\n ")])])]):t._e()])]),t._v(" "),a("el-tab-pane",{attrs:{label:"规格与价格",name:"goods"}},[a("div",{staticClass:"section"},[a("ul",{staticClass:"list"},[a("li",{staticClass:"item"},[a("div",{staticClass:"item-title"},[t._v("佣金设置:")]),t._v(" "),a("div",{staticClass:"value"},[t._v(t._s(1==t.productData.extension_type?"单独设置":"默认设置"))])]),t._v(" "),t.mer_svip_status?a("li",{staticClass:"item"},[a("div",[t._v("付费会员价设置:")]),t._v(" "),a("div",{staticClass:"value"},[t._v(t._s(0==t.productData.svip_price_type?"不设置会员价":1==t.productData.svip_price_type?"默认设置会员价":"自定义设置会员价"))])]):t._e(),t._v(" "),a("li",{staticClass:"item"},[a("div",{staticClass:"item-title"},[t._v("规格:")]),t._v(" "),a("div",{staticClass:"value"},[t._v(t._s(1==t.productData.spec_type?"多规格":"单规格"))])])])]),t._v(" "),a("div",{staticClass:"section",staticStyle:{"margin-top":"50px"}},[a("div",{staticClass:"title"},[t._v("规格列表:")]),t._v(" "),a("div",{staticClass:"list"},[0===t.productData.spec_type?[a("el-table",{staticClass:"tabNumWidth",attrs:{data:t.OneattrValue,border:"",size:"mini"}},[a("el-table-column",{attrs:{align:"center",label:"图片","min-width":"80"},scopedSlots:t._u([{key:"default",fn:function(t){return[a("div",{staticClass:"demo-image__preview"},[a("el-image",{staticStyle:{width:"60px",height:"60px"},attrs:{src:t.row.image}})],1)]}}],null,!1,323865937)}),t._v(" "),t._l(t.attrValue,(function(e,i){return a("el-table-column",{key:i,attrs:{label:t.formThead[i].title,align:"center","min-width":"120"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",{staticClass:"priceBox",domProps:{textContent:t._s(e.row[i])}})]}}],null,!0)})})),t._v(" "),1===t.productData.extension_type?[a("el-table-column",{attrs:{align:"center",label:"一级返佣(元)","min-width":"100"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",{staticClass:"priceBox",domProps:{textContent:t._s(e.row.extension_one)}})]}}],null,!1,102250766)}),t._v(" "),a("el-table-column",{attrs:{align:"center",label:"二级返佣(元)","min-width":"100"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",{staticClass:"priceBox",domProps:{textContent:t._s(e.row.extension_two)}})]}}],null,!1,4284057702)})]:t._e()],2)]:t._e(),t._v(" "),1===t.productData.spec_type?[a("el-table",{staticClass:"tabNumWidth",attrs:{data:t.ManyAttrValue,border:"",size:"mini"}},[t.manyTabDate?t._l(t.manyTabDate,(function(e,i){return a("el-table-column",{key:i,attrs:{align:"center",label:t.manyTabTit[i].title,"min-width":"100"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",{staticClass:"priceBox",domProps:{textContent:t._s(e.row[i])}})]}}],null,!0)})})):t._e(),t._v(" "),a("el-table-column",{attrs:{align:"center",label:"图片","min-width":"80"},scopedSlots:t._u([{key:"default",fn:function(t){return[a("div",{staticClass:"upLoadPicBox"},[a("div",{staticClass:"pictrue tabPic"},[a("img",{attrs:{src:t.row.image}})])])]}}],null,!1,651288578)}),t._v(" "),t._l(t.attrValue,(function(e,i){return a("el-table-column",{key:i,attrs:{label:t.formThead[i].title,align:"center","min-width":"100"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",{staticClass:"priceBox"},[t._v(t._s(e.row[i]))])]}}],null,!0)})})),t._v(" "),1===t.productData.extension_type?[a("el-table-column",{attrs:{align:"center",label:"一级返佣(元)","min-width":"80"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",{staticClass:"priceBox"},[t._v(t._s(e.row.extension_one))])]}}],null,!1,1519547738)}),t._v(" "),a("el-table-column",{attrs:{align:"center",label:"二级返佣(元)","min-width":"80"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",{staticClass:"priceBox"},[t._v(t._s(e.row.extension_two))])]}}],null,!1,603129202)})]:t._e()],2)]:t._e()],2)])]),t._v(" "),a("el-tab-pane",{attrs:{label:"商品详情",name:"detail"}},[a("div",{staticClass:"section"},[a("div",{staticClass:"contentPic",domProps:{innerHTML:t._s(t.productData.content)}})])]),t._v(" "),a("el-tab-pane",{attrs:{label:"营销信息",name:"marketing"}},[a("div",{staticClass:"section"},[a("ul",{staticClass:"list"},[a("li",{staticClass:"item"},[a("div",{staticClass:"item-title"},[t._v("店铺推荐:")]),t._v(" "),a("div",{staticClass:"value"},[t._v(t._s(t.productData.is_good?"是":"否"))])]),t._v(" "),a("li",{staticClass:"item"},[a("div",{staticClass:"item-title"},[t._v("平台推荐:")]),t._v(" "),t.productData.is_benefit||t.productData.is_new||t.productData.is_best||t.productData.is_hot?a("div",{staticClass:"value"},[t.productData.is_benefit?a("span",{staticClass:"value-item"},[t._v("促销单品")]):t._e(),t._v(" "),t.productData.is_new?a("span",{staticClass:"value-item"},[t._v("首发新品")]):t._e(),t._v(" "),t.productData.is_best?a("span",{staticClass:"value-item"},[t._v("精品推荐")]):t._e(),t._v(" "),t.productData.is_hot?a("span",{staticClass:"value-item"},[t._v("热门榜单")]):t._e()]):a("div",{staticClass:"value-item"},[t._v("无")])]),t._v(" "),a("li",{staticClass:"item"},[a("div",{staticClass:"item-title"},[t._v("分销礼包:")]),t._v(" "),a("div",{staticClass:"value"},[t._v(t._s(t.productData.is_gift_bag?"是":"否"))])]),t._v(" "),t.productData.star?a("li",{staticClass:"item"},[a("div",{staticClass:"item-title"},[t._v("平台推荐星级:")]),t._v(" "),a("div",{staticClass:"value"},[a("el-rate",{attrs:{disabled:"",colors:t.colors},model:{value:t.productData.star,callback:function(e){t.$set(t.productData,"star",e)},expression:"productData.star"}})],1)]):t._e(),t._v(" "),t.productData.merchant&&0!=t.productData.integral_rate?a("li",{staticClass:"item"},[a("div",{staticClass:"item-title"},[t._v("积分抵扣比例:")]),t._v(" "),-1==t.productData.integral_rate&&t.productData.merchant?a("div",{staticClass:"value"},[t._v("默认设置"+t._s("("+t.productData.merchant.mer_integral_rate+"%)"))]):t.productData.integral_rate>0?a("div",{staticClass:"value"},[t._v("单独设置"+t._s("("+t.productData.integral_rate+"%)"))]):t._e()]):t._e(),t._v(" "),0!=t.productData.integral_rate?a("li",{staticClass:"item"},[a("div",{staticClass:"item-title"},[t._v("积分抵扣金额:")]),t._v(" "),a("div",{staticClass:"value"},[t._v(t._s(t.productData.integral_price_total)+"元")])]):t._e(),t._v(" "),t.productData.coupon&&t.productData.coupon.length>0?a("li",{staticClass:"item"},[a("div",{staticClass:"item-title"},[t._v("优惠券(赠送券):")]),t._v(" "),a("div",{staticClass:"value"},t._l(t.productData.coupon,(function(e,i){return a("span",{key:i,staticClass:"value-item"},[t._v(" "+t._s(e.title)+" ")])})),0)]):t._e(),t._v(" "),a("li",{staticClass:"item"},[a("div",{staticClass:"item-title"},[t._v("收藏人数:")]),t._v(" "),a("div",{staticClass:"value"},[a("span",[t._v(" "+t._s(t.productData.care_count)+"人")])])]),t._v(" "),a("li",{staticClass:"item"},[a("div",{staticClass:"item-title"},[t._v("已售数量:")]),t._v(" "),a("div",{staticClass:"value"},[a("span",[t._v(" "+t._s(t.productData.ficti)+" (指手动添加数量)")])])]),t._v(" "),a("li",{staticClass:"item"},[a("div",{staticClass:"item-title"},[t._v("实际销量 :")]),t._v(" "),a("div",{staticClass:"value"},[a("span",[t._v(" "+t._s(t.productData.sales-t.productData.ficti)+" (指实际售出数量)")])])])])])]),t._v(" "),a("el-tab-pane",{attrs:{label:"其它信息",name:"others"}},[a("div",{staticClass:"section"},[a("ul",{staticClass:"list"},[a("li",{staticClass:"item"},[a("div",{staticClass:"item-title"},[t._v("支持退款:")]),t._v(" "),a("div",{staticClass:"value"},[t._v(t._s(t.productData.refund_switch?"是":"否"))])]),t._v(" "),a("li",{staticClass:"item"},[a("div",{staticClass:"item-title"},[t._v("最少购买件数:")]),t._v(" "),a("div",{staticClass:"value"},[t._v(t._s(0==t.productData.once_min_count?"不限购":t.productData.once_min_count))])]),t._v(" "),0!=t.productData.pay_limit?a("li",{staticClass:"item"},[a("div",{staticClass:"item-title"},[t._v("限购类型:")]),t._v(" "),a("div",{staticClass:"value"},[t._v(t._s(1==t.productData.pay_limit?"单次限购":"长期限购")+t._s(t.productData.once_min_count+"("+t.productData.unit_name+")"))])]):t._e(),t._v(" "),t.productData.guarantee?a("li",{staticClass:"item item100"},[a("div",{staticClass:"item-title"},[t._v("保障服务:")]),t._v(" "),a("div",{staticClass:"value",staticStyle:{width:"250px"}},[a("span",[t._v(t._s(t.productData.guarantee.template_name))]),t._v(" "),t.productData.guarantee.templateValue&&t.productData.guarantee.templateValue.length>0?a("div",{staticStyle:{display:"inline"}},[t._v("\n 【"),t._l(t.productData.guarantee.templateValue,(function(e,i){return a("span",{key:i,staticClass:"value-temp"},[t._v(t._s(e.value&&e.value.guarantee_name))])})),t._v("】\n ")],2):t._e()])]):t._e(),t._v(" "),t.productData.refusal?a("li",{staticClass:"item"},[a("div",{staticClass:"item-title"},[t._v("审核拒绝原因:")]),t._v(" "),a("div",{staticClass:"value"},[t._v(t._s(t.productData.refusal))])]):t._e()])]),t._v(" "),a("div",{staticClass:"section"},[a("ul",{staticStyle:{padding:"0","margin-top":"50px"}},[a("li",{staticClass:"item item100"},[a("div",{staticClass:"item-title"},[t._v("商户商品参数:")]),t._v(" "),a("div",{staticClass:"value",staticStyle:{width:"721px"}},[a("el-table",{ref:"tableParameter",staticClass:"ones",attrs:{border:"",data:t.merParams,"row-key":"parameter_value_id",size:"small"}},[a("el-table-column",{attrs:{align:"center",label:"参数名称",width:"360"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.name))])]}}])}),t._v(" "),a("el-table-column",{attrs:{align:"center",label:"参数值",width:"360"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.value))])]}}])})],1)],1)]),t._v(" "),a("li",{staticClass:"item item100"},[a("div",{staticClass:"item-title"},[t._v("平台商品参数:")]),t._v(" "),a("div",{staticClass:"value",staticStyle:{width:"721px"}},[a("el-table",{ref:"tableParameter",staticClass:"ones",attrs:{border:"",data:t.sysParams,"row-key":"parameter_value_id",size:"small"}},[a("el-table-column",{attrs:{align:"center",label:"参数名称",width:"360"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.name))])]}}])}),t._v(" "),a("el-table-column",{attrs:{align:"center",label:"参数值",width:"360"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.value))])]}}])})],1)],1)]),t._v(" "),a("li",{staticClass:"item item100"},[a("div",{staticClass:"item-title"},[t._v("关联系统表单:")]),t._v(" "),t.productData.mer_form_id?t.productData.mer_form_id&&0==t.formData.length?a("div",{staticClass:"value"},[t._v("表单已被删除")]):t.formData.length>0&&t.productData.mer_form_id&&"others"==t.activeName?a("div",{staticClass:"value",staticStyle:{width:"350px"}},[a("iframe",{ref:"iframe",staticClass:"iframe-box",staticStyle:{"min-height":"300px"},attrs:{src:t.formUrl,frameborder:"0"}})]):t._e():a("div",{staticClass:"value"},[t._v("关闭")])])])])]),t._v(" "),t.productData.merchant?a("el-tab-pane",{attrs:{label:"店铺信息",name:"merchant"}},[a("div",{staticClass:"section"},[a("ul",{staticClass:"list"},[a("li",{staticClass:"item"},[a("div",{staticClass:"item-title"},[t._v("商户名称:")]),t._v(" "),a("div",{staticClass:"value"},[t._v(t._s(t.productData.merchant.mer_name))])]),t._v(" "),a("li",{staticClass:"item"},[a("div",{staticClass:"item-title"},[t._v("商户类别:")]),t._v(" "),a("div",{staticClass:"value"},[t._v(t._s(1==t.productData.merchant.is_trader?"自营":"非自营"))])]),t._v(" "),a("li",{staticClass:"item"},[a("div",{staticClass:"item-title"},[t._v("店铺类型:")]),t._v(" "),a("div",{staticClass:"value"},[t._v(t._s(t.productData.merchant.type_name))])])])])]):t._e(),t._v(" "),a("el-tab-pane",{attrs:{label:"商品操作记录",name:"records"}},[a("div",{staticClass:"section"},[a("el-form",{attrs:{size:"small","label-width":"90px"}},[a("div",{staticClass:"acea-row"},[a("el-form-item",{attrs:{label:"操作端:"}},[a("el-select",{staticClass:"selWidth mr10",attrs:{placeholder:"请选择",clearable:"",filterable:""},on:{change:function(e){return t.getRecordData(t.productId)}},model:{value:t.recordForm.type,callback:function(e){t.$set(t.recordForm,"type",e)},expression:"recordForm.type"}},[a("el-option",{attrs:{label:"平台端",value:"1"}}),t._v(" "),a("el-option",{attrs:{label:"商户端",value:"2"}})],1)],1),t._v(" "),a("el-form-item",{attrs:{label:"操作时间:"}},[a("el-date-picker",{staticClass:"selWidth",attrs:{type:"datetimerange",placeholder:"选择日期","value-format":"yyyy/MM/dd HH:mm:ss",clearable:""},on:{change:t.onchangeTime},model:{value:t.timeVal,callback:function(e){t.timeVal=e},expression:"timeVal"}})],1)],1)]),t._v(" "),a("el-table",{ref:"productRecords",staticClass:"ones",attrs:{border:"",data:t.recordData.data,"row-key":"operate_log_id",size:"small"}},[a("el-table-column",{attrs:{align:"center",label:"序号","min-width":"60",prop:"operate_log_id"}}),t._v(" "),a("el-table-column",{attrs:{align:"center",label:"操作记录","min-width":"120"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.category_name))])]}}])}),t._v(" "),a("el-table-column",{attrs:{align:"center",label:"操作端","min-width":"100"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.type))])]}}])}),t._v(" "),a("el-table-column",{attrs:{align:"center",label:"操作角色","min-width":"100"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.operator_role_nickname))])]}}])}),t._v(" "),a("el-table-column",{attrs:{align:"center",label:"操作人","min-width":"100"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.operator_nickname))])]}}])}),t._v(" "),a("el-table-column",{attrs:{align:"center",label:"操作时间","min-width":"100",prop:"create_time"}})],1),t._v(" "),a("div",{staticClass:"block"},[a("el-pagination",{attrs:{"page-size":t.recordForm.limit,"current-page":t.recordForm.page,layout:"prev, pager, next, jumper",total:t.recordData.total},on:{"size-change":t.handleSizeChange,"current-change":t.pageChange}})],1)],1)])],1)],1)])],1)},p=[],f=(a("ac6a"),a("b7be")),v=a("bbcc"),_={image:"",slider_image:[],store_name:"",store_info:"",keyword:"",brand_id:"",cate_id:"",mer_cate_id:[],unit_name:"",sort:0,is_show:0,is_benefit:0,is_new:0,is_good:0,temp_id:"",params:[],attrValue:[{image:"",price:null,svip_price:null,cost:null,ot_price:null,stock:null,bar_code:"",weight:null,volume:null}],attr:[],selectRule:"",extension_type:0,content:"",spec_type:0},b={price:{title:"售价"},svip_price:{title:"付费会员价"},cost:{title:"成本价"},ot_price:{title:"市场价"},stock:{title:"库存"},bar_code:{title:"商品编号"},weight:{title:"重量(KG)"},volume:{title:"体积(m³)"}},g={components:{},props:{drawer:{type:Boolean,default:!1}},data:function(){return{loading:!0,productId:"",direction:"rtl",activeName:"basic",productData:{},formThead:Object.assign({},b),manyTabDate:{},manyTabTit:{},OneattrValue:[Object.assign({},_.attrValue[0])],ManyAttrValue:[Object.assign({},_.attrValue[0])],svip_type:0,mer_svip_status:0,orderImg:a("a71a"),merParams:[],sysParams:[],formUrl:"",baseURL:v["a"].httpUrl||"http://localhost:8080",formData:[],timeVal:[],recordData:{data:[],total:0},recordForm:{type:"",date:"",page:1,limit:10},colors:["#99A9BF","#F7BA2A","#FF9900"]}},computed:{attrValue:function(){var t=Object.assign({},_.attrValue[0]);return 0!=this.svip_type&&0!=this.mer_svip_status||delete t.svip_price,delete t.image,t}},filters:{},methods:{handleClose:function(){this.activeName="basic",this.$emit("closeDrawer")},getInfo:function(t){var e=this;this.loading=!0,this.productId=t,Object(o["eb"])(t).then((function(a){e.loading=!1,e.productData=a.data,e.mer_svip_status=a.data.mer_svip_status,e.svip_type=a.data.svip_price_type,0===e.productData.spec_type?e.OneattrValue=a.data.attrValue:e.ManyAttrValue=a.data.attrValue;var i={},s={};if(e.productData.attr.forEach((function(t,e){i["value"+e]={title:t.value},s["value"+e]=""})),e.manyTabDate=s,e.manyTabTit=i,e.checkboxGroup=[],e.formThead=Object.assign({},e.formThead,i),e.sysParams=[],e.merParams=[],a.data.params&&a.data.params.length>0)for(var n=0;n<a.data.params.length;n++)0==a.data.params[n]["mer_id"]?e.sysParams.push(a.data.params[n]):e.merParams.push(a.data.params[n]);a.data.mer_form_id&&e.getFormInfo(a.data.mer_form_id,a.data.mer_id),e.getRecordData(t),e.loading=!1})).catch((function(t){e.$message.error(t.message),e.loading=!1}))},getFormInfo:function(t,e){var a=this;Object(f["j"])(t,{mer_id:e}).then((function(e){a.formData=e.data;var i=1e3*(new Date).getTime(),s="".concat(a.baseURL,"/pages/admin/system_form/index?inner_frame=1&form_id=").concat(t,"&time=").concat(i);a.formUrl=s})).catch((function(t){a.$message.error(t.message)}))},onchangeTime:function(t){this.timeVal=t,this.recordForm.date=t?this.timeVal.join("-"):"",this.getRecordData(this.productData.product_id)},getRecordData:function(t){var e=this;Object(o["S"])(t,this.recordForm).then((function(t){e.recordData.data=t.data.list,e.recordData.total=t.data.count})).catch((function(t){e.$message.error(t.message)}))},pageChange:function(t){this.recordForm.page=t,this.getList("")},handleSizeChange:function(t){this.recordForm.limit=t,this.getList("")},tabClick:function(t){}}},h=g,C=(a("d88b"),a("2877")),y=Object(C["a"])(h,m,p,!1,null,"37067ecc",null),w=y.exports,k=[{name:"热门榜单",value:"is_hot"},{name:"促销单品",value:"is_benefit"},{name:"精品推荐",value:"is_best"},{name:"首发新品",value:"is_new"}],D={name:"ProductExamine1",components:{infoFrom:c["a"],ueditorFrom:u["a"],previewBox:d["a"],proDetail:w},data:function(){return{props:{emitPath:!1},ruleValidate:{store_name:[{required:!0,message:"请输入商品名称",trigger:"blur"}]},dialogVisible:!1,dialogRecommend:!1,append:!0,checkboxGroup:[],recommendGroup:[],colors:["#99A9BF","#F7BA2A","#FF9900"],recommendedLevelStatus:[{label:"全部",value:""},{label:"5星",value:5},{label:"4星",value:4},{label:"3星",value:3},{label:"2星",value:2},{label:"1星",value:1}],recommend:k,recommendList:[{name:"热门榜单",value:"hot"},{name:"促销单品",value:"good"},{name:"精品推荐",value:"best"},{name:"首发新品",value:"new"}],formValidate:{is_hot:0,is_best:0,is_new:0,is_benefit:0,ficti:0,is_ficti:"",content:"",store_name:"",rank:"",us_status:"",star:""},productStatusList:[{label:"上架显示",value:1},{label:"平台关闭",value:-1}],productTypeList:[{label:"普通商品",value:0},{label:"虚拟商品",value:1},{label:"卡密商品",value:2}],fullscreenLoading:!1,isShow:!1,roterPre:l["roterPre"],listLoading:!0,tableData:{data:[],total:0},tableFrom:{page:1,limit:20,cate_id:"",sys_labels:"",pid:"",store_name:"",type:"6",mer_id:"",keyword:"",is_trader:"",hot_type:"",star:"",svip_price_type:"",product_id:this.$route.query.id?this.$route.query.id:""},categoryList:[],merCateList:[],multipleSelection:[],headeNum:[],merSelect:[],OffId:[],productId:0,tabClickIndex:"",previewVisible:!1,goodsId:"",previewKey:"",product_id:"",labelList:[],dialogLabel:!1,isBatch:!1,labelForm:{},recommendForm:{},drawer:!1}},mounted:function(){this.getMerSelect(),this.getList(""),this.getCategorySelect(),this.getLstFilterApi(),this.getLabelLst()},methods:{searchReset:function(){this.$refs.searchForm.resetFields(),this.getList(1)},subSuccess:function(){this.getList(""),this.getLstFilterApi()},onchangeIsShow:function(t){var e=this;Object(o["x"])(t.product_id,t.is_used).then((function(t){var a=t.message;e.$message.success(a),e.getList(""),e.getLstFilterApi()})).catch((function(t){var a=t.message;e.$message.error(a)}))},handlePreview:function(t){this.previewVisible=!0,this.goodsId=t,this.previewKey=""},getLabelLst:function(){var t=this;Object(o["A"])().then((function(e){t.labelList=e.data})).catch((function(e){t.$message.error(e.message)}))},onEditLabel:function(t){this.dialogLabel=!0,this.product_id=t.product_id,this.labelForm={sys_labels:t.sys_labels}},onDetails:function(t){this.product_id=t,this.drawer=!0,this.$refs.proDetail.getInfo(t)},changeDrawer:function(t){this.drawer=t},closeDrawer:function(){this.drawer=!1},submitForm:function(t){var e=this;this.$refs[t].validate((function(t){t&&(e.isBatch?Object(o["j"])(e.labelForm).then((function(t){var a=t.message;e.$message.success(a),e.getList(""),e.dialogLabel=!1,e.isBatch=!1})).catch((function(t){e.$message.error(t.message)})):Object(o["Mb"])(e.product_id,e.labelForm).then((function(t){var a=t.message;e.$message.success(a),e.getList(""),e.dialogLabel=!1})).catch((function(t){e.$message.error(t.message)})))}))},batchRecommend:function(){this.dialogRecommend=!0,this.recommendGroup=[]},submitRecommendForm:function(){var t=this;this.recommendForm.ids=this.OffId,Object(o["l"])(this.recommendForm).then((function(e){var a=e.message;t.$message.success(a),t.getList(""),t.dialogRecommend=!1})).catch((function(e){t.$message.error(e.message)}))},getInfo:function(t){var e=this;this.fullscreenLoading=!0,this.checkboxGroup=[],Object(o["eb"])(t).then((function(t){var a=t.data;e.formValidate={is_hot:a.is_hot,is_best:a.is_best,is_new:a.is_new,is_benefit:a.is_benefit,ficti:a.ficti,content:a.content,store_name:a.store_name,rank:a.rank,star:a.star},1===a.is_benefit&&e.checkboxGroup.push("is_benefit"),1===a.is_hot&&e.checkboxGroup.push("is_hot"),1===a.is_best&&e.checkboxGroup.push("is_best"),1===a.is_new&&e.checkboxGroup.push("is_new"),e.fullscreenLoading=!1})).catch((function(t){e.$message.error(t.message),e.fullscreenLoading=!1}))},onEdit:function(t){this.productId=t,this.getInfo(t),this.dialogVisible=!0},toVirtualSales:function(t){var e=this;this.$modalForm(Object(o["Hb"])(t)).then((function(){return e.getList("")}))},handleSubmit:function(t){var e=this;console.log(this.formValidate),this.$refs[t].validate((function(t){if(!t)return!1;Object(o["nb"])(e.productId,e.formValidate).then(function(){var t=Object(r["a"])(Object(n["a"])().mark((function t(a){return Object(n["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:e.fullscreenLoading=!1,e.$message.success(a.message),e.dialogVisible=!1,e.getList("");case 4:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()).catch((function(t){e.fullscreenLoading=!1,e.$message.error(t.message)}))}))},onChangeGroup:function(){this.checkboxGroup.includes("is_benefit")?this.formValidate.is_benefit=1:this.formValidate.is_benefit=0,this.checkboxGroup.includes("is_best")?this.formValidate.is_best=1:this.formValidate.is_best=0,this.checkboxGroup.includes("is_new")?this.formValidate.is_new=1:this.formValidate.is_new=0,this.checkboxGroup.includes("is_hot")?this.formValidate.is_hot=1:this.formValidate.is_hot=0},onChangeRecommend:function(){this.recommendForm.is_benefit=Number(this.recommendGroup.includes("is_benefit")),this.recommendForm.is_best=Number(this.recommendGroup.includes("is_best")),this.recommendForm.is_new=Number(this.recommendGroup.includes("is_new")),this.recommendForm.is_hot=Number(this.recommendGroup.includes("is_hot"))},handleClose:function(){this.dialogVisible=!1,this.dialogLabel=!1,this.dialogRecommend=!1},batchOff:function(){if(0===this.multipleSelection.length)return this.$message.warning("请先选择商品");this.toOff(this.OffId)},batchLabel:function(){this.labelForm={sys_labels:[],ids:this.OffId},this.isBatch=!0,this.dialogLabel=!0},batchShow:function(t){var e=this;if(0===this.multipleSelection.length)return this.$message.warning("请先选择商品");var a={status:t,ids:this.OffId};Object(o["k"])(a).then((function(t){e.$message.success(t.message),e.getList("")})).catch((function(t){e.$message.error(t.message)}))},toOff:function(t){var e=this;this.$prompt("强制下架",{confirmButtonText:"确定",cancelButtonText:"取消",inputErrorMessage:"请输入强制下架原因",inputType:"textarea",inputPlaceholder:"请输入强制下架原因",inputValidator:function(t){if(!t)return"请输入强制下架原因"}}).then((function(a){var i=a.value;Object(o["hb"])({id:t,status:-2,refusal:i}).then((function(t){e.$message({type:"success",message:"提交成功"}),e.getLstFilterApi(),e.getList("")})).catch((function(t){e.$message.error(t.message)}))})).catch((function(){e.$message({type:"info",message:"取消输入"})}))},getLstFilterApi:function(){var t=this;Object(o["N"])().then((function(e){t.headeNum=e.data})).catch((function(e){t.$message.error(e.message)}))},getMerSelect:function(){var t=this;Object(o["Q"])().then((function(e){t.merSelect=e.data})).catch((function(e){t.$message.error(e.message)}))},batch:function(){if(0===this.multipleSelection.length)return this.$message.warning("请先选择商品");this.$refs.infoFrom.dialogVisible=!0,this.isShow=!1},handleSelectionChange:function(t){this.multipleSelection=t;var e=[];this.multipleSelection.map((function(t){e.push(t.product_id)})),this.OffId=e},toExamine:function(t){this.$refs.infoFrom.dialogVisible=!0,this.isShow=!0,this.$refs.infoFrom.getInfo(t)},getCategorySelect:function(){var t=this;Object(o["w"])().then((function(e){t.merCateList=e.data})).catch((function(e){t.$message.error(e.message)}))},getList:function(t){var e=this;this.listLoading=!0,this.tableFrom.page=t||this.tableFrom.page,Object(o["gb"])(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("")}}},x=D,A=(a("3a89"),Object(C["a"])(x,i,s,!1,null,"c1adfdb8",null));e["default"]=A.exports}}]); |