@bee-hole/admin 1.25.70 → 1.25.72
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.
- package/dist/css/chunk-2995d93e.ead4c84d.css +1 -0
- package/dist/css/chunk-2995d93e.ead4c84d.css.gz +0 -0
- package/dist/css/chunk-709299b9.1f7978e0.css +1 -0
- package/dist/css/chunk-7c63f466.35394ae6.css +1 -0
- package/dist/css/chunk-816e06dc.664d57bc.css +1 -0
- package/dist/css/chunk-816e06dc.664d57bc.css.gz +0 -0
- package/dist/css/chunk-d323928e.89fff6c2.css +1 -0
- package/dist/css/chunk-d323928e.89fff6c2.css.gz +0 -0
- package/dist/css/lang-zh-TW-service~f63b1681.6a8b5ed3.css +1 -0
- package/dist/css/lang-zh-TW-service~f63b1681.6a8b5ed3.css.gz +0 -0
- package/dist/index.html +1 -1
- package/dist/js/{app~f075b844.6441ab26.js → app~f075b844.8a6c26a1.js} +1 -1
- package/dist/js/app~f075b844.8a6c26a1.js.gz +0 -0
- package/dist/js/{chunk-03e1387e.276931a3.js → chunk-03e1387e.944ecc2f.js} +1 -1
- package/dist/js/chunk-03e1387e.944ecc2f.js.gz +0 -0
- package/dist/js/chunk-2995d93e.61230a2a.js +1 -0
- package/dist/js/chunk-2995d93e.61230a2a.js.gz +0 -0
- package/dist/js/chunk-709299b9.b0edf0c0.js +1 -0
- package/dist/js/chunk-709299b9.b0edf0c0.js.gz +0 -0
- package/dist/js/{chunk-fa04ce72.8dca4792.js → chunk-7454876a.3bba909c.js} +1 -1
- package/dist/js/chunk-7454876a.3bba909c.js.gz +0 -0
- package/dist/js/chunk-7c63f466.d677ef0c.js +1 -0
- package/dist/js/chunk-7c63f466.d677ef0c.js.gz +0 -0
- package/dist/js/chunk-816e06dc.56591347.js +1 -0
- package/dist/js/chunk-816e06dc.56591347.js.gz +0 -0
- package/dist/js/chunk-d323928e.af2bf922.js +1 -0
- package/dist/js/chunk-d323928e.af2bf922.js.gz +0 -0
- package/dist/js/{chunk-e093710c.a88ed5b7.js → chunk-dc085b74.8c105048.js} +1 -1
- package/dist/js/chunk-dc085b74.8c105048.js.gz +0 -0
- package/dist/js/lang-ar-EG~31ecd969.ce49043e.js +3 -0
- package/dist/js/lang-ar-EG~31ecd969.ce49043e.js.gz +0 -0
- package/dist/js/lang-bn-BD~ede72586.da8cbdf6.js +1 -0
- package/dist/js/lang-bn-BD~ede72586.da8cbdf6.js.gz +0 -0
- package/dist/js/lang-en-US~31ecd969.b23f2e6a.js +3 -0
- package/dist/js/lang-en-US~31ecd969.b23f2e6a.js.gz +0 -0
- package/dist/js/lang-ko-KR~31ecd969.e4ee3717.js +1 -0
- package/dist/js/lang-ko-KR~31ecd969.e4ee3717.js.gz +0 -0
- package/dist/js/lang-ms-MY~d756050e.85d7b612.js +1 -0
- package/dist/js/lang-ms-MY~d756050e.85d7b612.js.gz +0 -0
- package/dist/js/{lang-package~4e34e71e.c46c5825.js → lang-package~4e34e71e.ef94a2b5.js} +3 -3
- package/dist/js/lang-package~4e34e71e.ef94a2b5.js.gz +0 -0
- package/dist/js/lang-zh-TW-service~f63b1681.dda54152.js +1 -0
- package/dist/js/lang-zh-TW-service~f63b1681.dda54152.js.gz +0 -0
- package/dist/js/lang-zh-TW~31ecd969.9cab7082.js +1 -0
- package/dist/js/lang-zh-TW~31ecd969.9cab7082.js.gz +0 -0
- package/package.json +1 -1
- package/dist/css/chunk-07a0f50c.cab31655.css +0 -1
- package/dist/css/chunk-07a0f50c.cab31655.css.gz +0 -0
- package/dist/css/chunk-32dac439.a68e5fee.css +0 -1
- package/dist/css/chunk-32dac439.a68e5fee.css.gz +0 -0
- package/dist/css/chunk-48de0fec.1e09edd8.css +0 -1
- package/dist/css/chunk-48de0fec.1e09edd8.css.gz +0 -0
- package/dist/css/chunk-52cb3562.ef74bf62.css +0 -1
- package/dist/css/chunk-e4bf5c30.13706cf3.css +0 -1
- package/dist/css/lang-zh-TW-service~f63b1681.c64eee61.css +0 -1
- package/dist/css/lang-zh-TW-service~f63b1681.c64eee61.css.gz +0 -0
- package/dist/js/app~f075b844.6441ab26.js.gz +0 -0
- package/dist/js/chunk-03e1387e.276931a3.js.gz +0 -0
- package/dist/js/chunk-07a0f50c.689ae53d.js +0 -1
- package/dist/js/chunk-07a0f50c.689ae53d.js.gz +0 -0
- package/dist/js/chunk-32dac439.71af4fd9.js +0 -1
- package/dist/js/chunk-32dac439.71af4fd9.js.gz +0 -0
- package/dist/js/chunk-48de0fec.9b2ababd.js +0 -1
- package/dist/js/chunk-48de0fec.9b2ababd.js.gz +0 -0
- package/dist/js/chunk-52cb3562.9ddf4714.js +0 -1
- package/dist/js/chunk-52cb3562.9ddf4714.js.gz +0 -0
- package/dist/js/chunk-e093710c.a88ed5b7.js.gz +0 -0
- package/dist/js/chunk-e4bf5c30.9cf4e966.js +0 -1
- package/dist/js/chunk-e4bf5c30.9cf4e966.js.gz +0 -0
- package/dist/js/chunk-fa04ce72.8dca4792.js.gz +0 -0
- package/dist/js/lang-ar-EG~31ecd969.c469ba88.js +0 -3
- package/dist/js/lang-ar-EG~31ecd969.c469ba88.js.gz +0 -0
- package/dist/js/lang-bn-BD~ede72586.6193db8e.js +0 -1
- package/dist/js/lang-bn-BD~ede72586.6193db8e.js.gz +0 -0
- package/dist/js/lang-en-US~31ecd969.b658e6f1.js +0 -3
- package/dist/js/lang-en-US~31ecd969.b658e6f1.js.gz +0 -0
- package/dist/js/lang-ko-KR~31ecd969.d026b057.js +0 -1
- package/dist/js/lang-ko-KR~31ecd969.d026b057.js.gz +0 -0
- package/dist/js/lang-ms-MY~d756050e.797a9e52.js +0 -1
- package/dist/js/lang-ms-MY~d756050e.797a9e52.js.gz +0 -0
- package/dist/js/lang-package~4e34e71e.c46c5825.js.gz +0 -0
- package/dist/js/lang-zh-TW-service~f63b1681.1f3e02df.js +0 -1
- package/dist/js/lang-zh-TW-service~f63b1681.1f3e02df.js.gz +0 -0
- package/dist/js/lang-zh-TW~31ecd969.2b0593e0.js +0 -1
- package/dist/js/lang-zh-TW~31ecd969.2b0593e0.js.gz +0 -0
- /package/dist/css/{chunk-fa04ce72.3a09c127.css → chunk-7454876a.3a09c127.css} +0 -0
- /package/dist/css/{chunk-fa04ce72.3a09c127.css.gz → chunk-7454876a.3a09c127.css.gz} +0 -0
|
@@ -1 +0,0 @@
|
|
|
1
|
-
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-32dac439"],{"01df5":function(e,t,o){},"09ff":function(e,t,o){},"0ef6":function(e,t,o){"use strict";o.r(t);var a=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:o("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:o("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=(o("d936"),o("2877")),c=Object(i["a"])(r,a,n,!1,null,"0c32075c",null);t["default"]=c.exports},"12b1":function(e,t,o){"use strict";o.r(t);var a=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=o("2877"),c=Object(i["a"])(r,a,n,!1,null,null,null);t["default"]=c.exports},2419:function(e,t,o){"use strict";o("01df5")},2855:function(e,t,o){"use strict";o.r(t);var a=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=o("2877"),c=Object(i["a"])(r,a,n,!1,null,null,null);t["default"]=c.exports},"2f84":function(e,t,o){"use strict";o("606c")},4781:function(e,t,o){e.exports=o.p+"img/img02.9ac07e73.png"},"4a49":function(e,t,o){"use strict";o.r(t);var a=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=o("2877"),c=Object(i["a"])(r,a,n,!1,null,null,null);t["default"]=c.exports},5194:function(e,t,o){"use strict";o.r(t);var a=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:"Druid",components:{},data:function(){return{src:"/admin/druid/login.html",height:document.documentElement.clientHeight-124.5+"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=o("2877"),c=Object(i["a"])(r,a,n,!1,null,null,null);t["default"]=c.exports},"576e":function(e,t,o){e.exports=o.p+"img/chart_sm.8001ec98.png"},"606c":function(e,t,o){},6393:function(e,t){e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGQAAABjCAYAAABt56XsAAAABGdBTUEAALGPC/xhBQAAACBjSFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAABmJLR0QAAAAAAAD5Q7t/AAAACXBIWXMAAAsSAAALEgHS3X78AAAGh0lEQVR42u2dTXPaOByHf5L8QoCQwCxtptNhD8llL7un/Qz7+XvZXJKL2+m0pQOJA/hd2gM266QhkRzbCNAzk5kQ/raDHvRiSZYIAMyW/Pc0E39CAofh03mPeTKxBX6QXYQJ/paJtRi5HvXojcr52yRMhOMH/B/J8GnHJl8GJ/SLTHAQ8wEFAJthBUAqEeIMw1XE+7IfIIh5P0zwXjLcsxkWNaZf7USJuJAMnVqM+LIyAODEoT4FgNMOnSr8T5NFJC7vV9nktUA/yC4eQnEJ4NXYgtMO/VZT2jVCnImhbOyoR/9VPb+1+YVilXLp4yZRCvx8yHquTeYWxeLEoQtgnSNSjn6UiGGYwIGCDEYRN5WQdSGEXJzDoPIl37AR0nXJVz8QXQBXksdOuACCWACA98PPAAAPoQAUJJTwei69rSvhdo3FiF/puOKXjk2TuxW/j1NxA3kpBVUElPEsimXHJtrnEFkshkpCaPnFeZd+JWQ3H2DUZ9q2rAqihDuysVWTkT79w2mH3kCyxVUT3uCEXrd4vcq4NpXOwSnHoMo1fhHSsUkyOGlNijc4odeHVFQVpFlNQoDWpHh9l9zumwzZoiipUwjwi5Q6xXjIZXRdqvVN4HPYFpnLxHEh3Ltldql6fvrSmx2bJO8G7JpRJKhHisco4ncD9mkfZQCARbHA+kv1GuM4w3gVcaWcIt0YWEW8GyTiQ8ZhQ71Z7FGCuGOT7/0OnTWfbM3yw8/+gnxTf+pamJ512Yv3WIuQj1exuFRunYWJsP2AX0FeinfaIbfFnfwhMF9mV0mGPxQOmVKCyLXJ1GZk2rFJBABRKtw0E4MwER8zDhfA2FI4KYB1MVbclctySDLWn4d4SSB6kM8l47xX42MAMS3S737FAWBcDlQWYgA6No3ny2yZZPCg3ksxfulNKnsWw2OGvWZ6FoyQN9B3yS3kWlzSGCFvoOvSRd1SjJA3UrcUI6QG6pRiWlk10XXpIkzE9TLiccbVRkrLGCE1kneUXj+E/CJMRDHcqyTGCGmAfKLGt0XIR6tYbUjb1CENUqXfzgjRDCNEM4wQzTBCNMMI0QwjRDOMEM0wQjTDCNEMI0QzjBDNMEI0wwjRDCNEM4yQBlF5wKfADFDVTJRwJ0oxilMxvA+E8lCuEVIDb5VQxgipSJ0SyhghCjQloYwR8gptSChglBghz9GmhBKea+GzEZKzIwkbCFnPUjlqIbuWUMLrOeQWOMI6RCMJQD4XuPxE8lEI0UwCkItwLTI/69JHE7QPVoiuEhglsWth69PIByVEVwkWI0vXwqznvj61dO+FHIKEMnspJEy4E2spAUvXIsoSyuyNkEJClIj3flB51bo68QDAXueEb3UtFaK1kGORUEY7IbpKcCwydxhmTS+ao4UQnSW4FmZtLg2yMyFGwvO0KkRHCYQADiNzZ4cSyrQixA/4hZEgRxtCJmEidi8BgGuT7zb7fxVuHdGiUm+IjQTHwqyjsMTrLjk0IXspocwhCPEoQVy0jlQWO9aRfRVyUBLK7IuQfCwBsc0OT0IZnYVsJDgWmeu+0Utd6CbkKCWU0UGI1NDmsbArIUbCFtoUsimOXOswlhxvgjaEeFXHl4+RxoUwiljnjSJ1wzzSphlGiGYYIZrRuBDZnTENa5Q2dLlbZh/iDGf5S+kNXQDAYZir7jJ9jEgJ8QM+DhPxW/5SdbujgnzGN+ZnXSNmG68K+fnAr7gQVfad2oZHAIwH7NOuP7yOvChk6md/5FVAXTIKjJQtbBXSoIwCI+UZnhXSgowCI+UJvzR7fz7wq5ZkAMBEAJiu9wU04IkQP+DjmitwGSYCwN0y2/XcLS14JCRv2rYpo2ASZxhGqVBezujQ2PT23q34hzhVuq32CNaTky2GhcXIAgDSTPTTDP04E0PFDU0my5Av0e5e7tqxERKn4gwKd98WxXLUf3Yvv1n+4+VblEpvvphy9HadILuGAsAi5OcKx3hdh3zeIuMRwx676bnkMxQ2y1qEfLTrRNklFFDKHZ5FsVQZfu25dOYwzCEnZRKnwghJOboywYQAMjnjKec95lFCpCa2HXuxpdT9nn/TK+FY1Y89JmiUCls22Gak8iQFm2EBybrkmJu/NG+aStUfjKLyfFqFh2QmxzyopVRkHeoEZ52gZN29KFVRryLer3qhMJEuhjyiNI55WFDXIolk7CTlqCwkycQIkjeIriXXIjtElIqsOBXDqheKU1Q+9pj4D0pHPWe2D9gsAAAAAElFTkSuQmCC"},"924b":function(e,t,o){e.exports=o.p+"img/img01.319f61f4.png"},"92c5":function(e,t,o){},"945a":function(e,t,o){"use strict";o.r(t);o("a9e3"),o("b64b");var a=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(o,a){return t("div",{key:a,staticStyle:{"padding-bottom":"2rem"}},[t("div",{staticStyle:{"margin-bottom":"1rem"}},[t("kandengGoodsOne",{attrs:{goodsList:e.goodList,goodsId:a}})],1),t("a-collapse",{model:{value:e.plActicty,callback:function(t){e.plActicty=t},expression:"plActicty"}},[t("a-collapse-panel",{attrs:{header:a+e.$t("view.item.form.pl.form.params.label")}},[t("div",{staticStyle:{padding:"1rem 0"}},[t("a-form-model",e._b({ref:"netseaGoodInfoForm"+a,refInFor:!0,attrs:{model:o,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"+a},model:{value:o.product_name,callback:function(t){e.$set(o,"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:o.category_id,callback:function(t){e.$set(o,"category_id",t)},expression:"netseaGoodInfo.category_id"}})],1),t("a-form-model-item",{attrs:{label:e.$t("components.netesa.product.category")}},[e.netseaGenereArray[a]&&e.netseaGenereArray[a].netseaGenereList?t("a-select",{staticStyle:{width:"180px"},on:{change:function(t){e.selectNetSeaGenre(t,0,a)}},model:{value:e.firstCatId[a],callback:function(t){e.$set(e.firstCatId,a,t)},expression:"firstCatId[good_id]"}},e._l(e.netseaGenereArray[a].netseaGenereList,(function(o,a){return t("a-select-option",{key:a,attrs:{value:o.cat_id}},[e._v(" "+e._s(o.cat_name)+" ")])})),1):e._e(),e.netseaGenereArray[a]&&e.netseaGenereArray[a].netseaGenereList1.length?t("a-select",{staticStyle:{width:"180px"},on:{change:function(t){e.selectNetSeaGenre(t,1,a)}},model:{value:e.secondCatId[a],callback:function(t){e.$set(e.secondCatId,a,t)},expression:"secondCatId[good_id]"}},e._l(e.netseaGenereArray[a].netseaGenereList1,(function(o,a){return t("a-select-option",{key:a,attrs:{value:o.cat_id}},[e._v(" "+e._s(o.cat_name)+" ")])})),1):e._e(),e.netseaGenereArray[a]&&e.netseaGenereArray[a].netseaGenereList2.length?t("a-select",{staticStyle:{width:"180px"},on:{change:function(t){e.selectNetSeaGenre(t,2,a)}},model:{value:e.thirdCatId[a],callback:function(t){e.$set(e.thirdCatId,a,t)},expression:"thirdCatId[good_id]"}},e._l(e.netseaGenereArray[a].netseaGenereList2,(function(o,a){return t("a-select-option",{key:a,attrs:{value:o.cat_id}},[e._v(" "+e._s(o.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:o.product_id,callback:function(t){e.$set(o,"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:o.sales_status_code,callback:function(t){e.$set(o,"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:o.sales_method_code,callback:function(t){e.$set(o,"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:o.publish_period_start,callback:function(t){e.$set(o,"publish_period_start",t)},expression:"netseaGoodInfo.publish_period_start"}}),t("a-date-picker",{attrs:{"show-time":""},model:{value:o.publish_period_end,callback:function(t){e.$set(o,"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:o.price_closed_flag,callback:function(t){e.$set(o,"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:o.product_ship_setting_code,callback:function(t){e.$set(o,"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:o.product_ship_fee,callback:function(t){e.$set(o,"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(a)}},model:{value:e.netProductDiscountCodeList[a],callback:function(t){e.$set(e.netProductDiscountCodeList,a,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[a]?t("a-input-number",{staticStyle:{width:"100px"},model:{value:o.product_discount.product_discount_rate,callback:function(t){e.$set(o.product_discount,"product_discount_rate",t)},expression:"netseaGoodInfo.product_discount.product_discount_rate"}}):e._e(),e._v(" % "),e.netProductDiscountCodeList[a]?t("a-date-picker",{attrs:{format:"YYYY-MM-DD HH:00:00","show-time":""},model:{value:o.product_discount.product_discount_period_start,callback:function(t){e.$set(o.product_discount,"product_discount_period_start",t)},expression:"netseaGoodInfo.product_discount.product_discount_period_start"}}):e._e(),e.netProductDiscountCodeList[a]?t("a-date-picker",{attrs:{format:"YYYY-MM-DD HH:00:00","show-time":""},model:{value:o.product_discount.product_discount_period_end,callback:function(t){e.$set(o.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:o.volume_discount_target_flag,callback:function(t){e.$set(o,"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:o.image_repost_flag,callback:function(t){e.$set(o,"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(o.images,(function(o,n){return t("div",{directives:[{name:"show",rawName:"v-show",value:o.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:o.image_url}}),t("br"),e.imageSizeArr&&Object.keys(e.imageSizeArr)?t("div",{style:{textAlign:"center",color:e.imageSizeArr[o.image_no]>500?"#f00":"#000"}},[e._v(" "+e._s(e.imageSizeArr[o.image_no])+"K "),t("a-icon",{attrs:{type:"delete"},on:{click:function(t){return e.deleteImage(o.image_no,a)}}})],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"+a},model:{value:o.catchcopy,callback:function(t){e.$set(o,"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"+a},model:{value:o.comment,callback:function(t){e.$set(o,"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"+a},model:{value:o.description_for_consumer,callback:function(t){e.$set(o,"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"+a},model:{value:o.size,callback:function(t){e.$set(o,"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"+a},model:{value:o.spec,callback:function(t){e.$set(o,"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"+a},model:{value:o.spec_for_consumer,callback:function(t){e.$set(o,"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"+a},model:{value:o.notes,callback:function(t){e.$set(o,"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":o.product_set,"row-key":function(e){return e.set_no},pagination:!1},scopedSlots:e._u([{key:"set_branch_code",fn:function(o,n){return t("span",{},[t("a-input",{staticStyle:{width:"100px"},attrs:{name:"set_branch_code"+a},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(o,n){return t("span",{},[t("a-input",{staticStyle:{width:"100px"},attrs:{name:"set_label"+a},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(o,n){return t("span",{},[t("a-input",{staticStyle:{width:"100px"},attrs:{name:"set_reference_price"+a},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(o,n){return t("span",{},[t("a-input",{staticStyle:{width:"100px"},attrs:{name:"set_price"+a},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(o,a){return t("span",{},[t("a-input",{staticStyle:{width:"100px"},attrs:{name:"set_sku_number"},model:{value:a.set_sku_number,callback:function(t){e.$set(a,"set_sku_number",t)},expression:"record.set_sku_number"}})],1)}},{key:"set_stock_number",fn:function(o,a){return t("span",{},[t("a-input",{staticStyle:{width:"100px"},attrs:{name:"set_stock_number"},model:{value:a.set_stock_number,callback:function(t){e.$set(a,"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"+a},model:{value:o.delivery_terms,callback:function(t){e.$set(o,"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:o.return_setting_code,callback:function(t){e.$set(o,"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(o.search_tags,(function(o,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"+a},model:{value:o.search_tag_text,callback:function(t){e.$set(o,"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:o.stamp_id,callback:function(t){e.$set(o,"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"+a},model:{value:o.jan_code,callback:function(t){e.$set(o,"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"+a},model:{value:o.maker_code,callback:function(t){e.$set(o,"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:o.reference_price_type_code,callback:function(t){e.$set(o,"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:o.consumption_tax_type_code,callback:function(t){e.$set(o,"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(o,a){return t("div",{key:a,staticStyle:{"margin-bottom":"10px"}},[e._v(" "+e._s(e.$t("components.netsea.product.search_tag"))+e._s(a+1)+": "),t("a-input",{staticStyle:{width:"200px"},attrs:{name:"search_tag_text"},model:{value:o.search_tag_text,callback:function(t){e.$set(o,"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=o("5530"),r=o("c7eb"),i=o("1da1"),c=(o("d3b7"),o("3ca3"),o("ddb0"),o("25f0"),o("b680"),o("d81d"),o("fb6a"),o("159b"),o("7db0"),o("a026")),d=o("c1df"),l=o.n(d),u=o("8caa"),m=Object(c["b"])((function(){return Promise.resolve().then(o.bind(null,"2dd7"))})),p=Object(c["b"])((function(){return o.e("chunk-52cb3562").then(o.bind(null,"16f2"))})),_=Object(c["b"])((function(){return o.e("chunk-32dac439").then(o.bind(null,"12b1"))})),f=Object(c["b"])((function(){return o.e("chunk-52cb3562").then(o.bind(null,"5f19"))})),g={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,o){return t.netseaPublication(e)}))).then((function(e){t.$message.destroy()}))},netseaPublication:function(e,t){var o=this,a=this,n={};return n.good_id=e.good_id,n.app_key=this.netseaShop.app_key,a.netseaGenereArray[e.good_id]={netseaGenereList:[],netseaGenereList1:[],netseaGenereList2:[]},Object(u["d"])(n).then((function(t){if(0===t.code){a.netseaGoodInfoList[e.good_id]=t.product_info,a.getParentCategory(a.netseaGoodInfoList[e.good_id].category_id,e.good_id),a.imageSizeArr={};var n=[];return a.netseaGoodInfoList[e.good_id].images&&a.netseaGoodInfoList[e.good_id].images.map((function(e){e.image_url&&n.push(a.getImageSizeInKB(e.image_url).then((function(t){return a.imageSizeArr[e.image_no]=t.toFixed(2),t})))})),Promise.all(n).then((function(){a.imageSizeArr=Object.assign({},a.imageSizeArr)})),a.netseaGoodInfoList[e.good_id].publish_period_start&&(a.netseaGoodInfoList[e.good_id].publish_period_start=new Date(1e3*a.netseaGoodInfoList[e.good_id].publish_period_start).toISOString().slice(0,19)),a.netseaGoodInfoList[e.good_id].publish_period_end&&(a.netseaGoodInfoList[e.good_id].publish_period_end=new Date(1e3*a.netseaGoodInfoList[e.good_id].publish_period_end).toISOString().slice(0,19)),a.netseaGoodInfoList[e.good_id].product_discout?(a.netProductDiscountCodeList[e.good_id]=!0,a.netseaGoodInfoList[e.good_id].product_discount.product_discount_period_start=a.netseaGoodInfoList[e.good_id].product_discount.product_discount_period_start?new Date(1e3*a.netseaGoodInfoList[e.good_id].product_discount.product_discount_period_start).toISOString().slice(0,19):"",a.netseaGoodInfoList[e.good_id].product_discount.product_discount_period_end=a.netseaGoodInfoList[e.good_id].product_discount.product_discount_period_end?new Date(1e3*a.netseaGoodInfoList[e.good_id].product_discount.product_discount_period_end).toISOString().slice(0,19):""):(a.netProductDiscountCodeList[e.good_id]=!1,a.netseaGoodInfoList[e.good_id].product_discount={product_discount_rate:"",product_discount_period_start:"",product_discount_period_end:""}),a.app_key=o.netseaShop.app_key,a.getNetSeaGenere(0,0,e.good_id),a.$set(o,"netseaGoodInfoList",Object.assign({},a.netseaGoodInfoList)),o.netseaShop.loading=!1,t}}))},getParentCategory:function(e,t){var o=this,a=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(a){if(0===a.p_cat_id)o.categoryHierarchyList[t].level1=a;else{var n=e.data.find((function(e){return e.cat_id===a.p_cat_id}));n&&0===n.p_cat_id?o.categoryHierarchyList[t].level2=a:o.categoryHierarchyList[t].level3=a}})),o.firstCatId[t]=o.categoryHierarchyList[t].level1.cat_id,o.secondCatId[t]=o.categoryHierarchyList[t].level2.cat_id,a.getNetSeaGenere(o.firstCatId[t],1,t),o.thirdCatId[t]=o.categoryHierarchyList[t].level3.cat_id,a.getNetSeaGenere(o.secondCatId[t],2,t),o.$set(o,"categoryHierarchyList",Object.assign({},o.categoryHierarchyList)),o.$set(o,"firstCatId",Object.assign({},o.firstCatId)),o.$set(o,"secondCatId",Object.assign({},o.secondCatId)),o.$set(o,"thirdCatId",Object.assign({},o.thirdCatId)))}))},getNetSeaGenere:function(e,t,o){var a=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[o].netseaGenereList=e.data;break;case 1:n.netseaGenereArray[o].netseaGenereList1=e.data;break;case 2:n.netseaGenereArray[o].netseaGenereList2=e.data;break}return a.$set(a,"netseaGenereArray",Object.assign({},a.netseaGenereArray)),e}))},selectNetSeaGenre:function(e,t,o){var a=this,n={};switch(t){case 0:a.netseaGenereArray[o].netseaGenereList1=[],a.netseaGenereArray[o].netseaGenereList2=[],a.netseaGenereArray[o].netseaGenereList3=[],a.secondCatId[o]=0,a.thirdCatId[o]=0,n=a.netseaGenereArray[o].netseaGenereList.find((function(t){return t.cat_id===e}));break;case 1:a.netseaGenereArray[o].netseaGenereList2=[],a.netseaGenereArray[o].netseaGenereList3=[],a.thirdCatId[o]=0,n=a.netseaGenereArray[o].netseaGenereList1.find((function(t){return t.cat_id===e}));break;case 2:a.netseaGenereArray[o].netseaGenereList3=[],n=a.netseaGenereArray[o].netseaGenereList2.find((function(t){return t.cat_id===e}));break}n&&(0===n.p_cat_id?a.getNetSeaGenere(n.cat_id,1,o).then((function(e){a.netseaGenereArray[o].netseaGenereList&&(a.secondCatId[o]=a.netseaGenereArray[o].netseaGenereList1[0].cat_id,a.getNetSeaGenere(a.secondCatId[o],2,o).then((function(e){a.netseaGenereArray[o].netseaGenereList1&&(a.thirdCatId[o]=a.netseaGenereArray[o].netseaGenereList2[0].cat_id,a.netseaGoodInfoList[o].category_id=a.thirdCatId[o])})))})):n.p_cat_id===a.firstCatId[o]?a.getNetSeaGenere(n.cat_id,2,o).then((function(e){a.netseaGenereArray[o].netseaGenereList2&&(a.thirdCatId[o]=a.netseaGenereArray[o].netseaGenereList2[0].cat_id,a.netseaGoodInfoList[o].category_id=a.thirdCatId[o])})):n.p_cat_id===a.secondCatId[o]&&(a.thirdCatId[o]=n.cat_id,a.secondCatId[o]&&(a.netseaGoodInfoList[o].category_id=a.thirdCatId[o])))},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 o=[];this.goodsIds.map((function(e,a){t.$refs["netseaGoodInfoForm"+e]&&t.$refs["netseaGoodInfoForm"+e][0]&&o.push(new Promise((function(o,a){try{t.$refs["netseaGoodInfoForm"+e][0].validate((function(n,s){n?o("success"):Object.keys(s)&&Object.keys(s)[0]&&a(new Error(t.$t("view.item.list.good_id")+e+s[Object.keys(s)[0]][0].message))}))}catch(n){a(new Error(n))}})))})),Promise.all(o).then((function(o){var a=[],n=e._.map(e.netseaGoodInfoList,(function(o,n){var s={};if(s.data=JSON.parse(JSON.stringify(o)),o.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),o.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"}a.push(s.data)}));n=t._.compact(n),a.length>0&&0===n.length?Object(u["f"])({data:a,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 o=0,a=0;a<e.length;a++)o+=1;return o<=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,o=this;this._.map(this.netseaGoodInfoList,(function(a,n){"itemInfo"===e&&t.TemplateData["product_ship_setting_code"]&&(o.netProductDiscountCodeList[n]=!0,o.netseaGoodInfoList[n].product_discount=o.TemplateData.product_discount),o.plDataFields[e].map((function(e){o.netseaGoodInfoList[n][e]=o.TemplateData[e]}))})),this.$set(this,"netseaGoodInfoList",Object.assign({},this.netseaGoodInfoList))}},components:{AntModal:m,goodsIdList:p,leftTabItem:_,kandengGoodsOne:f}},h=Object(s["a"])({},g),v=h,b=o("2877"),y=Object(b["a"])(v,a,n,!1,null,null,null);t["default"]=y.exports},"963d":function(e,t,o){"use strict";o("09ff")},ac2a:function(e,t,o){"use strict";o.r(t);var a=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=o("5530"),r=(o("d3b7"),o("2f62")),i=o("7ded"),c=o("04b3"),d=o("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=(o("963d"),o("2419"),o("2877")),p=Object(m["a"])(u,a,n,!1,null,"4a5236c2",null);t["default"]=p.exports},aee6:function(e,t,o){"use strict";o.r(t);var a=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=o("5530"),r=o("c7eb"),i=o("1da1"),c=(o("d3b7"),o("3ca3"),o("ddb0"),o("d81d"),o("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(o,a){var n;return Object(r["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return n={good_id:o},t.next=3,Object(c["p"])(n);case 3:e.list[o]=t.sent;case 4:case"end":return t.stop()}}),t)})));return function(e,o){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=o("2877"),p=Object(m["a"])(u,a,n,!1,null,null,null);t["default"]=p.exports},d936:function(e,t,o){"use strict";o("92c5")},da84e:function(e,t,o){"use strict";o.r(t);var a=function(){var e=this,t=e._self._c;return t("div",{ref:"portaletDiv",staticClass:"module module01"},[e._m(0),t("a-icon",{staticClass:"card-icon",attrs:{type:"dashboard"}})],1)},n=[function(){var e=this,t=e._self._c;return t("div",{staticClass:"card"},[t("h3",[e._v("访问量")]),t("div",{staticClass:"card-inner"},[t("span",{staticClass:"card-number"},[e._v("8,846")]),t("div",{staticClass:"card-chart"},[t("div",{staticClass:"chart_sm"},[t("img",{attrs:{src:o("576e"),width:"100%"}})])])])])}],s={created:function(){},mounted:function(){this.$emit("setHeight",this.$refs.portaletDiv.offsetHeight)},watch:{},components:{},methods:{}},r=s,i=(o("2f84"),o("2877")),c=Object(i["a"])(r,a,n,!1,null,"5f97037d",null);t["default"]=c.exports}}]);
|
|
Binary file
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-48de0fec"],{"0280":function(t,e,a){"use strict";a.r(e);a("b0c0");var i=function(){var t=this,e=t._self._c;return e("span",{staticClass:"yahooPath"},[e("a-icon",{attrs:{type:"plus"},on:{click:t.openPathList}}),e("ant-modal",{attrs:{visible:t.show,"modal-title":t.formTitle,"adjust-size":!0,modalHeight:t.isMobile?"80vh":"680",modalWidth:t.isMobile?"100vw":"900"},on:{cancel:t.cancelPathList,ok:t.cancelPathList}},[e("div",{attrs:{slot:"content"},slot:"content"},[e("div",[e("a-button",{on:{click:t.openFormInit}},[t._v(t._s(t.$t("components.yahooPathAdd.addbtn")))])],1),t.pathList?e("a-tree",{attrs:{replaceFields:{title:"name",key:"page_key",slot:"title",display:"display",hidden_page_flag:"hidden_page_flag",parentName:"parentName",parent_page_key:"parent_page_key"},treeData:t.pathList,loadedKeys:t.loadKeys,blockNode:!0,loadData:t.loadPath},on:{expand:t.expandNode},scopedSlots:t._u([{key:"title",fn:function(a,i){return[e("div",{staticClass:"pageKeyItem",staticStyle:{color:"#000",display:"flex","align-items":"center"}},[t._v(" "+t._s(a.name)+" "),e("a-icon",{staticStyle:{"margin-left":"15px"},attrs:{type:"edit"},on:{click:function(e){return t.handleUpdate({page_key:a.page_key,name:a.name,display:a.display,parent_page_key:a.parent_page_key,hidden_flag:a.hidden_page_flag,parentName:a.parentName},a,i)}}})],1)]}}],null,!1,2555784184)}):t._e()],1),e("div",{attrs:{slot:"footer"},slot:"footer"},[e("a-button",{on:{click:t.cancelPathList}},[t._v(t._s(t.$t("view.test.list.form.button.cancel")))])],1)]),e("ant-modal",{attrs:{visible:t.open,"modal-title":t.formTitle1,"adjust-size":!0,modalHeight:t.isMobile?"80vh":"680",modalWidth:t.isMobile?"100vw":"900"},on:{cancel:t.cancelForm,ok:t.ok}},[e("div",{attrs:{slot:"content"},slot:"content"},[e("a-form",[e("a-form-item",{attrs:{label:t.$t("components.yahooPathAdd.form.name")}},[e("a-input",{attrs:{placeholder:""},model:{value:t.form.name,callback:function(e){t.$set(t.form,"name",e)},expression:"form.name"}})],1),e("a-form-item",{attrs:{label:t.$t("components.yahooPathAdd.form.display")}},[e("a-select",{model:{value:t.form.display,callback:function(e){t.$set(t.form,"display",e)},expression:"form.display"}},[e("a-select-option",{attrs:{value:"0"}},[t._v("私有")]),e("a-select-option",{attrs:{value:"1"}},[t._v("共有")])],1)],1),e("a-form-item",{attrs:{label:t.$t("components.yahooPathAdd.form.hiddenFlag")}},[e("a-select",{model:{value:t.form.hidden_flag,callback:function(e){t.$set(t.form,"hidden_flag",e)},expression:"form.hidden_flag"}},[e("a-select-option",{attrs:{value:"0"}},[t._v("普通页面")]),e("a-select-option",{attrs:{value:"1"}},[t._v("隐藏页面")])],1)],1),e("a-form-item",{attrs:{label:t.$t("components.yahooPathAdd.form.parentPageKey")}},[e("div",{attrs:{color:{color:t.form.page_key?"#ccc":"#000"}},on:{click:t.openPathSelect}},[e("a-icon",{attrs:{type:"plus"}}),t._v(t._s(t.parentName)+" ")],1)])],1)],1)]),e("ant-modal",{attrs:{visible:t.visable,"modal-title":t.formTitle2,"adjust-size":!0,modalHeight:t.isMobile?"80vh":"680",modalWidth:t.isMobile?"100vw":"900"},on:{cancel:t.cancelPathSelect,ok:t.cancelPathSelect}},[e("div",{attrs:{slot:"content"},slot:"content"},[t.pathList?e("a-tree",{attrs:{replaceFields:{title:"name",key:"page_key",slot:"title"},treeData:t.pathList,loadedKeys:t.loadKeys,loadData:t.loadPath,checkable:"",checkStrictly:!0,checkedKeys:t.pathKeys},on:{check:t.onCheck},scopedSlots:t._u([{key:"title",fn:function(a){var i=a.name;return[e("div",{staticClass:"pageKeyItem",staticStyle:{color:"#000",display:"flex","align-items":"center"}},[t._v(" "+t._s(i)+" ")])]}}],null,!1,1425135114)}):t._e()],1),e("div",{attrs:{slot:"footer"},slot:"footer"},[e("a-button",{on:{click:t.cancelPathSelect}},[t._v(t._s(t.$t("view.test.list.form.button.cancel")))])],1)])],1)},o=[],r=a("5530"),s=a("c7eb"),n=a("1da1"),l=a("2909"),c=(a("d81d"),a("99af"),a("2dd7")),d=a("dcb0"),u=a("2f62"),p={name:"yahooPathAdd",components:{AntModal:c["default"]},data:function(){return{open:!1,pathList:[],form:{},visable:!1,show:!1,pathKeys:[],loadKeys:[],parentName:""}},computed:Object(r["a"])({},Object(u["c"])(["shopId","isMobile"])),props:{sellerId:{type:String,default:""}},created:function(){this.formTitle=this.$t("components.yahooPathAdd.form.name"),this.formTitle1=this.$t("components.yahooPathAdd.form.name.add.title"),this.formTitle2=this.$t("components.yahooPathAdd.form.name.select.title"),this.getPathList()},methods:{openAddForm:function(){this.open=!0},cancelForm:function(){this.open=!1},openPathList:function(){this.show=!0},cancelPathList:function(){this.show=!1},getPathList:function(t,e){var a=this,i={seller_id:this.sellerId};return t&&(i.page_key=t),Object(d["j"])(i).then((function(i){return i.data.results&&i.data.results.length>0?i.data.results?(i.data.results.map((function(a){a.title&&(a.label=a.name,a.isLeaf=!1),a.isLeaf=!1,a.label=a.name,a.parentName=e,t&&(a.parent_page_key=t)})),"0"!==i.data.total_results_available?t?i.data.results:(a.pathList=Object(l["a"])(i.data.results),a.pathList):[]):void 0:null}))},loadPath:function(t,e){var a=this;return Object(n["a"])(Object(s["a"])().mark((function e(){var i;return Object(s["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return a.loadKeys.push(t.eventKey),a.parentName=t.label,e.next=4,a.getPathList(t.eventKey,t.label);case 4:i=e.sent,i&&i.length&&(t.dataRef.children=i),a.pathList=Object(l["a"])(a.pathList);case 7:case"end":return e.stop()}}),e)})))()},loadEvent:function(t){},onCheck:function(t,e){t.checked.length?this.pathKeys=[t.checked[t.checked.length-1]]:this.pathKeys=[],this.pathKeys.length?this.form.parent_page_key=this.pathKeys[0]:this.form.parent_page_key="",this.parentName=e.node.label},handleUpdate:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.form=t,this.pathKeys=[],this.parentName=t.parentName,this.formTitle1=this.$t("components.yahooPathAdd.form.name.edit.title",{name:t.name}),this.openAddForm()},expandNode:function(t){var e=[];t.map((function(t){e.push(t)})),this.loadKeys=[].concat(e)},ok:function(){var t=this;this.form.seller_id=this.sellerId,Object(d["h"])(this.form).then((function(e){0===e.code&&(t.$message.success(t.$t("components.yahooPathAdd.success")),t.$emit("ok"),t.loadKeys=[],t.pathKeys=[],t.getPathList())}))},openPathSelect:function(){this.form.page_key||(this.visable=!0)},cancelPathSelect:function(){this.visable=!1},openFormInit:function(){this.parentName="",this.form=Object.assign({},{seller_id:this.sellerId}),this.pathKeys=[],this.formTitle1=this.$t("components.yahooPathAdd.form.name.add.title"),this.openAddForm()}}},m=Object(r["a"])({},p),_=m,h=(a("5ea1"),a("2877")),g=Object(h["a"])(_,i,o,!1,null,null,null);e["default"]=g.exports},"0a49":function(t,e,a){},"0c6d":function(t,e,a){"use strict";a.r(e);var i=function(){var t=this,e=t._self._c;return e("span",[t.complaint?e("a-button",{attrs:{type:"link"},on:{click:t.openModal}},[t._v(t._s(t.workOrderId?t.$t("view.workOrder.handle.button"):t.$t("components.complaint.detail.btn")))]):t._e(),e("ant-modal",{attrs:{visible:t.open,"modal-title":t.formTitle,"adjust-size":!0,modalHeight:t.isMobile?"500":"580",modalWidth:t.isMobile?"600":"800"},on:{cancel:t.cancel}},[t.complaint&&t.open?e("div",{attrs:{slot:"content"},slot:"content"},[t.orderDetailModal?e("order-detail",{ref:"OrderDetail",on:{close:function(e){t.orderDetailModal=!1}}}):t._e(),e("previewImg",{attrs:{previewVisible:t.previewImgShow,previewImage:t.preImg},on:{"update:previewVisible":function(e){t.previewImgShow=e},"update:preview-visible":function(e){t.previewImgShow=e}}}),e("a-form",{attrs:{"label-col":t.labelCol,"wrapper-col":t.wrapperCol},model:{value:t.complaint,callback:function(e){t.complaint=e},expression:"complaint"}},[t.workOrderList&&t.workOrderList.length>1?e("a-form-item",{attrs:{label:t.$t("components.complaint.detail.currentWorkOrder"),prop:"work_order_id"}},[e("a-select",{staticStyle:{width:"100%"},attrs:{"default-value":t.complaint.work_order_id},on:{change:t.switchWorkOrder}},t._l(t.workOrderList,(function(a){return e("a-select-option",{key:a.work_order_id,attrs:{value:a.work_order_id}},[t._v(t._s(a.details))])})),1)],1):t._e(),2==t.complaint.work_order_type&&t.complaint.complaint_ref_id&&1==t.shop_id?e("a-form-item",{attrs:{label:t.$t("procure.list.order.order_id"),prop:"faq_id"}},[e("a",{on:{click:function(e){return t.handleOrderDetail()}}},[t._v(t._s(t.complaint.complaint_ref_id))])]):t._e(),3==t.complaint.work_order_type&&t.complaint.complaint_ref_id&&1==t.shop_id?e("a-form-item",{attrs:{label:t.$t("view.supply.list.order.id"),prop:"faq_id"}},[e("a",{on:{click:function(e){return t.handleOrderDetail()}}},[t._v(t._s(t.complaint.complaint_ref_id))])]):t._e(),e("a-form-item",{attrs:{label:t.$t("components.complaint.faqId"),prop:"faq_id"}},[e("faqType",{attrs:{value:t.complaint.faq_id,disabled:""},on:{"update:value":function(e){return t.$set(t.complaint,"faq_id",e)}}})],1),e("a-form-item",{attrs:{label:t.$t("components.complaint.detailImages"),prop:"detail_images"}},[e("div",{staticStyle:{display:"flex","flex-wrap":"wrap"}},[t.complaint.detail_image_1?e("img",{staticStyle:{height:"80px","margin-right":"10px","margin-bottom":"10px",cursor:"pointer"},attrs:{src:t.complaint.detail_image_1},on:{click:function(e){return t.previewImage(t.complaint.detail_image_1)}}}):t._e(),t.complaint.detail_image_2?e("img",{staticStyle:{height:"80px","margin-right":"10px","margin-bottom":"10px",cursor:"pointer"},attrs:{src:t.complaint.detail_image_2},on:{click:function(e){return t.previewImage(t.complaint.detail_image_2)}}}):t._e(),t.complaint.detail_image_3?e("img",{staticStyle:{height:"80px","margin-right":"10px","margin-bottom":"10px",cursor:"pointer"},attrs:{src:t.complaint.detail_image_3},on:{click:function(e){return t.previewImage(t.complaint.detail_image_3)}}}):t._e(),t.complaint.detail_image_4?e("img",{staticStyle:{height:"80px","margin-right":"10px","margin-bottom":"10px",cursor:"pointer"},attrs:{src:t.complaint.detail_image_4},on:{click:function(e){return t.previewImage(t.complaint.detail_image_4)}}}):t._e(),t.complaint.detail_image_5?e("img",{staticStyle:{height:"80px","margin-right":"10px","margin-bottom":"10px",cursor:"pointer"},attrs:{src:t.complaint.detail_image_5},on:{click:function(e){return t.previewImage(t.complaint.detail_image_5)}}}):t._e()])]),e("a-form-item",{attrs:{label:t.$t("components.complaint.details"),prop:"details"}},[e("div",{staticStyle:{width:"100%"}},[e("div",{staticStyle:{"min-height":"32px","word-break":"break-word",display:"flex","align-content":"center","align-items":"center","flex-wrap":"wrap"}},[t._v(" "+t._s(t.complaint.details)+" ")])])]),t.complaint.results?e("div",{staticStyle:{"margin-bottom":"20px"}},[e("a-list",{attrs:{"item-layout":"horizontal","data-source":t.complaint.results},scopedSlots:t._u([{key:"renderItem",fn:function(a,i){return e("a-list-item",{},[e("a-list-item-meta",[e("div",{attrs:{slot:"title"},slot:"title"},[e("div",{key:i,style:{display:"flex",justifyContent:"space-between",paddingTop:"15px",borderTop:0===i?" 1px solid #e8e8e8":"0"}},[e("div",[e("supply-info",{attrs:{shopId:a.shop_id===t.complaint.executor_shop_id?t.complaint.executor_shop_id:t.complaint.executee_shop_id}})],1),e("div",[e("div",[t._v(t._s(a.create_time))])])])]),e("div",{attrs:{slot:"description"},slot:"description"},[e("div",{domProps:{innerHTML:t._s(a.execution_result)}})])])],1)}}],null,!1,2466928742)})],1):t._e(),t.complaint&&t.complaint.status?e("a-form-item",{attrs:{label:t.$t("components.complaint.status"),prop:"status"}},[e("div",{staticStyle:{"text-align":"right","margin-bottom":"10px","min-height":"32px","word-break":"break-word",display:"flex","align-content":"center","align-items":"center","flex-wrap":"wrap"}},[e("span",{staticStyle:{"margin-right":"10px"}},[t._v(" "+t._s(t.$t("WorkOrder."+t.complaint.status)))]),"FINISHED"!=t.complaint.status?e("endingWorkOrder",{attrs:{workOrderId:t.complaint.work_order_id},on:{refresh:t.openModal}}):t._e()],1)]):t._e(),t.complaint&&"FINISHED"!=t.complaint.status?e("div",[e("commitWorkOrder",{ref:"commitWorkOrder",attrs:{isFormBtn:!1,workOrderId:t.complaint.work_order_id},on:{ok:t.openModal}})],1):t._e()],1)],1):t._e(),e("div",{attrs:{slot:"footer"},slot:"footer"},[e("a-button",{on:{click:t.cancel}},[t._v(t._s(t.$t("components.complaint.detail.cancel")))]),t.complaint&&"FINISHED"!=t.complaint.status?e("a-button",{attrs:{type:"primary"},on:{click:t.submit}},[t._v(t._s(t.$t("view.workorder.handle.submit")))]):t._e()],1)])],1)},o=[],r=a("5530"),s=(a("d3b7"),a("3ca3"),a("ddb0"),a("4de4"),a("255f")),n=a("2dd7"),l=a("2f62"),c=a("a026"),d=a("8eb3"),u=a("0a56"),p=Object(c["b"])((function(){return a.e("chunk-03e1387e").then(a.bind(null,"7bb9"))})),m=Object(c["b"])((function(){return a.e("chunk-07a0f50c").then(a.bind(null,"95fb"))})),_=Object(c["b"])((function(){return Promise.all([a.e("lang-package~4e34e71e"),a.e("chunk-fa04ce72")]).then(a.bind(null,"c03e"))})),h=Object(c["b"])((function(){return a.e("chunk-48de0fec").then(a.bind(null,"dc25"))})),g={name:"ComplaintDetail",data:function(){return{complaint:null,open:!1,formTitle:"",labelCol:{span:24},wrapperCol:{span:20},workOrderList:[],previewImgShow:!1,preImg:"",orderDetailModal:!1}},props:{orderId:{type:String,default:""},workOrderId:{type:String,default:""}},created:function(){this.formTitle=this.$t("components.complaint.detail.modal.title"),this.workOrderId?this.getWorkOrder():this.getComplaint()},watch:{orderId:function(t,e){this.getComplaint()}},methods:{getComplaint:function(){var t=this;Object(s["f"])({complaint_ref_id:this.orderId}).then((function(e){e.list&&e.list.length>0&&(t.workOrderList=e.list,t.complaint=e.list[e.list.length-1])}))},getWorkOrder:function(){var t=this;Object(s["c"])({work_order_id:this.workOrderId}).then((function(e){t.complaint=e}))},cancel:function(){this.open=!1},openModal:function(){this.open=!0,this.workOrderId?this.getWorkOrder():this.getComplaint()},switchWorkOrder:function(t){var e=this.workOrderList.filter((function(e){if(e.work_order_id===t)return e}));e&&e.length>0&&(this.complaint=Object.assign({},e[0]))},previewImage:function(t){this.preImg=t,this.previewImgShow=!0},submit:function(){this.$refs.commitWorkOrder.backChecked()},handleOrderDetail:function(){var t=this,e={};this.complaint.work_order_type,e.order_id=this.complaint.complaint_ref_id,this.orderDetailModal=!0,this.$nextTick((function(){return t.$refs.OrderDetail.handleOrderDetail(e)}))}},computed:Object(r["a"])({},Object(l["c"])(["shopId","isMobile"])),components:{AntModal:n["default"],faqType:p,endingWorkOrder:m,commitWorkOrder:_,supplyInfo:d["default"],previewImg:h,OrderDetail:u["default"]}},f=Object(r["a"])({},g),v=f,k=a("2877"),y=Object(k["a"])(v,i,o,!1,null,null,null);e["default"]=y.exports},"191a":function(t,e,a){"use strict";a("bd92")},"1d24":function(t,e,a){"use strict";a("0a49")},"23bd":function(t,e,a){},"2ab0":function(t,e,a){},5881:function(t,e,a){"use strict";a.r(e);var i=function(){var t=this,e=t._self._c;return e("a-drawer",{attrs:{width:"750px",placement:"right",closable:!1,visible:t.openView},on:{close:t.onCloseView}},[e("a-descriptions",{staticStyle:{"word-break":"break-all","word-wrap":"break-word"},attrs:{title:"操作信息",layout:"vertical",column:3,bordered:""}},[e("a-descriptions-item",{attrs:{label:"操作模块"}},[t._v(" "+t._s(t.form.module)+" ")]),e("a-descriptions-item",{attrs:{label:"登录信息"}},[t._v(" #"+t._s(t.form.member_id)+" / "+t._s(t.form.member_name)+" / "+t._s(t.form.ip)+" / "+t._s(t.form.region)+" ")]),e("a-descriptions-item",{attrs:{label:"请求方式"}},[t._v(" "+t._s(t.form.method)+" ")]),e("a-descriptions-item",{attrs:{label:"请求地址"}},[t._v(" "+t._s(t.form.url)+" ")]),e("a-descriptions-item",{attrs:{label:"操作方法",span:2}},[e("div",{staticStyle:{"word-break":"break-all"}},[t._v(t._s(t.form.method))])])],1),e("a-divider"),e("a-descriptions",{staticStyle:{"word-break":"break-all","word-wrap":"break-word"},attrs:{title:"接口信息",layout:"vertical",column:3,bordered:""}},[e("a-descriptions-item",{attrs:{label:"请求头部",span:3}},[t._v(" "+t._s(t.form.header_data)+" ")]),e("a-descriptions-item",{attrs:{label:"GET参数",span:3}},[t._v(" "+t._s(t.form.get_data)+" ")]),e("a-descriptions-item",{attrs:{label:"POST参数",span:3}},[t._v(" "+t._s(t.form.post_data)+" ")]),e("a-descriptions-item",{attrs:{label:"操作状态"}},[0===t.form.error_code?e("a-badge",{attrs:{status:"processing",text:"正常"}}):t._e(),0!==t.form.error_code?e("a-badge",{attrs:{status:"error",text:"失败"}}):t._e()],1),e("a-descriptions-item",{attrs:{label:"操作时间"}},[t._v(" "+t._s(t.parseTime(t.form.created_at))+" ")]),e("a-descriptions-item",{attrs:{label:"耗时"}},[t._v(" "+t._s(t.form.take_up_time)+"毫秒 ")]),e("a-descriptions-item",{attrs:{label:"回复信息"}},[t._v(" "+t._s(t.form.error_msg)+" ")]),0!==t.form.error_code?e("a-descriptions-item",{attrs:{label:"报错日志"}},[t._v(" "+t._s(t.form.error_data)+" ")]):t._e()],1),null!==t.form.logContent?e("a-divider"):t._e(),null!==t.form.logContent?e("a-descriptions",{staticStyle:{"word-break":"break-all","word-wrap":"break-word"},attrs:{title:"变更记录",layout:"vertical",column:3,bordered:""}},[e("a-descriptions-item",{attrs:{label:"请求ID",span:3}},[t._v(" "+t._s(t.form.req_id)+" ")]),e("a-descriptions-item",{attrs:{label:"变更情况",span:3}},[t._v(" 无 ")])],1):t._e()],1)},o=[],r={name:"ViewForm",props:{},data:function(){return{form:{},openView:!1}},filters:{},created:function(){},computed:{},watch:{},methods:{handleView:function(t){this.openView=!0,this.form=t},onCloseView:function(){this.openView=!1}}},s=r,n=a("2877"),l=Object(n["a"])(s,i,o,!1,null,null,null);e["default"]=l.exports},"5ea1":function(t,e,a){"use strict";a("a4d4")},"76f8":function(t,e,a){"use strict";a.r(e);var i=function(){var t=this,e=t._self._c;return e("div",[e("a-card",{staticClass:"procureList",staticStyle:{"margin-bottom":"10px"},attrs:{bordered:!1}},[e("div",{ref:"search",staticClass:"table-page-search-wrapper"},[e("a-form",{attrs:{labelCol:t.labelCol,wrapperCol:t.wrapperCol}},[e("a-row",{attrs:{type:"flex"}},[e("a-col",{attrs:{lg:7,xl:8,xxl:6}},[e("a-form-item",{attrs:{label:t.$t("view.purchaseOrder.list.purchaseId"),labelCol:{md:3,sm:8,lg:5},wrapperCol:{lg:14}}},[e("a-input",{attrs:{"allow-clear":""},model:{value:t.queryParam.purchase_id,callback:function(e){t.$set(t.queryParam,"purchase_id",e)},expression:"queryParam.purchase_id"}})],1)],1),e("a-col",{attrs:{lg:7,xl:8,xxl:6}},[e("a-form-item",{attrs:{label:t.$t("view.order.list.order_id"),labelCol:{md:3,sm:8,lg:5},wrapperCol:{lg:14}}},[e("a-input",{attrs:{"allow-clear":""},model:{value:t.queryParam.order_id,callback:function(e){t.$set(t.queryParam,"order_id",e)},expression:"queryParam.order_id"}})],1)],1),"admin"==t.roles[0]?e("a-col",{attrs:{lg:7,xl:8,xxl:6}},[e("a-form-item",{attrs:{label:t.$t("view.order.list.shop.seller")}},[e("div",{staticStyle:{display:"flex","align-items":"center"}},[e("seller-list",{on:{changeuser:t.changeUser}})],1)])],1):t._e(),e("a-col",{attrs:{lg:7,xl:8,xxl:6}},[e("a-form-item",{attrs:{label:t.$t("procure.list.order.assoc_order_id"),labelCol:{md:3,sm:8,lg:5},wrapperCol:{lg:14}}},[e("a-input",{attrs:{"allow-clear":""},model:{value:t.queryParam.assoc_order_id,callback:function(e){t.$set(t.queryParam,"assoc_order_id",e)},expression:"queryParam.assoc_order_id"}})],1)],1),e("a-col",{attrs:{lg:11,xl:5,md:16}},[e("a-form-item",{attrs:{label:t.$t("view.order.list.export.time_select_title"),labelCol:{md:3,sm:8,lg:3},wrapperCol:{lg:21}}},[e("a-range-picker",{staticStyle:{width:"auto"},attrs:{"show-time":""},model:{value:t.exportTime,callback:function(e){t.exportTime=e},expression:"exportTime"}},[e("template",{slot:"renderExtraFooter"})],2)],1)],1),e("a-col",{staticStyle:{"text-align":"right"},attrs:{lg:12,xl:8}},[e("span",{staticClass:"table-page-search-submitButtons buttonsTools"},[e("a-button",{attrs:{type:"primary"},on:{click:t.handleQuery}},[e("a-icon",{attrs:{type:"search"}}),t._v(t._s(t.$t("view.order.list.query.btn"))+" ")],1),e("a-button",{staticStyle:{"margin-left":"8px"},on:{click:t.resetQuery}},[e("a-icon",{attrs:{type:"redo"}}),t._v(t._s(t.$t("view.order.list.reset.btn"))+" ")],1),e("purchaseUpload",{staticStyle:{"margin-left":"8px"},on:{uploadBack:function(e){return t.resetQuery()}}}),e("ExcelData",{attrs:{page:t.queryParam.page_no,pageSize:t.queryParam.page_size,total:t.total_count,loadData:t.changeSize,fileName:t.$t("app.menus.left.procure.procureOrder")}})],1)])],1)],1)],1)]),e("a-card",{staticClass:"table-card",attrs:{bordered:!1}},[t.showFaHuoModal?e("fa-huo",{ref:"fauho",attrs:{isEdit:!1},on:{ok:t.getList,close:function(e){t.showFaHuoModal=!1}}}):t._e(),t.orderDetailModal?e("order-detail",{ref:"OrderDetail",on:{close:function(e){t.orderDetailModal=!1}}}):t._e(),e("advance-table",{attrs:{loading:t.loading,size:"middle","row-selection":null,"format-conditions":!1,columns:t.columns,"data-source":t.List,rowKey:"id",tableKey:"procure-order-table",expandedRowKeys:t.expandedRowKeys,pagination:{current:t.queryParam.page_no,pageSize:t.queryParam.page_size,total:t.total_count,showSizeChanger:!1,showLessItems:!1,showQuickJumper:!1,showTotal:function(e,a){return t.$t("view.order.list.table.total",{num:a[0]+"-"+a[1],total:e})},onChange:t.changeSize,onShowSizeChange:t.onShowSizeChange},scroll:{x:"100%"},title:t.$t("view.order.list.list")},scopedSlots:t._u([{key:"purchase_id",fn:function(a){var i=a.text,o=a.record;return e("span",{},[e("div",[1===o.is_self_take&&1!==o.is_virtual?e("div",{staticStyle:{display:"flex","margin-bottom":"2px"}},[e("div",{staticStyle:{width:"100px","text-align":"right","margin-right":"0.5rem"}}),e("a-tag",{attrs:{color:"green"}},[t._v(t._s(t.$t("view.procure.delivery.self_pickup")))])],1):t._e(),2===o.is_self_take&&1!==o.is_virtual?e("div",{staticStyle:{display:"flex","margin-bottom":"2px"}},[e("div",{staticStyle:{width:"100px","text-align":"right","margin-right":"0.5rem"}}),e("a-tag",{attrs:{color:"green"}},[t._v(t._s(t.$t("view.procure.delivery.drop_shipping")))])],1):t._e(),3===o.is_self_take&&1!==o.is_virtual?e("div",{staticStyle:{display:"flex","margin-bottom":"2px"}},[e("div",{staticStyle:{width:"100px","text-align":"right","margin-right":"0.5rem"}}),e("a-tag",{attrs:{color:"green"}},[t._v(t._s(t.$t("view.procure.delivery.hd")))])],1):t._e(),""!==o.assoc_order_id?e("div",{staticStyle:{display:"flex"}},[e("div",{staticStyle:{width:"100px","text-align":"right","margin-right":"0.5rem"}},[t._v(" "+t._s(t.$t("procure.list.order.assoc_order_id"))+" ")]),e("a-tag",{staticStyle:{cursor:"pointer"},attrs:{color:"cyan"},on:{click:function(){return t.copyToClipboard(o.assoc_order_id)}}},[t._v(" "+t._s(o.assoc_order_id)+" ")])],1):t._e(),e("div",{staticStyle:{display:"flex"}},[e("div",{staticStyle:{width:"100px","text-align":"right","margin-right":"0.5rem"}},[t._v(" "+t._s(t.$t("view.purchaseOrder.list.purchaseId"))+" ")]),e("div",{staticStyle:{width:"240px"}},[t._v(" "+t._s(i)+" "),e("copyText",{attrs:{text:i,tooltipText:t.$t("view.order.list.purchase_id.copy")}})],1)]),1==t.shop_id&&o.main_shop_order?e("div",{staticStyle:{display:"flex"}},[e("div",{staticStyle:{width:"100px","text-align":"right","margin-right":"0.5rem"}},[t._v(" "+t._s(t.$t("procure.list.order.order_id"))+" ")]),e("a",{staticStyle:{width:"240px"},on:{click:function(e){return t.handleOrderDetail(o)}}},[t._v(t._s(o.main_shop_order.order_id))]),e("copyText",{attrs:{text:o.main_shop_order.order_id,tooltipText:t.$t("view.order.list.order_id.copy")}})],1):t._e(),o.out_order_id&&o.sub_shop_id==t.shop_id?e("div",{staticStyle:{display:"flex"}},[e("div",{staticStyle:{width:"100px","text-align":"right","margin-right":"0.5rem"}},[t._v(" "+t._s(t.$t("procure.list.order.order_id"))+" ")]),e("a",{staticStyle:{width:"240px"},on:{click:function(e){return t.handleOrderDetail(o)}}},[t._v(t._s(o.out_order_id))]),e("copyText",{attrs:{text:o.out_order_id,tooltipText:t.$t("view.order.list.order_id.copy")}})],1):t._e(),e("div",{staticStyle:{display:"flex"}},[e("div",{staticStyle:{width:"100px","text-align":"right","margin-right":"0.5rem"}},[t._v(" "+t._s(t.$t("procure.list.order.createTime"))+" ")]),t._v(" "+t._s(o.create_time)+" ")]),1===o.is_self_take&&""!==o.logistics_company?e("div",{staticStyle:{display:"flex"}},[e("div",{staticStyle:{width:"100px","text-align":"right","margin-right":"0.5rem"}},[t._v(" "+t._s(t.$t("view.order.list.logistics_company"))+" ")]),t._v(" "+t._s(o.logistics_company)+" ")]):t._e(),1===o.is_self_take&&""!==o.logistics_number?e("div",{staticStyle:{display:"flex"}},[e("div",{staticStyle:{width:"100px","text-align":"right","margin-right":"0.5rem"}},[t._v(" "+t._s(t.$t("view.order.list.tracking_number"))+" ")]),t._v(" "+t._s(o.logistics_number)+" ")]):t._e(),1===o.is_self_take&&""!==o.miandan_url?e("div",{staticStyle:{display:"flex"}},[e("div",{staticStyle:{width:"100px","text-align":"right","margin-right":"0.5rem"}},[t._v(" "+t._s(t.$t("view.purchaseOrder.list.upload.voucher"))+" ")]),e("a",{attrs:{href:o.miandan_url,target:"_blank"}},[t._v(t._s(t.$t("view.purchaseOrder.list.upload.voucher.view")))])]):t._e(),1===t.shop_id?e("div",{staticStyle:{display:"flex"}},[e("div",{staticStyle:{width:"100px","text-align":"right","margin-right":"0.5rem"}},[t._v(" "+t._s(t.$t("view.order.detail.ship_from"))+" ")]),o.sub_shop_id?e("div",[e("supply-info",{attrs:{shopId:o.sub_shop_id}})],1):t._e()]):t._e(),e("div",{staticStyle:{display:"flex"}},[e("div",{staticStyle:{width:"100px","text-align":"right","margin-right":"0.5rem"}}),e("div",[1===o.is_virtual?e("a-tag",{attrs:{color:"#f50"}},[t._v(" "+t._s(t.$t("view.lockstock.log.lock.is_virtual.title"))+" ")]):t._e(),3===o.is_virtual?e("a-tag",{attrs:{color:"#87d068"}},[t._v(" "+t._s(t.$t("view.lockstock.log.use.lock.is_virtual.title"))+" ")]):t._e()],1)])])])}},{key:"status",fn:function(a){var i=a.text,o=a.record;return e("span",{},[e("div",["UNPAID"!==i&&"AFTER_SALE"!==i&&"REFUNDED"!==i?e("a",{on:{click:function(e){return t.openFahuo(o)}}},[t._v(" "+t._s(t.$t(i))+" ")]):e("span",[t._v(t._s(t.$t(i)))])])])}},{key:"items",fn:function(a){var i=a.text,o=a.record;return e("span",{},[o.items&&o.items.length?e("div",t._l(o.items,(function(a,r){return e("div",{key:o.purchase_id+"_"+o.id+"_"+r+(a?a.sku_id+"":""),staticStyle:{display:"flex","margin-bottom":"10px"}},[e("div",[e("a-avatar",{attrs:{shape:"square",size:85,src:a.img_url}})],1),e("div",{staticStyle:{"margin-left":"10px",flex:"1"}},[e("a-row",{attrs:{type:"flex"}},[e("a-col",{attrs:{flex:3}},[t._v(" "+t._s(a.title)+" ")])],1),e("a-row",{attrs:{type:"flex"}},[e("a-col",[t._v(" "+t._s((o.currency||"")+" "+a.price)+" ")]),e("a-col",{staticStyle:{"padding-left":"10px"},attrs:{flex:3}},[e("a-icon",{staticStyle:{"font-size":"10px","margin-right":"0","padding-right":"0"},attrs:{type:"close"}}),t._v(" "+t._s(a.num)+" ")],1)],1),e("a-row",{attrs:{type:"flex"}},[e("a-col",{attrs:{flex:3}},["string"==typeof a.sku_prop?e("span",[t._v(" "+t._s(a.sku_prop)+" ")]):e("span",t._l(a.sku_prop,(function(a,i){return e("div",{key:i},[e("span",[t._v(t._s(i)+":"+t._s(a))])])})),0)])],1),e("a-row",[e("a-col",{attrs:{flex:3}},[t._v(" "+t._s(t.$t("view.item.sku.barcode"))+" : "+t._s(a.barcode)+" ")]),e("a-col",{attrs:{flex:3}},[t._v(" "+t._s(t.$t("view.item.sku.out_id"))+" : "+t._s(a.out_id)+" ")]),e("a-col",{attrs:{flex:3}},[t._v(" "+t._s(t.$t("view.purchaseOrder.list.items.totalfee"))+" : "+t._s(o.currency+" "+a.payment)+" ")])],1),r<i.length-1?e("a-divider"):t._e()],1)])})),0):t._e()])}},{key:"payment",fn:function(a){var i=a.text,o=a.record;return e("span",{},[e("div",[t._v(t._s((o.currency||"")+" "+i))])])}},{key:"post_fee",fn:function(a){var i=a.text,o=a.record;return e("span",{},[e("div",[t._v(t._s((o.currency||"")+" "+i))])])}},{key:"paymemberInfo",fn:function(a){var i=a.record;return e("span",{},[e("a-row",[i.last_name&&""!==i.last_name?e("a-col",{attrs:{lg:24}},[t._v(" "+t._s(t.$t("view.order.detail.ship_last_name"))+" : "+t._s(i.last_name)+" ")]):t._e(),i.first_name&&""!==i.first_name?e("a-col",{attrs:{lg:24}},[t._v(" "+t._s(t.$t("view.order.detail.ship_first_name"))+" : "+t._s(i.first_name)+" ")]):t._e(),i.phone&&""!=i.phone?e("a-col",{attrs:{lg:24}},[t._v(" "+t._s(t.$t("view.order.detail.ship_phone"))+" : "+t._s(i.phone)+" ")]):t._e(),e("a-col",{attrs:{lg:24}},[t._v(" "+t._s(t.$t("view.order.detail.ship_country"))+" : "),e("fanyi-list",{attrs:{list:[i.country]}})],1),e("a-col",{attrs:{lg:24}},[t._v(" "+t._s(t.$t("view.order.detail.ship_state"))+" : "+t._s(i.state)+" ")]),e("a-col",{attrs:{lg:24}},[t._v(" "+t._s(t.$t("view.order.detail.ship_city"))+" : "+t._s(i.city)+" ")]),e("a-col",{attrs:{lg:24}},[t._v(" "+t._s(t.$t("view.order.detail.ship_street"))+" : "+t._s(i.street)+" ")]),e("a-col",{attrs:{lg:24}},[t._v(" "+t._s(t.$t("view.order.detail.ship_men"))+" : "+t._s(i.apartment)+" ")]),e("a-col",{attrs:{lg:24}},[t._v(" "+t._s(t.$t("view.order.detail.zipcode"))+" : "+t._s(i.zip_code)+" ")]),e("a-col",{attrs:{lg:24}},[e("a-button",{directives:[{name:"show",rawName:"v-show",value:"ORDER_WAIT_SHIP"===i.status,expression:"record.status === 'ORDER_WAIT_SHIP'"}],attrs:{type:"primary"},on:{click:function(e){return t.handleModifyShipping(i)}}},[t._v(" "+t._s(t.$t("view.system.resourcegroup.Update"))+" ")])],1)],1)],1)}},{key:"operation",fn:function(a){var i=a.record;return e("span",{},[t.shop_id!=i.sub_shop_id||"PAID"!=i.status&&"SHIPPED"!=i.status?t._e():e("procureApply",{attrs:{order:i},on:{okAftersale:t.getList}}),"UNPAID"==i.status&&t.shop_id==i.sub_shop_id?e("a-divider",{attrs:{type:"vertical"}}):t._e(),t.shop_id==i.sub_shop_id?e("complaint-form",{attrs:{refId:i.purchase_id,orderId:i.out_order_id&&i.sub_shop_id==t.shop_id?i.out_order_id:1==t.shop_id?i.main_shop_order.order_id:"",type:"procure"},on:{ok:t.handleQuery}}):t._e(),"UNPAID"==i.status&&t.shop_id==i.sub_shop_id?e("a-divider",{attrs:{type:"vertical"}}):t._e(),t.shop_id!=i.sub_shop_id||t.loading?t._e():e("complaintDetail",{attrs:{orderId:i.purchase_id,type:"procure"}}),"UNPAID"==i.status?e("a-divider",{attrs:{type:"vertical"}}):t._e(),"UNPAID"==i.status?e("a",{on:{click:function(e){return t.closeProcure(i)}}},[t._v(" "+t._s(t.$t("wechat.pay.setting.close"))+" ")]):t._e(),"AFTER_SALE"==i.status?e("a-divider",{attrs:{type:"vertical"}}):t._e(),"AFTER_SALE"==i.status?e("a",{on:{click:function(e){return t.cancelAfterSale(i)}}},[t._v(" "+t._s(t.$t("view.order.list.aftersale.cancel.btn"))+" ")]):t._e(),"UNPAID"==i.status?e("h5pay",{ref:"h5Pay"+i.purchase_id,attrs:{orderId:i.purchase_id},on:{paySuccess:t.getList}}):t._e(),1===i.is_self_take&&"PAID"==i.status?e("a-divider",{attrs:{type:"vertical"}}):t._e(),1!==i.is_self_take&&3!==i.is_self_take||"PAID"!=i.status?t._e():e("voucher-upload",{attrs:{"purchase-id":i.purchase_id,"shop-id":i.sub_shop_id},on:{success:t.getList}})],1)}}])},[e("div",{staticClass:"table-operations",attrs:{slot:"button"},slot:"button"},[e("div",[1!==t.shop_id?e("autoPurchasePay"):t._e(),1!==t.shop_id?e("recharge-main-shop",{staticStyle:{"margin-right":"10px"},attrs:{rechargeVisible:!0}}):t._e(),1!==t.shop_id?e("procureAdd",{ref:"procureAdd",attrs:{type:"goods"},on:{backList:t.getList}}):t._e()],1)])])],1)],1)},o=[],r=a("5530"),s=a("bdcb"),n=Object(r["a"])({},s["default"]),l=n,c=(a("191a"),a("2877")),d=Object(c["a"])(l,i,o,!1,null,null,null);e["default"]=d.exports},"77c96":function(t,e,a){"use strict";a.r(e);var i=function(){var t=this,e=t._self._c;return e("div",[e("a-card",{staticClass:"orderList",staticStyle:{"margin-bottom":"10px"},attrs:{bordered:!1}},[e("div",{ref:"search",staticClass:"table-page-search-wrapper"},[e("a-form",{attrs:{labelCol:t.labelCol,wrapperCol:t.wrapperCol}},[e("a-row",{attrs:{gutter:1,type:"flex"}},[e("a-col",{attrs:{xxl:6,xl:8,lg:8}},[e("a-form-item",{attrs:{label:t.$t("view.order.detail.item")}},[e("good-list",{staticStyle:{width:"100%"},attrs:{type:"radio"},on:{changeitem:t.changeItem}})],1)],1),e("a-col",{attrs:{xxl:6,xl:8,lg:8,md:16}},[e("a-form-item",{attrs:{label:t.$t("view.order.list.export.time_select_title"),labelCol:{md:3,sm:8,lg:4},wrapperCol:{lg:20}}},[e("a-range-picker",{staticStyle:{width:"auto"},attrs:{"show-time":""},model:{value:t.exportTime,callback:function(e){t.exportTime=e},expression:"exportTime"}},[e("template",{slot:"renderExtraFooter"})],2)],1)],1),e("a-col",{attrs:{xxl:12,xl:7,lg:8}},[e("span",{staticClass:"table-page-search-submitButtons buttonsTools",staticStyle:{"justify-content":"end",display:"flex"}},[e("a-button",{attrs:{type:"primary"},on:{click:t.handleQuery}},[e("a-icon",{attrs:{type:"search"}}),t._v(t._s(t.$t("view.order.list.query.btn"))+" ")],1),e("a-button",{staticStyle:{"margin-left":"8px"},on:{click:t.resetQuery}},[e("a-icon",{attrs:{type:"redo"}}),t._v(t._s(t.$t("view.order.list.reset.btn"))+" ")],1),e("ExcelData",{attrs:{page:t.queryParam.page,pageSize:t.queryParam.limit,total:t.total_count,loadData:t.changeSize,fileName:t.$t("app.menus.left.supply.supplyOrder")}})],1)])],1),e("a-row",{attrs:{gutter:1,type:"flex"}},[1===t.shopId?e("a-col",{attrs:{xxl:6,lg:8}},[e("a-form-item",{attrs:{label:t.$t("view.order.list.shop.seller")}},[e("div",{staticStyle:{display:"flex","align-items":"center",width:"100%"}},[e("seller-list",{on:{changeuser:t.changeUser}})],1)])],1):t._e(),e("a-col",{attrs:{xxl:6,lg:8,md:16}},[1===t.shopId&&t.userId?e("a-form-item",{attrs:{label:t.$t("view.order.list.shop"),labelCol:{md:3,sm:8,lg:4},wrapperCol:{lg:20}}},[e("shop-select",{ref:"shopSelect",attrs:{userId:t.userId},on:{change:t.changeShop}})],1):t._e()],1),e("a-col",{attrs:{lg:8}})],1)],1)],1)]),e("div",[t.showReviewModal?e("review-list",{ref:"ReviewList",on:{close:function(e){t.showReviewModal=!1}}}):t._e(),t.orderDetailModal?e("order-detail",{ref:"OrderDetail",on:{close:function(e){t.orderDetailModal=!1}}}):t._e(),t.showFaHuoModal?e("review-list2",{ref:"ReviewList2",attrs:{mailingMode:2},on:{ok:t.getList,close:function(e){t.showFaHuoModal=!1}}}):t._e(),t.showInsureModal?e("insure-list",{ref:"InsureList",on:{ok:t.getList,close:function(e){t.showInsureModal=!1}}}):t._e(),t.showModifyShipping?e("modify-shipping",{ref:"ModifyShipping",on:{ok:t.getList,close:function(e){t.showModifyShipping=!1}}}):t._e(),t.showGigab2bModal?e("gigab2b",{ref:"pushDajian",on:{ok:t.getList,close:function(e){t.showGigab2bModal=!1}}}):t._e()],1),e("a-card",{staticClass:"table-card",attrs:{bordered:!1}},[e("a-tabs",{staticClass:"loginTitle",on:{change:function(e){return t.orderQuery(e)}}},t._l(t.statusLists,(function(t){return e("a-tab-pane",{key:t.value,attrs:{tab:t.label}})})),1),e("advance-table",{attrs:{loading:t.loading,size:"middle","format-conditions":!1,columns:t.columns,"data-source":t.list,rowKey:"id",tableKey:"test-cat-catlist-table",expandedRowKeys:t.expandedRowKeys,pagination:{current:t.queryParam.page,pageSize:t.queryParam.limit,total:t.total_count,showSizeChanger:!0,showLessItems:!1,showQuickJumper:!1,showTotal:function(e,a){return t.$t("view.order.list.table.total",{num:a[0]+"-"+a[1],total:e})},onChange:t.changeSize,onShowSizeChange:t.onShowSizeChange},scroll:{x:"100%"},title:t.$t("view.order.list.list")},scopedSlots:t._u([{key:"order_id",fn:function(a){var i=a.text,o=a.record;return e("span",{},[1==t.shopId?e("a",{on:{click:function(e){return t.handleOrderDetail(o)}}},[t._v(" "+t._s(i)+" ")]):e("span",[t._v(" "+t._s(i)+" ")]),e("div",[t._v(t._s(o.create_time))]),e("dispath-note",{staticStyle:{display:"none"},attrs:{order:o}}),1===o.is_virtual?e("a-tag",{attrs:{color:"#f50"}},[t._v(" "+t._s(t.$t("view.lockstock.log.lock.is_virtual.title"))+" ")]):t._e()],1)}},{key:"shop_id",fn:function(t){var a=t.record;return e("span",{},[e("supply-info",{attrs:{shopId:a.shop_id}})],1)}},{key:"supply_order_item",fn:function(a){var i=a.text,o=a.record;return e("span",{},t._l(i,(function(a,r){var s,n,l,c;return i.length>0?e("div",{key:a.sku_id,staticStyle:{display:"flex","margin-bottom":"10px"}},[e("div",[e("a-avatar",{attrs:{shape:"square",size:85,src:a.main_img_url}}),e("div",{staticStyle:{"margin-top":"0.5rem"}},[e("a-tag",{attrs:{color:2==a.main_mailing_mode?"red":"green"}},[1===t.shopId?e("div",[2==a.main_mailing_mode?e("div",[t._v(" "+t._s(t.$t("view.item.component.item.supply.shippingConfig.myself"))+" ")]):t._e(),1==a.main_mailing_mode?e("div",[t._v(" "+t._s(t.$t("view.item.component.item.supply.shippingConfig.platform"))+" ")]):t._e(),0==a.main_mailing_mode?e("div",[t._v(" "+t._s(t.$t("view.item.component.item.supply.shippingConfig.platform"))+" ")]):t._e()]):t._e(),1!==t.shopId?e("div",[2==a.main_mailing_mode?e("div",[t._v(" "+t._s(t.$t("view.item.component.item.supply.shippingConfig.myself1"))+" ")]):t._e(),1==a.main_mailing_mode?e("div",[t._v(" "+t._s(t.$t("view.item.component.item.supply.shippingConfig.platform1"))+" ")]):t._e(),0==a.main_mailing_mode?e("div",[t._v(" "+t._s(t.$t("view.item.component.item.supply.shippingConfig.platform1"))+" ")]):t._e()]):t._e()]),e("div",{domProps:{innerHTML:t._s(t.viewShipping(a,o))}})],1)],1),e("div",{staticStyle:{"margin-left":"10px",flex:"1"}},[e("a-row",{attrs:{type:"flex"}},[e("a-col",{attrs:{flex:3}},[t._v(" "+t._s(a.main_title)+" ")])],1),e("a-row",{attrs:{type:"flex"}},[e("a-col",{attrs:{flex:3}},["string"==typeof a.main_sku_prop?e("span",[t._v(" "+t._s(a.main_sku_prop)+" "),e("a-icon",{staticStyle:{"font-size":"10px","margin-right":"0","padding-right":"0"},attrs:{type:"close"}}),t._v(" "+t._s(a.main_num)+" ")],1):e("span",t._l(a.main_sku_prop,(function(i,o){return e("div",{key:o},[e("span",[t._v(t._s(o)+":"+t._s(i))]),e("a-icon",{staticStyle:{"font-size":"10px","margin-right":"0","padding-right":"0"},attrs:{type:"close"}}),t._v(" "+t._s(a.main_num)+" ")],1)})),0)])],1),e("a-row",[null!==(s=o.order_info)&&void 0!==s&&s.currency||o.currency?e("a-col",{attrs:{flex:3}},[t._v(" "+t._s(t.$t("view.item.list.sale_price"))+" : "+t._s((null===(n=o.order_info)||void 0===n?void 0:n.currency)||o.currency)+t._s(a.main_sku_price)+" ")]):t._e(),e("a-col",{attrs:{flex:3}},[t._v(" "+t._s(t.$t("view.item.sku.barcode"))+" : "+t._s(a.main_barcode)+" ")]),e("a-col",{attrs:{flex:3}},[t._v(" "+t._s(t.$t("view.item.sku.out_id"))+" : "+t._s(a.main_out_id)+" ")])],1),e("a-row",{attrs:{type:"flex"}},[e("a-col",[t._v(t._s(t.$t("view.order.list.deduction_ratio"))+":")]),e("a-col",[t._v(t._s(a.deduction_ratio)+"%")])],1),null!==(l=o.order_info)&&void 0!==l&&l.currency||o.currency?e("a-row",{attrs:{type:"flex"}},[e("a-col",[t._v(t._s(t.$t("view.order.list.deduction_fee"))+":")]),e("a-col",[t._v(t._s((null===(c=o.order_info)||void 0===c?void 0:c.currency)||o.currency)+t._s(a.deduction_fee))])],1):t._e(),r<i.length-1?e("a-divider"):t._e()],1)]):t._e()})),0)}},{key:"post_fee",fn:function(a){var i,o,r,s=a.record;return e("span",{},[null!==(i=s.order_info)&&void 0!==i&&i.post_fee&&(null!==(o=s.order_info)&&void 0!==o&&o.currency||s.currency)?e("span",[t._v(t._s((null===(r=s.order_info)||void 0===r?void 0:r.currency)||s.currency)+t._s(s.order_info.post_fee))]):t._e()])}},{key:"deduction_fee",fn:function(a){var i,o,r=a.record;return e("span",{},[null!==(i=r.order_info)&&void 0!==i&&i.currency||r.currency?e("span",[t._v(t._s((null===(o=r.order_info)||void 0===o?void 0:o.currency)||r.currency)+t._s(r.deduction_fee))]):t._e()])}},{key:"deduction_status",fn:function(a){var i=a.record;return e("span",{},[1===i.deduction_status?e("span",[t._v(t._s(t.$t("ORDER_WAIT_PAYMENT")))]):t._e(),2===i.deduction_status?e("span",[t._v(t._s(t.$t("ORDER_PAID")))]):t._e(),3===i.deduction_status?e("span",[t._v(t._s(t.$t("ORDER_REFUNDED")))]):t._e()])}},{key:"payment",fn:function(a){var i=a.text,o=a.record;return e("span",{},[""===o.from_id?e("a-row",[e("a-col",{attrs:{lg:24}},[t._v(" "+t._s(t.$t("view.order.list.biaojiahuobi"))+t._s(t.shopQuoteCurrency)+" "+t._s(i)+" ")]),e("a-col",{attrs:{lg:24}},[t._v(" "+t._s(t.$t("view.order.list.payhuobiprice"))+" : "+t._s(o.trans_currency)+t._s(o.trans_amount)+" ")])],1):t._e(),""!==o.from_id?e("a-row",[e("a-col",{attrs:{lg:24}},[t._v(" "+t._s(t.shopQuoteCurrency)+" "+t._s(i)+" ")])],1):t._e()],1)}},{key:"status",fn:function(a){var i=a.text;return e("span",{},[t._v(" "+t._s(t.$t(i))+" ")])}},{key:"order_info",fn:function(a){var i=a.record;return e("span",{},[i.order_info?e("a-row",[i.order_info.last_name&&""!==i.order_info.last_name?e("a-col",{attrs:{lg:24}},[t._v(" "+t._s(t.$t("view.order.detail.ship_last_name"))+" : "+t._s(i.order_info.last_name)+" ")]):t._e(),i.order_info.first_name&&""!==i.order_info.first_name?e("a-col",{attrs:{lg:24}},[t._v(" "+t._s(t.$t("view.order.detail.ship_first_name"))+" : "+t._s(i.order_info.first_name)+" ")]):t._e(),i.order_info.phone&&""!=i.order_info.phone?e("a-col",{attrs:{lg:24}},[t._v(" "+t._s(t.$t("view.order.detail.ship_phone"))+" : "+t._s(i.order_info.phone)+" ")]):t._e(),e("a-col",{attrs:{lg:24}},[t._v(" "+t._s(t.$t("view.order.detail.ship_country"))+" : "),e("fanyi-list",{attrs:{list:[i.order_info.country]}})],1),e("a-col",{attrs:{lg:24}},[t._v(" "+t._s(t.$t("view.order.detail.ship_state"))+" : "+t._s(i.order_info.state)+" ")]),i.order_info.city?e("a-col",{attrs:{lg:24}},[t._v(" "+t._s(t.$t("view.order.detail.ship_city"))+" : "+t._s(i.order_info.city)+" ")]):t._e(),i.order_info.street?e("a-col",{attrs:{lg:24}},[t._v(" "+t._s(t.$t("view.order.detail.ship_street"))+" : "+t._s(i.order_info.street)+" ")]):t._e(),i.order_info.apartment?e("a-col",{attrs:{lg:24}},[t._v(" "+t._s(t.$t("view.order.detail.ship_men"))+" : "+t._s(i.order_info.apartment)+" ")]):t._e(),i.order_info.zip_code?e("a-col",{attrs:{lg:24}},[t._v(" "+t._s(t.$t("view.order.detail.zipcode"))+" : "+t._s(i.order_info.zip_code)+" ")]):t._e(),e("a-col",{attrs:{lg:24}},[t._v(" "+t._s(t.$t("view.order.detail.memberNote"))+" : "+t._s(i.order_info.member_note)+" ")])],1):t._e()],1)}},{key:"paymemberInfo",fn:function(a){var i=a.record;return e("span",{},[e("a-row",[i.last_name&&""!==i.last_name?e("a-col",{attrs:{lg:24}},[t._v(" "+t._s(t.$t("view.order.detail.ship_last_name"))+" : "+t._s(i.last_name)+" ")]):t._e(),i.first_name&&""!==i.first_name?e("a-col",{attrs:{lg:24}},[t._v(" "+t._s(t.$t("view.order.detail.ship_first_name"))+" : "+t._s(i.first_name)+" ")]):t._e(),i.phone&&""!=i.phone?e("a-col",{attrs:{lg:24}},[t._v(" "+t._s(t.$t("view.order.detail.ship_phone"))+" : "+t._s(i.phone)+" ")]):t._e(),e("a-col",{attrs:{lg:24}},[t._v(" "+t._s(t.$t("view.order.detail.ship_country"))+" : "+t._s(i.country)+" ")]),e("a-col",{attrs:{lg:24}},[t._v(" "+t._s(t.$t("view.order.detail.ship_state"))+" : "+t._s(i.state)+" ")]),e("a-col",{attrs:{lg:24}},[t._v(" "+t._s(t.$t("view.order.detail.ship_city"))+" : "+t._s(i.city)+" ")]),e("a-col",{attrs:{lg:24}},[t._v(" "+t._s(t.$t("view.order.detail.ship_street"))+" : "+t._s(i.street)+" ")]),e("a-col",{attrs:{lg:24}},[t._v(" "+t._s(t.$t("view.order.detail.ship_men"))+" : "+t._s(i.apartment)+" ")]),e("a-col",{attrs:{lg:24}},[t._v(" "+t._s(t.$t("view.order.detail.zipcode"))+" : "+t._s(i.zip_code)+" ")]),e("a-col",{attrs:{lg:24}},[e("a-button",{directives:[{name:"show",rawName:"v-show",value:"ORDER_WAIT_SHIP"===i.status,expression:"record.status === 'ORDER_WAIT_SHIP'"}],attrs:{type:"primary"},on:{click:function(e){return t.handleModifyShipping(i)}}},[t._v(" "+t._s(t.$t("view.system.resourcegroup.Update"))+" ")])],1)],1)],1)}},{key:"operation",fn:function(a){var i=a.record;return e("span",{},[e("div",[1==t.shopId?e("complaintForm",{attrs:{refId:i.order_id,type:"supply"},on:{ok:t.handleQuery}}):t._e(),1!=t.shopId||t.loading?t._e():e("complaintDetail",{attrs:{orderId:i.order_id,type:"supply"}}),e("a",{directives:[{name:"show",rawName:"v-show",value:"ORDER_WAIT_SHIP"===i.status&&1!=t.shopId&&t.isShowFahuoBtn(i)&&1!==i.is_virtual,expression:"record.status === 'ORDER_WAIT_SHIP' && shopId != 1 && isShowFahuoBtn(record) && record.is_virtual !== 1"}],on:{click:function(e){return t.handleFaHuo(i)}}},[t._v(" "+t._s(t.$t("view.order.list.ship.btn"))+" ")]),"ORDER_WAIT_PAYMENT"!==i.status&&"ORDER_WAIT_SHIP"===i.status&&1!=t.shopId&&i.isDajian&&1!==i.is_virtual?e("a-divider",{attrs:{type:"vertical"}}):t._e(),"ORDER_WAIT_PAYMENT"!==i.status&&1!=t.shopId&&i.isDajian&&1!==i.is_virtual?e("a",{on:{click:function(e){return t.pushDaJian(i)}}},[t._v(t._s(t.$t("view.order.list.pushdajian")))]):t._e(),e("a",{directives:[{name:"show",rawName:"v-show",value:1===i.deduction_status&&1!=t.shopId&&i.deduction_fee>0,expression:"record.deduction_status === 1 && shopId != 1 && record.deduction_fee > 0"}],on:{click:function(e){return t.supplyOrderPay(i)}}},[t._v(t._s(t.$t("procure.pay.deduction_fee.title")))])],1)])}}])},[e("div",{staticClass:"table-operations",attrs:{slot:"button"},slot:"button"},[e("div",[1!==t.shopId?e("recharge-main-shop",{staticStyle:{"margin-right":"10px"},attrs:{rechargeVisible:!0}}):t._e()],1)])])],1)],1)},o=[],r=a("5530"),s=a("dbc2"),n=Object(r["a"])({},s["default"]),l=n,c=(a("1d24"),a("2877")),d=Object(c["a"])(l,i,o,!1,null,null,null);e["default"]=d.exports},"8aac":function(t,e,a){"use strict";a.r(e);a("a9e3"),a("b0c0"),a("d3b7"),a("ddb0"),a("a4d3"),a("e01a");var i=function(){var t=this,e=t._self._c;return e("span",[t.tiktokItemOpen?e("AntModal",{attrs:{visible:t.tiktokItemOpen,"modal-title":t.formTitle,"adjust-size":!0,modalHeight:t.modalHeight,modalWidth:t.modalWidth},on:{cancel:t.cancelModal}},[e("div",{attrs:{slot:"content"},slot:"content"},[e("div",{staticStyle:{display:"none"}},[e("goodsIdList",{attrs:{goodsIds:t.goodsIds,goodsList:t.goodList},on:{"update:goodsList":function(e){t.goodList=e},"update:goods-list":function(e){t.goodList=e},back:t.initTiktok}})],1),e("a-row",{attrs:{type:"flex"}},[e("a-col",{attrs:{lg:2}},[e("leftTabItem",{on:{change:t.changeLeftTab}})],1),e("a-col",{style:{overflowY:"auto",overflowX:"hidden",height:Number(t.modalHeight)-150+"px"},attrs:{lg:21}},[t._l(t.tiktokProductList,(function(a,i){return e("div",{key:i,staticStyle:{"padding-bottom":"1rem"}},[e("div",{staticStyle:{"margin-bottom":"1rem"}},[e("kandengGoodsOne",{attrs:{goodsList:t.goodList,goodsId:i}})],1),"title"===t.formEditKey?e("div",[e("a-row",{attrs:{gutter:24}},[e("a-col",{attrs:{lg:24}},[e("a-form-model-item",{attrs:{label:t.$t("view.item.list.itemTitle"),required:""}},[e("a-input",{staticStyle:{width:"100%"},model:{value:a.title,callback:function(e){t.$set(a,"title",e)},expression:"tiktokGoodInfo.title"}})],1)],1)],1)],1):t._e(),"category"===t.formEditKey?e("div",[e("a-row",{attrs:{gutter:24}},[e("a-col",{attrs:{lg:12}},[t._v(" "+t._s(a.category_id)+" "),e("tiktokGlobalCategory",{ref:"globalCat",refInFor:!0,attrs:{catList:t.tiktokGlobalCategoryList[i],categoryId:a.category_id},on:{"update:categoryId":function(e){return t.$set(a,"category_id",e)},"update:category-id":function(e){return t.$set(a,"category_id",e)},backGlobalCategory:function(e){return t.backGlobalCategory(e,i)}}})],1)],1)],1):t._e(),"brand"===t.formEditKey?e("div",[e("a-form-model-item",{attrs:{label:t.$t("components.dyProduct.dyProduct.bran"),required:""}},[e("a-select",{staticStyle:{width:"30%"},attrs:{disabled:!0},model:{value:a.brand_id,callback:function(e){t.$set(a,"brand_id",e)},expression:"tiktokGoodInfo.brand_id"}},t._l(t.pinPaiList[i],(function(a){return e("a-select-option",{key:a.id,attrs:{title:a.name,value:a.id}},[t._v(" "+t._s(a.name)+" ")])})),1)],1)],1):t._e(),"attribute"===t.formEditKey?e("div",[e("a-collapse",{attrs:{defaultActiveKey:"0"}},[e("a-collapse-panel",{key:"1",staticStyle:{padding:"0px 20px"},attrs:{header:t.$t("components.dyProduct.dyProduct.attributes")}},[e("a-row",{attrs:{gutter:24}},t._l(t.product_attributesList[i],(function(a,o){return e("a-col",{key:a.id+o,attrs:{lg:6}},[a.is_requried?e("a-form-model-item",{attrs:{label:a.name,required:""}},[a.values&&a.values.length?[a.values&&a.values.length&&t.product_attributes[i]&&t.product_attributes[i][o]?e("a-select",{directives:[{name:"decorator",rawName:"v-decorator",value:["attribute"+t.product_attributes[i][o].id,{rules:t.getRules(t.product_attributes[i][o])}],expression:"[\n `attribute` + product_attributes[good_id][index].id,\n { rules: getRules(product_attributes[good_id][index]) },\n ]"}],staticStyle:{width:"100%"},attrs:{optionFilterProp:"title","show-search":""},on:{change:function(e,a){return t.onChangeAttributes(e,a,i,o)},search:function(e){return t.searchAttribute(e,o)},mouseenter:function(e){return t.getValues100(i,o)}},model:{value:t.product_attributes[i][o].values[0].id,callback:function(e){t.$set(t.product_attributes[i][o].values[0],"id",e)},expression:"product_attributes[good_id][index].values[0].id"}},t._l(a.list,(function(i){return a&&a.list?e("a-select-option",{key:i.id,attrs:{title:i.name,value:i.id,text:i.name}},[t._v(" "+t._s(i.name)+" ")]):t._e()})),1):t._e()]:[e("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["attribute"+t.product_attributes[i][o].id,{rules:t.getRules(t.product_attributes[i][o])}],expression:"[\n `attribute` + product_attributes[good_id][index].id,\n { rules: getRules(product_attributes[good_id][index]) },\n ]"}],model:{value:t.product_attributes[i][o].values[0].value,callback:function(e){t.$set(t.product_attributes[i][o].values[0],"value",e)},expression:"product_attributes[good_id][index].values[0].value"}})]],2):e("a-form-model-item",{attrs:{label:a.name}},[a.values&&a.values.length?[a.values&&a.values.length&&t.product_attributes[i][o]&&t.product_attributes[i][o].values[0]?e("a-select",{directives:[{name:"decorator",rawName:"v-decorator",value:["attribute"+t.product_attributes[i][o].id,{rules:t.getRules(t.product_attributes[i][o])}],expression:"[\n `attribute` + product_attributes[good_id][index].id,\n { rules: getRules(product_attributes[good_id][index]) },\n ]"}],staticStyle:{width:"100%"},attrs:{optionFilterProp:"title","show-search":""},on:{change:function(e,a){return t.onChangeAttributes(e,a,i,o)}},model:{value:t.product_attributes[i][o].values[0].id,callback:function(e){t.$set(t.product_attributes[i][o].values[0],"id",e)},expression:"product_attributes[good_id][index].values[0].id"}},t._l(a.values,(function(a){return e("a-select-option",{key:a.id,attrs:{title:a.name,value:a.id,text:a.name}},[t._v(" "+t._s(a.name)+" ")])})),1):t._e()]:[t.product_attributes&&t.product_attributes[i][o]?e("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["attribute"+t.product_attributes[i][o].id,{rules:t.getRules(t.product_attributes[i][o])}],expression:"[\n `attribute` + product_attributes[good_id][index].id,\n { rules: getRules(product_attributes[good_id][index]) },\n ]"}],model:{value:t.product_attributes[i][o].values[0].value,callback:function(e){t.$set(t.product_attributes[i][o].values[0],"value",e)},expression:"product_attributes[good_id][index].values[0].value"}}):t._e()]],2)],1)})),1)],1)],1)],1):t._e(),"image"===t.formEditKey?e("div",[e("a-form-model-item",{attrs:{label:t.$t("view.item.list.itemImage")}},t._l(a.main_images,(function(t,a){return e("a-col",{key:a,attrs:{lg:3}},[e("div",{staticClass:"ant-upload-list-item ant-upload-list-item-done ant-upload-list-item-list-type-picture-card",staticStyle:{height:"100px",width:"95px",padding:"0"}},[e("div",{staticStyle:{height:"100px",width:"95px"}},[e("div",{staticClass:"ant-upload-list-item-info",staticStyle:{height:"80px",width:"95px"}},[e("img",{staticStyle:{height:"80px",width:"95px"},attrs:{src:t.url}})]),e("span",{staticClass:"ant-upload-list-item-actions"})])])])})),1)],1):t._e(),"itemInfo"===t.formEditKey?e("div"):t._e(),"sizeChart"===t.formEditKey?e("div",[a.certifications?e("a-row",{attrs:{gutter:24}},t._l(a.certifications,(function(a,o){return e("a-col",{key:o},[e("a-form-model-item",{attrs:{label:a.name,required:""}}),e("tiktok-attach-upload",{attrs:{shop_cipher:t.tiktokShop.cipher,id:a.id,user_case:"4"},on:{uploadBack:function(e){return t.resetQuery(e,a.id,i)}}})],1)})),1):t._e(),a.size_chart?e("a-row",{attrs:{gutter:24,type:"flex"}},[a.size_chart.image?e("a-col",[e("a-form-model-item",{attrs:{label:t.$t("components.pl.product.sizeChart.image.uri.title"),required:""}},[e("tiktok-attach-upload",{attrs:{shop_cipher:t.tiktokShop.cipher,user_case:"4"},on:{uploadBack:function(e){return t.backSizeChartImage(e,i)}}}),a.size_chart.image.uri?e("div",{staticClass:"check-style-unequal-width"}):t._e()],1)],1):t._e(),a.size_chart.template?e("a-col",{staticStyle:{"line-height":"30px"}},[e("a-form-model-item",{attrs:{label:t.$t("components.pl.product.sizeChart.template.id.title"),required:""}},[e("a-input",{staticStyle:{width:"200px"},attrs:{placeholder:t.$t("components.pl.product.sizeChart.template.id.title")},model:{value:a.size_chart.template.id,callback:function(e){t.$set(a.size_chart.template,"id",e)},expression:"tiktokGoodInfo.size_chart.template.id"}}),e("a-tooltip",{attrs:{placement:"right"}},[e("template",{slot:"title"},[t._v(" "+t._s(t.$t("components.pl.product.sizeChart.template.question.title"))+" ")]),e("a-icon",{staticStyle:{"margin-left":"4px","margin-bottom":"2px"},attrs:{type:"question-circle"}})],2)],1)],1):t._e()],1):t._e()],1):t._e(),"packageWeight"===t.formEditKey?e("div",[e("a-row",{attrs:{gutter:24}},[a.package_weight?e("a-col",{attrs:{lg:6}},[e("a-form-model-item",{attrs:{label:t.$t("components.dyProduct.package_weight.value")+" "+a.package_weight.unit,required:""}},[e("a-input",{attrs:{disabled:!0},model:{value:a.package_weight.value,callback:function(e){t.$set(a.package_weight,"value",e)},expression:"tiktokGoodInfo.package_weight.value"}})],1)],1):t._e()],1)],1):t._e(),"packageSizeChart"===t.formEditKey?e("div",[e("a-row",{attrs:{gutter:24}},[e("a-col",{attrs:{lg:8}},[e("a-form-model-item",{attrs:{label:t.$t("components.dyProduct.package_dimensions.height")+" "+a.package_dimensions.unit,required:""}},[e("a-input",{attrs:{disabled:!0},model:{value:a.package_dimensions.height,callback:function(e){t.$set(a.package_dimensions,"height",e)},expression:"tiktokGoodInfo.package_dimensions.height"}})],1)],1),e("a-col",{attrs:{lg:8}},[e("a-form-model-item",{attrs:{label:t.$t("components.dyProduct.package_dimensions.width")+" "+a.package_dimensions.unit,required:""}},[e("a-input",{attrs:{disabled:!0},model:{value:a.package_dimensions.width,callback:function(e){t.$set(a.package_dimensions,"width",e)},expression:"tiktokGoodInfo.package_dimensions.width"}})],1)],1),e("a-col",{attrs:{lg:8}},[e("a-form-model-item",{attrs:{label:t.$t("components.dyProduct.package_dimensions.length")+" "+a.package_dimensions.unit,required:""}},[e("a-input",{attrs:{disabled:!0},model:{value:a.package_dimensions.length,callback:function(e){t.$set(a.package_dimensions,"length",e)},expression:"tiktokGoodInfo.package_dimensions.length"}})],1)],1)],1)],1):t._e(),"sku"===t.formEditKey?e("div",[e("a-row",{attrs:{gutter:24}},[e("a-col",{style:{overflowY:"auto",overflowX:"hidden",padding:"0px 0px",height:"300px"},attrs:{lg:24}},[e("a-table",{attrs:{columns:t.columns,"data-source":a.skus,pagination:!1},scopedSlots:t._u([{key:"id",fn:function(a,i){return[e("a-row",[e("a-col",[e("a-input",{attrs:{"addon-before":i.identifier_code.type},model:{value:i.identifier_code.code,callback:function(e){t.$set(i.identifier_code,"code",e)},expression:"record.identifier_code.code"}})],1)],1),e("a-row",[e("a-col",[e("a-input",{attrs:{disabled:!0},model:{value:i.seller_sku,callback:function(e){t.$set(i,"seller_sku",e)},expression:"record.seller_sku"}})],1)],1)]}},{key:"stock_num",fn:function(a,i){return[i.global_quantity?e("a-input-number",{model:{value:i.global_quantity,callback:function(e){t.$set(i,"global_quantity",e)},expression:"record.global_quantity"}}):t._e()]}},{key:"price",fn:function(a,i){return[e("a-input",{scopedSlots:t._u([{key:"addonBefore",fn:function(){return[e("div",[t._v(t._s(i.price.currency))])]},proxy:!0}],null,!0),model:{value:i.price.amount,callback:function(e){t.$set(i.price,"amount",e)},expression:"record.price.amount"}})]}},{key:"mall_warehouse",fn:function(a,i){return[i.inventory&&i.inventory.length?e("div",{staticStyle:{display:"flex","align-items":"center"}},[e("div",{staticStyle:{flex:"1"}},[e("a-select",{staticStyle:{width:"100%"},model:{value:i.inventory[0].global_warehouse_id,callback:function(e){t.$set(i.inventory[0],"global_warehouse_id",e)},expression:"record.inventory[0].global_warehouse_id"}},t._l(t.global_ware_house_list,(function(a){return e("a-select-option",{key:a.id,attrs:{value:a.id}},[t._v(" "+t._s(a.name)+" ")])})),1)],1),e("div",[e("a-tooltip",[e("template",{slot:"title"},[e("div",[t._v(t._s(t.$t("components.dyProduct.WareHouse.sync")))])]),e("a-button",{staticStyle:{padding:"0",width:"auto","min-width":"30px","text-align":"center"},on:{click:t.tiktokGlobalItemWarehouse}},[e("a-icon",{staticStyle:{"padding-right":"0"},attrs:{type:"sync"}})],1)],2)],1)]):t._e()]}},{key:"sales_attributes",fn:function(a,i){return[e("div",t._l(i.sales_attributes,(function(a,i){return e("a-row",{key:a.id,attrs:{type:"flex"}},[e("a-col",{key:i,staticStyle:{"line-height":"30px"},attrs:{lg:8}},[t._v(" "+t._s(a.name)+" ")]),e("a-col",{attrs:{lg:16}},[e("a-input",{attrs:{type:"text",value:a.value_name}})],1)],1)})),1)]}}],null,!0)})],1)],1)],1):t._e(),"description"===t.formEditKey?e("div",[e("a-row",[e("a-col",{staticStyle:{"margin-top":"10px"},attrs:{lg:24}},[e("dy-vditor",{ref:"ComDitor_"+i,refInFor:!0,attrs:{id:i,good_id:i,value:a.description,updateStatus:t.aiTsUpdate},on:{"update:value":function(e){return t.$set(a,"description",e)},"update:updateStatus":function(e){t.aiTsUpdate=e},"update:update-status":function(e){t.aiTsUpdate=e}}})],1)],1)],1):t._e(),"other"===t.formEditKey?e("div"):t._e()])})),e("div",["category"===t.formEditKey?e("div",[e("a-row",[e("span",[t._v(t._s(t.$t("components.dyProduct.pl.value")))])]),e("a-row",{attrs:{gutter:24}},[e("a-col",{attrs:{lg:12}},[e("tiktokGlobalCategory",{ref:"globalCat",attrs:{catList:t.catList},on:{backGlobalCategory:function(e){return t.backPlGlobalCategory(e)}}})],1)],1)],1):t._e(),"brand"===t.formEditKey?e("div",[e("a-row",[e("span",[t._v(t._s(t.$t("components.dyProduct.pl.value")))])]),e("a-form-model-item",{attrs:{label:t.$t("components.dyProduct.dyProduct.bran"),required:""}},[e("a-select",{staticStyle:{width:"30%"},attrs:{"show-search":"",getPopupContainer:function(t){return t.parentNode},optionFilterProp:"title"},on:{search:function(e){return t.searchPinPai(e)},change:t.changeBrand}},t._l(t.brandList,(function(a){return e("a-select-option",{key:a.id,attrs:{title:a.name,value:a.id}},[t._v(" "+t._s(a.name)+" ")])})),1)],1)],1):t._e(),"attribute"===t.formEditKey?e("div",[e("a-row",[e("span",[t._v(t._s(t.$t("components.dyProduct.pl.value")))])]),t.attributeList.length>0?e("a-collapse",{attrs:{defaultActiveKey:"-1"}},[e("a-collapse-panel",{key:"-1",staticStyle:{padding:"0px 20px"},attrs:{header:t.$t("components.dyProduct.dyProduct.attributes")}},[e("a-row",{attrs:{gutter:24}},t._l(t.attributeList,(function(a,i){return e("a-col",{key:a.id+i,attrs:{lg:6}},[a.is_requried?e("a-form-model-item",{attrs:{label:a.name,required:""}},[a.values&&a.values.length?[a.values&&a.values.length?e("a-select",{staticStyle:{width:"100%"},attrs:{optionFilterProp:"title","show-search":""},on:{change:function(e,a){return t.onChangePlAttributes(e,a,i)},search:function(e){return t.searchAttribute(e,i)},mouseenter:function(e){return t.getPlValues100(i)}}},t._l(a.list,(function(i){return a&&a.list?e("a-select-option",{key:i.id,attrs:{title:i.name,value:i.id,text:i.name}},[t._v(" "+t._s(i.name)+" ")]):t._e()})),1):t._e()]:[e("a-input",{on:{input:function(e){return t.inputAttribute(e,i)}}})]],2):e("a-form-model-item",{attrs:{label:a.name}},[a.values&&a.values.length?[a.values&&a.values.length?e("a-select",{staticStyle:{width:"100%"},attrs:{optionFilterProp:"title","show-search":""},on:{change:function(e,a){return t.onChangePlAttributes(e,a,i)},search:function(e){return t.searchAttribute(e,i)},mouseenter:function(e){return t.getPlValues100(i)}}},t._l(a.values,(function(a){return e("a-select-option",{key:a.id,attrs:{title:a.name,value:a.id,text:a.name}},[t._v(" "+t._s(a.name)+" ")])})),1):t._e()]:[e("a-input",{on:{input:function(e){return t.inputAttribute(e,i)}}})]],2)],1)})),1)],1)],1):t._e()],1):t._e(),"sizeChart"===t.formEditKey?e("div",[e("a-row",[e("span",[t._v(t._s(t.$t("components.dyProduct.pl.value")))])]),t.tiktokRule.size_chart.is_required&&t.tiktokRule.size_chart.is_supported?e("a-row",{attrs:{gutter:24,type:"flex"}},[e("a-col",[e("a-form-model-item",{attrs:{label:t.$t("components.pl.product.sizeChart.image.uri.title"),required:""}},[e("tiktok-attach-upload",{attrs:{shop_cipher:t.tiktokShop.cipher,user_case:"4"},on:{uploadBack:function(e){return t.backPlSizeChartImage(e)}}}),t.tiktokRule.size_chart.uri?e("div",{staticClass:"check-style-unequal-width"}):t._e()],1)],1),e("a-col",{staticStyle:{"line-height":"30px"}},[e("a-form-model-item",{attrs:{label:t.$t("components.pl.product.sizeChart.template.id.title"),required:""}},[e("a-input",{staticStyle:{width:"200px"},attrs:{placeholder:t.$t("components.pl.product.sizeChart.template.id.title")},on:{input:t.plTemplate}}),e("a-tooltip",{attrs:{placement:"right"}},[e("template",{slot:"title"},[t._v(" "+t._s(t.$t("components.pl.product.sizeChart.template.question.title"))+" ")]),e("a-icon",{staticStyle:{"margin-left":"4px","margin-bottom":"2px"},attrs:{type:"question-circle"}})],2)],1)],1)],1):t._e()],1):t._e(),"packageWeight"===t.formEditKey?e("div",[e("a-row",[e("span",[t._v(t._s(t.$t("components.dyProduct.pl.value")))])]),e("a-row",[e("a-form-model-item",{attrs:{label:t.$t("components.dyProduct.package_weight.value")+" KILOGRAM",required:""}},[e("a-input",{staticStyle:{width:"23%"},on:{change:t.plPackageWeight}})],1)],1)],1):t._e(),"packageSizeChart"===t.formEditKey?e("div",[e("a-row",[e("span",[t._v(t._s(t.$t("components.dyProduct.pl.value")))])]),e("a-row",{attrs:{gutter:24}},[e("a-col",{attrs:{lg:8}},[e("a-form-model-item",{attrs:{label:t.$t("components.dyProduct.package_dimensions.height")+" CENTIMETER",required:""}},[e("a-input",{on:{change:function(e){return t.plChangeSizeChart(e,"height")}}})],1)],1),e("a-col",{attrs:{lg:8}},[e("a-form-model-item",{attrs:{label:t.$t("components.dyProduct.package_dimensions.width")+" CENTIMETER",required:""}},[e("a-input",{on:{change:function(e){return t.plChangeSizeChart(e,"width")}}})],1)],1),e("a-col",{attrs:{lg:8}},[e("a-form-model-item",{attrs:{label:t.$t("components.dyProduct.package_dimensions.length")+" CENTIMETER",required:""}},[e("a-input",{on:{change:function(e){return t.plChangeSizeChart(e,"length")}}})],1)],1)],1)],1):t._e(),"sku"===t.formEditKey?e("div",[e("a-row",[e("span",[t._v(t._s(t.$t("components.dyProduct.pl.value")))])]),e("a-row",[e("a-form-model-item",{attrs:{label:t.$t("components.dyProduct.piliang_warehouse_stock")}},[e("a-input",{staticStyle:{width:"100px"},attrs:{type:"number",min:"1"},on:{change:t.inputPiliangStock}})],1)],1)],1):t._e()])],2)],1)],1),e("div",{attrs:{slot:"footer"},slot:"footer"},[e("div",{staticStyle:{float:"left"}}),e("a-button",{on:{click:t.cancelModal}},[t._v(t._s(t.$t("components.imagetext.translation.confirm.cancel")))]),e("a-button",{attrs:{type:"primary"},on:{click:t.saveTiktok}},[t._v(t._s(t.$t("component.artilce.save.button")))]),e("a-button",{staticClass:"btnSuccess",attrs:{loading:t.btnLoading},on:{click:t.batchSubmit}},[t._v(t._s(t.$t("components.pl.product.submit.title")))])],1)]):t._e()],1)},o=[],r=a("5530"),s=(a("3ca3"),a("d81d"),a("25f0"),a("b680"),a("4de4"),a("fb6a"),a("c740"),a("159b"),a("2f62")),n=a("a026"),l=a("296e"),c=a("b70c"),d=a("cec7"),u=a("2e136"),p=Object(n["b"])((function(){return Promise.resolve().then(a.bind(null,"2dd7"))})),m=Object(n["b"])((function(){return a.e("chunk-52cb3562").then(a.bind(null,"16f2"))})),_=Object(n["b"])((function(){return a.e("chunk-32dac439").then(a.bind(null,"12b1"))})),h=Object(n["b"])((function(){return a.e("chunk-52cb3562").then(a.bind(null,"5f19"))})),g={name:"kandengList",props:{goodsIds:{type:Array,default:function(){return[]}}},computed:Object(r["a"])({},Object(s["c"])({shop_id:"shopId"})),components:{AntModal:p,goodsIdList:m,leftTabItem:_,kandengGoodsOne:h,dyVditor:d["default"],tiktokGlobalCategory:c["a"],tiktokAttachUpload:u["a"]},data:function(){return{formEditKey:"",columns:[{title:this.$t("components.dyProduct.dyProduct.sku.code"),dataIndex:"id",width:"30%",scopedSlots:{customRender:"id"}},{title:this.$t("view.item.sku.skuname"),dataIndex:"sales_attributes",width:"40%",scopedSlots:{customRender:"sales_attributes"}},{title:this.$t("view.item.sku.price"),dataIndex:"price",width:"18%",scopedSlots:{customRender:"price"}},{title:this.$t("view.item.sku.stock_num"),dataIndex:"stock_num",width:"12%",scopedSlots:{customRender:"stock_num"}}],aiTsUpdate:!1,ware_house_list:[],tiktokRule:{product_certifications:[],size_chart:{}},catList:[],brandList:[],attributeList:[],delivery:[],goodList:[],formTitle:this.$t("components.tiktokAddProduct.pl.title"),tiktokItemOpen:!1,tiktokItemTitle:this.$t("components.dyProduct.dyProduct.title"),tiktokProductType:2,tiktokShopSellerType:"",tiktokLocateList:["en-GB","en-US","id-ID","ms-MY","th-TH","vi-VN","zh-CN"],tiktokLocate:"",product_attributes:{},attributesList:{},pinPaiList:{},tiktokProductCatgoryShow:!1,tiktokLocalCategoryList:{},tiktokLocalPartnerCategoryList:{},tiktokGlobalLocate:"",tiktokProductGlobalCatgoryShow:!1,tiktokGlobalCategoryList:[],tiktokGlobalPartnerCategoryList:[],global_ware_house_list:[],tiktokProductCategoryId:"",tiktokGlobalProductCategoryId:"",tiktokShop:{},tiktokProductList:{},tiktokTuiJianCatList:{},product_attributesList:{},btnLoading:!1}},methods:{changeLeftTab:function(t){var e=this;"description"===this.formEditKey&&t!==this.formEditKey&&this._.map(this.tiktokProductList,(function(t,a){e.$refs["ComDitor_"+a][0].getValue1()})),this.formEditKey=t},initLoad:function(t){t&&(this.tiktokShop=t,this.tiktokShopSellerType=t.seller_type,this.tiktokGlobalItemWarehouse(),this.getPlGlobalCategory(),this.openModal())},openModal:function(){this.modalHeight=(.9*window.innerHeight).toFixed(0).toString(),this.modalWidth=(.8*window.innerWidth).toFixed(0).toString(),this.tiktokItemOpen=!0},cancelModal:function(){this.tiktokItemOpen=!1,this.ware_house_list=[],this.delivery=[],this.goodList=[],this.tiktokShopSellerType="",this.product_attributes={},this.attributesList={},this.pinPaiList={},this.tiktokGlobalCategoryList=[],this.tiktokGlobalPartnerCategoryList=[],this.global_ware_house_list=[],this.tiktokProductCategoryId="",this.tiktokGlobalProductCategoryId="",this.tiktokShop={},this.tiktokProductList={},this.tiktokTuiJianCatList={},this.product_attributesList={}},initTiktok:function(t){var e=this;Promise.all(this._.map(t,(function(t,a){return e.tiktokPublication(t)}))).then((function(t){e.$message.destroy()}))},tiktokPublication:function(t){var e=this,a=this,i={};return i.good_id=t.good_id,i.shop_cipher=a.tiktokShop.cipher,i.good_type=a.tiktokProductType,Object(l["h"])(i).then((function(i){return 0===i.code&&(delete i.code,delete i.message,a.tiktokProductList[t.good_id]=i,i.category_id&&(e.tiktokGlobalItemAttribute(t.good_id),e.getPinPai("",t.good_id)),a.tiktokProductList[t.good_id].delivery_option_ids&&1===a.tiktokProductList[t.good_id].delivery_option_ids.length&&""===a.tiktokProductList[t.good_id].delivery_option_ids[0]&&(a.tiktokProductList[t.good_id].delivery_option_ids=[]),"CROSS_BORDER"!==e.tiktokShopSellerType?e.getGlobalTuiJianCat(t.good_id):e.getGlobalCategory(t.good_id)),a.$set(e,"tiktokProductList",Object.assign({},a.tiktokProductList)),i}))},saveTiktok:function(){var t=this,e=this;this._.map(this.tiktokProductList,(function(a,i){var o;e.$refs["ComDitor_"+i]&&(null===(o=e.$refs["ComDitor_"+i])||void 0===o?void 0:o.length)>0&&e.$refs["ComDitor_"+i][0].getValue1();var r=[];t.product_attributes[i]&&t.product_attributes[i].map((function(t){var e;t.values&&t.values.length>0&&(t.values[0].value||t.values[0].id)&&((null===(e=t.values)||void 0===e?void 0:e.length)>=1&&(t.values[0].name=t.values[0].value),r.push(t))})),a.product_attributes=r}));var a={shop_cipher:this.tiktokShop.cipher,body:this.tiktokProductList,tiktok_good_type:this.tiktokProductType};Object(l["b"])(a).then((function(e){0===e.code?t.$message.success(t.$t("components.dyProduct.dyProduct.saveSuccess")):t.$message.error(t.$t("view.item.component.item.syn.operation.add.error.info"))}))},NewAttributesList:function(t){var e=this;this.product_attributesList[t]=this.attributesList[t].filter((function(t,e){return"PRODUCT_PROPERTY"===t.type&&t.is_requried&&t.values&&t.values.length>0&&(t.list=t.values.slice(0,100)),"PRODUCT_PROPERTY"===t.type})),this.product_attributes[t]||(this.product_attributes[t]=[]),this.tiktokProductList[t].product_attributes||(this.tiktokProductList[t].product_attributes=[]),this.product_attributesList[t].map((function(a){var i=e.tiktokProductList[t].product_attributes.findIndex((function(t){return t.id===a.id}));if(-1===i){var o={id:a.id,values:[]};a.values&&a.values.length>0?o.values.push({id:"",value:""}):o.values.push({value:""}),e.product_attributes[t].push(o)}else e.product_attributes[t].push(e.tiktokProductList[t].product_attributes[i])})),this.$set(this,"product_attributes",Object.assign({},this.product_attributes))},searchPinPai:function(t,e){this.getPinPai(t,e)},getPinPai:function(t,e){var a=this,i=this,o={shop_cipher:i.tiktokShop.cipher};t&&(o.brand_name=t),Object(l["u"])(o).then((function(t){0===t.code&&(a.pinPaiList[e]=t.data.brands,a.brandList=t.data.brands,a.$set(a,"pinPaiList",Object.assign({},a.pinPaiList)))}))},getPlPinPai:function(t){var e=this,a={shop_cipher:e.tiktokShop.cipher};t&&(a.brand_name=t),Object(l["u"])(a).then((function(t){0===t.code&&(e._.map(e.tiktokProductList,(function(a,i){e.pinPaiList[i]=t.data.brands})),e.brandList=t.data.brands,e.$set(e,"pinPaiList",Object.assign({},e.pinPaiList)))}))},changeBrand:function(t){this._.map(this.tiktokProductList,(function(e,a){e.brand_id=t})),this.$set(this,"tiktokProductList",Object.assign({},this.tiktokProductList))},getGlobalTuiJianCat:function(t){var e=this,a=this,i={body:{product_title:a.tiktokProductList[t].title},shop_cipher:a.tiktokShop.cipher};Object(l["l"])(i).then((function(a){if(0===a.code){var i="";a.data.categories.map((function(t){!t.is_leaf&&t.level<3?i+=t.name+">":t.is_leaf&&3===t.level&&(t.name=i+t.name)})),e.tiktokTuiJianCatList[t]=a.data.categories}}))},getGlobalCategory:function(t){var e=this,a=this,i={shop_cipher:a.tiktokShop.cipher};a.tiktokGlobalLocate&&(i.locale=a.tiktokGlobalLocate),Object(l["j"])(i).then((function(a){0===a.code&&(e.tiktokProductGlobalCatgoryShow=!0,e.tiktokGlobalCategory(a.data.categories,t))}))},getPlGlobalCategory:function(){var t=this,e={shop_cipher:t.tiktokShop.cipher};t.tiktokGlobalLocate&&(e.locale=t.tiktokGlobalLocate),Object(l["j"])(e).then((function(e){0===e.code&&(t.catList=e.data.categories)}))},tiktokGlobalCategory:function(t,e){this.tiktokGlobalCategoryList[e]=t,this.tiktokGlobalPartnerCategoryList[e]=this.tiktokGlobalCategoryList[e].filter((function(t){return"0"===t.parent_id})),this.$set(this,"tiktokGlobalCategoryList",Object.assign({},this.tiktokGlobalCategoryList))},backGlobalCategory:function(t,e){this.tiktokProductList[e].category_id=t,this.changeGlobalCategory(e)},backPlGlobalCategory:function(t){var e=this;this._.map(this.tiktokProductList,(function(a,i){e.tiktokProductList[i].category_id=t})),this.changePlGlobalCategory(t)},changeGlobalCategory:function(t){this.tiktokGlobalCategoryRule(t),this.getPinPai("",t),this.tiktokGlobalItemAttribute(t)},changePlGlobalCategory:function(t){this.tiktokPlGlobalCategoryRule(t),this.getPlPinPai(""),this.tiktokPlGlobalItemAttribute(t)},tiktokGlobalCategoryRule:function(t){var e=this,a=this,i={shop_cipher:a.tiktokShop.cipher,category_id:a.tiktokProductList[t].category_id};Object(l["i"])(i).then((function(i){var o,r,s,n,l,c;null!==i&&void 0!==i&&null!==(o=i.data)&&void 0!==o&&null!==(r=o.product_certifications)&&void 0!==r&&r.length&&(a.tiktokRule.product_certifications=i.data.product_certifications,i.data.product_certifications.forEach((function(e){e.is_required&&(a.tiktokProductList[t].certifications||(a.tiktokProductList[t].certifications=[]),a.tiktokProductList[t].certifications.push({id:e.id,name:e.name,sample_image_url:e.sample_image_url,images:[{uri:""}]}))}))),null!==i&&void 0!==i&&null!==(s=i.data)&&void 0!==s&&null!==(n=s.size_chart)&&void 0!==n&&n.is_required&&null!==i&&void 0!==i&&null!==(l=i.data)&&void 0!==l&&null!==(c=l.size_chart)&&void 0!==c&&c.is_supported&&(a.tiktokRule.size_chart=i.data.size_chart,a.tiktokProductList[t].size_chart||(a.tiktokProductList[t].size_chart={}),a.tiktokProductList[t].size_chart.image={uri:""},a.tiktokProductList[t].size_chart.template={id:""}),e.$set(e,"tiktokProductList",Object.assign({},e.tiktokProductList))}))},tiktokPlGlobalCategoryRule:function(t){var e=this,a=this,i={shop_cipher:a.tiktokShop.cipher,category_id:t};Object(l["i"])(i).then((function(t){var i,o,r,s,n,l;null!==t&&void 0!==t&&null!==(i=t.data)&&void 0!==i&&null!==(o=i.product_certifications)&&void 0!==o&&o.length&&a._.map(a.tiktokProductList,(function(e,i){a.tiktokRule.product_certifications=t.data.product_certifications,t.data.product_certifications.forEach((function(t){t.is_required&&(a.tiktokProductList[i].certifications||(a.tiktokProductList[i].certifications=[]),a.tiktokProductList[i].certifications.push({id:t.id,name:t.name,sample_image_url:t.sample_image_url,images:[{uri:""}]}))}))})),null!==t&&void 0!==t&&null!==(r=t.data)&&void 0!==r&&null!==(s=r.size_chart)&&void 0!==s&&s.is_required&&null!==t&&void 0!==t&&null!==(n=t.data)&&void 0!==n&&null!==(l=n.size_chart)&&void 0!==l&&l.is_supported&&a._.map(a.tiktokProductList,(function(e,i){a.tiktokRule.size_chart=t.data.size_chart,a.tiktokProductList[i].size_chart||(a.tiktokProductList[i].size_chart={}),a.tiktokProductList[i].size_chart.image={uri:""},a.tiktokProductList[i].size_chart.template={id:""}})),e.$set(e,"tiktokProductList",Object.assign({},e.tiktokProductList))}))},plTemplate:function(t){this._.map(this.tiktokProductList,(function(e,a){e.size_chart.template.id=t.target.value})),this.$set(this,"tiktokProductList",Object.assign({},this.tiktokProductList))},backSizeChartImage:function(t,e){this.tiktokProductList[e].size_chart.image.uri=t.img_id},backPlSizeChartImage:function(t){t.img_id&&(this.tiktokRule.size_chart.uri=t.img_id,this._.map(this.tiktokProductList,(function(e,a){e.size_chart.image.uri=t.img_id})),this.$set(this,"tiktokProductList",Object.assign({},this.tiktokProductList)))},tiktokGlobalItemAttribute:function(t){var e=this,a=this,i={shop_cipher:a.tiktokShop.cipher,category_id:a.tiktokProductList[t].category_id};Object(l["k"])(i).then((function(a){0===a.code&&(e.attributeList=a.data.attributes,e.attributesList[t]=a.data.attributes,e.NewAttributesList(t))}))},tiktokPlGlobalItemAttribute:function(t){var e=this,a={shop_cipher:e.tiktokShop.cipher,category_id:t};Object(l["k"])(a).then((function(t){0===t.code&&(e.attributeList=t.data.attributes,e._.map(e.tiktokProductList,(function(a,i){e.attributesList[i]=t.data.attributes,e.NewAttributesList(i)})))}))},getRules:function(t){return[{required:t.is_requried,message:this.$t("view.config.style.pleaseEdit")+" "+t.name}]},getValues100:function(t,e){this.product_attributesList[t][e].list&&0!==this.product_attributesList[t][e].list.length||(this.product_attributesList[t][e].list=this.product_attributesList[t][e].values.slice(0,100),this.$set(this,"product_attributesList",Object.assign({},this.product_attributesList)))},getPlValues100:function(t){var e=this;this._.map(this.tiktokProductList,(function(a,i){e.product_attributesList[i][t].list&&0!==e.product_attributesList[i][t].list.length||(e.product_attributesList[i][t].list=e.product_attributesList[i][t].values.slice(0,100))})),this.$set(this,"product_attributesList",Object.assign({},this.product_attributesList))},inputAttribute:function(t,e){var a=this;this._.map(this.tiktokProductList,(function(i,o){a.product_attributes[o][e].values[0].value=t.target.value})),this.$set(this,"product_attributes",Object.assign({},this.product_attributes))},plPackageWeight:function(t){this._.map(this.tiktokProductList,(function(e,a){e.package_weight.value=t.target.value})),this.$set(this,"tiktokProductList",Object.assign({},this.tiktokProductList))},plChangeSizeChart:function(t,e){this._.map(this.tiktokProductList,(function(a,i){a.package_dimensions[e]=t.target.value})),this.$set(this,"tiktokProductList",Object.assign({},this.tiktokProductList))},onChangeAttributes:function(t,e,a,i){var o;this.product_attributes[a][i].values[0].value=null===(o=e.data.attrs)||void 0===o?void 0:o.text,this.$set(this,"product_attributes",Object.assign({},this.product_attributes))},onChangePlAttributes:function(t,e,a){var i=this;this._.map(this.tiktokProductList,(function(o,r){var s;i.product_attributes[r][a].values[0].id=t,i.product_attributes[r][a].values[0].value=null===(s=e.data.attrs)||void 0===s?void 0:s.text})),this.$set(this,"product_attributes",Object.assign({},this.product_attributes))},changePiliangWareHouse:function(t){t>0&&this._.map(this.tiktokProductList,(function(e,a){e.skus.forEach((function(e){e.inventory&&(e.inventory[0].global_warehouse_id=t)}))}))},inputPiliangStock:function(t){var e=t.target.value;e>0&&this._.map(this.tiktokProductList,(function(t,a){t.skus.forEach((function(t){t.global_quantity&&(t.global_quantity=e)}))}))},tiktokGlobalItemWarehouse:function(){var t=this,e={shop_cipher:this.tiktokShop.cipher};Object(l["o"])(e).then((function(e){0===e.code&&(t.global_ware_house_list=e.data.global_warehouses)}))},resetQuery:function(t,e,a){this.tiktokProductList[a].certifications.forEach((function(a){a.id===e&&(a.images=[{uri:t.img_id}])}))},batchSubmit:function(){var t=this,e=[];t._.map(t.tiktokProductList,(function(t,a){e.push(Number(a))}));var a={shop_cipher:t.tiktokShop.cipher,good_ids:e,tiktok_good_type:t.tiktokProductType};t.btnLoading=!0,Object(l["a"])(a).then((function(e){t.btnLoading=!1})).catch((function(){t.btnLoading=!1}))}}},f=Object(r["a"])({},g),v=f,k=a("2877"),y=Object(k["a"])(v,i,o,!1,null,null,null);e["default"]=y.exports},"8b78":function(t,e,a){"use strict";a.r(e);a("99af");var i=function(){var t=this,e=t._self._c;return e("div",[e("a-card",{staticStyle:{"margin-bottom":"10px"},attrs:{bordered:!1}},[e("div",{staticClass:"table-page-search-wrapper"},[e("a-form",{attrs:{labelCol:t.labelCol,wrapperCol:t.wrapperCol}},[e("a-row",{attrs:{gutter:48}},[e("a-col",{attrs:{md:6,sm:24}},[e("a-form-item",{attrs:{label:"操作模块"}},[e("a-select",{staticStyle:{width:"100%"},attrs:{placeholder:"操作模块","allow-clear":""},model:{value:t.queryParam.module,callback:function(e){t.$set(t.queryParam,"module",e)},expression:"queryParam.module"}},t._l(t.moduleOptions,(function(a,i){return e("a-select-option",{key:i,attrs:{value:a.value}},[t._v(t._s(a.label))])})),1)],1)],1),e("a-col",{attrs:{md:6,sm:24}},[e("a-form-item",{attrs:{label:"操作人员"}},[e("a-input",{attrs:{placeholder:"请输入操作人员ID","allow-clear":""},nativeOn:{keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.handleQuery.apply(null,arguments)}},model:{value:t.queryParam.member_id,callback:function(e){t.$set(t.queryParam,"member_id",e)},expression:"queryParam.member_id"}})],1)],1),e("a-col",{attrs:{md:6,sm:24}},[e("a-form-item",{attrs:{label:"访问路径"}},[e("a-input",{attrs:{placeholder:"请输入访问路径","allow-clear":""},nativeOn:{keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.handleQuery.apply(null,arguments)}},model:{value:t.queryParam.url,callback:function(e){t.$set(t.queryParam,"url",e)},expression:"queryParam.url"}})],1)],1),e("a-col",{attrs:{md:6,sm:24}},[e("a-form-item",{attrs:{label:"访问IP"}},[e("a-input",{attrs:{placeholder:"请输入IP地址","allow-clear":""},nativeOn:{keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.handleQuery.apply(null,arguments)}},model:{value:t.queryParam.ip,callback:function(e){t.$set(t.queryParam,"ip",e)},expression:"queryParam.ip"}})],1)],1),e("a-col",{attrs:{md:6,sm:24}},[e("a-form-item",{attrs:{label:"请求方式"}},[e("a-select",{staticStyle:{width:"100%"},attrs:{placeholder:"请求方式","allow-clear":""},model:{value:t.queryParam.method,callback:function(e){t.$set(t.queryParam,"method",e)},expression:"queryParam.method"}},t._l(t.methodOptions,(function(a,i){return e("a-select-option",{key:i,attrs:{value:a.value}},[t._v(t._s(a.label))])})),1)],1)],1),e("a-col",{attrs:{md:6,sm:24}},[e("a-form-item",{attrs:{label:"耗时"}},[e("a-select",{staticStyle:{width:"100%"},attrs:{placeholder:"耗时","allow-clear":""},model:{value:t.queryParam.take_up_time,callback:function(e){t.$set(t.queryParam,"take_up_time",e)},expression:"queryParam.take_up_time"}},t._l(t.takeTimeOptions,(function(a,i){return e("a-select-option",{key:i,attrs:{value:a.value}},[t._v(t._s(a.label))])})),1)],1)],1),t.advanced?e("a-col",{attrs:{md:6,sm:24}},[e("a-form-item",{attrs:{label:"状态码"}},[e("a-select",{staticStyle:{width:"100%"},attrs:{placeholder:"响应状态码","allow-clear":""},model:{value:t.queryParam.error_code,callback:function(e){t.$set(t.queryParam,"error_code",e)},expression:"queryParam.error_code"}},t._l(t.errorCodeOptions,(function(a,i){return e("a-select-option",{key:i,attrs:{value:a.value}},[t._v(t._s(a.label))])})),1)],1)],1):t._e(),t.advanced?e("a-col",{attrs:{md:6,sm:24}},[e("a-form-item",{attrs:{label:"操作时间"}},[e("a-range-picker",{staticStyle:{width:"100%"},attrs:{valueFormat:"YYYY-MM-DD",format:"YYYY-MM-DD","allow-clear":""},model:{value:t.dateRange,callback:function(e){t.dateRange=e},expression:"dateRange"}})],1)],1):t._e(),e("a-col",[e("span",{staticClass:"table-page-search-submitButtons",staticStyle:{float:"right"}},[e("a-button",{attrs:{type:"primary"},on:{click:t.handleQuery}},[e("a-icon",{attrs:{type:"search"}}),t._v("查询")],1),e("a-button",{staticStyle:{"margin-left":"8px"},on:{click:t.resetQuery}},[e("a-icon",{attrs:{type:"redo"}}),t._v("重置")],1),e("a",{staticStyle:{"margin-left":"8px"},on:{click:t.toggleAdvanced}},[t._v(" "+t._s(t.advanced?"收起":"展开")+" "),e("a-icon",{attrs:{type:t.advanced?"up":"down"}})],1)],1)])],1)],1)],1)]),e("a-card",{staticClass:"table-card",attrs:{bordered:!1}},[e("view-form",{ref:"viewForm"}),e("advance-table",{attrs:{columns:t.columns,"data-source":t.list,title:"系统参数",loading:t.loading,rowKey:"id",tableKey:"monitor-operlog-Operlog-table",isTableConfig:!1,isShowSetBtn:!1,size:"middle","format-conditions":!0,"row-selection":{selectedRowKeys:t.selectedRowKeys,onChange:t.onSelectChange},pagination:{current:t.queryParam.page,limit:t.queryParam.limit,total:t.total,showSizeChanger:!0,showLessItems:!0,showQuickJumper:!0,showTotal:function(t,e){return"第 ".concat(e[0],"-").concat(e[1]," 条,总计 ").concat(t," 条")},onChange:t.changeSize,onShowSizeChange:t.onSizeChange}},on:{refresh:t.getList},scopedSlots:t._u([{key:"method",fn:function(a){var i=a.text,o=a.record;return e("span",{},[e("a-tag",{attrs:{color:t._f("operMethodFilter")(i)}},[t._v(" "+t._s(t.methodFormat(o))+" ")])],1)}},{key:"module",fn:function(a){var i=a.text,o=a.record;return e("span",{},[e("a-tag",{attrs:{color:t._f("operModuleFilter")(i)}},[t._v(" "+t._s(t.moduleFormat(o))+" ")])],1)}},{key:"error_code",fn:function(a){var i=a.text,o=a.record;return e("span",{},[e("a-tag",{attrs:{color:t._f("operErrorCodeFilter")(i)}},[t._v(" "+t._s(t.errorCodeFormat(o))+" ")])],1)}},{key:"take_up_time",fn:function(a){var i=a.text,o=a.record;return e("span",{},[e("a-tag",{attrs:{color:t._f("operTakeTimeFilter")(i)}},[t._v(" "+t._s(t.takeTimeFormat(o))+" ")])],1)}},{key:"operation",fn:function(a){a.text;var i=a.record;return e("span",{},[e("a",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["monitor:operlog:query"],expression:"['monitor:operlog:query']"}],on:{click:function(e){return t.$refs.viewForm.handleView(i)}}},[e("a-icon",{attrs:{type:"eye",theme:"twoTone"}}),t._v("详细 ")],1)])}},{key:"member_name",fn:function(a){a.text;var i=a.record;return e("span",{},[e("span",[t._v(t._s(t.memberNameFormat(i)))])])}}])},[e("div",{staticClass:"table-operations",attrs:{slot:"button"},slot:"button"},[t.multiple?t._e():e("a-button",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["monitor:operlog:remove"],expression:"['monitor:operlog:remove']"}],attrs:{type:"danger",disabled:t.multiple},on:{click:t.handleDelete}},[e("a-icon",{attrs:{type:"delete"}}),t._v("删除 ")],1),e("a-button",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["monitor:operlog:remove"],expression:"['monitor:operlog:remove']"}],attrs:{type:"danger"},on:{click:t.handleClean}},[e("a-icon",{attrs:{type:"delete"}}),t._v("清空 ")],1),e("a-button",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["system:config:export"],expression:"['system:config:export']"}],on:{click:t.handleExport}},[e("a-icon",{attrs:{type:"download"}}),t._v("导出 ")],1)],1)])],1)],1)},o=[],r=(a("d81d"),a("b775"));function s(t){return Object(r["b"])({url:"/log/list",method:"get",params:t})}function n(t){return Object(r["b"])({url:"/monitor/operlog/"+t,method:"delete"})}function l(){return Object(r["b"])({url:"/log/clear",method:"post"})}var c=a("5881"),d=a("5d9e"),u=a("028d"),p={name:"Operlog",components:{ViewForm:c["default"],AdvanceTable:d["default"]},data:function(){return{list:[],selectedRowKeys:[],selectedRows:[],advanced:!1,single:!0,multiple:!0,ids:[],loading:!1,sunloading:!1,total:0,errorCodeOptions:[],takeTimeOptions:[],moduleOptions:[],methodOptions:[],labelCol:{span:6},wrapperCol:{span:18},dateRange:[],queryParam:{page:1,limit:10,module:void 0,member_id:void 0,method:void 0,url:void 0,error_code:void 0,take_up_time:void 0,ip:void 0},addModalRefName:"addModal",columns:[{title:"应用端口",dataIndex:"app_id",align:"center"},{title:"操作人员",dataIndex:"member_name",scopedSlots:{customRender:"member_name"},align:"center"},{title:"操作模块",dataIndex:"module",scopedSlots:{customRender:"module"},align:"center"},{title:"请求方式",dataIndex:"method",align:"center"},{title:"请求路径",dataIndex:"url",align:"center"},{title:"访问IP",dataIndex:"ip",align:"center"},{title:"IP地区",dataIndex:"region",align:"center"},{title:"状态码",dataIndex:"error_code",scopedSlots:{customRender:"error_code"},align:"center"},{title:"耗时",dataIndex:"take_up_time",scopedSlots:{customRender:"take_up_time"},align:"center"},{title:"操作日期",dataIndex:"created_at",align:"center"},{title:"操作",dataIndex:"operation",scopedSlots:{customRender:"operation"},align:"center"}]}},filters:{operTypeFilter:function(t){var e="blue";return 3!==t&&7!==t&&9!==t||(e="orange"),e},operModuleFilter:function(t){var e="blue";return"api"===t&&(e="orange"),e},operMethodFilter:function(t){var e="blue";return"POST"===t&&(e="orange"),e},operErrorCodeFilter:function(t){var e="orange";return 0!==t&&(e="red"),e},operTakeTimeFilter:function(){return"magenta"}},created:function(){var t=this;this.getList(),this.getDicts("req_code").then((function(e){t.errorCodeOptions=e})),this.getDicts("req_take_up_time").then((function(e){t.takeTimeOptions=e})),this.getDicts("sys_oper_module").then((function(e){t.moduleOptions=e})),this.getDicts("sys_oper_method").then((function(e){t.methodOptions=e}))},computed:{},watch:{},methods:{onSizeChange:function(t,e){this.queryParam.page=1,this.queryParam.limit=e,this.getList()},getList:function(){var t=this;this.loading=!0,s(this.addDateRange(this.queryParam,this.dateRange)).then((function(e){t.list=e.list,t.total=e.total_count,t.loading=!1}))},errorCodeFormat:function(t,e){return this.selectDictLabel(this.errorCodeOptions,t.error_code)},takeTimeFormat:function(t,e){return t.take_up_time+"ms"},moduleFormat:function(t,e){return this.selectDictLabel(this.moduleOptions,t.module)},methodFormat:function(t,e){return this.selectDictLabel(this.methodOptions,t.method)},memberNameFormat:function(t){return t.member_id<=0?"":"(#"+t.member_id+")"+t.member_name},handleQuery:function(){this.queryParam.page=1,this.getList()},resetQuery:function(){this.dateRange=[],this.queryParam={page:1,limit:10,module:void 0,member_id:void 0,method:void 0,url:void 0,error_code:void 0,take_up_time:void 0,ip:void 0},this.handleQuery()},onShowSizeChange:function(t,e){this.queryParam.limit=e,this.getList()},changeSize:function(t,e){this.queryParam.page=t,this.queryParam.limit=e,this.getList()},onSelectChange:function(t,e){this.selectedRowKeys=t,this.selectedRows=e,this.ids=this.selectedRows.map((function(t){return t.id})),this.multiple=!t.length},toggleAdvanced:function(){this.advanced=!this.advanced},handleDelete:function(t){var e=this,a=t.id||this.ids;this.$confirm({title:"确认删除所选中数据?",content:"当前选中编号为"+a+"的数据",onOk:function(){return n(a).then((function(){e.onSelectChange([],[]),e.getList(),e.$message.success("删除成功",3)}))},onCancel:function(){}})},handleClean:function(){var t=this;this.$confirm({title:"是否确认清空?",content:"此操作将会清空所有操作日志数据项",onOk:function(){return l().then((function(){t.onSelectChange([],[]),t.getList(),t.$message.success("清空成功",3)}))},onCancel:function(){}})},handleExport:function(){var t=this;this.$confirm({title:"是否确认导出?",content:"此操作将导出当前条件下所有数据而非选中数据",onOk:function(){return Object(u["g"])("/log/export",t.queryParam)},onCancel:function(){}})}}},m=p,_=a("2877"),h=Object(_["a"])(m,i,o,!1,null,null,null);e["default"]=h.exports},"8cdb":function(t,e,a){"use strict";a.r(e);var i=function(){var t=this,e=t._self._c;return e("div")},o=[],r={name:"404"},s=r,n=a("2877"),l=Object(n["a"])(s,i,o,!1,null,"206078e4",null);e["default"]=l.exports},a4d4:function(t,e,a){},abd6:function(t,e,a){"use strict";a.r(e);var i=function(){var t=this,e=t._self._c;return e("span",[e("a-button",{attrs:{type:"primary"},on:{click:t.handleClick}},[t._v(t._s(t.$t("view.warehouse.form.stocks.update")))]),e("ant-modal",{attrs:{visible:t.visable,"modal-title":t.formTitle,"adjust-size":!0,modalHeight:"600",modalWidth:"800"},on:{cancel:function(e){return t.closeModal()}}},[e("div",{staticClass:"orderDetail",attrs:{slot:"content"},slot:"content"},[e("a-form-model",t._b({ref:"form",attrs:{model:t.stockForm}},"a-form-model",t.itemLayout,!1),[e("a-form-model-item",{attrs:{"has-feedback":"",label:""}},[e("div",{staticStyle:{display:"flex"}},[e("div",[t._v(t._s(t.$t("view.warehouse.list.name"))+":")]),t.visable?e("wareHouseInfo",{attrs:{warehouseId:t.wareHouseId}}):t._e()],1)]),e("a-form-model-item",{attrs:{"has-feedback":"",label:"",prop:"shipment_id"}},[e("div",[t._v(t._s(t.$t("view.warehouse.list.stock.list.label")))]),e("a-textarea",{attrs:{rows:10,placeholder:t.$t("view.warehouse.list.stock.list.placeholder")},model:{value:t.stockForm.stockRow,callback:function(e){t.$set(t.stockForm,"stockRow",e)},expression:"stockForm.stockRow"}})],1)],1),e("a-form-model-item",{attrs:{"has-feedback":""}},[e("a-button",{attrs:{type:"primary"},on:{click:t.submitForm}},[t._v(" "+t._s(t.$t("component.artilce.save.button"))+" ")])],1)],1),e("template",{slot:"footer"},[e("a-button",{on:{click:t.closeModal}},[t._v(t._s(t.$t("component.artilce.close.button")))])],1)],2)],1)},o=[],r=a("5530"),s=(a("d3b7"),a("3ca3"),a("ddb0"),a("a9e3"),a("d81d"),a("2dd7")),n=a("89f8"),l=a("a026"),c=Object(l["b"])((function(){return Promise.resolve().then(a.bind(null,"f2b2"))})),d={name:"ordersShips",data:function(){return{visable:!1,formTitle:"",forms:[],itemLayout:{labelCol:{lg:2},wrapperCol:{lg:22}},stockForm:{stockRow:"",warehouse_id:""}}},props:{orders:{type:Array,default:function(){return[]}},wareHouseId:{type:Number,default:0}},components:{AntModal:s["default"],WareHouseInfo:c},methods:{closeModal:function(){this.visable=!1},handleClick:function(){this.formTitle=this.$t("view.warehouse.form.stocks.update"),this.visable=!0},handleChange1:function(t){this.stockForm.warehouse_id=t},handleChange:function(t,e){this.forms[e].warehouse_id=t},submitForm:function(){var t=this,e=[],a=this.stockForm.stockRow.split("\n");a.map((function(a){var i=a.split(",");e.push({out_id:i[0],stock_quantity:i[1],warehouse_id:t.wareHouseId})})),e&&e.length>0&&Object(n["b"])({stock_details:e}).then((function(e){0===e.code&&(t.$message.success(t.$t("view.warehouse.list.stock.list.success")),t.visable=!1,t.$emit("ok"))}))}}},u=Object(r["a"])({},d),p=u,m=a("2877"),_=Object(m["a"])(p,i,o,!1,null,null,null);e["default"]=_.exports},bd92:function(t,e,a){},d916:function(t,e,a){},dc25:function(t,e,a){"use strict";a.r(e);var i=function(){var t=this,e=t._self._c;return e("div",[e("a-modal",{attrs:{visible:t.Visible,zIndex:1e21,footer:null},on:{cancel:t.handleCancel}},[t.isVideo?e("video",{staticStyle:{width:"100%"},attrs:{controls:"",src:t.previewImage}},[e("source",{attrs:{src:t.previewImage,type:"video/*",autoplay:!0,muted:"",preload:"load",loop:""}})]):e("img",{staticStyle:{width:"100%"},attrs:{alt:"example",src:t.previewImage}})])],1)},o=[],r={props:{previewVisible:{type:Boolean,default:!1},previewImage:{type:String,default:""},isVideo:{type:Boolean,default:!1}},computed:{Visible:function(){return this.visable||this.previewVisible}},data:function(){return{visable:!1}},methods:{openPreivewModal:function(){this.visable=!0},handleCancel:function(){this.visable=!1,this.$emit("cancel"),this.$emit("update:previewVisible",!1)}}},s=r,n=a("2877"),l=Object(n["a"])(s,i,o,!1,null,null,null);e["default"]=l.exports},de96:function(t,e,a){"use strict";a.r(e);a("99af");var i=function(){var t=this,e=t._self._c;return e("div",[e("a-card",{staticStyle:{"margin-bottom":"10px"},attrs:{bordered:!1}},[e("div",{staticClass:"table-page-search-wrapper"},[e("a-form",{attrs:{labelCol:t.labelCol,wrapperCol:t.wrapperCol}},[e("a-row",{attrs:{gutter:48}},[e("a-col",{attrs:{md:6,sm:24}},[e("a-form-item",{attrs:{label:"登录地址"}},[e("a-input",{attrs:{placeholder:"请输入登录地址","allow-clear":""},nativeOn:{keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.handleQuery.apply(null,arguments)}},model:{value:t.queryParam.ipaddr,callback:function(e){t.$set(t.queryParam,"ipaddr",e)},expression:"queryParam.ipaddr"}})],1)],1),e("a-col",{attrs:{md:6,sm:24}},[e("a-form-item",{attrs:{label:"操作信息"}},[e("a-input",{attrs:{placeholder:"请输入操作信息","allow-clear":""},nativeOn:{keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.handleQuery.apply(null,arguments)}},model:{value:t.queryParam.msg,callback:function(e){t.$set(t.queryParam,"msg",e)},expression:"queryParam.msg"}})],1)],1),e("a-col",{attrs:{md:6,sm:24}},[e("a-form-item",{attrs:{label:"使用状态"}},[e("a-select",{staticStyle:{width:"100%"},attrs:{placeholder:"请选择状态","allow-clear":""},model:{value:t.queryParam.status,callback:function(e){t.$set(t.queryParam,"status",e)},expression:"queryParam.status"}},t._l(t.statusOptions,(function(a,i){return e("a-select-option",{key:i,attrs:{value:a.dictValue}},[t._v(t._s(a.dictLabel))])})),1)],1)],1),t.advanced?e("a-col",{attrs:{md:6,sm:24}},[e("a-form-item",{attrs:{label:"登录名称"}},[e("a-input",{staticStyle:{width:"100%"},attrs:{"allow-clear":""},model:{value:t.queryParam.loginName,callback:function(e){t.$set(t.queryParam,"loginName",e)},expression:"queryParam.loginName"}})],1)],1):t._e(),t.advanced?e("a-col",{attrs:{md:6,sm:24}},[e("a-form-item",{attrs:{label:"登陆时间"}},[e("a-range-picker",{staticStyle:{width:"100%"},attrs:{valueFormat:"YYYY-MM-DD",format:"YYYY-MM-DD","allow-clear":""},model:{value:t.dateRange,callback:function(e){t.dateRange=e},expression:"dateRange"}})],1)],1):t._e(),e("a-col",[e("span",{staticClass:"table-page-search-submitButtons",staticStyle:{float:"right"}},[e("a-button",{attrs:{type:"primary"},on:{click:t.handleQuery}},[e("a-icon",{attrs:{type:"search"}}),t._v("查询")],1),e("a-button",{staticStyle:{"margin-left":"8px"},on:{click:t.resetQuery}},[e("a-icon",{attrs:{type:"redo"}}),t._v("重置")],1),e("a",{staticStyle:{"margin-left":"8px"},on:{click:t.toggleAdvanced}},[t._v(" "+t._s(t.advanced?"收起":"展开")+" "),e("a-icon",{attrs:{type:t.advanced?"up":"down"}})],1)],1)])],1)],1)],1)]),e("a-card",{staticClass:"table-card",attrs:{bordered:!1}},[e("advance-table",{attrs:{columns:t.columns,"data-source":t.list,title:"登录日志",loading:t.loading,rowKey:"id",tableKey:"monitor-logininfo-Logininfo-table",isTableConfig:!1,isShowSetBtn:!1,size:"middle","format-conditions":!0,"row-selection":{selectedRowKeys:t.selectedRowKeys,onChange:t.onSelectChange},pagination:{current:t.queryParam.pageNum,pageSize:t.queryParam.pageSize,total:t.total,showSizeChanger:!0,showLessItems:!0,showQuickJumper:!0,showTotal:function(t,e){return"第 ".concat(e[0],"-").concat(e[1]," 条,总计 ").concat(t," 条")},onChange:t.changeSize,onShowSizeChange:t.onSizeChange}},on:{refresh:t.getList},scopedSlots:t._u([{key:"status",fn:function(a){a.text;var i=a.record;return e("span",{},[e("a-badge",{attrs:{status:"0"==i.status?"processing":"error",text:t.statusFormat(i)}})],1)}}])},[e("div",{staticClass:"table-operations",attrs:{slot:"button"},slot:"button"},[t.multiple?t._e():e("a-button",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["monitor:LoginLog:remove"],expression:"['monitor:LoginLog:remove']"}],attrs:{type:"danger",disabled:t.multiple},on:{click:t.handleDelete}},[e("a-icon",{attrs:{type:"delete"}}),t._v("删除 ")],1),e("a-button",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["monitor:LoginLog:remove"],expression:"['monitor:LoginLog:remove']"}],attrs:{type:"danger"},on:{click:t.handleClean}},[e("a-icon",{attrs:{type:"delete"}}),t._v("清空 ")],1),e("a-button",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["system:LoginLog:export"],expression:"['system:LoginLog:export']"}],on:{click:t.handleExport}},[e("a-icon",{attrs:{type:"download"}}),t._v("导出 ")],1)],1)])],1)],1)},o=[],r=(a("d81d"),a("b775"));function s(t){return Object(r["b"])({url:"/monitor/loginLog/page",method:"get",params:t})}function n(t){return Object(r["b"])({url:"/monitor/loginLog/"+t,method:"delete"})}function l(){return Object(r["b"])({url:"/monitor/loginLog/clean",method:"delete"})}function c(t){return Object(r["b"])({url:"/monitor/loginLog/export",method:"get",params:t})}var d=a("5d9e"),u={name:"LoginLog",components:{AdvanceTable:d["default"]},data:function(){return{list:[],selectedRowKeys:[],selectedRows:[],advanced:!1,single:!0,multiple:!0,ids:[],loading:!1,sunloading:!1,total:0,statusOptions:[],dateRange:[],labelCol:{span:6},wrapperCol:{span:18},queryParam:{pageNum:1,pageSize:10,ipaddr:null,userName:void 0,status:void 0},addModalRefName:"addModal",columns:[{title:"用户名称",dataIndex:"userName",align:"center"},{title:"登录地址",dataIndex:"ipaddr",align:"center"},{title:"登录地点",dataIndex:"loginLocation",align:"center"},{title:"浏览器",dataIndex:"browser",align:"center"},{title:"操作系统",dataIndex:"os",align:"center"},{title:"状态",dataIndex:"status",scopedSlots:{customRender:"status"},align:"center"},{title:"操作信息",dataIndex:"msg",align:"center"},{title:"登录时间",dataIndex:"loginTime",align:"center"}]}},filters:{},created:function(){var t=this;this.getList(),this.getDicts("sys_common_status").then((function(e){t.statusOptions=e.data}))},computed:{},watch:{},methods:{onSizeChange:function(t,e){this.queryParam.pageNum=1,this.queryParam.pageSize=e,this.getList()},getList:function(){var t=this;this.loading=!0,s(this.addDateRange(this.queryParam,this.dateRange)).then((function(e){t.list=e.data.list,t.total=e.data.total,t.loading=!1}))},statusFormat:function(t){return this.selectDictLabel(this.statusOptions,t.status)},handleQuery:function(){this.queryParam.pageNum=1,this.getList()},resetQuery:function(){this.dateRange=[],this.queryParam={pageNum:1,pageSize:10,ipaddr:null,userName:void 0,status:void 0},this.handleQuery()},onShowSizeChange:function(t,e){this.queryParam.pageSize=e,this.getList()},changeSize:function(t,e){this.queryParam.pageNum=t,this.queryParam.pageSize=e,this.getList()},onSelectChange:function(t,e){this.selectedRowKeys=t,this.selectedRows=e,this.ids=this.selectedRows.map((function(t){return t.id})),this.multiple=!t.length},toggleAdvanced:function(){this.advanced=!this.advanced},handleDelete:function(t){var e=this,a=t.id||this.ids;this.$confirm({title:"确认删除所选中数据?",onOk:function(){return n(a).then((function(){e.onSelectChange([],[]),e.getList(),e.$message.success("删除成功",3)}))},onCancel:function(){}})},handleClean:function(){var t=this;this.$confirm({title:"是否确认清空?",content:"此操作将会清空所有登录日志数据项",onOk:function(){return l().then((function(){t.onSelectChange([],[]),t.getList(),t.$message.success("清空成功",3)}))},onCancel:function(){}})},handleExport:function(){var t=this;this.$confirm({title:"是否确认导出?",content:"此操作将导出当前条件下所有数据而非选中数据",onOk:function(){return c(t.queryParam).then((function(e){t.download(e.msg),t.$message.success("导出成功",3)}))},onCancel:function(){}})}}},p=u,m=a("2877"),_=Object(m["a"])(p,i,o,!1,null,null,null);e["default"]=_.exports}}]);
|
|
Binary file
|