UNPKG

beehole-store-server

Version:

www.bee-hole.com

1 lines 9.46 kB
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-06d8958c","chunk-1c7883c1","chunk-2d221c60"],{"0a56":function(t,e,r){"use strict";r.r(e);var o=function(){var t=this,e=t._self._c;return e("ant-modal",{attrs:{visible:t.open,"modal-title":t.$t("view.order.list.order_info"),"adjust-size":!0,modalWidth:"800",modalHeight:"550"},on:{cancel:t.cancel}},[e("template",{slot:"content"},[t.order?e("a-form-model",{attrs:{layout:"horizontal",model:t.form}},[e("a-row",[e("a-col",{attrs:{md:8,sm:6}},[e("a-form-model-item",{attrs:{label:t.$t("view.order.detail.order_id")}},[t._v(" "+t._s(t.order.order_id)+" ")])],1),e("a-col",{attrs:{md:8,sm:6}},[e("a-form-model-item",{attrs:{label:t.$t("view.order.detail.create_time"),"wrapper-col":t.wrapperCol}},[t._v(" "+t._s(t.order.create_time)+" ")])],1),e("a-col",{attrs:{md:8,sm:6}},[e("a-form-model-item",{attrs:{label:t.$t("view.order.detail.post_fee")}},[t._v(" "+t._s(t.order.post_fee)+" ")])],1),e("a-col",{attrs:{md:8,sm:6}},[e("a-form-model-item",{attrs:{label:t.$t("view.order.detail.tax_fee")}},[t._v(" "+t._s(t.order.tax_fee)+" ")])],1),e("a-col",{attrs:{md:8,sm:6}},[e("a-form-model-item",{attrs:{label:t.$t("view.order.detail.total_count")}},[t._v(" "+t._s(t.order.total_count)+" ")])],1),e("a-col",{attrs:{md:8,sm:6}},[e("a-form-model-item",{attrs:{label:t.$t("view.order.detail.payment")}},[t._v(" "+t._s(t.order.payment)+" ")])],1),e("a-col",{attrs:{md:8,sm:6}},[e("a-form-model-item",{attrs:{label:t.$t("view.order.detail.shipping_corp")}},[t._v(" "+t._s(t.order.logistics_name)+" ")])],1),e("a-col",{attrs:{md:8,sm:6}},[e("a-form-model-item",{attrs:{label:t.$t("view.order.detail.shipping_code")}},[t._v(" "+t._s(t.order.shipment_id)+" ")])],1),e("a-col",{attrs:{md:8,sm:6}},[e("a-form-model-item",{attrs:{label:t.$t("view.order.detail.ship_time"),"wrapper-col":t.wrapperCol}},[t._v(" "+t._s(t.order.ship_time)+" ")])],1),e("a-col",{attrs:{md:8,sm:6}},[e("a-form-model-item",{attrs:{label:t.$t("view.order.detail.ship_first_name"),"wrapper-col":t.wrapperCol}},[t._v(" "+t._s(t.order.first_name)+" ")])],1),e("a-col",{attrs:{md:8,sm:6}},[e("a-form-model-item",{attrs:{label:t.$t("view.order.detail.ship_last_name"),"wrapper-col":t.wrapperCol}},[t._v(" "+t._s(t.order.last_name)+" ")])],1),e("a-col",{attrs:{md:8,sm:6}},[e("a-form-model-item",{attrs:{label:t.$t("view.order.detail.ship_phone"),"wrapper-col":t.wrapperCol}},[t._v(" "+t._s(t.order.phone)+" ")])],1),e("a-col",{attrs:{md:8,sm:6}},[e("a-form-model-item",{attrs:{label:t.$t("view.order.detail.ship_country"),"wrapper-col":t.wrapperCol}},[t._v(" "+t._s(t.order.country)+" ")])],1),e("a-col",{attrs:{md:8,sm:6}},[e("a-form-model-item",{attrs:{label:t.$t("view.order.detail.ship_state"),"wrapper-col":t.wrapperCol}},[t._v(" "+t._s(t.order.state)+" ")])],1),e("a-col",{attrs:{md:8,sm:6}},[e("a-form-model-item",{attrs:{label:t.$t("view.order.detail.ship_city"),"wrapper-col":t.wrapperCol}},[t._v(" "+t._s(t.order.city)+" ")])],1),e("a-col",{attrs:{md:8,sm:6}},[e("a-form-model-item",{attrs:{label:t.$t("view.order.detail.ship_street"),"wrapper-col":t.wrapperCol}},[t._v(" "+t._s(t.order.street)+" ")])],1)],1),e("a-row",t._l(t.order.order_item,(function(r){return e("a-col",{key:r.sku_id,attrs:{md:8,sm:8}},[e("a-row",{attrs:{type:"flex"}},[e("a-col",[e("a-avatar",{attrs:{shape:"square",size:85,src:r.img_url}})],1),e("a-col",{staticStyle:{"margin-left":"10px"},attrs:{span:14}},[e("a-row",{attrs:{type:"flex"}},[e("a-col",{attrs:{flex:3}},[t._v(" "+t._s(r.title)+" ")])],1),e("a-row",{attrs:{type:"flex"}},[e("a-col",[t._v(" "+t._s(r.price)+" ")]),e("a-col",{staticStyle:{"text-align":"right"},attrs:{flex:3}},[e("a-icon",{staticStyle:{"font-size":"10px","margin-right":"0","padding-right":"0"},attrs:{type:"close"}}),t._v(" "+t._s(r.num)+" ")],1)],1),e("a-row",{attrs:{type:"flex"}},[e("a-col",{attrs:{flex:3}},["string"==typeof r.sku_prop?e("span",[t._v(" "+t._s(r.sku_prop)+" ")]):e("span",t._l(r.sku_prop,(function(r,o){return e("div",{key:o},[e("span",[t._v(t._s(o)+":"+t._s(r))])])})),0)])],1)],1)],1)],1)})),1),e("a-row",[e("a-col",{attrs:{md:8,sm:8}},[e("a-form-model-item",{attrs:{label:t.$t("view.order.detail.user_note")}},[t._v(" "+t._s(t.order.user_note)+" ")])],1)],1)],1):t._e()],1)],2)},a=[],i=r("5530"),s=r("cc7a"),d=Object(i["a"])({},s["default"]),n=d,l=r("2877"),c=Object(l["a"])(n,o,a,!1,null,null,null);e["default"]=c.exports},"1b6c":function(t,e,r){"use strict";r.d(e,"a",(function(){return i})),r.d(e,"b",(function(){return s}));var o=r("5530"),a=r("bf0f");function i(t,e){return function(){return Object(a["b"])(t,Object(o["a"])({},e))}}function s(t,e){return Object(a["b"])(t,Object(o["a"])({},e))}},"3a10":function(t,e,r){"use strict";r.d(e,"g",(function(){return i})),r.d(e,"d",(function(){return s})),r.d(e,"b",(function(){return d})),r.d(e,"j",(function(){return n})),r.d(e,"i",(function(){return l})),r.d(e,"h",(function(){return c})),r.d(e,"e",(function(){return u})),r.d(e,"f",(function(){return m})),r.d(e,"k",(function(){return p})),r.d(e,"c",(function(){return f})),r.d(e,"a",(function(){return _}));var o=r("b775"),a={orderList:"/order/list",orderFaHuo:"/order/ship",orderAfter:"/after_sales/list",orderRefund:"/after_sales/refund",orderPushLog:"/order/push/log",orderPush:"/order/push",orderInsure:"/order/insure",orderItems:"/order/items",wuliuList:"/order/waybill/list",orderExport:"/order/export",memberList:"/member/get_member_list"};function i(t){return Object(o["b"])({url:a.orderList,method:"post",data:t})}function s(t){return Object(o["b"])({url:a.orderFaHuo,method:"post",data:t})}function d(t){return Object(o["b"])({url:a.orderAfter,method:"post",data:t})}function n(t){return Object(o["b"])({url:a.orderRefund,method:"post",data:t})}function l(t){return Object(o["b"])({url:a.orderPushLog,method:"post",data:t})}function c(t){return Object(o["b"])({url:a.orderPush,method:"post",data:t})}function u(t){return Object(o["b"])({url:a.orderInsure,method:"post",data:t})}function m(t){return Object(o["b"])({url:a.orderItems,method:"post",data:t})}function p(t){return Object(o["b"])({url:a.wuliuList,method:"post",data:t})}function f(t){return Object(o["b"])({url:a.orderExport,method:"post",data:t})}function _(t){return Object(o["b"])({url:a.memberList,method:"post",data:t})}},"8d52":function(t,e,r){"use strict";r.r(e);var o=r("5530"),a=(r("d81d"),r("3a10")),i=r("5d9e"),s=r("0a56"),d=r("1b6c"),n=r("2f62");e["default"]={name:"OrderAfter",props:{},components:{AdvanceTable:i["a"],OrderDetail:s["default"]},computed:Object(o["a"])({},Object(n["c"])(["shopId"])),data:function(){return{loginType:"",queryParam:{page_no:1,limit:10},order_id:"",conditions:[],columns:[],list:[],total_count:0,labelCol:{span:6},wrapperCol:{span:18},loading:!1,multiple:!0,selectedRowKeys:[],expandedRowKeys:[],orderDetailModal:!1}},created:function(){this.initColunmns()},methods:{handleQuery:function(){this.getList()},resetQuery:function(){this.order_id="",this.conditions=[],this.getList()},initColunmns:function(){this.columns=[{title:Object(d["a"])("view.order.list.after_sale_id"),dataIndex:"after_sale_id",width:"200px"},{title:Object(d["a"])("view.order.list.order_id"),dataIndex:"order_id",width:"200px",scopedSlots:{customRender:"order_id"}},{title:Object(d["a"])("view.order.list.refund_amt"),dataIndex:"refund_amt",scopedSlots:{customRender:"refund_amt"}},{title:Object(d["a"])("view.order.after.status"),dataIndex:"status",scopedSlots:{customRender:"status"}},{title:Object(d["a"])("view.order.after.reason"),dataIndex:"reason"},{title:Object(d["a"])("view.order.after.create_time"),dataIndex:"create_time",ellipsis:!0,scopedSlots:{customRender:"create_time"}},{title:Object(d["a"])("view.item.list.operation"),dataIndex:"operation",scopedSlots:{customRender:"operation"}}],this.getList()},getList:function(){var t=this;t.list=[],t.total_count=0,this.order_id&&(this.queryParam.order_id=this.order_id),Object(a["b"])(this.queryParam).then((function(e){t.list=e.list,t.total_count=e.total}))},back:function(){this.getList()},changeSize:function(t,e){this.queryParam.page_no=t,this.queryParam.limit=e,this.getList()},onShowSizeChange:function(t,e){this.queryParam.limit=e,this.getList()},onSelectChange:function(t,e){this.selectedRowKeys=t,this.selectedRows=e,this.ids=this.selectedRows.map((function(t){return t.order_id})),this.single=1!==t.length,this.multiple=!t.length},handleOrderDetail:function(t){var e=this;this.orderDetailModal=!0,t.order_id&&(this.conditions["order_id"]={field:"order_id",operator:"eq",value:t.order_id}),this.shopId&&(this.conditions["shop_id"]={field:"shop_id",operator:"eq",value:this.shopId});var r=[];for(var o in this.conditions)r.push(this.conditions[o]);r.length&&Object(a["g"])(r).then((function(t){e.$nextTick((function(){return e.$refs.OrderDetail.handleOrderDetail(t.list[0])}))}))},orderQuery:function(t){this.checkedStatus=t,this.getList()},handleRefund:function(t){var e=this;this.$confirm({title:"确定退款么?",onOk:function(){return Object(a["j"])({after_sale_id:t.after_sale_id}).then((function(t){e.getList(),e.$message.success("退款成功",3)}))},onCancel:function(){}})}}}},cc7a:function(t,e,r){"use strict";r.r(e);var o=r("5d9e"),a=r("2dd7");e["default"]={name:"orderDetail",components:{AdvanceTable:o["a"],AntModal:a["a"]},data:function(){return{formTitle:"订单详情",open:!1,order:null,form:{},wrapperCol:{}}},methods:{handleOrderDetail:function(t){this.order=t,this.open=!0},cancel:function(){this.open=!1,this.$emit("close")}}}}}]);