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
48 KiB

(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-0b5ce6d1"],{1292:function(t,e,a){},2851:function(t,e,a){"use strict";var i=function(){var t=this,e=t._self._c;return e("el-card",{staticClass:"form-container",attrs:{shadow:"never"}},[e("el-steps",{attrs:{active:t.active,"finish-status":"success","align-center":""}},[e("el-step",{attrs:{title:"商品息信"}}),e("el-step",{attrs:{title:"商品展示"}}),e("el-step",{attrs:{title:"图片及详情"}})],1),e("product-info-detail",{directives:[{name:"show",rawName:"v-show",value:t.showStatus[0],expression:"showStatus[0]"}],attrs:{"is-edit":t.isEdit},on:{nextStep:t.nextStep},model:{value:t.productParam,callback:function(e){t.productParam=e},expression:"productParam"}}),e("product-sale-detail",{directives:[{name:"show",rawName:"v-show",value:t.showStatus[1],expression:"showStatus[1]"}],attrs:{"is-edit":t.isEdit},on:{nextStep:t.nextStep,prevStep:t.prevStep},model:{value:t.productParam,callback:function(e){t.productParam=e},expression:"productParam"}}),e("product-attr-detail",{directives:[{name:"show",rawName:"v-show",value:t.showStatus[2],expression:"showStatus[2]"}],attrs:{"is-edit":t.isEdit},on:{finishCommit:t.finishCommit,nextStep:t.nextStep,prevStep:t.prevStep},model:{value:t.productParam,callback:function(e){t.productParam=e},expression:"productParam"}})],1)},r=[],n=function(){var t=this,e=t._self._c;return e("div",{staticStyle:{"margin-top":"50px"}},[e("el-form",{ref:"productInfoForm",staticStyle:{width:"600px"},attrs:{model:t.value,rules:t.rules,"label-width":"120px",size:"small"}},[e("el-form-item",{attrs:{label:"商品分类:",prop:"productCategoryId"}},[e("el-cascader",{attrs:{"change-on-select":"",options:t.productCateOptions},model:{value:t.selectProductCateValue,callback:function(e){t.selectProductCateValue=e},expression:"selectProductCateValue"}})],1),e("el-form-item",{attrs:{label:"商品名称:",prop:"name"}},[e("el-input",{model:{value:t.value.name,callback:function(e){t.$set(t.value,"name",e)},expression:"value.name"}})],1),e("el-form-item",{attrs:{label:"副标题:",prop:"subTitle"}},[e("el-input",{model:{value:t.value.subTitle,callback:function(e){t.$set(t.value,"subTitle",e)},expression:"value.subTitle"}})],1),e("el-form-item",{attrs:{label:"商品品牌:",prop:"brandId"}},[e("el-select",{attrs:{placeholder:"请选择品牌"},on:{change:t.handleBrandChange},model:{value:t.value.brandId,callback:function(e){t.$set(t.value,"brandId",e)},expression:"value.brandId"}},t._l(t.brandOptions,(function(t){return e("el-option",{key:t.value,attrs:{label:t.label,value:t.value}})})),1)],1),e("el-form-item",{attrs:{label:"商品介绍:"}},[e("el-input",{attrs:{"auto-size":!0,type:"textarea",placeholder:"请输入内容"},model:{value:t.value.description,callback:function(e){t.$set(t.value,"description",e)},expression:"value.description"}})],1),e("el-form-item",{attrs:{label:"商品货号:"}},[e("el-input",{model:{value:t.value.productSn,callback:function(e){t.$set(t.value,"productSn",e)},expression:"value.productSn"}})],1),e("el-form-item",{attrs:{label:"商品售价:"}},[e("el-input",{model:{value:t.value.price,callback:function(e){t.$set(t.value,"price",e)},expression:"value.price"}})],1),e("el-form-item",{attrs:{label:"惠农价:"}},[e("el-input",{model:{value:t.value.originalPrice,callback:function(e){t.$set(t.value,"originalPrice",e)},expression:"value.originalPrice"}})],1),e("el-form-item",{attrs:{label:"商品库存:"}},[e("el-input",{model:{value:t.value.stock,callback:function(e){t.$set(t.value,"stock",e)},expression:"value.stock"}})],1),e("el-form-item",{attrs:{label:"计量单位:"}},[e("el-select",{attrs:{placeholder:"请选择计量单位"},model:{value:t.value.unit,callback:function(e){t.$set(t.value,"unit",e)},expression:"value.unit"}},t._l(t.unitOptions,(function(t){return e("el-option",{key:t.id,attrs:{label:t.id,value:t.id}})})),1)],1),e("el-form-item",{attrs:{label:"商品重量:"}},[e("el-input",{staticStyle:{width:"300px"},model:{value:t.value.weight,callback:function(e){t.$set(t.value,"weight",e)},expression:"value.weight"}}),e("span",{staticStyle:{"margin-left":"20px"}},[t._v("千克")])],1),e("el-form-item",{attrs:{label:"排序"}},[e("el-input",{model:{value:t.value.sort,callback:function(e){t.$set(t.value,"sort",e)},expression:"value.sort"}})],1),e("el-form-item",{staticStyle:{"text-align":"center"}},[e("el-button",{attrs:{type:"primary",size:"medium"},on:{click:function(e){return t.handleNext("productInfoForm")}}},[t._v("下一步")])],1)],1)],1)},o=[],l=a("d1f3"),s=a("b775");function u(t){return Object(s["a"])({url:"/sys/SysArea/"+t,method:"get"})}function c(t){return Object(s["a"])({url:"/sys/SysArea/list/withChildren",method:"get",params:t})}function d(t){return Object(s["a"])({url:"/ums/UmsMemberTag/list",method:"get",params:t})}var p=a("9add");function h(t){return Object(s["a"])({url:"/sys/sysStoreClass/list",method:"get",params:t})}function m(t){return Object(s["a"])({url:"/pms/PmsFeightTemplate/list",method:"get",params:t})}var f=a("c4c8"),v=[],g={name:"ProductInfoDetail",props:{value:Object,isEdit:{type:Boolean,default:!1}},data:function(){return{hasEditCreated:!1,selectProductCateValue:[],productCateOptions:[],selectAreaValue:[],areaOptions:[],brandOptions:[],storeClassOptions:[],area:null,TagList:[],areaList:[],feightTemplateOptions:[],unitOptions:[{id:"个",name:"个"},{id:"袋",name:"袋"},{id:"箱",name:"箱"},{id:"条",name:"条"},{id:"盒",name:"盒"},{id:"包",name:"包"},{id:"斤",name:"斤"},{id:"两",name:"两"},{id:"件",name:"件"},{id:"瓶",name:"瓶"},{id:"千克",name:"千克"}],rules:{name:[{required:!0,message:"请输入商品名称",trigger:"blur"},{min:2,max:140,message:"长度在 2 到 140 个字符",trigger:"blur"}],subTitle:[{required:!0,message:"请输入商品副标题",trigger:"blur"}],productCategoryId:[{required:!0,message:"请选择商品分类",trigger:"blur"}],brandId:[{required:!0,message:"请选择商品品牌",trigger:"blur"}],description:[{required:!0,message:"请输入商品介绍",trigger:"blur"}],requiredProp:[{required:!0,message:"该项为必填项",trigger:"blur"}]}}},computed:{productId:function(){return this.value.id}},watch:{productId:function(t){this.isEdit&&(this.hasEditCreated||(console.log(t),void 0!==t&&null!=t&&0!==t&&this.handleEditCreated()))},selectProductCateValue:function(t){null!=t?(this.value.productCategoryId=t[t.length-1>0?t.length-1:0],this.value.productCategoryName=this.getCateNameById(this.value.productCategoryId)):(this.value.productCategoryId=null,this.value.productCategoryName=null)},selectAreaValue:function(t){var e=this;null!=t?(console.log(t),this.value.areaId=t[t.length-1>0?t.length-1:0],u(this.value.areaId).then((function(t){e.value.areaName=t.data.name}))):(this.value.areaId=null,this.value.areaName=null)}},created:function(){this.getProductCateList(),this.getBrandList()},methods:{changeRole:function(t){v=[],t.forEach((function(t,e){var a={id:t};v.push(a)}))},deleteTag:function(t){v.forEach((function(e,a){e.id===t&&v.splice(a,t)}))},afterErrorMethod:function(t){var e=[];v.forEach((function(t,a){e.push(t.id)})),this.value.tagList=e},handleEditCreated:function(){var t=this;if(console.log(this.value),null!=this.value.productCategoryId){var e=[];e.push(this.value.cateParentId),e.push(this.value.productCategoryId),this.selectProductCateValue=e}null!=this.value.areaId&&u(this.value.areaId).then((function(e){t.selectAreaValue.push(e.data.pid),t.selectAreaValue.push(t.value.areaId)})),console.log(this.selectAreaValue),v=[];var a=[];this.value.tagList.forEach((function(t,e){a.push(t.id);var i={id:t.id};v.push(i)})),console.log(this.value.tagList),this.value.tagList=a,this.hasEditCreated=!0},getAreaList:function(){var t=this;c().then((function(e){var a=e.data;t.areaList=a,t.areaOptions=[];for(var i=0;i<a.length;i++){var r=[];if(null!=a[i].children&&a[i].children.length>0)for(var n=0;n<a[i].children.length;n++)r.push({label:a[i].children[n].name,value:a[i].children[n].id});t.areaOptions.push({label:a[i].name,value:a[i].id,children:r})}}))},getCateNameById:function(t){for(var e=null,a=0;a<this.productCateOptions.length;a++)for(var i=0;i<this.productCateOptions[a].children.length;i++)if(this.productCateOptions[a].children[i].value&&void 0!=this.productCateOptions[a].children[i].value&&this.productCateOptions[a].children[i].value===t)return e=this.productCateOptions[a].children[i].label,e;return e},getProductCateList:function(){var t=this;Object(l["e"])().then((function(e){var a=e.data;t.productCateOptions=[];for(var i=0;i<a.length;i++){var r=[];if(null!=a[i].children&&a[i].children.length>0)for(var n=0;n<a[i].children.length;n++)r.push({label:a[i].children[n].name,value:a[i].children[n].id});t.productCateOptions.push({label:a[i].name,value:a[i].id,children:r})}}))},getFeightTemplateList:function(){var t=this;m({pageNum:1,pageSize:100}).then((function(e){t.feightTemplateOptions=[];for(var a=e.data.records,i=0;i<a.length;i++)t.feightTemplateOptions.push({label:a[i].name,value:a[i].id})}))},getBrandList:function(){var t=this;Object(p["c"])({pageNum:1,pageSize:100}).then((function(e){t.brandOptions=[];for(var a=e.data.records,i=0;i<a.length;i++)t.brandOptions.push({label:a[i].name,value:a[i].id})}))},getStoreClassList:function(){var t=this;h({pageNum:1,pageSize:100}).then((function(e){t.storeClassOptions=[];for(var a=e.data.records,i=0;i<a.length;i++)t.storeClassOptions.push({label:a[i].name,value:a[i].id})}))},getTagList:function(){var t=this;d({pageNum:1,pageSize:100,type:2,status:1}).then((function(e){t.TagList=e.data.records}))},handleNext:function(t){var e=this;this.$refs[t].validate((function(t){if(!t)return e.$message({message:"验证失败",type:"error",duration:1e3}),!1;e.$emit("nextStep")}))},handleBrandChange:function(t){for(var e="",a=0;a<this.brandOptions.length;a++)if(this.brandOptions[a].value===t){e=this.brandOptions[a].label;break}this.value.brandName=e}}},b=g,P=a("2877"),y=Object(P["a"])(b,n,o,!1,null,"ae00d6d6",null),k=y.exports,w=function(){var t=this,e=t._self._c;return e("div",{staticStyle:{"margin-top":"50px"}},[e("el-form",{ref:"productSaleForm",staticStyle:{width:"600px"},attrs:{model:t.value,"label-width":"120px",size:"small"}},[e("el-form-item",{attrs:{label:"商品上架:"}},[e("el-switch",{attrs:{"active-value":1,"inactive-value":0},model:{value:t.value.publishStatus,callback:function(e){t.$set(t.value,"publishStatus",e)},expression:"value.publishStatus"}})],1),e("el-form-item",{attrs:{label:"商品推荐:"}},[e("span",{staticStyle:{"margin-right":"10px"}},[t._v("新品")]),e("el-switch",{attrs:{"active-value":1,"inactive-value":0},model:{value:t.value.newStatus,callback:function(e){t.$set(t.value,"newStatus",e)},expression:"value.newStatus"}}),e("span",{staticStyle:{"margin-left":"10px","margin-right":"10px"}},[t._v("推荐")]),e("el-switch",{attrs:{"active-value":1,"inactive-value":0},model:{value:t.value.recommandStatus,callback:function(e){t.$set(t.value,"recommandStatus",e)},expression:"value.recommandStatus"}})],1),e("el-form-item",{attrs:{label:"服务保证:"}},[e("el-checkbox-group",{model:{value:t.selectServiceList,callback:function(e){t.selectServiceList=e},expression:"selectServiceList"}},[e("el-checkbox",{attrs:{label:1}},[t._v("无忧退货")]),e("el-checkbox",{attrs:{label:2}},[t._v("快速退款")]),e("el-checkbox",{attrs:{label:3}},[t._v("正品保证")])],1)],1),e("el-form-item",{attrs:{label:"详细页标题:"}},[e("el-input",{model:{value:t.value.detailTitle,callback:function(e){t.$set(t.value,"detailTitle",e)},expression:"value.detailTitle"}})],1),e("el-form-item",{attrs:{label:"详细页描述:"}},[e("el-input",{model:{value:t.value.detailDesc,callback:function(e){t.$set(t.value,"detailDesc",e)},expression:"value.detailDesc"}})],1),e("el-form-item",{attrs:{label:"商品关键字:"}},[e("el-input",{model:{value:t.value.keywords,callback:function(e){t.$set(t.value,"keywords",e)},expression:"value.keywords"}})],1),e("el-form-item",{attrs:{label:"商品备注:"}},[e("el-input",{attrs:{type:"textarea","auto-size":!0},model:{value:t.value.note,callback:function(e){t.$set(t.value,"note",e)},expression:"value.note"}})],1),e("el-form-item",{directives:[{name:"show",rawName:"v-show",value:1===t.value.promotionType,expression:"value.promotionType===1"}]},[e("div",[t._v(" 开始时间: "),e("el-date-picker",{attrs:{type:"datetime","picker-options":t.pickerOptions1,placeholder:"选择开始时间"},model:{value:t.value.promotionStartTime,callback:function(e){t.$set(t.value,"promotionStartTime",e)},expression:"value.promotionStartTime"}})],1),e("div",{staticClass:"littleMargin"},[t._v(" 结束时间: "),e("el-date-picker",{attrs:{type:"datetime","picker-options":t.pickerOptions1,placeholder:"选择结束时间"},model:{value:t.value.promotionEndTime,callback:function(e){t.$set(t.value,"promotionEndTime",e)},expression:"value.promotionEndTime"}})],1),e("div",{staticClass:"littleMargin"},[t._v(" 促销价格: "),e("el-input",{staticStyle:{width:"220px"},attrs:{placeholder:"输入促销价格"},model:{value:t.value.promotionPrice,callback:function(e){t.$set(t.value,"promotionPrice",e)},expression:"value.promotionPrice"}})],1)]),e("el-form-item",{directives:[{name:"show",rawName:"v-show",value:2===t.value.promotionType,expression:"value.promotionType===2"}]},t._l(t.value.memberPriceList,(function(a,i){return e("div",{class:{littleMargin:0!==i}},[t._v(" "+t._s(a.memberLevelName)+": "),e("el-input",{staticStyle:{width:"200px"},model:{value:a.memberPrice,callback:function(e){t.$set(a,"memberPrice",e)},expression:"item.memberPrice"}})],1)})),0),e("el-form-item",{directives:[{name:"show",rawName:"v-show",value:3===t.value.promotionType,expression:"value.promotionType===3"}]},[e("el-table",{staticStyle:{width:"80%"},attrs:{data:t.value.productLadderList,border:""}},[e("el-table-column",{attrs:{label:"数量",align:"center",width:"120"},scopedSlots:t._u([{key:"default",fn:function(a){return[e("el-input",{model:{value:a.row.count,callback:function(e){t.$set(a.row,"count",e)},expression:"scope.row.count"}})]}}])}),e("el-table-column",{attrs:{label:"折扣",align:"center",width:"120"},scopedSlots:t._u([{key:"default",fn:function(a){return[e("el-input",{model:{value:a.row.discount,callback:function(e){t.$set(a.row,"discount",e)},expression:"scope.row.discount"}})]}}])}),e("el-table-column",{attrs:{align:"center",label:"操作"},scopedSlots:t._u([{key:"default",fn:function(a){return[e("el-button",{attrs:{type:"text"},on:{click:function(e){return t.handleRemoveProductLadder(a.$index,a.row)}}},[t._v("删除")]),e("el-button",{attrs:{type:"text"},on:{click:function(e){return t.handleAddProductLadder(a.$index,a.row)}}},[t._v("添加")])]}}])})],1)],1),e("el-form-item",{directives:[{name:"show",rawName:"v-show",value:4===t.value.promotionType,expression:"value.promotionType===4"}]},[e("el-table",{staticStyle:{width:"80%"},attrs:{data:t.value.productFullReductionList,border:""}},[e("el-table-column",{attrs:{label:"满",align:"center",width:"120"},scopedSlots:t._u([{key:"default",fn:function(a){return[e("el-input",{model:{value:a.row.fullPrice,callback:function(e){t.$set(a.row,"fullPrice",e)},expression:"scope.row.fullPrice"}})]}}])}),e("el-table-column",{attrs:{label:"立减",align:"center",width:"120"},scopedSlots:t._u([{key:"default",fn:function(a){return[e("el-input",{model:{value:a.row.reducePrice,callback:function(e){t.$set(a.row,"reducePrice",e)},expression:"scope.row.reducePrice"}})]}}])}),e("el-table-column",{attrs:{align:"center",label:"操作"},scopedSlots:t._u([{key:"default",fn:function(a){return[e("el-button",{attrs:{type:"text"},on:{click:function(e){return t.handleRemoveFullReduction(a.$index,a.row)}}},[t._v("删除")]),e("el-button",{attrs:{type:"text"},on:{click:function(e){return t.handleAddFullReduction(a.$index,a.row)}}},[t._v("添加")])]}}])})],1)],1),e("el-form-item",{staticStyle:{"text-align":"center"}},[e("el-button",{attrs:{size:"medium"},on:{click:t.handlePrev}},[t._v("上一步")]),e("el-button",{attrs:{type:"primary",size:"medium"},on:{click:t.handleNext}},[t._v("下一步")])],1)],1)],1)},S=[];var C={name:"ProductSaleDetail",props:{value:Object,isEdit:{type:Boolean,default:!1}},data:function(){return{pickerOptions1:{disabledDate:function(t){return t.getTime()<Date.now()}}}},computed:{selectServiceList:{get:function(){var t=[];if(void 0===this.value.serviceIds||null==this.value.serviceIds||""===this.value.serviceIds)return t;for(var e=this.value.serviceIds.split(","),a=0;a<e.length;a++)t.push(Number(e[a]));return t},set:function(t){var e="";if(null!=t&&t.length>0){for(var a=0;a<t.length;a++)e+=t[a]+",";e.endsWith(",")&&(e=e.substr(0,e.length-1)),this.value.serviceIds=e}else this.value.serviceIds=null}}},created:function(){this.isEdit},methods:{handleEditCreated:function(){var t=this.value.serviceIds.split(",");console.log("handleEditCreated",t);for(var e=0;e<t.length;e++)this.selectServiceList.push(Number(t[e]))},handleRemoveProductLadder:function(t,e){var a=this.value.productLadderList;1===a.length?(a.pop(),a.push({count:0,discount:0,price:0})):a.splice(t,1)},handleAddProductLadder:function(t,e){var a=this.value.productLadderList;a.length<3?a.push({count:0,discount:0,price:0}):this.$message({message:"最多只能添加三条",type:"warning"})},handleRemoveFullReduction:function(t,e){var a=this.value.productFullReductionList;1===a.length?(a.pop(),a.push({fullPrice:0,reducePrice:0})):a.splice(t,1)},handleAddFullReduction:function(t,e){var a=this.value.productFullReductionList;a.length<3?a.push({fullPrice:0,reducePrice:0}):this.$message({message:"最多只能添加三条",type:"warning"})},handlePrev:function(){this.$emit("prevStep")},handleNext:function(){this.$emit("nextStep")}}},O=C,A=(a("aaea"),Object(P["a"])(O,w,S,!1,null,"4373083b",null)),x=A.exports,L=function(){var t=this,e=t._self._c;return e("div",{staticStyle:{"margin-top":"50px"}},[e("el-form",{ref:"productAttrForm",staticStyle:{width:"720px"},attrs:{model:t.value,"label-width":"150px",size:"small"}},[e("el-form-item",{attrs:{label:"商品类型:"}},[e("el-select",{attrs:{placeholder:"请选择属性类型"},on:{change:t.handleProductAttrChange},model:{value:t.value.productAttributeCategoryId,callback:function(e){t.$set(t.value,"productAttributeCategoryId",e)},expression:"value.productAttributeCategoryId"}},t._l(t.productAttributeCategoryOptions,(function(t){return e("el-option",{key:t.value,attrs:{label:t.label,value:t.value}})})),1)],1),e("el-form-item",{attrs:{label:"商品相册:"}},[e("multi-upload",{model:{value:t.selectProductPics,callback:function(e){t.selectProductPics=e},expression:"selectProductPics"}})],1),e("el-form-item",{attrs:{label:"规格参数:"}},[e("el-tabs",{attrs:{type:"card"},model:{value:t.activeHtmlName,callback:function(e){t.activeHtmlName=e},expression:"activeHtmlName"}},[e("el-tab-pane",{attrs:{label:"移动端详情",name:"mobile"}},[e("tinymce",{attrs:{width:595,height:300},model:{value:t.value.detailHtml,callback:function(e){t.$set(t.value,"detailHtml",e)},expression:"value.detailHtml"}})],1)],1)],1),e("el-form-item",{staticStyle:{"text-align":"center"}},[e("el-button",{attrs:{size:"medium"},on:{click:t.handlePrev}},[t._v("上一步")]),e("el-button",{attrs:{type:"primary",size:"medium"},on:{click:t.handleFinishCommit}},[t._v("保存商品")])],1)],1)],1)},I=[],j=a("5e35"),T=a("c8aa"),_=a("0f39"),E=function(){var t=this,e=t._self._c;return e("div",[e("el-upload",{attrs:{action:"http://yxt-sc.oss-cn-huhehaote.aliyuncs.com/",data:t.dataObj,"list-type":"picture-card","file-list":t.fileList,"before-upload":t.beforeUpload,"on-remove":t.handleRemove,"on-success":t.handleUploadSuccess,"on-preview":t.handlePreview,limit:t.maxCount,"on-exceed":t.handleExceed}},[e("i",{staticClass:"el-icon-plus"})]),e("el-dialog",{attrs:{visible:t.dialogVisible},on:{"update:visible":function(e){t.dialogVisible=e}}},[e("img",{attrs:{width:"100%",src:t.dialogImageUrl,alt:""}})])],1)},$=[],V=a("6e0d");function N(t){return N="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},N(t)}function R(t,e,a){return e=B(e),e in t?Object.defineProperty(t,e,{value:a,enumerable:!0,configurable:!0,writable:!0}):t[e]=a,t}function B(t){var e=F(t,"string");return"symbol"==N(e)?e:String(e)}function F(t,e){if("object"!=N(t)||!t)return t;var a=t[Symbol.toPrimitive];if(void 0!==a){var i=a.call(t,e||"default");if("object"!=N(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}var D={name:"multiUpload",props:{value:Array,maxCount:{type:Number,default:5}},data:function(){return{dataObj:{policy:"",signature:"",key:"",ossaccessKeyId:"",dir:"",host:""},dialogVisible:!1,dialogImageUrl:null}},computed:{fileList:function(){for(var t=[],e=0;e<this.value.length;e++)t.push({url:this.value[e]});return t}},methods:{emitInput:function(t){for(var e=[],a=0;a<t.length;a++)e.push(t[a].url);this.$emit("input",e)},handleRemove:function(t,e){this.emitInput(e)},handlePreview:function(t){this.dialogVisible=!0,this.dialogImageUrl=t.url},beforeUpload:function(t){var e=this;return new Promise((function(t,a){Object(V["a"])().then((function(a){e.dataObj.policy=a.data.policy,e.dataObj.signature=a.data.signature,e.dataObj.ossaccessKeyId=a.data.accessKeyId,e.dataObj.key=a.data.dir+"/${filename}",e.dataObj.dir=a.data.dir,e.dataObj.host=a.data.host,t(!0)})).catch((function(t){console.log(t),a(!1)}))}))},handleUploadSuccess:function(t,e){this.fileList.push(R({url:e.name},"url",this.dataObj.host+"/"+this.dataObj.dir+"/"+e.name)),this.emitInput(this.fileList)},handleExceed:function(t,e){this.$message({message:"最多只能上传"+this.maxCount+"张图片",type:"warning",duration:1e3})}}},H=D,z=Object(P["a"])(H,E,$,!1,null,null,null),U=z.exports,q=function(){var t=this,e=t._self._c;return e("div",{staticClass:"tinymce-container editor-container"},[e("textarea",{staticClass:"tinymce-textarea",attrs:{id:t.tinymceId}}),t._v(" "),e("div",{staticClass:"editor-custom-btn-container"},[e("editorImage",{staticClass:"editor-upload-btn",attrs:{color:"#1890ff"},on:{successCBK:t.imageSuccessCBK}})],1)])},M=[],K=function(){var t=this,e=t._self._c;return e("div",{staticClass:"upload-container"},[e("el-button",{style:{background:t.color,borderColor:t.color},attrs:{icon:"el-icon-upload",size:"mini",type:"primary"},on:{click:function(e){t.dialogVisible=!0}}},[t._v("上传图片 ")]),e("el-dialog",{attrs:{"append-to-body":"",visible:t.dialogVisible},on:{"update:visible":function(e){t.dialogVisible=e}}},[e("el-upload",{staticClass:"editor-slide-upload",attrs:{action:t.uploadAction,headers:t.accessToken,data:t.dataObj,multiple:!0,"file-list":t.fileList,"show-file-list":!0,"list-type":"picture-card","on-remove":t.handleRemove,"on-success":t.handleSuccess,"before-upload":t.beforeUpload}},[e("el-button",{attrs:{size:"small",type:"primary"}},[t._v("点击上传")])],1),e("el-button",{on:{click:function(e){t.dialogVisible=!1}}},[t._v("取 消")]),e("el-button",{attrs:{type:"primary"},on:{click:t.handleSubmit}},[t._v("确 定")])],1)],1)},G=[],W=a("5f87"),J={name:"EditorSlideUpload",props:{color:{type:String,default:"#1890ff"}},data:function(){return{uploadAction:"/lpkapi/file/upload",accessToken:null,dialogVisible:!1,listObj:{},fileList:[],dataObj:{policy:"",signature:"",key:"",ossaccessKeyId:"",dir:"",host:""}}},created:function(){this.accessToken={token:Object(W["a"])()}},methods:{checkAllSuccess:function(){var t=this;return Object.keys(this.listObj).every((function(e){return t.listObj[e].hasSuccess}))},handleSubmit:function(){var t=this,e=Object.keys(this.listObj).map((function(e){return t.listObj[e]}));this.checkAllSuccess()?(console.log(e),this.$emit("successCBK",e),this.listObj={},this.fileList=[],this.dialogVisible=!1):this.$message("请等待所有图片上传成功 或 出现了网络问题,请刷新页面重新上传!")},handleSuccess:function(t,e){for(var a=e.uid,i=Object.keys(this.listObj),r=0,n=i.length;r<n;r++)if(this.listObj[i[r]].uid===a)return this.listObj[i[r]].url=t.data.fullUrl,void(this.listObj[i[r]].hasSuccess=!0)},handleRemove:function(t){for(var e=t.uid,a=Object.keys(this.listObj),i=0,r=a.length;i<r;i++)if(this.listObj[a[i]].uid===e)return void delete this.listObj[a[i]]},beforeUpload:function(t){}}},X=J,Y=(a("4c68"),Object(P["a"])(X,K,G,!1,null,"1958297e",null)),Z=Y.exports,Q=(a("4e33"),["advlist anchor autolink autosave code codesample colorpicker colorpicker\n contextmenu directionality emoticons fullscreen hr image imagetools importcss insertdatetime\n legacyoutput link lists media nonbreaking noneditable pagebreak paste preview print save searchreplace\n spellchecker tabfocus table template textcolor textpattern visualblocks visualchars wordcount"]),tt=["bold italic underline strikethrough alignleft aligncenter\n alignright outdent indent blockquote undo redo removeformat","hr bullist numlist link image charmap\t preview anchor pagebreak\n fullscreen insertdatetime media table forecolor backcolor"],et={name:"Tinymce",components:{editorImage:Z},props:{id:{type:String},value:{type:String,default:""},toolbar:{type:Array,required:!1,default:function(){return[]}},menubar:{default:"file edit insert view format table"},height:{type:Number,required:!1,default:360},width:{type:Number,required:!1,default:720}},data:function(){return{hasChange:!1,hasInit:!1,tinymceId:this.id||"vue-tinymce-"+ +new Date}},watch:{value:function(t){var e=this;!this.hasChange&&this.hasInit&&this.$nextTick((function(){return window.tinymce.get(e.tinymceId).setContent(t)}))}},mounted:function(){this.initTinymce()},activated:function(){this.initTinymce()},deactivated:function(){this.destroyTinymce()},destroyed:function(){this.destroyTinymce()},methods:{initTinymce:function(){var t=this,e=this;window.tinymce.init({selector:"#".concat(this.tinymceId),width:this.width,height:this.height,language:"zh_CN",body_class:"panel-body ",object_resizing:!1,toolbar:this.toolbar.length>0?this.toolbar:tt,menubar:!1,plugins:Q,end_container_on_empty_block:!0,powerpaste_word_import:"clean",code_dialog_height:450,code_dialog_width:1e3,advlist_bullet_styles:"square",advlist_number_styles:"default",imagetools_cors_hosts:["www.tinymce.com","codepen.io"],default_link_target:"_blank",link_title:!1,init_instance_callback:function(a){e.value&&a.setContent(e.value),e.hasInit=!0,a.on("NodeChange Change KeyUp SetContent",(function(){t.hasChange=!0,t.$emit("input",a.getContent())}))}})},destroyTinymce:function(){window.tinymce.get(this.tinymceId)&&window.tinymce.get(this.tinymceId).destroy()},setContent:function(t){window.tinymce.get(this.tinymceId).setContent(t)},getContent:function(){window.tinymce.get(this.tinymceId).getContent()},imageSuccessCBK:function(t){var e=this;t.forEach((function(t){window.tinymce.get(e.tinymceId).insertContent('<img class="wscnph" src="'.concat(t.url,'" >'))}))}}},at=et,it=(a("3f4f"),Object(P["a"])(at,q,M,!1,null,"4b130a7e",null)),rt=it.exports,nt={name:"ProductAttrDetail",components:{SingleUpload:_["a"],MultiUpload:U,Tinymce:rt},props:{value:Object,isEdit:{type:Boolean,default:!1}},data:function(){return{hasEditCreated:!1,productAttributeCategoryOptions:[],selectProductAttr:[],selectProductParam:[],selectProductAttrPics:[],addProductAttrValue:"",activeHtmlName:"mobile"}},computed:{hasAttrPic:function(){return!(this.selectProductAttrPics.length<1)},productId:function(){return this.value.id},selectProductPics:{get:function(){var t=[];if(void 0===this.value.pic||null==this.value.pic||""===this.value.pic)return t;if(t.push(this.value.pic),void 0===this.value.albumPics||null==this.value.albumPics||""===this.value.albumPics)return t;for(var e=this.value.albumPics.split(","),a=0;a<e.length;a++)t.push(e[a]);return t},set:function(t){if(null==t||0===t.length)this.value.pic=null,this.value.albumPics=null;else if(this.value.pic=t[0],this.value.albumPics="",t.length>1)for(var e=1;e<t.length;e++)this.value.albumPics+=t[e],e!==t.length-1&&(this.value.albumPics+=",")}}},created:function(){this.getProductAttrCateList()},watch:{productId:function(t){this.isEdit&&(this.hasEditCreated||void 0!==t&&null!=t&&0!==t&&this.handleEditCreated())}},methods:{handleEditCreated:function(){null!=this.value.productAttributeCategoryId&&this.handleProductAttrChange(this.value.productAttributeCategoryId),this.hasEditCreated=!0},getProductAttrCateList:function(){var t=this,e={pageNum:1,pageSize:100};Object(j["c"])(e).then((function(e){t.productAttributeCategoryOptions=[];for(var a=e.data.records,i=0;i<a.length;i++)t.productAttributeCategoryOptions.push({label:a[i].name,value:a[i].id})}))},getProductAttrList:function(t,e){var a=this,i={pageNum:1,pageSize:3,type:t};Object(T["a"])(e,i).then((function(e){var i=e.data.records;if(0===t){a.selectProductAttr=[];for(var r=0;r<i.length;r++){var n=[],o=[];a.isEdit&&(1===i[r].handAddStatus&&(n=a.getEditAttrOptions(i[r].id)),o=a.getEditAttrValues(r)),a.selectProductAttr.push({id:i[r].id,name:i[r].name,handAddStatus:i[r].handAddStatus,inputList:i[r].inputList,values:o,options:n})}a.isEdit&&a.refreshProductAttrPics()}else{a.selectProductParam=[];for(var l=0;l<i.length;l++){var s=null;a.isEdit&&(s=a.getEditParamValue(i[l].id)),a.selectProductParam.push({id:i[l].id,name:i[l].name,value:s,inputType:i[l].inputType,inputList:i[l].inputList})}}}))},getEditAttrOptions:function(t){for(var e=[],a=0;a<this.value.productAttributeValueList.length;a++){var i=this.value.productAttributeValueList[a];if(i.productAttributeId===t){for(var r=i.value.split(","),n=0;n<r.length;n++)e.push(r[n]);break}}return e},getEditAttrValues:function(t){var e=[];if(0===t)for(var a=0;a<this.value.skuStockList.length;a++){var i=this.value.skuStockList[a];null!=i.sp1&&-1===e.indexOf(i.sp1)&&e.push(i.sp1)}else if(1===t)for(var r=0;r<this.value.skuStockList.length;r++){var n=this.value.skuStockList[r];null!=n.sp2&&-1===e.indexOf(n.sp2)&&e.push(n.sp2)}else for(var o=0;o<this.value.skuStockList.length;o++){var l=this.value.skuStockList[o];null!=l.sp3&&-1===e.indexOf(l.sp3)&&e.push(l.sp3)}return e},getEditParamValue:function(t){for(var e=0;e<this.value.productAttributeValueList.length;e++)if(t===this.value.productAttributeValueList[e].productAttributeId)return this.value.productAttributeValueList[e].value},handleProductAttrChange:function(t){this.getProductAttrList(0,t),this.getProductAttrList(1,t)},getInputListArr:function(t){return t.split(",")},handleAddProductAttrValue:function(t){var e=this.selectProductAttr[t].options;null!=this.addProductAttrValue&&""!=this.addProductAttrValue?-1===e.indexOf(this.addProductAttrValue)?(this.selectProductAttr[t].options.push(this.addProductAttrValue),this.addProductAttrValue=null):this.$message({message:"属性值不能重复",type:"warning",duration:1e3}):this.$message({message:"属性值不能为空",type:"warning",duration:1e3})},handleRemoveProductAttrValue:function(t,e){this.selectProductAttr[t].options.splice(e,1)},getProductSkuSp:function(t,e){return 0===e?t.sp1:1===e?t.sp2:t.sp3},handleRefreshProductSkuList:function(){var t=this;this.$confirm("刷新列表将导致sku信息重新生成,是否要刷新","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){t.refreshProductSkuList()}))},handleSyncProductSkuPrice:function(){var t=this;this.$confirm("将同步第一个sku的价格到所有sku,是否继续","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){if(null!==t.value.skuStockList&&t.value.skuStockList.length>0)for(var e=t.value.skuStockList[0].price,a=0;a<t.value.skuStockList.length;a++)t.value.skuStockList[a].price=e}))},refreshProductSkuList:function(){this.value.skuStockList=[];var t=this.value.skuStockList;if(1===this.selectProductAttr.length)for(var e=this.selectProductAttr[0].values,a=0;a<e.length;a++)t.push({sp1:e[a]});else if(2===this.selectProductAttr.length)for(var i=this.selectProductAttr[0].values,r=this.selectProductAttr[1].values,n=0;n<i.length;n++)if(0!==r.length)for(var o=0;o<r.length;o++)t.push({sp1:i[n],sp2:r[o]});else t.push({sp1:i[n]});else for(var l=this.selectProductAttr[0].values,s=this.selectProductAttr[1].values,u=this.selectProductAttr[2].values,c=0;c<l.length;c++)if(0!==s.length)for(var d=0;d<s.length;d++)if(0!==u.length)for(var p=0;p<u.length;p++)t.push({sp1:l[c],sp2:s[d],sp3:u[p]});else t.push({sp1:l[c],sp2:s[d]});else t.push({sp1:l[c]})},refreshProductAttrPics:function(){if(this.selectProductAttrPics=[],this.selectProductAttr.length>=1)for(var t=this.selectProductAttr[0].values,e=0;e<t.length;e++){var a=null;this.isEdit&&(a=this.getProductSkuPic(t[e])),this.selectProductAttrPics.push({name:t[e],pic:a})}},getProductSkuPic:function(t){for(var e=0;e<this.value.skuStockList.length;e++)if(t===this.value.skuStockList[e].sp1)return this.value.skuStockList[e].pic;return null},mergeProductAttrValue:function(){this.value.productAttributeValueList=[];for(var t=0;t<this.selectProductAttr.length;t++){var e=this.selectProductAttr[t];1===e.handAddStatus&&null!=e.options&&e.options.length>0&&this.value.productAttributeValueList.push({productAttributeId:e.id,name:e.name,type:1,value:this.getOptionStr(e.options)})}for(var a=0;a<this.selectProductParam.length;a++){var i=this.selectProductParam[a];this.value.productAttributeValueList.push({productAttributeId:i.id,name:i.name,type:2,value:i.value})}},mergeProductAttrPics:function(){for(var t=0;t<this.selectProductAttrPics.length;t++)for(var e=0;e<this.value.skuStockList.length;e++)this.value.skuStockList[e].sp1===this.selectProductAttrPics[t].name&&(this.value.skuStockList[e].pic=this.selectProductAttrPics[t].pic)},getOptionStr:function(t){for(var e="",a=0;a<t.length;a++)e+=t[a],a!=t.length-1&&(e+=",");return e},handleRemoveProductSku:function(t,e){var a=this.value.skuStockList;1===a.length?a.pop():a.splice(t,1)},getParamInputList:function(t){return t.split(",")},handlePrev:function(){this.$emit("prevStep")},handleNext:function(){this.mergeProductAttrValue(),this.mergeProductAttrPics(),this.$emit("nextStep")},handleFinishCommit:function(){this.$emit("finishCommit",this.isEdit)}}},ot=nt,lt=(a("b3d4"),Object(P["a"])(ot,L,I,!1,null,"4933adcc",null)),st=lt.exports,ut={albumPics:"",brandId:null,brandName:"",deleteStatus:0,description:"",tags:"",tagsArr:"",detailDesc:"",detailHtml:"",detailMobileHtml:"",detailTitle:"",feightTemplateId:0,flashPromotionCount:0,flashPromotionId:0,flashPromotionPrice:0,flashPromotionSort:0,giftPoint:0,giftGrowth:0,keywords:"",lowStock:0,name:"",newStatus:0,note:"",originalPrice:0,pic:"",memberPriceList:[],productFullReductionList:[{fullPrice:0,reducePrice:0}],productLadderList:[{count:0,discount:0,price:0}],previewStatus:0,price:0,productAttributeCategoryId:null,productAttributeValueList:[],skuStockList:[],subjectProductRelationList:[],prefrenceAreaProductRelationList:[],productCategoryId:null,productCategoryName:"",areaId:null,areaName:"",productSn:"",promotionEndTime:"",promotionPerLimit:0,promotionPrice:0,promotionStartTime:"",promotionType:0,storeClassId:null,publishStatus:0,isFenxiao:0,isVip:0,recommandStatus:0,sale:0,serviceIds:"",sort:0,stock:0,subTitle:"",unit:"",usePointLimit:0,verifyStatus:0,transfee:0,weight:0},ct={name:"ProductDetail",components:{ProductInfoDetail:k,ProductSaleDetail:x,ProductAttrDetail:st},props:{isEdit:{type:Boolean,default:!1}},data:function(){return{active:0,productParam:Object.assign({},ut),showStatus:[!0,!1,!1,!1]}},created:function(){var t=this;this.isEdit&&Object(f["e"])(this.$route.query.id).then((function(e){t.productParam=e.data,console.log("kkkkk",t.productParam)}))},methods:{hideAll:function(){for(var t=0;t<this.showStatus.length;t++)this.showStatus[t]=!1},prevStep:function(){this.active>0&&this.active<this.showStatus.length&&(this.active--,this.hideAll(),this.showStatus[this.active]=!0)},nextStep:function(){this.active<this.showStatus.length-1&&(this.active++,this.hideAll(),this.showStatus[this.active]=!0)},finishCommit:function(t){var e=this;console.log(this.productParam),this.productParam.tagList&&(this.productParam.tags=this.productParam.tagList.join(","),this.productParam.tagList=null),this.$confirm("是否要提交该产品","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){t?Object(f["j"])(e.$route.query.id,e.productParam).then((function(t){e.$message({type:"success",message:"提交成功",duration:1e3}),e.$router.back()})):Object(f["a"])(e.productParam).then((function(t){e.$message({type:"success",message:"提交成功",duration:1e3}),location.reload()}))}))}}},dt=ct,pt=(a("efcf"),Object(P["a"])(dt,i,r,!1,null,null,null));e["a"]=pt.exports},"3f4f":function(t,e,a){"use strict";a("a247")},"4c68":function(t,e,a){"use strict";a("84f1")},"4e33":function(t,e){tinymce.addI18n("zh_CN",{Cut:"剪切","Heading 5":"标题5","Header 2":"标题2","Your browser doesn't support direct access to the clipboard. Please use the Ctrl+X/C/V keyboard shortcuts instead.":"你的浏览器不支持对剪贴板的访问,请使用Ctrl+X/C/V键进行复制粘贴。","Heading 4":"标题4",Div:"Div区块","Heading 2":"标题2",Paste:"粘贴",Close:"关闭","Font Family":"字体",Pre:"预格式文本","Align right":"右对齐","New document":"新文档",Blockquote:"引用","Numbered list":"编号列表","Heading 1":"标题1",Headings:"标题","Increase indent":"增加缩进",Formats:"格式",Headers:"标题","Select all":"全选","Header 3":"标题3",Blocks:"区块",Undo:"撤消",Strikethrough:"删除线","Bullet list":"项目符号","Header 1":"标题1",Superscript:"上标","Clear formatting":"清除格式","Font Sizes":"字号",Subscript:"下标","Header 6":"标题6",Redo:"重复",Paragraph:"段落",Ok:"确定",Bold:"粗体",Code:"代码",Italic:"斜体","Align center":"居中","Header 5":"标题5","Heading 6":"标题6","Heading 3":"标题3","Decrease indent":"减少缩进","Header 4":"标题4","Paste is now in plain text mode. Contents will now be pasted as plain text until you toggle this option off.":"当前为纯文本粘贴模式,再次点击可以回到普通粘贴模式。",Underline:"下划线",Cancel:"取消",Justify:"两端对齐",Inline:"文本",Copy:"复制","Align left":"左对齐","Visual aids":"网格线","Lower Greek":"小写希腊字母",Square:"方块",Default:"默认","Lower Alpha":"小写英文字母",Circle:"空心圆",Disc:"实心圆","Upper Alpha":"大写英文字母","Upper Roman":"大写罗马字母","Lower Roman":"小写罗马字母","Id should start with a letter, followed only by letters, numbers, dashes, dots, colons or underscores.":"标识符应该以字母开头,后跟字母、数字、破折号、点、冒号或下划线。",Name:"名称",Anchor:"锚点",Id:"标识符","You have unsaved changes are you sure you want to navigate away?":"你还有文档尚未保存,确定要离开?","Restore last draft":"恢复上次的草稿","Special character":"特殊符号","Source code":"源代码",Language:"语言","Insert/Edit code sample":"插入/编辑代码示例",B:"B",R:"R",G:"G",Color:"颜色","Right to left":"从右到左","Left to right":"从左到右",Emoticons:"表情",Robots:"机器人","Document properties":"文档属性",Title:"标题",Keywords:"关键词",Encoding:"编码",Description:"描述",Author:"作者",Fullscreen:"全屏","Horizontal line":"水平分割线","Horizontal space":"水平边距","Insert/edit image":"插入/编辑图片",General:"普通",Advanced:"高级",Source:"地址",Border:"边框","Constrain proportions":"保持纵横比","Vertical space":"垂直边距","Image description":"图片描述",Style:"样式",Dimensions:"大小","Insert image":"插入图片",Image:"图片","Zoom in":"放大",Contrast:"对比度",Back:"后退",Gamma:"伽马值","Flip horizontally":"水平翻转",Resize:"调整大小",Sharpen:"锐化","Zoom out":"缩小","Image options":"图片选项",Apply:"应用",Brightness:"亮度","Rotate clockwise":"顺时针旋转","Rotate counterclockwise":"逆时针旋转","Edit image":"编辑图片","Color levels":"颜色层次",Crop:"裁剪",Orientation:"方向","Flip vertically":"垂直翻转",Invert:"反转","Date/time":"日期/时间","Insert date/time":"插入日期/时间","Remove link":"删除链接",Url:"地址","Text to display":"显示文字",Anchors:"锚点","Insert link":"插入链接",Link:"链接","New window":"在新窗口打开",None:"无","The URL you entered seems to be an external link. Do you want to add the required http:// prefix?":"你所填写的URL地址属于外部链接,需要加上http://:前缀吗?","Paste or type a link":"粘贴或输入链接",Target:"打开方式","The URL you entered seems to be an email address. Do you want to add the required mailto: prefix?":"你所填写的URL地址为邮件地址,需要加上mailto:前缀吗?","Insert/edit link":"插入/编辑链接","Insert/edit video":"插入/编辑视频",Media:"媒体","Alternative source":"镜像","Paste your embed code below:":"将内嵌代码粘贴在下面:","Insert video":"插入视频",Poster:"封面","Insert/edit media":"插入/编辑媒体",Embed:"内嵌","Nonbreaking space":"不间断空格","Page break":"分页符","Paste as text":"粘贴为文本",Preview:"预览",Print:"打印",Save:"保存","Could not find the specified string.":"未找到搜索内容.",Replace:"替换",Next:"下一个","Whole words":"全字匹配","Find and replace":"查找和替换","Replace with":"替换为",Find:"查找","Replace all":"全部替换","Match case":"区分大小写",Prev:"上一个",Spellcheck:"拼写检查",Finish:"完成","Ignore all":"全部忽略",Ignore:"忽略","Add to Dictionary":"添加到字典","Insert row before":"在上方插入",Rows:"行",Height:"高","Paste row after":"粘贴到下方",Alignment:"对齐方式","Border color":"边框颜色","Column group":"列组",Row:"行","Insert column before":"在左侧插入","Split cell":"拆分单元格","Cell padding":"单元格内边距","Cell spacing":"单元格外间距","Row type":"行类型","Insert table":"插入表格",Body:"表体",Caption:"标题",Footer:"表尾","Delete row":"删除行","Paste row before":"粘贴到上方",Scope:"范围","Delete table":"删除表格","H Align":"水平对齐",Top:"顶部对齐","Header cell":"表头单元格",Column:"列","Row group":"行组",Cell:"单元格",Middle:"垂直居中","Cell type":"单元格类型","Copy row":"复制行","Row properties":"行属性","Table properties":"表格属性",Bottom:"底部对齐","V Align":"垂直对齐",Header:"表头",Right:"右对齐","Insert column after":"在右侧插入",Cols:"列","Insert row after":"在下方插入",Width:"宽","Cell properties":"单元格属性",Left:"左对齐","Cut row":"剪切行","Delete column":"删除列",Center:"居中","Merge cells":"合并单元格","Insert template":"插入模板",Templates:"模板","Background color":"背景色","Custom...":"自定义...","Custom color":"自定义颜色","No color":"无","Text color":"文字颜色","Table of Contents":"内容列表","Show blocks":"显示区块边框","Show invisible characters":"显示不可见字符","Words: {0}":"字数:{0}",Insert:"插入",File:"文件",Edit:"编辑","Rich Text Area. Press ALT-F9 for menu. Press ALT-F10 for toolbar. Press ALT-0 for help":"在编辑区按ALT-F9打开菜单,按ALT-F10打开工具栏,按ALT-0查看帮助",Tools:"工具",View:"视图",Table:"表格",Format:"格式"})},"5e35":function(t,e,a){"use strict";a.d(e,"c",(function(){return r})),a.d(e,"a",(function(){return n})),a.d(e,"b",(function(){return o})),a.d(e,"e",(function(){return l})),a.d(e,"d",(function(){return s}));var i=a("b775");function r(t){return Object(i["a"])({url:"/mall/pms/PmsProductAttributeCategory/list",method:"get",params:t})}function n(t){return Object(i["a"])({url:"/mall/pms/PmsProductAttributeCategory/create",method:"post",data:t})}function o(t){return Object(i["a"])({url:"/mall/pms/PmsProductAttributeCategory/delete/"+t,method:"get"})}function l(t,e){return Object(i["a"])({url:"/mall/pms/PmsProductAttributeCategory/update/"+t,method:"post",data:e})}function s(){return Object(i["a"])({url:"/mall/pms/PmsProductAttributeCategory/list/withAttr",method:"get"})}},"62a6":function(t,e,a){},"6e0d":function(t,e,a){"use strict";a.d(e,"a",(function(){return r}));var i=a("b775");function r(){return Object(i["a"])({url:"/aliyun/oss/policy",method:"get"})}},"84f1":function(t,e,a){},"9add":function(t,e,a){"use strict";a.d(e,"c",(function(){return r})),a.d(e,"a",(function(){return n})),a.d(e,"g",(function(){return o})),a.d(e,"f",(function(){return l})),a.d(e,"b",(function(){return s})),a.d(e,"d",(function(){return u})),a.d(e,"e",(function(){return c}));var i=a("b775");function r(t){return Object(i["a"])({url:"/mall/pms/PmsBrand/list",method:"post",data:t})}function n(t){return Object(i["a"])({url:"/mall/pms/PmsBrand/create",method:"post",data:t})}function o(t){return Object(i["a"])({url:"/mall/pms/PmsBrand/update/showStatus",method:"post",data:t})}function l(t){return Object(i["a"])({url:"/mall/pms/PmsBrand/update/factoryStatus",method:"post",data:t})}function s(t){return Object(i["a"])({url:"/mall/pms/PmsBrand/delete",method:"DELETE",data:t,headers:{"Content-Type":"application/json"}})}function u(t){return Object(i["a"])({url:"/mall/pms/PmsBrand/"+t,method:"get"})}function c(t,e){return Object(i["a"])({url:"/mall/pms/PmsBrand/update/"+t,method:"post",data:e})}},a247:function(t,e,a){},aaea:function(t,e,a){"use strict";a("62a6")},b089:function(t,e,a){},b3d4:function(t,e,a){"use strict";a("b089")},c4c8:function(t,e,a){"use strict";a.d(e,"c",(function(){return r})),a.d(e,"f",(function(){return n})),a.d(e,"g",(function(){return o})),a.d(e,"b",(function(){return l})),a.d(e,"i",(function(){return s})),a.d(e,"l",(function(){return u})),a.d(e,"m",(function(){return c})),a.d(e,"k",(function(){return d})),a.d(e,"h",(function(){return p})),a.d(e,"n",(function(){return h})),a.d(e,"a",(function(){return m})),a.d(e,"j",(function(){return f})),a.d(e,"d",(function(){return v})),a.d(e,"e",(function(){return g}));var i=a("b775");function r(t){return Object(i["a"])({url:"/pms/PmsProduct/list",method:"get",params:t})}function n(t){return Object(i["a"])({url:"/pms/PmsProduct/simpleProductList",method:"get",params:t})}function o(t){return Object(i["a"])({url:"/pms/PmsProduct/update/deleteStatus",method:"post",params:t})}function l(t){return Object(i["a"])({url:"/pms/PmsProduct/delete/"+t,method:"get"})}function s(t){return Object(i["a"])({url:"/pms/PmsProduct/update/newStatus",method:"post",params:t})}function u(t){return Object(i["a"])({url:"/pms/PmsProduct/update/recommendStatus",method:"post",params:t})}function c(t){return Object(i["a"])({url:"/pms/PmsProduct/update/verifyStatus",method:"post",params:t})}function d(t){return Object(i["a"])({url:"/pms/PmsProduct/update/publishStatus",method:"post",params:t})}function p(t){return Object(i["a"])({url:"/pms/PmsProduct/update/isFenxiao",method:"post",params:t})}function h(t){return Object(i["a"])({url:"/pms/PmsProduct/update/isVip",method:"post",params:t})}function m(t){return Object(i["a"])({url:"/pms/PmsProduct/create",method:"post",data:t})}function f(t,e){return Object(i["a"])({url:"/pms/PmsProduct/update/"+t,method:"post",data:e})}function v(t){return Object(i["a"])({url:"/pms/PmsProduct/fetchVList/"+t,method:"get"})}function g(t){return Object(i["a"])({url:"/pms/PmsProduct/updateInfo/"+t,method:"get"})}},c8aa:function(t,e,a){"use strict";a.d(e,"a",(function(){return r}));var i=a("b775");function r(t,e){return Object(i["a"])({url:"/pms/PmsProductAttribute/list/"+t,method:"get",params:e})}},d1f3:function(t,e,a){"use strict";a.d(e,"d",(function(){return r})),a.d(e,"c",(function(){return n})),a.d(e,"b",(function(){return o})),a.d(e,"a",(function(){return l})),a.d(e,"i",(function(){return s})),a.d(e,"f",(function(){return u})),a.d(e,"j",(function(){return c})),a.d(e,"g",(function(){return d})),a.d(e,"h",(function(){return p})),a.d(e,"e",(function(){return h}));var i=a("b775");function r(t){return Object(i["a"])({url:"/mall/pms/PmsProductCategory/list",method:"post",data:t})}function n(t,e){return Object(i["a"])({url:"/mall/pms/PmsProductCategory/list/"+t,method:"get",params:e})}function o(t){return Object(i["a"])({url:"/mall/pms/PmsProductCategory/delete",method:"DELETE",data:t,headers:{"Content-Type":"application/json"}})}function l(t){return Object(i["a"])({url:"/mall/pms/PmsProductCategory/create",method:"post",data:t})}function s(t,e){return Object(i["a"])({url:"/mall/pms/PmsProductCategory/update/"+t,method:"post",data:e})}function u(t){return Object(i["a"])({url:"/mall/pms/PmsProductCategory/"+t,method:"get"})}function c(t){return Object(i["a"])({url:"/mall/pms/PmsProductCategory/update/showStatus",method:"post",data:t})}function d(t){return Object(i["a"])({url:"/mall/pms/PmsProductCategory/update/indexStatus",method:"post",data:t})}function p(t){return Object(i["a"])({url:"/mall/pms/PmsProductCategory/update/navStatus",method:"post",data:t})}function h(){return Object(i["a"])({url:"/mall/pms/PmsProductCategory/list/withChildren",method:"get"})}},efcf:function(t,e,a){"use strict";a("1292")}}]);