@bee-hole/admin 1.25.36 → 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.
Files changed (85) hide show
  1. package/dist/css/{app~f075b844.e4324fc5.css → app~f075b844.b5d17e09.css} +1 -1
  2. package/dist/css/{app~f075b844.e4324fc5.css.gz → app~f075b844.b5d17e09.css.gz} +0 -0
  3. package/dist/css/chunk-1b5a347c.e253dc48.css +1 -0
  4. package/dist/css/chunk-286b8764.59941530.css +1 -0
  5. package/dist/css/chunk-286b8764.59941530.css.gz +0 -0
  6. package/dist/css/chunk-452aba94.704d1e60.css +1 -0
  7. package/dist/css/chunk-452aba94.704d1e60.css.gz +0 -0
  8. package/dist/css/{chunk-3d9ea586.7018f7b6.css → chunk-5f4b374c.7b717a3a.css} +1 -1
  9. package/dist/css/chunk-5f4b374c.7b717a3a.css.gz +0 -0
  10. package/dist/css/lang-package~4e34e71e.20d5c1cf.css +11 -0
  11. package/dist/css/lang-package~4e34e71e.20d5c1cf.css.gz +0 -0
  12. package/dist/css/lang-zh-TW-service~f63b1681.ae14bf9e.css +1 -0
  13. package/dist/css/lang-zh-TW-service~f63b1681.ae14bf9e.css.gz +0 -0
  14. package/dist/index.html +1 -1
  15. package/dist/js/app~f075b844.c63f49e6.js +1 -0
  16. package/dist/js/app~f075b844.c63f49e6.js.gz +0 -0
  17. package/dist/js/{chunk-03e1387e.4b04328b.js → chunk-03e1387e.b54aa7be.js} +1 -1
  18. package/dist/js/chunk-03e1387e.b54aa7be.js.gz +0 -0
  19. package/dist/js/chunk-1b5a347c.1668b912.js +1 -0
  20. package/dist/js/chunk-1b5a347c.1668b912.js.gz +0 -0
  21. package/dist/js/chunk-286b8764.4b8918c0.js +1 -0
  22. package/dist/js/chunk-286b8764.4b8918c0.js.gz +0 -0
  23. package/dist/js/chunk-452aba94.dbd0bfb2.js +1 -0
  24. package/dist/js/chunk-452aba94.dbd0bfb2.js.gz +0 -0
  25. package/dist/js/chunk-5f214972.19f21b30.js +1 -0
  26. package/dist/js/chunk-5f214972.19f21b30.js.gz +0 -0
  27. package/dist/js/chunk-5f4b374c.061b86cf.js +1 -0
  28. package/dist/js/chunk-5f4b374c.061b86cf.js.gz +0 -0
  29. package/dist/js/lang-ar-EG~31ecd969.6b49e02d.js +3 -0
  30. package/dist/js/lang-ar-EG~31ecd969.6b49e02d.js.gz +0 -0
  31. package/dist/js/{lang-bn-BD~ede72586.d8f682d7.js → lang-bn-BD~ede72586.3e0972ac.js} +1 -1
  32. package/dist/js/lang-bn-BD~ede72586.3e0972ac.js.gz +0 -0
  33. package/dist/js/lang-en-US~31ecd969.03513bfc.js +3 -0
  34. package/dist/js/lang-en-US~31ecd969.03513bfc.js.gz +0 -0
  35. package/dist/js/lang-ko-KR~31ecd969.b239f513.js +1 -0
  36. package/dist/js/lang-ko-KR~31ecd969.b239f513.js.gz +0 -0
  37. package/dist/js/lang-ms-MY~d756050e.cc1e7d5c.js +1 -0
  38. package/dist/js/lang-ms-MY~d756050e.cc1e7d5c.js.gz +0 -0
  39. package/dist/js/lang-package~4e34e71e.a62f5d47.js +11 -0
  40. package/dist/js/lang-package~4e34e71e.a62f5d47.js.gz +0 -0
  41. package/dist/js/lang-zh-TW-service~f63b1681.8d266d29.js +1 -0
  42. package/dist/js/lang-zh-TW-service~f63b1681.8d266d29.js.gz +0 -0
  43. package/dist/js/lang-zh-TW~31ecd969.f4885c13.js +1 -0
  44. package/dist/js/lang-zh-TW~31ecd969.f4885c13.js.gz +0 -0
  45. package/package.json +1 -1
  46. package/dist/css/chunk-3d9ea586.7018f7b6.css.gz +0 -0
  47. package/dist/css/chunk-d1be4e4e.92001723.css +0 -1
  48. package/dist/css/chunk-d342f96e.2df35275.css +0 -1
  49. package/dist/css/chunk-d342f96e.2df35275.css.gz +0 -0
  50. package/dist/css/chunk-e8ed6cd8.dc870859.css +0 -1
  51. package/dist/css/chunk-e8ed6cd8.dc870859.css.gz +0 -0
  52. package/dist/css/lang-package~4e34e71e.498f36e8.css +0 -11
  53. package/dist/css/lang-package~4e34e71e.498f36e8.css.gz +0 -0
  54. package/dist/css/lang-zh-TW-service~f63b1681.9e252d4f.css +0 -1
  55. package/dist/js/app~f075b844.762c7d68.js +0 -1
  56. package/dist/js/app~f075b844.762c7d68.js.gz +0 -0
  57. package/dist/js/chunk-03e1387e.4b04328b.js.gz +0 -0
  58. package/dist/js/chunk-3d9ea586.046cd80a.js +0 -1
  59. package/dist/js/chunk-3d9ea586.046cd80a.js.gz +0 -0
  60. package/dist/js/chunk-740ee510.45aa7c65.js +0 -1
  61. package/dist/js/chunk-740ee510.45aa7c65.js.gz +0 -0
  62. package/dist/js/chunk-d1be4e4e.87d6317e.js +0 -1
  63. package/dist/js/chunk-d1be4e4e.87d6317e.js.gz +0 -0
  64. package/dist/js/chunk-d342f96e.db5374e2.js +0 -1
  65. package/dist/js/chunk-d342f96e.db5374e2.js.gz +0 -0
  66. package/dist/js/chunk-e8ed6cd8.397afde3.js +0 -1
  67. package/dist/js/chunk-e8ed6cd8.397afde3.js.gz +0 -0
  68. package/dist/js/lang-ar-EG~31ecd969.179391ca.js +0 -3
  69. package/dist/js/lang-ar-EG~31ecd969.179391ca.js.gz +0 -0
  70. package/dist/js/lang-bn-BD~ede72586.d8f682d7.js.gz +0 -0
  71. package/dist/js/lang-en-US~31ecd969.add412e4.js +0 -3
  72. package/dist/js/lang-en-US~31ecd969.add412e4.js.gz +0 -0
  73. package/dist/js/lang-ko-KR~31ecd969.80ec8049.js +0 -1
  74. package/dist/js/lang-ko-KR~31ecd969.80ec8049.js.gz +0 -0
  75. package/dist/js/lang-ms-MY~d756050e.c183660f.js +0 -1
  76. package/dist/js/lang-ms-MY~d756050e.c183660f.js.gz +0 -0
  77. package/dist/js/lang-package~4e34e71e.3bfe310a.js +0 -11
  78. package/dist/js/lang-package~4e34e71e.3bfe310a.js.gz +0 -0
  79. package/dist/js/lang-zh-TW-service~f63b1681.8c9ac83c.js +0 -1
  80. package/dist/js/lang-zh-TW-service~f63b1681.8c9ac83c.js.gz +0 -0
  81. package/dist/js/lang-zh-TW~31ecd969.b2b5dab8.js +0 -1
  82. package/dist/js/lang-zh-TW~31ecd969.b2b5dab8.js.gz +0 -0
  83. /package/dist/css/{chunk-740ee510.0cf9cd87.css → chunk-5f214972.0cf9cd87.css} +0 -0
  84. /package/dist/css/{chunk-vendors~db456615.9413bf95.css → chunk-vendors~db456615.5a096447.css} +0 -0
  85. /package/dist/css/{chunk-vendors~db456615.9413bf95.css.gz → chunk-vendors~db456615.5a096447.css.gz} +0 -0
@@ -1 +0,0 @@
1
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-d342f96e"],{"0280":function(t,e,a){"use strict";a.r(e);a("b0c0");var i=function(){var t=this,e=t._self._c;return e("span",{staticClass:"yahooPath"},[e("a-icon",{attrs:{type:"plus"},on:{click:t.openPathList}}),e("ant-modal",{attrs:{visible:t.show,"modal-title":t.formTitle,"adjust-size":!0,modalHeight:t.isMobile?"80vh":"680",modalWidth:t.isMobile?"100vw":"900"},on:{cancel:t.cancelPathList,ok:t.cancelPathList}},[e("div",{attrs:{slot:"content"},slot:"content"},[e("div",[e("a-button",{on:{click:t.openFormInit}},[t._v(t._s(t.$t("components.yahooPathAdd.addbtn")))])],1),t.pathList?e("a-tree",{attrs:{replaceFields:{title:"name",key:"page_key",slot:"title",display:"display",hidden_page_flag:"hidden_page_flag",parentName:"parentName",parent_page_key:"parent_page_key"},treeData:t.pathList,loadedKeys:t.loadKeys,blockNode:!0,loadData:t.loadPath},on:{expand:t.expandNode},scopedSlots:t._u([{key:"title",fn:function(a,i){return[e("div",{staticClass:"pageKeyItem",staticStyle:{color:"#000",display:"flex","align-items":"center"}},[t._v(" "+t._s(a.name)+" "),e("a-icon",{staticStyle:{"margin-left":"15px"},attrs:{type:"edit"},on:{click:function(e){return t.handleUpdate({page_key:a.page_key,name:a.name,display:a.display,parent_page_key:a.parent_page_key,hidden_flag:a.hidden_page_flag,parentName:a.parentName},a,i)}}})],1)]}}],null,!1,2555784184)}):t._e()],1),e("div",{attrs:{slot:"footer"},slot:"footer"},[e("a-button",{on:{click:t.cancelPathList}},[t._v(t._s(t.$t("view.test.list.form.button.cancel")))])],1)]),e("ant-modal",{attrs:{visible:t.open,"modal-title":t.formTitle1,"adjust-size":!0,modalHeight:t.isMobile?"80vh":"680",modalWidth:t.isMobile?"100vw":"900"},on:{cancel:t.cancelForm,ok:t.ok}},[e("div",{attrs:{slot:"content"},slot:"content"},[e("a-form",[e("a-form-item",{attrs:{label:t.$t("components.yahooPathAdd.form.name")}},[e("a-input",{attrs:{placeholder:""},model:{value:t.form.name,callback:function(e){t.$set(t.form,"name",e)},expression:"form.name"}})],1),e("a-form-item",{attrs:{label:t.$t("components.yahooPathAdd.form.display")}},[e("a-select",{model:{value:t.form.display,callback:function(e){t.$set(t.form,"display",e)},expression:"form.display"}},[e("a-select-option",{attrs:{value:"0"}},[t._v("私有")]),e("a-select-option",{attrs:{value:"1"}},[t._v("共有")])],1)],1),e("a-form-item",{attrs:{label:t.$t("components.yahooPathAdd.form.hiddenFlag")}},[e("a-select",{model:{value:t.form.hidden_flag,callback:function(e){t.$set(t.form,"hidden_flag",e)},expression:"form.hidden_flag"}},[e("a-select-option",{attrs:{value:"0"}},[t._v("普通页面")]),e("a-select-option",{attrs:{value:"1"}},[t._v("隐藏页面")])],1)],1),e("a-form-item",{attrs:{label:t.$t("components.yahooPathAdd.form.parentPageKey")}},[e("div",{attrs:{color:{color:t.form.page_key?"#ccc":"#000"}},on:{click:t.openPathSelect}},[e("a-icon",{attrs:{type:"plus"}}),t._v(t._s(t.parentName)+" ")],1)])],1)],1)]),e("ant-modal",{attrs:{visible:t.visable,"modal-title":t.formTitle2,"adjust-size":!0,modalHeight:t.isMobile?"80vh":"680",modalWidth:t.isMobile?"100vw":"900"},on:{cancel:t.cancelPathSelect,ok:t.cancelPathSelect}},[e("div",{attrs:{slot:"content"},slot:"content"},[t.pathList?e("a-tree",{attrs:{replaceFields:{title:"name",key:"page_key",slot:"title"},treeData:t.pathList,loadedKeys:t.loadKeys,loadData:t.loadPath,checkable:"",checkStrictly:!0,checkedKeys:t.pathKeys},on:{check:t.onCheck},scopedSlots:t._u([{key:"title",fn:function(a){var i=a.name;return[e("div",{staticClass:"pageKeyItem",staticStyle:{color:"#000",display:"flex","align-items":"center"}},[t._v(" "+t._s(i)+" ")])]}}],null,!1,1425135114)}):t._e()],1),e("div",{attrs:{slot:"footer"},slot:"footer"},[e("a-button",{on:{click:t.cancelPathSelect}},[t._v(t._s(t.$t("view.test.list.form.button.cancel")))])],1)])],1)},o=[],r=a("5530"),s=a("c7eb"),n=a("1da1"),l=a("2909"),c=(a("d81d"),a("99af"),a("2dd7")),d=a("dcb0"),u=a("2f62"),p={name:"yahooPathAdd",components:{AntModal:c["default"]},data:function(){return{open:!1,pathList:[],form:{},visable:!1,show:!1,pathKeys:[],loadKeys:[],parentName:""}},computed:Object(r["a"])({},Object(u["c"])(["shopId","isMobile"])),props:{sellerId:{type:String,default:""}},created:function(){this.formTitle=this.$t("components.yahooPathAdd.form.name"),this.formTitle1=this.$t("components.yahooPathAdd.form.name.add.title"),this.formTitle2=this.$t("components.yahooPathAdd.form.name.select.title"),this.getPathList()},methods:{openAddForm:function(){this.open=!0},cancelForm:function(){this.open=!1},openPathList:function(){this.show=!0},cancelPathList:function(){this.show=!1},getPathList:function(t,e){var a=this,i={seller_id:this.sellerId};return t&&(i.page_key=t),Object(d["j"])(i).then((function(i){return i.data.results&&i.data.results.length>0?i.data.results?(i.data.results.map((function(a){a.title&&(a.label=a.name,a.isLeaf=!1),a.isLeaf=!1,a.label=a.name,a.parentName=e,t&&(a.parent_page_key=t)})),"0"!==i.data.total_results_available?t?i.data.results:(a.pathList=Object(l["a"])(i.data.results),a.pathList):[]):void 0:null}))},loadPath:function(t,e){var a=this;return Object(n["a"])(Object(s["a"])().mark((function e(){var i;return Object(s["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return a.loadKeys.push(t.eventKey),a.parentName=t.label,e.next=4,a.getPathList(t.eventKey,t.label);case 4:i=e.sent,i&&i.length&&(t.dataRef.children=i),a.pathList=Object(l["a"])(a.pathList);case 7:case"end":return e.stop()}}),e)})))()},loadEvent:function(t){},onCheck:function(t,e){t.checked.length?this.pathKeys=[t.checked[t.checked.length-1]]:this.pathKeys=[],this.pathKeys.length?this.form.parent_page_key=this.pathKeys[0]:this.form.parent_page_key="",this.parentName=e.node.label},handleUpdate:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.form=t,this.pathKeys=[],this.parentName=t.parentName,this.formTitle1=this.$t("components.yahooPathAdd.form.name.edit.title",{name:t.name}),this.openAddForm()},expandNode:function(t){var e=[];t.map((function(t){e.push(t)})),this.loadKeys=[].concat(e)},ok:function(){var t=this;this.form.seller_id=this.sellerId,Object(d["h"])(this.form).then((function(e){0===e.code&&(t.$message.success(t.$t("components.yahooPathAdd.success")),t.$emit("ok"),t.loadKeys=[],t.pathKeys=[],t.getPathList())}))},openPathSelect:function(){this.form.page_key||(this.visable=!0)},cancelPathSelect:function(){this.visable=!1},openFormInit:function(){this.parentName="",this.form=Object.assign({},{seller_id:this.sellerId}),this.pathKeys=[],this.formTitle1=this.$t("components.yahooPathAdd.form.name.add.title"),this.openAddForm()}}},m=Object(r["a"])({},p),h=m,_=(a("5ea1"),a("2877")),v=Object(_["a"])(h,i,o,!1,null,null,null);e["default"]=v.exports},"0c6d":function(t,e,a){"use strict";a.r(e);var i=function(){var t=this,e=t._self._c;return e("span",[t.complaint?e("a-button",{attrs:{type:"link"},on:{click:t.openModal}},[t._v(t._s(t.workOrderId?t.$t("view.workOrder.handle.button"):t.$t("components.complaint.detail.btn")))]):t._e(),e("ant-modal",{attrs:{visible:t.open,"modal-title":t.formTitle,"adjust-size":!0,modalHeight:t.isMobile?"500":"580",modalWidth:t.isMobile?"600":"800"},on:{cancel:t.cancel}},[t.complaint&&t.open?e("div",{attrs:{slot:"content"},slot:"content"},[t.orderDetailModal?e("order-detail",{ref:"OrderDetail",on:{close:function(e){t.orderDetailModal=!1}}}):t._e(),e("previewImg",{attrs:{previewVisible:t.previewImgShow,previewImage:t.preImg},on:{"update:previewVisible":function(e){t.previewImgShow=e},"update:preview-visible":function(e){t.previewImgShow=e}}}),e("a-form",{attrs:{"label-col":t.labelCol,"wrapper-col":t.wrapperCol},model:{value:t.complaint,callback:function(e){t.complaint=e},expression:"complaint"}},[t.workOrderList&&t.workOrderList.length>1?e("a-form-item",{attrs:{label:t.$t("components.complaint.detail.currentWorkOrder"),prop:"work_order_id"}},[e("a-select",{staticStyle:{width:"100%"},attrs:{"default-value":t.complaint.work_order_id},on:{change:t.switchWorkOrder}},t._l(t.workOrderList,(function(a){return e("a-select-option",{key:a.work_order_id,attrs:{value:a.work_order_id}},[t._v(t._s(a.details))])})),1)],1):t._e(),2==t.complaint.work_order_type&&t.complaint.complaint_ref_id&&1==t.shop_id?e("a-form-item",{attrs:{label:t.$t("procure.list.order.order_id"),prop:"faq_id"}},[e("a",{on:{click:function(e){return t.handleOrderDetail()}}},[t._v(t._s(t.complaint.complaint_ref_id))])]):t._e(),3==t.complaint.work_order_type&&t.complaint.complaint_ref_id&&1==t.shop_id?e("a-form-item",{attrs:{label:t.$t("view.supply.list.order.id"),prop:"faq_id"}},[e("a",{on:{click:function(e){return t.handleOrderDetail()}}},[t._v(t._s(t.complaint.complaint_ref_id))])]):t._e(),e("a-form-item",{attrs:{label:t.$t("components.complaint.faqId"),prop:"faq_id"}},[e("faqType",{attrs:{value:t.complaint.faq_id,disabled:""},on:{"update:value":function(e){return t.$set(t.complaint,"faq_id",e)}}})],1),e("a-form-item",{attrs:{label:t.$t("components.complaint.detailImages"),prop:"detail_images"}},[e("div",{staticStyle:{display:"flex","flex-wrap":"wrap"}},[t.complaint.detail_image_1?e("img",{staticStyle:{height:"80px","margin-right":"10px","margin-bottom":"10px",cursor:"pointer"},attrs:{src:t.complaint.detail_image_1},on:{click:function(e){return t.previewImage(t.complaint.detail_image_1)}}}):t._e(),t.complaint.detail_image_2?e("img",{staticStyle:{height:"80px","margin-right":"10px","margin-bottom":"10px",cursor:"pointer"},attrs:{src:t.complaint.detail_image_2},on:{click:function(e){return t.previewImage(t.complaint.detail_image_2)}}}):t._e(),t.complaint.detail_image_3?e("img",{staticStyle:{height:"80px","margin-right":"10px","margin-bottom":"10px",cursor:"pointer"},attrs:{src:t.complaint.detail_image_3},on:{click:function(e){return t.previewImage(t.complaint.detail_image_3)}}}):t._e(),t.complaint.detail_image_4?e("img",{staticStyle:{height:"80px","margin-right":"10px","margin-bottom":"10px",cursor:"pointer"},attrs:{src:t.complaint.detail_image_4},on:{click:function(e){return t.previewImage(t.complaint.detail_image_4)}}}):t._e(),t.complaint.detail_image_5?e("img",{staticStyle:{height:"80px","margin-right":"10px","margin-bottom":"10px",cursor:"pointer"},attrs:{src:t.complaint.detail_image_5},on:{click:function(e){return t.previewImage(t.complaint.detail_image_5)}}}):t._e()])]),e("a-form-item",{attrs:{label:t.$t("components.complaint.details"),prop:"details"}},[e("div",{staticStyle:{width:"100%"}},[e("div",{staticStyle:{"min-height":"32px","word-break":"break-word",display:"flex","align-content":"center","align-items":"center","flex-wrap":"wrap"}},[t._v(" "+t._s(t.complaint.details)+" ")])])]),t.complaint.results?e("div",{staticStyle:{"margin-bottom":"20px"}},[e("a-list",{attrs:{"item-layout":"horizontal","data-source":t.complaint.results},scopedSlots:t._u([{key:"renderItem",fn:function(a,i){return e("a-list-item",{},[e("a-list-item-meta",[e("div",{attrs:{slot:"title"},slot:"title"},[e("div",{key:i,style:{display:"flex",justifyContent:"space-between",paddingTop:"15px",borderTop:0===i?" 1px solid #e8e8e8":"0"}},[e("div",[e("supply-info",{attrs:{shopId:a.shop_id===t.complaint.executor_shop_id?t.complaint.executor_shop_id:t.complaint.executee_shop_id}})],1),e("div",[e("div",[t._v(t._s(a.create_time))])])])]),e("div",{attrs:{slot:"description"},slot:"description"},[e("div",{domProps:{innerHTML:t._s(a.execution_result)}})])])],1)}}],null,!1,2466928742)})],1):t._e(),t.complaint&&t.complaint.status?e("a-form-item",{attrs:{label:t.$t("components.complaint.status"),prop:"status"}},[e("div",{staticStyle:{"text-align":"right","margin-bottom":"10px","min-height":"32px","word-break":"break-word",display:"flex","align-content":"center","align-items":"center","flex-wrap":"wrap"}},[e("span",{staticStyle:{"margin-right":"10px"}},[t._v(" "+t._s(t.$t("WorkOrder."+t.complaint.status)))]),"FINISHED"!=t.complaint.status?e("endingWorkOrder",{attrs:{workOrderId:t.complaint.work_order_id},on:{refresh:t.openModal}}):t._e()],1)]):t._e(),t.complaint&&"FINISHED"!=t.complaint.status?e("div",[e("commitWorkOrder",{ref:"commitWorkOrder",attrs:{isFormBtn:!1,workOrderId:t.complaint.work_order_id},on:{ok:t.openModal}})],1):t._e()],1)],1):t._e(),e("div",{attrs:{slot:"footer"},slot:"footer"},[e("a-button",{on:{click:t.cancel}},[t._v(t._s(t.$t("components.complaint.detail.cancel")))]),t.complaint&&"FINISHED"!=t.complaint.status?e("a-button",{attrs:{type:"primary"},on:{click:t.submit}},[t._v(t._s(t.$t("view.workorder.handle.submit")))]):t._e()],1)])],1)},o=[],r=a("5530"),s=(a("d3b7"),a("3ca3"),a("ddb0"),a("4de4"),a("255f")),n=a("2dd7"),l=a("2f62"),c=a("a026"),d=a("8eb3"),u=a("0a56"),p=Object(c["b"])((function(){return a.e("chunk-03e1387e").then(a.bind(null,"7bb9"))})),m=Object(c["b"])((function(){return a.e("lang-zh-TW-service~f63b1681").then(a.bind(null,"95fb"))})),h=Object(c["b"])((function(){return Promise.all([a.e("lang-package~4e34e71e"),a.e("chunk-fa04ce72")]).then(a.bind(null,"c03e"))})),_=Object(c["b"])((function(){return a.e("chunk-d1be4e4e").then(a.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=a("2877"),y=Object(k["a"])(g,i,o,!1,null,null,null);e["default"]=y.exports},"23bd":function(t,e,a){},"270e":function(t,e,a){"use strict";a.r(e);a("b0c0");var i=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(a,i){return e("a-select-option",{key:i,attrs:{value:a.id}},[t._v(" "+t._s(a.name)+" - "+t._s(a.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(a,i){return e("a-select-option",{key:i,attrs:{value:a.id}},[t._v(" "+t._s(a.id)+" - "+t._s(a.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(a,i){return e("a-select-opt-group",{key:i},[e("span",{attrs:{slot:"label"},slot:"label"},[e("a-icon",{attrs:{type:"user"}}),t._v(t._s(a.key))],1),t._l(a.option,(function(a,i){return e("a-select-option",{key:i,attrs:{value:a.key}},[t._v(" "+t._s(a.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(a,i){return"yahoo"==t.platform&&"1028"!=a.value?e("a-select-option",{key:i,attrs:{value:a.value}},[t._v(" "+t._s(a.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(a,i){return e("a-select-option",{key:i,attrs:{value:a.value}},[t._v(" "+t._s(a.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(a,i){return t.rakutenSdataSkuList?e("tr",{key:i},[e("td",[t._v(" "+t._s(a.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:a.delivery_company,callback:function(e){t.$set(a,"delivery_company",e)},expression:"item.delivery_company"}},t._l(t.rakutenDeliveryCompany,(function(a,i){return e("a-select-option",{key:i,attrs:{value:a.value}},[t._v(t._s(a.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:a.shipping_number,callback:function(e){t.$set(a,"shipping_number",e)},expression:"item.shipping_number"}})],1)])])])]),e("td",t._l(a.item,(function(i,o){return a.item?e("a-row",{key:o},[e("a-col",{staticStyle:{"text-align":"left"}},[t._v(t._s(i.title))]),e("a-col",{staticStyle:{"text-align":"left","margin-top":"5px"}},[t._v(t._s(i.sku_prop)+" X "+t._s(i.shipping_num))])],1):t._e()})),1)]):t._e()})),0)])])],1)],1):t._e()],1):t._e()])},o=[],r=(a("a9e3"),a("d3b7"),a("159b"),a("7db0"),a("296e")),s=a("1b6c"),n=a("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,a;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!==(a=this.order.sdata)&&void 0!==a&&a.warehouse_id&&(this.order.warehouse_id=this.order.sdata.warehouse_id),this.shopSelect(this.order.from_shop_id);break;case"rakuten":var i=JSON.parse(this.order.sdata),o=[];i.PackageModelList.forEach((function(t){var e={};e.basketId=t.basketId,e.item=[],t.ItemModelList.forEach((function(t){if(t.SkuModelList.length)var a=t.SkuModelList[0].variantId;e.item.push({title:t.itemName,sku_prop:a,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(a){for(var i=a.list,o=0;o<i.length;o++){var r=i[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 a={basketId:"",ShippingModelList:[]};a.basketId=e.basketId,a.ShippingModelList.push({deliveryCompany:e.delivery_company,shippingNumber:e.shipping_number}),t.push(a)}));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 a={};a.tiktok_shop_id=t,Object(r["d"])(a).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 a,i;0===e.code&&((null===(a=e.data)||void 0===a||null===(i=a.delivery_options)||void 0===i?void 0:i.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 a,i;0===e.code&&((null===(a=e.data)||void 0===a||null===(i=a.shipping_providers)||void 0===i?void 0:i.length)>0&&(t.shops_delivery_option=e.data.shipping_providers))}))},selectShopsDeliveryOption:function(t,e){var a=this.shops_delivery_option.find((function(e){return e.id===t}));this.form.shipping_providers_id=a.id,this.form.tracking_name=a.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=(a("5d54"),a("2877")),u=Object(d["a"])(c,i,o,!1,null,null,null);e["default"]=u.exports},"2ab0":function(t,e,a){},"3b1b":function(t,e,a){"use strict";a.r(e);a("b0c0");var i=function(){var t=this,e=t._self._c;return e("div",[e("a-card",{staticClass:"orderList",staticStyle:{"margin-bottom":"10px"},attrs:{bordered:!1}},[e("div",{ref:"search",staticClass:"table-page-search-wrapper"},[e("a-form",{attrs:{labelCol:t.labelCol,wrapperCol:t.wrapperCol}},[e("a-row",{attrs:{gutter: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(a,i){return e("a-select-option",{key:i,attrs:{value:a.value}},[t._v(t._s(a.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,a){return t.$t("view.order.list.table.total",{num:a[0]+"-"+a[1],total:e})},onChange:t.changeSize,onShowSizeChange:t.onShowSizeChange},scroll:{x:"100%"},title:" "},scopedSlots:t._u([{key:"order_id",fn:function(a){var i=a.text,o=a.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(i)+" ")]),e("copyText",{attrs:{text:i,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(),e("dispath-note",{staticStyle:{display:"none"},attrs:{order:o}})],1)}},{key:"order_item",fn:function(a){var i=a.text,o=a.record;return e("span",{},t._l(i,(function(a,r){return e("div",{key:a.sku_id,staticStyle:{display:"flex","margin-bottom":"10px"}},[e("div",[e("a-avatar",{attrs:{shape:"square",size:85,src:a.img_url},on:{click:function(e){return t.openItem(a)}}}),1==t.shopId?e("div",{staticStyle:{"margin-top":"0.5rem"}},[e("a-tag",{attrs:{color:2==a.mailing_mode?"red":"green"}},[1===t.shopId?e("div",[2==a.mailing_mode?e("div",[t._v(" "+t._s(t.$t("view.item.component.item.supply.shippingConfig.myself"))+" ")]):t._e(),1==a.mailing_mode?e("div",[t._v(" "+t._s(t.$t("view.item.component.item.supply.shippingConfig.platform"))+" ")]):t._e(),0==a.mailing_mode?e("div",[t._v(" "+t._s(t.$t("view.item.component.item.supply.shippingConfig.platform"))+" ")]):t._e()]):t._e(),1!==t.shopId?e("div",[2==a.mailing_mode?e("div",[t._v(" "+t._s(t.$t("view.item.component.item.supply.shippingConfig.myself1"))+" ")]):t._e(),1==a.mailing_mode?e("div",[t._v(" "+t._s(t.$t("view.item.component.item.supply.shippingConfig.platform1"))+" ")]):t._e(),0==a.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(a)}}},[t._v(" "+t._s(a.title)+" ")])])],1),e("a-row",{attrs:{type:"flex"}},[e("a-col",[t._v(" "+t._s(o.currency)+" "+t._s(a.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(a.num)+" ")],1),e("a-col",{staticStyle:{"padding-left":"5px"}},[a.activity_info&&a.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(a.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 a.sku_prop?e("span",[t._v(" "+t._s(a.sku_prop)+" ")]):e("span",t._l(a.sku_prop,(function(a,i){return e("div",{key:i},[e("span",[t._v(t._s(i)+":"+t._s(a))])])})),0)])],1),e("a-row",[e("a-col",{attrs:{flex:3}},[t._v(" "+t._s(t.$t("view.item.sku.barcode"))+" : "+t._s(a.barcode)+" ")]),e("a-col",{attrs:{flex:3}},[t._v(" "+t._s(t.$t("view.item.sku.out_id"))+" : "),e("a",{on:{click:function(e){return t.handleStockAdd(a)}}},[t._v(" "+t._s(a.out_id))]),e("skuConv",{attrs:{fromPlatform:o.from_id,outId:a.out_id}})],1),e("a-col",{attrs:{flex:3}},[a.stock_log?t._e():e("div",[t._v(" "+t._s(t.$t("view.order.koujian.kucun"))+" : "),e("a-button",{directives:[{name:"show",rawName:"v-show",value:"ORDER_WAIT_SHIP"===o.status,expression:"record.status === 'ORDER_WAIT_SHIP'"}],attrs:{type:"primary"},on:{click:function(e){return t.handleKoujian(o.order_id)}}},[t._v(" "+t._s(t.$t("扣减"))+" ")])],1),a.stock_log?e("div",[t._v(" "+t._s(t.$t("view.order.target.wareHouse"))+" : "),a.stock_log?e("wareHouseInfo",{attrs:{isTag:!0,warehouseId:a.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:a.sku_id,orderId:o.order_id},on:{ok:t.getList}}):t._e()],1):t._e()]),a.stock_log?e("a-col",{attrs:{flex:3}},[e("div",[e("webHookInfo",{attrs:{orderId:o.order_id,orderStatus:o.status,wareHouseId:a.stock_log.warehouse_id}})],1)]):t._e()],1),r<i.length-1?e("a-divider"):t._e()],1)])})),0)}},{key:"payment",fn:function(a){var i=a.text,o=a.record;return e("span",{},[""===o.from_id?e("a-row",[e("a-col",{attrs:{lg:24}},[t._v(" "+t._s(t.$t("view.order.list.biaojiahuobi"))+" : "+t._s(t.shopQuoteCurrency)+" "+t._s(i)+" ")]),e("a-col",{attrs:{lg:24}},[t._v(" "+t._s(t.$t("view.order.list.payhuobiprice"))+" : "+t._s(o.trans_currency)+" "+t._s(o.trans_amount)+" ")])],1):t._e(),""!==o.from_id?e("a-row",[e("a-col",{attrs:{lg:24}},[t._v(" "+t._s(o.currency)+" "+t._s(i)+" ")])],1):t._e()],1)}},{key:"status",fn:function(a){var i=a.text;return e("span",{},[e("div",[t._v(" "+t._s(t.$t(i))+" ")])])}},{key:"paymemberInfo",fn:function(a){var i=a.record;return e("span",{},[e("a-row",[i?e("a-col",{attrs:{lg:24}},[t._v(" "+t._s(t.$t("view.gangwei.list.realname"))+" : "+t._s(i.last_name||"")+" "+t._s(i.first_name||"")+" "),!i.member_id||"purchase"!=i.from_id&&"handlePay"!=i.from_id&&""!=i.from_id?t._e():e("message",{staticStyle:{display:"inline-block","margin-left":"5px"},attrs:{memberId:i.member_id}})],1):t._e(),i.phone&&""!=i.phone?e("a-col",{attrs:{lg:24}},[t._v(" "+t._s(t.$t("view.order.detail.ship_phone"))+" : "+t._s(i.phone)+" ")]):t._e(),e("a-col",{attrs:{lg:24}},[t._v(" "+t._s(t.$t("view.order.detail.ship_country"))+" : "+t._s(t.$t(i.country))+" ")]),e("a-col",{attrs:{lg:24}},[t._v(" "+t._s(t.$t("view.order.detail.ship_state"))+" : "+t._s(i.state)+" ")]),i.city?e("a-col",{attrs:{lg:24}},[t._v(" "+t._s(t.$t("view.order.detail.ship_city"))+" : "+t._s(i.city)+" ")]):t._e(),i.street?e("a-col",{attrs:{lg:24}},[t._v(" "+t._s(t.$t("view.order.detail.ship_street"))+" : "+t._s(i.street)+" ")]):t._e(),i.apartment?e("a-col",{attrs:{lg:24}},[t._v(" "+t._s(t.$t("view.order.detail.ship_men"))+" : "+t._s(i.apartment)+" ")]):t._e(),i.zip_code?e("a-col",{attrs:{lg:24}},[t._v(" "+t._s(t.$t("view.order.detail.zipcode"))+" : "+t._s(i.zip_code)+" ")]):t._e(),e("a-col",{attrs:{lg:24}},[t._v(" "+t._s(t.$t("view.order.detail.memberNote"))+" : "+t._s(i.member_note)+" ")]),e("a-col",{attrs:{lg:24}},[e("a-button",{directives:[{name:"show",rawName:"v-show",value:"ORDER_WAIT_SHIP"===i.status,expression:"record.status === 'ORDER_WAIT_SHIP'"}],attrs:{type:"primary"},on:{click:function(e){return t.handleModifyShipping(i)}}},[t._v(" "+t._s(t.$t("view.system.resourcegroup.Update"))+" ")])],1)],1)],1)}},{key:"operation",fn:function(a){var i=a.record;return e("span",{},[e("a",{on:{click:function(e){return t.handleReview(i)}}},[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(i)}}},[t._v(" "+t._s(t.$t("view.order.list.insure.btn"))+" ")])],1),e("span",{directives:[{name:"show",rawName:"v-show",value:"ORDER_WAIT_PAYMENT"===i.status||"ORDER_PART_PAID"===i.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(i,!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"===i.status||"ORDER_PART_PAID"===i.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.handleCloseOrder(i,!1)}}},[t._v(" "+t._s(t.$t("view.order.list.closeOrder"))+" ")])],1),e("span",{directives:[{name:"show",rawName:"v-show",value:"ORDER_WAIT_PAYMENT"!==i.status&&"ORDER_PART_PAID"!==i.status&&"handlePay"===i.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(i,!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"===i.status,expression:"record.status === 'ORDER_WAIT_SHIP'"}]},[e("a-divider",{attrs:{type:"vertical"}}),e("a",{on:{click:function(e){return t.handleFaHuo(i)}}},[t._v(" "+t._s(t.$t("view.order.list.ship.btn"))+" ")])],1),e("span",{directives:[{name:"show",rawName:"v-show",value:"ORDER_AFTER_SALE"===i.status,expression:"record.status === 'ORDER_AFTER_SALE'"}]},[e("a-divider",{attrs:{type:"vertical"}}),e("a",{on:{click:function(e){return t.handleCancelAfterSales(i)}}},[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"===i.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(i)}}},[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(i)}}},[t._v(t._s(t.$t("view.order.list.reset.push.log")))])],2)],1),e("span",[e("a-divider",{attrs:{type:"vertical"}}),e("a",{on:{click:function(e){return t.pushCaiGou(i)}}},[t._v(t._s(t.$t("component.procure.create.button1")))])],1),e("div",[e("div",{attrs:{title:"订单备注"}},[i.user_note?e("a-tag",{staticStyle:{width:"80%"},attrs:{color:"orange"}},[t._v(t._s(i.user_note))]):t._e()],1),e("order-note",{attrs:{orderId:i.order_id,note:i.user_note},on:{ok:function(e){return t.getList()}}})],1)])}}])},[e("div",{staticClass:"table-operations",attrs:{slot:"button"},slot:"button"},[e("ordersShips",{attrs:{orders:t.selectedRows||[]},on:{ok:t.okShips}})],1)])],1)],1)},o=[],r=a("5530"),s=a("6958"),n=Object(r["a"])({},s["default"]),l=n,c=(a("3dbc"),a("2877")),d=Object(c["a"])(l,i,o,!1,null,null,null);e["default"]=d.exports},"3dbc":function(t,e,a){"use strict";a("8ae7")},5194:function(t,e,a){"use strict";a.r(e);var i=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=a("2877"),l=Object(n["a"])(s,i,o,!1,null,null,null);e["default"]=l.exports},5881:function(t,e,a){"use strict";a.r(e);var i=function(){var t=this,e=t._self._c;return e("a-drawer",{attrs:{width:"750px",placement:"right",closable:!1,visible:t.openView},on:{close:t.onCloseView}},[e("a-descriptions",{staticStyle:{"word-break":"break-all","word-wrap":"break-word"},attrs:{title:"操作信息",layout:"vertical",column:3,bordered:""}},[e("a-descriptions-item",{attrs:{label:"操作模块"}},[t._v(" "+t._s(t.form.module)+" ")]),e("a-descriptions-item",{attrs:{label:"登录信息"}},[t._v(" #"+t._s(t.form.member_id)+" / "+t._s(t.form.member_name)+" / "+t._s(t.form.ip)+" / "+t._s(t.form.region)+" ")]),e("a-descriptions-item",{attrs:{label:"请求方式"}},[t._v(" "+t._s(t.form.method)+" ")]),e("a-descriptions-item",{attrs:{label:"请求地址"}},[t._v(" "+t._s(t.form.url)+" ")]),e("a-descriptions-item",{attrs:{label:"操作方法",span:2}},[e("div",{staticStyle:{"word-break":"break-all"}},[t._v(t._s(t.form.method))])])],1),e("a-divider"),e("a-descriptions",{staticStyle:{"word-break":"break-all","word-wrap":"break-word"},attrs:{title:"接口信息",layout:"vertical",column:3,bordered:""}},[e("a-descriptions-item",{attrs:{label:"请求头部",span:3}},[t._v(" "+t._s(t.form.header_data)+" ")]),e("a-descriptions-item",{attrs:{label:"GET参数",span:3}},[t._v(" "+t._s(t.form.get_data)+" ")]),e("a-descriptions-item",{attrs:{label:"POST参数",span:3}},[t._v(" "+t._s(t.form.post_data)+" ")]),e("a-descriptions-item",{attrs:{label:"操作状态"}},[0===t.form.error_code?e("a-badge",{attrs:{status:"processing",text:"正常"}}):t._e(),0!==t.form.error_code?e("a-badge",{attrs:{status:"error",text:"失败"}}):t._e()],1),e("a-descriptions-item",{attrs:{label:"操作时间"}},[t._v(" "+t._s(t.parseTime(t.form.created_at))+" ")]),e("a-descriptions-item",{attrs:{label:"耗时"}},[t._v(" "+t._s(t.form.take_up_time)+"毫秒 ")]),e("a-descriptions-item",{attrs:{label:"回复信息"}},[t._v(" "+t._s(t.form.error_msg)+" ")]),0!==t.form.error_code?e("a-descriptions-item",{attrs:{label:"报错日志"}},[t._v(" "+t._s(t.form.error_data)+" ")]):t._e()],1),null!==t.form.logContent?e("a-divider"):t._e(),null!==t.form.logContent?e("a-descriptions",{staticStyle:{"word-break":"break-all","word-wrap":"break-word"},attrs:{title:"变更记录",layout:"vertical",column:3,bordered:""}},[e("a-descriptions-item",{attrs:{label:"请求ID",span:3}},[t._v(" "+t._s(t.form.req_id)+" ")]),e("a-descriptions-item",{attrs:{label:"变更情况",span:3}},[t._v(" 无 ")])],1):t._e()],1)},o=[],r={name:"ViewForm",props:{},data:function(){return{form:{},openView:!1}},filters:{},created:function(){},computed:{},watch:{},methods:{handleView:function(t){this.openView=!0,this.form=t},onCloseView:function(){this.openView=!1}}},s=r,n=a("2877"),l=Object(n["a"])(s,i,o,!1,null,null,null);e["default"]=l.exports},"5d54":function(t,e,a){"use strict";a("a32b")},"5ea1":function(t,e,a){"use strict";a("a4d4")},"8aac":function(t,e,a){"use strict";a.r(e);a("a9e3"),a("b0c0"),a("d3b7"),a("ddb0"),a("a4d3"),a("e01a");var i=function(){var t=this,e=t._self._c;return e("span",[t.tiktokItemOpen?e("AntModal",{attrs:{visible:t.tiktokItemOpen,"modal-title":t.formTitle,"adjust-size":!0,modalHeight:t.modalHeight,modalWidth:t.modalWidth},on:{cancel:t.cancelModal}},[e("div",{attrs:{slot:"content"},slot:"content"},[e("div",{staticStyle:{display:"none"}},[e("goodsIdList",{attrs:{goodsIds:t.goodsIds,goodsList:t.goodList},on:{"update:goodsList":function(e){t.goodList=e},"update:goods-list":function(e){t.goodList=e},back:t.initTiktok}})],1),e("a-row",{attrs:{type:"flex"}},[e("a-col",{attrs:{lg:2}},[e("leftTabItem",{on:{change:t.changeLeftTab}})],1),e("a-col",{style:{overflowY:"auto",overflowX:"hidden",height:Number(t.modalHeight)-150+"px"},attrs:{lg:21}},[t._l(t.tiktokProductList,(function(a,i){return e("div",{key:i,staticStyle:{"padding-bottom":"1rem"}},[e("div",{staticStyle:{"margin-bottom":"1rem"}},[e("kandengGoodsOne",{attrs:{goodsList:t.goodList,goodsId:i}})],1),"title"===t.formEditKey?e("div",[e("a-row",{attrs:{gutter:24}},[e("a-col",{attrs:{lg:24}},[e("a-form-model-item",{attrs:{label:t.$t("view.item.list.itemTitle"),required:""}},[e("a-input",{staticStyle:{width:"100%"},model:{value:a.title,callback:function(e){t.$set(a,"title",e)},expression:"tiktokGoodInfo.title"}})],1)],1)],1)],1):t._e(),"category"===t.formEditKey?e("div",[e("a-row",{attrs:{gutter:24}},[e("a-col",{attrs:{lg:12}},[t._v(" "+t._s(a.category_id)+" "),e("tiktokGlobalCategory",{ref:"globalCat",refInFor:!0,attrs:{catList:t.tiktokGlobalCategoryList[i],categoryId:a.category_id},on:{"update:categoryId":function(e){return t.$set(a,"category_id",e)},"update:category-id":function(e){return t.$set(a,"category_id",e)},backGlobalCategory:function(e){return t.backGlobalCategory(e,i)}}})],1)],1)],1):t._e(),"brand"===t.formEditKey?e("div",[e("a-form-model-item",{attrs:{label:t.$t("components.dyProduct.dyProduct.bran"),required:""}},[e("a-select",{staticStyle:{width:"30%"},attrs:{disabled:!0},model:{value:a.brand_id,callback:function(e){t.$set(a,"brand_id",e)},expression:"tiktokGoodInfo.brand_id"}},t._l(t.pinPaiList[i],(function(a){return e("a-select-option",{key:a.id,attrs:{title:a.name,value:a.id}},[t._v(" "+t._s(a.name)+" ")])})),1)],1)],1):t._e(),"attribute"===t.formEditKey?e("div",[e("a-collapse",{attrs:{defaultActiveKey:"0"}},[e("a-collapse-panel",{key:"1",staticStyle:{padding:"0px 20px"},attrs:{header:t.$t("components.dyProduct.dyProduct.attributes")}},[e("a-row",{attrs:{gutter:24}},t._l(t.product_attributesList[i],(function(a,o){return e("a-col",{key:a.id+o,attrs:{lg:6}},[a.is_requried?e("a-form-model-item",{attrs:{label:a.name,required:""}},[a.values&&a.values.length?[a.values&&a.values.length&&t.product_attributes[i]&&t.product_attributes[i][o]?e("a-select",{directives:[{name:"decorator",rawName:"v-decorator",value:["attribute"+t.product_attributes[i][o].id,{rules:t.getRules(t.product_attributes[i][o])}],expression:"[\n `attribute` + product_attributes[good_id][index].id,\n { rules: getRules(product_attributes[good_id][index]) },\n ]"}],staticStyle:{width:"100%"},attrs:{optionFilterProp:"title","show-search":""},on:{change:function(e,a){return t.onChangeAttributes(e,a,i,o)},search:function(e){return t.searchAttribute(e,o)},mouseenter:function(e){return t.getValues100(i,o)}},model:{value:t.product_attributes[i][o].values[0].id,callback:function(e){t.$set(t.product_attributes[i][o].values[0],"id",e)},expression:"product_attributes[good_id][index].values[0].id"}},t._l(a.list,(function(i){return a&&a.list?e("a-select-option",{key:i.id,attrs:{title:i.name,value:i.id,text:i.name}},[t._v(" "+t._s(i.name)+" ")]):t._e()})),1):t._e()]:[e("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["attribute"+t.product_attributes[i][o].id,{rules:t.getRules(t.product_attributes[i][o])}],expression:"[\n `attribute` + product_attributes[good_id][index].id,\n { rules: getRules(product_attributes[good_id][index]) },\n ]"}],model:{value:t.product_attributes[i][o].values[0].value,callback:function(e){t.$set(t.product_attributes[i][o].values[0],"value",e)},expression:"product_attributes[good_id][index].values[0].value"}})]],2):e("a-form-model-item",{attrs:{label:a.name}},[a.values&&a.values.length?[a.values&&a.values.length&&t.product_attributes[i][o]&&t.product_attributes[i][o].values[0]?e("a-select",{directives:[{name:"decorator",rawName:"v-decorator",value:["attribute"+t.product_attributes[i][o].id,{rules:t.getRules(t.product_attributes[i][o])}],expression:"[\n `attribute` + product_attributes[good_id][index].id,\n { rules: getRules(product_attributes[good_id][index]) },\n ]"}],staticStyle:{width:"100%"},attrs:{optionFilterProp:"title","show-search":""},on:{change:function(e,a){return t.onChangeAttributes(e,a,i,o)}},model:{value:t.product_attributes[i][o].values[0].id,callback:function(e){t.$set(t.product_attributes[i][o].values[0],"id",e)},expression:"product_attributes[good_id][index].values[0].id"}},t._l(a.values,(function(a){return e("a-select-option",{key:a.id,attrs:{title:a.name,value:a.id,text:a.name}},[t._v(" "+t._s(a.name)+" ")])})),1):t._e()]:[t.product_attributes&&t.product_attributes[i][o]?e("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["attribute"+t.product_attributes[i][o].id,{rules:t.getRules(t.product_attributes[i][o])}],expression:"[\n `attribute` + product_attributes[good_id][index].id,\n { rules: getRules(product_attributes[good_id][index]) },\n ]"}],model:{value:t.product_attributes[i][o].values[0].value,callback:function(e){t.$set(t.product_attributes[i][o].values[0],"value",e)},expression:"product_attributes[good_id][index].values[0].value"}}):t._e()]],2)],1)})),1)],1)],1)],1):t._e(),"image"===t.formEditKey?e("div",[e("a-form-model-item",{attrs:{label:t.$t("view.item.list.itemImage")}},t._l(a.main_images,(function(t,a){return e("a-col",{key:a,attrs:{lg:3}},[e("div",{staticClass:"ant-upload-list-item ant-upload-list-item-done ant-upload-list-item-list-type-picture-card",staticStyle:{height:"100px",width:"95px",padding:"0"}},[e("div",{staticStyle:{height:"100px",width:"95px"}},[e("div",{staticClass:"ant-upload-list-item-info",staticStyle:{height:"80px",width:"95px"}},[e("img",{staticStyle:{height:"80px",width:"95px"},attrs:{src:t.url}})]),e("span",{staticClass:"ant-upload-list-item-actions"})])])])})),1)],1):t._e(),"itemInfo"===t.formEditKey?e("div"):t._e(),"sizeChart"===t.formEditKey?e("div",[a.certifications?e("a-row",{attrs:{gutter:24}},t._l(a.certifications,(function(a,o){return e("a-col",{key:o},[e("a-form-model-item",{attrs:{label:a.name,required:""}}),e("tiktok-attach-upload",{attrs:{shop_cipher:t.tiktokShop.cipher,id:a.id,user_case:"4"},on:{uploadBack:function(e){return t.resetQuery(e,a.id,i)}}})],1)})),1):t._e(),a.size_chart?e("a-row",{attrs:{gutter:24,type:"flex"}},[a.size_chart.image?e("a-col",[e("a-form-model-item",{attrs:{label:t.$t("components.pl.product.sizeChart.image.uri.title"),required:""}},[e("tiktok-attach-upload",{attrs:{shop_cipher:t.tiktokShop.cipher,user_case:"4"},on:{uploadBack:function(e){return t.backSizeChartImage(e,i)}}}),a.size_chart.image.uri?e("div",{staticClass:"check-style-unequal-width"}):t._e()],1)],1):t._e(),a.size_chart.template?e("a-col",{staticStyle:{"line-height":"30px"}},[e("a-form-model-item",{attrs:{label:t.$t("components.pl.product.sizeChart.template.id.title"),required:""}},[e("a-input",{staticStyle:{width:"200px"},attrs:{placeholder:t.$t("components.pl.product.sizeChart.template.id.title")},model:{value:a.size_chart.template.id,callback:function(e){t.$set(a.size_chart.template,"id",e)},expression:"tiktokGoodInfo.size_chart.template.id"}}),e("a-tooltip",{attrs:{placement:"right"}},[e("template",{slot:"title"},[t._v(" "+t._s(t.$t("components.pl.product.sizeChart.template.question.title"))+" ")]),e("a-icon",{staticStyle:{"margin-left":"4px","margin-bottom":"2px"},attrs:{type:"question-circle"}})],2)],1)],1):t._e()],1):t._e()],1):t._e(),"packageWeight"===t.formEditKey?e("div",[e("a-row",{attrs:{gutter:24}},[a.package_weight?e("a-col",{attrs:{lg:6}},[e("a-form-model-item",{attrs:{label:t.$t("components.dyProduct.package_weight.value")+" "+a.package_weight.unit,required:""}},[e("a-input",{attrs:{disabled:!0},model:{value:a.package_weight.value,callback:function(e){t.$set(a.package_weight,"value",e)},expression:"tiktokGoodInfo.package_weight.value"}})],1)],1):t._e()],1)],1):t._e(),"packageSizeChart"===t.formEditKey?e("div",[e("a-row",{attrs:{gutter:24}},[e("a-col",{attrs:{lg:8}},[e("a-form-model-item",{attrs:{label:t.$t("components.dyProduct.package_dimensions.height")+" "+a.package_dimensions.unit,required:""}},[e("a-input",{attrs:{disabled:!0},model:{value:a.package_dimensions.height,callback:function(e){t.$set(a.package_dimensions,"height",e)},expression:"tiktokGoodInfo.package_dimensions.height"}})],1)],1),e("a-col",{attrs:{lg:8}},[e("a-form-model-item",{attrs:{label:t.$t("components.dyProduct.package_dimensions.width")+" "+a.package_dimensions.unit,required:""}},[e("a-input",{attrs:{disabled:!0},model:{value:a.package_dimensions.width,callback:function(e){t.$set(a.package_dimensions,"width",e)},expression:"tiktokGoodInfo.package_dimensions.width"}})],1)],1),e("a-col",{attrs:{lg:8}},[e("a-form-model-item",{attrs:{label:t.$t("components.dyProduct.package_dimensions.length")+" "+a.package_dimensions.unit,required:""}},[e("a-input",{attrs:{disabled:!0},model:{value:a.package_dimensions.length,callback:function(e){t.$set(a.package_dimensions,"length",e)},expression:"tiktokGoodInfo.package_dimensions.length"}})],1)],1)],1)],1):t._e(),"sku"===t.formEditKey?e("div",[e("a-row",{attrs:{gutter:24}},[e("a-col",{style:{overflowY:"auto",overflowX:"hidden",padding:"0px 0px",height:"300px"},attrs:{lg:24}},[e("a-table",{attrs:{columns:t.columns,"data-source":a.skus,pagination:!1},scopedSlots:t._u([{key:"id",fn:function(a,i){return[e("a-row",[e("a-col",[e("a-input",{attrs:{"addon-before":i.identifier_code.type},model:{value:i.identifier_code.code,callback:function(e){t.$set(i.identifier_code,"code",e)},expression:"record.identifier_code.code"}})],1)],1),e("a-row",[e("a-col",[e("a-input",{attrs:{disabled:!0},model:{value:i.seller_sku,callback:function(e){t.$set(i,"seller_sku",e)},expression:"record.seller_sku"}})],1)],1)]}},{key:"stock_num",fn:function(a,i){return[i.global_quantity?e("a-input-number",{model:{value:i.global_quantity,callback:function(e){t.$set(i,"global_quantity",e)},expression:"record.global_quantity"}}):t._e()]}},{key:"price",fn:function(a,i){return[e("a-input",{scopedSlots:t._u([{key:"addonBefore",fn:function(){return[e("div",[t._v(t._s(i.price.currency))])]},proxy:!0}],null,!0),model:{value:i.price.amount,callback:function(e){t.$set(i.price,"amount",e)},expression:"record.price.amount"}})]}},{key:"mall_warehouse",fn:function(a,i){return[i.inventory&&i.inventory.length?e("div",{staticStyle:{display:"flex","align-items":"center"}},[e("div",{staticStyle:{flex:"1"}},[e("a-select",{staticStyle:{width:"100%"},model:{value:i.inventory[0].global_warehouse_id,callback:function(e){t.$set(i.inventory[0],"global_warehouse_id",e)},expression:"record.inventory[0].global_warehouse_id"}},t._l(t.global_ware_house_list,(function(a){return e("a-select-option",{key:a.id,attrs:{value:a.id}},[t._v(" "+t._s(a.name)+" ")])})),1)],1),e("div",[e("a-tooltip",[e("template",{slot:"title"},[e("div",[t._v(t._s(t.$t("components.dyProduct.WareHouse.sync")))])]),e("a-button",{staticStyle:{padding:"0",width:"auto","min-width":"30px","text-align":"center"},on:{click:t.tiktokGlobalItemWarehouse}},[e("a-icon",{staticStyle:{"padding-right":"0"},attrs:{type:"sync"}})],1)],2)],1)]):t._e()]}},{key:"sales_attributes",fn:function(a,i){return[e("div",t._l(i.sales_attributes,(function(a,i){return e("a-row",{key:a.id,attrs:{type:"flex"}},[e("a-col",{key:i,staticStyle:{"line-height":"30px"},attrs:{lg:8}},[t._v(" "+t._s(a.name)+" ")]),e("a-col",{attrs:{lg:16}},[e("a-input",{attrs:{type:"text",value:a.value_name}})],1)],1)})),1)]}}],null,!0)})],1)],1)],1):t._e(),"description"===t.formEditKey?e("div",[e("a-row",[e("a-col",{staticStyle:{"margin-top":"10px"},attrs:{lg:24}},[e("dy-vditor",{ref:"ComDitor_"+i,refInFor:!0,attrs:{id:i,good_id:i,value:a.description,updateStatus:t.aiTsUpdate},on:{"update:value":function(e){return t.$set(a,"description",e)},"update:updateStatus":function(e){t.aiTsUpdate=e},"update:update-status":function(e){t.aiTsUpdate=e}}})],1)],1)],1):t._e(),"other"===t.formEditKey?e("div"):t._e()])})),e("div",["category"===t.formEditKey?e("div",[e("a-row",[e("span",[t._v(t._s(t.$t("components.dyProduct.pl.value")))])]),e("a-row",{attrs:{gutter:24}},[e("a-col",{attrs:{lg:12}},[e("tiktokGlobalCategory",{ref:"globalCat",attrs:{catList:t.catList},on:{backGlobalCategory:function(e){return t.backPlGlobalCategory(e)}}})],1)],1)],1):t._e(),"brand"===t.formEditKey?e("div",[e("a-row",[e("span",[t._v(t._s(t.$t("components.dyProduct.pl.value")))])]),e("a-form-model-item",{attrs:{label:t.$t("components.dyProduct.dyProduct.bran"),required:""}},[e("a-select",{staticStyle:{width:"30%"},attrs:{"show-search":"",getPopupContainer:function(t){return t.parentNode},optionFilterProp:"title"},on:{search:function(e){return t.searchPinPai(e)},change:t.changeBrand}},t._l(t.brandList,(function(a){return e("a-select-option",{key:a.id,attrs:{title:a.name,value:a.id}},[t._v(" "+t._s(a.name)+" ")])})),1)],1)],1):t._e(),"attribute"===t.formEditKey?e("div",[e("a-row",[e("span",[t._v(t._s(t.$t("components.dyProduct.pl.value")))])]),t.attributeList.length>0?e("a-collapse",{attrs:{defaultActiveKey:"-1"}},[e("a-collapse-panel",{key:"-1",staticStyle:{padding:"0px 20px"},attrs:{header:t.$t("components.dyProduct.dyProduct.attributes")}},[e("a-row",{attrs:{gutter:24}},t._l(t.attributeList,(function(a,i){return e("a-col",{key:a.id+i,attrs:{lg:6}},[a.is_requried?e("a-form-model-item",{attrs:{label:a.name,required:""}},[a.values&&a.values.length?[a.values&&a.values.length?e("a-select",{staticStyle:{width:"100%"},attrs:{optionFilterProp:"title","show-search":""},on:{change:function(e,a){return t.onChangePlAttributes(e,a,i)},search:function(e){return t.searchAttribute(e,i)},mouseenter:function(e){return t.getPlValues100(i)}}},t._l(a.list,(function(i){return a&&a.list?e("a-select-option",{key:i.id,attrs:{title:i.name,value:i.id,text:i.name}},[t._v(" "+t._s(i.name)+" ")]):t._e()})),1):t._e()]:[e("a-input",{on:{input:function(e){return t.inputAttribute(e,i)}}})]],2):e("a-form-model-item",{attrs:{label:a.name}},[a.values&&a.values.length?[a.values&&a.values.length?e("a-select",{staticStyle:{width:"100%"},attrs:{optionFilterProp:"title","show-search":""},on:{change:function(e,a){return t.onChangePlAttributes(e,a,i)},search:function(e){return t.searchAttribute(e,i)},mouseenter:function(e){return t.getPlValues100(i)}}},t._l(a.values,(function(a){return e("a-select-option",{key:a.id,attrs:{title:a.name,value:a.id,text:a.name}},[t._v(" "+t._s(a.name)+" ")])})),1):t._e()]:[e("a-input",{on:{input:function(e){return t.inputAttribute(e,i)}}})]],2)],1)})),1)],1)],1):t._e()],1):t._e(),"sizeChart"===t.formEditKey?e("div",[e("a-row",[e("span",[t._v(t._s(t.$t("components.dyProduct.pl.value")))])]),t.tiktokRule.size_chart.is_required&&t.tiktokRule.size_chart.is_supported?e("a-row",{attrs:{gutter:24,type:"flex"}},[e("a-col",[e("a-form-model-item",{attrs:{label:t.$t("components.pl.product.sizeChart.image.uri.title"),required:""}},[e("tiktok-attach-upload",{attrs:{shop_cipher:t.tiktokShop.cipher,user_case:"4"},on:{uploadBack:function(e){return t.backPlSizeChartImage(e)}}}),t.tiktokRule.size_chart.uri?e("div",{staticClass:"check-style-unequal-width"}):t._e()],1)],1),e("a-col",{staticStyle:{"line-height":"30px"}},[e("a-form-model-item",{attrs:{label:t.$t("components.pl.product.sizeChart.template.id.title"),required:""}},[e("a-input",{staticStyle:{width:"200px"},attrs:{placeholder:t.$t("components.pl.product.sizeChart.template.id.title")},on:{input:t.plTemplate}}),e("a-tooltip",{attrs:{placement:"right"}},[e("template",{slot:"title"},[t._v(" "+t._s(t.$t("components.pl.product.sizeChart.template.question.title"))+" ")]),e("a-icon",{staticStyle:{"margin-left":"4px","margin-bottom":"2px"},attrs:{type:"question-circle"}})],2)],1)],1)],1):t._e()],1):t._e(),"packageWeight"===t.formEditKey?e("div",[e("a-row",[e("span",[t._v(t._s(t.$t("components.dyProduct.pl.value")))])]),e("a-row",[e("a-form-model-item",{attrs:{label:t.$t("components.dyProduct.package_weight.value")+" KILOGRAM",required:""}},[e("a-input",{staticStyle:{width:"23%"},on:{change:t.plPackageWeight}})],1)],1)],1):t._e(),"packageSizeChart"===t.formEditKey?e("div",[e("a-row",[e("span",[t._v(t._s(t.$t("components.dyProduct.pl.value")))])]),e("a-row",{attrs:{gutter:24}},[e("a-col",{attrs:{lg:8}},[e("a-form-model-item",{attrs:{label:t.$t("components.dyProduct.package_dimensions.height")+" CENTIMETER",required:""}},[e("a-input",{on:{change:function(e){return t.plChangeSizeChart(e,"height")}}})],1)],1),e("a-col",{attrs:{lg:8}},[e("a-form-model-item",{attrs:{label:t.$t("components.dyProduct.package_dimensions.width")+" CENTIMETER",required:""}},[e("a-input",{on:{change:function(e){return t.plChangeSizeChart(e,"width")}}})],1)],1),e("a-col",{attrs:{lg:8}},[e("a-form-model-item",{attrs:{label:t.$t("components.dyProduct.package_dimensions.length")+" CENTIMETER",required:""}},[e("a-input",{on:{change:function(e){return t.plChangeSizeChart(e,"length")}}})],1)],1)],1)],1):t._e(),"sku"===t.formEditKey?e("div",[e("a-row",[e("span",[t._v(t._s(t.$t("components.dyProduct.pl.value")))])]),e("a-row",[e("a-form-model-item",{attrs:{label:t.$t("components.dyProduct.piliang_warehouse_stock")}},[e("a-input",{staticStyle:{width:"100px"},attrs:{type:"number",min:"1"},on:{change:t.inputPiliangStock}})],1)],1)],1):t._e()])],2)],1)],1),e("div",{attrs:{slot:"footer"},slot:"footer"},[e("div",{staticStyle:{float:"left"}}),e("a-button",{on:{click:t.cancelModal}},[t._v(t._s(t.$t("components.imagetext.translation.confirm.cancel")))]),e("a-button",{attrs:{type:"primary"},on:{click:t.saveTiktok}},[t._v(t._s(t.$t("component.artilce.save.button")))]),e("a-button",{staticClass:"btnSuccess",attrs:{loading:t.btnLoading},on:{click:t.batchSubmit}},[t._v(t._s(t.$t("components.pl.product.submit.title")))])],1)]):t._e()],1)},o=[],r=a("5530"),s=(a("3ca3"),a("d81d"),a("25f0"),a("b680"),a("4de4"),a("fb6a"),a("c740"),a("159b"),a("2f62")),n=a("a026"),l=a("296e"),c=a("b70c"),d=a("cec7"),u=a("2e136"),p=Object(n["b"])((function(){return Promise.resolve().then(a.bind(null,"2dd7"))})),m=Object(n["b"])((function(){return a.e("lang-zh-TW-service~f63b1681").then(a.bind(null,"16f2"))})),h=Object(n["b"])((function(){return a.e("chunk-e8ed6cd8").then(a.bind(null,"12b1"))})),_=Object(n["b"])((function(){return a.e("chunk-d1be4e4e").then(a.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,a){e.$refs["ComDitor_"+a][0].getValue1()})),this.formEditKey=t},initLoad:function(t){t&&(this.tiktokShop=t,this.tiktokShopSellerType=t.seller_type,this.tiktokGlobalItemWarehouse(),this.getPlGlobalCategory(),this.openModal())},openModal:function(){this.modalHeight=(.9*window.innerHeight).toFixed(0).toString(),this.modalWidth=(.8*window.innerWidth).toFixed(0).toString(),this.tiktokItemOpen=!0},cancelModal:function(){this.tiktokItemOpen=!1,this.ware_house_list=[],this.delivery=[],this.goodList=[],this.tiktokShopSellerType="",this.product_attributes={},this.attributesList={},this.pinPaiList={},this.tiktokGlobalCategoryList=[],this.tiktokGlobalPartnerCategoryList=[],this.global_ware_house_list=[],this.tiktokProductCategoryId="",this.tiktokGlobalProductCategoryId="",this.tiktokShop={},this.tiktokProductList={},this.tiktokTuiJianCatList={},this.product_attributesList={}},initTiktok:function(t){var e=this;Promise.all(this._.map(t,(function(t,a){return e.tiktokPublication(t)}))).then((function(t){e.$message.destroy()}))},tiktokPublication:function(t){var e=this,a=this,i={};return i.good_id=t.good_id,i.shop_cipher=a.tiktokShop.cipher,i.good_type=a.tiktokProductType,Object(l["h"])(i).then((function(i){return 0===i.code&&(delete i.code,delete i.message,a.tiktokProductList[t.good_id]=i,i.category_id&&(e.tiktokGlobalItemAttribute(t.good_id),e.getPinPai("",t.good_id)),a.tiktokProductList[t.good_id].delivery_option_ids&&1===a.tiktokProductList[t.good_id].delivery_option_ids.length&&""===a.tiktokProductList[t.good_id].delivery_option_ids[0]&&(a.tiktokProductList[t.good_id].delivery_option_ids=[]),"CROSS_BORDER"!==e.tiktokShopSellerType?e.getGlobalTuiJianCat(t.good_id):e.getGlobalCategory(t.good_id)),a.$set(e,"tiktokProductList",Object.assign({},a.tiktokProductList)),i}))},saveTiktok:function(){var t=this,e=this;this._.map(this.tiktokProductList,(function(a,i){var o;e.$refs["ComDitor_"+i]&&(null===(o=e.$refs["ComDitor_"+i])||void 0===o?void 0:o.length)>0&&e.$refs["ComDitor_"+i][0].getValue1();var r=[];t.product_attributes[i]&&t.product_attributes[i].map((function(t){var e;t.values&&t.values.length>0&&(t.values[0].value||t.values[0].id)&&((null===(e=t.values)||void 0===e?void 0:e.length)>=1&&(t.values[0].name=t.values[0].value),r.push(t))})),a.product_attributes=r}));var a={shop_cipher:this.tiktokShop.cipher,body:this.tiktokProductList,tiktok_good_type:this.tiktokProductType};Object(l["b"])(a).then((function(e){0===e.code?t.$message.success(t.$t("components.dyProduct.dyProduct.saveSuccess")):t.$message.error(t.$t("view.item.component.item.syn.operation.add.error.info"))}))},NewAttributesList:function(t){var e=this;this.product_attributesList[t]=this.attributesList[t].filter((function(t,e){return"PRODUCT_PROPERTY"===t.type&&t.is_requried&&t.values&&t.values.length>0&&(t.list=t.values.slice(0,100)),"PRODUCT_PROPERTY"===t.type})),this.product_attributes[t]||(this.product_attributes[t]=[]),this.tiktokProductList[t].product_attributes||(this.tiktokProductList[t].product_attributes=[]),this.product_attributesList[t].map((function(a){var i=e.tiktokProductList[t].product_attributes.findIndex((function(t){return t.id===a.id}));if(-1===i){var o={id:a.id,values:[]};a.values&&a.values.length>0?o.values.push({id:"",value:""}):o.values.push({value:""}),e.product_attributes[t].push(o)}else e.product_attributes[t].push(e.tiktokProductList[t].product_attributes[i])})),this.$set(this,"product_attributes",Object.assign({},this.product_attributes))},searchPinPai:function(t,e){this.getPinPai(t,e)},getPinPai:function(t,e){var a=this,i=this,o={shop_cipher:i.tiktokShop.cipher};t&&(o.brand_name=t),Object(l["u"])(o).then((function(t){0===t.code&&(a.pinPaiList[e]=t.data.brands,a.brandList=t.data.brands,a.$set(a,"pinPaiList",Object.assign({},a.pinPaiList)))}))},getPlPinPai:function(t){var e=this,a={shop_cipher:e.tiktokShop.cipher};t&&(a.brand_name=t),Object(l["u"])(a).then((function(t){0===t.code&&(e._.map(e.tiktokProductList,(function(a,i){e.pinPaiList[i]=t.data.brands})),e.brandList=t.data.brands,e.$set(e,"pinPaiList",Object.assign({},e.pinPaiList)))}))},changeBrand:function(t){this._.map(this.tiktokProductList,(function(e,a){e.brand_id=t})),this.$set(this,"tiktokProductList",Object.assign({},this.tiktokProductList))},getGlobalTuiJianCat:function(t){var e=this,a=this,i={body:{product_title:a.tiktokProductList[t].title},shop_cipher:a.tiktokShop.cipher};Object(l["l"])(i).then((function(a){if(0===a.code){var i="";a.data.categories.map((function(t){!t.is_leaf&&t.level<3?i+=t.name+">":t.is_leaf&&3===t.level&&(t.name=i+t.name)})),e.tiktokTuiJianCatList[t]=a.data.categories}}))},getGlobalCategory:function(t){var e=this,a=this,i={shop_cipher:a.tiktokShop.cipher};a.tiktokGlobalLocate&&(i.locale=a.tiktokGlobalLocate),Object(l["j"])(i).then((function(a){0===a.code&&(e.tiktokProductGlobalCatgoryShow=!0,e.tiktokGlobalCategory(a.data.categories,t))}))},getPlGlobalCategory:function(){var t=this,e={shop_cipher:t.tiktokShop.cipher};t.tiktokGlobalLocate&&(e.locale=t.tiktokGlobalLocate),Object(l["j"])(e).then((function(e){0===e.code&&(t.catList=e.data.categories)}))},tiktokGlobalCategory:function(t,e){this.tiktokGlobalCategoryList[e]=t,this.tiktokGlobalPartnerCategoryList[e]=this.tiktokGlobalCategoryList[e].filter((function(t){return"0"===t.parent_id})),this.$set(this,"tiktokGlobalCategoryList",Object.assign({},this.tiktokGlobalCategoryList))},backGlobalCategory:function(t,e){this.tiktokProductList[e].category_id=t,this.changeGlobalCategory(e)},backPlGlobalCategory:function(t){var e=this;this._.map(this.tiktokProductList,(function(a,i){e.tiktokProductList[i].category_id=t})),this.changePlGlobalCategory(t)},changeGlobalCategory:function(t){this.tiktokGlobalCategoryRule(t),this.getPinPai("",t),this.tiktokGlobalItemAttribute(t)},changePlGlobalCategory:function(t){this.tiktokPlGlobalCategoryRule(t),this.getPlPinPai(""),this.tiktokPlGlobalItemAttribute(t)},tiktokGlobalCategoryRule:function(t){var e=this,a=this,i={shop_cipher:a.tiktokShop.cipher,category_id:a.tiktokProductList[t].category_id};Object(l["i"])(i).then((function(i){var o,r,s,n,l,c;null!==i&&void 0!==i&&null!==(o=i.data)&&void 0!==o&&null!==(r=o.product_certifications)&&void 0!==r&&r.length&&(a.tiktokRule.product_certifications=i.data.product_certifications,i.data.product_certifications.forEach((function(e){e.is_required&&(a.tiktokProductList[t].certifications||(a.tiktokProductList[t].certifications=[]),a.tiktokProductList[t].certifications.push({id:e.id,name:e.name,sample_image_url:e.sample_image_url,images:[{uri:""}]}))}))),null!==i&&void 0!==i&&null!==(s=i.data)&&void 0!==s&&null!==(n=s.size_chart)&&void 0!==n&&n.is_required&&null!==i&&void 0!==i&&null!==(l=i.data)&&void 0!==l&&null!==(c=l.size_chart)&&void 0!==c&&c.is_supported&&(a.tiktokRule.size_chart=i.data.size_chart,a.tiktokProductList[t].size_chart||(a.tiktokProductList[t].size_chart={}),a.tiktokProductList[t].size_chart.image={uri:""},a.tiktokProductList[t].size_chart.template={id:""}),e.$set(e,"tiktokProductList",Object.assign({},e.tiktokProductList))}))},tiktokPlGlobalCategoryRule:function(t){var e=this,a=this,i={shop_cipher:a.tiktokShop.cipher,category_id:t};Object(l["i"])(i).then((function(t){var i,o,r,s,n,l;null!==t&&void 0!==t&&null!==(i=t.data)&&void 0!==i&&null!==(o=i.product_certifications)&&void 0!==o&&o.length&&a._.map(a.tiktokProductList,(function(e,i){a.tiktokRule.product_certifications=t.data.product_certifications,t.data.product_certifications.forEach((function(t){t.is_required&&(a.tiktokProductList[i].certifications||(a.tiktokProductList[i].certifications=[]),a.tiktokProductList[i].certifications.push({id:t.id,name:t.name,sample_image_url:t.sample_image_url,images:[{uri:""}]}))}))})),null!==t&&void 0!==t&&null!==(r=t.data)&&void 0!==r&&null!==(s=r.size_chart)&&void 0!==s&&s.is_required&&null!==t&&void 0!==t&&null!==(n=t.data)&&void 0!==n&&null!==(l=n.size_chart)&&void 0!==l&&l.is_supported&&a._.map(a.tiktokProductList,(function(e,i){a.tiktokRule.size_chart=t.data.size_chart,a.tiktokProductList[i].size_chart||(a.tiktokProductList[i].size_chart={}),a.tiktokProductList[i].size_chart.image={uri:""},a.tiktokProductList[i].size_chart.template={id:""}})),e.$set(e,"tiktokProductList",Object.assign({},e.tiktokProductList))}))},plTemplate:function(t){this._.map(this.tiktokProductList,(function(e,a){e.size_chart.template.id=t.target.value})),this.$set(this,"tiktokProductList",Object.assign({},this.tiktokProductList))},backSizeChartImage:function(t,e){this.tiktokProductList[e].size_chart.image.uri=t.img_id},backPlSizeChartImage:function(t){t.img_id&&(this.tiktokRule.size_chart.uri=t.img_id,this._.map(this.tiktokProductList,(function(e,a){e.size_chart.image.uri=t.img_id})),this.$set(this,"tiktokProductList",Object.assign({},this.tiktokProductList)))},tiktokGlobalItemAttribute:function(t){var e=this,a=this,i={shop_cipher:a.tiktokShop.cipher,category_id:a.tiktokProductList[t].category_id};Object(l["k"])(i).then((function(a){0===a.code&&(e.attributeList=a.data.attributes,e.attributesList[t]=a.data.attributes,e.NewAttributesList(t))}))},tiktokPlGlobalItemAttribute:function(t){var e=this,a={shop_cipher:e.tiktokShop.cipher,category_id:t};Object(l["k"])(a).then((function(t){0===t.code&&(e.attributeList=t.data.attributes,e._.map(e.tiktokProductList,(function(a,i){e.attributesList[i]=t.data.attributes,e.NewAttributesList(i)})))}))},getRules:function(t){return[{required:t.is_requried,message:this.$t("view.config.style.pleaseEdit")+" "+t.name}]},getValues100:function(t,e){this.product_attributesList[t][e].list&&0!==this.product_attributesList[t][e].list.length||(this.product_attributesList[t][e].list=this.product_attributesList[t][e].values.slice(0,100),this.$set(this,"product_attributesList",Object.assign({},this.product_attributesList)))},getPlValues100:function(t){var e=this;this._.map(this.tiktokProductList,(function(a,i){e.product_attributesList[i][t].list&&0!==e.product_attributesList[i][t].list.length||(e.product_attributesList[i][t].list=e.product_attributesList[i][t].values.slice(0,100))})),this.$set(this,"product_attributesList",Object.assign({},this.product_attributesList))},inputAttribute:function(t,e){var a=this;this._.map(this.tiktokProductList,(function(i,o){a.product_attributes[o][e].values[0].value=t.target.value})),this.$set(this,"product_attributes",Object.assign({},this.product_attributes))},plPackageWeight:function(t){this._.map(this.tiktokProductList,(function(e,a){e.package_weight.value=t.target.value})),this.$set(this,"tiktokProductList",Object.assign({},this.tiktokProductList))},plChangeSizeChart:function(t,e){this._.map(this.tiktokProductList,(function(a,i){a.package_dimensions[e]=t.target.value})),this.$set(this,"tiktokProductList",Object.assign({},this.tiktokProductList))},onChangeAttributes:function(t,e,a,i){var o;this.product_attributes[a][i].values[0].value=null===(o=e.data.attrs)||void 0===o?void 0:o.text,this.$set(this,"product_attributes",Object.assign({},this.product_attributes))},onChangePlAttributes:function(t,e,a){var i=this;this._.map(this.tiktokProductList,(function(o,r){var s;i.product_attributes[r][a].values[0].id=t,i.product_attributes[r][a].values[0].value=null===(s=e.data.attrs)||void 0===s?void 0:s.text})),this.$set(this,"product_attributes",Object.assign({},this.product_attributes))},changePiliangWareHouse:function(t){t>0&&this._.map(this.tiktokProductList,(function(e,a){e.skus.forEach((function(e){e.inventory&&(e.inventory[0].global_warehouse_id=t)}))}))},inputPiliangStock:function(t){var e=t.target.value;e>0&&this._.map(this.tiktokProductList,(function(t,a){t.skus.forEach((function(t){t.global_quantity&&(t.global_quantity=e)}))}))},tiktokGlobalItemWarehouse:function(){var t=this,e={shop_cipher:this.tiktokShop.cipher};Object(l["o"])(e).then((function(e){0===e.code&&(t.global_ware_house_list=e.data.global_warehouses)}))},resetQuery:function(t,e,a){this.tiktokProductList[a].certifications.forEach((function(a){a.id===e&&(a.images=[{uri:t.img_id}])}))},batchSubmit:function(){var t=this,e=[];t._.map(t.tiktokProductList,(function(t,a){e.push(Number(a))}));var a={shop_cipher:t.tiktokShop.cipher,good_ids:e,tiktok_good_type:t.tiktokProductType};t.btnLoading=!0,Object(l["a"])(a).then((function(e){t.btnLoading=!1})).catch((function(){t.btnLoading=!1}))}}},f=Object(r["a"])({},v),g=f,k=a("2877"),y=Object(k["a"])(g,i,o,!1,null,null,null);e["default"]=y.exports},"8ae7":function(t,e,a){},"8b78":function(t,e,a){"use strict";a.r(e);a("99af");var i=function(){var t=this,e=t._self._c;return e("div",[e("a-card",{staticStyle:{"margin-bottom":"10px"},attrs:{bordered:!1}},[e("div",{staticClass:"table-page-search-wrapper"},[e("a-form",{attrs:{labelCol:t.labelCol,wrapperCol:t.wrapperCol}},[e("a-row",{attrs:{gutter:48}},[e("a-col",{attrs:{md:6,sm:24}},[e("a-form-item",{attrs:{label:"操作模块"}},[e("a-select",{staticStyle:{width:"100%"},attrs:{placeholder:"操作模块","allow-clear":""},model:{value:t.queryParam.module,callback:function(e){t.$set(t.queryParam,"module",e)},expression:"queryParam.module"}},t._l(t.moduleOptions,(function(a,i){return e("a-select-option",{key:i,attrs:{value:a.value}},[t._v(t._s(a.label))])})),1)],1)],1),e("a-col",{attrs:{md:6,sm:24}},[e("a-form-item",{attrs:{label:"操作人员"}},[e("a-input",{attrs:{placeholder:"请输入操作人员ID","allow-clear":""},nativeOn:{keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.handleQuery.apply(null,arguments)}},model:{value:t.queryParam.member_id,callback:function(e){t.$set(t.queryParam,"member_id",e)},expression:"queryParam.member_id"}})],1)],1),e("a-col",{attrs:{md:6,sm:24}},[e("a-form-item",{attrs:{label:"访问路径"}},[e("a-input",{attrs:{placeholder:"请输入访问路径","allow-clear":""},nativeOn:{keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.handleQuery.apply(null,arguments)}},model:{value:t.queryParam.url,callback:function(e){t.$set(t.queryParam,"url",e)},expression:"queryParam.url"}})],1)],1),e("a-col",{attrs:{md:6,sm:24}},[e("a-form-item",{attrs:{label:"访问IP"}},[e("a-input",{attrs:{placeholder:"请输入IP地址","allow-clear":""},nativeOn:{keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.handleQuery.apply(null,arguments)}},model:{value:t.queryParam.ip,callback:function(e){t.$set(t.queryParam,"ip",e)},expression:"queryParam.ip"}})],1)],1),e("a-col",{attrs:{md:6,sm:24}},[e("a-form-item",{attrs:{label:"请求方式"}},[e("a-select",{staticStyle:{width:"100%"},attrs:{placeholder:"请求方式","allow-clear":""},model:{value:t.queryParam.method,callback:function(e){t.$set(t.queryParam,"method",e)},expression:"queryParam.method"}},t._l(t.methodOptions,(function(a,i){return e("a-select-option",{key:i,attrs:{value:a.value}},[t._v(t._s(a.label))])})),1)],1)],1),e("a-col",{attrs:{md:6,sm:24}},[e("a-form-item",{attrs:{label:"耗时"}},[e("a-select",{staticStyle:{width:"100%"},attrs:{placeholder:"耗时","allow-clear":""},model:{value:t.queryParam.take_up_time,callback:function(e){t.$set(t.queryParam,"take_up_time",e)},expression:"queryParam.take_up_time"}},t._l(t.takeTimeOptions,(function(a,i){return e("a-select-option",{key:i,attrs:{value:a.value}},[t._v(t._s(a.label))])})),1)],1)],1),t.advanced?e("a-col",{attrs:{md:6,sm:24}},[e("a-form-item",{attrs:{label:"状态码"}},[e("a-select",{staticStyle:{width:"100%"},attrs:{placeholder:"响应状态码","allow-clear":""},model:{value:t.queryParam.error_code,callback:function(e){t.$set(t.queryParam,"error_code",e)},expression:"queryParam.error_code"}},t._l(t.errorCodeOptions,(function(a,i){return e("a-select-option",{key:i,attrs:{value:a.value}},[t._v(t._s(a.label))])})),1)],1)],1):t._e(),t.advanced?e("a-col",{attrs:{md:6,sm:24}},[e("a-form-item",{attrs:{label:"操作时间"}},[e("a-range-picker",{staticStyle:{width:"100%"},attrs:{valueFormat:"YYYY-MM-DD",format:"YYYY-MM-DD","allow-clear":""},model:{value:t.dateRange,callback:function(e){t.dateRange=e},expression:"dateRange"}})],1)],1):t._e(),e("a-col",[e("span",{staticClass:"table-page-search-submitButtons",staticStyle:{float:"right"}},[e("a-button",{attrs:{type:"primary"},on:{click:t.handleQuery}},[e("a-icon",{attrs:{type:"search"}}),t._v("查询")],1),e("a-button",{staticStyle:{"margin-left":"8px"},on:{click:t.resetQuery}},[e("a-icon",{attrs:{type:"redo"}}),t._v("重置")],1),e("a",{staticStyle:{"margin-left":"8px"},on:{click:t.toggleAdvanced}},[t._v(" "+t._s(t.advanced?"收起":"展开")+" "),e("a-icon",{attrs:{type:t.advanced?"up":"down"}})],1)],1)])],1)],1)],1)]),e("a-card",{staticClass:"table-card",attrs:{bordered:!1}},[e("view-form",{ref:"viewForm"}),e("advance-table",{attrs:{columns:t.columns,"data-source":t.list,title:"系统参数",loading:t.loading,rowKey:"id",tableKey:"monitor-operlog-Operlog-table",isTableConfig:!1,isShowSetBtn:!1,size:"middle","format-conditions":!0,"row-selection":{selectedRowKeys:t.selectedRowKeys,onChange:t.onSelectChange},pagination:{current:t.queryParam.page,limit:t.queryParam.limit,total:t.total,showSizeChanger:!0,showLessItems:!0,showQuickJumper:!0,showTotal:function(t,e){return"第 ".concat(e[0],"-").concat(e[1]," 条,总计 ").concat(t," 条")},onChange:t.changeSize,onShowSizeChange:t.onSizeChange}},on:{refresh:t.getList},scopedSlots:t._u([{key:"method",fn:function(a){var i=a.text,o=a.record;return e("span",{},[e("a-tag",{attrs:{color:t._f("operMethodFilter")(i)}},[t._v(" "+t._s(t.methodFormat(o))+" ")])],1)}},{key:"module",fn:function(a){var i=a.text,o=a.record;return e("span",{},[e("a-tag",{attrs:{color:t._f("operModuleFilter")(i)}},[t._v(" "+t._s(t.moduleFormat(o))+" ")])],1)}},{key:"error_code",fn:function(a){var i=a.text,o=a.record;return e("span",{},[e("a-tag",{attrs:{color:t._f("operErrorCodeFilter")(i)}},[t._v(" "+t._s(t.errorCodeFormat(o))+" ")])],1)}},{key:"take_up_time",fn:function(a){var i=a.text,o=a.record;return e("span",{},[e("a-tag",{attrs:{color:t._f("operTakeTimeFilter")(i)}},[t._v(" "+t._s(t.takeTimeFormat(o))+" ")])],1)}},{key:"operation",fn:function(a){a.text;var i=a.record;return e("span",{},[e("a",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["monitor:operlog:query"],expression:"['monitor:operlog:query']"}],on:{click:function(e){return t.$refs.viewForm.handleView(i)}}},[e("a-icon",{attrs:{type:"eye",theme:"twoTone"}}),t._v("详细 ")],1)])}},{key:"member_name",fn:function(a){a.text;var i=a.record;return e("span",{},[e("span",[t._v(t._s(t.memberNameFormat(i)))])])}}])},[e("div",{staticClass:"table-operations",attrs:{slot:"button"},slot:"button"},[t.multiple?t._e():e("a-button",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["monitor:operlog:remove"],expression:"['monitor:operlog:remove']"}],attrs:{type:"danger",disabled:t.multiple},on:{click:t.handleDelete}},[e("a-icon",{attrs:{type:"delete"}}),t._v("删除 ")],1),e("a-button",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["monitor:operlog:remove"],expression:"['monitor:operlog:remove']"}],attrs:{type:"danger"},on:{click:t.handleClean}},[e("a-icon",{attrs:{type:"delete"}}),t._v("清空 ")],1),e("a-button",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["system:config:export"],expression:"['system:config:export']"}],on:{click:t.handleExport}},[e("a-icon",{attrs:{type:"download"}}),t._v("导出 ")],1)],1)])],1)],1)},o=[],r=(a("d81d"),a("b775"));function s(t){return Object(r["b"])({url:"/log/list",method:"get",params:t})}function n(t){return Object(r["b"])({url:"/monitor/operlog/"+t,method:"delete"})}function l(){return Object(r["b"])({url:"/log/clear",method:"post"})}var c=a("5881"),d=a("5d9e"),u=a("028d"),p={name:"Operlog",components:{ViewForm:c["default"],AdvanceTable:d["default"]},data:function(){return{list:[],selectedRowKeys:[],selectedRows:[],advanced:!1,single:!0,multiple:!0,ids:[],loading:!1,sunloading:!1,total:0,errorCodeOptions:[],takeTimeOptions:[],moduleOptions:[],methodOptions:[],labelCol:{span:6},wrapperCol:{span:18},dateRange:[],queryParam:{page:1,limit:10,module:void 0,member_id:void 0,method:void 0,url:void 0,error_code:void 0,take_up_time:void 0,ip:void 0},addModalRefName:"addModal",columns:[{title:"应用端口",dataIndex:"app_id",align:"center"},{title:"操作人员",dataIndex:"member_name",scopedSlots:{customRender:"member_name"},align:"center"},{title:"操作模块",dataIndex:"module",scopedSlots:{customRender:"module"},align:"center"},{title:"请求方式",dataIndex:"method",align:"center"},{title:"请求路径",dataIndex:"url",align:"center"},{title:"访问IP",dataIndex:"ip",align:"center"},{title:"IP地区",dataIndex:"region",align:"center"},{title:"状态码",dataIndex:"error_code",scopedSlots:{customRender:"error_code"},align:"center"},{title:"耗时",dataIndex:"take_up_time",scopedSlots:{customRender:"take_up_time"},align:"center"},{title:"操作日期",dataIndex:"created_at",align:"center"},{title:"操作",dataIndex:"operation",scopedSlots:{customRender:"operation"},align:"center"}]}},filters:{operTypeFilter:function(t){var e="blue";return 3!==t&&7!==t&&9!==t||(e="orange"),e},operModuleFilter:function(t){var e="blue";return"api"===t&&(e="orange"),e},operMethodFilter:function(t){var e="blue";return"POST"===t&&(e="orange"),e},operErrorCodeFilter:function(t){var e="orange";return 0!==t&&(e="red"),e},operTakeTimeFilter:function(){return"magenta"}},created:function(){var t=this;this.getList(),this.getDicts("req_code").then((function(e){t.errorCodeOptions=e})),this.getDicts("req_take_up_time").then((function(e){t.takeTimeOptions=e})),this.getDicts("sys_oper_module").then((function(e){t.moduleOptions=e})),this.getDicts("sys_oper_method").then((function(e){t.methodOptions=e}))},computed:{},watch:{},methods:{onSizeChange:function(t,e){this.queryParam.page=1,this.queryParam.limit=e,this.getList()},getList:function(){var t=this;this.loading=!0,s(this.addDateRange(this.queryParam,this.dateRange)).then((function(e){t.list=e.list,t.total=e.total_count,t.loading=!1}))},errorCodeFormat:function(t,e){return this.selectDictLabel(this.errorCodeOptions,t.error_code)},takeTimeFormat:function(t,e){return t.take_up_time+"ms"},moduleFormat:function(t,e){return this.selectDictLabel(this.moduleOptions,t.module)},methodFormat:function(t,e){return this.selectDictLabel(this.methodOptions,t.method)},memberNameFormat:function(t){return t.member_id<=0?"":"(#"+t.member_id+")"+t.member_name},handleQuery:function(){this.queryParam.page=1,this.getList()},resetQuery:function(){this.dateRange=[],this.queryParam={page:1,limit:10,module:void 0,member_id:void 0,method:void 0,url:void 0,error_code:void 0,take_up_time:void 0,ip:void 0},this.handleQuery()},onShowSizeChange:function(t,e){this.queryParam.limit=e,this.getList()},changeSize:function(t,e){this.queryParam.page=t,this.queryParam.limit=e,this.getList()},onSelectChange:function(t,e){this.selectedRowKeys=t,this.selectedRows=e,this.ids=this.selectedRows.map((function(t){return t.id})),this.multiple=!t.length},toggleAdvanced:function(){this.advanced=!this.advanced},handleDelete:function(t){var e=this,a=t.id||this.ids;this.$confirm({title:"确认删除所选中数据?",content:"当前选中编号为"+a+"的数据",onOk:function(){return n(a).then((function(){e.onSelectChange([],[]),e.getList(),e.$message.success("删除成功",3)}))},onCancel:function(){}})},handleClean:function(){var t=this;this.$confirm({title:"是否确认清空?",content:"此操作将会清空所有操作日志数据项",onOk:function(){return l().then((function(){t.onSelectChange([],[]),t.getList(),t.$message.success("清空成功",3)}))},onCancel:function(){}})},handleExport:function(){var t=this;this.$confirm({title:"是否确认导出?",content:"此操作将导出当前条件下所有数据而非选中数据",onOk:function(){return Object(u["g"])("/log/export",t.queryParam)},onCancel:function(){}})}}},m=p,h=a("2877"),_=Object(h["a"])(m,i,o,!1,null,null,null);e["default"]=_.exports},"8cdb":function(t,e,a){"use strict";a.r(e);var i=function(){var t=this,e=t._self._c;return e("div")},o=[],r={name:"404"},s=r,n=a("2877"),l=Object(n["a"])(s,i,o,!1,null,"206078e4",null);e["default"]=l.exports},a32b:function(t,e,a){},a4d4:function(t,e,a){},abd6:function(t,e,a){"use strict";a.r(e);var i=function(){var t=this,e=t._self._c;return e("span",[e("a-button",{attrs:{type:"primary"},on:{click:t.handleClick}},[t._v(t._s(t.$t("view.warehouse.form.stocks.update")))]),e("ant-modal",{attrs:{visible:t.visable,"modal-title":t.formTitle,"adjust-size":!0,modalHeight:"600",modalWidth:"800"},on:{cancel:function(e){return t.closeModal()}}},[e("div",{staticClass:"orderDetail",attrs:{slot:"content"},slot:"content"},[e("a-form-model",t._b({ref:"form",attrs:{model:t.stockForm}},"a-form-model",t.itemLayout,!1),[e("a-form-model-item",{attrs:{"has-feedback":"",label:""}},[e("div",{staticStyle:{display:"flex"}},[e("div",[t._v(t._s(t.$t("view.warehouse.list.name"))+":")]),t.visable?e("wareHouseInfo",{attrs:{warehouseId:t.wareHouseId}}):t._e()],1)]),e("a-form-model-item",{attrs:{"has-feedback":"",label:"",prop:"shipment_id"}},[e("div",[t._v(t._s(t.$t("view.warehouse.list.stock.list.label")))]),e("a-textarea",{attrs:{rows:10,placeholder:t.$t("view.warehouse.list.stock.list.placeholder")},model:{value:t.stockForm.stockRow,callback:function(e){t.$set(t.stockForm,"stockRow",e)},expression:"stockForm.stockRow"}})],1)],1),e("a-form-model-item",{attrs:{"has-feedback":""}},[e("a-button",{attrs:{type:"primary"},on:{click:t.submitForm}},[t._v(" "+t._s(t.$t("component.artilce.save.button"))+" ")])],1)],1),e("template",{slot:"footer"},[e("a-button",{on:{click:t.closeModal}},[t._v(t._s(t.$t("component.artilce.close.button")))])],1)],2)],1)},o=[],r=a("5530"),s=(a("d3b7"),a("3ca3"),a("ddb0"),a("a9e3"),a("d81d"),a("2dd7")),n=a("89f8"),l=a("a026"),c=Object(l["b"])((function(){return Promise.resolve().then(a.bind(null,"f2b2"))})),d={name:"ordersShips",data:function(){return{visable:!1,formTitle:"",forms:[],itemLayout:{labelCol:{lg:2},wrapperCol:{lg:22}},stockForm:{stockRow:"",warehouse_id:""}}},props:{orders:{type:Array,default:function(){return[]}},wareHouseId:{type:Number,default:0}},components:{AntModal:s["default"],WareHouseInfo:c},methods:{closeModal:function(){this.visable=!1},handleClick:function(){this.formTitle=this.$t("view.warehouse.form.stocks.update"),this.visable=!0},handleChange1:function(t){this.stockForm.warehouse_id=t},handleChange:function(t,e){this.forms[e].warehouse_id=t},submitForm:function(){var t=this,e=[],a=this.stockForm.stockRow.split("\n");a.map((function(a){var i=a.split(",");e.push({out_id:i[0],stock_quantity:i[1],warehouse_id:t.wareHouseId})})),e&&e.length>0&&Object(n["a"])({stock_details:e}).then((function(e){0===e.code&&(t.$message.success(t.$t("view.warehouse.list.stock.list.success")),t.visable=!1,t.$emit("ok"))}))}}},u=Object(r["a"])({},d),p=u,m=a("2877"),h=Object(m["a"])(p,i,o,!1,null,null,null);e["default"]=h.exports},d916:function(t,e,a){},de96:function(t,e,a){"use strict";a.r(e);a("99af");var i=function(){var t=this,e=t._self._c;return e("div",[e("a-card",{staticStyle:{"margin-bottom":"10px"},attrs:{bordered:!1}},[e("div",{staticClass:"table-page-search-wrapper"},[e("a-form",{attrs:{labelCol:t.labelCol,wrapperCol:t.wrapperCol}},[e("a-row",{attrs:{gutter:48}},[e("a-col",{attrs:{md:6,sm:24}},[e("a-form-item",{attrs:{label:"登录地址"}},[e("a-input",{attrs:{placeholder:"请输入登录地址","allow-clear":""},nativeOn:{keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.handleQuery.apply(null,arguments)}},model:{value:t.queryParam.ipaddr,callback:function(e){t.$set(t.queryParam,"ipaddr",e)},expression:"queryParam.ipaddr"}})],1)],1),e("a-col",{attrs:{md:6,sm:24}},[e("a-form-item",{attrs:{label:"操作信息"}},[e("a-input",{attrs:{placeholder:"请输入操作信息","allow-clear":""},nativeOn:{keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.handleQuery.apply(null,arguments)}},model:{value:t.queryParam.msg,callback:function(e){t.$set(t.queryParam,"msg",e)},expression:"queryParam.msg"}})],1)],1),e("a-col",{attrs:{md:6,sm:24}},[e("a-form-item",{attrs:{label:"使用状态"}},[e("a-select",{staticStyle:{width:"100%"},attrs:{placeholder:"请选择状态","allow-clear":""},model:{value:t.queryParam.status,callback:function(e){t.$set(t.queryParam,"status",e)},expression:"queryParam.status"}},t._l(t.statusOptions,(function(a,i){return e("a-select-option",{key:i,attrs:{value:a.dictValue}},[t._v(t._s(a.dictLabel))])})),1)],1)],1),t.advanced?e("a-col",{attrs:{md:6,sm:24}},[e("a-form-item",{attrs:{label:"登录名称"}},[e("a-input",{staticStyle:{width:"100%"},attrs:{"allow-clear":""},model:{value:t.queryParam.loginName,callback:function(e){t.$set(t.queryParam,"loginName",e)},expression:"queryParam.loginName"}})],1)],1):t._e(),t.advanced?e("a-col",{attrs:{md:6,sm:24}},[e("a-form-item",{attrs:{label:"登陆时间"}},[e("a-range-picker",{staticStyle:{width:"100%"},attrs:{valueFormat:"YYYY-MM-DD",format:"YYYY-MM-DD","allow-clear":""},model:{value:t.dateRange,callback:function(e){t.dateRange=e},expression:"dateRange"}})],1)],1):t._e(),e("a-col",[e("span",{staticClass:"table-page-search-submitButtons",staticStyle:{float:"right"}},[e("a-button",{attrs:{type:"primary"},on:{click:t.handleQuery}},[e("a-icon",{attrs:{type:"search"}}),t._v("查询")],1),e("a-button",{staticStyle:{"margin-left":"8px"},on:{click:t.resetQuery}},[e("a-icon",{attrs:{type:"redo"}}),t._v("重置")],1),e("a",{staticStyle:{"margin-left":"8px"},on:{click:t.toggleAdvanced}},[t._v(" "+t._s(t.advanced?"收起":"展开")+" "),e("a-icon",{attrs:{type:t.advanced?"up":"down"}})],1)],1)])],1)],1)],1)]),e("a-card",{staticClass:"table-card",attrs:{bordered:!1}},[e("advance-table",{attrs:{columns:t.columns,"data-source":t.list,title:"登录日志",loading:t.loading,rowKey:"id",tableKey:"monitor-logininfo-Logininfo-table",isTableConfig:!1,isShowSetBtn:!1,size:"middle","format-conditions":!0,"row-selection":{selectedRowKeys:t.selectedRowKeys,onChange:t.onSelectChange},pagination:{current:t.queryParam.pageNum,pageSize:t.queryParam.pageSize,total:t.total,showSizeChanger:!0,showLessItems:!0,showQuickJumper:!0,showTotal:function(t,e){return"第 ".concat(e[0],"-").concat(e[1]," 条,总计 ").concat(t," 条")},onChange:t.changeSize,onShowSizeChange:t.onSizeChange}},on:{refresh:t.getList},scopedSlots:t._u([{key:"status",fn:function(a){a.text;var i=a.record;return e("span",{},[e("a-badge",{attrs:{status:"0"==i.status?"processing":"error",text:t.statusFormat(i)}})],1)}}])},[e("div",{staticClass:"table-operations",attrs:{slot:"button"},slot:"button"},[t.multiple?t._e():e("a-button",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["monitor:LoginLog:remove"],expression:"['monitor:LoginLog:remove']"}],attrs:{type:"danger",disabled:t.multiple},on:{click:t.handleDelete}},[e("a-icon",{attrs:{type:"delete"}}),t._v("删除 ")],1),e("a-button",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["monitor:LoginLog:remove"],expression:"['monitor:LoginLog:remove']"}],attrs:{type:"danger"},on:{click:t.handleClean}},[e("a-icon",{attrs:{type:"delete"}}),t._v("清空 ")],1),e("a-button",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["system:LoginLog:export"],expression:"['system:LoginLog:export']"}],on:{click:t.handleExport}},[e("a-icon",{attrs:{type:"download"}}),t._v("导出 ")],1)],1)])],1)],1)},o=[],r=(a("d81d"),a("b775"));function s(t){return Object(r["b"])({url:"/monitor/loginLog/page",method:"get",params:t})}function n(t){return Object(r["b"])({url:"/monitor/loginLog/"+t,method:"delete"})}function l(){return Object(r["b"])({url:"/monitor/loginLog/clean",method:"delete"})}function c(t){return Object(r["b"])({url:"/monitor/loginLog/export",method:"get",params:t})}var d=a("5d9e"),u={name:"LoginLog",components:{AdvanceTable:d["default"]},data:function(){return{list:[],selectedRowKeys:[],selectedRows:[],advanced:!1,single:!0,multiple:!0,ids:[],loading:!1,sunloading:!1,total:0,statusOptions:[],dateRange:[],labelCol:{span:6},wrapperCol:{span:18},queryParam:{pageNum:1,pageSize:10,ipaddr:null,userName:void 0,status:void 0},addModalRefName:"addModal",columns:[{title:"用户名称",dataIndex:"userName",align:"center"},{title:"登录地址",dataIndex:"ipaddr",align:"center"},{title:"登录地点",dataIndex:"loginLocation",align:"center"},{title:"浏览器",dataIndex:"browser",align:"center"},{title:"操作系统",dataIndex:"os",align:"center"},{title:"状态",dataIndex:"status",scopedSlots:{customRender:"status"},align:"center"},{title:"操作信息",dataIndex:"msg",align:"center"},{title:"登录时间",dataIndex:"loginTime",align:"center"}]}},filters:{},created:function(){var t=this;this.getList(),this.getDicts("sys_common_status").then((function(e){t.statusOptions=e.data}))},computed:{},watch:{},methods:{onSizeChange:function(t,e){this.queryParam.pageNum=1,this.queryParam.pageSize=e,this.getList()},getList:function(){var t=this;this.loading=!0,s(this.addDateRange(this.queryParam,this.dateRange)).then((function(e){t.list=e.data.list,t.total=e.data.total,t.loading=!1}))},statusFormat:function(t){return this.selectDictLabel(this.statusOptions,t.status)},handleQuery:function(){this.queryParam.pageNum=1,this.getList()},resetQuery:function(){this.dateRange=[],this.queryParam={pageNum:1,pageSize:10,ipaddr:null,userName:void 0,status:void 0},this.handleQuery()},onShowSizeChange:function(t,e){this.queryParam.pageSize=e,this.getList()},changeSize:function(t,e){this.queryParam.pageNum=t,this.queryParam.pageSize=e,this.getList()},onSelectChange:function(t,e){this.selectedRowKeys=t,this.selectedRows=e,this.ids=this.selectedRows.map((function(t){return t.id})),this.multiple=!t.length},toggleAdvanced:function(){this.advanced=!this.advanced},handleDelete:function(t){var e=this,a=t.id||this.ids;this.$confirm({title:"确认删除所选中数据?",onOk:function(){return n(a).then((function(){e.onSelectChange([],[]),e.getList(),e.$message.success("删除成功",3)}))},onCancel:function(){}})},handleClean:function(){var t=this;this.$confirm({title:"是否确认清空?",content:"此操作将会清空所有登录日志数据项",onOk:function(){return l().then((function(){t.onSelectChange([],[]),t.getList(),t.$message.success("清空成功",3)}))},onCancel:function(){}})},handleExport:function(){var t=this;this.$confirm({title:"是否确认导出?",content:"此操作将导出当前条件下所有数据而非选中数据",onOk:function(){return c(t.queryParam).then((function(e){t.download(e.msg),t.$message.success("导出成功",3)}))},onCancel:function(){}})}}},p=u,m=a("2877"),h=Object(m["a"])(p,i,o,!1,null,null,null);e["default"]=h.exports}}]);
@@ -1 +0,0 @@
1
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-e8ed6cd8"],{"01df5":function(e,t,o){},"09ff":function(e,t,o){},"0ef6":function(e,t,o){"use strict";o.r(t);var a=function(){var e=this,t=e._self._c;return t("div",{ref:"portaletDiv",staticClass:"module"},[e._m(0)])},n=[function(){var e=this,t=e._self._c;return t("div",{staticClass:"module-in"},[t("ul",{staticClass:"information02"},[t("li",[t("div",{staticClass:"sky"},[t("img",{attrs:{src:o("924b"),alt:""}})]),t("div",{staticClass:"information02-data"},[t("span",[e._v("50%")]),t("p",[e._v("压力仪表盘")])])]),t("li",[t("div",{staticClass:"sky"},[t("img",{attrs:{src:o("4781"),alt:""}})]),t("div",{staticClass:"information02-data"},[t("span",[e._v("28%")]),t("p",[e._v("完成率")])])])])])}],s={created:function(){},mounted:function(){this.$emit("setHeight",this.$refs.portaletDiv.offsetHeight)},watch:{},components:{},methods:{}},r=s,i=(o("d936"),o("2877")),c=Object(i["a"])(r,a,n,!1,null,"0c32075c",null);t["default"]=c.exports},"120c":function(e,t,o){"use strict";o.r(t);var a=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=o("5530"),r=o("5f6f"),i=Object(s["a"])({},r["default"]),c=i,d=o("2877"),l=Object(d["a"])(c,a,n,!1,null,null,null);t["default"]=l.exports},"12b1":function(e,t,o){"use strict";o.r(t);var a=function(){var e=this,t=e._self._c;return t("a-tabs",{attrs:{"tab-position":e.tabPosition},on:{change:e.changeTab},model:{value:e.activeKey,callback:function(t){e.activeKey=t},expression:"activeKey"}},e._l(e.list,(function(e){return t("a-tab-pane",{key:e.key,attrs:{tab:e.title}})})),1)},n=[],s={props:{defaultTabKey:{type:String,default:"title"},tabItems:{type:Array,default:function(){return[]}},platform:{type:String,default:"rakuten"}},data:function(){return{tabPosition:"left",list:[],tiktokList:[{key:"title",title:this.$t("view.item.list.itemTitle")},{key:"category",title:this.$t("view.attach.list.form.query3")},{key:"brand",title:this.$t("components.dyProduct.dyProduct.bran")},{key:"attribute",title:this.$t("components.dyProduct.dyProduct.attributes")},{key:"image",title:this.$t("view.item.list.itemImage")},{key:"itemInfo",title:this.$t("components.rakuten.tabOne.title")},{key:"sku",title:this.$t("view.bigcommerce.product.publish.table.skuInfo")},{key:"description",title:this.$t("view.alibaba.product.detail.sku.description")},{key:"sizeChart",title:this.$t("components.dyProduct.dyProduct.sizechart.image")},{key:"packageWeight",title:this.$t("components.dyProduct.package_weight.value")},{key:"packageSizeChart",title:this.$t("components.dyProduct.package_size_chart.value")},{key:"other",title:this.$t("components.rakuten.product.features")}],defaultList:[{key:"title",title:this.$t("view.item.list.itemTitle")},{key:"category",title:this.$t("view.attach.list.form.query3")},{key:"image",title:this.$t("view.item.list.itemImage")},{key:"itemInfo",title:this.$t("components.rakuten.tabOne.title")},{key:"sku",title:this.$t("view.bigcommerce.product.publish.table.skuInfo")},{key:"description",title:this.$t("view.alibaba.product.detail.sku.description")},{key:"other",title:this.$t("components.rakuten.product.features")}],activeKey:"title"}},created:function(){this.changeTab(this.defaultTabKey),this.tabItems.length>0?this.list=this.tabItems:"rakuten"===this.platform?this.list=this.defaultList:this.list=this.tiktokList},watch:{defaultTabKey:function(e,t){e&&e!==t&&this.changeTab(e)},tabItems:function(e,t){e&&e!==t&&(this.list=e)}},methods:{changeTab:function(e){this.activeKey=e,this.$emit("change",e)}}},r=s,i=o("2877"),c=Object(i["a"])(r,a,n,!1,null,null,null);t["default"]=c.exports},2419:function(e,t,o){"use strict";o("01df5")},2855:function(e,t,o){"use strict";o.r(t);var a=function(){var e=this,t=e._self._c;return t("a-result",{attrs:{title:"该功能尚未开发!"},scopedSlots:e._u([{key:"icon",fn:function(){return[t("a-icon",{attrs:{type:"smile",theme:"twoTone"}})]},proxy:!0},{key:"extra",fn:function(){return[t("a-button",{attrs:{type:"primary"},on:{click:e.returnIndex}},[e._v(" 返回工作台 ")])]},proxy:!0}])})},n=[],s={name:"Build",components:{},data:function(){return{}},filters:{},created:function(){},computed:{},watch:{},mounted:function(){},methods:{returnIndex:function(){this.$router.push({path:"/index"})}}},r=s,i=o("2877"),c=Object(i["a"])(r,a,n,!1,null,null,null);t["default"]=c.exports},"2f84":function(e,t,o){"use strict";o("606c")},4781:function(e,t,o){e.exports=o.p+"img/img02.9ac07e73.png"},"4a49":function(e,t,o){"use strict";o.r(t);var a=function(){var e=this,t=e._self._c;return t("a-spin",{attrs:{spinning:e.loading,tip:"加载中..."}},[t("div",{style:"height:"+e.height},[t("iframe",{staticStyle:{width:"100%",height:"100%"},attrs:{src:e.src,frameborder:"no",scrolling:"auto"}})])])},n=[],s={name:"Swagger",components:{},data:function(){return{src:"/admin/swagger-ui.html",height:document.documentElement.clientHeight-120+"px;",loading:!0}},filters:{},created:function(){},computed:{},watch:{},mounted:function(){var e=this;setTimeout((function(){e.loading=!1}),230);var t=this;window.onresize=function(){t.height=document.documentElement.clientHeight-94.5+"px;"}},methods:{}},r=s,i=o("2877"),c=Object(i["a"])(r,a,n,!1,null,null,null);t["default"]=c.exports},"576e":function(e,t,o){e.exports=o.p+"img/chart_sm.8001ec98.png"},"5f6f":function(e,t,o){"use strict";o.r(t),t["default"]={name:"spyder",components:{},created:function(){},computed:{},data:function(){return{}},methods:{}}},"606c":function(e,t,o){},"924b":function(e,t,o){e.exports=o.p+"img/img01.319f61f4.png"},"92c5":function(e,t,o){},"945a":function(e,t,o){"use strict";o.r(t);o("a9e3"),o("b64b");var a=function(){var e=this,t=e._self._c;return t("span",[e.open?t("AntModal",{attrs:{visible:e.open,"modal-title":e.formTitle,"adjust-size":!0,modalHeight:e.modalHeight,modalWidth:e.modalWidth,"confirm-loading":e.confirmNSLoading},on:{cancel:e.cancelModal,ok:e.okNetSeaGoodInfo}},[t("div",{attrs:{slot:"content"},slot:"content"},[t("div",[t("div",[t("goodsIdList",{staticStyle:{display:"none"},attrs:{goodsIds:e.goodsIds,goodsList:e.goodList},on:{"update:goodsList":function(t){e.goodList=t},"update:goods-list":function(t){e.goodList=t},back:e.initNetsea}})],1),t("a-row",{attrs:{type:"flex"}},[t("a-col",[t("leftTabItem",{attrs:{defaultTabKey:e.formEditKey},on:{change:e.changeLeftTab}})],1),t("a-col",{style:{overflowY:"auto",overflowX:"hidden",height:.78*Number(e.modalHeight)+"px"},attrs:{flex:"1"}},[e._l(e.netseaGoodInfoList,(function(o,a){return t("div",{key:a,staticStyle:{"padding-bottom":"2rem"}},[t("div",{staticStyle:{"margin-bottom":"1rem"}},[t("kandengGoodsOne",{attrs:{goodsList:e.goodList,goodsId:a}})],1),t("a-collapse",{model:{value:e.plActicty,callback:function(t){e.plActicty=t},expression:"plActicty"}},[t("a-collapse-panel",{attrs:{header:a+e.$t("view.item.form.pl.form.params.label")}},[t("div",{staticStyle:{padding:"1rem 0"}},[t("a-form-model",e._b({ref:"netseaGoodInfoForm"+a,refInFor:!0,attrs:{model:o,rules:e.netseaGoodInfoRules}},"a-form-model",{labelCol:{span:3},wrapperCol:{span:20}},!1),["title"===e.formEditKey?t("div",[t("a-form-model-item",{ref:"product_name",refInFor:!0,attrs:{label:e.$t("view.item.list.itemTitle"),help:e.$t("components.netsea.product.catchcopy.limit"),prop:"product_name"}},[t("a-input",{attrs:{id:"product_name"+a},model:{value:o.product_name,callback:function(t){e.$set(o,"product_name",t)},expression:"netseaGoodInfo.product_name"}})],1)],1):e._e(),"category"===e.formEditKey?t("div",[t("a-form-model-item",{attrs:{label:e.$t("components.netesa.product.category")}},[t("a-input",{attrs:{disabled:""},model:{value:o.category_id,callback:function(t){e.$set(o,"category_id",t)},expression:"netseaGoodInfo.category_id"}})],1),t("a-form-model-item",{attrs:{label:e.$t("components.netesa.product.category")}},[e.netseaGenereArray[a]&&e.netseaGenereArray[a].netseaGenereList?t("a-select",{staticStyle:{width:"180px"},on:{change:function(t){e.selectNetSeaGenre(t,0,a)}},model:{value:e.firstCatId[a],callback:function(t){e.$set(e.firstCatId,a,t)},expression:"firstCatId[good_id]"}},e._l(e.netseaGenereArray[a].netseaGenereList,(function(o,a){return t("a-select-option",{key:a,attrs:{value:o.cat_id}},[e._v(" "+e._s(o.cat_name)+" ")])})),1):e._e(),e.netseaGenereArray[a]&&e.netseaGenereArray[a].netseaGenereList1.length?t("a-select",{staticStyle:{width:"180px"},on:{change:function(t){e.selectNetSeaGenre(t,1,a)}},model:{value:e.secondCatId[a],callback:function(t){e.$set(e.secondCatId,a,t)},expression:"secondCatId[good_id]"}},e._l(e.netseaGenereArray[a].netseaGenereList1,(function(o,a){return t("a-select-option",{key:a,attrs:{value:o.cat_id}},[e._v(" "+e._s(o.cat_name)+" ")])})),1):e._e(),e.netseaGenereArray[a]&&e.netseaGenereArray[a].netseaGenereList2.length?t("a-select",{staticStyle:{width:"180px"},on:{change:function(t){e.selectNetSeaGenre(t,2,a)}},model:{value:e.thirdCatId[a],callback:function(t){e.$set(e.thirdCatId,a,t)},expression:"thirdCatId[good_id]"}},e._l(e.netseaGenereArray[a].netseaGenereList2,(function(o,a){return t("a-select-option",{key:a,attrs:{value:o.cat_id}},[e._v(" "+e._s(o.cat_name)+" ")])})),1):e._e()],1)],1):e._e(),"itemInfo"===e.formEditKey?t("div",[t("a-form-model-item",{attrs:{label:e.$t("components.netsea.product.manage.code")}},[t("a-input",{attrs:{placeholder:e.$t("components.netsea.product.manage.code.placeholder"),disabled:""},model:{value:o.product_id,callback:function(t){e.$set(o,"product_id",t)},expression:"netseaGoodInfo.product_id"}})],1),t("a-form-model-item",{attrs:{label:e.$t("components.netsea.product.sale.status")}},[t("a-radio-group",{model:{value:o.sales_status_code,callback:function(t){e.$set(o,"sales_status_code",t)},expression:"netseaGoodInfo.sales_status_code"}},[t("a-radio",{attrs:{value:"on_sale"}},[e._v(" "+e._s(e.$t("components.netsea.product.sale.on_sale"))+" ")]),t("a-radio",{attrs:{value:"end_of_sale"}},[e._v(" "+e._s(e.$t("components.netsea.product.sale.end_of_sale"))+" ")])],1)],1),t("a-form-model-item",{attrs:{label:e.$t("components.netsea.product.sale.method")}},[t("a-radio-group",{model:{value:o.sales_method_code,callback:function(t){e.$set(o,"sales_method_code",t)},expression:"netseaGoodInfo.sales_method_code"}},[t("a-radio",{attrs:{value:"normal"}},[e._v(" "+e._s(e.$t("components.netsea.product.sale.method.normal"))+" ")]),t("a-radio",{attrs:{value:"reserve"}},[e._v(" "+e._s(e.$t("components.netsea.product.sale.method.reserve"))+" ")]),t("a-radio",{attrs:{value:"payment_only"}},[e._v(" "+e._s(e.$t("components.netsea.product.sale.method.payment_only"))+" ")])],1)],1),t("a-form-model-item",{attrs:{label:e.$t("components.netsea.product.publish.date")}},[t("a-date-picker",{attrs:{"show-time":""},model:{value:o.publish_period_start,callback:function(t){e.$set(o,"publish_period_start",t)},expression:"netseaGoodInfo.publish_period_start"}}),t("a-date-picker",{attrs:{"show-time":""},model:{value:o.publish_period_end,callback:function(t){e.$set(o,"publish_period_end",t)},expression:"netseaGoodInfo.publish_period_end"}})],1),t("a-form-model-item",{attrs:{label:e.$t("components.netsea.product.price.closed.flag")}},[t("a-radio-group",{model:{value:o.price_closed_flag,callback:function(t){e.$set(o,"price_closed_flag",t)},expression:"netseaGoodInfo.price_closed_flag"}},[t("a-radio",{attrs:{value:!0}},[e._v(" "+e._s(e.$t("components.netsea.product.price.closed.flag.true"))+" ")]),t("a-radio",{attrs:{value:!1}},[e._v(" "+e._s(e.$t("components.netsea.product.price.closed.flag.false"))+" ")])],1)],1),t("a-form-model-item",{attrs:{label:e.$t("components.netsea.product.shipping.fee")}},[t("a-radio-group",{model:{value:o.product_ship_setting_code,callback:function(t){e.$set(o,"product_ship_setting_code",t)},expression:"netseaGoodInfo.product_ship_setting_code"}},[t("a-radio",{attrs:{value:"store"}},[e._v(" "+e._s(e.$t("components.netsea.product.shipping.fee.shop_setting"))+" ")]),t("a-radio",{attrs:{value:"product"}},[e._v(" "+e._s(e.$t("components.netsea.product.shipping.fee.product.one"))+" "),t("a-input",{staticStyle:{width:"200px"},model:{value:o.product_ship_fee,callback:function(t){e.$set(o,"product_ship_fee",t)},expression:"netseaGoodInfo.product_ship_fee"}})],1)],1)],1),t("a-form-model-item",{attrs:{label:e.$t("components.netsea.product.product.discount_code")}},[t("a-radio-group",{on:{change:function(t){return e.discountSwitch(a)}},model:{value:e.netProductDiscountCodeList[a],callback:function(t){e.$set(e.netProductDiscountCodeList,a,t)},expression:"netProductDiscountCodeList[good_id]"}},[t("a-radio",{attrs:{value:!1}},[e._v(" "+e._s(e.$t("components.netsea.product.product.discount_code.false"))+" ")]),t("a-radio",{attrs:{value:!0}},[e._v(" "+e._s(e.$t("components.netsea.product.product.discount_code.true"))+" "),e.netProductDiscountCodeList[a]?t("a-input-number",{staticStyle:{width:"100px"},model:{value:o.product_discount.product_discount_rate,callback:function(t){e.$set(o.product_discount,"product_discount_rate",t)},expression:"netseaGoodInfo.product_discount.product_discount_rate"}}):e._e(),e._v(" % "),e.netProductDiscountCodeList[a]?t("a-date-picker",{attrs:{format:"YYYY-MM-DD HH:00:00","show-time":""},model:{value:o.product_discount.product_discount_period_start,callback:function(t){e.$set(o.product_discount,"product_discount_period_start",t)},expression:"netseaGoodInfo.product_discount.product_discount_period_start"}}):e._e(),e.netProductDiscountCodeList[a]?t("a-date-picker",{attrs:{format:"YYYY-MM-DD HH:00:00","show-time":""},model:{value:o.product_discount.product_discount_period_end,callback:function(t){e.$set(o.product_discount,"product_discount_period_end",t)},expression:"netseaGoodInfo.product_discount.product_discount_period_end"}}):e._e()],1)],1)],1),t("a-form-model-item",{attrs:{label:e.$t("components.netsea.product.volume_discount"),help:e.$t("components.netsea.product.volume_discount.info")}},[t("a-radio-group",{model:{value:o.volume_discount_target_flag,callback:function(t){e.$set(o,"volume_discount_target_flag",t)},expression:"netseaGoodInfo.volume_discount_target_flag"}},[t("a-radio",{attrs:{value:!0}},[e._v(e._s(e.$t("components.netsea.product.volume_discount.true")))]),t("a-radio",{attrs:{value:!1}},[e._v(e._s(e.$t("components.netsea.product.volume_discount.false")))])],1)],1)],1):e._e(),"image"===e.formEditKey?t("div",[t("a-form-model-item",{attrs:{label:e.$t("components.netsea.product.image.license")}},[t("a-radio-group",{model:{value:o.image_repost_flag,callback:function(t){e.$set(o,"image_repost_flag",t)},expression:"netseaGoodInfo.image_repost_flag"}},[t("a-radio",{attrs:{value:!0}},[e._v(" "+e._s(e.$t("components.netsea.product.image.license.true"))+" ")]),t("a-radio",{attrs:{value:!1}},[e._v(" "+e._s(e.$t("components.netsea.product.image.license.false"))+" ")])],1)],1),t("a-form-model-item",{attrs:{label:e.$t("view.item.list.form.image_url"),help:e.$t("view.item.form.image.limit")}},[t("div",{staticStyle:{"margin-bottom":"10px"}},e._l(o.images,(function(o,n){return t("div",{directives:[{name:"show",rawName:"v-show",value:o.image_url,expression:"image.image_url"}],key:n,staticStyle:{"margin-bottom":"20px",width:"100px",height:"100px","margin-left":"10px",float:"left"}},[t("img",{staticStyle:{width:"100px",height:"100px"},attrs:{src:o.image_url}}),t("br"),e.imageSizeArr&&Object.keys(e.imageSizeArr)?t("div",{style:{textAlign:"center",color:e.imageSizeArr[o.image_no]>500?"#f00":"#000"}},[e._v(" "+e._s(e.imageSizeArr[o.image_no])+"K "),t("a-icon",{attrs:{type:"delete"},on:{click:function(t){return e.deleteImage(o.image_no,a)}}})],1):e._e()])})),0)])],1):e._e(),"description"===e.formEditKey?t("div",[t("a-form-model-item",{attrs:{label:e.$t("components.netsea.product.catchcopy"),help:e.$t("components.netsea.product.catchcopy.limit"),prop:"catchcopy"}},[t("a-input",{attrs:{placeholder:e.$t("components.netsea.product.catchcopy.placeholder"),id:"catchcopy"+a},model:{value:o.catchcopy,callback:function(t){e.$set(o,"catchcopy",t)},expression:"netseaGoodInfo.catchcopy"}})],1),t("a-form-model-item",{attrs:{label:e.$t("components.netsea.product.comment"),help:e.$t("components.netsea.product.comment.info"),prop:"comment"}},[t("a-textarea",{attrs:{id:"comment"+a},model:{value:o.comment,callback:function(t){e.$set(o,"comment",t)},expression:"netseaGoodInfo.comment"}})],1),t("a-form-model-item",{attrs:{label:e.$t("components.netsea.product.description"),help:e.$t("components.netsea.product.description.info"),prop:"description"}},[t("a-textarea",{attrs:{id:"description_for_consumer"+a},model:{value:o.description_for_consumer,callback:function(t){e.$set(o,"description_for_consumer",t)},expression:"netseaGoodInfo.description_for_consumer"}})],1),t("a-form-model-item",{attrs:{label:e.$t("components.netsea.product.size"),help:e.$t("components.netsea.product.size.info"),prop:"size"}},[t("a-textarea",{attrs:{id:"size"+a},model:{value:o.size,callback:function(t){e.$set(o,"size",t)},expression:"netseaGoodInfo.size"}})],1),t("a-form-model-item",{attrs:{label:e.$t("components.netsea.product.spec"),help:e.$t("components.netsea.product.spec.info"),prop:"spec"}},[t("a-textarea",{attrs:{id:"spec"+a},model:{value:o.spec,callback:function(t){e.$set(o,"spec",t)},expression:"netseaGoodInfo.spec"}})],1),t("a-form-model-item",{attrs:{label:e.$t("components.netsea.product.consumer"),help:e.$t("components.netsea.product.consumer.info"),prop:"spec_for_consumer"}},[t("a-textarea",{attrs:{id:"spec_for_consumer"+a},model:{value:o.spec_for_consumer,callback:function(t){e.$set(o,"spec_for_consumer",t)},expression:"netseaGoodInfo.spec_for_consumer"}})],1),t("a-form-model-item",{attrs:{label:e.$t("components.netsea.product.notes"),help:e.$t("components.netsea.product.notes.info"),prop:"notes"}},[t("a-textarea",{attrs:{id:"notes"+a},model:{value:o.notes,callback:function(t){e.$set(o,"notes",t)},expression:"netseaGoodInfo.notes"}})],1)],1):e._e(),"sku"===e.formEditKey?t("div",[t("a-form-model-item",{attrs:{label:e.$t("components.netsea.product.product_set")}},[t("a-table",{attrs:{columns:e.productSetColumns,"data-source":o.product_set,"row-key":function(e){return e.set_no},pagination:!1},scopedSlots:e._u([{key:"set_branch_code",fn:function(o,n){return t("span",{},[t("a-input",{staticStyle:{width:"100px"},attrs:{name:"set_branch_code"+a},model:{value:n.set_branch_code,callback:function(t){e.$set(n,"set_branch_code",t)},expression:"record.set_branch_code"}})],1)}},{key:"set_label",fn:function(o,n){return t("span",{},[t("a-input",{staticStyle:{width:"100px"},attrs:{name:"set_label"+a},model:{value:n.set_label,callback:function(t){e.$set(n,"set_label",t)},expression:"record.set_label"}})],1)}},{key:"set_reference_price",fn:function(o,n){return t("span",{},[t("a-input",{staticStyle:{width:"100px"},attrs:{name:"set_reference_price"+a},model:{value:n.set_reference_price,callback:function(t){e.$set(n,"set_reference_price",t)},expression:"record.set_reference_price"}})],1)}},{key:"set_price",fn:function(o,n){return t("span",{},[t("a-input",{staticStyle:{width:"100px"},attrs:{name:"set_price"+a},model:{value:n.set_price,callback:function(t){e.$set(n,"set_price",t)},expression:"record.set_price"}})],1)}},{key:"set_sku_number",fn:function(o,a){return t("span",{},[t("a-input",{staticStyle:{width:"100px"},attrs:{name:"set_sku_number"},model:{value:a.set_sku_number,callback:function(t){e.$set(a,"set_sku_number",t)},expression:"record.set_sku_number"}})],1)}},{key:"set_stock_number",fn:function(o,a){return t("span",{},[t("a-input",{staticStyle:{width:"100px"},attrs:{name:"set_stock_number"},model:{value:a.set_stock_number,callback:function(t){e.$set(a,"set_stock_number",t)},expression:"record.set_stock_number"}})],1)}}],null,!0)})],1)],1):e._e(),"other"===e.formEditKey?t("div",[t("a-form-model-item",{attrs:{label:e.$t("components.netsea.product.delivery_terms"),help:e.$t("components.netsea.product.delivery_terms.info"),prop:"delivery_terms"}},[t("a-textarea",{attrs:{id:"delivery_terms"+a},model:{value:o.delivery_terms,callback:function(t){e.$set(o,"delivery_terms",t)},expression:"netseaGoodInfo.delivery_terms"}})],1),t("a-form-model-item",{attrs:{label:e.$t("components.netsea.product.return_setting_code")}},[t("a-radio-group",{model:{value:o.return_setting_code,callback:function(t){e.$set(o,"return_setting_code",t)},expression:"netseaGoodInfo.return_setting_code"}},[t("a-radio",{attrs:{value:"allow"}},[e._v(e._s(e.$t("components.netsea.product.return_setting_code.allow")))]),t("a-radio",{attrs:{value:"deny"}},[e._v(e._s(e.$t("components.netsea.product.return_setting_code.deny")))]),t("a-radio",{attrs:{value:"negotiable"}},[e._v(e._s(e.$t("components.netsea.product.return_setting_code.negotiable")))]),t("a-radio",{attrs:{value:"none"}},[e._v(e._s(e.$t("components.netsea.product.return_setting_code.none")))])],1)],1),t("a-form-model-item",{attrs:{label:e.$t("components.netsea.product.search_tag"),help:e.$t("components.netsea.product.search_tag.info")}},e._l(o.search_tags,(function(o,n){return t("div",{key:n,staticStyle:{"margin-bottom":"10px"}},[e._v(" "+e._s(e.$t("components.netsea.product.search_tag"))+e._s(n+1)+": "),t("a-input",{staticStyle:{width:"200px"},attrs:{name:"search_tag_text"+a},model:{value:o.search_tag_text,callback:function(t){e.$set(o,"search_tag_text",t)},expression:"tag.search_tag_text"}})],1)})),0),t("a-form-model-item",{attrs:{label:e.$t("components.netsea.product.chartlet")}},[t("a-radio-group",{model:{value:o.stamp_id,callback:function(t){e.$set(o,"stamp_id",t)},expression:"netseaGoodInfo.stamp_id"}},[t("a-radio",{attrs:{value:0}},[e._v(e._s(e.$t("components.netsea.product.chartlet.0")))]),t("a-radio",{attrs:{value:1}},[e._v(e._s(e.$t("components.netsea.product.chartlet.1")))]),t("a-radio",{attrs:{value:3}},[e._v(e._s(e.$t("components.netsea.product.chartlet.3")))]),t("a-radio",{attrs:{value:4}},[e._v(e._s(e.$t("components.netsea.product.chartlet.4")))]),t("a-radio",{attrs:{value:5}},[e._v(e._s(e.$t("components.netsea.product.chartlet.5")))]),t("a-radio",{attrs:{value:6}},[e._v(e._s(e.$t("components.netsea.product.chartlet.6")))]),t("a-radio",{attrs:{value:7}},[e._v(e._s(e.$t("components.netsea.product.chartlet.7")))]),t("a-radio",{attrs:{value:8}},[e._v(e._s(e.$t("components.netsea.product.chartlet.8")))])],1)],1),t("a-form-model-item",{attrs:{label:e.$t("components.netsea.product.jan_code"),help:e.$t("components.netsea.product.jan_code.info"),prop:"jan_code"}},[t("a-input",{attrs:{id:"jan_code"+a},model:{value:o.jan_code,callback:function(t){e.$set(o,"jan_code",t)},expression:"netseaGoodInfo.jan_code"}})],1),t("a-form-model-item",{attrs:{label:e.$t("components.netsea.product.maker_code"),help:e.$t("components.netsea.product.maker_code.info"),prop:"maker_code"}},[t("a-input",{attrs:{id:"maker_code"+a},model:{value:o.maker_code,callback:function(t){e.$set(o,"maker_code",t)},expression:"netseaGoodInfo.maker_code"}})],1),t("a-form-model-item",{attrs:{label:e.$t("components.netsea.product.reference_price")}},[t("a-select",{model:{value:o.reference_price_type_code,callback:function(t){e.$set(o,"reference_price_type_code",t)},expression:"netseaGoodInfo.reference_price_type_code"}},[t("a-select-option",{attrs:{value:"open_price"}},[e._v(" "+e._s(e.$t("components.netsea.product.reference_price.open_price"))+" ")]),t("a-select-option",{attrs:{value:"maker_price"}},[e._v(" "+e._s(e.$t("components.netsea.product.reference_price.maker_price"))+" ")]),t("a-select-option",{attrs:{value:"catalog_price"}},[e._v(" "+e._s(e.$t("components.netsea.product.reference_price.catalog_price"))+" ")]),t("a-select-option",{attrs:{value:"setting_price"}},[e._v(" "+e._s(e.$t("components.netsea.product.reference_price.setting_price"))+" ")])],1)],1),t("a-form-model-item",{attrs:{label:e.$t("components.netsea.product.tax_rate")}},[t("a-radio-group",{model:{value:o.consumption_tax_type_code,callback:function(t){e.$set(o,"consumption_tax_type_code",t)},expression:"netseaGoodInfo.consumption_tax_type_code"}},[t("a-radio",{attrs:{value:"normal"}},[e._v(e._s(e.$t("components.netsea.product.tax_rate.normal")))]),t("a-radio",{attrs:{value:"reduced"}},[e._v(e._s(e.$t("components.netsea.product.tax_rate.reduced")))]),t("a-radio",{attrs:{value:"none"}},[e._v(e._s(e.$t("components.netsea.product.tax_rate.none")))])],1)],1)],1):e._e()])],1)])],1)],1)})),t("div",[e.plDataFields[e.formEditKey]?t("div",[e._v(e._s(e.$t("view.item.form.pl.params.label")))]):e._e(),t("a-form-model",e._b({ref:"TemplateDataForm",attrs:{model:e.TemplateData,rules:e.netseaGoodInfoRules}},"a-form-model",{labelCol:{span:3},wrapperCol:{span:20}},!1),["description"===e.formEditKey?t("div",[t("a-form-model-item",{attrs:{label:e.$t("components.netsea.product.catchcopy"),help:e.$t("components.netsea.product.catchcopy.limit"),prop:"catchcopy"}},[t("a-input",{attrs:{placeholder:e.$t("components.netsea.product.catchcopy.placeholder")},model:{value:e.TemplateData.catchcopy,callback:function(t){e.$set(e.TemplateData,"catchcopy",t)},expression:"TemplateData.catchcopy"}})],1),t("a-form-model-item",{attrs:{label:e.$t("components.netsea.product.comment"),help:e.$t("components.netsea.product.comment.info"),prop:"comment"}},[t("a-textarea",{attrs:{id:"comment"},model:{value:e.TemplateData.comment,callback:function(t){e.$set(e.TemplateData,"comment",t)},expression:"TemplateData.comment"}})],1),t("a-form-model-item",{attrs:{label:e.$t("components.netsea.product.description"),help:e.$t("components.netsea.product.description.info"),prop:"description"}},[t("a-textarea",{attrs:{id:"description_for_consumer"},model:{value:e.TemplateData.description_for_consumer,callback:function(t){e.$set(e.TemplateData,"description_for_consumer",t)},expression:"TemplateData.description_for_consumer"}})],1),t("a-form-model-item",{attrs:{label:e.$t("components.netsea.product.size"),help:e.$t("components.netsea.product.size.info"),prop:"size"}},[t("a-textarea",{attrs:{id:"size"},model:{value:e.TemplateData.size,callback:function(t){e.$set(e.TemplateData,"size",t)},expression:"TemplateData.size"}})],1),t("a-form-model-item",{attrs:{label:e.$t("components.netsea.product.spec"),help:e.$t("components.netsea.product.spec.info"),prop:"spec"}},[t("a-textarea",{attrs:{id:"spec"},model:{value:e.TemplateData.spec,callback:function(t){e.$set(e.TemplateData,"spec",t)},expression:"TemplateData.spec"}})],1),t("a-form-model-item",{attrs:{label:e.$t("components.netsea.product.consumer"),help:e.$t("components.netsea.product.consumer.info"),prop:"spec_for_consumer"}},[t("a-textarea",{attrs:{id:"spec_for_consumer"},model:{value:e.TemplateData.spec_for_consumer,callback:function(t){e.$set(e.TemplateData,"spec_for_consumer",t)},expression:"TemplateData.spec_for_consumer"}})],1),t("a-form-model-item",{attrs:{label:e.$t("components.netsea.product.notes"),help:e.$t("components.netsea.product.notes.info"),prop:"notes"}},[t("a-textarea",{attrs:{id:"notes"},model:{value:e.TemplateData.notes,callback:function(t){e.$set(e.TemplateData,"notes",t)},expression:"TemplateData.notes"}})],1)],1):e._e(),"itemInfo"===e.formEditKey?t("div",[t("a-form-model-item",{attrs:{label:e.$t("components.netsea.product.sale.status")}},[t("a-radio-group",{model:{value:e.TemplateData.sales_status_code,callback:function(t){e.$set(e.TemplateData,"sales_status_code",t)},expression:"TemplateData.sales_status_code"}},[t("a-radio",{attrs:{value:"on_sale"}},[e._v(" "+e._s(e.$t("components.netsea.product.sale.on_sale"))+" ")]),t("a-radio",{attrs:{value:"end_of_sale"}},[e._v(" "+e._s(e.$t("components.netsea.product.sale.end_of_sale"))+" ")])],1)],1),t("a-form-model-item",{attrs:{label:e.$t("components.netsea.product.sale.method")}},[t("a-radio-group",{model:{value:e.TemplateData.sales_method_code,callback:function(t){e.$set(e.TemplateData,"sales_method_code",t)},expression:"TemplateData.sales_method_code"}},[t("a-radio",{attrs:{value:"normal"}},[e._v(" "+e._s(e.$t("components.netsea.product.sale.method.normal"))+" ")]),t("a-radio",{attrs:{value:"reserve"}},[e._v(" "+e._s(e.$t("components.netsea.product.sale.method.reserve"))+" ")]),t("a-radio",{attrs:{value:"payment_only"}},[e._v(" "+e._s(e.$t("components.netsea.product.sale.method.payment_only"))+" ")])],1)],1),t("a-form-model-item",{attrs:{label:e.$t("components.netsea.product.publish.date")}},[t("a-date-picker",{attrs:{"show-time":""},model:{value:e.TemplateData.publish_period_start,callback:function(t){e.$set(e.TemplateData,"publish_period_start",t)},expression:"TemplateData.publish_period_start"}}),t("a-date-picker",{attrs:{"show-time":""},model:{value:e.TemplateData.publish_period_end,callback:function(t){e.$set(e.TemplateData,"publish_period_end",t)},expression:"TemplateData.publish_period_end"}})],1),t("a-form-model-item",{attrs:{label:e.$t("components.netsea.product.price.closed.flag")}},[t("a-radio-group",{model:{value:e.TemplateData.price_closed_flag,callback:function(t){e.$set(e.TemplateData,"price_closed_flag",t)},expression:"TemplateData.price_closed_flag"}},[t("a-radio",{attrs:{value:!0}},[e._v(" "+e._s(e.$t("components.netsea.product.price.closed.flag.true"))+" ")]),t("a-radio",{attrs:{value:!1}},[e._v(" "+e._s(e.$t("components.netsea.product.price.closed.flag.false"))+" ")])],1)],1),t("a-form-model-item",{attrs:{label:e.$t("components.netsea.product.shipping.fee")}},[t("a-radio-group",{model:{value:e.TemplateData.product_ship_setting_code,callback:function(t){e.$set(e.TemplateData,"product_ship_setting_code",t)},expression:"TemplateData.product_ship_setting_code"}},[t("a-radio",{attrs:{value:"store"}},[e._v(" "+e._s(e.$t("components.netsea.product.shipping.fee.shop_setting"))+" ")]),t("a-radio",{attrs:{value:"product"}},[e._v(" "+e._s(e.$t("components.netsea.product.shipping.fee.product.one"))+" "),t("a-input",{staticStyle:{width:"200px"},model:{value:e.TemplateData.product_ship_fee,callback:function(t){e.$set(e.TemplateData,"product_ship_fee",t)},expression:"TemplateData.product_ship_fee"}})],1)],1)],1),t("a-form-model-item",{attrs:{label:e.$t("components.netsea.product.product.discount_code")}},[t("a-radio-group",{model:{value:e.TemplateData.netProductDiscountCode,callback:function(t){e.$set(e.TemplateData,"netProductDiscountCode",t)},expression:"TemplateData.netProductDiscountCode"}},[t("a-radio",{attrs:{value:!1}},[e._v(" "+e._s(e.$t("components.netsea.product.product.discount_code.false"))+" ")]),t("a-radio",{attrs:{value:!0}},[e._v(" "+e._s(e.$t("components.netsea.product.product.discount_code.true"))+" "),e.TemplateData.netProductDiscountCode?t("a-input-number",{staticStyle:{width:"100px"},model:{value:e.TemplateData.product_discount.product_discount_rate,callback:function(t){e.$set(e.TemplateData.product_discount,"product_discount_rate",t)},expression:"TemplateData.product_discount.product_discount_rate"}}):e._e(),e._v(" % "),e.TemplateData.netProductDiscountCode?t("a-date-picker",{attrs:{format:"YYYY-MM-DD HH:00:00","show-time":""},model:{value:e.TemplateData.product_discount.product_discount_period_start,callback:function(t){e.$set(e.TemplateData.product_discount,"product_discount_period_start",t)},expression:"TemplateData.product_discount.product_discount_period_start"}}):e._e(),e.TemplateData.netProductDiscountCode?t("a-date-picker",{attrs:{format:"YYYY-MM-DD HH:00:00","show-time":""},model:{value:e.TemplateData.product_discount.product_discount_period_end,callback:function(t){e.$set(e.TemplateData.product_discount,"product_discount_period_end",t)},expression:"TemplateData.product_discount.product_discount_period_end"}}):e._e()],1)],1)],1),t("a-form-model-item",{attrs:{label:e.$t("components.netsea.product.volume_discount"),help:e.$t("components.netsea.product.volume_discount.info")}},[t("a-radio-group",{model:{value:e.TemplateData.volume_discount_target_flag,callback:function(t){e.$set(e.TemplateData,"volume_discount_target_flag",t)},expression:"TemplateData.volume_discount_target_flag"}},[t("a-radio",{attrs:{value:!0}},[e._v(e._s(e.$t("components.netsea.product.volume_discount.true")))]),t("a-radio",{attrs:{value:!1}},[e._v(e._s(e.$t("components.netsea.product.volume_discount.false")))])],1)],1)],1):e._e(),"other"===e.formEditKey?t("div",[t("a-form-model-item",{attrs:{label:e.$t("components.netsea.product.delivery_terms"),help:e.$t("components.netsea.product.delivery_terms.info"),prop:"delivery_terms"}},[t("a-textarea",{attrs:{id:"delivery_terms"},model:{value:e.TemplateData.delivery_terms,callback:function(t){e.$set(e.TemplateData,"delivery_terms",t)},expression:"TemplateData.delivery_terms"}})],1),t("a-form-model-item",{attrs:{label:e.$t("components.netsea.product.return_setting_code")}},[t("a-radio-group",{model:{value:e.TemplateData.return_setting_code,callback:function(t){e.$set(e.TemplateData,"return_setting_code",t)},expression:"TemplateData.return_setting_code"}},[t("a-radio",{attrs:{value:"allow"}},[e._v(e._s(e.$t("components.netsea.product.return_setting_code.allow")))]),t("a-radio",{attrs:{value:"deny"}},[e._v(e._s(e.$t("components.netsea.product.return_setting_code.deny")))]),t("a-radio",{attrs:{value:"negotiable"}},[e._v(e._s(e.$t("components.netsea.product.return_setting_code.negotiable")))]),t("a-radio",{attrs:{value:"none"}},[e._v(e._s(e.$t("components.netsea.product.return_setting_code.none")))])],1)],1),t("a-form-model-item",{attrs:{label:e.$t("components.netsea.product.search_tag"),help:e.$t("components.netsea.product.search_tag.info")}},e._l(e.TemplateData.search_tags,(function(o,a){return t("div",{key:a,staticStyle:{"margin-bottom":"10px"}},[e._v(" "+e._s(e.$t("components.netsea.product.search_tag"))+e._s(a+1)+": "),t("a-input",{staticStyle:{width:"200px"},attrs:{name:"search_tag_text"},model:{value:o.search_tag_text,callback:function(t){e.$set(o,"search_tag_text",t)},expression:"tag.search_tag_text"}})],1)})),0),t("a-form-model-item",{attrs:{label:e.$t("components.netsea.product.chartlet")}},[t("a-radio-group",{model:{value:e.TemplateData.stamp_id,callback:function(t){e.$set(e.TemplateData,"stamp_id",t)},expression:"TemplateData.stamp_id"}},[t("a-radio",{attrs:{value:0}},[e._v(e._s(e.$t("components.netsea.product.chartlet.0")))]),t("a-radio",{attrs:{value:1}},[e._v(e._s(e.$t("components.netsea.product.chartlet.1")))]),t("a-radio",{attrs:{value:3}},[e._v(e._s(e.$t("components.netsea.product.chartlet.3")))]),t("a-radio",{attrs:{value:4}},[e._v(e._s(e.$t("components.netsea.product.chartlet.4")))]),t("a-radio",{attrs:{value:5}},[e._v(e._s(e.$t("components.netsea.product.chartlet.5")))]),t("a-radio",{attrs:{value:6}},[e._v(e._s(e.$t("components.netsea.product.chartlet.6")))]),t("a-radio",{attrs:{value:7}},[e._v(e._s(e.$t("components.netsea.product.chartlet.7")))]),t("a-radio",{attrs:{value:8}},[e._v(e._s(e.$t("components.netsea.product.chartlet.8")))])],1)],1),t("a-form-model-item",{attrs:{label:e.$t("components.netsea.product.jan_code"),help:e.$t("components.netsea.product.jan_code.info"),prop:"jan_code"}},[t("a-input",{attrs:{id:"jan_code"},model:{value:e.TemplateData.jan_code,callback:function(t){e.$set(e.TemplateData,"jan_code",t)},expression:"TemplateData.jan_code"}})],1),t("a-form-model-item",{attrs:{label:e.$t("components.netsea.product.maker_code"),help:e.$t("components.netsea.product.maker_code.info"),prop:"maker_code"}},[t("a-input",{attrs:{id:"maker_code"},model:{value:e.TemplateData.maker_code,callback:function(t){e.$set(e.TemplateData,"maker_code",t)},expression:"TemplateData.maker_code"}})],1),t("a-form-model-item",{attrs:{label:e.$t("components.netsea.product.reference_price")}},[t("a-select",{model:{value:e.TemplateData.reference_price_type_code,callback:function(t){e.$set(e.TemplateData,"reference_price_type_code",t)},expression:"TemplateData.reference_price_type_code"}},[t("a-select-option",{attrs:{value:"open_price"}},[e._v(" "+e._s(e.$t("components.netsea.product.reference_price.open_price"))+" ")]),t("a-select-option",{attrs:{value:"maker_price"}},[e._v(" "+e._s(e.$t("components.netsea.product.reference_price.maker_price"))+" ")]),t("a-select-option",{attrs:{value:"catalog_price"}},[e._v(" "+e._s(e.$t("components.netsea.product.reference_price.catalog_price"))+" ")]),t("a-select-option",{attrs:{value:"setting_price"}},[e._v(" "+e._s(e.$t("components.netsea.product.reference_price.setting_price"))+" ")])],1)],1),t("a-form-model-item",{attrs:{label:e.$t("components.netsea.product.tax_rate")}},[t("a-radio-group",{model:{value:e.TemplateData.consumption_tax_type_code,callback:function(t){e.$set(e.TemplateData,"consumption_tax_type_code",t)},expression:"TemplateData.consumption_tax_type_code"}},[t("a-radio",{attrs:{value:"normal"}},[e._v(e._s(e.$t("components.netsea.product.tax_rate.normal")))]),t("a-radio",{attrs:{value:"reduced"}},[e._v(e._s(e.$t("components.netsea.product.tax_rate.reduced")))]),t("a-radio",{attrs:{value:"none"}},[e._v(e._s(e.$t("components.netsea.product.tax_rate.none")))])],1)],1)],1):e._e(),t("div",{staticStyle:{"margin-bottom":"1rem"}},[t("a-button",{on:{click:function(t){return e.piCopyData(e.formEditKey)}}},[e._v(e._s(e.$t("view.item.form.pl.params.save")))])],1)])],1)],2)],1)],1)]),t("div",{attrs:{slot:"footer"},slot:"footer"},[t("a-button",{on:{click:e.cancelModal}},[e._v(e._s(e.$t("components.imagetext.translation.confirm.cancel")))]),t("a-button",{attrs:{type:"primary",loading:e.confirmNSLoading},on:{click:e.okNetSeaGoodInfo}},[e._v(e._s(e.$t("view.item.form.pl.save.button")))]),t("a-button",{attrs:{type:"success",loading:e.confirmNSLoading},on:{click:e.okFabu}},[e._v(e._s(e.$t("view.item.form.pl.fabu.button")))])],1)]):e._e()],1)},n=[],s=o("5530"),r=o("c7eb"),i=o("1da1"),c=(o("d3b7"),o("3ca3"),o("ddb0"),o("25f0"),o("b680"),o("d81d"),o("fb6a"),o("159b"),o("7db0"),o("a026")),d=o("c1df"),l=o.n(d),u=o("8caa"),m=Object(c["b"])((function(){return Promise.resolve().then(o.bind(null,"2dd7"))})),p=Object(c["b"])((function(){return o.e("lang-zh-TW-service~f63b1681").then(o.bind(null,"16f2"))})),_=Object(c["b"])((function(){return o.e("chunk-e8ed6cd8").then(o.bind(null,"12b1"))})),f=Object(c["b"])((function(){return o.e("chunk-d1be4e4e").then(o.bind(null,"5f19"))})),g={name:"rakutenAddProduct",props:{goodsIds:{type:Array,default:function(){return[]}}},data:function(){return{formTitle:this.$t("components.dyProduct.dyProduct.title"),formEditKey:"title",open:!1,modalWidth:"1350",modalHeight:"680",goodList:[],netseaGoodInfoList:{},netseaShop:null,imageSizeArr:{},netProductDiscountCodeList:{},netseaGenereArray:{},netseaGoodInfoRules:{product_name:[{required:!0,message:this.$t("view.item.list.form.placeholder.title"),trigger:"blur"},{max:50,message:this.$t("view.item.form.item_name.maxlength"),trigger:"change"}],catchcopy:[{max:50,message:this.$t("view.item.form.catchcopy.maxlength"),trigger:"change"}],comment:[{max:1e3,message:this.$t("view.item.form.comment.maxlength"),trigger:"change"}],description:[{max:5e3,message:this.$t("view.item.form.description_for_consumer.maxlength"),trigger:"change"}],size:[{max:1e3,message:this.$t("view.item.form.size.maxlength"),trigger:"change"}],spec:[{max:1e3,message:this.$t("view.item.form.spec.maxlength"),trigger:"change"}],spec_for_consumer:[{max:5e3,message:this.$t("view.item.form.spec_for_consumer.maxlength"),trigger:"change"}],notes:[{max:1e3,message:this.$t("view.item.form.notes.maxlength"),trigger:"change"}],delivery_terms:[{max:50,message:this.$t("view.item.form.delivery_terms.maxlength"),trigger:"change"}],jan_code:[{max:13,message:this.$t("view.item.form.jan_code.maxlength"),trigger:"change"}],maker_code:[{max:30,message:this.$t("view.item.form.maker_code.maxlength"),trigger:"change"}]},categoryHierarchyList:{},firstCatId:{},secondCatId:{},thirdCatId:{},productSetColumns:[{title:this.$t("components.netsea.product.product_set.set_no"),dataIndex:"set_no",key:"set_no"},{title:this.$t("components.netsea.product.set_branch_code"),dataIndex:"set_branch_code",key:"set_branch_code",scopedSlots:{customRender:"set_branch_code"}},{title:this.$t("components.netsea.product.product_set.set_label"),dataIndex:"set_label",key:"set_label",scopedSlots:{customRender:"set_label"}},{title:this.$t("components.netsea.product.product_set.set_reference_price"),dataIndex:"set_reference_price",key:"set_reference_price",scopedSlots:{customRender:"set_reference_price"}},{title:this.$t("components.netsea.product.product_set.set_price"),dataIndex:"set_price",key:"set_price",scopedSlots:{customRender:"set_price"}},{title:this.$t("components.netsea.product.product_set.set_sku_number"),dataIndex:"set_sku_number",key:"set_sku_number",scopedSlots:{customRender:"set_sku_number"}},{title:this.$t("components.netsea.product.product_set.set_stock_number"),dataIndex:"set_stock_number",key:"set_stock_number",scopedSlots:{customRender:"set_stock_number"}}],confirmNSLoading:!1,plDataFields:{description:["catchcopy","comment","description_for_consumer","size","spec","spec_for_consumer","notes"],itemInfo:["sales_status_code","sales_method_code","publish_period_start","publish_period_end","product_ship_setting_code","product_ship_fee"],other:["delivery_terms","return_setting_code","search_tags","stamp_id","jan_code","maker_code","reference_price_type_code","consumption_tax_type_code"]},TemplateData:{product_discount:{product_discount_rate:"",product_discount_period_start:"",product_discount_period_end:""},search_tags:[{search_tag_no:1,search_tag_text:""},{search_tag_no:2,search_tag_text:""},{search_tag_no:3,search_tag_text:""},{search_tag_no:4,search_tag_text:""},{search_tag_no:5,search_tag_text:""}]},plActicty:[]}},methods:{changeLeftTab:function(e){this.formEditKey=e},cancelModal:function(){this.open=!1},openModal:function(){this.modalHeight=(.9*window.innerHeight).toFixed(0).toString(),this.modalWidth=(.8*window.innerWidth).toFixed(0).toString(),this.open=!0},initLoad:function(e){e&&(this.netseaGoodInfoList={},this.netseaShop=e,this.openModal())},initNetsea:function(e){var t=this;Promise.all(this._.map(e,(function(e,o){return t.netseaPublication(e)}))).then((function(e){t.$message.destroy()}))},netseaPublication:function(e,t){var o=this,a=this,n={};return n.good_id=e.good_id,n.app_key=this.netseaShop.app_key,a.netseaGenereArray[e.good_id]={netseaGenereList:[],netseaGenereList1:[],netseaGenereList2:[]},Object(u["d"])(n).then((function(t){if(0===t.code){a.netseaGoodInfoList[e.good_id]=t.product_info,a.getParentCategory(a.netseaGoodInfoList[e.good_id].category_id,e.good_id),a.imageSizeArr={};var n=[];return a.netseaGoodInfoList[e.good_id].images&&a.netseaGoodInfoList[e.good_id].images.map((function(e){e.image_url&&n.push(a.getImageSizeInKB(e.image_url).then((function(t){return a.imageSizeArr[e.image_no]=t.toFixed(2),t})))})),Promise.all(n).then((function(){a.imageSizeArr=Object.assign({},a.imageSizeArr)})),a.netseaGoodInfoList[e.good_id].publish_period_start&&(a.netseaGoodInfoList[e.good_id].publish_period_start=new Date(1e3*a.netseaGoodInfoList[e.good_id].publish_period_start).toISOString().slice(0,19)),a.netseaGoodInfoList[e.good_id].publish_period_end&&(a.netseaGoodInfoList[e.good_id].publish_period_end=new Date(1e3*a.netseaGoodInfoList[e.good_id].publish_period_end).toISOString().slice(0,19)),a.netseaGoodInfoList[e.good_id].product_discout?(a.netProductDiscountCodeList[e.good_id]=!0,a.netseaGoodInfoList[e.good_id].product_discount.product_discount_period_start=a.netseaGoodInfoList[e.good_id].product_discount.product_discount_period_start?new Date(1e3*a.netseaGoodInfoList[e.good_id].product_discount.product_discount_period_start).toISOString().slice(0,19):"",a.netseaGoodInfoList[e.good_id].product_discount.product_discount_period_end=a.netseaGoodInfoList[e.good_id].product_discount.product_discount_period_end?new Date(1e3*a.netseaGoodInfoList[e.good_id].product_discount.product_discount_period_end).toISOString().slice(0,19):""):(a.netProductDiscountCodeList[e.good_id]=!1,a.netseaGoodInfoList[e.good_id].product_discount={product_discount_rate:"",product_discount_period_start:"",product_discount_period_end:""}),a.app_key=o.netseaShop.app_key,a.getNetSeaGenere(0,0,e.good_id),a.$set(o,"netseaGoodInfoList",Object.assign({},a.netseaGoodInfoList)),o.netseaShop.loading=!1,t}}))},getParentCategory:function(e,t){var o=this,a=this;this.categoryHierarchyList[t]||(this.categoryHierarchyList[t]={level1:{},level2:{},level3:{}}),Object(u["b"])({cat_id:e}).then((function(e){0===e.code&&(e.data.forEach((function(a){if(0===a.p_cat_id)o.categoryHierarchyList[t].level1=a;else{var n=e.data.find((function(e){return e.cat_id===a.p_cat_id}));n&&0===n.p_cat_id?o.categoryHierarchyList[t].level2=a:o.categoryHierarchyList[t].level3=a}})),o.firstCatId[t]=o.categoryHierarchyList[t].level1.cat_id,o.secondCatId[t]=o.categoryHierarchyList[t].level2.cat_id,a.getNetSeaGenere(o.firstCatId[t],1,t),o.thirdCatId[t]=o.categoryHierarchyList[t].level3.cat_id,a.getNetSeaGenere(o.secondCatId[t],2,t),o.$set(o,"categoryHierarchyList",Object.assign({},o.categoryHierarchyList)),o.$set(o,"firstCatId",Object.assign({},o.firstCatId)),o.$set(o,"secondCatId",Object.assign({},o.secondCatId)),o.$set(o,"thirdCatId",Object.assign({},o.thirdCatId)))}))},getNetSeaGenere:function(e,t,o){var a=this,n=this,s={};return s.cat_id=e,Object(u["a"])(s).then((function(e){if(0===e.code)switch(t){case 0:n.netseaGenereArray[o].netseaGenereList=e.data;break;case 1:n.netseaGenereArray[o].netseaGenereList1=e.data;break;case 2:n.netseaGenereArray[o].netseaGenereList2=e.data;break}return a.$set(a,"netseaGenereArray",Object.assign({},a.netseaGenereArray)),e}))},selectNetSeaGenre:function(e,t,o){var a=this,n={};switch(t){case 0:a.netseaGenereArray[o].netseaGenereList1=[],a.netseaGenereArray[o].netseaGenereList2=[],a.netseaGenereArray[o].netseaGenereList3=[],a.secondCatId[o]=0,a.thirdCatId[o]=0,n=a.netseaGenereArray[o].netseaGenereList.find((function(t){return t.cat_id===e}));break;case 1:a.netseaGenereArray[o].netseaGenereList2=[],a.netseaGenereArray[o].netseaGenereList3=[],a.thirdCatId[o]=0,n=a.netseaGenereArray[o].netseaGenereList1.find((function(t){return t.cat_id===e}));break;case 2:a.netseaGenereArray[o].netseaGenereList3=[],n=a.netseaGenereArray[o].netseaGenereList2.find((function(t){return t.cat_id===e}));break}n&&(0===n.p_cat_id?a.getNetSeaGenere(n.cat_id,1,o).then((function(e){a.netseaGenereArray[o].netseaGenereList&&(a.secondCatId[o]=a.netseaGenereArray[o].netseaGenereList1[0].cat_id,a.getNetSeaGenere(a.secondCatId[o],2,o).then((function(e){a.netseaGenereArray[o].netseaGenereList1&&(a.thirdCatId[o]=a.netseaGenereArray[o].netseaGenereList2[0].cat_id,a.netseaGoodInfoList[o].category_id=a.thirdCatId[o])})))})):n.p_cat_id===a.firstCatId[o]?a.getNetSeaGenere(n.cat_id,2,o).then((function(e){a.netseaGenereArray[o].netseaGenereList2&&(a.thirdCatId[o]=a.netseaGenereArray[o].netseaGenereList2[0].cat_id,a.netseaGoodInfoList[o].category_id=a.thirdCatId[o])})):n.p_cat_id===a.secondCatId[o]&&(a.thirdCatId[o]=n.cat_id,a.secondCatId[o]&&(a.netseaGoodInfoList[o].category_id=a.thirdCatId[o])))},discountSwitch:function(e){this.$set(this,"netProductDiscountCodeList",Object.assign({},this.netProductDiscountCodeList))},getImageSizeInKB:function(e){return Object(i["a"])(Object(r["a"])().mark((function t(){return Object(r["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.prev=0,t.abrupt("return",Object(u["c"])({url:e}).then((function(e){if(e.volume)return e.volume})));case 4:t.prev=4,t.t0=t["catch"](0);case 6:case"end":return t.stop()}}),t,null,[[0,4]])})))()},okNetSeaGoodInfo:function(){var e=this,t=this;t.confirmNSLoading=!0;var o=[];this.goodsIds.map((function(e,a){t.$refs["netseaGoodInfoForm"+e]&&t.$refs["netseaGoodInfoForm"+e][0]&&o.push(new Promise((function(o,a){try{t.$refs["netseaGoodInfoForm"+e][0].validate((function(n,s){n?o("success"):Object.keys(s)&&Object.keys(s)[0]&&a(new Error(t.$t("view.item.list.good_id")+e+s[Object.keys(s)[0]][0].message))}))}catch(n){a(new Error(n))}})))})),Promise.all(o).then((function(o){var a=[],n=e._.map(e.netseaGoodInfoList,(function(o,n){var s={};if(s.data=JSON.parse(JSON.stringify(o)),o.publish_period_start&&(s.data.publish_period_start=new Date(l()(s.data.publish_period_start).format("YYYY-MM-DD HH:mm:ss")).getTime()/1e3),o.publish_period_end&&(s.data.publish_period_end=new Date(l()(s.data.publish_period_end).format("YYYY-MM-DD HH:mm:ss")).getTime()/1e3),t.netProductDiscountCodeList[n]){if(!s.data.product_discount.product_discount_rate)return t.$message.error(t.$t("view.item.form.product_discount_rate.notnull")),"itemInfo";try{s.data.product_discount.product_discount_period_start=new Date(l()(s.data.product_discout.product_discount_period_start).format("YYYY-MM-DD HH:00:00")).getTime()/1e3,s.data.product_discount.product_discount_period_end=new Date(l()(s.data.product_discout.product_discount_period_end).format("YYYY-MM-DD HH:00:00")).getTime()/1e3}catch(c){}}else delete s.data.product_discount;if(s.data.good_id=n,!s.data.product_name)return t.$message.error(t.$t("view.item.form.item_name.notnull")),t.confirmNSLoading=!1,"title";if(!e.isWithinMaxLength(s.data.product_name,50))return t.$message.error(t.$t("view.item.form.item_name.maxlength")),document.getElementById("product_name"+n)&&document.getElementById("product_name"+n).focus(),t.confirmNSLoading=!1,"title";if(s.data.catchcopy&&!e.isWithinMaxLength(s.data.catchcopy,50))return t.$message.error(t.$t("view.item.form.catchcopy.maxlength")),document.getElementById("catchcopy"+n)&&document.getElementById("catchcopy"+n).focus(),t.confirmNSLoading=!1,"category";if(s.data.comment&&!e.isWithinMaxLength(s.data.comment,1e3))return t.$message.error(t.$t("view.item.form.comment.maxlength")),document.getElementById("comment"+n)&&document.getElementById("comment"+n).focus(),t.confirmNSLoading=!1,"description";if(s.data.description_for_consumer&&!e.isWithinMaxLength(s.data.description_for_consumer,5e3))return t.$message.error(t.$t("view.item.form.description_for_consumer.maxlength")),document.getElementById("description_for_consumer"+n)&&document.getElementById("description_for_consumer"+n).focus(),t.confirmNSLoading=!1,"description";if(s.data.size&&!e.isWithinMaxLength(s.data.size,1e3))return t.$message.error(t.$t("view.item.form.size.maxlength")),document.getElementById("size"+n)&&document.getElementById("size"+n).focus(),t.confirmNSLoading=!1,"description";if(s.data.spec&&!e.isWithinMaxLength(s.data.spec,1e3))return t.$message.error(t.$t("view.item.form.spec.maxlength")),document.getElementById("spec"+n)&&document.getElementById("spec"+n).focus(),t.confirmNSLoading=!1,"description";if(s.data.spec_for_consumer&&!e.isWithinMaxLength(s.data.spec_for_consumer,5e3))return t.$message.error(t.$t("view.item.form.spec_for_consumer.maxlength")),document.getElementById("spec_for_consumer"+n)&&document.getElementById("spec_for_consumer"+n).focus(),t.confirmNSLoading=!1,"description";if(s.data.notes&&!e.isWithinMaxLength(s.data.notes,5e3))return t.$message.error(t.$t("view.item.form.notes.maxlength")),document.getElementById("notes"+n)&&document.getElementById("notes"+n).focus(),t.confirmNSLoading=!1,"description";if(s.data.delivery_terms&&!e.isWithinMaxLength(s.data.delivery_terms,50))return t.$message.error(t.$t("view.item.form.delivery_terms.maxlength")),document.getElementById("delivery_terms"+n)&&document.getElementById("delivery_terms"+n).focus(),t.confirmNSLoading=!1,"other";if(s.data.search_tags.length>0)for(var r=0;r<s.data.search_tags.length;r++)if(!e.isWithinMaxLength(s.data.search_tags[r].search_tag_text,10))return t.$message.error(t.$t("view.item.form.search_tags.maxlength")),document.getElementsByName("search_tag_text"+n)[r]&&document.getElementsByName("search_tag_text"+n)[r].focus(),t.confirmNSLoading=!1,"other";if(s.data.jan_code&&!e.isWithinMaxLength(s.data.jan_code,13))return t.$message.error(t.$t("view.item.form.jan_code.maxlength")),document.getElementById("jan_code"+n)&&document.getElementById("jan_code"+n).focus(),t.confirmNSLoading=!1,"other";if(s.data.maker_code&&!e.isWithinMaxLength(s.data.maker_code,30))return t.$message.error(t.$t("view.item.form.maker_code.maxlength")),document.getElementById("maker_code"+n)&&document.getElementById("maker_code"+n).focus(),t.confirmNSLoading=!1,"other";if(s.data.product_set.length>0)for(var i=0;i<s.data.product_set.length;i++){if(!e.isWithinMaxLength(s.data.product_set[i].set_branch_code,20))return t.$message.error(t.$t("view.item.form.set_branch_code.maxlength")),document.getElementsByName("set_branch_code"+n)[i]&&document.getElementsByName("set_branch_code"+n)[i].focus(),t.confirmNSLoading=!1,"sku";if(!e.isWithinMaxLength(s.data.product_set[i].set_label,30))return t.$message.error(t.$t("view.item.form.set_label.maxlength")),document.getElementsByName("set_label"+n)[i]&&document.getElementsByName("set_label"+n)[i].focus(),t.confirmNSLoading=!1,"sku";if(!s.data.product_set[i].set_reference_price)return t.$message.error(t.$t("view.item.form.set_reference_price.notnull")),document.getElementsByName("set_reference_price"+n)[i]&&document.getElementsByName("set_reference_price"+n)[i].focus(),t.confirmNSLoading=!1,"sku";if(isNaN(s.data.product_set[i].set_reference_price))return t.$message.error(t.$t("view.item.form.set_reference_price.number")),document.getElementsByName("set_reference_price"+n)[i]&&document.getElementsByName("set_reference_price"+n)[i].focus(),t.confirmNSLoading=!1,"sku";if(!s.data.product_set[i].set_price)return t.$message.error(t.$t("view.item.form.set_price.notnull")),document.getElementsByName("set_price"+n)[i]&&document.getElementsByName("set_price"+n)[i].focus(),t.confirmNSLoading=!1,"sku";if(isNaN(s.data.product_set[i].set_price))return t.$message.error(t.$t("view.item.form.set_price.number")),document.getElementsByName("set_price"+n)[i]&&document.getElementsByName("set_price"+n)[i].focus(),t.confirmNSLoading=!1,"sku"}a.push(s.data)}));n=t._.compact(n),a.length>0&&0===n.length?Object(u["f"])({data:a,app_key:t.netseaShop.app_key}).then((function(e){0===e.code?(t.confirmNSLoading=!1,t.$message.success(e.message)):(t.confirmNSLoading=!1,t.$message.error(e.message))})).catch((function(e){t.confirmNSLoading=!1,t.$message.error(e)})):n.length>0&&(t.confirmNSLoading=!1,e.formEditKey=n[0])})).catch((function(e){t.confirmNSLoading=!1,t.$message.error(e)}))},isWithinMaxLength:function(e,t){for(var o=0,a=0;a<e.length;a++)o+=1;return o<=t},deleteImage:function(e,t){this.netseaGoodInfoList[t].images.map((function(t){t.image_no===e&&(t.image_url="")})),this.$set(this,"netseaGoodInfoList",Object.assign({},this.netseaGoodInfoList))},okFabu:function(){var e=this;this.confirmNSLoading=!0,Object(u["e"])({good_ids:this.goodsIds,app_key:this.netseaShop.app_key}).then((function(t){0===t.code?e.$message.success(t.message):e.$message.error(t.message),e.confirmNSLoading=!1})).catch((function(t){e.confirmNSLoading=!1,e.$message.error(t)}))},piCopyData:function(e){var t=this,o=this;this._.map(this.netseaGoodInfoList,(function(a,n){"itemInfo"===e&&t.TemplateData["product_ship_setting_code"]&&(o.netProductDiscountCodeList[n]=!0,o.netseaGoodInfoList[n].product_discount=o.TemplateData.product_discount),o.plDataFields[e].map((function(e){o.netseaGoodInfoList[n][e]=o.TemplateData[e]}))})),this.$set(this,"netseaGoodInfoList",Object.assign({},this.netseaGoodInfoList))}},components:{AntModal:m,goodsIdList:p,leftTabItem:_,kandengGoodsOne:f}},h=Object(s["a"])({},g),v=h,b=o("2877"),y=Object(b["a"])(v,a,n,!1,null,null,null);t["default"]=y.exports},"963d":function(e,t,o){"use strict";o("09ff")},ac2a:function(e,t,o){"use strict";o.r(t);var a=function(){var e=this,t=e._self._c;return t("div",{staticClass:"main"},[t("div",{staticStyle:{"text-align":"right"}},[t("select-lang",{attrs:{currentLangText:!0,defaultLang:e.routerLang}})],1),e.form.role_name&&!e.LoginStatus?t("div",[t("div",[e._v(e._s(e.form.role_name+e.$t("view.user.register"))+":")])]):e._e(),t("a-form-model",{ref:"form",staticClass:"user-layout-login",attrs:{id:"formLogin",model:e.form,rules:e.rules}},[e.LoginStatus?t("a-tabs",{staticClass:"loginTitle",on:{change:function(t){e.loginType=t}}},[t("a-tab-pane",{key:"1",attrs:{tab:e.$t(e.LoginStatus?"login.modal.tab1":"view.user.register.tab1")}}),t("a-tab-pane",{key:"2",attrs:{tab:e.$t(e.LoginStatus?"login.modal.tab2":"view.user.register.tab2")}})],1):e._e(),t("a-form-model-item",{attrs:{prop:"username"}},[t("a-input",{attrs:{size:"large",placeholder:e.$t("view.config.email.add.username.label")},model:{value:e.form.username,callback:function(t){e.$set(e.form,"username",t)},expression:"form.username"}},[t("a-icon",{style:{color:"rgba(0,0,0,.25)"},attrs:{slot:"prefix",type:"user"},slot:"prefix"})],1)],1),t("a-form-model-item",{attrs:{prop:"password"}},[t("a-input-password",{attrs:{size:"large",placeholder:e.$t("view.login.email.add.password.label")},model:{value:e.form.password,callback:function(t){e.$set(e.form,"password",t)},expression:"form.password"}},[t("a-icon",{style:{color:"rgba(0,0,0,.25)"},attrs:{slot:"prefix",type:"lock"},slot:"prefix"})],1)],1),e.LoginStatus?e._e():t("a-form-model-item",{attrs:{prop:"realname"}},[t("a-input",{attrs:{size:"large",placeholder:e.$t("view.config.email.add.realname.label")},model:{value:e.form.realname,callback:function(t){e.$set(e.form,"realname",t)},expression:"form.realname"}},[t("a-icon",{style:{color:"rgba(0,0,0,.25)"},attrs:{slot:"prefix",type:"user"},slot:"prefix"})],1)],1),e.LoginStatus?e._e():t("a-form-model-item",{attrs:{prop:"mobile"}},[t("a-input",{attrs:{size:"large",placeholder:e.$t("view.config.email.add.mobile.label")},model:{value:e.form.mobile,callback:function(t){e.$set(e.form,"mobile",t)},expression:"form.mobile"}},[t("a-icon",{style:{color:"rgba(0,0,0,.25)"},attrs:{slot:"prefix",type:"phone"},slot:"prefix"})],1)],1),e.LoginStatus?e._e():t("a-form-model-item",{attrs:{prop:"email"}},[t("a-input",{attrs:{size:"large",placeholder:e.$t("view.config.email.add.email.label")},model:{value:e.form.email,callback:function(t){e.$set(e.form,"email",t)},expression:"form.email"}},[t("a-icon",{style:{color:"rgba(0,0,0,.25)"},attrs:{slot:"prefix",type:"mail"},slot:"prefix"})],1)],1),e.LoginStatus&&e.captchaOnOff?t("a-row",{attrs:{gutter:16}},[t("a-col",{staticClass:"gutter-row",attrs:{span:16}},[t("a-form-model-item",{attrs:{prop:"code"}},[t("a-input",{attrs:{size:"large",type:"text",autocomplete:"off",placeholder:e.$t("login.modal.code")},model:{value:e.form.code,callback:function(t){e.$set(e.form,"code",t)},expression:"form.code"}},[t("a-icon",{style:{color:"rgba(0,0,0,.25)"},attrs:{slot:"prefix",type:"security-scan"},slot:"prefix"})],1)],1)],1),t("a-col",{staticClass:"gutter-row",attrs:{span:8}},[t("img",{staticClass:"getCaptcha",attrs:{src:e.codeUrl},on:{click:e.getCode}})])],1):e._e(),e.LoginStatus?e._e():t("a-row",{attrs:{gutter:16}},[t("a-col",{staticClass:"gutter-row",attrs:{lg:18,sm:18,md:18,xs:16}},[t("a-form-model-item",{attrs:{prop:"code"}},[t("a-input",{attrs:{size:"large",type:"text",autocomplete:"off",placeholder:e.$t("view.modal.email.code.placeholder")},model:{value:e.form.code,callback:function(t){e.$set(e.form,"code",t)},expression:"form.code"}},[t("a-icon",{style:{color:"rgba(0,0,0,.25)"},attrs:{slot:"prefix",type:"security-scan"},slot:"prefix"})],1)],1)],1),t("a-col",{staticClass:"gutter-row",attrs:{lg:6,sm:6,md:6,xs:8}},[t("a-button",{staticClass:"login-button",staticStyle:{padding:"0 0px"},attrs:{type:"primary",loading:e.codeLoading,size:"large"},on:{click:e.getEmailCode}},[e._v(e._s(e.codeLoading?e.$t("view.modal.code.time",{time:e.currentCodeTime}):e.$t("view.modal.email.code")))])],1)],1),e.LoginStatus?e._e():t("a-form-model-item",{attrs:{prop:"distribution_code"}},[t("a-input",{attrs:{size:"large",placeholder:e.$t("view.config.add.code.label")},model:{value:e.form.distribution_code,callback:function(t){e.$set(e.form,"distribution_code",t)},expression:"form.distribution_code"}},[t("a-icon",{style:{color:"rgba(0,0,0,.25)"},attrs:{slot:"prefix",type:"security-scan"},slot:"prefix"})],1)],1),e.LoginStatus?t("a-form-item",{staticStyle:{"margin-top":"3rem"}},[t("a-button",{staticClass:"login-button",attrs:{size:"large",type:"primary",htmlType:"submit",loading:e.logining,disabled:e.logining},on:{click:e.handleSubmit}},[e._v(" "+e._s((e.loginType,e.$t("view.modal.login")))+" ")])],1):e._e(),e.LoginStatus?e._e():t("a-form-item",{staticStyle:{"margin-top":"0.25rem","margin-bottom":"1rem"}},[t("a-button",{staticClass:"login-button",attrs:{size:"large",type:"primary",htmlType:"submit",loading:e.logining,disabled:e.logining},on:{click:e.handleRegister}},[e._v(" "+e._s((e.loginType,e.$t("view.user.register")))+" ")])],1),t("a-row",[t("a-col",{staticStyle:{"text-align":"right"},attrs:{lg:24}},[t("a-space",[t("div",{staticClass:"icons-list"},[e.LoginStatus?t("a-button",{attrs:{type:"link"},on:{click:e.goRegister}},[e._v(e._s(e.$t("view.user.register")))]):e._e(),e.LoginStatus?e._e():t("a-button",{attrs:{type:"link"},on:{click:e.goLogin}},[e._v(e._s(e.$t("view.modal.login")))])],1)])],1)],1)],1)],1)},n=[],s=o("5530"),r=(o("d3b7"),o("2f62")),i=o("7ded"),c=o("04b3"),d=o("da7d"),l={components:{allIcon:c["a"],SelectLang:d["a"]},data:function(){return{prefixCls:"ant-pro-global-header-index-action",loginType:"1",allIcon:c["a"],codeUrl:"",form:{username:"",password:"",code:"",cid:"123"},captchaOnOff:!0,rules:{username:[{required:!0,message:this.$t("view.config.email.add.username.placeholder"),trigger:"blur"}],password:[{required:!0,message:this.$t("view.config.email.add.password.placeholder"),trigger:"blur"}],realname:[{required:!1,message:this.$t("view.config.email.add.realname.placeholder"),trigger:"blur"}],mobile:[{required:!1,message:this.$t("view.config.email.add.mobile.placeholder"),trigger:"blur"}],email:[{required:!1,message:this.$t("view.config.email.add.email.placeholder"),trigger:"blur"}],code:[{required:!0,message:this.$t("login.modal.code.relue"),trigger:"blur"}],cid:[{required:!0,message:"验证码ID不能为空",trigger:"blur"}]},logining:!1,LoginStatus:!0,CodeTime:null,codeLoading:!1,currentCodeTime:0,routerLang:""}},created:function(){var e;this.getCode(),null!==(e=this.$route.query)&&void 0!==e&&e.lang&&(this.routerLang=this.$route.query.lang),this.$route.query.role&&(this.form.role=this.$route.query.role,this.form.role_name=this.$route.query.role_name),"1"===this.$route.query.register&&this.goRegister(),this.$route.query.ref_code&&(this.form.distribution_code=this.$route.query.ref_code),this.$route.query.token&&this.loginSuccess()},beforeDestroy:function(){clearInterval(this.CodeTime)},methods:Object(s["a"])(Object(s["a"])({getCode:function(){var e=this;Object(i["c"])().then((function(t){e.captchaOnOff=void 0===t.captchaOnOff||t.captchaOnOff,e.captchaOnOff&&(e.codeUrl=t.base64,e.form.cid=t.cid)}))},applyLicense:function(){window.open("/applyLicense","_blank")}},Object(r["b"])(["Login","Logout","SubLogin"])),{},{handleSubmit:function(){var e=this;this.$notification.close("loginExpireTip"),this.logining=!0,this.$refs.form.validate((function(t){t?"1"===e.loginType?e.Login(e.form).then((function(t){return e.loginSuccess(t)})).catch((function(t){return e.requestFailed(t)})).finally((function(){e.logining=!1})):e.SubLogin(e.form).then((function(t){return e.loginSuccess(t)})).catch((function(t){return e.requestFailed(t)})).finally((function(){e.logining=!1})):(setTimeout((function(){e.logining=!1}),600),e.captchaOnOff&&e.getCode())}))},loginSuccess:function(e){this.$router.push({path:"/"})},requestFailed:function(){this.logining=!1,this.form.code=void 0,this.getCode()},handleCloseLoginError:function(){},goRegister:function(){this.rules.email[0].required=!0,this.LoginStatus=!1},goLogin:function(){this.rules.email[0].required=!1,this.LoginStatus=!0},handleRegister:function(){var e=this;this.$refs.form.validate((function(t){t?Object(i["k"])(e.form).then((function(t){0===t.code&&(e.$message.success(e.$t("view.modal.register.succes")),e.goLogin())})):setTimeout((function(){e.logining=!1}),600)}))},getEmailCode:function(){var e=this;this.codeLoading||this.$refs.form.validateField("email",(function(t){t||Object(i["b"])({email:e.form.email}).then((function(t){0===t.code&&(e.codeLoading=!0,e.getCodeTime(),e.$message.success(e.$t("view.modal.code.succes")))}))}))},getCodeTime:function(){var e=this,t=30;this.currentCodeTime=t,this.CodeTime=setInterval((function(){t--,e.currentCodeTime=t,t<=0&&(e.codeLoading=!1,clearInterval(e.CodeTime))}),1e3)}})},u=l,m=(o("963d"),o("2419"),o("2877")),p=Object(m["a"])(u,a,n,!1,null,"4a5236c2",null);t["default"]=p.exports},aee6:function(e,t,o){"use strict";o.r(t);var a=function(){var e=this,t=e._self._c;return t("span",[t("a-tabs",{on:{change:e.changeTabGoods},model:{value:e.activeTab,callback:function(t){e.activeTab=t},expression:"activeTab"}},e._l(e.list,(function(e){return t("a-tab-pane",{key:e.good_id,attrs:{tab:e.title}})})),1)],1)},n=[],s=o("5530"),r=o("c7eb"),i=o("1da1"),c=(o("d3b7"),o("3ca3"),o("ddb0"),o("d81d"),o("aabf")),d={name:"GoodsListTab",props:{goodsIdList:{type:Array,default:function(){return[]}}},data:function(){return{activeTab:0,list:{}}},watch:{goodsIdList:function(e,t){e!==t&&this.getGoodsList()}},created:function(){this.getGoodsList()},methods:{changeTab:function(e){},getGoodsList:function(){var e=this;return Object(i["a"])(Object(r["a"])().mark((function t(){return Object(r["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,Promise.all(e.goodsIdList.map(function(){var t=Object(i["a"])(Object(r["a"])().mark((function t(o,a){var n;return Object(r["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return n={good_id:o},t.next=3,Object(c["l"])(n);case 3:e.list[o]=t.sent;case 4:case"end":return t.stop()}}),t)})));return function(e,o){return t.apply(this,arguments)}}()));case 2:e._.size(e.list)>1&&(e.activeTab=e.list[e.goodsIdList[0]].good_id,e.$emit("change",e.list[e.goodsIdList[0]]));case 3:case"end":return t.stop()}}),t)})))()},changeTabGoods:function(e){this.activeTab=e,this.$emit("change",this.list[e])}}},l=Object(s["a"])({},d),u=l,m=o("2877"),p=Object(m["a"])(u,a,n,!1,null,null,null);t["default"]=p.exports},d936:function(e,t,o){"use strict";o("92c5")},da84e:function(e,t,o){"use strict";o.r(t);var a=function(){var e=this,t=e._self._c;return t("div",{ref:"portaletDiv",staticClass:"module module01"},[e._m(0),t("a-icon",{staticClass:"card-icon",attrs:{type:"dashboard"}})],1)},n=[function(){var e=this,t=e._self._c;return t("div",{staticClass:"card"},[t("h3",[e._v("访问量")]),t("div",{staticClass:"card-inner"},[t("span",{staticClass:"card-number"},[e._v("8,846")]),t("div",{staticClass:"card-chart"},[t("div",{staticClass:"chart_sm"},[t("img",{attrs:{src:o("576e"),width:"100%"}})])])])])}],s={created:function(){},mounted:function(){this.$emit("setHeight",this.$refs.portaletDiv.offsetHeight)},watch:{},components:{},methods:{}},r=s,i=(o("2f84"),o("2877")),c=Object(i["a"])(r,a,n,!1,null,"5f97037d",null);t["default"]=c.exports}}]);