You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
1 lines
11 KiB
1 lines
11 KiB
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-73995896"],{"0090":function(t,e,a){"use strict";a("2098")},2098:function(t,e,a){},6461:function(t,e,a){"use strict";var s=function(){var t=this,e=t.$createElement,a=t._self._c||e;return t.dialogVisible?a("el-dialog",{staticClass:"projectInfo",attrs:{title:"商品审核",visible:t.dialogVisible,"append-to-body":t.isAppend,width:"860px","before-close":t.handleClose},on:{"update:visible":function(e){t.dialogVisible=e}}},[t.projectData&&t.isShow?a("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"}},[a("el-tab-pane",{attrs:{label:"商品信息",name:"first"}},[a("div",{staticClass:"acea-row"},[a("span",{staticClass:"sp"},[t._v("商品名称:"+t._s(t.projectData.store_name))]),t._v(" "),a("span",{staticClass:"sp"},[t._v("平台分类:"+t._s(t.projectData.storeCategory?t.projectData.storeCategory.cate_name:""))]),t._v(" "),a("span",{staticClass:"sp"},[t._v("品牌:"+t._s(t.projectData.brand?t.projectData.brand.brand_name:"其他"))]),t._v(" "),a("span",{staticClass:"sp"},[t._v("商品关键字:"+t._s(t.projectData.keyword))]),t._v(" "),a("span",{staticClass:"sp"},[t._v("商品单位:"+t._s(t.projectData.unit_name))]),t._v(" "),t.projectData.temp&&t.projectData.temp.name?a("span",{staticClass:"sp"},[t._v("运费模板:"+t._s(t.projectData.temp?t.projectData.temp.name:""))]):t._e(),t._v(" "),t.projectData.temp&&t.projectData.temp.info?a("span",{staticClass:"sp100"},[t._v("运费说明:"+t._s(t.projectData.temp?t.projectData.temp.info:""))]):t._e(),t._v(" "),a("span",{staticClass:"sp100"},[t._v("\n 商品分类:\n "),t.projectData.merCateId?t._l(t.projectData.merCateId,(function(e,s){return a("span",{key:s,staticClass:"mr10"},[t._v(t._s(e.category?e.category.cate_name:""))])})):a("span",[t._v("-")])],2),t._v(" "),a("span",{staticClass:"sp100"},[t._v("商品简介:"+t._s(t.projectData.store_info))]),t._v(" "),a("span",{staticClass:"sp100"},[t._v("\n 商品封面图:\n "),a("div",{staticClass:"demo-image__preview"},[a("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?a("span",{staticClass:"sp100"},[t._v("\n 主图视频:\n "),a("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(" "),a("span",{staticClass:"sp100"},[t._v("商品轮播图:\n "),t._l(t.projectData.slider_image,(function(t,e){return a("div",{key:e,staticClass:"pictrue"},[a("el-image",{staticStyle:{width:"60px",height:"60px"},attrs:{src:t,"preview-src-list":[t]}})],1)}))],2)])]),t._v(" "),a("el-tab-pane",{attrs:{label:"商品详情",name:"second"}},[a("span",{staticClass:"sp100"},[t._v("商品详情:")]),t._v(" "),a("div",{staticClass:"contentPic",domProps:{innerHTML:t._s(t.projectData.content)}})]),t._v(" "),a("el-tab-pane",{attrs:{label:"其他设置",name:"third"}},[a("span",{staticClass:"sp100"},[t._v("商品排序:"+t._s(t.projectData.sort))]),t._v(" "),a("span",{staticClass:"third mb20"},[a("span",[t._v("商品推荐:")]),t._v(" "),a("el-checkbox-group",{attrs:{size:"small"},model:{value:t.checkboxGroup,callback:function(e){t.checkboxGroup=e},expression:"checkboxGroup"}},t._l(t.recommend,(function(e,s){return a("el-checkbox",{key:s,attrs:{disabled:"",label:e.value}},[t._v(t._s(e.name))])})),1)],1),t._v(" "),t.projectData.guarantee&&t.projectData.guarantee.templateValue.length?a("span",{staticClass:"third mb20"},[a("span",[t._v("服务保障:")]),t._v(" "),t._l(t.projectData.guarantee.templateValue,(function(e,s){return a("span",{key:s},[e.value?a("span",[t._v(t._s(s+1)+". "+t._s(e.value.guarantee_name)+";")]):t._e()])}))],2):t._e()]),t._v(" "),a("el-tab-pane",{attrs:{label:"商品规格",name:"fourth"}},[a("span",{staticClass:"sp"},[t._v("商品规格:"+t._s(0===t.projectData.spec_type?"单规格":"多规格"))]),t._v(" "),a("span",{staticClass:"sp"},[t._v("佣金设置:"+t._s(0===t.projectData.extension_type?"默认设置":"单独设置"))]),t._v(" "),a("span",{staticClass:"sp100"},[a("span",{staticClass:"mb15",staticStyle:{display:"block"}},[t._v("商品规格:")]),t._v(" "),0===t.projectData.spec_type?[a("el-table",{attrs:{data:t.OneattrValue,border:"",size:"small"}},[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,s){return a("el-table-column",{key:s,attrs:{label:t.formThead[s].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[s])}})]}}],null,!0)})})),t._v(" "),1===t.projectData.extension_type?[a("el-table-column",{attrs:{align:"center",label:"一级返佣(元)","min-width":"120"},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":"120"},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.projectData.spec_type?[a("el-table",{attrs:{data:t.ManyAttrValue,border:"",size:"small"}},[t.manyTabDate?t._l(t.manyTabDate,(function(e,s){return a("el-table-column",{key:s,attrs:{align:"center",label:t.manyTabTit[s].title,"min-width":"80"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",{staticClass:"priceBox",domProps:{textContent:t._s(e.row[s])}})]}}],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,s){return a("el-table-column",{key:s,attrs:{label:t.formThead[s].title,align:"center","min-width":"80"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",{staticClass:"priceBox"},[t._v(t._s(e.row[s]))])]}}],null,!0)})})),t._v(" "),1===t.projectData.extension_type?[a("el-table-column",{attrs:{align:"center",label:"一级返佣(元)","min-width":"120"},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":"120"},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)])],1):t._e(),t._v(" "),a("el-form",{ref:"ruleForm",staticClass:"demo-ruleForm",attrs:{model:t.ruleForm,rules:t.rules,"label-width":"80px"}},[a("el-form-item",{attrs:{label:"审核状态",prop:"status"}},[a("el-radio-group",{model:{value:t.ruleForm.status,callback:function(e){t.$set(t.ruleForm,"status",e)},expression:"ruleForm.status"}},[a("el-radio",{attrs:{label:1}},[t._v("通过")]),t._v(" "),a("el-radio",{attrs:{label:-1}},[t._v("拒绝")])],1)],1),t._v(" "),-1===t.ruleForm.status?a("el-form-item",{attrs:{label:"原因",prop:"refusal"}},[a("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()],1),t._v(" "),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{attrs:{size:"small"},on:{click:function(e){t.dialogVisible=!1}}},[t._v("取 消")]),t._v(" "),a("el-button",{attrs:{size:"small",type:"primary"},on:{click:t.onSubmit}},[t._v("确 定")])],1)],1):t._e()},l=[],i=(a("ac6a"),a("c4c8")),n={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,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},r={price:{title:"售价"},svip_price:{title:"付费会员价"},cost:{title:"成本价"},ot_price:{title:"市场价"},stock:{title:"库存"},bar_code:{title:"商品编号"},weight:{title:"重量(KG)"},volume:{title:"体积(m³)"}},o=[{name:"是否热卖",value:"is_hot"},{name:"优品推荐",value:"is_good"},{name:"促销单品",value:"is_benefit"},{name:"是否精品",value:"is_best"},{name:"是否新品",value:"is_new"}],c={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"}]},isAppend:!0,proId:0,ruleForm:{refusal:"",status:1,id:""},formThead:Object.assign({},r),manyTabDate:{},manyTabTit:{},loading:!1,dialogVisible:!1,activeNames:"first",projectData:{},recommend:o,checkboxGroup:[],svip_type:0,OneattrValue:[Object.assign({},n.attrValue[0])],ManyAttrValue:[Object.assign({},n.attrValue[0])]}},computed:{attrValue:function(){var t=Object.assign({},n.attrValue[0]);return 0==this.svip_type&&delete t.svip_price,delete t.image,t},oneFormBatch:function(){var t=[Object.assign({},n.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(i["mb"])(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(i["eb"])(t).then((function(t){e.projectData=t.data,e.svip_type=t.data.svip_price_type,0===e.projectData.spec_type?e.OneattrValue=t.data.attrValue:e.ManyAttrValue=t.data.attrValue;var a={},s={};e.projectData.attr.forEach((function(t,e){a["value"+e]={title:t.value},s["value"+e]=""})),e.manyTabDate=s,e.manyTabTit=a,e.checkboxGroup=[],e.formThead=Object.assign({},e.formThead,a),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}))}}},p=c,u=(a("0090"),a("2877")),_=Object(u["a"])(p,s,l,!1,null,"5a116fd1",null);e["a"]=_.exports}}]); |