@bee-hole/admin 1.25.48 → 1.25.50

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 (58) hide show
  1. package/dist/css/{chunk-452aba94.704d1e60.css → chunk-d0ed1386.87c89d4b.css} +1 -1
  2. package/dist/css/{chunk-452aba94.704d1e60.css.gz → chunk-d0ed1386.87c89d4b.css.gz} +0 -0
  3. package/dist/css/{lang-package~4e34e71e.f0333fdb.css → lang-package~4e34e71e.1e59d69f.css} +1 -1
  4. package/dist/css/{lang-package~4e34e71e.f0333fdb.css.gz → lang-package~4e34e71e.1e59d69f.css.gz} +0 -0
  5. package/dist/index.html +1 -1
  6. package/dist/js/app~f075b844.38def284.js +1 -0
  7. package/dist/js/app~f075b844.38def284.js.gz +0 -0
  8. package/dist/js/{chunk-03e1387e.b4810a7d.js → chunk-03e1387e.cbfc3962.js} +1 -1
  9. package/dist/js/chunk-03e1387e.cbfc3962.js.gz +0 -0
  10. package/dist/js/{chunk-286b8764.6946a3df.js → chunk-286b8764.0631947b.js} +1 -1
  11. package/dist/js/chunk-286b8764.0631947b.js.gz +0 -0
  12. package/dist/js/chunk-53fb277b.087b5de0.js +1 -0
  13. package/dist/js/chunk-53fb277b.087b5de0.js.gz +0 -0
  14. package/dist/js/{chunk-5f214972.7aa7c078.js → chunk-5f214972.6318b4a0.js} +1 -1
  15. package/dist/js/chunk-5f214972.6318b4a0.js.gz +0 -0
  16. package/dist/js/chunk-d0ed1386.2c3c9ef3.js +1 -0
  17. package/dist/js/chunk-d0ed1386.2c3c9ef3.js.gz +0 -0
  18. package/dist/js/lang-ar-EG~31ecd969.c469ba88.js +3 -0
  19. package/dist/js/lang-ar-EG~31ecd969.c469ba88.js.gz +0 -0
  20. package/dist/js/lang-bn-BD~ede72586.6193db8e.js +1 -0
  21. package/dist/js/lang-bn-BD~ede72586.6193db8e.js.gz +0 -0
  22. package/dist/js/{lang-en-US~31ecd969.b1f297b2.js → lang-en-US~31ecd969.b658e6f1.js} +2 -2
  23. package/dist/js/lang-en-US~31ecd969.b658e6f1.js.gz +0 -0
  24. package/dist/js/{lang-ko-KR~31ecd969.dee89794.js → lang-ko-KR~31ecd969.d026b057.js} +1 -1
  25. package/dist/js/{lang-ko-KR~31ecd969.dee89794.js.gz → lang-ko-KR~31ecd969.d026b057.js.gz} +0 -0
  26. package/dist/js/lang-ms-MY~d756050e.797a9e52.js +1 -0
  27. package/dist/js/lang-ms-MY~d756050e.797a9e52.js.gz +0 -0
  28. package/dist/js/{lang-package~4e34e71e.7fc96d66.js → lang-package~4e34e71e.a470d517.js} +3 -3
  29. package/dist/js/lang-package~4e34e71e.a470d517.js.gz +0 -0
  30. package/dist/js/lang-zh-TW~31ecd969.2b0593e0.js +1 -0
  31. package/dist/js/lang-zh-TW~31ecd969.2b0593e0.js.gz +0 -0
  32. package/package.json +1 -1
  33. package/dist/js/app~f075b844.7dc49cb4.js +0 -1
  34. package/dist/js/app~f075b844.7dc49cb4.js.gz +0 -0
  35. package/dist/js/chunk-03e1387e.b4810a7d.js.gz +0 -0
  36. package/dist/js/chunk-123cd932.3708b425.js +0 -1
  37. package/dist/js/chunk-123cd932.3708b425.js.gz +0 -0
  38. package/dist/js/chunk-286b8764.6946a3df.js.gz +0 -0
  39. package/dist/js/chunk-452aba94.08885203.js +0 -1
  40. package/dist/js/chunk-452aba94.08885203.js.gz +0 -0
  41. package/dist/js/chunk-5f214972.7aa7c078.js.gz +0 -0
  42. package/dist/js/lang-ar-EG~31ecd969.e61e497b.js +0 -3
  43. package/dist/js/lang-ar-EG~31ecd969.e61e497b.js.gz +0 -0
  44. package/dist/js/lang-bn-BD~ede72586.d59059af.js +0 -1
  45. package/dist/js/lang-bn-BD~ede72586.d59059af.js.gz +0 -0
  46. package/dist/js/lang-en-US~31ecd969.b1f297b2.js.gz +0 -0
  47. package/dist/js/lang-ms-MY~d756050e.b18eb9f7.js +0 -1
  48. package/dist/js/lang-ms-MY~d756050e.b18eb9f7.js.gz +0 -0
  49. package/dist/js/lang-package~4e34e71e.7fc96d66.js.gz +0 -0
  50. package/dist/js/lang-zh-TW~31ecd969.435218d9.js +0 -1
  51. package/dist/js/lang-zh-TW~31ecd969.435218d9.js.gz +0 -0
  52. /package/dist/css/{chunk-123cd932.e253dc48.css → chunk-53fb277b.96d10443.css} +0 -0
  53. /package/dist/css/{chunk-vendors~921ad15b.24bc41a4.css → chunk-vendors~921ad15b.34ae8f15.css} +0 -0
  54. /package/dist/css/{chunk-vendors~921ad15b.24bc41a4.css.gz → chunk-vendors~921ad15b.34ae8f15.css.gz} +0 -0
  55. /package/dist/js/{chunk-5f4b374c.212dbd7a.js → chunk-5f4b374c.f0327c6b.js} +0 -0
  56. /package/dist/js/{chunk-5f4b374c.212dbd7a.js.gz → chunk-5f4b374c.f0327c6b.js.gz} +0 -0
  57. /package/dist/js/{lang-zh-TW-service~f63b1681.3b704ba2.js → lang-zh-TW-service~f63b1681.cf2a8e81.js} +0 -0
  58. /package/dist/js/{lang-zh-TW-service~f63b1681.3b704ba2.js.gz → lang-zh-TW-service~f63b1681.cf2a8e81.js.gz} +0 -0
Binary file
@@ -1 +0,0 @@
1
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-123cd932"],{"0280":function(t,e,i){"use strict";i.r(e);i("b0c0");var a=function(){var t=this,e=t._self._c;return e("span",{staticClass:"yahooPath"},[e("a-icon",{attrs:{type:"plus"},on:{click:t.openPathList}}),e("ant-modal",{attrs:{visible:t.show,"modal-title":t.formTitle,"adjust-size":!0,modalHeight:t.isMobile?"80vh":"680",modalWidth:t.isMobile?"100vw":"900"},on:{cancel:t.cancelPathList,ok:t.cancelPathList}},[e("div",{attrs:{slot:"content"},slot:"content"},[e("div",[e("a-button",{on:{click:t.openFormInit}},[t._v(t._s(t.$t("components.yahooPathAdd.addbtn")))])],1),t.pathList?e("a-tree",{attrs:{replaceFields:{title:"name",key:"page_key",slot:"title",display:"display",hidden_page_flag:"hidden_page_flag",parentName:"parentName",parent_page_key:"parent_page_key"},treeData:t.pathList,loadedKeys:t.loadKeys,blockNode:!0,loadData:t.loadPath},on:{expand:t.expandNode},scopedSlots:t._u([{key:"title",fn:function(i,a){return[e("div",{staticClass:"pageKeyItem",staticStyle:{color:"#000",display:"flex","align-items":"center"}},[t._v(" "+t._s(i.name)+" "),e("a-icon",{staticStyle:{"margin-left":"15px"},attrs:{type:"edit"},on:{click:function(e){return t.handleUpdate({page_key:i.page_key,name:i.name,display:i.display,parent_page_key:i.parent_page_key,hidden_flag:i.hidden_page_flag,parentName:i.parentName},i,a)}}})],1)]}}],null,!1,2555784184)}):t._e()],1),e("div",{attrs:{slot:"footer"},slot:"footer"},[e("a-button",{on:{click:t.cancelPathList}},[t._v(t._s(t.$t("view.test.list.form.button.cancel")))])],1)]),e("ant-modal",{attrs:{visible:t.open,"modal-title":t.formTitle1,"adjust-size":!0,modalHeight:t.isMobile?"80vh":"680",modalWidth:t.isMobile?"100vw":"900"},on:{cancel:t.cancelForm,ok:t.ok}},[e("div",{attrs:{slot:"content"},slot:"content"},[e("a-form",[e("a-form-item",{attrs:{label:t.$t("components.yahooPathAdd.form.name")}},[e("a-input",{attrs:{placeholder:""},model:{value:t.form.name,callback:function(e){t.$set(t.form,"name",e)},expression:"form.name"}})],1),e("a-form-item",{attrs:{label:t.$t("components.yahooPathAdd.form.display")}},[e("a-select",{model:{value:t.form.display,callback:function(e){t.$set(t.form,"display",e)},expression:"form.display"}},[e("a-select-option",{attrs:{value:"0"}},[t._v("私有")]),e("a-select-option",{attrs:{value:"1"}},[t._v("共有")])],1)],1),e("a-form-item",{attrs:{label:t.$t("components.yahooPathAdd.form.hiddenFlag")}},[e("a-select",{model:{value:t.form.hidden_flag,callback:function(e){t.$set(t.form,"hidden_flag",e)},expression:"form.hidden_flag"}},[e("a-select-option",{attrs:{value:"0"}},[t._v("普通页面")]),e("a-select-option",{attrs:{value:"1"}},[t._v("隐藏页面")])],1)],1),e("a-form-item",{attrs:{label:t.$t("components.yahooPathAdd.form.parentPageKey")}},[e("div",{attrs:{color:{color:t.form.page_key?"#ccc":"#000"}},on:{click:t.openPathSelect}},[e("a-icon",{attrs:{type:"plus"}}),t._v(t._s(t.parentName)+" ")],1)])],1)],1)]),e("ant-modal",{attrs:{visible:t.visable,"modal-title":t.formTitle2,"adjust-size":!0,modalHeight:t.isMobile?"80vh":"680",modalWidth:t.isMobile?"100vw":"900"},on:{cancel:t.cancelPathSelect,ok:t.cancelPathSelect}},[e("div",{attrs:{slot:"content"},slot:"content"},[t.pathList?e("a-tree",{attrs:{replaceFields:{title:"name",key:"page_key",slot:"title"},treeData:t.pathList,loadedKeys:t.loadKeys,loadData:t.loadPath,checkable:"",checkStrictly:!0,checkedKeys:t.pathKeys},on:{check:t.onCheck},scopedSlots:t._u([{key:"title",fn:function(i){var a=i.name;return[e("div",{staticClass:"pageKeyItem",staticStyle:{color:"#000",display:"flex","align-items":"center"}},[t._v(" "+t._s(a)+" ")])]}}],null,!1,1425135114)}):t._e()],1),e("div",{attrs:{slot:"footer"},slot:"footer"},[e("a-button",{on:{click:t.cancelPathSelect}},[t._v(t._s(t.$t("view.test.list.form.button.cancel")))])],1)])],1)},o=[],r=i("5530"),s=i("c7eb"),n=i("1da1"),l=i("2909"),c=(i("d81d"),i("99af"),i("2dd7")),d=i("dcb0"),u=i("2f62"),p={name:"yahooPathAdd",components:{AntModal:c["default"]},data:function(){return{open:!1,pathList:[],form:{},visable:!1,show:!1,pathKeys:[],loadKeys:[],parentName:""}},computed:Object(r["a"])({},Object(u["c"])(["shopId","isMobile"])),props:{sellerId:{type:String,default:""}},created:function(){this.formTitle=this.$t("components.yahooPathAdd.form.name"),this.formTitle1=this.$t("components.yahooPathAdd.form.name.add.title"),this.formTitle2=this.$t("components.yahooPathAdd.form.name.select.title"),this.getPathList()},methods:{openAddForm:function(){this.open=!0},cancelForm:function(){this.open=!1},openPathList:function(){this.show=!0},cancelPathList:function(){this.show=!1},getPathList:function(t,e){var i=this,a={seller_id:this.sellerId};return t&&(a.page_key=t),Object(d["j"])(a).then((function(a){return a.data.results&&a.data.results.length>0?a.data.results?(a.data.results.map((function(i){i.title&&(i.label=i.name,i.isLeaf=!1),i.isLeaf=!1,i.label=i.name,i.parentName=e,t&&(i.parent_page_key=t)})),"0"!==a.data.total_results_available?t?a.data.results:(i.pathList=Object(l["a"])(a.data.results),i.pathList):[]):void 0:null}))},loadPath:function(t,e){var i=this;return Object(n["a"])(Object(s["a"])().mark((function e(){var a;return Object(s["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return i.loadKeys.push(t.eventKey),i.parentName=t.label,e.next=4,i.getPathList(t.eventKey,t.label);case 4:a=e.sent,a&&a.length&&(t.dataRef.children=a),i.pathList=Object(l["a"])(i.pathList);case 7:case"end":return e.stop()}}),e)})))()},loadEvent:function(t){},onCheck:function(t,e){t.checked.length?this.pathKeys=[t.checked[t.checked.length-1]]:this.pathKeys=[],this.pathKeys.length?this.form.parent_page_key=this.pathKeys[0]:this.form.parent_page_key="",this.parentName=e.node.label},handleUpdate:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.form=t,this.pathKeys=[],this.parentName=t.parentName,this.formTitle1=this.$t("components.yahooPathAdd.form.name.edit.title",{name:t.name}),this.openAddForm()},expandNode:function(t){var e=[];t.map((function(t){e.push(t)})),this.loadKeys=[].concat(e)},ok:function(){var t=this;this.form.seller_id=this.sellerId,Object(d["h"])(this.form).then((function(e){0===e.code&&(t.$message.success(t.$t("components.yahooPathAdd.success")),t.$emit("ok"),t.loadKeys=[],t.pathKeys=[],t.getPathList())}))},openPathSelect:function(){this.form.page_key||(this.visable=!0)},cancelPathSelect:function(){this.visable=!1},openFormInit:function(){this.parentName="",this.form=Object.assign({},{seller_id:this.sellerId}),this.pathKeys=[],this.formTitle1=this.$t("components.yahooPathAdd.form.name.add.title"),this.openAddForm()}}},m=Object(r["a"])({},p),h=m,_=(i("5ea1"),i("2877")),v=Object(_["a"])(h,a,o,!1,null,null,null);e["default"]=v.exports},"06ed":function(t,e,i){},"09e9e":function(t,e,i){"use strict";i.r(e);var a=function(){var t=this,e=t._self._c;return e("span",[e("a-button",{attrs:{type:"primary"},on:{click:t.openModal}},[t._v(t._s(t.$t("components.videoTrans.selectVideo.btn")))]),e("ant-modal",{attrs:{"modal-title":t.title,visible:t.open,modalWidth:t.isMobile?"100vw":"1000",modalHeight:"750",modalCancelText:t.$t("component.artilce.close.button")},on:{ok:t.ok,cancel:t.close}},[e("template",{slot:"content"},[e("videoList",{on:{ok:t.back}})],1)],2)],1)},o=[],r=i("5530"),s=(i("d3b7"),i("3ca3"),i("ddb0"),i("a026")),n=i("2dd7"),l=i("2f62"),c=Object(s["b"])((function(){return i.e("chunk-123cd932").then(i.bind(null,"c06f"))})),d={name:"SelectVideo",data:function(){return{open:!1,title:this.$t("components.videoTrans.selectVideo.modal.title"),videoUrl:""}},props:{url:{type:String,default:""}},computed:Object(r["a"])({},Object(l["c"])(["isMobile"])),methods:{openModal:function(){this.open=!0},close:function(){this.open=!1},back:function(t){this.videoUrl=t},ok:function(){this.videoUrl&&this.$emit("ok",this.videoUrl),this.close()}},components:{AntModal:n["default"],videoList:c}},u=d,p=i("2877"),m=Object(p["a"])(u,a,o,!1,null,null,null);e["default"]=m.exports},"0c6d":function(t,e,i){"use strict";i.r(e);var a=function(){var t=this,e=t._self._c;return e("span",[t.complaint?e("a-button",{attrs:{type:"link"},on:{click:t.openModal}},[t._v(t._s(t.workOrderId?t.$t("view.workOrder.handle.button"):t.$t("components.complaint.detail.btn")))]):t._e(),e("ant-modal",{attrs:{visible:t.open,"modal-title":t.formTitle,"adjust-size":!0,modalHeight:t.isMobile?"500":"580",modalWidth:t.isMobile?"600":"800"},on:{cancel:t.cancel}},[t.complaint&&t.open?e("div",{attrs:{slot:"content"},slot:"content"},[t.orderDetailModal?e("order-detail",{ref:"OrderDetail",on:{close:function(e){t.orderDetailModal=!1}}}):t._e(),e("previewImg",{attrs:{previewVisible:t.previewImgShow,previewImage:t.preImg},on:{"update:previewVisible":function(e){t.previewImgShow=e},"update:preview-visible":function(e){t.previewImgShow=e}}}),e("a-form",{attrs:{"label-col":t.labelCol,"wrapper-col":t.wrapperCol},model:{value:t.complaint,callback:function(e){t.complaint=e},expression:"complaint"}},[t.workOrderList&&t.workOrderList.length>1?e("a-form-item",{attrs:{label:t.$t("components.complaint.detail.currentWorkOrder"),prop:"work_order_id"}},[e("a-select",{staticStyle:{width:"100%"},attrs:{"default-value":t.complaint.work_order_id},on:{change:t.switchWorkOrder}},t._l(t.workOrderList,(function(i){return e("a-select-option",{key:i.work_order_id,attrs:{value:i.work_order_id}},[t._v(t._s(i.details))])})),1)],1):t._e(),2==t.complaint.work_order_type&&t.complaint.complaint_ref_id&&1==t.shop_id?e("a-form-item",{attrs:{label:t.$t("procure.list.order.order_id"),prop:"faq_id"}},[e("a",{on:{click:function(e){return t.handleOrderDetail()}}},[t._v(t._s(t.complaint.complaint_ref_id))])]):t._e(),3==t.complaint.work_order_type&&t.complaint.complaint_ref_id&&1==t.shop_id?e("a-form-item",{attrs:{label:t.$t("view.supply.list.order.id"),prop:"faq_id"}},[e("a",{on:{click:function(e){return t.handleOrderDetail()}}},[t._v(t._s(t.complaint.complaint_ref_id))])]):t._e(),e("a-form-item",{attrs:{label:t.$t("components.complaint.faqId"),prop:"faq_id"}},[e("faqType",{attrs:{value:t.complaint.faq_id,disabled:""},on:{"update:value":function(e){return t.$set(t.complaint,"faq_id",e)}}})],1),e("a-form-item",{attrs:{label:t.$t("components.complaint.detailImages"),prop:"detail_images"}},[e("div",{staticStyle:{display:"flex","flex-wrap":"wrap"}},[t.complaint.detail_image_1?e("img",{staticStyle:{height:"80px","margin-right":"10px","margin-bottom":"10px",cursor:"pointer"},attrs:{src:t.complaint.detail_image_1},on:{click:function(e){return t.previewImage(t.complaint.detail_image_1)}}}):t._e(),t.complaint.detail_image_2?e("img",{staticStyle:{height:"80px","margin-right":"10px","margin-bottom":"10px",cursor:"pointer"},attrs:{src:t.complaint.detail_image_2},on:{click:function(e){return t.previewImage(t.complaint.detail_image_2)}}}):t._e(),t.complaint.detail_image_3?e("img",{staticStyle:{height:"80px","margin-right":"10px","margin-bottom":"10px",cursor:"pointer"},attrs:{src:t.complaint.detail_image_3},on:{click:function(e){return t.previewImage(t.complaint.detail_image_3)}}}):t._e(),t.complaint.detail_image_4?e("img",{staticStyle:{height:"80px","margin-right":"10px","margin-bottom":"10px",cursor:"pointer"},attrs:{src:t.complaint.detail_image_4},on:{click:function(e){return t.previewImage(t.complaint.detail_image_4)}}}):t._e(),t.complaint.detail_image_5?e("img",{staticStyle:{height:"80px","margin-right":"10px","margin-bottom":"10px",cursor:"pointer"},attrs:{src:t.complaint.detail_image_5},on:{click:function(e){return t.previewImage(t.complaint.detail_image_5)}}}):t._e()])]),e("a-form-item",{attrs:{label:t.$t("components.complaint.details"),prop:"details"}},[e("div",{staticStyle:{width:"100%"}},[e("div",{staticStyle:{"min-height":"32px","word-break":"break-word",display:"flex","align-content":"center","align-items":"center","flex-wrap":"wrap"}},[t._v(" "+t._s(t.complaint.details)+" ")])])]),t.complaint.results?e("div",{staticStyle:{"margin-bottom":"20px"}},[e("a-list",{attrs:{"item-layout":"horizontal","data-source":t.complaint.results},scopedSlots:t._u([{key:"renderItem",fn:function(i,a){return e("a-list-item",{},[e("a-list-item-meta",[e("div",{attrs:{slot:"title"},slot:"title"},[e("div",{key:a,style:{display:"flex",justifyContent:"space-between",paddingTop:"15px",borderTop:0===a?" 1px solid #e8e8e8":"0"}},[e("div",[e("supply-info",{attrs:{shopId:i.shop_id===t.complaint.executor_shop_id?t.complaint.executor_shop_id:t.complaint.executee_shop_id}})],1),e("div",[e("div",[t._v(t._s(i.create_time))])])])]),e("div",{attrs:{slot:"description"},slot:"description"},[e("div",{domProps:{innerHTML:t._s(i.execution_result)}})])])],1)}}],null,!1,2466928742)})],1):t._e(),t.complaint&&t.complaint.status?e("a-form-item",{attrs:{label:t.$t("components.complaint.status"),prop:"status"}},[e("div",{staticStyle:{"text-align":"right","margin-bottom":"10px","min-height":"32px","word-break":"break-word",display:"flex","align-content":"center","align-items":"center","flex-wrap":"wrap"}},[e("span",{staticStyle:{"margin-right":"10px"}},[t._v(" "+t._s(t.$t("WorkOrder."+t.complaint.status)))]),"FINISHED"!=t.complaint.status?e("endingWorkOrder",{attrs:{workOrderId:t.complaint.work_order_id},on:{refresh:t.openModal}}):t._e()],1)]):t._e(),t.complaint&&"FINISHED"!=t.complaint.status?e("div",[e("commitWorkOrder",{ref:"commitWorkOrder",attrs:{isFormBtn:!1,workOrderId:t.complaint.work_order_id},on:{ok:t.openModal}})],1):t._e()],1)],1):t._e(),e("div",{attrs:{slot:"footer"},slot:"footer"},[e("a-button",{on:{click:t.cancel}},[t._v(t._s(t.$t("components.complaint.detail.cancel")))]),t.complaint&&"FINISHED"!=t.complaint.status?e("a-button",{attrs:{type:"primary"},on:{click:t.submit}},[t._v(t._s(t.$t("view.workorder.handle.submit")))]):t._e()],1)])],1)},o=[],r=i("5530"),s=(i("d3b7"),i("3ca3"),i("ddb0"),i("4de4"),i("255f")),n=i("2dd7"),l=i("2f62"),c=i("a026"),d=i("8eb3"),u=i("0a56"),p=Object(c["b"])((function(){return i.e("chunk-03e1387e").then(i.bind(null,"7bb9"))})),m=Object(c["b"])((function(){return i.e("lang-zh-TW-service~f63b1681").then(i.bind(null,"95fb"))})),h=Object(c["b"])((function(){return Promise.all([i.e("lang-package~4e34e71e"),i.e("chunk-fa04ce72")]).then(i.bind(null,"c03e"))})),_=Object(c["b"])((function(){return i.e("chunk-123cd932").then(i.bind(null,"dc25"))})),v={name:"ComplaintDetail",data:function(){return{complaint:null,open:!1,formTitle:"",labelCol:{span:24},wrapperCol:{span:20},workOrderList:[],previewImgShow:!1,preImg:"",orderDetailModal:!1}},props:{orderId:{type:String,default:""},workOrderId:{type:String,default:""}},created:function(){this.formTitle=this.$t("components.complaint.detail.modal.title"),this.workOrderId?this.getWorkOrder():this.getComplaint()},watch:{orderId:function(t,e){this.getComplaint()}},methods:{getComplaint:function(){var t=this;Object(s["f"])({complaint_ref_id:this.orderId}).then((function(e){e.list&&e.list.length>0&&(t.workOrderList=e.list,t.complaint=e.list[e.list.length-1])}))},getWorkOrder:function(){var t=this;Object(s["c"])({work_order_id:this.workOrderId}).then((function(e){t.complaint=e}))},cancel:function(){this.open=!1},openModal:function(){this.open=!0,this.workOrderId?this.getWorkOrder():this.getComplaint()},switchWorkOrder:function(t){var e=this.workOrderList.filter((function(e){if(e.work_order_id===t)return e}));e&&e.length>0&&(this.complaint=Object.assign({},e[0]))},previewImage:function(t){this.preImg=t,this.previewImgShow=!0},submit:function(){this.$refs.commitWorkOrder.backChecked()},handleOrderDetail:function(){var t=this,e={};this.complaint.work_order_type,e.order_id=this.complaint.complaint_ref_id,this.orderDetailModal=!0,this.$nextTick((function(){return t.$refs.OrderDetail.handleOrderDetail(e)}))}},computed:Object(r["a"])({},Object(l["c"])(["shopId","isMobile"])),components:{AntModal:n["default"],faqType:p,endingWorkOrder:m,commitWorkOrder:h,supplyInfo:d["default"],previewImg:_,OrderDetail:u["default"]}},f=Object(r["a"])({},v),g=f,k=i("2877"),y=Object(k["a"])(g,a,o,!1,null,null,null);e["default"]=y.exports},"16f2":function(t,e,i){"use strict";i.r(e);var a=function(){var t=this,e=t._self._c;return e("span",[e("AdvanceTable",{attrs:{columns:t.Columns,"data-source":t.list,rowKey:"good_id"},scopedSlots:t._u([{key:"title",fn:function(){return[e("div")]},proxy:!0},{key:"image",fn:function(t){t.text;var i=t.record;return e("span",{},[e("img",{staticStyle:{width:"100px",height:"100px"},attrs:{src:i.image_url}})])}}])})],1)},o=[],r=i("5530"),s=i("c7eb"),n=i("1da1"),l=(i("d3b7"),i("3ca3"),i("ddb0"),i("d81d"),i("aabf")),c=i("5d9e"),d={name:"goodsIdList",props:{goodsIds:{type:Array,default:function(){return[]}},goodsList:{type:Array,default:function(){return[]}}},data:function(){return{activeTab:0,list:[],Columns:[{title:this.$t("view.item.list.good_id"),dataIndex:"good_id",width:"80px"},{title:this.$t("view.item.list.form.title"),dataIndex:"title",width:"200px"},{title:this.$t("view.item.list.itemImage"),dataIndex:"image",width:"200px",scopedSlots:{customRender:"image"}}]}},watch:{goodsIds:function(t,e){t!==e&&this.getGoodsList()}},created:function(){this.getGoodsList()},methods:{getGoodsList:function(){var t=this;return Object(n["a"])(Object(s["a"])().mark((function e(){return Object(s["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t.list=[],e.next=3,Promise.all(t.goodsIds.map(function(){var e=Object(n["a"])(Object(s["a"])().mark((function e(i,a){var o,r;return Object(s["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return o={good_id:i},e.next=3,Object(l["m"])(o);case 3:r=e.sent,t.list.push(r);case 5:case"end":return e.stop()}}),e)})));return function(t,i){return e.apply(this,arguments)}}()));case 3:return t._.size(t.list),t.$emit("back",t.list),t.$emit("update:goodsList",t.list),e.abrupt("return",t.list);case 7:case"end":return e.stop()}}),e)})))()}},components:{AdvanceTable:c["default"]}},u=Object(r["a"])({},d),p=u,m=i("2877"),h=Object(m["a"])(p,a,o,!1,null,null,null);e["default"]=h.exports},"23bd":function(t,e,i){},"270e":function(t,e,i){"use strict";i.r(e);i("b0c0");var a=function(){var t=this,e=t._self._c;return e("div",["rakuten"!==t.platform?e("div",["tiktok"==t.platform?e("a-form-model-item",{attrs:{"has-feedback":"",label:t.$t("view.order.list.please_select_delivery"),prop:"please_select_delivery"}},[e("a-select",{attrs:{placeholder:t.$t("view.order.list.please_select_delivery")},on:{change:t.selectShippingProviders},model:{value:t.form.delivery_option_id,callback:function(e){t.$set(t.form,"delivery_option_id",e)},expression:"form.delivery_option_id"}},t._l(t.shops_delivery,(function(i,a){return e("a-select-option",{key:a,attrs:{value:i.id}},[t._v(" "+t._s(i.name)+" - "+t._s(i.type)+" ")])})),1)],1):t._e(),"tiktok"==t.platform?e("a-form-model-item",{attrs:{"has-feedback":"",label:t.$t("view.order.list.please_select_delivery_option"),prop:"please_select_delivery_option"}},[e("a-select",{attrs:{placeholder:t.$t("view.order.list.please_select_delivery_option")},on:{change:t.selectShopsDeliveryOption}},t._l(t.shops_delivery_option,(function(i,a){return e("a-select-option",{key:a,attrs:{value:i.id}},[t._v(" "+t._s(i.id)+" - "+t._s(i.name)+" ")])})),1)],1):t._e(),"tiktok"!=t.platform?e("a-form-model-item",{attrs:{"has-feedback":"",label:t.$t("view.order.list.ship.list.logistics_company"),prop:"logistics_name"}},["netsea"!=t.platform&&"yahoo"!=t.platform?e("a-select",{staticStyle:{width:"100%"},attrs:{"show-search":""},on:{change:t.handleChange},model:{value:t.form.logistics_name,callback:function(e){t.$set(t.form,"logistics_name",e)},expression:"form.logistics_name"}},t._l(t.options,(function(i,a){return e("a-select-opt-group",{key:a},[e("span",{attrs:{slot:"label"},slot:"label"},[e("a-icon",{attrs:{type:"user"}}),t._v(t._s(i.key))],1),t._l(i.option,(function(i,a){return e("a-select-option",{key:a,attrs:{value:i.key}},[t._v(" "+t._s(i.value)+" ")])}))],2)})),1):t._e(),"yahoo"==t.platform?e("a-select",{staticStyle:{width:"100%"},on:{change:t.handleChange},model:{value:t.form.logistics_name,callback:function(e){t.$set(t.form,"logistics_name",e)},expression:"form.logistics_name"}},t._l(t.rakutenDeliveryCompany,(function(i,a){return"yahoo"==t.platform&&"1028"!=i.value?e("a-select-option",{key:a,attrs:{value:i.value}},[t._v(" "+t._s(i.name)+" ")]):t._e()})),1):t._e(),"netsea"==t.platform?e("a-select",{staticStyle:{width:"100%"},on:{change:t.handleChange},model:{value:t.form.logistics_name,callback:function(e){t.$set(t.form,"logistics_name",e)},expression:"form.logistics_name"}},t._l(t.netseaDeliveryCompany,(function(i,a){return e("a-select-option",{key:a,attrs:{value:i.value}},[t._v(" "+t._s(i.name)+" ")])})),1):t._e()],1):t._e(),e("a-form-model-item",{attrs:{"has-feedback":"",label:t.$t("view.order.list.ship.list.logistics_number"),prop:"shipment_id"}},[e("a-input",{attrs:{placeholder:t.$t("view.order.list.ship.list.input.logistics_number")},model:{value:t.form.shipment_id,callback:function(e){t.$set(t.form,"shipment_id",e)},expression:"form.shipment_id"}})],1)],1):t._e(),"rakuten"===t.platform?e("div",[t.isEdit?e("a-form-model",t._b({ref:"form",attrs:{model:t.form,rules:t.rules}},"a-form-model",t.itemLayout,!1),[e("a-form-model-item",{attrs:{"has-feedback":"",prop:"ship_units"}},[e("a-row",{staticClass:"ant-upload-list ant-upload-list-picture-card"},[e("table",{staticClass:"qgg-table"},[e("thead",[e("tr",[e("th",[t._v(t._s(t.$t("view.order.list.rakuten.basket_id")))]),e("th",[t._v(t._s(t.$t("table.mall_goods")))])])]),e("tbody",t._l(t.rakutenSdataSkuList,(function(i,a){return t.rakutenSdataSkuList?e("tr",{key:a},[e("td",[t._v(" "+t._s(i.basketId)+" "),e("table",{staticClass:"qgg-table"},[e("tbody",[e("tr",[e("td",{staticStyle:{width:"100px"}},[t._v(t._s(t.$t("view.order.detail.shipping_corp")))]),e("td",{staticStyle:{"text-align":"left"}},[e("a-select",{staticStyle:{width:"200px"},on:{change:t.selectRakutenDeliveryCompanyName},model:{value:i.delivery_company,callback:function(e){t.$set(i,"delivery_company",e)},expression:"item.delivery_company"}},t._l(t.rakutenDeliveryCompany,(function(i,a){return e("a-select-option",{key:a,attrs:{value:i.value}},[t._v(t._s(i.name))])})),1)],1)]),e("tr",[e("td",{staticStyle:{width:"100px"}},[t._v(t._s(t.$t("view.order.detail.shipping_code")))]),e("td",{staticStyle:{"text-align":"left"}},[e("a-input",{staticStyle:{width:"200px"},on:{change:t.inputRakutenDeliveryCompanyCode},model:{value:i.shipping_number,callback:function(e){t.$set(i,"shipping_number",e)},expression:"item.shipping_number"}})],1)])])])]),e("td",t._l(i.item,(function(a,o){return i.item?e("a-row",{key:o},[e("a-col",{staticStyle:{"text-align":"left"}},[t._v(t._s(a.title))]),e("a-col",{staticStyle:{"text-align":"left","margin-top":"5px"}},[t._v(t._s(a.sku_prop)+" X "+t._s(a.shipping_num))])],1):t._e()})),1)]):t._e()})),0)])])],1)],1):t._e()],1):t._e()])},o=[],r=(i("a9e3"),i("d3b7"),i("159b"),i("7db0"),i("296e")),s=i("1b6c"),n=i("3a10"),l={data:function(){return{rakutenSdataSkuList:[],itemLayout:{labelCol:{lg:2},wrapperCol:{lg:18}},rules:{logistics_name:[{required:!0,trigger:"change"}],shipment_id:[{required:!0,trigger:"change"}]},shops_delivery:[],shops_delivery_option:[],rakutenDeliveryCompany:[{name:"その他",value:"1000"},{name:"ヤマト運輸",value:"1001"},{name:"佐川急便",value:"1002"},{name:"日本郵便",value:"1003"},{name:"西濃運輸",value:"1004"},{name:"セイノースーパーエクスプレス",value:"1005"},{name:"福山通運",value:"1006"},{name:"名鉄運輸",value:"1007"},{name:"トナミ運輸",value:"1008"},{name:"第一貨物",value:"1009"},{name:"新潟運輸",value:"1010"},{name:"中越運送",value:"1011"},{name:"岡山県貨物運送",value:"1012"},{name:"久留米運送",value:"1013"},{name:"山陽自動車運送",value:"1014"},{name:"NXトランスポート",value:"1015"},{name:"エコ配",value:"1016"},{name:"EMS",value:"1017"},{name:"DHL",value:"1018"},{name:"FedEx",value:"1019"},{name:"UPS",value:"1020"},{name:"日本通運",value:"1021"},{name:"TNT",value:"1022"},{name:"OCS",value:"1023"},{name:"USPS",value:"1024"},{name:"SFエクスプレス",value:"1025"},{name:"Aramex",value:"1026"},{name:"SGHグローバル・ジャパン",value:"1027"},{name:"Rakuten EXPRESS",value:"1028"}],netseaDeliveryCompany:[{name:"ヤマト運輸",value:"YA"},{name:"佐川急便",value:"SA"},{name:"日本郵便",value:"NY"},{name:"西濃運輸",value:"SE"},{name:"福山通運",value:"FU"},{name:"名鉄運輸",value:"ME"},{name:"トナミ運輸",value:"TO"},{name:"第一貨物",value:"DA"},{name:"その他",value:"OT"},{name:"日本通運",value:"NT"}]}},props:{form:{type:Object,default:function(){return{shipment_id:"",logistics_name:""}}},options:{type:Array,default:function(){return[{key:Object(s["b"])("view.express.foreign_express1"),label:"GJWL",option:[{key:"SFGJ",value:"顺丰国际"},{key:"DHWL",value:"ヤマト運輸"},{key:"ZCJB",value:"佐川急便"},{key:"RBYZ",value:"日本郵便"}]},{key:Object(s["b"])("view.express.foreign_express2"),label:"GNWL",option:[{key:"SFEXPRESS",value:"顺丰"},{key:"STO",value:"申通"},{key:"YTO",value:"申通"},{key:"ZTO",value:"申通"},{key:"HTKY",value:"百世快递"},{key:"BSKY",value:"百世快运"},{key:"YUNDA",value:"韵达"},{key:"JD",value:"京东"},{key:"EMS",value:"EMS"},{key:"ZTO56",value:"中通快运"},{key:"AAEWEB",value:"AAE"},{key:"ARAMEX",value:"Aramex"},{key:"DHL",value:"内件DHL"},{key:"DPEX",value:"DPEX"},{key:"DEXP",value:"D速"},{key:"EWE",value:"EWE"},{key:"FEDEX",value:"FedEx"},{key:"PCA",value:"PCA"},{key:"TNT",value:"TNT"},{key:"UPS",value:"UPS"},{key:"ANJELEX",value:"安捷"},{key:"ANE",value:"安能"},{key:"ANEEX",value:"安能快递"},{key:"ANXINDA",value:"安信达"},{key:"EES",value:"百福东方"},{key:"FLYWAYEX",value:"程光"},{key:"DTW",value:"大田"},{key:"DEPPON",value:"德邦"},{key:"GCE",value:"飞洋"},{key:"PHOENIXEXP",value:"凤凰"},{key:"FTD",value:"富腾达"},{key:"GSD",value:"共速达"},{key:"GTO",value:"国通"},{key:"BLACKDOG",value:"黑狗"},{key:"HENGLU",value:"恒路"},{key:"HYE",value:"鸿远"},{key:"HQKY",value:"华企"},{key:"JOUST",value:"急先达"},{key:"TMS",value:"加运美"},{key:"JIAJI",value:"佳吉"},{key:"JIAYI",value:"佳怡"},{key:"KERRY",value:"嘉里物流"},{key:"HREX",value:"锦程快递"},{key:"PEWKEE",value:"晋越"},{key:"KKE",value:"京广"},{key:"JIUYESCM",value:"九曳"},{key:"KYEXPRESS",value:"跨越速运"},{key:"FASTEXPRESS",value:"快捷"},{key:"LTS",value:"联昊通"},{key:"LBEX",value:"龙邦"},{key:"YIMIDIDA",value:"壹米滴答"},{key:"RRS",value:"日日顺物流"},{key:"YXWL",value:"宇鑫物流"},{key:"DJ56",value:"东骏快捷"},{key:"AYCA",value:"澳邮专线"},{key:"CITY100",value:"城市100"},{key:"D4PX",value:"递四方速递"},{key:"GTSD",value:"广通"},{key:"JTKD",value:"捷特快递"},{key:"MB",value:"民邦快递"},{key:"MLWL",value:"明亮物流"},{key:"PANEX",value:"泛捷快递"},{key:"QXT",value:"全信通"},{key:"SAD",value:'赛澳递"'},{key:"SDWL",value:"上大物流"},{key:"STWL",value:"速腾快递"},{key:"WJK",value:"万家康"},{key:"ZENY",value:"增益快递"},{key:"CAE",value:"民航"},{key:"ND56",value:"能达"},{key:"EFSPOST",value:"平安快递"},{key:"CHINZ56",value:"秦远物流"},{key:"QCKD",value:"全晨"},{key:"QFKD",value:"全峰"},{key:"APEX",value:"全一"},{key:"RFD",value:"如风达"},{key:"SFC",value:"三态"},{key:"SFWL",value:"盛丰"},{key:"SHENGHUI",value:"盛辉"},{key:"SDEX",value:"顺达快递"},{key:"SUNING",value:"苏宁"},{key:"SURE",value:"速尔"},{key:"HOAU",value:"天地华宇"},{key:"TTKDEX",value:"天天"},{key:"VANGEN",value:"万庚"},{key:"WANJIA",value:"万家物流"},{key:"EWINSHINE",value:"万象"},{key:"GZWENJIE",value:"文捷航空"},{key:"XBWL",value:"新邦"},{key:"XFEXPRESS",value:"信丰"},{key:"BROADASIA",value:"亚风"},{key:"YIEXPRESS",value:"宜送"},{key:"QEXPRESS",value:"易达通"},{key:"ETD",value:"易通达"},{key:"UC56",value:"优速"},{key:"CHINAPOST",value:"邮政包裹"},{key:"YFHEX",value:"原飞航"},{key:"YADEX",value:"源安达"},{key:"YCGWL",value:"远成"},{key:"YFEXPRESS",value:"越丰"},{key:"YTEXPRESS",value:"运通"},{key:"ZJS",value:"宅急送"},{key:"ZMKMEX",value:"芝麻开门"},{key:"COE",value:"中国东方"},{key:"CRE",value:"中铁快运"},{key:"ZTKY",value:"中铁物流"},{key:"CNPL",value:"中邮"},{key:"PEISI",value:"配思航宇"},{key:"BDT",value:"八达通"},{key:"CJKD",value:"城际快递"},{key:"FKD",value:"飞康达"},{key:"HQSY",value:"环球速运"},{key:"JAD",value:"捷安达"},{key:"JGWL",value:"景光物流"},{key:"MK",value:"美快"},{key:"PADTF",value:"平安达腾飞快递"},{key:"QRT",value:"全日通速递"},{key:"RFEX",value:"瑞丰速递"},{key:"SAWL",value:"圣安物流"},{key:"ST",value:"速通物流"},{key:"SUBIDA",value:"速必达物流"},{key:"XJ",value:"新洁物流"},{key:"ZYWL",value:"中邮物流"}]}]}},order:null,platform:{type:String,default:""},isEdit:{type:Boolean,default:!0},mailingMode:{type:Number,default:1}},created:function(){var t,e,i;switch(this.platform){case"tiktok":"string"===typeof this.order.sdata&&""!==this.order.sdata&&(this.order.sdata=JSON.parse(this.order.sdata)),(null===(t=this.order.sdata)||void 0===t||null===(e=t.packages)||void 0===e?void 0:e.length)>0&&(this.order.package_id=this.order.sdata.packages[0].id),null!==(i=this.order.sdata)&&void 0!==i&&i.warehouse_id&&(this.order.warehouse_id=this.order.sdata.warehouse_id),this.shopSelect(this.order.from_shop_id);break;case"rakuten":var a=JSON.parse(this.order.sdata),o=[];a.PackageModelList.forEach((function(t){var e={};e.basketId=t.basketId,e.item=[],t.ItemModelList.forEach((function(t){if(t.SkuModelList.length)var i=t.SkuModelList[0].variantId;e.item.push({title:t.itemName,sku_prop:i,price:t.price,shipping_num:t.units,delivery_company:"",Shipping_number:""})})),o.push(e)})),this.rakutenSdataSkuList=o;break}this.getOption()},methods:{getOption:function(){var t=this,e={};Object(n["i"])({page:1,limit:150}).then((function(i){for(var a=i.list,o=0;o<a.length;o++){var r=a[o],s=r.foreign_express;e[s]||(e[s]=[]),e[s].push({key:r.logistics_code,value:r.logistics_name})}return t.options[0].option=e[2],t.options[1].option=e[1],t.options}))},submit:function(){switch(this.platform){case"tiktok":this.form.package_id=this.form.package_id,this.form.logistics_name=this.form.tracking_name,this.form.body={shipping_provider_id:this.form.shipping_providers_id,tracking_number:this.form.shipment_id};break;case"rakuten":var t=[];this.rakutenSdataSkuList.forEach((function(e){var i={basketId:"",ShippingModelList:[]};i.basketId=e.basketId,i.ShippingModelList.push({deliveryCompany:e.delivery_company,shippingNumber:e.shipping_number}),t.push(i)}));var e={};e.orderNumber=this.order.order_id,e.BasketidModelList=t,this.form.logistics_name=this.form.tracking_name,this.form.body=e;break}this.$emit("update:form",this.form)},handleChange:function(t){this.form.logistics_name=t},shopSelect:function(t){var e=this;e.form.shops=[];var i={};i.tiktok_shop_id=t,Object(r["d"])(i).then((function(t){0===t.code&&(e.form.shop_cipher=t.shop_cipher,"US"===t.shop_region&&(e.isUs=!0),e.selectDelivery())}))},selectDelivery:function(){var t=this;t.shops_delivery=[],Object(r["g"])({ware_house_id:this.order.warehouse_id,shop_cipher:t.form.shop_cipher}).then((function(e){var i,a;0===e.code&&((null===(i=e.data)||void 0===i||null===(a=i.delivery_options)||void 0===a?void 0:a.length)>0&&(t.shops_delivery=e.data.delivery_options))}))},selectShippingProviders:function(){var t=this;t.shops_delivery_option=[],Object(r["A"])({delivery_option_id:t.form.delivery_option_id,shop_cipher:t.form.shop_cipher}).then((function(e){var i,a;0===e.code&&((null===(i=e.data)||void 0===i||null===(a=i.shipping_providers)||void 0===a?void 0:a.length)>0&&(t.shops_delivery_option=e.data.shipping_providers))}))},selectShopsDeliveryOption:function(t,e){var i=this.shops_delivery_option.find((function(e){return e.id===t}));this.form.shipping_providers_id=i.id,this.form.tracking_name=i.name},selectRakutenDeliveryCompanyName:function(t){var e=this.rakutenDeliveryCompany.find((function(e){return e.value===t}));e&&(this.form.tracking_name=e.name)},inputRakutenDeliveryCompanyCode:function(t){this.form.shipment_id=t.target._value}}},c=l,d=(i("5d54"),i("2877")),u=Object(d["a"])(c,a,o,!1,null,null,null);e["default"]=u.exports},3713:function(t,e,i){"use strict";i("adee")},"3b1b":function(t,e,i){"use strict";i.r(e);i("b0c0"),i("a9e3");var a=function(){var t=this,e=t._self._c;return e("div",[e("a-card",{staticClass:"orderList",staticStyle:{"margin-bottom":"10px"},attrs:{bordered:!1}},[e("div",{ref:"search",staticClass:"table-page-search-wrapper"},[e("a-form",{attrs:{labelCol:t.labelCol,wrapperCol:t.wrapperCol}},[e("a-row",{attrs:{gutter:12,type:"flex"}},["admin"==t.roles[0]?e("a-col",{attrs:{lg:7,xl:8,xxl:6}},[e("a-form-item",{attrs:{label:t.$t("view.order.list.shop.seller")}},[e("div",{staticStyle:{display:"flex","align-items":"center"}},[e("seller-list",{on:{changeuser:t.changeUser}})],1)])],1):t._e(),"admin"==t.roles[0]&&t.userId?e("a-col",{attrs:{lg:6,xl:6,xxl:4}},[e("a-form-item",{attrs:{label:t.$t("view.order.list.shop")}},[e("shop-select",{ref:"shopSelect",attrs:{userId:t.userId},on:{change:t.changeShop}})],1)],1):t._e(),t.userId?t._e():e("a-col",{attrs:{lg:11,xl:"admin"==t.roles[0]?6:8,xxl:"admin"==t.roles[0]?4:6}},[e("a-form-item",{attrs:{label:t.$t("view.order.detail.item"),labelCol:{md:8,sm:8,lg:10},wrapperCol:{md:16,sm:16,lg:14}}},[e("good-list",{staticStyle:{width:"100%"},attrs:{type:"radio"},on:{changeitem:t.changeItem}})],1)],1)],1),e("a-row",{attrs:{gutter:12,type:"flex"}},[e("a-col",{attrs:{lg:7,xl:8,xxl:6}},[e("a-form-item",{attrs:{label:t.$t("view.order.list.orderno")}},[e("a-input",{attrs:{placeholder:t.$t("view.order.list.inputorderno"),"allow-clear":""},nativeOn:{keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.handleQuery.apply(null,arguments)}},model:{value:t.orderId,callback:function(e){t.orderId=e},expression:"orderId"}})],1)],1),e("a-col",{attrs:{lg:6,xl:6,xxl:4,xs:24,md:12}},[e("a-form-item",{attrs:{label:t.$t("view.order.list.export.user_select_title")}},[e("member-list",{attrs:{shopId:t.checkedShopId},on:{changeMember:t.changeMember}})],1)],1),e("a-col",{attrs:{lg:11,xl:5,xxl:5,md:16}},[e("a-form-item",{attrs:{label:t.$t("view.order.list.export.time_select_title"),labelCol:{md:3,sm:8,lg:6,xl:4,xxl:3},wrapperCol:{lg:18,xl:20,xxl:21}}},[e("a-range-picker",{staticStyle:{width:"auto"},attrs:{"show-time":""},model:{value:t.exportTime,callback:function(e){t.exportTime=e},expression:"exportTime"}},[e("template",{slot:"renderExtraFooter"})],2)],1)],1),e("a-col",{attrs:{lg:24,xl:24,xxl:8}},[e("span",{staticClass:"table-page-search-submitButtons buttonsTools"},[e("a-button",{attrs:{type:"primary"},on:{click:t.handleQuery}},[e("a-icon",{attrs:{type:"search"}}),t._v(t._s(t.$t("view.order.list.query.btn"))+" ")],1),e("a-button",{staticStyle:{"margin-left":"8px"},on:{click:t.resetQuery}},[e("a-icon",{attrs:{type:"redo"}}),t._v(t._s(t.$t("view.order.list.reset.btn"))+" ")],1),e("a-button",{staticStyle:{"margin-left":"8px"},on:{click:t.orderExport}},[e("a-icon"),t._v(t._s(t.$t("view.order.list.export.btn"))+" ")],1),e("syn-config",{attrs:{syn_idf:2}})],1)])],1),e("a-row",{attrs:{gutter:12,type:"flex"}},[e("a-col",{attrs:{lg:7,xl:7,xxl:6}},[e("a-form-item",{attrs:{label:t.$t("view.item.component.item.syn.syntype.title"),labelCol:{xl:10},wrapperCol:{xl:14}}},[e("platform",{attrs:{syntype:t.from_id,viewPlatform:2},on:{"update:syntype":function(e){t.from_id=e},selectPlatForm:t.changePlatForm}})],1)],1),t.platFormShops.length?e("a-col",{attrs:{lg:7,xl:6,xxl:4}},[e("a-form-item",{attrs:{label:t.$t("components.dyProduct.dyProduct.oauth.shopname")}},[e("a-select",{staticStyle:{width:"255px"},attrs:{allowClear:!0,placeholder:t.$t("components.dyProduct.dyProduct.shopname.placeholder")},model:{value:t.from_shop_id,callback:function(e){t.from_shop_id=e},expression:"from_shop_id"}},t._l(t.platFormShops,(function(i,a){return e("a-select-option",{key:a,attrs:{value:i.value}},[t._v(t._s(i.name))])})),1)],1)],1):t._e()],1)],1)],1)]),e("div",[e("view-select",{staticStyle:{display:"none"},on:{change:t.backViewId}}),t.showReviewModal?e("review-list",{ref:"ReviewList",on:{close:function(e){t.showReviewModal=!1}}}):t._e(),t.orderDetailModal?e("order-detail",{ref:"OrderDetail",attrs:{modalHeight:.8*t.windowHeight+""},on:{close:function(e){t.orderDetailModal=!1}}}):t._e(),t.showFaHuoModal?e("review-list1",{ref:"ReviewList1",on:{ok:t.getList,close:function(e){t.showFaHuoModal=!1}}}):t._e(),t.showInsureModal?e("insure-list",{ref:"InsureList",on:{ok:t.getList,close:function(e){t.showInsureModal=!1}}}):t._e(),t.showModifyShipping?e("modify-shipping",{ref:"ModifyShipping",on:{ok:t.getList,close:function(e){t.showModifyShipping=!1}}}):t._e(),t.showHandlePayModal?e("handle-pay-list",{ref:"HandlePayList",on:{ok:t.getList,close:function(e){t.showHandlePayModal=!1}}}):t._e(),t.showCaiGouModal?e("caigou",{ref:"pushCaiGou",on:{ok:t.getList,close:function(e){t.showCaiGouModal=!1}}}):t._e(),e("stockAdd",{ref:"stockAdd"})],1),e("a-card",{staticClass:"table-card",attrs:{bordered:!1}},[e("a-tabs",{staticClass:"loginTitle",on:{change:function(e){return t.orderQuery(e)}}},t._l(t.statusLists,(function(t){return e("a-tab-pane",{key:t.value,attrs:{tab:t.label}})})),1),e("advance-table",{attrs:{loading:t.loading,size:"middle","row-selection":{selectedRowKeys:t.selectedRowKeys,onChange:t.onSelectChange},"format-conditions":!1,columns:t.columns,"data-source":t.list,rowKey:"order_id",tableKey:"test-cat-catlist-table",expandedRowKeys:t.expandedRowKeys,pagination:{current:t.queryParam.page,pageSize:t.queryParam.limit,total:t.total_count,showSizeChanger:!0,showLessItems:!1,showQuickJumper:!1,showTotal:function(e,i){return t.$t("view.order.list.table.total",{num:i[0]+"-"+i[1],total:e})},onChange:t.changeSize,onShowSizeChange:t.onShowSizeChange},scroll:{x:"100%"},title:" "},scopedSlots:t._u([{key:"order_id",fn:function(i){var a=i.text,o=i.record;return e("span",{},[o.from_id?e("div",[t.shouldDisplayTag(o)?e("a-tag",{attrs:{color:"#f50"}},[t._v(" "+t._s(t.showTag(o))+" ")]):t._e()],1):t._e(),e("div",{staticStyle:{display:"flex","flex-wrap":"wrap"}},[e("span",[e("a",{on:{click:function(e){return t.handleOrderDetail(o)}}},[t._v(" "+t._s(a)+" ")]),e("copyText",{attrs:{text:a,tooltipText:t.$t("view.order.list.order_id.copy")}})],1)]),e("div",[t._v(t._s(o.create_time))]),e("a",{attrs:{type:"primary"},on:{click:function(e){return t.orderPrint(o)}}},[t._v(t._s(t.$t("view.order.detail.print.btn")))]),e("br"),"admin"==t.roles[0]&&1!==o.shop_id?e("div",[e("supply-info",{attrs:{shopId:o.shop_id}})],1):t._e(),o.order_item[0].stock_log?e("div",[t._v(" "+t._s(t.$t("view.order.target.wareHouse"))+" : "),o.order_item[0].stock_log?e("wareHouseInfo",{attrs:{isTag:!0,warehouseId:Number(o.order_item[0].stock_log.warehouse_id)}}):t._e(),"ORDER_WAIT_SHIP"===o.status?e("span",[t._v("-")]):t._e(),"ORDER_WAIT_SHIP"===o.status?e("orderSwitchWareHouse",{attrs:{skuId:o.order_item[0].sku_id,orderId:o.order_id},on:{ok:t.getList}}):t._e()],1):t._e(),o.order_item[0].stock_log?e("div",[e("webHookInfo",{attrs:{orderId:o.order_id,orderStatus:o.status,wareHouseId:Number(o.order_item[0].stock_log.warehouse_id)}})],1):t._e(),e("dispath-note",{staticStyle:{display:"none"},attrs:{order:o}})],1)}},{key:"order_item",fn:function(i){var a=i.text,o=i.record;return e("span",{},t._l(a,(function(i,r){return e("div",{key:i.sku_id,staticStyle:{display:"flex","margin-bottom":"10px"}},[e("div",[e("a-avatar",{attrs:{shape:"square",size:85,src:i.img_url},on:{click:function(e){return t.openItem(i)}}}),1==t.shopId?e("div",{staticStyle:{"margin-top":"0.5rem"}},[e("a-tag",{attrs:{color:2==i.mailing_mode?"red":"green"}},[1===t.shopId?e("div",[2==i.mailing_mode?e("div",[t._v(" "+t._s(t.$t("view.item.component.item.supply.shippingConfig.myself"))+" ")]):t._e(),1==i.mailing_mode?e("div",[t._v(" "+t._s(t.$t("view.item.component.item.supply.shippingConfig.platform"))+" ")]):t._e(),0==i.mailing_mode?e("div",[t._v(" "+t._s(t.$t("view.item.component.item.supply.shippingConfig.platform"))+" ")]):t._e()]):t._e(),1!==t.shopId?e("div",[2==i.mailing_mode?e("div",[t._v(" "+t._s(t.$t("view.item.component.item.supply.shippingConfig.myself1"))+" ")]):t._e(),1==i.mailing_mode?e("div",[t._v(" "+t._s(t.$t("view.item.component.item.supply.shippingConfig.platform1"))+" ")]):t._e(),0==i.mailing_mode?e("div",[t._v(" "+t._s(t.$t("view.item.component.item.supply.shippingConfig.platform1"))+" ")]):t._e()]):t._e()])],1):t._e()],1),e("div",{staticStyle:{"margin-left":"10px",flex:"1"}},[e("a-row",{attrs:{type:"flex"}},[e("a-col",{attrs:{flex:3}},[e("a",{on:{click:function(e){return t.openItem(i)}}},[t._v(" "+t._s(i.title)+" ")])])],1),e("a-row",{attrs:{type:"flex"}},[e("a-col",[t._v(" "+t._s(o.currency)+" "+t._s(i.price)+" ")]),e("a-col",{staticStyle:{"padding-left":"5px"}},[e("a-icon",{staticStyle:{"font-size":"10px","margin-right":"0","padding-right":"0"},attrs:{type:"close"}}),t._v(" "+t._s(i.num)+" ")],1),e("a-col",{staticStyle:{"padding-left":"5px"}},[i.activity_info&&i.activity_info.wholesaleprice_id>0?e("a-tooltip",[e("template",{slot:"title"},[t._v(" "+t._s(1===t.wholesalePriceData.type?t.$t("view.order.list.discount",{start:t.wholesalePriceData.start_num,end:t.wholesalePriceData.end_num,discount:t.wholesalePriceData.price}):t.$t("view.order.list.price",{start:t.wholesalePriceData.start_num,end:t.wholesalePriceData.end_num,price:t.shopQuoteCurrency+t.wholesalePriceData.price}))+" ")]),e("a-tag",{attrs:{color:"#2db7f5"},on:{mouseover:function(e){return t.getOrderItemWholesalePrice(i.activity_info.wholesaleprice_id)}}},[t._v(" "+t._s(t.$t("view.item.wholesale.form.new_price"))+" ")])],2):t._e()],1)],1),e("a-row",{attrs:{type:"flex"}},[e("a-col",{attrs:{flex:3}},["string"==typeof i.sku_prop?e("span",[t._v(" "+t._s(i.sku_prop)+" ")]):e("span",t._l(i.sku_prop,(function(i,a){return e("div",{key:a},[e("span",[t._v(t._s(a)+":"+t._s(i))])])})),0)])],1),e("a-row",[e("a-col",{attrs:{flex:3}},[t._v(" "+t._s(t.$t("view.item.sku.barcode"))+" : "+t._s(i.barcode)+" ")]),e("a-col",{attrs:{flex:3}},[t._v(" "+t._s(t.$t("view.item.sku.out_id"))+" : "),e("a",{on:{click:function(e){return t.handleStockAdd(i)}}},[t._v(" "+t._s(i.out_id))]),e("skuConv",{attrs:{fromPlatform:o.from_id,outId:i.out_id}})],1),e("a-col",{attrs:{flex:3}})],1),r<a.length-1?e("a-divider"):t._e()],1)])})),0)}},{key:"payment",fn:function(i){var a=i.text,o=i.record;return e("span",{},[""===o.from_id?e("a-row",[e("a-col",{attrs:{lg:24}},[t._v(" "+t._s(t.$t("view.order.list.biaojiahuobi"))+" : "+t._s(t.shopQuoteCurrency)+" "+t._s(a)+" ")]),e("a-col",{attrs:{lg:24}},[t._v(" "+t._s(t.$t("view.order.list.payhuobiprice"))+" : "+t._s(o.trans_currency)+" "+t._s(o.trans_amount)+" ")])],1):t._e(),""!==o.from_id?e("a-row",[e("a-col",{attrs:{lg:24}},[t._v(" "+t._s(o.currency)+" "+t._s(a)+" ")])],1):t._e()],1)}},{key:"status",fn:function(i){var a=i.text;return e("span",{},[e("div",[t._v(" "+t._s(t.$t(a))+" ")])])}},{key:"paymemberInfo",fn:function(i){var a=i.record;return e("span",{},[e("a-row",[a?e("a-col",{attrs:{lg:24}},[t._v(" "+t._s(t.$t("view.gangwei.list.realname"))+" : "+t._s(a.last_name||"")+" "+t._s(a.first_name||"")+" "),!a.member_id||"purchase"!=a.from_id&&"handlePay"!=a.from_id&&""!=a.from_id?t._e():e("message",{staticStyle:{display:"inline-block","margin-left":"5px"},attrs:{memberId:a.member_id}})],1):t._e(),a.phone&&""!=a.phone?e("a-col",{attrs:{lg:24}},[t._v(" "+t._s(t.$t("view.order.detail.ship_phone"))+" : "+t._s(a.phone)+" ")]):t._e(),e("a-col",{attrs:{lg:24}},[t._v(" "+t._s(t.$t("view.order.detail.ship_country"))+" : "+t._s(t.$t(a.country))+" ")]),e("a-col",{attrs:{lg:24}},[t._v(" "+t._s(t.$t("view.order.detail.ship_state"))+" : "+t._s(a.state)+" ")]),a.city?e("a-col",{attrs:{lg:24}},[t._v(" "+t._s(t.$t("view.order.detail.ship_city"))+" : "+t._s(a.city)+" ")]):t._e(),a.street?e("a-col",{attrs:{lg:24}},[t._v(" "+t._s(t.$t("view.order.detail.ship_street"))+" : "+t._s(a.street)+" ")]):t._e(),a.apartment?e("a-col",{attrs:{lg:24}},[t._v(" "+t._s(t.$t("view.order.detail.ship_men"))+" : "+t._s(a.apartment)+" ")]):t._e(),a.zip_code?e("a-col",{attrs:{lg:24}},[t._v(" "+t._s(t.$t("view.order.detail.zipcode"))+" : "+t._s(a.zip_code)+" ")]):t._e(),e("a-col",{attrs:{lg:24}},[t._v(" "+t._s(t.$t("view.order.detail.memberNote"))+" : "+t._s(a.member_note)+" ")]),e("a-col",{attrs:{lg:24}},[e("a-button",{directives:[{name:"show",rawName:"v-show",value:"ORDER_WAIT_SHIP"===a.status,expression:"record.status === 'ORDER_WAIT_SHIP'"}],attrs:{type:"primary"},on:{click:function(e){return t.handleModifyShipping(a)}}},[t._v(" "+t._s(t.$t("view.system.resourcegroup.Update"))+" ")])],1)],1)],1)}},{key:"operation",fn:function(i){var a=i.record;return e("span",{},[e("a",{on:{click:function(e){return t.handleReview(a)}}},[t._v(" "+t._s(t.$t("view.order.list.review.btn"))+" ")]),e("span",[e("a-divider",{attrs:{type:"vertical"}}),e("a",{on:{click:function(e){return t.handleInsure(a)}}},[t._v(" "+t._s(t.$t("view.order.list.insure.btn"))+" ")])],1),e("span",{directives:[{name:"show",rawName:"v-show",value:"ORDER_WAIT_PAYMENT"===a.status||"ORDER_PART_PAID"===a.status,expression:"record.status === 'ORDER_WAIT_PAYMENT' || record.status === 'ORDER_PART_PAID'"}]},[e("a-divider",{attrs:{type:"vertical"}}),e("a",{on:{click:function(e){return t.handlePay(a,!1)}}},[t._v(" "+t._s(t.$t("view.order.list.manual_pay"))+" ")])],1),e("span",{directives:[{name:"show",rawName:"v-show",value:"ORDER_WAIT_PAYMENT"===a.status||"ORDER_PART_PAID"===a.status||"ORDER_WAIT_SHIP"===a.status,expression:"\n record.status === 'ORDER_WAIT_PAYMENT' ||\n record.status === 'ORDER_PART_PAID' ||\n record.status === 'ORDER_WAIT_SHIP'\n "}]},[e("a-divider",{attrs:{type:"vertical"}}),e("a",{on:{click:function(e){return t.handleCloseOrder(a,!1)}}},[t._v(" "+t._s(t.$t("view.order.list.closeOrder"))+" ")])],1),e("span",{directives:[{name:"show",rawName:"v-show",value:"ORDER_WAIT_PAYMENT"!==a.status&&"ORDER_PART_PAID"!==a.status&&"handlePay"===a.from_id,expression:"\n record.status !== 'ORDER_WAIT_PAYMENT' &&\n record.status !== 'ORDER_PART_PAID' &&\n record.from_id === 'handlePay'\n "}]},[e("a-divider",{attrs:{type:"vertical"}}),e("a",{on:{click:function(e){return t.handlePay(a,!0)}}},[t._v(" "+t._s(t.$t("view.order.list.manual_pay"))+" ")])],1),e("span",{directives:[{name:"show",rawName:"v-show",value:"ORDER_WAIT_SHIP"===a.status,expression:"record.status === 'ORDER_WAIT_SHIP'"}]},[e("a-divider",{attrs:{type:"vertical"}}),e("a",{on:{click:function(e){return t.handleFaHuo(a)}}},[t._v(" "+t._s(t.$t("view.order.list.ship.btn"))+" ")])],1),e("span",{directives:[{name:"show",rawName:"v-show",value:"ORDER_AFTER_SALE"===a.status,expression:"record.status === 'ORDER_AFTER_SALE'"}]},[e("a-divider",{attrs:{type:"vertical"}}),e("a",{on:{click:function(e){return t.handleCancelAfterSales(a)}}},[t._v(" "+t._s(t.$t("view.order.list.aftersale.cancel.btn"))+" ")])],1),e("span",{directives:[{name:"show",rawName:"v-show",value:"ORDER_WAIT_SHIP"===a.status,expression:"record.status === 'ORDER_WAIT_SHIP'"}]},[e("a-divider",{attrs:{type:"vertical"}}),e("a-popover",{attrs:{title:t.$t("view.order.list.reset.push.log.title"),trigger:"click",placement:"bottom"}},[e("template",{slot:"content"},[e("a-table",{attrs:{columns:t.logListTitle,"data-source":t.logData,pagination:{pageSize:3}}},[e("span",{attrs:{slot:"action"},slot:"action"},[e("a-button",{attrs:{type:"primary"},on:{click:function(e){return t.orderPush(a)}}},[t._v(" "+t._s(t.$t("view.order.list.reset.push.log.action.btn"))+" ")])],1)])],1),e("a",{attrs:{type:"primary"},on:{click:function(e){return t.orderPushLog(a)}}},[t._v(t._s(t.$t("view.order.list.reset.push.log")))])],2)],1),"ORDER_WAIT_SHIP"===a.status&&1!==a.shop_id?e("span",[e("a-divider",{attrs:{type:"vertical"}}),e("a",{on:{click:function(e){return t.pushCaiGou(a)}}},[t._v(t._s(t.$t("component.procure.create.button1")))])],1):t._e(),e("div",[e("div",{attrs:{title:"订单备注"}},[a.user_note?e("a-tag",{staticStyle:{width:"80%"},attrs:{color:"orange"}},[t._v(t._s(a.user_note))]):t._e()],1),e("order-note",{attrs:{orderId:a.order_id,note:a.user_note},on:{ok:function(e){return t.getList()}}})],1)])}}])},[e("div",{staticClass:"table-operations",attrs:{slot:"button"},slot:"button"},[1!=t.shopId?e("autoPur"):t._e(),e("ordersShips",{attrs:{orders:t.selectedRows||[]},on:{ok:t.okShips}})],1)])],1)],1)},o=[],r=i("5530"),s=i("6958"),n=Object(r["a"])({},s["default"]),l=n,c=(i("3dd9"),i("2877")),d=Object(c["a"])(l,a,o,!1,null,null,null);e["default"]=d.exports},"3dd9":function(t,e,i){"use strict";i("06ed")},5194:function(t,e,i){"use strict";i.r(e);var a=function(){var t=this,e=t._self._c;return e("a-spin",{attrs:{spinning:t.loading,tip:"加载中..."}},[e("div",{style:"height:"+t.height},[e("iframe",{staticStyle:{width:"100%",height:"100%"},attrs:{src:t.src,frameborder:"no",scrolling:"auto"}})])])},o=[],r={name:"Druid",components:{},data:function(){return{src:"/admin/druid/login.html",height:document.documentElement.clientHeight-124.5+"px;",loading:!0}},filters:{},created:function(){},computed:{},watch:{},mounted:function(){var t=this;setTimeout((function(){t.loading=!1}),230);var e=this;window.onresize=function(){e.height=document.documentElement.clientHeight-94.5+"px;"}},methods:{}},s=r,n=i("2877"),l=Object(n["a"])(s,a,o,!1,null,null,null);e["default"]=l.exports},"58f6":function(t,e,i){"use strict";i.r(e);var a=function(){var t=this,e=t._self._c;return e("a-select",{staticStyle:{width:"auto","min-width":"100px"},attrs:{value:t.value,disabled:t.disabled},on:{change:t.handleChange}},[e("a-select-option",{attrs:{value:1}},[t._v(t._s(t.$t("components.warehouseRule.warehouseMode.pricemin")))]),e("a-select-option",{attrs:{value:2}},[t._v(t._s(t.$t("components.warehouseRule.warehouseMode.time")))])],1)},o=[],r=(i("a9e3"),{name:"PriceCompareMethod",model:{prop:"value",event:"input"},props:{value:{type:Number,default:1},disabled:{type:Boolean,default:!1}},methods:{handleChange:function(t){this.$emit("input",t),this.$emit("change",t)}}}),s=r,n=i("2877"),l=Object(n["a"])(s,a,o,!1,null,"c2b8b322",null);e["default"]=l.exports},"5d54":function(t,e,i){"use strict";i("a32b")},"5ea1":function(t,e,i){"use strict";i("a4d4")},"5f19":function(t,e,i){"use strict";i.r(e);var a=function(){var t=this,e=t._self._c;return e("span",[e("a-row",{attrs:{gutter:24}},[e("a-col",{attrs:{lg:3}},[t._v(t._s(t.$t("view.item.list.good_id")))]),e("a-col",{attrs:{lg:3}},[t._v(t._s(t.$t("view.item.list.itemImage")))]),e("a-col",{attrs:{lg:12}},[t._v(t._s(t.$t("view.item.list.itemTitle")))])],1),e("div",{staticStyle:{"margin-top":"2px",border:"1px solid #ccc",padding:"5px"}},[e("a-row",{attrs:{gutter:24}},[e("a-col",{attrs:{lg:3}},[t._v(t._s(t.goodInfo.good_id))]),e("a-col",{attrs:{lg:3}},[t.getGoodInfo()?e("div",[e("img",{staticStyle:{width:"80px",height:"80px"},attrs:{src:t.goodInfo.image_url}})]):t._e()]),e("a-col",{staticStyle:{"line-height":"40px"},attrs:{lg:12}},[t.getGoodInfo()?e("div",[t._v(t._s(t.goodInfo.title))]):t._e()])],1)],1)],1)},o=[],r=(i("7db0"),i("d3b7"),{name:"GoodsIdOne",props:{goodsList:{type:Array,default:function(){return[]}},goodsId:{type:String,default:""}},computed:{goodInfo:function(){var t,e=this;return null===(t=this.goodsList)||void 0===t?void 0:t.find((function(t){return t.good_id+""===e.goodsId+""}))}},methods:{getGoodInfo:function(){var t,e=this;return null===(t=this.goodsList)||void 0===t?void 0:t.find((function(t){return t.good_id+""===e.goodsId+""}))}}}),s=r,n=i("2877"),l=Object(n["a"])(s,a,o,!1,null,null,null);e["default"]=l.exports},6947:function(t,e,i){"use strict";i("b6ad")},8220:function(t,e,i){"use strict";i.r(e);var a,o,r={template:'\n <svg t="1598838771152" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="2725" xmlns:xlink="http://www.w3.org/1999/xlink" width="200" height="200"><path d="M511.573333 85.333333C276.053333 85.333333 85.333333 276.48 85.333333 512s190.72 426.666667 426.24 426.666667C747.52 938.666667 938.666667 747.52 938.666667 512S747.52 85.333333 511.573333 85.333333zM693.333333 689.066667 469.333333 554.666667 469.333333 298.666667l64 0 0 224 192 113.92L693.333333 689.066667z" p-id="2726"></path></svg>'},s={name:"MtimeIcon",template:'\n <a-icon :component="MtimeSvg" />\n ',data:function(){return{MtimeSvg:r}}},n=s,l=i("2877"),c=Object(l["a"])(n,a,o,!1,null,null,null);e["default"]=c.exports},"8aac":function(t,e,i){"use strict";i.r(e);i("a9e3"),i("b0c0"),i("d3b7"),i("ddb0"),i("a4d3"),i("e01a");var a=function(){var t=this,e=t._self._c;return e("span",[t.tiktokItemOpen?e("AntModal",{attrs:{visible:t.tiktokItemOpen,"modal-title":t.formTitle,"adjust-size":!0,modalHeight:t.modalHeight,modalWidth:t.modalWidth},on:{cancel:t.cancelModal}},[e("div",{attrs:{slot:"content"},slot:"content"},[e("div",{staticStyle:{display:"none"}},[e("goodsIdList",{attrs:{goodsIds:t.goodsIds,goodsList:t.goodList},on:{"update:goodsList":function(e){t.goodList=e},"update:goods-list":function(e){t.goodList=e},back:t.initTiktok}})],1),e("a-row",{attrs:{type:"flex"}},[e("a-col",{attrs:{lg:2}},[e("leftTabItem",{on:{change:t.changeLeftTab}})],1),e("a-col",{style:{overflowY:"auto",overflowX:"hidden",height:Number(t.modalHeight)-150+"px"},attrs:{lg:21}},[t._l(t.tiktokProductList,(function(i,a){return e("div",{key:a,staticStyle:{"padding-bottom":"1rem"}},[e("div",{staticStyle:{"margin-bottom":"1rem"}},[e("kandengGoodsOne",{attrs:{goodsList:t.goodList,goodsId:a}})],1),"title"===t.formEditKey?e("div",[e("a-row",{attrs:{gutter:24}},[e("a-col",{attrs:{lg:24}},[e("a-form-model-item",{attrs:{label:t.$t("view.item.list.itemTitle"),required:""}},[e("a-input",{staticStyle:{width:"100%"},model:{value:i.title,callback:function(e){t.$set(i,"title",e)},expression:"tiktokGoodInfo.title"}})],1)],1)],1)],1):t._e(),"category"===t.formEditKey?e("div",[e("a-row",{attrs:{gutter:24}},[e("a-col",{attrs:{lg:12}},[t._v(" "+t._s(i.category_id)+" "),e("tiktokGlobalCategory",{ref:"globalCat",refInFor:!0,attrs:{catList:t.tiktokGlobalCategoryList[a],categoryId:i.category_id},on:{"update:categoryId":function(e){return t.$set(i,"category_id",e)},"update:category-id":function(e){return t.$set(i,"category_id",e)},backGlobalCategory:function(e){return t.backGlobalCategory(e,a)}}})],1)],1)],1):t._e(),"brand"===t.formEditKey?e("div",[e("a-form-model-item",{attrs:{label:t.$t("components.dyProduct.dyProduct.bran"),required:""}},[e("a-select",{staticStyle:{width:"30%"},attrs:{disabled:!0},model:{value:i.brand_id,callback:function(e){t.$set(i,"brand_id",e)},expression:"tiktokGoodInfo.brand_id"}},t._l(t.pinPaiList[a],(function(i){return e("a-select-option",{key:i.id,attrs:{title:i.name,value:i.id}},[t._v(" "+t._s(i.name)+" ")])})),1)],1)],1):t._e(),"attribute"===t.formEditKey?e("div",[e("a-collapse",{attrs:{defaultActiveKey:"0"}},[e("a-collapse-panel",{key:"1",staticStyle:{padding:"0px 20px"},attrs:{header:t.$t("components.dyProduct.dyProduct.attributes")}},[e("a-row",{attrs:{gutter:24}},t._l(t.product_attributesList[a],(function(i,o){return e("a-col",{key:i.id+o,attrs:{lg:6}},[i.is_requried?e("a-form-model-item",{attrs:{label:i.name,required:""}},[i.values&&i.values.length?[i.values&&i.values.length&&t.product_attributes[a]&&t.product_attributes[a][o]?e("a-select",{directives:[{name:"decorator",rawName:"v-decorator",value:["attribute"+t.product_attributes[a][o].id,{rules:t.getRules(t.product_attributes[a][o])}],expression:"[\n `attribute` + product_attributes[good_id][index].id,\n { rules: getRules(product_attributes[good_id][index]) },\n ]"}],staticStyle:{width:"100%"},attrs:{optionFilterProp:"title","show-search":""},on:{change:function(e,i){return t.onChangeAttributes(e,i,a,o)},search:function(e){return t.searchAttribute(e,o)},mouseenter:function(e){return t.getValues100(a,o)}},model:{value:t.product_attributes[a][o].values[0].id,callback:function(e){t.$set(t.product_attributes[a][o].values[0],"id",e)},expression:"product_attributes[good_id][index].values[0].id"}},t._l(i.list,(function(a){return i&&i.list?e("a-select-option",{key:a.id,attrs:{title:a.name,value:a.id,text:a.name}},[t._v(" "+t._s(a.name)+" ")]):t._e()})),1):t._e()]:[e("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["attribute"+t.product_attributes[a][o].id,{rules:t.getRules(t.product_attributes[a][o])}],expression:"[\n `attribute` + product_attributes[good_id][index].id,\n { rules: getRules(product_attributes[good_id][index]) },\n ]"}],model:{value:t.product_attributes[a][o].values[0].value,callback:function(e){t.$set(t.product_attributes[a][o].values[0],"value",e)},expression:"product_attributes[good_id][index].values[0].value"}})]],2):e("a-form-model-item",{attrs:{label:i.name}},[i.values&&i.values.length?[i.values&&i.values.length&&t.product_attributes[a][o]&&t.product_attributes[a][o].values[0]?e("a-select",{directives:[{name:"decorator",rawName:"v-decorator",value:["attribute"+t.product_attributes[a][o].id,{rules:t.getRules(t.product_attributes[a][o])}],expression:"[\n `attribute` + product_attributes[good_id][index].id,\n { rules: getRules(product_attributes[good_id][index]) },\n ]"}],staticStyle:{width:"100%"},attrs:{optionFilterProp:"title","show-search":""},on:{change:function(e,i){return t.onChangeAttributes(e,i,a,o)}},model:{value:t.product_attributes[a][o].values[0].id,callback:function(e){t.$set(t.product_attributes[a][o].values[0],"id",e)},expression:"product_attributes[good_id][index].values[0].id"}},t._l(i.values,(function(i){return e("a-select-option",{key:i.id,attrs:{title:i.name,value:i.id,text:i.name}},[t._v(" "+t._s(i.name)+" ")])})),1):t._e()]:[t.product_attributes&&t.product_attributes[a][o]?e("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["attribute"+t.product_attributes[a][o].id,{rules:t.getRules(t.product_attributes[a][o])}],expression:"[\n `attribute` + product_attributes[good_id][index].id,\n { rules: getRules(product_attributes[good_id][index]) },\n ]"}],model:{value:t.product_attributes[a][o].values[0].value,callback:function(e){t.$set(t.product_attributes[a][o].values[0],"value",e)},expression:"product_attributes[good_id][index].values[0].value"}}):t._e()]],2)],1)})),1)],1)],1)],1):t._e(),"image"===t.formEditKey?e("div",[e("a-form-model-item",{attrs:{label:t.$t("view.item.list.itemImage")}},t._l(i.main_images,(function(t,i){return e("a-col",{key:i,attrs:{lg:3}},[e("div",{staticClass:"ant-upload-list-item ant-upload-list-item-done ant-upload-list-item-list-type-picture-card",staticStyle:{height:"100px",width:"95px",padding:"0"}},[e("div",{staticStyle:{height:"100px",width:"95px"}},[e("div",{staticClass:"ant-upload-list-item-info",staticStyle:{height:"80px",width:"95px"}},[e("img",{staticStyle:{height:"80px",width:"95px"},attrs:{src:t.url}})]),e("span",{staticClass:"ant-upload-list-item-actions"})])])])})),1)],1):t._e(),"itemInfo"===t.formEditKey?e("div"):t._e(),"sizeChart"===t.formEditKey?e("div",[i.certifications?e("a-row",{attrs:{gutter:24}},t._l(i.certifications,(function(i,o){return e("a-col",{key:o},[e("a-form-model-item",{attrs:{label:i.name,required:""}}),e("tiktok-attach-upload",{attrs:{shop_cipher:t.tiktokShop.cipher,id:i.id,user_case:"4"},on:{uploadBack:function(e){return t.resetQuery(e,i.id,a)}}})],1)})),1):t._e(),i.size_chart?e("a-row",{attrs:{gutter:24,type:"flex"}},[i.size_chart.image?e("a-col",[e("a-form-model-item",{attrs:{label:t.$t("components.pl.product.sizeChart.image.uri.title"),required:""}},[e("tiktok-attach-upload",{attrs:{shop_cipher:t.tiktokShop.cipher,user_case:"4"},on:{uploadBack:function(e){return t.backSizeChartImage(e,a)}}}),i.size_chart.image.uri?e("div",{staticClass:"check-style-unequal-width"}):t._e()],1)],1):t._e(),i.size_chart.template?e("a-col",{staticStyle:{"line-height":"30px"}},[e("a-form-model-item",{attrs:{label:t.$t("components.pl.product.sizeChart.template.id.title"),required:""}},[e("a-input",{staticStyle:{width:"200px"},attrs:{placeholder:t.$t("components.pl.product.sizeChart.template.id.title")},model:{value:i.size_chart.template.id,callback:function(e){t.$set(i.size_chart.template,"id",e)},expression:"tiktokGoodInfo.size_chart.template.id"}}),e("a-tooltip",{attrs:{placement:"right"}},[e("template",{slot:"title"},[t._v(" "+t._s(t.$t("components.pl.product.sizeChart.template.question.title"))+" ")]),e("a-icon",{staticStyle:{"margin-left":"4px","margin-bottom":"2px"},attrs:{type:"question-circle"}})],2)],1)],1):t._e()],1):t._e()],1):t._e(),"packageWeight"===t.formEditKey?e("div",[e("a-row",{attrs:{gutter:24}},[i.package_weight?e("a-col",{attrs:{lg:6}},[e("a-form-model-item",{attrs:{label:t.$t("components.dyProduct.package_weight.value")+" "+i.package_weight.unit,required:""}},[e("a-input",{attrs:{disabled:!0},model:{value:i.package_weight.value,callback:function(e){t.$set(i.package_weight,"value",e)},expression:"tiktokGoodInfo.package_weight.value"}})],1)],1):t._e()],1)],1):t._e(),"packageSizeChart"===t.formEditKey?e("div",[e("a-row",{attrs:{gutter:24}},[e("a-col",{attrs:{lg:8}},[e("a-form-model-item",{attrs:{label:t.$t("components.dyProduct.package_dimensions.height")+" "+i.package_dimensions.unit,required:""}},[e("a-input",{attrs:{disabled:!0},model:{value:i.package_dimensions.height,callback:function(e){t.$set(i.package_dimensions,"height",e)},expression:"tiktokGoodInfo.package_dimensions.height"}})],1)],1),e("a-col",{attrs:{lg:8}},[e("a-form-model-item",{attrs:{label:t.$t("components.dyProduct.package_dimensions.width")+" "+i.package_dimensions.unit,required:""}},[e("a-input",{attrs:{disabled:!0},model:{value:i.package_dimensions.width,callback:function(e){t.$set(i.package_dimensions,"width",e)},expression:"tiktokGoodInfo.package_dimensions.width"}})],1)],1),e("a-col",{attrs:{lg:8}},[e("a-form-model-item",{attrs:{label:t.$t("components.dyProduct.package_dimensions.length")+" "+i.package_dimensions.unit,required:""}},[e("a-input",{attrs:{disabled:!0},model:{value:i.package_dimensions.length,callback:function(e){t.$set(i.package_dimensions,"length",e)},expression:"tiktokGoodInfo.package_dimensions.length"}})],1)],1)],1)],1):t._e(),"sku"===t.formEditKey?e("div",[e("a-row",{attrs:{gutter:24}},[e("a-col",{style:{overflowY:"auto",overflowX:"hidden",padding:"0px 0px",height:"300px"},attrs:{lg:24}},[e("a-table",{attrs:{columns:t.columns,"data-source":i.skus,pagination:!1},scopedSlots:t._u([{key:"id",fn:function(i,a){return[e("a-row",[e("a-col",[e("a-input",{attrs:{"addon-before":a.identifier_code.type},model:{value:a.identifier_code.code,callback:function(e){t.$set(a.identifier_code,"code",e)},expression:"record.identifier_code.code"}})],1)],1),e("a-row",[e("a-col",[e("a-input",{attrs:{disabled:!0},model:{value:a.seller_sku,callback:function(e){t.$set(a,"seller_sku",e)},expression:"record.seller_sku"}})],1)],1)]}},{key:"stock_num",fn:function(i,a){return[a.global_quantity?e("a-input-number",{model:{value:a.global_quantity,callback:function(e){t.$set(a,"global_quantity",e)},expression:"record.global_quantity"}}):t._e()]}},{key:"price",fn:function(i,a){return[e("a-input",{scopedSlots:t._u([{key:"addonBefore",fn:function(){return[e("div",[t._v(t._s(a.price.currency))])]},proxy:!0}],null,!0),model:{value:a.price.amount,callback:function(e){t.$set(a.price,"amount",e)},expression:"record.price.amount"}})]}},{key:"mall_warehouse",fn:function(i,a){return[a.inventory&&a.inventory.length?e("div",{staticStyle:{display:"flex","align-items":"center"}},[e("div",{staticStyle:{flex:"1"}},[e("a-select",{staticStyle:{width:"100%"},model:{value:a.inventory[0].global_warehouse_id,callback:function(e){t.$set(a.inventory[0],"global_warehouse_id",e)},expression:"record.inventory[0].global_warehouse_id"}},t._l(t.global_ware_house_list,(function(i){return e("a-select-option",{key:i.id,attrs:{value:i.id}},[t._v(" "+t._s(i.name)+" ")])})),1)],1),e("div",[e("a-tooltip",[e("template",{slot:"title"},[e("div",[t._v(t._s(t.$t("components.dyProduct.WareHouse.sync")))])]),e("a-button",{staticStyle:{padding:"0",width:"auto","min-width":"30px","text-align":"center"},on:{click:t.tiktokGlobalItemWarehouse}},[e("a-icon",{staticStyle:{"padding-right":"0"},attrs:{type:"sync"}})],1)],2)],1)]):t._e()]}},{key:"sales_attributes",fn:function(i,a){return[e("div",t._l(a.sales_attributes,(function(i,a){return e("a-row",{key:i.id,attrs:{type:"flex"}},[e("a-col",{key:a,staticStyle:{"line-height":"30px"},attrs:{lg:8}},[t._v(" "+t._s(i.name)+" ")]),e("a-col",{attrs:{lg:16}},[e("a-input",{attrs:{type:"text",value:i.value_name}})],1)],1)})),1)]}}],null,!0)})],1)],1)],1):t._e(),"description"===t.formEditKey?e("div",[e("a-row",[e("a-col",{staticStyle:{"margin-top":"10px"},attrs:{lg:24}},[e("dy-vditor",{ref:"ComDitor_"+a,refInFor:!0,attrs:{id:a,good_id:a,value:i.description,updateStatus:t.aiTsUpdate},on:{"update:value":function(e){return t.$set(i,"description",e)},"update:updateStatus":function(e){t.aiTsUpdate=e},"update:update-status":function(e){t.aiTsUpdate=e}}})],1)],1)],1):t._e(),"other"===t.formEditKey?e("div"):t._e()])})),e("div",["category"===t.formEditKey?e("div",[e("a-row",[e("span",[t._v(t._s(t.$t("components.dyProduct.pl.value")))])]),e("a-row",{attrs:{gutter:24}},[e("a-col",{attrs:{lg:12}},[e("tiktokGlobalCategory",{ref:"globalCat",attrs:{catList:t.catList},on:{backGlobalCategory:function(e){return t.backPlGlobalCategory(e)}}})],1)],1)],1):t._e(),"brand"===t.formEditKey?e("div",[e("a-row",[e("span",[t._v(t._s(t.$t("components.dyProduct.pl.value")))])]),e("a-form-model-item",{attrs:{label:t.$t("components.dyProduct.dyProduct.bran"),required:""}},[e("a-select",{staticStyle:{width:"30%"},attrs:{"show-search":"",getPopupContainer:function(t){return t.parentNode},optionFilterProp:"title"},on:{search:function(e){return t.searchPinPai(e)},change:t.changeBrand}},t._l(t.brandList,(function(i){return e("a-select-option",{key:i.id,attrs:{title:i.name,value:i.id}},[t._v(" "+t._s(i.name)+" ")])})),1)],1)],1):t._e(),"attribute"===t.formEditKey?e("div",[e("a-row",[e("span",[t._v(t._s(t.$t("components.dyProduct.pl.value")))])]),t.attributeList.length>0?e("a-collapse",{attrs:{defaultActiveKey:"-1"}},[e("a-collapse-panel",{key:"-1",staticStyle:{padding:"0px 20px"},attrs:{header:t.$t("components.dyProduct.dyProduct.attributes")}},[e("a-row",{attrs:{gutter:24}},t._l(t.attributeList,(function(i,a){return e("a-col",{key:i.id+a,attrs:{lg:6}},[i.is_requried?e("a-form-model-item",{attrs:{label:i.name,required:""}},[i.values&&i.values.length?[i.values&&i.values.length?e("a-select",{staticStyle:{width:"100%"},attrs:{optionFilterProp:"title","show-search":""},on:{change:function(e,i){return t.onChangePlAttributes(e,i,a)},search:function(e){return t.searchAttribute(e,a)},mouseenter:function(e){return t.getPlValues100(a)}}},t._l(i.list,(function(a){return i&&i.list?e("a-select-option",{key:a.id,attrs:{title:a.name,value:a.id,text:a.name}},[t._v(" "+t._s(a.name)+" ")]):t._e()})),1):t._e()]:[e("a-input",{on:{input:function(e){return t.inputAttribute(e,a)}}})]],2):e("a-form-model-item",{attrs:{label:i.name}},[i.values&&i.values.length?[i.values&&i.values.length?e("a-select",{staticStyle:{width:"100%"},attrs:{optionFilterProp:"title","show-search":""},on:{change:function(e,i){return t.onChangePlAttributes(e,i,a)},search:function(e){return t.searchAttribute(e,a)},mouseenter:function(e){return t.getPlValues100(a)}}},t._l(i.values,(function(i){return e("a-select-option",{key:i.id,attrs:{title:i.name,value:i.id,text:i.name}},[t._v(" "+t._s(i.name)+" ")])})),1):t._e()]:[e("a-input",{on:{input:function(e){return t.inputAttribute(e,a)}}})]],2)],1)})),1)],1)],1):t._e()],1):t._e(),"sizeChart"===t.formEditKey?e("div",[e("a-row",[e("span",[t._v(t._s(t.$t("components.dyProduct.pl.value")))])]),t.tiktokRule.size_chart.is_required&&t.tiktokRule.size_chart.is_supported?e("a-row",{attrs:{gutter:24,type:"flex"}},[e("a-col",[e("a-form-model-item",{attrs:{label:t.$t("components.pl.product.sizeChart.image.uri.title"),required:""}},[e("tiktok-attach-upload",{attrs:{shop_cipher:t.tiktokShop.cipher,user_case:"4"},on:{uploadBack:function(e){return t.backPlSizeChartImage(e)}}}),t.tiktokRule.size_chart.uri?e("div",{staticClass:"check-style-unequal-width"}):t._e()],1)],1),e("a-col",{staticStyle:{"line-height":"30px"}},[e("a-form-model-item",{attrs:{label:t.$t("components.pl.product.sizeChart.template.id.title"),required:""}},[e("a-input",{staticStyle:{width:"200px"},attrs:{placeholder:t.$t("components.pl.product.sizeChart.template.id.title")},on:{input:t.plTemplate}}),e("a-tooltip",{attrs:{placement:"right"}},[e("template",{slot:"title"},[t._v(" "+t._s(t.$t("components.pl.product.sizeChart.template.question.title"))+" ")]),e("a-icon",{staticStyle:{"margin-left":"4px","margin-bottom":"2px"},attrs:{type:"question-circle"}})],2)],1)],1)],1):t._e()],1):t._e(),"packageWeight"===t.formEditKey?e("div",[e("a-row",[e("span",[t._v(t._s(t.$t("components.dyProduct.pl.value")))])]),e("a-row",[e("a-form-model-item",{attrs:{label:t.$t("components.dyProduct.package_weight.value")+" KILOGRAM",required:""}},[e("a-input",{staticStyle:{width:"23%"},on:{change:t.plPackageWeight}})],1)],1)],1):t._e(),"packageSizeChart"===t.formEditKey?e("div",[e("a-row",[e("span",[t._v(t._s(t.$t("components.dyProduct.pl.value")))])]),e("a-row",{attrs:{gutter:24}},[e("a-col",{attrs:{lg:8}},[e("a-form-model-item",{attrs:{label:t.$t("components.dyProduct.package_dimensions.height")+" CENTIMETER",required:""}},[e("a-input",{on:{change:function(e){return t.plChangeSizeChart(e,"height")}}})],1)],1),e("a-col",{attrs:{lg:8}},[e("a-form-model-item",{attrs:{label:t.$t("components.dyProduct.package_dimensions.width")+" CENTIMETER",required:""}},[e("a-input",{on:{change:function(e){return t.plChangeSizeChart(e,"width")}}})],1)],1),e("a-col",{attrs:{lg:8}},[e("a-form-model-item",{attrs:{label:t.$t("components.dyProduct.package_dimensions.length")+" CENTIMETER",required:""}},[e("a-input",{on:{change:function(e){return t.plChangeSizeChart(e,"length")}}})],1)],1)],1)],1):t._e(),"sku"===t.formEditKey?e("div",[e("a-row",[e("span",[t._v(t._s(t.$t("components.dyProduct.pl.value")))])]),e("a-row",[e("a-form-model-item",{attrs:{label:t.$t("components.dyProduct.piliang_warehouse_stock")}},[e("a-input",{staticStyle:{width:"100px"},attrs:{type:"number",min:"1"},on:{change:t.inputPiliangStock}})],1)],1)],1):t._e()])],2)],1)],1),e("div",{attrs:{slot:"footer"},slot:"footer"},[e("div",{staticStyle:{float:"left"}}),e("a-button",{on:{click:t.cancelModal}},[t._v(t._s(t.$t("components.imagetext.translation.confirm.cancel")))]),e("a-button",{attrs:{type:"primary"},on:{click:t.saveTiktok}},[t._v(t._s(t.$t("component.artilce.save.button")))]),e("a-button",{staticClass:"btnSuccess",attrs:{loading:t.btnLoading},on:{click:t.batchSubmit}},[t._v(t._s(t.$t("components.pl.product.submit.title")))])],1)]):t._e()],1)},o=[],r=i("5530"),s=(i("3ca3"),i("d81d"),i("25f0"),i("b680"),i("4de4"),i("fb6a"),i("c740"),i("159b"),i("2f62")),n=i("a026"),l=i("296e"),c=i("b70c"),d=i("cec7"),u=i("2e136"),p=Object(n["b"])((function(){return Promise.resolve().then(i.bind(null,"2dd7"))})),m=Object(n["b"])((function(){return i.e("chunk-123cd932").then(i.bind(null,"16f2"))})),h=Object(n["b"])((function(){return i.e("chunk-286b8764").then(i.bind(null,"12b1"))})),_=Object(n["b"])((function(){return i.e("chunk-123cd932").then(i.bind(null,"5f19"))})),v={name:"kandengList",props:{goodsIds:{type:Array,default:function(){return[]}}},computed:Object(r["a"])({},Object(s["c"])({shop_id:"shopId"})),components:{AntModal:p,goodsIdList:m,leftTabItem:h,kandengGoodsOne:_,dyVditor:d["default"],tiktokGlobalCategory:c["a"],tiktokAttachUpload:u["a"]},data:function(){return{formEditKey:"",columns:[{title:this.$t("components.dyProduct.dyProduct.sku.code"),dataIndex:"id",width:"30%",scopedSlots:{customRender:"id"}},{title:this.$t("view.item.sku.skuname"),dataIndex:"sales_attributes",width:"40%",scopedSlots:{customRender:"sales_attributes"}},{title:this.$t("view.item.sku.price"),dataIndex:"price",width:"18%",scopedSlots:{customRender:"price"}},{title:this.$t("view.item.sku.stock_num"),dataIndex:"stock_num",width:"12%",scopedSlots:{customRender:"stock_num"}}],aiTsUpdate:!1,ware_house_list:[],tiktokRule:{product_certifications:[],size_chart:{}},catList:[],brandList:[],attributeList:[],delivery:[],goodList:[],formTitle:this.$t("components.tiktokAddProduct.pl.title"),tiktokItemOpen:!1,tiktokItemTitle:this.$t("components.dyProduct.dyProduct.title"),tiktokProductType:2,tiktokShopSellerType:"",tiktokLocateList:["en-GB","en-US","id-ID","ms-MY","th-TH","vi-VN","zh-CN"],tiktokLocate:"",product_attributes:{},attributesList:{},pinPaiList:{},tiktokProductCatgoryShow:!1,tiktokLocalCategoryList:{},tiktokLocalPartnerCategoryList:{},tiktokGlobalLocate:"",tiktokProductGlobalCatgoryShow:!1,tiktokGlobalCategoryList:[],tiktokGlobalPartnerCategoryList:[],global_ware_house_list:[],tiktokProductCategoryId:"",tiktokGlobalProductCategoryId:"",tiktokShop:{},tiktokProductList:{},tiktokTuiJianCatList:{},product_attributesList:{},btnLoading:!1}},methods:{changeLeftTab:function(t){var e=this;"description"===this.formEditKey&&t!==this.formEditKey&&this._.map(this.tiktokProductList,(function(t,i){e.$refs["ComDitor_"+i][0].getValue1()})),this.formEditKey=t},initLoad:function(t){t&&(this.tiktokShop=t,this.tiktokShopSellerType=t.seller_type,this.tiktokGlobalItemWarehouse(),this.getPlGlobalCategory(),this.openModal())},openModal:function(){this.modalHeight=(.9*window.innerHeight).toFixed(0).toString(),this.modalWidth=(.8*window.innerWidth).toFixed(0).toString(),this.tiktokItemOpen=!0},cancelModal:function(){this.tiktokItemOpen=!1,this.ware_house_list=[],this.delivery=[],this.goodList=[],this.tiktokShopSellerType="",this.product_attributes={},this.attributesList={},this.pinPaiList={},this.tiktokGlobalCategoryList=[],this.tiktokGlobalPartnerCategoryList=[],this.global_ware_house_list=[],this.tiktokProductCategoryId="",this.tiktokGlobalProductCategoryId="",this.tiktokShop={},this.tiktokProductList={},this.tiktokTuiJianCatList={},this.product_attributesList={}},initTiktok:function(t){var e=this;Promise.all(this._.map(t,(function(t,i){return e.tiktokPublication(t)}))).then((function(t){e.$message.destroy()}))},tiktokPublication:function(t){var e=this,i=this,a={};return a.good_id=t.good_id,a.shop_cipher=i.tiktokShop.cipher,a.good_type=i.tiktokProductType,Object(l["h"])(a).then((function(a){return 0===a.code&&(delete a.code,delete a.message,i.tiktokProductList[t.good_id]=a,a.category_id&&(e.tiktokGlobalItemAttribute(t.good_id),e.getPinPai("",t.good_id)),i.tiktokProductList[t.good_id].delivery_option_ids&&1===i.tiktokProductList[t.good_id].delivery_option_ids.length&&""===i.tiktokProductList[t.good_id].delivery_option_ids[0]&&(i.tiktokProductList[t.good_id].delivery_option_ids=[]),"CROSS_BORDER"!==e.tiktokShopSellerType?e.getGlobalTuiJianCat(t.good_id):e.getGlobalCategory(t.good_id)),i.$set(e,"tiktokProductList",Object.assign({},i.tiktokProductList)),a}))},saveTiktok:function(){var t=this,e=this;this._.map(this.tiktokProductList,(function(i,a){var o;e.$refs["ComDitor_"+a]&&(null===(o=e.$refs["ComDitor_"+a])||void 0===o?void 0:o.length)>0&&e.$refs["ComDitor_"+a][0].getValue1();var r=[];t.product_attributes[a]&&t.product_attributes[a].map((function(t){var e;t.values&&t.values.length>0&&(t.values[0].value||t.values[0].id)&&((null===(e=t.values)||void 0===e?void 0:e.length)>=1&&(t.values[0].name=t.values[0].value),r.push(t))})),i.product_attributes=r}));var i={shop_cipher:this.tiktokShop.cipher,body:this.tiktokProductList,tiktok_good_type:this.tiktokProductType};Object(l["b"])(i).then((function(e){0===e.code?t.$message.success(t.$t("components.dyProduct.dyProduct.saveSuccess")):t.$message.error(t.$t("view.item.component.item.syn.operation.add.error.info"))}))},NewAttributesList:function(t){var e=this;this.product_attributesList[t]=this.attributesList[t].filter((function(t,e){return"PRODUCT_PROPERTY"===t.type&&t.is_requried&&t.values&&t.values.length>0&&(t.list=t.values.slice(0,100)),"PRODUCT_PROPERTY"===t.type})),this.product_attributes[t]||(this.product_attributes[t]=[]),this.tiktokProductList[t].product_attributes||(this.tiktokProductList[t].product_attributes=[]),this.product_attributesList[t].map((function(i){var a=e.tiktokProductList[t].product_attributes.findIndex((function(t){return t.id===i.id}));if(-1===a){var o={id:i.id,values:[]};i.values&&i.values.length>0?o.values.push({id:"",value:""}):o.values.push({value:""}),e.product_attributes[t].push(o)}else e.product_attributes[t].push(e.tiktokProductList[t].product_attributes[a])})),this.$set(this,"product_attributes",Object.assign({},this.product_attributes))},searchPinPai:function(t,e){this.getPinPai(t,e)},getPinPai:function(t,e){var i=this,a=this,o={shop_cipher:a.tiktokShop.cipher};t&&(o.brand_name=t),Object(l["u"])(o).then((function(t){0===t.code&&(i.pinPaiList[e]=t.data.brands,i.brandList=t.data.brands,i.$set(i,"pinPaiList",Object.assign({},i.pinPaiList)))}))},getPlPinPai:function(t){var e=this,i={shop_cipher:e.tiktokShop.cipher};t&&(i.brand_name=t),Object(l["u"])(i).then((function(t){0===t.code&&(e._.map(e.tiktokProductList,(function(i,a){e.pinPaiList[a]=t.data.brands})),e.brandList=t.data.brands,e.$set(e,"pinPaiList",Object.assign({},e.pinPaiList)))}))},changeBrand:function(t){this._.map(this.tiktokProductList,(function(e,i){e.brand_id=t})),this.$set(this,"tiktokProductList",Object.assign({},this.tiktokProductList))},getGlobalTuiJianCat:function(t){var e=this,i=this,a={body:{product_title:i.tiktokProductList[t].title},shop_cipher:i.tiktokShop.cipher};Object(l["l"])(a).then((function(i){if(0===i.code){var a="";i.data.categories.map((function(t){!t.is_leaf&&t.level<3?a+=t.name+">":t.is_leaf&&3===t.level&&(t.name=a+t.name)})),e.tiktokTuiJianCatList[t]=i.data.categories}}))},getGlobalCategory:function(t){var e=this,i=this,a={shop_cipher:i.tiktokShop.cipher};i.tiktokGlobalLocate&&(a.locale=i.tiktokGlobalLocate),Object(l["j"])(a).then((function(i){0===i.code&&(e.tiktokProductGlobalCatgoryShow=!0,e.tiktokGlobalCategory(i.data.categories,t))}))},getPlGlobalCategory:function(){var t=this,e={shop_cipher:t.tiktokShop.cipher};t.tiktokGlobalLocate&&(e.locale=t.tiktokGlobalLocate),Object(l["j"])(e).then((function(e){0===e.code&&(t.catList=e.data.categories)}))},tiktokGlobalCategory:function(t,e){this.tiktokGlobalCategoryList[e]=t,this.tiktokGlobalPartnerCategoryList[e]=this.tiktokGlobalCategoryList[e].filter((function(t){return"0"===t.parent_id})),this.$set(this,"tiktokGlobalCategoryList",Object.assign({},this.tiktokGlobalCategoryList))},backGlobalCategory:function(t,e){this.tiktokProductList[e].category_id=t,this.changeGlobalCategory(e)},backPlGlobalCategory:function(t){var e=this;this._.map(this.tiktokProductList,(function(i,a){e.tiktokProductList[a].category_id=t})),this.changePlGlobalCategory(t)},changeGlobalCategory:function(t){this.tiktokGlobalCategoryRule(t),this.getPinPai("",t),this.tiktokGlobalItemAttribute(t)},changePlGlobalCategory:function(t){this.tiktokPlGlobalCategoryRule(t),this.getPlPinPai(""),this.tiktokPlGlobalItemAttribute(t)},tiktokGlobalCategoryRule:function(t){var e=this,i=this,a={shop_cipher:i.tiktokShop.cipher,category_id:i.tiktokProductList[t].category_id};Object(l["i"])(a).then((function(a){var o,r,s,n,l,c;null!==a&&void 0!==a&&null!==(o=a.data)&&void 0!==o&&null!==(r=o.product_certifications)&&void 0!==r&&r.length&&(i.tiktokRule.product_certifications=a.data.product_certifications,a.data.product_certifications.forEach((function(e){e.is_required&&(i.tiktokProductList[t].certifications||(i.tiktokProductList[t].certifications=[]),i.tiktokProductList[t].certifications.push({id:e.id,name:e.name,sample_image_url:e.sample_image_url,images:[{uri:""}]}))}))),null!==a&&void 0!==a&&null!==(s=a.data)&&void 0!==s&&null!==(n=s.size_chart)&&void 0!==n&&n.is_required&&null!==a&&void 0!==a&&null!==(l=a.data)&&void 0!==l&&null!==(c=l.size_chart)&&void 0!==c&&c.is_supported&&(i.tiktokRule.size_chart=a.data.size_chart,i.tiktokProductList[t].size_chart||(i.tiktokProductList[t].size_chart={}),i.tiktokProductList[t].size_chart.image={uri:""},i.tiktokProductList[t].size_chart.template={id:""}),e.$set(e,"tiktokProductList",Object.assign({},e.tiktokProductList))}))},tiktokPlGlobalCategoryRule:function(t){var e=this,i=this,a={shop_cipher:i.tiktokShop.cipher,category_id:t};Object(l["i"])(a).then((function(t){var a,o,r,s,n,l;null!==t&&void 0!==t&&null!==(a=t.data)&&void 0!==a&&null!==(o=a.product_certifications)&&void 0!==o&&o.length&&i._.map(i.tiktokProductList,(function(e,a){i.tiktokRule.product_certifications=t.data.product_certifications,t.data.product_certifications.forEach((function(t){t.is_required&&(i.tiktokProductList[a].certifications||(i.tiktokProductList[a].certifications=[]),i.tiktokProductList[a].certifications.push({id:t.id,name:t.name,sample_image_url:t.sample_image_url,images:[{uri:""}]}))}))})),null!==t&&void 0!==t&&null!==(r=t.data)&&void 0!==r&&null!==(s=r.size_chart)&&void 0!==s&&s.is_required&&null!==t&&void 0!==t&&null!==(n=t.data)&&void 0!==n&&null!==(l=n.size_chart)&&void 0!==l&&l.is_supported&&i._.map(i.tiktokProductList,(function(e,a){i.tiktokRule.size_chart=t.data.size_chart,i.tiktokProductList[a].size_chart||(i.tiktokProductList[a].size_chart={}),i.tiktokProductList[a].size_chart.image={uri:""},i.tiktokProductList[a].size_chart.template={id:""}})),e.$set(e,"tiktokProductList",Object.assign({},e.tiktokProductList))}))},plTemplate:function(t){this._.map(this.tiktokProductList,(function(e,i){e.size_chart.template.id=t.target.value})),this.$set(this,"tiktokProductList",Object.assign({},this.tiktokProductList))},backSizeChartImage:function(t,e){this.tiktokProductList[e].size_chart.image.uri=t.img_id},backPlSizeChartImage:function(t){t.img_id&&(this.tiktokRule.size_chart.uri=t.img_id,this._.map(this.tiktokProductList,(function(e,i){e.size_chart.image.uri=t.img_id})),this.$set(this,"tiktokProductList",Object.assign({},this.tiktokProductList)))},tiktokGlobalItemAttribute:function(t){var e=this,i=this,a={shop_cipher:i.tiktokShop.cipher,category_id:i.tiktokProductList[t].category_id};Object(l["k"])(a).then((function(i){0===i.code&&(e.attributeList=i.data.attributes,e.attributesList[t]=i.data.attributes,e.NewAttributesList(t))}))},tiktokPlGlobalItemAttribute:function(t){var e=this,i={shop_cipher:e.tiktokShop.cipher,category_id:t};Object(l["k"])(i).then((function(t){0===t.code&&(e.attributeList=t.data.attributes,e._.map(e.tiktokProductList,(function(i,a){e.attributesList[a]=t.data.attributes,e.NewAttributesList(a)})))}))},getRules:function(t){return[{required:t.is_requried,message:this.$t("view.config.style.pleaseEdit")+" "+t.name}]},getValues100:function(t,e){this.product_attributesList[t][e].list&&0!==this.product_attributesList[t][e].list.length||(this.product_attributesList[t][e].list=this.product_attributesList[t][e].values.slice(0,100),this.$set(this,"product_attributesList",Object.assign({},this.product_attributesList)))},getPlValues100:function(t){var e=this;this._.map(this.tiktokProductList,(function(i,a){e.product_attributesList[a][t].list&&0!==e.product_attributesList[a][t].list.length||(e.product_attributesList[a][t].list=e.product_attributesList[a][t].values.slice(0,100))})),this.$set(this,"product_attributesList",Object.assign({},this.product_attributesList))},inputAttribute:function(t,e){var i=this;this._.map(this.tiktokProductList,(function(a,o){i.product_attributes[o][e].values[0].value=t.target.value})),this.$set(this,"product_attributes",Object.assign({},this.product_attributes))},plPackageWeight:function(t){this._.map(this.tiktokProductList,(function(e,i){e.package_weight.value=t.target.value})),this.$set(this,"tiktokProductList",Object.assign({},this.tiktokProductList))},plChangeSizeChart:function(t,e){this._.map(this.tiktokProductList,(function(i,a){i.package_dimensions[e]=t.target.value})),this.$set(this,"tiktokProductList",Object.assign({},this.tiktokProductList))},onChangeAttributes:function(t,e,i,a){var o;this.product_attributes[i][a].values[0].value=null===(o=e.data.attrs)||void 0===o?void 0:o.text,this.$set(this,"product_attributes",Object.assign({},this.product_attributes))},onChangePlAttributes:function(t,e,i){var a=this;this._.map(this.tiktokProductList,(function(o,r){var s;a.product_attributes[r][i].values[0].id=t,a.product_attributes[r][i].values[0].value=null===(s=e.data.attrs)||void 0===s?void 0:s.text})),this.$set(this,"product_attributes",Object.assign({},this.product_attributes))},changePiliangWareHouse:function(t){t>0&&this._.map(this.tiktokProductList,(function(e,i){e.skus.forEach((function(e){e.inventory&&(e.inventory[0].global_warehouse_id=t)}))}))},inputPiliangStock:function(t){var e=t.target.value;e>0&&this._.map(this.tiktokProductList,(function(t,i){t.skus.forEach((function(t){t.global_quantity&&(t.global_quantity=e)}))}))},tiktokGlobalItemWarehouse:function(){var t=this,e={shop_cipher:this.tiktokShop.cipher};Object(l["o"])(e).then((function(e){0===e.code&&(t.global_ware_house_list=e.data.global_warehouses)}))},resetQuery:function(t,e,i){this.tiktokProductList[i].certifications.forEach((function(i){i.id===e&&(i.images=[{uri:t.img_id}])}))},batchSubmit:function(){var t=this,e=[];t._.map(t.tiktokProductList,(function(t,i){e.push(Number(i))}));var i={shop_cipher:t.tiktokShop.cipher,good_ids:e,tiktok_good_type:t.tiktokProductType};t.btnLoading=!0,Object(l["a"])(i).then((function(e){t.btnLoading=!1})).catch((function(){t.btnLoading=!1}))}}},f=Object(r["a"])({},v),g=f,k=i("2877"),y=Object(k["a"])(g,a,o,!1,null,null,null);e["default"]=y.exports},"8cdb":function(t,e,i){"use strict";i.r(e);var a=function(){var t=this,e=t._self._c;return e("div")},o=[],r={name:"404"},s=r,n=i("2877"),l=Object(n["a"])(s,a,o,!1,null,"206078e4",null);e["default"]=l.exports},"8faf":function(t,e,i){"use strict";i.r(e);var a=function(){var t=this,e=t._self._c;return e("span",[e("a-button",{attrs:{type:"primary"},on:{click:t.openLoginModal}},[t._v(t._s(t.$t("view.user.syn.register.tab1")))]),e("a-modal",{attrs:{visible:t.visible,title:t.formTitle,zIndex:9999},on:{cancel:t.Cencel}},[e("div",[e("a-form-model",{ref:"form",staticClass:"user-layout-login",attrs:{id:"formLogin",model:t.formData,rules:t.rules}},[e("a-form-model-item",{attrs:{prop:"username"}},[e("a-input",{attrs:{size:"large",placeholder:t.$t("view.config.email.add.username.label")},model:{value:t.formData.username,callback:function(e){t.$set(t.formData,"username",e)},expression:"formData.username"}},[e("a-icon",{style:{color:"rgba(0,0,0,.25)"},attrs:{slot:"prefix",type:"user"},slot:"prefix"})],1)],1),e("a-form-model-item",{attrs:{prop:"password"}},[e("a-input-password",{attrs:{size:"large",placeholder:t.$t("view.login.email.add.password.label")},model:{value:t.formData.password,callback:function(e){t.$set(t.formData,"password",e)},expression:"formData.password"}},[e("a-icon",{style:{color:"rgba(0,0,0,.25)"},attrs:{slot:"prefix",type:"lock"},slot:"prefix"})],1)],1),e("a-form-model-item",{attrs:{prop:"realname"}},[e("a-input",{attrs:{size:"large",placeholder:t.$t("view.config.email.add.realname.label")},model:{value:t.formData.realname,callback:function(e){t.$set(t.formData,"realname",e)},expression:"formData.realname"}},[e("a-icon",{style:{color:"rgba(0,0,0,.25)"},attrs:{slot:"prefix",type:"user"},slot:"prefix"})],1)],1),e("a-form-model-item",{attrs:{prop:"mobile"}},[e("a-input",{attrs:{size:"large",placeholder:t.$t("view.config.email.add.mobile.label")},model:{value:t.formData.mobile,callback:function(e){t.$set(t.formData,"mobile",e)},expression:"formData.mobile"}},[e("a-icon",{style:{color:"rgba(0,0,0,.25)"},attrs:{slot:"prefix",type:"phone"},slot:"prefix"})],1)],1),e("a-form-model-item",{attrs:{prop:"email"}},[e("a-input",{attrs:{size:"large",placeholder:t.$t("view.config.email.add.email.label")},model:{value:t.formData.email,callback:function(e){t.$set(t.formData,"email",e)},expression:"formData.email"}},[e("a-icon",{style:{color:"rgba(0,0,0,.25)"},attrs:{slot:"prefix",type:"mail"},slot:"prefix"})],1)],1),e("a-row",{attrs:{gutter:16}},[e("a-col",{staticClass:"gutter-row",attrs:{lg:18,sm:18,md:18,xs:16}},[e("a-form-model-item",{attrs:{prop:"code"}},[e("a-input",{attrs:{size:"large",type:"text",autocomplete:"off",placeholder:t.$t("view.modal.email.code.placeholder")},model:{value:t.formData.code,callback:function(e){t.$set(t.formData,"code",e)},expression:"formData.code"}},[e("a-icon",{style:{color:"rgba(0,0,0,.25)"},attrs:{slot:"prefix",type:"security-scan"},slot:"prefix"})],1)],1)],1),e("a-col",{staticClass:"gutter-row",attrs:{lg:6,sm:6,md:6,xs:8}},[e("a-button",{staticClass:"login-button",staticStyle:{padding:"0 0px"},attrs:{type:"primary",loading:t.codeLoading,size:"large"},on:{click:t.getEmailCode}},[t._v(t._s(t.codeLoading?t.$t("view.modal.code.time",{time:t.currentCodeTime}):t.$t("view.modal.email.code")))])],1)],1),e("a-form-model-item",{attrs:{prop:"distribution_code"}},[e("a-input",{attrs:{size:"large",placeholder:t.$t("view.config.add.code.label")},model:{value:t.formData.distribution_code,callback:function(e){t.$set(t.formData,"distribution_code",e)},expression:"formData.distribution_code"}},[e("a-icon",{style:{color:"rgba(0,0,0,.25)"},attrs:{slot:"prefix",type:"security-scan"},slot:"prefix"})],1)],1)],1)],1),e("template",{slot:"footer"},[e("a-button",{key:"back",on:{click:t.Cencel}},[t._v(" "+t._s(t.$t("view.service.message.modal.cancelText"))+" ")]),e("a-button",{key:"submit",attrs:{type:"primary",loading:t.loading},on:{click:t.register}},[t._v(" "+t._s(t.$t("view.user.register"))+" ")])],1)],2)],1)},o=[],r=i("5530"),s=(i("d3b7"),i("a9e3"),i("25f0"),i("c0c7")),n=i("56cd"),l=i("bc3a"),c=i.n(l),d=i("ca00"),u={name:"PlatformRegiset",data:function(){return{formData:{},visible:!1,formTitle:"",loading:!1,codeLoading:!1,codeUrl:"",rules:{username:[{required:!0,message:this.$t("view.config.email.add.username.placeholder"),trigger:"blur"}],password:[{required:!0,message:this.$t("view.config.email.add.password.placeholder"),trigger:"blur"}],realname:[{required:!1,message:this.$t("view.config.email.add.realname.placeholder"),trigger:"blur"}],mobile:[{required:!1,message:this.$t("view.config.email.add.mobile.placeholder"),trigger:"blur"}],email:[{required:!1,message:this.$t("view.config.email.add.email.placeholder"),trigger:"blur"}],code:[{required:!0,message:this.$t("login.modal.code.relue"),trigger:"blur"}],cid:[{required:!0,message:"验证码ID不能为空",trigger:"blur"}]},currentCodeTime:0}},props:{role:{type:String,required:!0},registerUrl:{type:String,required:!0},showConfigList:{type:Boolean,default:!1},title:{type:String,required:!0}},created:function(){this.formTitle=this.title+this.$t("view.user.syn.register.tab1"),this.initData()},methods:{emilCode:function(t){return c.a.defaults.withCredentials=!0,fetch(this.registerUrl+"/admin/member/email/verify",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(t)}).then((function(t){return t.json()})).then((function(t){return t}))},memberRegister:function(t){var e=JSON.parse(JSON.stringify(t));return e.role=Number(this.role),fetch(this.registerUrl+"/admin/member/register",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)}).then((function(t){return t.json()})).then((function(t){return 0!==t.code&&n["a"].error({message:t.message,description:t.message}),t})).catch((function(t){}))},getEmailCode:function(){var t=this;this.codeLoading||this.$refs.form.validateField("email",(function(e){e||t.emilCode({email:t.formData.email}).then((function(e){0===e.code&&(t.codeLoading=!0,t.getCodeTime(),t.$message.success(t.$t("view.modal.code.succes")))}))}))},getCodeTime:function(){var t=this,e=30;this.currentCodeTime=e,this.CodeTime=setInterval((function(){e--,t.currentCodeTime=e,e<=0&&(t.codeLoading=!1,clearInterval(t.CodeTime))}),1e3)},initData:function(){var t=this;Object(s["j"])().then((function(e){e.user&&(t.formData={realname:e.user.realname,email:e.user.email,mobile:e.user.mobile,username:e.user.username,password:Object(d["g"])(6)})}))},register:function(){var t=this;this.$refs.form.validate((function(e){e&&(t.loading=!0,t.formData.remark="蜂洞客户",t.memberRegister(t.formData).then((function(e){t.loading=!1,0===e.code&&(t.$message.success(t.$t("view.modal.register.succes")),t.formData.huoyuan_name=t.title,t.formData.huoyuan_url=t.registerUrl,t.$emit("registerSuccess",t.formData),t.Cencel())})).catch((function(e){t.loading=!1,n["a"].error({message:e.toString(),description:e.toString()})})))}))},setConfig:function(){var t=this;this.showConfigList&&this.$refs.platfConfigRef.openModal(),setTimeout((function(){var e=t.formData;t.$refs.platfConfigRef.showModal({syntype:"beehole",api_url:t.registerUrl,app_key:e.username,app_secret:e.password,beehole_login_type:2})}),500)},openLoginModal:function(){this.visible=!0},Cencel:function(){this.visible=!1}},components:{}},p=Object(r["a"])({},u),m=p,h=(i("6947"),i("2877")),_=Object(h["a"])(m,a,o,!1,null,"21b00a37",null);e["default"]=_.exports},a32b:function(t,e,i){},a4d4:function(t,e,i){},abd6:function(t,e,i){"use strict";i.r(e);var a=function(){var t=this,e=t._self._c;return e("span",[e("a-button",{attrs:{type:"primary"},on:{click:t.handleClick}},[t._v(t._s(t.$t("view.warehouse.form.stocks.update")))]),e("ant-modal",{attrs:{visible:t.visable,"modal-title":t.formTitle,"adjust-size":!0,modalHeight:"600",modalWidth:"800"},on:{cancel:function(e){return t.closeModal()}}},[e("div",{staticClass:"orderDetail",attrs:{slot:"content"},slot:"content"},[e("a-form-model",t._b({ref:"form",attrs:{model:t.stockForm}},"a-form-model",t.itemLayout,!1),[e("a-form-model-item",{attrs:{"has-feedback":"",label:""}},[e("div",{staticStyle:{display:"flex"}},[e("div",[t._v(t._s(t.$t("view.warehouse.list.name"))+":")]),t.visable?e("wareHouseInfo",{attrs:{warehouseId:t.wareHouseId}}):t._e()],1)]),e("a-form-model-item",{attrs:{"has-feedback":"",label:"",prop:"shipment_id"}},[e("div",[t._v(t._s(t.$t("view.warehouse.list.stock.list.label")))]),e("a-textarea",{attrs:{rows:10,placeholder:t.$t("view.warehouse.list.stock.list.placeholder")},model:{value:t.stockForm.stockRow,callback:function(e){t.$set(t.stockForm,"stockRow",e)},expression:"stockForm.stockRow"}})],1)],1),e("a-form-model-item",{attrs:{"has-feedback":""}},[e("a-button",{attrs:{type:"primary"},on:{click:t.submitForm}},[t._v(" "+t._s(t.$t("component.artilce.save.button"))+" ")])],1)],1),e("template",{slot:"footer"},[e("a-button",{on:{click:t.closeModal}},[t._v(t._s(t.$t("component.artilce.close.button")))])],1)],2)],1)},o=[],r=i("5530"),s=(i("d3b7"),i("3ca3"),i("ddb0"),i("a9e3"),i("d81d"),i("2dd7")),n=i("89f8"),l=i("a026"),c=Object(l["b"])((function(){return Promise.resolve().then(i.bind(null,"f2b2"))})),d={name:"ordersShips",data:function(){return{visable:!1,formTitle:"",forms:[],itemLayout:{labelCol:{lg:2},wrapperCol:{lg:22}},stockForm:{stockRow:"",warehouse_id:""}}},props:{orders:{type:Array,default:function(){return[]}},wareHouseId:{type:Number,default:0}},components:{AntModal:s["default"],WareHouseInfo:c},methods:{closeModal:function(){this.visable=!1},handleClick:function(){this.formTitle=this.$t("view.warehouse.form.stocks.update"),this.visable=!0},handleChange1:function(t){this.stockForm.warehouse_id=t},handleChange:function(t,e){this.forms[e].warehouse_id=t},submitForm:function(){var t=this,e=[],i=this.stockForm.stockRow.split("\n");i.map((function(i){var a=i.split(",");e.push({out_id:a[0],stock_quantity:a[1],warehouse_id:t.wareHouseId})})),e&&e.length>0&&Object(n["b"])({stock_details:e}).then((function(e){0===e.code&&(t.$message.success(t.$t("view.warehouse.list.stock.list.success")),t.visable=!1,t.$emit("ok"))}))}}},u=Object(r["a"])({},d),p=u,m=i("2877"),h=Object(m["a"])(p,a,o,!1,null,null,null);e["default"]=h.exports},adee:function(t,e,i){},b6ad:function(t,e,i){},c06f:function(t,e,i){"use strict";i.r(e);var a=function(){var t=this,e=t._self._c;return e("span",[e("a-table",{attrs:{columns:t.columns,"row-selection":{type:"radio",selectedRowKeys:t.selectedRowKeys,onChange:t.onSelectChange},"data-source":t.list,rowkey:"id",pagination:{current:t.query.page,pageSize:t.query.limit,total:t.total,showSizeChanger:!1,showLessItems:!1,showQuickJumper:!1,onChange:t.changeSize,hideOnSinglePage:!0}},scopedSlots:t._u([{key:"source_lang",fn:function(i,a){return e("span",{},[t._v(" "+t._s(t.$t(t.langLabel[a.source_lang]))+" ")])}},{key:"target_lang",fn:function(i,a){return e("span",{},[t._v(" "+t._s(t.$t(t.langLabel[a.target_lang]))+" ")])}},{key:"video_url",fn:function(i,a){return e("span",{},[e("div",[e("div",{style:{width:"150px",height:"150px"}},[a.video_url?e("video",{ref:"sfGalleryBigImage",staticStyle:{"object-position":"top","max-height":"150px"},attrs:{autoplay:!1,muted:"",preload:"load",loop:"",src:a.video_url,width:"100%",height:"100%",controls:"controls",playsinline:""},domProps:{muted:!0}},[e("source",{attrs:{src:a.video_url,type:"video/*"}})]):t._e()]),e("div",[t._v(t._s(a.video_url))])])])}}])})],1)},o=[],r=i("3726"),s={name:"VideoList",props:{url:{type:String,default:""},hiddenIcon:{type:Boolean,default:!1}},data:function(){var t=this,e=this.$createElement;return{list:[],query:{page:1,limit:10},total:0,columns:[{title:this.$t("components.imagetext.translation.sourceLang"),dataIndex:"source_lang",key:"source_lang",scopedSlots:{customRender:"source_lang"}},{title:this.$t("components.imagetext.translation.targetLang"),dataIndex:"target_lang",key:"target_lang",scopedSlots:{customRender:"target_lang"}},{title:function(){return e("span",[t.$t("components.videoList.table.video"),e("a-tooltip",{attrs:{title:t.$t("view.item.skulist.btn.refresh")}},[e("a-icon",{on:{click:t.getList},class:"action",attrs:{type:t.loading?"loading":"reload"}})])])},dataIndex:"video_url",key:"video_url",scopedSlots:{customRender:"video_url"}}],langLabel:{zh:"zh-CN",en:"en-US",fr:"fr-FR",es:"es-ES",ar:"ar-EG",hi:"hi-IN",pt:"pt-PT",ru:"ru-RU",it:"it-IT",de:"de-DE",ja:"ja-JP",th:"th-TH",ko:"ko-KR",bn:"bn-BD",id:"id-ID",vi:"vi-VN",ms:"ms-MY"},selectedRowKeys:[],loading:!1}},created:function(){this.getList()},methods:{getList:function(){var t=this;this.loading=!0,Object(r["g"])({page:this.query.page,limit:this.query.limit}).then((function(e){0===e.code&&(t.list=e.list,t.total=e.total),t.loading=!1})).catch((function(){t.loading=!1}))},changeSize:function(t){this.query.page=t,this.getList()},onSelectChange:function(t,e){this.selectedRowKeys=t,this.$emit("ok",e[0].video_url)}}},n=s,l=i("2877"),c=Object(l["a"])(n,a,o,!1,null,null,null);e["default"]=c.exports},cc89:function(t,e,i){"use strict";i.r(e);var a=function(){var t=this,e=t._self._c;return e("div")},o=[],r={name:"Exception404",methods:{toHome:function(){this.$router.push({path:"/"})}}},s=r,n=i("2877"),l=Object(n["a"])(s,a,o,!1,null,null,null);e["default"]=l.exports},dc25:function(t,e,i){"use strict";i.r(e);var a=function(){var t=this,e=t._self._c;return e("div",[e("a-modal",{attrs:{visible:t.Visible,zIndex:1e21,footer:null},on:{cancel:t.handleCancel}},[t.isVideo?e("video",{staticStyle:{width:"100%"},attrs:{controls:"",src:t.previewImage}},[e("source",{attrs:{src:t.previewImage,type:"video/*",autoplay:!0,muted:"",preload:"load",loop:""}})]):e("img",{staticStyle:{width:"100%"},attrs:{alt:"example",src:t.previewImage}})])],1)},o=[],r={props:{previewVisible:{type:Boolean,default:!1},previewImage:{type:String,default:""},isVideo:{type:Boolean,default:!1}},computed:{Visible:function(){return this.visable||this.previewVisible}},data:function(){return{visable:!1}},methods:{openPreivewModal:function(){this.visable=!0},handleCancel:function(){this.visable=!1,this.$emit("cancel"),this.$emit("update:previewVisible",!1)}}},s=r,n=i("2877"),l=Object(n["a"])(s,a,o,!1,null,null,null);e["default"]=l.exports},de6c:function(t,e,i){"use strict";i.r(e);var a=function(){var t=this,e=t._self._c;return e("div",[e("div",{staticStyle:{display:"flex","flex-wrap":"wrap","align-items":"center",gap:"5px"}},[t.stockData&&t.stockData.warehouse_country_list?e("div",[e("a-select",{staticStyle:{"min-width":"100px"},on:{change:t.changeCountry},model:{value:t.countryName,callback:function(e){t.countryName=e},expression:"countryName"}},t._l(t.stockData.warehouse_country_list,(function(i){return e("a-select-option",{key:i},[t._v(t._s(t.$t(i)))])})),1)],1):t._e(),t.stockData&&void 0!==t.stockData.available_stock?e("a",[e("a-tag",{attrs:{color:t.getRgb(t.warehouseId)}},[e("div",{staticStyle:{display:"flex","flex-wrap":"wrap",gap:"5px"}},[e("div",[t._v(t._s(t.$t("view.skuStockDescribe.availableStock"))+" "+t._s(t.stockData.available_stock)+" = ")]),e("div",[t._v(t._s(t.$t("view.skuStockDescribe.physicalStock"))+" "+t._s(t.stockData.physical_stock)+" - ")]),e("div",[t._v(t._s(t.$t("view.skuStockDescribe.lockStock"))+" "+t._s(t.stockData.lock_stock)+" -")]),e("div",[t._v(t._s(t.$t("view.skuStockDescribe.reservedStock"))+" "+t._s(t.stockData.reserved_stock))])])])],1):t._e()]),e("ant-modal",{attrs:{visible:t.open,"modal-title":t.$t("view.skuStockDescribe.modalTitle")},on:{cancel:t.close}},[e("div",{attrs:{slot:"content"},slot:"content"},[e("a-row",[e("a-col",{attrs:{lg:12}},[t._v(" "+t._s(t.$t("view.skuStockDescribe.availableStock"))+": "+t._s(t.stockData.available_stock)+" ")]),e("a-col",{attrs:{lg:12}},[t._v(" "+t._s(t.$t("view.skuStockDescribe.lockStock"))+": "+t._s(t.stockData.lock_stock)+" ")]),e("a-col",{attrs:{lg:12}},[t._v(" "+t._s(t.$t("view.skuStockDescribe.physicalStock"))+": "+t._s(t.stockData.physical_stock)+" ")]),e("a-col",{attrs:{lg:12}},[t._v(" "+t._s(t.$t("view.skuStockDescribe.reservedStock"))+": "+t._s(t.stockData.reserved_stock)+" ")])],1)],1)])],1)},o=[],r=(i("99af"),i("89f8")),s=i("2dd7"),n=i("ca00"),l={data:function(){return{open:!1,stockData:{},countryName:""}},props:{warehouseId:null,outId:null,country:null},created:function(){this.fetchStockData(!0)},methods:{openModal:function(){this.open=!0,this.fetchStockData()},close:function(){this.open=!1},changeCountry:function(){this.fetchStockData()},fetchStockData:function(t){var e=this,i={warehouse_id:this.warehouseId,out_id:this.outId,country:this.country};this.countryName&&(i.country=this.countryName),Object(r["a"])(i).then((function(i){var a;0===i.code&&(e.stockData=Object.assign({},i),e.stockData.warehouse_country_list&&e.stockData.warehouse_country_list.length>0&&t&&(e.countryName=null===(a=e.stockData.warehouse_country_list)||void 0===a?void 0:a[0]))}))},getRgb:function(t){var e=Object(n["i"])(t);return e?"rgb(".concat(e[0],", ").concat(e[1],", ").concat(e[2],")"):"rgb(255, 255, 0)"}},components:{AntModal:s["default"]}},c=l,d=(i("3713"),i("2877")),u=Object(d["a"])(c,a,o,!1,null,"a9009144",null);e["default"]=u.exports},e52f:function(t,e,i){"use strict";i.r(e);var a=function(){var t=this,e=t._self._c;return e("div",t._l(t.countryList,(function(i){return 0==i.status?e("div",{key:i.country_code,staticStyle:{"margin-right":"5px",display:"inline-block"}},[t._v(" "+t._s(t.$t(i.country_code))+" ")]):t._e()})),0)},o=[],r=(i("d81d"),i("4dc7")),s={name:"WarehouseCountryList",data:function(){return{countryList:[]}},props:{wareaHouseId:null},created:function(){this.getCountryList()},methods:{getCountryList:function(){var t=this;Object(r["c"])().then((function(e){var i=[];e.list&&e.list.length&&e.list.map((function(e){e.warehouse_id===t.wareaHouseId&&i.push(e)})),t.countryList=i}))}}},n=s,l=i("2877"),c=Object(l["a"])(n,a,o,!1,null,null,null);e["default"]=c.exports},f9ea:function(t,e,i){"use strict";i.r(e);i("a9e3");var a=function(){var t=this,e=t._self._c;return e("span",[t.isA?e("a",{on:{click:t.openModal}},[t._v(t._s(t.$t("view.order.detail.warehouse.update")))]):e("a-button",{attrs:{type:"primary"},on:{click:t.openModal}},[t._v(t._s(t.$t("view.order.detail.warehouse.update")))]),e("ant-modal",{attrs:{visible:t.visable,"modal-title":t.formTitle,"adjust-size":!0,modalHeight:"600",modalWidth:"1200"},on:{cancel:function(e){return t.closeModal()}},scopedSlots:t._u([{key:"footer",fn:function(){return[e("a-button",{on:{click:t.closeModal}},[t._v(t._s(t.$t("view.test.list.form.button.cancel")))])]},proxy:!0}])},[t.order?e("div",{staticClass:"orderDetail",attrs:{slot:"content"},slot:"content"},[e("a-row",[e("a-col",{attrs:{span:24}},[e("div",[e("div",[t._v(" "+t._s(t.$t("order.switch.warehouse.koujian.stock.title"))+" :"),e("wareHouseInfo",{attrs:{warehouseId:t.order.order_item[0].stock_log?Number(t.order.order_item[0].stock_log.warehouse_id):0}})],1),e("div",[t._v(" "+t._s(t.$t("order.switch.warehouse.koujian.stock.reset.title"))+":"),t.order.order_item?e("wareHouseSelect",{staticStyle:{width:"200px",display:"inline-block","margin-right":"10px"},attrs:{wareHouseId:t.order.order_item[0].stock_log?Number(t.order.order_item[0].stock_log.warehouse_id):0},on:{change:t.changeWareHouseId}}):t._e(),e("a-button",{attrs:{type:"primary"},on:{click:t.saveWareHouse}},[t._v(t._s(t.$t("view.order.detail.warehouse.update")))])],1)])])],1),e("a-table",{attrs:{columns:t.columns,"data-source":t.order.order_item,pagination:!1},scopedSlots:t._u([{key:"img_url",fn:function(t){return[e("a-avatar",{attrs:{shape:"square",size:85,src:t}})]}},{key:"Title",fn:function(i,a){return[e("div",[e("div",[t._v(t._s(a.title))]),e("a-row",{attrs:{type:"flex"}},[e("a-col",{attrs:{flex:3}},["string"==typeof a.sku_prop?e("span",[t._v(" "+t._s(a.sku_prop)+" ")]):e("span",t._l(a.sku_prop,(function(i,a){return e("div",{key:a},[e("span",[t._v(t._s(a)+":"+t._s(i))])])})),0)])],1),e("div",[t._v(t._s(t.$t("view.order.detial.item.outid"))+" "+t._s(a.out_id))]),e("div",[t._v(t._s(t.$t("view.order.detial.item.barcode"))+" "+t._s(a.barcode))]),a.stock_log?e("div",[t._v(" "+t._s(t.$t("view.item.sku.wareHouse"))+" "),e("wareHouseInfo",{attrs:{warehouseId:a.stock_log.warehouse_id}})],1):t._e()],1)]}},{key:"price",fn:function(i){return[e("div",[t._v(t._s(t.shopQuoteCurrency)+" "+t._s(i))])]}},{key:"discount",fn:function(i){return[e("div",[t._v(t._s(t.shopQuoteCurrency)+" "+t._s(i))])]}},{key:"tax_fee",fn:function(i){return[e("div",[t._v(t._s(t.shopQuoteCurrency)+" "+t._s(i))])]}},{key:"amount",fn:function(i){return[e("div",[t._v(t._s(t.shopQuoteCurrency)+" "+t._s(i))])]}}],null,!1,3588468014)})],1):t._e()])],1)},o=[],r=i("5530"),s=i("3a10"),n=i("2dd7"),l=i("d7eec"),c=i("2f62"),d=i("f2b2"),u={name:"switchWareHouse",data:function(){return{order:null,visable:!1,formTitle:"",wareHouseId:0,columns:[{title:this.$t("view.order.detail.item"),dataIndex:"img_url",key:"img_url",width:"110px",scopedSlots:{customRender:"img_url"}},{title:this.$t("view.order.detail.itemTitle"),dataIndex:"Title",key:"Title",width:"200px",scopedSlots:{customRender:"Title"}},{title:this.$t("view.order.detail.itemNum"),dataIndex:"num",key:"num"},{title:this.$t("view.order.detail.itemPrice"),key:"price",dataIndex:"price",scopedSlots:{customRender:"price"}},{title:this.$t("view.order.detail.discount"),key:"discount",dataIndex:"discount",scopedSlots:{customRender:"discount"}},{title:this.$t("view.order.detail.tax"),key:"tax_fee",dataIndex:"tax_fee",scopedSlots:{customRender:"tax_fee"}},{title:this.$t("view.order.detail.amount"),key:"amount",dataIndex:"total_payment",scopedSlots:{customRender:"amount"}}]}},computed:Object(r["a"])({},Object(c["c"])(["shopQuoteCurrency","isMobile","domain"])),components:{AntModal:n["default"],wareHouseSelect:l["a"],wareHouseInfo:d["default"]},props:{orderId:{type:String,default:0},isA:{type:Boolean,default:!0},note:{type:String,default:""},skuId:null},methods:{openModal:function(){this.formTitle=this.$t("view.order.detail.warehouse.modal.title",{orderNo:this.orderId}),this.visable=!0,this.getOrder()},closeModal:function(){this.visable=!1},getOrder:function(){var t=this,e=[];this.orderId&&e.push({field:"order_id",operator:"eq",value:this.orderId});var i={};i.conditions=e,Object(s["y"])(i).then((function(e){var i;if(t.order=null===(i=e.list)||void 0===i?void 0:i[0],null==t.order)return t.$notification.error({message:t.$t("view.order.list.order.null"),duration:5}),!1}))},changeWareHouseId:function(t){this.wareHouseId=t},saveWareHouse:function(){var t=this;this.$confirm({title:this.$t("view.order.detail.warehouse.modal.confirm.title"),content:this.$t("view.order.detail.warehouse.modal.confirm.content"),onOk:function(){var e,i,a,o;Object(s["D"])({order_id:t.orderId,switch_info:[{to_warehouse_id:t.wareHouseId,sku_id:null===(e=t.order.order_item)||void 0===e||null===(i=e[0])||void 0===i?void 0:i.sku_id,out_id:null===(a=t.order.order_item)||void 0===a||null===(o=a[0])||void 0===o?void 0:o.out_id}],warehouse_id:t.wareHouseId}).then((function(e){0===e.code&&(t.$notification.success({message:t.$t("view.order.detail.warehouse.update.success"),duration:5}),t.$emit("ok"),t.getOrder())}))},onCancel:function(){}})}}},p=Object(r["a"])({},u),m=p,h=i("2877"),_=Object(h["a"])(m,a,o,!1,null,null,null);e["default"]=_.exports}}]);
@@ -1 +0,0 @@
1
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-452aba94"],{"0a49":function(e,t,a){},"0c499":function(e,t,a){"use strict";a.r(t);var i=a("6f71");t["default"]=i["default"]},"0de6":function(e,t,a){"use strict";a.r(t);var i=a("c7eb"),r=a("1da1"),s=a("3835"),o=a("5530"),n=(a("d3b7"),a("3ca3"),a("ddb0"),a("d81d"),a("4de4"),a("99af"),a("a434"),a("2dd7")),l=a("2f62"),c=a("1b6c"),d=a("f9ee"),u=a("fff4"),p=function(){return a.e("chunk-452aba94").then(a.bind(null,"0c499"))};t["default"]={name:"LogisticsProviderModal",props:{wmsId:{default:null},warehouseCode:{default:null}},data:function(){return{open:!1,formTitle:"",timeList:[{start:null,end:null}],formData:{wms_id:void 0,warehouse_code:void 0,data:{code:"",name:"",name_en:"",type:"0",sp_code:"",is_signature:0,address_validation:0,is_specify_arrival_time:0,delivery_time_list:"",is_truck:0,is_optional_board:0,is_ooh:0,sm_business_type:0,distributor_type:0}},loading:!1}},methods:{handleAdd:function(){this.open=!0,this.formTitle=Object(c["b"])("view.logistics.addPage.modal.title"),this.resetForm()},handleEdit:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(this.open=!0,this.formTitle=Object(c["b"])("view.logistics.editPage.modal.title"),this.formData=Object(o["a"])({},t),this.formData.data.delivery_time_list)try{var a=JSON.parse(this.formData.data.delivery_time_list);this.timeList=a.map((function(t){var a=t.split("~"),i=Object(s["a"])(a,2),r=i[0],o=i[1];return{start:e.$moment("2000-01-01 ".concat(r)),end:e.$moment("2000-01-01 ".concat(o))}}))}catch(i){this.timeList=[{start:null,end:null}]}},cancel:function(){this.open=!1,this.resetForm()},resetForm:function(){this.formData={wms_id:void 0,warehouse_code:void 0,data:{code:"",name:"",name_en:"",type:"0",sp_code:"",is_signature:0,address_validation:0,is_specify_arrival_time:0,delivery_time_list:"",is_truck:0,is_optional_board:0,is_ooh:0,sm_business_type:1,distributor_type:0}},this.wmsId&&(this.formData.wms_id=this.wmsId),this.warehouseCode&&(this.formData.warehouse_code=this.warehouseCode),this.timeList=[{start:null,end:null}],this.$refs.form&&this.$refs.form.resetFields()},submitForm:function(){var e=this;this.$refs.form.validate(function(){var t=Object(r["a"])(Object(i["a"])().mark((function t(a){var r,s,n;return Object(i["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(!a){t.next=14;break}return r=e.timeList.filter((function(e){return e.start&&e.end})).map((function(e){var t=e.start.format("HH:mm"),a=e.end.format("HH:mm");return"".concat(t,"~").concat(a)})),e.formData.data.delivery_time_list=JSON.stringify(r),s=Object(o["a"])(Object(o["a"])({},e.formData),{},{data:Object(o["a"])(Object(o["a"])({},e.formData.data),{},{is_signature:!!e.formData.data.is_signature,address_validation:!!e.formData.data.address_validation,is_specify_arrival_time:!!e.formData.data.is_specify_arrival_time,is_truck:!!e.formData.data.is_truck,is_optional_board:!!e.formData.data.is_optional_board,is_ooh:!!e.formData.data.is_ooh})}),t.prev=4,t.next=7,Object(d["a"])(s);case 7:n=t.sent,0===n.code&&(e.$message.success(e.$t("view.logistics.message.saveSuccess")),e.$emit("success"),e.cancel()),t.next=14;break;case 11:t.prev=11,t.t0=t["catch"](4),e.$message.error(e.$t("view.logistics.message.saveFailed"));case 14:case"end":return t.stop()}}),t,null,[[4,11]])})));return function(e){return t.apply(this,arguments)}}())},handleWarehouseChange:function(e){},addTimeRange:function(){this.timeList.push({start:null,end:null})},removeTimeRange:function(e){this.timeList.splice(e,1)},handleTimeChange:function(){var e=this.timeList.filter((function(e){return e.start&&e.end})).map((function(e){var t=e.start.format("HH:mm"),a=e.end.format("HH:mm");return"".concat(t,"~").concat(a)}));this.formData.data.delivery_time_list=JSON.stringify(e)}},computed:Object(o["a"])({},Object(l["c"])(["shopId","isMobile"])),components:{AntModal:n["default"],WmsSelect:p,GoodcangWarehouseSelect:u["a"]}}},"1d24":function(e,t,a){"use strict";a("0a49")},"2ab0":function(e,t,a){},3058:function(e,t,a){"use strict";a.d(t,"b",(function(){return r})),a.d(t,"a",(function(){return s}));var i=a("b775");function r(e){return Object(i["b"])({url:"/good_cang/get_warehouse",method:"get",params:e})}function s(e){return Object(i["b"])({url:"/good_cang/warehouse/shipping_method",method:"get",params:e})}},4139:function(e,t,a){"use strict";a("b819")},"4b93":function(e,t,a){"use strict";a.r(t);a("b0c0");var i=function(){var e=this,t=e._self._c;return t("div",[t("a-button",{on:{click:e.showModal}},[e._v(e._s(e.$t("components.WarehouseShippingSelect.button.select")))]),t("a-modal",{attrs:{visible:e.visible,title:e.$t("components.WarehouseShippingSelect.title"),width:900},on:{ok:e.handleOk,cancel:e.handleCancel}},[t("a-spin",{attrs:{spinning:e.loading}},[t("advance-table",{attrs:{columns:e.columns,"data-source":e.tableData,"row-selection":{selectedRowKeys:e.selectedRowKeys,onChange:e.onSelectChange},pagination:e.pagination,"row-key":e.customRowKey},on:{change:e.handleTableChange},scopedSlots:e._u([{key:"title",fn:function(){return[t("span")]},proxy:!0},{key:"name",fn:function(t){t.text;var a=t.record;return[e._v(" "+e._s(a.shipping_methods.name)+" ")]}},{key:"code",fn:function(t){var a=t.text;return[e._v(" "+e._s(a)+" ")]}},{key:"type",fn:function(t){var a=t.text;return[e._v(" "+e._s(a)+" ")]}},{key:"is_signature",fn:function(a){var i=a.text;return[t("a-tag",{attrs:{color:1===i?"green":""}},[e._v(" "+e._s(1===i?e.$t("components.WarehouseShippingSelect.table.is_signature_yes"):e.$t("components.WarehouseShippingSelect.table.is_signature_no"))+" ")])]}},{key:"is_truck",fn:function(a){var i=a.text;return[t("a-tag",{attrs:{color:1===i?"blue":""}},[e._v(" "+e._s(1===i?e.$t("components.WarehouseShippingSelect.table.is_truck_yes"):e.$t("components.WarehouseShippingSelect.table.is_truck_no"))+" ")])]}},{key:"is_enabled",fn:function(a){var i=a.text;return[t("a-tag",{attrs:{color:1===i?"green":""}},[e._v(" "+e._s(1===i?e.$t("components.WarehouseShippingSelect.table.is_enabled_yes"):e.$t("components.WarehouseShippingSelect.table.is_enabled_no"))+" ")])]}}])},[t("div",{staticClass:"table-operations",staticStyle:{margin:"0px 0px","text-align":"left"},attrs:{slot:"button"},slot:"button"},[t("span",[e._v(e._s(e.$t("components.WarehouseShippingSelect.table.code"))+":")]),t("a-input",{staticStyle:{width:"200px","margin-right":"5px"},model:{value:e.queryCode,callback:function(t){e.queryCode=t},expression:"queryCode"}}),t("a-button",{attrs:{type:"primary"},on:{click:e.fetchShippingMethods}},[e._v(e._s(e.$t("view.gangwei.dept.query.btn")))])],1)])],1)],1)],1)},r=[],s=a("5530"),o=a("c7eb"),n=a("1da1"),l=(a("d3b7"),a("3ca3"),a("ddb0"),a("a9e3"),a("4de4"),a("d81d"),a("ac1f"),a("5319"),a("498a"),a("caad"),a("2532"),a("3058")),c=a("fff4"),d=function(){return a.e("chunk-452aba94").then(a.bind(null,"7c9d2"))},u=function(){return Promise.resolve().then(a.bind(null,"5d9e"))},p={name:"WarehouseShippingSelect",components:{GoodcangWarehouseSelect:c["a"],LogisticsProviderModal:d,AdvanceTable:u},props:{value:{type:[String,Number,Array]},mode:{type:String,default:"default"},title:{type:String,default:""},warehouseId:{default:null},warehouseCode:{default:null},wmsId:{default:null}},data:function(){return{loading:!1,visible:!1,selectedRowKeys:[],tableData:[],columns:[{title:this.$t("components.WarehouseShippingSelect.table.name"),dataIndex:"name",key:"name",scopedSlots:{customRender:"name"}},{title:this.$t("components.WarehouseShippingSelect.table.code"),dataIndex:"code",key:"code",scopedSlots:{customRender:"code"}},{title:this.$t("components.WarehouseShippingSelect.table.is_enabled"),dataIndex:"is_enabled",key:"is_enabled",scopedSlots:{customRender:"is_enabled"}},{title:this.$t("components.WarehouseShippingSelect.table.is_signature"),dataIndex:"is_signature",key:"is_signature",scopedSlots:{customRender:"is_signature"}},{title:this.$t("components.WarehouseShippingSelect.table.is_truck"),dataIndex:"is_truck",key:"is_truck",scopedSlots:{customRender:"is_truck"}}],queryCode:"",pagination:{current:1,pageSize:10,total:0,showTotal:function(e){return"共 ".concat(e," 条")},showSizeChanger:!0,showQuickJumper:!0,pageSizeOptions:["10","20","30","40","50"]}}},watch:{value:{handler:function(e){if(e)if(Array.isArray(e))this.selectedRowKeys=e.map((function(e){return e||void 0})).filter((function(e){return void 0!==e}));else if("string"===typeof e)if(e.indexOf(",")>-1){var t=e.replace(/[\[\]]/g,"");this.selectedRowKeys=t.split(",").map((function(e){if(e.trim()){var t=e.trim();return t?void 0:t}})).filter((function(e){return void 0!==e}))}else{var a=e;this.selectedRowKeys=a?[a]:[]}else"number"===typeof e&&(this.selectedRowKeys=e?[e]:[]);else this.selectedRowKeys=[]},immediate:!0,deep:!0},warehouseId:{handler:function(e,t){e&&e!==t&&(this.warehouseId=e,this.fetchShippingMethods())},immediate:!0},warehouseCode:{handler:function(e,t){e&&e!==t&&(this.warehouseCode=e,this.fetchShippingMethods())},immediate:!0}},created:function(){return Object(n["a"])(Object(o["a"])().mark((function e(){return Object(o["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:case"end":return e.stop()}}),e)})))()},methods:{customRowKey:function(e){return e.shipping_methods.code},showModal:function(){this.visible=!0,(this.selectedWarehouse||this.warehouseId)&&this.fetchShippingMethods()},fetchShippingMethods:function(){var e=this;return Object(n["a"])(Object(o["a"])().mark((function t(){var a,i;return Object(o["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return e.loading=!0,t.prev=1,a={page:e.pagination.current,limit:e.pagination.pageSize},e.warehouseId&&(a.cang_id=e.warehouseId),e.warehouseCode&&(a.warehouse_code=e.warehouseCode),e.wmsId&&(a.wms_id=e.wmsId),e.queryCode&&(a.code=e.queryCode),t.next=9,Object(l["a"])(a);case 9:i=t.sent,0===i.code&&(e.tableData=(i.list||[]).map((function(e){return Object(s["a"])({key:e.id},e)})),e.pagination.total=i.total_count||0),t.next=15;break;case 13:t.prev=13,t.t0=t["catch"](1);case 15:return t.prev=15,e.loading=!1,t.finish(15);case 18:case"end":return t.stop()}}),t,null,[[1,13,15,18]])})))()},handleWarehouseChange:function(e){this.selectedWarehouse=e,this.fetchShippingMethods()},onSelectChange:function(e){this.selectedRowKeys=e},handleOk:function(){var e=this,t=this.tableData.filter((function(t){return e.selectedRowKeys.includes(t.id)}));this.$emit("input","multiple"===this.mode?this.selectedRowKeys:this.selectedRowKeys[0]),this.$emit("change","multiple"===this.mode?this.selectedRowKeys:this.selectedRowKeys[0]),this.$emit("select","multiple"===this.mode?t:t[0]),this.visible=!1},handleCancel:function(){this.visible=!1},handleTableChange:function(e){this.pagination.current=e.current,this.pagination.pageSize=e.pageSize,this.fetchShippingMethods()},handleQuery:function(){this.pagination.current=1,this.fetchShippingMethods()}}},m=p,_=(a("5111"),a("2877")),h=Object(_["a"])(m,i,r,!1,null,"e8c8d89a",null);t["default"]=h.exports},5111:function(e,t,a){"use strict";a("7030")},5881:function(e,t,a){"use strict";a.r(t);var i=function(){var e=this,t=e._self._c;return t("a-drawer",{attrs:{width:"750px",placement:"right",closable:!1,visible:e.openView},on:{close:e.onCloseView}},[t("a-descriptions",{staticStyle:{"word-break":"break-all","word-wrap":"break-word"},attrs:{title:"操作信息",layout:"vertical",column:3,bordered:""}},[t("a-descriptions-item",{attrs:{label:"操作模块"}},[e._v(" "+e._s(e.form.module)+" ")]),t("a-descriptions-item",{attrs:{label:"登录信息"}},[e._v(" #"+e._s(e.form.member_id)+" / "+e._s(e.form.member_name)+" / "+e._s(e.form.ip)+" / "+e._s(e.form.region)+" ")]),t("a-descriptions-item",{attrs:{label:"请求方式"}},[e._v(" "+e._s(e.form.method)+" ")]),t("a-descriptions-item",{attrs:{label:"请求地址"}},[e._v(" "+e._s(e.form.url)+" ")]),t("a-descriptions-item",{attrs:{label:"操作方法",span:2}},[t("div",{staticStyle:{"word-break":"break-all"}},[e._v(e._s(e.form.method))])])],1),t("a-divider"),t("a-descriptions",{staticStyle:{"word-break":"break-all","word-wrap":"break-word"},attrs:{title:"接口信息",layout:"vertical",column:3,bordered:""}},[t("a-descriptions-item",{attrs:{label:"请求头部",span:3}},[e._v(" "+e._s(e.form.header_data)+" ")]),t("a-descriptions-item",{attrs:{label:"GET参数",span:3}},[e._v(" "+e._s(e.form.get_data)+" ")]),t("a-descriptions-item",{attrs:{label:"POST参数",span:3}},[e._v(" "+e._s(e.form.post_data)+" ")]),t("a-descriptions-item",{attrs:{label:"操作状态"}},[0===e.form.error_code?t("a-badge",{attrs:{status:"processing",text:"正常"}}):e._e(),0!==e.form.error_code?t("a-badge",{attrs:{status:"error",text:"失败"}}):e._e()],1),t("a-descriptions-item",{attrs:{label:"操作时间"}},[e._v(" "+e._s(e.parseTime(e.form.created_at))+" ")]),t("a-descriptions-item",{attrs:{label:"耗时"}},[e._v(" "+e._s(e.form.take_up_time)+"毫秒 ")]),t("a-descriptions-item",{attrs:{label:"回复信息"}},[e._v(" "+e._s(e.form.error_msg)+" ")]),0!==e.form.error_code?t("a-descriptions-item",{attrs:{label:"报错日志"}},[e._v(" "+e._s(e.form.error_data)+" ")]):e._e()],1),null!==e.form.logContent?t("a-divider"):e._e(),null!==e.form.logContent?t("a-descriptions",{staticStyle:{"word-break":"break-all","word-wrap":"break-word"},attrs:{title:"变更记录",layout:"vertical",column:3,bordered:""}},[t("a-descriptions-item",{attrs:{label:"请求ID",span:3}},[e._v(" "+e._s(e.form.req_id)+" ")]),t("a-descriptions-item",{attrs:{label:"变更情况",span:3}},[e._v(" 无 ")])],1):e._e()],1)},r=[],s={name:"ViewForm",props:{},data:function(){return{form:{},openView:!1}},filters:{},created:function(){},computed:{},watch:{},methods:{handleView:function(e){this.openView=!0,this.form=e},onCloseView:function(){this.openView=!1}}},o=s,n=a("2877"),l=Object(n["a"])(o,i,r,!1,null,null,null);t["default"]=l.exports},"5c7e":function(e,t,a){"use strict";a.r(t),a.d(t,"WarehouseShippingSelect",(function(){return _})),a.d(t,"WarehouseShippingTable",(function(){return h["default"]}));a("b0c0");var i=function(){var e=this,t=e._self._c;return t("div",[t("a-select",{staticStyle:{width:"100%"},attrs:{placeholder:e.$t("components.WarehouseShippingSelect.select.placeholder"),mode:e.mode,loading:e.loading},on:{change:e.handleChange,popupScroll:e.handlePopupScroll},scopedSlots:e._u([e.showWarehouseSelect?{key:"addonBefore",fn:function(){return[t("GoodcangWarehouseSelect",{staticStyle:{width:"120px"},on:{change:e.handleWarehouseChange},model:{value:e.selectedWarehouse,callback:function(t){e.selectedWarehouse=t},expression:"selectedWarehouse"}})]},proxy:!0}:null],null,!0),model:{value:e.selectedShipping,callback:function(t){e.selectedShipping=t},expression:"selectedShipping"}},e._l(e.shippingList,(function(a){return t("a-select-option",{key:a.id,attrs:{value:a.id}},[t("span",[e._v(e._s(a.name))]),a.code?t("span",{staticClass:"shipping-code"},[e._v("("+e._s(a.code)+")")]):e._e(),t("div",{staticClass:"shipping-tags"},[1===a.is_signature?t("a-tag",{attrs:{color:"green",size:"small"}},[e._v(" "+e._s(e.$t("components.WarehouseShippingSelect.table.is_signature_yes"))+" ")]):e._e(),1===a.is_truck?t("a-tag",{attrs:{color:"blue",size:"small"}},[e._v(" "+e._s(e.$t("components.WarehouseShippingSelect.table.is_truck_yes"))+" ")]):e._e()],1)])})),1)],1)},r=[],s=a("c7eb"),o=a("2909"),n=a("1da1"),l=(a("a9e3"),a("99af"),a("4de4"),a("d3b7"),a("caad"),a("2532"),a("3058")),c=a("fff4"),d={name:"WarehouseShippingSelect",components:{GoodcangWarehouseSelect:c["a"]},props:{value:{type:[String,Number,Array],default:function(){return[]}},mode:{type:String,default:"default"},showWarehouseSelect:{type:Boolean,default:!0},warehouseCode:{type:String,default:""},warehouseId:{default:null},wmsId:{default:null}},data:function(){return{loading:!1,selectedWarehouse:this.warehouseCode,selectedShipping:this.value,shippingList:[],pagination:{page:1,limit:20,total:0,hasMore:!0}}},watch:{value:{handler:function(e){this.selectedShipping=e},immediate:!0},warehouseCode:{handler:function(e,t){e&&e!==t&&(this.warehouseCode=e,this.fetchShippingMethods())},immediate:!0},warehouseId:{handler:function(e,t){e&&e!==t&&(this.warehouseId=e,this.fetchShippingMethods())},immediate:!0}},methods:{fetchShippingMethods:function(){var e=arguments,t=this;return Object(n["a"])(Object(s["a"])().mark((function a(){var i,r,n,c;return Object(s["a"])().wrap((function(a){while(1)switch(a.prev=a.next){case 0:if(i=e.length>0&&void 0!==e[0]&&e[0],i||(t.pagination.page=1,t.pagination.hasMore=!0),t.pagination.hasMore&&!t.loading){a.next=4;break}return a.abrupt("return");case 4:return t.loading=!0,a.prev=5,r={page:t.pagination.page,limit:t.pagination.limit},t.warehouseId&&(r.cang_id=t.warehouseId),t.warehouseCode&&(r.warehouse_code=t.warehouseCode),t.wmsId&&(r.wms_id=t.wmsId),a.next=12,Object(l["a"])(r);case 12:n=a.sent,0===n.code&&(c=n.list||[],t.pagination.total=n.total_count||0,t.shippingList=i?[].concat(Object(o["a"])(t.shippingList),Object(o["a"])(c)):c,t.pagination.hasMore=t.shippingList.length<t.pagination.total,t.pagination.hasMore&&t.pagination.page++),a.next=18;break;case 16:a.prev=16,a.t0=a["catch"](5);case 18:return a.prev=18,t.loading=!1,a.finish(18);case 21:case"end":return a.stop()}}),a,null,[[5,16,18,21]])})))()},handlePopupScroll:function(e){var t=e.target;t.scrollTop+t.offsetHeight>=t.scrollHeight-20&&this.fetchShippingMethods(!0)},handleWarehouseChange:function(e){this.selectedWarehouse=e,this.selectedShipping=void 0,this.fetchShippingMethods()},handleChange:function(e){this.$emit("input",e),this.$emit("change",e);var t=this.shippingList.filter((function(t){return Array.isArray(e)?e.includes(t.id):t.id===e}));this.$emit("select",Array.isArray(e)?t:t[0])}}},u=d,p=(a("7154"),a("2877")),m=Object(p["a"])(u,i,r,!1,null,"33ba007d",null),_=m.exports,h=a("4b93");t["default"]=_},"6a20":function(e,t,a){"use strict";a.r(t);var i=function(){var e=this,t=e._self._c;return t("div",{staticClass:"wms-modal-wrapper"},[t("a-button",{attrs:{type:"primary"},on:{click:e.showModal}},[e._v(" "+e._s(e.$t("components.WmsModal.button"))+" ")]),t("LogisticsProviderModal",{ref:"logisticsModal"}),t("a-modal",{attrs:{visible:e.modalVisible,title:e.$t("components.WmsModal.title"),width:900},on:{cancel:e.handleCancel},scopedSlots:e._u([{key:"footer",fn:function(){return[t("a-button",{on:{click:e.handleCancel}},[e._v(e._s(e.$t("components.WmsModal.button.cancel")))])]},proxy:!0}])},[t("div",{staticClass:"table-operations"},[t("a-button",{attrs:{type:"primary"},on:{click:e.handleAdd}},[e._v(" "+e._s(e.$t("components.WmsModal.button.add"))+" ")]),t("a-button",{staticStyle:{"margin-left":"5px"},on:{click:function(t){return e.$refs.logisticsModal.handleAdd()}}},[e._v(e._s(e.$t("view.wareHouse.list.btn.addLogistics")))])],1),t("a-table",{attrs:{columns:e.columns,"data-source":e.list,pagination:e.pagination,loading:e.loading},on:{change:e.handleTableChange},scopedSlots:e._u([{key:"name",fn:function(a){return t("span",{},[e._v(" "+e._s(a)+" ")])}},{key:"wms_type",fn:function(a){return t("span",{},[e._v(" "+e._s(a)+" ")])}},{key:"api_charging",fn:function(a,i){return t("span",{},[t("a-switch",{attrs:{checked:1==a,"checked-children":e.$t("paypal.setting.is_sand_box.true"),"un-checked-children":e.$t("paypal.setting.is_sand_box.false")},on:{click:function(t){return e.changeApiCharging(t,i)}}})],1)}},{key:"status",fn:function(a,i){return t("span",{},[t("div",[t("a-switch",{attrs:{checked:1==i.status,"checked-children":e.$t("view.template.list.template_status.1"),"un-checked-children":e.$t("view.template.list.template_status.2")},on:{click:function(t){return e.changeStatus(t,i)}}})],1)])}},{key:"is_sand_box",fn:function(a,i){return t("span",{},[t("a-switch",{attrs:{checked:1==i.is_sand_box,"checked-children":e.$t("paypal.setting.is_sand_box.true"),"un-checked-children":e.$t("paypal.setting.is_sand_box.false")},on:{click:function(t){return e.changeBoxStatus(t,i)}}})],1)}},{key:"action",fn:function(a,i){return t("span",{},[t("a-space",[t("a",{on:{click:function(t){return e.handleEdit(i)}}},[e._v(e._s(e.$t("components.WmsModal.action.edit")))])])],1)}},{key:"create_time",fn:function(a){return t("span",{},[e._v(" "+e._s(a)+" ")])}}])}),t("wms-form",{attrs:{visible:e.formVisible,"form-data":e.currentRecord},on:{"update:visible":function(t){return e.formVisible=t},success:e.handleFormSuccess}})],1)],1)},r=[],s=a("5530"),o=a("c7eb"),n=a("1da1"),l=(a("d3b7"),a("3ca3"),a("ddb0"),a("f9ee")),c=(a("b0c0"),function(){var e=this,t=e._self._c;return t("a-modal",{attrs:{visible:e.visible,title:e.formData?e.$t("components.WmsForm.title.edit"):e.$t("components.WmsForm.title.add"),confirmLoading:e.loading},on:{ok:e.handleSave,cancel:e.handleCancel}},[t("a-form",{ref:"formRef",attrs:{model:e.form,rules:e.rules,"label-col":{span:6},"wrapper-col":{span:16}}},[t("a-form-item",{attrs:{label:e.$t("components.WmsForm.label.name"),name:"name"}},[t("a-input",{attrs:{placeholder:e.$t("components.WmsForm.placeholder.name")},model:{value:e.form.name,callback:function(t){e.$set(e.form,"name",t)},expression:"form.name"}})],1),t("a-form-item",{attrs:{label:e.$t("components.WmsForm.label.wms_type"),name:"wms_type"}},[t("wms-type-select",{on:{change:e.handleWmsTypeChange},model:{value:e.form.wms_type,callback:function(t){e.$set(e.form,"wms_type",t)},expression:"form.wms_type"}})],1),t("a-form-model-item",{attrs:{label:e.$t("view.warehouse.list.api_charging"),prop:"api_charging"}},[t("a-switch",{attrs:{"checked-children":e.$t("paypal.setting.is_sand_box.true"),"un-checked-children":e.$t("paypal.setting.is_sand_box.false")},model:{value:e.form.api_charging,callback:function(t){e.$set(e.form,"api_charging",t)},expression:"form.api_charging"}})],1),t("a-form-item",{attrs:{label:e.$t("components.WmsForm.label.status"),name:"status"}},[t("a-switch",{attrs:{"checked-children":e.$t("view.template.list.template_status.1"),"un-checked-children":e.$t("view.template.list.template_status.2")},model:{value:e.form.status,callback:function(t){e.$set(e.form,"status",t)},expression:"form.status"}})],1),t("a-form-item",{attrs:{label:e.$t("components.WmsForm.label.is_sand_box"),name:"is_sand_box"}},[t("a-switch",{attrs:{"checked-children":e.$t("paypal.setting.is_sand_box.true"),"un-checked-children":e.$t("paypal.setting.is_sand_box.false")},model:{value:e.form.is_sand_box,callback:function(t){e.$set(e.form,"is_sand_box",t)},expression:"form.is_sand_box"}})],1),"goodcang"===e.form.wms_type?[t("a-form-item",{attrs:{label:e.$t("components.WmsForm.label.app_key"),name:"app_key"}},[t("a-input",{attrs:{placeholder:e.$t("components.WmsForm.placeholder.app_key")},model:{value:e.form.config.app_key,callback:function(t){e.$set(e.form.config,"app_key",t)},expression:"form.config.app_key"}})],1),t("a-form-item",{attrs:{label:e.$t("components.WmsForm.label.app_token"),name:"app_token"}},[t("a-input-password",{attrs:{placeholder:e.$t("components.WmsForm.placeholder.app_token")},model:{value:e.form.config.app_token,callback:function(t){e.$set(e.form.config,"app_token",t)},expression:"form.config.app_token"}})],1)]:e._e()],2)],1)}),d=[],u=function(){var e=this,t=e._self._c;return t("a-select",{style:e.customStyle,attrs:{value:e.value,placeholder:e.placeholder,mode:e.mode,loading:e.loading},on:{change:e.handleChange}},e._l(e.options,(function(a){return t("a-select-option",{key:a.value,attrs:{value:a.value}},[e._v(" "+e._s(a.name)+" ")])})),1)},p=[],m={name:"WmsTypeSelect",props:{value:{type:[String,Array],default:void 0},mode:{type:String,default:"default"},placeholder:{type:String,default:"请选择服务商类型"},customStyle:{type:Object,default:function(){return{width:"100%"}}}},data:function(){return{loading:!1,options:[]}},created:function(){this.fetchOptions()},methods:{fetchOptions:function(){var e=this;return Object(n["a"])(Object(o["a"])().mark((function t(){var a;return Object(o["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return e.loading=!0,t.prev=1,t.next=4,Object(l["c"])();case 4:a=t.sent,0===a.code&&null!==a&&void 0!==a&&a.list&&(e.options=a.list),t.next=10;break;case 8:t.prev=8,t.t0=t["catch"](1);case 10:return t.prev=10,e.loading=!1,t.finish(10);case 13:case"end":return t.stop()}}),t,null,[[1,8,10,13]])})))()},handleChange:function(e){this.$emit("input",e),this.$emit("change",e)}}},_=m,h=a("2877"),f=Object(h["a"])(_,u,p,!1,null,null,null),g=f.exports,v=g,y={name:"WmsForm",components:{WmsTypeSelect:v},props:{visible:{type:Boolean,required:!0},formData:{type:Object,default:null}},emits:["update:visible","success"],data:function(){var e=this;return{loading:!1,form:{name:"",wms_type:"",status:!0,is_sand_box:!1,config:{app_key:"",app_token:""}},rules:{name:[{required:!0,message:this.$t("components.WmsForm.message.name")}],wms_type:[{required:!0,message:this.$t("components.WmsForm.message.wms_type")}],app_key:[{required:!0,message:this.$t("components.WmsForm.message.app_key"),validator:function(t,a){return"goodcang"!==e.form.wms_type||a?Promise.resolve():Promise.reject(new Error(e.$t("components.WmsForm.message.app_key")))}}],app_token:[{required:!0,message:this.$t("components.WmsForm.message.app_token"),validator:function(t,a){return"goodcang"!==e.form.wms_type||a?Promise.resolve():Promise.reject(new Error(e.$t("components.WmsForm.message.app_token")))}}]}}},watch:{formData:{handler:function(e){if(e){var t="string"===typeof e.config?JSON.parse(e.config):e.config;this.form={id:e.id,name:e.name,wms_type:e.wms_type,status:1===e.status,is_sand_box:1===e.is_sand_box,api_charging:1===e.api_charging,config:{app_key:t.app_key||"",app_token:t.app_token||""}}}else this.resetForm()},immediate:!0}},methods:{handleWmsTypeChange:function(){this.form.config={app_key:"",app_token:""}},resetForm:function(){this.form={name:"",wms_type:"",status:!0,is_sand_box:!1,config:{app_key:"",app_token:""}}},handleSave:function(){var e=this;return Object(n["a"])(Object(o["a"])().mark((function t(){var a,i;return Object(o["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.prev=0,e.loading=!0,a=Object(s["a"])(Object(s["a"])({},e.form),{},{status:e.form.status?1:2,is_sand_box:e.form.is_sand_box?1:2,config:JSON.stringify(e.form.config),api_charging:e.form.api_charging?1:2}),t.next=5,Object(l["d"])(a);case 5:i=t.sent,0===i.code&&(e.$message.success(e.$t("components.WmsForm.message.save.success")),e.$emit("success"),e.$emit("update:visible",!1)),t.next=11;break;case 9:t.prev=9,t.t0=t["catch"](0);case 11:return t.prev=11,e.loading=!1,t.finish(11);case 14:case"end":return t.stop()}}),t,null,[[0,9,11,14]])})))()},handleCancel:function(){this.resetForm(),this.$emit("update:visible",!1)}}},b=y,w=Object(h["a"])(b,c,d,!1,null,null,null),k=w.exports,x=function(){return a.e("chunk-452aba94").then(a.bind(null,"7c9d2"))},$={name:"WmsModal",components:{WmsForm:k,LogisticsProviderModal:x},data:function(){return{modalVisible:!1,loading:!1,formVisible:!1,currentRecord:null,list:[],pagination:{current:1,pageSize:10,total:0},columns:[{title:this.$t("components.WmsModal.table.name"),dataIndex:"name",key:"name",scopedSlots:{customRender:"name"}},{title:this.$t("components.WmsModal.table.wms_type"),dataIndex:"wms_type",key:"wms_type",scopedSlots:{customRender:"wms_type"}},{title:this.$t("view.warehouse.list.api_charging"),dataIndex:"api_charging",key:"api_charging",scopedSlots:{customRender:"api_charging"}},{title:this.$t("components.WmsModal.table.status"),dataIndex:"status",key:"status",scopedSlots:{customRender:"status"}},{title:this.$t("components.WmsModal.table.is_sand_box"),dataIndex:"is_sand_box",key:"is_sand_box",scopedSlots:{customRender:"is_sand_box"}},{title:this.$t("components.WmsModal.table.create_time"),dataIndex:"create_time",key:"create_time",scopedSlots:{customRender:"create_time"}},{title:this.$t("components.WmsModal.table.action"),dataIndex:"action",key:"action",width:150,scopedSlots:{customRender:"action"}}]}},watch:{modalVisible:function(e){e&&this.fetchData()}},methods:{showModal:function(){this.modalVisible=!0},fetchData:function(){var e=this;return Object(n["a"])(Object(o["a"])().mark((function t(){var a;return Object(o["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return e.loading=!0,t.prev=1,t.next=4,Object(l["b"])();case 4:a=t.sent,0===a.code&&(e.list=a.list,e.pagination.total=a.total||a.list.length);case 6:return t.prev=6,e.loading=!1,t.finish(6);case 9:case"end":return t.stop()}}),t,null,[[1,,6,9]])})))()},handleTableChange:function(e){this.pagination.current=e.current,this.pagination.pageSize=e.pageSize,this.fetchData()},handleAdd:function(){this.currentRecord=null,this.formVisible=!0},handleEdit:function(e){this.currentRecord=Object(s["a"])({},e),this.formVisible=!0},handleDelete:function(e){this.fetchData()},handleFormSuccess:function(){this.formVisible=!1,this.fetchData()},handleCancel:function(){this.modalVisible=!1},changeStatus:function(e,t){var a=this;Object(l["e"])({id:t.id,status:e?1:2}).then((function(e){a.fetchData()}))},changeBoxStatus:function(e,t){var a=this;Object(l["e"])({id:t.id,is_sand_box:e?1:2}).then((function(e){a.fetchData()}))},changeApiCharging:function(e,t){var a=this;Object(l["e"])({id:t.id,api_charging:e?1:2}).then((function(e){a.fetchData()}))}}},S=$,C=(a("ffeb"),Object(h["a"])(S,i,r,!1,null,"736dc18e",null));t["default"]=C.exports},"6f71":function(e,t,a){"use strict";a.r(t);a("b0c0");var i=function(){var e=this,t=e._self._c;return t("a-select",{style:e.customStyle,attrs:{value:e.currentValue,placeholder:e.placeholder,mode:e.mode,loading:e.loading,allowClear:"",disabled:e.disabled},on:{change:e.handleChange}},[t("a-select-option",{attrs:{value:0}},[e._v(e._s(e.$t("components.WmsSelect.select.0")))]),e._l(e.options,(function(a){return t("a-select-option",{key:a.id,attrs:{value:a.id}},[e._v(" "+e._s(a.name)+" ")])}))],2)},r=[],s=a("c7eb"),o=a("1da1"),n=(a("a9e3"),a("d81d"),a("7db0"),a("d3b7"),a("f9ee")),l={name:"WmsSelect",props:{value:{type:[String,Number,Array],default:void 0},mode:{type:String,default:"default"},placeholder:{type:String,default:"请选择服务商"},customStyle:{type:Object,default:function(){return{width:"100%"}}},disabled:{type:Boolean,default:!1}},data:function(){return{loading:!1,options:[],currentValue:this.value}},watch:{value:{handler:function(e){this.currentValue=e},immediate:!0}},created:function(){this.fetchOptions()},methods:{fetchOptions:function(){var e=this;return Object(o["a"])(Object(s["a"])().mark((function t(){var a;return Object(s["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return e.loading=!0,t.prev=1,t.next=4,Object(n["b"])({status:1});case 4:a=t.sent,0===a.code&&a.list?(e.options=a.list.map((function(e){return{id:e.id,name:e.name,wms_type:e.wms_type}})),e.currentValue&&e.handleChange(e.currentValue)):e.currentValue&&e.handleChange(e.currentValue),t.next=11;break;case 8:t.prev=8,t.t0=t["catch"](1),e.currentValue&&e.handleChange(e.currentValue);case 11:return t.prev=11,e.loading=!1,t.finish(11);case 14:case"end":return t.stop()}}),t,null,[[1,8,11,14]])})))()},handleChange:function(e){this.currentValue=null!==e&&void 0!==e?e:0;var t=null!==e&&void 0!==e&&""!==e?this.options.find((function(t){return t.id===e})):null;t?(this.$emit("input",this.currentValue),this.$emit("change",this.currentValue,null===t||void 0===t?void 0:t.wms_type)):(this.$emit("input",0),this.$emit("change",0))}}},c=l,d=a("2877"),u=Object(d["a"])(c,i,r,!1,null,null,null);t["default"]=u.exports},7030:function(e,t,a){},7154:function(e,t,a){"use strict";a("a9d9")},"76f8":function(e,t,a){"use strict";a.r(t);var i=function(){var e=this,t=e._self._c;return t("div",[t("a-card",{staticClass:"procureList",staticStyle:{"margin-bottom":"10px"},attrs:{bordered:!1}},[t("div",{ref:"search",staticClass:"table-page-search-wrapper"},[t("a-form",{attrs:{labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[t("a-row",{attrs:{type:"flex"}},[t("a-col",{attrs:{lg:11,xl:5,md:16}},[t("a-form-item",{attrs:{label:e.$t("view.purchaseOrder.list.purchaseId"),labelCol:{md:3,sm:8,lg:5},wrapperCol:{lg:14}}},[t("a-input",{attrs:{"allow-clear":""},model:{value:e.queryParam.purchase_id,callback:function(t){e.$set(e.queryParam,"purchase_id",t)},expression:"queryParam.purchase_id"}})],1)],1),t("a-col",{attrs:{lg:11,xl:5,md:16}},[t("a-form-item",{attrs:{label:e.$t("view.order.list.order_id"),labelCol:{md:3,sm:8,lg:5},wrapperCol:{lg:14}}},[t("a-input",{attrs:{"allow-clear":""},model:{value:e.queryParam.order_id,callback:function(t){e.$set(e.queryParam,"order_id",t)},expression:"queryParam.order_id"}})],1)],1),t("a-col",{attrs:{lg:11,xl:5,md:16}},[t("a-form-item",{attrs:{label:e.$t("view.order.list.export.time_select_title"),labelCol:{md:3,sm:8,lg:3},wrapperCol:{lg:21}}},[t("a-range-picker",{staticStyle:{width:"auto"},attrs:{"show-time":""},model:{value:e.exportTime,callback:function(t){e.exportTime=t},expression:"exportTime"}},[t("template",{slot:"renderExtraFooter"})],2)],1)],1),t("a-col",{attrs:{lg:24,xl:8}},[t("span",{staticClass:"table-page-search-submitButtons buttonsTools"},[t("a-button",{attrs:{type:"primary"},on:{click:e.handleQuery}},[t("a-icon",{attrs:{type:"search"}}),e._v(e._s(e.$t("view.order.list.query.btn"))+" ")],1),t("a-button",{staticStyle:{"margin-left":"8px"},on:{click:e.resetQuery}},[t("a-icon",{attrs:{type:"redo"}}),e._v(e._s(e.$t("view.order.list.reset.btn"))+" ")],1),t("purchaseUpload",{staticStyle:{"margin-left":"8px"},on:{uploadBack:function(t){return e.resetQuery()}}}),t("ExcelData",{attrs:{page:e.queryParam.page_no,pageSize:e.queryParam.page_size,total:e.total_count,loadData:e.changeSize,fileName:e.$t("app.menus.left.procure.procureOrder")}})],1)])],1)],1)],1)]),t("a-card",{staticClass:"table-card",attrs:{bordered:!1}},[e.showFaHuoModal?t("fa-huo",{ref:"fauho",attrs:{isEdit:!1},on:{ok:e.getList,close:function(t){e.showFaHuoModal=!1}}}):e._e(),e.orderDetailModal?t("order-detail",{ref:"OrderDetail",on:{close:function(t){e.orderDetailModal=!1}}}):e._e(),t("advance-table",{attrs:{loading:e.loading,size:"middle","row-selection":null,"format-conditions":!1,columns:e.columns,"data-source":e.List,rowKey:"id",tableKey:"procure-order-table",expandedRowKeys:e.expandedRowKeys,pagination:{current:e.queryParam.page_no,pageSize:e.queryParam.page_size,total:e.total_count,showSizeChanger:!1,showLessItems:!1,showQuickJumper:!1,showTotal:function(t,a){return e.$t("view.order.list.table.total",{num:a[0]+"-"+a[1],total:t})},onChange:e.changeSize,onShowSizeChange:e.onShowSizeChange},scroll:{x:"100%"},title:e.$t("view.order.list.list")},scopedSlots:e._u([{key:"purchase_id",fn:function(a){var i=a.text,r=a.record;return t("span",{},[t("div",[1===r.is_self_take&&1!==r.is_virtual?t("div",{staticStyle:{display:"flex","margin-bottom":"2px"}},[t("div",{staticStyle:{width:"100px","text-align":"right","margin-right":"0.5rem"}}),t("a-tag",{attrs:{color:"green"}},[e._v(e._s(e.$t("view.procure.delivery.self_pickup")))])],1):e._e(),2===r.is_self_take&&1!==r.is_virtual?t("div",{staticStyle:{display:"flex","margin-bottom":"2px"}},[t("div",{staticStyle:{width:"100px","text-align":"right","margin-right":"0.5rem"}}),t("a-tag",{attrs:{color:"green"}},[e._v(e._s(e.$t("view.procure.delivery.drop_shipping")))])],1):e._e(),""!==r.assoc_order_id?t("div",{staticStyle:{display:"flex"}},[t("div",{staticStyle:{width:"100px","text-align":"right","margin-right":"0.5rem"}},[e._v(" "+e._s(e.$t("procure.list.order.assoc_order_id"))+" ")]),t("a-tag",{staticStyle:{cursor:"pointer"},attrs:{color:"cyan"},on:{click:function(){return e.copyToClipboard(r.assoc_order_id)}}},[e._v(" "+e._s(r.assoc_order_id)+" ")])],1):e._e(),t("div",{staticStyle:{display:"flex"}},[t("div",{staticStyle:{width:"100px","text-align":"right","margin-right":"0.5rem"}},[e._v(" "+e._s(e.$t("view.purchaseOrder.list.purchaseId"))+" ")]),t("div",{staticStyle:{width:"240px"}},[e._v(" "+e._s(i)+" "),t("copyText",{attrs:{text:i,tooltipText:e.$t("view.order.list.purchase_id.copy")}})],1)]),1==e.shop_id&&r.main_shop_order?t("div",{staticStyle:{display:"flex"}},[t("div",{staticStyle:{width:"100px","text-align":"right","margin-right":"0.5rem"}},[e._v(" "+e._s(e.$t("procure.list.order.order_id"))+" ")]),t("a",{staticStyle:{width:"240px"},on:{click:function(t){return e.handleOrderDetail(r)}}},[e._v(e._s(r.main_shop_order.order_id))]),t("copyText",{attrs:{text:r.main_shop_order.order_id,tooltipText:e.$t("view.order.list.order_id.copy")}})],1):e._e(),r.out_order_id&&r.sub_shop_id==e.shop_id?t("div",{staticStyle:{display:"flex"}},[t("div",{staticStyle:{width:"100px","text-align":"right","margin-right":"0.5rem"}},[e._v(" "+e._s(e.$t("procure.list.order.order_id"))+" ")]),t("a",{staticStyle:{width:"240px"},on:{click:function(t){return e.handleOrderDetail(r)}}},[e._v(e._s(r.out_order_id))]),t("copyText",{attrs:{text:r.out_order_id,tooltipText:e.$t("view.order.list.order_id.copy")}})],1):e._e(),t("div",{staticStyle:{display:"flex"}},[t("div",{staticStyle:{width:"100px","text-align":"right","margin-right":"0.5rem"}},[e._v(" "+e._s(e.$t("procure.list.order.createTime"))+" ")]),e._v(" "+e._s(r.create_time)+" ")]),1===r.is_self_take&&""!==r.logistics_number?t("div",{staticStyle:{display:"flex"}},[t("div",{staticStyle:{width:"100px","text-align":"right","margin-right":"0.5rem"}},[e._v(" "+e._s(e.$t("view.order.list.tracking_number"))+" ")]),e._v(" "+e._s(r.logistics_number)+" ")]):e._e(),1===r.is_self_take&&""!==r.miandan_url?t("div",{staticStyle:{display:"flex"}},[t("div",{staticStyle:{width:"100px","text-align":"right","margin-right":"0.5rem"}},[e._v(" "+e._s(e.$t("view.purchaseOrder.list.upload.voucher"))+" ")]),t("a",{attrs:{href:r.miandan_url,target:"_blank"}},[e._v(e._s(e.$t("view.purchaseOrder.list.upload.voucher.view")))])]):e._e(),1===e.shop_id?t("div",{staticStyle:{display:"flex"}},[t("div",{staticStyle:{width:"100px","text-align":"right","margin-right":"0.5rem"}},[e._v(" "+e._s(e.$t("view.order.detail.ship_from"))+" ")]),r.sub_shop_id?t("div",[t("supply-info",{attrs:{shopId:r.sub_shop_id}})],1):e._e()]):e._e(),t("div",{staticStyle:{display:"flex"}},[t("div",{staticStyle:{width:"100px","text-align":"right","margin-right":"0.5rem"}}),t("div",[1===r.is_virtual?t("a-tag",{attrs:{color:"#f50"}},[e._v(" "+e._s(e.$t("view.lockstock.log.lock.is_virtual.title"))+" ")]):e._e(),3===r.is_virtual?t("a-tag",{attrs:{color:"#87d068"}},[e._v(" "+e._s(e.$t("view.lockstock.log.use.lock.is_virtual.title"))+" ")]):e._e()],1)])])])}},{key:"status",fn:function(a){var i=a.text,r=a.record;return t("span",{},[t("div",["UNPAID"!==i&&"AFTER_SALE"!==i&&"REFUNDED"!==i?t("a",{on:{click:function(t){return e.openFahuo(r)}}},[e._v(" "+e._s(e.$t(i))+" ")]):t("span",[e._v(e._s(e.$t(i)))])])])}},{key:"items",fn:function(a){var i=a.text,r=a.record;return t("span",{},[r.items&&r.items.length?t("div",e._l(r.items,(function(a,s){return t("div",{key:r.purchase_id+"_"+r.id+"_"+s+(a?a.sku_id+"":""),staticStyle:{display:"flex","margin-bottom":"10px"}},[t("div",[t("a-avatar",{attrs:{shape:"square",size:85,src:a.img_url}})],1),t("div",{staticStyle:{"margin-left":"10px",flex:"1"}},[t("a-row",{attrs:{type:"flex"}},[t("a-col",{attrs:{flex:3}},[e._v(" "+e._s(a.title)+" ")])],1),t("a-row",{attrs:{type:"flex"}},[t("a-col",[e._v(" "+e._s((r.currency||"")+" "+a.price)+" ")]),t("a-col",{staticStyle:{"padding-left":"10px"},attrs:{flex:3}},[t("a-icon",{staticStyle:{"font-size":"10px","margin-right":"0","padding-right":"0"},attrs:{type:"close"}}),e._v(" "+e._s(a.num)+" ")],1)],1),t("a-row",{attrs:{type:"flex"}},[t("a-col",{attrs:{flex:3}},["string"==typeof a.sku_prop?t("span",[e._v(" "+e._s(a.sku_prop)+" ")]):t("span",e._l(a.sku_prop,(function(a,i){return t("div",{key:i},[t("span",[e._v(e._s(i)+":"+e._s(a))])])})),0)])],1),t("a-row",[t("a-col",{attrs:{flex:3}},[e._v(" "+e._s(e.$t("view.item.sku.barcode"))+" : "+e._s(a.barcode)+" ")]),t("a-col",{attrs:{flex:3}},[e._v(" "+e._s(e.$t("view.item.sku.out_id"))+" : "+e._s(a.out_id)+" ")]),t("a-col",{attrs:{flex:3}},[e._v(" "+e._s(e.$t("view.purchaseOrder.list.items.totalfee"))+" : "+e._s(r.currency+" "+a.payment)+" ")])],1),s<i.length-1?t("a-divider"):e._e()],1)])})),0):e._e()])}},{key:"payment",fn:function(a){var i=a.text,r=a.record;return t("span",{},[t("div",[e._v(e._s((r.currency||"")+" "+i))])])}},{key:"post_fee",fn:function(a){var i=a.text,r=a.record;return t("span",{},[t("div",[e._v(e._s((r.currency||"")+" "+i))])])}},{key:"paymemberInfo",fn:function(a){var i=a.record;return t("span",{},[t("a-row",[i.last_name&&""!==i.last_name?t("a-col",{attrs:{lg:24}},[e._v(" "+e._s(e.$t("view.order.detail.ship_last_name"))+" : "+e._s(i.last_name)+" ")]):e._e(),i.first_name&&""!==i.first_name?t("a-col",{attrs:{lg:24}},[e._v(" "+e._s(e.$t("view.order.detail.ship_first_name"))+" : "+e._s(i.first_name)+" ")]):e._e(),i.phone&&""!=i.phone?t("a-col",{attrs:{lg:24}},[e._v(" "+e._s(e.$t("view.order.detail.ship_phone"))+" : "+e._s(i.phone)+" ")]):e._e(),t("a-col",{attrs:{lg:24}},[e._v(" "+e._s(e.$t("view.order.detail.ship_country"))+" : "),t("fanyi-list",{attrs:{list:[i.country]}})],1),t("a-col",{attrs:{lg:24}},[e._v(" "+e._s(e.$t("view.order.detail.ship_state"))+" : "+e._s(i.state)+" ")]),t("a-col",{attrs:{lg:24}},[e._v(" "+e._s(e.$t("view.order.detail.ship_city"))+" : "+e._s(i.city)+" ")]),t("a-col",{attrs:{lg:24}},[e._v(" "+e._s(e.$t("view.order.detail.ship_street"))+" : "+e._s(i.street)+" ")]),t("a-col",{attrs:{lg:24}},[e._v(" "+e._s(e.$t("view.order.detail.ship_men"))+" : "+e._s(i.apartment)+" ")]),t("a-col",{attrs:{lg:24}},[e._v(" "+e._s(e.$t("view.order.detail.zipcode"))+" : "+e._s(i.zip_code)+" ")]),t("a-col",{attrs:{lg:24}},[t("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(t){return e.handleModifyShipping(i)}}},[e._v(" "+e._s(e.$t("view.system.resourcegroup.Update"))+" ")])],1)],1)],1)}},{key:"operation",fn:function(a){var i=a.record;return t("span",{},[e.shop_id==i.sub_shop_id&&"PAID"==i.status?t("procureApply",{attrs:{order:i},on:{okAftersale:e.getList}}):e._e(),"UNPAID"==i.status&&e.shop_id==i.sub_shop_id?t("a-divider",{attrs:{type:"vertical"}}):e._e(),e.shop_id==i.sub_shop_id?t("complaint-form",{attrs:{refId:i.purchase_id,orderId:i.out_order_id&&i.sub_shop_id==e.shop_id?i.out_order_id:1==e.shop_id?i.main_shop_order.order_id:"",type:"procure"},on:{ok:e.handleQuery}}):e._e(),"UNPAID"==i.status&&e.shop_id==i.sub_shop_id?t("a-divider",{attrs:{type:"vertical"}}):e._e(),e.shop_id!=i.sub_shop_id||e.loading?e._e():t("complaintDetail",{attrs:{orderId:i.purchase_id,type:"procure"}}),"UNPAID"==i.status?t("a-divider",{attrs:{type:"vertical"}}):e._e(),"UNPAID"==i.status?t("a",{on:{click:function(t){return e.closeProcure(i)}}},[e._v(" "+e._s(e.$t("wechat.pay.setting.close"))+" ")]):e._e(),"AFTER_SALE"==i.status?t("a-divider",{attrs:{type:"vertical"}}):e._e(),"AFTER_SALE"==i.status?t("a",{on:{click:function(t){return e.cancelAfterSale(i)}}},[e._v(" "+e._s(e.$t("view.order.list.aftersale.cancel.btn"))+" ")]):e._e(),"UNPAID"==i.status?t("h5pay",{ref:"h5Pay"+i.purchase_id,attrs:{orderId:i.purchase_id},on:{paySuccess:e.getList}}):e._e(),1===i.is_self_take&&"PAID"==i.status?t("a-divider",{attrs:{type:"vertical"}}):e._e(),1===i.is_self_take&&"PAID"==i.status?t("voucher-upload",{attrs:{"purchase-id":i.purchase_id,"shop-id":i.sub_shop_id},on:{success:e.getList}}):e._e()],1)}}])},[t("div",{staticClass:"table-operations",attrs:{slot:"button"},slot:"button"},[t("div",[1!==e.shop_id?t("autoPurchasePay"):e._e(),1!==e.shop_id?t("recharge-main-shop",{staticStyle:{"margin-right":"10px"},attrs:{rechargeVisible:!0}}):e._e(),1!==e.shop_id?t("procureAdd",{attrs:{type:"goods"},on:{backList:e.getList}}):e._e()],1)])])],1)],1)},r=[],s=a("5530"),o=a("bdcb"),n=Object(s["a"])({},o["default"]),l=n,c=(a("9c56c"),a("2877")),d=Object(c["a"])(l,i,r,!1,null,null,null);t["default"]=d.exports},"77c96":function(e,t,a){"use strict";a.r(t);var i=function(){var e=this,t=e._self._c;return t("div",[t("a-card",{staticClass:"orderList",staticStyle:{"margin-bottom":"10px"},attrs:{bordered:!1}},[t("div",{ref:"search",staticClass:"table-page-search-wrapper"},[t("a-form",{attrs:{labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[t("a-row",{attrs:{gutter:1,type:"flex"}},[t("a-col",{attrs:{xxl:6,xl:8,lg:8}},[t("a-form-item",{attrs:{label:e.$t("view.order.detail.item")}},[t("good-list",{staticStyle:{width:"100%"},attrs:{type:"radio"},on:{changeitem:e.changeItem}})],1)],1),t("a-col",{attrs:{xxl:6,xl:8,lg:8,md:16}},[t("a-form-item",{attrs:{label:e.$t("view.order.list.export.time_select_title"),labelCol:{md:3,sm:8,lg:4},wrapperCol:{lg:20}}},[t("a-range-picker",{staticStyle:{width:"auto"},attrs:{"show-time":""},model:{value:e.exportTime,callback:function(t){e.exportTime=t},expression:"exportTime"}},[t("template",{slot:"renderExtraFooter"})],2)],1)],1),t("a-col",{attrs:{xxl:12,xl:7,lg:8}},[t("span",{staticClass:"table-page-search-submitButtons buttonsTools",staticStyle:{"justify-content":"end",display:"flex"}},[t("a-button",{attrs:{type:"primary"},on:{click:e.handleQuery}},[t("a-icon",{attrs:{type:"search"}}),e._v(e._s(e.$t("view.order.list.query.btn"))+" ")],1),t("a-button",{staticStyle:{"margin-left":"8px"},on:{click:e.resetQuery}},[t("a-icon",{attrs:{type:"redo"}}),e._v(e._s(e.$t("view.order.list.reset.btn"))+" ")],1),t("ExcelData",{attrs:{page:e.queryParam.page,pageSize:e.queryParam.limit,total:e.total_count,loadData:e.changeSize,fileName:e.$t("app.menus.left.supply.supplyOrder")}})],1)])],1),t("a-row",{attrs:{gutter:1,type:"flex"}},[1===e.shopId?t("a-col",{attrs:{xxl:6,lg:8}},[t("a-form-item",{attrs:{label:e.$t("view.order.list.shop.seller")}},[t("div",{staticStyle:{display:"flex","align-items":"center",width:"100%"}},[t("seller-list",{on:{changeuser:e.changeUser}})],1)])],1):e._e(),t("a-col",{attrs:{xxl:6,lg:8,md:16}},[1===e.shopId&&e.userId?t("a-form-item",{attrs:{label:e.$t("view.order.list.shop"),labelCol:{md:3,sm:8,lg:4},wrapperCol:{lg:20}}},[t("shop-select",{ref:"shopSelect",attrs:{userId:e.userId},on:{change:e.changeShop}})],1):e._e()],1),t("a-col",{attrs:{lg:8}})],1)],1)],1)]),t("div",[e.showReviewModal?t("review-list",{ref:"ReviewList",on:{close:function(t){e.showReviewModal=!1}}}):e._e(),e.orderDetailModal?t("order-detail",{ref:"OrderDetail",on:{close:function(t){e.orderDetailModal=!1}}}):e._e(),e.showFaHuoModal?t("review-list2",{ref:"ReviewList2",attrs:{mailingMode:2},on:{ok:e.getList,close:function(t){e.showFaHuoModal=!1}}}):e._e(),e.showInsureModal?t("insure-list",{ref:"InsureList",on:{ok:e.getList,close:function(t){e.showInsureModal=!1}}}):e._e(),e.showModifyShipping?t("modify-shipping",{ref:"ModifyShipping",on:{ok:e.getList,close:function(t){e.showModifyShipping=!1}}}):e._e(),e.showGigab2bModal?t("gigab2b",{ref:"pushDajian",on:{ok:e.getList,close:function(t){e.showGigab2bModal=!1}}}):e._e()],1),t("a-card",{staticClass:"table-card",attrs:{bordered:!1}},[t("a-tabs",{staticClass:"loginTitle",on:{change:function(t){return e.orderQuery(t)}}},e._l(e.statusLists,(function(e){return t("a-tab-pane",{key:e.value,attrs:{tab:e.label}})})),1),t("advance-table",{attrs:{loading:e.loading,size:"middle","format-conditions":!1,columns:e.columns,"data-source":e.list,rowKey:"id",tableKey:"test-cat-catlist-table",expandedRowKeys:e.expandedRowKeys,pagination:{current:e.queryParam.page,pageSize:e.queryParam.limit,total:e.total_count,showSizeChanger:!0,showLessItems:!1,showQuickJumper:!1,showTotal:function(t,a){return e.$t("view.order.list.table.total",{num:a[0]+"-"+a[1],total:t})},onChange:e.changeSize,onShowSizeChange:e.onShowSizeChange},scroll:{x:"100%"},title:e.$t("view.order.list.list")},scopedSlots:e._u([{key:"order_id",fn:function(a){var i=a.text,r=a.record;return t("span",{},[1==e.shopId?t("a",{on:{click:function(t){return e.handleOrderDetail(r)}}},[e._v(" "+e._s(i)+" ")]):t("span",[e._v(" "+e._s(i)+" ")]),t("div",[e._v(e._s(r.create_time))]),t("dispath-note",{staticStyle:{display:"none"},attrs:{order:r}}),1===r.is_virtual?t("a-tag",{attrs:{color:"#f50"}},[e._v(" "+e._s(e.$t("view.lockstock.log.lock.is_virtual.title"))+" ")]):e._e()],1)}},{key:"shop_id",fn:function(e){var a=e.record;return t("span",{},[t("supply-info",{attrs:{shopId:a.shop_id}})],1)}},{key:"supply_order_item",fn:function(a){var i=a.text,r=a.record;return t("span",{},e._l(i,(function(a,s){var o,n,l,c;return i.length>0?t("div",{key:a.sku_id,staticStyle:{display:"flex","margin-bottom":"10px"}},[t("div",[t("a-avatar",{attrs:{shape:"square",size:85,src:a.main_img_url}}),t("div",{staticStyle:{"margin-top":"0.5rem"}},[t("a-tag",{attrs:{color:2==a.main_mailing_mode?"red":"green"}},[1===e.shopId?t("div",[2==a.main_mailing_mode?t("div",[e._v(" "+e._s(e.$t("view.item.component.item.supply.shippingConfig.myself"))+" ")]):e._e(),1==a.main_mailing_mode?t("div",[e._v(" "+e._s(e.$t("view.item.component.item.supply.shippingConfig.platform"))+" ")]):e._e(),0==a.main_mailing_mode?t("div",[e._v(" "+e._s(e.$t("view.item.component.item.supply.shippingConfig.platform"))+" ")]):e._e()]):e._e(),1!==e.shopId?t("div",[2==a.main_mailing_mode?t("div",[e._v(" "+e._s(e.$t("view.item.component.item.supply.shippingConfig.myself1"))+" ")]):e._e(),1==a.main_mailing_mode?t("div",[e._v(" "+e._s(e.$t("view.item.component.item.supply.shippingConfig.platform1"))+" ")]):e._e(),0==a.main_mailing_mode?t("div",[e._v(" "+e._s(e.$t("view.item.component.item.supply.shippingConfig.platform1"))+" ")]):e._e()]):e._e()]),t("div",{domProps:{innerHTML:e._s(e.viewShipping(a,r))}})],1)],1),t("div",{staticStyle:{"margin-left":"10px",flex:"1"}},[t("a-row",{attrs:{type:"flex"}},[t("a-col",{attrs:{flex:3}},[e._v(" "+e._s(a.main_title)+" ")])],1),t("a-row",{attrs:{type:"flex"}},[t("a-col",{attrs:{flex:3}},["string"==typeof a.main_sku_prop?t("span",[e._v(" "+e._s(a.main_sku_prop)+" "),t("a-icon",{staticStyle:{"font-size":"10px","margin-right":"0","padding-right":"0"},attrs:{type:"close"}}),e._v(" "+e._s(a.main_num)+" ")],1):t("span",e._l(a.main_sku_prop,(function(i,r){return t("div",{key:r},[t("span",[e._v(e._s(r)+":"+e._s(i))]),t("a-icon",{staticStyle:{"font-size":"10px","margin-right":"0","padding-right":"0"},attrs:{type:"close"}}),e._v(" "+e._s(a.main_num)+" ")],1)})),0)])],1),t("a-row",[null!==(o=r.order_info)&&void 0!==o&&o.currency||r.currency?t("a-col",{attrs:{flex:3}},[e._v(" "+e._s(e.$t("view.item.list.sale_price"))+" : "+e._s((null===(n=r.order_info)||void 0===n?void 0:n.currency)||r.currency)+e._s(a.main_sku_price)+" ")]):e._e(),t("a-col",{attrs:{flex:3}},[e._v(" "+e._s(e.$t("view.item.sku.barcode"))+" : "+e._s(a.main_barcode)+" ")]),t("a-col",{attrs:{flex:3}},[e._v(" "+e._s(e.$t("view.item.sku.out_id"))+" : "+e._s(a.main_out_id)+" ")])],1),t("a-row",{attrs:{type:"flex"}},[t("a-col",[e._v(e._s(e.$t("view.order.list.deduction_ratio"))+":")]),t("a-col",[e._v(e._s(a.deduction_ratio)+"%")])],1),null!==(l=r.order_info)&&void 0!==l&&l.currency||r.currency?t("a-row",{attrs:{type:"flex"}},[t("a-col",[e._v(e._s(e.$t("view.order.list.deduction_fee"))+":")]),t("a-col",[e._v(e._s((null===(c=r.order_info)||void 0===c?void 0:c.currency)||r.currency)+e._s(a.deduction_fee))])],1):e._e(),s<i.length-1?t("a-divider"):e._e()],1)]):e._e()})),0)}},{key:"post_fee",fn:function(a){var i,r,s,o=a.record;return t("span",{},[null!==(i=o.order_info)&&void 0!==i&&i.post_fee&&(null!==(r=o.order_info)&&void 0!==r&&r.currency||o.currency)?t("span",[e._v(e._s((null===(s=o.order_info)||void 0===s?void 0:s.currency)||o.currency)+e._s(o.order_info.post_fee))]):e._e()])}},{key:"deduction_fee",fn:function(a){var i,r,s=a.record;return t("span",{},[null!==(i=s.order_info)&&void 0!==i&&i.currency||s.currency?t("span",[e._v(e._s((null===(r=s.order_info)||void 0===r?void 0:r.currency)||s.currency)+e._s(s.deduction_fee))]):e._e()])}},{key:"deduction_status",fn:function(a){var i=a.record;return t("span",{},[1===i.deduction_status?t("span",[e._v(e._s(e.$t("ORDER_WAIT_PAYMENT")))]):e._e(),2===i.deduction_status?t("span",[e._v(e._s(e.$t("ORDER_PAID")))]):e._e(),3===i.deduction_status?t("span",[e._v(e._s(e.$t("ORDER_REFUNDED")))]):e._e()])}},{key:"payment",fn:function(a){var i=a.text,r=a.record;return t("span",{},[""===r.from_id?t("a-row",[t("a-col",{attrs:{lg:24}},[e._v(" "+e._s(e.$t("view.order.list.biaojiahuobi"))+e._s(e.shopQuoteCurrency)+" "+e._s(i)+" ")]),t("a-col",{attrs:{lg:24}},[e._v(" "+e._s(e.$t("view.order.list.payhuobiprice"))+" : "+e._s(r.trans_currency)+e._s(r.trans_amount)+" ")])],1):e._e(),""!==r.from_id?t("a-row",[t("a-col",{attrs:{lg:24}},[e._v(" "+e._s(e.shopQuoteCurrency)+" "+e._s(i)+" ")])],1):e._e()],1)}},{key:"status",fn:function(a){var i=a.text;return t("span",{},[e._v(" "+e._s(e.$t(i))+" ")])}},{key:"order_info",fn:function(a){var i=a.record;return t("span",{},[i.order_info?t("a-row",[i.order_info.last_name&&""!==i.order_info.last_name?t("a-col",{attrs:{lg:24}},[e._v(" "+e._s(e.$t("view.order.detail.ship_last_name"))+" : "+e._s(i.order_info.last_name)+" ")]):e._e(),i.order_info.first_name&&""!==i.order_info.first_name?t("a-col",{attrs:{lg:24}},[e._v(" "+e._s(e.$t("view.order.detail.ship_first_name"))+" : "+e._s(i.order_info.first_name)+" ")]):e._e(),i.order_info.phone&&""!=i.order_info.phone?t("a-col",{attrs:{lg:24}},[e._v(" "+e._s(e.$t("view.order.detail.ship_phone"))+" : "+e._s(i.order_info.phone)+" ")]):e._e(),t("a-col",{attrs:{lg:24}},[e._v(" "+e._s(e.$t("view.order.detail.ship_country"))+" : "),t("fanyi-list",{attrs:{list:[i.order_info.country]}})],1),t("a-col",{attrs:{lg:24}},[e._v(" "+e._s(e.$t("view.order.detail.ship_state"))+" : "+e._s(i.order_info.state)+" ")]),i.order_info.city?t("a-col",{attrs:{lg:24}},[e._v(" "+e._s(e.$t("view.order.detail.ship_city"))+" : "+e._s(i.order_info.city)+" ")]):e._e(),i.order_info.street?t("a-col",{attrs:{lg:24}},[e._v(" "+e._s(e.$t("view.order.detail.ship_street"))+" : "+e._s(i.order_info.street)+" ")]):e._e(),i.order_info.apartment?t("a-col",{attrs:{lg:24}},[e._v(" "+e._s(e.$t("view.order.detail.ship_men"))+" : "+e._s(i.order_info.apartment)+" ")]):e._e(),i.order_info.zip_code?t("a-col",{attrs:{lg:24}},[e._v(" "+e._s(e.$t("view.order.detail.zipcode"))+" : "+e._s(i.order_info.zip_code)+" ")]):e._e(),t("a-col",{attrs:{lg:24}},[e._v(" "+e._s(e.$t("view.order.detail.memberNote"))+" : "+e._s(i.order_info.member_note)+" ")])],1):e._e()],1)}},{key:"paymemberInfo",fn:function(a){var i=a.record;return t("span",{},[t("a-row",[i.last_name&&""!==i.last_name?t("a-col",{attrs:{lg:24}},[e._v(" "+e._s(e.$t("view.order.detail.ship_last_name"))+" : "+e._s(i.last_name)+" ")]):e._e(),i.first_name&&""!==i.first_name?t("a-col",{attrs:{lg:24}},[e._v(" "+e._s(e.$t("view.order.detail.ship_first_name"))+" : "+e._s(i.first_name)+" ")]):e._e(),i.phone&&""!=i.phone?t("a-col",{attrs:{lg:24}},[e._v(" "+e._s(e.$t("view.order.detail.ship_phone"))+" : "+e._s(i.phone)+" ")]):e._e(),t("a-col",{attrs:{lg:24}},[e._v(" "+e._s(e.$t("view.order.detail.ship_country"))+" : "+e._s(i.country)+" ")]),t("a-col",{attrs:{lg:24}},[e._v(" "+e._s(e.$t("view.order.detail.ship_state"))+" : "+e._s(i.state)+" ")]),t("a-col",{attrs:{lg:24}},[e._v(" "+e._s(e.$t("view.order.detail.ship_city"))+" : "+e._s(i.city)+" ")]),t("a-col",{attrs:{lg:24}},[e._v(" "+e._s(e.$t("view.order.detail.ship_street"))+" : "+e._s(i.street)+" ")]),t("a-col",{attrs:{lg:24}},[e._v(" "+e._s(e.$t("view.order.detail.ship_men"))+" : "+e._s(i.apartment)+" ")]),t("a-col",{attrs:{lg:24}},[e._v(" "+e._s(e.$t("view.order.detail.zipcode"))+" : "+e._s(i.zip_code)+" ")]),t("a-col",{attrs:{lg:24}},[t("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(t){return e.handleModifyShipping(i)}}},[e._v(" "+e._s(e.$t("view.system.resourcegroup.Update"))+" ")])],1)],1)],1)}},{key:"operation",fn:function(a){var i=a.record;return t("span",{},[t("div",[1==e.shopId?t("complaintForm",{attrs:{refId:i.order_id,type:"supply"},on:{ok:e.handleQuery}}):e._e(),1!=e.shopId||e.loading?e._e():t("complaintDetail",{attrs:{orderId:i.order_id,type:"supply"}}),t("a",{directives:[{name:"show",rawName:"v-show",value:"ORDER_WAIT_SHIP"===i.status&&1!=e.shopId&&e.isShowFahuoBtn(i)&&1!==i.is_virtual,expression:"record.status === 'ORDER_WAIT_SHIP' && shopId != 1 && isShowFahuoBtn(record) && record.is_virtual !== 1"}],on:{click:function(t){return e.handleFaHuo(i)}}},[e._v(" "+e._s(e.$t("view.order.list.ship.btn"))+" ")]),"ORDER_WAIT_PAYMENT"!==i.status&&"ORDER_WAIT_SHIP"===i.status&&1!=e.shopId&&i.isDajian&&1!==i.is_virtual?t("a-divider",{attrs:{type:"vertical"}}):e._e(),"ORDER_WAIT_PAYMENT"!==i.status&&1!=e.shopId&&i.isDajian&&1!==i.is_virtual?t("a",{on:{click:function(t){return e.pushDaJian(i)}}},[e._v(e._s(e.$t("view.order.list.pushdajian")))]):e._e(),t("a",{directives:[{name:"show",rawName:"v-show",value:1===i.deduction_status&&1!=e.shopId&&i.deduction_fee>0,expression:"record.deduction_status === 1 && shopId != 1 && record.deduction_fee > 0"}],on:{click:function(t){return e.supplyOrderPay(i)}}},[e._v(e._s(e.$t("procure.pay.deduction_fee.title")))])],1)])}}])},[t("div",{staticClass:"table-operations",attrs:{slot:"button"},slot:"button"},[t("div",[1!==e.shopId?t("recharge-main-shop",{staticStyle:{"margin-right":"10px"},attrs:{rechargeVisible:!0}}):e._e()],1)])])],1)],1)},r=[],s=a("5530"),o=a("dbc2"),n=Object(s["a"])({},o["default"]),l=n,c=(a("1d24"),a("2877")),d=Object(c["a"])(l,i,r,!1,null,null,null);t["default"]=d.exports},"7c9d2":function(e,t,a){"use strict";a.r(t);a("b0c0");var i=function(){var e=this,t=e._self._c;return t("ant-modal",{attrs:{visible:e.open,"modal-title":e.formTitle,"adjust-size":!0,modalHeight:"680",modalWidth:e.isMobile?"350":"640"},on:{cancel:e.cancel}},[t("a-form-model",{ref:"form",staticClass:"logisticsForm",attrs:{slot:"content",model:e.formData,layout:"vertical"},slot:"content"},[t("a-row",{staticClass:"form-row",attrs:{gutter:32}},[e.wmsId?e._e():t("a-col",{attrs:{lg:12,md:12,sm:24}},[t("a-form-model-item",{attrs:{label:e.$t("view.logistics.wms_id"),prop:"wms_id",rules:[{required:!0,message:e.$t("view.logistics.form.wms_idMessage"),trigger:"change"}]}},[t("WmsSelect",{attrs:{placeholder:e.$t("view.logistics.form.wms_idPlaceholder")},model:{value:e.formData.wms_id,callback:function(t){e.$set(e.formData,"wms_id",t)},expression:"formData.wms_id"}})],1)],1),e.warehouseCode?e._e():t("a-col",{attrs:{lg:12,md:12,sm:24}},[t("a-form-model-item",{attrs:{label:e.$t("view.logistics.warehouse_code"),prop:"warehouse_code",rules:[{required:!0,message:e.$t("view.logistics.form.warehouseCodeMessage"),trigger:"change"}]}},[t("GoodcangWarehouseSelect",{attrs:{wmsId:e.formData.wms_id,"data-key":"warehouse_code",placeholder:e.$t("view.logistics.form.warehouseCodePlaceholder")},on:{warehouseCode:e.handleWarehouseChange},model:{value:e.formData.warehouse_code,callback:function(t){e.$set(e.formData,"warehouse_code",t)},expression:"formData.warehouse_code"}})],1)],1),t("a-col",{attrs:{lg:12,md:12,sm:24}},[t("a-form-model-item",{attrs:{label:e.$t("view.logistics.code"),prop:"data.code",rules:[{required:!0,message:e.$t("view.logistics.form.codeMessage"),trigger:"change"}]}},[t("a-input",{attrs:{placeholder:e.$t("view.logistics.form.codePlaceholder")},model:{value:e.formData.data.code,callback:function(t){e.$set(e.formData.data,"code",t)},expression:"formData.data.code"}})],1)],1),t("a-col",{attrs:{lg:12,md:12,sm:24}},[t("a-form-model-item",{attrs:{label:e.$t("view.logistics.name"),prop:"data.name",rules:[{required:!0,message:e.$t("view.logistics.form.nameMessage"),trigger:"change"}]}},[t("a-input",{attrs:{placeholder:e.$t("view.logistics.form.namePlaceholder")},model:{value:e.formData.data.name,callback:function(t){e.$set(e.formData.data,"name",t)},expression:"formData.data.name"}})],1)],1),t("a-col",{attrs:{lg:12,md:12,sm:24}},[t("a-form-model-item",{attrs:{label:e.$t("view.logistics.name_en"),prop:"data.name_en"}},[t("a-input",{attrs:{placeholder:e.$t("view.logistics.form.nameEnPlaceholder")},model:{value:e.formData.data.name_en,callback:function(t){e.$set(e.formData.data,"name_en",t)},expression:"formData.data.name_en"}})],1)],1),t("a-col",{attrs:{lg:12,md:12,sm:24}},[t("a-form-model-item",{attrs:{label:e.$t("view.logistics.type"),prop:"data.type",rules:[{required:!0,message:e.$t("view.logistics.form.typePlaceholder"),trigger:"change"}]}},[t("a-select",{attrs:{placeholder:e.$t("view.logistics.form.typePlaceholder")},model:{value:e.formData.data.type,callback:function(t){e.$set(e.formData.data,"type",t)},expression:"formData.data.type"}},[t("a-select-option",{attrs:{value:"0"}},[e._v(e._s(e.$t("view.logistics.type.lastMile")))]),t("a-select-option",{attrs:{value:"1"}},[e._v(e._s(e.$t("view.logistics.type.returnPreselect")))]),t("a-select-option",{attrs:{value:"2"}},[e._v(e._s(e.$t("view.logistics.type.firstMile")))]),t("a-select-option",{attrs:{value:"3"}},[e._v(e._s(e.$t("view.logistics.type.returnSelfSelect")))])],1)],1)],1),t("a-col",{attrs:{lg:12,md:12,sm:24}},[t("a-form-model-item",{attrs:{label:e.$t("view.logistics.sp_code"),prop:"data.sp_code"}},[t("a-input",{attrs:{placeholder:e.$t("view.logistics.form.spCodePlaceholder")},model:{value:e.formData.data.sp_code,callback:function(t){e.$set(e.formData.data,"sp_code",t)},expression:"formData.data.sp_code"}})],1)],1),t("a-col",{attrs:{lg:8,md:8,sm:24}},[t("a-form-model-item",{attrs:{label:e.$t("view.logistics.is_signature")}},[t("a-radio-group",{model:{value:e.formData.data.is_signature,callback:function(t){e.$set(e.formData.data,"is_signature",t)},expression:"formData.data.is_signature"}},[t("a-radio",{attrs:{value:0}},[e._v(e._s(e.$t("view.logistics.option.no")))]),t("a-radio",{attrs:{value:1}},[e._v(e._s(e.$t("view.logistics.option.yes")))])],1)],1)],1),t("a-col",{attrs:{lg:8,md:8,sm:24}},[t("a-form-model-item",{attrs:{label:e.$t("view.logistics.address_validation")}},[t("a-radio-group",{model:{value:e.formData.data.address_validation,callback:function(t){e.$set(e.formData.data,"address_validation",t)},expression:"formData.data.address_validation"}},[t("a-radio",{attrs:{value:0}},[e._v(e._s(e.$t("view.logistics.option.no")))]),t("a-radio",{attrs:{value:1}},[e._v(e._s(e.$t("view.logistics.option.yes")))])],1)],1)],1),t("a-col",{attrs:{lg:8,md:8,sm:24}},[t("a-form-model-item",{attrs:{label:e.$t("view.logistics.is_specify_arrival_time")}},[t("a-radio-group",{model:{value:e.formData.data.is_specify_arrival_time,callback:function(t){e.$set(e.formData.data,"is_specify_arrival_time",t)},expression:"formData.data.is_specify_arrival_time"}},[t("a-radio",{attrs:{value:0}},[e._v(e._s(e.$t("view.logistics.option.no")))]),t("a-radio",{attrs:{value:1}},[e._v(e._s(e.$t("view.logistics.option.yes")))])],1)],1)],1),e.formData.data.is_specify_arrival_time?t("a-col",{attrs:{lg:24,md:24,sm:24}},[t("a-form-model-item",{attrs:{label:e.$t("view.logistics.delivery_time_list")}},[t("div",{staticClass:"time-picker-list"},[e._l(e.timeList,(function(a,i){return t("div",{key:i,staticClass:"time-picker-item"},[t("a-time-picker",{attrs:{format:"HH:mm",placeholder:e.$t("view.logistics.form.startTime")},model:{value:a.start,callback:function(t){e.$set(a,"start",t)},expression:"time.start"}}),t("span",{staticClass:"time-separator"},[e._v("~")]),t("a-time-picker",{attrs:{format:"HH:mm",placeholder:e.$t("view.logistics.form.endTime")},model:{value:a.end,callback:function(t){e.$set(a,"end",t)},expression:"time.end"}}),e.timeList.length>1?t("a-button",{staticClass:"delete-btn",attrs:{type:"link"},on:{click:function(t){return e.removeTimeRange(i)}}},[t("a-icon",{attrs:{type:"minus-circle"}})],1):e._e()],1)})),t("a-button",{attrs:{type:"dashed",block:""},on:{click:e.addTimeRange}},[t("a-icon",{attrs:{type:"plus"}}),e._v(" "+e._s(e.$t("view.logistics.button.addTime"))+" ")],1)],2)])],1):e._e(),t("a-col",{attrs:{lg:8,md:8,sm:24}},[t("a-form-model-item",{attrs:{label:e.$t("view.logistics.is_truck")}},[t("a-radio-group",{model:{value:e.formData.data.is_truck,callback:function(t){e.$set(e.formData.data,"is_truck",t)},expression:"formData.data.is_truck"}},[t("a-radio",{attrs:{value:0}},[e._v(e._s(e.$t("view.logistics.option.no")))]),t("a-radio",{attrs:{value:1}},[e._v(e._s(e.$t("view.logistics.option.yes")))])],1)],1)],1),t("a-col",{attrs:{lg:8,md:8,sm:24}},[t("a-form-model-item",{attrs:{label:e.$t("view.logistics.is_optional_board")}},[t("a-radio-group",{model:{value:e.formData.data.is_optional_board,callback:function(t){e.$set(e.formData.data,"is_optional_board",t)},expression:"formData.data.is_optional_board"}},[t("a-radio",{attrs:{value:0}},[e._v(e._s(e.$t("view.logistics.option.no")))]),t("a-radio",{attrs:{value:1}},[e._v(e._s(e.$t("view.logistics.option.yes")))])],1)],1)],1),t("a-col",{attrs:{lg:8,md:8,sm:24}},[t("a-form-model-item",{attrs:{label:e.$t("view.logistics.is_ooh")}},[t("a-radio-group",{model:{value:e.formData.data.is_ooh,callback:function(t){e.$set(e.formData.data,"is_ooh",t)},expression:"formData.data.is_ooh"}},[t("a-radio",{attrs:{value:0}},[e._v(e._s(e.$t("view.logistics.option.no")))]),t("a-radio",{attrs:{value:1}},[e._v(e._s(e.$t("view.logistics.option.yes")))])],1)],1)],1),t("a-col",{attrs:{lg:8,md:8,sm:24}},[t("a-form-model-item",{attrs:{label:e.$t("view.logistics.sm_business_type"),prop:"data.sm_business_type",rules:[{required:!0,message:e.$t("view.logistics.form.smBusinessTypeMessage"),trigger:"change"}]}},[t("a-select",{attrs:{placeholder:e.$t("view.logistics.form.smBusinessTypePlaceholder")},model:{value:e.formData.data.sm_business_type,callback:function(t){e.$set(e.formData.data,"sm_business_type",t)},expression:"formData.data.sm_business_type"}},[t("a-select-option",{attrs:{value:1}},[e._v(e._s(e.$t("view.logistics.sm_business_type.1")))]),t("a-select-option",{attrs:{value:3}},[e._v(e._s(e.$t("view.logistics.sm_business_type.3")))])],1)],1)],1),t("a-col",{attrs:{lg:12,md:12,sm:24}},[t("a-form-model-item",{attrs:{label:e.$t("view.logistics.distributor_type"),prop:"data.distributor_type",rules:[{required:!0,message:e.$t("view.logistics.form.distributorTypeMessage"),trigger:"change"}]}},[t("a-select",{attrs:{placeholder:e.$t("view.logistics.form.distributorTypePlaceholder")},model:{value:e.formData.data.distributor_type,callback:function(t){e.$set(e.formData.data,"distributor_type",t)},expression:"formData.data.distributor_type"}},[t("a-select-option",{attrs:{value:0}},[e._v(e._s(e.$t("view.logistics.distributor_type.0")))]),t("a-select-option",{attrs:{value:1}},[e._v(e._s(e.$t("view.logistics.distributor_type.1")))]),t("a-select-option",{attrs:{value:2}},[e._v(e._s(e.$t("view.logistics.distributor_type.2")))])],1)],1)],1)],1)],1),t("template",{slot:"footer"},[t("a-button",{attrs:{type:"primary"},on:{click:e.submitForm}},[e._v(" "+e._s(e.$t("view.logistics.button.save"))+" ")]),t("a-button",{on:{click:e.cancel}},[e._v(" "+e._s(e.$t("view.logistics.button.cancel"))+" ")])],1)],2)},r=[],s=a("5530"),o=a("0de6"),n=Object(s["a"])({},o["default"]),l=n,c=(a("4139"),a("2877")),d=Object(c["a"])(l,i,r,!1,null,"a8e571fc",null);t["default"]=d.exports},"8a63":function(e,t,a){},"8b78":function(e,t,a){"use strict";a.r(t);a("99af");var i=function(){var e=this,t=e._self._c;return t("div",[t("a-card",{staticStyle:{"margin-bottom":"10px"},attrs:{bordered:!1}},[t("div",{staticClass:"table-page-search-wrapper"},[t("a-form",{attrs:{labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[t("a-row",{attrs:{gutter:48}},[t("a-col",{attrs:{md:6,sm:24}},[t("a-form-item",{attrs:{label:"操作模块"}},[t("a-select",{staticStyle:{width:"100%"},attrs:{placeholder:"操作模块","allow-clear":""},model:{value:e.queryParam.module,callback:function(t){e.$set(e.queryParam,"module",t)},expression:"queryParam.module"}},e._l(e.moduleOptions,(function(a,i){return t("a-select-option",{key:i,attrs:{value:a.value}},[e._v(e._s(a.label))])})),1)],1)],1),t("a-col",{attrs:{md:6,sm:24}},[t("a-form-item",{attrs:{label:"操作人员"}},[t("a-input",{attrs:{placeholder:"请输入操作人员ID","allow-clear":""},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.handleQuery.apply(null,arguments)}},model:{value:e.queryParam.member_id,callback:function(t){e.$set(e.queryParam,"member_id",t)},expression:"queryParam.member_id"}})],1)],1),t("a-col",{attrs:{md:6,sm:24}},[t("a-form-item",{attrs:{label:"访问路径"}},[t("a-input",{attrs:{placeholder:"请输入访问路径","allow-clear":""},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.handleQuery.apply(null,arguments)}},model:{value:e.queryParam.url,callback:function(t){e.$set(e.queryParam,"url",t)},expression:"queryParam.url"}})],1)],1),t("a-col",{attrs:{md:6,sm:24}},[t("a-form-item",{attrs:{label:"访问IP"}},[t("a-input",{attrs:{placeholder:"请输入IP地址","allow-clear":""},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.handleQuery.apply(null,arguments)}},model:{value:e.queryParam.ip,callback:function(t){e.$set(e.queryParam,"ip",t)},expression:"queryParam.ip"}})],1)],1),t("a-col",{attrs:{md:6,sm:24}},[t("a-form-item",{attrs:{label:"请求方式"}},[t("a-select",{staticStyle:{width:"100%"},attrs:{placeholder:"请求方式","allow-clear":""},model:{value:e.queryParam.method,callback:function(t){e.$set(e.queryParam,"method",t)},expression:"queryParam.method"}},e._l(e.methodOptions,(function(a,i){return t("a-select-option",{key:i,attrs:{value:a.value}},[e._v(e._s(a.label))])})),1)],1)],1),t("a-col",{attrs:{md:6,sm:24}},[t("a-form-item",{attrs:{label:"耗时"}},[t("a-select",{staticStyle:{width:"100%"},attrs:{placeholder:"耗时","allow-clear":""},model:{value:e.queryParam.take_up_time,callback:function(t){e.$set(e.queryParam,"take_up_time",t)},expression:"queryParam.take_up_time"}},e._l(e.takeTimeOptions,(function(a,i){return t("a-select-option",{key:i,attrs:{value:a.value}},[e._v(e._s(a.label))])})),1)],1)],1),e.advanced?t("a-col",{attrs:{md:6,sm:24}},[t("a-form-item",{attrs:{label:"状态码"}},[t("a-select",{staticStyle:{width:"100%"},attrs:{placeholder:"响应状态码","allow-clear":""},model:{value:e.queryParam.error_code,callback:function(t){e.$set(e.queryParam,"error_code",t)},expression:"queryParam.error_code"}},e._l(e.errorCodeOptions,(function(a,i){return t("a-select-option",{key:i,attrs:{value:a.value}},[e._v(e._s(a.label))])})),1)],1)],1):e._e(),e.advanced?t("a-col",{attrs:{md:6,sm:24}},[t("a-form-item",{attrs:{label:"操作时间"}},[t("a-range-picker",{staticStyle:{width:"100%"},attrs:{valueFormat:"YYYY-MM-DD",format:"YYYY-MM-DD","allow-clear":""},model:{value:e.dateRange,callback:function(t){e.dateRange=t},expression:"dateRange"}})],1)],1):e._e(),t("a-col",[t("span",{staticClass:"table-page-search-submitButtons",staticStyle:{float:"right"}},[t("a-button",{attrs:{type:"primary"},on:{click:e.handleQuery}},[t("a-icon",{attrs:{type:"search"}}),e._v("查询")],1),t("a-button",{staticStyle:{"margin-left":"8px"},on:{click:e.resetQuery}},[t("a-icon",{attrs:{type:"redo"}}),e._v("重置")],1),t("a",{staticStyle:{"margin-left":"8px"},on:{click:e.toggleAdvanced}},[e._v(" "+e._s(e.advanced?"收起":"展开")+" "),t("a-icon",{attrs:{type:e.advanced?"up":"down"}})],1)],1)])],1)],1)],1)]),t("a-card",{staticClass:"table-card",attrs:{bordered:!1}},[t("view-form",{ref:"viewForm"}),t("advance-table",{attrs:{columns:e.columns,"data-source":e.list,title:"系统参数",loading:e.loading,rowKey:"id",tableKey:"monitor-operlog-Operlog-table",isTableConfig:!1,isShowSetBtn:!1,size:"middle","format-conditions":!0,"row-selection":{selectedRowKeys:e.selectedRowKeys,onChange:e.onSelectChange},pagination:{current:e.queryParam.page,limit:e.queryParam.limit,total:e.total,showSizeChanger:!0,showLessItems:!0,showQuickJumper:!0,showTotal:function(e,t){return"第 ".concat(t[0],"-").concat(t[1]," 条,总计 ").concat(e," 条")},onChange:e.changeSize,onShowSizeChange:e.onSizeChange}},on:{refresh:e.getList},scopedSlots:e._u([{key:"method",fn:function(a){var i=a.text,r=a.record;return t("span",{},[t("a-tag",{attrs:{color:e._f("operMethodFilter")(i)}},[e._v(" "+e._s(e.methodFormat(r))+" ")])],1)}},{key:"module",fn:function(a){var i=a.text,r=a.record;return t("span",{},[t("a-tag",{attrs:{color:e._f("operModuleFilter")(i)}},[e._v(" "+e._s(e.moduleFormat(r))+" ")])],1)}},{key:"error_code",fn:function(a){var i=a.text,r=a.record;return t("span",{},[t("a-tag",{attrs:{color:e._f("operErrorCodeFilter")(i)}},[e._v(" "+e._s(e.errorCodeFormat(r))+" ")])],1)}},{key:"take_up_time",fn:function(a){var i=a.text,r=a.record;return t("span",{},[t("a-tag",{attrs:{color:e._f("operTakeTimeFilter")(i)}},[e._v(" "+e._s(e.takeTimeFormat(r))+" ")])],1)}},{key:"operation",fn:function(a){a.text;var i=a.record;return t("span",{},[t("a",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["monitor:operlog:query"],expression:"['monitor:operlog:query']"}],on:{click:function(t){return e.$refs.viewForm.handleView(i)}}},[t("a-icon",{attrs:{type:"eye",theme:"twoTone"}}),e._v("详细 ")],1)])}},{key:"member_name",fn:function(a){a.text;var i=a.record;return t("span",{},[t("span",[e._v(e._s(e.memberNameFormat(i)))])])}}])},[t("div",{staticClass:"table-operations",attrs:{slot:"button"},slot:"button"},[e.multiple?e._e():t("a-button",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["monitor:operlog:remove"],expression:"['monitor:operlog:remove']"}],attrs:{type:"danger",disabled:e.multiple},on:{click:e.handleDelete}},[t("a-icon",{attrs:{type:"delete"}}),e._v("删除 ")],1),t("a-button",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["monitor:operlog:remove"],expression:"['monitor:operlog:remove']"}],attrs:{type:"danger"},on:{click:e.handleClean}},[t("a-icon",{attrs:{type:"delete"}}),e._v("清空 ")],1),t("a-button",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["system:config:export"],expression:"['system:config:export']"}],on:{click:e.handleExport}},[t("a-icon",{attrs:{type:"download"}}),e._v("导出 ")],1)],1)])],1)],1)},r=[],s=(a("d81d"),a("b775"));function o(e){return Object(s["b"])({url:"/log/list",method:"get",params:e})}function n(e){return Object(s["b"])({url:"/monitor/operlog/"+e,method:"delete"})}function l(){return Object(s["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(e){var t="blue";return 3!==e&&7!==e&&9!==e||(t="orange"),t},operModuleFilter:function(e){var t="blue";return"api"===e&&(t="orange"),t},operMethodFilter:function(e){var t="blue";return"POST"===e&&(t="orange"),t},operErrorCodeFilter:function(e){var t="orange";return 0!==e&&(t="red"),t},operTakeTimeFilter:function(){return"magenta"}},created:function(){var e=this;this.getList(),this.getDicts("req_code").then((function(t){e.errorCodeOptions=t})),this.getDicts("req_take_up_time").then((function(t){e.takeTimeOptions=t})),this.getDicts("sys_oper_module").then((function(t){e.moduleOptions=t})),this.getDicts("sys_oper_method").then((function(t){e.methodOptions=t}))},computed:{},watch:{},methods:{onSizeChange:function(e,t){this.queryParam.page=1,this.queryParam.limit=t,this.getList()},getList:function(){var e=this;this.loading=!0,o(this.addDateRange(this.queryParam,this.dateRange)).then((function(t){e.list=t.list,e.total=t.total_count,e.loading=!1}))},errorCodeFormat:function(e,t){return this.selectDictLabel(this.errorCodeOptions,e.error_code)},takeTimeFormat:function(e,t){return e.take_up_time+"ms"},moduleFormat:function(e,t){return this.selectDictLabel(this.moduleOptions,e.module)},methodFormat:function(e,t){return this.selectDictLabel(this.methodOptions,e.method)},memberNameFormat:function(e){return e.member_id<=0?"":"(#"+e.member_id+")"+e.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(e,t){this.queryParam.limit=t,this.getList()},changeSize:function(e,t){this.queryParam.page=e,this.queryParam.limit=t,this.getList()},onSelectChange:function(e,t){this.selectedRowKeys=e,this.selectedRows=t,this.ids=this.selectedRows.map((function(e){return e.id})),this.multiple=!e.length},toggleAdvanced:function(){this.advanced=!this.advanced},handleDelete:function(e){var t=this,a=e.id||this.ids;this.$confirm({title:"确认删除所选中数据?",content:"当前选中编号为"+a+"的数据",onOk:function(){return n(a).then((function(){t.onSelectChange([],[]),t.getList(),t.$message.success("删除成功",3)}))},onCancel:function(){}})},handleClean:function(){var e=this;this.$confirm({title:"是否确认清空?",content:"此操作将会清空所有操作日志数据项",onOk:function(){return l().then((function(){e.onSelectChange([],[]),e.getList(),e.$message.success("清空成功",3)}))},onCancel:function(){}})},handleExport:function(){var e=this;this.$confirm({title:"是否确认导出?",content:"此操作将导出当前条件下所有数据而非选中数据",onOk:function(){return Object(u["g"])("/log/export",e.queryParam)},onCancel:function(){}})}}},m=p,_=a("2877"),h=Object(_["a"])(m,i,r,!1,null,null,null);t["default"]=h.exports},"9c56c":function(e,t,a){"use strict";a("b9e8")},a9d9:function(e,t,a){},b819:function(e,t,a){},b9e8:function(e,t,a){},cc90:function(e,t,a){"use strict";a.r(t);var i=a("fff4");t["default"]=i["a"]},d916:function(e,t,a){},f9ee:function(e,t,a){"use strict";a.d(t,"c",(function(){return r})),a.d(t,"e",(function(){return s})),a.d(t,"d",(function(){return o})),a.d(t,"b",(function(){return n})),a.d(t,"a",(function(){return l}));var i=a("b775");function r(){return Object(i["b"])({url:"/wms/methods",method:"post"})}function s(e){return Object(i["b"])({url:"/wms/change",method:"post",data:e})}function o(e){return Object(i["b"])({url:"/wms/set",method:"post",data:e})}function n(e){return Object(i["b"])({url:"/wms/get",method:"post",data:e})}function l(e){return Object(i["b"])({url:"/good_cang/warehouse/shipping_method/add",method:"post",data:e})}},ffeb:function(e,t,a){"use strict";a("8a63")},fff4:function(e,t,a){"use strict";var i=function(){var e=this,t=e._self._c;return t("span",[t("a-select",{staticStyle:{width:"100%"},attrs:{placeholder:e.$t("components.GoodcangWarehouseSelect.placeholder")},on:{change:e.handleChange},model:{value:e.currentValue,callback:function(t){e.currentValue=t},expression:"currentValue"}},e._l(e.warehouseList,(function(a){return t("a-select-option",{key:a.id,attrs:{value:"warehouse_code"===e.dataKey?a.warehouse_code:a.id}},[e._v(" "+e._s(a.warehouse_name)+" - ("+e._s(a.warehouse_code)+") ")])})),1)],1)},r=[],s=a("c7eb"),o=a("1da1"),n=(a("d3b7"),a("7db0"),a("3058")),l={name:"GoodcangWarehouseSelect",props:{value:{default:null},dataKey:{type:String,default:"warehouse_code"},wmsId:{default:null}},data:function(){return{loading:!1,warehouseList:[],currentValue:this.value}},watch:{value:{handler:function(e){this.currentValue=e},immediate:!0},wmsId:{handler:function(e){e&&this.fetchWarehouseList()},immediate:!0}},created:function(){var e=this;return Object(o["a"])(Object(s["a"])().mark((function t(){return Object(s["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,e.fetchWarehouseList();case 2:case"end":return t.stop()}}),t)})))()},methods:{fetchWarehouseList:function(){var e=this;return Object(o["a"])(Object(s["a"])().mark((function t(){var a,i,r;return Object(s["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return e.loading=!0,t.prev=1,a={},e.wmsId&&(a.wms_id=e.wmsId),t.next=6,Object(n["b"])(a);case 6:i=t.sent,0===i.code&&i.list&&(e.warehouseList=i.list,e.warehouseList.length>0&&(null===e.currentValue?(e.currentValue="warehouse_code"===e.dataKey?e.warehouseList[0].warehouse_code:e.warehouseList[0].id,e.handleChange(e.currentValue)):(r=e.warehouseList.some((function(t){return"warehouse_code"===e.dataKey?t.warehouse_code===e.currentValue:t.id===e.currentValue})),r||(e.currentValue="warehouse_code"===e.dataKey?e.warehouseList[0].warehouse_code:e.warehouseList[0].id),e.handleChange(e.currentValue)))),t.next=12;break;case 10:t.prev=10,t.t0=t["catch"](1);case 12:return t.prev=12,e.loading=!1,t.finish(12);case 15:case"end":return t.stop()}}),t,null,[[1,10,12,15]])})))()},handleChange:function(e){var t=this,a=this.warehouseList.find((function(a){return"warehouse_code"===t.dataKey?a.warehouse_code===e:a.id===e}));a&&(this.$emit("warehouseCode",a),this.$emit("input",e),this.$emit("change",e))}}},c=l,d=a("2877"),u=Object(d["a"])(c,i,r,!1,null,null,null);t["a"]=u.exports}}]);