@bee-hole/admin 1.25.56 → 1.25.58

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (31) hide show
  1. package/dist/index.html +1 -1
  2. package/dist/js/{app~f075b844.020fefd3.js → app~f075b844.b0ccffa4.js} +1 -1
  3. package/dist/js/app~f075b844.b0ccffa4.js.gz +0 -0
  4. package/dist/js/{chunk-03e1387e.995c6c32.js → chunk-03e1387e.279a892f.js} +1 -1
  5. package/dist/js/chunk-03e1387e.279a892f.js.gz +0 -0
  6. package/dist/js/{chunk-286b8764.8b6cf8bc.js → chunk-286b8764.7963c8a3.js} +1 -1
  7. package/dist/js/chunk-286b8764.7963c8a3.js.gz +0 -0
  8. package/dist/js/{chunk-5f214972.1a75317a.js → chunk-5f214972.5f1e2e32.js} +1 -1
  9. package/dist/js/chunk-5f214972.5f1e2e32.js.gz +0 -0
  10. package/dist/js/chunk-ade7a3ac.a06b21a4.js +1 -0
  11. package/dist/js/chunk-ade7a3ac.a06b21a4.js.gz +0 -0
  12. package/dist/js/lang-package~4e34e71e.eb6b5a4d.js +11 -0
  13. package/dist/js/lang-package~4e34e71e.eb6b5a4d.js.gz +0 -0
  14. package/package.json +1 -1
  15. package/dist/js/app~f075b844.020fefd3.js.gz +0 -0
  16. package/dist/js/chunk-03e1387e.995c6c32.js.gz +0 -0
  17. package/dist/js/chunk-286b8764.8b6cf8bc.js.gz +0 -0
  18. package/dist/js/chunk-53fb277b.e4c41605.js +0 -1
  19. package/dist/js/chunk-53fb277b.e4c41605.js.gz +0 -0
  20. package/dist/js/chunk-5f214972.1a75317a.js.gz +0 -0
  21. package/dist/js/lang-package~4e34e71e.58b35997.js +0 -11
  22. package/dist/js/lang-package~4e34e71e.58b35997.js.gz +0 -0
  23. /package/dist/css/{chunk-53fb277b.96d10443.css → chunk-ade7a3ac.e253dc48.css} +0 -0
  24. /package/dist/css/{lang-package~4e34e71e.d6607f74.css → lang-package~4e34e71e.7276c473.css} +0 -0
  25. /package/dist/css/{lang-package~4e34e71e.d6607f74.css.gz → lang-package~4e34e71e.7276c473.css.gz} +0 -0
  26. /package/dist/js/{chunk-258124b1.990fcdff.js → chunk-258124b1.cbeee6bd.js} +0 -0
  27. /package/dist/js/{chunk-258124b1.990fcdff.js.gz → chunk-258124b1.cbeee6bd.js.gz} +0 -0
  28. /package/dist/js/{chunk-5f4b374c.7d0ea7c9.js → chunk-5f4b374c.8b10ace5.js} +0 -0
  29. /package/dist/js/{chunk-5f4b374c.7d0ea7c9.js.gz → chunk-5f4b374c.8b10ace5.js.gz} +0 -0
  30. /package/dist/js/{lang-zh-TW-service~f63b1681.cf8a1e37.js → lang-zh-TW-service~f63b1681.652d4e22.js} +0 -0
  31. /package/dist/js/{lang-zh-TW-service~f63b1681.cf8a1e37.js.gz → lang-zh-TW-service~f63b1681.652d4e22.js.gz} +0 -0
@@ -1 +1 @@
1
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-286b8764"],{"01df5":function(e,t,a){},"09ff":function(e,t,a){},"0ef6":function(e,t,a){"use strict";a.r(t);var o=function(){var e=this,t=e._self._c;return t("div",{ref:"portaletDiv",staticClass:"module"},[e._m(0)])},n=[function(){var e=this,t=e._self._c;return t("div",{staticClass:"module-in"},[t("ul",{staticClass:"information02"},[t("li",[t("div",{staticClass:"sky"},[t("img",{attrs:{src:a("924b"),alt:""}})]),t("div",{staticClass:"information02-data"},[t("span",[e._v("50%")]),t("p",[e._v("压力仪表盘")])])]),t("li",[t("div",{staticClass:"sky"},[t("img",{attrs:{src:a("4781"),alt:""}})]),t("div",{staticClass:"information02-data"},[t("span",[e._v("28%")]),t("p",[e._v("完成率")])])])])])}],s={created:function(){},mounted:function(){this.$emit("setHeight",this.$refs.portaletDiv.offsetHeight)},watch:{},components:{},methods:{}},r=s,i=(a("d936"),a("2877")),c=Object(i["a"])(r,o,n,!1,null,"0c32075c",null);t["default"]=c.exports},"120c":function(e,t,a){"use strict";a.r(t);var o=function(){var e=this,t=e._self._c;return t("div",{attrs:{clas:"spyder"}},[t("a-card",{staticStyle:{padding:"20px 10px","align-content":"center"},attrs:{bordered:!1}},[t("div",[t("h2",[e._v("其他平台采集货源需安装蜂洞插件")]),t("span",[e._v("支持 "),t("span",{staticStyle:{color:"red"}},[e._v("temu")]),e._v(" 、 "),t("span",{staticStyle:{color:"red"}},[e._v("亚马逊")]),e._v(" 等平台。")])]),t("div",{staticStyle:{"margin-top":"10px"}},[t("h2",[e._v("插件支持多个主流浏览器")]),t("div",[t("img",{attrs:{src:"https://earth-rt.chengji-inc.com/market/help/2020-12-03/fcd81079-e265-422c-a2c3-e896f7101a8f.png?height=80&width=80"}})])]),t("div",[t("p",[e._v("1、插件安装后,需刷新页面;")]),t("p",[e._v("2、若插件已安装且已开启,但在点击翻译时,仍提示要下载插件,原因是之前的旧插件未删除,要到浏览器的扩展管理中进行删除。")])]),t("div",[t("h2",{staticStyle:{color:"red"}},[e._v("安装教程")]),t("h3",[e._v("不同浏览器安装插件的教程")]),t("h3",[t("span",[e._v("谷歌浏览器")]),e._v("("),t("span",[e._v("下载浏览器")]),e._v(")插件安装方法:")]),t("ol",[t("li",{staticStyle:{"line-height":"30px"}},[t("span",[e._v("1、下载安装文件")]),t("br"),t("span",[e._v(" 下载插件("),t("a",{staticClass:"download-highlight",attrs:{href:"#"}},[e._v("点击下载")]),e._v("),打开插件所在的文件夹,找到已下载的插件,插件后缀是.zip,不需要解压; ")])]),t("li",{staticStyle:{"line-height":"30px"}},[t("span",[e._v("2、打开浏览器扩展页面")]),t("br"),t("span",[e._v(" 打开Chrome谷歌浏览器,复制"),t("a",{attrs:{href:"chrome://extensions/",target:"_blank"}},[e._v("chrome://extensions/")]),e._v(",并粘贴到地址栏,按回车键进入扩展管理页面; ")])]),t("li",{staticStyle:{"line-height":"30px"}},[t("span",[e._v("3、安装插件")]),t("br"),t("span",[e._v(' 打开页面右上角的"开发者模式"开关,刷新页面,将zip文件拖拽至扩展程序管理页面空白处,完成安装。 ')])]),t("li",{staticStyle:{"line-height":"30px"}},[t("span",[e._v("4、移除旧插件(若之前有安装过)")]),t("br"),t("span",[e._v(" 若之前安装过旧版插件,请从扩展页面将其移除掉。 ")])])]),t("p",[e._v("(提示:安装插件显示模糊不妨碍正常使用,如果遇到插件被浏览器清除,重新安装即可)")])])])],1)},n=[],s=a("5530"),r=a("5f6f"),i=Object(s["a"])({},r["default"]),c=i,d=a("2877"),l=Object(d["a"])(c,o,n,!1,null,null,null);t["default"]=l.exports},"12b1":function(e,t,a){"use strict";a.r(t);var o=function(){var e=this,t=e._self._c;return t("a-tabs",{attrs:{"tab-position":e.tabPosition},on:{change:e.changeTab},model:{value:e.activeKey,callback:function(t){e.activeKey=t},expression:"activeKey"}},e._l(e.list,(function(e){return t("a-tab-pane",{key:e.key,attrs:{tab:e.title}})})),1)},n=[],s={props:{defaultTabKey:{type:String,default:"title"},tabItems:{type:Array,default:function(){return[]}},platform:{type:String,default:"rakuten"}},data:function(){return{tabPosition:"left",list:[],tiktokList:[{key:"title",title:this.$t("view.item.list.itemTitle")},{key:"category",title:this.$t("view.attach.list.form.query3")},{key:"brand",title:this.$t("components.dyProduct.dyProduct.bran")},{key:"attribute",title:this.$t("components.dyProduct.dyProduct.attributes")},{key:"image",title:this.$t("view.item.list.itemImage")},{key:"itemInfo",title:this.$t("components.rakuten.tabOne.title")},{key:"sku",title:this.$t("view.bigcommerce.product.publish.table.skuInfo")},{key:"description",title:this.$t("view.alibaba.product.detail.sku.description")},{key:"sizeChart",title:this.$t("components.dyProduct.dyProduct.sizechart.image")},{key:"packageWeight",title:this.$t("components.dyProduct.package_weight.value")},{key:"packageSizeChart",title:this.$t("components.dyProduct.package_size_chart.value")},{key:"other",title:this.$t("components.rakuten.product.features")}],defaultList:[{key:"title",title:this.$t("view.item.list.itemTitle")},{key:"category",title:this.$t("view.attach.list.form.query3")},{key:"image",title:this.$t("view.item.list.itemImage")},{key:"itemInfo",title:this.$t("components.rakuten.tabOne.title")},{key:"sku",title:this.$t("view.bigcommerce.product.publish.table.skuInfo")},{key:"description",title:this.$t("view.alibaba.product.detail.sku.description")},{key:"other",title:this.$t("components.rakuten.product.features")}],activeKey:"title"}},created:function(){this.changeTab(this.defaultTabKey),this.tabItems.length>0?this.list=this.tabItems:"rakuten"===this.platform?this.list=this.defaultList:this.list=this.tiktokList},watch:{defaultTabKey:function(e,t){e&&e!==t&&this.changeTab(e)},tabItems:function(e,t){e&&e!==t&&(this.list=e)}},methods:{changeTab:function(e){this.activeKey=e,this.$emit("change",e)}}},r=s,i=a("2877"),c=Object(i["a"])(r,o,n,!1,null,null,null);t["default"]=c.exports},2419:function(e,t,a){"use strict";a("01df5")},2855:function(e,t,a){"use strict";a.r(t);var o=function(){var e=this,t=e._self._c;return t("a-result",{attrs:{title:"该功能尚未开发!"},scopedSlots:e._u([{key:"icon",fn:function(){return[t("a-icon",{attrs:{type:"smile",theme:"twoTone"}})]},proxy:!0},{key:"extra",fn:function(){return[t("a-button",{attrs:{type:"primary"},on:{click:e.returnIndex}},[e._v(" 返回工作台 ")])]},proxy:!0}])})},n=[],s={name:"Build",components:{},data:function(){return{}},filters:{},created:function(){},computed:{},watch:{},mounted:function(){},methods:{returnIndex:function(){this.$router.push({path:"/index"})}}},r=s,i=a("2877"),c=Object(i["a"])(r,o,n,!1,null,null,null);t["default"]=c.exports},4781:function(e,t,a){e.exports=a.p+"img/img02.9ac07e73.png"},"4a49":function(e,t,a){"use strict";a.r(t);var o=function(){var e=this,t=e._self._c;return t("a-spin",{attrs:{spinning:e.loading,tip:"加载中..."}},[t("div",{style:"height:"+e.height},[t("iframe",{staticStyle:{width:"100%",height:"100%"},attrs:{src:e.src,frameborder:"no",scrolling:"auto"}})])])},n=[],s={name:"Swagger",components:{},data:function(){return{src:"/admin/swagger-ui.html",height:document.documentElement.clientHeight-120+"px;",loading:!0}},filters:{},created:function(){},computed:{},watch:{},mounted:function(){var e=this;setTimeout((function(){e.loading=!1}),230);var t=this;window.onresize=function(){t.height=document.documentElement.clientHeight-94.5+"px;"}},methods:{}},r=s,i=a("2877"),c=Object(i["a"])(r,o,n,!1,null,null,null);t["default"]=c.exports},"5f6f":function(e,t,a){"use strict";a.r(t),t["default"]={name:"spyder",components:{},created:function(){},computed:{},data:function(){return{}},methods:{}}},"924b":function(e,t,a){e.exports=a.p+"img/img01.319f61f4.png"},"92c5":function(e,t,a){},"945a":function(e,t,a){"use strict";a.r(t);a("a9e3"),a("b64b");var o=function(){var e=this,t=e._self._c;return t("span",[e.open?t("AntModal",{attrs:{visible:e.open,"modal-title":e.formTitle,"adjust-size":!0,modalHeight:e.modalHeight,modalWidth:e.modalWidth,"confirm-loading":e.confirmNSLoading},on:{cancel:e.cancelModal,ok:e.okNetSeaGoodInfo}},[t("div",{attrs:{slot:"content"},slot:"content"},[t("div",[t("div",[t("goodsIdList",{staticStyle:{display:"none"},attrs:{goodsIds:e.goodsIds,goodsList:e.goodList},on:{"update:goodsList":function(t){e.goodList=t},"update:goods-list":function(t){e.goodList=t},back:e.initNetsea}})],1),t("a-row",{attrs:{type:"flex"}},[t("a-col",[t("leftTabItem",{attrs:{defaultTabKey:e.formEditKey},on:{change:e.changeLeftTab}})],1),t("a-col",{style:{overflowY:"auto",overflowX:"hidden",height:.78*Number(e.modalHeight)+"px"},attrs:{flex:"1"}},[e._l(e.netseaGoodInfoList,(function(a,o){return t("div",{key:o,staticStyle:{"padding-bottom":"2rem"}},[t("div",{staticStyle:{"margin-bottom":"1rem"}},[t("kandengGoodsOne",{attrs:{goodsList:e.goodList,goodsId:o}})],1),t("a-collapse",{model:{value:e.plActicty,callback:function(t){e.plActicty=t},expression:"plActicty"}},[t("a-collapse-panel",{attrs:{header:o+e.$t("view.item.form.pl.form.params.label")}},[t("div",{staticStyle:{padding:"1rem 0"}},[t("a-form-model",e._b({ref:"netseaGoodInfoForm"+o,refInFor:!0,attrs:{model:a,rules:e.netseaGoodInfoRules}},"a-form-model",{labelCol:{span:3},wrapperCol:{span:20}},!1),["title"===e.formEditKey?t("div",[t("a-form-model-item",{ref:"product_name",refInFor:!0,attrs:{label:e.$t("view.item.list.itemTitle"),help:e.$t("components.netsea.product.catchcopy.limit"),prop:"product_name"}},[t("a-input",{attrs:{id:"product_name"+o},model:{value:a.product_name,callback:function(t){e.$set(a,"product_name",t)},expression:"netseaGoodInfo.product_name"}})],1)],1):e._e(),"category"===e.formEditKey?t("div",[t("a-form-model-item",{attrs:{label:e.$t("components.netesa.product.category")}},[t("a-input",{attrs:{disabled:""},model:{value:a.category_id,callback:function(t){e.$set(a,"category_id",t)},expression:"netseaGoodInfo.category_id"}})],1),t("a-form-model-item",{attrs:{label:e.$t("components.netesa.product.category")}},[e.netseaGenereArray[o]&&e.netseaGenereArray[o].netseaGenereList?t("a-select",{staticStyle:{width:"180px"},on:{change:function(t){e.selectNetSeaGenre(t,0,o)}},model:{value:e.firstCatId[o],callback:function(t){e.$set(e.firstCatId,o,t)},expression:"firstCatId[good_id]"}},e._l(e.netseaGenereArray[o].netseaGenereList,(function(a,o){return t("a-select-option",{key:o,attrs:{value:a.cat_id}},[e._v(" "+e._s(a.cat_name)+" ")])})),1):e._e(),e.netseaGenereArray[o]&&e.netseaGenereArray[o].netseaGenereList1.length?t("a-select",{staticStyle:{width:"180px"},on:{change:function(t){e.selectNetSeaGenre(t,1,o)}},model:{value:e.secondCatId[o],callback:function(t){e.$set(e.secondCatId,o,t)},expression:"secondCatId[good_id]"}},e._l(e.netseaGenereArray[o].netseaGenereList1,(function(a,o){return t("a-select-option",{key:o,attrs:{value:a.cat_id}},[e._v(" "+e._s(a.cat_name)+" ")])})),1):e._e(),e.netseaGenereArray[o]&&e.netseaGenereArray[o].netseaGenereList2.length?t("a-select",{staticStyle:{width:"180px"},on:{change:function(t){e.selectNetSeaGenre(t,2,o)}},model:{value:e.thirdCatId[o],callback:function(t){e.$set(e.thirdCatId,o,t)},expression:"thirdCatId[good_id]"}},e._l(e.netseaGenereArray[o].netseaGenereList2,(function(a,o){return t("a-select-option",{key:o,attrs:{value:a.cat_id}},[e._v(" "+e._s(a.cat_name)+" ")])})),1):e._e()],1)],1):e._e(),"itemInfo"===e.formEditKey?t("div",[t("a-form-model-item",{attrs:{label:e.$t("components.netsea.product.manage.code")}},[t("a-input",{attrs:{placeholder:e.$t("components.netsea.product.manage.code.placeholder"),disabled:""},model:{value:a.product_id,callback:function(t){e.$set(a,"product_id",t)},expression:"netseaGoodInfo.product_id"}})],1),t("a-form-model-item",{attrs:{label:e.$t("components.netsea.product.sale.status")}},[t("a-radio-group",{model:{value:a.sales_status_code,callback:function(t){e.$set(a,"sales_status_code",t)},expression:"netseaGoodInfo.sales_status_code"}},[t("a-radio",{attrs:{value:"on_sale"}},[e._v(" "+e._s(e.$t("components.netsea.product.sale.on_sale"))+" ")]),t("a-radio",{attrs:{value:"end_of_sale"}},[e._v(" "+e._s(e.$t("components.netsea.product.sale.end_of_sale"))+" ")])],1)],1),t("a-form-model-item",{attrs:{label:e.$t("components.netsea.product.sale.method")}},[t("a-radio-group",{model:{value:a.sales_method_code,callback:function(t){e.$set(a,"sales_method_code",t)},expression:"netseaGoodInfo.sales_method_code"}},[t("a-radio",{attrs:{value:"normal"}},[e._v(" "+e._s(e.$t("components.netsea.product.sale.method.normal"))+" ")]),t("a-radio",{attrs:{value:"reserve"}},[e._v(" "+e._s(e.$t("components.netsea.product.sale.method.reserve"))+" ")]),t("a-radio",{attrs:{value:"payment_only"}},[e._v(" "+e._s(e.$t("components.netsea.product.sale.method.payment_only"))+" ")])],1)],1),t("a-form-model-item",{attrs:{label:e.$t("components.netsea.product.publish.date")}},[t("a-date-picker",{attrs:{"show-time":""},model:{value:a.publish_period_start,callback:function(t){e.$set(a,"publish_period_start",t)},expression:"netseaGoodInfo.publish_period_start"}}),t("a-date-picker",{attrs:{"show-time":""},model:{value:a.publish_period_end,callback:function(t){e.$set(a,"publish_period_end",t)},expression:"netseaGoodInfo.publish_period_end"}})],1),t("a-form-model-item",{attrs:{label:e.$t("components.netsea.product.price.closed.flag")}},[t("a-radio-group",{model:{value:a.price_closed_flag,callback:function(t){e.$set(a,"price_closed_flag",t)},expression:"netseaGoodInfo.price_closed_flag"}},[t("a-radio",{attrs:{value:!0}},[e._v(" "+e._s(e.$t("components.netsea.product.price.closed.flag.true"))+" ")]),t("a-radio",{attrs:{value:!1}},[e._v(" "+e._s(e.$t("components.netsea.product.price.closed.flag.false"))+" ")])],1)],1),t("a-form-model-item",{attrs:{label:e.$t("components.netsea.product.shipping.fee")}},[t("a-radio-group",{model:{value:a.product_ship_setting_code,callback:function(t){e.$set(a,"product_ship_setting_code",t)},expression:"netseaGoodInfo.product_ship_setting_code"}},[t("a-radio",{attrs:{value:"store"}},[e._v(" "+e._s(e.$t("components.netsea.product.shipping.fee.shop_setting"))+" ")]),t("a-radio",{attrs:{value:"product"}},[e._v(" "+e._s(e.$t("components.netsea.product.shipping.fee.product.one"))+" "),t("a-input",{staticStyle:{width:"200px"},model:{value:a.product_ship_fee,callback:function(t){e.$set(a,"product_ship_fee",t)},expression:"netseaGoodInfo.product_ship_fee"}})],1)],1)],1),t("a-form-model-item",{attrs:{label:e.$t("components.netsea.product.product.discount_code")}},[t("a-radio-group",{on:{change:function(t){return e.discountSwitch(o)}},model:{value:e.netProductDiscountCodeList[o],callback:function(t){e.$set(e.netProductDiscountCodeList,o,t)},expression:"netProductDiscountCodeList[good_id]"}},[t("a-radio",{attrs:{value:!1}},[e._v(" "+e._s(e.$t("components.netsea.product.product.discount_code.false"))+" ")]),t("a-radio",{attrs:{value:!0}},[e._v(" "+e._s(e.$t("components.netsea.product.product.discount_code.true"))+" "),e.netProductDiscountCodeList[o]?t("a-input-number",{staticStyle:{width:"100px"},model:{value:a.product_discount.product_discount_rate,callback:function(t){e.$set(a.product_discount,"product_discount_rate",t)},expression:"netseaGoodInfo.product_discount.product_discount_rate"}}):e._e(),e._v(" % "),e.netProductDiscountCodeList[o]?t("a-date-picker",{attrs:{format:"YYYY-MM-DD HH:00:00","show-time":""},model:{value:a.product_discount.product_discount_period_start,callback:function(t){e.$set(a.product_discount,"product_discount_period_start",t)},expression:"netseaGoodInfo.product_discount.product_discount_period_start"}}):e._e(),e.netProductDiscountCodeList[o]?t("a-date-picker",{attrs:{format:"YYYY-MM-DD HH:00:00","show-time":""},model:{value:a.product_discount.product_discount_period_end,callback:function(t){e.$set(a.product_discount,"product_discount_period_end",t)},expression:"netseaGoodInfo.product_discount.product_discount_period_end"}}):e._e()],1)],1)],1),t("a-form-model-item",{attrs:{label:e.$t("components.netsea.product.volume_discount"),help:e.$t("components.netsea.product.volume_discount.info")}},[t("a-radio-group",{model:{value:a.volume_discount_target_flag,callback:function(t){e.$set(a,"volume_discount_target_flag",t)},expression:"netseaGoodInfo.volume_discount_target_flag"}},[t("a-radio",{attrs:{value:!0}},[e._v(e._s(e.$t("components.netsea.product.volume_discount.true")))]),t("a-radio",{attrs:{value:!1}},[e._v(e._s(e.$t("components.netsea.product.volume_discount.false")))])],1)],1)],1):e._e(),"image"===e.formEditKey?t("div",[t("a-form-model-item",{attrs:{label:e.$t("components.netsea.product.image.license")}},[t("a-radio-group",{model:{value:a.image_repost_flag,callback:function(t){e.$set(a,"image_repost_flag",t)},expression:"netseaGoodInfo.image_repost_flag"}},[t("a-radio",{attrs:{value:!0}},[e._v(" "+e._s(e.$t("components.netsea.product.image.license.true"))+" ")]),t("a-radio",{attrs:{value:!1}},[e._v(" "+e._s(e.$t("components.netsea.product.image.license.false"))+" ")])],1)],1),t("a-form-model-item",{attrs:{label:e.$t("view.item.list.form.image_url"),help:e.$t("view.item.form.image.limit")}},[t("div",{staticStyle:{"margin-bottom":"10px"}},e._l(a.images,(function(a,n){return t("div",{directives:[{name:"show",rawName:"v-show",value:a.image_url,expression:"image.image_url"}],key:n,staticStyle:{"margin-bottom":"20px",width:"100px",height:"100px","margin-left":"10px",float:"left"}},[t("img",{staticStyle:{width:"100px",height:"100px"},attrs:{src:a.image_url}}),t("br"),e.imageSizeArr&&Object.keys(e.imageSizeArr)?t("div",{style:{textAlign:"center",color:e.imageSizeArr[a.image_no]>500?"#f00":"#000"}},[e._v(" "+e._s(e.imageSizeArr[a.image_no])+"K "),t("a-icon",{attrs:{type:"delete"},on:{click:function(t){return e.deleteImage(a.image_no,o)}}})],1):e._e()])})),0)])],1):e._e(),"description"===e.formEditKey?t("div",[t("a-form-model-item",{attrs:{label:e.$t("components.netsea.product.catchcopy"),help:e.$t("components.netsea.product.catchcopy.limit"),prop:"catchcopy"}},[t("a-input",{attrs:{placeholder:e.$t("components.netsea.product.catchcopy.placeholder"),id:"catchcopy"+o},model:{value:a.catchcopy,callback:function(t){e.$set(a,"catchcopy",t)},expression:"netseaGoodInfo.catchcopy"}})],1),t("a-form-model-item",{attrs:{label:e.$t("components.netsea.product.comment"),help:e.$t("components.netsea.product.comment.info"),prop:"comment"}},[t("a-textarea",{attrs:{id:"comment"+o},model:{value:a.comment,callback:function(t){e.$set(a,"comment",t)},expression:"netseaGoodInfo.comment"}})],1),t("a-form-model-item",{attrs:{label:e.$t("components.netsea.product.description"),help:e.$t("components.netsea.product.description.info"),prop:"description"}},[t("a-textarea",{attrs:{id:"description_for_consumer"+o},model:{value:a.description_for_consumer,callback:function(t){e.$set(a,"description_for_consumer",t)},expression:"netseaGoodInfo.description_for_consumer"}})],1),t("a-form-model-item",{attrs:{label:e.$t("components.netsea.product.size"),help:e.$t("components.netsea.product.size.info"),prop:"size"}},[t("a-textarea",{attrs:{id:"size"+o},model:{value:a.size,callback:function(t){e.$set(a,"size",t)},expression:"netseaGoodInfo.size"}})],1),t("a-form-model-item",{attrs:{label:e.$t("components.netsea.product.spec"),help:e.$t("components.netsea.product.spec.info"),prop:"spec"}},[t("a-textarea",{attrs:{id:"spec"+o},model:{value:a.spec,callback:function(t){e.$set(a,"spec",t)},expression:"netseaGoodInfo.spec"}})],1),t("a-form-model-item",{attrs:{label:e.$t("components.netsea.product.consumer"),help:e.$t("components.netsea.product.consumer.info"),prop:"spec_for_consumer"}},[t("a-textarea",{attrs:{id:"spec_for_consumer"+o},model:{value:a.spec_for_consumer,callback:function(t){e.$set(a,"spec_for_consumer",t)},expression:"netseaGoodInfo.spec_for_consumer"}})],1),t("a-form-model-item",{attrs:{label:e.$t("components.netsea.product.notes"),help:e.$t("components.netsea.product.notes.info"),prop:"notes"}},[t("a-textarea",{attrs:{id:"notes"+o},model:{value:a.notes,callback:function(t){e.$set(a,"notes",t)},expression:"netseaGoodInfo.notes"}})],1)],1):e._e(),"sku"===e.formEditKey?t("div",[t("a-form-model-item",{attrs:{label:e.$t("components.netsea.product.product_set")}},[t("a-table",{attrs:{columns:e.productSetColumns,"data-source":a.product_set,"row-key":function(e){return e.set_no},pagination:!1},scopedSlots:e._u([{key:"set_branch_code",fn:function(a,n){return t("span",{},[t("a-input",{staticStyle:{width:"100px"},attrs:{name:"set_branch_code"+o},model:{value:n.set_branch_code,callback:function(t){e.$set(n,"set_branch_code",t)},expression:"record.set_branch_code"}})],1)}},{key:"set_label",fn:function(a,n){return t("span",{},[t("a-input",{staticStyle:{width:"100px"},attrs:{name:"set_label"+o},model:{value:n.set_label,callback:function(t){e.$set(n,"set_label",t)},expression:"record.set_label"}})],1)}},{key:"set_reference_price",fn:function(a,n){return t("span",{},[t("a-input",{staticStyle:{width:"100px"},attrs:{name:"set_reference_price"+o},model:{value:n.set_reference_price,callback:function(t){e.$set(n,"set_reference_price",t)},expression:"record.set_reference_price"}})],1)}},{key:"set_price",fn:function(a,n){return t("span",{},[t("a-input",{staticStyle:{width:"100px"},attrs:{name:"set_price"+o},model:{value:n.set_price,callback:function(t){e.$set(n,"set_price",t)},expression:"record.set_price"}})],1)}},{key:"set_sku_number",fn:function(a,o){return t("span",{},[t("a-input",{staticStyle:{width:"100px"},attrs:{name:"set_sku_number"},model:{value:o.set_sku_number,callback:function(t){e.$set(o,"set_sku_number",t)},expression:"record.set_sku_number"}})],1)}},{key:"set_stock_number",fn:function(a,o){return t("span",{},[t("a-input",{staticStyle:{width:"100px"},attrs:{name:"set_stock_number"},model:{value:o.set_stock_number,callback:function(t){e.$set(o,"set_stock_number",t)},expression:"record.set_stock_number"}})],1)}}],null,!0)})],1)],1):e._e(),"other"===e.formEditKey?t("div",[t("a-form-model-item",{attrs:{label:e.$t("components.netsea.product.delivery_terms"),help:e.$t("components.netsea.product.delivery_terms.info"),prop:"delivery_terms"}},[t("a-textarea",{attrs:{id:"delivery_terms"+o},model:{value:a.delivery_terms,callback:function(t){e.$set(a,"delivery_terms",t)},expression:"netseaGoodInfo.delivery_terms"}})],1),t("a-form-model-item",{attrs:{label:e.$t("components.netsea.product.return_setting_code")}},[t("a-radio-group",{model:{value:a.return_setting_code,callback:function(t){e.$set(a,"return_setting_code",t)},expression:"netseaGoodInfo.return_setting_code"}},[t("a-radio",{attrs:{value:"allow"}},[e._v(e._s(e.$t("components.netsea.product.return_setting_code.allow")))]),t("a-radio",{attrs:{value:"deny"}},[e._v(e._s(e.$t("components.netsea.product.return_setting_code.deny")))]),t("a-radio",{attrs:{value:"negotiable"}},[e._v(e._s(e.$t("components.netsea.product.return_setting_code.negotiable")))]),t("a-radio",{attrs:{value:"none"}},[e._v(e._s(e.$t("components.netsea.product.return_setting_code.none")))])],1)],1),t("a-form-model-item",{attrs:{label:e.$t("components.netsea.product.search_tag"),help:e.$t("components.netsea.product.search_tag.info")}},e._l(a.search_tags,(function(a,n){return t("div",{key:n,staticStyle:{"margin-bottom":"10px"}},[e._v(" "+e._s(e.$t("components.netsea.product.search_tag"))+e._s(n+1)+": "),t("a-input",{staticStyle:{width:"200px"},attrs:{name:"search_tag_text"+o},model:{value:a.search_tag_text,callback:function(t){e.$set(a,"search_tag_text",t)},expression:"tag.search_tag_text"}})],1)})),0),t("a-form-model-item",{attrs:{label:e.$t("components.netsea.product.chartlet")}},[t("a-radio-group",{model:{value:a.stamp_id,callback:function(t){e.$set(a,"stamp_id",t)},expression:"netseaGoodInfo.stamp_id"}},[t("a-radio",{attrs:{value:0}},[e._v(e._s(e.$t("components.netsea.product.chartlet.0")))]),t("a-radio",{attrs:{value:1}},[e._v(e._s(e.$t("components.netsea.product.chartlet.1")))]),t("a-radio",{attrs:{value:3}},[e._v(e._s(e.$t("components.netsea.product.chartlet.3")))]),t("a-radio",{attrs:{value:4}},[e._v(e._s(e.$t("components.netsea.product.chartlet.4")))]),t("a-radio",{attrs:{value:5}},[e._v(e._s(e.$t("components.netsea.product.chartlet.5")))]),t("a-radio",{attrs:{value:6}},[e._v(e._s(e.$t("components.netsea.product.chartlet.6")))]),t("a-radio",{attrs:{value:7}},[e._v(e._s(e.$t("components.netsea.product.chartlet.7")))]),t("a-radio",{attrs:{value:8}},[e._v(e._s(e.$t("components.netsea.product.chartlet.8")))])],1)],1),t("a-form-model-item",{attrs:{label:e.$t("components.netsea.product.jan_code"),help:e.$t("components.netsea.product.jan_code.info"),prop:"jan_code"}},[t("a-input",{attrs:{id:"jan_code"+o},model:{value:a.jan_code,callback:function(t){e.$set(a,"jan_code",t)},expression:"netseaGoodInfo.jan_code"}})],1),t("a-form-model-item",{attrs:{label:e.$t("components.netsea.product.maker_code"),help:e.$t("components.netsea.product.maker_code.info"),prop:"maker_code"}},[t("a-input",{attrs:{id:"maker_code"+o},model:{value:a.maker_code,callback:function(t){e.$set(a,"maker_code",t)},expression:"netseaGoodInfo.maker_code"}})],1),t("a-form-model-item",{attrs:{label:e.$t("components.netsea.product.reference_price")}},[t("a-select",{model:{value:a.reference_price_type_code,callback:function(t){e.$set(a,"reference_price_type_code",t)},expression:"netseaGoodInfo.reference_price_type_code"}},[t("a-select-option",{attrs:{value:"open_price"}},[e._v(" "+e._s(e.$t("components.netsea.product.reference_price.open_price"))+" ")]),t("a-select-option",{attrs:{value:"maker_price"}},[e._v(" "+e._s(e.$t("components.netsea.product.reference_price.maker_price"))+" ")]),t("a-select-option",{attrs:{value:"catalog_price"}},[e._v(" "+e._s(e.$t("components.netsea.product.reference_price.catalog_price"))+" ")]),t("a-select-option",{attrs:{value:"setting_price"}},[e._v(" "+e._s(e.$t("components.netsea.product.reference_price.setting_price"))+" ")])],1)],1),t("a-form-model-item",{attrs:{label:e.$t("components.netsea.product.tax_rate")}},[t("a-radio-group",{model:{value:a.consumption_tax_type_code,callback:function(t){e.$set(a,"consumption_tax_type_code",t)},expression:"netseaGoodInfo.consumption_tax_type_code"}},[t("a-radio",{attrs:{value:"normal"}},[e._v(e._s(e.$t("components.netsea.product.tax_rate.normal")))]),t("a-radio",{attrs:{value:"reduced"}},[e._v(e._s(e.$t("components.netsea.product.tax_rate.reduced")))]),t("a-radio",{attrs:{value:"none"}},[e._v(e._s(e.$t("components.netsea.product.tax_rate.none")))])],1)],1)],1):e._e()])],1)])],1)],1)})),t("div",[e.plDataFields[e.formEditKey]?t("div",[e._v(e._s(e.$t("view.item.form.pl.params.label")))]):e._e(),t("a-form-model",e._b({ref:"TemplateDataForm",attrs:{model:e.TemplateData,rules:e.netseaGoodInfoRules}},"a-form-model",{labelCol:{span:3},wrapperCol:{span:20}},!1),["description"===e.formEditKey?t("div",[t("a-form-model-item",{attrs:{label:e.$t("components.netsea.product.catchcopy"),help:e.$t("components.netsea.product.catchcopy.limit"),prop:"catchcopy"}},[t("a-input",{attrs:{placeholder:e.$t("components.netsea.product.catchcopy.placeholder")},model:{value:e.TemplateData.catchcopy,callback:function(t){e.$set(e.TemplateData,"catchcopy",t)},expression:"TemplateData.catchcopy"}})],1),t("a-form-model-item",{attrs:{label:e.$t("components.netsea.product.comment"),help:e.$t("components.netsea.product.comment.info"),prop:"comment"}},[t("a-textarea",{attrs:{id:"comment"},model:{value:e.TemplateData.comment,callback:function(t){e.$set(e.TemplateData,"comment",t)},expression:"TemplateData.comment"}})],1),t("a-form-model-item",{attrs:{label:e.$t("components.netsea.product.description"),help:e.$t("components.netsea.product.description.info"),prop:"description"}},[t("a-textarea",{attrs:{id:"description_for_consumer"},model:{value:e.TemplateData.description_for_consumer,callback:function(t){e.$set(e.TemplateData,"description_for_consumer",t)},expression:"TemplateData.description_for_consumer"}})],1),t("a-form-model-item",{attrs:{label:e.$t("components.netsea.product.size"),help:e.$t("components.netsea.product.size.info"),prop:"size"}},[t("a-textarea",{attrs:{id:"size"},model:{value:e.TemplateData.size,callback:function(t){e.$set(e.TemplateData,"size",t)},expression:"TemplateData.size"}})],1),t("a-form-model-item",{attrs:{label:e.$t("components.netsea.product.spec"),help:e.$t("components.netsea.product.spec.info"),prop:"spec"}},[t("a-textarea",{attrs:{id:"spec"},model:{value:e.TemplateData.spec,callback:function(t){e.$set(e.TemplateData,"spec",t)},expression:"TemplateData.spec"}})],1),t("a-form-model-item",{attrs:{label:e.$t("components.netsea.product.consumer"),help:e.$t("components.netsea.product.consumer.info"),prop:"spec_for_consumer"}},[t("a-textarea",{attrs:{id:"spec_for_consumer"},model:{value:e.TemplateData.spec_for_consumer,callback:function(t){e.$set(e.TemplateData,"spec_for_consumer",t)},expression:"TemplateData.spec_for_consumer"}})],1),t("a-form-model-item",{attrs:{label:e.$t("components.netsea.product.notes"),help:e.$t("components.netsea.product.notes.info"),prop:"notes"}},[t("a-textarea",{attrs:{id:"notes"},model:{value:e.TemplateData.notes,callback:function(t){e.$set(e.TemplateData,"notes",t)},expression:"TemplateData.notes"}})],1)],1):e._e(),"itemInfo"===e.formEditKey?t("div",[t("a-form-model-item",{attrs:{label:e.$t("components.netsea.product.sale.status")}},[t("a-radio-group",{model:{value:e.TemplateData.sales_status_code,callback:function(t){e.$set(e.TemplateData,"sales_status_code",t)},expression:"TemplateData.sales_status_code"}},[t("a-radio",{attrs:{value:"on_sale"}},[e._v(" "+e._s(e.$t("components.netsea.product.sale.on_sale"))+" ")]),t("a-radio",{attrs:{value:"end_of_sale"}},[e._v(" "+e._s(e.$t("components.netsea.product.sale.end_of_sale"))+" ")])],1)],1),t("a-form-model-item",{attrs:{label:e.$t("components.netsea.product.sale.method")}},[t("a-radio-group",{model:{value:e.TemplateData.sales_method_code,callback:function(t){e.$set(e.TemplateData,"sales_method_code",t)},expression:"TemplateData.sales_method_code"}},[t("a-radio",{attrs:{value:"normal"}},[e._v(" "+e._s(e.$t("components.netsea.product.sale.method.normal"))+" ")]),t("a-radio",{attrs:{value:"reserve"}},[e._v(" "+e._s(e.$t("components.netsea.product.sale.method.reserve"))+" ")]),t("a-radio",{attrs:{value:"payment_only"}},[e._v(" "+e._s(e.$t("components.netsea.product.sale.method.payment_only"))+" ")])],1)],1),t("a-form-model-item",{attrs:{label:e.$t("components.netsea.product.publish.date")}},[t("a-date-picker",{attrs:{"show-time":""},model:{value:e.TemplateData.publish_period_start,callback:function(t){e.$set(e.TemplateData,"publish_period_start",t)},expression:"TemplateData.publish_period_start"}}),t("a-date-picker",{attrs:{"show-time":""},model:{value:e.TemplateData.publish_period_end,callback:function(t){e.$set(e.TemplateData,"publish_period_end",t)},expression:"TemplateData.publish_period_end"}})],1),t("a-form-model-item",{attrs:{label:e.$t("components.netsea.product.price.closed.flag")}},[t("a-radio-group",{model:{value:e.TemplateData.price_closed_flag,callback:function(t){e.$set(e.TemplateData,"price_closed_flag",t)},expression:"TemplateData.price_closed_flag"}},[t("a-radio",{attrs:{value:!0}},[e._v(" "+e._s(e.$t("components.netsea.product.price.closed.flag.true"))+" ")]),t("a-radio",{attrs:{value:!1}},[e._v(" "+e._s(e.$t("components.netsea.product.price.closed.flag.false"))+" ")])],1)],1),t("a-form-model-item",{attrs:{label:e.$t("components.netsea.product.shipping.fee")}},[t("a-radio-group",{model:{value:e.TemplateData.product_ship_setting_code,callback:function(t){e.$set(e.TemplateData,"product_ship_setting_code",t)},expression:"TemplateData.product_ship_setting_code"}},[t("a-radio",{attrs:{value:"store"}},[e._v(" "+e._s(e.$t("components.netsea.product.shipping.fee.shop_setting"))+" ")]),t("a-radio",{attrs:{value:"product"}},[e._v(" "+e._s(e.$t("components.netsea.product.shipping.fee.product.one"))+" "),t("a-input",{staticStyle:{width:"200px"},model:{value:e.TemplateData.product_ship_fee,callback:function(t){e.$set(e.TemplateData,"product_ship_fee",t)},expression:"TemplateData.product_ship_fee"}})],1)],1)],1),t("a-form-model-item",{attrs:{label:e.$t("components.netsea.product.product.discount_code")}},[t("a-radio-group",{model:{value:e.TemplateData.netProductDiscountCode,callback:function(t){e.$set(e.TemplateData,"netProductDiscountCode",t)},expression:"TemplateData.netProductDiscountCode"}},[t("a-radio",{attrs:{value:!1}},[e._v(" "+e._s(e.$t("components.netsea.product.product.discount_code.false"))+" ")]),t("a-radio",{attrs:{value:!0}},[e._v(" "+e._s(e.$t("components.netsea.product.product.discount_code.true"))+" "),e.TemplateData.netProductDiscountCode?t("a-input-number",{staticStyle:{width:"100px"},model:{value:e.TemplateData.product_discount.product_discount_rate,callback:function(t){e.$set(e.TemplateData.product_discount,"product_discount_rate",t)},expression:"TemplateData.product_discount.product_discount_rate"}}):e._e(),e._v(" % "),e.TemplateData.netProductDiscountCode?t("a-date-picker",{attrs:{format:"YYYY-MM-DD HH:00:00","show-time":""},model:{value:e.TemplateData.product_discount.product_discount_period_start,callback:function(t){e.$set(e.TemplateData.product_discount,"product_discount_period_start",t)},expression:"TemplateData.product_discount.product_discount_period_start"}}):e._e(),e.TemplateData.netProductDiscountCode?t("a-date-picker",{attrs:{format:"YYYY-MM-DD HH:00:00","show-time":""},model:{value:e.TemplateData.product_discount.product_discount_period_end,callback:function(t){e.$set(e.TemplateData.product_discount,"product_discount_period_end",t)},expression:"TemplateData.product_discount.product_discount_period_end"}}):e._e()],1)],1)],1),t("a-form-model-item",{attrs:{label:e.$t("components.netsea.product.volume_discount"),help:e.$t("components.netsea.product.volume_discount.info")}},[t("a-radio-group",{model:{value:e.TemplateData.volume_discount_target_flag,callback:function(t){e.$set(e.TemplateData,"volume_discount_target_flag",t)},expression:"TemplateData.volume_discount_target_flag"}},[t("a-radio",{attrs:{value:!0}},[e._v(e._s(e.$t("components.netsea.product.volume_discount.true")))]),t("a-radio",{attrs:{value:!1}},[e._v(e._s(e.$t("components.netsea.product.volume_discount.false")))])],1)],1)],1):e._e(),"other"===e.formEditKey?t("div",[t("a-form-model-item",{attrs:{label:e.$t("components.netsea.product.delivery_terms"),help:e.$t("components.netsea.product.delivery_terms.info"),prop:"delivery_terms"}},[t("a-textarea",{attrs:{id:"delivery_terms"},model:{value:e.TemplateData.delivery_terms,callback:function(t){e.$set(e.TemplateData,"delivery_terms",t)},expression:"TemplateData.delivery_terms"}})],1),t("a-form-model-item",{attrs:{label:e.$t("components.netsea.product.return_setting_code")}},[t("a-radio-group",{model:{value:e.TemplateData.return_setting_code,callback:function(t){e.$set(e.TemplateData,"return_setting_code",t)},expression:"TemplateData.return_setting_code"}},[t("a-radio",{attrs:{value:"allow"}},[e._v(e._s(e.$t("components.netsea.product.return_setting_code.allow")))]),t("a-radio",{attrs:{value:"deny"}},[e._v(e._s(e.$t("components.netsea.product.return_setting_code.deny")))]),t("a-radio",{attrs:{value:"negotiable"}},[e._v(e._s(e.$t("components.netsea.product.return_setting_code.negotiable")))]),t("a-radio",{attrs:{value:"none"}},[e._v(e._s(e.$t("components.netsea.product.return_setting_code.none")))])],1)],1),t("a-form-model-item",{attrs:{label:e.$t("components.netsea.product.search_tag"),help:e.$t("components.netsea.product.search_tag.info")}},e._l(e.TemplateData.search_tags,(function(a,o){return t("div",{key:o,staticStyle:{"margin-bottom":"10px"}},[e._v(" "+e._s(e.$t("components.netsea.product.search_tag"))+e._s(o+1)+": "),t("a-input",{staticStyle:{width:"200px"},attrs:{name:"search_tag_text"},model:{value:a.search_tag_text,callback:function(t){e.$set(a,"search_tag_text",t)},expression:"tag.search_tag_text"}})],1)})),0),t("a-form-model-item",{attrs:{label:e.$t("components.netsea.product.chartlet")}},[t("a-radio-group",{model:{value:e.TemplateData.stamp_id,callback:function(t){e.$set(e.TemplateData,"stamp_id",t)},expression:"TemplateData.stamp_id"}},[t("a-radio",{attrs:{value:0}},[e._v(e._s(e.$t("components.netsea.product.chartlet.0")))]),t("a-radio",{attrs:{value:1}},[e._v(e._s(e.$t("components.netsea.product.chartlet.1")))]),t("a-radio",{attrs:{value:3}},[e._v(e._s(e.$t("components.netsea.product.chartlet.3")))]),t("a-radio",{attrs:{value:4}},[e._v(e._s(e.$t("components.netsea.product.chartlet.4")))]),t("a-radio",{attrs:{value:5}},[e._v(e._s(e.$t("components.netsea.product.chartlet.5")))]),t("a-radio",{attrs:{value:6}},[e._v(e._s(e.$t("components.netsea.product.chartlet.6")))]),t("a-radio",{attrs:{value:7}},[e._v(e._s(e.$t("components.netsea.product.chartlet.7")))]),t("a-radio",{attrs:{value:8}},[e._v(e._s(e.$t("components.netsea.product.chartlet.8")))])],1)],1),t("a-form-model-item",{attrs:{label:e.$t("components.netsea.product.jan_code"),help:e.$t("components.netsea.product.jan_code.info"),prop:"jan_code"}},[t("a-input",{attrs:{id:"jan_code"},model:{value:e.TemplateData.jan_code,callback:function(t){e.$set(e.TemplateData,"jan_code",t)},expression:"TemplateData.jan_code"}})],1),t("a-form-model-item",{attrs:{label:e.$t("components.netsea.product.maker_code"),help:e.$t("components.netsea.product.maker_code.info"),prop:"maker_code"}},[t("a-input",{attrs:{id:"maker_code"},model:{value:e.TemplateData.maker_code,callback:function(t){e.$set(e.TemplateData,"maker_code",t)},expression:"TemplateData.maker_code"}})],1),t("a-form-model-item",{attrs:{label:e.$t("components.netsea.product.reference_price")}},[t("a-select",{model:{value:e.TemplateData.reference_price_type_code,callback:function(t){e.$set(e.TemplateData,"reference_price_type_code",t)},expression:"TemplateData.reference_price_type_code"}},[t("a-select-option",{attrs:{value:"open_price"}},[e._v(" "+e._s(e.$t("components.netsea.product.reference_price.open_price"))+" ")]),t("a-select-option",{attrs:{value:"maker_price"}},[e._v(" "+e._s(e.$t("components.netsea.product.reference_price.maker_price"))+" ")]),t("a-select-option",{attrs:{value:"catalog_price"}},[e._v(" "+e._s(e.$t("components.netsea.product.reference_price.catalog_price"))+" ")]),t("a-select-option",{attrs:{value:"setting_price"}},[e._v(" "+e._s(e.$t("components.netsea.product.reference_price.setting_price"))+" ")])],1)],1),t("a-form-model-item",{attrs:{label:e.$t("components.netsea.product.tax_rate")}},[t("a-radio-group",{model:{value:e.TemplateData.consumption_tax_type_code,callback:function(t){e.$set(e.TemplateData,"consumption_tax_type_code",t)},expression:"TemplateData.consumption_tax_type_code"}},[t("a-radio",{attrs:{value:"normal"}},[e._v(e._s(e.$t("components.netsea.product.tax_rate.normal")))]),t("a-radio",{attrs:{value:"reduced"}},[e._v(e._s(e.$t("components.netsea.product.tax_rate.reduced")))]),t("a-radio",{attrs:{value:"none"}},[e._v(e._s(e.$t("components.netsea.product.tax_rate.none")))])],1)],1)],1):e._e(),t("div",{staticStyle:{"margin-bottom":"1rem"}},[t("a-button",{on:{click:function(t){return e.piCopyData(e.formEditKey)}}},[e._v(e._s(e.$t("view.item.form.pl.params.save")))])],1)])],1)],2)],1)],1)]),t("div",{attrs:{slot:"footer"},slot:"footer"},[t("a-button",{on:{click:e.cancelModal}},[e._v(e._s(e.$t("components.imagetext.translation.confirm.cancel")))]),t("a-button",{attrs:{type:"primary",loading:e.confirmNSLoading},on:{click:e.okNetSeaGoodInfo}},[e._v(e._s(e.$t("view.item.form.pl.save.button")))]),t("a-button",{attrs:{type:"success",loading:e.confirmNSLoading},on:{click:e.okFabu}},[e._v(e._s(e.$t("view.item.form.pl.fabu.button")))])],1)]):e._e()],1)},n=[],s=a("5530"),r=a("c7eb"),i=a("1da1"),c=(a("d3b7"),a("3ca3"),a("ddb0"),a("25f0"),a("b680"),a("d81d"),a("fb6a"),a("159b"),a("7db0"),a("a026")),d=a("c1df"),l=a.n(d),u=a("8caa"),m=Object(c["b"])((function(){return Promise.resolve().then(a.bind(null,"2dd7"))})),p=Object(c["b"])((function(){return a.e("chunk-53fb277b").then(a.bind(null,"16f2"))})),_=Object(c["b"])((function(){return a.e("chunk-286b8764").then(a.bind(null,"12b1"))})),g=Object(c["b"])((function(){return a.e("chunk-53fb277b").then(a.bind(null,"5f19"))})),f={name:"rakutenAddProduct",props:{goodsIds:{type:Array,default:function(){return[]}}},data:function(){return{formTitle:this.$t("components.dyProduct.dyProduct.title"),formEditKey:"title",open:!1,modalWidth:"1350",modalHeight:"680",goodList:[],netseaGoodInfoList:{},netseaShop:null,imageSizeArr:{},netProductDiscountCodeList:{},netseaGenereArray:{},netseaGoodInfoRules:{product_name:[{required:!0,message:this.$t("view.item.list.form.placeholder.title"),trigger:"blur"},{max:50,message:this.$t("view.item.form.item_name.maxlength"),trigger:"change"}],catchcopy:[{max:50,message:this.$t("view.item.form.catchcopy.maxlength"),trigger:"change"}],comment:[{max:1e3,message:this.$t("view.item.form.comment.maxlength"),trigger:"change"}],description:[{max:5e3,message:this.$t("view.item.form.description_for_consumer.maxlength"),trigger:"change"}],size:[{max:1e3,message:this.$t("view.item.form.size.maxlength"),trigger:"change"}],spec:[{max:1e3,message:this.$t("view.item.form.spec.maxlength"),trigger:"change"}],spec_for_consumer:[{max:5e3,message:this.$t("view.item.form.spec_for_consumer.maxlength"),trigger:"change"}],notes:[{max:1e3,message:this.$t("view.item.form.notes.maxlength"),trigger:"change"}],delivery_terms:[{max:50,message:this.$t("view.item.form.delivery_terms.maxlength"),trigger:"change"}],jan_code:[{max:13,message:this.$t("view.item.form.jan_code.maxlength"),trigger:"change"}],maker_code:[{max:30,message:this.$t("view.item.form.maker_code.maxlength"),trigger:"change"}]},categoryHierarchyList:{},firstCatId:{},secondCatId:{},thirdCatId:{},productSetColumns:[{title:this.$t("components.netsea.product.product_set.set_no"),dataIndex:"set_no",key:"set_no"},{title:this.$t("components.netsea.product.set_branch_code"),dataIndex:"set_branch_code",key:"set_branch_code",scopedSlots:{customRender:"set_branch_code"}},{title:this.$t("components.netsea.product.product_set.set_label"),dataIndex:"set_label",key:"set_label",scopedSlots:{customRender:"set_label"}},{title:this.$t("components.netsea.product.product_set.set_reference_price"),dataIndex:"set_reference_price",key:"set_reference_price",scopedSlots:{customRender:"set_reference_price"}},{title:this.$t("components.netsea.product.product_set.set_price"),dataIndex:"set_price",key:"set_price",scopedSlots:{customRender:"set_price"}},{title:this.$t("components.netsea.product.product_set.set_sku_number"),dataIndex:"set_sku_number",key:"set_sku_number",scopedSlots:{customRender:"set_sku_number"}},{title:this.$t("components.netsea.product.product_set.set_stock_number"),dataIndex:"set_stock_number",key:"set_stock_number",scopedSlots:{customRender:"set_stock_number"}}],confirmNSLoading:!1,plDataFields:{description:["catchcopy","comment","description_for_consumer","size","spec","spec_for_consumer","notes"],itemInfo:["sales_status_code","sales_method_code","publish_period_start","publish_period_end","product_ship_setting_code","product_ship_fee"],other:["delivery_terms","return_setting_code","search_tags","stamp_id","jan_code","maker_code","reference_price_type_code","consumption_tax_type_code"]},TemplateData:{product_discount:{product_discount_rate:"",product_discount_period_start:"",product_discount_period_end:""},search_tags:[{search_tag_no:1,search_tag_text:""},{search_tag_no:2,search_tag_text:""},{search_tag_no:3,search_tag_text:""},{search_tag_no:4,search_tag_text:""},{search_tag_no:5,search_tag_text:""}]},plActicty:[]}},methods:{changeLeftTab:function(e){this.formEditKey=e},cancelModal:function(){this.open=!1},openModal:function(){this.modalHeight=(.9*window.innerHeight).toFixed(0).toString(),this.modalWidth=(.8*window.innerWidth).toFixed(0).toString(),this.open=!0},initLoad:function(e){e&&(this.netseaGoodInfoList={},this.netseaShop=e,this.openModal())},initNetsea:function(e){var t=this;Promise.all(this._.map(e,(function(e,a){return t.netseaPublication(e)}))).then((function(e){t.$message.destroy()}))},netseaPublication:function(e,t){var a=this,o=this,n={};return n.good_id=e.good_id,n.app_key=this.netseaShop.app_key,o.netseaGenereArray[e.good_id]={netseaGenereList:[],netseaGenereList1:[],netseaGenereList2:[]},Object(u["d"])(n).then((function(t){if(0===t.code){o.netseaGoodInfoList[e.good_id]=t.product_info,o.getParentCategory(o.netseaGoodInfoList[e.good_id].category_id,e.good_id),o.imageSizeArr={};var n=[];return o.netseaGoodInfoList[e.good_id].images&&o.netseaGoodInfoList[e.good_id].images.map((function(e){e.image_url&&n.push(o.getImageSizeInKB(e.image_url).then((function(t){return o.imageSizeArr[e.image_no]=t.toFixed(2),t})))})),Promise.all(n).then((function(){o.imageSizeArr=Object.assign({},o.imageSizeArr)})),o.netseaGoodInfoList[e.good_id].publish_period_start&&(o.netseaGoodInfoList[e.good_id].publish_period_start=new Date(1e3*o.netseaGoodInfoList[e.good_id].publish_period_start).toISOString().slice(0,19)),o.netseaGoodInfoList[e.good_id].publish_period_end&&(o.netseaGoodInfoList[e.good_id].publish_period_end=new Date(1e3*o.netseaGoodInfoList[e.good_id].publish_period_end).toISOString().slice(0,19)),o.netseaGoodInfoList[e.good_id].product_discout?(o.netProductDiscountCodeList[e.good_id]=!0,o.netseaGoodInfoList[e.good_id].product_discount.product_discount_period_start=o.netseaGoodInfoList[e.good_id].product_discount.product_discount_period_start?new Date(1e3*o.netseaGoodInfoList[e.good_id].product_discount.product_discount_period_start).toISOString().slice(0,19):"",o.netseaGoodInfoList[e.good_id].product_discount.product_discount_period_end=o.netseaGoodInfoList[e.good_id].product_discount.product_discount_period_end?new Date(1e3*o.netseaGoodInfoList[e.good_id].product_discount.product_discount_period_end).toISOString().slice(0,19):""):(o.netProductDiscountCodeList[e.good_id]=!1,o.netseaGoodInfoList[e.good_id].product_discount={product_discount_rate:"",product_discount_period_start:"",product_discount_period_end:""}),o.app_key=a.netseaShop.app_key,o.getNetSeaGenere(0,0,e.good_id),o.$set(a,"netseaGoodInfoList",Object.assign({},o.netseaGoodInfoList)),a.netseaShop.loading=!1,t}}))},getParentCategory:function(e,t){var a=this,o=this;this.categoryHierarchyList[t]||(this.categoryHierarchyList[t]={level1:{},level2:{},level3:{}}),Object(u["b"])({cat_id:e}).then((function(e){0===e.code&&(e.data.forEach((function(o){if(0===o.p_cat_id)a.categoryHierarchyList[t].level1=o;else{var n=e.data.find((function(e){return e.cat_id===o.p_cat_id}));n&&0===n.p_cat_id?a.categoryHierarchyList[t].level2=o:a.categoryHierarchyList[t].level3=o}})),a.firstCatId[t]=a.categoryHierarchyList[t].level1.cat_id,a.secondCatId[t]=a.categoryHierarchyList[t].level2.cat_id,o.getNetSeaGenere(a.firstCatId[t],1,t),a.thirdCatId[t]=a.categoryHierarchyList[t].level3.cat_id,o.getNetSeaGenere(a.secondCatId[t],2,t),a.$set(a,"categoryHierarchyList",Object.assign({},a.categoryHierarchyList)),a.$set(a,"firstCatId",Object.assign({},a.firstCatId)),a.$set(a,"secondCatId",Object.assign({},a.secondCatId)),a.$set(a,"thirdCatId",Object.assign({},a.thirdCatId)))}))},getNetSeaGenere:function(e,t,a){var o=this,n=this,s={};return s.cat_id=e,Object(u["a"])(s).then((function(e){if(0===e.code)switch(t){case 0:n.netseaGenereArray[a].netseaGenereList=e.data;break;case 1:n.netseaGenereArray[a].netseaGenereList1=e.data;break;case 2:n.netseaGenereArray[a].netseaGenereList2=e.data;break}return o.$set(o,"netseaGenereArray",Object.assign({},o.netseaGenereArray)),e}))},selectNetSeaGenre:function(e,t,a){var o=this,n={};switch(t){case 0:o.netseaGenereArray[a].netseaGenereList1=[],o.netseaGenereArray[a].netseaGenereList2=[],o.netseaGenereArray[a].netseaGenereList3=[],o.secondCatId[a]=0,o.thirdCatId[a]=0,n=o.netseaGenereArray[a].netseaGenereList.find((function(t){return t.cat_id===e}));break;case 1:o.netseaGenereArray[a].netseaGenereList2=[],o.netseaGenereArray[a].netseaGenereList3=[],o.thirdCatId[a]=0,n=o.netseaGenereArray[a].netseaGenereList1.find((function(t){return t.cat_id===e}));break;case 2:o.netseaGenereArray[a].netseaGenereList3=[],n=o.netseaGenereArray[a].netseaGenereList2.find((function(t){return t.cat_id===e}));break}n&&(0===n.p_cat_id?o.getNetSeaGenere(n.cat_id,1,a).then((function(e){o.netseaGenereArray[a].netseaGenereList&&(o.secondCatId[a]=o.netseaGenereArray[a].netseaGenereList1[0].cat_id,o.getNetSeaGenere(o.secondCatId[a],2,a).then((function(e){o.netseaGenereArray[a].netseaGenereList1&&(o.thirdCatId[a]=o.netseaGenereArray[a].netseaGenereList2[0].cat_id,o.netseaGoodInfoList[a].category_id=o.thirdCatId[a])})))})):n.p_cat_id===o.firstCatId[a]?o.getNetSeaGenere(n.cat_id,2,a).then((function(e){o.netseaGenereArray[a].netseaGenereList2&&(o.thirdCatId[a]=o.netseaGenereArray[a].netseaGenereList2[0].cat_id,o.netseaGoodInfoList[a].category_id=o.thirdCatId[a])})):n.p_cat_id===o.secondCatId[a]&&(o.thirdCatId[a]=n.cat_id,o.secondCatId[a]&&(o.netseaGoodInfoList[a].category_id=o.thirdCatId[a])))},discountSwitch:function(e){this.$set(this,"netProductDiscountCodeList",Object.assign({},this.netProductDiscountCodeList))},getImageSizeInKB:function(e){return Object(i["a"])(Object(r["a"])().mark((function t(){return Object(r["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.prev=0,t.abrupt("return",Object(u["c"])({url:e}).then((function(e){if(e.volume)return e.volume})));case 4:t.prev=4,t.t0=t["catch"](0);case 6:case"end":return t.stop()}}),t,null,[[0,4]])})))()},okNetSeaGoodInfo:function(){var e=this,t=this;t.confirmNSLoading=!0;var a=[];this.goodsIds.map((function(e,o){t.$refs["netseaGoodInfoForm"+e]&&t.$refs["netseaGoodInfoForm"+e][0]&&a.push(new Promise((function(a,o){try{t.$refs["netseaGoodInfoForm"+e][0].validate((function(n,s){n?a("success"):Object.keys(s)&&Object.keys(s)[0]&&o(new Error(t.$t("view.item.list.good_id")+e+s[Object.keys(s)[0]][0].message))}))}catch(n){o(new Error(n))}})))})),Promise.all(a).then((function(a){var o=[],n=e._.map(e.netseaGoodInfoList,(function(a,n){var s={};if(s.data=JSON.parse(JSON.stringify(a)),a.publish_period_start&&(s.data.publish_period_start=new Date(l()(s.data.publish_period_start).format("YYYY-MM-DD HH:mm:ss")).getTime()/1e3),a.publish_period_end&&(s.data.publish_period_end=new Date(l()(s.data.publish_period_end).format("YYYY-MM-DD HH:mm:ss")).getTime()/1e3),t.netProductDiscountCodeList[n]){if(!s.data.product_discount.product_discount_rate)return t.$message.error(t.$t("view.item.form.product_discount_rate.notnull")),"itemInfo";try{s.data.product_discount.product_discount_period_start=new Date(l()(s.data.product_discout.product_discount_period_start).format("YYYY-MM-DD HH:00:00")).getTime()/1e3,s.data.product_discount.product_discount_period_end=new Date(l()(s.data.product_discout.product_discount_period_end).format("YYYY-MM-DD HH:00:00")).getTime()/1e3}catch(c){}}else delete s.data.product_discount;if(s.data.good_id=n,!s.data.product_name)return t.$message.error(t.$t("view.item.form.item_name.notnull")),t.confirmNSLoading=!1,"title";if(!e.isWithinMaxLength(s.data.product_name,50))return t.$message.error(t.$t("view.item.form.item_name.maxlength")),document.getElementById("product_name"+n)&&document.getElementById("product_name"+n).focus(),t.confirmNSLoading=!1,"title";if(s.data.catchcopy&&!e.isWithinMaxLength(s.data.catchcopy,50))return t.$message.error(t.$t("view.item.form.catchcopy.maxlength")),document.getElementById("catchcopy"+n)&&document.getElementById("catchcopy"+n).focus(),t.confirmNSLoading=!1,"category";if(s.data.comment&&!e.isWithinMaxLength(s.data.comment,1e3))return t.$message.error(t.$t("view.item.form.comment.maxlength")),document.getElementById("comment"+n)&&document.getElementById("comment"+n).focus(),t.confirmNSLoading=!1,"description";if(s.data.description_for_consumer&&!e.isWithinMaxLength(s.data.description_for_consumer,5e3))return t.$message.error(t.$t("view.item.form.description_for_consumer.maxlength")),document.getElementById("description_for_consumer"+n)&&document.getElementById("description_for_consumer"+n).focus(),t.confirmNSLoading=!1,"description";if(s.data.size&&!e.isWithinMaxLength(s.data.size,1e3))return t.$message.error(t.$t("view.item.form.size.maxlength")),document.getElementById("size"+n)&&document.getElementById("size"+n).focus(),t.confirmNSLoading=!1,"description";if(s.data.spec&&!e.isWithinMaxLength(s.data.spec,1e3))return t.$message.error(t.$t("view.item.form.spec.maxlength")),document.getElementById("spec"+n)&&document.getElementById("spec"+n).focus(),t.confirmNSLoading=!1,"description";if(s.data.spec_for_consumer&&!e.isWithinMaxLength(s.data.spec_for_consumer,5e3))return t.$message.error(t.$t("view.item.form.spec_for_consumer.maxlength")),document.getElementById("spec_for_consumer"+n)&&document.getElementById("spec_for_consumer"+n).focus(),t.confirmNSLoading=!1,"description";if(s.data.notes&&!e.isWithinMaxLength(s.data.notes,5e3))return t.$message.error(t.$t("view.item.form.notes.maxlength")),document.getElementById("notes"+n)&&document.getElementById("notes"+n).focus(),t.confirmNSLoading=!1,"description";if(s.data.delivery_terms&&!e.isWithinMaxLength(s.data.delivery_terms,50))return t.$message.error(t.$t("view.item.form.delivery_terms.maxlength")),document.getElementById("delivery_terms"+n)&&document.getElementById("delivery_terms"+n).focus(),t.confirmNSLoading=!1,"other";if(s.data.search_tags.length>0)for(var r=0;r<s.data.search_tags.length;r++)if(!e.isWithinMaxLength(s.data.search_tags[r].search_tag_text,10))return t.$message.error(t.$t("view.item.form.search_tags.maxlength")),document.getElementsByName("search_tag_text"+n)[r]&&document.getElementsByName("search_tag_text"+n)[r].focus(),t.confirmNSLoading=!1,"other";if(s.data.jan_code&&!e.isWithinMaxLength(s.data.jan_code,13))return t.$message.error(t.$t("view.item.form.jan_code.maxlength")),document.getElementById("jan_code"+n)&&document.getElementById("jan_code"+n).focus(),t.confirmNSLoading=!1,"other";if(s.data.maker_code&&!e.isWithinMaxLength(s.data.maker_code,30))return t.$message.error(t.$t("view.item.form.maker_code.maxlength")),document.getElementById("maker_code"+n)&&document.getElementById("maker_code"+n).focus(),t.confirmNSLoading=!1,"other";if(s.data.product_set.length>0)for(var i=0;i<s.data.product_set.length;i++){if(!e.isWithinMaxLength(s.data.product_set[i].set_branch_code,20))return t.$message.error(t.$t("view.item.form.set_branch_code.maxlength")),document.getElementsByName("set_branch_code"+n)[i]&&document.getElementsByName("set_branch_code"+n)[i].focus(),t.confirmNSLoading=!1,"sku";if(!e.isWithinMaxLength(s.data.product_set[i].set_label,30))return t.$message.error(t.$t("view.item.form.set_label.maxlength")),document.getElementsByName("set_label"+n)[i]&&document.getElementsByName("set_label"+n)[i].focus(),t.confirmNSLoading=!1,"sku";if(!s.data.product_set[i].set_reference_price)return t.$message.error(t.$t("view.item.form.set_reference_price.notnull")),document.getElementsByName("set_reference_price"+n)[i]&&document.getElementsByName("set_reference_price"+n)[i].focus(),t.confirmNSLoading=!1,"sku";if(isNaN(s.data.product_set[i].set_reference_price))return t.$message.error(t.$t("view.item.form.set_reference_price.number")),document.getElementsByName("set_reference_price"+n)[i]&&document.getElementsByName("set_reference_price"+n)[i].focus(),t.confirmNSLoading=!1,"sku";if(!s.data.product_set[i].set_price)return t.$message.error(t.$t("view.item.form.set_price.notnull")),document.getElementsByName("set_price"+n)[i]&&document.getElementsByName("set_price"+n)[i].focus(),t.confirmNSLoading=!1,"sku";if(isNaN(s.data.product_set[i].set_price))return t.$message.error(t.$t("view.item.form.set_price.number")),document.getElementsByName("set_price"+n)[i]&&document.getElementsByName("set_price"+n)[i].focus(),t.confirmNSLoading=!1,"sku"}o.push(s.data)}));n=t._.compact(n),o.length>0&&0===n.length?Object(u["f"])({data:o,app_key:t.netseaShop.app_key}).then((function(e){0===e.code?(t.confirmNSLoading=!1,t.$message.success(e.message)):(t.confirmNSLoading=!1,t.$message.error(e.message))})).catch((function(e){t.confirmNSLoading=!1,t.$message.error(e)})):n.length>0&&(t.confirmNSLoading=!1,e.formEditKey=n[0])})).catch((function(e){t.confirmNSLoading=!1,t.$message.error(e)}))},isWithinMaxLength:function(e,t){for(var a=0,o=0;o<e.length;o++)a+=1;return a<=t},deleteImage:function(e,t){this.netseaGoodInfoList[t].images.map((function(t){t.image_no===e&&(t.image_url="")})),this.$set(this,"netseaGoodInfoList",Object.assign({},this.netseaGoodInfoList))},okFabu:function(){var e=this;this.confirmNSLoading=!0,Object(u["e"])({good_ids:this.goodsIds,app_key:this.netseaShop.app_key}).then((function(t){0===t.code?e.$message.success(t.message):e.$message.error(t.message),e.confirmNSLoading=!1})).catch((function(t){e.confirmNSLoading=!1,e.$message.error(t)}))},piCopyData:function(e){var t=this,a=this;this._.map(this.netseaGoodInfoList,(function(o,n){"itemInfo"===e&&t.TemplateData["product_ship_setting_code"]&&(a.netProductDiscountCodeList[n]=!0,a.netseaGoodInfoList[n].product_discount=a.TemplateData.product_discount),a.plDataFields[e].map((function(e){a.netseaGoodInfoList[n][e]=a.TemplateData[e]}))})),this.$set(this,"netseaGoodInfoList",Object.assign({},this.netseaGoodInfoList))}},components:{AntModal:m,goodsIdList:p,leftTabItem:_,kandengGoodsOne:g}},h=Object(s["a"])({},f),v=h,b=a("2877"),y=Object(b["a"])(v,o,n,!1,null,null,null);t["default"]=y.exports},"963d":function(e,t,a){"use strict";a("09ff")},ac2a:function(e,t,a){"use strict";a.r(t);var o=function(){var e=this,t=e._self._c;return t("div",{staticClass:"main"},[t("div",{staticStyle:{"text-align":"right"}},[t("select-lang",{attrs:{currentLangText:!0,defaultLang:e.routerLang}})],1),e.form.role_name&&!e.LoginStatus?t("div",[t("div",[e._v(e._s(e.form.role_name+e.$t("view.user.register"))+":")])]):e._e(),t("a-form-model",{ref:"form",staticClass:"user-layout-login",attrs:{id:"formLogin",model:e.form,rules:e.rules}},[e.LoginStatus?t("a-tabs",{staticClass:"loginTitle",on:{change:function(t){e.loginType=t}}},[t("a-tab-pane",{key:"1",attrs:{tab:e.$t(e.LoginStatus?"login.modal.tab1":"view.user.register.tab1")}}),t("a-tab-pane",{key:"2",attrs:{tab:e.$t(e.LoginStatus?"login.modal.tab2":"view.user.register.tab2")}})],1):e._e(),t("a-form-model-item",{attrs:{prop:"username"}},[t("a-input",{attrs:{size:"large",placeholder:e.$t("view.config.email.add.username.label")},model:{value:e.form.username,callback:function(t){e.$set(e.form,"username",t)},expression:"form.username"}},[t("a-icon",{style:{color:"rgba(0,0,0,.25)"},attrs:{slot:"prefix",type:"user"},slot:"prefix"})],1)],1),t("a-form-model-item",{attrs:{prop:"password"}},[t("a-input-password",{attrs:{size:"large",placeholder:e.$t("view.login.email.add.password.label")},model:{value:e.form.password,callback:function(t){e.$set(e.form,"password",t)},expression:"form.password"}},[t("a-icon",{style:{color:"rgba(0,0,0,.25)"},attrs:{slot:"prefix",type:"lock"},slot:"prefix"})],1)],1),e.LoginStatus?e._e():t("a-form-model-item",{attrs:{prop:"realname"}},[t("a-input",{attrs:{size:"large",placeholder:e.$t("view.config.email.add.realname.label")},model:{value:e.form.realname,callback:function(t){e.$set(e.form,"realname",t)},expression:"form.realname"}},[t("a-icon",{style:{color:"rgba(0,0,0,.25)"},attrs:{slot:"prefix",type:"user"},slot:"prefix"})],1)],1),e.LoginStatus?e._e():t("a-form-model-item",{attrs:{prop:"mobile"}},[t("a-input",{attrs:{size:"large",placeholder:e.$t("view.config.email.add.mobile.label")},model:{value:e.form.mobile,callback:function(t){e.$set(e.form,"mobile",t)},expression:"form.mobile"}},[t("a-icon",{style:{color:"rgba(0,0,0,.25)"},attrs:{slot:"prefix",type:"phone"},slot:"prefix"})],1)],1),e.LoginStatus?e._e():t("a-form-model-item",{attrs:{prop:"email"}},[t("a-input",{attrs:{size:"large",placeholder:e.$t("view.config.email.add.email.label")},model:{value:e.form.email,callback:function(t){e.$set(e.form,"email",t)},expression:"form.email"}},[t("a-icon",{style:{color:"rgba(0,0,0,.25)"},attrs:{slot:"prefix",type:"mail"},slot:"prefix"})],1)],1),e.LoginStatus&&e.captchaOnOff?t("a-row",{attrs:{gutter:16}},[t("a-col",{staticClass:"gutter-row",attrs:{span:16}},[t("a-form-model-item",{attrs:{prop:"code"}},[t("a-input",{attrs:{size:"large",type:"text",autocomplete:"off",placeholder:e.$t("login.modal.code")},model:{value:e.form.code,callback:function(t){e.$set(e.form,"code",t)},expression:"form.code"}},[t("a-icon",{style:{color:"rgba(0,0,0,.25)"},attrs:{slot:"prefix",type:"security-scan"},slot:"prefix"})],1)],1)],1),t("a-col",{staticClass:"gutter-row",attrs:{span:8}},[t("img",{staticClass:"getCaptcha",attrs:{src:e.codeUrl},on:{click:e.getCode}})])],1):e._e(),e.LoginStatus?e._e():t("a-row",{attrs:{gutter:16}},[t("a-col",{staticClass:"gutter-row",attrs:{lg:18,sm:18,md:18,xs:16}},[t("a-form-model-item",{attrs:{prop:"code"}},[t("a-input",{attrs:{size:"large",type:"text",autocomplete:"off",placeholder:e.$t("view.modal.email.code.placeholder")},model:{value:e.form.code,callback:function(t){e.$set(e.form,"code",t)},expression:"form.code"}},[t("a-icon",{style:{color:"rgba(0,0,0,.25)"},attrs:{slot:"prefix",type:"security-scan"},slot:"prefix"})],1)],1)],1),t("a-col",{staticClass:"gutter-row",attrs:{lg:6,sm:6,md:6,xs:8}},[t("a-button",{staticClass:"login-button",staticStyle:{padding:"0 0px"},attrs:{type:"primary",loading:e.codeLoading,size:"large"},on:{click:e.getEmailCode}},[e._v(e._s(e.codeLoading?e.$t("view.modal.code.time",{time:e.currentCodeTime}):e.$t("view.modal.email.code")))])],1)],1),e.LoginStatus?e._e():t("a-form-model-item",{attrs:{prop:"distribution_code"}},[t("a-input",{attrs:{size:"large",placeholder:e.$t("view.config.add.code.label")},model:{value:e.form.distribution_code,callback:function(t){e.$set(e.form,"distribution_code",t)},expression:"form.distribution_code"}},[t("a-icon",{style:{color:"rgba(0,0,0,.25)"},attrs:{slot:"prefix",type:"security-scan"},slot:"prefix"})],1)],1),e.LoginStatus?t("a-form-item",{staticStyle:{"margin-top":"3rem"}},[t("a-button",{staticClass:"login-button",attrs:{size:"large",type:"primary",htmlType:"submit",loading:e.logining,disabled:e.logining},on:{click:e.handleSubmit}},[e._v(" "+e._s((e.loginType,e.$t("view.modal.login")))+" ")])],1):e._e(),e.LoginStatus?e._e():t("a-form-item",{staticStyle:{"margin-top":"0.25rem","margin-bottom":"1rem"}},[t("a-button",{staticClass:"login-button",attrs:{size:"large",type:"primary",htmlType:"submit",loading:e.logining,disabled:e.logining},on:{click:e.handleRegister}},[e._v(" "+e._s((e.loginType,e.$t("view.user.register")))+" ")])],1),t("a-row",[t("a-col",{staticStyle:{"text-align":"right"},attrs:{lg:24}},[t("a-space",[t("div",{staticClass:"icons-list"},[e.LoginStatus?t("a-button",{attrs:{type:"link"},on:{click:e.goRegister}},[e._v(e._s(e.$t("view.user.register")))]):e._e(),e.LoginStatus?e._e():t("a-button",{attrs:{type:"link"},on:{click:e.goLogin}},[e._v(e._s(e.$t("view.modal.login")))])],1)])],1)],1)],1)],1)},n=[],s=a("5530"),r=(a("d3b7"),a("2f62")),i=a("7ded"),c=a("04b3"),d=a("da7d"),l={components:{allIcon:c["a"],SelectLang:d["a"]},data:function(){return{prefixCls:"ant-pro-global-header-index-action",loginType:"1",allIcon:c["a"],codeUrl:"",form:{username:"",password:"",code:"",cid:"123"},captchaOnOff:!0,rules:{username:[{required:!0,message:this.$t("view.config.email.add.username.placeholder"),trigger:"blur"}],password:[{required:!0,message:this.$t("view.config.email.add.password.placeholder"),trigger:"blur"}],realname:[{required:!1,message:this.$t("view.config.email.add.realname.placeholder"),trigger:"blur"}],mobile:[{required:!1,message:this.$t("view.config.email.add.mobile.placeholder"),trigger:"blur"}],email:[{required:!1,message:this.$t("view.config.email.add.email.placeholder"),trigger:"blur"}],code:[{required:!0,message:this.$t("login.modal.code.relue"),trigger:"blur"}],cid:[{required:!0,message:"验证码ID不能为空",trigger:"blur"}]},logining:!1,LoginStatus:!0,CodeTime:null,codeLoading:!1,currentCodeTime:0,routerLang:""}},created:function(){var e;this.getCode(),null!==(e=this.$route.query)&&void 0!==e&&e.lang&&(this.routerLang=this.$route.query.lang),this.$route.query.role&&(this.form.role=this.$route.query.role,this.form.role_name=this.$route.query.role_name),"1"===this.$route.query.register&&this.goRegister(),this.$route.query.ref_code&&(this.form.distribution_code=this.$route.query.ref_code),this.$route.query.token&&this.loginSuccess()},beforeDestroy:function(){clearInterval(this.CodeTime)},methods:Object(s["a"])(Object(s["a"])({getCode:function(){var e=this;Object(i["c"])().then((function(t){e.captchaOnOff=void 0===t.captchaOnOff||t.captchaOnOff,e.captchaOnOff&&(e.codeUrl=t.base64,e.form.cid=t.cid)}))},applyLicense:function(){window.open("/applyLicense","_blank")}},Object(r["b"])(["Login","Logout","SubLogin"])),{},{handleSubmit:function(){var e=this;this.$notification.close("loginExpireTip"),this.logining=!0,this.$refs.form.validate((function(t){t?"1"===e.loginType?e.Login(e.form).then((function(t){return e.loginSuccess(t)})).catch((function(t){return e.requestFailed(t)})).finally((function(){e.logining=!1})):e.SubLogin(e.form).then((function(t){return e.loginSuccess(t)})).catch((function(t){return e.requestFailed(t)})).finally((function(){e.logining=!1})):(setTimeout((function(){e.logining=!1}),600),e.captchaOnOff&&e.getCode())}))},loginSuccess:function(e){this.$router.push({path:"/"})},requestFailed:function(){this.logining=!1,this.form.code=void 0,this.getCode()},handleCloseLoginError:function(){},goRegister:function(){this.rules.email[0].required=!0,this.LoginStatus=!1},goLogin:function(){this.rules.email[0].required=!1,this.LoginStatus=!0},handleRegister:function(){var e=this;this.$refs.form.validate((function(t){t?Object(i["k"])(e.form).then((function(t){0===t.code&&(e.$message.success(e.$t("view.modal.register.succes")),e.goLogin())})):setTimeout((function(){e.logining=!1}),600)}))},getEmailCode:function(){var e=this;this.codeLoading||this.$refs.form.validateField("email",(function(t){t||Object(i["b"])({email:e.form.email}).then((function(t){0===t.code&&(e.codeLoading=!0,e.getCodeTime(),e.$message.success(e.$t("view.modal.code.succes")))}))}))},getCodeTime:function(){var e=this,t=30;this.currentCodeTime=t,this.CodeTime=setInterval((function(){t--,e.currentCodeTime=t,t<=0&&(e.codeLoading=!1,clearInterval(e.CodeTime))}),1e3)}})},u=l,m=(a("963d"),a("2419"),a("2877")),p=Object(m["a"])(u,o,n,!1,null,"4a5236c2",null);t["default"]=p.exports},aee6:function(e,t,a){"use strict";a.r(t);var o=function(){var e=this,t=e._self._c;return t("span",[t("a-tabs",{on:{change:e.changeTabGoods},model:{value:e.activeTab,callback:function(t){e.activeTab=t},expression:"activeTab"}},e._l(e.list,(function(e){return t("a-tab-pane",{key:e.good_id,attrs:{tab:e.title}})})),1)],1)},n=[],s=a("5530"),r=a("c7eb"),i=a("1da1"),c=(a("d3b7"),a("3ca3"),a("ddb0"),a("d81d"),a("aabf")),d={name:"GoodsListTab",props:{goodsIdList:{type:Array,default:function(){return[]}}},data:function(){return{activeTab:0,list:{}}},watch:{goodsIdList:function(e,t){e!==t&&this.getGoodsList()}},created:function(){this.getGoodsList()},methods:{changeTab:function(e){},getGoodsList:function(){var e=this;return Object(i["a"])(Object(r["a"])().mark((function t(){return Object(r["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,Promise.all(e.goodsIdList.map(function(){var t=Object(i["a"])(Object(r["a"])().mark((function t(a,o){var n;return Object(r["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return n={good_id:a},t.next=3,Object(c["m"])(n);case 3:e.list[a]=t.sent;case 4:case"end":return t.stop()}}),t)})));return function(e,a){return t.apply(this,arguments)}}()));case 2:e._.size(e.list)>1&&(e.activeTab=e.list[e.goodsIdList[0]].good_id,e.$emit("change",e.list[e.goodsIdList[0]]));case 3:case"end":return t.stop()}}),t)})))()},changeTabGoods:function(e){this.activeTab=e,this.$emit("change",this.list[e])}}},l=Object(s["a"])({},d),u=l,m=a("2877"),p=Object(m["a"])(u,o,n,!1,null,null,null);t["default"]=p.exports},d936:function(e,t,a){"use strict";a("92c5")},eb30:function(e,t,a){"use strict";a.r(t);a("b0c0"),a("a9e3");var o=function(){var e=this,t=e._self._c;return t("span",[e.hiddenIcon?e._e():t("a-tooltip",[t("template",{slot:"title"},[e._v(" "+e._s(e.$t("components.imagetext.translation"))+" ")]),t("a-icon",{attrs:{type:"file-image"},on:{click:e.openModal}})],2),t("AntModal",{attrs:{visible:e.visible,title:e.modelTitle,modalWidth:"800",modalHeight:"650","adjust-size":!0},on:{cancel:e.close},scopedSlots:e._u([{key:"footer",fn:function(){return[t("recharge",{ref:"yueref",attrs:{showYue:!0}}),t("a-button",{staticStyle:{"margin-left":"5px"},on:{click:e.close}},[e._v(e._s(e.$t("components.imagetext.translation.close")))]),t("a-button",{attrs:{type:"primary"},on:{click:e.ok}},[e._v(e._s(e.$t("components.imagetext.translation.ok")))])]},proxy:!0}])},[t("div",{attrs:{slot:"content"},slot:"content"},[t("div",{staticStyle:{display:"flex","align-items":"center"}},[t("div",{staticStyle:{width:"290px"}},[t("div",[e._v(e._s(e.$t("components.imagetext.translation.before")))]),t("div",{staticStyle:{width:"290px",height:"290px"}},[t("img",{staticStyle:{width:"290px",height:"290px","object-fit":"contain"},attrs:{src:e.img}})]),t("div",{staticStyle:{"margin-top":"1rem"}},[e._v(" "+e._s(e.$t("components.imagetext.translation.sourceLang"))+": "),e.langSource?t("a-select",{staticStyle:{width:"60%"},on:{change:e.changeCurrentLang},model:{value:e.currentLang,callback:function(t){e.currentLang=t},expression:"currentLang"}},e._l(e.langSource.sourceLanguage,(function(a){return t("a-select-option",{key:a.code,attrs:{value:a.code}},[e._v(" "+e._s(a.name)+" ")])})),1):e._e()],1)]),t("div",{staticStyle:{flex:"1","text-align":"center"}},[t("div",{staticStyle:{height:"311px","align-items":"center","justify-content":"center",display:"flex"}},[t("a-icon",{staticStyle:{"font-size":"2rem"},attrs:{type:"arrow-right"}})],1),t("a-select",{staticStyle:{width:"100%","margin-top":"1rem"},on:{change:e.changeTranEngData},model:{value:e.transEngineData,callback:function(t){e.transEngineData=t},expression:"transEngineData"}},e._l(e.langSource.transEngine,(function(a){return t("a-select-option",{key:a.code},[e._v(e._s(a.name)+" "),t("defaultCurrency",{attrs:{currency:"CNY",isFuhao:!0}}),e._v(" "+e._s(Number(Number(a.unitPrice)/100))+" ")],1)})),1)],1),t("div",{staticStyle:{width:"290px"}},[t("div",[e._v(e._s(e.$t("components.imagetext.translation.after")))]),t("div",{style:{width:"290px",height:"290px",border:e.newImg?"":"1px solid #ccc"}},[e.newImg?t("img",{staticStyle:{width:"290px",height:"290px","object-fit":"contain"},attrs:{src:e.newImg}}):e._e()]),t("div",{staticStyle:{"margin-top":"1rem","text-align":"right"}},[e._v(" "+e._s(e.$t("components.imagetext.translation.targetLang"))+": "),e.langSource?t("a-select",{staticStyle:{width:"60%"},on:{change:e.changeTransLang},model:{value:e.transLang,callback:function(t){e.transLang=t},expression:"transLang"}},e._l(e.langSource.targetLanguage,(function(a){return t("a-select-option",{key:a.code,attrs:{value:a.code}},[e._v(" "+e._s(a.name)+" ")])})),1):e._e()],1)])]),t("div",{staticStyle:{"margin-top":"1rem","text-align":"center"}},[t("a-button",{attrs:{type:"primary"},on:{click:e.transImg}},[e._v(e._s(e.$t("components.imagetext.translation.translate")))])],1)])])],1)},n=[],s=(a("d3b7"),a("3ca3"),a("ddb0"),a("a026")),r=a("3726"),i=Object(s["b"])((function(){return Promise.resolve().then(a.bind(null,"2dd7"))})),c=Object(s["b"])((function(){return Promise.resolve().then(a.bind(null,"b89c"))})),d=Object(s["b"])((function(){return Promise.resolve().then(a.bind(null,"34c3"))})),l="ImageTs-TranEngMode",u="ImageTs-CurrentLang",m="ImageTs-TransLang",p={name:"ImageTextTs",props:{img:{type:String,default:""},hiddenIcon:{type:Boolean,default:!1}},data:function(){return{visible:!1,modelTitle:this.$t("components.imagetext.translation.modaltitle"),newImg:"",langSource:[],currentLang:"",transLang:"",transEngineData:""}},methods:{getLangList:function(){var e=this;Object(r["c"])().then((function(t){0===t.code&&(e.langSource=JSON.parse(t.lang),sessionStorage.getItem(l)?e.transEngineData=sessionStorage.getItem(l):e.langSource.transEngine.length>0&&(e.transEngineData=e.langSource.transEngine[0].code,sessionStorage.setItem(l,e.transEngineData)),sessionStorage.getItem(u)&&(e.currentLang=sessionStorage.getItem(u)),sessionStorage.getItem(m)&&(e.transLang=sessionStorage.getItem(m)))}))},openModal:function(){if(this.newImg="",!this.img)return this.$message.error(this.$t("components.imagetext.translation.image.null")),!1;this.getLangList(),this.visible=!0},close:function(){this.visible=!1},ok:function(){var e=this;this.$confirm({title:this.$t("components.imagetext.translation.confirm.title"),content:this.$t("components.imagetext.translation.confirm.content"),okText:this.$t("components.imagetext.translation.confirm.ok"),cancelText:this.$t("components.imagetext.translation.confirm.cancel"),onOk:function(){e.$emit("update:img",e.newImg),e.$emit("ok",e.newImg),e.close()},onCancel:function(){}})},transImg:function(){var e=this;return this.transEngineData?this.currentLang?this.transLang?(this.$message.loading({content:this.$t("components.imagetext.translation.transImageLoading"),duration:0}),void Object(r["a"])({imgUrl:this.img,sourceLanguage:this.currentLang,targetLanguage:this.transLang,transEngine:this.transEngineData}).then((function(t){e.newImg=t.url+"?t="+(new Date).getTime(),e.$refs.yueref.getAmount(),e.$message.destroy()})).catch((function(t){e.$message.destroy()}))):(this.$message.error(this.$t("components.imagetext.translation.targetLang.null")),!1):(this.$message.error(this.$t("components.imagetext.translation.sourceLang.null")),!1):(this.$message.error(this.$t("components.imagetext.translation.engine.null")),!1)},changeTranEngData:function(e){sessionStorage.setItem(l,e)},changeCurrentLang:function(e){sessionStorage.setItem(u,e)},changeTransLang:function(e){sessionStorage.setItem(m,e)}},components:{AntModal:i,recharge:c,defaultCurrency:d}},_=p,g=a("2877"),f=Object(g["a"])(_,o,n,!1,null,null,null);t["default"]=f.exports},f7f8:function(e,t,a){"use strict";a.r(t);var o=function(){var e=this,t=e._self._c;return t("span",[e.hiddenIcon?e._e():t("a-tooltip",[t("template",{slot:"title"},[e._v(" "+e._s(e.$t("components.videoTrans.btn"))+" ")]),t("a-icon",{attrs:{type:"file-image"},on:{click:e.openModal}})],2),e.hiddenIcon?t("a-button",{attrs:{type:e.btnType,loading:e.loading},on:{click:e.openModal}},[e._v(e._s(e.$t("components.videoTrans.btn")))]):e._e(),t("AntModal",{attrs:{visible:e.visible,title:e.modelTitle,modalWidth:"800",modalHeight:"650","adjust-size":!0},on:{cancel:e.close},scopedSlots:e._u([{key:"footer",fn:function(){return[t("recharge",{ref:"yueref",attrs:{showYue:!0}}),t("a-button",{staticStyle:{"margin-left":"5px"},on:{click:e.close}},[e._v(e._s(e.$t("components.videoTrans.translation.close")))]),e.hiddenConfirm?e._e():t("a-button",{attrs:{type:"primary"},on:{click:e.ok}},[e._v(e._s(e.$t("components.imagetext.translation.ok")))])]},proxy:!0}])},[t("div",{attrs:{slot:"content"},slot:"content"},[t("div",{staticStyle:{display:"flex","align-items":"center"}},[t("div",{staticStyle:{width:"290px"}},[t("div",[e._v(e._s(e.$t("components.imagetext.translation.before")))]),t("div",{staticStyle:{width:"290px",height:"290px"}},[t("video",{ref:"sfGalleryBigImage",staticStyle:{"object-position":"top","max-height":"290px"},attrs:{autoplay:!1,muted:"",preload:"load",loop:"",src:e.url,width:"100%",height:"100%",controls:"controls",playsinline:""},domProps:{muted:!0}},[t("source",{attrs:{src:e.url,type:"video/*"}})])]),t("div",{staticStyle:{"margin-top":"1rem"}},[e._v(" "+e._s(e.$t("components.imagetext.translation.sourceLang"))+": "),t("a-select",{staticStyle:{width:"60%"},on:{change:e.changeCurrentLang},model:{value:e.currentLang,callback:function(t){e.currentLang=t},expression:"currentLang"}},e._l(e.langLabel,(function(a,o){return t("a-select-option",{key:o,attrs:{value:o}},[e._v(" "+e._s(e.$t(a))+" ")])})),1)],1)]),t("div",{staticStyle:{flex:"1","text-align":"center"}},[t("div",{staticStyle:{height:"311px","align-items":"center","justify-content":"center",display:"flex"}},[t("a-icon",{staticStyle:{"font-size":"2rem"},attrs:{type:"arrow-right"}})],1)]),t("div",{staticStyle:{width:"290px"}},[t("div",[e._v(e._s(e.$t("components.imagetext.translation.after")))]),t("div",{style:{width:"290px",height:"290px",border:e.newUrl?"":"1px solid #ccc"}},[e.newUrl?t("video",{ref:"sfGalleryBigImage",staticStyle:{"object-position":"top","max-height":"290px"},attrs:{autoplay:!1,muted:"",preload:"load",loop:"",src:e.newUrl,width:"100%",height:"100%",controls:"controls",playsinline:""},domProps:{muted:!0}},[t("source",{attrs:{src:e.newUrl,type:"video/*"}})]):e._e()]),t("div",{staticStyle:{"margin-top":"1rem","text-align":"right"}},[e._v(" "+e._s(e.$t("components.imagetext.translation.targetLang"))+": "),t("a-select",{staticStyle:{width:"60%"},on:{change:e.changeTransLang},model:{value:e.transLang,callback:function(t){e.transLang=t},expression:"transLang"}},e._l(e.langLabel,(function(a,o){return t("a-select-option",{key:o,attrs:{value:o}},[e._v(" "+e._s(e.$t(a))+" ")])})),1)],1)])]),t("div"),t("div",{staticStyle:{"margin-top":"1rem","text-align":"center"}},[t("a-button",{attrs:{type:"primary"},on:{click:e.transImg}},[e._v(e._s(e.$t("components.imagetext.translation.translate")))]),t("selectVideo",{ref:"selectVideo",staticStyle:{"margin-left":"0.5rem"},on:{ok:function(t){return e.newUrl=t}}})],1)])])],1)},n=[],s=(a("d3b7"),a("3ca3"),a("ddb0"),a("ac1f"),a("5319"),a("a026")),r=a("3726"),i=Object(s["b"])((function(){return Promise.resolve().then(a.bind(null,"2dd7"))})),c=Object(s["b"])((function(){return Promise.resolve().then(a.bind(null,"b89c"))})),d=Object(s["b"])((function(){return Promise.resolve().then(a.bind(null,"34c3"))})),l=Object(s["b"])((function(){return a.e("chunk-53fb277b").then(a.bind(null,"09e9e"))})),u="videoTs-TranEngMode",m="videoTs-CurrentLang",p="videoTs-TransLang",_={name:"VideoTrans",props:{url:{type:String,default:""},hiddenIcon:{type:Boolean,default:!1},btnType:{type:String,default:"primary"},hiddenConfirm:{type:Boolean,default:!1}},data:function(){return{visible:!1,modelTitle:this.$t("components.imagetext.translation.modaltitle"),newUrl:"",langSource:[],langLabel:{zh:"zh-CN",en:"en-US",fr:"fr-FR",es:"es-ES",ar:"ar-EG",hi:"hi-IN",pt:"pt-PT",ru:"ru-RU",it:"it-IT",de:"de-DE",ja:"ja-JP",th:"th-TH",ko:"ko-KR",bn:"bn-BD",id:"id-ID",vi:"vi-VN",ms:"ms-MY"},currentLang:"",transLang:"",transEngineData:"",loading:!1}},methods:{getLangList:function(){sessionStorage.getItem(m)&&(this.currentLang=sessionStorage.getItem(m)),sessionStorage.getItem(p)&&(this.transLang=sessionStorage.getItem(p))},openModal:function(){if(this.newUrl="",!this.url)return this.$message.error(this.$t("components.imagetext.translation.image.null")),!1;this.getLangList(),this.visible=!0},close:function(){this.visible=!1},ok:function(){var e=this;this.$confirm({title:this.$t("components.imagetext.translation.confirm.title"),content:this.$t("components.imagetext.translation.confirm.content"),okText:this.$t("components.imagetext.translation.confirm.ok"),cancelText:this.$t("components.imagetext.translation.confirm.cancel"),onOk:function(){e.$emit("update:url",e.newUrl),e.$emit("ok",e.newUrl),e.close()},onCancel:function(){}})},transImg:function(){var e=this,t=(new Date).toLocaleDateString().replace(/\//g,"");Object(r["f"])({source_url:this.url,source_lang:this.currentLang,target_lang:this.transLang,project_name:t}).then((function(t){e.newUrl=t.video_url+"?t="+(new Date).getTime(),e.$refs.yueref.getAmount(),e.$message.success(e.$t("components.videoTrans.aivideo.loding"),2),setTimeout((function(){e.$refs.selectVideo&&e.$refs.selectVideo.openModal()}),2e3)})).catch((function(e){}))},changeTranEngData:function(e){sessionStorage.setItem(u,e)},changeCurrentLang:function(e){sessionStorage.setItem(m,e)},changeTransLang:function(e){sessionStorage.setItem(p,e)}},components:{AntModal:i,recharge:c,defaultCurrency:d,selectVideo:l}},g=_,f=a("2877"),h=Object(f["a"])(g,o,n,!1,null,null,null);t["default"]=h.exports}}]);
1
+ (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-286b8764"],{"01df5":function(e,t,a){},"09ff":function(e,t,a){},"0ef6":function(e,t,a){"use strict";a.r(t);var o=function(){var e=this,t=e._self._c;return t("div",{ref:"portaletDiv",staticClass:"module"},[e._m(0)])},n=[function(){var e=this,t=e._self._c;return t("div",{staticClass:"module-in"},[t("ul",{staticClass:"information02"},[t("li",[t("div",{staticClass:"sky"},[t("img",{attrs:{src:a("924b"),alt:""}})]),t("div",{staticClass:"information02-data"},[t("span",[e._v("50%")]),t("p",[e._v("压力仪表盘")])])]),t("li",[t("div",{staticClass:"sky"},[t("img",{attrs:{src:a("4781"),alt:""}})]),t("div",{staticClass:"information02-data"},[t("span",[e._v("28%")]),t("p",[e._v("完成率")])])])])])}],s={created:function(){},mounted:function(){this.$emit("setHeight",this.$refs.portaletDiv.offsetHeight)},watch:{},components:{},methods:{}},r=s,i=(a("d936"),a("2877")),c=Object(i["a"])(r,o,n,!1,null,"0c32075c",null);t["default"]=c.exports},"120c":function(e,t,a){"use strict";a.r(t);var o=function(){var e=this,t=e._self._c;return t("div",{attrs:{clas:"spyder"}},[t("a-card",{staticStyle:{padding:"20px 10px","align-content":"center"},attrs:{bordered:!1}},[t("div",[t("h2",[e._v("其他平台采集货源需安装蜂洞插件")]),t("span",[e._v("支持 "),t("span",{staticStyle:{color:"red"}},[e._v("temu")]),e._v(" 、 "),t("span",{staticStyle:{color:"red"}},[e._v("亚马逊")]),e._v(" 等平台。")])]),t("div",{staticStyle:{"margin-top":"10px"}},[t("h2",[e._v("插件支持多个主流浏览器")]),t("div",[t("img",{attrs:{src:"https://earth-rt.chengji-inc.com/market/help/2020-12-03/fcd81079-e265-422c-a2c3-e896f7101a8f.png?height=80&width=80"}})])]),t("div",[t("p",[e._v("1、插件安装后,需刷新页面;")]),t("p",[e._v("2、若插件已安装且已开启,但在点击翻译时,仍提示要下载插件,原因是之前的旧插件未删除,要到浏览器的扩展管理中进行删除。")])]),t("div",[t("h2",{staticStyle:{color:"red"}},[e._v("安装教程")]),t("h3",[e._v("不同浏览器安装插件的教程")]),t("h3",[t("span",[e._v("谷歌浏览器")]),e._v("("),t("span",[e._v("下载浏览器")]),e._v(")插件安装方法:")]),t("ol",[t("li",{staticStyle:{"line-height":"30px"}},[t("span",[e._v("1、下载安装文件")]),t("br"),t("span",[e._v(" 下载插件("),t("a",{staticClass:"download-highlight",attrs:{href:"#"}},[e._v("点击下载")]),e._v("),打开插件所在的文件夹,找到已下载的插件,插件后缀是.zip,不需要解压; ")])]),t("li",{staticStyle:{"line-height":"30px"}},[t("span",[e._v("2、打开浏览器扩展页面")]),t("br"),t("span",[e._v(" 打开Chrome谷歌浏览器,复制"),t("a",{attrs:{href:"chrome://extensions/",target:"_blank"}},[e._v("chrome://extensions/")]),e._v(",并粘贴到地址栏,按回车键进入扩展管理页面; ")])]),t("li",{staticStyle:{"line-height":"30px"}},[t("span",[e._v("3、安装插件")]),t("br"),t("span",[e._v(' 打开页面右上角的"开发者模式"开关,刷新页面,将zip文件拖拽至扩展程序管理页面空白处,完成安装。 ')])]),t("li",{staticStyle:{"line-height":"30px"}},[t("span",[e._v("4、移除旧插件(若之前有安装过)")]),t("br"),t("span",[e._v(" 若之前安装过旧版插件,请从扩展页面将其移除掉。 ")])])]),t("p",[e._v("(提示:安装插件显示模糊不妨碍正常使用,如果遇到插件被浏览器清除,重新安装即可)")])])])],1)},n=[],s=a("5530"),r=a("5f6f"),i=Object(s["a"])({},r["default"]),c=i,d=a("2877"),l=Object(d["a"])(c,o,n,!1,null,null,null);t["default"]=l.exports},"12b1":function(e,t,a){"use strict";a.r(t);var o=function(){var e=this,t=e._self._c;return t("a-tabs",{attrs:{"tab-position":e.tabPosition},on:{change:e.changeTab},model:{value:e.activeKey,callback:function(t){e.activeKey=t},expression:"activeKey"}},e._l(e.list,(function(e){return t("a-tab-pane",{key:e.key,attrs:{tab:e.title}})})),1)},n=[],s={props:{defaultTabKey:{type:String,default:"title"},tabItems:{type:Array,default:function(){return[]}},platform:{type:String,default:"rakuten"}},data:function(){return{tabPosition:"left",list:[],tiktokList:[{key:"title",title:this.$t("view.item.list.itemTitle")},{key:"category",title:this.$t("view.attach.list.form.query3")},{key:"brand",title:this.$t("components.dyProduct.dyProduct.bran")},{key:"attribute",title:this.$t("components.dyProduct.dyProduct.attributes")},{key:"image",title:this.$t("view.item.list.itemImage")},{key:"itemInfo",title:this.$t("components.rakuten.tabOne.title")},{key:"sku",title:this.$t("view.bigcommerce.product.publish.table.skuInfo")},{key:"description",title:this.$t("view.alibaba.product.detail.sku.description")},{key:"sizeChart",title:this.$t("components.dyProduct.dyProduct.sizechart.image")},{key:"packageWeight",title:this.$t("components.dyProduct.package_weight.value")},{key:"packageSizeChart",title:this.$t("components.dyProduct.package_size_chart.value")},{key:"other",title:this.$t("components.rakuten.product.features")}],defaultList:[{key:"title",title:this.$t("view.item.list.itemTitle")},{key:"category",title:this.$t("view.attach.list.form.query3")},{key:"image",title:this.$t("view.item.list.itemImage")},{key:"itemInfo",title:this.$t("components.rakuten.tabOne.title")},{key:"sku",title:this.$t("view.bigcommerce.product.publish.table.skuInfo")},{key:"description",title:this.$t("view.alibaba.product.detail.sku.description")},{key:"other",title:this.$t("components.rakuten.product.features")}],activeKey:"title"}},created:function(){this.changeTab(this.defaultTabKey),this.tabItems.length>0?this.list=this.tabItems:"rakuten"===this.platform?this.list=this.defaultList:this.list=this.tiktokList},watch:{defaultTabKey:function(e,t){e&&e!==t&&this.changeTab(e)},tabItems:function(e,t){e&&e!==t&&(this.list=e)}},methods:{changeTab:function(e){this.activeKey=e,this.$emit("change",e)}}},r=s,i=a("2877"),c=Object(i["a"])(r,o,n,!1,null,null,null);t["default"]=c.exports},2419:function(e,t,a){"use strict";a("01df5")},2855:function(e,t,a){"use strict";a.r(t);var o=function(){var e=this,t=e._self._c;return t("a-result",{attrs:{title:"该功能尚未开发!"},scopedSlots:e._u([{key:"icon",fn:function(){return[t("a-icon",{attrs:{type:"smile",theme:"twoTone"}})]},proxy:!0},{key:"extra",fn:function(){return[t("a-button",{attrs:{type:"primary"},on:{click:e.returnIndex}},[e._v(" 返回工作台 ")])]},proxy:!0}])})},n=[],s={name:"Build",components:{},data:function(){return{}},filters:{},created:function(){},computed:{},watch:{},mounted:function(){},methods:{returnIndex:function(){this.$router.push({path:"/index"})}}},r=s,i=a("2877"),c=Object(i["a"])(r,o,n,!1,null,null,null);t["default"]=c.exports},4781:function(e,t,a){e.exports=a.p+"img/img02.9ac07e73.png"},"4a49":function(e,t,a){"use strict";a.r(t);var o=function(){var e=this,t=e._self._c;return t("a-spin",{attrs:{spinning:e.loading,tip:"加载中..."}},[t("div",{style:"height:"+e.height},[t("iframe",{staticStyle:{width:"100%",height:"100%"},attrs:{src:e.src,frameborder:"no",scrolling:"auto"}})])])},n=[],s={name:"Swagger",components:{},data:function(){return{src:"/admin/swagger-ui.html",height:document.documentElement.clientHeight-120+"px;",loading:!0}},filters:{},created:function(){},computed:{},watch:{},mounted:function(){var e=this;setTimeout((function(){e.loading=!1}),230);var t=this;window.onresize=function(){t.height=document.documentElement.clientHeight-94.5+"px;"}},methods:{}},r=s,i=a("2877"),c=Object(i["a"])(r,o,n,!1,null,null,null);t["default"]=c.exports},"5f6f":function(e,t,a){"use strict";a.r(t),t["default"]={name:"spyder",components:{},created:function(){},computed:{},data:function(){return{}},methods:{}}},"924b":function(e,t,a){e.exports=a.p+"img/img01.319f61f4.png"},"92c5":function(e,t,a){},"945a":function(e,t,a){"use strict";a.r(t);a("a9e3"),a("b64b");var o=function(){var e=this,t=e._self._c;return t("span",[e.open?t("AntModal",{attrs:{visible:e.open,"modal-title":e.formTitle,"adjust-size":!0,modalHeight:e.modalHeight,modalWidth:e.modalWidth,"confirm-loading":e.confirmNSLoading},on:{cancel:e.cancelModal,ok:e.okNetSeaGoodInfo}},[t("div",{attrs:{slot:"content"},slot:"content"},[t("div",[t("div",[t("goodsIdList",{staticStyle:{display:"none"},attrs:{goodsIds:e.goodsIds,goodsList:e.goodList},on:{"update:goodsList":function(t){e.goodList=t},"update:goods-list":function(t){e.goodList=t},back:e.initNetsea}})],1),t("a-row",{attrs:{type:"flex"}},[t("a-col",[t("leftTabItem",{attrs:{defaultTabKey:e.formEditKey},on:{change:e.changeLeftTab}})],1),t("a-col",{style:{overflowY:"auto",overflowX:"hidden",height:.78*Number(e.modalHeight)+"px"},attrs:{flex:"1"}},[e._l(e.netseaGoodInfoList,(function(a,o){return t("div",{key:o,staticStyle:{"padding-bottom":"2rem"}},[t("div",{staticStyle:{"margin-bottom":"1rem"}},[t("kandengGoodsOne",{attrs:{goodsList:e.goodList,goodsId:o}})],1),t("a-collapse",{model:{value:e.plActicty,callback:function(t){e.plActicty=t},expression:"plActicty"}},[t("a-collapse-panel",{attrs:{header:o+e.$t("view.item.form.pl.form.params.label")}},[t("div",{staticStyle:{padding:"1rem 0"}},[t("a-form-model",e._b({ref:"netseaGoodInfoForm"+o,refInFor:!0,attrs:{model:a,rules:e.netseaGoodInfoRules}},"a-form-model",{labelCol:{span:3},wrapperCol:{span:20}},!1),["title"===e.formEditKey?t("div",[t("a-form-model-item",{ref:"product_name",refInFor:!0,attrs:{label:e.$t("view.item.list.itemTitle"),help:e.$t("components.netsea.product.catchcopy.limit"),prop:"product_name"}},[t("a-input",{attrs:{id:"product_name"+o},model:{value:a.product_name,callback:function(t){e.$set(a,"product_name",t)},expression:"netseaGoodInfo.product_name"}})],1)],1):e._e(),"category"===e.formEditKey?t("div",[t("a-form-model-item",{attrs:{label:e.$t("components.netesa.product.category")}},[t("a-input",{attrs:{disabled:""},model:{value:a.category_id,callback:function(t){e.$set(a,"category_id",t)},expression:"netseaGoodInfo.category_id"}})],1),t("a-form-model-item",{attrs:{label:e.$t("components.netesa.product.category")}},[e.netseaGenereArray[o]&&e.netseaGenereArray[o].netseaGenereList?t("a-select",{staticStyle:{width:"180px"},on:{change:function(t){e.selectNetSeaGenre(t,0,o)}},model:{value:e.firstCatId[o],callback:function(t){e.$set(e.firstCatId,o,t)},expression:"firstCatId[good_id]"}},e._l(e.netseaGenereArray[o].netseaGenereList,(function(a,o){return t("a-select-option",{key:o,attrs:{value:a.cat_id}},[e._v(" "+e._s(a.cat_name)+" ")])})),1):e._e(),e.netseaGenereArray[o]&&e.netseaGenereArray[o].netseaGenereList1.length?t("a-select",{staticStyle:{width:"180px"},on:{change:function(t){e.selectNetSeaGenre(t,1,o)}},model:{value:e.secondCatId[o],callback:function(t){e.$set(e.secondCatId,o,t)},expression:"secondCatId[good_id]"}},e._l(e.netseaGenereArray[o].netseaGenereList1,(function(a,o){return t("a-select-option",{key:o,attrs:{value:a.cat_id}},[e._v(" "+e._s(a.cat_name)+" ")])})),1):e._e(),e.netseaGenereArray[o]&&e.netseaGenereArray[o].netseaGenereList2.length?t("a-select",{staticStyle:{width:"180px"},on:{change:function(t){e.selectNetSeaGenre(t,2,o)}},model:{value:e.thirdCatId[o],callback:function(t){e.$set(e.thirdCatId,o,t)},expression:"thirdCatId[good_id]"}},e._l(e.netseaGenereArray[o].netseaGenereList2,(function(a,o){return t("a-select-option",{key:o,attrs:{value:a.cat_id}},[e._v(" "+e._s(a.cat_name)+" ")])})),1):e._e()],1)],1):e._e(),"itemInfo"===e.formEditKey?t("div",[t("a-form-model-item",{attrs:{label:e.$t("components.netsea.product.manage.code")}},[t("a-input",{attrs:{placeholder:e.$t("components.netsea.product.manage.code.placeholder"),disabled:""},model:{value:a.product_id,callback:function(t){e.$set(a,"product_id",t)},expression:"netseaGoodInfo.product_id"}})],1),t("a-form-model-item",{attrs:{label:e.$t("components.netsea.product.sale.status")}},[t("a-radio-group",{model:{value:a.sales_status_code,callback:function(t){e.$set(a,"sales_status_code",t)},expression:"netseaGoodInfo.sales_status_code"}},[t("a-radio",{attrs:{value:"on_sale"}},[e._v(" "+e._s(e.$t("components.netsea.product.sale.on_sale"))+" ")]),t("a-radio",{attrs:{value:"end_of_sale"}},[e._v(" "+e._s(e.$t("components.netsea.product.sale.end_of_sale"))+" ")])],1)],1),t("a-form-model-item",{attrs:{label:e.$t("components.netsea.product.sale.method")}},[t("a-radio-group",{model:{value:a.sales_method_code,callback:function(t){e.$set(a,"sales_method_code",t)},expression:"netseaGoodInfo.sales_method_code"}},[t("a-radio",{attrs:{value:"normal"}},[e._v(" "+e._s(e.$t("components.netsea.product.sale.method.normal"))+" ")]),t("a-radio",{attrs:{value:"reserve"}},[e._v(" "+e._s(e.$t("components.netsea.product.sale.method.reserve"))+" ")]),t("a-radio",{attrs:{value:"payment_only"}},[e._v(" "+e._s(e.$t("components.netsea.product.sale.method.payment_only"))+" ")])],1)],1),t("a-form-model-item",{attrs:{label:e.$t("components.netsea.product.publish.date")}},[t("a-date-picker",{attrs:{"show-time":""},model:{value:a.publish_period_start,callback:function(t){e.$set(a,"publish_period_start",t)},expression:"netseaGoodInfo.publish_period_start"}}),t("a-date-picker",{attrs:{"show-time":""},model:{value:a.publish_period_end,callback:function(t){e.$set(a,"publish_period_end",t)},expression:"netseaGoodInfo.publish_period_end"}})],1),t("a-form-model-item",{attrs:{label:e.$t("components.netsea.product.price.closed.flag")}},[t("a-radio-group",{model:{value:a.price_closed_flag,callback:function(t){e.$set(a,"price_closed_flag",t)},expression:"netseaGoodInfo.price_closed_flag"}},[t("a-radio",{attrs:{value:!0}},[e._v(" "+e._s(e.$t("components.netsea.product.price.closed.flag.true"))+" ")]),t("a-radio",{attrs:{value:!1}},[e._v(" "+e._s(e.$t("components.netsea.product.price.closed.flag.false"))+" ")])],1)],1),t("a-form-model-item",{attrs:{label:e.$t("components.netsea.product.shipping.fee")}},[t("a-radio-group",{model:{value:a.product_ship_setting_code,callback:function(t){e.$set(a,"product_ship_setting_code",t)},expression:"netseaGoodInfo.product_ship_setting_code"}},[t("a-radio",{attrs:{value:"store"}},[e._v(" "+e._s(e.$t("components.netsea.product.shipping.fee.shop_setting"))+" ")]),t("a-radio",{attrs:{value:"product"}},[e._v(" "+e._s(e.$t("components.netsea.product.shipping.fee.product.one"))+" "),t("a-input",{staticStyle:{width:"200px"},model:{value:a.product_ship_fee,callback:function(t){e.$set(a,"product_ship_fee",t)},expression:"netseaGoodInfo.product_ship_fee"}})],1)],1)],1),t("a-form-model-item",{attrs:{label:e.$t("components.netsea.product.product.discount_code")}},[t("a-radio-group",{on:{change:function(t){return e.discountSwitch(o)}},model:{value:e.netProductDiscountCodeList[o],callback:function(t){e.$set(e.netProductDiscountCodeList,o,t)},expression:"netProductDiscountCodeList[good_id]"}},[t("a-radio",{attrs:{value:!1}},[e._v(" "+e._s(e.$t("components.netsea.product.product.discount_code.false"))+" ")]),t("a-radio",{attrs:{value:!0}},[e._v(" "+e._s(e.$t("components.netsea.product.product.discount_code.true"))+" "),e.netProductDiscountCodeList[o]?t("a-input-number",{staticStyle:{width:"100px"},model:{value:a.product_discount.product_discount_rate,callback:function(t){e.$set(a.product_discount,"product_discount_rate",t)},expression:"netseaGoodInfo.product_discount.product_discount_rate"}}):e._e(),e._v(" % "),e.netProductDiscountCodeList[o]?t("a-date-picker",{attrs:{format:"YYYY-MM-DD HH:00:00","show-time":""},model:{value:a.product_discount.product_discount_period_start,callback:function(t){e.$set(a.product_discount,"product_discount_period_start",t)},expression:"netseaGoodInfo.product_discount.product_discount_period_start"}}):e._e(),e.netProductDiscountCodeList[o]?t("a-date-picker",{attrs:{format:"YYYY-MM-DD HH:00:00","show-time":""},model:{value:a.product_discount.product_discount_period_end,callback:function(t){e.$set(a.product_discount,"product_discount_period_end",t)},expression:"netseaGoodInfo.product_discount.product_discount_period_end"}}):e._e()],1)],1)],1),t("a-form-model-item",{attrs:{label:e.$t("components.netsea.product.volume_discount"),help:e.$t("components.netsea.product.volume_discount.info")}},[t("a-radio-group",{model:{value:a.volume_discount_target_flag,callback:function(t){e.$set(a,"volume_discount_target_flag",t)},expression:"netseaGoodInfo.volume_discount_target_flag"}},[t("a-radio",{attrs:{value:!0}},[e._v(e._s(e.$t("components.netsea.product.volume_discount.true")))]),t("a-radio",{attrs:{value:!1}},[e._v(e._s(e.$t("components.netsea.product.volume_discount.false")))])],1)],1)],1):e._e(),"image"===e.formEditKey?t("div",[t("a-form-model-item",{attrs:{label:e.$t("components.netsea.product.image.license")}},[t("a-radio-group",{model:{value:a.image_repost_flag,callback:function(t){e.$set(a,"image_repost_flag",t)},expression:"netseaGoodInfo.image_repost_flag"}},[t("a-radio",{attrs:{value:!0}},[e._v(" "+e._s(e.$t("components.netsea.product.image.license.true"))+" ")]),t("a-radio",{attrs:{value:!1}},[e._v(" "+e._s(e.$t("components.netsea.product.image.license.false"))+" ")])],1)],1),t("a-form-model-item",{attrs:{label:e.$t("view.item.list.form.image_url"),help:e.$t("view.item.form.image.limit")}},[t("div",{staticStyle:{"margin-bottom":"10px"}},e._l(a.images,(function(a,n){return t("div",{directives:[{name:"show",rawName:"v-show",value:a.image_url,expression:"image.image_url"}],key:n,staticStyle:{"margin-bottom":"20px",width:"100px",height:"100px","margin-left":"10px",float:"left"}},[t("img",{staticStyle:{width:"100px",height:"100px"},attrs:{src:a.image_url}}),t("br"),e.imageSizeArr&&Object.keys(e.imageSizeArr)?t("div",{style:{textAlign:"center",color:e.imageSizeArr[a.image_no]>500?"#f00":"#000"}},[e._v(" "+e._s(e.imageSizeArr[a.image_no])+"K "),t("a-icon",{attrs:{type:"delete"},on:{click:function(t){return e.deleteImage(a.image_no,o)}}})],1):e._e()])})),0)])],1):e._e(),"description"===e.formEditKey?t("div",[t("a-form-model-item",{attrs:{label:e.$t("components.netsea.product.catchcopy"),help:e.$t("components.netsea.product.catchcopy.limit"),prop:"catchcopy"}},[t("a-input",{attrs:{placeholder:e.$t("components.netsea.product.catchcopy.placeholder"),id:"catchcopy"+o},model:{value:a.catchcopy,callback:function(t){e.$set(a,"catchcopy",t)},expression:"netseaGoodInfo.catchcopy"}})],1),t("a-form-model-item",{attrs:{label:e.$t("components.netsea.product.comment"),help:e.$t("components.netsea.product.comment.info"),prop:"comment"}},[t("a-textarea",{attrs:{id:"comment"+o},model:{value:a.comment,callback:function(t){e.$set(a,"comment",t)},expression:"netseaGoodInfo.comment"}})],1),t("a-form-model-item",{attrs:{label:e.$t("components.netsea.product.description"),help:e.$t("components.netsea.product.description.info"),prop:"description"}},[t("a-textarea",{attrs:{id:"description_for_consumer"+o},model:{value:a.description_for_consumer,callback:function(t){e.$set(a,"description_for_consumer",t)},expression:"netseaGoodInfo.description_for_consumer"}})],1),t("a-form-model-item",{attrs:{label:e.$t("components.netsea.product.size"),help:e.$t("components.netsea.product.size.info"),prop:"size"}},[t("a-textarea",{attrs:{id:"size"+o},model:{value:a.size,callback:function(t){e.$set(a,"size",t)},expression:"netseaGoodInfo.size"}})],1),t("a-form-model-item",{attrs:{label:e.$t("components.netsea.product.spec"),help:e.$t("components.netsea.product.spec.info"),prop:"spec"}},[t("a-textarea",{attrs:{id:"spec"+o},model:{value:a.spec,callback:function(t){e.$set(a,"spec",t)},expression:"netseaGoodInfo.spec"}})],1),t("a-form-model-item",{attrs:{label:e.$t("components.netsea.product.consumer"),help:e.$t("components.netsea.product.consumer.info"),prop:"spec_for_consumer"}},[t("a-textarea",{attrs:{id:"spec_for_consumer"+o},model:{value:a.spec_for_consumer,callback:function(t){e.$set(a,"spec_for_consumer",t)},expression:"netseaGoodInfo.spec_for_consumer"}})],1),t("a-form-model-item",{attrs:{label:e.$t("components.netsea.product.notes"),help:e.$t("components.netsea.product.notes.info"),prop:"notes"}},[t("a-textarea",{attrs:{id:"notes"+o},model:{value:a.notes,callback:function(t){e.$set(a,"notes",t)},expression:"netseaGoodInfo.notes"}})],1)],1):e._e(),"sku"===e.formEditKey?t("div",[t("a-form-model-item",{attrs:{label:e.$t("components.netsea.product.product_set")}},[t("a-table",{attrs:{columns:e.productSetColumns,"data-source":a.product_set,"row-key":function(e){return e.set_no},pagination:!1},scopedSlots:e._u([{key:"set_branch_code",fn:function(a,n){return t("span",{},[t("a-input",{staticStyle:{width:"100px"},attrs:{name:"set_branch_code"+o},model:{value:n.set_branch_code,callback:function(t){e.$set(n,"set_branch_code",t)},expression:"record.set_branch_code"}})],1)}},{key:"set_label",fn:function(a,n){return t("span",{},[t("a-input",{staticStyle:{width:"100px"},attrs:{name:"set_label"+o},model:{value:n.set_label,callback:function(t){e.$set(n,"set_label",t)},expression:"record.set_label"}})],1)}},{key:"set_reference_price",fn:function(a,n){return t("span",{},[t("a-input",{staticStyle:{width:"100px"},attrs:{name:"set_reference_price"+o},model:{value:n.set_reference_price,callback:function(t){e.$set(n,"set_reference_price",t)},expression:"record.set_reference_price"}})],1)}},{key:"set_price",fn:function(a,n){return t("span",{},[t("a-input",{staticStyle:{width:"100px"},attrs:{name:"set_price"+o},model:{value:n.set_price,callback:function(t){e.$set(n,"set_price",t)},expression:"record.set_price"}})],1)}},{key:"set_sku_number",fn:function(a,o){return t("span",{},[t("a-input",{staticStyle:{width:"100px"},attrs:{name:"set_sku_number"},model:{value:o.set_sku_number,callback:function(t){e.$set(o,"set_sku_number",t)},expression:"record.set_sku_number"}})],1)}},{key:"set_stock_number",fn:function(a,o){return t("span",{},[t("a-input",{staticStyle:{width:"100px"},attrs:{name:"set_stock_number"},model:{value:o.set_stock_number,callback:function(t){e.$set(o,"set_stock_number",t)},expression:"record.set_stock_number"}})],1)}}],null,!0)})],1)],1):e._e(),"other"===e.formEditKey?t("div",[t("a-form-model-item",{attrs:{label:e.$t("components.netsea.product.delivery_terms"),help:e.$t("components.netsea.product.delivery_terms.info"),prop:"delivery_terms"}},[t("a-textarea",{attrs:{id:"delivery_terms"+o},model:{value:a.delivery_terms,callback:function(t){e.$set(a,"delivery_terms",t)},expression:"netseaGoodInfo.delivery_terms"}})],1),t("a-form-model-item",{attrs:{label:e.$t("components.netsea.product.return_setting_code")}},[t("a-radio-group",{model:{value:a.return_setting_code,callback:function(t){e.$set(a,"return_setting_code",t)},expression:"netseaGoodInfo.return_setting_code"}},[t("a-radio",{attrs:{value:"allow"}},[e._v(e._s(e.$t("components.netsea.product.return_setting_code.allow")))]),t("a-radio",{attrs:{value:"deny"}},[e._v(e._s(e.$t("components.netsea.product.return_setting_code.deny")))]),t("a-radio",{attrs:{value:"negotiable"}},[e._v(e._s(e.$t("components.netsea.product.return_setting_code.negotiable")))]),t("a-radio",{attrs:{value:"none"}},[e._v(e._s(e.$t("components.netsea.product.return_setting_code.none")))])],1)],1),t("a-form-model-item",{attrs:{label:e.$t("components.netsea.product.search_tag"),help:e.$t("components.netsea.product.search_tag.info")}},e._l(a.search_tags,(function(a,n){return t("div",{key:n,staticStyle:{"margin-bottom":"10px"}},[e._v(" "+e._s(e.$t("components.netsea.product.search_tag"))+e._s(n+1)+": "),t("a-input",{staticStyle:{width:"200px"},attrs:{name:"search_tag_text"+o},model:{value:a.search_tag_text,callback:function(t){e.$set(a,"search_tag_text",t)},expression:"tag.search_tag_text"}})],1)})),0),t("a-form-model-item",{attrs:{label:e.$t("components.netsea.product.chartlet")}},[t("a-radio-group",{model:{value:a.stamp_id,callback:function(t){e.$set(a,"stamp_id",t)},expression:"netseaGoodInfo.stamp_id"}},[t("a-radio",{attrs:{value:0}},[e._v(e._s(e.$t("components.netsea.product.chartlet.0")))]),t("a-radio",{attrs:{value:1}},[e._v(e._s(e.$t("components.netsea.product.chartlet.1")))]),t("a-radio",{attrs:{value:3}},[e._v(e._s(e.$t("components.netsea.product.chartlet.3")))]),t("a-radio",{attrs:{value:4}},[e._v(e._s(e.$t("components.netsea.product.chartlet.4")))]),t("a-radio",{attrs:{value:5}},[e._v(e._s(e.$t("components.netsea.product.chartlet.5")))]),t("a-radio",{attrs:{value:6}},[e._v(e._s(e.$t("components.netsea.product.chartlet.6")))]),t("a-radio",{attrs:{value:7}},[e._v(e._s(e.$t("components.netsea.product.chartlet.7")))]),t("a-radio",{attrs:{value:8}},[e._v(e._s(e.$t("components.netsea.product.chartlet.8")))])],1)],1),t("a-form-model-item",{attrs:{label:e.$t("components.netsea.product.jan_code"),help:e.$t("components.netsea.product.jan_code.info"),prop:"jan_code"}},[t("a-input",{attrs:{id:"jan_code"+o},model:{value:a.jan_code,callback:function(t){e.$set(a,"jan_code",t)},expression:"netseaGoodInfo.jan_code"}})],1),t("a-form-model-item",{attrs:{label:e.$t("components.netsea.product.maker_code"),help:e.$t("components.netsea.product.maker_code.info"),prop:"maker_code"}},[t("a-input",{attrs:{id:"maker_code"+o},model:{value:a.maker_code,callback:function(t){e.$set(a,"maker_code",t)},expression:"netseaGoodInfo.maker_code"}})],1),t("a-form-model-item",{attrs:{label:e.$t("components.netsea.product.reference_price")}},[t("a-select",{model:{value:a.reference_price_type_code,callback:function(t){e.$set(a,"reference_price_type_code",t)},expression:"netseaGoodInfo.reference_price_type_code"}},[t("a-select-option",{attrs:{value:"open_price"}},[e._v(" "+e._s(e.$t("components.netsea.product.reference_price.open_price"))+" ")]),t("a-select-option",{attrs:{value:"maker_price"}},[e._v(" "+e._s(e.$t("components.netsea.product.reference_price.maker_price"))+" ")]),t("a-select-option",{attrs:{value:"catalog_price"}},[e._v(" "+e._s(e.$t("components.netsea.product.reference_price.catalog_price"))+" ")]),t("a-select-option",{attrs:{value:"setting_price"}},[e._v(" "+e._s(e.$t("components.netsea.product.reference_price.setting_price"))+" ")])],1)],1),t("a-form-model-item",{attrs:{label:e.$t("components.netsea.product.tax_rate")}},[t("a-radio-group",{model:{value:a.consumption_tax_type_code,callback:function(t){e.$set(a,"consumption_tax_type_code",t)},expression:"netseaGoodInfo.consumption_tax_type_code"}},[t("a-radio",{attrs:{value:"normal"}},[e._v(e._s(e.$t("components.netsea.product.tax_rate.normal")))]),t("a-radio",{attrs:{value:"reduced"}},[e._v(e._s(e.$t("components.netsea.product.tax_rate.reduced")))]),t("a-radio",{attrs:{value:"none"}},[e._v(e._s(e.$t("components.netsea.product.tax_rate.none")))])],1)],1)],1):e._e()])],1)])],1)],1)})),t("div",[e.plDataFields[e.formEditKey]?t("div",[e._v(e._s(e.$t("view.item.form.pl.params.label")))]):e._e(),t("a-form-model",e._b({ref:"TemplateDataForm",attrs:{model:e.TemplateData,rules:e.netseaGoodInfoRules}},"a-form-model",{labelCol:{span:3},wrapperCol:{span:20}},!1),["description"===e.formEditKey?t("div",[t("a-form-model-item",{attrs:{label:e.$t("components.netsea.product.catchcopy"),help:e.$t("components.netsea.product.catchcopy.limit"),prop:"catchcopy"}},[t("a-input",{attrs:{placeholder:e.$t("components.netsea.product.catchcopy.placeholder")},model:{value:e.TemplateData.catchcopy,callback:function(t){e.$set(e.TemplateData,"catchcopy",t)},expression:"TemplateData.catchcopy"}})],1),t("a-form-model-item",{attrs:{label:e.$t("components.netsea.product.comment"),help:e.$t("components.netsea.product.comment.info"),prop:"comment"}},[t("a-textarea",{attrs:{id:"comment"},model:{value:e.TemplateData.comment,callback:function(t){e.$set(e.TemplateData,"comment",t)},expression:"TemplateData.comment"}})],1),t("a-form-model-item",{attrs:{label:e.$t("components.netsea.product.description"),help:e.$t("components.netsea.product.description.info"),prop:"description"}},[t("a-textarea",{attrs:{id:"description_for_consumer"},model:{value:e.TemplateData.description_for_consumer,callback:function(t){e.$set(e.TemplateData,"description_for_consumer",t)},expression:"TemplateData.description_for_consumer"}})],1),t("a-form-model-item",{attrs:{label:e.$t("components.netsea.product.size"),help:e.$t("components.netsea.product.size.info"),prop:"size"}},[t("a-textarea",{attrs:{id:"size"},model:{value:e.TemplateData.size,callback:function(t){e.$set(e.TemplateData,"size",t)},expression:"TemplateData.size"}})],1),t("a-form-model-item",{attrs:{label:e.$t("components.netsea.product.spec"),help:e.$t("components.netsea.product.spec.info"),prop:"spec"}},[t("a-textarea",{attrs:{id:"spec"},model:{value:e.TemplateData.spec,callback:function(t){e.$set(e.TemplateData,"spec",t)},expression:"TemplateData.spec"}})],1),t("a-form-model-item",{attrs:{label:e.$t("components.netsea.product.consumer"),help:e.$t("components.netsea.product.consumer.info"),prop:"spec_for_consumer"}},[t("a-textarea",{attrs:{id:"spec_for_consumer"},model:{value:e.TemplateData.spec_for_consumer,callback:function(t){e.$set(e.TemplateData,"spec_for_consumer",t)},expression:"TemplateData.spec_for_consumer"}})],1),t("a-form-model-item",{attrs:{label:e.$t("components.netsea.product.notes"),help:e.$t("components.netsea.product.notes.info"),prop:"notes"}},[t("a-textarea",{attrs:{id:"notes"},model:{value:e.TemplateData.notes,callback:function(t){e.$set(e.TemplateData,"notes",t)},expression:"TemplateData.notes"}})],1)],1):e._e(),"itemInfo"===e.formEditKey?t("div",[t("a-form-model-item",{attrs:{label:e.$t("components.netsea.product.sale.status")}},[t("a-radio-group",{model:{value:e.TemplateData.sales_status_code,callback:function(t){e.$set(e.TemplateData,"sales_status_code",t)},expression:"TemplateData.sales_status_code"}},[t("a-radio",{attrs:{value:"on_sale"}},[e._v(" "+e._s(e.$t("components.netsea.product.sale.on_sale"))+" ")]),t("a-radio",{attrs:{value:"end_of_sale"}},[e._v(" "+e._s(e.$t("components.netsea.product.sale.end_of_sale"))+" ")])],1)],1),t("a-form-model-item",{attrs:{label:e.$t("components.netsea.product.sale.method")}},[t("a-radio-group",{model:{value:e.TemplateData.sales_method_code,callback:function(t){e.$set(e.TemplateData,"sales_method_code",t)},expression:"TemplateData.sales_method_code"}},[t("a-radio",{attrs:{value:"normal"}},[e._v(" "+e._s(e.$t("components.netsea.product.sale.method.normal"))+" ")]),t("a-radio",{attrs:{value:"reserve"}},[e._v(" "+e._s(e.$t("components.netsea.product.sale.method.reserve"))+" ")]),t("a-radio",{attrs:{value:"payment_only"}},[e._v(" "+e._s(e.$t("components.netsea.product.sale.method.payment_only"))+" ")])],1)],1),t("a-form-model-item",{attrs:{label:e.$t("components.netsea.product.publish.date")}},[t("a-date-picker",{attrs:{"show-time":""},model:{value:e.TemplateData.publish_period_start,callback:function(t){e.$set(e.TemplateData,"publish_period_start",t)},expression:"TemplateData.publish_period_start"}}),t("a-date-picker",{attrs:{"show-time":""},model:{value:e.TemplateData.publish_period_end,callback:function(t){e.$set(e.TemplateData,"publish_period_end",t)},expression:"TemplateData.publish_period_end"}})],1),t("a-form-model-item",{attrs:{label:e.$t("components.netsea.product.price.closed.flag")}},[t("a-radio-group",{model:{value:e.TemplateData.price_closed_flag,callback:function(t){e.$set(e.TemplateData,"price_closed_flag",t)},expression:"TemplateData.price_closed_flag"}},[t("a-radio",{attrs:{value:!0}},[e._v(" "+e._s(e.$t("components.netsea.product.price.closed.flag.true"))+" ")]),t("a-radio",{attrs:{value:!1}},[e._v(" "+e._s(e.$t("components.netsea.product.price.closed.flag.false"))+" ")])],1)],1),t("a-form-model-item",{attrs:{label:e.$t("components.netsea.product.shipping.fee")}},[t("a-radio-group",{model:{value:e.TemplateData.product_ship_setting_code,callback:function(t){e.$set(e.TemplateData,"product_ship_setting_code",t)},expression:"TemplateData.product_ship_setting_code"}},[t("a-radio",{attrs:{value:"store"}},[e._v(" "+e._s(e.$t("components.netsea.product.shipping.fee.shop_setting"))+" ")]),t("a-radio",{attrs:{value:"product"}},[e._v(" "+e._s(e.$t("components.netsea.product.shipping.fee.product.one"))+" "),t("a-input",{staticStyle:{width:"200px"},model:{value:e.TemplateData.product_ship_fee,callback:function(t){e.$set(e.TemplateData,"product_ship_fee",t)},expression:"TemplateData.product_ship_fee"}})],1)],1)],1),t("a-form-model-item",{attrs:{label:e.$t("components.netsea.product.product.discount_code")}},[t("a-radio-group",{model:{value:e.TemplateData.netProductDiscountCode,callback:function(t){e.$set(e.TemplateData,"netProductDiscountCode",t)},expression:"TemplateData.netProductDiscountCode"}},[t("a-radio",{attrs:{value:!1}},[e._v(" "+e._s(e.$t("components.netsea.product.product.discount_code.false"))+" ")]),t("a-radio",{attrs:{value:!0}},[e._v(" "+e._s(e.$t("components.netsea.product.product.discount_code.true"))+" "),e.TemplateData.netProductDiscountCode?t("a-input-number",{staticStyle:{width:"100px"},model:{value:e.TemplateData.product_discount.product_discount_rate,callback:function(t){e.$set(e.TemplateData.product_discount,"product_discount_rate",t)},expression:"TemplateData.product_discount.product_discount_rate"}}):e._e(),e._v(" % "),e.TemplateData.netProductDiscountCode?t("a-date-picker",{attrs:{format:"YYYY-MM-DD HH:00:00","show-time":""},model:{value:e.TemplateData.product_discount.product_discount_period_start,callback:function(t){e.$set(e.TemplateData.product_discount,"product_discount_period_start",t)},expression:"TemplateData.product_discount.product_discount_period_start"}}):e._e(),e.TemplateData.netProductDiscountCode?t("a-date-picker",{attrs:{format:"YYYY-MM-DD HH:00:00","show-time":""},model:{value:e.TemplateData.product_discount.product_discount_period_end,callback:function(t){e.$set(e.TemplateData.product_discount,"product_discount_period_end",t)},expression:"TemplateData.product_discount.product_discount_period_end"}}):e._e()],1)],1)],1),t("a-form-model-item",{attrs:{label:e.$t("components.netsea.product.volume_discount"),help:e.$t("components.netsea.product.volume_discount.info")}},[t("a-radio-group",{model:{value:e.TemplateData.volume_discount_target_flag,callback:function(t){e.$set(e.TemplateData,"volume_discount_target_flag",t)},expression:"TemplateData.volume_discount_target_flag"}},[t("a-radio",{attrs:{value:!0}},[e._v(e._s(e.$t("components.netsea.product.volume_discount.true")))]),t("a-radio",{attrs:{value:!1}},[e._v(e._s(e.$t("components.netsea.product.volume_discount.false")))])],1)],1)],1):e._e(),"other"===e.formEditKey?t("div",[t("a-form-model-item",{attrs:{label:e.$t("components.netsea.product.delivery_terms"),help:e.$t("components.netsea.product.delivery_terms.info"),prop:"delivery_terms"}},[t("a-textarea",{attrs:{id:"delivery_terms"},model:{value:e.TemplateData.delivery_terms,callback:function(t){e.$set(e.TemplateData,"delivery_terms",t)},expression:"TemplateData.delivery_terms"}})],1),t("a-form-model-item",{attrs:{label:e.$t("components.netsea.product.return_setting_code")}},[t("a-radio-group",{model:{value:e.TemplateData.return_setting_code,callback:function(t){e.$set(e.TemplateData,"return_setting_code",t)},expression:"TemplateData.return_setting_code"}},[t("a-radio",{attrs:{value:"allow"}},[e._v(e._s(e.$t("components.netsea.product.return_setting_code.allow")))]),t("a-radio",{attrs:{value:"deny"}},[e._v(e._s(e.$t("components.netsea.product.return_setting_code.deny")))]),t("a-radio",{attrs:{value:"negotiable"}},[e._v(e._s(e.$t("components.netsea.product.return_setting_code.negotiable")))]),t("a-radio",{attrs:{value:"none"}},[e._v(e._s(e.$t("components.netsea.product.return_setting_code.none")))])],1)],1),t("a-form-model-item",{attrs:{label:e.$t("components.netsea.product.search_tag"),help:e.$t("components.netsea.product.search_tag.info")}},e._l(e.TemplateData.search_tags,(function(a,o){return t("div",{key:o,staticStyle:{"margin-bottom":"10px"}},[e._v(" "+e._s(e.$t("components.netsea.product.search_tag"))+e._s(o+1)+": "),t("a-input",{staticStyle:{width:"200px"},attrs:{name:"search_tag_text"},model:{value:a.search_tag_text,callback:function(t){e.$set(a,"search_tag_text",t)},expression:"tag.search_tag_text"}})],1)})),0),t("a-form-model-item",{attrs:{label:e.$t("components.netsea.product.chartlet")}},[t("a-radio-group",{model:{value:e.TemplateData.stamp_id,callback:function(t){e.$set(e.TemplateData,"stamp_id",t)},expression:"TemplateData.stamp_id"}},[t("a-radio",{attrs:{value:0}},[e._v(e._s(e.$t("components.netsea.product.chartlet.0")))]),t("a-radio",{attrs:{value:1}},[e._v(e._s(e.$t("components.netsea.product.chartlet.1")))]),t("a-radio",{attrs:{value:3}},[e._v(e._s(e.$t("components.netsea.product.chartlet.3")))]),t("a-radio",{attrs:{value:4}},[e._v(e._s(e.$t("components.netsea.product.chartlet.4")))]),t("a-radio",{attrs:{value:5}},[e._v(e._s(e.$t("components.netsea.product.chartlet.5")))]),t("a-radio",{attrs:{value:6}},[e._v(e._s(e.$t("components.netsea.product.chartlet.6")))]),t("a-radio",{attrs:{value:7}},[e._v(e._s(e.$t("components.netsea.product.chartlet.7")))]),t("a-radio",{attrs:{value:8}},[e._v(e._s(e.$t("components.netsea.product.chartlet.8")))])],1)],1),t("a-form-model-item",{attrs:{label:e.$t("components.netsea.product.jan_code"),help:e.$t("components.netsea.product.jan_code.info"),prop:"jan_code"}},[t("a-input",{attrs:{id:"jan_code"},model:{value:e.TemplateData.jan_code,callback:function(t){e.$set(e.TemplateData,"jan_code",t)},expression:"TemplateData.jan_code"}})],1),t("a-form-model-item",{attrs:{label:e.$t("components.netsea.product.maker_code"),help:e.$t("components.netsea.product.maker_code.info"),prop:"maker_code"}},[t("a-input",{attrs:{id:"maker_code"},model:{value:e.TemplateData.maker_code,callback:function(t){e.$set(e.TemplateData,"maker_code",t)},expression:"TemplateData.maker_code"}})],1),t("a-form-model-item",{attrs:{label:e.$t("components.netsea.product.reference_price")}},[t("a-select",{model:{value:e.TemplateData.reference_price_type_code,callback:function(t){e.$set(e.TemplateData,"reference_price_type_code",t)},expression:"TemplateData.reference_price_type_code"}},[t("a-select-option",{attrs:{value:"open_price"}},[e._v(" "+e._s(e.$t("components.netsea.product.reference_price.open_price"))+" ")]),t("a-select-option",{attrs:{value:"maker_price"}},[e._v(" "+e._s(e.$t("components.netsea.product.reference_price.maker_price"))+" ")]),t("a-select-option",{attrs:{value:"catalog_price"}},[e._v(" "+e._s(e.$t("components.netsea.product.reference_price.catalog_price"))+" ")]),t("a-select-option",{attrs:{value:"setting_price"}},[e._v(" "+e._s(e.$t("components.netsea.product.reference_price.setting_price"))+" ")])],1)],1),t("a-form-model-item",{attrs:{label:e.$t("components.netsea.product.tax_rate")}},[t("a-radio-group",{model:{value:e.TemplateData.consumption_tax_type_code,callback:function(t){e.$set(e.TemplateData,"consumption_tax_type_code",t)},expression:"TemplateData.consumption_tax_type_code"}},[t("a-radio",{attrs:{value:"normal"}},[e._v(e._s(e.$t("components.netsea.product.tax_rate.normal")))]),t("a-radio",{attrs:{value:"reduced"}},[e._v(e._s(e.$t("components.netsea.product.tax_rate.reduced")))]),t("a-radio",{attrs:{value:"none"}},[e._v(e._s(e.$t("components.netsea.product.tax_rate.none")))])],1)],1)],1):e._e(),t("div",{staticStyle:{"margin-bottom":"1rem"}},[t("a-button",{on:{click:function(t){return e.piCopyData(e.formEditKey)}}},[e._v(e._s(e.$t("view.item.form.pl.params.save")))])],1)])],1)],2)],1)],1)]),t("div",{attrs:{slot:"footer"},slot:"footer"},[t("a-button",{on:{click:e.cancelModal}},[e._v(e._s(e.$t("components.imagetext.translation.confirm.cancel")))]),t("a-button",{attrs:{type:"primary",loading:e.confirmNSLoading},on:{click:e.okNetSeaGoodInfo}},[e._v(e._s(e.$t("view.item.form.pl.save.button")))]),t("a-button",{attrs:{type:"success",loading:e.confirmNSLoading},on:{click:e.okFabu}},[e._v(e._s(e.$t("view.item.form.pl.fabu.button")))])],1)]):e._e()],1)},n=[],s=a("5530"),r=a("c7eb"),i=a("1da1"),c=(a("d3b7"),a("3ca3"),a("ddb0"),a("25f0"),a("b680"),a("d81d"),a("fb6a"),a("159b"),a("7db0"),a("a026")),d=a("c1df"),l=a.n(d),u=a("8caa"),m=Object(c["b"])((function(){return Promise.resolve().then(a.bind(null,"2dd7"))})),p=Object(c["b"])((function(){return a.e("chunk-ade7a3ac").then(a.bind(null,"16f2"))})),_=Object(c["b"])((function(){return a.e("chunk-286b8764").then(a.bind(null,"12b1"))})),g=Object(c["b"])((function(){return a.e("chunk-ade7a3ac").then(a.bind(null,"5f19"))})),f={name:"rakutenAddProduct",props:{goodsIds:{type:Array,default:function(){return[]}}},data:function(){return{formTitle:this.$t("components.dyProduct.dyProduct.title"),formEditKey:"title",open:!1,modalWidth:"1350",modalHeight:"680",goodList:[],netseaGoodInfoList:{},netseaShop:null,imageSizeArr:{},netProductDiscountCodeList:{},netseaGenereArray:{},netseaGoodInfoRules:{product_name:[{required:!0,message:this.$t("view.item.list.form.placeholder.title"),trigger:"blur"},{max:50,message:this.$t("view.item.form.item_name.maxlength"),trigger:"change"}],catchcopy:[{max:50,message:this.$t("view.item.form.catchcopy.maxlength"),trigger:"change"}],comment:[{max:1e3,message:this.$t("view.item.form.comment.maxlength"),trigger:"change"}],description:[{max:5e3,message:this.$t("view.item.form.description_for_consumer.maxlength"),trigger:"change"}],size:[{max:1e3,message:this.$t("view.item.form.size.maxlength"),trigger:"change"}],spec:[{max:1e3,message:this.$t("view.item.form.spec.maxlength"),trigger:"change"}],spec_for_consumer:[{max:5e3,message:this.$t("view.item.form.spec_for_consumer.maxlength"),trigger:"change"}],notes:[{max:1e3,message:this.$t("view.item.form.notes.maxlength"),trigger:"change"}],delivery_terms:[{max:50,message:this.$t("view.item.form.delivery_terms.maxlength"),trigger:"change"}],jan_code:[{max:13,message:this.$t("view.item.form.jan_code.maxlength"),trigger:"change"}],maker_code:[{max:30,message:this.$t("view.item.form.maker_code.maxlength"),trigger:"change"}]},categoryHierarchyList:{},firstCatId:{},secondCatId:{},thirdCatId:{},productSetColumns:[{title:this.$t("components.netsea.product.product_set.set_no"),dataIndex:"set_no",key:"set_no"},{title:this.$t("components.netsea.product.set_branch_code"),dataIndex:"set_branch_code",key:"set_branch_code",scopedSlots:{customRender:"set_branch_code"}},{title:this.$t("components.netsea.product.product_set.set_label"),dataIndex:"set_label",key:"set_label",scopedSlots:{customRender:"set_label"}},{title:this.$t("components.netsea.product.product_set.set_reference_price"),dataIndex:"set_reference_price",key:"set_reference_price",scopedSlots:{customRender:"set_reference_price"}},{title:this.$t("components.netsea.product.product_set.set_price"),dataIndex:"set_price",key:"set_price",scopedSlots:{customRender:"set_price"}},{title:this.$t("components.netsea.product.product_set.set_sku_number"),dataIndex:"set_sku_number",key:"set_sku_number",scopedSlots:{customRender:"set_sku_number"}},{title:this.$t("components.netsea.product.product_set.set_stock_number"),dataIndex:"set_stock_number",key:"set_stock_number",scopedSlots:{customRender:"set_stock_number"}}],confirmNSLoading:!1,plDataFields:{description:["catchcopy","comment","description_for_consumer","size","spec","spec_for_consumer","notes"],itemInfo:["sales_status_code","sales_method_code","publish_period_start","publish_period_end","product_ship_setting_code","product_ship_fee"],other:["delivery_terms","return_setting_code","search_tags","stamp_id","jan_code","maker_code","reference_price_type_code","consumption_tax_type_code"]},TemplateData:{product_discount:{product_discount_rate:"",product_discount_period_start:"",product_discount_period_end:""},search_tags:[{search_tag_no:1,search_tag_text:""},{search_tag_no:2,search_tag_text:""},{search_tag_no:3,search_tag_text:""},{search_tag_no:4,search_tag_text:""},{search_tag_no:5,search_tag_text:""}]},plActicty:[]}},methods:{changeLeftTab:function(e){this.formEditKey=e},cancelModal:function(){this.open=!1},openModal:function(){this.modalHeight=(.9*window.innerHeight).toFixed(0).toString(),this.modalWidth=(.8*window.innerWidth).toFixed(0).toString(),this.open=!0},initLoad:function(e){e&&(this.netseaGoodInfoList={},this.netseaShop=e,this.openModal())},initNetsea:function(e){var t=this;Promise.all(this._.map(e,(function(e,a){return t.netseaPublication(e)}))).then((function(e){t.$message.destroy()}))},netseaPublication:function(e,t){var a=this,o=this,n={};return n.good_id=e.good_id,n.app_key=this.netseaShop.app_key,o.netseaGenereArray[e.good_id]={netseaGenereList:[],netseaGenereList1:[],netseaGenereList2:[]},Object(u["d"])(n).then((function(t){if(0===t.code){o.netseaGoodInfoList[e.good_id]=t.product_info,o.getParentCategory(o.netseaGoodInfoList[e.good_id].category_id,e.good_id),o.imageSizeArr={};var n=[];return o.netseaGoodInfoList[e.good_id].images&&o.netseaGoodInfoList[e.good_id].images.map((function(e){e.image_url&&n.push(o.getImageSizeInKB(e.image_url).then((function(t){return o.imageSizeArr[e.image_no]=t.toFixed(2),t})))})),Promise.all(n).then((function(){o.imageSizeArr=Object.assign({},o.imageSizeArr)})),o.netseaGoodInfoList[e.good_id].publish_period_start&&(o.netseaGoodInfoList[e.good_id].publish_period_start=new Date(1e3*o.netseaGoodInfoList[e.good_id].publish_period_start).toISOString().slice(0,19)),o.netseaGoodInfoList[e.good_id].publish_period_end&&(o.netseaGoodInfoList[e.good_id].publish_period_end=new Date(1e3*o.netseaGoodInfoList[e.good_id].publish_period_end).toISOString().slice(0,19)),o.netseaGoodInfoList[e.good_id].product_discout?(o.netProductDiscountCodeList[e.good_id]=!0,o.netseaGoodInfoList[e.good_id].product_discount.product_discount_period_start=o.netseaGoodInfoList[e.good_id].product_discount.product_discount_period_start?new Date(1e3*o.netseaGoodInfoList[e.good_id].product_discount.product_discount_period_start).toISOString().slice(0,19):"",o.netseaGoodInfoList[e.good_id].product_discount.product_discount_period_end=o.netseaGoodInfoList[e.good_id].product_discount.product_discount_period_end?new Date(1e3*o.netseaGoodInfoList[e.good_id].product_discount.product_discount_period_end).toISOString().slice(0,19):""):(o.netProductDiscountCodeList[e.good_id]=!1,o.netseaGoodInfoList[e.good_id].product_discount={product_discount_rate:"",product_discount_period_start:"",product_discount_period_end:""}),o.app_key=a.netseaShop.app_key,o.getNetSeaGenere(0,0,e.good_id),o.$set(a,"netseaGoodInfoList",Object.assign({},o.netseaGoodInfoList)),a.netseaShop.loading=!1,t}}))},getParentCategory:function(e,t){var a=this,o=this;this.categoryHierarchyList[t]||(this.categoryHierarchyList[t]={level1:{},level2:{},level3:{}}),Object(u["b"])({cat_id:e}).then((function(e){0===e.code&&(e.data.forEach((function(o){if(0===o.p_cat_id)a.categoryHierarchyList[t].level1=o;else{var n=e.data.find((function(e){return e.cat_id===o.p_cat_id}));n&&0===n.p_cat_id?a.categoryHierarchyList[t].level2=o:a.categoryHierarchyList[t].level3=o}})),a.firstCatId[t]=a.categoryHierarchyList[t].level1.cat_id,a.secondCatId[t]=a.categoryHierarchyList[t].level2.cat_id,o.getNetSeaGenere(a.firstCatId[t],1,t),a.thirdCatId[t]=a.categoryHierarchyList[t].level3.cat_id,o.getNetSeaGenere(a.secondCatId[t],2,t),a.$set(a,"categoryHierarchyList",Object.assign({},a.categoryHierarchyList)),a.$set(a,"firstCatId",Object.assign({},a.firstCatId)),a.$set(a,"secondCatId",Object.assign({},a.secondCatId)),a.$set(a,"thirdCatId",Object.assign({},a.thirdCatId)))}))},getNetSeaGenere:function(e,t,a){var o=this,n=this,s={};return s.cat_id=e,Object(u["a"])(s).then((function(e){if(0===e.code)switch(t){case 0:n.netseaGenereArray[a].netseaGenereList=e.data;break;case 1:n.netseaGenereArray[a].netseaGenereList1=e.data;break;case 2:n.netseaGenereArray[a].netseaGenereList2=e.data;break}return o.$set(o,"netseaGenereArray",Object.assign({},o.netseaGenereArray)),e}))},selectNetSeaGenre:function(e,t,a){var o=this,n={};switch(t){case 0:o.netseaGenereArray[a].netseaGenereList1=[],o.netseaGenereArray[a].netseaGenereList2=[],o.netseaGenereArray[a].netseaGenereList3=[],o.secondCatId[a]=0,o.thirdCatId[a]=0,n=o.netseaGenereArray[a].netseaGenereList.find((function(t){return t.cat_id===e}));break;case 1:o.netseaGenereArray[a].netseaGenereList2=[],o.netseaGenereArray[a].netseaGenereList3=[],o.thirdCatId[a]=0,n=o.netseaGenereArray[a].netseaGenereList1.find((function(t){return t.cat_id===e}));break;case 2:o.netseaGenereArray[a].netseaGenereList3=[],n=o.netseaGenereArray[a].netseaGenereList2.find((function(t){return t.cat_id===e}));break}n&&(0===n.p_cat_id?o.getNetSeaGenere(n.cat_id,1,a).then((function(e){o.netseaGenereArray[a].netseaGenereList&&(o.secondCatId[a]=o.netseaGenereArray[a].netseaGenereList1[0].cat_id,o.getNetSeaGenere(o.secondCatId[a],2,a).then((function(e){o.netseaGenereArray[a].netseaGenereList1&&(o.thirdCatId[a]=o.netseaGenereArray[a].netseaGenereList2[0].cat_id,o.netseaGoodInfoList[a].category_id=o.thirdCatId[a])})))})):n.p_cat_id===o.firstCatId[a]?o.getNetSeaGenere(n.cat_id,2,a).then((function(e){o.netseaGenereArray[a].netseaGenereList2&&(o.thirdCatId[a]=o.netseaGenereArray[a].netseaGenereList2[0].cat_id,o.netseaGoodInfoList[a].category_id=o.thirdCatId[a])})):n.p_cat_id===o.secondCatId[a]&&(o.thirdCatId[a]=n.cat_id,o.secondCatId[a]&&(o.netseaGoodInfoList[a].category_id=o.thirdCatId[a])))},discountSwitch:function(e){this.$set(this,"netProductDiscountCodeList",Object.assign({},this.netProductDiscountCodeList))},getImageSizeInKB:function(e){return Object(i["a"])(Object(r["a"])().mark((function t(){return Object(r["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.prev=0,t.abrupt("return",Object(u["c"])({url:e}).then((function(e){if(e.volume)return e.volume})));case 4:t.prev=4,t.t0=t["catch"](0);case 6:case"end":return t.stop()}}),t,null,[[0,4]])})))()},okNetSeaGoodInfo:function(){var e=this,t=this;t.confirmNSLoading=!0;var a=[];this.goodsIds.map((function(e,o){t.$refs["netseaGoodInfoForm"+e]&&t.$refs["netseaGoodInfoForm"+e][0]&&a.push(new Promise((function(a,o){try{t.$refs["netseaGoodInfoForm"+e][0].validate((function(n,s){n?a("success"):Object.keys(s)&&Object.keys(s)[0]&&o(new Error(t.$t("view.item.list.good_id")+e+s[Object.keys(s)[0]][0].message))}))}catch(n){o(new Error(n))}})))})),Promise.all(a).then((function(a){var o=[],n=e._.map(e.netseaGoodInfoList,(function(a,n){var s={};if(s.data=JSON.parse(JSON.stringify(a)),a.publish_period_start&&(s.data.publish_period_start=new Date(l()(s.data.publish_period_start).format("YYYY-MM-DD HH:mm:ss")).getTime()/1e3),a.publish_period_end&&(s.data.publish_period_end=new Date(l()(s.data.publish_period_end).format("YYYY-MM-DD HH:mm:ss")).getTime()/1e3),t.netProductDiscountCodeList[n]){if(!s.data.product_discount.product_discount_rate)return t.$message.error(t.$t("view.item.form.product_discount_rate.notnull")),"itemInfo";try{s.data.product_discount.product_discount_period_start=new Date(l()(s.data.product_discout.product_discount_period_start).format("YYYY-MM-DD HH:00:00")).getTime()/1e3,s.data.product_discount.product_discount_period_end=new Date(l()(s.data.product_discout.product_discount_period_end).format("YYYY-MM-DD HH:00:00")).getTime()/1e3}catch(c){}}else delete s.data.product_discount;if(s.data.good_id=n,!s.data.product_name)return t.$message.error(t.$t("view.item.form.item_name.notnull")),t.confirmNSLoading=!1,"title";if(!e.isWithinMaxLength(s.data.product_name,50))return t.$message.error(t.$t("view.item.form.item_name.maxlength")),document.getElementById("product_name"+n)&&document.getElementById("product_name"+n).focus(),t.confirmNSLoading=!1,"title";if(s.data.catchcopy&&!e.isWithinMaxLength(s.data.catchcopy,50))return t.$message.error(t.$t("view.item.form.catchcopy.maxlength")),document.getElementById("catchcopy"+n)&&document.getElementById("catchcopy"+n).focus(),t.confirmNSLoading=!1,"category";if(s.data.comment&&!e.isWithinMaxLength(s.data.comment,1e3))return t.$message.error(t.$t("view.item.form.comment.maxlength")),document.getElementById("comment"+n)&&document.getElementById("comment"+n).focus(),t.confirmNSLoading=!1,"description";if(s.data.description_for_consumer&&!e.isWithinMaxLength(s.data.description_for_consumer,5e3))return t.$message.error(t.$t("view.item.form.description_for_consumer.maxlength")),document.getElementById("description_for_consumer"+n)&&document.getElementById("description_for_consumer"+n).focus(),t.confirmNSLoading=!1,"description";if(s.data.size&&!e.isWithinMaxLength(s.data.size,1e3))return t.$message.error(t.$t("view.item.form.size.maxlength")),document.getElementById("size"+n)&&document.getElementById("size"+n).focus(),t.confirmNSLoading=!1,"description";if(s.data.spec&&!e.isWithinMaxLength(s.data.spec,1e3))return t.$message.error(t.$t("view.item.form.spec.maxlength")),document.getElementById("spec"+n)&&document.getElementById("spec"+n).focus(),t.confirmNSLoading=!1,"description";if(s.data.spec_for_consumer&&!e.isWithinMaxLength(s.data.spec_for_consumer,5e3))return t.$message.error(t.$t("view.item.form.spec_for_consumer.maxlength")),document.getElementById("spec_for_consumer"+n)&&document.getElementById("spec_for_consumer"+n).focus(),t.confirmNSLoading=!1,"description";if(s.data.notes&&!e.isWithinMaxLength(s.data.notes,5e3))return t.$message.error(t.$t("view.item.form.notes.maxlength")),document.getElementById("notes"+n)&&document.getElementById("notes"+n).focus(),t.confirmNSLoading=!1,"description";if(s.data.delivery_terms&&!e.isWithinMaxLength(s.data.delivery_terms,50))return t.$message.error(t.$t("view.item.form.delivery_terms.maxlength")),document.getElementById("delivery_terms"+n)&&document.getElementById("delivery_terms"+n).focus(),t.confirmNSLoading=!1,"other";if(s.data.search_tags.length>0)for(var r=0;r<s.data.search_tags.length;r++)if(!e.isWithinMaxLength(s.data.search_tags[r].search_tag_text,10))return t.$message.error(t.$t("view.item.form.search_tags.maxlength")),document.getElementsByName("search_tag_text"+n)[r]&&document.getElementsByName("search_tag_text"+n)[r].focus(),t.confirmNSLoading=!1,"other";if(s.data.jan_code&&!e.isWithinMaxLength(s.data.jan_code,13))return t.$message.error(t.$t("view.item.form.jan_code.maxlength")),document.getElementById("jan_code"+n)&&document.getElementById("jan_code"+n).focus(),t.confirmNSLoading=!1,"other";if(s.data.maker_code&&!e.isWithinMaxLength(s.data.maker_code,30))return t.$message.error(t.$t("view.item.form.maker_code.maxlength")),document.getElementById("maker_code"+n)&&document.getElementById("maker_code"+n).focus(),t.confirmNSLoading=!1,"other";if(s.data.product_set.length>0)for(var i=0;i<s.data.product_set.length;i++){if(!e.isWithinMaxLength(s.data.product_set[i].set_branch_code,20))return t.$message.error(t.$t("view.item.form.set_branch_code.maxlength")),document.getElementsByName("set_branch_code"+n)[i]&&document.getElementsByName("set_branch_code"+n)[i].focus(),t.confirmNSLoading=!1,"sku";if(!e.isWithinMaxLength(s.data.product_set[i].set_label,30))return t.$message.error(t.$t("view.item.form.set_label.maxlength")),document.getElementsByName("set_label"+n)[i]&&document.getElementsByName("set_label"+n)[i].focus(),t.confirmNSLoading=!1,"sku";if(!s.data.product_set[i].set_reference_price)return t.$message.error(t.$t("view.item.form.set_reference_price.notnull")),document.getElementsByName("set_reference_price"+n)[i]&&document.getElementsByName("set_reference_price"+n)[i].focus(),t.confirmNSLoading=!1,"sku";if(isNaN(s.data.product_set[i].set_reference_price))return t.$message.error(t.$t("view.item.form.set_reference_price.number")),document.getElementsByName("set_reference_price"+n)[i]&&document.getElementsByName("set_reference_price"+n)[i].focus(),t.confirmNSLoading=!1,"sku";if(!s.data.product_set[i].set_price)return t.$message.error(t.$t("view.item.form.set_price.notnull")),document.getElementsByName("set_price"+n)[i]&&document.getElementsByName("set_price"+n)[i].focus(),t.confirmNSLoading=!1,"sku";if(isNaN(s.data.product_set[i].set_price))return t.$message.error(t.$t("view.item.form.set_price.number")),document.getElementsByName("set_price"+n)[i]&&document.getElementsByName("set_price"+n)[i].focus(),t.confirmNSLoading=!1,"sku"}o.push(s.data)}));n=t._.compact(n),o.length>0&&0===n.length?Object(u["f"])({data:o,app_key:t.netseaShop.app_key}).then((function(e){0===e.code?(t.confirmNSLoading=!1,t.$message.success(e.message)):(t.confirmNSLoading=!1,t.$message.error(e.message))})).catch((function(e){t.confirmNSLoading=!1,t.$message.error(e)})):n.length>0&&(t.confirmNSLoading=!1,e.formEditKey=n[0])})).catch((function(e){t.confirmNSLoading=!1,t.$message.error(e)}))},isWithinMaxLength:function(e,t){for(var a=0,o=0;o<e.length;o++)a+=1;return a<=t},deleteImage:function(e,t){this.netseaGoodInfoList[t].images.map((function(t){t.image_no===e&&(t.image_url="")})),this.$set(this,"netseaGoodInfoList",Object.assign({},this.netseaGoodInfoList))},okFabu:function(){var e=this;this.confirmNSLoading=!0,Object(u["e"])({good_ids:this.goodsIds,app_key:this.netseaShop.app_key}).then((function(t){0===t.code?e.$message.success(t.message):e.$message.error(t.message),e.confirmNSLoading=!1})).catch((function(t){e.confirmNSLoading=!1,e.$message.error(t)}))},piCopyData:function(e){var t=this,a=this;this._.map(this.netseaGoodInfoList,(function(o,n){"itemInfo"===e&&t.TemplateData["product_ship_setting_code"]&&(a.netProductDiscountCodeList[n]=!0,a.netseaGoodInfoList[n].product_discount=a.TemplateData.product_discount),a.plDataFields[e].map((function(e){a.netseaGoodInfoList[n][e]=a.TemplateData[e]}))})),this.$set(this,"netseaGoodInfoList",Object.assign({},this.netseaGoodInfoList))}},components:{AntModal:m,goodsIdList:p,leftTabItem:_,kandengGoodsOne:g}},h=Object(s["a"])({},f),v=h,b=a("2877"),y=Object(b["a"])(v,o,n,!1,null,null,null);t["default"]=y.exports},"963d":function(e,t,a){"use strict";a("09ff")},ac2a:function(e,t,a){"use strict";a.r(t);var o=function(){var e=this,t=e._self._c;return t("div",{staticClass:"main"},[t("div",{staticStyle:{"text-align":"right"}},[t("select-lang",{attrs:{currentLangText:!0,defaultLang:e.routerLang}})],1),e.form.role_name&&!e.LoginStatus?t("div",[t("div",[e._v(e._s(e.form.role_name+e.$t("view.user.register"))+":")])]):e._e(),t("a-form-model",{ref:"form",staticClass:"user-layout-login",attrs:{id:"formLogin",model:e.form,rules:e.rules}},[e.LoginStatus?t("a-tabs",{staticClass:"loginTitle",on:{change:function(t){e.loginType=t}}},[t("a-tab-pane",{key:"1",attrs:{tab:e.$t(e.LoginStatus?"login.modal.tab1":"view.user.register.tab1")}}),t("a-tab-pane",{key:"2",attrs:{tab:e.$t(e.LoginStatus?"login.modal.tab2":"view.user.register.tab2")}})],1):e._e(),t("a-form-model-item",{attrs:{prop:"username"}},[t("a-input",{attrs:{size:"large",placeholder:e.$t("view.config.email.add.username.label")},model:{value:e.form.username,callback:function(t){e.$set(e.form,"username",t)},expression:"form.username"}},[t("a-icon",{style:{color:"rgba(0,0,0,.25)"},attrs:{slot:"prefix",type:"user"},slot:"prefix"})],1)],1),t("a-form-model-item",{attrs:{prop:"password"}},[t("a-input-password",{attrs:{size:"large",placeholder:e.$t("view.login.email.add.password.label")},model:{value:e.form.password,callback:function(t){e.$set(e.form,"password",t)},expression:"form.password"}},[t("a-icon",{style:{color:"rgba(0,0,0,.25)"},attrs:{slot:"prefix",type:"lock"},slot:"prefix"})],1)],1),e.LoginStatus?e._e():t("a-form-model-item",{attrs:{prop:"realname"}},[t("a-input",{attrs:{size:"large",placeholder:e.$t("view.config.email.add.realname.label")},model:{value:e.form.realname,callback:function(t){e.$set(e.form,"realname",t)},expression:"form.realname"}},[t("a-icon",{style:{color:"rgba(0,0,0,.25)"},attrs:{slot:"prefix",type:"user"},slot:"prefix"})],1)],1),e.LoginStatus?e._e():t("a-form-model-item",{attrs:{prop:"mobile"}},[t("a-input",{attrs:{size:"large",placeholder:e.$t("view.config.email.add.mobile.label")},model:{value:e.form.mobile,callback:function(t){e.$set(e.form,"mobile",t)},expression:"form.mobile"}},[t("a-icon",{style:{color:"rgba(0,0,0,.25)"},attrs:{slot:"prefix",type:"phone"},slot:"prefix"})],1)],1),e.LoginStatus?e._e():t("a-form-model-item",{attrs:{prop:"email"}},[t("a-input",{attrs:{size:"large",placeholder:e.$t("view.config.email.add.email.label")},model:{value:e.form.email,callback:function(t){e.$set(e.form,"email",t)},expression:"form.email"}},[t("a-icon",{style:{color:"rgba(0,0,0,.25)"},attrs:{slot:"prefix",type:"mail"},slot:"prefix"})],1)],1),e.LoginStatus&&e.captchaOnOff?t("a-row",{attrs:{gutter:16}},[t("a-col",{staticClass:"gutter-row",attrs:{span:16}},[t("a-form-model-item",{attrs:{prop:"code"}},[t("a-input",{attrs:{size:"large",type:"text",autocomplete:"off",placeholder:e.$t("login.modal.code")},model:{value:e.form.code,callback:function(t){e.$set(e.form,"code",t)},expression:"form.code"}},[t("a-icon",{style:{color:"rgba(0,0,0,.25)"},attrs:{slot:"prefix",type:"security-scan"},slot:"prefix"})],1)],1)],1),t("a-col",{staticClass:"gutter-row",attrs:{span:8}},[t("img",{staticClass:"getCaptcha",attrs:{src:e.codeUrl},on:{click:e.getCode}})])],1):e._e(),e.LoginStatus?e._e():t("a-row",{attrs:{gutter:16}},[t("a-col",{staticClass:"gutter-row",attrs:{lg:18,sm:18,md:18,xs:16}},[t("a-form-model-item",{attrs:{prop:"code"}},[t("a-input",{attrs:{size:"large",type:"text",autocomplete:"off",placeholder:e.$t("view.modal.email.code.placeholder")},model:{value:e.form.code,callback:function(t){e.$set(e.form,"code",t)},expression:"form.code"}},[t("a-icon",{style:{color:"rgba(0,0,0,.25)"},attrs:{slot:"prefix",type:"security-scan"},slot:"prefix"})],1)],1)],1),t("a-col",{staticClass:"gutter-row",attrs:{lg:6,sm:6,md:6,xs:8}},[t("a-button",{staticClass:"login-button",staticStyle:{padding:"0 0px"},attrs:{type:"primary",loading:e.codeLoading,size:"large"},on:{click:e.getEmailCode}},[e._v(e._s(e.codeLoading?e.$t("view.modal.code.time",{time:e.currentCodeTime}):e.$t("view.modal.email.code")))])],1)],1),e.LoginStatus?e._e():t("a-form-model-item",{attrs:{prop:"distribution_code"}},[t("a-input",{attrs:{size:"large",placeholder:e.$t("view.config.add.code.label")},model:{value:e.form.distribution_code,callback:function(t){e.$set(e.form,"distribution_code",t)},expression:"form.distribution_code"}},[t("a-icon",{style:{color:"rgba(0,0,0,.25)"},attrs:{slot:"prefix",type:"security-scan"},slot:"prefix"})],1)],1),e.LoginStatus?t("a-form-item",{staticStyle:{"margin-top":"3rem"}},[t("a-button",{staticClass:"login-button",attrs:{size:"large",type:"primary",htmlType:"submit",loading:e.logining,disabled:e.logining},on:{click:e.handleSubmit}},[e._v(" "+e._s((e.loginType,e.$t("view.modal.login")))+" ")])],1):e._e(),e.LoginStatus?e._e():t("a-form-item",{staticStyle:{"margin-top":"0.25rem","margin-bottom":"1rem"}},[t("a-button",{staticClass:"login-button",attrs:{size:"large",type:"primary",htmlType:"submit",loading:e.logining,disabled:e.logining},on:{click:e.handleRegister}},[e._v(" "+e._s((e.loginType,e.$t("view.user.register")))+" ")])],1),t("a-row",[t("a-col",{staticStyle:{"text-align":"right"},attrs:{lg:24}},[t("a-space",[t("div",{staticClass:"icons-list"},[e.LoginStatus?t("a-button",{attrs:{type:"link"},on:{click:e.goRegister}},[e._v(e._s(e.$t("view.user.register")))]):e._e(),e.LoginStatus?e._e():t("a-button",{attrs:{type:"link"},on:{click:e.goLogin}},[e._v(e._s(e.$t("view.modal.login")))])],1)])],1)],1)],1)],1)},n=[],s=a("5530"),r=(a("d3b7"),a("2f62")),i=a("7ded"),c=a("04b3"),d=a("da7d"),l={components:{allIcon:c["a"],SelectLang:d["a"]},data:function(){return{prefixCls:"ant-pro-global-header-index-action",loginType:"1",allIcon:c["a"],codeUrl:"",form:{username:"",password:"",code:"",cid:"123"},captchaOnOff:!0,rules:{username:[{required:!0,message:this.$t("view.config.email.add.username.placeholder"),trigger:"blur"}],password:[{required:!0,message:this.$t("view.config.email.add.password.placeholder"),trigger:"blur"}],realname:[{required:!1,message:this.$t("view.config.email.add.realname.placeholder"),trigger:"blur"}],mobile:[{required:!1,message:this.$t("view.config.email.add.mobile.placeholder"),trigger:"blur"}],email:[{required:!1,message:this.$t("view.config.email.add.email.placeholder"),trigger:"blur"}],code:[{required:!0,message:this.$t("login.modal.code.relue"),trigger:"blur"}],cid:[{required:!0,message:"验证码ID不能为空",trigger:"blur"}]},logining:!1,LoginStatus:!0,CodeTime:null,codeLoading:!1,currentCodeTime:0,routerLang:""}},created:function(){var e;this.getCode(),null!==(e=this.$route.query)&&void 0!==e&&e.lang&&(this.routerLang=this.$route.query.lang),this.$route.query.role&&(this.form.role=this.$route.query.role,this.form.role_name=this.$route.query.role_name),"1"===this.$route.query.register&&this.goRegister(),this.$route.query.ref_code&&(this.form.distribution_code=this.$route.query.ref_code),this.$route.query.token&&this.loginSuccess()},beforeDestroy:function(){clearInterval(this.CodeTime)},methods:Object(s["a"])(Object(s["a"])({getCode:function(){var e=this;Object(i["c"])().then((function(t){e.captchaOnOff=void 0===t.captchaOnOff||t.captchaOnOff,e.captchaOnOff&&(e.codeUrl=t.base64,e.form.cid=t.cid)}))},applyLicense:function(){window.open("/applyLicense","_blank")}},Object(r["b"])(["Login","Logout","SubLogin"])),{},{handleSubmit:function(){var e=this;this.$notification.close("loginExpireTip"),this.logining=!0,this.$refs.form.validate((function(t){t?"1"===e.loginType?e.Login(e.form).then((function(t){return e.loginSuccess(t)})).catch((function(t){return e.requestFailed(t)})).finally((function(){e.logining=!1})):e.SubLogin(e.form).then((function(t){return e.loginSuccess(t)})).catch((function(t){return e.requestFailed(t)})).finally((function(){e.logining=!1})):(setTimeout((function(){e.logining=!1}),600),e.captchaOnOff&&e.getCode())}))},loginSuccess:function(e){this.$router.push({path:"/"})},requestFailed:function(){this.logining=!1,this.form.code=void 0,this.getCode()},handleCloseLoginError:function(){},goRegister:function(){this.rules.email[0].required=!0,this.LoginStatus=!1},goLogin:function(){this.rules.email[0].required=!1,this.LoginStatus=!0},handleRegister:function(){var e=this;this.$refs.form.validate((function(t){t?Object(i["k"])(e.form).then((function(t){0===t.code&&(e.$message.success(e.$t("view.modal.register.succes")),e.goLogin())})):setTimeout((function(){e.logining=!1}),600)}))},getEmailCode:function(){var e=this;this.codeLoading||this.$refs.form.validateField("email",(function(t){t||Object(i["b"])({email:e.form.email}).then((function(t){0===t.code&&(e.codeLoading=!0,e.getCodeTime(),e.$message.success(e.$t("view.modal.code.succes")))}))}))},getCodeTime:function(){var e=this,t=30;this.currentCodeTime=t,this.CodeTime=setInterval((function(){t--,e.currentCodeTime=t,t<=0&&(e.codeLoading=!1,clearInterval(e.CodeTime))}),1e3)}})},u=l,m=(a("963d"),a("2419"),a("2877")),p=Object(m["a"])(u,o,n,!1,null,"4a5236c2",null);t["default"]=p.exports},aee6:function(e,t,a){"use strict";a.r(t);var o=function(){var e=this,t=e._self._c;return t("span",[t("a-tabs",{on:{change:e.changeTabGoods},model:{value:e.activeTab,callback:function(t){e.activeTab=t},expression:"activeTab"}},e._l(e.list,(function(e){return t("a-tab-pane",{key:e.good_id,attrs:{tab:e.title}})})),1)],1)},n=[],s=a("5530"),r=a("c7eb"),i=a("1da1"),c=(a("d3b7"),a("3ca3"),a("ddb0"),a("d81d"),a("aabf")),d={name:"GoodsListTab",props:{goodsIdList:{type:Array,default:function(){return[]}}},data:function(){return{activeTab:0,list:{}}},watch:{goodsIdList:function(e,t){e!==t&&this.getGoodsList()}},created:function(){this.getGoodsList()},methods:{changeTab:function(e){},getGoodsList:function(){var e=this;return Object(i["a"])(Object(r["a"])().mark((function t(){return Object(r["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,Promise.all(e.goodsIdList.map(function(){var t=Object(i["a"])(Object(r["a"])().mark((function t(a,o){var n;return Object(r["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return n={good_id:a},t.next=3,Object(c["m"])(n);case 3:e.list[a]=t.sent;case 4:case"end":return t.stop()}}),t)})));return function(e,a){return t.apply(this,arguments)}}()));case 2:e._.size(e.list)>1&&(e.activeTab=e.list[e.goodsIdList[0]].good_id,e.$emit("change",e.list[e.goodsIdList[0]]));case 3:case"end":return t.stop()}}),t)})))()},changeTabGoods:function(e){this.activeTab=e,this.$emit("change",this.list[e])}}},l=Object(s["a"])({},d),u=l,m=a("2877"),p=Object(m["a"])(u,o,n,!1,null,null,null);t["default"]=p.exports},d936:function(e,t,a){"use strict";a("92c5")},eb30:function(e,t,a){"use strict";a.r(t);a("b0c0"),a("a9e3");var o=function(){var e=this,t=e._self._c;return t("span",[e.hiddenIcon?e._e():t("a-tooltip",[t("template",{slot:"title"},[e._v(" "+e._s(e.$t("components.imagetext.translation"))+" ")]),t("a-icon",{attrs:{type:"file-image"},on:{click:e.openModal}})],2),t("AntModal",{attrs:{visible:e.visible,title:e.modelTitle,modalWidth:"800",modalHeight:"650","adjust-size":!0},on:{cancel:e.close},scopedSlots:e._u([{key:"footer",fn:function(){return[t("recharge",{ref:"yueref",attrs:{showYue:!0}}),t("a-button",{staticStyle:{"margin-left":"5px"},on:{click:e.close}},[e._v(e._s(e.$t("components.imagetext.translation.close")))]),t("a-button",{attrs:{type:"primary"},on:{click:e.ok}},[e._v(e._s(e.$t("components.imagetext.translation.ok")))])]},proxy:!0}])},[t("div",{attrs:{slot:"content"},slot:"content"},[t("div",{staticStyle:{display:"flex","align-items":"center"}},[t("div",{staticStyle:{width:"290px"}},[t("div",[e._v(e._s(e.$t("components.imagetext.translation.before")))]),t("div",{staticStyle:{width:"290px",height:"290px"}},[t("img",{staticStyle:{width:"290px",height:"290px","object-fit":"contain"},attrs:{src:e.img}})]),t("div",{staticStyle:{"margin-top":"1rem"}},[e._v(" "+e._s(e.$t("components.imagetext.translation.sourceLang"))+": "),e.langSource?t("a-select",{staticStyle:{width:"60%"},on:{change:e.changeCurrentLang},model:{value:e.currentLang,callback:function(t){e.currentLang=t},expression:"currentLang"}},e._l(e.langSource.sourceLanguage,(function(a){return t("a-select-option",{key:a.code,attrs:{value:a.code}},[e._v(" "+e._s(a.name)+" ")])})),1):e._e()],1)]),t("div",{staticStyle:{flex:"1","text-align":"center"}},[t("div",{staticStyle:{height:"311px","align-items":"center","justify-content":"center",display:"flex"}},[t("a-icon",{staticStyle:{"font-size":"2rem"},attrs:{type:"arrow-right"}})],1),t("a-select",{staticStyle:{width:"100%","margin-top":"1rem"},on:{change:e.changeTranEngData},model:{value:e.transEngineData,callback:function(t){e.transEngineData=t},expression:"transEngineData"}},e._l(e.langSource.transEngine,(function(a){return t("a-select-option",{key:a.code},[e._v(e._s(a.name)+" "),t("defaultCurrency",{attrs:{currency:"CNY",isFuhao:!0}}),e._v(" "+e._s(Number(Number(a.unitPrice)/100))+" ")],1)})),1)],1),t("div",{staticStyle:{width:"290px"}},[t("div",[e._v(e._s(e.$t("components.imagetext.translation.after")))]),t("div",{style:{width:"290px",height:"290px",border:e.newImg?"":"1px solid #ccc"}},[e.newImg?t("img",{staticStyle:{width:"290px",height:"290px","object-fit":"contain"},attrs:{src:e.newImg}}):e._e()]),t("div",{staticStyle:{"margin-top":"1rem","text-align":"right"}},[e._v(" "+e._s(e.$t("components.imagetext.translation.targetLang"))+": "),e.langSource?t("a-select",{staticStyle:{width:"60%"},on:{change:e.changeTransLang},model:{value:e.transLang,callback:function(t){e.transLang=t},expression:"transLang"}},e._l(e.langSource.targetLanguage,(function(a){return t("a-select-option",{key:a.code,attrs:{value:a.code}},[e._v(" "+e._s(a.name)+" ")])})),1):e._e()],1)])]),t("div",{staticStyle:{"margin-top":"1rem","text-align":"center"}},[t("a-button",{attrs:{type:"primary"},on:{click:e.transImg}},[e._v(e._s(e.$t("components.imagetext.translation.translate")))])],1)])])],1)},n=[],s=(a("d3b7"),a("3ca3"),a("ddb0"),a("a026")),r=a("3726"),i=Object(s["b"])((function(){return Promise.resolve().then(a.bind(null,"2dd7"))})),c=Object(s["b"])((function(){return Promise.resolve().then(a.bind(null,"b89c"))})),d=Object(s["b"])((function(){return Promise.resolve().then(a.bind(null,"34c3"))})),l="ImageTs-TranEngMode",u="ImageTs-CurrentLang",m="ImageTs-TransLang",p={name:"ImageTextTs",props:{img:{type:String,default:""},hiddenIcon:{type:Boolean,default:!1}},data:function(){return{visible:!1,modelTitle:this.$t("components.imagetext.translation.modaltitle"),newImg:"",langSource:[],currentLang:"",transLang:"",transEngineData:""}},methods:{getLangList:function(){var e=this;Object(r["c"])().then((function(t){0===t.code&&(e.langSource=JSON.parse(t.lang),sessionStorage.getItem(l)?e.transEngineData=sessionStorage.getItem(l):e.langSource.transEngine.length>0&&(e.transEngineData=e.langSource.transEngine[0].code,sessionStorage.setItem(l,e.transEngineData)),sessionStorage.getItem(u)&&(e.currentLang=sessionStorage.getItem(u)),sessionStorage.getItem(m)&&(e.transLang=sessionStorage.getItem(m)))}))},openModal:function(){if(this.newImg="",!this.img)return this.$message.error(this.$t("components.imagetext.translation.image.null")),!1;this.getLangList(),this.visible=!0},close:function(){this.visible=!1},ok:function(){var e=this;this.$confirm({title:this.$t("components.imagetext.translation.confirm.title"),content:this.$t("components.imagetext.translation.confirm.content"),okText:this.$t("components.imagetext.translation.confirm.ok"),cancelText:this.$t("components.imagetext.translation.confirm.cancel"),onOk:function(){e.$emit("update:img",e.newImg),e.$emit("ok",e.newImg),e.close()},onCancel:function(){}})},transImg:function(){var e=this;return this.transEngineData?this.currentLang?this.transLang?(this.$message.loading({content:this.$t("components.imagetext.translation.transImageLoading"),duration:0}),void Object(r["a"])({imgUrl:this.img,sourceLanguage:this.currentLang,targetLanguage:this.transLang,transEngine:this.transEngineData}).then((function(t){e.newImg=t.url+"?t="+(new Date).getTime(),e.$refs.yueref.getAmount(),e.$message.destroy()})).catch((function(t){e.$message.destroy()}))):(this.$message.error(this.$t("components.imagetext.translation.targetLang.null")),!1):(this.$message.error(this.$t("components.imagetext.translation.sourceLang.null")),!1):(this.$message.error(this.$t("components.imagetext.translation.engine.null")),!1)},changeTranEngData:function(e){sessionStorage.setItem(l,e)},changeCurrentLang:function(e){sessionStorage.setItem(u,e)},changeTransLang:function(e){sessionStorage.setItem(m,e)}},components:{AntModal:i,recharge:c,defaultCurrency:d}},_=p,g=a("2877"),f=Object(g["a"])(_,o,n,!1,null,null,null);t["default"]=f.exports},f7f8:function(e,t,a){"use strict";a.r(t);var o=function(){var e=this,t=e._self._c;return t("span",[e.hiddenIcon?e._e():t("a-tooltip",[t("template",{slot:"title"},[e._v(" "+e._s(e.$t("components.videoTrans.btn"))+" ")]),t("a-icon",{attrs:{type:"file-image"},on:{click:e.openModal}})],2),e.hiddenIcon?t("a-button",{attrs:{type:e.btnType,loading:e.loading},on:{click:e.openModal}},[e._v(e._s(e.$t("components.videoTrans.btn")))]):e._e(),t("AntModal",{attrs:{visible:e.visible,title:e.modelTitle,modalWidth:"800",modalHeight:"650","adjust-size":!0},on:{cancel:e.close},scopedSlots:e._u([{key:"footer",fn:function(){return[t("recharge",{ref:"yueref",attrs:{showYue:!0}}),t("a-button",{staticStyle:{"margin-left":"5px"},on:{click:e.close}},[e._v(e._s(e.$t("components.videoTrans.translation.close")))]),e.hiddenConfirm?e._e():t("a-button",{attrs:{type:"primary"},on:{click:e.ok}},[e._v(e._s(e.$t("components.imagetext.translation.ok")))])]},proxy:!0}])},[t("div",{attrs:{slot:"content"},slot:"content"},[t("div",{staticStyle:{display:"flex","align-items":"center"}},[t("div",{staticStyle:{width:"290px"}},[t("div",[e._v(e._s(e.$t("components.imagetext.translation.before")))]),t("div",{staticStyle:{width:"290px",height:"290px"}},[t("video",{ref:"sfGalleryBigImage",staticStyle:{"object-position":"top","max-height":"290px"},attrs:{autoplay:!1,muted:"",preload:"load",loop:"",src:e.url,width:"100%",height:"100%",controls:"controls",playsinline:""},domProps:{muted:!0}},[t("source",{attrs:{src:e.url,type:"video/*"}})])]),t("div",{staticStyle:{"margin-top":"1rem"}},[e._v(" "+e._s(e.$t("components.imagetext.translation.sourceLang"))+": "),t("a-select",{staticStyle:{width:"60%"},on:{change:e.changeCurrentLang},model:{value:e.currentLang,callback:function(t){e.currentLang=t},expression:"currentLang"}},e._l(e.langLabel,(function(a,o){return t("a-select-option",{key:o,attrs:{value:o}},[e._v(" "+e._s(e.$t(a))+" ")])})),1)],1)]),t("div",{staticStyle:{flex:"1","text-align":"center"}},[t("div",{staticStyle:{height:"311px","align-items":"center","justify-content":"center",display:"flex"}},[t("a-icon",{staticStyle:{"font-size":"2rem"},attrs:{type:"arrow-right"}})],1)]),t("div",{staticStyle:{width:"290px"}},[t("div",[e._v(e._s(e.$t("components.imagetext.translation.after")))]),t("div",{style:{width:"290px",height:"290px",border:e.newUrl?"":"1px solid #ccc"}},[e.newUrl?t("video",{ref:"sfGalleryBigImage",staticStyle:{"object-position":"top","max-height":"290px"},attrs:{autoplay:!1,muted:"",preload:"load",loop:"",src:e.newUrl,width:"100%",height:"100%",controls:"controls",playsinline:""},domProps:{muted:!0}},[t("source",{attrs:{src:e.newUrl,type:"video/*"}})]):e._e()]),t("div",{staticStyle:{"margin-top":"1rem","text-align":"right"}},[e._v(" "+e._s(e.$t("components.imagetext.translation.targetLang"))+": "),t("a-select",{staticStyle:{width:"60%"},on:{change:e.changeTransLang},model:{value:e.transLang,callback:function(t){e.transLang=t},expression:"transLang"}},e._l(e.langLabel,(function(a,o){return t("a-select-option",{key:o,attrs:{value:o}},[e._v(" "+e._s(e.$t(a))+" ")])})),1)],1)])]),t("div"),t("div",{staticStyle:{"margin-top":"1rem","text-align":"center"}},[t("a-button",{attrs:{type:"primary"},on:{click:e.transImg}},[e._v(e._s(e.$t("components.imagetext.translation.translate")))]),t("selectVideo",{ref:"selectVideo",staticStyle:{"margin-left":"0.5rem"},on:{ok:function(t){return e.newUrl=t}}})],1)])])],1)},n=[],s=(a("d3b7"),a("3ca3"),a("ddb0"),a("ac1f"),a("5319"),a("a026")),r=a("3726"),i=Object(s["b"])((function(){return Promise.resolve().then(a.bind(null,"2dd7"))})),c=Object(s["b"])((function(){return Promise.resolve().then(a.bind(null,"b89c"))})),d=Object(s["b"])((function(){return Promise.resolve().then(a.bind(null,"34c3"))})),l=Object(s["b"])((function(){return a.e("chunk-ade7a3ac").then(a.bind(null,"09e9e"))})),u="videoTs-TranEngMode",m="videoTs-CurrentLang",p="videoTs-TransLang",_={name:"VideoTrans",props:{url:{type:String,default:""},hiddenIcon:{type:Boolean,default:!1},btnType:{type:String,default:"primary"},hiddenConfirm:{type:Boolean,default:!1}},data:function(){return{visible:!1,modelTitle:this.$t("components.imagetext.translation.modaltitle"),newUrl:"",langSource:[],langLabel:{zh:"zh-CN",en:"en-US",fr:"fr-FR",es:"es-ES",ar:"ar-EG",hi:"hi-IN",pt:"pt-PT",ru:"ru-RU",it:"it-IT",de:"de-DE",ja:"ja-JP",th:"th-TH",ko:"ko-KR",bn:"bn-BD",id:"id-ID",vi:"vi-VN",ms:"ms-MY"},currentLang:"",transLang:"",transEngineData:"",loading:!1}},methods:{getLangList:function(){sessionStorage.getItem(m)&&(this.currentLang=sessionStorage.getItem(m)),sessionStorage.getItem(p)&&(this.transLang=sessionStorage.getItem(p))},openModal:function(){if(this.newUrl="",!this.url)return this.$message.error(this.$t("components.imagetext.translation.image.null")),!1;this.getLangList(),this.visible=!0},close:function(){this.visible=!1},ok:function(){var e=this;this.$confirm({title:this.$t("components.imagetext.translation.confirm.title"),content:this.$t("components.imagetext.translation.confirm.content"),okText:this.$t("components.imagetext.translation.confirm.ok"),cancelText:this.$t("components.imagetext.translation.confirm.cancel"),onOk:function(){e.$emit("update:url",e.newUrl),e.$emit("ok",e.newUrl),e.close()},onCancel:function(){}})},transImg:function(){var e=this,t=(new Date).toLocaleDateString().replace(/\//g,"");Object(r["f"])({source_url:this.url,source_lang:this.currentLang,target_lang:this.transLang,project_name:t}).then((function(t){e.newUrl=t.video_url+"?t="+(new Date).getTime(),e.$refs.yueref.getAmount(),e.$message.success(e.$t("components.videoTrans.aivideo.loding"),2),setTimeout((function(){e.$refs.selectVideo&&e.$refs.selectVideo.openModal()}),2e3)})).catch((function(e){}))},changeTranEngData:function(e){sessionStorage.setItem(u,e)},changeCurrentLang:function(e){sessionStorage.setItem(m,e)},changeTransLang:function(e){sessionStorage.setItem(p,e)}},components:{AntModal:i,recharge:c,defaultCurrency:d,selectVideo:l}},g=_,f=a("2877"),h=Object(f["a"])(g,o,n,!1,null,null,null);t["default"]=h.exports}}]);