0.e5ee56e170ae61156d29.js 68 KB

12
  1. webpackJsonp([0],{"04Zj":function(t,e){},"0QkR":function(t,e,i){"use strict";e.b=function(){return Object(a.a)({url:"/subject/listAll",method:"get"})},e.a=function(t){return Object(a.a)({url:"/subject/list",method:"get",params:t})};var a=i("vLgD")},"3idm":function(t,e,i){"use strict";e.c=function(t,e){return Object(a.a)({url:"/productAttribute/list/"+t,method:"get",params:e})},e.b=function(t){return Object(a.a)({url:"/productAttribute/delete",method:"post",data:t,requestType:"form"})},e.a=function(t){return Object(a.a)({url:"/productAttribute/create",method:"post",data:t})},e.f=function(t,e){return Object(a.a)({url:"/productAttribute/update/"+t,method:"post",data:e})},e.d=function(t){return Object(a.a)({url:"/productAttribute/"+t,method:"get"})},e.e=function(t){return Object(a.a)({url:"/productAttribute/attrInfo/"+t,method:"get"})};var a=i("vLgD")},"4WTo":function(t,e,i){var a=i("NWt+");t.exports=function(t,e){var i=[];return a(t,!1,i.push,i,e),i}},"4cjj":function(t,e,i){"use strict";e.c=function(t){return Object(a.a)({url:"/coupon/list",method:"get",params:t})},e.a=function(t){return Object(a.a)({url:"/coupon/create",method:"post",data:t})},e.d=function(t){return Object(a.a)({url:"/coupon/"+t,method:"get"})},e.e=function(t,e){return Object(a.a)({url:"/coupon/update/"+t,method:"post",data:e})},e.b=function(t){return Object(a.a)({url:"/coupon/delete/"+t,method:"post"})};var a=i("vLgD")},"5zde":function(t,e,i){i("zQR9"),i("qyJz"),t.exports=i("FeBl").Array.from},"7Doy":function(t,e,i){var a=i("EqjI"),r=i("7UMu"),n=i("dSzd")("species");t.exports=function(t){var e;return r(t)&&("function"!=typeof(e=t.constructor)||e!==Array&&!r(e.prototype)||(e=void 0),a(e)&&null===(e=e[n])&&(e=void 0)),void 0===e?Array:e}},"9Bbf":function(t,e,i){"use strict";var a=i("kM2E");t.exports=function(t){a(a.S,t,{of:function(){for(var t=arguments.length,e=new Array(t);t--;)e[t]=arguments[t];return new this(e)}})}},"9C8M":function(t,e,i){"use strict";var a=i("evD5").f,r=i("Yobk"),n=i("xH/j"),s=i("+ZMJ"),o=i("2KxR"),l=i("NWt+"),u=i("vIB/"),c=i("EGZi"),d=i("bRrM"),p=i("+E39"),h=i("06OY").fastKey,m=i("LIJb"),f=p?"_s":"size",v=function(t,e){var i,a=h(e);if("F"!==a)return t._i[a];for(i=t._f;i;i=i.n)if(i.k==e)return i};t.exports={getConstructor:function(t,e,i,u){var c=t(function(t,a){o(t,c,e,"_i"),t._t=e,t._i=r(null),t._f=void 0,t._l=void 0,t[f]=0,void 0!=a&&l(a,i,t[u],t)});return n(c.prototype,{clear:function(){for(var t=m(this,e),i=t._i,a=t._f;a;a=a.n)a.r=!0,a.p&&(a.p=a.p.n=void 0),delete i[a.i];t._f=t._l=void 0,t[f]=0},delete:function(t){var i=m(this,e),a=v(i,t);if(a){var r=a.n,n=a.p;delete i._i[a.i],a.r=!0,n&&(n.n=r),r&&(r.p=n),i._f==a&&(i._f=r),i._l==a&&(i._l=n),i[f]--}return!!a},forEach:function(t){m(this,e);for(var i,a=s(t,arguments.length>1?arguments[1]:void 0,3);i=i?i.n:this._f;)for(a(i.v,i.k,this);i&&i.r;)i=i.p},has:function(t){return!!v(m(this,e),t)}}),p&&a(c.prototype,"size",{get:function(){return m(this,e)[f]}}),c},def:function(t,e,i){var a,r,n=v(t,e);return n?n.v=i:(t._l=n={i:r=h(e,!0),k:e,v:i,p:a=t._l,n:void 0,r:!1},t._f||(t._f=n),a&&(a.n=n),t[f]++,"F"!==r&&(t._i[r]=n)),t},getEntry:v,setStrong:function(t,e,i){u(t,e,function(t,i){this._t=m(t,e),this._k=i,this._l=void 0},function(){for(var t=this._k,e=this._l;e&&e.r;)e=e.p;return this._t&&(this._l=e=e?e.n:this._t._f)?c(0,"keys"==t?e.k:"values"==t?e.v:[e.k,e.v]):(this._t=void 0,c(1))},i?"entries":"values",!i,!0),d(e)}}},"9bBU":function(t,e,i){i("mClu");var a=i("FeBl").Object;t.exports=function(t,e,i){return a.defineProperty(t,e,i)}},ALrJ:function(t,e,i){var a=i("+ZMJ"),r=i("MU5D"),n=i("sB3e"),s=i("QRG4"),o=i("oeOm");t.exports=function(t,e){var i=1==t,l=2==t,u=3==t,c=4==t,d=6==t,p=5==t||d,h=e||o;return function(e,o,m){for(var f,v,b=n(e),g=r(b),k=a(o,m,3),y=s(g.length),S=0,P=i?h(e,y):l?h(e,0):void 0;y>S;S++)if((p||S in g)&&(v=k(f=g[S],S,b),t))if(i)P[S]=v;else if(v)switch(t){case 3:return!0;case 5:return f;case 6:return S;case 2:P.push(f)}else if(c)return!1;return d?-1:u||c?c:P}}},BDhv:function(t,e,i){var a=i("kM2E");a(a.P+a.R,"Set",{toJSON:i("m9gC")("Set")})},C4MV:function(t,e,i){t.exports={default:i("9bBU"),__esModule:!0}},Cdx3:function(t,e,i){var a=i("sB3e"),r=i("lktj");i("uqUo")("keys",function(){return function(t){return r(a(t))}})},CmKi:function(t,e,i){"use strict";var a=i("woOf"),r=i.n(a),n=i("mRsl"),s=i("s/Rn"),o=i("UgCr"),l={name:"ProductInfoDetail",props:{value:Object,isEdit:{type:Boolean,default:!1}},data:function(){return{hasEditCreated:!1,selectProductCateValue:[],productCateOptions:[],brandOptions:[],rules:{name:[{required:!0,message:"请输入商品名称",trigger:"blur"},{min:2,max:140,message:"长度在 2 到 140 个字符",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"}],price:[{required:!0,message:"请输入商品售价",trigger:"blur"}],originalPrice:[{required:!0,message:"请输入商品市场价",trigger:"blur"}]}}},created:function(){this.getProductCateList(),this.getBrandList()},computed:{productId:function(){return this.value.id}},watch:{productId:function(t){console.log("productId",t,this.isEdit),this.hasEditCreated||void 0!==t&&null!=t&&0!==t&&this.handleEditCreated()},selectProductCateValue:function(t){console.log(t,"newValue"),null!=t&&2===t.length?(this.value.productCategoryId=t[1],this.value.productCategoryName=this.getCateNameById(this.value.productCategoryId)):(this.value.productCategoryId=null,this.value.productCategoryName=null)}},methods:{handleEditCreated:function(){null!=this.value.productCategoryId&&(this.selectProductCateValue.push(this.value.cateParentId),this.selectProductCateValue.push(this.value.productCategoryId)),this.hasEditCreated=!0},getProductCateList:function(){var t=this;console.log("获取商品分类"),Object(n.d)().then(function(e){var i=e.data;t.productCateOptions=[];for(var a=0;a<i.length;a++){var r=[];if(null!=i[a].children&&i[a].children.length>0)for(var n=0;n<i[a].children.length;n++)r.push({label:i[a].children[n].name,value:i[a].children[n].id});t.productCateOptions.push({label:i[a].name,value:i[a].id,children:r})}})},getBrandList:function(){var t=this;Object(s.c)({pageNum:1,pageSize:100}).then(function(e){t.brandOptions=[];for(var i=e.data.list,a=0;a<i.length;a++)t.brandOptions.push({label:i[a].name,value:i[a].id})})},getCateNameById:function(t){for(var e=null,i=0;i<this.productCateOptions.length;i++)for(var a=0;a<this.productCateOptions[i].children.length;a++)if(this.productCateOptions[i].children[a].value===t)return e=this.productCateOptions[i].children[a].label;return e},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="",i=0;i<this.brandOptions.length;i++)if(this.brandOptions[i].value===t){e=this.brandOptions[i].label;break}this.value.brandName=e}}},u={render:function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticStyle:{"margin-top":"50px"}},[i("el-form",{ref:"productInfoForm",staticStyle:{width:"600px"},attrs:{model:t.value,rules:t.rules,"label-width":"120px",size:"small"}},[i("el-form-item",{attrs:{label:"商品分类:",prop:"productCategoryId"}},[i("el-cascader",{attrs:{disabled:!t.isEdit,options:t.productCateOptions},model:{value:t.selectProductCateValue,callback:function(e){t.selectProductCateValue=e},expression:"selectProductCateValue"}})],1),t._v(" "),i("el-form-item",{attrs:{label:"商品名称:",prop:"name"}},[i("el-input",{attrs:{disabled:!t.isEdit},model:{value:t.value.name,callback:function(e){t.$set(t.value,"name",e)},expression:"value.name"}})],1),t._v(" "),i("el-form-item",{attrs:{label:"商品品牌:",prop:"brandId"}},[i("el-select",{attrs:{disabled:!t.isEdit,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 i("el-option",{key:t.value,attrs:{label:t.label,value:t.value}})}))],1),t._v(" "),i("el-form-item",{attrs:{label:"商品货号:"}},[i("el-input",{attrs:{disabled:!t.isEdit},model:{value:t.value.productSn,callback:function(e){t.$set(t.value,"productSn",e)},expression:"value.productSn"}})],1),t._v(" "),i("el-form-item",{attrs:{label:"商品售价:",prop:"price"}},[i("el-input-number",{staticClass:"number-input",attrs:{disabled:!t.isEdit,autocomplete:"off","controls-position":"right",type:"number"},model:{value:t.value.price,callback:function(e){t.$set(t.value,"price",e)},expression:"value.price"}})],1),t._v(" "),i("el-form-item",{attrs:{label:"市场价:",prop:"originalPrice"}},[i("el-input-number",{staticClass:"number-input",attrs:{type:"number",autocomplete:"off","controls-position":"right",disabled:!t.isEdit},model:{value:t.value.originalPrice,callback:function(e){t.$set(t.value,"originalPrice",e)},expression:"value.originalPrice"}})],1),t._v(" "),i("el-form-item",{attrs:{label:"商品库存:"}},[i("el-input-number",{staticClass:"number-input",attrs:{type:"number",autocomplete:"off","controls-position":"right",disabled:!t.isEdit},model:{value:t.value.stock,callback:function(e){t.$set(t.value,"stock",e)},expression:"value.stock"}})],1),t._v(" "),i("el-form-item",{attrs:{label:"排序"}},[i("el-input-number",{attrs:{disabled:!t.isEdit},model:{value:t.value.sort,callback:function(e){t.$set(t.value,"sort",e)},expression:"value.sort"}})],1),t._v(" "),i("el-form-item",{staticStyle:{"text-align":"center"}},[i("el-button",{attrs:{type:"primary",size:"medium"},on:{click:function(e){t.handleNext("productInfoForm")}}},[t._v("下一步,填写商品促销")])],1)],1)],1)},staticRenderFns:[]};var c=i("VU/8")(l,u,!1,function(t){i("FCYw")},"data-v-10a7af6c",null).exports,d=i("vLgD");var p={name:"ProductSaleDetail",props:{value:Object,isEdit:{type:Boolean,default:!1}},data:function(){return{pickerOptions1:{disabledDate:function(t){return t.getTime()<Date.now()}}}},created:function(){var t,e=this;this.isEdit||(t={defaultStatus:0},Object(d.a)({url:"/memberLevel/list",method:"get",params:t})).then(function(t){for(var i=[],a=0;a<t.data.length;a++){var r=t.data[a];i.push({memberLevelId:r.id,memberLevelName:r.name})}e.value.memberPriceList=i})},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(","),i=0;i<e.length;i++)t.push(Number(e[i]));return t},set:function(t){var e="";if(null!=t&&t.length>0){for(var i=0;i<t.length;i++)e+=t[i]+",";e.endsWith(",")&&(e=e.substr(0,e.length-1)),this.value.serviceIds=e}else this.value.serviceIds=null}}},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 i=this.value.productLadderList;1===i.length?(i.pop(),i.push({count:0,discount:0,price:0})):i.splice(t,1)},handleAddProductLadder:function(t,e){var i=this.value.productLadderList;i.length<3?i.push({count:0,discount:0,price:0}):this.$message({message:"最多只能添加三条",type:"warning"})},handleRemoveFullReduction:function(t,e){var i=this.value.productFullReductionList;1===i.length?(i.pop(),i.push({fullPrice:0,reducePrice:0})):i.splice(t,1)},handleAddFullReduction:function(t,e){var i=this.value.productFullReductionList;i.length<3?i.push({fullPrice:0,reducePrice:0}):this.$message({message:"最多只能添加三条",type:"warning"})},handlePrev:function(){this.$emit("prevStep")},handleNext:function(){this.$emit("nextStep")}}},h={render:function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticStyle:{"margin-top":"50px"}},[i("el-form",{ref:"productSaleForm",staticStyle:{width:"600px"},attrs:{model:t.value,"label-width":"120px",size:"small"}},[i("el-form-item",{attrs:{label:"商品上架:"}},[i("el-switch",{attrs:{disabled:!t.isEdit,"active-value":1,"inactive-value":0},model:{value:t.value.publishStatus,callback:function(e){t.$set(t.value,"publishStatus",e)},expression:"value.publishStatus"}})],1),t._v(" "),i("el-form-item",{attrs:{label:"商品推荐:"}},[i("span",{staticStyle:{"margin-right":"10px"}},[t._v("新品")]),t._v(" "),i("el-switch",{attrs:{disabled:!t.isEdit,"active-value":1,"inactive-value":0},model:{value:t.value.newStatus,callback:function(e){t.$set(t.value,"newStatus",e)},expression:"value.newStatus"}}),t._v(" "),i("span",{staticStyle:{"margin-left":"10px","margin-right":"10px"}},[t._v("推荐")]),t._v(" "),i("el-switch",{attrs:{disabled:!t.isEdit,"active-value":1,"inactive-value":0},model:{value:t.value.recommandStatus,callback:function(e){t.$set(t.value,"recommandStatus",e)},expression:"value.recommandStatus"}})],1),t._v(" "),i("el-form-item",{directives:[{name:"show",rawName:"v-show",value:1===t.value.promotionType,expression:"value.promotionType===1"}]},[i("div",[t._v("\n 开始时间:\n "),i("el-date-picker",{attrs:{disabled:!t.isEdit,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),t._v(" "),i("div",{staticClass:"littleMargin"},[t._v("\n 结束时间:\n "),i("el-date-picker",{attrs:{disabled:!t.isEdit,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),t._v(" "),i("div",{staticClass:"littleMargin"},[t._v("\n 促销价格:\n "),i("el-input",{staticStyle:{width:"220px"},attrs:{disabled:!t.isEdit,placeholder:"输入促销价格"},model:{value:t.value.promotionPrice,callback:function(e){t.$set(t.value,"promotionPrice",e)},expression:"value.promotionPrice"}})],1)]),t._v(" "),i("el-form-item",{directives:[{name:"show",rawName:"v-show",value:2===t.value.promotionType,expression:"value.promotionType===2"}]},t._l(t.value.memberPriceList,function(e,a){return i("div",{class:{littleMargin:0!==a}},[t._v("\n "+t._s(e.memberLevelName)+":\n "),i("el-input",{staticStyle:{width:"200px"},attrs:{disabled:!t.isEdit},model:{value:e.memberPrice,callback:function(i){t.$set(e,"memberPrice",i)},expression:"item.memberPrice"}})],1)})),t._v(" "),i("el-form-item",{directives:[{name:"show",rawName:"v-show",value:3===t.value.promotionType,expression:"value.promotionType===3"}]},[i("el-table",{staticStyle:{width:"80%"},attrs:{data:t.value.productLadderList,border:""}},[i("el-table-column",{attrs:{label:"数量",align:"center",width:"120"},scopedSlots:t._u([{key:"default",fn:function(e){return[i("el-input",{attrs:{disabled:!t.isEdit},model:{value:e.row.count,callback:function(i){t.$set(e.row,"count",i)},expression:"scope.row.count"}})]}}])}),t._v(" "),i("el-table-column",{attrs:{label:"折扣",align:"center",width:"120"},scopedSlots:t._u([{key:"default",fn:function(e){return[i("el-input",{attrs:{disabled:!t.isEdit},model:{value:e.row.discount,callback:function(i){t.$set(e.row,"discount",i)},expression:"scope.row.discount"}})]}}])}),t._v(" "),i("el-table-column",{attrs:{align:"center",label:"操作"},scopedSlots:t._u([{key:"default",fn:function(e){return[i("el-button",{attrs:{type:"text",disabled:!t.isEdit},on:{click:function(i){t.handleRemoveProductLadder(e.$index,e.row)}}},[t._v("删除")]),t._v(" "),i("el-button",{attrs:{type:"text",disabled:!t.isEdit},on:{click:function(i){t.handleAddProductLadder(e.$index,e.row)}}},[t._v("添加")])]}}])})],1)],1),t._v(" "),i("el-form-item",{directives:[{name:"show",rawName:"v-show",value:4===t.value.promotionType,expression:"value.promotionType===4"}]},[i("el-table",{staticStyle:{width:"80%"},attrs:{data:t.value.productFullReductionList,border:""}},[i("el-table-column",{attrs:{label:"满",align:"center",width:"120"},scopedSlots:t._u([{key:"default",fn:function(e){return[i("el-input",{model:{value:e.row.fullPrice,callback:function(i){t.$set(e.row,"fullPrice",i)},expression:"scope.row.fullPrice"}})]}}])}),t._v(" "),i("el-table-column",{attrs:{label:"立减",align:"center",width:"120"},scopedSlots:t._u([{key:"default",fn:function(e){return[i("el-input",{model:{value:e.row.reducePrice,callback:function(i){t.$set(e.row,"reducePrice",i)},expression:"scope.row.reducePrice"}})]}}])}),t._v(" "),i("el-table-column",{attrs:{align:"center",label:"操作"},scopedSlots:t._u([{key:"default",fn:function(e){return[i("el-button",{attrs:{type:"text",disabled:!t.isEdit},on:{click:function(i){t.handleRemoveFullReduction(e.$index,e.row)}}},[t._v("删除")]),t._v(" "),i("el-button",{attrs:{type:"text",disabled:!t.isEdit},on:{click:function(i){t.handleAddFullReduction(e.$index,e.row)}}},[t._v("添加")])]}}])})],1)],1),t._v(" "),i("el-form-item",{staticStyle:{"text-align":"center"}},[i("el-button",{attrs:{size:"medium"},on:{click:t.handlePrev}},[t._v("上一步,填写商品信息")]),t._v(" "),i("el-button",{attrs:{type:"primary",size:"medium"},on:{click:t.handleNext}},[t._v("下一步,填写商品属性")])],1)],1)],1)},staticRenderFns:[]};var m=i("VU/8")(p,h,!1,function(t){i("04Zj")},"data-v-77ab88bc",null).exports,f=i("mvHQ"),v=i.n(f),b=i("c/Tr"),g=i.n(b),k=i("lHA8"),y=i.n(k),S=i("KhLR"),P=i("3idm"),w=i("TZVV"),_=i("//Fk"),O=i.n(_),A=i("ZW30"),L={name:"multiUpload",props:{value:Array,maxCount:{type:Number,default:5},disabled:{type:Boolean,default:!1},bucket_name:{type:String,default:"mall"}},data:function(){return{dataObj:{policy:"",signature:"",key:"",KSSAccessKeyId:"",acl:"public-read",name:""},dialogVisible:!1,dialogImageUrl:null,useOss:!0,ossUploadUrl:"https://"+this.bucket_name+".ks3-cn-beijing.ksyuncs.com",minioUploadUrl:"http://localhost:8080/minio/upload"}},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=[],i=0;i<t.length;i++)e.push(t[i].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,i=this;return!this.useOss||new O.a(function(a,r){var n=(new Date).getTime()+t.name,s={filename:t.name,bucketName:e.bucket_name,postData:{filename:t.name,acl:"public-read",key:n,unknowValueField:[]}};Object(A.a)(s).then(function(r){i.dataObj.policy=r.data.policy,i.dataObj.signature=r.data.signature,i.dataObj.KSSAccessKeyId=r.data.kssAccessKeyId,i.dataObj.key=n,i.dataObj.name=t.name,i.dataObj.acl="public-read";var s={KSSAccessKeyId:r.data.kssAccessKeyId,policy:r.data.policy,signature:r.data.signature,key:n,acl:"public-read",uploadDomain:"https://ks3-cn-beijing.ksyuncs.com/"+e.bucket_name,autoStart:!0};document.body,new ks3FileUploader(s);a(!0)}).catch(function(t){console.log(t),r(!1)})})},handleUploadSuccess:function(t,e){var i=this.ossUploadUrl+"/"+this.dataObj.key;this.useOss||(i=t.data.url),this.fileList.push({name:e.name,url:i}),this.emitInput(this.fileList)},handleExceed:function(t,e){this.$message({message:"最多只能上传"+this.maxCount+"张图片",type:"warning",duration:1e3})}}},C={render:function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",[i("el-upload",{attrs:{disabled:t.disabled,action:t.ossUploadUrl,data:t.useOss?t.dataObj:null,"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}},[i("i",{staticClass:"el-icon-plus"})]),t._v(" "),i("el-dialog",{attrs:{visible:t.dialogVisible},on:{"update:visible":function(e){t.dialogVisible=e}}},[i("img",{attrs:{width:"100%",src:t.dialogImageUrl,alt:""}})])],1)},staticRenderFns:[]};var j=i("VU/8")(L,C,!1,function(t){i("HFkz")},null,null).exports,x=i("fZjL"),I=i.n(x),E={name:"editorSlideUpload",props:{color:{type:String,default:"#1890ff"},disabled:{type:Boolean,default:!1},bucket_name:{type:String,default:"mall"}},data:function(){return{dialogVisible:!1,listObj:{},fileList:[],dataObj:{policy:"",signature:"",key:"",KSSAccessKeyId:"",acl:"public-read",name:""},ossUploadUrl:"https://mall.ks3-cn-beijing.ksyuncs.com"}},methods:{checkAllSuccess:function(){var t=this;return I()(this.listObj).every(function(e){return t.listObj[e].hasSuccess})},handleSubmit:function(){var t=this,e=I()(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){var i=e.uid,a=I()(this.listObj);console.log(a,"objKeyArr",this.listObj);for(var r=0,n=a.length;r<n;r++)if(this.listObj[a[r]].uid===i)return this.listObj[a[r]].url=this.ossUploadUrl+"/"+this.listObj[a[r]].key,void(this.listObj[a[r]].hasSuccess=!0)},handleRemove:function(t){for(var e=t.uid,i=I()(this.listObj),a=0,r=i.length;a<r;a++)if(this.listObj[i[a]].uid===e)return void delete this.listObj[i[a]]},beforeUpload:function(t){var e=this;console.log(t,"试试批量上传");var i=this,a=t.uid;return this.listObj[a]={},new O.a(function(r,n){var s=(new Date).getTime()+t.name,o={filename:t.name,bucketName:e.bucket_name,postData:{filename:t.name,acl:"public-read",key:s,unknowValueField:[]}};Object(A.a)(o).then(function(n){i.dataObj.policy=n.data.policy,i.dataObj.signature=n.data.signature,i.dataObj.KSSAccessKeyId=n.data.kssAccessKeyId,i.dataObj.key=s,i.dataObj.name=t.name,i.dataObj.acl="public-read",i.listObj[a]={hasSuccess:!1,uid:t.uid,width:e.width,height:e.height,name:t.name,key:s},r(!0)}).catch(function(t){console.log(t),n(!1)})})}}},R={render:function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"upload-container"},[i("el-button",{style:{background:t.color,borderColor:t.color},attrs:{disabled:t.disabled,icon:"el-icon-upload",size:"mini",type:"primary"},on:{click:function(e){t.dialogVisible=!0}}},[t._v("上传图片\n ")]),t._v(" "),i("el-dialog",{attrs:{"append-to-body":"",visible:t.dialogVisible},on:{"update:visible":function(e){t.dialogVisible=e}}},[i("el-upload",{staticClass:"editor-slide-upload",attrs:{disabled:t.disabled,action:t.ossUploadUrl,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}},[i("el-button",{attrs:{size:"small",type:"primary"}},[t._v("点击上传")])],1),t._v(" "),i("el-button",{on:{click:function(e){t.dialogVisible=!1}}},[t._v("取 消")]),t._v(" "),i("el-button",{attrs:{type:"primary"},on:{click:t.handleSubmit}},[t._v("确 定")])],1)],1)},staticRenderFns:[]};var T=i("VU/8")(E,R,!1,function(t){i("RriS")},"data-v-816d571c",null).exports,$=(i("WQDg"),["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"]),D=["bold italic underline strikethrough alignleft aligncenter\n alignright outdent indent blockquote undo redo removeformat code","hr bullist numlist link image charmap\t preview anchor pagebreak\n fullscreen insertdatetime media table forecolor backcolor"],U={name:"tinymce",components:{editorImage:T},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},disabled:{type:Boolean,default:!1}},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()},methods:{initTinymce:function(){var t=this,e=this;window.tinymce.init({selector:"#"+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:D,menubar:!1,plugins:$,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(i){e.value&&i.setContent(e.value),e.hasInit=!0,i.on("NodeChange Change KeyUp SetContent",function(){t.hasChange=!0,t.$emit("input",i.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="'+t.url+'" >')})}},destroyed:function(){this.destroyTinymce()}},F={render:function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{class:t.disabled?"disable":""},[i("div",{staticClass:"tinymce-container editor-container",attrs:{disabled:t.disabled,contenteditable:t.disabled}},[i("textarea",{staticClass:"tinymce-textarea",attrs:{contenteditable:t.disabled,disabled:t.disabled,id:t.tinymceId}}),t._v(" "),i("div",{staticClass:"editor-custom-btn-container"},[i("editorImage",{staticClass:"editor-upload-btn",attrs:{disabled:t.disabled,color:"#1890ff"},on:{successCBK:t.imageSuccessCBK}})],1)])])},staticRenderFns:[]};var V=i("VU/8")(U,F,!1,function(t){i("DBIJ")},"data-v-6aa2be36",null).exports,B={name:"ProductAttrDetail",components:{SingleUpload:w.a,MultiUpload:j,Tinymce:V},props:{value:Object,isEdit:{type:Boolean,default:!1}},data:function(){return{hasEditCreated:!1,productAttributeCategoryOptions:[],selectProductAttr:[],selectProductParam:[],selectProductAttrPics:[],addProductAttrValue:"",activeHtmlName:"pc"}},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(","),i=0;i<e.length;i++)t.push(e[i]);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+=",")}},skuStockList:function(){return this.value.skuStockList}},created:function(){},mounted:function(){console.log(this.value.skuStockList),this.handleEditCreated(),this.getProductAttrCateList()},watch:{productId:function(t){this.hasEditCreated||t&&this.handleEditCreated()}},methods:{handleEditCreated:function(){null!=this.value.productAttributeCategoryId&&this.handleProductAttrChange(this.value.productAttributeCategoryId),this.hasEditCreated=!0},getProductAttrCateList:function(){var t=this;Object(S.c)({pageNum:1,pageSize:100}).then(function(e){t.productAttributeCategoryOptions=[];for(var i=e.data.list,a=0;a<i.length;a++)t.productAttributeCategoryOptions.push({label:i[a].name,value:i[a].id})})},getProductAttrList:function(t,e){var i=this;console.log("getProductAttrList","调用");var a={pageNum:1,pageSize:100,type:t};Object(P.c)(e,a).then(function(e){var a=e.data.list;if(0===t){i.selectProductAttr=[];for(var r=0;r<a.length;r++){var n=[],s=[];i.isEdit&&(1===a[r].handAddStatus&&(n=i.getEditAttrOptions(a[r].id)),s=i.getEditAttrValues(r)),i.selectProductAttr.push({id:a[r].id,name:a[r].name,handAddStatus:a[r].handAddStatus,inputList:a[r].inputList,values:s,options:n})}i.isEdit&&i.refreshProductAttrPics()}else{i.selectProductParam=[];for(var o=0;o<a.length;o++){var l=null;i.isEdit&&(l=i.getEditParamValue(a[o].id)),i.selectProductParam.push({id:a[o].id,name:a[o].name,value:l,inputType:a[o].inputType,inputList:a[o].inputList})}}})},getEditAttrOptions:function(t){for(var e=[],i=0;i<this.value.productAttributeValueList.length;i++){var a=this.value.productAttributeValueList[i];if(a.productAttributeId===t){for(var r=a.value.split(","),n=0;n<r.length;n++)e.push(r[n]);break}}return e},getEditAttrValues:function(t){var e=new y.a;if(0===t)for(var i=0;i<this.value.skuStockList.length;i++){var a=this.value.skuStockList[i],r=JSON.parse(a.spData);null!=r&&r.length>=1&&e.add(r[0].value)}else if(1===t)for(var n=0;n<this.value.skuStockList.length;n++){var s=this.value.skuStockList[n],o=JSON.parse(s.spData);null!=o&&o.length>=2&&e.add(o[1].value)}else for(var l=0;l<this.value.skuStockList.length;l++){var u=this.value.skuStockList[l],c=JSON.parse(u.spData);null!=c&&c.length>=3&&e.add(c[2].value)}return g()(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){var i=JSON.parse(t.spData);return null!=i&&e<i.length?i[e].value:null},handleRefreshProductSkuList:function(){var t=this;this.$confirm("刷新列表将导致sku信息重新生成,是否要刷新","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){t.refreshProductAttrPics(),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){var e=[];e=e.concat(e,t.value.skuStockList);for(var i=t.value.skuStockList[0].price,a=0;a<e.length;a++)e[a].price=i;t.value.skuStockList=[],t.value.skuStockList=t.value.skuStockList.concat(t.value.skuStockList,e)}})},handleSyncProductSkuStock:function(){var t=this;this.$confirm("将同步第一个sku的库存到所有sku,是否继续","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){if(null!==t.value.skuStockList&&t.value.skuStockList.length>0){var e=[];e=e.concat(e,t.value.skuStockList);for(var i=t.value.skuStockList[0].stock,a=t.value.skuStockList[0].lowStock,r=0;r<e.length;r++)e[r].stock=i,e[r].lowStock=a;t.value.skuStockList=[],t.value.skuStockList=t.value.skuStockList.concat(t.value.skuStockList,e)}})},refreshProductSkuList:function(){this.value.skuStockList=[];var t=this.value.skuStockList;if(1===this.selectProductAttr.length)for(var e=this.selectProductAttr[0],i=0;i<e.values.length;i++)t.push({spData:v()([{key:e.name,value:e.values[i]}])});else if(2===this.selectProductAttr.length)for(var a=this.selectProductAttr[0],r=this.selectProductAttr[1],n=0;n<a.values.length;n++)if(0!==r.values.length)for(var s=0;s<r.values.length;s++){var o=[];o.push({key:a.name,value:a.values[n]}),o.push({key:r.name,value:r.values[s]}),t.push({spData:v()(o)})}else t.push({spData:v()([{key:a.name,value:a.values[n]}])});else for(var l=this.selectProductAttr[0],u=this.selectProductAttr[1],c=this.selectProductAttr[2],d=0;d<l.values.length;d++)if(0!==u.values.length)for(var p=0;p<u.values.length;p++)if(0!==c.values.length)for(var h=0;h<c.values.length;h++){var m=[];m.push({key:l.name,value:l.values[d]}),m.push({key:u.name,value:u.values[p]}),m.push({key:c.name,value:c.values[h]}),t.push({spData:v()(m)})}else{var f=[];f.push({key:l.name,value:l.values[d]}),f.push({key:u.name,value:u.values[p]}),t.push({spData:v()(f)})}else t.push({spData:v()([{key:l.name,value:l.values[d]}])})},refreshProductAttrPics:function(){if(this.selectProductAttrPics=[],this.selectProductAttr.length>=1)for(var t=this.selectProductAttr[0].values,e=0;e<t.length;e++){var i=null;this.isEdit&&(i=this.getProductSkuPic(t[e])),this.selectProductAttrPics.push({name:t[e],pic:i})}},getProductSkuPic:function(t){for(var e=0;e<this.value.skuStockList.length;e++){if(t===JSON.parse(this.value.skuStockList[e].spData)[0].value)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,value:this.getOptionStr(e.options)})}for(var i=0;i<this.selectProductParam.length;i++){var a=this.selectProductParam[i];this.value.productAttributeValueList.push({productAttributeId:a.id,value:a.value})}},mergeProductAttrPics:function(){for(var t=0;t<this.selectProductAttrPics.length;t++)for(var e=0;e<this.value.skuStockList.length;e++){JSON.parse(this.value.skuStockList[e].spData)[0].value===this.selectProductAttrPics[t].name&&(this.value.skuStockList[e].pic=this.selectProductAttrPics[t].pic)}},getOptionStr:function(t){for(var e="",i=0;i<t.length;i++)e+=t[i],i!=t.length-1&&(e+=",");return e},handleRemoveProductSku:function(t,e){var i=this.value.skuStockList;1===i.length?i.pop():i.splice(t,1)},getParamInputList:function(t){return t.split(",")},handlePrev:function(){this.$emit("prevStep")},handleNext:function(){this.value.skuStockList&&!(this.value.skuStockList.length<=0)&&this.value.skuStockList[0].price+""&&this.value.skuStockList[0].stock+""&&this.value.skuStockList[0].lowStock+""&&this.value.skuStockList[0].skuCode+""?(this.mergeProductAttrValue(),this.mergeProductAttrPics(),this.$emit("nextStep")):this.$message.error("请编辑商品规格")},handleFinishCommit:function(){this.value.skuStockList&&!(this.value.skuStockList.length<=0)&&this.value.skuStockList[0].price+""&&this.value.skuStockList[0].stock+""&&this.value.skuStockList[0].lowStock+""&&this.value.skuStockList[0].skuCode+""?(this.mergeProductAttrValue(),this.mergeProductAttrPics(),this.$emit("finishCommit",this.isEdit)):this.$message.error("请编辑商品规格")}}},N={render:function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticStyle:{"margin-top":"50px"}},[i("el-form",{ref:"productAttrForm",staticStyle:{width:"720px"},attrs:{model:t.value,"label-width":"120px",size:"small"}},[i("el-form-item",{attrs:{label:"属性类型:"}},[i("el-select",{attrs:{disabled:!t.isEdit,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 i("el-option",{key:t.value,attrs:{label:t.label,value:t.value}})}))],1),t._v(" "),i("el-form-item",{attrs:{label:"商品规格:",rules:[{required:!0,message:"请选择商品规格",trigger:"blur"}]}},[i("el-card",{staticClass:"cardBg",attrs:{shadow:"never"}},t._l(t.selectProductAttr,function(e,a){return i("div",[t._v("\n "+t._s(e.name)+":\n "),0===e.handAddStatus?i("el-checkbox-group",{attrs:{disabled:!t.isEdit},model:{value:t.selectProductAttr[a].values,callback:function(e){t.$set(t.selectProductAttr[a],"values",e)},expression:"selectProductAttr[idx].values"}},t._l(t.getInputListArr(e.inputList),function(e){return i("el-checkbox",{key:e,staticClass:"littleMarginLeft",attrs:{label:e,disabled:!t.isEdit}})})):i("div",[i("el-checkbox-group",{attrs:{disabled:!t.isEdit},model:{value:t.selectProductAttr[a].values,callback:function(e){t.$set(t.selectProductAttr[a],"values",e)},expression:"selectProductAttr[idx].values"}},t._l(t.selectProductAttr[a].options,function(e,r){return i("div",{staticClass:"littleMarginLeft",staticStyle:{display:"inline-block"}},[i("el-checkbox",{key:e,attrs:{label:e,disabled:!t.isEdit}}),t._v(" "),i("el-button",{staticClass:"littleMarginLeft",attrs:{disabled:!t.isEdit,type:"text"},on:{click:function(e){t.handleRemoveProductAttrValue(a,r)}}},[t._v("删除\n ")])],1)})),t._v(" "),i("el-input",{staticStyle:{width:"160px","margin-left":"10px"},attrs:{disabled:!t.isEdit,clearable:""},model:{value:t.addProductAttrValue,callback:function(e){t.addProductAttrValue=e},expression:"addProductAttrValue"}}),t._v(" "),i("el-button",{staticClass:"littleMarginLeft",attrs:{disabled:!t.isEdit},on:{click:function(e){t.handleAddProductAttrValue(a)}}},[t._v("增加")])],1)],1)})),t._v(" "),i("el-table",{staticStyle:{width:"100%","margin-top":"20px"},attrs:{data:t.skuStockList,border:""}},[t._l(t.selectProductAttr,function(e,a){return i("el-table-column",{key:e.id,attrs:{label:e.name,align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v("\n "+t._s(t.getProductSkuSp(e.row,a))+"\n ")]}}])})}),t._v(" "),i("el-table-column",{attrs:{label:"销售价格",width:"80",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[i("el-input",{attrs:{disabled:!t.isEdit},model:{value:e.row.price,callback:function(i){t.$set(e.row,"price",i)},expression:"scope.row.price"}})]}}])}),t._v(" "),i("el-table-column",{attrs:{label:"商品库存",width:"80",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[i("el-input",{attrs:{disabled:!t.isEdit},model:{value:e.row.stock,callback:function(i){t.$set(e.row,"stock",i)},expression:"scope.row.stock"}})]}}])}),t._v(" "),i("el-table-column",{attrs:{label:"库存预警值",width:"80",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[i("el-input",{attrs:{disabled:!t.isEdit},model:{value:e.row.lowStock,callback:function(i){t.$set(e.row,"lowStock",i)},expression:"scope.row.lowStock"}})]}}])}),t._v(" "),i("el-table-column",{attrs:{label:"SKU编号",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[i("el-input",{attrs:{disabled:!t.isEdit},model:{value:e.row.skuCode,callback:function(i){t.$set(e.row,"skuCode",i)},expression:"scope.row.skuCode"}})]}}])}),t._v(" "),i("el-table-column",{attrs:{label:"操作",width:"80",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[i("el-button",{attrs:{disabled:!t.isEdit,type:"text"},on:{click:function(i){t.handleRemoveProductSku(e.$index,e.row)}}},[t._v("删除\n ")])]}}])})],2),t._v(" "),i("el-button",{staticStyle:{"margin-top":"20px"},attrs:{type:"primary",disabled:!t.isEdit},on:{click:t.handleRefreshProductSkuList}},[t._v("刷新列表\n ")]),t._v(" "),i("el-button",{staticStyle:{"margin-top":"20px"},attrs:{type:"primary",disabled:!t.isEdit},on:{click:t.handleSyncProductSkuPrice}},[t._v("同步价格\n ")]),t._v(" "),i("el-button",{staticStyle:{"margin-top":"20px"},attrs:{type:"primary",disabled:!t.isEdit},on:{click:t.handleSyncProductSkuStock}},[t._v("同步库存\n ")])],1),t._v(" "),t.hasAttrPic?i("el-form-item",{attrs:{label:"属性图片:"}},[i("el-card",{staticClass:"cardBg",attrs:{shadow:"never"}},t._l(t.selectProductAttrPics,function(e,a){return i("div",[i("span",[t._v(t._s(e.name)+":")]),t._v(" "),i("single-upload",{staticStyle:{width:"300px",display:"inline-block","margin-left":"10px"},attrs:{disabled:!t.isEdit},model:{value:e.pic,callback:function(i){t.$set(e,"pic",i)},expression:"item.pic"}})],1)}))],1):t._e(),t._v(" "),i("el-form-item",{attrs:{label:"商品参数:"}},[i("el-card",{staticClass:"cardBg",attrs:{shadow:"never"}},t._l(t.selectProductParam,function(e,a){return i("div",{class:{littleMarginTop:0!==a}},[i("div",{staticClass:"paramInputLabel"},[t._v(t._s(e.name)+":")]),t._v(" "),1===e.inputType?i("el-select",{staticClass:"paramInput",attrs:{disabled:!t.isEdit},model:{value:t.selectProductParam[a].value,callback:function(e){t.$set(t.selectProductParam[a],"value",e)},expression:"selectProductParam[index].value"}},t._l(t.getParamInputList(e.inputList),function(t){return i("el-option",{key:t,attrs:{label:t,value:t}})})):i("el-input",{staticClass:"paramInput",attrs:{disabled:!t.isEdit},model:{value:t.selectProductParam[a].value,callback:function(e){t.$set(t.selectProductParam[a],"value",e)},expression:"selectProductParam[index].value"}})],1)}))],1),t._v(" "),i("el-form-item",{attrs:{label:"商品相册:"}},[i("multi-upload",{attrs:{disabled:!t.isEdit},model:{value:t.selectProductPics,callback:function(e){t.selectProductPics=e},expression:"selectProductPics"}})],1),t._v(" "),i("el-form-item",{attrs:{label:"规格参数:"}},[i("el-tabs",{attrs:{type:"card"},model:{value:t.activeHtmlName,callback:function(e){t.activeHtmlName=e},expression:"activeHtmlName"}},[i("el-tab-pane",{attrs:{label:"电脑端详情",name:"pc"}},[i("tinymce",{attrs:{width:595,height:300,disabled:!t.isEdit},model:{value:t.value.detailHtml,callback:function(e){t.$set(t.value,"detailHtml",e)},expression:"value.detailHtml"}})],1),t._v(" "),i("el-tab-pane",{attrs:{label:"移动端详情",name:"mobile"}},[i("tinymce",{attrs:{width:595,height:300,disabled:!t.isEdit},model:{value:t.value.detailMobileHtml,callback:function(e){t.$set(t.value,"detailMobileHtml",e)},expression:"value.detailMobileHtml"}})],1)],1)],1),t._v(" "),i("el-form-item",{staticStyle:{"text-align":"center"}},[i("el-button",{attrs:{size:"medium"},on:{click:t.handlePrev}},[t._v("上一步,填写商品促销")]),t._v(" "),i("el-button",{attrs:{type:"primary",size:"medium"},on:{click:t.handleFinishCommit}},[t._v("完成,提交商品")])],1)],1)],1)},staticRenderFns:[]};var M=i("VU/8")(B,N,!1,function(t){i("XFUm")},"data-v-7f8dc0a2",null).exports,H=i("0QkR");var q={name:"ProductRelationDetail",props:{value:Object,isEdit:{type:Boolean,default:!1}},data:function(){return{subjectList:[],subjectTitles:["待选择","已选择"],prefrenceAreaList:[],prefrenceAreaTitles:["待选择","已选择"]}},created:function(){this.getSubjectList(),this.getPrefrenceAreaList()},computed:{selectSubject:{get:function(){var t=[];if(null==this.value.subjectProductRelationList||this.value.subjectProductRelationList.length<=0)return t;for(var e=0;e<this.value.subjectProductRelationList.length;e++)t.push(this.value.subjectProductRelationList[e].subjectId);return t},set:function(t){this.value.subjectProductRelationList=[];for(var e=0;e<t.length;e++)this.value.subjectProductRelationList.push({subjectId:t[e]})}},selectPrefrenceArea:{get:function(){var t=[];if(null==this.value.prefrenceAreaProductRelationList||this.value.prefrenceAreaProductRelationList.length<=0)return t;for(var e=0;e<this.value.prefrenceAreaProductRelationList.length;e++)t.push(this.value.prefrenceAreaProductRelationList[e].prefrenceAreaId);return t},set:function(t){this.value.prefrenceAreaProductRelationList=[];for(var e=0;e<t.length;e++)this.value.prefrenceAreaProductRelationList.push({prefrenceAreaId:t[e]})}}},methods:{filterMethod:function(t,e){return e.label.indexOf(t)>-1},getSubjectList:function(){var t=this;Object(H.b)().then(function(e){for(var i=e.data,a=0;a<i.length;a++)t.subjectList.push({label:i[a].title,key:i[a].id,disabled:!t.isEdit})})},getPrefrenceAreaList:function(){var t=this;Object(d.a)({url:"/prefrenceArea/listAll",method:"get"}).then(function(e){for(var i=e.data,a=0;a<i.length;a++)t.prefrenceAreaList.push({label:i[a].name,key:i[a].id,disabled:!t.isEdit})})},handlePrev:function(){this.$emit("prevStep")},handleFinishCommit:function(){this.$emit("finishCommit",this.isEdit)}}},z={render:function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticStyle:{"margin-top":"50px"}},[i("el-form",{ref:"productRelationForm",staticStyle:{width:"680px"},attrs:{model:t.value,"label-width":"120px",size:"small"}},[i("el-form-item",{attrs:{label:"关联专题:"}},[i("el-transfer",{staticStyle:{display:"inline-block"},attrs:{disabled:!t.isEdit,filterable:"","filter-method":t.filterMethod,"filter-placeholder":"请输入专题名称",titles:t.subjectTitles,data:t.subjectList},model:{value:t.selectSubject,callback:function(e){t.selectSubject=e},expression:"selectSubject"}})],1),t._v(" "),i("el-form-item",{attrs:{label:"关联优选:"}},[i("el-transfer",{staticStyle:{display:"inline-block"},attrs:{disabled:!t.isEdit,filterable:"","filter-method":t.filterMethod,"filter-placeholder":"请输入优选名称",titles:t.prefrenceAreaTitles,data:t.prefrenceAreaList},model:{value:t.selectPrefrenceArea,callback:function(e){t.selectPrefrenceArea=e},expression:"selectPrefrenceArea"}})],1),t._v(" "),i("el-form-item",{staticStyle:{"text-align":"center"}},[i("el-button",{attrs:{size:"medium"},on:{click:t.handlePrev}},[t._v("上一步,填写商品属性")]),t._v(" "),i("el-button",{attrs:{type:"primary",size:"medium"},on:{click:t.handleFinishCommit}},[t._v("完成,提交商品")])],1)],1)],1)},staticRenderFns:[]};var K={albumPics:"",brandId:null,brandName:"",deleteStatus:0,description:"",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:"",productSn:"",promotionEndTime:"",promotionPerLimit:0,promotionPrice:null,promotionStartTime:"",promotionType:0,publishStatus:0,recommandStatus:0,sale:0,serviceIds:"",sort:0,stock:0,subTitle:"",unit:"",usePointLimit:0,verifyStatus:0,weight:0},J={name:"ProductDetail",components:{ProductInfoDetail:c,ProductSaleDetail:m,ProductAttrDetail:M,ProductRelationDetail:i("VU/8")(q,z,!1,function(t){i("Femf")},"data-v-54c4e537",null).exports},props:{isEdit:{type:Boolean,default:!1}},data:function(){return{active:0,productParam:r()({},K),showStatus:[!0,!1,!1,!1]}},created:function(){var t=this;this.$route.query.id&&Object(o.d)(this.$route.query.id).then(function(e){t.productParam=e.data})},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;this.$route.query.id&&t?this.$confirm("是否要提交该产品","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){Object(o.g)(e.$route.query.id,e.productParam).then(function(t){e.$message({type:"success",message:"提交成功",duration:1e3}),e.$router.back()})}):!this.$route.query.id&&t?this.$confirm("是否要提交该产品","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){Object(o.a)(e.productParam).then(function(t){e.$message({type:"success",message:"提交成功",duration:1e3}),e.$router.back()})}):this.$router.back()}}},W={render:function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("el-card",{staticClass:"form-container",attrs:{shadow:"never"}},[i("el-steps",{attrs:{active:t.active,"finish-status":"success","align-center":""}},[i("el-step",{attrs:{title:"填写商品信息"}}),t._v(" "),i("el-step",{attrs:{title:"填写商品促销"}}),t._v(" "),i("el-step",{attrs:{title:"填写商品属性"}})],1),t._v(" "),i("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"}}),t._v(" "),t.showStatus[1]?i("product-sale-detail",{attrs:{"is-edit":t.isEdit},on:{nextStep:t.nextStep,prevStep:t.prevStep},model:{value:t.productParam,callback:function(e){t.productParam=e},expression:"productParam"}}):t._e(),t._v(" "),t.showStatus[2]?i("product-attr-detail",{attrs:{"is-edit":t.isEdit},on:{nextStep:t.nextStep,prevStep:t.prevStep,finishCommit:t.finishCommit},model:{value:t.productParam,callback:function(e){t.productParam=e},expression:"productParam"}}):t._e()],1)},staticRenderFns:[]};var Z=i("VU/8")(J,W,!1,function(t){i("MyBC")},null,null);e.a=Z.exports},DBIJ:function(t,e){},FCYw:function(t,e){},FWz8:function(t,e,i){"use strict";e.d=function(t){return Object(a.a)({url:"/order/list",method:"get",params:t})},e.a=function(t){return Object(a.a)({url:"/order/update/close",method:"post",requestType:"form",data:t})},e.b=function(t){return Object(a.a)({url:"/order/delete",method:"post",params:t})},e.c=function(t){return Object(a.a)({url:"/order/update/delivery",method:"post",data:t})},e.e=function(t){return Object(a.a)({url:"/order/"+t,method:"get"})},e.j=function(t){return Object(a.a)({url:"/order/update/receiverInfo",method:"post",data:t})},e.h=function(t){return Object(a.a)({url:"/order/update/moneyInfo",method:"post",data:t})},e.i=function(t){return Object(a.a)({url:"/order/update/note",method:"post",params:t})},e.f=function(t){return Object(a.a)({url:"/order/selectCourier",method:"get",params:t})},e.g=function(t){return Object(a.a)({url:"/order/refreshCourier",method:"get",params:t})};var a=i("vLgD")},Femf:function(t,e){},HFkz:function(t,e){},HpRW:function(t,e,i){"use strict";var a=i("kM2E"),r=i("lOnJ"),n=i("+ZMJ"),s=i("NWt+");t.exports=function(t){a(a.S,t,{from:function(t){var e,i,a,o,l=arguments[1];return r(this),(e=void 0!==l)&&r(l),void 0==t?new this:(i=[],e?(a=0,o=n(l,arguments[2],2),s(t,!1,function(t){i.push(o(t,a++))})):s(t,!1,i.push,i),new this(i))}})}},IZ4n:function(t,e){},KhLR:function(t,e,i){"use strict";e.c=function(t){return Object(a.a)({url:"/productAttribute/category/list",method:"get",params:t})},e.a=function(t){return Object(a.a)({url:"/productAttribute/category/create",method:"post",data:t,requestType:"form"})},e.b=function(t){return Object(a.a)({url:"/productAttribute/category/delete/"+t,method:"get"})},e.e=function(t,e){return Object(a.a)({url:"/productAttribute/category/update/"+t,method:"post",data:e,requestType:"form"})},e.d=function(){return Object(a.a)({url:"/productAttribute/category/list/withAttr",method:"get"})};var a=i("vLgD")},LIJb:function(t,e,i){var a=i("EqjI");t.exports=function(t,e){if(!a(t)||t._t!==e)throw TypeError("Incompatible receiver, "+e+" required!");return t}},Mdfv:function(t,e,i){"use strict";e.c=function(t){return Object(a.a)({url:"/home/advertise/list",method:"get",params:t})},e.f=function(t,e){return Object(a.a)({url:"/home/advertise/update/status/"+t,method:"post",params:e})},e.b=function(t){return Object(a.a)({url:"/home/advertise/delete",method:"post",data:t,requestType:"form"})},e.a=function(t){return Object(a.a)({url:"/home/advertise/create",method:"post",data:t})},e.d=function(t){return Object(a.a)({url:"/home/advertise/"+t,method:"get"})},e.e=function(t,e){return Object(a.a)({url:"/home/advertise/update/"+t,method:"post",data:e})};var a=i("vLgD")},MyBC:function(t,e){},Og03:function(t,e,i){"use strict";e.c=function(){return Object(a.a)({url:"/resourceCategory/listAll",method:"get"})},e.a=function(t){return Object(a.a)({url:"/resourceCategory/create",method:"post",data:t})},e.d=function(t,e){return Object(a.a)({url:"/resourceCategory/update/"+t,method:"post",data:e})},e.b=function(t){return Object(a.a)({url:"/resourceCategory/delete/"+t,method:"post"})};var a=i("vLgD")},RriS:function(t,e){},STSY:function(t,e,i){"use strict";e.f=function(t){return Object(a.a)({url:"/role/list",method:"get",params:t})},e.c=function(t){return Object(a.a)({url:"/role/create",method:"post",data:t})},e.i=function(t,e){return Object(a.a)({url:"/role/update/"+t,method:"post",data:e})},e.j=function(t,e){return Object(a.a)({url:"/role/updateStatus/"+t,method:"post",params:e})},e.d=function(t){return Object(a.a)({url:"/role/delete",method:"post",data:t,requestType:"form"})},e.e=function(){return Object(a.a)({url:"/role/listAll",method:"get"})},e.g=function(t){return Object(a.a)({url:"/role/listMenu/"+t,method:"get"})},e.h=function(t){return Object(a.a)({url:"/role/listResource/"+t,method:"get"})},e.a=function(t){return Object(a.a)({url:"/role/allocMenu",method:"post",data:t,requestType:"form"})},e.b=function(t){return Object(a.a)({url:"/role/allocResource",method:"post",data:t,requestType:"form"})};var a=i("vLgD")},TZVV:function(t,e,i){"use strict";var a=i("//Fk"),r=i.n(a),n=i("ZW30"),s={name:"singleUpload",props:{value:String,disabled:{type:Boolean,default:!1},bucket_name:{type:String,default:"mall"}},computed:{imageUrl:function(){return this.value},imageName:function(){return null!=this.value&&""!==this.value?this.value.substr(this.value.lastIndexOf("/")+1):null},fileList:function(){return[{name:this.imageName,url:this.imageUrl}]},showFileList:{get:function(){return null!==this.value&&""!==this.value&&void 0!==this.value},set:function(t){}}},data:function(){return{dataObj:{policy:"",signature:"",key:"",KSSAccessKeyId:"",acl:"public-read",name:""},dialogVisible:!1,useOss:!0,ossUploadUrl:"https://"+this.bucket_name+".ks3-cn-beijing.ksyuncs.com",minioUploadUrl:"http://localhost:8080/minio/upload"}},methods:{emitInput:function(t){this.$emit("input",t)},handleRemove:function(t,e){this.emitInput("")},handlePreview:function(t){this.dialogVisible=!0},beforeUpload:function(t){var e=this,i=this;return!this.useOss||(console.log(t,"掉用beforeUpload"),new r.a(function(a,r){var s=(new Date).getTime()+t.name,o={filename:t.name,bucketName:e.bucket_name,postData:{filename:t.name,acl:"public-read",key:s,unknowValueField:[]}};Object(n.a)(o).then(function(r){i.dataObj.policy=r.data.policy,i.dataObj.signature=r.data.signature,i.dataObj.KSSAccessKeyId=r.data.kssAccessKeyId,i.dataObj.key=s,i.dataObj.name=t.name,i.dataObj.acl="public-read";var n={KSSAccessKeyId:r.data.kssAccessKeyId,policy:r.data.policy,signature:r.data.signature,key:s,acl:"public-read",uploadDomain:"https://ks3-cn-beijing.ksyuncs.com/"+e.bucket_name,autoStart:!0};console.log(n,"ks3Options");document.body,new ks3FileUploader(n);a(!0)}).catch(function(t){console.log(t),r(!1)})}))},handleUploadSuccess:function(t,e){var i=this.ossUploadUrl+"/"+this.dataObj.key;this.showFileList=!0,this.fileList.pop(),this.useOss||(i=t.data.url),this.fileList.push({name:e.name,url:i}),this.emitInput(this.fileList[0].url)}}},o={render:function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",[i("el-upload",{attrs:{disabled:t.disabled,action:t.ossUploadUrl,data:t.useOss?t.dataObj:null,"list-type":"picture",multiple:!1,"show-file-list":t.showFileList,"file-list":t.fileList,"before-upload":t.beforeUpload,"on-remove":t.handleRemove,"on-success":t.handleUploadSuccess,"on-preview":t.handlePreview}},[i("el-button",{attrs:{size:"small",type:"primary"}},[t._v("点击上传")]),t._v(" "),i("div",{staticClass:"el-upload__tip",attrs:{slot:"tip"},slot:"tip"},[t._v("\n 只能上传jpg/png文件,且不超过10MB\n ")])],1),t._v(" "),i("el-dialog",{attrs:{visible:t.dialogVisible},on:{"update:visible":function(e){t.dialogVisible=e}}},[i("img",{attrs:{width:"100%",src:t.fileList[0].url,alt:""}})])],1)},staticRenderFns:[]};var l=i("VU/8")(s,o,!1,function(t){i("IZ4n")},null,null);e.a=l.exports},UgCr:function(t,e,i){"use strict";e.b=function(t){return Object(n.a)({url:"/product/list",method:"get",params:t})},e.c=function(t){return Object(n.a)({url:"/product/simpleList",method:"get",params:t})},e.e=function(t){return Object(n.a)({url:"/product/update/deleteStatus",method:"post",params:t})},e.f=function(t){return Object(n.a)({url:"/product/update/newStatus",method:"post",params:t})},e.i=function(t){return Object(n.a)(r()({url:"/product/update/recommendStatus",method:"post",params:t,data:t},"params",t))},e.h=function(t){return Object(n.a)({url:"/product/update/publishStatus",method:"post",data:t,params:t})},e.a=function(t){return Object(n.a)({url:"/product/create",method:"post",data:t})},e.g=function(t,e){return Object(n.a)({url:"/product/update/"+t,method:"post",data:e})},e.d=function(t){return Object(n.a)({url:"/product/updateInfo/"+t,method:"get"})};var a=i("bOdI"),r=i.n(a),n=i("vLgD")},WQDg: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:"格式"})},XFUm:function(t,e){},ZW30:function(t,e,i){"use strict";e.a=function(t){return Object(a.a)({url:"/api-admin/getUploadSign",method:"POST",headers:{"Content-Type":"application/json"},data:t})};var a=i("vLgD"),r=i("mw3O");i.n(r)},bOdI:function(t,e,i){"use strict";e.__esModule=!0;var a,r=i("C4MV"),n=(a=r)&&a.__esModule?a:{default:a};e.default=function(t,e,i){return e in t?(0,n.default)(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t}},bUp0:function(t,e,i){"use strict";e.c=function(t,e){return Object(a.a)({url:"/menu/list/"+t,method:"get",params:e})},e.b=function(t){return Object(a.a)({url:"/menu/delete/"+t,method:"post"})},e.a=function(t){return Object(a.a)({url:"/menu/create",method:"post",data:t})},e.g=function(t,e){return Object(a.a)({url:"/menu/update/"+t,method:"post",data:e})},e.e=function(t){return Object(a.a)({url:"/menu/"+t,method:"get"})},e.f=function(t,e){return Object(a.a)({url:"/menu/updateHidden/"+t,method:"post",params:e})},e.d=function(){return Object(a.a)({url:"/menu/treeList",method:"get"})};var a=i("vLgD")},"c/Tr":function(t,e,i){t.exports={default:i("5zde"),__esModule:!0}},fBQ2:function(t,e,i){"use strict";var a=i("evD5"),r=i("X8DO");t.exports=function(t,e,i){e in t?a.f(t,e,r(0,i)):t[e]=i}},fZjL:function(t,e,i){t.exports={default:i("jFbC"),__esModule:!0}},ioQ5:function(t,e,i){i("HpRW")("Set")},jFbC:function(t,e,i){i("Cdx3"),t.exports=i("FeBl").Object.keys},lHA8:function(t,e,i){t.exports={default:i("pPW7"),__esModule:!0}},m9gC:function(t,e,i){var a=i("RY/4"),r=i("4WTo");t.exports=function(t){return function(){if(a(this)!=t)throw TypeError(t+"#toJSON isn't generic");return r(this)}}},mClu:function(t,e,i){var a=i("kM2E");a(a.S+a.F*!i("+E39"),"Object",{defineProperty:i("evD5").f})},mRsl:function(t,e,i){"use strict";e.c=function(t,e){return Object(a.a)({url:"/productCategory/list/"+t,method:"get",params:e})},e.b=function(t){return Object(a.a)({url:"/productCategory/delete/"+t,method:"post"})},e.a=function(t){return Object(a.a)({url:"/productCategory/create",method:"post",data:t})},e.g=function(t,e){return Object(a.a)({url:"/productCategory/update/"+t,method:"post",data:e})},e.e=function(t){return Object(a.a)({url:"/productCategory/"+t,method:"get"})},e.h=function(t){return Object(a.a)({url:"/productCategory/update/showStatus",method:"post",data:t,params:t})},e.f=function(t){return Object(a.a)({url:"/productCategory/update/navStatus",method:"post",data:t,params:t})},e.d=function(){return Object(a.a)({url:"/productCategory/list/withChildren",method:"get"})};var a=i("vLgD")},oNmr:function(t,e,i){i("9Bbf")("Set")},oeOm:function(t,e,i){var a=i("7Doy");t.exports=function(t,e){return new(a(t))(e)}},pPW7:function(t,e,i){i("M6a0"),i("zQR9"),i("+tPU"),i("ttyz"),i("BDhv"),i("oNmr"),i("ioQ5"),t.exports=i("FeBl").Set},qo66:function(t,e,i){"use strict";var a=i("7KvD"),r=i("kM2E"),n=i("06OY"),s=i("S82l"),o=i("hJx8"),l=i("xH/j"),u=i("NWt+"),c=i("2KxR"),d=i("EqjI"),p=i("e6n0"),h=i("evD5").f,m=i("ALrJ")(0),f=i("+E39");t.exports=function(t,e,i,v,b,g){var k=a[t],y=k,S=b?"set":"add",P=y&&y.prototype,w={};return f&&"function"==typeof y&&(g||P.forEach&&!s(function(){(new y).entries().next()}))?(y=e(function(e,i){c(e,y,t,"_c"),e._c=new k,void 0!=i&&u(i,b,e[S],e)}),m("add,clear,delete,forEach,get,has,set,keys,values,entries,toJSON".split(","),function(t){var e="add"==t||"set"==t;t in P&&(!g||"clear"!=t)&&o(y.prototype,t,function(i,a){if(c(this,y,t),!e&&g&&!d(i))return"get"==t&&void 0;var r=this._c[t](0===i?0:i,a);return e?this:r})}),g||h(y.prototype,"size",{get:function(){return this._c.size}})):(y=v.getConstructor(e,t,b,S),l(y.prototype,i),n.NEED=!0),p(y,t),w[t]=y,r(r.G+r.W+r.F,w),g||v.setStrong(y,t,b),y}},qyJz:function(t,e,i){"use strict";var a=i("+ZMJ"),r=i("kM2E"),n=i("sB3e"),s=i("msXi"),o=i("Mhyx"),l=i("QRG4"),u=i("fBQ2"),c=i("3fs2");r(r.S+r.F*!i("dY0y")(function(t){Array.from(t)}),"Array",{from:function(t){var e,i,r,d,p=n(t),h="function"==typeof this?this:Array,m=arguments.length,f=m>1?arguments[1]:void 0,v=void 0!==f,b=0,g=c(p);if(v&&(f=a(f,m>2?arguments[2]:void 0,2)),void 0==g||h==Array&&o(g))for(i=new h(e=l(p.length));e>b;b++)u(i,b,v?f(p[b],b):p[b]);else for(d=g.call(p),i=new h;!(r=d.next()).done;b++)u(i,b,v?s(d,f,[r.value,b],!0):r.value);return i.length=b,i}})},"s/Rn":function(t,e,i){"use strict";e.c=function(t){return Object(a.a)({url:"/brand/list",method:"get",params:t})},e.a=function(t){return Object(a.a)({url:"/brand/create",method:"post",data:t})},e.f=function(t){return Object(a.a)({url:"/brand/update/showStatus",method:"post",data:t,requestType:"form"})},e.b=function(t){return Object(a.a)({url:"/brand/delete/"+t,method:"get"})},e.d=function(t){return Object(a.a)({url:"/brand/"+t,method:"get"})},e.e=function(t,e){return Object(a.a)({url:"/brand/update/"+t,method:"post",data:e})};var a=i("vLgD")},ttyz:function(t,e,i){"use strict";var a=i("9C8M"),r=i("LIJb");t.exports=i("qo66")("Set",function(t){return function(){return t(this,arguments.length>0?arguments[0]:void 0)}},{add:function(t){return a.def(r(this,"Set"),t=0===t?0:t,t)}},a)},uqUo:function(t,e,i){var a=i("kM2E"),r=i("FeBl"),n=i("S82l");t.exports=function(t,e){var i=(r.Object||{})[t]||Object[t],s={};s[t]=e(i),a(a.S+a.F*n(function(){i(1)}),"Object",s)}},xT6B:function(t,e,i){"use strict";function a(t){return("00"+t).substr(t.length)}e.a=function(t,e){/(y+)/.test(e)&&(e=e.replace(RegExp.$1,(t.getFullYear()+"").substr(4-RegExp.$1.length)));var i={"M+":t.getMonth()+1,"d+":t.getDate(),"h+":t.getHours(),"m+":t.getMinutes(),"s+":t.getSeconds()};for(var r in i)if(new RegExp("("+r+")").test(e)){var n=i[r]+"";e=e.replace(RegExp.$1,1===RegExp.$1.length?n:a(n))}return e}}});
  2. //# sourceMappingURL=0.e5ee56e170ae61156d29.js.map