@bee-hole/admin 1.25.37 → 1.25.38
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/{app~f075b844.e4324fc5.css → app~f075b844.b5d17e09.css} +1 -1
- package/dist/css/{app~f075b844.e4324fc5.css.gz → app~f075b844.b5d17e09.css.gz} +0 -0
- package/dist/css/chunk-1b5a347c.e253dc48.css +1 -0
- package/dist/css/{chunk-5a028b56.f56d6106.css → chunk-286b8764.59941530.css} +1 -1
- package/dist/css/chunk-286b8764.59941530.css.gz +0 -0
- package/dist/css/chunk-452aba94.704d1e60.css +1 -0
- package/dist/css/chunk-452aba94.704d1e60.css.gz +0 -0
- package/dist/css/chunk-5f214972.0cf9cd87.css +1 -0
- package/dist/css/chunk-5f4b374c.7b717a3a.css +1 -0
- package/dist/css/chunk-5f4b374c.7b717a3a.css.gz +0 -0
- package/dist/css/lang-package~4e34e71e.20d5c1cf.css +11 -0
- package/dist/css/lang-package~4e34e71e.20d5c1cf.css.gz +0 -0
- package/dist/css/lang-zh-TW-service~f63b1681.ae14bf9e.css +1 -0
- package/dist/css/lang-zh-TW-service~f63b1681.ae14bf9e.css.gz +0 -0
- package/dist/index.html +1 -1
- package/dist/js/app~f075b844.c63f49e6.js +1 -0
- package/dist/js/app~f075b844.c63f49e6.js.gz +0 -0
- package/dist/js/{chunk-03e1387e.b9e498c4.js → chunk-03e1387e.b54aa7be.js} +1 -1
- package/dist/js/chunk-03e1387e.b54aa7be.js.gz +0 -0
- package/dist/js/chunk-1b5a347c.1668b912.js +1 -0
- package/dist/js/chunk-1b5a347c.1668b912.js.gz +0 -0
- package/dist/js/chunk-286b8764.4b8918c0.js +1 -0
- package/dist/js/chunk-286b8764.4b8918c0.js.gz +0 -0
- package/dist/js/chunk-452aba94.dbd0bfb2.js +1 -0
- package/dist/js/chunk-452aba94.dbd0bfb2.js.gz +0 -0
- package/dist/js/chunk-5f214972.19f21b30.js +1 -0
- package/dist/js/chunk-5f214972.19f21b30.js.gz +0 -0
- package/dist/js/chunk-5f4b374c.061b86cf.js +1 -0
- package/dist/js/chunk-5f4b374c.061b86cf.js.gz +0 -0
- package/dist/js/{chunk-7454876a.3bba909c.js → chunk-fa04ce72.8dca4792.js} +1 -1
- package/dist/js/chunk-fa04ce72.8dca4792.js.gz +0 -0
- package/dist/js/lang-ar-EG~31ecd969.6b49e02d.js +3 -0
- package/dist/js/lang-ar-EG~31ecd969.6b49e02d.js.gz +0 -0
- package/dist/js/{lang-bn-BD~ede72586.78f7195c.js → lang-bn-BD~ede72586.3e0972ac.js} +1 -1
- package/dist/js/{lang-bn-BD~ede72586.78f7195c.js.gz → lang-bn-BD~ede72586.3e0972ac.js.gz} +0 -0
- package/dist/js/{lang-en-US~31ecd969.c30e239a.js → lang-en-US~31ecd969.03513bfc.js} +1 -1
- package/dist/js/{lang-en-US~31ecd969.c30e239a.js.gz → lang-en-US~31ecd969.03513bfc.js.gz} +0 -0
- package/dist/js/{lang-ko-KR~31ecd969.2fa8f1ab.js → lang-ko-KR~31ecd969.b239f513.js} +1 -1
- package/dist/js/{lang-ko-KR~31ecd969.2fa8f1ab.js.gz → lang-ko-KR~31ecd969.b239f513.js.gz} +0 -0
- package/dist/js/{lang-ms-MY~d756050e.384ef4a1.js → lang-ms-MY~d756050e.cc1e7d5c.js} +1 -1
- package/dist/js/{lang-ms-MY~d756050e.384ef4a1.js.gz → lang-ms-MY~d756050e.cc1e7d5c.js.gz} +0 -0
- package/dist/js/lang-package~4e34e71e.a62f5d47.js +11 -0
- package/dist/js/lang-package~4e34e71e.a62f5d47.js.gz +0 -0
- package/dist/js/lang-zh-TW-service~f63b1681.8d266d29.js +1 -0
- package/dist/js/lang-zh-TW-service~f63b1681.8d266d29.js.gz +0 -0
- package/dist/js/{lang-zh-TW~31ecd969.715f9935.js → lang-zh-TW~31ecd969.f4885c13.js} +1 -1
- package/dist/js/{lang-zh-TW~31ecd969.715f9935.js.gz → lang-zh-TW~31ecd969.f4885c13.js.gz} +0 -0
- package/package.json +1 -1
- package/dist/css/chunk-435d945c.f88f5374.css +0 -1
- package/dist/css/chunk-5a028b56.f56d6106.css.gz +0 -0
- package/dist/css/chunk-70427d38.02951f1e.css +0 -1
- package/dist/css/chunk-70427d38.02951f1e.css.gz +0 -0
- package/dist/css/chunk-9245f49c.c6f6f093.css +0 -1
- package/dist/css/chunk-9245f49c.c6f6f093.css.gz +0 -0
- package/dist/css/chunk-d01ba46e.fb9b9daf.css +0 -1
- package/dist/css/lang-package~4e34e71e.9f3aabb6.css +0 -11
- package/dist/css/lang-package~4e34e71e.9f3aabb6.css.gz +0 -0
- package/dist/css/lang-zh-TW-service~f63b1681.e4845e1e.css +0 -1
- package/dist/js/app~f075b844.19975b21.js +0 -1
- package/dist/js/app~f075b844.19975b21.js.gz +0 -0
- package/dist/js/chunk-03e1387e.b9e498c4.js.gz +0 -0
- package/dist/js/chunk-435d945c.63943f7f.js +0 -1
- package/dist/js/chunk-435d945c.63943f7f.js.gz +0 -0
- package/dist/js/chunk-5a028b56.d2c0cbdb.js +0 -1
- package/dist/js/chunk-5a028b56.d2c0cbdb.js.gz +0 -0
- package/dist/js/chunk-70427d38.01a6cf1c.js +0 -1
- package/dist/js/chunk-70427d38.01a6cf1c.js.gz +0 -0
- package/dist/js/chunk-7454876a.3bba909c.js.gz +0 -0
- package/dist/js/chunk-9245f49c.bf30ae4e.js +0 -1
- package/dist/js/chunk-9245f49c.bf30ae4e.js.gz +0 -0
- package/dist/js/chunk-d01ba46e.055d4736.js +0 -1
- package/dist/js/chunk-d01ba46e.055d4736.js.gz +0 -0
- package/dist/js/lang-ar-EG~31ecd969.1e91c0a1.js +0 -3
- package/dist/js/lang-ar-EG~31ecd969.1e91c0a1.js.gz +0 -0
- package/dist/js/lang-package~4e34e71e.7c202321.js +0 -11
- package/dist/js/lang-package~4e34e71e.7c202321.js.gz +0 -0
- package/dist/js/lang-zh-TW-service~f63b1681.c87a4b49.js +0 -1
- package/dist/js/lang-zh-TW-service~f63b1681.c87a4b49.js.gz +0 -0
- /package/dist/css/{chunk-7454876a.3a09c127.css → chunk-fa04ce72.3a09c127.css} +0 -0
- /package/dist/css/{chunk-7454876a.3a09c127.css.gz → chunk-fa04ce72.3a09c127.css.gz} +0 -0
- /package/dist/css/{chunk-vendors~db456615.9413bf95.css → chunk-vendors~db456615.5a096447.css} +0 -0
- /package/dist/css/{chunk-vendors~db456615.9413bf95.css.gz → chunk-vendors~db456615.5a096447.css.gz} +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-1b5a347c"],{"0280":function(t,e,i){"use strict";i.r(e);i("b0c0");var a=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(i,a){return[e("div",{staticClass:"pageKeyItem",staticStyle:{color:"#000",display:"flex","align-items":"center"}},[t._v(" "+t._s(i.name)+" "),e("a-icon",{staticStyle:{"margin-left":"15px"},attrs:{type:"edit"},on:{click:function(e){return t.handleUpdate({page_key:i.page_key,name:i.name,display:i.display,parent_page_key:i.parent_page_key,hidden_flag:i.hidden_page_flag,parentName:i.parentName},i,a)}}})],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(i){var a=i.name;return[e("div",{staticClass:"pageKeyItem",staticStyle:{color:"#000",display:"flex","align-items":"center"}},[t._v(" "+t._s(a)+" ")])]}}],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=i("5530"),s=i("c7eb"),n=i("1da1"),l=i("2909"),c=(i("d81d"),i("99af"),i("2dd7")),d=i("dcb0"),u=i("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 i=this,a={seller_id:this.sellerId};return t&&(a.page_key=t),Object(d["j"])(a).then((function(a){return a.data.results&&a.data.results.length>0?a.data.results?(a.data.results.map((function(i){i.title&&(i.label=i.name,i.isLeaf=!1),i.isLeaf=!1,i.label=i.name,i.parentName=e,t&&(i.parent_page_key=t)})),"0"!==a.data.total_results_available?t?a.data.results:(i.pathList=Object(l["a"])(a.data.results),i.pathList):[]):void 0:null}))},loadPath:function(t,e){var i=this;return Object(n["a"])(Object(s["a"])().mark((function e(){var a;return Object(s["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return i.loadKeys.push(t.eventKey),i.parentName=t.label,e.next=4,i.getPathList(t.eventKey,t.label);case 4:a=e.sent,a&&a.length&&(t.dataRef.children=a),i.pathList=Object(l["a"])(i.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),h=m,_=(i("5ea1"),i("2877")),v=Object(_["a"])(h,a,o,!1,null,null,null);e["default"]=v.exports},"09e9e":function(t,e,i){"use strict";i.r(e);var a=function(){var t=this,e=t._self._c;return e("span",[e("a-button",{attrs:{type:"primary"},on:{click:t.openModal}},[t._v(t._s(t.$t("components.videoTrans.selectVideo.btn")))]),e("ant-modal",{attrs:{"modal-title":t.title,visible:t.open,modalWidth:t.isMobile?"100vw":"1000",modalHeight:"750",modalCancelText:t.$t("component.artilce.close.button")},on:{ok:t.ok,cancel:t.close}},[e("template",{slot:"content"},[e("videoList",{on:{ok:t.back}})],1)],2)],1)},o=[],r=i("5530"),s=(i("d3b7"),i("3ca3"),i("ddb0"),i("a026")),n=i("2dd7"),l=i("2f62"),c=Object(s["b"])((function(){return i.e("chunk-1b5a347c").then(i.bind(null,"c06f"))})),d={name:"SelectVideo",data:function(){return{open:!1,title:this.$t("components.videoTrans.selectVideo.modal.title"),videoUrl:""}},props:{url:{type:String,default:""}},computed:Object(r["a"])({},Object(l["c"])(["isMobile"])),methods:{openModal:function(){this.open=!0},close:function(){this.open=!1},back:function(t){this.videoUrl=t},ok:function(){this.videoUrl&&this.$emit("ok",this.videoUrl),this.close()}},components:{AntModal:n["default"],videoList:c}},u=d,p=i("2877"),m=Object(p["a"])(u,a,o,!1,null,null,null);e["default"]=m.exports},"0c6d":function(t,e,i){"use strict";i.r(e);var a=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(i){return e("a-select-option",{key:i.work_order_id,attrs:{value:i.work_order_id}},[t._v(t._s(i.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(i,a){return e("a-list-item",{},[e("a-list-item-meta",[e("div",{attrs:{slot:"title"},slot:"title"},[e("div",{key:a,style:{display:"flex",justifyContent:"space-between",paddingTop:"15px",borderTop:0===a?" 1px solid #e8e8e8":"0"}},[e("div",[e("supply-info",{attrs:{shopId:i.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(i.create_time))])])])]),e("div",{attrs:{slot:"description"},slot:"description"},[e("div",{domProps:{innerHTML:t._s(i.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=i("5530"),s=(i("d3b7"),i("3ca3"),i("ddb0"),i("4de4"),i("255f")),n=i("2dd7"),l=i("2f62"),c=i("a026"),d=i("8eb3"),u=i("0a56"),p=Object(c["b"])((function(){return i.e("chunk-03e1387e").then(i.bind(null,"7bb9"))})),m=Object(c["b"])((function(){return i.e("lang-zh-TW-service~f63b1681").then(i.bind(null,"95fb"))})),h=Object(c["b"])((function(){return Promise.all([i.e("lang-package~4e34e71e"),i.e("chunk-fa04ce72")]).then(i.bind(null,"c03e"))})),_=Object(c["b"])((function(){return i.e("chunk-1b5a347c").then(i.bind(null,"dc25"))})),v={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:h,supplyInfo:d["default"],previewImg:_,OrderDetail:u["default"]}},f=Object(r["a"])({},v),g=f,k=i("2877"),y=Object(k["a"])(g,a,o,!1,null,null,null);e["default"]=y.exports},"11de":function(t,e,i){"use strict";i("7c87")},"16f2":function(t,e,i){"use strict";i.r(e);var a=function(){var t=this,e=t._self._c;return e("span",[e("AdvanceTable",{attrs:{columns:t.Columns,"data-source":t.list,rowKey:"good_id"},scopedSlots:t._u([{key:"title",fn:function(){return[e("div")]},proxy:!0},{key:"image",fn:function(t){t.text;var i=t.record;return e("span",{},[e("img",{staticStyle:{width:"100px",height:"100px"},attrs:{src:i.image_url}})])}}])})],1)},o=[],r=i("5530"),s=i("c7eb"),n=i("1da1"),l=(i("d3b7"),i("3ca3"),i("ddb0"),i("d81d"),i("aabf")),c=i("5d9e"),d={name:"goodsIdList",props:{goodsIds:{type:Array,default:function(){return[]}},goodsList:{type:Array,default:function(){return[]}}},data:function(){return{activeTab:0,list:[],Columns:[{title:this.$t("view.item.list.good_id"),dataIndex:"good_id",width:"80px"},{title:this.$t("view.item.list.form.title"),dataIndex:"title",width:"200px"},{title:this.$t("view.item.list.itemImage"),dataIndex:"image",width:"200px",scopedSlots:{customRender:"image"}}]}},watch:{goodsIds:function(t,e){t!==e&&this.getGoodsList()}},created:function(){this.getGoodsList()},methods:{getGoodsList:function(){var t=this;return Object(n["a"])(Object(s["a"])().mark((function e(){return Object(s["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t.list=[],e.next=3,Promise.all(t.goodsIds.map(function(){var e=Object(n["a"])(Object(s["a"])().mark((function e(i,a){var o,r;return Object(s["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return o={good_id:i},e.next=3,Object(l["m"])(o);case 3:r=e.sent,t.list.push(r);case 5:case"end":return e.stop()}}),e)})));return function(t,i){return e.apply(this,arguments)}}()));case 3:return t._.size(t.list),t.$emit("back",t.list),t.$emit("update:goodsList",t.list),e.abrupt("return",t.list);case 7:case"end":return e.stop()}}),e)})))()}},components:{AdvanceTable:c["default"]}},u=Object(r["a"])({},d),p=u,m=i("2877"),h=Object(m["a"])(p,a,o,!1,null,null,null);e["default"]=h.exports},"23bd":function(t,e,i){},"270e":function(t,e,i){"use strict";i.r(e);i("b0c0");var a=function(){var t=this,e=t._self._c;return e("div",["rakuten"!==t.platform?e("div",["tiktok"==t.platform?e("a-form-model-item",{attrs:{"has-feedback":"",label:t.$t("view.order.list.please_select_delivery"),prop:"please_select_delivery"}},[e("a-select",{attrs:{placeholder:t.$t("view.order.list.please_select_delivery")},on:{change:t.selectShippingProviders},model:{value:t.form.delivery_option_id,callback:function(e){t.$set(t.form,"delivery_option_id",e)},expression:"form.delivery_option_id"}},t._l(t.shops_delivery,(function(i,a){return e("a-select-option",{key:a,attrs:{value:i.id}},[t._v(" "+t._s(i.name)+" - "+t._s(i.type)+" ")])})),1)],1):t._e(),"tiktok"==t.platform?e("a-form-model-item",{attrs:{"has-feedback":"",label:t.$t("view.order.list.please_select_delivery_option"),prop:"please_select_delivery_option"}},[e("a-select",{attrs:{placeholder:t.$t("view.order.list.please_select_delivery_option")},on:{change:t.selectShopsDeliveryOption}},t._l(t.shops_delivery_option,(function(i,a){return e("a-select-option",{key:a,attrs:{value:i.id}},[t._v(" "+t._s(i.id)+" - "+t._s(i.name)+" ")])})),1)],1):t._e(),"tiktok"!=t.platform?e("a-form-model-item",{attrs:{"has-feedback":"",label:t.$t("view.order.list.ship.list.logistics_company"),prop:"logistics_name"}},["netsea"!=t.platform&&"yahoo"!=t.platform?e("a-select",{staticStyle:{width:"100%"},attrs:{"show-search":""},on:{change:t.handleChange},model:{value:t.form.logistics_name,callback:function(e){t.$set(t.form,"logistics_name",e)},expression:"form.logistics_name"}},t._l(t.options,(function(i,a){return e("a-select-opt-group",{key:a},[e("span",{attrs:{slot:"label"},slot:"label"},[e("a-icon",{attrs:{type:"user"}}),t._v(t._s(i.key))],1),t._l(i.option,(function(i,a){return e("a-select-option",{key:a,attrs:{value:i.key}},[t._v(" "+t._s(i.value)+" ")])}))],2)})),1):t._e(),"yahoo"==t.platform?e("a-select",{staticStyle:{width:"100%"},on:{change:t.handleChange},model:{value:t.form.logistics_name,callback:function(e){t.$set(t.form,"logistics_name",e)},expression:"form.logistics_name"}},t._l(t.rakutenDeliveryCompany,(function(i,a){return"yahoo"==t.platform&&"1028"!=i.value?e("a-select-option",{key:a,attrs:{value:i.value}},[t._v(" "+t._s(i.name)+" ")]):t._e()})),1):t._e(),"netsea"==t.platform?e("a-select",{staticStyle:{width:"100%"},on:{change:t.handleChange},model:{value:t.form.logistics_name,callback:function(e){t.$set(t.form,"logistics_name",e)},expression:"form.logistics_name"}},t._l(t.netseaDeliveryCompany,(function(i,a){return e("a-select-option",{key:a,attrs:{value:i.value}},[t._v(" "+t._s(i.name)+" ")])})),1):t._e()],1):t._e(),e("a-form-model-item",{attrs:{"has-feedback":"",label:t.$t("view.order.list.ship.list.logistics_number"),prop:"shipment_id"}},[e("a-input",{attrs:{placeholder:t.$t("view.order.list.ship.list.input.logistics_number")},model:{value:t.form.shipment_id,callback:function(e){t.$set(t.form,"shipment_id",e)},expression:"form.shipment_id"}})],1)],1):t._e(),"rakuten"===t.platform?e("div",[t.isEdit?e("a-form-model",t._b({ref:"form",attrs:{model:t.form,rules:t.rules}},"a-form-model",t.itemLayout,!1),[e("a-form-model-item",{attrs:{"has-feedback":"",prop:"ship_units"}},[e("a-row",{staticClass:"ant-upload-list ant-upload-list-picture-card"},[e("table",{staticClass:"qgg-table"},[e("thead",[e("tr",[e("th",[t._v(t._s(t.$t("view.order.list.rakuten.basket_id")))]),e("th",[t._v(t._s(t.$t("table.mall_goods")))])])]),e("tbody",t._l(t.rakutenSdataSkuList,(function(i,a){return t.rakutenSdataSkuList?e("tr",{key:a},[e("td",[t._v(" "+t._s(i.basketId)+" "),e("table",{staticClass:"qgg-table"},[e("tbody",[e("tr",[e("td",{staticStyle:{width:"100px"}},[t._v(t._s(t.$t("view.order.detail.shipping_corp")))]),e("td",{staticStyle:{"text-align":"left"}},[e("a-select",{staticStyle:{width:"200px"},on:{change:t.selectRakutenDeliveryCompanyName},model:{value:i.delivery_company,callback:function(e){t.$set(i,"delivery_company",e)},expression:"item.delivery_company"}},t._l(t.rakutenDeliveryCompany,(function(i,a){return e("a-select-option",{key:a,attrs:{value:i.value}},[t._v(t._s(i.name))])})),1)],1)]),e("tr",[e("td",{staticStyle:{width:"100px"}},[t._v(t._s(t.$t("view.order.detail.shipping_code")))]),e("td",{staticStyle:{"text-align":"left"}},[e("a-input",{staticStyle:{width:"200px"},on:{change:t.inputRakutenDeliveryCompanyCode},model:{value:i.shipping_number,callback:function(e){t.$set(i,"shipping_number",e)},expression:"item.shipping_number"}})],1)])])])]),e("td",t._l(i.item,(function(a,o){return i.item?e("a-row",{key:o},[e("a-col",{staticStyle:{"text-align":"left"}},[t._v(t._s(a.title))]),e("a-col",{staticStyle:{"text-align":"left","margin-top":"5px"}},[t._v(t._s(a.sku_prop)+" X "+t._s(a.shipping_num))])],1):t._e()})),1)]):t._e()})),0)])])],1)],1):t._e()],1):t._e()])},o=[],r=(i("a9e3"),i("d3b7"),i("159b"),i("7db0"),i("296e")),s=i("1b6c"),n=i("3a10"),l={data:function(){return{rakutenSdataSkuList:[],itemLayout:{labelCol:{lg:2},wrapperCol:{lg:18}},rules:{logistics_name:[{required:!0,trigger:"change"}],shipment_id:[{required:!0,trigger:"change"}]},shops_delivery:[],shops_delivery_option:[],rakutenDeliveryCompany:[{name:"その他",value:"1000"},{name:"ヤマト運輸",value:"1001"},{name:"佐川急便",value:"1002"},{name:"日本郵便",value:"1003"},{name:"西濃運輸",value:"1004"},{name:"セイノースーパーエクスプレス",value:"1005"},{name:"福山通運",value:"1006"},{name:"名鉄運輸",value:"1007"},{name:"トナミ運輸",value:"1008"},{name:"第一貨物",value:"1009"},{name:"新潟運輸",value:"1010"},{name:"中越運送",value:"1011"},{name:"岡山県貨物運送",value:"1012"},{name:"久留米運送",value:"1013"},{name:"山陽自動車運送",value:"1014"},{name:"NXトランスポート",value:"1015"},{name:"エコ配",value:"1016"},{name:"EMS",value:"1017"},{name:"DHL",value:"1018"},{name:"FedEx",value:"1019"},{name:"UPS",value:"1020"},{name:"日本通運",value:"1021"},{name:"TNT",value:"1022"},{name:"OCS",value:"1023"},{name:"USPS",value:"1024"},{name:"SFエクスプレス",value:"1025"},{name:"Aramex",value:"1026"},{name:"SGHグローバル・ジャパン",value:"1027"},{name:"Rakuten EXPRESS",value:"1028"}],netseaDeliveryCompany:[{name:"ヤマト運輸",value:"YA"},{name:"佐川急便",value:"SA"},{name:"日本郵便",value:"NY"},{name:"西濃運輸",value:"SE"},{name:"福山通運",value:"FU"},{name:"名鉄運輸",value:"ME"},{name:"トナミ運輸",value:"TO"},{name:"第一貨物",value:"DA"},{name:"その他",value:"OT"},{name:"日本通運",value:"NT"}]}},props:{form:{type:Object,default:function(){return{shipment_id:"",logistics_name:""}}},options:{type:Array,default:function(){return[{key:Object(s["b"])("view.express.foreign_express1"),label:"GJWL",option:[{key:"SFGJ",value:"顺丰国际"},{key:"DHWL",value:"ヤマト運輸"},{key:"ZCJB",value:"佐川急便"},{key:"RBYZ",value:"日本郵便"}]},{key:Object(s["b"])("view.express.foreign_express2"),label:"GNWL",option:[{key:"SFEXPRESS",value:"顺丰"},{key:"STO",value:"申通"},{key:"YTO",value:"申通"},{key:"ZTO",value:"申通"},{key:"HTKY",value:"百世快递"},{key:"BSKY",value:"百世快运"},{key:"YUNDA",value:"韵达"},{key:"JD",value:"京东"},{key:"EMS",value:"EMS"},{key:"ZTO56",value:"中通快运"},{key:"AAEWEB",value:"AAE"},{key:"ARAMEX",value:"Aramex"},{key:"DHL",value:"内件DHL"},{key:"DPEX",value:"DPEX"},{key:"DEXP",value:"D速"},{key:"EWE",value:"EWE"},{key:"FEDEX",value:"FedEx"},{key:"PCA",value:"PCA"},{key:"TNT",value:"TNT"},{key:"UPS",value:"UPS"},{key:"ANJELEX",value:"安捷"},{key:"ANE",value:"安能"},{key:"ANEEX",value:"安能快递"},{key:"ANXINDA",value:"安信达"},{key:"EES",value:"百福东方"},{key:"FLYWAYEX",value:"程光"},{key:"DTW",value:"大田"},{key:"DEPPON",value:"德邦"},{key:"GCE",value:"飞洋"},{key:"PHOENIXEXP",value:"凤凰"},{key:"FTD",value:"富腾达"},{key:"GSD",value:"共速达"},{key:"GTO",value:"国通"},{key:"BLACKDOG",value:"黑狗"},{key:"HENGLU",value:"恒路"},{key:"HYE",value:"鸿远"},{key:"HQKY",value:"华企"},{key:"JOUST",value:"急先达"},{key:"TMS",value:"加运美"},{key:"JIAJI",value:"佳吉"},{key:"JIAYI",value:"佳怡"},{key:"KERRY",value:"嘉里物流"},{key:"HREX",value:"锦程快递"},{key:"PEWKEE",value:"晋越"},{key:"KKE",value:"京广"},{key:"JIUYESCM",value:"九曳"},{key:"KYEXPRESS",value:"跨越速运"},{key:"FASTEXPRESS",value:"快捷"},{key:"LTS",value:"联昊通"},{key:"LBEX",value:"龙邦"},{key:"YIMIDIDA",value:"壹米滴答"},{key:"RRS",value:"日日顺物流"},{key:"YXWL",value:"宇鑫物流"},{key:"DJ56",value:"东骏快捷"},{key:"AYCA",value:"澳邮专线"},{key:"CITY100",value:"城市100"},{key:"D4PX",value:"递四方速递"},{key:"GTSD",value:"广通"},{key:"JTKD",value:"捷特快递"},{key:"MB",value:"民邦快递"},{key:"MLWL",value:"明亮物流"},{key:"PANEX",value:"泛捷快递"},{key:"QXT",value:"全信通"},{key:"SAD",value:'赛澳递"'},{key:"SDWL",value:"上大物流"},{key:"STWL",value:"速腾快递"},{key:"WJK",value:"万家康"},{key:"ZENY",value:"增益快递"},{key:"CAE",value:"民航"},{key:"ND56",value:"能达"},{key:"EFSPOST",value:"平安快递"},{key:"CHINZ56",value:"秦远物流"},{key:"QCKD",value:"全晨"},{key:"QFKD",value:"全峰"},{key:"APEX",value:"全一"},{key:"RFD",value:"如风达"},{key:"SFC",value:"三态"},{key:"SFWL",value:"盛丰"},{key:"SHENGHUI",value:"盛辉"},{key:"SDEX",value:"顺达快递"},{key:"SUNING",value:"苏宁"},{key:"SURE",value:"速尔"},{key:"HOAU",value:"天地华宇"},{key:"TTKDEX",value:"天天"},{key:"VANGEN",value:"万庚"},{key:"WANJIA",value:"万家物流"},{key:"EWINSHINE",value:"万象"},{key:"GZWENJIE",value:"文捷航空"},{key:"XBWL",value:"新邦"},{key:"XFEXPRESS",value:"信丰"},{key:"BROADASIA",value:"亚风"},{key:"YIEXPRESS",value:"宜送"},{key:"QEXPRESS",value:"易达通"},{key:"ETD",value:"易通达"},{key:"UC56",value:"优速"},{key:"CHINAPOST",value:"邮政包裹"},{key:"YFHEX",value:"原飞航"},{key:"YADEX",value:"源安达"},{key:"YCGWL",value:"远成"},{key:"YFEXPRESS",value:"越丰"},{key:"YTEXPRESS",value:"运通"},{key:"ZJS",value:"宅急送"},{key:"ZMKMEX",value:"芝麻开门"},{key:"COE",value:"中国东方"},{key:"CRE",value:"中铁快运"},{key:"ZTKY",value:"中铁物流"},{key:"CNPL",value:"中邮"},{key:"PEISI",value:"配思航宇"},{key:"BDT",value:"八达通"},{key:"CJKD",value:"城际快递"},{key:"FKD",value:"飞康达"},{key:"HQSY",value:"环球速运"},{key:"JAD",value:"捷安达"},{key:"JGWL",value:"景光物流"},{key:"MK",value:"美快"},{key:"PADTF",value:"平安达腾飞快递"},{key:"QRT",value:"全日通速递"},{key:"RFEX",value:"瑞丰速递"},{key:"SAWL",value:"圣安物流"},{key:"ST",value:"速通物流"},{key:"SUBIDA",value:"速必达物流"},{key:"XJ",value:"新洁物流"},{key:"ZYWL",value:"中邮物流"}]}]}},order:null,platform:{type:String,default:""},isEdit:{type:Boolean,default:!0},mailingMode:{type:Number,default:1}},created:function(){var t,e,i;switch(this.platform){case"tiktok":"string"===typeof this.order.sdata&&""!==this.order.sdata&&(this.order.sdata=JSON.parse(this.order.sdata)),(null===(t=this.order.sdata)||void 0===t||null===(e=t.packages)||void 0===e?void 0:e.length)>0&&(this.order.package_id=this.order.sdata.packages[0].id),null!==(i=this.order.sdata)&&void 0!==i&&i.warehouse_id&&(this.order.warehouse_id=this.order.sdata.warehouse_id),this.shopSelect(this.order.from_shop_id);break;case"rakuten":var a=JSON.parse(this.order.sdata),o=[];a.PackageModelList.forEach((function(t){var e={};e.basketId=t.basketId,e.item=[],t.ItemModelList.forEach((function(t){if(t.SkuModelList.length)var i=t.SkuModelList[0].variantId;e.item.push({title:t.itemName,sku_prop:i,price:t.price,shipping_num:t.units,delivery_company:"",Shipping_number:""})})),o.push(e)})),this.rakutenSdataSkuList=o;break}this.getOption()},methods:{getOption:function(){var t=this,e={};Object(n["i"])({page:1,limit:150}).then((function(i){for(var a=i.list,o=0;o<a.length;o++){var r=a[o],s=r.foreign_express;e[s]||(e[s]=[]),e[s].push({key:r.logistics_code,value:r.logistics_name})}return t.options[0].option=e[2],t.options[1].option=e[1],t.options}))},submit:function(){switch(this.platform){case"tiktok":this.form.package_id=this.form.package_id,this.form.logistics_name=this.form.tracking_name,this.form.body={shipping_provider_id:this.form.shipping_providers_id,tracking_number:this.form.shipment_id};break;case"rakuten":var t=[];this.rakutenSdataSkuList.forEach((function(e){var i={basketId:"",ShippingModelList:[]};i.basketId=e.basketId,i.ShippingModelList.push({deliveryCompany:e.delivery_company,shippingNumber:e.shipping_number}),t.push(i)}));var e={};e.orderNumber=this.order.order_id,e.BasketidModelList=t,this.form.logistics_name=this.form.tracking_name,this.form.body=e;break}this.$emit("update:form",this.form)},handleChange:function(t){this.form.logistics_name=t},shopSelect:function(t){var e=this;e.form.shops=[];var i={};i.tiktok_shop_id=t,Object(r["d"])(i).then((function(t){0===t.code&&(e.form.shop_cipher=t.shop_cipher,"US"===t.shop_region&&(e.isUs=!0),e.selectDelivery())}))},selectDelivery:function(){var t=this;t.shops_delivery=[],Object(r["g"])({ware_house_id:this.order.warehouse_id,shop_cipher:t.form.shop_cipher}).then((function(e){var i,a;0===e.code&&((null===(i=e.data)||void 0===i||null===(a=i.delivery_options)||void 0===a?void 0:a.length)>0&&(t.shops_delivery=e.data.delivery_options))}))},selectShippingProviders:function(){var t=this;t.shops_delivery_option=[],Object(r["A"])({delivery_option_id:t.form.delivery_option_id,shop_cipher:t.form.shop_cipher}).then((function(e){var i,a;0===e.code&&((null===(i=e.data)||void 0===i||null===(a=i.shipping_providers)||void 0===a?void 0:a.length)>0&&(t.shops_delivery_option=e.data.shipping_providers))}))},selectShopsDeliveryOption:function(t,e){var i=this.shops_delivery_option.find((function(e){return e.id===t}));this.form.shipping_providers_id=i.id,this.form.tracking_name=i.name},selectRakutenDeliveryCompanyName:function(t){var e=this.rakutenDeliveryCompany.find((function(e){return e.value===t}));e&&(this.form.tracking_name=e.name)},inputRakutenDeliveryCompanyCode:function(t){this.form.shipment_id=t.target._value}}},c=l,d=(i("5d54"),i("2877")),u=Object(d["a"])(c,a,o,!1,null,null,null);e["default"]=u.exports},3713:function(t,e,i){"use strict";i("adee")},"3b1b":function(t,e,i){"use strict";i.r(e);i("b0c0"),i("a9e3");var a=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:12,type:"flex"}},["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(),"admin"==t.roles[0]&&t.userId?e("a-col",{attrs:{lg:6,xl:6,xxl:4}},[e("a-form-item",{attrs:{label:t.$t("view.order.list.shop")}},[e("shop-select",{ref:"shopSelect",attrs:{userId:t.userId},on:{change:t.changeShop}})],1)],1):t._e(),t.userId?t._e():e("a-col",{attrs:{lg:11,xl:"admin"==t.roles[0]?6:8,xxl:"admin"==t.roles[0]?4:6}},[e("a-form-item",{attrs:{label:t.$t("view.order.detail.item"),labelCol:{md:8,sm:8,lg:10},wrapperCol:{md:16,sm:16,lg:14}}},[e("good-list",{staticStyle:{width:"100%"},attrs:{type:"radio"},on:{changeitem:t.changeItem}})],1)],1)],1),e("a-row",{attrs:{gutter:12,type:"flex"}},[e("a-col",{attrs:{lg:7,xl:8,xxl:6}},[e("a-form-item",{attrs:{label:t.$t("view.order.list.orderno")}},[e("a-input",{attrs:{placeholder:t.$t("view.order.list.inputorderno"),"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.orderId,callback:function(e){t.orderId=e},expression:"orderId"}})],1)],1),e("a-col",{attrs:{lg:6,xl:6,xxl:4,xs:24,md:12}},[e("a-form-item",{attrs:{label:t.$t("view.order.list.export.user_select_title")}},[e("member-list",{attrs:{shopId:t.checkedShopId},on:{changeMember:t.changeMember}})],1)],1),e("a-col",{attrs:{lg:11,xl:5,xxl:5,md:16}},[e("a-form-item",{attrs:{label:t.$t("view.order.list.export.time_select_title"),labelCol:{md:3,sm:8,lg:6,xl:4,xxl:3},wrapperCol:{lg:18,xl:20,xxl: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",{attrs:{lg:24,xl:24,xxl: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("a-button",{staticStyle:{"margin-left":"8px"},on:{click:t.orderExport}},[e("a-icon"),t._v(t._s(t.$t("view.order.list.export.btn"))+" ")],1),e("syn-config",{attrs:{syn_idf:2}})],1)])],1),e("a-row",{attrs:{gutter:12,type:"flex"}},[e("a-col",{attrs:{lg:7,xl:7,xxl:6}},[e("a-form-item",{attrs:{label:t.$t("view.item.component.item.syn.syntype.title"),labelCol:{xl:10},wrapperCol:{xl:14}}},[e("platform",{attrs:{syntype:t.from_id,viewPlatform:2},on:{"update:syntype":function(e){t.from_id=e},selectPlatForm:t.changePlatForm}})],1)],1),t.platFormShops.length?e("a-col",{attrs:{lg:7,xl:6,xxl:4}},[e("a-form-item",{attrs:{label:t.$t("components.dyProduct.dyProduct.oauth.shopname")}},[e("a-select",{staticStyle:{width:"255px"},attrs:{allowClear:!0,placeholder:t.$t("components.dyProduct.dyProduct.shopname.placeholder")},model:{value:t.from_shop_id,callback:function(e){t.from_shop_id=e},expression:"from_shop_id"}},t._l(t.platFormShops,(function(i,a){return e("a-select-option",{key:a,attrs:{value:i.value}},[t._v(t._s(i.name))])})),1)],1)],1):t._e()],1)],1)],1)]),e("div",[e("view-select",{staticStyle:{display:"none"},on:{change:t.backViewId}}),t.showReviewModal?e("review-list",{ref:"ReviewList",on:{close:function(e){t.showReviewModal=!1}}}):t._e(),t.orderDetailModal?e("order-detail",{ref:"OrderDetail",attrs:{modalHeight:.8*t.windowHeight+""},on:{close:function(e){t.orderDetailModal=!1}}}):t._e(),t.showFaHuoModal?e("review-list1",{ref:"ReviewList1",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.showHandlePayModal?e("handle-pay-list",{ref:"HandlePayList",on:{ok:t.getList,close:function(e){t.showHandlePayModal=!1}}}):t._e(),t.showCaiGouModal?e("caigou",{ref:"pushCaiGou",on:{ok:t.getList,close:function(e){t.showCaiGouModal=!1}}}):t._e(),e("stockAdd",{ref:"stockAdd"})],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","row-selection":{selectedRowKeys:t.selectedRowKeys,onChange:t.onSelectChange},"format-conditions":!1,columns:t.columns,"data-source":t.list,rowKey:"order_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,i){return t.$t("view.order.list.table.total",{num:i[0]+"-"+i[1],total:e})},onChange:t.changeSize,onShowSizeChange:t.onShowSizeChange},scroll:{x:"100%"},title:" "},scopedSlots:t._u([{key:"order_id",fn:function(i){var a=i.text,o=i.record;return e("span",{},[o.from_id?e("div",[t.shouldDisplayTag(o)?e("a-tag",{attrs:{color:"#f50"}},[t._v(" "+t._s(t.showTag(o))+" ")]):t._e()],1):t._e(),e("div",{staticStyle:{display:"flex","flex-wrap":"wrap"}},[e("span",[e("a",{on:{click:function(e){return t.handleOrderDetail(o)}}},[t._v(" "+t._s(a)+" ")]),e("copyText",{attrs:{text:a,tooltipText:t.$t("view.order.list.order_id.copy")}})],1)]),e("div",[t._v(t._s(o.create_time))]),e("a",{attrs:{type:"primary"},on:{click:function(e){return t.orderPrint(o)}}},[t._v(t._s(t.$t("view.order.detail.print.btn")))]),e("br"),"admin"==t.roles[0]&&1!==o.shop_id?e("div",[e("supply-info",{attrs:{shopId:o.shop_id}})],1):t._e(),o.order_item[0].stock_log?e("div",[t._v(" "+t._s(t.$t("view.order.target.wareHouse"))+" : "),o.order_item[0].stock_log?e("wareHouseInfo",{attrs:{isTag:!0,warehouseId:Number(o.order_item[0].stock_log.warehouse_id)}}):t._e(),"ORDER_WAIT_SHIP"===o.status?e("span",[t._v("-")]):t._e(),"ORDER_WAIT_SHIP"===o.status?e("orderSwitchWareHouse",{attrs:{skuId:o.order_item[0].sku_id,orderId:o.order_id},on:{ok:t.getList}}):t._e()],1):t._e(),e("dispath-note",{staticStyle:{display:"none"},attrs:{order:o}})],1)}},{key:"order_item",fn:function(i){var a=i.text,o=i.record;return e("span",{},t._l(a,(function(i,r){return e("div",{key:i.sku_id,staticStyle:{display:"flex","margin-bottom":"10px"}},[e("div",[e("a-avatar",{attrs:{shape:"square",size:85,src:i.img_url},on:{click:function(e){return t.openItem(i)}}}),1==t.shopId?e("div",{staticStyle:{"margin-top":"0.5rem"}},[e("a-tag",{attrs:{color:2==i.mailing_mode?"red":"green"}},[1===t.shopId?e("div",[2==i.mailing_mode?e("div",[t._v(" "+t._s(t.$t("view.item.component.item.supply.shippingConfig.myself"))+" ")]):t._e(),1==i.mailing_mode?e("div",[t._v(" "+t._s(t.$t("view.item.component.item.supply.shippingConfig.platform"))+" ")]):t._e(),0==i.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==i.mailing_mode?e("div",[t._v(" "+t._s(t.$t("view.item.component.item.supply.shippingConfig.myself1"))+" ")]):t._e(),1==i.mailing_mode?e("div",[t._v(" "+t._s(t.$t("view.item.component.item.supply.shippingConfig.platform1"))+" ")]):t._e(),0==i.mailing_mode?e("div",[t._v(" "+t._s(t.$t("view.item.component.item.supply.shippingConfig.platform1"))+" ")]):t._e()]):t._e()])],1):t._e()],1),e("div",{staticStyle:{"margin-left":"10px",flex:"1"}},[e("a-row",{attrs:{type:"flex"}},[e("a-col",{attrs:{flex:3}},[e("a",{on:{click:function(e){return t.openItem(i)}}},[t._v(" "+t._s(i.title)+" ")])])],1),e("a-row",{attrs:{type:"flex"}},[e("a-col",[t._v(" "+t._s(o.currency)+" "+t._s(i.price)+" ")]),e("a-col",{staticStyle:{"padding-left":"5px"}},[e("a-icon",{staticStyle:{"font-size":"10px","margin-right":"0","padding-right":"0"},attrs:{type:"close"}}),t._v(" "+t._s(i.num)+" ")],1),e("a-col",{staticStyle:{"padding-left":"5px"}},[i.activity_info&&i.activity_info.wholesaleprice_id>0?e("a-tooltip",[e("template",{slot:"title"},[t._v(" "+t._s(1===t.wholesalePriceData.type?t.$t("view.order.list.discount",{start:t.wholesalePriceData.start_num,end:t.wholesalePriceData.end_num,discount:t.wholesalePriceData.price}):t.$t("view.order.list.price",{start:t.wholesalePriceData.start_num,end:t.wholesalePriceData.end_num,price:t.shopQuoteCurrency+t.wholesalePriceData.price}))+" ")]),e("a-tag",{attrs:{color:"#2db7f5"},on:{mouseover:function(e){return t.getOrderItemWholesalePrice(i.activity_info.wholesaleprice_id)}}},[t._v(" "+t._s(t.$t("view.item.wholesale.form.new_price"))+" ")])],2):t._e()],1)],1),e("a-row",{attrs:{type:"flex"}},[e("a-col",{attrs:{flex:3}},["string"==typeof i.sku_prop?e("span",[t._v(" "+t._s(i.sku_prop)+" ")]):e("span",t._l(i.sku_prop,(function(i,a){return e("div",{key:a},[e("span",[t._v(t._s(a)+":"+t._s(i))])])})),0)])],1),e("a-row",[e("a-col",{attrs:{flex:3}},[t._v(" "+t._s(t.$t("view.item.sku.barcode"))+" : "+t._s(i.barcode)+" ")]),e("a-col",{attrs:{flex:3}},[t._v(" "+t._s(t.$t("view.item.sku.out_id"))+" : "),e("a",{on:{click:function(e){return t.handleStockAdd(i)}}},[t._v(" "+t._s(i.out_id))]),e("skuConv",{attrs:{fromPlatform:o.from_id,outId:i.out_id}})],1),e("a-col",{attrs:{flex:3}}),i.stock_log?e("a-col",{attrs:{flex:3}},[e("div",[e("webHookInfo",{attrs:{orderId:o.order_id,orderStatus:o.status,wareHouseId:Number(i.stock_log.warehouse_id)}})],1)]):t._e()],1),r<a.length-1?e("a-divider"):t._e()],1)])})),0)}},{key:"payment",fn:function(i){var a=i.text,o=i.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(a)+" ")]),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(o.currency)+" "+t._s(a)+" ")])],1):t._e()],1)}},{key:"status",fn:function(i){var a=i.text;return e("span",{},[e("div",[t._v(" "+t._s(t.$t(a))+" ")])])}},{key:"paymemberInfo",fn:function(i){var a=i.record;return e("span",{},[e("a-row",[a?e("a-col",{attrs:{lg:24}},[t._v(" "+t._s(t.$t("view.gangwei.list.realname"))+" : "+t._s(a.last_name||"")+" "+t._s(a.first_name||"")+" "),!a.member_id||"purchase"!=a.from_id&&"handlePay"!=a.from_id&&""!=a.from_id?t._e():e("message",{staticStyle:{display:"inline-block","margin-left":"5px"},attrs:{memberId:a.member_id}})],1):t._e(),a.phone&&""!=a.phone?e("a-col",{attrs:{lg:24}},[t._v(" "+t._s(t.$t("view.order.detail.ship_phone"))+" : "+t._s(a.phone)+" ")]):t._e(),e("a-col",{attrs:{lg:24}},[t._v(" "+t._s(t.$t("view.order.detail.ship_country"))+" : "+t._s(t.$t(a.country))+" ")]),e("a-col",{attrs:{lg:24}},[t._v(" "+t._s(t.$t("view.order.detail.ship_state"))+" : "+t._s(a.state)+" ")]),a.city?e("a-col",{attrs:{lg:24}},[t._v(" "+t._s(t.$t("view.order.detail.ship_city"))+" : "+t._s(a.city)+" ")]):t._e(),a.street?e("a-col",{attrs:{lg:24}},[t._v(" "+t._s(t.$t("view.order.detail.ship_street"))+" : "+t._s(a.street)+" ")]):t._e(),a.apartment?e("a-col",{attrs:{lg:24}},[t._v(" "+t._s(t.$t("view.order.detail.ship_men"))+" : "+t._s(a.apartment)+" ")]):t._e(),a.zip_code?e("a-col",{attrs:{lg:24}},[t._v(" "+t._s(t.$t("view.order.detail.zipcode"))+" : "+t._s(a.zip_code)+" ")]):t._e(),e("a-col",{attrs:{lg:24}},[t._v(" "+t._s(t.$t("view.order.detail.memberNote"))+" : "+t._s(a.member_note)+" ")]),e("a-col",{attrs:{lg:24}},[e("a-button",{directives:[{name:"show",rawName:"v-show",value:"ORDER_WAIT_SHIP"===a.status,expression:"record.status === 'ORDER_WAIT_SHIP'"}],attrs:{type:"primary"},on:{click:function(e){return t.handleModifyShipping(a)}}},[t._v(" "+t._s(t.$t("view.system.resourcegroup.Update"))+" ")])],1)],1)],1)}},{key:"operation",fn:function(i){var a=i.record;return e("span",{},[e("a",{on:{click:function(e){return t.handleReview(a)}}},[t._v(" "+t._s(t.$t("view.order.list.review.btn"))+" ")]),e("span",[e("a-divider",{attrs:{type:"vertical"}}),e("a",{on:{click:function(e){return t.handleInsure(a)}}},[t._v(" "+t._s(t.$t("view.order.list.insure.btn"))+" ")])],1),e("span",{directives:[{name:"show",rawName:"v-show",value:"ORDER_WAIT_PAYMENT"===a.status||"ORDER_PART_PAID"===a.status,expression:"record.status === 'ORDER_WAIT_PAYMENT' || record.status === 'ORDER_PART_PAID'"}]},[e("a-divider",{attrs:{type:"vertical"}}),e("a",{on:{click:function(e){return t.handlePay(a,!1)}}},[t._v(" "+t._s(t.$t("view.order.list.manual_pay"))+" ")])],1),e("span",{directives:[{name:"show",rawName:"v-show",value:"ORDER_WAIT_PAYMENT"===a.status||"ORDER_PART_PAID"===a.status||"ORDER_WAIT_SHIP"===a.status,expression:"\n record.status === 'ORDER_WAIT_PAYMENT' ||\n record.status === 'ORDER_PART_PAID' ||\n record.status === 'ORDER_WAIT_SHIP'\n "}]},[e("a-divider",{attrs:{type:"vertical"}}),e("a",{on:{click:function(e){return t.handleCloseOrder(a,!1)}}},[t._v(" "+t._s(t.$t("view.order.list.closeOrder"))+" ")])],1),e("span",{directives:[{name:"show",rawName:"v-show",value:"ORDER_WAIT_PAYMENT"!==a.status&&"ORDER_PART_PAID"!==a.status&&"handlePay"===a.from_id,expression:"\n record.status !== 'ORDER_WAIT_PAYMENT' &&\n record.status !== 'ORDER_PART_PAID' &&\n record.from_id === 'handlePay'\n "}]},[e("a-divider",{attrs:{type:"vertical"}}),e("a",{on:{click:function(e){return t.handlePay(a,!0)}}},[t._v(" "+t._s(t.$t("view.order.list.manual_pay"))+" ")])],1),e("span",{directives:[{name:"show",rawName:"v-show",value:"ORDER_WAIT_SHIP"===a.status,expression:"record.status === 'ORDER_WAIT_SHIP'"}]},[e("a-divider",{attrs:{type:"vertical"}}),e("a",{on:{click:function(e){return t.handleFaHuo(a)}}},[t._v(" "+t._s(t.$t("view.order.list.ship.btn"))+" ")])],1),e("span",{directives:[{name:"show",rawName:"v-show",value:"ORDER_AFTER_SALE"===a.status,expression:"record.status === 'ORDER_AFTER_SALE'"}]},[e("a-divider",{attrs:{type:"vertical"}}),e("a",{on:{click:function(e){return t.handleCancelAfterSales(a)}}},[t._v(" "+t._s(t.$t("view.order.list.aftersale.cancel.btn"))+" ")])],1),e("span",{directives:[{name:"show",rawName:"v-show",value:"ORDER_WAIT_SHIP"===a.status,expression:"record.status === 'ORDER_WAIT_SHIP'"}]},[e("a-divider",{attrs:{type:"vertical"}}),e("a-popover",{attrs:{title:t.$t("view.order.list.reset.push.log.title"),trigger:"click",placement:"bottom"}},[e("template",{slot:"content"},[e("a-table",{attrs:{columns:t.logListTitle,"data-source":t.logData,pagination:{pageSize:3}}},[e("span",{attrs:{slot:"action"},slot:"action"},[e("a-button",{attrs:{type:"primary"},on:{click:function(e){return t.orderPush(a)}}},[t._v(" "+t._s(t.$t("view.order.list.reset.push.log.action.btn"))+" ")])],1)])],1),e("a",{attrs:{type:"primary"},on:{click:function(e){return t.orderPushLog(a)}}},[t._v(t._s(t.$t("view.order.list.reset.push.log")))])],2)],1),"ORDER_WAIT_SHIP"===a.status&&1!==a.shop_id?e("span",[e("a-divider",{attrs:{type:"vertical"}}),e("a",{on:{click:function(e){return t.pushCaiGou(a)}}},[t._v(t._s(t.$t("component.procure.create.button1")))])],1):t._e(),e("div",[e("div",{attrs:{title:"订单备注"}},[a.user_note?e("a-tag",{staticStyle:{width:"80%"},attrs:{color:"orange"}},[t._v(t._s(a.user_note))]):t._e()],1),e("order-note",{attrs:{orderId:a.order_id,note:a.user_note},on:{ok:function(e){return t.getList()}}})],1)])}}])},[e("div",{staticClass:"table-operations",attrs:{slot:"button"},slot:"button"},[1!=t.shopId?e("autoPur"):t._e(),e("ordersShips",{attrs:{orders:t.selectedRows||[]},on:{ok:t.okShips}})],1)])],1)],1)},o=[],r=i("5530"),s=i("6958"),n=Object(r["a"])({},s["default"]),l=n,c=(i("11de"),i("2877")),d=Object(c["a"])(l,a,o,!1,null,null,null);e["default"]=d.exports},5194:function(t,e,i){"use strict";i.r(e);var a=function(){var t=this,e=t._self._c;return e("a-spin",{attrs:{spinning:t.loading,tip:"加载中..."}},[e("div",{style:"height:"+t.height},[e("iframe",{staticStyle:{width:"100%",height:"100%"},attrs:{src:t.src,frameborder:"no",scrolling:"auto"}})])])},o=[],r={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 t=this;setTimeout((function(){t.loading=!1}),230);var e=this;window.onresize=function(){e.height=document.documentElement.clientHeight-94.5+"px;"}},methods:{}},s=r,n=i("2877"),l=Object(n["a"])(s,a,o,!1,null,null,null);e["default"]=l.exports},"58f6":function(t,e,i){"use strict";i.r(e);var a=function(){var t=this,e=t._self._c;return e("a-select",{staticStyle:{width:"auto","min-width":"100px"},attrs:{value:t.value,disabled:t.disabled},on:{change:t.handleChange}},[e("a-select-option",{attrs:{value:1}},[t._v(t._s(t.$t("components.warehouseRule.warehouseMode.pricemin")))]),e("a-select-option",{attrs:{value:2}},[t._v(t._s(t.$t("components.warehouseRule.warehouseMode.time")))])],1)},o=[],r=(i("a9e3"),{name:"PriceCompareMethod",model:{prop:"value",event:"input"},props:{value:{type:Number,default:1},disabled:{type:Boolean,default:!1}},methods:{handleChange:function(t){this.$emit("input",t),this.$emit("change",t)}}}),s=r,n=i("2877"),l=Object(n["a"])(s,a,o,!1,null,"c2b8b322",null);e["default"]=l.exports},"5d54":function(t,e,i){"use strict";i("a32b")},"5ea1":function(t,e,i){"use strict";i("a4d4")},"5f19":function(t,e,i){"use strict";i.r(e);var a=function(){var t=this,e=t._self._c;return e("span",[e("a-row",{attrs:{gutter:24}},[e("a-col",{attrs:{lg:3}},[t._v(t._s(t.$t("view.item.list.good_id")))]),e("a-col",{attrs:{lg:3}},[t._v(t._s(t.$t("view.item.list.itemImage")))]),e("a-col",{attrs:{lg:12}},[t._v(t._s(t.$t("view.item.list.itemTitle")))])],1),e("div",{staticStyle:{"margin-top":"2px",border:"1px solid #ccc",padding:"5px"}},[e("a-row",{attrs:{gutter:24}},[e("a-col",{attrs:{lg:3}},[t._v(t._s(t.goodInfo.good_id))]),e("a-col",{attrs:{lg:3}},[t.getGoodInfo()?e("div",[e("img",{staticStyle:{width:"80px",height:"80px"},attrs:{src:t.goodInfo.image_url}})]):t._e()]),e("a-col",{staticStyle:{"line-height":"40px"},attrs:{lg:12}},[t.getGoodInfo()?e("div",[t._v(t._s(t.goodInfo.title))]):t._e()])],1)],1)],1)},o=[],r=(i("7db0"),i("d3b7"),{name:"GoodsIdOne",props:{goodsList:{type:Array,default:function(){return[]}},goodsId:{type:String,default:""}},computed:{goodInfo:function(){var t,e=this;return null===(t=this.goodsList)||void 0===t?void 0:t.find((function(t){return t.good_id+""===e.goodsId+""}))}},methods:{getGoodInfo:function(){var t,e=this;return null===(t=this.goodsList)||void 0===t?void 0:t.find((function(t){return t.good_id+""===e.goodsId+""}))}}}),s=r,n=i("2877"),l=Object(n["a"])(s,a,o,!1,null,null,null);e["default"]=l.exports},6947:function(t,e,i){"use strict";i("b6ad")},"7c87":function(t,e,i){},8220:function(t,e,i){"use strict";i.r(e);var a,o,r={template:'\n <svg t="1598838771152" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="2725" xmlns:xlink="http://www.w3.org/1999/xlink" width="200" height="200"><path d="M511.573333 85.333333C276.053333 85.333333 85.333333 276.48 85.333333 512s190.72 426.666667 426.24 426.666667C747.52 938.666667 938.666667 747.52 938.666667 512S747.52 85.333333 511.573333 85.333333zM693.333333 689.066667 469.333333 554.666667 469.333333 298.666667l64 0 0 224 192 113.92L693.333333 689.066667z" p-id="2726"></path></svg>'},s={name:"MtimeIcon",template:'\n <a-icon :component="MtimeSvg" />\n ',data:function(){return{MtimeSvg:r}}},n=s,l=i("2877"),c=Object(l["a"])(n,a,o,!1,null,null,null);e["default"]=c.exports},"8aac":function(t,e,i){"use strict";i.r(e);i("a9e3"),i("b0c0"),i("d3b7"),i("ddb0"),i("a4d3"),i("e01a");var a=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(i,a){return e("div",{key:a,staticStyle:{"padding-bottom":"1rem"}},[e("div",{staticStyle:{"margin-bottom":"1rem"}},[e("kandengGoodsOne",{attrs:{goodsList:t.goodList,goodsId:a}})],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:i.title,callback:function(e){t.$set(i,"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(i.category_id)+" "),e("tiktokGlobalCategory",{ref:"globalCat",refInFor:!0,attrs:{catList:t.tiktokGlobalCategoryList[a],categoryId:i.category_id},on:{"update:categoryId":function(e){return t.$set(i,"category_id",e)},"update:category-id":function(e){return t.$set(i,"category_id",e)},backGlobalCategory:function(e){return t.backGlobalCategory(e,a)}}})],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:i.brand_id,callback:function(e){t.$set(i,"brand_id",e)},expression:"tiktokGoodInfo.brand_id"}},t._l(t.pinPaiList[a],(function(i){return e("a-select-option",{key:i.id,attrs:{title:i.name,value:i.id}},[t._v(" "+t._s(i.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[a],(function(i,o){return e("a-col",{key:i.id+o,attrs:{lg:6}},[i.is_requried?e("a-form-model-item",{attrs:{label:i.name,required:""}},[i.values&&i.values.length?[i.values&&i.values.length&&t.product_attributes[a]&&t.product_attributes[a][o]?e("a-select",{directives:[{name:"decorator",rawName:"v-decorator",value:["attribute"+t.product_attributes[a][o].id,{rules:t.getRules(t.product_attributes[a][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,i){return t.onChangeAttributes(e,i,a,o)},search:function(e){return t.searchAttribute(e,o)},mouseenter:function(e){return t.getValues100(a,o)}},model:{value:t.product_attributes[a][o].values[0].id,callback:function(e){t.$set(t.product_attributes[a][o].values[0],"id",e)},expression:"product_attributes[good_id][index].values[0].id"}},t._l(i.list,(function(a){return i&&i.list?e("a-select-option",{key:a.id,attrs:{title:a.name,value:a.id,text:a.name}},[t._v(" "+t._s(a.name)+" ")]):t._e()})),1):t._e()]:[e("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["attribute"+t.product_attributes[a][o].id,{rules:t.getRules(t.product_attributes[a][o])}],expression:"[\n `attribute` + product_attributes[good_id][index].id,\n { rules: getRules(product_attributes[good_id][index]) },\n ]"}],model:{value:t.product_attributes[a][o].values[0].value,callback:function(e){t.$set(t.product_attributes[a][o].values[0],"value",e)},expression:"product_attributes[good_id][index].values[0].value"}})]],2):e("a-form-model-item",{attrs:{label:i.name}},[i.values&&i.values.length?[i.values&&i.values.length&&t.product_attributes[a][o]&&t.product_attributes[a][o].values[0]?e("a-select",{directives:[{name:"decorator",rawName:"v-decorator",value:["attribute"+t.product_attributes[a][o].id,{rules:t.getRules(t.product_attributes[a][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,i){return t.onChangeAttributes(e,i,a,o)}},model:{value:t.product_attributes[a][o].values[0].id,callback:function(e){t.$set(t.product_attributes[a][o].values[0],"id",e)},expression:"product_attributes[good_id][index].values[0].id"}},t._l(i.values,(function(i){return e("a-select-option",{key:i.id,attrs:{title:i.name,value:i.id,text:i.name}},[t._v(" "+t._s(i.name)+" ")])})),1):t._e()]:[t.product_attributes&&t.product_attributes[a][o]?e("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["attribute"+t.product_attributes[a][o].id,{rules:t.getRules(t.product_attributes[a][o])}],expression:"[\n `attribute` + product_attributes[good_id][index].id,\n { rules: getRules(product_attributes[good_id][index]) },\n ]"}],model:{value:t.product_attributes[a][o].values[0].value,callback:function(e){t.$set(t.product_attributes[a][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(i.main_images,(function(t,i){return e("a-col",{key:i,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",[i.certifications?e("a-row",{attrs:{gutter:24}},t._l(i.certifications,(function(i,o){return e("a-col",{key:o},[e("a-form-model-item",{attrs:{label:i.name,required:""}}),e("tiktok-attach-upload",{attrs:{shop_cipher:t.tiktokShop.cipher,id:i.id,user_case:"4"},on:{uploadBack:function(e){return t.resetQuery(e,i.id,a)}}})],1)})),1):t._e(),i.size_chart?e("a-row",{attrs:{gutter:24,type:"flex"}},[i.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,a)}}}),i.size_chart.image.uri?e("div",{staticClass:"check-style-unequal-width"}):t._e()],1)],1):t._e(),i.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:i.size_chart.template.id,callback:function(e){t.$set(i.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}},[i.package_weight?e("a-col",{attrs:{lg:6}},[e("a-form-model-item",{attrs:{label:t.$t("components.dyProduct.package_weight.value")+" "+i.package_weight.unit,required:""}},[e("a-input",{attrs:{disabled:!0},model:{value:i.package_weight.value,callback:function(e){t.$set(i.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")+" "+i.package_dimensions.unit,required:""}},[e("a-input",{attrs:{disabled:!0},model:{value:i.package_dimensions.height,callback:function(e){t.$set(i.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")+" "+i.package_dimensions.unit,required:""}},[e("a-input",{attrs:{disabled:!0},model:{value:i.package_dimensions.width,callback:function(e){t.$set(i.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")+" "+i.package_dimensions.unit,required:""}},[e("a-input",{attrs:{disabled:!0},model:{value:i.package_dimensions.length,callback:function(e){t.$set(i.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":i.skus,pagination:!1},scopedSlots:t._u([{key:"id",fn:function(i,a){return[e("a-row",[e("a-col",[e("a-input",{attrs:{"addon-before":a.identifier_code.type},model:{value:a.identifier_code.code,callback:function(e){t.$set(a.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:a.seller_sku,callback:function(e){t.$set(a,"seller_sku",e)},expression:"record.seller_sku"}})],1)],1)]}},{key:"stock_num",fn:function(i,a){return[a.global_quantity?e("a-input-number",{model:{value:a.global_quantity,callback:function(e){t.$set(a,"global_quantity",e)},expression:"record.global_quantity"}}):t._e()]}},{key:"price",fn:function(i,a){return[e("a-input",{scopedSlots:t._u([{key:"addonBefore",fn:function(){return[e("div",[t._v(t._s(a.price.currency))])]},proxy:!0}],null,!0),model:{value:a.price.amount,callback:function(e){t.$set(a.price,"amount",e)},expression:"record.price.amount"}})]}},{key:"mall_warehouse",fn:function(i,a){return[a.inventory&&a.inventory.length?e("div",{staticStyle:{display:"flex","align-items":"center"}},[e("div",{staticStyle:{flex:"1"}},[e("a-select",{staticStyle:{width:"100%"},model:{value:a.inventory[0].global_warehouse_id,callback:function(e){t.$set(a.inventory[0],"global_warehouse_id",e)},expression:"record.inventory[0].global_warehouse_id"}},t._l(t.global_ware_house_list,(function(i){return e("a-select-option",{key:i.id,attrs:{value:i.id}},[t._v(" "+t._s(i.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(i,a){return[e("div",t._l(a.sales_attributes,(function(i,a){return e("a-row",{key:i.id,attrs:{type:"flex"}},[e("a-col",{key:a,staticStyle:{"line-height":"30px"},attrs:{lg:8}},[t._v(" "+t._s(i.name)+" ")]),e("a-col",{attrs:{lg:16}},[e("a-input",{attrs:{type:"text",value:i.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_"+a,refInFor:!0,attrs:{id:a,good_id:a,value:i.description,updateStatus:t.aiTsUpdate},on:{"update:value":function(e){return t.$set(i,"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(i){return e("a-select-option",{key:i.id,attrs:{title:i.name,value:i.id}},[t._v(" "+t._s(i.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(i,a){return e("a-col",{key:i.id+a,attrs:{lg:6}},[i.is_requried?e("a-form-model-item",{attrs:{label:i.name,required:""}},[i.values&&i.values.length?[i.values&&i.values.length?e("a-select",{staticStyle:{width:"100%"},attrs:{optionFilterProp:"title","show-search":""},on:{change:function(e,i){return t.onChangePlAttributes(e,i,a)},search:function(e){return t.searchAttribute(e,a)},mouseenter:function(e){return t.getPlValues100(a)}}},t._l(i.list,(function(a){return i&&i.list?e("a-select-option",{key:a.id,attrs:{title:a.name,value:a.id,text:a.name}},[t._v(" "+t._s(a.name)+" ")]):t._e()})),1):t._e()]:[e("a-input",{on:{input:function(e){return t.inputAttribute(e,a)}}})]],2):e("a-form-model-item",{attrs:{label:i.name}},[i.values&&i.values.length?[i.values&&i.values.length?e("a-select",{staticStyle:{width:"100%"},attrs:{optionFilterProp:"title","show-search":""},on:{change:function(e,i){return t.onChangePlAttributes(e,i,a)},search:function(e){return t.searchAttribute(e,a)},mouseenter:function(e){return t.getPlValues100(a)}}},t._l(i.values,(function(i){return e("a-select-option",{key:i.id,attrs:{title:i.name,value:i.id,text:i.name}},[t._v(" "+t._s(i.name)+" ")])})),1):t._e()]:[e("a-input",{on:{input:function(e){return t.inputAttribute(e,a)}}})]],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=i("5530"),s=(i("3ca3"),i("d81d"),i("25f0"),i("b680"),i("4de4"),i("fb6a"),i("c740"),i("159b"),i("2f62")),n=i("a026"),l=i("296e"),c=i("b70c"),d=i("cec7"),u=i("2e136"),p=Object(n["b"])((function(){return Promise.resolve().then(i.bind(null,"2dd7"))})),m=Object(n["b"])((function(){return i.e("chunk-1b5a347c").then(i.bind(null,"16f2"))})),h=Object(n["b"])((function(){return i.e("chunk-286b8764").then(i.bind(null,"12b1"))})),_=Object(n["b"])((function(){return i.e("chunk-1b5a347c").then(i.bind(null,"5f19"))})),v={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:h,kandengGoodsOne:_,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,i){e.$refs["ComDitor_"+i][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,i){return e.tiktokPublication(t)}))).then((function(t){e.$message.destroy()}))},tiktokPublication:function(t){var e=this,i=this,a={};return a.good_id=t.good_id,a.shop_cipher=i.tiktokShop.cipher,a.good_type=i.tiktokProductType,Object(l["h"])(a).then((function(a){return 0===a.code&&(delete a.code,delete a.message,i.tiktokProductList[t.good_id]=a,a.category_id&&(e.tiktokGlobalItemAttribute(t.good_id),e.getPinPai("",t.good_id)),i.tiktokProductList[t.good_id].delivery_option_ids&&1===i.tiktokProductList[t.good_id].delivery_option_ids.length&&""===i.tiktokProductList[t.good_id].delivery_option_ids[0]&&(i.tiktokProductList[t.good_id].delivery_option_ids=[]),"CROSS_BORDER"!==e.tiktokShopSellerType?e.getGlobalTuiJianCat(t.good_id):e.getGlobalCategory(t.good_id)),i.$set(e,"tiktokProductList",Object.assign({},i.tiktokProductList)),a}))},saveTiktok:function(){var t=this,e=this;this._.map(this.tiktokProductList,(function(i,a){var o;e.$refs["ComDitor_"+a]&&(null===(o=e.$refs["ComDitor_"+a])||void 0===o?void 0:o.length)>0&&e.$refs["ComDitor_"+a][0].getValue1();var r=[];t.product_attributes[a]&&t.product_attributes[a].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))})),i.product_attributes=r}));var i={shop_cipher:this.tiktokShop.cipher,body:this.tiktokProductList,tiktok_good_type:this.tiktokProductType};Object(l["b"])(i).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(i){var a=e.tiktokProductList[t].product_attributes.findIndex((function(t){return t.id===i.id}));if(-1===a){var o={id:i.id,values:[]};i.values&&i.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[a])})),this.$set(this,"product_attributes",Object.assign({},this.product_attributes))},searchPinPai:function(t,e){this.getPinPai(t,e)},getPinPai:function(t,e){var i=this,a=this,o={shop_cipher:a.tiktokShop.cipher};t&&(o.brand_name=t),Object(l["u"])(o).then((function(t){0===t.code&&(i.pinPaiList[e]=t.data.brands,i.brandList=t.data.brands,i.$set(i,"pinPaiList",Object.assign({},i.pinPaiList)))}))},getPlPinPai:function(t){var e=this,i={shop_cipher:e.tiktokShop.cipher};t&&(i.brand_name=t),Object(l["u"])(i).then((function(t){0===t.code&&(e._.map(e.tiktokProductList,(function(i,a){e.pinPaiList[a]=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,i){e.brand_id=t})),this.$set(this,"tiktokProductList",Object.assign({},this.tiktokProductList))},getGlobalTuiJianCat:function(t){var e=this,i=this,a={body:{product_title:i.tiktokProductList[t].title},shop_cipher:i.tiktokShop.cipher};Object(l["l"])(a).then((function(i){if(0===i.code){var a="";i.data.categories.map((function(t){!t.is_leaf&&t.level<3?a+=t.name+">":t.is_leaf&&3===t.level&&(t.name=a+t.name)})),e.tiktokTuiJianCatList[t]=i.data.categories}}))},getGlobalCategory:function(t){var e=this,i=this,a={shop_cipher:i.tiktokShop.cipher};i.tiktokGlobalLocate&&(a.locale=i.tiktokGlobalLocate),Object(l["j"])(a).then((function(i){0===i.code&&(e.tiktokProductGlobalCatgoryShow=!0,e.tiktokGlobalCategory(i.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(i,a){e.tiktokProductList[a].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,i=this,a={shop_cipher:i.tiktokShop.cipher,category_id:i.tiktokProductList[t].category_id};Object(l["i"])(a).then((function(a){var o,r,s,n,l,c;null!==a&&void 0!==a&&null!==(o=a.data)&&void 0!==o&&null!==(r=o.product_certifications)&&void 0!==r&&r.length&&(i.tiktokRule.product_certifications=a.data.product_certifications,a.data.product_certifications.forEach((function(e){e.is_required&&(i.tiktokProductList[t].certifications||(i.tiktokProductList[t].certifications=[]),i.tiktokProductList[t].certifications.push({id:e.id,name:e.name,sample_image_url:e.sample_image_url,images:[{uri:""}]}))}))),null!==a&&void 0!==a&&null!==(s=a.data)&&void 0!==s&&null!==(n=s.size_chart)&&void 0!==n&&n.is_required&&null!==a&&void 0!==a&&null!==(l=a.data)&&void 0!==l&&null!==(c=l.size_chart)&&void 0!==c&&c.is_supported&&(i.tiktokRule.size_chart=a.data.size_chart,i.tiktokProductList[t].size_chart||(i.tiktokProductList[t].size_chart={}),i.tiktokProductList[t].size_chart.image={uri:""},i.tiktokProductList[t].size_chart.template={id:""}),e.$set(e,"tiktokProductList",Object.assign({},e.tiktokProductList))}))},tiktokPlGlobalCategoryRule:function(t){var e=this,i=this,a={shop_cipher:i.tiktokShop.cipher,category_id:t};Object(l["i"])(a).then((function(t){var a,o,r,s,n,l;null!==t&&void 0!==t&&null!==(a=t.data)&&void 0!==a&&null!==(o=a.product_certifications)&&void 0!==o&&o.length&&i._.map(i.tiktokProductList,(function(e,a){i.tiktokRule.product_certifications=t.data.product_certifications,t.data.product_certifications.forEach((function(t){t.is_required&&(i.tiktokProductList[a].certifications||(i.tiktokProductList[a].certifications=[]),i.tiktokProductList[a].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&&i._.map(i.tiktokProductList,(function(e,a){i.tiktokRule.size_chart=t.data.size_chart,i.tiktokProductList[a].size_chart||(i.tiktokProductList[a].size_chart={}),i.tiktokProductList[a].size_chart.image={uri:""},i.tiktokProductList[a].size_chart.template={id:""}})),e.$set(e,"tiktokProductList",Object.assign({},e.tiktokProductList))}))},plTemplate:function(t){this._.map(this.tiktokProductList,(function(e,i){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,i){e.size_chart.image.uri=t.img_id})),this.$set(this,"tiktokProductList",Object.assign({},this.tiktokProductList)))},tiktokGlobalItemAttribute:function(t){var e=this,i=this,a={shop_cipher:i.tiktokShop.cipher,category_id:i.tiktokProductList[t].category_id};Object(l["k"])(a).then((function(i){0===i.code&&(e.attributeList=i.data.attributes,e.attributesList[t]=i.data.attributes,e.NewAttributesList(t))}))},tiktokPlGlobalItemAttribute:function(t){var e=this,i={shop_cipher:e.tiktokShop.cipher,category_id:t};Object(l["k"])(i).then((function(t){0===t.code&&(e.attributeList=t.data.attributes,e._.map(e.tiktokProductList,(function(i,a){e.attributesList[a]=t.data.attributes,e.NewAttributesList(a)})))}))},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(i,a){e.product_attributesList[a][t].list&&0!==e.product_attributesList[a][t].list.length||(e.product_attributesList[a][t].list=e.product_attributesList[a][t].values.slice(0,100))})),this.$set(this,"product_attributesList",Object.assign({},this.product_attributesList))},inputAttribute:function(t,e){var i=this;this._.map(this.tiktokProductList,(function(a,o){i.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,i){e.package_weight.value=t.target.value})),this.$set(this,"tiktokProductList",Object.assign({},this.tiktokProductList))},plChangeSizeChart:function(t,e){this._.map(this.tiktokProductList,(function(i,a){i.package_dimensions[e]=t.target.value})),this.$set(this,"tiktokProductList",Object.assign({},this.tiktokProductList))},onChangeAttributes:function(t,e,i,a){var o;this.product_attributes[i][a].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,i){var a=this;this._.map(this.tiktokProductList,(function(o,r){var s;a.product_attributes[r][i].values[0].id=t,a.product_attributes[r][i].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,i){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,i){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,i){this.tiktokProductList[i].certifications.forEach((function(i){i.id===e&&(i.images=[{uri:t.img_id}])}))},batchSubmit:function(){var t=this,e=[];t._.map(t.tiktokProductList,(function(t,i){e.push(Number(i))}));var i={shop_cipher:t.tiktokShop.cipher,good_ids:e,tiktok_good_type:t.tiktokProductType};t.btnLoading=!0,Object(l["a"])(i).then((function(e){t.btnLoading=!1})).catch((function(){t.btnLoading=!1}))}}},f=Object(r["a"])({},v),g=f,k=i("2877"),y=Object(k["a"])(g,a,o,!1,null,null,null);e["default"]=y.exports},"8cdb":function(t,e,i){"use strict";i.r(e);var a=function(){var t=this,e=t._self._c;return e("div")},o=[],r={name:"404"},s=r,n=i("2877"),l=Object(n["a"])(s,a,o,!1,null,"206078e4",null);e["default"]=l.exports},"8faf":function(t,e,i){"use strict";i.r(e);var a=function(){var t=this,e=t._self._c;return e("span",[e("a-button",{attrs:{type:"primary"},on:{click:t.openLoginModal}},[t._v(t._s(t.$t("view.user.syn.register.tab1")))]),e("a-modal",{attrs:{visible:t.visible,title:t.formTitle,zIndex:9999},on:{cancel:t.Cencel}},[e("div",[e("a-form-model",{ref:"form",staticClass:"user-layout-login",attrs:{id:"formLogin",model:t.formData,rules:t.rules}},[e("a-form-model-item",{attrs:{prop:"username"}},[e("a-input",{attrs:{size:"large",placeholder:t.$t("view.config.email.add.username.label")},model:{value:t.formData.username,callback:function(e){t.$set(t.formData,"username",e)},expression:"formData.username"}},[e("a-icon",{style:{color:"rgba(0,0,0,.25)"},attrs:{slot:"prefix",type:"user"},slot:"prefix"})],1)],1),e("a-form-model-item",{attrs:{prop:"password"}},[e("a-input-password",{attrs:{size:"large",placeholder:t.$t("view.login.email.add.password.label")},model:{value:t.formData.password,callback:function(e){t.$set(t.formData,"password",e)},expression:"formData.password"}},[e("a-icon",{style:{color:"rgba(0,0,0,.25)"},attrs:{slot:"prefix",type:"lock"},slot:"prefix"})],1)],1),e("a-form-model-item",{attrs:{prop:"realname"}},[e("a-input",{attrs:{size:"large",placeholder:t.$t("view.config.email.add.realname.label")},model:{value:t.formData.realname,callback:function(e){t.$set(t.formData,"realname",e)},expression:"formData.realname"}},[e("a-icon",{style:{color:"rgba(0,0,0,.25)"},attrs:{slot:"prefix",type:"user"},slot:"prefix"})],1)],1),e("a-form-model-item",{attrs:{prop:"mobile"}},[e("a-input",{attrs:{size:"large",placeholder:t.$t("view.config.email.add.mobile.label")},model:{value:t.formData.mobile,callback:function(e){t.$set(t.formData,"mobile",e)},expression:"formData.mobile"}},[e("a-icon",{style:{color:"rgba(0,0,0,.25)"},attrs:{slot:"prefix",type:"phone"},slot:"prefix"})],1)],1),e("a-form-model-item",{attrs:{prop:"email"}},[e("a-input",{attrs:{size:"large",placeholder:t.$t("view.config.email.add.email.label")},model:{value:t.formData.email,callback:function(e){t.$set(t.formData,"email",e)},expression:"formData.email"}},[e("a-icon",{style:{color:"rgba(0,0,0,.25)"},attrs:{slot:"prefix",type:"mail"},slot:"prefix"})],1)],1),e("a-row",{attrs:{gutter:16}},[e("a-col",{staticClass:"gutter-row",attrs:{lg:18,sm:18,md:18,xs:16}},[e("a-form-model-item",{attrs:{prop:"code"}},[e("a-input",{attrs:{size:"large",type:"text",autocomplete:"off",placeholder:t.$t("view.modal.email.code.placeholder")},model:{value:t.formData.code,callback:function(e){t.$set(t.formData,"code",e)},expression:"formData.code"}},[e("a-icon",{style:{color:"rgba(0,0,0,.25)"},attrs:{slot:"prefix",type:"security-scan"},slot:"prefix"})],1)],1)],1),e("a-col",{staticClass:"gutter-row",attrs:{lg:6,sm:6,md:6,xs:8}},[e("a-button",{staticClass:"login-button",staticStyle:{padding:"0 0px"},attrs:{type:"primary",loading:t.codeLoading,size:"large"},on:{click:t.getEmailCode}},[t._v(t._s(t.codeLoading?t.$t("view.modal.code.time",{time:t.currentCodeTime}):t.$t("view.modal.email.code")))])],1)],1),e("a-form-model-item",{attrs:{prop:"distribution_code"}},[e("a-input",{attrs:{size:"large",placeholder:t.$t("view.config.add.code.label")},model:{value:t.formData.distribution_code,callback:function(e){t.$set(t.formData,"distribution_code",e)},expression:"formData.distribution_code"}},[e("a-icon",{style:{color:"rgba(0,0,0,.25)"},attrs:{slot:"prefix",type:"security-scan"},slot:"prefix"})],1)],1)],1)],1),e("template",{slot:"footer"},[e("a-button",{key:"back",on:{click:t.Cencel}},[t._v(" "+t._s(t.$t("view.service.message.modal.cancelText"))+" ")]),e("a-button",{key:"submit",attrs:{type:"primary",loading:t.loading},on:{click:t.register}},[t._v(" "+t._s(t.$t("view.user.register"))+" ")])],1)],2)],1)},o=[],r=i("5530"),s=(i("d3b7"),i("a9e3"),i("25f0"),i("c0c7")),n=i("56cd"),l=i("bc3a"),c=i.n(l),d=i("ca00"),u={name:"PlatformRegiset",data:function(){return{formData:{},visible:!1,formTitle:"",loading:!1,codeLoading:!1,codeUrl:"",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"}]},currentCodeTime:0}},props:{role:{type:String,required:!0},registerUrl:{type:String,required:!0},showConfigList:{type:Boolean,default:!1},title:{type:String,required:!0}},created:function(){this.formTitle=this.title+this.$t("view.user.syn.register.tab1"),this.initData()},methods:{emilCode:function(t){return c.a.defaults.withCredentials=!0,fetch(this.registerUrl+"/admin/member/email/verify",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(t)}).then((function(t){return t.json()})).then((function(t){return t}))},memberRegister:function(t){var e=JSON.parse(JSON.stringify(t));return e.role=Number(this.role),fetch(this.registerUrl+"/admin/member/register",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)}).then((function(t){return t.json()})).then((function(t){return 0!==t.code&&n["a"].error({message:t.message,description:t.message}),t})).catch((function(t){}))},getEmailCode:function(){var t=this;this.codeLoading||this.$refs.form.validateField("email",(function(e){e||t.emilCode({email:t.formData.email}).then((function(e){0===e.code&&(t.codeLoading=!0,t.getCodeTime(),t.$message.success(t.$t("view.modal.code.succes")))}))}))},getCodeTime:function(){var t=this,e=30;this.currentCodeTime=e,this.CodeTime=setInterval((function(){e--,t.currentCodeTime=e,e<=0&&(t.codeLoading=!1,clearInterval(t.CodeTime))}),1e3)},initData:function(){var t=this;Object(s["j"])().then((function(e){e.user&&(t.formData={realname:e.user.realname,email:e.user.email,mobile:e.user.mobile,username:e.user.username,password:Object(d["g"])(6)})}))},register:function(){var t=this;this.$refs.form.validate((function(e){e&&(t.loading=!0,t.formData.remark="蜂洞客户",t.memberRegister(t.formData).then((function(e){t.loading=!1,0===e.code&&(t.$message.success(t.$t("view.modal.register.succes")),t.formData.huoyuan_name=t.title,t.formData.huoyuan_url=t.registerUrl,t.$emit("registerSuccess",t.formData),t.Cencel())})).catch((function(e){t.loading=!1,n["a"].error({message:e.toString(),description:e.toString()})})))}))},setConfig:function(){var t=this;this.showConfigList&&this.$refs.platfConfigRef.openModal(),setTimeout((function(){var e=t.formData;t.$refs.platfConfigRef.showModal({syntype:"beehole",api_url:t.registerUrl,app_key:e.username,app_secret:e.password,beehole_login_type:2})}),500)},openLoginModal:function(){this.visible=!0},Cencel:function(){this.visible=!1}},components:{}},p=Object(r["a"])({},u),m=p,h=(i("6947"),i("2877")),_=Object(h["a"])(m,a,o,!1,null,"21b00a37",null);e["default"]=_.exports},a32b:function(t,e,i){},a4d4:function(t,e,i){},abd6:function(t,e,i){"use strict";i.r(e);var a=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=i("5530"),s=(i("d3b7"),i("3ca3"),i("ddb0"),i("a9e3"),i("d81d"),i("2dd7")),n=i("89f8"),l=i("a026"),c=Object(l["b"])((function(){return Promise.resolve().then(i.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=[],i=this.stockForm.stockRow.split("\n");i.map((function(i){var a=i.split(",");e.push({out_id:a[0],stock_quantity:a[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=i("2877"),h=Object(m["a"])(p,a,o,!1,null,null,null);e["default"]=h.exports},adee:function(t,e,i){},b6ad:function(t,e,i){},c06f:function(t,e,i){"use strict";i.r(e);var a=function(){var t=this,e=t._self._c;return e("span",[e("a-table",{attrs:{columns:t.columns,"row-selection":{type:"radio",selectedRowKeys:t.selectedRowKeys,onChange:t.onSelectChange},"data-source":t.list,rowkey:"id",pagination:{current:t.query.page,pageSize:t.query.limit,total:t.total,showSizeChanger:!1,showLessItems:!1,showQuickJumper:!1,onChange:t.changeSize,hideOnSinglePage:!0}},scopedSlots:t._u([{key:"source_lang",fn:function(i,a){return e("span",{},[t._v(" "+t._s(t.$t(t.langLabel[a.source_lang]))+" ")])}},{key:"target_lang",fn:function(i,a){return e("span",{},[t._v(" "+t._s(t.$t(t.langLabel[a.target_lang]))+" ")])}},{key:"video_url",fn:function(i,a){return e("span",{},[e("div",[e("div",{style:{width:"150px",height:"150px"}},[a.video_url?e("video",{ref:"sfGalleryBigImage",staticStyle:{"object-position":"top","max-height":"150px"},attrs:{autoplay:!1,muted:"",preload:"load",loop:"",src:a.video_url,width:"100%",height:"100%",controls:"controls",playsinline:""},domProps:{muted:!0}},[e("source",{attrs:{src:a.video_url,type:"video/*"}})]):t._e()]),e("div",[t._v(t._s(a.video_url))])])])}}])})],1)},o=[],r=i("3726"),s={name:"VideoList",props:{url:{type:String,default:""},hiddenIcon:{type:Boolean,default:!1}},data:function(){var t=this,e=this.$createElement;return{list:[],query:{page:1,limit:10},total:0,columns:[{title:this.$t("components.imagetext.translation.sourceLang"),dataIndex:"source_lang",key:"source_lang",scopedSlots:{customRender:"source_lang"}},{title:this.$t("components.imagetext.translation.targetLang"),dataIndex:"target_lang",key:"target_lang",scopedSlots:{customRender:"target_lang"}},{title:function(){return e("span",[t.$t("components.videoList.table.video"),e("a-tooltip",{attrs:{title:t.$t("view.item.skulist.btn.refresh")}},[e("a-icon",{on:{click:t.getList},class:"action",attrs:{type:t.loading?"loading":"reload"}})])])},dataIndex:"video_url",key:"video_url",scopedSlots:{customRender:"video_url"}}],langLabel:{zh:"zh-CN",en:"en-US",fr:"fr-FR",es:"es-ES",ar:"ar-EG",hi:"hi-IN",pt:"pt-PT",ru:"ru-RU",it:"it-IT",de:"de-DE",ja:"ja-JP",th:"th-TH",ko:"ko-KR",bn:"bn-BD",id:"id-ID",vi:"vi-VN",ms:"ms-MY"},selectedRowKeys:[],loading:!1}},created:function(){this.getList()},methods:{getList:function(){var t=this;this.loading=!0,Object(r["g"])({page:this.query.page,limit:this.query.limit}).then((function(e){0===e.code&&(t.list=e.list,t.total=e.total),t.loading=!1})).catch((function(){t.loading=!1}))},changeSize:function(t){this.query.page=t,this.getList()},onSelectChange:function(t,e){this.selectedRowKeys=t,this.$emit("ok",e[0].video_url)}}},n=s,l=i("2877"),c=Object(l["a"])(n,a,o,!1,null,null,null);e["default"]=c.exports},cc89:function(t,e,i){"use strict";i.r(e);var a=function(){var t=this,e=t._self._c;return e("div")},o=[],r={name:"Exception404",methods:{toHome:function(){this.$router.push({path:"/"})}}},s=r,n=i("2877"),l=Object(n["a"])(s,a,o,!1,null,null,null);e["default"]=l.exports},dc25:function(t,e,i){"use strict";i.r(e);var a=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=i("2877"),l=Object(n["a"])(s,a,o,!1,null,null,null);e["default"]=l.exports},de6c:function(t,e,i){"use strict";i.r(e);var a=function(){var t=this,e=t._self._c;return e("div",[e("div",{staticStyle:{display:"flex","flex-wrap":"wrap","align-items":"center",gap:"5px"}},[t.stockData&&t.stockData.warehouse_country_list?e("div",[e("a-select",{staticStyle:{"min-width":"100px"},on:{change:t.changeCountry},model:{value:t.countryName,callback:function(e){t.countryName=e},expression:"countryName"}},t._l(t.stockData.warehouse_country_list,(function(i){return e("a-select-option",{key:i},[t._v(t._s(t.$t(i)))])})),1)],1):t._e(),t.stockData&&void 0!==t.stockData.available_stock?e("a",[e("a-tag",{attrs:{color:t.getRgb(t.warehouseId)}},[e("div",{staticStyle:{display:"flex","flex-wrap":"wrap",gap:"5px"}},[e("div",[t._v(t._s(t.$t("view.skuStockDescribe.availableStock"))+" "+t._s(t.stockData.available_stock)+" = ")]),e("div",[t._v(t._s(t.$t("view.skuStockDescribe.physicalStock"))+" "+t._s(t.stockData.physical_stock)+" - ")]),e("div",[t._v(t._s(t.$t("view.skuStockDescribe.lockStock"))+" "+t._s(t.stockData.lock_stock)+" -")]),e("div",[t._v(t._s(t.$t("view.skuStockDescribe.reservedStock"))+" "+t._s(t.stockData.reserved_stock))])])])],1):t._e()]),e("ant-modal",{attrs:{visible:t.open,"modal-title":t.$t("view.skuStockDescribe.modalTitle")},on:{cancel:t.close}},[e("div",{attrs:{slot:"content"},slot:"content"},[e("a-row",[e("a-col",{attrs:{lg:12}},[t._v(" "+t._s(t.$t("view.skuStockDescribe.availableStock"))+": "+t._s(t.stockData.available_stock)+" ")]),e("a-col",{attrs:{lg:12}},[t._v(" "+t._s(t.$t("view.skuStockDescribe.lockStock"))+": "+t._s(t.stockData.lock_stock)+" ")]),e("a-col",{attrs:{lg:12}},[t._v(" "+t._s(t.$t("view.skuStockDescribe.physicalStock"))+": "+t._s(t.stockData.physical_stock)+" ")]),e("a-col",{attrs:{lg:12}},[t._v(" "+t._s(t.$t("view.skuStockDescribe.reservedStock"))+": "+t._s(t.stockData.reserved_stock)+" ")])],1)],1)])],1)},o=[],r=(i("99af"),i("89f8")),s=i("2dd7"),n=i("ca00"),l={data:function(){return{open:!1,stockData:{},countryName:""}},props:{warehouseId:null,outId:null,country:null},created:function(){this.fetchStockData(!0)},methods:{openModal:function(){this.open=!0,this.fetchStockData()},close:function(){this.open=!1},changeCountry:function(){this.fetchStockData()},fetchStockData:function(t){var e=this,i={warehouse_id:this.warehouseId,out_id:this.outId,country:this.country};this.countryName&&(i.country=this.countryName),Object(r["a"])(i).then((function(i){var a;0===i.code&&(e.stockData=Object.assign({},i),e.stockData.warehouse_country_list&&e.stockData.warehouse_country_list.length>0&&t&&(e.countryName=null===(a=e.stockData.warehouse_country_list)||void 0===a?void 0:a[0]))}))},getRgb:function(t){var e=Object(n["i"])(t);return e?"rgb(".concat(e[0],", ").concat(e[1],", ").concat(e[2],")"):"rgb(255, 255, 0)"}},components:{AntModal:s["default"]}},c=l,d=(i("3713"),i("2877")),u=Object(d["a"])(c,a,o,!1,null,"a9009144",null);e["default"]=u.exports},e52f:function(t,e,i){"use strict";i.r(e);var a=function(){var t=this,e=t._self._c;return e("div",t._l(t.countryList,(function(i){return 0==i.status?e("div",{key:i.country_code,staticStyle:{"margin-right":"5px",display:"inline-block"}},[t._v(" "+t._s(t.$t(i.country_code))+" ")]):t._e()})),0)},o=[],r=(i("d81d"),i("4dc7")),s={name:"WarehouseCountryList",data:function(){return{countryList:[]}},props:{wareaHouseId:null},created:function(){this.getCountryList()},methods:{getCountryList:function(){var t=this;Object(r["c"])().then((function(e){var i=[];e.list&&e.list.length&&e.list.map((function(e){e.warehouse_id===t.wareaHouseId&&i.push(e)})),t.countryList=i}))}}},n=s,l=i("2877"),c=Object(l["a"])(n,a,o,!1,null,null,null);e["default"]=c.exports},f9ea:function(t,e,i){"use strict";i.r(e);i("a9e3");var a=function(){var t=this,e=t._self._c;return e("span",[t.isA?e("a",{on:{click:t.openModal}},[t._v(t._s(t.$t("view.order.detail.warehouse.update")))]):e("a-button",{attrs:{type:"primary"},on:{click:t.openModal}},[t._v(t._s(t.$t("view.order.detail.warehouse.update")))]),e("ant-modal",{attrs:{visible:t.visable,"modal-title":t.formTitle,"adjust-size":!0,modalHeight:"600",modalWidth:"1200"},on:{cancel:function(e){return t.closeModal()}},scopedSlots:t._u([{key:"footer",fn:function(){return[e("a-button",{on:{click:t.closeModal}},[t._v(t._s(t.$t("view.test.list.form.button.cancel")))])]},proxy:!0}])},[t.order?e("div",{staticClass:"orderDetail",attrs:{slot:"content"},slot:"content"},[e("a-row",[e("a-col",{attrs:{span:24}},[e("div",[e("div",[t._v(" "+t._s(t.$t("order.switch.warehouse.koujian.stock.title"))+" :"),e("wareHouseInfo",{attrs:{warehouseId:t.order.order_item[0].stock_log?Number(t.order.order_item[0].stock_log.warehouse_id):0}})],1),e("div",[t._v(" "+t._s(t.$t("order.switch.warehouse.koujian.stock.reset.title"))+":"),t.order.order_item?e("wareHouseSelect",{staticStyle:{width:"200px",display:"inline-block","margin-right":"10px"},attrs:{wareHouseId:t.order.order_item[0].stock_log?Number(t.order.order_item[0].stock_log.warehouse_id):0},on:{change:t.changeWareHouseId}}):t._e(),e("a-button",{attrs:{type:"primary"},on:{click:t.saveWareHouse}},[t._v(t._s(t.$t("view.order.detail.warehouse.update")))])],1)])])],1),e("a-table",{attrs:{columns:t.columns,"data-source":t.order.order_item,pagination:!1},scopedSlots:t._u([{key:"img_url",fn:function(t){return[e("a-avatar",{attrs:{shape:"square",size:85,src:t}})]}},{key:"Title",fn:function(i,a){return[e("div",[e("div",[t._v(t._s(a.title))]),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(i,a){return e("div",{key:a},[e("span",[t._v(t._s(a)+":"+t._s(i))])])})),0)])],1),e("div",[t._v(t._s(t.$t("view.order.detial.item.outid"))+" "+t._s(a.out_id))]),e("div",[t._v(t._s(t.$t("view.order.detial.item.barcode"))+" "+t._s(a.barcode))]),a.stock_log?e("div",[t._v(" "+t._s(t.$t("view.item.sku.wareHouse"))+" "),e("wareHouseInfo",{attrs:{warehouseId:a.stock_log.warehouse_id}})],1):t._e()],1)]}},{key:"price",fn:function(i){return[e("div",[t._v(t._s(t.shopQuoteCurrency)+" "+t._s(i))])]}},{key:"discount",fn:function(i){return[e("div",[t._v(t._s(t.shopQuoteCurrency)+" "+t._s(i))])]}},{key:"tax_fee",fn:function(i){return[e("div",[t._v(t._s(t.shopQuoteCurrency)+" "+t._s(i))])]}},{key:"amount",fn:function(i){return[e("div",[t._v(t._s(t.shopQuoteCurrency)+" "+t._s(i))])]}}],null,!1,3588468014)})],1):t._e()])],1)},o=[],r=i("5530"),s=i("3a10"),n=i("2dd7"),l=i("d7eec"),c=i("2f62"),d=i("f2b2"),u={name:"switchWareHouse",data:function(){return{order:null,visable:!1,formTitle:"",wareHouseId:0,columns:[{title:this.$t("view.order.detail.item"),dataIndex:"img_url",key:"img_url",width:"110px",scopedSlots:{customRender:"img_url"}},{title:this.$t("view.order.detail.itemTitle"),dataIndex:"Title",key:"Title",width:"200px",scopedSlots:{customRender:"Title"}},{title:this.$t("view.order.detail.itemNum"),dataIndex:"num",key:"num"},{title:this.$t("view.order.detail.itemPrice"),key:"price",dataIndex:"price",scopedSlots:{customRender:"price"}},{title:this.$t("view.order.detail.discount"),key:"discount",dataIndex:"discount",scopedSlots:{customRender:"discount"}},{title:this.$t("view.order.detail.tax"),key:"tax_fee",dataIndex:"tax_fee",scopedSlots:{customRender:"tax_fee"}},{title:this.$t("view.order.detail.amount"),key:"amount",dataIndex:"total_payment",scopedSlots:{customRender:"amount"}}]}},computed:Object(r["a"])({},Object(c["c"])(["shopQuoteCurrency","isMobile","domain"])),components:{AntModal:n["default"],wareHouseSelect:l["a"],wareHouseInfo:d["default"]},props:{orderId:{type:String,default:0},isA:{type:Boolean,default:!0},note:{type:String,default:""},skuId:null},methods:{openModal:function(){this.formTitle=this.$t("view.order.detail.warehouse.modal.title",{orderNo:this.orderId}),this.visable=!0,this.getOrder()},closeModal:function(){this.visable=!1},getOrder:function(){var t=this,e=[];this.orderId&&e.push({field:"order_id",operator:"eq",value:this.orderId});var i={};i.conditions=e,Object(s["y"])(i).then((function(e){var i;if(t.order=null===(i=e.list)||void 0===i?void 0:i[0],null==t.order)return t.$notification.error({message:t.$t("view.order.list.order.null"),duration:5}),!1}))},changeWareHouseId:function(t){this.wareHouseId=t},saveWareHouse:function(){var t=this;this.$confirm({title:this.$t("view.order.detail.warehouse.modal.confirm.title"),content:this.$t("view.order.detail.warehouse.modal.confirm.content"),onOk:function(){var e,i,a,o;Object(s["D"])({order_id:t.orderId,switch_info:[{to_warehouse_id:t.wareHouseId,sku_id:null===(e=t.order.order_item)||void 0===e||null===(i=e[0])||void 0===i?void 0:i.sku_id,out_id:null===(a=t.order.order_item)||void 0===a||null===(o=a[0])||void 0===o?void 0:o.out_id}],warehouse_id:t.wareHouseId}).then((function(e){0===e.code&&(t.$notification.success({message:t.$t("view.order.detail.warehouse.update.success"),duration:5}),t.$emit("ok"),t.getOrder())}))},onCancel:function(){}})}}},p=Object(r["a"])({},u),m=p,h=i("2877"),_=Object(h["a"])(m,a,o,!1,null,null,null);e["default"]=_.exports}}]);
|
|
Binary file
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-286b8764"],{"01df5":function(e,t,a){},"09ff":function(e,t,a){},"0ef6":function(e,t,a){"use strict";a.r(t);var o=function(){var e=this,t=e._self._c;return t("div",{ref:"portaletDiv",staticClass:"module"},[e._m(0)])},n=[function(){var e=this,t=e._self._c;return t("div",{staticClass:"module-in"},[t("ul",{staticClass:"information02"},[t("li",[t("div",{staticClass:"sky"},[t("img",{attrs:{src:a("924b"),alt:""}})]),t("div",{staticClass:"information02-data"},[t("span",[e._v("50%")]),t("p",[e._v("压力仪表盘")])])]),t("li",[t("div",{staticClass:"sky"},[t("img",{attrs:{src:a("4781"),alt:""}})]),t("div",{staticClass:"information02-data"},[t("span",[e._v("28%")]),t("p",[e._v("完成率")])])])])])}],s={created:function(){},mounted:function(){this.$emit("setHeight",this.$refs.portaletDiv.offsetHeight)},watch:{},components:{},methods:{}},r=s,i=(a("d936"),a("2877")),c=Object(i["a"])(r,o,n,!1,null,"0c32075c",null);t["default"]=c.exports},"120c":function(e,t,a){"use strict";a.r(t);var o=function(){var e=this,t=e._self._c;return t("div",{attrs:{clas:"spyder"}},[t("a-card",{staticStyle:{padding:"20px 10px","align-content":"center"},attrs:{bordered:!1}},[t("div",[t("h2",[e._v("其他平台采集货源需安装蜂洞插件")]),t("span",[e._v("支持 "),t("span",{staticStyle:{color:"red"}},[e._v("temu")]),e._v(" 、 "),t("span",{staticStyle:{color:"red"}},[e._v("亚马逊")]),e._v(" 等平台。")])]),t("div",{staticStyle:{"margin-top":"10px"}},[t("h2",[e._v("插件支持多个主流浏览器")]),t("div",[t("img",{attrs:{src:"https://earth-rt.chengji-inc.com/market/help/2020-12-03/fcd81079-e265-422c-a2c3-e896f7101a8f.png?height=80&width=80"}})])]),t("div",[t("p",[e._v("1、插件安装后,需刷新页面;")]),t("p",[e._v("2、若插件已安装且已开启,但在点击翻译时,仍提示要下载插件,原因是之前的旧插件未删除,要到浏览器的扩展管理中进行删除。")])]),t("div",[t("h2",{staticStyle:{color:"red"}},[e._v("安装教程")]),t("h3",[e._v("不同浏览器安装插件的教程")]),t("h3",[t("span",[e._v("谷歌浏览器")]),e._v("("),t("span",[e._v("下载浏览器")]),e._v(")插件安装方法:")]),t("ol",[t("li",{staticStyle:{"line-height":"30px"}},[t("span",[e._v("1、下载安装文件")]),t("br"),t("span",[e._v(" 下载插件("),t("a",{staticClass:"download-highlight",attrs:{href:"#"}},[e._v("点击下载")]),e._v("),打开插件所在的文件夹,找到已下载的插件,插件后缀是.zip,不需要解压; ")])]),t("li",{staticStyle:{"line-height":"30px"}},[t("span",[e._v("2、打开浏览器扩展页面")]),t("br"),t("span",[e._v(" 打开Chrome谷歌浏览器,复制"),t("a",{attrs:{href:"chrome://extensions/",target:"_blank"}},[e._v("chrome://extensions/")]),e._v(",并粘贴到地址栏,按回车键进入扩展管理页面; ")])]),t("li",{staticStyle:{"line-height":"30px"}},[t("span",[e._v("3、安装插件")]),t("br"),t("span",[e._v(' 打开页面右上角的"开发者模式"开关,刷新页面,将zip文件拖拽至扩展程序管理页面空白处,完成安装。 ')])]),t("li",{staticStyle:{"line-height":"30px"}},[t("span",[e._v("4、移除旧插件(若之前有安装过)")]),t("br"),t("span",[e._v(" 若之前安装过旧版插件,请从扩展页面将其移除掉。 ")])])]),t("p",[e._v("(提示:安装插件显示模糊不妨碍正常使用,如果遇到插件被浏览器清除,重新安装即可)")])])])],1)},n=[],s=a("5530"),r=a("5f6f"),i=Object(s["a"])({},r["default"]),c=i,d=a("2877"),l=Object(d["a"])(c,o,n,!1,null,null,null);t["default"]=l.exports},"12b1":function(e,t,a){"use strict";a.r(t);var o=function(){var e=this,t=e._self._c;return t("a-tabs",{attrs:{"tab-position":e.tabPosition},on:{change:e.changeTab},model:{value:e.activeKey,callback:function(t){e.activeKey=t},expression:"activeKey"}},e._l(e.list,(function(e){return t("a-tab-pane",{key:e.key,attrs:{tab:e.title}})})),1)},n=[],s={props:{defaultTabKey:{type:String,default:"title"},tabItems:{type:Array,default:function(){return[]}},platform:{type:String,default:"rakuten"}},data:function(){return{tabPosition:"left",list:[],tiktokList:[{key:"title",title:this.$t("view.item.list.itemTitle")},{key:"category",title:this.$t("view.attach.list.form.query3")},{key:"brand",title:this.$t("components.dyProduct.dyProduct.bran")},{key:"attribute",title:this.$t("components.dyProduct.dyProduct.attributes")},{key:"image",title:this.$t("view.item.list.itemImage")},{key:"itemInfo",title:this.$t("components.rakuten.tabOne.title")},{key:"sku",title:this.$t("view.bigcommerce.product.publish.table.skuInfo")},{key:"description",title:this.$t("view.alibaba.product.detail.sku.description")},{key:"sizeChart",title:this.$t("components.dyProduct.dyProduct.sizechart.image")},{key:"packageWeight",title:this.$t("components.dyProduct.package_weight.value")},{key:"packageSizeChart",title:this.$t("components.dyProduct.package_size_chart.value")},{key:"other",title:this.$t("components.rakuten.product.features")}],defaultList:[{key:"title",title:this.$t("view.item.list.itemTitle")},{key:"category",title:this.$t("view.attach.list.form.query3")},{key:"image",title:this.$t("view.item.list.itemImage")},{key:"itemInfo",title:this.$t("components.rakuten.tabOne.title")},{key:"sku",title:this.$t("view.bigcommerce.product.publish.table.skuInfo")},{key:"description",title:this.$t("view.alibaba.product.detail.sku.description")},{key:"other",title:this.$t("components.rakuten.product.features")}],activeKey:"title"}},created:function(){this.changeTab(this.defaultTabKey),this.tabItems.length>0?this.list=this.tabItems:"rakuten"===this.platform?this.list=this.defaultList:this.list=this.tiktokList},watch:{defaultTabKey:function(e,t){e&&e!==t&&this.changeTab(e)},tabItems:function(e,t){e&&e!==t&&(this.list=e)}},methods:{changeTab:function(e){this.activeKey=e,this.$emit("change",e)}}},r=s,i=a("2877"),c=Object(i["a"])(r,o,n,!1,null,null,null);t["default"]=c.exports},2419:function(e,t,a){"use strict";a("01df5")},2855:function(e,t,a){"use strict";a.r(t);var o=function(){var e=this,t=e._self._c;return t("a-result",{attrs:{title:"该功能尚未开发!"},scopedSlots:e._u([{key:"icon",fn:function(){return[t("a-icon",{attrs:{type:"smile",theme:"twoTone"}})]},proxy:!0},{key:"extra",fn:function(){return[t("a-button",{attrs:{type:"primary"},on:{click:e.returnIndex}},[e._v(" 返回工作台 ")])]},proxy:!0}])})},n=[],s={name:"Build",components:{},data:function(){return{}},filters:{},created:function(){},computed:{},watch:{},mounted:function(){},methods:{returnIndex:function(){this.$router.push({path:"/index"})}}},r=s,i=a("2877"),c=Object(i["a"])(r,o,n,!1,null,null,null);t["default"]=c.exports},4781:function(e,t,a){e.exports=a.p+"img/img02.9ac07e73.png"},"4a49":function(e,t,a){"use strict";a.r(t);var o=function(){var e=this,t=e._self._c;return t("a-spin",{attrs:{spinning:e.loading,tip:"加载中..."}},[t("div",{style:"height:"+e.height},[t("iframe",{staticStyle:{width:"100%",height:"100%"},attrs:{src:e.src,frameborder:"no",scrolling:"auto"}})])])},n=[],s={name:"Swagger",components:{},data:function(){return{src:"/admin/swagger-ui.html",height:document.documentElement.clientHeight-120+"px;",loading:!0}},filters:{},created:function(){},computed:{},watch:{},mounted:function(){var e=this;setTimeout((function(){e.loading=!1}),230);var t=this;window.onresize=function(){t.height=document.documentElement.clientHeight-94.5+"px;"}},methods:{}},r=s,i=a("2877"),c=Object(i["a"])(r,o,n,!1,null,null,null);t["default"]=c.exports},"5f6f":function(e,t,a){"use strict";a.r(t),t["default"]={name:"spyder",components:{},created:function(){},computed:{},data:function(){return{}},methods:{}}},"924b":function(e,t,a){e.exports=a.p+"img/img01.319f61f4.png"},"92c5":function(e,t,a){},"945a":function(e,t,a){"use strict";a.r(t);a("a9e3"),a("b64b");var o=function(){var e=this,t=e._self._c;return t("span",[e.open?t("AntModal",{attrs:{visible:e.open,"modal-title":e.formTitle,"adjust-size":!0,modalHeight:e.modalHeight,modalWidth:e.modalWidth,"confirm-loading":e.confirmNSLoading},on:{cancel:e.cancelModal,ok:e.okNetSeaGoodInfo}},[t("div",{attrs:{slot:"content"},slot:"content"},[t("div",[t("div",[t("goodsIdList",{staticStyle:{display:"none"},attrs:{goodsIds:e.goodsIds,goodsList:e.goodList},on:{"update:goodsList":function(t){e.goodList=t},"update:goods-list":function(t){e.goodList=t},back:e.initNetsea}})],1),t("a-row",{attrs:{type:"flex"}},[t("a-col",[t("leftTabItem",{attrs:{defaultTabKey:e.formEditKey},on:{change:e.changeLeftTab}})],1),t("a-col",{style:{overflowY:"auto",overflowX:"hidden",height:.78*Number(e.modalHeight)+"px"},attrs:{flex:"1"}},[e._l(e.netseaGoodInfoList,(function(a,o){return t("div",{key:o,staticStyle:{"padding-bottom":"2rem"}},[t("div",{staticStyle:{"margin-bottom":"1rem"}},[t("kandengGoodsOne",{attrs:{goodsList:e.goodList,goodsId:o}})],1),t("a-collapse",{model:{value:e.plActicty,callback:function(t){e.plActicty=t},expression:"plActicty"}},[t("a-collapse-panel",{attrs:{header:o+e.$t("view.item.form.pl.form.params.label")}},[t("div",{staticStyle:{padding:"1rem 0"}},[t("a-form-model",e._b({ref:"netseaGoodInfoForm"+o,refInFor:!0,attrs:{model:a,rules:e.netseaGoodInfoRules}},"a-form-model",{labelCol:{span:3},wrapperCol:{span:20}},!1),["title"===e.formEditKey?t("div",[t("a-form-model-item",{ref:"product_name",refInFor:!0,attrs:{label:e.$t("view.item.list.itemTitle"),help:e.$t("components.netsea.product.catchcopy.limit"),prop:"product_name"}},[t("a-input",{attrs:{id:"product_name"+o},model:{value:a.product_name,callback:function(t){e.$set(a,"product_name",t)},expression:"netseaGoodInfo.product_name"}})],1)],1):e._e(),"category"===e.formEditKey?t("div",[t("a-form-model-item",{attrs:{label:e.$t("components.netesa.product.category")}},[t("a-input",{attrs:{disabled:""},model:{value:a.category_id,callback:function(t){e.$set(a,"category_id",t)},expression:"netseaGoodInfo.category_id"}})],1),t("a-form-model-item",{attrs:{label:e.$t("components.netesa.product.category")}},[e.netseaGenereArray[o]&&e.netseaGenereArray[o].netseaGenereList?t("a-select",{staticStyle:{width:"180px"},on:{change:function(t){e.selectNetSeaGenre(t,0,o)}},model:{value:e.firstCatId[o],callback:function(t){e.$set(e.firstCatId,o,t)},expression:"firstCatId[good_id]"}},e._l(e.netseaGenereArray[o].netseaGenereList,(function(a,o){return t("a-select-option",{key:o,attrs:{value:a.cat_id}},[e._v(" "+e._s(a.cat_name)+" ")])})),1):e._e(),e.netseaGenereArray[o]&&e.netseaGenereArray[o].netseaGenereList1.length?t("a-select",{staticStyle:{width:"180px"},on:{change:function(t){e.selectNetSeaGenre(t,1,o)}},model:{value:e.secondCatId[o],callback:function(t){e.$set(e.secondCatId,o,t)},expression:"secondCatId[good_id]"}},e._l(e.netseaGenereArray[o].netseaGenereList1,(function(a,o){return t("a-select-option",{key:o,attrs:{value:a.cat_id}},[e._v(" "+e._s(a.cat_name)+" ")])})),1):e._e(),e.netseaGenereArray[o]&&e.netseaGenereArray[o].netseaGenereList2.length?t("a-select",{staticStyle:{width:"180px"},on:{change:function(t){e.selectNetSeaGenre(t,2,o)}},model:{value:e.thirdCatId[o],callback:function(t){e.$set(e.thirdCatId,o,t)},expression:"thirdCatId[good_id]"}},e._l(e.netseaGenereArray[o].netseaGenereList2,(function(a,o){return t("a-select-option",{key:o,attrs:{value:a.cat_id}},[e._v(" "+e._s(a.cat_name)+" ")])})),1):e._e()],1)],1):e._e(),"itemInfo"===e.formEditKey?t("div",[t("a-form-model-item",{attrs:{label:e.$t("components.netsea.product.manage.code")}},[t("a-input",{attrs:{placeholder:e.$t("components.netsea.product.manage.code.placeholder"),disabled:""},model:{value:a.product_id,callback:function(t){e.$set(a,"product_id",t)},expression:"netseaGoodInfo.product_id"}})],1),t("a-form-model-item",{attrs:{label:e.$t("components.netsea.product.sale.status")}},[t("a-radio-group",{model:{value:a.sales_status_code,callback:function(t){e.$set(a,"sales_status_code",t)},expression:"netseaGoodInfo.sales_status_code"}},[t("a-radio",{attrs:{value:"on_sale"}},[e._v(" "+e._s(e.$t("components.netsea.product.sale.on_sale"))+" ")]),t("a-radio",{attrs:{value:"end_of_sale"}},[e._v(" "+e._s(e.$t("components.netsea.product.sale.end_of_sale"))+" ")])],1)],1),t("a-form-model-item",{attrs:{label:e.$t("components.netsea.product.sale.method")}},[t("a-radio-group",{model:{value:a.sales_method_code,callback:function(t){e.$set(a,"sales_method_code",t)},expression:"netseaGoodInfo.sales_method_code"}},[t("a-radio",{attrs:{value:"normal"}},[e._v(" "+e._s(e.$t("components.netsea.product.sale.method.normal"))+" ")]),t("a-radio",{attrs:{value:"reserve"}},[e._v(" "+e._s(e.$t("components.netsea.product.sale.method.reserve"))+" ")]),t("a-radio",{attrs:{value:"payment_only"}},[e._v(" "+e._s(e.$t("components.netsea.product.sale.method.payment_only"))+" ")])],1)],1),t("a-form-model-item",{attrs:{label:e.$t("components.netsea.product.publish.date")}},[t("a-date-picker",{attrs:{"show-time":""},model:{value:a.publish_period_start,callback:function(t){e.$set(a,"publish_period_start",t)},expression:"netseaGoodInfo.publish_period_start"}}),t("a-date-picker",{attrs:{"show-time":""},model:{value:a.publish_period_end,callback:function(t){e.$set(a,"publish_period_end",t)},expression:"netseaGoodInfo.publish_period_end"}})],1),t("a-form-model-item",{attrs:{label:e.$t("components.netsea.product.price.closed.flag")}},[t("a-radio-group",{model:{value:a.price_closed_flag,callback:function(t){e.$set(a,"price_closed_flag",t)},expression:"netseaGoodInfo.price_closed_flag"}},[t("a-radio",{attrs:{value:!0}},[e._v(" "+e._s(e.$t("components.netsea.product.price.closed.flag.true"))+" ")]),t("a-radio",{attrs:{value:!1}},[e._v(" "+e._s(e.$t("components.netsea.product.price.closed.flag.false"))+" ")])],1)],1),t("a-form-model-item",{attrs:{label:e.$t("components.netsea.product.shipping.fee")}},[t("a-radio-group",{model:{value:a.product_ship_setting_code,callback:function(t){e.$set(a,"product_ship_setting_code",t)},expression:"netseaGoodInfo.product_ship_setting_code"}},[t("a-radio",{attrs:{value:"store"}},[e._v(" "+e._s(e.$t("components.netsea.product.shipping.fee.shop_setting"))+" ")]),t("a-radio",{attrs:{value:"product"}},[e._v(" "+e._s(e.$t("components.netsea.product.shipping.fee.product.one"))+" "),t("a-input",{staticStyle:{width:"200px"},model:{value:a.product_ship_fee,callback:function(t){e.$set(a,"product_ship_fee",t)},expression:"netseaGoodInfo.product_ship_fee"}})],1)],1)],1),t("a-form-model-item",{attrs:{label:e.$t("components.netsea.product.product.discount_code")}},[t("a-radio-group",{on:{change:function(t){return e.discountSwitch(o)}},model:{value:e.netProductDiscountCodeList[o],callback:function(t){e.$set(e.netProductDiscountCodeList,o,t)},expression:"netProductDiscountCodeList[good_id]"}},[t("a-radio",{attrs:{value:!1}},[e._v(" "+e._s(e.$t("components.netsea.product.product.discount_code.false"))+" ")]),t("a-radio",{attrs:{value:!0}},[e._v(" "+e._s(e.$t("components.netsea.product.product.discount_code.true"))+" "),e.netProductDiscountCodeList[o]?t("a-input-number",{staticStyle:{width:"100px"},model:{value:a.product_discount.product_discount_rate,callback:function(t){e.$set(a.product_discount,"product_discount_rate",t)},expression:"netseaGoodInfo.product_discount.product_discount_rate"}}):e._e(),e._v(" % "),e.netProductDiscountCodeList[o]?t("a-date-picker",{attrs:{format:"YYYY-MM-DD HH:00:00","show-time":""},model:{value:a.product_discount.product_discount_period_start,callback:function(t){e.$set(a.product_discount,"product_discount_period_start",t)},expression:"netseaGoodInfo.product_discount.product_discount_period_start"}}):e._e(),e.netProductDiscountCodeList[o]?t("a-date-picker",{attrs:{format:"YYYY-MM-DD HH:00:00","show-time":""},model:{value:a.product_discount.product_discount_period_end,callback:function(t){e.$set(a.product_discount,"product_discount_period_end",t)},expression:"netseaGoodInfo.product_discount.product_discount_period_end"}}):e._e()],1)],1)],1),t("a-form-model-item",{attrs:{label:e.$t("components.netsea.product.volume_discount"),help:e.$t("components.netsea.product.volume_discount.info")}},[t("a-radio-group",{model:{value:a.volume_discount_target_flag,callback:function(t){e.$set(a,"volume_discount_target_flag",t)},expression:"netseaGoodInfo.volume_discount_target_flag"}},[t("a-radio",{attrs:{value:!0}},[e._v(e._s(e.$t("components.netsea.product.volume_discount.true")))]),t("a-radio",{attrs:{value:!1}},[e._v(e._s(e.$t("components.netsea.product.volume_discount.false")))])],1)],1)],1):e._e(),"image"===e.formEditKey?t("div",[t("a-form-model-item",{attrs:{label:e.$t("components.netsea.product.image.license")}},[t("a-radio-group",{model:{value:a.image_repost_flag,callback:function(t){e.$set(a,"image_repost_flag",t)},expression:"netseaGoodInfo.image_repost_flag"}},[t("a-radio",{attrs:{value:!0}},[e._v(" "+e._s(e.$t("components.netsea.product.image.license.true"))+" ")]),t("a-radio",{attrs:{value:!1}},[e._v(" "+e._s(e.$t("components.netsea.product.image.license.false"))+" ")])],1)],1),t("a-form-model-item",{attrs:{label:e.$t("view.item.list.form.image_url"),help:e.$t("view.item.form.image.limit")}},[t("div",{staticStyle:{"margin-bottom":"10px"}},e._l(a.images,(function(a,n){return t("div",{directives:[{name:"show",rawName:"v-show",value:a.image_url,expression:"image.image_url"}],key:n,staticStyle:{"margin-bottom":"20px",width:"100px",height:"100px","margin-left":"10px",float:"left"}},[t("img",{staticStyle:{width:"100px",height:"100px"},attrs:{src:a.image_url}}),t("br"),e.imageSizeArr&&Object.keys(e.imageSizeArr)?t("div",{style:{textAlign:"center",color:e.imageSizeArr[a.image_no]>500?"#f00":"#000"}},[e._v(" "+e._s(e.imageSizeArr[a.image_no])+"K "),t("a-icon",{attrs:{type:"delete"},on:{click:function(t){return e.deleteImage(a.image_no,o)}}})],1):e._e()])})),0)])],1):e._e(),"description"===e.formEditKey?t("div",[t("a-form-model-item",{attrs:{label:e.$t("components.netsea.product.catchcopy"),help:e.$t("components.netsea.product.catchcopy.limit"),prop:"catchcopy"}},[t("a-input",{attrs:{placeholder:e.$t("components.netsea.product.catchcopy.placeholder"),id:"catchcopy"+o},model:{value:a.catchcopy,callback:function(t){e.$set(a,"catchcopy",t)},expression:"netseaGoodInfo.catchcopy"}})],1),t("a-form-model-item",{attrs:{label:e.$t("components.netsea.product.comment"),help:e.$t("components.netsea.product.comment.info"),prop:"comment"}},[t("a-textarea",{attrs:{id:"comment"+o},model:{value:a.comment,callback:function(t){e.$set(a,"comment",t)},expression:"netseaGoodInfo.comment"}})],1),t("a-form-model-item",{attrs:{label:e.$t("components.netsea.product.description"),help:e.$t("components.netsea.product.description.info"),prop:"description"}},[t("a-textarea",{attrs:{id:"description_for_consumer"+o},model:{value:a.description_for_consumer,callback:function(t){e.$set(a,"description_for_consumer",t)},expression:"netseaGoodInfo.description_for_consumer"}})],1),t("a-form-model-item",{attrs:{label:e.$t("components.netsea.product.size"),help:e.$t("components.netsea.product.size.info"),prop:"size"}},[t("a-textarea",{attrs:{id:"size"+o},model:{value:a.size,callback:function(t){e.$set(a,"size",t)},expression:"netseaGoodInfo.size"}})],1),t("a-form-model-item",{attrs:{label:e.$t("components.netsea.product.spec"),help:e.$t("components.netsea.product.spec.info"),prop:"spec"}},[t("a-textarea",{attrs:{id:"spec"+o},model:{value:a.spec,callback:function(t){e.$set(a,"spec",t)},expression:"netseaGoodInfo.spec"}})],1),t("a-form-model-item",{attrs:{label:e.$t("components.netsea.product.consumer"),help:e.$t("components.netsea.product.consumer.info"),prop:"spec_for_consumer"}},[t("a-textarea",{attrs:{id:"spec_for_consumer"+o},model:{value:a.spec_for_consumer,callback:function(t){e.$set(a,"spec_for_consumer",t)},expression:"netseaGoodInfo.spec_for_consumer"}})],1),t("a-form-model-item",{attrs:{label:e.$t("components.netsea.product.notes"),help:e.$t("components.netsea.product.notes.info"),prop:"notes"}},[t("a-textarea",{attrs:{id:"notes"+o},model:{value:a.notes,callback:function(t){e.$set(a,"notes",t)},expression:"netseaGoodInfo.notes"}})],1)],1):e._e(),"sku"===e.formEditKey?t("div",[t("a-form-model-item",{attrs:{label:e.$t("components.netsea.product.product_set")}},[t("a-table",{attrs:{columns:e.productSetColumns,"data-source":a.product_set,"row-key":function(e){return e.set_no},pagination:!1},scopedSlots:e._u([{key:"set_branch_code",fn:function(a,n){return t("span",{},[t("a-input",{staticStyle:{width:"100px"},attrs:{name:"set_branch_code"+o},model:{value:n.set_branch_code,callback:function(t){e.$set(n,"set_branch_code",t)},expression:"record.set_branch_code"}})],1)}},{key:"set_label",fn:function(a,n){return t("span",{},[t("a-input",{staticStyle:{width:"100px"},attrs:{name:"set_label"+o},model:{value:n.set_label,callback:function(t){e.$set(n,"set_label",t)},expression:"record.set_label"}})],1)}},{key:"set_reference_price",fn:function(a,n){return t("span",{},[t("a-input",{staticStyle:{width:"100px"},attrs:{name:"set_reference_price"+o},model:{value:n.set_reference_price,callback:function(t){e.$set(n,"set_reference_price",t)},expression:"record.set_reference_price"}})],1)}},{key:"set_price",fn:function(a,n){return t("span",{},[t("a-input",{staticStyle:{width:"100px"},attrs:{name:"set_price"+o},model:{value:n.set_price,callback:function(t){e.$set(n,"set_price",t)},expression:"record.set_price"}})],1)}},{key:"set_sku_number",fn:function(a,o){return t("span",{},[t("a-input",{staticStyle:{width:"100px"},attrs:{name:"set_sku_number"},model:{value:o.set_sku_number,callback:function(t){e.$set(o,"set_sku_number",t)},expression:"record.set_sku_number"}})],1)}},{key:"set_stock_number",fn:function(a,o){return t("span",{},[t("a-input",{staticStyle:{width:"100px"},attrs:{name:"set_stock_number"},model:{value:o.set_stock_number,callback:function(t){e.$set(o,"set_stock_number",t)},expression:"record.set_stock_number"}})],1)}}],null,!0)})],1)],1):e._e(),"other"===e.formEditKey?t("div",[t("a-form-model-item",{attrs:{label:e.$t("components.netsea.product.delivery_terms"),help:e.$t("components.netsea.product.delivery_terms.info"),prop:"delivery_terms"}},[t("a-textarea",{attrs:{id:"delivery_terms"+o},model:{value:a.delivery_terms,callback:function(t){e.$set(a,"delivery_terms",t)},expression:"netseaGoodInfo.delivery_terms"}})],1),t("a-form-model-item",{attrs:{label:e.$t("components.netsea.product.return_setting_code")}},[t("a-radio-group",{model:{value:a.return_setting_code,callback:function(t){e.$set(a,"return_setting_code",t)},expression:"netseaGoodInfo.return_setting_code"}},[t("a-radio",{attrs:{value:"allow"}},[e._v(e._s(e.$t("components.netsea.product.return_setting_code.allow")))]),t("a-radio",{attrs:{value:"deny"}},[e._v(e._s(e.$t("components.netsea.product.return_setting_code.deny")))]),t("a-radio",{attrs:{value:"negotiable"}},[e._v(e._s(e.$t("components.netsea.product.return_setting_code.negotiable")))]),t("a-radio",{attrs:{value:"none"}},[e._v(e._s(e.$t("components.netsea.product.return_setting_code.none")))])],1)],1),t("a-form-model-item",{attrs:{label:e.$t("components.netsea.product.search_tag"),help:e.$t("components.netsea.product.search_tag.info")}},e._l(a.search_tags,(function(a,n){return t("div",{key:n,staticStyle:{"margin-bottom":"10px"}},[e._v(" "+e._s(e.$t("components.netsea.product.search_tag"))+e._s(n+1)+": "),t("a-input",{staticStyle:{width:"200px"},attrs:{name:"search_tag_text"+o},model:{value:a.search_tag_text,callback:function(t){e.$set(a,"search_tag_text",t)},expression:"tag.search_tag_text"}})],1)})),0),t("a-form-model-item",{attrs:{label:e.$t("components.netsea.product.chartlet")}},[t("a-radio-group",{model:{value:a.stamp_id,callback:function(t){e.$set(a,"stamp_id",t)},expression:"netseaGoodInfo.stamp_id"}},[t("a-radio",{attrs:{value:0}},[e._v(e._s(e.$t("components.netsea.product.chartlet.0")))]),t("a-radio",{attrs:{value:1}},[e._v(e._s(e.$t("components.netsea.product.chartlet.1")))]),t("a-radio",{attrs:{value:3}},[e._v(e._s(e.$t("components.netsea.product.chartlet.3")))]),t("a-radio",{attrs:{value:4}},[e._v(e._s(e.$t("components.netsea.product.chartlet.4")))]),t("a-radio",{attrs:{value:5}},[e._v(e._s(e.$t("components.netsea.product.chartlet.5")))]),t("a-radio",{attrs:{value:6}},[e._v(e._s(e.$t("components.netsea.product.chartlet.6")))]),t("a-radio",{attrs:{value:7}},[e._v(e._s(e.$t("components.netsea.product.chartlet.7")))]),t("a-radio",{attrs:{value:8}},[e._v(e._s(e.$t("components.netsea.product.chartlet.8")))])],1)],1),t("a-form-model-item",{attrs:{label:e.$t("components.netsea.product.jan_code"),help:e.$t("components.netsea.product.jan_code.info"),prop:"jan_code"}},[t("a-input",{attrs:{id:"jan_code"+o},model:{value:a.jan_code,callback:function(t){e.$set(a,"jan_code",t)},expression:"netseaGoodInfo.jan_code"}})],1),t("a-form-model-item",{attrs:{label:e.$t("components.netsea.product.maker_code"),help:e.$t("components.netsea.product.maker_code.info"),prop:"maker_code"}},[t("a-input",{attrs:{id:"maker_code"+o},model:{value:a.maker_code,callback:function(t){e.$set(a,"maker_code",t)},expression:"netseaGoodInfo.maker_code"}})],1),t("a-form-model-item",{attrs:{label:e.$t("components.netsea.product.reference_price")}},[t("a-select",{model:{value:a.reference_price_type_code,callback:function(t){e.$set(a,"reference_price_type_code",t)},expression:"netseaGoodInfo.reference_price_type_code"}},[t("a-select-option",{attrs:{value:"open_price"}},[e._v(" "+e._s(e.$t("components.netsea.product.reference_price.open_price"))+" ")]),t("a-select-option",{attrs:{value:"maker_price"}},[e._v(" "+e._s(e.$t("components.netsea.product.reference_price.maker_price"))+" ")]),t("a-select-option",{attrs:{value:"catalog_price"}},[e._v(" "+e._s(e.$t("components.netsea.product.reference_price.catalog_price"))+" ")]),t("a-select-option",{attrs:{value:"setting_price"}},[e._v(" "+e._s(e.$t("components.netsea.product.reference_price.setting_price"))+" ")])],1)],1),t("a-form-model-item",{attrs:{label:e.$t("components.netsea.product.tax_rate")}},[t("a-radio-group",{model:{value:a.consumption_tax_type_code,callback:function(t){e.$set(a,"consumption_tax_type_code",t)},expression:"netseaGoodInfo.consumption_tax_type_code"}},[t("a-radio",{attrs:{value:"normal"}},[e._v(e._s(e.$t("components.netsea.product.tax_rate.normal")))]),t("a-radio",{attrs:{value:"reduced"}},[e._v(e._s(e.$t("components.netsea.product.tax_rate.reduced")))]),t("a-radio",{attrs:{value:"none"}},[e._v(e._s(e.$t("components.netsea.product.tax_rate.none")))])],1)],1)],1):e._e()])],1)])],1)],1)})),t("div",[e.plDataFields[e.formEditKey]?t("div",[e._v(e._s(e.$t("view.item.form.pl.params.label")))]):e._e(),t("a-form-model",e._b({ref:"TemplateDataForm",attrs:{model:e.TemplateData,rules:e.netseaGoodInfoRules}},"a-form-model",{labelCol:{span:3},wrapperCol:{span:20}},!1),["description"===e.formEditKey?t("div",[t("a-form-model-item",{attrs:{label:e.$t("components.netsea.product.catchcopy"),help:e.$t("components.netsea.product.catchcopy.limit"),prop:"catchcopy"}},[t("a-input",{attrs:{placeholder:e.$t("components.netsea.product.catchcopy.placeholder")},model:{value:e.TemplateData.catchcopy,callback:function(t){e.$set(e.TemplateData,"catchcopy",t)},expression:"TemplateData.catchcopy"}})],1),t("a-form-model-item",{attrs:{label:e.$t("components.netsea.product.comment"),help:e.$t("components.netsea.product.comment.info"),prop:"comment"}},[t("a-textarea",{attrs:{id:"comment"},model:{value:e.TemplateData.comment,callback:function(t){e.$set(e.TemplateData,"comment",t)},expression:"TemplateData.comment"}})],1),t("a-form-model-item",{attrs:{label:e.$t("components.netsea.product.description"),help:e.$t("components.netsea.product.description.info"),prop:"description"}},[t("a-textarea",{attrs:{id:"description_for_consumer"},model:{value:e.TemplateData.description_for_consumer,callback:function(t){e.$set(e.TemplateData,"description_for_consumer",t)},expression:"TemplateData.description_for_consumer"}})],1),t("a-form-model-item",{attrs:{label:e.$t("components.netsea.product.size"),help:e.$t("components.netsea.product.size.info"),prop:"size"}},[t("a-textarea",{attrs:{id:"size"},model:{value:e.TemplateData.size,callback:function(t){e.$set(e.TemplateData,"size",t)},expression:"TemplateData.size"}})],1),t("a-form-model-item",{attrs:{label:e.$t("components.netsea.product.spec"),help:e.$t("components.netsea.product.spec.info"),prop:"spec"}},[t("a-textarea",{attrs:{id:"spec"},model:{value:e.TemplateData.spec,callback:function(t){e.$set(e.TemplateData,"spec",t)},expression:"TemplateData.spec"}})],1),t("a-form-model-item",{attrs:{label:e.$t("components.netsea.product.consumer"),help:e.$t("components.netsea.product.consumer.info"),prop:"spec_for_consumer"}},[t("a-textarea",{attrs:{id:"spec_for_consumer"},model:{value:e.TemplateData.spec_for_consumer,callback:function(t){e.$set(e.TemplateData,"spec_for_consumer",t)},expression:"TemplateData.spec_for_consumer"}})],1),t("a-form-model-item",{attrs:{label:e.$t("components.netsea.product.notes"),help:e.$t("components.netsea.product.notes.info"),prop:"notes"}},[t("a-textarea",{attrs:{id:"notes"},model:{value:e.TemplateData.notes,callback:function(t){e.$set(e.TemplateData,"notes",t)},expression:"TemplateData.notes"}})],1)],1):e._e(),"itemInfo"===e.formEditKey?t("div",[t("a-form-model-item",{attrs:{label:e.$t("components.netsea.product.sale.status")}},[t("a-radio-group",{model:{value:e.TemplateData.sales_status_code,callback:function(t){e.$set(e.TemplateData,"sales_status_code",t)},expression:"TemplateData.sales_status_code"}},[t("a-radio",{attrs:{value:"on_sale"}},[e._v(" "+e._s(e.$t("components.netsea.product.sale.on_sale"))+" ")]),t("a-radio",{attrs:{value:"end_of_sale"}},[e._v(" "+e._s(e.$t("components.netsea.product.sale.end_of_sale"))+" ")])],1)],1),t("a-form-model-item",{attrs:{label:e.$t("components.netsea.product.sale.method")}},[t("a-radio-group",{model:{value:e.TemplateData.sales_method_code,callback:function(t){e.$set(e.TemplateData,"sales_method_code",t)},expression:"TemplateData.sales_method_code"}},[t("a-radio",{attrs:{value:"normal"}},[e._v(" "+e._s(e.$t("components.netsea.product.sale.method.normal"))+" ")]),t("a-radio",{attrs:{value:"reserve"}},[e._v(" "+e._s(e.$t("components.netsea.product.sale.method.reserve"))+" ")]),t("a-radio",{attrs:{value:"payment_only"}},[e._v(" "+e._s(e.$t("components.netsea.product.sale.method.payment_only"))+" ")])],1)],1),t("a-form-model-item",{attrs:{label:e.$t("components.netsea.product.publish.date")}},[t("a-date-picker",{attrs:{"show-time":""},model:{value:e.TemplateData.publish_period_start,callback:function(t){e.$set(e.TemplateData,"publish_period_start",t)},expression:"TemplateData.publish_period_start"}}),t("a-date-picker",{attrs:{"show-time":""},model:{value:e.TemplateData.publish_period_end,callback:function(t){e.$set(e.TemplateData,"publish_period_end",t)},expression:"TemplateData.publish_period_end"}})],1),t("a-form-model-item",{attrs:{label:e.$t("components.netsea.product.price.closed.flag")}},[t("a-radio-group",{model:{value:e.TemplateData.price_closed_flag,callback:function(t){e.$set(e.TemplateData,"price_closed_flag",t)},expression:"TemplateData.price_closed_flag"}},[t("a-radio",{attrs:{value:!0}},[e._v(" "+e._s(e.$t("components.netsea.product.price.closed.flag.true"))+" ")]),t("a-radio",{attrs:{value:!1}},[e._v(" "+e._s(e.$t("components.netsea.product.price.closed.flag.false"))+" ")])],1)],1),t("a-form-model-item",{attrs:{label:e.$t("components.netsea.product.shipping.fee")}},[t("a-radio-group",{model:{value:e.TemplateData.product_ship_setting_code,callback:function(t){e.$set(e.TemplateData,"product_ship_setting_code",t)},expression:"TemplateData.product_ship_setting_code"}},[t("a-radio",{attrs:{value:"store"}},[e._v(" "+e._s(e.$t("components.netsea.product.shipping.fee.shop_setting"))+" ")]),t("a-radio",{attrs:{value:"product"}},[e._v(" "+e._s(e.$t("components.netsea.product.shipping.fee.product.one"))+" "),t("a-input",{staticStyle:{width:"200px"},model:{value:e.TemplateData.product_ship_fee,callback:function(t){e.$set(e.TemplateData,"product_ship_fee",t)},expression:"TemplateData.product_ship_fee"}})],1)],1)],1),t("a-form-model-item",{attrs:{label:e.$t("components.netsea.product.product.discount_code")}},[t("a-radio-group",{model:{value:e.TemplateData.netProductDiscountCode,callback:function(t){e.$set(e.TemplateData,"netProductDiscountCode",t)},expression:"TemplateData.netProductDiscountCode"}},[t("a-radio",{attrs:{value:!1}},[e._v(" "+e._s(e.$t("components.netsea.product.product.discount_code.false"))+" ")]),t("a-radio",{attrs:{value:!0}},[e._v(" "+e._s(e.$t("components.netsea.product.product.discount_code.true"))+" "),e.TemplateData.netProductDiscountCode?t("a-input-number",{staticStyle:{width:"100px"},model:{value:e.TemplateData.product_discount.product_discount_rate,callback:function(t){e.$set(e.TemplateData.product_discount,"product_discount_rate",t)},expression:"TemplateData.product_discount.product_discount_rate"}}):e._e(),e._v(" % "),e.TemplateData.netProductDiscountCode?t("a-date-picker",{attrs:{format:"YYYY-MM-DD HH:00:00","show-time":""},model:{value:e.TemplateData.product_discount.product_discount_period_start,callback:function(t){e.$set(e.TemplateData.product_discount,"product_discount_period_start",t)},expression:"TemplateData.product_discount.product_discount_period_start"}}):e._e(),e.TemplateData.netProductDiscountCode?t("a-date-picker",{attrs:{format:"YYYY-MM-DD HH:00:00","show-time":""},model:{value:e.TemplateData.product_discount.product_discount_period_end,callback:function(t){e.$set(e.TemplateData.product_discount,"product_discount_period_end",t)},expression:"TemplateData.product_discount.product_discount_period_end"}}):e._e()],1)],1)],1),t("a-form-model-item",{attrs:{label:e.$t("components.netsea.product.volume_discount"),help:e.$t("components.netsea.product.volume_discount.info")}},[t("a-radio-group",{model:{value:e.TemplateData.volume_discount_target_flag,callback:function(t){e.$set(e.TemplateData,"volume_discount_target_flag",t)},expression:"TemplateData.volume_discount_target_flag"}},[t("a-radio",{attrs:{value:!0}},[e._v(e._s(e.$t("components.netsea.product.volume_discount.true")))]),t("a-radio",{attrs:{value:!1}},[e._v(e._s(e.$t("components.netsea.product.volume_discount.false")))])],1)],1)],1):e._e(),"other"===e.formEditKey?t("div",[t("a-form-model-item",{attrs:{label:e.$t("components.netsea.product.delivery_terms"),help:e.$t("components.netsea.product.delivery_terms.info"),prop:"delivery_terms"}},[t("a-textarea",{attrs:{id:"delivery_terms"},model:{value:e.TemplateData.delivery_terms,callback:function(t){e.$set(e.TemplateData,"delivery_terms",t)},expression:"TemplateData.delivery_terms"}})],1),t("a-form-model-item",{attrs:{label:e.$t("components.netsea.product.return_setting_code")}},[t("a-radio-group",{model:{value:e.TemplateData.return_setting_code,callback:function(t){e.$set(e.TemplateData,"return_setting_code",t)},expression:"TemplateData.return_setting_code"}},[t("a-radio",{attrs:{value:"allow"}},[e._v(e._s(e.$t("components.netsea.product.return_setting_code.allow")))]),t("a-radio",{attrs:{value:"deny"}},[e._v(e._s(e.$t("components.netsea.product.return_setting_code.deny")))]),t("a-radio",{attrs:{value:"negotiable"}},[e._v(e._s(e.$t("components.netsea.product.return_setting_code.negotiable")))]),t("a-radio",{attrs:{value:"none"}},[e._v(e._s(e.$t("components.netsea.product.return_setting_code.none")))])],1)],1),t("a-form-model-item",{attrs:{label:e.$t("components.netsea.product.search_tag"),help:e.$t("components.netsea.product.search_tag.info")}},e._l(e.TemplateData.search_tags,(function(a,o){return t("div",{key:o,staticStyle:{"margin-bottom":"10px"}},[e._v(" "+e._s(e.$t("components.netsea.product.search_tag"))+e._s(o+1)+": "),t("a-input",{staticStyle:{width:"200px"},attrs:{name:"search_tag_text"},model:{value:a.search_tag_text,callback:function(t){e.$set(a,"search_tag_text",t)},expression:"tag.search_tag_text"}})],1)})),0),t("a-form-model-item",{attrs:{label:e.$t("components.netsea.product.chartlet")}},[t("a-radio-group",{model:{value:e.TemplateData.stamp_id,callback:function(t){e.$set(e.TemplateData,"stamp_id",t)},expression:"TemplateData.stamp_id"}},[t("a-radio",{attrs:{value:0}},[e._v(e._s(e.$t("components.netsea.product.chartlet.0")))]),t("a-radio",{attrs:{value:1}},[e._v(e._s(e.$t("components.netsea.product.chartlet.1")))]),t("a-radio",{attrs:{value:3}},[e._v(e._s(e.$t("components.netsea.product.chartlet.3")))]),t("a-radio",{attrs:{value:4}},[e._v(e._s(e.$t("components.netsea.product.chartlet.4")))]),t("a-radio",{attrs:{value:5}},[e._v(e._s(e.$t("components.netsea.product.chartlet.5")))]),t("a-radio",{attrs:{value:6}},[e._v(e._s(e.$t("components.netsea.product.chartlet.6")))]),t("a-radio",{attrs:{value:7}},[e._v(e._s(e.$t("components.netsea.product.chartlet.7")))]),t("a-radio",{attrs:{value:8}},[e._v(e._s(e.$t("components.netsea.product.chartlet.8")))])],1)],1),t("a-form-model-item",{attrs:{label:e.$t("components.netsea.product.jan_code"),help:e.$t("components.netsea.product.jan_code.info"),prop:"jan_code"}},[t("a-input",{attrs:{id:"jan_code"},model:{value:e.TemplateData.jan_code,callback:function(t){e.$set(e.TemplateData,"jan_code",t)},expression:"TemplateData.jan_code"}})],1),t("a-form-model-item",{attrs:{label:e.$t("components.netsea.product.maker_code"),help:e.$t("components.netsea.product.maker_code.info"),prop:"maker_code"}},[t("a-input",{attrs:{id:"maker_code"},model:{value:e.TemplateData.maker_code,callback:function(t){e.$set(e.TemplateData,"maker_code",t)},expression:"TemplateData.maker_code"}})],1),t("a-form-model-item",{attrs:{label:e.$t("components.netsea.product.reference_price")}},[t("a-select",{model:{value:e.TemplateData.reference_price_type_code,callback:function(t){e.$set(e.TemplateData,"reference_price_type_code",t)},expression:"TemplateData.reference_price_type_code"}},[t("a-select-option",{attrs:{value:"open_price"}},[e._v(" "+e._s(e.$t("components.netsea.product.reference_price.open_price"))+" ")]),t("a-select-option",{attrs:{value:"maker_price"}},[e._v(" "+e._s(e.$t("components.netsea.product.reference_price.maker_price"))+" ")]),t("a-select-option",{attrs:{value:"catalog_price"}},[e._v(" "+e._s(e.$t("components.netsea.product.reference_price.catalog_price"))+" ")]),t("a-select-option",{attrs:{value:"setting_price"}},[e._v(" "+e._s(e.$t("components.netsea.product.reference_price.setting_price"))+" ")])],1)],1),t("a-form-model-item",{attrs:{label:e.$t("components.netsea.product.tax_rate")}},[t("a-radio-group",{model:{value:e.TemplateData.consumption_tax_type_code,callback:function(t){e.$set(e.TemplateData,"consumption_tax_type_code",t)},expression:"TemplateData.consumption_tax_type_code"}},[t("a-radio",{attrs:{value:"normal"}},[e._v(e._s(e.$t("components.netsea.product.tax_rate.normal")))]),t("a-radio",{attrs:{value:"reduced"}},[e._v(e._s(e.$t("components.netsea.product.tax_rate.reduced")))]),t("a-radio",{attrs:{value:"none"}},[e._v(e._s(e.$t("components.netsea.product.tax_rate.none")))])],1)],1)],1):e._e(),t("div",{staticStyle:{"margin-bottom":"1rem"}},[t("a-button",{on:{click:function(t){return e.piCopyData(e.formEditKey)}}},[e._v(e._s(e.$t("view.item.form.pl.params.save")))])],1)])],1)],2)],1)],1)]),t("div",{attrs:{slot:"footer"},slot:"footer"},[t("a-button",{on:{click:e.cancelModal}},[e._v(e._s(e.$t("components.imagetext.translation.confirm.cancel")))]),t("a-button",{attrs:{type:"primary",loading:e.confirmNSLoading},on:{click:e.okNetSeaGoodInfo}},[e._v(e._s(e.$t("view.item.form.pl.save.button")))]),t("a-button",{attrs:{type:"success",loading:e.confirmNSLoading},on:{click:e.okFabu}},[e._v(e._s(e.$t("view.item.form.pl.fabu.button")))])],1)]):e._e()],1)},n=[],s=a("5530"),r=a("c7eb"),i=a("1da1"),c=(a("d3b7"),a("3ca3"),a("ddb0"),a("25f0"),a("b680"),a("d81d"),a("fb6a"),a("159b"),a("7db0"),a("a026")),d=a("c1df"),l=a.n(d),u=a("8caa"),m=Object(c["b"])((function(){return Promise.resolve().then(a.bind(null,"2dd7"))})),p=Object(c["b"])((function(){return a.e("chunk-1b5a347c").then(a.bind(null,"16f2"))})),_=Object(c["b"])((function(){return a.e("chunk-286b8764").then(a.bind(null,"12b1"))})),g=Object(c["b"])((function(){return a.e("chunk-1b5a347c").then(a.bind(null,"5f19"))})),f={name:"rakutenAddProduct",props:{goodsIds:{type:Array,default:function(){return[]}}},data:function(){return{formTitle:this.$t("components.dyProduct.dyProduct.title"),formEditKey:"title",open:!1,modalWidth:"1350",modalHeight:"680",goodList:[],netseaGoodInfoList:{},netseaShop:null,imageSizeArr:{},netProductDiscountCodeList:{},netseaGenereArray:{},netseaGoodInfoRules:{product_name:[{required:!0,message:this.$t("view.item.list.form.placeholder.title"),trigger:"blur"},{max:50,message:this.$t("view.item.form.item_name.maxlength"),trigger:"change"}],catchcopy:[{max:50,message:this.$t("view.item.form.catchcopy.maxlength"),trigger:"change"}],comment:[{max:1e3,message:this.$t("view.item.form.comment.maxlength"),trigger:"change"}],description:[{max:5e3,message:this.$t("view.item.form.description_for_consumer.maxlength"),trigger:"change"}],size:[{max:1e3,message:this.$t("view.item.form.size.maxlength"),trigger:"change"}],spec:[{max:1e3,message:this.$t("view.item.form.spec.maxlength"),trigger:"change"}],spec_for_consumer:[{max:5e3,message:this.$t("view.item.form.spec_for_consumer.maxlength"),trigger:"change"}],notes:[{max:1e3,message:this.$t("view.item.form.notes.maxlength"),trigger:"change"}],delivery_terms:[{max:50,message:this.$t("view.item.form.delivery_terms.maxlength"),trigger:"change"}],jan_code:[{max:13,message:this.$t("view.item.form.jan_code.maxlength"),trigger:"change"}],maker_code:[{max:30,message:this.$t("view.item.form.maker_code.maxlength"),trigger:"change"}]},categoryHierarchyList:{},firstCatId:{},secondCatId:{},thirdCatId:{},productSetColumns:[{title:this.$t("components.netsea.product.product_set.set_no"),dataIndex:"set_no",key:"set_no"},{title:this.$t("components.netsea.product.set_branch_code"),dataIndex:"set_branch_code",key:"set_branch_code",scopedSlots:{customRender:"set_branch_code"}},{title:this.$t("components.netsea.product.product_set.set_label"),dataIndex:"set_label",key:"set_label",scopedSlots:{customRender:"set_label"}},{title:this.$t("components.netsea.product.product_set.set_reference_price"),dataIndex:"set_reference_price",key:"set_reference_price",scopedSlots:{customRender:"set_reference_price"}},{title:this.$t("components.netsea.product.product_set.set_price"),dataIndex:"set_price",key:"set_price",scopedSlots:{customRender:"set_price"}},{title:this.$t("components.netsea.product.product_set.set_sku_number"),dataIndex:"set_sku_number",key:"set_sku_number",scopedSlots:{customRender:"set_sku_number"}},{title:this.$t("components.netsea.product.product_set.set_stock_number"),dataIndex:"set_stock_number",key:"set_stock_number",scopedSlots:{customRender:"set_stock_number"}}],confirmNSLoading:!1,plDataFields:{description:["catchcopy","comment","description_for_consumer","size","spec","spec_for_consumer","notes"],itemInfo:["sales_status_code","sales_method_code","publish_period_start","publish_period_end","product_ship_setting_code","product_ship_fee"],other:["delivery_terms","return_setting_code","search_tags","stamp_id","jan_code","maker_code","reference_price_type_code","consumption_tax_type_code"]},TemplateData:{product_discount:{product_discount_rate:"",product_discount_period_start:"",product_discount_period_end:""},search_tags:[{search_tag_no:1,search_tag_text:""},{search_tag_no:2,search_tag_text:""},{search_tag_no:3,search_tag_text:""},{search_tag_no:4,search_tag_text:""},{search_tag_no:5,search_tag_text:""}]},plActicty:[]}},methods:{changeLeftTab:function(e){this.formEditKey=e},cancelModal:function(){this.open=!1},openModal:function(){this.modalHeight=(.9*window.innerHeight).toFixed(0).toString(),this.modalWidth=(.8*window.innerWidth).toFixed(0).toString(),this.open=!0},initLoad:function(e){e&&(this.netseaGoodInfoList={},this.netseaShop=e,this.openModal())},initNetsea:function(e){var t=this;Promise.all(this._.map(e,(function(e,a){return t.netseaPublication(e)}))).then((function(e){t.$message.destroy()}))},netseaPublication:function(e,t){var a=this,o=this,n={};return n.good_id=e.good_id,n.app_key=this.netseaShop.app_key,o.netseaGenereArray[e.good_id]={netseaGenereList:[],netseaGenereList1:[],netseaGenereList2:[]},Object(u["d"])(n).then((function(t){if(0===t.code){o.netseaGoodInfoList[e.good_id]=t.product_info,o.getParentCategory(o.netseaGoodInfoList[e.good_id].category_id,e.good_id),o.imageSizeArr={};var n=[];return o.netseaGoodInfoList[e.good_id].images&&o.netseaGoodInfoList[e.good_id].images.map((function(e){e.image_url&&n.push(o.getImageSizeInKB(e.image_url).then((function(t){return o.imageSizeArr[e.image_no]=t.toFixed(2),t})))})),Promise.all(n).then((function(){o.imageSizeArr=Object.assign({},o.imageSizeArr)})),o.netseaGoodInfoList[e.good_id].publish_period_start&&(o.netseaGoodInfoList[e.good_id].publish_period_start=new Date(1e3*o.netseaGoodInfoList[e.good_id].publish_period_start).toISOString().slice(0,19)),o.netseaGoodInfoList[e.good_id].publish_period_end&&(o.netseaGoodInfoList[e.good_id].publish_period_end=new Date(1e3*o.netseaGoodInfoList[e.good_id].publish_period_end).toISOString().slice(0,19)),o.netseaGoodInfoList[e.good_id].product_discout?(o.netProductDiscountCodeList[e.good_id]=!0,o.netseaGoodInfoList[e.good_id].product_discount.product_discount_period_start=o.netseaGoodInfoList[e.good_id].product_discount.product_discount_period_start?new Date(1e3*o.netseaGoodInfoList[e.good_id].product_discount.product_discount_period_start).toISOString().slice(0,19):"",o.netseaGoodInfoList[e.good_id].product_discount.product_discount_period_end=o.netseaGoodInfoList[e.good_id].product_discount.product_discount_period_end?new Date(1e3*o.netseaGoodInfoList[e.good_id].product_discount.product_discount_period_end).toISOString().slice(0,19):""):(o.netProductDiscountCodeList[e.good_id]=!1,o.netseaGoodInfoList[e.good_id].product_discount={product_discount_rate:"",product_discount_period_start:"",product_discount_period_end:""}),o.app_key=a.netseaShop.app_key,o.getNetSeaGenere(0,0,e.good_id),o.$set(a,"netseaGoodInfoList",Object.assign({},o.netseaGoodInfoList)),a.netseaShop.loading=!1,t}}))},getParentCategory:function(e,t){var a=this,o=this;this.categoryHierarchyList[t]||(this.categoryHierarchyList[t]={level1:{},level2:{},level3:{}}),Object(u["b"])({cat_id:e}).then((function(e){0===e.code&&(e.data.forEach((function(o){if(0===o.p_cat_id)a.categoryHierarchyList[t].level1=o;else{var n=e.data.find((function(e){return e.cat_id===o.p_cat_id}));n&&0===n.p_cat_id?a.categoryHierarchyList[t].level2=o:a.categoryHierarchyList[t].level3=o}})),a.firstCatId[t]=a.categoryHierarchyList[t].level1.cat_id,a.secondCatId[t]=a.categoryHierarchyList[t].level2.cat_id,o.getNetSeaGenere(a.firstCatId[t],1,t),a.thirdCatId[t]=a.categoryHierarchyList[t].level3.cat_id,o.getNetSeaGenere(a.secondCatId[t],2,t),a.$set(a,"categoryHierarchyList",Object.assign({},a.categoryHierarchyList)),a.$set(a,"firstCatId",Object.assign({},a.firstCatId)),a.$set(a,"secondCatId",Object.assign({},a.secondCatId)),a.$set(a,"thirdCatId",Object.assign({},a.thirdCatId)))}))},getNetSeaGenere:function(e,t,a){var o=this,n=this,s={};return s.cat_id=e,Object(u["a"])(s).then((function(e){if(0===e.code)switch(t){case 0:n.netseaGenereArray[a].netseaGenereList=e.data;break;case 1:n.netseaGenereArray[a].netseaGenereList1=e.data;break;case 2:n.netseaGenereArray[a].netseaGenereList2=e.data;break}return o.$set(o,"netseaGenereArray",Object.assign({},o.netseaGenereArray)),e}))},selectNetSeaGenre:function(e,t,a){var o=this,n={};switch(t){case 0:o.netseaGenereArray[a].netseaGenereList1=[],o.netseaGenereArray[a].netseaGenereList2=[],o.netseaGenereArray[a].netseaGenereList3=[],o.secondCatId[a]=0,o.thirdCatId[a]=0,n=o.netseaGenereArray[a].netseaGenereList.find((function(t){return t.cat_id===e}));break;case 1:o.netseaGenereArray[a].netseaGenereList2=[],o.netseaGenereArray[a].netseaGenereList3=[],o.thirdCatId[a]=0,n=o.netseaGenereArray[a].netseaGenereList1.find((function(t){return t.cat_id===e}));break;case 2:o.netseaGenereArray[a].netseaGenereList3=[],n=o.netseaGenereArray[a].netseaGenereList2.find((function(t){return t.cat_id===e}));break}n&&(0===n.p_cat_id?o.getNetSeaGenere(n.cat_id,1,a).then((function(e){o.netseaGenereArray[a].netseaGenereList&&(o.secondCatId[a]=o.netseaGenereArray[a].netseaGenereList1[0].cat_id,o.getNetSeaGenere(o.secondCatId[a],2,a).then((function(e){o.netseaGenereArray[a].netseaGenereList1&&(o.thirdCatId[a]=o.netseaGenereArray[a].netseaGenereList2[0].cat_id,o.netseaGoodInfoList[a].category_id=o.thirdCatId[a])})))})):n.p_cat_id===o.firstCatId[a]?o.getNetSeaGenere(n.cat_id,2,a).then((function(e){o.netseaGenereArray[a].netseaGenereList2&&(o.thirdCatId[a]=o.netseaGenereArray[a].netseaGenereList2[0].cat_id,o.netseaGoodInfoList[a].category_id=o.thirdCatId[a])})):n.p_cat_id===o.secondCatId[a]&&(o.thirdCatId[a]=n.cat_id,o.secondCatId[a]&&(o.netseaGoodInfoList[a].category_id=o.thirdCatId[a])))},discountSwitch:function(e){this.$set(this,"netProductDiscountCodeList",Object.assign({},this.netProductDiscountCodeList))},getImageSizeInKB:function(e){return Object(i["a"])(Object(r["a"])().mark((function t(){return Object(r["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.prev=0,t.abrupt("return",Object(u["c"])({url:e}).then((function(e){if(e.volume)return e.volume})));case 4:t.prev=4,t.t0=t["catch"](0);case 6:case"end":return t.stop()}}),t,null,[[0,4]])})))()},okNetSeaGoodInfo:function(){var e=this,t=this;t.confirmNSLoading=!0;var a=[];this.goodsIds.map((function(e,o){t.$refs["netseaGoodInfoForm"+e]&&t.$refs["netseaGoodInfoForm"+e][0]&&a.push(new Promise((function(a,o){try{t.$refs["netseaGoodInfoForm"+e][0].validate((function(n,s){n?a("success"):Object.keys(s)&&Object.keys(s)[0]&&o(new Error(t.$t("view.item.list.good_id")+e+s[Object.keys(s)[0]][0].message))}))}catch(n){o(new Error(n))}})))})),Promise.all(a).then((function(a){var o=[],n=e._.map(e.netseaGoodInfoList,(function(a,n){var s={};if(s.data=JSON.parse(JSON.stringify(a)),a.publish_period_start&&(s.data.publish_period_start=new Date(l()(s.data.publish_period_start).format("YYYY-MM-DD HH:mm:ss")).getTime()/1e3),a.publish_period_end&&(s.data.publish_period_end=new Date(l()(s.data.publish_period_end).format("YYYY-MM-DD HH:mm:ss")).getTime()/1e3),t.netProductDiscountCodeList[n]){if(!s.data.product_discount.product_discount_rate)return t.$message.error(t.$t("view.item.form.product_discount_rate.notnull")),"itemInfo";try{s.data.product_discount.product_discount_period_start=new Date(l()(s.data.product_discout.product_discount_period_start).format("YYYY-MM-DD HH:00:00")).getTime()/1e3,s.data.product_discount.product_discount_period_end=new Date(l()(s.data.product_discout.product_discount_period_end).format("YYYY-MM-DD HH:00:00")).getTime()/1e3}catch(c){}}else delete s.data.product_discount;if(s.data.good_id=n,!s.data.product_name)return t.$message.error(t.$t("view.item.form.item_name.notnull")),t.confirmNSLoading=!1,"title";if(!e.isWithinMaxLength(s.data.product_name,50))return t.$message.error(t.$t("view.item.form.item_name.maxlength")),document.getElementById("product_name"+n)&&document.getElementById("product_name"+n).focus(),t.confirmNSLoading=!1,"title";if(s.data.catchcopy&&!e.isWithinMaxLength(s.data.catchcopy,50))return t.$message.error(t.$t("view.item.form.catchcopy.maxlength")),document.getElementById("catchcopy"+n)&&document.getElementById("catchcopy"+n).focus(),t.confirmNSLoading=!1,"category";if(s.data.comment&&!e.isWithinMaxLength(s.data.comment,1e3))return t.$message.error(t.$t("view.item.form.comment.maxlength")),document.getElementById("comment"+n)&&document.getElementById("comment"+n).focus(),t.confirmNSLoading=!1,"description";if(s.data.description_for_consumer&&!e.isWithinMaxLength(s.data.description_for_consumer,5e3))return t.$message.error(t.$t("view.item.form.description_for_consumer.maxlength")),document.getElementById("description_for_consumer"+n)&&document.getElementById("description_for_consumer"+n).focus(),t.confirmNSLoading=!1,"description";if(s.data.size&&!e.isWithinMaxLength(s.data.size,1e3))return t.$message.error(t.$t("view.item.form.size.maxlength")),document.getElementById("size"+n)&&document.getElementById("size"+n).focus(),t.confirmNSLoading=!1,"description";if(s.data.spec&&!e.isWithinMaxLength(s.data.spec,1e3))return t.$message.error(t.$t("view.item.form.spec.maxlength")),document.getElementById("spec"+n)&&document.getElementById("spec"+n).focus(),t.confirmNSLoading=!1,"description";if(s.data.spec_for_consumer&&!e.isWithinMaxLength(s.data.spec_for_consumer,5e3))return t.$message.error(t.$t("view.item.form.spec_for_consumer.maxlength")),document.getElementById("spec_for_consumer"+n)&&document.getElementById("spec_for_consumer"+n).focus(),t.confirmNSLoading=!1,"description";if(s.data.notes&&!e.isWithinMaxLength(s.data.notes,5e3))return t.$message.error(t.$t("view.item.form.notes.maxlength")),document.getElementById("notes"+n)&&document.getElementById("notes"+n).focus(),t.confirmNSLoading=!1,"description";if(s.data.delivery_terms&&!e.isWithinMaxLength(s.data.delivery_terms,50))return t.$message.error(t.$t("view.item.form.delivery_terms.maxlength")),document.getElementById("delivery_terms"+n)&&document.getElementById("delivery_terms"+n).focus(),t.confirmNSLoading=!1,"other";if(s.data.search_tags.length>0)for(var r=0;r<s.data.search_tags.length;r++)if(!e.isWithinMaxLength(s.data.search_tags[r].search_tag_text,10))return t.$message.error(t.$t("view.item.form.search_tags.maxlength")),document.getElementsByName("search_tag_text"+n)[r]&&document.getElementsByName("search_tag_text"+n)[r].focus(),t.confirmNSLoading=!1,"other";if(s.data.jan_code&&!e.isWithinMaxLength(s.data.jan_code,13))return t.$message.error(t.$t("view.item.form.jan_code.maxlength")),document.getElementById("jan_code"+n)&&document.getElementById("jan_code"+n).focus(),t.confirmNSLoading=!1,"other";if(s.data.maker_code&&!e.isWithinMaxLength(s.data.maker_code,30))return t.$message.error(t.$t("view.item.form.maker_code.maxlength")),document.getElementById("maker_code"+n)&&document.getElementById("maker_code"+n).focus(),t.confirmNSLoading=!1,"other";if(s.data.product_set.length>0)for(var i=0;i<s.data.product_set.length;i++){if(!e.isWithinMaxLength(s.data.product_set[i].set_branch_code,20))return t.$message.error(t.$t("view.item.form.set_branch_code.maxlength")),document.getElementsByName("set_branch_code"+n)[i]&&document.getElementsByName("set_branch_code"+n)[i].focus(),t.confirmNSLoading=!1,"sku";if(!e.isWithinMaxLength(s.data.product_set[i].set_label,30))return t.$message.error(t.$t("view.item.form.set_label.maxlength")),document.getElementsByName("set_label"+n)[i]&&document.getElementsByName("set_label"+n)[i].focus(),t.confirmNSLoading=!1,"sku";if(!s.data.product_set[i].set_reference_price)return t.$message.error(t.$t("view.item.form.set_reference_price.notnull")),document.getElementsByName("set_reference_price"+n)[i]&&document.getElementsByName("set_reference_price"+n)[i].focus(),t.confirmNSLoading=!1,"sku";if(isNaN(s.data.product_set[i].set_reference_price))return t.$message.error(t.$t("view.item.form.set_reference_price.number")),document.getElementsByName("set_reference_price"+n)[i]&&document.getElementsByName("set_reference_price"+n)[i].focus(),t.confirmNSLoading=!1,"sku";if(!s.data.product_set[i].set_price)return t.$message.error(t.$t("view.item.form.set_price.notnull")),document.getElementsByName("set_price"+n)[i]&&document.getElementsByName("set_price"+n)[i].focus(),t.confirmNSLoading=!1,"sku";if(isNaN(s.data.product_set[i].set_price))return t.$message.error(t.$t("view.item.form.set_price.number")),document.getElementsByName("set_price"+n)[i]&&document.getElementsByName("set_price"+n)[i].focus(),t.confirmNSLoading=!1,"sku"}o.push(s.data)}));n=t._.compact(n),o.length>0&&0===n.length?Object(u["f"])({data:o,app_key:t.netseaShop.app_key}).then((function(e){0===e.code?(t.confirmNSLoading=!1,t.$message.success(e.message)):(t.confirmNSLoading=!1,t.$message.error(e.message))})).catch((function(e){t.confirmNSLoading=!1,t.$message.error(e)})):n.length>0&&(t.confirmNSLoading=!1,e.formEditKey=n[0])})).catch((function(e){t.confirmNSLoading=!1,t.$message.error(e)}))},isWithinMaxLength:function(e,t){for(var a=0,o=0;o<e.length;o++)a+=1;return a<=t},deleteImage:function(e,t){this.netseaGoodInfoList[t].images.map((function(t){t.image_no===e&&(t.image_url="")})),this.$set(this,"netseaGoodInfoList",Object.assign({},this.netseaGoodInfoList))},okFabu:function(){var e=this;this.confirmNSLoading=!0,Object(u["e"])({good_ids:this.goodsIds,app_key:this.netseaShop.app_key}).then((function(t){0===t.code?e.$message.success(t.message):e.$message.error(t.message),e.confirmNSLoading=!1})).catch((function(t){e.confirmNSLoading=!1,e.$message.error(t)}))},piCopyData:function(e){var t=this,a=this;this._.map(this.netseaGoodInfoList,(function(o,n){"itemInfo"===e&&t.TemplateData["product_ship_setting_code"]&&(a.netProductDiscountCodeList[n]=!0,a.netseaGoodInfoList[n].product_discount=a.TemplateData.product_discount),a.plDataFields[e].map((function(e){a.netseaGoodInfoList[n][e]=a.TemplateData[e]}))})),this.$set(this,"netseaGoodInfoList",Object.assign({},this.netseaGoodInfoList))}},components:{AntModal:m,goodsIdList:p,leftTabItem:_,kandengGoodsOne:g}},h=Object(s["a"])({},f),v=h,b=a("2877"),y=Object(b["a"])(v,o,n,!1,null,null,null);t["default"]=y.exports},"963d":function(e,t,a){"use strict";a("09ff")},ac2a:function(e,t,a){"use strict";a.r(t);var o=function(){var e=this,t=e._self._c;return t("div",{staticClass:"main"},[t("div",{staticStyle:{"text-align":"right"}},[t("select-lang",{attrs:{currentLangText:!0,defaultLang:e.routerLang}})],1),e.form.role_name&&!e.LoginStatus?t("div",[t("div",[e._v(e._s(e.form.role_name+e.$t("view.user.register"))+":")])]):e._e(),t("a-form-model",{ref:"form",staticClass:"user-layout-login",attrs:{id:"formLogin",model:e.form,rules:e.rules}},[e.LoginStatus?t("a-tabs",{staticClass:"loginTitle",on:{change:function(t){e.loginType=t}}},[t("a-tab-pane",{key:"1",attrs:{tab:e.$t(e.LoginStatus?"login.modal.tab1":"view.user.register.tab1")}}),t("a-tab-pane",{key:"2",attrs:{tab:e.$t(e.LoginStatus?"login.modal.tab2":"view.user.register.tab2")}})],1):e._e(),t("a-form-model-item",{attrs:{prop:"username"}},[t("a-input",{attrs:{size:"large",placeholder:e.$t("view.config.email.add.username.label")},model:{value:e.form.username,callback:function(t){e.$set(e.form,"username",t)},expression:"form.username"}},[t("a-icon",{style:{color:"rgba(0,0,0,.25)"},attrs:{slot:"prefix",type:"user"},slot:"prefix"})],1)],1),t("a-form-model-item",{attrs:{prop:"password"}},[t("a-input-password",{attrs:{size:"large",placeholder:e.$t("view.login.email.add.password.label")},model:{value:e.form.password,callback:function(t){e.$set(e.form,"password",t)},expression:"form.password"}},[t("a-icon",{style:{color:"rgba(0,0,0,.25)"},attrs:{slot:"prefix",type:"lock"},slot:"prefix"})],1)],1),e.LoginStatus?e._e():t("a-form-model-item",{attrs:{prop:"realname"}},[t("a-input",{attrs:{size:"large",placeholder:e.$t("view.config.email.add.realname.label")},model:{value:e.form.realname,callback:function(t){e.$set(e.form,"realname",t)},expression:"form.realname"}},[t("a-icon",{style:{color:"rgba(0,0,0,.25)"},attrs:{slot:"prefix",type:"user"},slot:"prefix"})],1)],1),e.LoginStatus?e._e():t("a-form-model-item",{attrs:{prop:"mobile"}},[t("a-input",{attrs:{size:"large",placeholder:e.$t("view.config.email.add.mobile.label")},model:{value:e.form.mobile,callback:function(t){e.$set(e.form,"mobile",t)},expression:"form.mobile"}},[t("a-icon",{style:{color:"rgba(0,0,0,.25)"},attrs:{slot:"prefix",type:"phone"},slot:"prefix"})],1)],1),e.LoginStatus?e._e():t("a-form-model-item",{attrs:{prop:"email"}},[t("a-input",{attrs:{size:"large",placeholder:e.$t("view.config.email.add.email.label")},model:{value:e.form.email,callback:function(t){e.$set(e.form,"email",t)},expression:"form.email"}},[t("a-icon",{style:{color:"rgba(0,0,0,.25)"},attrs:{slot:"prefix",type:"mail"},slot:"prefix"})],1)],1),e.LoginStatus&&e.captchaOnOff?t("a-row",{attrs:{gutter:16}},[t("a-col",{staticClass:"gutter-row",attrs:{span:16}},[t("a-form-model-item",{attrs:{prop:"code"}},[t("a-input",{attrs:{size:"large",type:"text",autocomplete:"off",placeholder:e.$t("login.modal.code")},model:{value:e.form.code,callback:function(t){e.$set(e.form,"code",t)},expression:"form.code"}},[t("a-icon",{style:{color:"rgba(0,0,0,.25)"},attrs:{slot:"prefix",type:"security-scan"},slot:"prefix"})],1)],1)],1),t("a-col",{staticClass:"gutter-row",attrs:{span:8}},[t("img",{staticClass:"getCaptcha",attrs:{src:e.codeUrl},on:{click:e.getCode}})])],1):e._e(),e.LoginStatus?e._e():t("a-row",{attrs:{gutter:16}},[t("a-col",{staticClass:"gutter-row",attrs:{lg:18,sm:18,md:18,xs:16}},[t("a-form-model-item",{attrs:{prop:"code"}},[t("a-input",{attrs:{size:"large",type:"text",autocomplete:"off",placeholder:e.$t("view.modal.email.code.placeholder")},model:{value:e.form.code,callback:function(t){e.$set(e.form,"code",t)},expression:"form.code"}},[t("a-icon",{style:{color:"rgba(0,0,0,.25)"},attrs:{slot:"prefix",type:"security-scan"},slot:"prefix"})],1)],1)],1),t("a-col",{staticClass:"gutter-row",attrs:{lg:6,sm:6,md:6,xs:8}},[t("a-button",{staticClass:"login-button",staticStyle:{padding:"0 0px"},attrs:{type:"primary",loading:e.codeLoading,size:"large"},on:{click:e.getEmailCode}},[e._v(e._s(e.codeLoading?e.$t("view.modal.code.time",{time:e.currentCodeTime}):e.$t("view.modal.email.code")))])],1)],1),e.LoginStatus?e._e():t("a-form-model-item",{attrs:{prop:"distribution_code"}},[t("a-input",{attrs:{size:"large",placeholder:e.$t("view.config.add.code.label")},model:{value:e.form.distribution_code,callback:function(t){e.$set(e.form,"distribution_code",t)},expression:"form.distribution_code"}},[t("a-icon",{style:{color:"rgba(0,0,0,.25)"},attrs:{slot:"prefix",type:"security-scan"},slot:"prefix"})],1)],1),e.LoginStatus?t("a-form-item",{staticStyle:{"margin-top":"3rem"}},[t("a-button",{staticClass:"login-button",attrs:{size:"large",type:"primary",htmlType:"submit",loading:e.logining,disabled:e.logining},on:{click:e.handleSubmit}},[e._v(" "+e._s((e.loginType,e.$t("view.modal.login")))+" ")])],1):e._e(),e.LoginStatus?e._e():t("a-form-item",{staticStyle:{"margin-top":"0.25rem","margin-bottom":"1rem"}},[t("a-button",{staticClass:"login-button",attrs:{size:"large",type:"primary",htmlType:"submit",loading:e.logining,disabled:e.logining},on:{click:e.handleRegister}},[e._v(" "+e._s((e.loginType,e.$t("view.user.register")))+" ")])],1),t("a-row",[t("a-col",{staticStyle:{"text-align":"right"},attrs:{lg:24}},[t("a-space",[t("div",{staticClass:"icons-list"},[e.LoginStatus?t("a-button",{attrs:{type:"link"},on:{click:e.goRegister}},[e._v(e._s(e.$t("view.user.register")))]):e._e(),e.LoginStatus?e._e():t("a-button",{attrs:{type:"link"},on:{click:e.goLogin}},[e._v(e._s(e.$t("view.modal.login")))])],1)])],1)],1)],1)],1)},n=[],s=a("5530"),r=(a("d3b7"),a("2f62")),i=a("7ded"),c=a("04b3"),d=a("da7d"),l={components:{allIcon:c["a"],SelectLang:d["a"]},data:function(){return{prefixCls:"ant-pro-global-header-index-action",loginType:"1",allIcon:c["a"],codeUrl:"",form:{username:"",password:"",code:"",cid:"123"},captchaOnOff:!0,rules:{username:[{required:!0,message:this.$t("view.config.email.add.username.placeholder"),trigger:"blur"}],password:[{required:!0,message:this.$t("view.config.email.add.password.placeholder"),trigger:"blur"}],realname:[{required:!1,message:this.$t("view.config.email.add.realname.placeholder"),trigger:"blur"}],mobile:[{required:!1,message:this.$t("view.config.email.add.mobile.placeholder"),trigger:"blur"}],email:[{required:!1,message:this.$t("view.config.email.add.email.placeholder"),trigger:"blur"}],code:[{required:!0,message:this.$t("login.modal.code.relue"),trigger:"blur"}],cid:[{required:!0,message:"验证码ID不能为空",trigger:"blur"}]},logining:!1,LoginStatus:!0,CodeTime:null,codeLoading:!1,currentCodeTime:0,routerLang:""}},created:function(){var e;this.getCode(),null!==(e=this.$route.query)&&void 0!==e&&e.lang&&(this.routerLang=this.$route.query.lang),this.$route.query.role&&(this.form.role=this.$route.query.role,this.form.role_name=this.$route.query.role_name),"1"===this.$route.query.register&&this.goRegister(),this.$route.query.ref_code&&(this.form.distribution_code=this.$route.query.ref_code),this.$route.query.token&&this.loginSuccess()},beforeDestroy:function(){clearInterval(this.CodeTime)},methods:Object(s["a"])(Object(s["a"])({getCode:function(){var e=this;Object(i["c"])().then((function(t){e.captchaOnOff=void 0===t.captchaOnOff||t.captchaOnOff,e.captchaOnOff&&(e.codeUrl=t.base64,e.form.cid=t.cid)}))},applyLicense:function(){window.open("/applyLicense","_blank")}},Object(r["b"])(["Login","Logout","SubLogin"])),{},{handleSubmit:function(){var e=this;this.$notification.close("loginExpireTip"),this.logining=!0,this.$refs.form.validate((function(t){t?"1"===e.loginType?e.Login(e.form).then((function(t){return e.loginSuccess(t)})).catch((function(t){return e.requestFailed(t)})).finally((function(){e.logining=!1})):e.SubLogin(e.form).then((function(t){return e.loginSuccess(t)})).catch((function(t){return e.requestFailed(t)})).finally((function(){e.logining=!1})):(setTimeout((function(){e.logining=!1}),600),e.captchaOnOff&&e.getCode())}))},loginSuccess:function(e){this.$router.push({path:"/"})},requestFailed:function(){this.logining=!1,this.form.code=void 0,this.getCode()},handleCloseLoginError:function(){},goRegister:function(){this.rules.email[0].required=!0,this.LoginStatus=!1},goLogin:function(){this.rules.email[0].required=!1,this.LoginStatus=!0},handleRegister:function(){var e=this;this.$refs.form.validate((function(t){t?Object(i["k"])(e.form).then((function(t){0===t.code&&(e.$message.success(e.$t("view.modal.register.succes")),e.goLogin())})):setTimeout((function(){e.logining=!1}),600)}))},getEmailCode:function(){var e=this;this.codeLoading||this.$refs.form.validateField("email",(function(t){t||Object(i["b"])({email:e.form.email}).then((function(t){0===t.code&&(e.codeLoading=!0,e.getCodeTime(),e.$message.success(e.$t("view.modal.code.succes")))}))}))},getCodeTime:function(){var e=this,t=30;this.currentCodeTime=t,this.CodeTime=setInterval((function(){t--,e.currentCodeTime=t,t<=0&&(e.codeLoading=!1,clearInterval(e.CodeTime))}),1e3)}})},u=l,m=(a("963d"),a("2419"),a("2877")),p=Object(m["a"])(u,o,n,!1,null,"4a5236c2",null);t["default"]=p.exports},aee6:function(e,t,a){"use strict";a.r(t);var o=function(){var e=this,t=e._self._c;return t("span",[t("a-tabs",{on:{change:e.changeTabGoods},model:{value:e.activeTab,callback:function(t){e.activeTab=t},expression:"activeTab"}},e._l(e.list,(function(e){return t("a-tab-pane",{key:e.good_id,attrs:{tab:e.title}})})),1)],1)},n=[],s=a("5530"),r=a("c7eb"),i=a("1da1"),c=(a("d3b7"),a("3ca3"),a("ddb0"),a("d81d"),a("aabf")),d={name:"GoodsListTab",props:{goodsIdList:{type:Array,default:function(){return[]}}},data:function(){return{activeTab:0,list:{}}},watch:{goodsIdList:function(e,t){e!==t&&this.getGoodsList()}},created:function(){this.getGoodsList()},methods:{changeTab:function(e){},getGoodsList:function(){var e=this;return Object(i["a"])(Object(r["a"])().mark((function t(){return Object(r["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,Promise.all(e.goodsIdList.map(function(){var t=Object(i["a"])(Object(r["a"])().mark((function t(a,o){var n;return Object(r["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return n={good_id:a},t.next=3,Object(c["m"])(n);case 3:e.list[a]=t.sent;case 4:case"end":return t.stop()}}),t)})));return function(e,a){return t.apply(this,arguments)}}()));case 2:e._.size(e.list)>1&&(e.activeTab=e.list[e.goodsIdList[0]].good_id,e.$emit("change",e.list[e.goodsIdList[0]]));case 3:case"end":return t.stop()}}),t)})))()},changeTabGoods:function(e){this.activeTab=e,this.$emit("change",this.list[e])}}},l=Object(s["a"])({},d),u=l,m=a("2877"),p=Object(m["a"])(u,o,n,!1,null,null,null);t["default"]=p.exports},d936:function(e,t,a){"use strict";a("92c5")},eb30:function(e,t,a){"use strict";a.r(t);a("b0c0"),a("a9e3");var o=function(){var e=this,t=e._self._c;return t("span",[e.hiddenIcon?e._e():t("a-tooltip",[t("template",{slot:"title"},[e._v(" "+e._s(e.$t("components.imagetext.translation"))+" ")]),t("a-icon",{attrs:{type:"file-image"},on:{click:e.openModal}})],2),t("AntModal",{attrs:{visible:e.visible,title:e.modelTitle,modalWidth:"800",modalHeight:"650","adjust-size":!0},on:{cancel:e.close},scopedSlots:e._u([{key:"footer",fn:function(){return[t("recharge",{ref:"yueref",attrs:{showYue:!0}}),t("a-button",{staticStyle:{"margin-left":"5px"},on:{click:e.close}},[e._v(e._s(e.$t("components.imagetext.translation.close")))]),t("a-button",{attrs:{type:"primary"},on:{click:e.ok}},[e._v(e._s(e.$t("components.imagetext.translation.ok")))])]},proxy:!0}])},[t("div",{attrs:{slot:"content"},slot:"content"},[t("div",{staticStyle:{display:"flex","align-items":"center"}},[t("div",{staticStyle:{width:"290px"}},[t("div",[e._v(e._s(e.$t("components.imagetext.translation.before")))]),t("div",{staticStyle:{width:"290px",height:"290px"}},[t("img",{staticStyle:{width:"290px",height:"290px","object-fit":"contain"},attrs:{src:e.img}})]),t("div",{staticStyle:{"margin-top":"1rem"}},[e._v(" "+e._s(e.$t("components.imagetext.translation.sourceLang"))+": "),e.langSource?t("a-select",{staticStyle:{width:"60%"},on:{change:e.changeCurrentLang},model:{value:e.currentLang,callback:function(t){e.currentLang=t},expression:"currentLang"}},e._l(e.langSource.sourceLanguage,(function(a){return t("a-select-option",{key:a.code,attrs:{value:a.code}},[e._v(" "+e._s(a.name)+" ")])})),1):e._e()],1)]),t("div",{staticStyle:{flex:"1","text-align":"center"}},[t("div",{staticStyle:{height:"311px","align-items":"center","justify-content":"center",display:"flex"}},[t("a-icon",{staticStyle:{"font-size":"2rem"},attrs:{type:"arrow-right"}})],1),t("a-select",{staticStyle:{width:"100%","margin-top":"1rem"},on:{change:e.changeTranEngData},model:{value:e.transEngineData,callback:function(t){e.transEngineData=t},expression:"transEngineData"}},e._l(e.langSource.transEngine,(function(a){return t("a-select-option",{key:a.code},[e._v(e._s(a.name)+" "),t("defaultCurrency",{attrs:{currency:"CNY",isFuhao:!0}}),e._v(" "+e._s(Number(Number(a.unitPrice)/100))+" ")],1)})),1)],1),t("div",{staticStyle:{width:"290px"}},[t("div",[e._v(e._s(e.$t("components.imagetext.translation.after")))]),t("div",{style:{width:"290px",height:"290px",border:e.newImg?"":"1px solid #ccc"}},[e.newImg?t("img",{staticStyle:{width:"290px",height:"290px","object-fit":"contain"},attrs:{src:e.newImg}}):e._e()]),t("div",{staticStyle:{"margin-top":"1rem","text-align":"right"}},[e._v(" "+e._s(e.$t("components.imagetext.translation.targetLang"))+": "),e.langSource?t("a-select",{staticStyle:{width:"60%"},on:{change:e.changeTransLang},model:{value:e.transLang,callback:function(t){e.transLang=t},expression:"transLang"}},e._l(e.langSource.targetLanguage,(function(a){return t("a-select-option",{key:a.code,attrs:{value:a.code}},[e._v(" "+e._s(a.name)+" ")])})),1):e._e()],1)])]),t("div",{staticStyle:{"margin-top":"1rem","text-align":"center"}},[t("a-button",{attrs:{type:"primary"},on:{click:e.transImg}},[e._v(e._s(e.$t("components.imagetext.translation.translate")))])],1)])])],1)},n=[],s=(a("d3b7"),a("3ca3"),a("ddb0"),a("a026")),r=a("3726"),i=Object(s["b"])((function(){return Promise.resolve().then(a.bind(null,"2dd7"))})),c=Object(s["b"])((function(){return Promise.resolve().then(a.bind(null,"b89c"))})),d=Object(s["b"])((function(){return Promise.resolve().then(a.bind(null,"34c3"))})),l="ImageTs-TranEngMode",u="ImageTs-CurrentLang",m="ImageTs-TransLang",p={name:"ImageTextTs",props:{img:{type:String,default:""},hiddenIcon:{type:Boolean,default:!1}},data:function(){return{visible:!1,modelTitle:this.$t("components.imagetext.translation.modaltitle"),newImg:"",langSource:[],currentLang:"",transLang:"",transEngineData:""}},methods:{getLangList:function(){var e=this;Object(r["c"])().then((function(t){0===t.code&&(e.langSource=JSON.parse(t.lang),sessionStorage.getItem(l)?e.transEngineData=sessionStorage.getItem(l):e.langSource.transEngine.length>0&&(e.transEngineData=e.langSource.transEngine[0].code,sessionStorage.setItem(l,e.transEngineData)),sessionStorage.getItem(u)&&(e.currentLang=sessionStorage.getItem(u)),sessionStorage.getItem(m)&&(e.transLang=sessionStorage.getItem(m)))}))},openModal:function(){if(this.newImg="",!this.img)return this.$message.error(this.$t("components.imagetext.translation.image.null")),!1;this.getLangList(),this.visible=!0},close:function(){this.visible=!1},ok:function(){var e=this;this.$confirm({title:this.$t("components.imagetext.translation.confirm.title"),content:this.$t("components.imagetext.translation.confirm.content"),okText:this.$t("components.imagetext.translation.confirm.ok"),cancelText:this.$t("components.imagetext.translation.confirm.cancel"),onOk:function(){e.$emit("update:img",e.newImg),e.$emit("ok",e.newImg),e.close()},onCancel:function(){}})},transImg:function(){var e=this;return this.transEngineData?this.currentLang?this.transLang?(this.$message.loading({content:this.$t("components.imagetext.translation.transImageLoading"),duration:0}),void Object(r["a"])({imgUrl:this.img,sourceLanguage:this.currentLang,targetLanguage:this.transLang,transEngine:this.transEngineData}).then((function(t){e.newImg=t.url+"?t="+(new Date).getTime(),e.$refs.yueref.getAmount(),e.$message.destroy()})).catch((function(t){e.$message.destroy()}))):(this.$message.error(this.$t("components.imagetext.translation.targetLang.null")),!1):(this.$message.error(this.$t("components.imagetext.translation.sourceLang.null")),!1):(this.$message.error(this.$t("components.imagetext.translation.engine.null")),!1)},changeTranEngData:function(e){sessionStorage.setItem(l,e)},changeCurrentLang:function(e){sessionStorage.setItem(u,e)},changeTransLang:function(e){sessionStorage.setItem(m,e)}},components:{AntModal:i,recharge:c,defaultCurrency:d}},_=p,g=a("2877"),f=Object(g["a"])(_,o,n,!1,null,null,null);t["default"]=f.exports},f7f8:function(e,t,a){"use strict";a.r(t);var o=function(){var e=this,t=e._self._c;return t("span",[e.hiddenIcon?e._e():t("a-tooltip",[t("template",{slot:"title"},[e._v(" "+e._s(e.$t("components.videoTrans.btn"))+" ")]),t("a-icon",{attrs:{type:"file-image"},on:{click:e.openModal}})],2),e.hiddenIcon?t("a-button",{attrs:{type:e.btnType,loading:e.loading},on:{click:e.openModal}},[e._v(e._s(e.$t("components.videoTrans.btn")))]):e._e(),t("AntModal",{attrs:{visible:e.visible,title:e.modelTitle,modalWidth:"800",modalHeight:"650","adjust-size":!0},on:{cancel:e.close},scopedSlots:e._u([{key:"footer",fn:function(){return[t("recharge",{ref:"yueref",attrs:{showYue:!0}}),t("a-button",{staticStyle:{"margin-left":"5px"},on:{click:e.close}},[e._v(e._s(e.$t("components.videoTrans.translation.close")))]),e.hiddenConfirm?e._e():t("a-button",{attrs:{type:"primary"},on:{click:e.ok}},[e._v(e._s(e.$t("components.imagetext.translation.ok")))])]},proxy:!0}])},[t("div",{attrs:{slot:"content"},slot:"content"},[t("div",{staticStyle:{display:"flex","align-items":"center"}},[t("div",{staticStyle:{width:"290px"}},[t("div",[e._v(e._s(e.$t("components.imagetext.translation.before")))]),t("div",{staticStyle:{width:"290px",height:"290px"}},[t("video",{ref:"sfGalleryBigImage",staticStyle:{"object-position":"top","max-height":"290px"},attrs:{autoplay:!1,muted:"",preload:"load",loop:"",src:e.url,width:"100%",height:"100%",controls:"controls",playsinline:""},domProps:{muted:!0}},[t("source",{attrs:{src:e.url,type:"video/*"}})])]),t("div",{staticStyle:{"margin-top":"1rem"}},[e._v(" "+e._s(e.$t("components.imagetext.translation.sourceLang"))+": "),t("a-select",{staticStyle:{width:"60%"},on:{change:e.changeCurrentLang},model:{value:e.currentLang,callback:function(t){e.currentLang=t},expression:"currentLang"}},e._l(e.langLabel,(function(a,o){return t("a-select-option",{key:o,attrs:{value:o}},[e._v(" "+e._s(e.$t(a))+" ")])})),1)],1)]),t("div",{staticStyle:{flex:"1","text-align":"center"}},[t("div",{staticStyle:{height:"311px","align-items":"center","justify-content":"center",display:"flex"}},[t("a-icon",{staticStyle:{"font-size":"2rem"},attrs:{type:"arrow-right"}})],1)]),t("div",{staticStyle:{width:"290px"}},[t("div",[e._v(e._s(e.$t("components.imagetext.translation.after")))]),t("div",{style:{width:"290px",height:"290px",border:e.newUrl?"":"1px solid #ccc"}},[e.newUrl?t("video",{ref:"sfGalleryBigImage",staticStyle:{"object-position":"top","max-height":"290px"},attrs:{autoplay:!1,muted:"",preload:"load",loop:"",src:e.newUrl,width:"100%",height:"100%",controls:"controls",playsinline:""},domProps:{muted:!0}},[t("source",{attrs:{src:e.newUrl,type:"video/*"}})]):e._e()]),t("div",{staticStyle:{"margin-top":"1rem","text-align":"right"}},[e._v(" "+e._s(e.$t("components.imagetext.translation.targetLang"))+": "),t("a-select",{staticStyle:{width:"60%"},on:{change:e.changeTransLang},model:{value:e.transLang,callback:function(t){e.transLang=t},expression:"transLang"}},e._l(e.langLabel,(function(a,o){return t("a-select-option",{key:o,attrs:{value:o}},[e._v(" "+e._s(e.$t(a))+" ")])})),1)],1)])]),t("div"),t("div",{staticStyle:{"margin-top":"1rem","text-align":"center"}},[t("a-button",{attrs:{type:"primary"},on:{click:e.transImg}},[e._v(e._s(e.$t("components.imagetext.translation.translate")))]),t("selectVideo",{ref:"selectVideo",staticStyle:{"margin-left":"0.5rem"},on:{ok:function(t){return e.newUrl=t}}})],1)])])],1)},n=[],s=(a("d3b7"),a("3ca3"),a("ddb0"),a("ac1f"),a("5319"),a("a026")),r=a("3726"),i=Object(s["b"])((function(){return Promise.resolve().then(a.bind(null,"2dd7"))})),c=Object(s["b"])((function(){return Promise.resolve().then(a.bind(null,"b89c"))})),d=Object(s["b"])((function(){return Promise.resolve().then(a.bind(null,"34c3"))})),l=Object(s["b"])((function(){return a.e("chunk-1b5a347c").then(a.bind(null,"09e9e"))})),u="videoTs-TranEngMode",m="videoTs-CurrentLang",p="videoTs-TransLang",_={name:"VideoTrans",props:{url:{type:String,default:""},hiddenIcon:{type:Boolean,default:!1},btnType:{type:String,default:"primary"},hiddenConfirm:{type:Boolean,default:!1}},data:function(){return{visible:!1,modelTitle:this.$t("components.imagetext.translation.modaltitle"),newUrl:"",langSource:[],langLabel:{zh:"zh-CN",en:"en-US",fr:"fr-FR",es:"es-ES",ar:"ar-EG",hi:"hi-IN",pt:"pt-PT",ru:"ru-RU",it:"it-IT",de:"de-DE",ja:"ja-JP",th:"th-TH",ko:"ko-KR",bn:"bn-BD",id:"id-ID",vi:"vi-VN",ms:"ms-MY"},currentLang:"",transLang:"",transEngineData:"",loading:!1}},methods:{getLangList:function(){sessionStorage.getItem(m)&&(this.currentLang=sessionStorage.getItem(m)),sessionStorage.getItem(p)&&(this.transLang=sessionStorage.getItem(p))},openModal:function(){if(this.newUrl="",!this.url)return this.$message.error(this.$t("components.imagetext.translation.image.null")),!1;this.getLangList(),this.visible=!0},close:function(){this.visible=!1},ok:function(){var e=this;this.$confirm({title:this.$t("components.imagetext.translation.confirm.title"),content:this.$t("components.imagetext.translation.confirm.content"),okText:this.$t("components.imagetext.translation.confirm.ok"),cancelText:this.$t("components.imagetext.translation.confirm.cancel"),onOk:function(){e.$emit("update:url",e.newUrl),e.$emit("ok",e.newUrl),e.close()},onCancel:function(){}})},transImg:function(){var e=this,t=(new Date).toLocaleDateString().replace(/\//g,"");Object(r["f"])({source_url:this.url,source_lang:this.currentLang,target_lang:this.transLang,project_name:t}).then((function(t){e.newUrl=t.video_url+"?t="+(new Date).getTime(),e.$refs.yueref.getAmount(),e.$message.success(e.$t("components.videoTrans.aivideo.loding"),2),setTimeout((function(){e.$refs.selectVideo&&e.$refs.selectVideo.openModal()}),2e3)})).catch((function(e){}))},changeTranEngData:function(e){sessionStorage.setItem(u,e)},changeCurrentLang:function(e){sessionStorage.setItem(m,e)},changeTransLang:function(e){sessionStorage.setItem(p,e)}},components:{AntModal:i,recharge:c,defaultCurrency:d,selectVideo:l}},g=_,f=a("2877"),h=Object(f["a"])(g,o,n,!1,null,null,null);t["default"]=h.exports}}]);
|
|
Binary file
|