@bee-hole/admin 1.25.18 → 1.25.20

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 (68) hide show
  1. package/dist/css/{app~f075b844.797ba4eb.css → app~f075b844.d82703af.css} +1 -1
  2. package/dist/css/{app~f075b844.797ba4eb.css.gz → app~f075b844.d82703af.css.gz} +0 -0
  3. package/dist/css/{chunk-749ffb2c.1e8392c0.css → chunk-1594f836.fca25df2.css} +1 -1
  4. package/dist/css/chunk-1594f836.fca25df2.css.gz +0 -0
  5. package/dist/css/{lang-package~4e34e71e.316dec13.css → lang-package~4e34e71e.b4bd5e4c.css} +2 -2
  6. package/dist/css/lang-package~4e34e71e.b4bd5e4c.css.gz +0 -0
  7. package/dist/index.html +1 -1
  8. package/dist/js/app~f075b844.922f40ce.js +1 -0
  9. package/dist/js/app~f075b844.922f40ce.js.gz +0 -0
  10. package/dist/js/{chunk-03e1387e.5e2ad3ad.js → chunk-03e1387e.271b847d.js} +1 -1
  11. package/dist/js/chunk-03e1387e.271b847d.js.gz +0 -0
  12. package/dist/js/{chunk-0ba53954.607170d3.js → chunk-0ba53954.efc34dbe.js} +1 -1
  13. package/dist/js/chunk-0ba53954.efc34dbe.js.gz +0 -0
  14. package/dist/js/{chunk-0e20a560.c7f28167.js → chunk-0e20a560.b29ef088.js} +1 -1
  15. package/dist/js/{chunk-0e20a560.c7f28167.js.gz → chunk-0e20a560.b29ef088.js.gz} +0 -0
  16. package/dist/js/chunk-1594f836.8fc9daae.js +1 -0
  17. package/dist/js/chunk-1594f836.8fc9daae.js.gz +0 -0
  18. package/dist/js/chunk-4b8ab170.d02f777b.js +1 -0
  19. package/dist/js/chunk-4b8ab170.d02f777b.js.gz +0 -0
  20. package/dist/js/lang-ar-EG~31ecd969.0a5a6f9a.js +3 -0
  21. package/dist/js/lang-ar-EG~31ecd969.0a5a6f9a.js.gz +0 -0
  22. package/dist/js/lang-bn-BD~ede72586.76970b29.js +1 -0
  23. package/dist/js/lang-bn-BD~ede72586.76970b29.js.gz +0 -0
  24. package/dist/js/{lang-en-US~31ecd969.ac813862.js → lang-en-US~31ecd969.519799c9.js} +1 -1
  25. package/dist/js/lang-en-US~31ecd969.519799c9.js.gz +0 -0
  26. package/dist/js/lang-ko-KR~31ecd969.0d88f056.js +1 -0
  27. package/dist/js/lang-ko-KR~31ecd969.0d88f056.js.gz +0 -0
  28. package/dist/js/lang-ms-MY~d756050e.287dfdaa.js +1 -0
  29. package/dist/js/lang-ms-MY~d756050e.287dfdaa.js.gz +0 -0
  30. package/dist/js/lang-package~4e34e71e.f4ed062f.js +11 -0
  31. package/dist/js/lang-package~4e34e71e.f4ed062f.js.gz +0 -0
  32. package/dist/js/lang-zh-TW~31ecd969.fdb83599.js +1 -0
  33. package/dist/js/lang-zh-TW~31ecd969.fdb83599.js.gz +0 -0
  34. package/package.json +1 -1
  35. package/dist/css/chunk-749ffb2c.1e8392c0.css.gz +0 -0
  36. package/dist/css/lang-package~4e34e71e.316dec13.css.gz +0 -0
  37. package/dist/js/app~f075b844.aa23ba6a.js +0 -1
  38. package/dist/js/app~f075b844.aa23ba6a.js.gz +0 -0
  39. package/dist/js/chunk-03e1387e.5e2ad3ad.js.gz +0 -0
  40. package/dist/js/chunk-04efa5ae.8ebefa99.js +0 -1
  41. package/dist/js/chunk-04efa5ae.8ebefa99.js.gz +0 -0
  42. package/dist/js/chunk-0ba53954.607170d3.js.gz +0 -0
  43. package/dist/js/chunk-749ffb2c.835e0ab8.js +0 -1
  44. package/dist/js/chunk-749ffb2c.835e0ab8.js.gz +0 -0
  45. package/dist/js/lang-ar-EG~31ecd969.6fc88c3f.js +0 -3
  46. package/dist/js/lang-ar-EG~31ecd969.6fc88c3f.js.gz +0 -0
  47. package/dist/js/lang-bn-BD~ede72586.2c9f6f67.js +0 -1
  48. package/dist/js/lang-bn-BD~ede72586.2c9f6f67.js.gz +0 -0
  49. package/dist/js/lang-en-US~31ecd969.ac813862.js.gz +0 -0
  50. package/dist/js/lang-ko-KR~31ecd969.94327983.js +0 -1
  51. package/dist/js/lang-ko-KR~31ecd969.94327983.js.gz +0 -0
  52. package/dist/js/lang-ms-MY~d756050e.ae8c4e8e.js +0 -1
  53. package/dist/js/lang-ms-MY~d756050e.ae8c4e8e.js.gz +0 -0
  54. package/dist/js/lang-package~4e34e71e.ee82f92a.js +0 -11
  55. package/dist/js/lang-package~4e34e71e.ee82f92a.js.gz +0 -0
  56. package/dist/js/lang-zh-TW~31ecd969.454c377b.js +0 -1
  57. package/dist/js/lang-zh-TW~31ecd969.454c377b.js.gz +0 -0
  58. /package/dist/css/{chunk-0e20a560.38ef4649.css → chunk-0e20a560.463d4485.css} +0 -0
  59. /package/dist/css/{chunk-0e20a560.38ef4649.css.gz → chunk-0e20a560.463d4485.css.gz} +0 -0
  60. /package/dist/css/{chunk-04efa5ae.e3e7dc69.css → chunk-4b8ab170.e3e7dc69.css} +0 -0
  61. /package/dist/css/{chunk-vendors~5ea6e0dc.cda87f4c.css → chunk-vendors~5ea6e0dc.577119a6.css} +0 -0
  62. /package/dist/css/{chunk-vendors~5ea6e0dc.cda87f4c.css.gz → chunk-vendors~5ea6e0dc.577119a6.css.gz} +0 -0
  63. /package/dist/css/{chunk-vendors~921ad15b.f886b6db.css → chunk-vendors~921ad15b.24bc41a4.css} +0 -0
  64. /package/dist/css/{chunk-vendors~921ad15b.f886b6db.css.gz → chunk-vendors~921ad15b.24bc41a4.css.gz} +0 -0
  65. /package/dist/js/{chunk-e8891446.02a0b48f.js → chunk-e8891446.26645b2b.js} +0 -0
  66. /package/dist/js/{chunk-e8891446.02a0b48f.js.gz → chunk-e8891446.26645b2b.js.gz} +0 -0
  67. /package/dist/js/{lang-zh-TW-service~f63b1681.a4ff2f7e.js → lang-zh-TW-service~f63b1681.62b7736f.js} +0 -0
  68. /package/dist/js/{lang-zh-TW-service~f63b1681.a4ff2f7e.js.gz → lang-zh-TW-service~f63b1681.62b7736f.js.gz} +0 -0
Binary file
@@ -1 +0,0 @@
1
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-04efa5ae"],{"0c6d":function(e,t,a){"use strict";a.r(t);var o=function(){var e=this,t=e._self._c;return t("span",[e.complaint?t("a-button",{attrs:{type:"link"},on:{click:e.openModal}},[e._v(e._s(e.workOrderId?e.$t("view.workOrder.handle.button"):e.$t("components.complaint.detail.btn")))]):e._e(),t("ant-modal",{attrs:{visible:e.open,"modal-title":e.formTitle,"adjust-size":!0,modalHeight:e.isMobile?"500":"580",modalWidth:e.isMobile?"600":"800"},on:{cancel:e.cancel}},[e.complaint&&e.open?t("div",{attrs:{slot:"content"},slot:"content"},[e.orderDetailModal?t("order-detail",{ref:"OrderDetail",on:{close:function(t){e.orderDetailModal=!1}}}):e._e(),t("previewImg",{attrs:{previewVisible:e.previewImgShow,previewImage:e.preImg},on:{"update:previewVisible":function(t){e.previewImgShow=t},"update:preview-visible":function(t){e.previewImgShow=t}}}),t("a-form",{attrs:{"label-col":e.labelCol,"wrapper-col":e.wrapperCol},model:{value:e.complaint,callback:function(t){e.complaint=t},expression:"complaint"}},[e.workOrderList&&e.workOrderList.length>1?t("a-form-item",{attrs:{label:e.$t("components.complaint.detail.currentWorkOrder"),prop:"work_order_id"}},[t("a-select",{staticStyle:{width:"100%"},attrs:{"default-value":e.complaint.work_order_id},on:{change:e.switchWorkOrder}},e._l(e.workOrderList,(function(a){return t("a-select-option",{key:a.work_order_id,attrs:{value:a.work_order_id}},[e._v(e._s(a.details))])})),1)],1):e._e(),2==e.complaint.work_order_type&&e.complaint.complaint_ref_id&&1==e.shop_id?t("a-form-item",{attrs:{label:e.$t("procure.list.order.order_id"),prop:"faq_id"}},[t("a",{on:{click:function(t){return e.handleOrderDetail()}}},[e._v(e._s(e.complaint.complaint_ref_id))])]):e._e(),3==e.complaint.work_order_type&&e.complaint.complaint_ref_id&&1==e.shop_id?t("a-form-item",{attrs:{label:e.$t("view.supply.list.order.id"),prop:"faq_id"}},[t("a",{on:{click:function(t){return e.handleOrderDetail()}}},[e._v(e._s(e.complaint.complaint_ref_id))])]):e._e(),t("a-form-item",{attrs:{label:e.$t("components.complaint.faqId"),prop:"faq_id"}},[t("faqType",{attrs:{value:e.complaint.faq_id,disabled:""},on:{"update:value":function(t){return e.$set(e.complaint,"faq_id",t)}}})],1),t("a-form-item",{attrs:{label:e.$t("components.complaint.detailImages"),prop:"detail_images"}},[t("div",{staticStyle:{display:"flex","flex-wrap":"wrap"}},[e.complaint.detail_image_1?t("img",{staticStyle:{height:"80px","margin-right":"10px","margin-bottom":"10px",cursor:"pointer"},attrs:{src:e.complaint.detail_image_1},on:{click:function(t){return e.previewImage(e.complaint.detail_image_1)}}}):e._e(),e.complaint.detail_image_2?t("img",{staticStyle:{height:"80px","margin-right":"10px","margin-bottom":"10px",cursor:"pointer"},attrs:{src:e.complaint.detail_image_2},on:{click:function(t){return e.previewImage(e.complaint.detail_image_2)}}}):e._e(),e.complaint.detail_image_3?t("img",{staticStyle:{height:"80px","margin-right":"10px","margin-bottom":"10px",cursor:"pointer"},attrs:{src:e.complaint.detail_image_3},on:{click:function(t){return e.previewImage(e.complaint.detail_image_3)}}}):e._e(),e.complaint.detail_image_4?t("img",{staticStyle:{height:"80px","margin-right":"10px","margin-bottom":"10px",cursor:"pointer"},attrs:{src:e.complaint.detail_image_4},on:{click:function(t){return e.previewImage(e.complaint.detail_image_4)}}}):e._e(),e.complaint.detail_image_5?t("img",{staticStyle:{height:"80px","margin-right":"10px","margin-bottom":"10px",cursor:"pointer"},attrs:{src:e.complaint.detail_image_5},on:{click:function(t){return e.previewImage(e.complaint.detail_image_5)}}}):e._e()])]),t("a-form-item",{attrs:{label:e.$t("components.complaint.details"),prop:"details"}},[t("div",{staticStyle:{width:"100%"}},[t("div",{staticStyle:{"min-height":"32px","word-break":"break-word",display:"flex","align-content":"center","align-items":"center","flex-wrap":"wrap"}},[e._v(" "+e._s(e.complaint.details)+" ")])])]),e.complaint.results?t("div",{staticStyle:{"margin-bottom":"20px"}},[t("a-list",{attrs:{"item-layout":"horizontal","data-source":e.complaint.results},scopedSlots:e._u([{key:"renderItem",fn:function(a,o){return t("a-list-item",{},[t("a-list-item-meta",[t("div",{attrs:{slot:"title"},slot:"title"},[t("div",{key:o,style:{display:"flex",justifyContent:"space-between",paddingTop:"15px",borderTop:0===o?" 1px solid #e8e8e8":"0"}},[t("div",[t("supply-info",{attrs:{shopId:a.shop_id===e.complaint.executor_shop_id?e.complaint.executor_shop_id:e.complaint.executee_shop_id}})],1),t("div",[t("div",[e._v(e._s(a.create_time))])])])]),t("div",{attrs:{slot:"description"},slot:"description"},[t("div",{domProps:{innerHTML:e._s(a.execution_result)}})])])],1)}}],null,!1,2466928742)})],1):e._e(),e.complaint&&e.complaint.status?t("a-form-item",{attrs:{label:e.$t("components.complaint.status"),prop:"status"}},[t("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"}},[t("span",{staticStyle:{"margin-right":"10px"}},[e._v(" "+e._s(e.$t("WorkOrder."+e.complaint.status)))]),"FINISHED"!=e.complaint.status?t("endingWorkOrder",{attrs:{workOrderId:e.complaint.work_order_id},on:{refresh:e.openModal}}):e._e()],1)]):e._e(),e.complaint&&"FINISHED"!=e.complaint.status?t("div",[t("commitWorkOrder",{ref:"commitWorkOrder",attrs:{isFormBtn:!1,workOrderId:e.complaint.work_order_id},on:{ok:e.openModal}})],1):e._e()],1)],1):e._e(),t("div",{attrs:{slot:"footer"},slot:"footer"},[t("a-button",{on:{click:e.cancel}},[e._v(e._s(e.$t("components.complaint.detail.cancel")))]),e.complaint&&"FINISHED"!=e.complaint.status?t("a-button",{attrs:{type:"primary"},on:{click:e.submit}},[e._v(e._s(e.$t("view.workorder.handle.submit")))]):e._e()],1)])],1)},n=[],i=a("5530"),r=(a("d3b7"),a("3ca3"),a("ddb0"),a("4de4"),a("255f")),s=a("2dd7"),l=a("2f62"),c=a("a026"),d=a("8eb3"),u=a("0a56"),m=Object(c["b"])((function(){return a.e("chunk-03e1387e").then(a.bind(null,"7bb9"))})),p=Object(c["b"])((function(){return a.e("lang-zh-TW-service~f63b1681").then(a.bind(null,"95fb"))})),f=Object(c["b"])((function(){return Promise.all([a.e("lang-package~4e34e71e"),a.e("chunk-fa04ce72")]).then(a.bind(null,"c03e"))})),h=Object(c["b"])((function(){return a.e("chunk-04efa5ae").then(a.bind(null,"dc25"))})),g={name:"ComplaintDetail",data:function(){return{complaint:null,open:!1,formTitle:"",labelCol:{span:24},wrapperCol:{span:20},workOrderList:[],previewImgShow:!1,preImg:"",orderDetailModal:!1}},props:{orderId:{type:String,default:""},workOrderId:{type:String,default:""}},created:function(){this.formTitle=this.$t("components.complaint.detail.modal.title"),this.workOrderId?this.getWorkOrder():this.getComplaint()},watch:{orderId:function(e,t){this.getComplaint()}},methods:{getComplaint:function(){var e=this;Object(r["f"])({complaint_ref_id:this.orderId}).then((function(t){t.list&&t.list.length>0&&(e.workOrderList=t.list,e.complaint=t.list[t.list.length-1])}))},getWorkOrder:function(){var e=this;Object(r["c"])({work_order_id:this.workOrderId}).then((function(t){e.complaint=t}))},cancel:function(){this.open=!1},openModal:function(){this.open=!0,this.workOrderId?this.getWorkOrder():this.getComplaint()},switchWorkOrder:function(e){var t=this.workOrderList.filter((function(t){if(t.work_order_id===e)return t}));t&&t.length>0&&(this.complaint=Object.assign({},t[0]))},previewImage:function(e){this.preImg=e,this.previewImgShow=!0},submit:function(){this.$refs.commitWorkOrder.backChecked()},handleOrderDetail:function(){var e=this,t={};this.complaint.work_order_type,t.order_id=this.complaint.complaint_ref_id,this.orderDetailModal=!0,this.$nextTick((function(){return e.$refs.OrderDetail.handleOrderDetail(t)}))}},computed:Object(i["a"])({},Object(l["c"])(["shopId","isMobile"])),components:{AntModal:s["default"],faqType:m,endingWorkOrder:p,commitWorkOrder:f,supplyInfo:d["default"],previewImg:h,OrderDetail:u["default"]}},v=Object(i["a"])({},g),_=v,y=a("2877"),b=Object(y["a"])(_,o,n,!1,null,null,null);t["default"]=b.exports},"12a1":function(e,t,a){"use strict";a.r(t);a("b0c0");var o=function(){var e=this,t=e._self._c;return t("span",[t("a-button",{attrs:{type:"primary"},on:{click:e.saveInit}},[e._v(e._s(e.$t("components.google.open.button")))]),e.open?t("ant-modal",{attrs:{visible:e.open,"modal-title":e.modalTitle,"adjust-size":!0,modalHeight:"380",modalWidth:"820"},on:{cancel:e.cancelEditGoodInfo,ok:e.okEditGoodInfo}},[t("div",{attrs:{slot:"content"},slot:"content"},[t("a-form-model",{ref:"googleForm",attrs:{model:e.formData,rules:e.rules}},[t("a-row",{attrs:{gutter:12}},[t("a-col",{attrs:{lg:12}},[t("a-form-model-item",{attrs:{label:e.$t("view.order.detail.ship_country"),prop:"target_country",required:""}},[t("ps-country-select",{attrs:{countryCode:e.formData.target_country},on:{"update:countryCode":function(t){return e.$set(e.formData,"target_country",t)},"update:country-code":function(t){return e.$set(e.formData,"target_country",t)}}})],1)],1),t("a-col",{attrs:{lg:12}},[t("a-form-model-item",{attrs:{label:e.$t("view.item.component.item.syn.ozon.language"),prop:"content_language",required:""}},[t("view-select",{attrs:{lang:e.formData.content_language,backVal:"lang"},on:{change:e.backLang}})],1)],1),t("a-col",{attrs:{lg:12}},[t("a-form-model-item",{attrs:{label:e.$t("view.item.form.channel"),prop:"channel",required:""}},[t("a-select",{attrs:{"show-search":"",placeholder:"","option-filter-prop":"title"},model:{value:e.formData.channel,callback:function(t){e.$set(e.formData,"channel",t)},expression:"formData.channel"}},e._l(e.channelList,(function(a){return t("a-select-option",{key:a.name,attrs:{title:a.name,value:a.value}},[e._v(" "+e._s(a.name)+" ")])})),1)],1)],1)],1)],1)],1)]):e._e()],1)},n=[],i=a("5530"),r=(a("d3b7"),a("3ca3"),a("ddb0"),a("a026")),s=a("aabf"),l=a("1b6c"),c=Object(r["b"])((function(){return Promise.resolve().then(a.bind(null,"2dd7"))})),d=Object(r["b"])((function(){return Promise.resolve().then(a.bind(null,"1605"))})),u=Object(r["b"])((function(){return Promise.resolve().then(a.bind(null,"68dd"))})),m={name:"GoogleGoods",data:function(){return{open:!1,modalTitle:"",formData:{},channelList:[{name:Object(l["b"])("components.googleGoods.channel.local"),value:"local"},{name:Object(l["b"])("components.googleGoods.channel.online"),value:"online"}],rules:{target_country:[{required:!0,message:Object(l["b"])("components.google.channel.target_country"),trigger:"change"}],content_language:[{required:!0,message:Object(l["b"])("components.google.channel.content_language"),trigger:"change"}],channel:[{required:!0,message:Object(l["b"])("components.google.channel.placeholder"),trigger:"change"}]}}},props:{goods:null,sellerId:{type:String,default:""}},methods:{openModal:function(e){this.initData(this.goods),this.open=!0},saveInit:function(){this.initData(this.goods),this.okEditGoodInfo()},initData:function(e){this.goods=e,this.modalTitle=this.$t("components.google.modal.title"),this.pathList=[],this.formData={target_country:"",goods_id:e.good_id,content_language:""}},backLang:function(e){this.formData.content_language=e},okEditGoodInfo:function(){var e=this,t=JSON.parse(JSON.stringify(this.formData));Object(s["q"])(t).then((function(t){0===t.code&&(e.cancelEditGoodInfo(),e.$message.success(e.$t("components.google.modal.success")),e.$emit("ok",t))}))},cancelEditGoodInfo:function(){this.open=!1}},components:{AntModal:c,PsCountrySelect:d,ViewSelect:u}},p=Object(i["a"])({},m),f=p,h=a("2877"),g=Object(h["a"])(f,o,n,!1,null,null,null);t["default"]=g.exports},"16f2":function(e,t,a){"use strict";a.r(t);var o=function(){var e=this,t=e._self._c;return t("span",[t("AdvanceTable",{attrs:{columns:e.Columns,"data-source":e.list,rowKey:"good_id"},scopedSlots:e._u([{key:"title",fn:function(){return[t("div")]},proxy:!0},{key:"image",fn:function(e){e.text;var a=e.record;return t("span",{},[t("img",{staticStyle:{width:"100px",height:"100px"},attrs:{src:a.image_url}})])}}])})],1)},n=[],i=a("5530"),r=a("c7eb"),s=a("1da1"),l=(a("d3b7"),a("3ca3"),a("ddb0"),a("d81d"),a("aabf")),c=a("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(e,t){e!==t&&this.getGoodsList()}},created:function(){this.getGoodsList()},methods:{getGoodsList:function(){var e=this;return Object(s["a"])(Object(r["a"])().mark((function t(){return Object(r["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return e.list=[],t.next=3,Promise.all(e.goodsIds.map(function(){var t=Object(s["a"])(Object(r["a"])().mark((function t(a,o){var n,i;return Object(r["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return n={good_id:a},t.next=3,Object(l["l"])(n);case 3:i=t.sent,e.list.push(i);case 5:case"end":return t.stop()}}),t)})));return function(e,a){return t.apply(this,arguments)}}()));case 3:return e._.size(e.list),e.$emit("back",e.list),e.$emit("update:goodsList",e.list),t.abrupt("return",e.list);case 7:case"end":return t.stop()}}),t)})))()}},components:{AdvanceTable:c["default"]}},u=Object(i["a"])({},d),m=u,p=a("2877"),f=Object(p["a"])(m,o,n,!1,null,null,null);t["default"]=f.exports},"1a13":function(e,t,a){"use strict";a.r(t);a("7db0"),a("d3b7");var o=function(){var e=this,t=e._self._c;return t("span",[e.disabled?e.disabled?t("div",{staticStyle:{height:"31px","line-height":"31px"}},[e._v(" "+e._s(e.optionsList.find((function(t){return t.value===e.workType})).label)+" ")]):e._e():t("a-select",{attrs:{disabled:e.disabled},on:{change:e.handleChange},model:{value:e.workType,callback:function(t){e.workType=t},expression:"workType"}},e._l(e.optionsList,(function(a){return t("a-select-option",{key:a.value,attrs:{value:a.value}},[e._v(" "+e._s(a.label)+" ")])})),1)],1)},n=[],i=(a("a9e3"),a("1b6c")),r={name:"WorkType",data:function(){return{optionsList:[{label:Object(i["b"])("components.complaint.workType.all"),value:0},{label:Object(i["b"])("components.complaint.workType.consult"),value:1},{label:Object(i["b"])("components.complaint.workType.purchase"),value:2},{label:Object(i["b"])("components.complaint.workType.supply"),value:3}],workType:0}},props:{value:{type:Number,default:1},disabled:{type:Boolean,default:!1},isAll:{type:Boolean,default:!1}},watch:{value:function(e){e!==this.workType&&(this.workType=e)}},created:function(){this.isAll&&this.optionsList.unshift({label:Object(i["b"])("components.complaint.faqType.all"),value:0}),this.workType=this.value},methods:{handleChange:function(e){this.$emit("update:value",e),this.$emit("change",e)}}},s=r,l=a("2877"),c=Object(l["a"])(s,o,n,!1,null,null,null);t["default"]=c.exports},"1fc7":function(e,t,a){"use strict";a.r(t);var o=a("c0c3"),n=a("2dd7");t["default"]={name:"CreateForm",props:{typeOptions:{type:Array,required:!0}},components:{AntModal:n["default"]},data:function(){return{loading:!1,formTitle:"",form:{id:void 0,configName:void 0,configKey:void 0,configValue:void 0,configType:"Y",remark:void 0},open:!1,rules:{configName:[{required:!0,message:"参数名称不能为空",trigger:"blur"}],configKey:[{required:!0,message:"参数编码不能为空",trigger:"blur"},{validator:this.checkConfigKeyUnique}],configValue:[{required:!0,message:"参数值不能为空",trigger:"blur"}]}}},filters:{},created:function(){},computed:{},watch:{},methods:{cancel:function(){this.open=!1,this.$emit("close")},reset:function(){void 0!==this.$refs.form&&this.$refs.form.resetFields()},handleAdd:function(){this.open=!0,this.formTitle="添加参数"},handleUpdate:function(e,t){var a=this,n=e?e.id:t;Object(o["e"])(n).then((function(e){a.form=e.data,a.open=!0,a.formTitle="修改参数"}))},submitForm:function(){var e=this;this.$refs.form.validate((function(t){if(!t)return!1;void 0!==e.form.id?Object(o["i"])(e.form).then((function(t){e.$message.success("修改成功",3),e.open=!1,e.$emit("ok")})):Object(o["i"])(e.form).then((function(t){e.$message.success("新增成功",3),e.open=!1,e.$emit("ok")}))}))},checkConfigKeyUnique:function(e,t,a){var n="参数编码已存在";if(""===t)a();else{var i={configKey:t,id:void 0!==this.form.id?this.form.id:""};Object(o["a"])(i).then((function(e){"1"===e.data.code?a():a(n)}))}}}}},"23bd":function(e,t,a){},"270e":function(e,t,a){"use strict";a.r(t);a("b0c0");var o=function(){var e=this,t=e._self._c;return t("div",["rakuten"!==e.platform?t("div",["tiktok"==e.platform?t("a-form-model-item",{attrs:{"has-feedback":"",label:e.$t("view.order.list.please_select_delivery"),prop:"please_select_delivery"}},[t("a-select",{attrs:{placeholder:e.$t("view.order.list.please_select_delivery")},on:{change:e.selectShippingProviders},model:{value:e.form.delivery_option_id,callback:function(t){e.$set(e.form,"delivery_option_id",t)},expression:"form.delivery_option_id"}},e._l(e.shops_delivery,(function(a,o){return t("a-select-option",{key:o,attrs:{value:a.id}},[e._v(" "+e._s(a.name)+" - "+e._s(a.type)+" ")])})),1)],1):e._e(),"tiktok"==e.platform?t("a-form-model-item",{attrs:{"has-feedback":"",label:e.$t("view.order.list.please_select_delivery_option"),prop:"please_select_delivery_option"}},[t("a-select",{attrs:{placeholder:e.$t("view.order.list.please_select_delivery_option")},on:{change:e.selectShopsDeliveryOption}},e._l(e.shops_delivery_option,(function(a,o){return t("a-select-option",{key:o,attrs:{value:a.id}},[e._v(" "+e._s(a.id)+" - "+e._s(a.name)+" ")])})),1)],1):e._e(),"tiktok"!=e.platform?t("a-form-model-item",{attrs:{"has-feedback":"",label:e.$t("view.order.list.ship.list.logistics_company"),prop:"logistics_name"}},["netsea"!=e.platform&&"yahoo"!=e.platform?t("a-select",{staticStyle:{width:"100%"},attrs:{"show-search":""},on:{change:e.handleChange},model:{value:e.form.logistics_name,callback:function(t){e.$set(e.form,"logistics_name",t)},expression:"form.logistics_name"}},e._l(e.options,(function(a,o){return t("a-select-opt-group",{key:o},[t("span",{attrs:{slot:"label"},slot:"label"},[t("a-icon",{attrs:{type:"user"}}),e._v(e._s(a.key))],1),e._l(a.option,(function(a,o){return t("a-select-option",{key:o,attrs:{value:a.key}},[e._v(" "+e._s(a.value)+" ")])}))],2)})),1):e._e(),"yahoo"==e.platform?t("a-select",{staticStyle:{width:"100%"},on:{change:e.handleChange},model:{value:e.form.logistics_name,callback:function(t){e.$set(e.form,"logistics_name",t)},expression:"form.logistics_name"}},e._l(e.rakutenDeliveryCompany,(function(a,o){return"yahoo"==e.platform&&"1028"!=a.value?t("a-select-option",{key:o,attrs:{value:a.value}},[e._v(" "+e._s(a.name)+" ")]):e._e()})),1):e._e(),"netsea"==e.platform?t("a-select",{staticStyle:{width:"100%"},on:{change:e.handleChange},model:{value:e.form.logistics_name,callback:function(t){e.$set(e.form,"logistics_name",t)},expression:"form.logistics_name"}},e._l(e.netseaDeliveryCompany,(function(a,o){return t("a-select-option",{key:o,attrs:{value:a.value}},[e._v(" "+e._s(a.name)+" ")])})),1):e._e()],1):e._e(),t("a-form-model-item",{attrs:{"has-feedback":"",label:e.$t("view.order.list.ship.list.logistics_number"),prop:"shipment_id"}},[t("a-input",{attrs:{placeholder:e.$t("view.order.list.ship.list.input.logistics_number")},model:{value:e.form.shipment_id,callback:function(t){e.$set(e.form,"shipment_id",t)},expression:"form.shipment_id"}})],1)],1):e._e(),"rakuten"===e.platform?t("div",[e.isEdit?t("a-form-model",e._b({ref:"form",attrs:{model:e.form,rules:e.rules}},"a-form-model",e.itemLayout,!1),[t("a-form-model-item",{attrs:{"has-feedback":"",prop:"ship_units"}},[t("a-row",{staticClass:"ant-upload-list ant-upload-list-picture-card"},[t("table",{staticClass:"qgg-table"},[t("thead",[t("tr",[t("th",[e._v(e._s(e.$t("view.order.list.rakuten.basket_id")))]),t("th",[e._v(e._s(e.$t("table.mall_goods")))])])]),t("tbody",e._l(e.rakutenSdataSkuList,(function(a,o){return e.rakutenSdataSkuList?t("tr",{key:o},[t("td",[e._v(" "+e._s(a.basketId)+" "),t("table",{staticClass:"qgg-table"},[t("tbody",[t("tr",[t("td",{staticStyle:{width:"100px"}},[e._v(e._s(e.$t("view.order.detail.shipping_corp")))]),t("td",{staticStyle:{"text-align":"left"}},[t("a-select",{staticStyle:{width:"200px"},on:{change:e.selectRakutenDeliveryCompanyName},model:{value:a.delivery_company,callback:function(t){e.$set(a,"delivery_company",t)},expression:"item.delivery_company"}},e._l(e.rakutenDeliveryCompany,(function(a,o){return t("a-select-option",{key:o,attrs:{value:a.value}},[e._v(e._s(a.name))])})),1)],1)]),t("tr",[t("td",{staticStyle:{width:"100px"}},[e._v(e._s(e.$t("view.order.detail.shipping_code")))]),t("td",{staticStyle:{"text-align":"left"}},[t("a-input",{staticStyle:{width:"200px"},on:{change:e.inputRakutenDeliveryCompanyCode},model:{value:a.shipping_number,callback:function(t){e.$set(a,"shipping_number",t)},expression:"item.shipping_number"}})],1)])])])]),t("td",e._l(a.item,(function(o,n){return a.item?t("a-row",{key:n},[t("a-col",{staticStyle:{"text-align":"left"}},[e._v(e._s(o.title))]),t("a-col",{staticStyle:{"text-align":"left","margin-top":"5px"}},[e._v(e._s(o.sku_prop)+" X "+e._s(o.shipping_num))])],1):e._e()})),1)]):e._e()})),0)])])],1)],1):e._e()],1):e._e()])},n=[],i=(a("a9e3"),a("d3b7"),a("159b"),a("7db0"),a("296e")),r=a("1b6c"),s=a("3a10"),l={data:function(){return{rakutenSdataSkuList:[],itemLayout:{labelCol:{lg:2},wrapperCol:{lg:18}},rules:{logistics_name:[{required:!0,trigger:"change"}],shipment_id:[{required:!0,trigger:"change"}]},shops_delivery:[],shops_delivery_option:[],rakutenDeliveryCompany:[{name:"その他",value:"1000"},{name:"ヤマト運輸",value:"1001"},{name:"佐川急便",value:"1002"},{name:"日本郵便",value:"1003"},{name:"西濃運輸",value:"1004"},{name:"セイノースーパーエクスプレス",value:"1005"},{name:"福山通運",value:"1006"},{name:"名鉄運輸",value:"1007"},{name:"トナミ運輸",value:"1008"},{name:"第一貨物",value:"1009"},{name:"新潟運輸",value:"1010"},{name:"中越運送",value:"1011"},{name:"岡山県貨物運送",value:"1012"},{name:"久留米運送",value:"1013"},{name:"山陽自動車運送",value:"1014"},{name:"NXトランスポート",value:"1015"},{name:"エコ配",value:"1016"},{name:"EMS",value:"1017"},{name:"DHL",value:"1018"},{name:"FedEx",value:"1019"},{name:"UPS",value:"1020"},{name:"日本通運",value:"1021"},{name:"TNT",value:"1022"},{name:"OCS",value:"1023"},{name:"USPS",value:"1024"},{name:"SFエクスプレス",value:"1025"},{name:"Aramex",value:"1026"},{name:"SGHグローバル・ジャパン",value:"1027"},{name:"Rakuten EXPRESS",value:"1028"}],netseaDeliveryCompany:[{name:"ヤマト運輸",value:"YA"},{name:"佐川急便",value:"SA"},{name:"日本郵便",value:"NY"},{name:"西濃運輸",value:"SE"},{name:"福山通運",value:"FU"},{name:"名鉄運輸",value:"ME"},{name:"トナミ運輸",value:"TO"},{name:"第一貨物",value:"DA"},{name:"その他",value:"OT"},{name:"日本通運",value:"NT"}]}},props:{form:{type:Object,default:function(){return{shipment_id:"",logistics_name:""}}},options:{type:Array,default:function(){return[{key:Object(r["b"])("view.express.foreign_express1"),label:"GJWL",option:[{key:"SFGJ",value:"顺丰国际"},{key:"DHWL",value:"ヤマト運輸"},{key:"ZCJB",value:"佐川急便"},{key:"RBYZ",value:"日本郵便"}]},{key:Object(r["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 e,t,a;switch(this.platform){case"tiktok":"string"===typeof this.order.sdata&&""!==this.order.sdata&&(this.order.sdata=JSON.parse(this.order.sdata)),(null===(e=this.order.sdata)||void 0===e||null===(t=e.packages)||void 0===t?void 0:t.length)>0&&(this.order.package_id=this.order.sdata.packages[0].id),null!==(a=this.order.sdata)&&void 0!==a&&a.warehouse_id&&(this.order.warehouse_id=this.order.sdata.warehouse_id),this.shopSelect(this.order.from_shop_id);break;case"rakuten":var o=JSON.parse(this.order.sdata),n=[];o.PackageModelList.forEach((function(e){var t={};t.basketId=e.basketId,t.item=[],e.ItemModelList.forEach((function(e){if(e.SkuModelList.length)var a=e.SkuModelList[0].variantId;t.item.push({title:e.itemName,sku_prop:a,price:e.price,shipping_num:e.units,delivery_company:"",Shipping_number:""})})),n.push(t)})),this.rakutenSdataSkuList=n;break}this.getOption()},methods:{getOption:function(){var e=this,t={};Object(s["i"])({page:1,limit:150}).then((function(a){for(var o=a.list,n=0;n<o.length;n++){var i=o[n],r=i.foreign_express;t[r]||(t[r]=[]),t[r].push({key:i.logistics_code,value:i.logistics_name})}return e.options[0].option=t[2],e.options[1].option=t[1],e.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 e=[];this.rakutenSdataSkuList.forEach((function(t){var a={basketId:"",ShippingModelList:[]};a.basketId=t.basketId,a.ShippingModelList.push({deliveryCompany:t.delivery_company,shippingNumber:t.shipping_number}),e.push(a)}));var t={};t.orderNumber=this.order.order_id,t.BasketidModelList=e,this.form.logistics_name=this.form.tracking_name,this.form.body=t;break}this.$emit("update:form",this.form)},handleChange:function(e){this.form.logistics_name=e},shopSelect:function(e){var t=this;t.form.shops=[];var a={};a.tiktok_shop_id=e,Object(i["d"])(a).then((function(e){0===e.code&&(t.form.shop_cipher=e.shop_cipher,"US"===e.shop_region&&(t.isUs=!0),t.selectDelivery())}))},selectDelivery:function(){var e=this;e.shops_delivery=[],Object(i["g"])({ware_house_id:this.order.warehouse_id,shop_cipher:e.form.shop_cipher}).then((function(t){var a,o;0===t.code&&((null===(a=t.data)||void 0===a||null===(o=a.delivery_options)||void 0===o?void 0:o.length)>0&&(e.shops_delivery=t.data.delivery_options))}))},selectShippingProviders:function(){var e=this;e.shops_delivery_option=[],Object(i["A"])({delivery_option_id:e.form.delivery_option_id,shop_cipher:e.form.shop_cipher}).then((function(t){var a,o;0===t.code&&((null===(a=t.data)||void 0===a||null===(o=a.shipping_providers)||void 0===o?void 0:o.length)>0&&(e.shops_delivery_option=t.data.shipping_providers))}))},selectShopsDeliveryOption:function(e,t){var a=this.shops_delivery_option.find((function(t){return t.id===e}));this.form.shipping_providers_id=a.id,this.form.tracking_name=a.name},selectRakutenDeliveryCompanyName:function(e){var t=this.rakutenDeliveryCompany.find((function(t){return t.value===e}));t&&(this.form.tracking_name=t.name)},inputRakutenDeliveryCompanyCode:function(e){this.form.shipment_id=e.target._value}}},c=l,d=(a("5d54"),a("2877")),u=Object(d["a"])(c,o,n,!1,null,null,null);t["default"]=u.exports},2855:function(e,t,a){"use strict";a.r(t);var o=function(){var e=this,t=e._self._c;return t("a-result",{attrs:{title:"该功能尚未开发!"},scopedSlots:e._u([{key:"icon",fn:function(){return[t("a-icon",{attrs:{type:"smile",theme:"twoTone"}})]},proxy:!0},{key:"extra",fn:function(){return[t("a-button",{attrs:{type:"primary"},on:{click:e.returnIndex}},[e._v(" 返回工作台 ")])]},proxy:!0}])})},n=[],i={name:"Build",components:{},data:function(){return{}},filters:{},created:function(){},computed:{},watch:{},mounted:function(){},methods:{returnIndex:function(){this.$router.push({path:"/index"})}}},r=i,s=a("2877"),l=Object(s["a"])(r,o,n,!1,null,null,null);t["default"]=l.exports},"3b1b":function(e,t,a){"use strict";a.r(t);a("b0c0");var o=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:12,type:"flex"}},["admin"==e.roles[0]?t("a-col",{attrs:{lg:7,xl:8,xxl:6}},[t("a-form-item",{attrs:{label:e.$t("view.order.list.shop.seller")}},[t("div",{staticStyle:{display:"flex","align-items":"center"}},[t("seller-list",{on:{changeuser:e.changeUser}})],1)])],1):e._e(),"admin"==e.roles[0]&&e.userId?t("a-col",{attrs:{lg:6,xl:6,xxl:6}},[t("a-form-item",{attrs:{label:e.$t("view.order.list.shop")}},[t("shop-select",{ref:"shopSelect",attrs:{userId:e.userId},on:{change:e.changeShop}})],1)],1):e._e(),e.userId?e._e():t("a-col",{attrs:{lg:11,xl:"admin"==e.roles[0]?6:8,xxl:"admin"==e.roles[0]?4:6}},[t("a-form-item",{attrs:{label:e.$t("view.order.detail.item"),labelCol:{md:8,sm:8,lg:10},wrapperCol:{md:16,sm:16,lg:14}}},[t("good-list",{staticStyle:{width:"100%"},attrs:{type:"radio"},on:{changeitem:e.changeItem}})],1)],1)],1),t("a-row",{attrs:{gutter:12,type:"flex"}},[t("a-col",{attrs:{lg:7,xl:8,xxl:6}},[t("a-form-item",{attrs:{label:e.$t("view.order.list.orderno")}},[t("a-input",{attrs:{placeholder:e.$t("view.order.list.inputorderno"),"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.orderId,callback:function(t){e.orderId=t},expression:"orderId"}})],1)],1),t("a-col",{attrs:{lg:6,xl:6,xxl:4,xs:24,md:12}},[t("a-form-item",{attrs:{label:e.$t("view.order.list.export.user_select_title")}},[t("member-list",{attrs:{shopId:e.checkedShopId},on:{changeMember:e.changeMember}})],1)],1),t("a-col",{attrs:{lg:11,xl:5,xxl:5,md:16}},[t("a-form-item",{attrs:{label:e.$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}}},[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:24,xxl: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("a-button",{staticStyle:{"margin-left":"8px"},on:{click:e.orderExport}},[t("a-icon"),e._v(e._s(e.$t("view.order.list.export.btn"))+" ")],1),t("syn-config",{attrs:{syn_idf:2}})],1)])],1),t("a-row",{attrs:{gutter:12,type:"flex"}},[t("a-col",{attrs:{lg:7,xl:7,xxl:6}},[t("a-form-item",{attrs:{label:e.$t("view.item.component.item.syn.syntype.title"),labelCol:{xl:10},wrapperCol:{xl:14}}},[t("platform",{attrs:{syntype:e.from_id,viewPlatform:2},on:{"update:syntype":function(t){e.from_id=t},selectPlatForm:e.changePlatForm}})],1)],1),e.platFormShops.length?t("a-col",{attrs:{lg:7,xl:6,xxl:4}},[t("a-form-item",{attrs:{label:e.$t("components.dyProduct.dyProduct.oauth.shopname")}},[t("a-select",{staticStyle:{width:"255px"},attrs:{allowClear:!0,placeholder:e.$t("components.dyProduct.dyProduct.shopname.placeholder")},model:{value:e.from_shop_id,callback:function(t){e.from_shop_id=t},expression:"from_shop_id"}},e._l(e.platFormShops,(function(a,o){return t("a-select-option",{key:o,attrs:{value:a.value}},[e._v(e._s(a.name))])})),1)],1)],1):e._e()],1)],1)],1)]),t("div",[t("view-select",{staticStyle:{display:"none"},on:{change:e.backViewId}}),e.showReviewModal?t("review-list",{ref:"ReviewList",on:{close:function(t){e.showReviewModal=!1}}}):e._e(),e.orderDetailModal?t("order-detail",{ref:"OrderDetail",attrs:{modalHeight:.8*e.windowHeight+""},on:{close:function(t){e.orderDetailModal=!1}}}):e._e(),e.showFaHuoModal?t("review-list1",{ref:"ReviewList1",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.showHandlePayModal?t("handle-pay-list",{ref:"HandlePayList",on:{ok:e.getList,close:function(t){e.showHandlePayModal=!1}}}):e._e(),e.showCaiGouModal?t("caigou",{ref:"pushCaiGou",on:{ok:e.getList,close:function(t){e.showCaiGouModal=!1}}}):e._e(),t("stockAdd",{ref:"stockAdd"})],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","row-selection":{selectedRowKeys:e.selectedRowKeys,onChange:e.onSelectChange},"format-conditions":!1,columns:e.columns,"data-source":e.list,rowKey:"order_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:" "},scopedSlots:e._u([{key:"order_id",fn:function(a){var o=a.text,n=a.record;return t("span",{},[n.from_id?t("div",[e.shouldDisplayTag(n)?t("a-tag",{attrs:{color:"#f50"}},[e._v(" "+e._s(e.showTag(n))+" ")]):e._e()],1):e._e(),t("a",{on:{click:function(t){return e.handleOrderDetail(n)}}},[e._v(" "+e._s(o)+" ")]),t("div",[e._v(e._s(n.create_time))]),t("a",{attrs:{type:"primary"},on:{click:function(t){return e.orderPrint(n)}}},[e._v(e._s(e.$t("view.order.detail.print.btn")))]),t("br"),"admin"==e.roles[0]&&1!==n.shop_id?t("div",[t("supply-info",{attrs:{shopId:n.shop_id}})],1):e._e(),t("dispath-note",{staticStyle:{display:"none"},attrs:{order:n}})],1)}},{key:"order_item",fn:function(a){var o=a.text,n=a.record;return t("span",{},e._l(o,(function(a,i){return t("div",{key:a.sku_id,staticStyle:{display:"flex","margin-bottom":"10px"}},[t("div",[t("a-avatar",{attrs:{shape:"square",size:85,src:a.img_url},on:{click:function(t){return e.openItem(a)}}}),1==e.shopId?t("div",{staticStyle:{"margin-top":"0.5rem"}},[t("a-tag",{attrs:{color:2==a.mailing_mode?"red":"green"}},[1===e.shopId?t("div",[2==a.mailing_mode?t("div",[e._v(" "+e._s(e.$t("view.item.component.item.supply.shippingConfig.myself"))+" ")]):e._e(),1==a.mailing_mode?t("div",[e._v(" "+e._s(e.$t("view.item.component.item.supply.shippingConfig.platform"))+" ")]):e._e(),0==a.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.mailing_mode?t("div",[e._v(" "+e._s(e.$t("view.item.component.item.supply.shippingConfig.myself1"))+" ")]):e._e(),1==a.mailing_mode?t("div",[e._v(" "+e._s(e.$t("view.item.component.item.supply.shippingConfig.platform1"))+" ")]):e._e(),0==a.mailing_mode?t("div",[e._v(" "+e._s(e.$t("view.item.component.item.supply.shippingConfig.platform1"))+" ")]):e._e()]):e._e()])],1):e._e()],1),t("div",{staticStyle:{"margin-left":"10px",flex:"1"}},[t("a-row",{attrs:{type:"flex"}},[t("a-col",{attrs:{flex:3}},[t("a",{on:{click:function(t){return e.openItem(a)}}},[e._v(" "+e._s(a.title)+" ")])])],1),t("a-row",{attrs:{type:"flex"}},[t("a-col",[e._v(" "+e._s(n.currency)+" "+e._s(a.price)+" ")]),t("a-col",{staticStyle:{"padding-left":"5px"}},[t("a-icon",{staticStyle:{"font-size":"10px","margin-right":"0","padding-right":"0"},attrs:{type:"close"}}),e._v(" "+e._s(a.num)+" ")],1),t("a-col",{staticStyle:{"padding-left":"5px"}},[a.activity_info&&a.activity_info.wholesaleprice_id>0?t("a-tooltip",[t("template",{slot:"title"},[e._v(" "+e._s(1===e.wholesalePriceData.type?e.$t("view.order.list.discount",{start:e.wholesalePriceData.start_num,end:e.wholesalePriceData.end_num,discount:e.wholesalePriceData.price}):e.$t("view.order.list.price",{start:e.wholesalePriceData.start_num,end:e.wholesalePriceData.end_num,price:e.shopQuoteCurrency+e.wholesalePriceData.price}))+" ")]),t("a-tag",{attrs:{color:"#2db7f5"},on:{mouseover:function(t){return e.getOrderItemWholesalePrice(a.activity_info.wholesaleprice_id)}}},[e._v(" "+e._s(e.$t("view.item.wholesale.form.new_price"))+" ")])],2):e._e()],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,o){return t("div",{key:o},[t("span",[e._v(e._s(o)+":"+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"))+" : "),t("a",{on:{click:function(t){return e.handleStockAdd(a)}}},[e._v(" "+e._s(a.out_id))])]),a.stock_log?t("a-col",{attrs:{flex:3}},[t("div",[e._v(" "+e._s(e.$t("view.order.target.wareHouse"))+" : "),t("wareHouseInfo",{attrs:{isTag:!0,warehouseId:a.stock_log.warehouse_id}}),"ORDER_WAIT_SHIP"===n.status?t("span",[e._v("-")]):e._e(),"ORDER_WAIT_SHIP"===n.status?t("orderSwitchWareHouse",{attrs:{skuId:a.sku_id,orderId:n.order_id},on:{ok:e.getList}}):e._e()],1)]):e._e(),a.stock_log?t("a-col",{attrs:{flex:3}},[t("div",[t("webHookInfo",{attrs:{orderId:n.order_id,orderStatus:n.status,wareHouseId:a.stock_log.warehouse_id}})],1)]):e._e()],1),i<o.length-1?t("a-divider"):e._e()],1)])})),0)}},{key:"payment",fn:function(a){var o=a.text,n=a.record;return t("span",{},[""===n.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(o)+" ")]),t("a-col",{attrs:{lg:24}},[e._v(" "+e._s(e.$t("view.order.list.payhuobiprice"))+" : "+e._s(n.trans_currency)+" "+e._s(n.trans_amount)+" ")])],1):e._e(),""!==n.from_id?t("a-row",[t("a-col",{attrs:{lg:24}},[e._v(" "+e._s(n.currency)+" "+e._s(o)+" ")])],1):e._e()],1)}},{key:"status",fn:function(a){var o=a.text;return t("span",{},[t("div",[e._v(" "+e._s(e.$t(o))+" ")])])}},{key:"paymemberInfo",fn:function(a){var o=a.record;return t("span",{},[t("a-row",[o?t("a-col",{attrs:{lg:24}},[e._v(" "+e._s(e.$t("view.gangwei.list.realname"))+" : "+e._s(o.last_name||"")+" "+e._s(o.first_name||"")+" "),!o.member_id||"purchase"!=o.from_id&&"handlePay"!=o.from_id&&""!=o.from_id?e._e():t("message",{staticStyle:{display:"inline-block","margin-left":"5px"},attrs:{memberId:o.member_id}})],1):e._e(),o.phone&&""!=o.phone?t("a-col",{attrs:{lg:24}},[e._v(" "+e._s(e.$t("view.order.detail.ship_phone"))+" : "+e._s(o.phone)+" ")]):e._e(),t("a-col",{attrs:{lg:24}},[e._v(" "+e._s(e.$t("view.order.detail.ship_country"))+" : "+e._s(e.$t(o.country))+" ")]),t("a-col",{attrs:{lg:24}},[e._v(" "+e._s(e.$t("view.order.detail.ship_state"))+" : "+e._s(o.state)+" ")]),o.city?t("a-col",{attrs:{lg:24}},[e._v(" "+e._s(e.$t("view.order.detail.ship_city"))+" : "+e._s(o.city)+" ")]):e._e(),o.street?t("a-col",{attrs:{lg:24}},[e._v(" "+e._s(e.$t("view.order.detail.ship_street"))+" : "+e._s(o.street)+" ")]):e._e(),o.apartment?t("a-col",{attrs:{lg:24}},[e._v(" "+e._s(e.$t("view.order.detail.ship_men"))+" : "+e._s(o.apartment)+" ")]):e._e(),o.zip_code?t("a-col",{attrs:{lg:24}},[e._v(" "+e._s(e.$t("view.order.detail.zipcode"))+" : "+e._s(o.zip_code)+" ")]):e._e(),t("a-col",{attrs:{lg:24}},[e._v(" "+e._s(e.$t("view.order.detail.memberNote"))+" : "+e._s(o.member_note)+" ")]),t("a-col",{attrs:{lg:24}},[t("a-button",{directives:[{name:"show",rawName:"v-show",value:"ORDER_WAIT_SHIP"===o.status,expression:"record.status === 'ORDER_WAIT_SHIP'"}],attrs:{type:"primary"},on:{click:function(t){return e.handleModifyShipping(o)}}},[e._v(" "+e._s(e.$t("view.system.resourcegroup.Update"))+" ")])],1)],1)],1)}},{key:"operation",fn:function(a){var o=a.record;return t("span",{},[t("a",{on:{click:function(t){return e.handleReview(o)}}},[e._v(" "+e._s(e.$t("view.order.list.review.btn"))+" ")]),t("span",[t("a-divider",{attrs:{type:"vertical"}}),t("a",{on:{click:function(t){return e.handleInsure(o)}}},[e._v(" "+e._s(e.$t("view.order.list.insure.btn"))+" ")])],1),t("span",{directives:[{name:"show",rawName:"v-show",value:"ORDER_WAIT_PAYMENT"===o.status||"ORDER_PART_PAID"===o.status,expression:"record.status === 'ORDER_WAIT_PAYMENT' || record.status === 'ORDER_PART_PAID'"}]},[t("a-divider",{attrs:{type:"vertical"}}),t("a",{on:{click:function(t){return e.handlePay(o,!1)}}},[e._v(" "+e._s(e.$t("view.order.list.manual_pay"))+" ")])],1),t("span",{directives:[{name:"show",rawName:"v-show",value:"ORDER_WAIT_PAYMENT"===o.status||"ORDER_PART_PAID"===o.status,expression:"record.status === 'ORDER_WAIT_PAYMENT' || record.status === 'ORDER_PART_PAID'"}]},[t("a-divider",{attrs:{type:"vertical"}}),t("a",{on:{click:function(t){return e.handleCloseOrder(o,!1)}}},[e._v(" "+e._s(e.$t("view.order.list.closeOrder"))+" ")])],1),t("span",{directives:[{name:"show",rawName:"v-show",value:"ORDER_WAIT_PAYMENT"!==o.status&&"ORDER_PART_PAID"!==o.status&&"handlePay"===o.from_id,expression:"\n record.status !== 'ORDER_WAIT_PAYMENT' &&\n record.status !== 'ORDER_PART_PAID' &&\n record.from_id === 'handlePay'\n "}]},[t("a-divider",{attrs:{type:"vertical"}}),t("a",{on:{click:function(t){return e.handlePay(o,!0)}}},[e._v(" "+e._s(e.$t("view.order.list.manual_pay"))+" ")])],1),t("span",{directives:[{name:"show",rawName:"v-show",value:"ORDER_WAIT_SHIP"===o.status,expression:"record.status === 'ORDER_WAIT_SHIP'"}]},[t("a-divider",{attrs:{type:"vertical"}}),t("a",{on:{click:function(t){return e.handleFaHuo(o)}}},[e._v(" "+e._s(e.$t("view.order.list.ship.btn"))+" ")])],1),t("span",{directives:[{name:"show",rawName:"v-show",value:"ORDER_AFTER_SALE"===o.status,expression:"record.status === 'ORDER_AFTER_SALE'"}]},[t("a-divider",{attrs:{type:"vertical"}}),t("a",{on:{click:function(t){return e.handleCancelAfterSales(o)}}},[e._v(" "+e._s(e.$t("view.order.list.aftersale.cancel.btn"))+" ")])],1),t("span",{directives:[{name:"show",rawName:"v-show",value:"ORDER_WAIT_SHIP"===o.status,expression:"record.status === 'ORDER_WAIT_SHIP'"}]},[t("a-divider",{attrs:{type:"vertical"}}),t("a-popover",{attrs:{title:e.$t("view.order.list.reset.push.log.title"),trigger:"click",placement:"bottom"}},[t("template",{slot:"content"},[t("a-table",{attrs:{columns:e.logListTitle,"data-source":e.logData,pagination:{pageSize:3}}},[t("span",{attrs:{slot:"action"},slot:"action"},[t("a-button",{attrs:{type:"primary"},on:{click:function(t){return e.orderPush(o)}}},[e._v(" "+e._s(e.$t("view.order.list.reset.push.log.action.btn"))+" ")])],1)])],1),t("a",{attrs:{type:"primary"},on:{click:function(t){return e.orderPushLog(o)}}},[e._v(e._s(e.$t("view.order.list.reset.push.log")))])],2)],1),t("span",[t("a-divider",{attrs:{type:"vertical"}}),t("a",{on:{click:function(t){return e.pushCaiGou(o)}}},[e._v(e._s(e.$t("component.procure.create.button1")))])],1),t("div",[t("div",{attrs:{title:"订单备注"}},[o.user_note?t("a-tag",{staticStyle:{width:"80%"},attrs:{color:"orange"}},[e._v(e._s(o.user_note))]):e._e()],1),t("order-note",{attrs:{orderId:o.order_id,note:o.user_note},on:{ok:function(t){return e.getList()}}})],1)])}}])},[t("div",{staticClass:"table-operations",attrs:{slot:"button"},slot:"button"},[t("ordersShips",{attrs:{orders:e.selectedRows||[]},on:{ok:e.okShips}})],1)])],1)],1)},n=[],i=a("5530"),r=a("6958"),s=Object(i["a"])({},r["default"]),l=s,c=(a("cd270"),a("2877")),d=Object(c["a"])(l,o,n,!1,null,null,null);t["default"]=d.exports},"4a49":function(e,t,a){"use strict";a.r(t);var o=function(){var e=this,t=e._self._c;return t("a-spin",{attrs:{spinning:e.loading,tip:"加载中..."}},[t("div",{style:"height:"+e.height},[t("iframe",{staticStyle:{width:"100%",height:"100%"},attrs:{src:e.src,frameborder:"no",scrolling:"auto"}})])])},n=[],i={name:"Swagger",components:{},data:function(){return{src:"/admin/swagger-ui.html",height:document.documentElement.clientHeight-120+"px;",loading:!0}},filters:{},created:function(){},computed:{},watch:{},mounted:function(){var e=this;setTimeout((function(){e.loading=!1}),230);var t=this;window.onresize=function(){t.height=document.documentElement.clientHeight-94.5+"px;"}},methods:{}},r=i,s=a("2877"),l=Object(s["a"])(r,o,n,!1,null,null,null);t["default"]=l.exports},5194:function(e,t,a){"use strict";a.r(t);var o=function(){var e=this,t=e._self._c;return t("a-spin",{attrs:{spinning:e.loading,tip:"加载中..."}},[t("div",{style:"height:"+e.height},[t("iframe",{staticStyle:{width:"100%",height:"100%"},attrs:{src:e.src,frameborder:"no",scrolling:"auto"}})])])},n=[],i={name:"Druid",components:{},data:function(){return{src:"/admin/druid/login.html",height:document.documentElement.clientHeight-124.5+"px;",loading:!0}},filters:{},created:function(){},computed:{},watch:{},mounted:function(){var e=this;setTimeout((function(){e.loading=!1}),230);var t=this;window.onresize=function(){t.height=document.documentElement.clientHeight-94.5+"px;"}},methods:{}},r=i,s=a("2877"),l=Object(s["a"])(r,o,n,!1,null,null,null);t["default"]=l.exports},5703:function(e,t,a){"use strict";a.r(t);var o=function(){var e=this,t=e._self._c;return t("a-drawer",{attrs:{width:"45%",title:e.formTitle,"label-col":4,"wrapper-col":14,visible:e.open,"body-style":{height:"calc(100vh - 100px)",overflow:"auto"}},on:{close:e.cancel}},[t("a-form-model",{ref:"form",attrs:{model:e.form,rules:e.rules,layout:"vertical"}},[t("a-form-model-item",{attrs:{label:"参数编码",prop:"configKey"}},[t("a-input",{attrs:{placeholder:"请输入"},model:{value:e.form.configKey,callback:function(t){e.$set(e.form,"configKey",t)},expression:"form.configKey"}})],1),t("a-form-model-item",{attrs:{label:"参数名称",prop:"configName"}},[t("a-input",{attrs:{placeholder:"请输入"},model:{value:e.form.configName,callback:function(t){e.$set(e.form,"configName",t)},expression:"form.configName"}})],1),t("a-form-model-item",{attrs:{label:"参数值",prop:"configValue"}},[t("a-input",{attrs:{placeholder:"请输入"},model:{value:e.form.configValue,callback:function(t){e.$set(e.form,"configValue",t)},expression:"form.configValue"}})],1),t("a-form-model-item",{attrs:{label:"是否内置参数",prop:"configType"}},[t("a-radio-group",{attrs:{"button-style":"solid"},model:{value:e.form.configType,callback:function(t){e.$set(e.form,"configType",t)},expression:"form.configType"}},e._l(e.typeOptions,(function(a,o){return t("a-radio-button",{key:o,attrs:{value:a.dictValue}},[e._v(e._s(a.dictLabel))])})),1)],1),t("a-form-model-item",{attrs:{label:"备注",prop:"remark"}},[t("a-input",{attrs:{placeholder:"请输入备注",type:"textarea","allow-clear":""},model:{value:e.form.remark,callback:function(t){e.$set(e.form,"remark",t)},expression:"form.remark"}})],1),t("div",{staticClass:"bottom-control"},[t("a-space",[t("a-button",{attrs:{type:"primary"},on:{click:e.submitForm}},[e._v(" 保存 ")]),t("a-button",{on:{click:e.cancel}},[e._v(" 取消 ")])],1)],1)],1)],1)},n=[],i=a("5530"),r=a("1fc7"),s=Object(i["a"])({},r["default"]),l=s,c=a("2877"),d=Object(c["a"])(l,o,n,!1,null,null,null);t["default"]=d.exports},5881:function(e,t,a){"use strict";a.r(t);var o=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)},n=[],i={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}}},r=i,s=a("2877"),l=Object(s["a"])(r,o,n,!1,null,null,null);t["default"]=l.exports},"58f6":function(e,t,a){"use strict";a.r(t);var o=function(){var e=this,t=e._self._c;return t("a-select",{staticStyle:{width:"auto","min-width":"100px"},attrs:{value:e.value,disabled:e.disabled},on:{change:e.handleChange}},[t("a-select-option",{attrs:{value:1}},[e._v(e._s(e.$t("components.warehouseRule.warehouseMode.pricemin")))]),t("a-select-option",{attrs:{value:2}},[e._v(e._s(e.$t("components.warehouseRule.warehouseMode.time")))])],1)},n=[],i=(a("a9e3"),{name:"PriceCompareMethod",model:{prop:"value",event:"input"},props:{value:{type:Number,default:1},disabled:{type:Boolean,default:!1}},methods:{handleChange:function(e){this.$emit("input",e),this.$emit("change",e)}}}),r=i,s=a("2877"),l=Object(s["a"])(r,o,n,!1,null,"c2b8b322",null);t["default"]=l.exports},"5af5":function(e,t,a){"use strict";a.r(t);var o=function(){var e=this,t=e._self._c;return t("ant-modal",{attrs:{visible:e.open,"modal-title":e.formTitle,"adjust-size":!0,modalWidth:"640",modalHeight:"420"},on:{cancel:e.cancel}},[t("a-form-model",{ref:"form",attrs:{slot:"content",model:e.form,rules:e.rules,layout:"vertical"},slot:"content"},[t("a-row",{staticClass:"form-row",attrs:{gutter:32}},[t("a-col",{attrs:{lg:12,md:12,sm:24}},[t("a-form-model-item",{attrs:{label:"参数编码",prop:"configKey"}},[t("a-input",{attrs:{placeholder:"请输入"},model:{value:e.form.configKey,callback:function(t){e.$set(e.form,"configKey",t)},expression:"form.configKey"}})],1)],1),t("a-col",{attrs:{lg:12,md:12,sm:24}},[t("a-form-model-item",{attrs:{label:"参数名称",prop:"configName"}},[t("a-input",{attrs:{placeholder:"请输入"},model:{value:e.form.configName,callback:function(t){e.$set(e.form,"configName",t)},expression:"form.configName"}})],1)],1),t("a-col",{attrs:{lg:12,md:12,sm:24}},[t("a-form-model-item",{attrs:{label:"参数值",prop:"configValue"}},[t("a-input",{attrs:{placeholder:"请输入"},model:{value:e.form.configValue,callback:function(t){e.$set(e.form,"configValue",t)},expression:"form.configValue"}})],1)],1),t("a-col",{attrs:{lg:12,md:12,sm:24}},[t("a-form-model-item",{attrs:{label:"是否内置参数",prop:"configType"}},[t("a-radio-group",{attrs:{"button-style":"solid"},model:{value:e.form.configType,callback:function(t){e.$set(e.form,"configType",t)},expression:"form.configType"}},e._l(e.typeOptions,(function(a,o){return t("a-radio-button",{key:o,attrs:{value:a.dictValue}},[e._v(e._s(a.dictLabel))])})),1)],1)],1),t("a-col",{attrs:{lg:24,md:24,sm:24,span:24}},[t("a-form-model-item",{attrs:{label:"备注",prop:"remark"}},[t("a-input",{attrs:{placeholder:"请输入备注",type:"textarea","allow-clear":""},model:{value:e.form.remark,callback:function(t){e.$set(e.form,"remark",t)},expression:"form.remark"}})],1)],1)],1)],1),t("template",{slot:"footer"},[t("a-button",{on:{click:e.cancel}},[e._v(" 取消 ")]),t("a-button",{attrs:{type:"primary"},on:{click:e.submitForm}},[e._v(" 保存 ")])],1)],2)},n=[],i=a("5530"),r=a("1fc7"),s=Object(i["a"])({},r["default"]),l=s,c=a("2877"),d=Object(c["a"])(l,o,n,!1,null,null,null);t["default"]=d.exports},"5d54":function(e,t,a){"use strict";a("a32b")},"5f19":function(e,t,a){"use strict";a.r(t);var o=function(){var e=this,t=e._self._c;return t("span",[t("a-row",{attrs:{gutter:24}},[t("a-col",{attrs:{lg:3}},[e._v(e._s(e.$t("view.item.list.good_id")))]),t("a-col",{attrs:{lg:3}},[e._v(e._s(e.$t("view.item.list.itemImage")))]),t("a-col",{attrs:{lg:12}},[e._v(e._s(e.$t("view.item.list.itemTitle")))])],1),t("div",{staticStyle:{"margin-top":"2px",border:"1px solid #ccc",padding:"5px"}},[t("a-row",{attrs:{gutter:24}},[t("a-col",{attrs:{lg:3}},[e._v(e._s(e.goodInfo.good_id))]),t("a-col",{attrs:{lg:3}},[e.getGoodInfo()?t("div",[t("img",{staticStyle:{width:"80px",height:"80px"},attrs:{src:e.goodInfo.image_url}})]):e._e()]),t("a-col",{staticStyle:{"line-height":"40px"},attrs:{lg:12}},[e.getGoodInfo()?t("div",[e._v(e._s(e.goodInfo.title))]):e._e()])],1)],1)],1)},n=[],i=(a("7db0"),a("d3b7"),{name:"GoodsIdOne",props:{goodsList:{type:Array,default:function(){return[]}},goodsId:{type:String,default:""}},computed:{goodInfo:function(){var e,t=this;return null===(e=this.goodsList)||void 0===e?void 0:e.find((function(e){return e.good_id+""===t.goodsId+""}))}},methods:{getGoodInfo:function(){var e,t=this;return null===(e=this.goodsList)||void 0===e?void 0:e.find((function(e){return e.good_id+""===t.goodsId+""}))}}}),r=i,s=a("2877"),l=Object(s["a"])(r,o,n,!1,null,null,null);t["default"]=l.exports},"8b78":function(e,t,a){"use strict";a.r(t);a("99af");var o=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,o){return t("a-select-option",{key:o,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,o){return t("a-select-option",{key:o,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,o){return t("a-select-option",{key:o,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,o){return t("a-select-option",{key:o,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 o=a.text,n=a.record;return t("span",{},[t("a-tag",{attrs:{color:e._f("operMethodFilter")(o)}},[e._v(" "+e._s(e.methodFormat(n))+" ")])],1)}},{key:"module",fn:function(a){var o=a.text,n=a.record;return t("span",{},[t("a-tag",{attrs:{color:e._f("operModuleFilter")(o)}},[e._v(" "+e._s(e.moduleFormat(n))+" ")])],1)}},{key:"error_code",fn:function(a){var o=a.text,n=a.record;return t("span",{},[t("a-tag",{attrs:{color:e._f("operErrorCodeFilter")(o)}},[e._v(" "+e._s(e.errorCodeFormat(n))+" ")])],1)}},{key:"take_up_time",fn:function(a){var o=a.text,n=a.record;return t("span",{},[t("a-tag",{attrs:{color:e._f("operTakeTimeFilter")(o)}},[e._v(" "+e._s(e.takeTimeFormat(n))+" ")])],1)}},{key:"operation",fn:function(a){a.text;var o=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(o)}}},[t("a-icon",{attrs:{type:"eye",theme:"twoTone"}}),e._v("详细 ")],1)])}},{key:"member_name",fn:function(a){a.text;var o=a.record;return t("span",{},[t("span",[e._v(e._s(e.memberNameFormat(o)))])])}}])},[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)},n=[],i=(a("d81d"),a("b775"));function r(e){return Object(i["b"])({url:"/log/list",method:"get",params:e})}function s(e){return Object(i["b"])({url:"/monitor/operlog/"+e,method:"delete"})}function l(){return Object(i["b"])({url:"/log/clear",method:"post"})}var c=a("5881"),d=a("5d9e"),u=a("028d"),m={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,r(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 s(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(){}})}}},p=m,f=a("2877"),h=Object(f["a"])(p,o,n,!1,null,null,null);t["default"]=h.exports},"8cdb":function(e,t,a){"use strict";a.r(t);var o=function(){var e=this,t=e._self._c;return t("div")},n=[],i={name:"404"},r=i,s=a("2877"),l=Object(s["a"])(r,o,n,!1,null,"206078e4",null);t["default"]=l.exports},a32b:function(e,t,a){},c611:function(e,t,a){"use strict";a.r(t);a("99af");var o=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-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.configKey,callback:function(t){e.$set(e.queryParam,"configKey",t)},expression:"queryParam.configKey"}})],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.configName,callback:function(t){e.$set(e.queryParam,"configName",t)},expression:"queryParam.configName"}})],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.configType,callback:function(t){e.$set(e.queryParam,"configType",t)},expression:"queryParam.configType"}},e._l(e.typeOptions,(function(a,o){return t("a-select-option",{key:o,attrs:{value:a.dictValue}},[e._v(e._s(a.dictLabel))])})),1)],1)],1),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}},[e.showAddModal?t("config-add-form",{ref:"configAddForm",attrs:{typeOptions:e.typeOptions},on:{ok:e.getList,close:function(t){e.showAddModal=!1}}}):e._e(),e.showEditModal?t("config-edit-form",{ref:"configEditForm",attrs:{typeOptions:e.typeOptions},on:{ok:e.getList,close:function(t){e.showEditModal=!1}}}):e._e(),t("advance-table",{attrs:{columns:e.columns,"data-source":e.list,title:"系统参数",loading:e.loading,rowKey:"id",tableKey:"system-config-ConfigIndex-table",size:"middle","format-conditions":!0,"row-selection":{selectedRowKeys:e.selectedRowKeys,onChange:e.onSelectChange},pagination:{current:e.queryParam.pageNum,pageSize:e.queryParam.pageSize,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:"configType",fn:function(a){a.text;var o=a.record;return t("span",{},[e._v(" "+e._s(e.typeFormat(o))+" ")])}},{key:"operation",fn:function(a){a.text;var o=a.record;return t("span",{},[t("a",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["system:config:edit"],expression:"['system:config:edit']"}],on:{click:function(t){return e.handleUpdate(o)}}},[e._v(" 修改 ")]),t("a-divider",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["system:config:remove"],expression:"['system:config:remove']"}],attrs:{type:"vertical"}}),t("a",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["system:config:remove"],expression:"['system:config:remove']"}],on:{click:function(t){return e.handleDelete(o)}}},[e._v(" 删除 ")])],1)}}])},[t("div",{staticClass:"table-operations",attrs:{slot:"button"},slot:"button"},[t("a-button",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["system:config:add"],expression:"['system:config:add']"}],attrs:{type:"primary",size:"small"},on:{click:e.handleAdd}},[t("a-icon",{attrs:{type:"plus"}}),e._v("新增 ")],1),e.multiple?e._e():t("a-button",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["system:config:remove"],expression:"['system:config: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:["system:config:export"],expression:"['system:config:export']"}],on:{click:e.handleExport}},[t("a-icon",{attrs:{type:"download"}}),e._v("导出 ")],1),t("a-button",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["system:config:remove"],expression:"['system:config:remove']"}],on:{click:e.handleRefreshCache}},[t("a-icon",{attrs:{type:"redo"}}),e._v("刷新缓存 ")],1)],1)])],1)],1)},n=[],i=(a("d81d"),a("c0c3")),r=a("5703"),s=a("5af5"),l=a("5d9e"),c={name:"Config",components:{ConfigEditForm:r["default"],ConfigAddForm:s["default"],AdvanceTable:l["default"]},data:function(){return{showAddModal:!1,showEditModal:!1,list:[],selectedRowKeys:[],selectedRows:[],advanced:!1,single:!0,multiple:!0,ids:[],configNames:[],loading:!1,sunloading:!1,total:0,typeOptions:[],dateRange:[],labelCol:{span:10},wrapperCol:{span:14},queryParam:{pageNum:1,pageSize:10,configName:void 0,configKey:void 0,configType:void 0},addModalRefName:"addModal",columns:[{title:"参数编码",dataIndex:"configKey",ellipsis:SVGComponentTransferFunctionElement,sswidth:"30%"},{title:"参数名称",dataIndex:"configName",ellipsis:!0,width:"15%"},{title:"参数值",dataIndex:"configValue",ellipsis:!0,width:"15%"},{title:"是否内置参数",dataIndex:"configType",scopedSlots:{customRender:"configType"},align:"center",width:"10%"},{title:"备注",dataIndex:"remark",ellipsis:!0,width:"15%"},{title:"创建时间",dataIndex:"createTime",scopedSlots:{customRender:"createTime"},width:"15%"},{title:"操作",dataIndex:"operation",width:"10%",align:"center",scopedSlots:{customRender:"operation"}}]}},filters:{},created:function(){var e=this;this.getList(),this.getDicts("sys_yes_no").then((function(t){e.typeOptions=t.data}))},computed:{},watch:{},methods:{getList:function(){var e=this;this.showAddModal=!1,this.showEditModal=!1,this.loading=!0,Object(i["g"])(this.addDateRange(this.queryParam,this.dateRange)).then((function(t){e.list=t.data.list,e.list.map((function(e){e.operation=e.remark})),e.total=t.data.total,e.loading=!1}))},typeFormat:function(e){return this.selectDictLabel(this.typeOptions,e.configType)},handleQuery:function(){this.queryParam.pageNum=1,this.getList()},resetQuery:function(){this.dateRange=[],this.queryParam={pageNum:1,pageSize:10,configName:void 0,configKey:void 0,configType:void 0},this.handleQuery()},onShowSizeChange:function(e,t){this.queryParam.pageSize=t,this.getList()},onSizeChange:function(e,t){this.queryParam.pageNum=1,this.queryParam.pageSize=t,this.getList()},changeSize:function(e,t){this.queryParam.pageNum=e,this.queryParam.pageSize=t,this.getList()},onSelectChange:function(e,t){this.selectedRowKeys=e,this.selectedRows=t,this.ids=this.selectedRows.map((function(e){return e.id})),this.configNames=this.selectedRows.map((function(e){return e.configName})),this.single=1!==e.length,this.multiple=!e.length},toggleAdvanced:function(){this.advanced=!this.advanced},handleAdd:function(){var e=this;this.showAddModal=!0,this.$nextTick((function(){return e.$refs.configAddForm.handleAdd()}))},handleUpdate:function(e){var t=this;this.showEditModal=!0,this.$nextTick((function(){return t.$refs.configEditForm.handleUpdate(e)}))},handleDelete:function(e){var t=this,a=e.id||this.ids,o=e.configName||this.configNames;this.$confirm({title:"确认删除所选中数据?",content:'当前选中名称为"'+o+'"的数据',onOk:function(){return Object(i["c"])(a).then((function(){t.onSelectChange([],[]),t.getList(),t.$message.success("删除成功",3)}))},onCancel:function(){}})},handleExport:function(){var e=this;this.$confirm({title:"是否确认导出?",content:"此操作将导出当前条件下所有数据而非选中数据",onOk:function(){return Object(i["d"])(e.queryParam).then((function(t){e.download(t.msg),e.$message.success("导出成功",3)}))},onCancel:function(){}})},handleRefreshCache:function(){var e=this;Object(i["h"])().then((function(t){e.$message.success("刷新成功",3)}))}}},d=c,u=a("2877"),m=Object(u["a"])(d,o,n,!1,null,null,null);t["default"]=m.exports},cd270:function(e,t,a){"use strict";a("f81e")},dc25:function(e,t,a){"use strict";a.r(t);var o=function(){var e=this,t=e._self._c;return t("div",[t("a-modal",{attrs:{visible:e.Visible,zIndex:1e21,footer:null},on:{cancel:e.handleCancel}},[e.isVideo?t("video",{staticStyle:{width:"100%"},attrs:{controls:"",src:e.previewImage}},[t("source",{attrs:{src:e.previewImage,type:"video/*",autoplay:!0,muted:"",preload:"load",loop:""}})]):t("img",{staticStyle:{width:"100%"},attrs:{alt:"example",src:e.previewImage}})])],1)},n=[],i={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)}}},r=i,s=a("2877"),l=Object(s["a"])(r,o,n,!1,null,null,null);t["default"]=l.exports},de96:function(e,t,a){"use strict";a.r(t);a("99af");var o=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-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.ipaddr,callback:function(t){e.$set(e.queryParam,"ipaddr",t)},expression:"queryParam.ipaddr"}})],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.msg,callback:function(t){e.$set(e.queryParam,"msg",t)},expression:"queryParam.msg"}})],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.status,callback:function(t){e.$set(e.queryParam,"status",t)},expression:"queryParam.status"}},e._l(e.statusOptions,(function(a,o){return t("a-select-option",{key:o,attrs:{value:a.dictValue}},[e._v(e._s(a.dictLabel))])})),1)],1)],1),e.advanced?t("a-col",{attrs:{md:6,sm:24}},[t("a-form-item",{attrs:{label:"登录名称"}},[t("a-input",{staticStyle:{width:"100%"},attrs:{"allow-clear":""},model:{value:e.queryParam.loginName,callback:function(t){e.$set(e.queryParam,"loginName",t)},expression:"queryParam.loginName"}})],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("advance-table",{attrs:{columns:e.columns,"data-source":e.list,title:"登录日志",loading:e.loading,rowKey:"id",tableKey:"monitor-logininfo-Logininfo-table",isTableConfig:!1,isShowSetBtn:!1,size:"middle","format-conditions":!0,"row-selection":{selectedRowKeys:e.selectedRowKeys,onChange:e.onSelectChange},pagination:{current:e.queryParam.pageNum,pageSize:e.queryParam.pageSize,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:"status",fn:function(a){a.text;var o=a.record;return t("span",{},[t("a-badge",{attrs:{status:"0"==o.status?"processing":"error",text:e.statusFormat(o)}})],1)}}])},[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:LoginLog:remove"],expression:"['monitor:LoginLog: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:LoginLog:remove"],expression:"['monitor:LoginLog: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:LoginLog:export"],expression:"['system:LoginLog:export']"}],on:{click:e.handleExport}},[t("a-icon",{attrs:{type:"download"}}),e._v("导出 ")],1)],1)])],1)],1)},n=[],i=(a("d81d"),a("b775"));function r(e){return Object(i["b"])({url:"/monitor/loginLog/page",method:"get",params:e})}function s(e){return Object(i["b"])({url:"/monitor/loginLog/"+e,method:"delete"})}function l(){return Object(i["b"])({url:"/monitor/loginLog/clean",method:"delete"})}function c(e){return Object(i["b"])({url:"/monitor/loginLog/export",method:"get",params:e})}var d=a("5d9e"),u={name:"LoginLog",components:{AdvanceTable:d["default"]},data:function(){return{list:[],selectedRowKeys:[],selectedRows:[],advanced:!1,single:!0,multiple:!0,ids:[],loading:!1,sunloading:!1,total:0,statusOptions:[],dateRange:[],labelCol:{span:6},wrapperCol:{span:18},queryParam:{pageNum:1,pageSize:10,ipaddr:null,userName:void 0,status:void 0},addModalRefName:"addModal",columns:[{title:"用户名称",dataIndex:"userName",align:"center"},{title:"登录地址",dataIndex:"ipaddr",align:"center"},{title:"登录地点",dataIndex:"loginLocation",align:"center"},{title:"浏览器",dataIndex:"browser",align:"center"},{title:"操作系统",dataIndex:"os",align:"center"},{title:"状态",dataIndex:"status",scopedSlots:{customRender:"status"},align:"center"},{title:"操作信息",dataIndex:"msg",align:"center"},{title:"登录时间",dataIndex:"loginTime",align:"center"}]}},filters:{},created:function(){var e=this;this.getList(),this.getDicts("sys_common_status").then((function(t){e.statusOptions=t.data}))},computed:{},watch:{},methods:{onSizeChange:function(e,t){this.queryParam.pageNum=1,this.queryParam.pageSize=t,this.getList()},getList:function(){var e=this;this.loading=!0,r(this.addDateRange(this.queryParam,this.dateRange)).then((function(t){e.list=t.data.list,e.total=t.data.total,e.loading=!1}))},statusFormat:function(e){return this.selectDictLabel(this.statusOptions,e.status)},handleQuery:function(){this.queryParam.pageNum=1,this.getList()},resetQuery:function(){this.dateRange=[],this.queryParam={pageNum:1,pageSize:10,ipaddr:null,userName:void 0,status:void 0},this.handleQuery()},onShowSizeChange:function(e,t){this.queryParam.pageSize=t,this.getList()},changeSize:function(e,t){this.queryParam.pageNum=e,this.queryParam.pageSize=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:"确认删除所选中数据?",onOk:function(){return s(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 c(e.queryParam).then((function(t){e.download(t.msg),e.$message.success("导出成功",3)}))},onCancel:function(){}})}}},m=u,p=a("2877"),f=Object(p["a"])(m,o,n,!1,null,null,null);t["default"]=f.exports},eb30:function(e,t,a){"use strict";a.r(t);a("b0c0"),a("a9e3");var o=function(){var e=this,t=e._self._c;return t("span",[e.hiddenIcon?e._e():t("a-tooltip",[t("template",{slot:"title"},[e._v(" "+e._s(e.$t("components.imagetext.translation"))+" ")]),t("a-icon",{attrs:{type:"file-image"},on:{click:e.openModal}})],2),t("AntModal",{attrs:{visible:e.visible,title:e.modelTitle,modalWidth:"800",modalHeight:"650","adjust-size":!0},on:{cancel:e.close},scopedSlots:e._u([{key:"footer",fn:function(){return[t("recharge",{ref:"yueref",attrs:{showYue:!0}}),t("a-button",{staticStyle:{"margin-left":"5px"},on:{click:e.close}},[e._v(e._s(e.$t("components.imagetext.translation.close")))]),t("a-button",{attrs:{type:"primary"},on:{click:e.ok}},[e._v(e._s(e.$t("components.imagetext.translation.ok")))])]},proxy:!0}])},[t("div",{attrs:{slot:"content"},slot:"content"},[t("div",{staticStyle:{display:"flex","align-items":"center"}},[t("div",{staticStyle:{width:"290px"}},[t("div",[e._v(e._s(e.$t("components.imagetext.translation.before")))]),t("div",{staticStyle:{width:"290px",height:"290px"}},[t("img",{staticStyle:{width:"290px",height:"290px","object-fit":"contain"},attrs:{src:e.img}})]),t("div",{staticStyle:{"margin-top":"1rem"}},[e._v(" "+e._s(e.$t("components.imagetext.translation.sourceLang"))+": "),e.langSource?t("a-select",{staticStyle:{width:"60%"},on:{change:e.changeCurrentLang},model:{value:e.currentLang,callback:function(t){e.currentLang=t},expression:"currentLang"}},e._l(e.langSource.sourceLanguage,(function(a){return t("a-select-option",{key:a.code,attrs:{value:a.code}},[e._v(" "+e._s(a.name)+" ")])})),1):e._e()],1)]),t("div",{staticStyle:{flex:"1","text-align":"center"}},[t("div",{staticStyle:{height:"311px","align-items":"center","justify-content":"center",display:"flex"}},[t("a-icon",{staticStyle:{"font-size":"2rem"},attrs:{type:"arrow-right"}})],1),t("a-select",{staticStyle:{width:"100%","margin-top":"1rem"},on:{change:e.changeTranEngData},model:{value:e.transEngineData,callback:function(t){e.transEngineData=t},expression:"transEngineData"}},e._l(e.langSource.transEngine,(function(a){return t("a-select-option",{key:a.code},[e._v(e._s(a.name)+" "),t("defaultCurrency",{attrs:{currency:"CNY",isFuhao:!0}}),e._v(" "+e._s(Number(Number(a.unitPrice)/100))+" ")],1)})),1)],1),t("div",{staticStyle:{width:"290px"}},[t("div",[e._v(e._s(e.$t("components.imagetext.translation.after")))]),t("div",{style:{width:"290px",height:"290px",border:e.newImg?"":"1px solid #ccc"}},[e.newImg?t("img",{staticStyle:{width:"290px",height:"290px","object-fit":"contain"},attrs:{src:e.newImg}}):e._e()]),t("div",{staticStyle:{"margin-top":"1rem","text-align":"right"}},[e._v(" "+e._s(e.$t("components.imagetext.translation.targetLang"))+": "),e.langSource?t("a-select",{staticStyle:{width:"60%"},on:{change:e.changeTransLang},model:{value:e.transLang,callback:function(t){e.transLang=t},expression:"transLang"}},e._l(e.langSource.targetLanguage,(function(a){return t("a-select-option",{key:a.code,attrs:{value:a.code}},[e._v(" "+e._s(a.name)+" ")])})),1):e._e()],1)])]),t("div",{staticStyle:{"margin-top":"1rem","text-align":"center"}},[t("a-button",{attrs:{type:"primary"},on:{click:e.transImg}},[e._v(e._s(e.$t("components.imagetext.translation.translate")))])],1)])])],1)},n=[],i=(a("d3b7"),a("3ca3"),a("ddb0"),a("a026")),r=a("3726"),s=Object(i["b"])((function(){return Promise.resolve().then(a.bind(null,"2dd7"))})),l=Object(i["b"])((function(){return Promise.resolve().then(a.bind(null,"b89c"))})),c=Object(i["b"])((function(){return Promise.resolve().then(a.bind(null,"34c3"))})),d="ImageTs-TranEngMode",u="ImageTs-CurrentLang",m="ImageTs-TransLang",p={name:"ImageTextTs",props:{img:{type:String,default:""},hiddenIcon:{type:Boolean,default:!1}},data:function(){return{visible:!1,modelTitle:this.$t("components.imagetext.translation.modaltitle"),newImg:"",langSource:[],currentLang:"",transLang:"",transEngineData:""}},methods:{getLangList:function(){var e=this;Object(r["c"])().then((function(t){0===t.code&&(e.langSource=JSON.parse(t.lang),sessionStorage.getItem(d)?e.transEngineData=sessionStorage.getItem(d):e.langSource.transEngine.length>0&&(e.transEngineData=e.langSource.transEngine[0].code,sessionStorage.setItem(d,e.transEngineData)),sessionStorage.getItem(u)&&(e.currentLang=sessionStorage.getItem(u)),sessionStorage.getItem(m)&&(e.transLang=sessionStorage.getItem(m)))}))},openModal:function(){if(this.newImg="",!this.img)return this.$message.error(this.$t("components.imagetext.translation.image.null")),!1;this.getLangList(),this.visible=!0},close:function(){this.visible=!1},ok:function(){var e=this;this.$confirm({title:this.$t("components.imagetext.translation.confirm.title"),content:this.$t("components.imagetext.translation.confirm.content"),okText:this.$t("components.imagetext.translation.confirm.ok"),cancelText:this.$t("components.imagetext.translation.confirm.cancel"),onOk:function(){e.$emit("update:img",e.newImg),e.$emit("ok",e.newImg),e.close()},onCancel:function(){}})},transImg:function(){var e=this;return this.transEngineData?this.currentLang?this.transLang?(this.$message.loading({content:this.$t("components.imagetext.translation.transImageLoading"),duration:0}),void Object(r["a"])({imgUrl:this.img,sourceLanguage:this.currentLang,targetLanguage:this.transLang,transEngine:this.transEngineData}).then((function(t){e.newImg=t.url+"?t="+(new Date).getTime(),e.$refs.yueref.getAmount(),e.$message.destroy()})).catch((function(t){e.$message.destroy()}))):(this.$message.error(this.$t("components.imagetext.translation.targetLang.null")),!1):(this.$message.error(this.$t("components.imagetext.translation.sourceLang.null")),!1):(this.$message.error(this.$t("components.imagetext.translation.engine.null")),!1)},changeTranEngData:function(e){sessionStorage.setItem(d,e)},changeCurrentLang:function(e){sessionStorage.setItem(u,e)},changeTransLang:function(e){sessionStorage.setItem(m,e)}},components:{AntModal:s,recharge:l,defaultCurrency:c}},f=p,h=a("2877"),g=Object(h["a"])(f,o,n,!1,null,null,null);t["default"]=g.exports},f7f8:function(e,t,a){"use strict";a.r(t);var o=function(){var e=this,t=e._self._c;return t("span",[e.hiddenIcon?e._e():t("a-tooltip",[t("template",{slot:"title"},[e._v(" "+e._s(e.$t("components.videoTrans.btn"))+" ")]),t("a-icon",{attrs:{type:"file-image"},on:{click:e.openModal}})],2),e.hiddenIcon?t("a-button",{attrs:{type:e.btnType,loading:e.loading},on:{click:e.openModal}},[e._v(e._s(e.$t("components.videoTrans.btn")))]):e._e(),t("AntModal",{attrs:{visible:e.visible,title:e.modelTitle,modalWidth:"800",modalHeight:"650","adjust-size":!0},on:{cancel:e.close},scopedSlots:e._u([{key:"footer",fn:function(){return[t("recharge",{ref:"yueref",attrs:{showYue:!0}}),t("a-button",{staticStyle:{"margin-left":"5px"},on:{click:e.close}},[e._v(e._s(e.$t("components.videoTrans.translation.close")))]),e.hiddenConfirm?e._e():t("a-button",{attrs:{type:"primary"},on:{click:e.ok}},[e._v(e._s(e.$t("components.imagetext.translation.ok")))])]},proxy:!0}])},[t("div",{attrs:{slot:"content"},slot:"content"},[t("div",{staticStyle:{display:"flex","align-items":"center"}},[t("div",{staticStyle:{width:"290px"}},[t("div",[e._v(e._s(e.$t("components.imagetext.translation.before")))]),t("div",{staticStyle:{width:"290px",height:"290px"}},[t("video",{ref:"sfGalleryBigImage",staticStyle:{"object-position":"top","max-height":"290px"},attrs:{autoplay:!1,muted:"",preload:"load",loop:"",src:e.url,width:"100%",height:"100%",controls:"controls",playsinline:""},domProps:{muted:!0}},[t("source",{attrs:{src:e.url,type:"video/*"}})])]),t("div",{staticStyle:{"margin-top":"1rem"}},[e._v(" "+e._s(e.$t("components.imagetext.translation.sourceLang"))+": "),t("a-select",{staticStyle:{width:"60%"},on:{change:e.changeCurrentLang},model:{value:e.currentLang,callback:function(t){e.currentLang=t},expression:"currentLang"}},e._l(e.langLabel,(function(a,o){return t("a-select-option",{key:o,attrs:{value:o}},[e._v(" "+e._s(e.$t(a))+" ")])})),1)],1)]),t("div",{staticStyle:{flex:"1","text-align":"center"}},[t("div",{staticStyle:{height:"311px","align-items":"center","justify-content":"center",display:"flex"}},[t("a-icon",{staticStyle:{"font-size":"2rem"},attrs:{type:"arrow-right"}})],1)]),t("div",{staticStyle:{width:"290px"}},[t("div",[e._v(e._s(e.$t("components.imagetext.translation.after")))]),t("div",{style:{width:"290px",height:"290px",border:e.newUrl?"":"1px solid #ccc"}},[e.newUrl?t("video",{ref:"sfGalleryBigImage",staticStyle:{"object-position":"top","max-height":"290px"},attrs:{autoplay:!1,muted:"",preload:"load",loop:"",src:e.newUrl,width:"100%",height:"100%",controls:"controls",playsinline:""},domProps:{muted:!0}},[t("source",{attrs:{src:e.newUrl,type:"video/*"}})]):e._e()]),t("div",{staticStyle:{"margin-top":"1rem","text-align":"right"}},[e._v(" "+e._s(e.$t("components.imagetext.translation.targetLang"))+": "),t("a-select",{staticStyle:{width:"60%"},on:{change:e.changeTransLang},model:{value:e.transLang,callback:function(t){e.transLang=t},expression:"transLang"}},e._l(e.langLabel,(function(a,o){return t("a-select-option",{key:o,attrs:{value:o}},[e._v(" "+e._s(e.$t(a))+" ")])})),1)],1)])]),t("div"),t("div",{staticStyle:{"margin-top":"1rem","text-align":"center"}},[t("a-button",{attrs:{type:"primary"},on:{click:e.transImg}},[e._v(e._s(e.$t("components.imagetext.translation.translate")))]),t("selectVideo",{ref:"selectVideo",staticStyle:{"margin-left":"0.5rem"},on:{ok:function(t){return e.newUrl=t}}})],1)])])],1)},n=[],i=(a("d3b7"),a("3ca3"),a("ddb0"),a("ac1f"),a("5319"),a("a026")),r=a("3726"),s=Object(i["b"])((function(){return Promise.resolve().then(a.bind(null,"2dd7"))})),l=Object(i["b"])((function(){return Promise.resolve().then(a.bind(null,"b89c"))})),c=Object(i["b"])((function(){return Promise.resolve().then(a.bind(null,"34c3"))})),d=Object(i["b"])((function(){return a.e("lang-zh-TW-service~f63b1681").then(a.bind(null,"09e9e"))})),u="videoTs-TranEngMode",m="videoTs-CurrentLang",p="videoTs-TransLang",f={name:"VideoTrans",props:{url:{type:String,default:""},hiddenIcon:{type:Boolean,default:!1},btnType:{type:String,default:"primary"},hiddenConfirm:{type:Boolean,default:!1}},data:function(){return{visible:!1,modelTitle:this.$t("components.imagetext.translation.modaltitle"),newUrl:"",langSource:[],langLabel:{zh:"zh-CN",en:"en-US",fr:"fr-FR",es:"es-ES",ar:"ar-EG",hi:"hi-IN",pt:"pt-PT",ru:"ru-RU",it:"it-IT",de:"de-DE",ja:"ja-JP",th:"th-TH",ko:"ko-KR",bn:"bn-BD",id:"id-ID",vi:"vi-VN",ms:"ms-MY"},currentLang:"",transLang:"",transEngineData:"",loading:!1}},methods:{getLangList:function(){sessionStorage.getItem(m)&&(this.currentLang=sessionStorage.getItem(m)),sessionStorage.getItem(p)&&(this.transLang=sessionStorage.getItem(p))},openModal:function(){if(this.newUrl="",!this.url)return this.$message.error(this.$t("components.imagetext.translation.image.null")),!1;this.getLangList(),this.visible=!0},close:function(){this.visible=!1},ok:function(){var e=this;this.$confirm({title:this.$t("components.imagetext.translation.confirm.title"),content:this.$t("components.imagetext.translation.confirm.content"),okText:this.$t("components.imagetext.translation.confirm.ok"),cancelText:this.$t("components.imagetext.translation.confirm.cancel"),onOk:function(){e.$emit("update:url",e.newUrl),e.$emit("ok",e.newUrl),e.close()},onCancel:function(){}})},transImg:function(){var e=this,t=(new Date).toLocaleDateString().replace(/\//g,"");Object(r["f"])({source_url:this.url,source_lang:this.currentLang,target_lang:this.transLang,project_name:t}).then((function(t){e.newUrl=t.video_url+"?t="+(new Date).getTime(),e.$refs.yueref.getAmount(),e.$message.success(e.$t("components.videoTrans.aivideo.loding"),2),setTimeout((function(){e.$refs.selectVideo&&e.$refs.selectVideo.openModal()}),2e3)})).catch((function(e){}))},changeTranEngData:function(e){sessionStorage.setItem(u,e)},changeCurrentLang:function(e){sessionStorage.setItem(m,e)},changeTransLang:function(e){sessionStorage.setItem(p,e)}},components:{AntModal:s,recharge:l,defaultCurrency:c,selectVideo:d}},h=f,g=a("2877"),v=Object(g["a"])(h,o,n,!1,null,null,null);t["default"]=v.exports},f81e:function(e,t,a){},f9ea:function(e,t,a){"use strict";a.r(t);var o=function(){var e=this,t=e._self._c;return t("span",[e.isA?t("a",{on:{click:e.openModal}},[e._v(e._s(e.$t("view.order.detail.warehouse.update")))]):t("a-button",{attrs:{type:"primary"},on:{click:e.openModal}},[e._v(e._s(e.$t("view.order.detail.warehouse.update")))]),t("ant-modal",{attrs:{visible:e.visable,"modal-title":e.formTitle,"adjust-size":!0,modalHeight:"600",modalWidth:"1200"},on:{cancel:function(t){return e.closeModal()}},scopedSlots:e._u([{key:"footer",fn:function(){return[t("a-button",{on:{click:e.closeModal}},[e._v(e._s(e.$t("view.test.list.form.button.cancel")))])]},proxy:!0}])},[e.order?t("div",{staticClass:"orderDetail",attrs:{slot:"content"},slot:"content"},[t("a-row",[t("a-col",{attrs:{span:24}},[t("div",[t("div",[e._v(e._s(e.$t("order.switch.warehouse.koujian.stock.title"))+" :"),t("wareHouseInfo",{attrs:{warehouseId:e.order.order_item[0].stock_log.warehouse_id}})],1),t("div",[e._v(" "+e._s(e.$t("order.switch.warehouse.koujian.stock.reset.title"))+":"),t("wareHouseSelect",{staticStyle:{width:"200px",display:"inline-block","margin-right":"10px"},attrs:{wareHouseId:e.order.order_item[0].stock_log.warehouse_id},on:{change:e.changeWareHouseId}}),t("a-button",{attrs:{type:"primary"},on:{click:e.saveWareHouse}},[e._v(e._s(e.$t("view.order.detail.warehouse.update")))])],1)])])],1),t("a-table",{attrs:{columns:e.columns,"data-source":e.order.order_item,pagination:!1},scopedSlots:e._u([{key:"img_url",fn:function(e){return[t("a-avatar",{attrs:{shape:"square",size:85,src:e}})]}},{key:"Title",fn:function(a,o){return[t("div",[t("div",[e._v(e._s(o.title))]),t("a-row",{attrs:{type:"flex"}},[t("a-col",{attrs:{flex:3}},["string"==typeof o.sku_prop?t("span",[e._v(" "+e._s(o.sku_prop)+" ")]):t("span",e._l(o.sku_prop,(function(a,o){return t("div",{key:o},[t("span",[e._v(e._s(o)+":"+e._s(a))])])})),0)])],1),t("div",[e._v(e._s(e.$t("view.order.detial.item.outid"))+" "+e._s(o.out_id))]),t("div",[e._v(e._s(e.$t("view.order.detial.item.barcode"))+" "+e._s(o.barcode))]),o.stock_log?t("div",[e._v(" "+e._s(e.$t("view.item.sku.wareHouse"))+" "),t("wareHouseInfo",{attrs:{warehouseId:o.stock_log.warehouse_id}})],1):e._e()],1)]}},{key:"price",fn:function(a){return[t("div",[e._v(e._s(e.shopQuoteCurrency)+" "+e._s(a))])]}},{key:"discount",fn:function(a){return[t("div",[e._v(e._s(e.shopQuoteCurrency)+" "+e._s(a))])]}},{key:"tax_fee",fn:function(a){return[t("div",[e._v(e._s(e.shopQuoteCurrency)+" "+e._s(a))])]}},{key:"amount",fn:function(a){return[t("div",[e._v(e._s(e.shopQuoteCurrency)+" "+e._s(a))])]}}],null,!1,3588468014)})],1):e._e()])],1)},n=[],i=a("5530"),r=(a("4de4"),a("d3b7"),a("3a10")),s=a("2dd7"),l=a("d7eec"),c=a("2f62"),d=a("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(i["a"])({},Object(c["c"])(["shopQuoteCurrency","isMobile","domain"])),components:{AntModal:s["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 e=this,t=[];this.orderId&&t.push({field:"order_id",operator:"eq",value:this.orderId});var a={};a.conditions=t,Object(r["x"])(a).then((function(t){var a,o;if(null!==t&&void 0!==t&&null!==(a=t.list)&&void 0!==a&&a[0].order_item){var n,i,r,s=null===(n=t.list)||void 0===n||null===(i=n[0])||void 0===i||null===(r=i.order_item)||void 0===r?void 0:r.filter((function(t){return t.sku_id===e.skuId}));t.list[0].order_item=s}if(e.order=null===(o=t.list)||void 0===o?void 0:o[0],null==e.order)return e.$notification.error({message:e.$t("view.order.list.order.null"),duration:5}),!1}))},changeWareHouseId:function(e){this.wareHouseId=e},saveWareHouse:function(){var e=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 t,a,o,n;Object(r["C"])({order_id:e.orderId,switch_info:[{to_warehouse_id:e.wareHouseId,sku_id:null===(t=e.order.order_item)||void 0===t||null===(a=t[0])||void 0===a?void 0:a.sku_id,out_id:null===(o=e.order.order_item)||void 0===o||null===(n=o[0])||void 0===n?void 0:n.out_id}]}).then((function(t){e.$notification.success({message:e.$t("view.order.detail.warehouse.update.success"),duration:5}),e.$emit("ok"),e.getOrder()}))},onCancel:function(){}})}}},m=Object(i["a"])({},u),p=m,f=a("2877"),h=Object(f["a"])(p,o,n,!1,null,null,null);t["default"]=h.exports}}]);
@@ -1 +0,0 @@
1
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-749ffb2c"],{"0280":function(e,t,a){"use strict";a.r(t);a("b0c0");var s=function(){var e=this,t=e._self._c;return t("span",{staticClass:"yahooPath"},[t("a-icon",{attrs:{type:"plus"},on:{click:e.openPathList}}),t("ant-modal",{attrs:{visible:e.show,"modal-title":e.formTitle,"adjust-size":!0,modalHeight:e.isMobile?"80vh":"680",modalWidth:e.isMobile?"100vw":"900"},on:{cancel:e.cancelPathList,ok:e.cancelPathList}},[t("div",{attrs:{slot:"content"},slot:"content"},[t("div",[t("a-button",{on:{click:e.openFormInit}},[e._v(e._s(e.$t("components.yahooPathAdd.addbtn")))])],1),e.pathList?t("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:e.pathList,loadedKeys:e.loadKeys,blockNode:!0,loadData:e.loadPath},on:{expand:e.expandNode},scopedSlots:e._u([{key:"title",fn:function(a,s){return[t("div",{staticClass:"pageKeyItem",staticStyle:{color:"#000",display:"flex","align-items":"center"}},[e._v(" "+e._s(a.name)+" "),t("a-icon",{staticStyle:{"margin-left":"15px"},attrs:{type:"edit"},on:{click:function(t){return e.handleUpdate({page_key:a.page_key,name:a.name,display:a.display,parent_page_key:a.parent_page_key,hidden_flag:a.hidden_page_flag,parentName:a.parentName},a,s)}}})],1)]}}],null,!1,2555784184)}):e._e()],1),t("div",{attrs:{slot:"footer"},slot:"footer"},[t("a-button",{on:{click:e.cancelPathList}},[e._v(e._s(e.$t("view.test.list.form.button.cancel")))])],1)]),t("ant-modal",{attrs:{visible:e.open,"modal-title":e.formTitle1,"adjust-size":!0,modalHeight:e.isMobile?"80vh":"680",modalWidth:e.isMobile?"100vw":"900"},on:{cancel:e.cancelForm,ok:e.ok}},[t("div",{attrs:{slot:"content"},slot:"content"},[t("a-form",[t("a-form-item",{attrs:{label:e.$t("components.yahooPathAdd.form.name")}},[t("a-input",{attrs:{placeholder:""},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.yahooPathAdd.form.display")}},[t("a-select",{model:{value:e.form.display,callback:function(t){e.$set(e.form,"display",t)},expression:"form.display"}},[t("a-select-option",{attrs:{value:"0"}},[e._v("私有")]),t("a-select-option",{attrs:{value:"1"}},[e._v("共有")])],1)],1),t("a-form-item",{attrs:{label:e.$t("components.yahooPathAdd.form.hiddenFlag")}},[t("a-select",{model:{value:e.form.hidden_flag,callback:function(t){e.$set(e.form,"hidden_flag",t)},expression:"form.hidden_flag"}},[t("a-select-option",{attrs:{value:"0"}},[e._v("普通页面")]),t("a-select-option",{attrs:{value:"1"}},[e._v("隐藏页面")])],1)],1),t("a-form-item",{attrs:{label:e.$t("components.yahooPathAdd.form.parentPageKey")}},[t("div",{attrs:{color:{color:e.form.page_key?"#ccc":"#000"}},on:{click:e.openPathSelect}},[t("a-icon",{attrs:{type:"plus"}}),e._v(e._s(e.parentName)+" ")],1)])],1)],1)]),t("ant-modal",{attrs:{visible:e.visable,"modal-title":e.formTitle2,"adjust-size":!0,modalHeight:e.isMobile?"80vh":"680",modalWidth:e.isMobile?"100vw":"900"},on:{cancel:e.cancelPathSelect,ok:e.cancelPathSelect}},[t("div",{attrs:{slot:"content"},slot:"content"},[e.pathList?t("a-tree",{attrs:{replaceFields:{title:"name",key:"page_key",slot:"title"},treeData:e.pathList,loadedKeys:e.loadKeys,loadData:e.loadPath,checkable:"",checkStrictly:!0,checkedKeys:e.pathKeys},on:{check:e.onCheck},scopedSlots:e._u([{key:"title",fn:function(a){var s=a.name;return[t("div",{staticClass:"pageKeyItem",staticStyle:{color:"#000",display:"flex","align-items":"center"}},[e._v(" "+e._s(s)+" ")])]}}],null,!1,1425135114)}):e._e()],1),t("div",{attrs:{slot:"footer"},slot:"footer"},[t("a-button",{on:{click:e.cancelPathSelect}},[e._v(e._s(e.$t("view.test.list.form.button.cancel")))])],1)])],1)},o=[],i=a("5530"),n=a("c7eb"),r=a("1da1"),l=a("2909"),c=(a("d81d"),a("99af"),a("2dd7")),d=a("dcb0"),u=a("2f62"),m={name:"yahooPathAdd",components:{AntModal:c["default"]},data:function(){return{open:!1,pathList:[],form:{},visable:!1,show:!1,pathKeys:[],loadKeys:[],parentName:""}},computed:Object(i["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(e,t){var a=this,s={seller_id:this.sellerId};return e&&(s.page_key=e),Object(d["j"])(s).then((function(s){return s.data.results&&s.data.results.length>0?s.data.results?(s.data.results.map((function(a){a.title&&(a.label=a.name,a.isLeaf=!1),a.isLeaf=!1,a.label=a.name,a.parentName=t,e&&(a.parent_page_key=e)})),"0"!==s.data.total_results_available?e?s.data.results:(a.pathList=Object(l["a"])(s.data.results),a.pathList):[]):void 0:null}))},loadPath:function(e,t){var a=this;return Object(r["a"])(Object(n["a"])().mark((function t(){var s;return Object(n["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return a.loadKeys.push(e.eventKey),a.parentName=e.label,t.next=4,a.getPathList(e.eventKey,e.label);case 4:s=t.sent,s&&s.length&&(e.dataRef.children=s),a.pathList=Object(l["a"])(a.pathList);case 7:case"end":return t.stop()}}),t)})))()},loadEvent:function(e){},onCheck:function(e,t){e.checked.length?this.pathKeys=[e.checked[e.checked.length-1]]:this.pathKeys=[],this.pathKeys.length?this.form.parent_page_key=this.pathKeys[0]:this.form.parent_page_key="",this.parentName=t.node.label},handleUpdate:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.form=e,this.pathKeys=[],this.parentName=e.parentName,this.formTitle1=this.$t("components.yahooPathAdd.form.name.edit.title",{name:e.name}),this.openAddForm()},expandNode:function(e){var t=[];e.map((function(e){t.push(e)})),this.loadKeys=[].concat(t)},ok:function(){var e=this;this.form.seller_id=this.sellerId,Object(d["h"])(this.form).then((function(t){0===t.code&&(e.$message.success(e.$t("components.yahooPathAdd.success")),e.$emit("ok"),e.loadKeys=[],e.pathKeys=[],e.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()}}},p=Object(i["a"])({},m),h=p,f=(a("5ea1"),a("2877")),_=Object(f["a"])(h,s,o,!1,null,null,null);t["default"]=_.exports},"0867":function(e,t,a){"use strict";a("80b8")},"0c499":function(e,t,a){"use strict";a.r(t);a("b0c0");var s=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:""},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)},o=[],i=a("c7eb"),n=a("1da1"),r=(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%"}}}},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(n["a"])(Object(i["a"])().mark((function t(){var a;return Object(i["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return e.loading=!0,t.prev=1,t.next=4,Object(r["b"])();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}}))),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.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;this.$emit("input",this.currentValue),this.$emit("change",this.currentValue,null===t||void 0===t?void 0:t.wms_type)}}},c=l,d=a("2877"),u=Object(d["a"])(c,s,o,!1,null,null,null),m=u.exports;t["default"]=m},"0de6":function(e,t,a){"use strict";a.r(t);var s=a("c7eb"),o=a("1da1"),i=a("3835"),n=a("5530"),r=(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"),m=function(){return a.e("chunk-749ffb2c").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(n["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("~"),s=Object(i["a"])(a,2),o=s[0],n=s[1];return{start:e.$moment("2000-01-01 ".concat(o)),end:e.$moment("2000-01-01 ".concat(n))}}))}catch(s){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(o["a"])(Object(s["a"])().mark((function t(a){var o,i,r;return Object(s["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(!a){t.next=14;break}return o=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(o),i=Object(n["a"])(Object(n["a"])({},e.formData),{},{data:Object(n["a"])(Object(n["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"])(i);case 7:r=t.sent,0===r.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(n["a"])({},Object(l["c"])(["shopId","isMobile"])),components:{AntModal:r["default"],WmsSelect:m,GoodcangWarehouseSelect:u["a"]}}},"0ef6":function(e,t,a){"use strict";a.r(t);var s=function(){var e=this,t=e._self._c;return t("div",{ref:"portaletDiv",staticClass:"module"},[e._m(0)])},o=[function(){var e=this,t=e._self._c;return t("div",{staticClass:"module-in"},[t("ul",{staticClass:"information02"},[t("li",[t("div",{staticClass:"sky"},[t("img",{attrs:{src:a("924b"),alt:""}})]),t("div",{staticClass:"information02-data"},[t("span",[e._v("50%")]),t("p",[e._v("压力仪表盘")])])]),t("li",[t("div",{staticClass:"sky"},[t("img",{attrs:{src:a("4781"),alt:""}})]),t("div",{staticClass:"information02-data"},[t("span",[e._v("28%")]),t("p",[e._v("完成率")])])])])])}],i={created:function(){},mounted:function(){this.$emit("setHeight",this.$refs.portaletDiv.offsetHeight)},watch:{},components:{},methods:{}},n=i,r=(a("d936"),a("2877")),l=Object(r["a"])(n,s,o,!1,null,"0c32075c",null);t["default"]=l.exports},"1ef6":function(e,t,a){},"2ab0":function(e,t,a){},3058:function(e,t,a){"use strict";a.d(t,"b",(function(){return o})),a.d(t,"a",(function(){return i}));var s=a("b775");function o(e){return Object(s["b"])({url:"/good_cang/get_warehouse",method:"get",params:e})}function i(e){return Object(s["b"])({url:"/good_cang/warehouse/shipping_method",method:"get",params:e})}},4139:function(e,t,a){"use strict";a("b819")},4464:function(e,t,a){"use strict";a("1ef6")},4781:function(e,t,a){e.exports=a.p+"img/img02.9ac07e73.png"},"4b93":function(e,t,a){"use strict";a.r(t);a("b0c0");var s=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("logistics-provider-modal",{ref:"logisticsModal",attrs:{warehouseCode:e.warehouseCode,wmsId:e.wmsId},on:{success:e.handleQuery}}),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 s=a.text;return[t("a-tag",{attrs:{color:1===s?"green":""}},[e._v(" "+e._s(1===s?e.$t("components.WarehouseShippingSelect.table.is_signature_yes"):e.$t("components.WarehouseShippingSelect.table.is_signature_no"))+" ")])]}},{key:"is_truck",fn:function(a){var s=a.text;return[t("a-tag",{attrs:{color:1===s?"blue":""}},[e._v(" "+e._s(1===s?e.$t("components.WarehouseShippingSelect.table.is_truck_yes"):e.$t("components.WarehouseShippingSelect.table.is_truck_no"))+" ")])]}},{key:"is_enabled",fn:function(a){var s=a.text;return[t("a-tag",{attrs:{color:1===s?"green":""}},[e._v(" "+e._s(1===s?e.$t("components.WarehouseShippingSelect.table.is_enabled_yes"):e.$t("components.WarehouseShippingSelect.table.is_enabled_no"))+" ")])]}}])},[t("div",{staticClass:"table-operations",attrs:{slot:"button"},slot:"button"},[t("a-button",{attrs:{type:"primary"},on:{click:function(t){return e.$refs.logisticsModal.handleAdd()}}},[e._v(" "+e._s(e.$t("view.wareHouse.list.btn.addLogistics"))+" ")])],1)])],1)],1)],1)},o=[],i=a("5530"),n=a("c7eb"),r=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-749ffb2c").then(a.bind(null,"7c9d2"))},u=function(){return Promise.resolve().then(a.bind(null,"5d9e"))},m={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"}}],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(r["a"])(Object(n["a"])().mark((function e(){return Object(n["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(r["a"])(Object(n["a"])().mark((function t(){var a,s;return Object(n["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),t.next=8,Object(l["a"])(a);case 8:s=t.sent,0===s.code&&(e.tableData=(s.list||[]).map((function(e){return Object(i["a"])({key:e.id},e)})),e.pagination.total=s.total_count||0),t.next=14;break;case 12:t.prev=12,t.t0=t["catch"](1);case 14:return t.prev=14,e.loading=!1,t.finish(14);case 17:case"end":return t.stop()}}),t,null,[[1,12,14,17]])})))()},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()}}},p=m,h=(a("7c88"),a("2877")),f=Object(h["a"])(p,s,o,!1,null,"c1510e42",null);t["default"]=f.exports},"5c7e":function(e,t,a){"use strict";a.r(t),a.d(t,"WarehouseShippingSelect",(function(){return h})),a.d(t,"WarehouseShippingTable",(function(){return f["default"]}));a("b0c0");var s=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)},o=[],i=a("c7eb"),n=a("2909"),r=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(r["a"])(Object(i["a"])().mark((function a(){var s,o,r,c;return Object(i["a"])().wrap((function(a){while(1)switch(a.prev=a.next){case 0:if(s=e.length>0&&void 0!==e[0]&&e[0],s||(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,o={page:t.pagination.page,limit:t.pagination.limit},t.warehouseId&&(o.cang_id=t.warehouseId),t.warehouseCode&&(o.warehouse_code=t.warehouseCode),t.wmsId&&(o.wms_id=t.wmsId),a.next=12,Object(l["a"])(o);case 12:r=a.sent,0===r.code&&(c=r.list||[],t.pagination.total=r.total_count||0,t.shippingList=s?[].concat(Object(n["a"])(t.shippingList),Object(n["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,m=(a("7154"),a("2877")),p=Object(m["a"])(u,s,o,!1,null,"33ba007d",null),h=p.exports,f=a("4b93");t["default"]=h},"5ea1":function(e,t,a){"use strict";a("a4d4")},6947:function(e,t,a){"use strict";a("b6ad")},"6a20":function(e,t,a){"use strict";a.r(t);var s=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("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"))+" ")])],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:"status",fn:function(a){return t("span",{},[t("a-tag",{attrs:{color:1===a?"green":"red"}},[e._v(" "+e._s(1===a?e.$t("components.WmsModal.status.enabled"):e.$t("components.WmsModal.status.disabled"))+" ")])],1)}},{key:"is_sand_box",fn:function(a){return t("span",{},[t("a-tag",{attrs:{color:1===a?"blue":""}},[e._v(" "+e._s(1===a?e.$t("components.WmsModal.is_sand_box.yes"):e.$t("components.WmsModal.is_sand_box.no"))+" ")])],1)}},{key:"action",fn:function(a,s){return t("span",{},[t("a-space",[t("a",{on:{click:function(t){return e.handleEdit(s)}}},[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)},o=[],i=a("5530"),n=a("c7eb"),r=a("1da1"),l=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-item",{attrs:{label:e.$t("components.WmsForm.label.status"),name:"status"}},[t("a-switch",{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",{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=(a("d3b7"),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,attrs:{value:a}},[e._v(" "+e._s(e.$t(a))+" ")])})),1)}),m=[],p={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(r["a"])(Object(n["a"])().mark((function t(){var a;return Object(n["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)}}},h=p,f=a("2877"),_=Object(f["a"])(h,u,m,!1,null,null,null),g=_.exports,v=g,b={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,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(r["a"])(Object(n["a"])().mark((function t(){var a,s;return Object(n["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.prev=0,e.loading=!0,a=Object(i["a"])(Object(i["a"])({},e.form),{},{status:e.form.status?1:0,is_sand_box:e.form.is_sand_box?1:0,config:JSON.stringify(e.form.config)}),t.next=5,Object(l["d"])(a);case 5:s=t.sent,0===s.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)}}},y=b,w=Object(f["a"])(y,c,d,!1,null,null,null),$=w.exports,k={name:"WmsModal",components:{WmsForm:$},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("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(r["a"])(Object(n["a"])().mark((function t(){var a;return Object(n["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(i["a"])({},e),this.formVisible=!0},handleDelete:function(e){this.fetchData()},handleFormSuccess:function(){this.formVisible=!1,this.fetchData()},handleCancel:function(){this.modalVisible=!1}}},x=k,S=(a("4464"),Object(f["a"])(x,s,o,!1,null,"2c4e90a8",null));t["default"]=S.exports},7154:function(e,t,a){"use strict";a("a9d9")},"77c96":function(e,t,a){"use strict";a.r(t);var s=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 s=a.text,o=a.record;return t("span",{},[1==e.shopId?t("a",{on:{click:function(t){return e.handleOrderDetail(o)}}},[e._v(" "+e._s(s)+" ")]):t("span",[e._v(" "+e._s(s)+" ")]),t("div",[e._v(e._s(o.create_time))]),t("dispath-note",{staticStyle:{display:"none"},attrs:{order:o}})],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 s=a.text,o=a.record;return t("span",{},e._l(s,(function(a,i){return 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,o))}})],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(s,o){return t("div",{key:o},[t("span",[e._v(e._s(o)+":"+e._s(s))]),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",[t("a-col",{attrs:{flex:3}},[e._v(" "+e._s(e.$t("view.item.list.sale_price"))+" : "+e._s(o.order_info.currency)+e._s(a.main_sku_price)+" ")]),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),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(o.order_info.currency)+e._s(a.deduction_fee))])],1),i<s.length-1?t("a-divider"):e._e()],1)])})),0)}},{key:"deduction_fee",fn:function(a){var s=a.record;return t("span",{},[e._v(" "+e._s(s.order_info.currency)+e._s(s.deduction_fee)+" ")])}},{key:"deduction_status",fn:function(a){var s=a.record;return t("span",{},[1===s.deduction_status?t("span",[e._v(e._s(e.$t("ORDER_WAIT_PAYMENT")))]):e._e(),2===s.deduction_status?t("span",[e._v(e._s(e.$t("ORDER_PAID")))]):e._e()])}},{key:"payment",fn:function(a){var s=a.text,o=a.record;return t("span",{},[""===o.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(s)+" ")]),t("a-col",{attrs:{lg:24}},[e._v(" "+e._s(e.$t("view.order.list.payhuobiprice"))+" : "+e._s(o.trans_currency)+e._s(o.trans_amount)+" ")])],1):e._e(),""!==o.from_id?t("a-row",[t("a-col",{attrs:{lg:24}},[e._v(" "+e._s(e.shopQuoteCurrency)+" "+e._s(s)+" ")])],1):e._e()],1)}},{key:"status",fn:function(a){var s=a.text;return t("span",{},[e._v(" "+e._s(e.$t(s))+" ")])}},{key:"order_info",fn:function(a){var s=a.record;return t("span",{},[t("a-row",[s.order_info.last_name&&""!==s.order_info.last_name?t("a-col",{attrs:{lg:24}},[e._v(" "+e._s(e.$t("view.order.detail.ship_last_name"))+" : "+e._s(s.order_info.last_name)+" ")]):e._e(),s.order_info.first_name&&""!==s.order_info.first_name?t("a-col",{attrs:{lg:24}},[e._v(" "+e._s(e.$t("view.order.detail.ship_first_name"))+" : "+e._s(s.order_info.first_name)+" ")]):e._e(),s.order_info.phone&&""!=s.order_info.phone?t("a-col",{attrs:{lg:24}},[e._v(" "+e._s(e.$t("view.order.detail.ship_phone"))+" : "+e._s(s.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:[s.order_info.country]}})],1),t("a-col",{attrs:{lg:24}},[e._v(" "+e._s(e.$t("view.order.detail.ship_state"))+" : "+e._s(s.order_info.state)+" ")]),s.order_info.city?t("a-col",{attrs:{lg:24}},[e._v(" "+e._s(e.$t("view.order.detail.ship_city"))+" : "+e._s(s.order_info.city)+" ")]):e._e(),s.order_info.street?t("a-col",{attrs:{lg:24}},[e._v(" "+e._s(e.$t("view.order.detail.ship_street"))+" : "+e._s(s.order_info.street)+" ")]):e._e(),s.order_info.apartment?t("a-col",{attrs:{lg:24}},[e._v(" "+e._s(e.$t("view.order.detail.ship_men"))+" : "+e._s(s.order_info.apartment)+" ")]):e._e(),s.order_info.zip_code?t("a-col",{attrs:{lg:24}},[e._v(" "+e._s(e.$t("view.order.detail.zipcode"))+" : "+e._s(s.order_info.zip_code)+" ")]):e._e(),t("a-col",{attrs:{lg:24}},[e._v(" "+e._s(e.$t("view.order.detail.memberNote"))+" : "+e._s(s.order_info.member_note)+" ")])],1)],1)}},{key:"paymemberInfo",fn:function(a){var s=a.record;return t("span",{},[t("a-row",[s.last_name&&""!==s.last_name?t("a-col",{attrs:{lg:24}},[e._v(" "+e._s(e.$t("view.order.detail.ship_last_name"))+" : "+e._s(s.last_name)+" ")]):e._e(),s.first_name&&""!==s.first_name?t("a-col",{attrs:{lg:24}},[e._v(" "+e._s(e.$t("view.order.detail.ship_first_name"))+" : "+e._s(s.first_name)+" ")]):e._e(),s.phone&&""!=s.phone?t("a-col",{attrs:{lg:24}},[e._v(" "+e._s(e.$t("view.order.detail.ship_phone"))+" : "+e._s(s.phone)+" ")]):e._e(),t("a-col",{attrs:{lg:24}},[e._v(" "+e._s(e.$t("view.order.detail.ship_country"))+" : "+e._s(s.country)+" ")]),t("a-col",{attrs:{lg:24}},[e._v(" "+e._s(e.$t("view.order.detail.ship_state"))+" : "+e._s(s.state)+" ")]),t("a-col",{attrs:{lg:24}},[e._v(" "+e._s(e.$t("view.order.detail.ship_city"))+" : "+e._s(s.city)+" ")]),t("a-col",{attrs:{lg:24}},[e._v(" "+e._s(e.$t("view.order.detail.ship_street"))+" : "+e._s(s.street)+" ")]),t("a-col",{attrs:{lg:24}},[e._v(" "+e._s(e.$t("view.order.detail.ship_men"))+" : "+e._s(s.apartment)+" ")]),t("a-col",{attrs:{lg:24}},[e._v(" "+e._s(e.$t("view.order.detail.zipcode"))+" : "+e._s(s.zip_code)+" ")]),t("a-col",{attrs:{lg:24}},[t("a-button",{directives:[{name:"show",rawName:"v-show",value:"ORDER_WAIT_SHIP"===s.status,expression:"record.status === 'ORDER_WAIT_SHIP'"}],attrs:{type:"primary"},on:{click:function(t){return e.handleModifyShipping(s)}}},[e._v(" "+e._s(e.$t("view.system.resourcegroup.Update"))+" ")])],1)],1)],1)}},{key:"operation",fn:function(a){var s=a.record;return t("span",{},[t("div",[1==e.shopId?t("complaintForm",{attrs:{refId:s.order_id,type:"supply"},on:{ok:e.handleQuery}}):e._e(),1!=e.shopId||e.loading?e._e():t("complaintDetail",{attrs:{orderId:s.order_id,type:"supply"}}),t("a",{directives:[{name:"show",rawName:"v-show",value:"ORDER_WAIT_SHIP"===s.status&&1!=e.shopId&&e.isShowFahuoBtn(s),expression:"record.status === 'ORDER_WAIT_SHIP' && shopId != 1 && isShowFahuoBtn(record)"}],on:{click:function(t){return e.handleFaHuo(s)}}},[e._v(" "+e._s(e.$t("view.order.list.ship.btn"))+" ")]),"ORDER_WAIT_PAYMENT"!==s.status&&"ORDER_WAIT_SHIP"===s.status&&1!=e.shopId&&s.isDajian?t("a-divider",{attrs:{type:"vertical"}}):e._e(),"ORDER_WAIT_PAYMENT"!==s.status&&1!=e.shopId&&s.isDajian?t("a",{on:{click:function(t){return e.pushDaJian(s)}}},[e._v(e._s(e.$t("view.order.list.pushdajian")))]):e._e(),t("a",{directives:[{name:"show",rawName:"v-show",value:1===s.deduction_status&&1!=e.shopId&&s.deduction_fee>0,expression:"record.deduction_status === 1 && shopId != 1 && record.deduction_fee > 0"}],on:{click:function(t){return e.supplyOrderPay(s)}}},[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)},o=[],i=a("5530"),n=a("dbc2"),r=Object(i["a"])({},n["default"]),l=r,c=(a("0867"),a("2877")),d=Object(c["a"])(l,s,o,!1,null,null,null);t["default"]=d.exports},"7c88":function(e,t,a){"use strict";a("899b")},"7c9d2":function(e,t,a){"use strict";a.r(t);a("b0c0");var s=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,s){return t("div",{key:s,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(s)}}},[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)},o=[],i=a("5530"),n=a("0de6"),r=Object(i["a"])({},n["default"]),l=r,c=(a("4139"),a("2877")),d=Object(c["a"])(l,s,o,!1,null,"a8e571fc",null);t["default"]=d.exports},"80b8":function(e,t,a){},"899b":function(e,t,a){},"8faf":function(e,t,a){"use strict";a.r(t);var s=function(){var e=this,t=e._self._c;return t("span",[t("a-button",{attrs:{type:"primary"},on:{click:e.openLoginModal}},[e._v(e._s(e.$t("view.user.syn.register.tab1")))]),t("a-modal",{attrs:{visible:e.visible,title:e.formTitle,zIndex:9999},on:{cancel:e.Cencel}},[t("div",[t("a-form-model",{ref:"form",staticClass:"user-layout-login",attrs:{id:"formLogin",model:e.formData,rules:e.rules}},[t("a-form-model-item",{attrs:{prop:"username"}},[t("a-input",{attrs:{size:"large",placeholder:e.$t("view.config.email.add.username.label")},model:{value:e.formData.username,callback:function(t){e.$set(e.formData,"username",t)},expression:"formData.username"}},[t("a-icon",{style:{color:"rgba(0,0,0,.25)"},attrs:{slot:"prefix",type:"user"},slot:"prefix"})],1)],1),t("a-form-model-item",{attrs:{prop:"password"}},[t("a-input-password",{attrs:{size:"large",placeholder:e.$t("view.login.email.add.password.label")},model:{value:e.formData.password,callback:function(t){e.$set(e.formData,"password",t)},expression:"formData.password"}},[t("a-icon",{style:{color:"rgba(0,0,0,.25)"},attrs:{slot:"prefix",type:"lock"},slot:"prefix"})],1)],1),t("a-form-model-item",{attrs:{prop:"realname"}},[t("a-input",{attrs:{size:"large",placeholder:e.$t("view.config.email.add.realname.label")},model:{value:e.formData.realname,callback:function(t){e.$set(e.formData,"realname",t)},expression:"formData.realname"}},[t("a-icon",{style:{color:"rgba(0,0,0,.25)"},attrs:{slot:"prefix",type:"user"},slot:"prefix"})],1)],1),t("a-form-model-item",{attrs:{prop:"mobile"}},[t("a-input",{attrs:{size:"large",placeholder:e.$t("view.config.email.add.mobile.label")},model:{value:e.formData.mobile,callback:function(t){e.$set(e.formData,"mobile",t)},expression:"formData.mobile"}},[t("a-icon",{style:{color:"rgba(0,0,0,.25)"},attrs:{slot:"prefix",type:"phone"},slot:"prefix"})],1)],1),t("a-form-model-item",{attrs:{prop:"email"}},[t("a-input",{attrs:{size:"large",placeholder:e.$t("view.config.email.add.email.label")},model:{value:e.formData.email,callback:function(t){e.$set(e.formData,"email",t)},expression:"formData.email"}},[t("a-icon",{style:{color:"rgba(0,0,0,.25)"},attrs:{slot:"prefix",type:"mail"},slot:"prefix"})],1)],1),t("a-row",{attrs:{gutter:16}},[t("a-col",{staticClass:"gutter-row",attrs:{lg:18,sm:18,md:18,xs:16}},[t("a-form-model-item",{attrs:{prop:"code"}},[t("a-input",{attrs:{size:"large",type:"text",autocomplete:"off",placeholder:e.$t("view.modal.email.code.placeholder")},model:{value:e.formData.code,callback:function(t){e.$set(e.formData,"code",t)},expression:"formData.code"}},[t("a-icon",{style:{color:"rgba(0,0,0,.25)"},attrs:{slot:"prefix",type:"security-scan"},slot:"prefix"})],1)],1)],1),t("a-col",{staticClass:"gutter-row",attrs:{lg:6,sm:6,md:6,xs:8}},[t("a-button",{staticClass:"login-button",staticStyle:{padding:"0 0px"},attrs:{type:"primary",loading:e.codeLoading,size:"large"},on:{click:e.getEmailCode}},[e._v(e._s(e.codeLoading?e.$t("view.modal.code.time",{time:e.currentCodeTime}):e.$t("view.modal.email.code")))])],1)],1),t("a-form-model-item",{attrs:{prop:"distribution_code"}},[t("a-input",{attrs:{size:"large",placeholder:e.$t("view.config.add.code.label")},model:{value:e.formData.distribution_code,callback:function(t){e.$set(e.formData,"distribution_code",t)},expression:"formData.distribution_code"}},[t("a-icon",{style:{color:"rgba(0,0,0,.25)"},attrs:{slot:"prefix",type:"security-scan"},slot:"prefix"})],1)],1)],1)],1),t("template",{slot:"footer"},[t("a-button",{key:"back",on:{click:e.Cencel}},[e._v(" "+e._s(e.$t("view.service.message.modal.cancelText"))+" ")]),t("a-button",{key:"submit",attrs:{type:"primary",loading:e.loading},on:{click:e.register}},[e._v(" "+e._s(e.$t("view.user.register"))+" ")])],1)],2)],1)},o=[],i=a("5530"),n=(a("d3b7"),a("a9e3"),a("25f0"),a("c0c7")),r=a("56cd"),l=a("bc3a"),c=a.n(l),d=a("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(e){return c.a.defaults.withCredentials=!0,fetch(this.registerUrl+"/admin/member/email/verify",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)}).then((function(e){return e.json()})).then((function(e){return e}))},memberRegister:function(e){var t=JSON.parse(JSON.stringify(e));return t.role=Number(this.role),fetch(this.registerUrl+"/admin/member/register",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(t)}).then((function(e){return e.json()})).then((function(e){return 0!==e.code&&r["a"].error({message:e.message,description:e.message}),e})).catch((function(e){}))},getEmailCode:function(){var e=this;this.codeLoading||this.$refs.form.validateField("email",(function(t){t||e.emilCode({email:e.formData.email}).then((function(t){0===t.code&&(e.codeLoading=!0,e.getCodeTime(),e.$message.success(e.$t("view.modal.code.succes")))}))}))},getCodeTime:function(){var e=this,t=30;this.currentCodeTime=t,this.CodeTime=setInterval((function(){t--,e.currentCodeTime=t,t<=0&&(e.codeLoading=!1,clearInterval(e.CodeTime))}),1e3)},initData:function(){var e=this;Object(n["j"])().then((function(t){t.user&&(e.formData={realname:t.user.realname,email:t.user.email,mobile:t.user.mobile,username:t.user.username,password:Object(d["g"])(6)})}))},register:function(){var e=this;this.$refs.form.validate((function(t){t&&(e.loading=!0,e.formData.remark="蜂洞客户",e.memberRegister(e.formData).then((function(t){e.loading=!1,0===t.code&&(e.$message.success(e.$t("view.modal.register.succes")),e.formData.huoyuan_name=e.title,e.formData.huoyuan_url=e.registerUrl,e.$emit("registerSuccess",e.formData),e.Cencel())})).catch((function(t){e.loading=!1,r["a"].error({message:t.toString(),description:t.toString()})})))}))},setConfig:function(){var e=this;this.showConfigList&&this.$refs.platfConfigRef.openModal(),setTimeout((function(){var t=e.formData;e.$refs.platfConfigRef.showModal({syntype:"beehole",api_url:e.registerUrl,app_key:t.username,app_secret:t.password,beehole_login_type:2})}),500)},openLoginModal:function(){this.visible=!0},Cencel:function(){this.visible=!1}},components:{}},m=Object(i["a"])({},u),p=m,h=(a("6947"),a("2877")),f=Object(h["a"])(p,s,o,!1,null,"21b00a37",null);t["default"]=f.exports},"924b":function(e,t,a){e.exports=a.p+"img/img01.319f61f4.png"},"92c5":function(e,t,a){},a4d4:function(e,t,a){},a9d9:function(e,t,a){},b6ad:function(e,t,a){},b819:function(e,t,a){},cc90:function(e,t,a){"use strict";a.r(t);var s=a("fff4");t["default"]=s["a"]},d916:function(e,t,a){},d936:function(e,t,a){"use strict";a("92c5")},f9ee:function(e,t,a){"use strict";a.d(t,"c",(function(){return o})),a.d(t,"d",(function(){return i})),a.d(t,"b",(function(){return n})),a.d(t,"a",(function(){return r}));var s=a("b775");function o(){return Object(s["b"])({url:"/wms/methods",method:"post"})}function i(e){return Object(s["b"])({url:"/wms/set",method:"post",data:e})}function n(){return Object(s["b"])({url:"/wms/get",method:"post"})}function r(e){return Object(s["b"])({url:"/good_cang/warehouse/shipping_method/add",method:"post",data:e})}},fff4:function(e,t,a){"use strict";var s=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)+" ")])})),1)],1)},o=[],i=a("c7eb"),n=a("1da1"),r=(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(n["a"])(Object(i["a"])().mark((function t(){return Object(i["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(n["a"])(Object(i["a"])().mark((function t(){var a,s,o;return Object(i["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(r["b"])(a);case 6:s=t.sent,0===s.code&&s.list&&(e.warehouseList=s.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)):(o=e.warehouseList.some((function(t){return"warehouse_code"===e.dataKey?t.warehouse_code===e.currentValue:t.id===e.currentValue})),o||(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,s,o,!1,null,null,null);t["a"]=u.exports}}]);