(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-4aca92e4"],{"0197":function(t,e,i){"use strict";var a=i("4f3c"),o=i.n(a);o.a},1078:function(t,e,i){"use strict";var a=i("9f7b"),o=i.n(a);o.a},4189:function(t,e,i){},"4f3c":function(t,e,i){},"696b":function(t,e,i){"use strict";i.r(e);var a=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",[i("Card",{staticClass:"ivu-mt pt10",attrs:{bordered:!1,"dis-hover":""}},[i("Form",{ref:"formValidate",attrs:{model:t.formValidate,"label-width":t.labelWidth,"label-position":t.labelPosition}},[i("Row",{attrs:{type:"flex",gutter:24}},[i("Col",[i("FormItem",{attrs:{label:"商品分类:","label-for":"cate_id"}},[i("el-cascader",{staticStyle:{width:"250px"},attrs:{placeholder:"请选择商品分类",size:"mini",options:t.data,props:t.props,filterable:"",clearable:""},on:{"on-change":t.cascaderSearchs},model:{value:t.formValidate.cate_id,callback:function(e){t.$set(t.formValidate,"cate_id",e)},expression:"formValidate.cate_id"}})],1)],1),i("Col",[i("FormItem",{attrs:{label:"商品品牌:",prop:"brand_id"}},[i("Cascader",{staticClass:"input-add",attrs:{data:t.brandData,placeholder:"请选择商品品牌","change-on-select":"",filterable:""},on:{"on-change":t.search},model:{value:t.formValidate.brand_id,callback:function(e){t.$set(t.formValidate,"brand_id",e)},expression:"formValidate.brand_id"}})],1)],1),i("Col",[i("FormItem",{staticClass:"labelClass",attrs:{label:"商品标签:",prop:"store_label_id"}},[i("div",{staticClass:"acea-row row-middle"},[i("div",{staticClass:"labelInput acea-row row-between-wrapper",on:{click:t.openGoodsLabel}},[i("div",{staticStyle:{width:"90%"}},[t.storeDataLabel.length?i("div",t._l(t.storeDataLabel,(function(e,a){return i("Tag",{key:a,attrs:{closable:""},on:{"on-close":function(i){return t.closeStoreLabel(e)}}},[t._v(t._s(e.label_name))])})),1):i("span",{staticClass:"span"},[t._v("选择商品标签")])]),i("div",{staticClass:"iconfont iconxiayi"})])])])],1),i("Col",[i("FormItem",{attrs:{label:"商品搜索:","label-for":"store_name"}},[i("Input",{staticStyle:{width:"250px"},attrs:{"enter-button":"",placeholder:"请输入商品名称,关键字,ID"},model:{value:t.formValidate.store_name,callback:function(e){t.$set(t.formValidate,"store_name",e)},expression:"formValidate.store_name"}})],1)],1),i("Col",[i("div",{staticClass:"search",on:{click:t.search}},[t._v("搜索")])]),i("Col",[i("div",{staticClass:"reset",on:{click:t.reset}},[t._v("重置")])])],1)],1)],1),i("Card",{staticClass:"mt15 tablebox",attrs:{bordered:!1,"dis-hover":""}},[i("div",{staticClass:"product_tabs tabbox"},[i("Tabs",{on:{"on-click":t.onClickTab},model:{value:t.formValidate.type,callback:function(e){t.$set(t.formValidate,"type",e)},expression:"formValidate.type"}},t._l(t.headerList,(function(t,e){return i("TabPane",{key:e,attrs:{label:t.name+"("+t.count+")",name:t.type.toString()}})})),1)],1),i("div",{staticClass:"table mt20"},[i("router-link",{attrs:{to:t.roterPre+"/product/edit_product"}},[i("Button",{staticClass:"bnt",attrs:{type:"primary"}},[t._v("添加商品")])],1),i("Tooltip",{attrs:{content:"本页至少选中一项",disabled:!!t.checkUidList.length&&0==t.isAll}},[i("Button",{directives:[{name:"show",rawName:"v-show",value:"1"===t.formValidate.type,expression:"formValidate.type === '1'"}],staticClass:"bnt ml15",attrs:{disabled:!t.checkUidList.length&&0==t.isAll},on:{click:t.onDismount}},[t._v("批量下架")])],1),i("Tooltip",{attrs:{content:"本页至少选中一项",disabled:!!t.checkUidList.length&&0==t.isAll}},[i("Button",{directives:[{name:"show",rawName:"v-show",value:"2"===t.formValidate.type,expression:"formValidate.type === '2'"}],staticClass:"bnt ml15",attrs:{disabled:!t.checkUidList.length&&0==t.isAll},on:{click:t.onShelves}},[t._v("批量上架")])],1),i("Tooltip",{attrs:{content:"本页至少选中一项",disabled:!!t.checkUidList.length&&0==t.isAll}},[i("Button",{staticClass:"bnt ml15",attrs:{disabled:!t.checkUidList.length&&0==t.isAll},on:{click:t.openBatch}},[t._v("批量设置")])],1),i("vxe-table",{ref:"xTable",staticClass:"mt25",attrs:{border:"inner",loading:t.loading,"row-id":"id","checkbox-config":{reserve:!0},data:t.orderList},on:{"checkbox-all":t.checkboxAll,"checkbox-change":t.checkboxItem}},[i("vxe-column",{attrs:{type:"checkbox",width:"100"},scopedSlots:t._u([{key:"header",fn:function(){return[i("div",[i("Dropdown",{attrs:{transfer:""},on:{"on-click":t.allPages},scopedSlots:t._u([{key:"list",fn:function(){return[i("DropdownMenu",[i("DropdownItem",{attrs:{name:"0"}},[t._v("当前页")]),i("DropdownItem",{attrs:{name:"1"}},[t._v("所有页")])],1)]},proxy:!0}])},[i("a",{staticClass:"acea-row row-middle",attrs:{href:"javascript:void(0)"}},[i("span",[t._v("全选("+t._s(1==t.isAll?t.total-t.checkUidList.length:t.checkUidList.length)+")")]),i("Icon",{attrs:{type:"ios-arrow-down"}})],1)])],1)]},proxy:!0}])}),i("vxe-column",{attrs:{field:"id",title:"商品ID",width:"70"}}),i("vxe-column",{attrs:{field:"image",title:"商品图",width:"70"},scopedSlots:t._u([{key:"default",fn:function(t){var e=t.row;return[i("viewer",[i("div",{staticClass:"tabBox_img"},[i("img",{directives:[{name:"lazy",rawName:"v-lazy",value:e.image,expression:"row.image"}]})])])]}}])}),i("vxe-column",{attrs:{field:"store_name",title:"商品名称","min-width":"250"},scopedSlots:t._u([{key:"default",fn:function(e){var a=e.row;return[i("Tooltip",{attrs:{transfer:!0,theme:"dark","max-width":"300",delay:600,content:a.store_name}},[i("div",{staticClass:"line2"},[t._v(t._s(a.store_name))])])]}}])}),i("vxe-column",{attrs:{field:"price",title:"商品售价","min-width":"90"}}),i("vxe-column",{attrs:{field:"branch_sales",title:"销量","min-width":"90"}}),i("vxe-column",{attrs:{field:"branch_stock",title:"库存","min-width":"90"}}),i("vxe-column",{attrs:{field:"sort",title:"排序","min-width":"70"}}),i("vxe-column",{attrs:{field:"state",title:"状态",width:"120"},scopedSlots:t._u([{key:"default",fn:function(e){var a=e.row;return[7!=t.formValidate.type?i("i-switch",{attrs:{value:a.is_show,"true-value":1,"false-value":0,disabled:1!=a.is_verify,size:"large"},on:{"on-change":function(e){return t.changeSwitch(a)}},model:{value:a.is_show,callback:function(e){t.$set(a,"is_show",e)},expression:"row.is_show"}},[i("span",{attrs:{slot:"open"},slot:"open"},[t._v("上架")]),i("span",{attrs:{slot:"close"},slot:"close"},[t._v("下架")])]):i("div",[t._v(t._s(a.is_del?"已删除":a.is_show?"":"已下架"))])]}}])}),-1==t.formValidate.type?i("vxe-column",{attrs:{field:"refusal",title:"拒绝原因","min-width":"150"}}):t._e(),-2==t.formValidate.type?i("vxe-column",{attrs:{field:"refusal",title:"下架原因","min-width":"150"}}):t._e(),i("vxe-column",{attrs:{field:"action",title:"操作",align:"center",width:"250",fixed:"right"},scopedSlots:t._u([{key:"default",fn:function(e){var a=e.row,o=e.rowIndex;return[0==a.pid?i("a",{on:{click:function(e){return t.edit(a)}}},[t._v("编辑")]):t._e(),0==a.pid?i("Divider",{attrs:{type:"vertical"}}):t._e(),i("a",{on:{click:function(e){return t.detail(a.id)}}},[t._v("详情")]),i("Divider",{attrs:{type:"vertical"}}),t.openErp?t._e():i("a",{on:{click:function(e){return t.stockControl(a)}}},[t._v("库存管理")]),t.openErp?t._e():i("Divider",{attrs:{type:"vertical"}}),[i("Dropdown",{attrs:{transfer:!0},on:{"on-click":function(e){return t.changeMenu(a,e,o)}}},[i("a",{staticClass:"acea-row row-middle",attrs:{href:"javascript:void(0)"}},[i("span",[t._v("更多")]),i("Icon",{attrs:{type:"ios-arrow-down"}})],1),i("DropdownMenu",{attrs:{slot:"list"},slot:"list"},[i("DropdownItem",{attrs:{name:"1"}},[t._v("查看评论")]),0==a.pid?i("DropdownItem",{attrs:{name:"3"}},[t._v(t._s(a.is_del?"恢复":"删除"))]):t._e(),i("DropdownItem",{attrs:{name:"4"}},[t._v("复制")])],1)],1)]]}}])})],1),i("vxe-pager",{staticClass:"mt20",attrs:{border:"",size:"medium","page-size":t.formValidate.limit,"current-page":t.formValidate.page,total:t.total,layouts:["PrevPage","JumpNumber","NextPage","FullJump","Total"]},on:{"page-change":t.pageChange}})],1)]),i("stockEdit",{ref:"stock",on:{stockChange:t.stockChange}}),i("productDetails",{attrs:{visible:t.detailsVisible,"product-id":t.productId},on:{"update:visible":function(e){t.detailsVisible=e},saved:t.getList}}),i("batchSet",{ref:"batch",attrs:{checkUidList:t.checkUidList,isAll:t.isAll,formValidate:t.formValidate}}),i("Modal",{attrs:{scrollable:"",title:"选择商品标签",closable:!0,width:"540","footer-hide":!0,"mask-closable":!1},model:{value:t.storeLabelShow,callback:function(e){t.storeLabelShow=e},expression:"storeLabelShow"}},[i("labelList",{ref:"storeLabel",on:{activeData:t.activeStoreData,close:t.storeLabelClose}})],1)],1)},o=[],r=i("d708"),n=i("2f62"),s=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"goods_detail"},[a("div",{staticClass:"goods_detail_wrapper",class:t.product?"on":"",staticStyle:{height:"640px"}},[a("HappyScroll",{attrs:{size:"5",resize:"","hide-horizontal":""}},[a("div",{staticStyle:{width:"375px"}},[a("div",{staticClass:"title-box"},[t._v("商品详情")]),a("div",{staticClass:"swiper-box"},[a("Carousel",{attrs:{autoplay:"",arrow:"never"},model:{value:t.value2,callback:function(e){t.value2=e},expression:"value2"}},t._l(t.goodsInfo.slider_image,(function(t,e){return a("CarouselItem",{key:e},[a("div",{staticClass:"demo-carousel"},[a("img",{attrs:{src:t,alt:""}})])])})),1)],1),a("div",{staticClass:"goods_info"},[a("div",{staticClass:"number-wrapper"},[a("div",{staticClass:"price"},[a("span",[t._v("¥")]),t._v(t._s(t.goodsInfo.price))]),t.goodsInfo.vip_price>0?a("div",{staticClass:"old-price"},[t._v("\n ¥"+t._s(t.goodsInfo.vip_price)+"\n "),a("img",{attrs:{src:i("a254"),alt:"",width:"28"}})]):t._e()]),a("div",{staticClass:"name"},[t._v(t._s(t.goodsInfo.store_name))]),a("div",{staticClass:"msg"},[a("div",{staticClass:"item"},[t._v("原价:¥"+t._s(t.goodsInfo.ot_price))]),a("div",{staticClass:"item"},[t._v("销量:"+t._s(t.goodsInfo.sales))]),a("div",{staticClass:"item"},[t._v("库存:"+t._s(t.goodsInfo.stock))])])]),a("div",{staticClass:"con-box"},[a("div",{staticClass:"title-box"},[t._v("商品介绍")]),a("div",{staticClass:"content",domProps:{innerHTML:t._s(t.goodsInfo.description)}})])])])],1)])},l=[],c=i("a34a"),d=i.n(c),u=i("6db4"),m=i("c4c8");function h(t,e,i,a,o,r,n){try{var s=t[r](n),l=s.value}catch(c){return void i(c)}s.done?e(l):Promise.resolve(l).then(a,o)}function f(t){return function(){var e=this,i=arguments;return new Promise((function(a,o){var r=t.apply(e,i);function n(t){h(r,a,o,n,s,"next",t)}function s(t){h(r,a,o,n,s,"throw",t)}n(void 0)}))}}var p={name:"goods_detail",props:{goodsId:{type:String|Number,default:""},product:{type:String|Number,default:""}},components:{HappyScroll:u["HappyScroll"]},data:function(){return{value2:0,goodsInfo:{}}},mounted:function(){this.getInfoApi()},methods:{getInfoApi:function(){var t=this;Object(m["u"])(this.goodsId).then(function(){var e=f(d.a.mark((function e(i){return d.a.wrap((function(e){while(1)switch(e.prev=e.next){case 0:t.goodsInfo=i.data.productInfo;case 1:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()).catch((function(e){t.$Message.error(e.msg)}))}}},v=p,g=(i("0197"),i("2877")),b=Object(g["a"])(v,s,l,!1,null,"73a5624c",null),_=b.exports,y=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("Modal",{staticClass:"order_box",attrs:{scrollable:"",title:"库存管理",width:"800","footer-hide":""},on:{"on-cancel":t.cancel},model:{value:t.modals,callback:function(e){t.modals=e},expression:"modals"}},[i("Card",{staticClass:"cards",attrs:{bordered:!1,"dis-hover":""}},[t.specType?i("div",{staticClass:"batch"},[i("div",{staticClass:"name",on:{click:t.batchTap}},[t._v("批量"),i("span",{staticClass:"iconfont iconxiayi"})]),t.batchShow?i("div",{staticClass:"input acea-row row-center-wrapper"},[i("Input",{staticStyle:{width:"150px"},attrs:{type:"number"},on:{"on-change":t.inputTap},model:{value:t.batchStock,callback:function(e){t.batchStock=e},expression:"batchStock"}},[i("Select",{staticStyle:{width:"60px"},attrs:{slot:"append"},on:{"on-change":t.batchStockTap},slot:"append",model:{value:t.batchPm,callback:function(e){t.batchPm=e},expression:"batchPm"}},[i("Option",{attrs:{value:1}},[t._v("入库")]),i("Option",{attrs:{value:0}},[t._v("出库")])],1)],1)],1):t._e()]):t._e(),i("Table",{ref:"selection",attrs:{columns:t.columns,border:"",data:t.stockData,loading:t.loading,"no-data-text":"暂无数据","highlight-row":"","no-filtered-data-text":"暂无筛选结果","max-height":"450"},scopedSlots:t._u([{key:"image",fn:function(t){var e=t.row;t.index;return[i("div",{staticClass:"product-data"},[i("img",{staticClass:"image",attrs:{src:e.image}})])]}},{key:"num",fn:function(e){var a=e.row;e.index;return[i("div",{staticClass:"acea-row row-middle"},[i("Input",{staticStyle:{width:"150px"},attrs:{type:"number"},on:{"on-change":function(e){return t.changeTap(a)}},model:{value:a.changeNum,callback:function(e){t.$set(a,"changeNum",e)},expression:"row.changeNum"}},[i("Select",{staticStyle:{width:"60px"},attrs:{slot:"append"},on:{"on-change":function(e){return t.stockTap(a)}},slot:"append",model:{value:a.pm,callback:function(e){t.$set(a,"pm",e)},expression:"row.pm"}},[i("Option",{attrs:{value:1}},[t._v("入库")]),i("Option",{attrs:{value:0}},[t._v("出库")])],1)],1),i("span",{staticClass:"ml20"},[t._v("="+t._s(a.resultNum))])],1)]}}])}),i("div",{staticClass:"footer acea-row row-right"},[i("Button",{staticClass:"mr",on:{click:t.cancel}},[t._v("取消")]),i("Button",{attrs:{type:"primary"},on:{click:t.productSaveStocks}},[t._v("提交")])],1)],1)],1)},w=[],k={name:"stockEdit",props:{},data:function(){return{id:0,specType:0,batchShow:!1,batchStock:0,batchPm:1,modals:!1,loading:!1,stockData:[],columns:[{title:"图片",slot:"image",minWidth:20},{title:"产品规格",key:"suk",minWidth:90},{title:"商品条形码",key:"bar_code",minWidth:35},{title:"商品编码",key:"code",minWidth:35},{title:"当前库存",key:"stock",minWidth:10},{title:"入/出库数量",slot:"num",minWidth:200}]}},methods:{countBatch:function(){var t=this;this.batchStock=Math.abs(this.batchStock),this.stockData.forEach((function(e){if(e.changeNum=t.batchStock,t.batchPm)e.pm=1,e.resultNum=parseInt(e.stock)+parseInt(e.changeNum);else if(e.pm=0,parseInt(e.stock)<=0)e.resultNum=0;else{var i=parseInt(e.stock)-parseInt(e.changeNum);e.resultNum=i<=0?0:i}}))},inputTap:function(){this.batchStock=this.batchStock.replace(/^\d{10}$/g,"0"),this.countBatch()},batchStockTap:function(){this.countBatch()},countStock:function(t){if(t.pm)t.resultNum=parseInt(t.stock)+parseInt(t.changeNum);else if(parseInt(t.stock)<=0)t.resultNum=0;else{var e=parseInt(t.stock)-parseInt(t.changeNum);t.resultNum=e<=0?0:e}this.stockData.forEach((function(e){t.id==e.id&&(e.changeNum=t.changeNum,e.resultNum=t.resultNum,e.pm=t.pm)}))},stockTap:function(t){this.countStock(t)},changeTap:function(t){t.changeNum=t.changeNum.replace(/^\d{10}$/g,"0"),this.countStock(t)},batchTap:function(){this.batchShow=!this.batchShow},productAttrs:function(t){var e=this;this.specType=t.spec_type,this.id=t.id,Object(m["l"])(t.id).then((function(t){var i=t.data;i.forEach((function(t){t.resultNum=t.stock,t.changeNum=0,t.pm=1})),e.stockData=i})).catch((function(t){e.$Message.error(t.msg)}))},productSaveStocks:function(){var t=this,e=[];this.stockData.forEach((function(t){var i={unique:t.unique,pm:t.pm,stock:t.changeNum};e.push(i)})),Object(m["z"])({attrs:e},this.id).then((function(e){t.$Message.success("修改成功"),t.cancel(),t.$emit("stockChange",e.data.stock)})).catch((function(e){t.$Message.error(e.msg)}))},cancel:function(){this.modals=!1,this.batchShow=!1,this.batchPm=1,this.batchStock=0}}},x=k,V=(i("db20"),Object(g["a"])(x,y,w,!1,null,"6e2ecac9",null)),C=V.exports,S=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",[i("Drawer",{attrs:{value:t.visible,styles:{padding:"0 0 60px"},width:"1000"},on:{"on-visible-change":t.drawerChange}},[i("div",{staticClass:"drawer-main"},[i("div",{staticClass:"header"},[i("Icon",{attrs:{custom:"iconfont iconmanjianmanzhe",size:"60"}}),i("div",[i("div",{staticClass:"title"},[t._v(t._s(t.formValidate.store_name))]),i("div",[t._v("商品ID:"+t._s(t.productId))])])],1),i("Tabs",{on:{"on-click":t.onhangeTab},model:{value:t.currentTab,callback:function(e){t.currentTab=e},expression:"currentTab"}},t._l(t.headTab,(function(t,e){return i("TabPane",{key:e,attrs:{label:t.title,name:t.name}})})),1),i("Form",{ref:"formValidate",staticClass:"formValidate",attrs:{rules:t.ruleValidate,model:t.formValidate,"label-width":t.labelWidth,"label-position":t.labelPosition,disabled:!!t.pid},nativeOn:{submit:function(t){t.preventDefault()}}},[i("Row",{directives:[{name:"show",rawName:"v-show",value:"1"===t.currentTab,expression:"currentTab === '1'"}],attrs:{type:"flex"}},[i("Col",{attrs:{span:"24"}},[i("FormItem",{attrs:{label:"商品名称:"}},[i("Input",{directives:[{name:"width",rawName:"v-width",value:"50%",expression:"'50%'"}],attrs:{placeholder:"请输入商品名称"},model:{value:t.formValidate.store_name,callback:function(e){t.$set(t.formValidate,"store_name",e)},expression:"formValidate.store_name"}})],1)],1),i("Col",{attrs:{span:"24"}},[i("FormItem",{attrs:{label:"商品分类:"}},[i("el-cascader",{directives:[{name:"width",rawName:"v-width",value:"50%",expression:"'50%'"}],attrs:{placeholder:"请选择商品分类",size:"mini",options:t.treeSelect,props:t.props,filterable:"",clearable:"",disabled:!!t.pid},model:{value:t.formValidate.cate_id,callback:function(e){t.$set(t.formValidate,"cate_id",e)},expression:"formValidate.cate_id"}})],1)],1),i("Col",{staticClass:"brandName",attrs:{span:"24"}},[i("FormItem",{attrs:{label:"商品品牌:"}},[i("Cascader",{directives:[{name:"width",rawName:"v-width",value:"50%",expression:"'50%'"}],attrs:{data:t.brandData,placeholder:"请选择商品品牌","change-on-select":"",filterable:""},model:{value:t.formValidate.brand_id,callback:function(e){t.$set(t.formValidate,"brand_id",e)},expression:"formValidate.brand_id"}})],1)],1),i("Col",{attrs:{span:"24"}},[i("FormItem",{attrs:{label:"单位:"}},[i("Select",{directives:[{name:"width",rawName:"v-width",value:"50%",expression:"'50%'"}],attrs:{clearable:"",filterable:"",placeholder:"请输入单位"},model:{value:t.formValidate.unit_name,callback:function(e){t.$set(t.formValidate,"unit_name",e)},expression:"formValidate.unit_name"}},t._l(t.unitNameList,(function(e,a){return i("Option",{key:a,attrs:{value:e.name}},[t._v(t._s(e.name))])})),1)],1)],1),i("Col",{attrs:{span:"24"}},[i("FormItem",{staticClass:"labelClass",attrs:{label:"商品标签:"}},[i("div",{staticClass:"acea-row row-middle"},[i("div",{staticClass:"labelInput acea-row row-between-wrapper",on:{click:t.openStoreLabel}},[i("div",{staticStyle:{width:"90%"}},[t.storeDataLabel.length?i("div",t._l(t.storeDataLabel,(function(e){return i("Tag",{key:e.id,attrs:{closable:""},on:{"on-close":function(i){return t.closeStoreLabel(e)}}},[t._v(t._s(e.label_name))])})),1):i("span",{staticClass:"span"},[t._v("选择商品标签")])]),i("div",{staticClass:"iconfont iconxiayi"})])])])],1),i("Col",{attrs:{span:"24"}},[i("FormItem",{attrs:{label:"商品编码:"}},[i("Input",{directives:[{name:"width",rawName:"v-width",value:"50%",expression:"'50%'"}],attrs:{placeholder:"请输入商品编码"},model:{value:t.formValidate.code,callback:function(e){t.$set(t.formValidate,"code",e)},expression:"formValidate.code"}})],1)],1),i("Col",{attrs:{span:"24"}},[i("FormItem",{attrs:{label:"商品轮播图:"}},[i("div",{staticClass:"acea-row"},[t._l(t.formValidate.slider_image,(function(e,a){return i("div",{key:a,staticClass:"pictrue",attrs:{draggable:"true"},on:{dragstart:function(i){return t.handleDragStart(i,e)},dragover:function(i){return i.preventDefault(),t.handleDragOver(i,e)},dragenter:function(i){return t.handleDragEnter(i,e)},dragend:function(i){return t.handleDragEnd(i,e)}}},[i("img",{directives:[{name:"lazy",rawName:"v-lazy",value:e,expression:"item"}]}),i("Button",{staticClass:"btndel",attrs:{shape:"circle",icon:"md-close"},nativeOn:{click:function(e){return t.handleRemove(a)}}})],1)})),t.formValidate.slider_image.length<10&&!t.pid?i("div",{staticClass:"upLoad acea-row row-center-wrapper",on:{click:function(e){return t.modalPicTap("duo")}}},[i("Icon",{attrs:{type:"ios-camera-outline",size:"26"}})],1):t._e(),i("Input",{staticClass:"input-display",model:{value:t.formValidate.slider_image[0],callback:function(e){t.$set(t.formValidate.slider_image,0,e)},expression:"formValidate.slider_image[0]"}})],2),i("div",{staticClass:"tips"},[t._v("\n 建议尺寸:800 *\n 800px,可拖拽改变图片顺序,默认首张图为主图,最多上传10张\n ")])])],1),i("Col",{attrs:{span:"24"}},[i("FormItem",{attrs:{label:"添加视频:"}},[i("i-switch",{attrs:{size:"large"},model:{value:t.formValidate.video_open,callback:function(e){t.$set(t.formValidate,"video_open",e)},expression:"formValidate.video_open"}},[i("span",{attrs:{slot:"open"},slot:"open"},[t._v("开启")]),i("span",{attrs:{slot:"close"},slot:"close"},[t._v("关闭")])])],1)],1),t.formValidate.video_open?i("Col",{attrs:{span:"24"}},[i("FormItem",{attrs:{label:"视频类型:"}},[i("RadioGroup",{on:{"on-change":t.changeVideo},model:{value:t.seletVideo,callback:function(e){t.seletVideo=e},expression:"seletVideo"}},[i("Radio",{staticClass:"radio",attrs:{label:0}},[t._v("本地视频")]),i("Radio",{attrs:{label:1}},[t._v("视频链接")])],1)],1)],1):t._e(),t.formValidate.video_open?i("Col",{attrs:{span:"24"}},[i("FormItem",{attrs:{label:""}},[1!=t.seletVideo||t.formValidate.video_link?t._e():i("Input",{directives:[{name:"width",rawName:"v-width",value:"50%",expression:"'50%'"}],attrs:{placeholder:"请输入视频链接"},model:{value:t.videoLink,callback:function(e){t.videoLink=e},expression:"videoLink"}}),i("input",{ref:"refid",staticClass:"input-display",attrs:{type:"file"},on:{change:t.zh_uploadFile_change}}),0!=t.seletVideo||"1"===t.upload_type&&!t.videoLink||t.formValidate.video_link?t._e():i("div",{staticClass:"ml10 videbox",on:{click:t.zh_uploadFile}},[t._v("\n +\n ")]),1!=t.seletVideo||"1"===t.upload_type&&!t.videoLink||t.formValidate.video_link?t._e():i("Button",{staticClass:"uploadVideo",attrs:{type:"primary",icon:"ios-cloud-upload-outline"},on:{click:t.zh_uploadFile}},[t._v("确认添加")]),"1"!==t.upload_type||t.videoLink?t._e():i("Upload",{staticStyle:{display:"inline-block"},attrs:{"show-upload-list":!1,action:t.fileUrl2,"before-upload":t.videoSaveToUrl,data:t.uploadData,headers:t.header,multiple:!0}},[0!==t.seletVideo||t.formValidate.video_link?t._e():i("div",{staticClass:"videbox"},[t._v("\n +\n ")])]),t.formValidate.video_link?i("div",{staticClass:"iview-video-style"},[i("video",{staticClass:"video-style",attrs:{src:t.formValidate.video_link,controls:"controls"}},[t._v("\n 您的浏览器不支持 video 标签。\n ")]),i("div",{staticClass:"mark"}),i("Icon",{staticClass:"iconv",attrs:{type:"ios-trash-outline"},on:{click:t.delVideo}})],1):t._e(),t.upload.videoIng||t.videoIng?i("Progress",{staticClass:"progress",attrs:{percent:t.progress,"stroke-width":5}}):t._e(),i("div",{staticClass:"tips"},[t._v("建议时长:9~30秒,视频宽高比16:9")])],1)],1):t._e(),i("Col",{staticClass:"goodsShow",attrs:{span:"24"}},[i("FormItem",{attrs:{label:"上架时间:"}},[i("RadioGroup",{on:{"on-change":t.goodsOn},model:{value:t.formValidate.is_show,callback:function(e){t.$set(t.formValidate,"is_show",e)},expression:"formValidate.is_show"}},[i("Radio",{attrs:{label:1}},[i("Icon",{attrs:{type:"social-apple"}}),i("span",[t._v("立即上架")])],1),i("Radio",{attrs:{label:2}},[i("Icon",{attrs:{type:"social-android"}}),i("span",[t._v("定时上架")])],1),i("Radio",{attrs:{label:0}},[i("Icon",{attrs:{type:"social-windows"}}),i("span",[t._v("放入仓库")])],1)],1)],1)],1),2==t.formValidate.is_show?i("Col",{attrs:{span:"24"}},[i("FormItem",{attrs:{label:""}},[i("DatePicker",{staticStyle:{width:"260px"},attrs:{type:"datetime",options:t.startPickOptions,value:t.formValidate.auto_on_time,placeholder:"请选择上架时间",format:"yyyy-MM-dd HH:mm"},on:{"on-change":t.onchangeShow},model:{value:t.formValidate.auto_on_time,callback:function(e){t.$set(t.formValidate,"auto_on_time",e)},expression:"formValidate.auto_on_time"}})],1)],1):t._e(),i("Col",{staticClass:"goodsShow",attrs:{span:"24"}},[i("FormItem",{attrs:{label:"定时下架:"}},[i("i-switch",{attrs:{"true-value":1,"false-value":0,size:"large"},on:{"on-change":t.goodsOff},model:{value:t.off_show,callback:function(e){t.off_show=e},expression:"off_show"}},[i("span",{attrs:{slot:"open"},slot:"open"},[t._v("开启")]),i("span",{attrs:{slot:"close"},slot:"close"},[t._v("关闭")])])],1)],1),1==t.off_show?i("Col",{attrs:{span:"24"}},[i("FormItem",{attrs:{label:""}},[i("DatePicker",{staticStyle:{width:"260px"},attrs:{type:"datetime",options:t.endPickOptions,value:t.formValidate.auto_off_time,placeholder:"请选择下架时间",format:"yyyy-MM-dd HH:mm"},on:{"on-change":t.onchangeOff},model:{value:t.formValidate.auto_off_time,callback:function(e){t.$set(t.formValidate,"auto_off_time",e)},expression:"formValidate.auto_off_time"}}),i("div",{staticClass:"tips"},[t._v("\n 开启定时下架后,系统会在设置时间下架该商品。下架时间需晚于开售时间,商品才能定时开售。\n ")])],1)],1):t._e()],1),i("Row",{directives:[{name:"show",rawName:"v-show",value:"2"===t.currentTab,expression:"currentTab === '2'"}],attrs:{type:"flex"}},[i("Col",{attrs:{span:"24"}},[i("FormItem",{attrs:{label:"商品规格:",props:"spec_type"}},[i("RadioGroup",{on:{"on-change":t.changeSpec},model:{value:t.formValidate.spec_type,callback:function(e){t.$set(t.formValidate,"spec_type",e)},expression:"formValidate.spec_type"}},[i("Radio",{staticClass:"radio",attrs:{label:0}},[t._v("单规格")]),i("Radio",{attrs:{label:1}},[t._v("多规格")])],1)],1)],1),1===t.formValidate.spec_type?i("Col",{staticClass:"noForm",attrs:{span:"24"}},[i("Col",{attrs:{span:"24"}},[i("FormItem",{attrs:{label:"选择规格:"}},[i("div",{staticClass:"acea-row row-middle"},[i("Select",{staticStyle:{width:"23%"},model:{value:t.formValidate.selectRule,callback:function(e){t.$set(t.formValidate,"selectRule",e)},expression:"formValidate.selectRule"}},t._l(t.ruleList,(function(e,a){return i("Option",{key:a,attrs:{value:e.rule_name}},[t._v(t._s(e.rule_name))])})),1),i("Button",{staticClass:"mr20",attrs:{type:"primary"},on:{click:t.confirm}},[t._v("确认")]),i("Button",{on:{click:t.addRule}},[t._v("添加规格模板")])],1)])],1),i("Col",{attrs:{span:"24"}},[0!==t.attrs.length?i("FormItem",[i("draggable",{staticClass:"dragArea list-group",attrs:{list:t.attrs,group:"peoples",handle:".move-icon",move:t.checkMove},on:{end:t.end}},t._l(t.attrs,(function(e,a){return i("div",{key:a,staticClass:"acea-row row-middle mb10"},[i("div",{staticClass:"move-icon"},[i("span",{staticClass:"iconfont icondrag2"})]),i("div",{class:t.moveIndex===a?"borderStyle":"",staticStyle:{width:"90%"}},[i("div",{staticClass:"acea-row row-middle"},[i("span",{staticClass:"mr5"},[t._v(t._s(e.value))]),i("Icon",{staticClass:"curs",attrs:{type:"ios-close-circle",size:"14"},on:{click:function(e){return t.handleRemoveRole(a)}}})],1),i("div",{staticClass:"rulesBox"},[i("draggable",{attrs:{list:e.detail,handle:".drag"}},t._l(e.detail,(function(a,o){return i("Tag",{key:o,staticClass:"mr20 drag",attrs:{type:"dot",closable:"",color:"primary",name:a},on:{"on-close":function(i){return t.handleRemove2(e.detail,o)}}},[t._v(t._s(a))])})),1),i("Input",{staticClass:"width-add",attrs:{search:"","enter-button":"添加",placeholder:"请输入属性名称"},on:{"on-search":function(i){return t.createAttr(e.detail.attrsVal,a)}},model:{value:e.detail.attrsVal,callback:function(i){t.$set(e.detail,"attrsVal",i)},expression:"item.detail.attrsVal"}})],1)])])})),0)],1):t._e()],1),t.createBnt?i("Col",{attrs:{span:"24"}},[i("FormItem",[i("Button",{staticClass:"mr15",attrs:{type:"primary",icon:"md-add"},on:{click:t.addBtn}},[t._v("添加新规格")]),i("Button",{attrs:{type:"success"},on:{click:function(e){return t.generate(1)}}},[t._v("立即生成")])],1)],1):t._e(),t.showIput?i("Col",{attrs:{span:"24"}},[i("Col",{attrs:{xl:6,lg:9,md:10,sm:24,xs:24}},[i("FormItem",{attrs:{label:"规格:"}},[i("Input",{attrs:{placeholder:"请输入规格"},model:{value:t.formDynamic.attrsName,callback:function(e){t.$set(t.formDynamic,"attrsName",e)},expression:"formDynamic.attrsName"}})],1)],1),i("Col",{attrs:{xl:6,lg:9,md:10,sm:24,xs:24}},[i("FormItem",{attrs:{label:"规格值:"}},[i("Input",{attrs:{placeholder:"请输入规格值"},model:{value:t.formDynamic.attrsVal,callback:function(e){t.$set(t.formDynamic,"attrsVal",e)},expression:"formDynamic.attrsVal"}})],1)],1),i("Col",{attrs:{xl:6,lg:5,md:10,sm:24,xs:24}},[i("FormItem",[i("Button",{staticClass:"mr15",attrs:{type:"primary"},on:{click:t.createAttrName}},[t._v("确定")]),i("Button",{on:{click:t.offAttrName}},[t._v("取消")])],1)],1)],1):t._e(),t.manyFormValidate.length&&0!==t.formValidate.header.length&&0!==t.attrs.length?i("Col",{attrs:{xl:24,lg:24,md:24,sm:24,xs:24}},[i("Col",{attrs:{span:"24"}},[i("FormItem",{staticClass:"labeltop",attrs:{label:"批量设置:"}},[i("Table",{attrs:{data:t.oneFormBatch,columns:1==t.formValidate.product_type?t.columnsCarMy:3==t.formValidate.product_type?t.columnsFictitious:t.columns2,border:""},scopedSlots:t._u([{key:"attr",fn:function(e){e.row,e.index;return[i("div",{staticClass:"acea-row row-between-wrapper",staticStyle:{cursor:"pointer"},on:{click:t.batchAttr}},[i("div",{staticStyle:{width:"41px"}},[t._v("\n "+t._s(t.oneFormBatch[0].attr)+"\n ")]),i("span",{staticClass:"iconfont icondrop-down"})])]}},{key:"pic",fn:function(e){e.row;var a=e.index;return[i("div",{staticClass:"acea-row row-middle row-center-wrapper",on:{click:function(e){return t.modalPicTap("dan","duopi",a)}}},[t.oneFormBatch[0].pic?i("div",{staticClass:"pictrue pictrueTab"},[i("img",{directives:[{name:"lazy",rawName:"v-lazy",value:t.oneFormBatch[0].pic,expression:"oneFormBatch[0].pic"}]})]):i("div",{staticClass:"\n upLoad\n pictrueTab\n acea-row\n row-center-wrapper\n "},[i("Icon",{staticClass:"iosfont",attrs:{type:"ios-camera-outline",size:"26"}})],1)])]}},{key:"price",fn:function(e){e.row,e.index;return[i("InputNumber",{staticClass:"priceBox",attrs:{min:0},model:{value:t.oneFormBatch[0].price,callback:function(e){t.$set(t.oneFormBatch[0],"price",e)},expression:"oneFormBatch[0].price"}})]}},{key:"settle_price",fn:function(e){e.row,e.index;return[i("InputNumber",{staticClass:"priceBox",attrs:{min:0},model:{value:t.oneFormBatch[0].settle_price,callback:function(e){t.$set(t.oneFormBatch[0],"settle_price",e)},expression:"oneFormBatch[0].settle_price"}})]}},{key:"ot_price",fn:function(e){e.row,e.index;return[i("InputNumber",{staticClass:"priceBox",attrs:{min:0},model:{value:t.oneFormBatch[0].ot_price,callback:function(e){t.$set(t.oneFormBatch[0],"ot_price",e)},expression:"oneFormBatch[0].ot_price"}})]}},{key:"stock",fn:function(e){e.row,e.index;return[i("InputNumber",{staticClass:"priceBox",attrs:{min:0,disabled:1==t.formValidate.product_type||t.openErp},model:{value:t.oneFormBatch[0].stock,callback:function(e){t.$set(t.oneFormBatch[0],"stock",e)},expression:"oneFormBatch[0].stock"}})]}},{key:"bar_code",fn:function(e){e.row,e.index;return[i("Input",{model:{value:t.oneFormBatch[0].bar_code,callback:function(e){t.$set(t.oneFormBatch[0],"bar_code",e)},expression:"oneFormBatch[0].bar_code"}})]}},{key:"code",fn:function(e){e.row,e.index;return[i("Input",{model:{value:t.oneFormBatch[0].code,callback:function(e){t.$set(t.oneFormBatch[0],"code",e)},expression:"oneFormBatch[0].code"}})]}},{key:"weight",fn:function(e){e.row,e.index;return[i("InputNumber",{staticClass:"priceBox",attrs:{step:.1,min:0},model:{value:t.oneFormBatch[0].weight,callback:function(e){t.$set(t.oneFormBatch[0],"weight",e)},expression:"oneFormBatch[0].weight"}})]}},{key:"volume",fn:function(e){e.row,e.index;return[i("InputNumber",{staticClass:"priceBox",attrs:{step:.1,min:0},model:{value:t.oneFormBatch[0].volume,callback:function(e){t.$set(t.oneFormBatch[0],"volume",e)},expression:"oneFormBatch[0].volume"}})]}},{key:"fictitious",fn:function(e){var a=e.row;e.index;return 1==t.formValidate.product_type?[a.virtual_list||a.stock?i("span",{staticClass:"seeCatMy",on:{click:function(e){return t.seeVirtual(t.oneFormBatch[0],"oneFormBatch",0)}}},[t._v("已设置")]):i("Button",{on:{click:function(e){return t.addVirtual(0,"oneFormBatch")}}},[t._v("添加卡密")])]:void 0}},{key:"action",fn:function(e){e.row,e.index;return[i("a",{on:{click:t.batchAdd}},[t._v("批量设置")]),i("Divider",{attrs:{type:"vertical"}}),i("a",{on:{click:t.batchDel}},[t._v("清空")])]}}],null,!0)})],1)],1),i("Col",{attrs:{span:"24"}},[i("FormItem",{staticClass:"labeltop",attrs:{label:"商品属性:"}},[i("Table",{attrs:{data:t.manyFormValidate,columns:t.formValidate.header,border:""},scopedSlots:t._u([t._l(t.attrData.length,(function(e,a){return{key:"value"+(a+1),fn:function(e){e.row;var o=e.index;return[i("div",{class:t.manyFormValidate[o].select?"selectOn":""},[t._v("\n "+t._s(t.manyFormValidate[o]["value"+(a+1)])+"\n ")])]}}})),{key:"pic",fn:function(e){e.row;var a=e.index;return[i("div",{staticClass:"acea-row row-middle row-center-wrapper",on:{click:function(e){return t.modalPicTap("dan","duoTable",a)}}},[t.manyFormValidate[a].pic?i("div",{staticClass:"pictrue pictrueTab"},[i("img",{directives:[{name:"lazy",rawName:"v-lazy",value:t.manyFormValidate[a].pic,expression:"manyFormValidate[index].pic"}]})]):i("div",{staticClass:"\n upLoad\n pictrueTab\n acea-row\n row-center-wrapper\n "},[i("Icon",{attrs:{type:"ios-camera-outline",size:"21"}})],1)])]}},{key:"price",fn:function(e){e.row;var a=e.index;return[i("InputNumber",{staticClass:"priceBox",attrs:{min:0},model:{value:t.manyFormValidate[a].price,callback:function(e){t.$set(t.manyFormValidate[a],"price",e)},expression:"manyFormValidate[index].price"}})]}},{key:"settle_price",fn:function(e){e.row;var a=e.index;return[i("InputNumber",{staticClass:"priceBox",attrs:{min:0},model:{value:t.manyFormValidate[a].settle_price,callback:function(e){t.$set(t.manyFormValidate[a],"settle_price",e)},expression:"manyFormValidate[index].settle_price"}})]}},{key:"ot_price",fn:function(e){e.row;var a=e.index;return[i("InputNumber",{staticClass:"priceBox",attrs:{min:0},model:{value:t.manyFormValidate[a].ot_price,callback:function(e){t.$set(t.manyFormValidate[a],"ot_price",e)},expression:"manyFormValidate[index].ot_price"}})]}},{key:"stock",fn:function(e){e.row;var a=e.index;return[i("InputNumber",{staticClass:"priceBox",attrs:{min:0,precision:0,disabled:1==t.formValidate.product_type||t.openErp},model:{value:t.manyFormValidate[a].stock,callback:function(e){t.$set(t.manyFormValidate[a],"stock",e)},expression:"manyFormValidate[index].stock"}})]}},{key:"fictitious",fn:function(e){var a=e.row,o=e.index;return 1==t.formValidate.product_type?[a.virtual_list&&a.virtual_list.length||a.stock?i("span",{staticClass:"seeCatMy",on:{click:function(e){return t.seeVirtual(a,"manyFormValidate",o)}}},[t._v("已设置")]):i("Button",{on:{click:function(e){return t.addVirtual(o,"manyFormValidate")}}},[t._v("添加卡密")])]:void 0}},{key:"bar_code",fn:function(e){e.row;var a=e.index;return[i("Input",{model:{value:t.manyFormValidate[a].bar_code,callback:function(e){t.$set(t.manyFormValidate[a],"bar_code",e)},expression:"manyFormValidate[index].bar_code"}})]}},{key:"code",fn:function(e){e.row;var a=e.index;return[i("Input",{model:{value:t.manyFormValidate[a].code,callback:function(e){t.$set(t.manyFormValidate[a],"code",e)},expression:"manyFormValidate[index].code"}})]}},{key:"weight",fn:function(e){e.row;var a=e.index;return[i("InputNumber",{staticClass:"priceBox",attrs:{min:0},model:{value:t.manyFormValidate[a].weight,callback:function(e){t.$set(t.manyFormValidate[a],"weight",e)},expression:"manyFormValidate[index].weight"}})]}},{key:"volume",fn:function(e){e.row;var a=e.index;return[i("InputNumber",{staticClass:"priceBox",attrs:{min:0},model:{value:t.manyFormValidate[a].volume,callback:function(e){t.$set(t.manyFormValidate[a],"volume",e)},expression:"manyFormValidate[index].volume"}})]}},{key:"action",fn:function(e){e.row;var a=e.index;return[i("a",{on:{click:function(e){return t.delAttrTable(a)}}},[t._v("删除")])]}}],null,!0)})],1)],1)],1):t._e()],1):t._e(),0===t.formValidate.spec_type?i("div",{staticStyle:{width:"100%"}},[i("Col",{attrs:{span:"24"}},[i("FormItem",{attrs:{label:"图片:"}},[i("div",{staticClass:"pictrueBox",on:{click:function(e){return t.modalPicTap("dan","danTable",0)}}},[t.oneFormValidate[0].pic?i("div",{staticClass:"pictrue"},[i("img",{directives:[{name:"lazy",rawName:"v-lazy",value:t.oneFormValidate[0].pic,expression:"oneFormValidate[0].pic"}]})]):i("div",{staticClass:"upLoad acea-row row-center-wrapper"},[i("Input",{staticClass:"input-display",model:{value:t.oneFormValidate[0].pic,callback:function(e){t.$set(t.oneFormValidate[0],"pic",e)},expression:"oneFormValidate[0].pic"}}),i("Icon",{attrs:{type:"ios-camera-outline",size:"26"}})],1)])])],1),i("Col",{staticClass:"asterisk",attrs:{span:"24"}},[i("FormItem",{attrs:{label:"售价:"}},[i("InputNumber",{directives:[{name:"width",rawName:"v-width",value:"50%",expression:"'50%'"}],attrs:{min:0,max:99999999},model:{value:t.oneFormValidate[0].price,callback:function(e){t.$set(t.oneFormValidate[0],"price",e)},expression:"oneFormValidate[0].price"}})],1)],1),i("Col",{staticClass:"asterisk",attrs:{span:"24"}},[i("FormItem",{attrs:{label:"结算价:"}},[i("InputNumber",{directives:[{name:"width",rawName:"v-width",value:"50%",expression:"'50%'"}],attrs:{min:0,max:99999999},model:{value:t.oneFormValidate[0].settle_price,callback:function(e){t.$set(t.oneFormValidate[0],"settle_price",e)},expression:"oneFormValidate[0].settle_price"}})],1)],1),i("Col",{attrs:{span:"24"}},[i("FormItem",{attrs:{label:"原价:"}},[i("InputNumber",{directives:[{name:"width",rawName:"v-width",value:"50%",expression:"'50%'"}],attrs:{min:0,max:99999999},model:{value:t.oneFormValidate[0].ot_price,callback:function(e){t.$set(t.oneFormValidate[0],"ot_price",e)},expression:"oneFormValidate[0].ot_price"}})],1)],1),i("Col",{staticClass:"asterisk",attrs:{span:"24"}},[i("FormItem",{attrs:{label:"库存:"}},[i("InputNumber",{directives:[{name:"width",rawName:"v-width",value:"50%",expression:"'50%'"}],attrs:{min:0,max:99999999,disabled:1==t.formValidate.product_type||t.openErp,precision:0},model:{value:t.oneFormValidate[0].stock,callback:function(e){t.$set(t.oneFormValidate[0],"stock",e)},expression:"oneFormValidate[0].stock"}})],1)],1),i("Col",{attrs:{span:"24"}},[i("FormItem",{attrs:{label:"商品条形码:"}},[i("Input",{directives:[{name:"width",rawName:"v-width",value:"50%",expression:"'50%'"}],attrs:{placeholder:"请输入商品条形码"},model:{value:t.oneFormValidate[0].bar_code,callback:function(e){t.$set(t.oneFormValidate[0],"bar_code","string"===typeof e?e.trim():e)},expression:"oneFormValidate[0].bar_code"}})],1)],1),i("Col",{attrs:{span:"24"}},[i("FormItem",{attrs:{label:"商品编号:"}},[i("Input",{directives:[{name:"width",rawName:"v-width",value:"50%",expression:"'50%'"}],attrs:{placeholder:"请输入商品编码"},model:{value:t.oneFormValidate[0].code,callback:function(e){t.$set(t.oneFormValidate[0],"code","string"===typeof e?e.trim():e)},expression:"oneFormValidate[0].code"}})],1)],1),0==t.formValidate.product_type?i("Col",{attrs:{span:"24"}},[i("FormItem",{attrs:{label:"重量(KG):"}},[i("InputNumber",{directives:[{name:"width",rawName:"v-width",value:"50%",expression:"'50%'"}],attrs:{min:0,max:99999999},model:{value:t.oneFormValidate[0].weight,callback:function(e){t.$set(t.oneFormValidate[0],"weight",e)},expression:"oneFormValidate[0].weight"}})],1)],1):t._e(),0==t.formValidate.product_type?i("Col",{attrs:{span:"24"}},[i("FormItem",{attrs:{label:"体积(m³):"}},[i("InputNumber",{directives:[{name:"width",rawName:"v-width",value:"50%",expression:"'50%'"}],attrs:{min:0,max:99999999},model:{value:t.oneFormValidate[0].volume,callback:function(e){t.$set(t.oneFormValidate[0],"volume",e)},expression:"oneFormValidate[0].volume"}})],1)],1):t._e(),1==t.formValidate.product_type?i("Col",{attrs:{span:"24"}},[i("FormItem",{attrs:{label:"卡密设置:"}},[t.oneFormValidate[0].virtual_list.length||t.oneFormValidate[0].stock?i("span",{staticClass:"seeCatMy",on:{click:function(e){return t.seeVirtual(t.oneFormValidate[0],"oneFormValidate",0)}}},[t._v("已设置")]):i("Button",{on:{click:function(e){return t.addVirtual(0,"oneFormValidate")}}},[t._v("添加卡密")])],1)],1):t._e()],1):t._e()],1),i("Row",{directives:[{name:"show",rawName:"v-show",value:"3"===t.currentTab,expression:"currentTab === '3'"}],staticClass:"mb10"},[i("Col",{attrs:{span:"22",offset:"1"}},[i("wangeditor",{ref:"wangeditor",staticStyle:{width:"100%"},attrs:{content:t.contents},on:{editorContent:t.getEditorContent}})],1)],1),i("Row",{directives:[{name:"show",rawName:"v-show",value:"4"===t.currentTab,expression:"currentTab === '4'"}]},[i("Col",t._b({},"Col",t.grid3,!1),[i("FormItem",{attrs:{label:"配送方式:"}},[i("CheckboxGroup",{model:{value:t.formValidate.delivery_type,callback:function(e){t.$set(t.formValidate,"delivery_type",e)},expression:"formValidate.delivery_type"}},[i("Checkbox",{attrs:{label:"1"}},[t._v("快递")])],1)],1)],1),i("Col",{attrs:{span:"24"}},[i("FormItem",{attrs:{label:"运费设置:"}},[i("RadioGroup",{model:{value:t.formValidate.freight,callback:function(e){t.$set(t.formValidate,"freight",e)},expression:"formValidate.freight"}},[i("Radio",{attrs:{label:1}},[t._v("包邮")]),i("Radio",{attrs:{label:2}},[t._v("固定邮费")]),i("Radio",{attrs:{label:3}},[t._v("运费模板")])],1)],1)],1),2==t.formValidate.freight?i("Col",{attrs:{span:"24"}},[i("FormItem",{attrs:{label:""}},[i("div",{staticClass:"acea-row row-middle"},[i("InputNumber",{staticClass:"perW20 maxW",attrs:{min:0,placeholder:"请输入金额"},model:{value:t.formValidate.postage,callback:function(e){t.$set(t.formValidate,"postage",e)},expression:"formValidate.postage"}}),i("span",{staticClass:"ml10"},[t._v("元")])],1)])],1):t._e(),3==t.formValidate.freight?i("Col",{attrs:{span:"24"}},[i("FormItem",{attrs:{label:""}},[i("div",{staticClass:"acea-row"},[i("Select",{staticClass:"perW20 maxW",attrs:{clearable:""},model:{value:t.formValidate.temp_id,callback:function(e){t.$set(t.formValidate,"temp_id",e)},expression:"formValidate.temp_id"}},t._l(t.templateList,(function(e,a){return i("Option",{key:a,attrs:{value:e.id}},[t._v(t._s(e.name))])})),1)],1)])],1):t._e(),i("Col",{attrs:{span:"24"}},[i("FormItem",{attrs:{label:"虚拟销量:"}},[i("InputNumber",{directives:[{name:"width",rawName:"v-width",value:"50%",expression:"'50%'"}],attrs:{min:0,max:999999,placeholder:"请输入虚拟销量"},model:{value:t.formValidate.ficti,callback:function(e){t.$set(t.formValidate,"ficti",e)},expression:"formValidate.ficti"}})],1)],1),i("Col",{attrs:{span:"24"}},[i("FormItem",{attrs:{label:"是否限购:"}},[i("i-switch",{attrs:{"true-value":1,"false-value":0,size:"large"},on:{"on-change":t.limitTap},model:{value:t.formValidate.is_limit,callback:function(e){t.$set(t.formValidate,"is_limit",e)},expression:"formValidate.is_limit"}},[i("span",{attrs:{slot:"open"},slot:"open"},[t._v("开启")]),i("span",{attrs:{slot:"close"},slot:"close"},[t._v("关闭")])])],1)],1),t.formValidate.is_limit?i("Col",{attrs:{span:"24"}},[i("FormItem",{attrs:{label:"限购类型:"}},[i("RadioGroup",{model:{value:t.formValidate.limit_type,callback:function(e){t.$set(t.formValidate,"limit_type",e)},expression:"formValidate.limit_type"}},[i("Radio",{attrs:{label:1}},[t._v("单次限购")]),i("Radio",{attrs:{label:2}},[t._v("长期限购")])],1),i("div",{staticClass:"tips"},[t._v("\n 单次限购是限制每次下单最多购买的数量,长期限购是限制一个用户总共可以购买的数量\n ")])],1)],1):t._e(),t.formValidate.is_limit?i("Col",{attrs:{span:"24"}},[i("FormItem",{attrs:{label:"限购数量:"}},[i("InputNumber",{staticClass:"perW20 maxW",attrs:{min:1,placeholder:"请输入限购数量"},model:{value:t.formValidate.limit_num,callback:function(e){t.$set(t.formValidate,"limit_num",e)},expression:"formValidate.limit_num"}})],1)],1):t._e(),i("Col",{attrs:{span:"24"}},[i("FormItem",{attrs:{label:"排序:"}},[i("InputNumber",{directives:[{name:"width",rawName:"v-width",value:"50%",expression:"'50%'"}],attrs:{min:0,max:999999,placeholder:"请输入排序"},model:{value:t.formValidate.sort,callback:function(e){t.$set(t.formValidate,"sort",e)},expression:"formValidate.sort"}})],1)],1),i("Col",{attrs:{span:"24"}},[i("FormItem",{attrs:{label:"商品关键字:"}},[i("Input",{directives:[{name:"width",rawName:"v-width",value:"50%",expression:"'50%'"}],attrs:{placeholder:"请输入商品关键字"},model:{value:t.formValidate.keyword,callback:function(e){t.$set(t.formValidate,"keyword",e)},expression:"formValidate.keyword"}})],1)],1),i("Col",{attrs:{span:"24"}},[i("FormItem",{attrs:{label:"商品简介:"}},[i("Input",{directives:[{name:"width",rawName:"v-width",value:"50%",expression:"'50%'"}],attrs:{type:"textarea",rows:3,placeholder:"请输入商品简介"},model:{value:t.formValidate.store_info,callback:function(e){t.$set(t.formValidate,"store_info",e)},expression:"formValidate.store_info"}})],1)],1),i("Col",{attrs:{span:"24"}},[i("FormItem",{attrs:{label:"商品口令:"}},[i("Input",{directives:[{name:"width",rawName:"v-width",value:"50%",expression:"'50%'"}],attrs:{type:"textarea",rows:3,placeholder:"请输入商品口令"},model:{value:t.formValidate.command_word,callback:function(e){t.$set(t.formValidate,"command_word",e)},expression:"formValidate.command_word"}})],1)],1),i("Col",{attrs:{span:"24"}},[i("FormItem",{attrs:{label:"商品推荐图:"}},[i("div",{staticClass:"pictrueBox",on:{click:function(e){return t.modalPicTap("dan","recommend_image")}}},[t.formValidate.recommend_image?i("div",{staticClass:"pictrue"},[i("img",{directives:[{name:"lazy",rawName:"v-lazy",value:t.formValidate.recommend_image,expression:"formValidate.recommend_image"}]}),i("Input",{staticClass:"input-display",model:{value:t.formValidate.recommend_image,callback:function(e){t.$set(t.formValidate,"recommend_image",e)},expression:"formValidate.recommend_image"}})],1):i("div",{staticClass:"upLoad acea-row row-center-wrapper"},[i("Input",{staticClass:"input-display",model:{value:t.formValidate.recommend_image,callback:function(e){t.$set(t.formValidate,"recommend_image",e)},expression:"formValidate.recommend_image"}}),i("Icon",{attrs:{type:"ios-camera-outline",size:"26"}})],1)]),i("div",{staticClass:"tips"},[t._v("(建议图片比例5:2)")])])],1),i("Col",{attrs:{span:"24"}},[i("FormItem",{attrs:{label:"服务保障:"}},[i("CheckboxGroup",{staticClass:"checkAlls",model:{value:t.formValidate.ensure_id,callback:function(e){t.$set(t.formValidate,"ensure_id",e)},expression:"formValidate.ensure_id"}},t._l(t.ensureData,(function(e,a){return i("Checkbox",{attrs:{label:e.id}},[t._v(t._s(e.name))])})),1)],1)],1),i("Col",{attrs:{span:"24"}},[i("FormItem",{attrs:{label:"商品参数:"}},[i("Select",{directives:[{name:"width",rawName:"v-width",value:"50%",expression:"'50%'"}],attrs:{clearable:"",filterable:"",placeholder:"请输入商品参数"},on:{"on-change":t.specsInfo},model:{value:t.formValidate.specs_id,callback:function(e){t.$set(t.formValidate,"specs_id",e)},expression:"formValidate.specs_id"}},t._l(t.specsData,(function(e,a){return i("Option",{key:a,attrs:{value:e.id}},[t._v(t._s(e.name))])})),1)],1)],1),t.formValidate.specs_id?i("Col",{attrs:{span:"24"}},[i("FormItem",{attrs:{label:"",props:""}},[i("Table",{ref:"table",staticClass:"specsList",attrs:{border:"",columns:t.specsColumns,data:t.specsList,width:"700"},scopedSlots:t._u([{key:"action",fn:function(e){e.row;var a=e.index;return[a>0?i("a",{on:{click:function(e){return t.delSpecs(a)}}},[t._v("删除")]):t._e()]}}],null,!1,2219201132)}),i("Button",{staticClass:"mt20",on:{click:t.addSpecs}},[t._v("添加参数")])],1)],1):t._e(),i("Col",{attrs:{span:"24"}},[i("FormItem",{attrs:{label:"自定义留言:"}},[i("i-switch",{attrs:{size:"large"},on:{"on-change":t.customMessBtn},model:{value:t.customBtn,callback:function(e){t.customBtn=e},expression:"customBtn"}},[i("span",{attrs:{slot:"open"},slot:"open"},[t._v("开启")]),i("span",{attrs:{slot:"close"},slot:"close"},[t._v("关闭")])]),t.customBtn?i("div",{staticClass:"mt10"},[i("Select",{directives:[{name:"width",rawName:"v-width",value:"50%",expression:"'50%'"}],attrs:{filterable:"",placeholder:"请选择"},on:{"on-change":t.changeForm},model:{value:t.formValidate.system_form_id,callback:function(e){t.$set(t.formValidate,"system_form_id",e)},expression:"formValidate.system_form_id"}},t._l(t.formList,(function(e,a){return i("Option",{key:e.id,attrs:{value:e.id}},[t._v(t._s(e.name))])})),1)],1):t._e()],1)],1),t.customBtn&&t.formValidate.system_form_id?i("Col",{attrs:{span:"24"}},[i("FormItem",{attrs:{label:"",props:""}},[i("Table",{ref:"table",staticClass:"specsList on",attrs:{border:"",columns:t.formColumns,data:t.formTypeList},scopedSlots:t._u([{key:"require",fn:function(e){var a=e.row;return[i("span",[t._v(t._s(a.require?"必填":"不必填"))])]}}],null,!1,469424967)})],1)],1):t._e()],1),i("Row",{directives:[{name:"show",rawName:"v-show",value:"5"===t.currentTab,expression:"currentTab === '5'"}]},[i("Col",{attrs:{span:"22",offset:"1"}},[i("Table",{ref:"table",staticClass:"ivu-mt",attrs:{columns:t.replyColumns,data:t.replyData,loading:t.replyLoading,"no-data-text":"暂无数据","no-filtered-data-text":"暂无筛选结果"},scopedSlots:t._u([{key:"info",fn:function(e){var a=e.row;return[i("div",{staticClass:"imgPic acea-row row-middle"},[i("viewer",[i("div",{staticClass:"pictrue"},[i("img",{directives:[{name:"lazy",rawName:"v-lazy",value:a.image,expression:"row.image"}]})])]),i("div",{staticClass:"info"},[t._v(t._s(a.store_name))])],1)]}},{key:"content",fn:function(e){var a=e.row;return[i("div",{staticClass:"mb5 content_font"},[t._v(t._s(a.comment))]),i("viewer",t._l(a.pics||[],(function(t,e){return i("div",{key:e,staticClass:"pictrue mr10"},[i("img",{directives:[{name:"lazy",rawName:"v-lazy",value:t,expression:"item"}]})])})),0)]}},{key:"merchant_reply_content",fn:function(e){var a=e.row;return[a.replyComment?i("div",{staticClass:"mb5 content_font"},[t._v("\n "+t._s(a.replyComment.content)+"\n ")]):t._e()]}},{key:"action",fn:function(e){var a=e.row;e.index;return[i("a",{on:{click:function(e){return t.reply(a)}}},[t._v("回复")])]}}])})],1)],1),t.spinShow?i("Spin",{attrs:{size:"large",fix:""}}):t._e()],1)],1),i("Modal",{attrs:{width:"960px",scrollable:"","footer-hide":"",closable:"",title:"上传商品图","mask-closable":!1,"z-index":1},model:{value:t.modalPic,callback:function(e){t.modalPic=e},expression:"modalPic"}},[t.modalPic?i("uploadPictures",{attrs:{isChoice:t.isChoice,gridBtn:t.gridBtn,gridPic:t.gridPic},on:{getPic:t.getPic,getPicD:t.getPicD}}):t._e()],1),i("Card",{staticClass:"fixed-card",attrs:{bordered:!1,"dis-hover":""}},[i("Form",[i("FormItem",["1"!==t.currentTab?i("Button",{on:{click:t.upTab}},[t._v("上一步")]):t._e(),"5"!==t.currentTab?i("Button",{staticClass:"submission",attrs:{type:"primary"},on:{click:function(e){return t.downTab("formValidate")}}},[t._v("下一步")]):t._e(),t.pid||!t.productId&&"5"!==t.currentTab?t._e():i("Button",{staticClass:"submission",attrs:{type:"primary",disabled:t.openSubimit},on:{click:function(e){return t.handleSubmit("formValidate")}}},[t._v("保存")])],1)],1)],1)],1),i("freightTemplate",{ref:"templates",attrs:{template:t.template},on:{changeTemplate:t.changeTemplate}}),i("add-attr",{ref:"addattr",on:{getList:t.userSearchs}}),i("Modal",{attrs:{title:"商品列表",footerHide:"",scrollable:"",width:"900"},on:{"on-cancel":t.goodCancel},model:{value:t.goodsModals,callback:function(e){t.goodsModals=e},expression:"goodsModals"}},[t.goodsModals?i("goods-list",{ref:"goodslist",attrs:{ischeckbox:!0},on:{getProductId:t.getProductId}}):t._e()],1),i("Modal",{attrs:{scrollable:"",title:"选择商品标签",closable:!0,width:"540","footer-hide":!0,"mask-closable":!1},model:{value:t.storeLabelShow,callback:function(e){t.storeLabelShow=e},expression:"storeLabelShow"}},[i("labelList",{ref:"storeLabel",on:{activeData:t.activeStoreData,close:t.storeLabelClose}})],1),i("menus-from",{ref:"menusFrom",attrs:{formValidate:t.formBrand,fromName:1}}),i("Modal",{attrs:{scrollable:"",title:"请选择商品规格",closable:!1,width:"320","footer-hide":!0,"mask-closable":!1},model:{value:t.attrShow,callback:function(e){t.attrShow=e},expression:"attrShow"}},[t.attrShow?i("attr-list",{attrs:{attrs:t.attrsList},on:{activeData:t.activeAttr,close:t.labelAttr,subAttrs:t.subAttrs}}):t._e()],1),i("Modal",{attrs:{scrollable:"",title:"回复内容",closable:""},model:{value:t.replyModal,callback:function(e){t.replyModal=e},expression:"replyModal"}},[i("Form",{ref:"replyForm",attrs:{model:t.replyForm,rules:t.ruleInline,"label-position":t.labelPosition},nativeOn:{submit:function(t){t.preventDefault()}}},[i("FormItem",{attrs:{prop:"content"}},[i("Input",{attrs:{type:"textarea",rows:4,placeholder:"请输入回复内容"},model:{value:t.replyForm.content,callback:function(e){t.$set(t.replyForm,"content",e)},expression:"replyForm.content"}})],1)],1),i("div",{attrs:{slot:"footer"},slot:"footer"},[i("Button",{attrs:{type:"primary"},on:{click:t.oks}},[t._v("确定")]),i("Button",{on:{click:t.cancels}},[t._v("取消")])],1)],1)],1)},I=[],L=i("c276"),F=i("310e"),$=i.n(F),T=i("b0e7"),M=i("5334"),D=i("a069"),B=i("2019"),A=i("0f0e"),N=i("e449"),O=i("c4ad"),E=i("2475"),z=i("645a"),P=i("0fc4"),R=i("0e5c");function j(t){return U(t)||H(t)||W()}function W(){throw new TypeError("Invalid attempt to spread non-iterable instance")}function H(t){if(Symbol.iterator in Object(t)||"[object Arguments]"===Object.prototype.toString.call(t))return Array.from(t)}function U(t){if(Array.isArray(t)){for(var e=0,i=new Array(t.length);enew Date(t.formValidate.auto_off_time).getTime()-864e5:""}}},endPickOptions:function(){var t=this;return{disabledDate:function(e){return"1"==t.formValidate.is_show?e.getTime()9?this.$Message.warning("最多添加10条"):this.addAssembly()},delcustom:function(t){this.formValidate.custom_form.splice(t,1)},onchangeShow:function(t){this.formValidate.auto_on_time=t},onchangeOff:function(t){this.formValidate.auto_off_time=t},batchAttr:function(){this.attrShow=!0},getAttr:function(){this.oneFormBatch[0].attr="全部";var t=this.attrs;t.map((function(t){t.details=[],t.detail.map((function(e){t.details.push({name:e,select:!1})}))})),this.attrsList=t},activeAttr:function(t){this.attrsList=t},labelAttr:function(){this.attrShow=!1},manyEmpty:function(t){t.pic="",t.price=0,t.settle_price=0,t.cost=0,t.ot_price=0,t.stock=0,t.bar_code="",t.code="",t.weight=0,t.volume=0,t.virtual_list=[]},doCombination:function(t){var e=t.length-1,i=[],a=[];return o(t,0);function o(t,r){var n=!0,s=!1,l=void 0;try{for(var c,d=t[r][Symbol.iterator]();!(n=(c=d.next()).done);n=!0){var u=c.value;i[r]=u,r0&&this.$set(r,"price",this.oneFormBatch[0].price),this.oneFormBatch[0].settle_price>0&&this.$set(r,"settle_price",this.oneFormBatch[0].settle_price),this.oneFormBatch[0].cost>0&&this.$set(r,"cost",this.oneFormBatch[0].cost),this.oneFormBatch[0].ot_price>0&&this.$set(r,"ot_price",this.oneFormBatch[0].ot_price),this.oneFormBatch[0].stock>0&&this.$set(r,"stock",this.oneFormBatch[0].stock),""!==this.oneFormBatch[0].bar_code&&this.$set(r,"bar_code",this.oneFormBatch[0].bar_code),""!==this.oneFormBatch[0].code&&this.$set(r,"code",this.oneFormBatch[0].code),this.oneFormBatch[0].weight>0&&this.$set(r,"weight",this.oneFormBatch[0].weight),this.oneFormBatch[0].volume>0&&this.$set(r,"volume",this.oneFormBatch[0].volume),1==this.formValidate.product_type&&(this.oneFormBatch[0].virtual_list&&this.oneFormBatch[0].virtual_list.length?this.$set(r,"virtual_list",this.oneFormBatch[0].virtual_list):this.oneFormBatch[0].disk_info&&(this.$refs.addCarMy.cartMyType=1,this.$set(r,"disk_info",this.oneFormBatch[0].disk_info))))}}catch(n){e=!0,i=n}finally{try{t||null==o.return||o.return()}finally{if(e)throw i}}},addBtn:function(){this.clearAttr(),this.createBnt=!1,this.showIput=!0},addmanyData:function(t){t.forEach((function(t){t.select=!0})),this.manyFormValidate=t},generate:function(t){var e=this;Object(m["g"])({attrs:this.attrs,product_type:this.formValidate.product_type},this.formValidate.id,t).then((function(t){var i=t.data.info,a=JSON.parse(JSON.stringify(i.header));"0"!==e.productId&&e.addmanyData(i.value),e.formValidate.header=a,e.attrData=t.data.info.attr;var o=i.header;o.pop(),e.columnsInstalM=i.header,e.productId||1!==e.formValidate.spec_type?e.productId&&(e.manyFormValidate.map((function(t){t.pic||(t.pic=e.formValidate.slider_image[0])})),e.oneFormBatch[0].pic=e.formValidate.slider_image[0]):(e.manyFormValidate.map((function(t){t.pic=e.formValidate.slider_image[0]})),e.oneFormBatch[0].pic=e.formValidate.slider_image[0]),e.getAttr()})).catch((function(t){e.$Message.error(t.msg)}))},offAttrName:function(){this.showIput=!1,this.createBnt=!0},clearAttr:function(){this.formDynamic.attrsName="",this.formDynamic.attrsVal=""},handleRemoveRole:function(t){this.attrs.splice(t,1),this.manyFormValidate.splice(t,1)},handleRemove2:function(t,e){t.splice(e,1)},createAttrName:function(){if(this.formDynamic.attrsName&&this.formDynamic.attrsVal){var t={value:this.formDynamic.attrsName,detail:[this.formDynamic.attrsVal]};this.attrs.push(t);var e={};this.attrs=this.attrs.reduce((function(t,i){return!e[i.value]&&(e[i.value]=t.push(i)),t}),[]),this.clearAttr(),this.showIput=!1,this.createBnt=!0}else this.$Message.warning("请添加完整的规格!")},createAttr:function(t,e){if(t){this.attrs[e].detail.push(t);var i={};this.attrs[e].detail=this.attrs[e].detail.reduce((function(t,e){return!i[e]&&(i[e]=t.push(e)),t}),[])}else this.$Message.warning("请添加属性")},goodsCategory:function(){var t=this;Object(m["f"])(1).then((function(e){t.treeSelect=e.data})).catch((function(e){t.$Message.error(e.msg)}))},changeVideo:function(t){this.formValidate.video_link="",this.videoLink=""},changeSpec:function(){},getInfo:function(){var t=this,e=this;e.spinShow=!0,Object(m["u"])(e.productId||this.$route.query.copy).then((function(e){var i=e.data.productInfo;t.infoData(i),t.spinShow=!1})).catch((function(e){t.spinShow=!1,t.$Message.error(e.msg)}))},onhangeTab:function(t){this.currentTab=t},handleRemove:function(t){this.images.splice(t,1),this.formValidate.slider_image.splice(t,1),this.oneFormValidate[0].pic=this.formValidate.slider_image[0]},changeCancel:function(t){this.modalPic=!1},modalPicTap:function(t,e,i){this.modalPic=!0,this.isChoice="dan"===t?"单选":"多选",this.picTit=e,this.tableIndex=i},getPic:function(t){switch(this.picTit){case"danFrom":this.formValidate.image=t.att_dir,this.productId||(0===this.formValidate.spec_type?this.oneFormValidate[0].pic=t.att_dir:(this.manyFormValidate.map((function(e){e.pic=t.att_dir})),this.oneFormBatch[0].pic=t.att_dir));break;case"danTable":this.oneFormValidate[this.tableIndex].pic=t.att_dir;break;case"duopi":this.oneFormBatch[this.tableIndex].pic=t.att_dir;break;case"recommend_image":this.formValidate.recommend_image=t.att_dir;break;default:this.manyFormValidate[this.tableIndex].pic=t.att_dir}this.modalPic=!1},getPicD:function(t){var e=this;this.images=t,this.images.map((function(t){e.formValidate.slider_image.push(t.att_dir),e.formValidate.slider_image=e.formValidate.slider_image.splice(0,10)})),this.oneFormValidate[0].pic=this.formValidate.slider_image[0],this.modalPic=!1},handleSubmit:function(t){var e=this;this.$refs[t].validate((function(t){if(t){if(!e.formValidate.store_name.trim())return e.$Message.warning("基础信息-商品名称不能为空");if(2==e.formValidate.is_show&&!e.formValidate.auto_on_time)return e.$Message.warning("基础信息-定时上架时间不能为空");if(1==e.off_show&&!e.formValidate.auto_off_time)return e.$Message.warning("基础信息-定时下架时间不能为空");if(2==e.formValidate.freight&&0==e.formValidate.product_type&&e.formValidate.postage<=0)return e.$Message.warning("物流设置-固定邮费不能为0");if(3==e.formValidate.freight&&0==e.formValidate.product_type&&!e.formValidate.temp_id)return e.$Message.warning("物流设置-运费模板不能为空");if(4==e.currentTab&&!e.formValidate.delivery_type.length)return e.$Message.warning("请选择配送方式");if(e.customBtn&&0==e.formValidate.system_form_id)return e.$Message.warning("其他设置-请选择自定义表单模板");if(e.formValidate.type=e.type,0===e.formValidate.spec_type?(e.formValidate.attrs=e.oneFormValidate,e.formValidate.header=[],e.formValidate.items=[]):(e.formValidate.items=e.attrs,e.formValidate.attrs=e.manyFormValidate),1===e.formValidate.spec_type&&0===e.manyFormValidate.length)return e.$Message.warning("规格库存-请点击生成多规格");e.formValidate.attrs;for(var i=0;i]*>/gi,(function(t,e){return t=t.replace(/style="[^"]+"/gi,"").replace(/style='[^']+'/gi,""),t=t.replace(/width="[^"]+"/gi,"").replace(/width='[^']+'/gi,""),t=t.replace(/height="[^"]+"/gi,"").replace(/height='[^']+'/gi,""),t}));return e=e.replace(/style="[^"]+"/gi,(function(t,e){return t=t.replace(/width:[^;]+;/gi,"max-width:100%;").replace(/width:[^;]+;/gi,"max-width:100%;"),t})),e=e.replace(/\i?i=o:o(t||14))return e=i,!0}},h=function(t,e,i){var a,o,r,n,s,l=function l(){var c=(new Date).getTime()-n;c=0?a=setTimeout(l,e-c):(a=null,i||(s=t.apply(r,o),a||(r=o=null)))};return function(){r=this,o=arguments,n=(new Date).getTime();var c=i&&!a;return a||(a=setTimeout(l,e)),c&&(s=t.apply(r,o),r=o=null),s}},f={render:function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{ref:"stripContainer",staticClass:"happy-scroll-strip",class:[t.horizontal?"happy-scroll-strip--horizontal":"happy-scroll-strip--vertical"],style:[t.initLocation],on:{"!wheel":function(e){return e.stopPropagation(),t.handlerWheel(e)}}},[i("div",{ref:"strip",staticClass:"happy-scroll-bar",style:[t.translate,o({},t.config.sizeAttr,t.length+"px"),t.initSize,{background:t.color},{opacity:t.isOpacity}],on:{mousedown:function(e){return e.stopPropagation(),t.handlerMouseDown(e)}}})])},staticRenderFns:[],name:"happy-scroll-strip",props:{horizontal:Boolean,left:Boolean,top:Boolean,move:{type:Number,default:0},size:{type:[Number,String],default:4},minLengthV:{type:Number,default:40},minLengthH:{type:Number,default:40},color:{type:String,default:"rgba(51,51,51,0.2)"},throttle:{type:Number,default:14}},data:function(){return{config:{},startMove:!1,binded:!1,length:0,percentage:0,maxOffset:0,currentOffset:0,moveThrottle:m(this.throttle)}},watch:{currentOffset:function(t){0===t?this.emitLocationEvent("start",0):t===this.maxOffset&&this.emitLocationEvent("end",t/this.percentage)}},computed:{initSize:function(){return o({},this.horizontal?"height":"width",this.size+"px")},isOpacity:function(){return this.percentage<1?1:0},translate:function(){var t=this.move*this.percentage;if(this.$refs.stripContainer)return t<0&&(t=0),t>this.maxOffset&&(t=this.maxOffset),this.currentOffset=t,{transform:this.config.translate+"("+t+"px)"}},initLocation:function(){return this.horizontal?this.top?{top:0,bottom:"auto"}:"":this.left?{left:0,right:"auto"}:""}},methods:{emitLocationEvent:function(t,e){var i=this.horizontal?"horizontal":"vertical";this.$emit(i+"-"+t,e)},computeStrip:function(t,e){var i=this.$refs.stripContainer[this.config.client];this.length=i*(e/t);var a=this.horizontal?this.minLengthH:this.minLengthV;a<1&&(a*=i),this.length=this.lengththis.maxOffset&&(t=this.maxOffset),e&&t>0&&t4?t:void 0}())},e.isLegacyOpera=function(){return!!window.opera}})),k=r((function(t){(t.exports={}).getOption=function(t,e,i){var a=t[e];return void 0!==a&&null!==a||void 0===i?a:i}})),x=function(t){function e(){for(u=!0;d.size();){var t=d;d=n(),t.process()}u=!1}function i(){c=o(e)}function a(t){return clearTimeout(t)}function o(t){return function(t){return setTimeout(t,0)}(t)}var r=(t=t||{}).reporter,s=k.getOption(t,"async",!0),l=k.getOption(t,"auto",!0);l&&!s&&(r&&r.warn("Invalid options combination. auto=true and async=false is invalid. Setting async=true."),s=!0);var c,d=n(),u=!1;return{add:function(t,e){!u&&l&&s&&0===d.size()&&i(),d.add(t,e)},force:function(t){u||(void 0===t&&(t=s),c&&(a(c),c=null),t?i():e())}}},V="_erd",C={initState:function(t){return t[V]={},s(t)},getState:s,cleanState:function(t){delete t[V]}},S=function(t){function e(t){return o(t).object}var i=(t=t||{}).reporter,a=t.batchProcessor,o=t.stateHandler.getState;if(!i)throw new Error("Missing required dependency: reporter.");return{makeDetectable:function(t,e,r){r||(r=e,e=t,t=null),t=t||{},w.isIE(8)?r(e):function(t,e){function r(){function a(){if("static"===l.position){t.style.position="relative";var e=function(t,e,i,a){var o=i[a];"auto"!==o&&"0"!==function(t){return t.replace(/[^-\d\.]/g,"")}(o)&&(t.warn("An element that is positioned static has style."+a+"="+o+" which is ignored due to the static positioning. The element will need to be positioned relative, so the style."+a+" will be set to 0. Element: ",e),e.style[a]=0)};e(i,t,l,"top"),e(i,t,l,"right"),e(i,t,l,"bottom"),e(i,t,l,"left")}}""!==l.position&&(a(l),s=!0);var r=document.createElement("object");r.style.cssText=n,r.tabIndex=-1,r.type="text/html",r.onload=function(){function i(t,e){t.contentDocument?e(t.contentDocument):setTimeout((function(){i(t,e)}),100)}s||a(),i(this,(function(i){e(t)}))},w.isIE()||(r.data="about:blank"),t.appendChild(r),o(t).object=r,w.isIE()&&(r.data="about:blank")}var n="display: block; position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: none; padding: 0; margin: 0; opacity: 0; z-index: -1000; pointer-events: none;",s=!1,l=window.getComputedStyle(t),c=t.offsetWidth,d=t.offsetHeight;o(t).startSize={width:c,height:d},a?a.add(r):r()}(e,r)},addListener:function(t,i){function a(){i(t)}if(!e(t))throw new Error("Element is not detectable by this strategy.");w.isIE(8)?(o(t).object={proxy:a},t.attachEvent("onresize",a)):e(t).contentDocument.defaultView.addEventListener("resize",a)},uninstall:function(t){w.isIE(8)?t.detachEvent("onresize",o(t).object.proxy):t.removeChild(e(t)),delete o(t).object}}},I=p.forEach,L=function(t){function e(t){t.className+=" "+u+"_animation_active"}function i(t,e,i){if(t.addEventListener)t.addEventListener(e,i);else{if(!t.attachEvent)return n.error("[scroll] Don't know how to add event listeners.");t.attachEvent("on"+e,i)}}function a(t,e,i){if(t.removeEventListener)t.removeEventListener(e,i);else{if(!t.detachEvent)return n.error("[scroll] Don't know how to remove event listeners.");t.detachEvent("on"+e,i)}}function o(t){return l(t).container.childNodes[0].childNodes[0].childNodes[0]}function r(t){return l(t).container.childNodes[0].childNodes[0].childNodes[1]}var n=(t=t||{}).reporter,s=t.batchProcessor,l=t.stateHandler.getState,c=t.idHandler;if(!s)throw new Error("Missing required dependency: batchProcessor");if(!n)throw new Error("Missing required dependency: reporter.");var d=function(){var t=document.createElement("div");t.style.cssText="position: absolute; width: 1000px; height: 1000px; visibility: hidden; margin: 0; padding: 0;";var e=document.createElement("div");e.style.cssText="position: absolute; width: 500px; height: 500px; overflow: scroll; visibility: none; top: -1500px; left: -1500px; visibility: hidden; margin: 0; padding: 0;",e.appendChild(t),document.body.insertBefore(e,document.body.firstChild);var i=500-e.clientWidth,a=500-e.clientHeight;return document.body.removeChild(e),{width:i,height:a}}(),u="erd_scroll_detection_container";return function(t,e){if(!document.getElementById(t)){var i=e+"_animation",a="/* Created by the element-resize-detector library. */\n";a+="."+e+" > div::-webkit-scrollbar { display: none; }\n\n",a+="."+e+"_animation_active { -webkit-animation-duration: 0.1s; animation-duration: 0.1s; -webkit-animation-name: "+i+"; animation-name: "+i+"; }\n",a+="@-webkit-keyframes "+i+" { 0% { opacity: 1; } 50% { opacity: 0; } 100% { opacity: 1; } }\n",function(e,i){i=i||function(t){document.head.appendChild(t)};var a=document.createElement("style");a.innerHTML=e,a.id=t,i(a)}(a+="@keyframes "+i+" { 0% { opacity: 1; } 50% { opacity: 0; } 100% { opacity: 1; } }")}}("erd_scroll_detection_scrollbar_style",u),{makeDetectable:function(t,a,m){function h(){if(t.debug){var e=Array.prototype.slice.call(arguments);if(e.unshift(c.get(a),"Scroll: "),n.log.apply)n.log.apply(null,e);else for(var i=0;ia&&(i=t.biggerMoveH.toLocaleLowerCase()),"start"===i&&(t.moveY=0,t.slideYChange(t.moveY)),"end"===i&&(t.moveY=e.clientHeight,t.slideYChange(t.moveY)),a=e.clientHeight,i="",e.clientWidtho&&(i=t.biggerMoveV.toLocaleLowerCase()),"start"===i&&(t.moveX=0,t.slideXChange(t.moveX)),"end"===i&&(t.moveX=e.clientWidth,t.slideXChange(t.moveX)),o=e.clientWidth}))}},setContainerSize:function(){this.initSize={width:this.$refs["happy-scroll"].clientWidth+20+"px",height:this.$refs["happy-scroll"].clientHeight+20+"px"}},checkScrollMode:function(){if(void 0===T._happyJS._isScrollNotUseSpace){var t=this.$slots.default[0].elm,e=this.$refs.container;(t.offsetHeight>e.clientHeight||t.offsetWidth>e.clientWidth)&&(e.offsetWidth>e.clientWidth||e.offsetHeight>e.clientHeight?T._happyJS._isScrollNotUseSpace=!1:T._happyJS._isScrollNotUseSpace=!0,this.isScrollNotUseSpace=T._happyJS._isScrollNotUseSpace)}}},beforeCreate:function(){var t=T._happyJS=T._happyJS||{};this.isScrollNotUseSpace=t._isScrollNotUseSpace},created:function(){this.updateSyncScroll=h((function(){this.$emit("update:scrollTop",this.moveY),this.$emit("update:scrollLeft",this.moveX)}),this.throttle)},mounted:function(){var t=this;this.setContainerSize(),this.$nextTick((function(){t.computeStripX(),t.computeStripY(),t.checkScrollMode(),t.initBrowserSize(),t.$nextTick((function(){t.scrollTop&&(t.$refs.container.scrollTop=+t.scrollTop),t.scrollLeft&&(t.$refs.container.scrollLeft=+t.scrollLeft)}))})),this.resizeListener(),this.$watch("browserHSize",this.setContainerSize),this.$watch("browserVSize",this.setContainerSize)}};"undefined"!=typeof window&&window.Vue&&Vue.component("happy-scroll",M);var D={install:function(t){t.component("happy-scroll",M)},version:"2.1.1"};t.default=D,t.HappyScroll=M,t.version="2.1.1",Object.defineProperty(t,"__esModule",{value:!0})}))},8628:function(t,e,i){"use strict";var a=i("eb63"),o=i.n(a);o.a},"9f7b":function(t,e,i){},a254:function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADYAAAAWCAYAAACL6W/rAAAACXBIWXMAAAsTAAALEwEAmpwYAAAFGmlUWHRYTUw6Y29tLmFkb2JlLnhtcAAAAAAAPD94cGFja2V0IGJlZ2luPSLvu78iIGlkPSJXNU0wTXBDZWhpSHpyZVN6TlRjemtjOWQiPz4gPHg6eG1wbWV0YSB4bWxuczp4PSJhZG9iZTpuczptZXRhLyIgeDp4bXB0az0iQWRvYmUgWE1QIENvcmUgNi4wLWMwMDIgNzkuMTY0NDYwLCAyMDIwLzA1LzEyLTE2OjA0OjE3ICAgICAgICAiPiA8cmRmOlJERiB4bWxuczpyZGY9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkvMDIvMjItcmRmLXN5bnRheC1ucyMiPiA8cmRmOkRlc2NyaXB0aW9uIHJkZjphYm91dD0iIiB4bWxuczp4bXA9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC8iIHhtbG5zOmRjPSJodHRwOi8vcHVybC5vcmcvZGMvZWxlbWVudHMvMS4xLyIgeG1sbnM6cGhvdG9zaG9wPSJodHRwOi8vbnMuYWRvYmUuY29tL3Bob3Rvc2hvcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RFdnQ9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZUV2ZW50IyIgeG1wOkNyZWF0b3JUb29sPSJBZG9iZSBQaG90b3Nob3AgMjEuMiAoTWFjaW50b3NoKSIgeG1wOkNyZWF0ZURhdGU9IjIwMjAtMTEtMTBUMTU6MzI6MTkrMDg6MDAiIHhtcDpNb2RpZnlEYXRlPSIyMDIwLTExLTEwVDE1OjMyOjUxKzA4OjAwIiB4bXA6TWV0YWRhdGFEYXRlPSIyMDIwLTExLTEwVDE1OjMyOjUxKzA4OjAwIiBkYzpmb3JtYXQ9ImltYWdlL3BuZyIgcGhvdG9zaG9wOkNvbG9yTW9kZT0iMyIgcGhvdG9zaG9wOklDQ1Byb2ZpbGU9InNSR0IgSUVDNjE5NjYtMi4xIiB4bXBNTTpJbnN0YW5jZUlEPSJ4bXAuaWlkOmZlYzBlOWE3LWE4YTEtNGZmNi05Nzg1LTkwMTViNmJjNzE5OCIgeG1wTU06RG9jdW1lbnRJRD0ieG1wLmRpZDpmZWMwZTlhNy1hOGExLTRmZjYtOTc4NS05MDE1YjZiYzcxOTgiIHhtcE1NOk9yaWdpbmFsRG9jdW1lbnRJRD0ieG1wLmRpZDpmZWMwZTlhNy1hOGExLTRmZjYtOTc4NS05MDE1YjZiYzcxOTgiPiA8eG1wTU06SGlzdG9yeT4gPHJkZjpTZXE+IDxyZGY6bGkgc3RFdnQ6YWN0aW9uPSJjcmVhdGVkIiBzdEV2dDppbnN0YW5jZUlEPSJ4bXAuaWlkOmZlYzBlOWE3LWE4YTEtNGZmNi05Nzg1LTkwMTViNmJjNzE5OCIgc3RFdnQ6d2hlbj0iMjAyMC0xMS0xMFQxNTozMjoxOSswODowMCIgc3RFdnQ6c29mdHdhcmVBZ2VudD0iQWRvYmUgUGhvdG9zaG9wIDIxLjIgKE1hY2ludG9zaCkiLz4gPC9yZGY6U2VxPiA8L3htcE1NOkhpc3Rvcnk+IDwvcmRmOkRlc2NyaXB0aW9uPiA8L3JkZjpSREY+IDwveDp4bXBtZXRhPiA8P3hwYWNrZXQgZW5kPSJyIj8+iB4NtgAABDpJREFUWIXdln1MlVUcxz/neR7QIEYi6VSYqLTSZjgvQi4VtFSwWUSytmaa1h8tw8ra/KuXLVtb/9RmU1ZLcxMr04q8LRlxezFIq2uxgZCvpMQ7oSYvl+c55/THxa53PBCXcGx+/7l7zvmd3/l+f2/nCq016enpu4HHuYFg9P9uAk6MJZHRhgHg9/u7LcsqALrHmM+o4WrGOHbs2Ang6THkMqowrv3w+/17gA/GhsrownJZ2wRkAHOGOhgbA6vvldwxS3FLnKa906DmlMDrM7HtoM3DOZJAn8DrMwb1s3C+Yk6qYvcBiyUZivg4TUmZCcCqpZKpk3SYvSMFzW1QfdKgoUkMX5jf7+/OzMwscBynZrBDqSmKom19aC2oOWnQ3G4w/05J3nLNhjUOG7eOo/0vSJqiKci18f04nu4ed1/Pb7Rp7RC8vx+W3i2ZPi0kbPUyyW0zFKfrQ4GJjwverxR8eMjk7V1RwxMGwX7zeDyDRmPbFpva0ybPvRaFlCFXM5I1xW8FeGWzTeGrUXh9Jo/lOSxbqFyzdvtMzcxkza5PXGkAUFVr8MLr0WFrE+I1G9ZI1j7ocLza5PufBvoevEYGwU3jYdZ0TXmlcY2oIM5dEBz4yiIjTRIbA2f+ENSdFeRmO66+crMlXT3w7VEzIg6dlwTvfWwS6IP0ucrVJmJhPb3Q0i5YvkgSHT1wf2exxfoXx+H0i/b6TBbcpUhMCLcTAlYulpRXmvQGImUBV7oEFy8LYmO0637EwgDe2BnFvNmK/dsDPPmIQ2pKKGo9vVB3RhDoJ3v4OxOlYMXi8PSmz1XcmqDx+iLL1lVkpCkmJ2rOnHeXMHhxD4GKXwwKnhnHA/dJcrIUTz3qcKFJ8HWFyaelJk2toWl18bKg8rjJqmzJvpKQiNxsSWOr4Hj10LGdnAg5WaHARUdpkqdo8lZIGpoNPit1D8yIhAE0tgiKii2KiiElSZGVqbl/qcO6fIdt70RxqDx0oddn8OZWm5QkTX2DIDoali2UfOT97+tnJCkK19n/ftsONLcJDh42KS4x6el1PxexsNgYiI/TNLaEslLfYFDfAHsOmmx5wuHlzTY1pwzOng/aHPnZ5NLfNjlZkqJiiyULFDfHMKwyPPrbwKk4HETcY2mzFV+8GyB5qnvT7thrIqUIm1a2DWUVFrlZwT7LyXKoqhv6gf2/iFhYVa2BVPDQCum6P3ECWKamvTN83eszmTZZsyhdco9HjXhoDBcRl2JXN2zfY/HsBgfDCBJu7RCkTFPMm6PIXyk512Bw9Ndw4tW/C+r/FLxU6KAUlP0wooE8bIxoeOz93MKRsD4/+Ppfhe1A6RGTHXst179QX35jsmmtQ1mFyZWu61eGAEJrjRADL/F4PO5NdO1hAYkJmkkT4fKV4MPd13ddeEaMEY97AK2hrUPQ1jFadEYP17fQxxA3rLB/AInulg8syJa/AAAAAElFTkSuQmCC"},cb3d:function(t,e,i){},db20:function(t,e,i){"use strict";var a=i("cb3d"),o=i.n(a);o.a},dbd7:function(t,e,i){"use strict";var a=i("4189"),o=i.n(a);o.a},eb63:function(t,e,i){}}]);