chunk-ded2f7ac.bda6e5bf.js 17 KB

1
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-ded2f7ac"],{6461:function(t,e,n){"use strict";var r=function(){var t=this,e=t.$createElement,n=t._self._c||e;return t.dialogVisible?n("el-dialog",{staticClass:"projectInfo",attrs:{title:"商品审核",visible:t.dialogVisible,"append-to-body":"true",width:"900px","before-close":t.handleClose},on:{"update:visible":function(e){t.dialogVisible=e}}},[t.projectData&&t.isShow?n("el-tabs",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],model:{value:t.activeNames,callback:function(e){t.activeNames=e},expression:"activeNames"}},[n("el-tab-pane",{attrs:{label:"商品信息",name:"first"}},[n("div",{staticClass:"acea-row"},[n("span",{staticClass:"sp"},[t._v("商品名称:"+t._s(t.projectData.store_name))]),t._v(" "),n("span",{staticClass:"sp"},[t._v("平台分类:"+t._s(t.projectData.storeCategory?t.projectData.storeCategory.cate_name:""))]),t._v(" "),n("span",{staticClass:"sp"},[t._v("品牌:"+t._s(t.projectData.brand?t.projectData.brand.brand_name:""))]),t._v(" "),n("span",{staticClass:"sp"},[t._v("商品关键字:"+t._s(t.projectData.keyword))]),t._v(" "),n("span",{staticClass:"sp"},[t._v("商品单位:"+t._s(t.projectData.unit_name))]),t._v(" "),n("span",{staticClass:"sp"},[t._v("运费模板:"+t._s(t.projectData.temp?t.projectData.temp.name:""))]),t._v(" "),n("span",{staticClass:"sp100"},[t._v("\n 商品分类:\n "),t.projectData.merCateId?t._l(t.projectData.merCateId,(function(e,r){return n("span",{key:r,staticClass:"mr10"},[t._v(t._s(e.category?e.category.cate_name:""))])})):n("span",[t._v("-")])],2),t._v(" "),n("span",{staticClass:"sp100"},[t._v("商品简介:"+t._s(t.projectData.store_info))]),t._v(" "),n("span",{staticClass:"sp100"},[t._v("\n 商品封面图:\n "),n("div",{staticClass:"demo-image__preview"},[n("el-image",{staticStyle:{width:"60px",height:"60px"},attrs:{src:t.projectData.image,"preview-src-list":[t.projectData.image]}})],1)]),t._v(" "),t.projectData.video_link?n("span",{staticClass:"sp100"},[t._v("\n 主图视频:\n "),n("video",{staticStyle:{width:"40%",height:"180px","border-radius":"10px"},attrs:{src:t.projectData.video_link,controls:"controls"}},[t._v("\n 您的浏览器不支持 video 标签。\n ")])]):t._e(),t._v(" "),n("span",{staticClass:"sp100"},[t._v("商品轮播图:\n "),t._l(t.projectData.slider_image,(function(t,e){return n("div",{key:e,staticClass:"pictrue"},[n("el-image",{staticStyle:{width:"60px",height:"60px"},attrs:{src:t,"preview-src-list":[t]}})],1)}))],2)])]),t._v(" "),n("el-tab-pane",{attrs:{label:"商品详情",name:"second"}},[n("span",{staticClass:"sp100"},[t._v("商品详情:")]),t._v(" "),n("div",{staticClass:"contentPic",domProps:{innerHTML:t._s(t.projectData.content)}})]),t._v(" "),n("el-tab-pane",{attrs:{label:"其他设置",name:"third"}},[n("span",{staticClass:"sp100"},[t._v("商品排序:"+t._s(t.projectData.sort))]),t._v(" "),n("span",{staticClass:"third mb20"},[n("span",[t._v("商品推荐:")]),t._v(" "),n("el-checkbox-group",{attrs:{size:"small"},model:{value:t.checkboxGroup,callback:function(e){t.checkboxGroup=e},expression:"checkboxGroup"}},t._l(t.recommend,(function(e,r){return n("el-checkbox",{key:r,attrs:{disabled:"",label:e.value}},[t._v(t._s(e.name))])})),1)],1)]),t._v(" "),n("el-tab-pane",{attrs:{label:"商品规格",name:"fourth"}},[n("span",{staticClass:"sp"},[t._v("商品规格:"+t._s(0===t.projectData.spec_type?"单规格":"多规格"))]),t._v(" "),n("span",{staticClass:"sp"},[t._v("佣金设置:"+t._s(0===t.projectData.extension_type?"默认设置":"单独设置"))]),t._v(" "),n("span",{staticClass:"sp100"},[n("span",{staticClass:"mb15",staticStyle:{display:"block"}},[t._v("商品规格:")]),t._v(" "),0===t.projectData.spec_type?[n("el-table",{staticClass:"tabNumWidth",attrs:{data:t.OneattrValue,border:"",size:"mini"}},[n("el-table-column",{attrs:{align:"center",label:"图片","min-width":"80"},scopedSlots:t._u([{key:"default",fn:function(t){return[n("div",{staticClass:"demo-image__preview"},[n("el-image",{staticStyle:{width:"60px",height:"60px"},attrs:{src:t.row.image}})],1)]}}],null,!1,323865937)}),t._v(" "),t._l(t.attrValue,(function(e,r){return n("el-table-column",{key:r,attrs:{label:t.formThead[r].title,align:"center","min-width":"120"},scopedSlots:t._u([{key:"default",fn:function(e){return[n("span",{staticClass:"priceBox",domProps:{textContent:t._s(e.row[r])}})]}}],null,!0)})})),t._v(" "),1===t.projectData.extension_type?[n("el-table-column",{attrs:{align:"center",label:"一级返佣(元)","min-width":"120"},scopedSlots:t._u([{key:"default",fn:function(e){return[n("span",{staticClass:"priceBox",domProps:{textContent:t._s(e.row.extension_one)}})]}}],null,!1,102250766)}),t._v(" "),n("el-table-column",{attrs:{align:"center",label:"二级返佣(元)","min-width":"120"},scopedSlots:t._u([{key:"default",fn:function(e){return[n("span",{staticClass:"priceBox",domProps:{textContent:t._s(e.row.extension_two)}})]}}],null,!1,4284057702)})]:t._e()],2)]:t._e(),t._v(" "),1===t.projectData.spec_type?[n("el-table",{staticClass:"tabNumWidth",attrs:{data:t.ManyAttrValue,border:"",size:"mini"}},[t.manyTabDate?t._l(t.manyTabDate,(function(e,r){return n("el-table-column",{key:r,attrs:{align:"center",label:t.manyTabTit[r].title,"min-width":"80"},scopedSlots:t._u([{key:"default",fn:function(e){return[n("span",{staticClass:"priceBox",domProps:{textContent:t._s(e.row[r])}})]}}],null,!0)})})):t._e(),t._v(" "),n("el-table-column",{attrs:{align:"center",label:"图片","min-width":"80"},scopedSlots:t._u([{key:"default",fn:function(t){return[n("div",{staticClass:"upLoadPicBox"},[n("div",{staticClass:"pictrue tabPic"},[n("img",{attrs:{src:t.row.image}})])])]}}],null,!1,651288578)}),t._v(" "),t._l(t.attrValue,(function(e,r){return n("el-table-column",{key:r,attrs:{label:t.formThead[r].title,align:"center","min-width":"120"},scopedSlots:t._u([{key:"default",fn:function(e){return[n("span",{staticClass:"priceBox"},[t._v(t._s(e.row[r]))])]}}],null,!0)})})),t._v(" "),1===t.projectData.extension_type?[n("el-table-column",{attrs:{align:"center",label:"一级返佣(元)","min-width":"120"},scopedSlots:t._u([{key:"default",fn:function(e){return[n("span",{staticClass:"priceBox"},[t._v(t._s(e.row.extension_one))])]}}],null,!1,1519547738)}),t._v(" "),n("el-table-column",{attrs:{align:"center",label:"二级返佣(元)","min-width":"120"},scopedSlots:t._u([{key:"default",fn:function(e){return[n("span",{staticClass:"priceBox"},[t._v(t._s(e.row.extension_two))])]}}],null,!1,603129202)})]:t._e()],2)]:t._e()],2)])],1):t._e(),t._v(" "),n("el-form",{ref:"ruleForm",staticClass:"demo-ruleForm",attrs:{model:t.ruleForm,rules:t.rules,"label-width":"80px"}},[n("el-form-item",{attrs:{label:"审核状态",prop:"status"}},[n("el-radio-group",{model:{value:t.ruleForm.status,callback:function(e){t.$set(t.ruleForm,"status",e)},expression:"ruleForm.status"}},[n("el-radio",{attrs:{label:1}},[t._v("通过")]),t._v(" "),n("el-radio",{attrs:{label:-1}},[t._v("拒绝")])],1)],1),t._v(" "),-1===t.ruleForm.status?n("el-form-item",{attrs:{label:"原因",prop:"refusal"}},[n("el-input",{attrs:{type:"textarea",placeholder:"请输入原因"},model:{value:t.ruleForm.refusal,callback:function(e){t.$set(t.ruleForm,"refusal",e)},expression:"ruleForm.refusal"}})],1):t._e(),t._v(" "),n("el-form-item",[n("el-button",{attrs:{type:"primary"},on:{click:t.onSubmit}},[t._v("提交")])],1)],1)],1):t._e()},a=[],o=(n("ac6a"),n("c4c8")),s={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:"",attrValue:[{image:"",price:null,cost:null,ot_price:null,stock:null,bar_code:"",weight:null,volume:null}],attr:[],selectRule:"",extension_type:0,content:"",spec_type:0},i={price:{title:"售价"},cost:{title:"成本价"},ot_price:{title:"原价"},stock:{title:"库存"},bar_code:{title:"商品编号"},weight:{title:"重量(KG)"},volume:{title:"体积(m³)"}},c=[{name:"是否热卖",value:"is_hot"},{name:"优品推荐",value:"is_good"},{name:"促销单品",value:"is_benefit"},{name:"是否精品",value:"is_best"},{name:"是否新品",value:"is_new"}],u={name:"Info",props:{isShow:{type:Boolean,default:!0},ids:{type:Array,default:function(){return[]}}},data:function(){return{rules:{status:[{required:!0,message:"请选择审核状态",trigger:"change"}],refusal:[{required:!0,message:"请填写拒绝原因",trigger:"blur"}]},proId:0,ruleForm:{refusal:"",status:1,id:""},formThead:Object.assign({},i),manyTabDate:{},manyTabTit:{},loading:!1,dialogVisible:!1,activeNames:"first",projectData:{},recommend:c,checkboxGroup:[],OneattrValue:[Object.assign({},s.attrValue[0])],ManyAttrValue:[Object.assign({},s.attrValue[0])]}},computed:{attrValue:function(){var t=Object.assign({},s.attrValue[0]);return delete t.image,t},oneFormBatch:function(){var t=[Object.assign({},s.attrValue[0])];return delete t[0].bar_code,t}},methods:{onSubmit:function(){var t=this;this.isShow?this.ruleForm.id=this.proId:this.ruleForm.id=this.ids,Object(o["K"])(this.ruleForm).then((function(e){t.$message.success(e.message),t.dialogVisible=!1,t.activeNames="first",t.$emit("subSuccess")})).catch((function(e){t.listLoading=!1,t.$message.error(e.message)}))},handleClose:function(){this.dialogVisible=!1,this.activeNames="first"},getInfo:function(t){var e=this;this.proId=t,this.loading=!0,Object(o["H"])(t).then((function(t){e.projectData=t.data,0===e.projectData.spec_type?e.OneattrValue=t.data.attrValue:e.ManyAttrValue=t.data.attrValue;var n={},r={};e.projectData.attr.forEach((function(t,e){n["value"+e]={title:t.value},r["value"+e]=""})),e.manyTabDate=r,e.manyTabTit=n,e.formThead=Object.assign({},e.formThead,n),1===e.projectData.is_hot&&e.checkboxGroup.push("is_hot"),1===e.projectData.is_good&&e.checkboxGroup.push("is_good"),1===e.projectData.is_benefit&&e.checkboxGroup.push("is_benefit"),1===e.projectData.is_best&&e.checkboxGroup.push("is_best"),1===e.projectData.is_new&&e.checkboxGroup.push("is_new"),e.loading=!1})).catch((function(t){e.$message.error(t.message),e.loading=!1}))}}},l=u,d=(n("9ff9"),n("2877")),p=Object(d["a"])(l,r,a,!1,null,"21b05a36",null);e["a"]=p.exports},"9ff9":function(t,e,n){"use strict";var r=n("a3f7"),a=n.n(r);a.a},a3f7:function(t,e,n){},c4c8:function(t,e,n){"use strict";n.d(e,"Z",(function(){return a})),n.d(e,"X",(function(){return o})),n.d(e,"bb",(function(){return s})),n.d(e,"Y",(function(){return i})),n.d(e,"ab",(function(){return c})),n.d(e,"l",(function(){return u})),n.d(e,"j",(function(){return l})),n.d(e,"n",(function(){return d})),n.d(e,"k",(function(){return p})),n.d(e,"m",(function(){return f})),n.d(e,"q",(function(){return m})),n.d(e,"o",(function(){return _})),n.d(e,"s",(function(){return g})),n.d(e,"p",(function(){return b})),n.d(e,"r",(function(){return v})),n.d(e,"I",(function(){return h})),n.d(e,"T",(function(){return y})),n.d(e,"t",(function(){return w})),n.d(e,"x",(function(){return x})),n.d(e,"H",(function(){return k})),n.d(e,"S",(function(){return C})),n.d(e,"K",(function(){return j})),n.d(e,"V",(function(){return D})),n.d(e,"w",(function(){return S})),n.d(e,"Q",(function(){return V})),n.d(e,"O",(function(){return F})),n.d(e,"M",(function(){return T})),n.d(e,"N",(function(){return O})),n.d(e,"v",(function(){return I})),n.d(e,"y",(function(){return B})),n.d(e,"R",(function(){return E})),n.d(e,"J",(function(){return P})),n.d(e,"U",(function(){return G})),n.d(e,"L",(function(){return N})),n.d(e,"W",(function(){return U})),n.d(e,"u",(function(){return $})),n.d(e,"P",(function(){return H})),n.d(e,"cb",(function(){return A})),n.d(e,"A",(function(){return M})),n.d(e,"z",(function(){return R})),n.d(e,"D",(function(){return L})),n.d(e,"G",(function(){return W})),n.d(e,"E",(function(){return z})),n.d(e,"F",(function(){return q})),n.d(e,"B",(function(){return J})),n.d(e,"C",(function(){return K})),n.d(e,"d",(function(){return Q})),n.d(e,"e",(function(){return X})),n.d(e,"c",(function(){return Y})),n.d(e,"f",(function(){return Z})),n.d(e,"i",(function(){return tt})),n.d(e,"b",(function(){return et})),n.d(e,"a",(function(){return nt})),n.d(e,"h",(function(){return rt})),n.d(e,"g",(function(){return at}));var r=n("0c6d");function a(){return r["a"].get("store/category/lst")}function o(){return r["a"].get("store/category/create/form")}function s(t){return r["a"].get("store/category/update/form/".concat(t))}function i(t){return r["a"].delete("store/category/delete/".concat(t))}function c(t,e){return r["a"].post("store/category/status/".concat(t),{status:e})}function u(t){return r["a"].get("store/brand/category/lst",t)}function l(){return r["a"].get("store/brand/category/create/form")}function d(t){return r["a"].get("store/brand/category/update/form/".concat(t))}function p(t){return r["a"].delete("store/brand/category/delete/".concat(t))}function f(t,e){return r["a"].post("store/brand/category/status/".concat(t),{status:e})}function m(t){return r["a"].get("store/brand/lst",t)}function _(){return r["a"].get("store/brand/create/form")}function g(t){return r["a"].get("store/brand/update/form/".concat(t))}function b(t){return r["a"].delete("store/brand/delete/".concat(t))}function v(t,e){return r["a"].post("store/brand/status/".concat(t),{status:e})}function h(t){return r["a"].get("store/product/lst",t)}function y(t){return r["a"].get("seckill/product/lst",t)}function w(){return r["a"].get("store/category/list")}function x(){return r["a"].get("system/merchant/category_lst")}function k(t){return r["a"].get("store/product/detail/".concat(t))}function C(t){return r["a"].get("seckill/product/detail/".concat(t))}function j(t){return r["a"].post("store/product/status",t)}function D(t){return r["a"].post("seckill/product/status",t)}function S(){return r["a"].get("store/product/lst_filter")}function V(){return r["a"].get("seckill/product/lst_filter")}function F(t){return r["a"].get("store/reply/lst",t)}function T(t){return r["a"].get(t?"store/reply/create/form/".concat(t):"store/reply/create/form")}function O(t){return r["a"].delete("store/reply/delete/".concat(t))}function I(t){return r["a"].get("store/product/list",t)}function B(){return r["a"].get("store/product/mer_select")}function E(){return r["a"].get("seckill/product/mer_select")}function P(t){return r["a"].post("store/product/status",t)}function G(t){return r["a"].post("seckill/product/status",t)}function N(t,e){return r["a"].post("store/product/update/".concat(t),e)}function U(t,e){return r["a"].post("seckill/product/update/".concat(t),e)}function $(t,e){return r["a"].post("store/product/change/".concat(t),{status:e})}function H(t,e){return r["a"].post("seckill/product/change/".concat(t),{status:e})}function A(t){return r["a"].get("store/product/ficti/form/".concat(t))}function M(t){return r["a"].get("store/product/presell/lst",t)}function R(t){return r["a"].get("store/product/presell/get/".concat(t))}function L(t){return r["a"].get("store/product/presell/detail/".concat(t))}function W(t,e){return r["a"].post("store/product/presell/update/".concat(t),e)}function z(t){return r["a"].post("store/product/presell/status",t)}function q(t,e){return r["a"].post("store/product/presell/is_show/".concat(t),{status:e})}function J(){return r["a"].get("store/product/presell/agree")}function K(t){return r["a"].post("store/product/presell/agree",t)}function Q(t){return r["a"].get("store/product/assist/lst",t)}function X(t){return r["a"].get("store/product/assist/get/".concat(t))}function Y(t){return r["a"].get("store/product/assist/detail/".concat(t))}function Z(t){return r["a"].post("store/product/assist/status",t)}function tt(t,e){return r["a"].post("store/product/assist/is_show/".concat(t),{status:e})}function et(t){return r["a"].get("store/product/assist/set/lst",t)}function nt(t,e){return r["a"].get("store/product/assist/set/detail/".concat(t),e)}function rt(t){return r["a"].get("store/product/assist/get/".concat(t))}function at(t,e){return r["a"].post("store/product/assist/update/".concat(t),e)}},ef0d:function(t,e,n){"use strict";var r=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[n("vue-ueditor-wrap",{staticStyle:{width:"90%"},attrs:{config:t.myConfig},on:{beforeInit:t.addCustomDialog},model:{value:t.contents,callback:function(e){t.contents=e},expression:"contents"}})],1)},a=[],o=n("6625"),s=n.n(o),i=n("83d6"),c={name:"Index",components:{VueUeditorWrap:s.a},scrollerHeight:{content:String,default:""},props:{content:{type:String,default:""}},data:function(){return{contents:this.content,myConfig:{autoHeightEnabled:!1,initialFrameHeight:500,initialFrameWidth:"100%",UEDITOR_HOME_URL:"/UEditor/",elementPathEnabled:!1,wordCount:!1,enableAutoSave:!1}}},watch:{content:function(t){this.contents=this.content},contents:function(t){this.$emit("input",t)}},created:function(){},methods:{addCustomDialog:function(t){window.UE.registerUI("test-dialog",(function(t,e){var n=new window.UE.ui.Dialog({iframeUrl:i["roterPre"]+"/setting/uploadPicture?field=dialog",editor:t,name:e,title:"上传图片",cssRules:"width:1000px;height:620px;padding:20px;"});this.dialog=n;var r=new window.UE.ui.Button({name:"dialog-button",title:"上传图片",cssRules:"background-image: url(@/assets/images/icons.png);background-position: -726px -77px;",onclick:function(){n.render(),n.open()}});return r}),37)}}},u=c,l=n("2877"),d=Object(l["a"])(u,r,a,!1,null,"20a9303c",null);e["a"]=d.exports}}]);