(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-32c430df"],{"0ad8":function(e,t,i){"use strict";i("aa2a")},"177e":function(e,t,i){"use strict";var a=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticStyle:{display:"inline-block"}},[i("a-modal",{attrs:{title:e.modalTitle,destroyOnClose:!0,okText:"确定",cancelText:"取消"},on:{ok:e.handleOk,cancel:e.handleCancel},model:{value:e.visible,callback:function(t){e.visible=t},expression:"visible"}},[i("a-form",{attrs:{"label-col":e.labelCol,"wrapper-col":e.wrapperCol}},[i("a-form-item",{staticClass:"form-item-hide-margin-bottom",attrs:{label:"文件",required:""}},[i("div",{staticClass:"flex-layout pr"},[i("a-upload",{attrs:{name:"file",action:e.uploadPath,headers:e.headers,remove:e.removeUpload,fileList:e.fileList,beforeUpload:e.beforeUpload},on:{change:e.handleChange}},[i("a-button",[i("a-icon",{attrs:{type:"upload"}}),e._v(" 选择文件 ")],1)],1),i("a",{staticClass:"down",attrs:{href:e.templatePath,download:""}},[e._v("下载模板")])],1),i("div",{staticClass:"customizeErrorRight"},[e._v(e._s(e.importDecideInfo))])]),i("a-form-item",{staticClass:"upload-intro form-item-hide-margin-bottom",attrs:{label:"说明"}},[i("div",{staticStyle:{"line-height":"27px","margin-top":"6px"}},[e._t("default")],2)])],1)],1)],1)},c=[],l=(i("7f7f"),i("2909")),s=(i("96cf"),i("1da1")),r={props:{templatePath:{type:String,default:function(){return"/api-product/admin/import/template"}},submitMethod:{type:Function,required:!0},fieldType:{type:String,default:function(){return""}}},computed:{uploadPath:function(){var e="";if(this.fieldType){var t=this.fieldType;switch(t){case"product":e="/api-product/admin/file/upload";break}}else e="/api-cms/cms/file/import_upload";return e}},data:function(){return{visible:!1,modalTitle:"",fileId:null,fileName:null,headers:{"Access-Token":this.$ls.get("token"),"Website-ID":this.$ls.get("website-id")},labelCol:{span:4},wrapperCol:{span:20},importDecideStatus:!1,importDecideInfo:"",fileList:[],throttle:!1,attrs:{}}},methods:{powerShow:function(e,t){this.modalTitle=e||"批量新建普通商品",this.attrs=t||{},this.visible=!0},handleOk:function(){var e=Object(s["a"])(regeneratorRuntime.mark((function e(t){var i;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(this.fileId){e.next=3;break}return this.confirmMessage(),e.abrupt("return");case 3:if(!this.throttle){e.next=5;break}return e.abrupt("return");case 5:return this.throttle=!0,e.next=8,this.startImport(this.fileId);case 8:i=e.sent,i&&(this.$store.commit("Decide_toggleLanguage_success"),this.$emit("uploadSuccess"),this.handleCancel()),this.throttle=!1;case 11:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}(),handleChange:function(e){var t=Object(l["a"])(e.fileList);if(t=t.slice(-1),this.fileList=t,e.fileList=t,"done"===e.file.status){var i=e.file.response;0===i.status?(this.fileId=i.data.file_id,this.fileName=e.file.name,this.resetUploadStatus()):(this.fileId="",this.importDecideStatus=!0,this.importDecideInfo=i.message)}},startImport:function(){var e=Object(s["a"])(regeneratorRuntime.mark((function e(t){var i;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(t){e.next=2;break}return e.abrupt("return");case 2:return i=Object.assign(this.attrs,{file_id:t,name:this.fileName}),e.abrupt("return",this.submitMethod(i));case 4:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}(),removeUpload:function(e){this.resetUploadStatus(),this.fileId=null,this.fileList=[]},confirmMessage:function(){this.importDecideStatus||(this.importDecideStatus=!0,this.importDecideInfo="文件不能为空")},resetUploadStatus:function(){this.importDecideStatus=!1,this.importDecideInfo=""},handleCancel:function(){this.visible=!1,this.removeUpload(),this.resetUploadStatus()},beforeUpload:function(e){var t=e.size<20971520;return t||(this.importDecideStatus=!0,this.importDecideInfo="请选择小于20M的文件"),t}}},n=r,o=(i("e843"),i("2877")),u=Object(o["a"])(n,a,c,!1,null,null,null);t["a"]=u.exports},2568:function(e,t,i){},"29a9":function(e,t,i){"use strict";i("7ea2")},"35a8":function(e,t,i){},"37d3":function(e,t,i){"use strict";var a=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"commodityInfoBox"},[a("div",{staticClass:"commodityInfoLeft"},[e.commodityObj.product_image_list.length?a("a-popover",{attrs:{destroyTooltipOnHide:!0}},[a("template",{slot:"content"},[a("div",{staticClass:"img-move-in-context"},[a("div",{staticClass:"img-container"},[a("div",{staticClass:"c-image-preview"},[a("div",{staticClass:"image-preview"},[a("div",{staticClass:"image-preview-img-wrapper",staticStyle:{transform:"translate3d(0px, 0px, 0px)"}},[a("img",{staticClass:"image-preview-img",staticStyle:{transform:"scale3d(1, 1, 1) rotate(0deg)"},attrs:{src:e.currentImg}})]),e.currentImg!==e.product_image_list[0]?a("div",{staticClass:"image-preview-switch-left",on:{click:e.preAction}},[a("span",{staticClass:"anticon anticon-left",attrs:{role:"img","aria-label":"left"}},[a("svg",{attrs:{focusable:"false","data-icon":"left",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",viewBox:"64 64 896 896"}},[a("path",{attrs:{d:"M724 218.3V141c0-6.7-7.7-10.4-12.9-6.3L260.3 486.8a31.86 31.86 0 000 50.3l450.8 352.1c5.3 4.1 12.9.4 12.9-6.3v-77.3c0-4.9-2.3-9.6-6.1-12.6l-360-281 360-281.1c3.8-3 6.1-7.7 6.1-12.6z"}})])])]):e._e(),e.currentImg!==e.product_image_list[e.product_image_list.length-1]?a("div",{staticClass:"image-preview-switch-right",on:{click:e.nextAction}},[a("span",{staticClass:"anticon anticon-right",attrs:{role:"img","aria-label":"right"}},[a("svg",{attrs:{focusable:"false","data-icon":"right",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",viewBox:"64 64 896 896"}},[a("path",{attrs:{d:"M765.7 486.8L314.9 134.7A7.97 7.97 0 00302 141v77.3c0 4.9 2.3 9.6 6.1 12.6l360 281.1-360 281.1c-3.9 3-6.1 7.7-6.1 12.6V883c0 6.7 7.7 10.4 12.9 6.3l450.8-352.1a31.96 31.96 0 000-50.4z"}})])])]):e._e()])])])])]),a("img",{attrs:{src:e.commodityObj.product_image_list[0]}})],2):[a("img",{attrs:{src:i("24b4")}})]],2),e.commodityObj.name||e.commodityObj.id?a("div",{staticClass:"commodityInfoRight"},[a("div",{staticClass:"commodityTitle"},[e.showTag?[2===e.commodityObj.store_type?a("span",{staticClass:"distribution-tag"},[e._v("\n 分销\n ")]):e._e()]:e._e(),a("a-tooltip",{attrs:{placement:"topLeft"}},[a("template",{slot:"title"},[a("div",[e._v(e._s(e.commodityObj.name))]),e.commodityObj.foreign_name?a("div",[e._v(e._s(e.commodityObj.foreign_name))]):e._e()]),a("a",{attrs:{target:"_blank",href:e.assignUrl||e.commodityObj.product_link}},[e._v("\n "+e._s(e.commodityObj.name)+"\n ")])],2)],2),a("div",{staticClass:"commodityInfoSort "},e._l(e.frontData,(function(t,i){return a("div",{key:i,class:2===t.col?"limitWidth":"single-line"},[a("custom-tool-tip",{attrs:{term:t.term}},[e._v("\n "+e._s(e._f("stringFilter")(t.text))+"\n ")])],1)})),0)]):e._e()])},c=[],l=(i("20d6"),i("0291")),s=i("b921"),r={components:{customToolTip:l["a"],multipImageShow:s["a"]},props:{commodityObj:{type:Object,required:!0},showTag:{type:Boolean,default:!1},frontData:{type:Array,required:!0},assignUrl:{type:String,default:""}},data:function(){return{currentImg:"",product_image_list:[]}},watch:{"commodityObj.product_image_list":{deep:!0,handler:function(){this.currentImg=this.commodityObj.product_image_list[0],this.product_image_list=this.commodityObj.product_image_list}}},mounted:function(){this.commodityObj.product_image_list.length&&(this.currentImg=this.commodityObj.product_image_list[0],this.product_image_list=this.commodityObj.product_image_list)},methods:{noticeAddress:function(){},setImgOrigin:function(){this.commodityObj.product_image_list.length},checkRefsHas:function(e){return void 0!==this.$refs[e]},getCurrentIndex:function(e){return this.product_image_list.findIndex((function(t){return t===e}))},preAction:function(){this.currentImg!==this.product_image_list[0]&&(this.currentImg=this.product_image_list[this.getCurrentIndex(this.currentImg)-1])},nextAction:function(){this.currentImg!==this.product_image_list[this.product_image_list.length-1]&&(this.currentImg=this.product_image_list[this.getCurrentIndex(this.currentImg)+1])}},beforeDestroy:function(){this.checkRefsHas("multipImageShow")&&this.$refs.multipImageShow.originDetail([])}},n=r,o=(i("4589"),i("29a9"),i("2877")),u=Object(o["a"])(n,a,c,!1,null,"4de6ba47",null);t["a"]=u.exports},4589:function(e,t,i){"use strict";i("b2a1")},"49b5":function(e,t,i){"use strict";var a=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",[i("a-drawer",{attrs:{title:"查看SKU明细",width:920,visible:e.visible,"body-style":{paddingBottom:"80px"}},on:{close:e.onClose}},[e.skuTips()?i("div",{staticClass:"flex-layout mb24",staticStyle:{background:"rgba(255, 251, 230, 1)",padding:"16px 24px"}},[i("div",[i("a-icon",{staticStyle:{color:"#faad14","margin-right":"8px"},attrs:{type:"exclamation-circle"}})],1),i("div",[i("div",[e._v("提示: "+e._s(e.skuTips())+" 属性值不全,影响移动端加购,请及时补充")])])]):e._e(),i("a-table",{ref:"table",attrs:{dataSource:e.dataSource,columns:e.columns,pagination:!1,rowKey:function(e,t){return t},scroll:{x:720}},scopedSlots:e._u([{key:"productImage",fn:function(e,t){return[i("popover-img",{attrs:{commodityObj:t}})]}},{key:"skuSlot",fn:function(t,a){return[i("text-tool-tip",{attrs:{limitSize:"9"}},[i("p",{staticClass:"customToolTip-line_table_hidden main-color"},[i("a-tooltip",{attrs:{placement:"topLeft"}},[i("template",{slot:"title"},[e._v("\n "+e._s(t)+"\n ")]),i("a",{attrs:{href:"javascript:;"},on:{click:function(t){return e.enterDetail(a)}}},[e._v("\n "+e._s(t)+"\n ")])],2)],1)])]}},{key:"customSlot",fn:function(t){return[i("text-tool-tip",{attrs:{limitSize:"3"}},[e._v("\n "+e._s(e._f("stringFilter")(t))+"\n ")])]}},{key:"merchantSpu",fn:function(t){return[i("text-tool-tip",{attrs:{limitSize:"5"}},[e._v("\n "+e._s(e._f("stringFilter")(t))+"\n ")])]}}])}),i("div",{style:{position:"absolute",right:0,bottom:0,width:"100%",borderTop:"1px solid #e9e9e9",padding:"10px 16px",background:"#fff",textAlign:"right",zIndex:1}},[i("a-button",{attrs:{type:"primary"},on:{click:e.onClose}},[e._v("\n 关闭\n ")])],1)],1)],1)},c=[],l=i("2909"),s=(i("ac6a"),i("5485")),r=i("3533"),n=i("6b5c"),o=[{title:"图片",dataIndex:"product_image_list",fixed:"left",width:100,scopedSlots:{customRender:"productImage"}},{title:"商品ID",dataIndex:"product_id",fixed:"left",width:80,scopedSlots:{customRender:"productId"}},{title:"商户SKU",dataIndex:"merchant_sku",fixed:"left",width:100,scopedSlots:{customRender:"skuSlot"}},{title:"商户SPU编码",dataIndex:"merchant_spu",fixed:"left",width:120,scopedSlots:{customRender:"merchantSpu"}}],u=[{title:"销售状态",dataIndex:"status_name",width:88,scopedSlots:{customRender:"customSlot"},fixed:"right"},{title:"销售特价",dataIndex:"price",width:88,scopedSlots:{customRender:"customSlot"},fixed:"right"},{title:"销售库存",dataIndex:"qty",width:88,scopedSlots:{customRender:"customSlot"},fixed:"right"}],d={components:{textToolTip:r["a"],popoverImg:s["a"]},computed:{websiteId:function(){return this.$store.getters.websiteId}},data:function(){return{visible:!1,dataSource:[],columns:[],currentImg:"",product_image_list:[],targetObj:{}}},methods:{show:function(e){this.visible=!0,this.getTableList(e)},onClose:function(){this.visible=!1},getTableList:function(e){var t=this,i={spu:e.spu,store_id:e.store_id};Object(n["L"])(i,{timeout:6e4}).then((function(e){e?(t.dataSource=e.data.sku_list,t.resetRemoteData(e.data),t.visible=!0,t.targetObj=e.data):t.dataSource=[]})).catch((function(){}))},spliceColumn:function(e){var t=this;this.asyncColumn=[],e.attribute_keys&&e.attribute_keys.length?e.attribute_keys.forEach((function(e,i){if(i<5){var a={title:e,dataIndex:e,width:88,scopedSlots:{customRender:"customSlot"}};t.asyncColumn.push(a)}})):this.asyncColumn=[],this.columns=[].concat(o,Object(l["a"])(this.asyncColumn),u)},resetRemoteData:function(e){var t=this;this.dataSource=[],this.spliceColumn(e),e.sku_list.forEach((function(e){var i=e;e.attributes&&e.attributes.length&&e.attributes.forEach((function(e){i=Object.assign(i,e.item)})),delete i.attributes,t.dataSource.push(i)}))},skuTips:function(){var e=this.targetObj.missing_value_sku_list;return e&&e.length?e.map((function(e){return e})).join(", "):""},enterDetail:function(e){var t="/product/manage/sale/list/detail/id/".concat(e.product_id,"/websiteId/").concat(this.websiteId,"?type=0");window.open(t)}}},h=d,m=(i("0ad8"),i("4cb0"),i("2877")),p=Object(m["a"])(h,a,c,!1,null,"7fde8118",null);t["a"]=p.exports},"4c5e":function(e,t,i){"use strict";i("35a8")},"4cb0":function(e,t,i){"use strict";i("b268")},5485:function(e,t,i){"use strict";var a=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",[e.commodityObj.product_image_list.length?a("a-popover",{attrs:{destroyTooltipOnHide:!0}},[a("template",{slot:"content"},[a("div",{staticClass:"img-move-in-context"},[a("div",{staticClass:"img-container"},[a("div",{staticClass:"c-image-preview"},[a("div",{staticClass:"image-preview"},[a("div",{staticClass:"image-preview-img-wrapper",staticStyle:{transform:"translate3d(0px, 0px, 0px)"}},[a("img",{staticClass:"image-preview-img",staticStyle:{transform:"scale3d(1, 1, 1) rotate(0deg)"},attrs:{src:e.currentImg}})]),e.currentImg!==e.product_image_list[0]?a("div",{staticClass:"image-preview-switch-left",on:{click:e.preAction}},[a("span",{staticClass:"anticon anticon-left",attrs:{role:"img","aria-label":"left"}},[a("svg",{attrs:{focusable:"false","data-icon":"left",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",viewBox:"64 64 896 896"}},[a("path",{attrs:{d:"M724 218.3V141c0-6.7-7.7-10.4-12.9-6.3L260.3 486.8a31.86 31.86 0 000 50.3l450.8 352.1c5.3 4.1 12.9.4 12.9-6.3v-77.3c0-4.9-2.3-9.6-6.1-12.6l-360-281 360-281.1c3.8-3 6.1-7.7 6.1-12.6z"}})])])]):e._e(),e.currentImg!==e.product_image_list[e.product_image_list.length-1]?a("div",{staticClass:"image-preview-switch-right",on:{click:e.nextAction}},[a("span",{staticClass:"anticon anticon-right",attrs:{role:"img","aria-label":"right"}},[a("svg",{attrs:{focusable:"false","data-icon":"right",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",viewBox:"64 64 896 896"}},[a("path",{attrs:{d:"M765.7 486.8L314.9 134.7A7.97 7.97 0 00302 141v77.3c0 4.9 2.3 9.6 6.1 12.6l360 281.1-360 281.1c-3.9 3-6.1 7.7-6.1 12.6V883c0 6.7 7.7 10.4 12.9 6.3l450.8-352.1a31.96 31.96 0 000-50.4z"}})])])]):e._e()])])])])]),a("img",{staticStyle:{"object-fit":"cover"},attrs:{src:e.commodityObj.product_image_list[0],width:"80",height:"80"}})],2):[a("img",{attrs:{src:i("24b4")}})]],2)},c=[],l=(i("20d6"),{name:"PopoverImg",props:{commodityObj:{type:Object,required:!0}},data:function(){return{currentImg:"",product_image_list:[]}},watch:{"commodityObj.product_image_list":{deep:!0,handler:function(){this.currentImg=this.commodityObj.product_image_list[0],this.product_image_list=this.commodityObj.product_image_list}}},methods:{getCurrentIndex:function(e){return this.product_image_list.findIndex((function(t){return t===e}))},preAction:function(){this.currentImg!==this.product_image_list[0]&&(this.currentImg=this.product_image_list[this.getCurrentIndex(this.currentImg)-1])},nextAction:function(){this.currentImg!==this.product_image_list[this.product_image_list.length-1]&&(this.currentImg=this.product_image_list[this.getCurrentIndex(this.currentImg)+1])}},mounted:function(){this.commodityObj.product_image_list.length&&(this.currentImg=this.commodityObj.product_image_list[0],this.product_image_list=this.commodityObj.product_image_list)}}),s=l,r=(i("6b4f"),i("ad79"),i("2877")),n=Object(r["a"])(s,a,c,!1,null,"321d41e0",null);t["a"]=n.exports},"5e03":function(e,t,i){"use strict";i("b183")},"6b4f":function(e,t,i){"use strict";i("e9da")},"730b":function(e,t,i){"use strict";t["a"]=[{label:"基础信息",value:[{label:"站点",value:"website_id",checked:!1},{label:"店铺",value:"store_id",checked:!1},{label:"商品ID",value:"product_id",checked:!1},{label:"商户",value:"merchant_id",checked:!1},{label:"商户SKU",value:"merchant_sku",checked:!1},{label:"条形码",value:"barcode",checked:!1},{label:"货号",value:"style_id",checked:!1},{label:"品牌名称",value:"brand_id",checked:!1},{label:"系列名称",value:"series_name",checked:!1},{label:"基础分类",value:"base_category",checked:!1},{label:"销售状态",value:"status",checked:!1},{label:"商品站点状态",value:"sales_status",checked:!1},{label:"商品商户状态",value:"product_merchant_status",checked:!1},{label:"创建时间",value:"created_at",checked:!1},{label:"销售商品URL",value:"product_url",checked:!1}]},{label:"商品信息",value:[{label:"商品类型",value:"product_type",checked:!1},{label:"商品标题",value:"name",checked:!1},{label:"短标题",value:"short_name",checked:!1},{label:"外文标题",value:"foreign_name",checked:!1},{label:"商品卖点",value:"short_description",checked:!1},{label:"商品重量",value:"weight",checked:!1}]},{label:"价格",value:[{label:"自动计算售价",value:"stop_update_price",checked:!1},{label:"价格调整规则",value:"make_price_mode",checked:!1},{label:"销售价格",value:"price",checked:!1},{label:"销售特价",value:"special_price",checked:!1},{label:"价格变更警戒线",value:"price_change_ratio",checked:!1},{label:"汇率",value:"exchange_rate",checked:!1},{label:"商户价格",value:"merchant_price",checked:!1},{label:"商户特价",value:"merchant_special_price",checked:!1},{label:"商户折扣",value:"merchant_discount",checked:!1},{label:"VAT税率",value:"vat",checked:!1},{label:"对账价格",value:"reconciliation_price",checked:!1},{label:"对账价格生效时间",value:"reconciliation_price_time_range",checked:!1}]},{label:"库存",value:[{label:"销售库存",value:"qty",checked:!1},{label:"销售预占库存",value:"order_qty",checked:!1},{label:"最低停售库存",value:"min_qty",checked:!1},{label:"安全库存",value:"notify_stock_qty",checked:!1},{label:"API更新库存",value:"stop_update_stock",checked:!1}]},{label:"销售属性与商品属性",value:[{label:"SPU编码",value:"spu",checked:!1},{label:"商户SPU编码",value:"merchant_spu",checked:!1},{label:"异款SPU规则ID",value:"spu_aggregation_rule_id",checked:!1},{label:"显示其他商品选项图",value:"is_show_sku_image",checked:!1},{label:"SPU_title",value:"spu_title",checked:!1},{label:"SPU_image",value:"spu_image",checked:!1},{label:"SPU_说明",value:"spu_description",checked:!1},{label:"属性项:属性值",value:"attr_info",checked:!1}]},{label:"商品图片",value:[{label:"商品图片",value:"image",checked:!1}]},{label:"商品详情",value:[{label:"商品详情",value:"description",checked:!1},{label:"补充详情",value:"nutrition",checked:!1},{label:"外文详情",value:"foreign_description",checked:!1}]},{label:"功能设置",value:[{label:"销售平台",value:"plat_ids",checked:!1},{label:"可见区域",value:"visibility",checked:!1},{label:"购买上限",value:"buyLimit",checked:!1},{label:"商品打标",value:"product_tag",checked:!1},{label:"定时下架时间",value:"down_time",checked:!1},{label:"临期下架",value:"advent_unshelve",checked:!1},{label:"商品有效期",value:"expiry_date",checked:!1},{label:"有效期安全天数",value:"advent_day",checked:!1},{label:"活动描述",value:"activity_description",checked:!1},{label:"是否OTC类商品",value:"is_otc",checked:!1},{label:"发货国家",value:"delivery_country",checked:!1},{label:"Offer_id",value:"offer_id",checked:!1},{label:"商户商品标识",value:"supplier_product_id",checked:!1},{label:"翻译状态",value:"translate_status",checked:!1},{label:"天猫视频ID",value:"sale_id",checked:!1},{label:"赠品禁售",value:"free_sample_flag",checked:!1},{label:"敏感品牌",value:"sensitive_brand",checked:!1},{label:"商品标题前缀",value:"name_before",checked:!1},{label:"在库库存",value:"in_stock_qty",checked:!1},{label:"商户商品URL",value:"merchant_url",checked:!1},{label:"meta_title",value:"meta_title",checked:!1},{label:"meta_keyword",value:"meta_keyword",checked:!1},{label:"meta_description",value:"meta_description",checked:!1}]},{label:"跨境属性",value:[{label:"综合税",value:"tax_rate",checked:!1},{label:"行邮税",value:"post_rate",checked:!1},{label:"海关编码",value:"custom_record_code",checked:!1},{label:"行邮税税号",value:"post_tax_no",checked:!1},{label:"保税仓商品货号",value:"bsc_numbers",checked:!1},{label:"海关备案信息",value:"gmodel",checked:!1},{label:"原产国",value:"country_of_manufacture",checked:!1},{label:"计量单位",value:"unit",checked:!1},{label:"法定数",value:"legal_number",checked:!1},{label:"法定单位",value:"legal_unit",checked:!1},{label:"第二数量",value:"second_number",checked:!1},{label:"第二单位",value:"second_unit",checked:!1},{label:"材质",value:"material",checked:!1},{label:"化妆品综合税类别",value:"tax_class_name",checked:!1},{label:"化妆品综合税规格",value:"unit_count",checked:!1},{label:"商品净重",value:"net_weight",checked:!1}]},{label:"自定义属性",value:[{label:"属性项 : 属性值",value:"extended_attributes",checked:!1}]}]},"7ea2":function(e,t,i){},a4cf:function(e,t,i){"use strict";var a=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",[e._l(e.nodeSet,(function(t,a){return i("a-row",{key:a,class:a+1===e.nodeSet.length?"":"single-row"},[i("a-col",{staticClass:"font-weight",attrs:{span:2}},[e._v(e._s(t.label))]),i("a-col",{attrs:{span:22}},[i("a-row",e._l(t.value,(function(t){return i("a-col",{key:t.value,attrs:{span:6}},[i("a-checkbox",{staticClass:"single-check",attrs:{checked:t.checked,value:t.value},on:{click:e.singleCheck}},[e._v("\n "+e._s(t.label)+"\n ")])],1)})),1)],1)],1)})),i("a-row",{staticClass:"error-tip"},[i("a-col",{attrs:{span:2}}),i("a-col",{attrs:{span:22}},[e._v(e._s(e.errorTip))])],1),i("div",{staticClass:"btn"},[i("a-button",{directives:[{name:"show",rawName:"v-show",value:e.multiple,expression:"multiple"}],on:{click:e.backFirst}},[e._v("上一步")]),i("a-button",{staticClass:"btnItenms",on:{click:e.checkedDefault}},[e._v("默认")]),i("a-button",{staticClass:"btnItenms",on:{click:e.checkAll}},[e._v("全选")]),i("a-button",{staticClass:"btnItenms",on:{click:e.checkedReverse}},[e._v("反选")])],1)],2)},c=[],l=(i("ac6a"),{props:{defaultSet:{type:Array,default:function(){return[]}},nodeSet:{type:Array,required:!0},multiple:{type:Boolean,default:function(){return!0}}},data:function(){return{errorTip:""}},watch:{defaultSet:function(){this.checkedDefault()}},methods:{checkedDefault:function(){var e=this;this.errorTipRest(),this.nodeSet.forEach((function(t){t.value.forEach((function(t){e.defaultSet.some((function(e){return t.value===e}))?t.checked=!0:t.checked=!1}))}))},checkAll:function(){this.errorTipRest(),this.nodeSet.forEach((function(e){e.value.forEach((function(e){e.checked=!0}))}))},checkedReverse:function(){this.errorTipRest(),this.nodeSet.forEach((function(e){e.value.forEach((function(e){e.checked=!e.checked}))}))},checkField:function(){var e=[];return this.nodeSet.forEach((function(t){t.value.forEach((function(t){t.checked&&e.push(t.value)}))})),e.join()},singleCheck:function(e){this.errorTipRest();var t=e.target.defaultValue;this.nodeSet.forEach((function(e){e.value.some((function(e){e.value===t&&(e.checked=!e.checked)}))}))},errorTipShow:function(){this.errorTip="至少选择一个字段"},errorTipRest:function(){this.errorTip=""},secondCallback:function(e){var t={fieldName:e};this.$emit("secondCallback",t)},handleSubmit:function(){var e=this.checkField();e?this.secondCallback(e):this.errorTipShow()},backFirst:function(){this.$emit("backFirst")}},mounted:function(){this.checkedDefault()}}),s=l,r=(i("4c5e"),i("2877")),n=Object(r["a"])(s,a,c,!1,null,"d4e97216",null);t["a"]=n.exports},aa2a:function(e,t,i){},ad79:function(e,t,i){"use strict";i("2568")},b183:function(e,t,i){},b268:function(e,t,i){},b2a1:function(e,t,i){},b921:function(e,t,i){"use strict";var a=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{directives:[{name:"show",rawName:"v-show",value:e.isShow,expression:"isShow"}],staticClass:"c-image-preview"},[i("div",{staticClass:"image-preview"},[i("div",{staticClass:"image-preview-img-wrapper",staticStyle:{transform:"translate3d(0px, 0px, 0px)"}},[i("img",{staticClass:"image-preview-img",staticStyle:{transform:"scale3d(1, 1, 1) rotate(0deg)"},attrs:{src:e.currentImg}})]),i("div",{staticClass:"image-preview-switch-left ",class:e.currentImg===e.imgSet[0]?"disabled":"",on:{click:e.preAction}},[i("span",{staticClass:"anticon anticon-left",attrs:{role:"img","aria-label":"left"}},[i("svg",{attrs:{focusable:"false","data-icon":"left",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",viewBox:"64 64 896 896"}},[i("path",{attrs:{d:"M724 218.3V141c0-6.7-7.7-10.4-12.9-6.3L260.3 486.8a31.86 31.86 0 000 50.3l450.8 352.1c5.3 4.1 12.9.4 12.9-6.3v-77.3c0-4.9-2.3-9.6-6.1-12.6l-360-281 360-281.1c3.8-3 6.1-7.7 6.1-12.6z"}})])])]),i("div",{staticClass:"image-preview-switch-right ",class:e.currentImg===e.imgSet[e.imgSet.length-1]?"disabled":"",on:{click:e.nextAction}},[i("span",{staticClass:"anticon anticon-right",attrs:{role:"img","aria-label":"right"}},[i("svg",{attrs:{focusable:"false","data-icon":"right",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",viewBox:"64 64 896 896"}},[i("path",{attrs:{d:"M765.7 486.8L314.9 134.7A7.97 7.97 0 00302 141v77.3c0 4.9 2.3 9.6 6.1 12.6l360 281.1-360 281.1c-3.9 3-6.1 7.7-6.1 12.6V883c0 6.7 7.7 10.4 12.9 6.3l450.8-352.1a31.96 31.96 0 000-50.4z"}})])])])])])},c=[],l=(i("20d6"),i("81af")),s={props:{},data:function(){return{currentImg:"",isShow:!1,imgSet:[]}},methods:{originDetail:function(e){e.length&&(this.imgSet=e,this.imagePreview(e[0]))},addEvent:function(){var e=document.querySelector("body"),t=this;e.addEventListener("keydown",(function(e){t.isShow&&(e.preventDefault(),e.keyCode===l["a"].LEFT?t.preAction():e.keyCode===l["a"].RIGHT?t.nextAction():t.closeImagePreview())}))},removeEvent:function(){var e=this,t=document.querySelector("body");t.removeEventListener("keydown",(function(t){this.isShow&&(t.preventDefault(),t.keyCode===l["a"].LEFT?e.preAction():t.keyCode===l["a"].RIGHT?e.nextAction():e.closeImagePreview())}))},imagePreview:function(e){this.isShow=!0,this.currentImg=e},getCurrentIndex:function(e){return this.imgSet.findIndex((function(t){return t===e}))},preAction:function(){this.currentImg!==this.imgSet[0]&&(this.currentImg=this.imgSet[this.getCurrentIndex(this.currentImg)-1])},nextAction:function(){this.currentImg!==this.imgSet[this.imgSet.length-1]&&(this.currentImg=this.imgSet[this.getCurrentIndex(this.currentImg)+1])},closeImagePreview:function(){this.isShow=!1}}},r=s,n=(i("5e03"),i("2877")),o=Object(n["a"])(r,a,c,!1,null,null,null);t["a"]=o.exports},d3be:function(e,t,i){},e843:function(e,t,i){"use strict";i("d3be")},e9da:function(e,t,i){}}]);