1 line
32 KiB
JavaScript
1 line
32 KiB
JavaScript
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-21b6a43a"],{"20af":function(e,t,i){"use strict";i.r(t);var o=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{class:[3==this.fun.getPhoneEnv()?"pcStyle":""],attrs:{id:"goodsinfo"}},[i("c-title",{attrs:{hide:!1,text:"订单详情"}}),i("div",{staticClass:"addr"},[i("ul",{staticClass:"addr-info"},["DeliveryReplenish"!=e.orderType||this.fun.isTextEmpty(this.service_station)?e._e():[i("i",{staticClass:"iconfont icon-dingwei"}),i("li",{staticStyle:{"margin-bottom":"0.5rem","font-size":"16px"}},[e._v(" 服务站:"+e._s(e.service_station.service_name)+" ("+e._s(e.service_station.mobile)+") ")]),i("li",{staticStyle:{color:"#999"}},[e._v(" "+e._s(e.service_station.full_address)+" ")]),i("div",{staticStyle:{"border-bottom":"1px solid #ebebeb",height:"0.5rem"}})],8!=e.order_data.dispatch_type_id||this.fun.isTextEmpty(e.order_data.package_deliver)?e._e():[i("li",{staticStyle:{"margin-bottom":"0.5rem","font-size":"14px"}},[e._v("提货人:"+e._s(e.receiver)+" "+e._s(e.mobile))]),i("li",{staticStyle:{"margin-bottom":"0.5rem","font-size":"14px"}},[e._v(" 提货点:"+e._s(e.package_deliver.deliver_name)+" "+e._s(e.package_deliver.deliver_mobile)+" ")]),i("li",{staticStyle:{color:"#333"}},[i("i",{staticClass:"iconfont icon-dingwei"}),e._v(" "+e._s(e.package_deliver.full_address)+" ")])],8==e.order_data.dispatch_type_id&&this.fun.isTextEmpty(e.order_data.package_deliver)?[i("li",{staticStyle:{"margin-bottom":"0.5rem","font-size":"14px"}},[e._v(" 获取收货信息出错了,请联系客服! ")])]:e._e(),8!=e.order_data.dispatch_type_id?[i("i",{staticClass:"iconfont icon-dingwei"}),i("li",{staticStyle:{"margin-bottom":"0.5rem","font-size":"16px"}},[e._v("收件人:"+e._s(e.receiver)+" ("+e._s(e.mobile)+")")]),i("li",{staticStyle:{color:"#999"}},["hotel"==e.orderType?i("span",{staticStyle:{"margin-right":"0.3125rem"}},[e._v(" "+e._s(e._f("escapeTitle")(e.hotel_name))+" ")]):e._e(),e._v(e._s(e.address)+" ")])]:e._e()],2),i("div",{staticClass:"clearfix"})]),e._l(e.order_data.has_many_order_goods,(function(t,o){return i("div",{key:o,staticClass:"goods",on:{click:function(i){return e.toGoodsDetail(t,e.order_data.is_virtual,t.is_course)}}},[i("div",{staticClass:"img"},[i("img",{attrs:{src:t.thumb}})]),i("ul",{staticClass:"inner"},[i("li",{staticClass:"name"},[e._v(e._s(e._f("escapeTitle")(t.title)))]),i("li",{directives:[{name:"show",rawName:"v-show",value:0==e.order_data.is_virtual,expression:"order_data.is_virtual == 0"}],staticClass:"option"},[e._v("规格: "+e._s(t.goods_option_title))]),40==e.order_data.plugin_id?i("li",{staticClass:"option",staticStyle:{"margin-top":"2px"}},[e._v(" 押金: ")]):e._e()]),i("ul",{staticClass:"price"},[i("li",{staticClass:"money",staticStyle:{"margin-top":"3px"}},[i("small",[e._v(e._s(e.$i18n.t("money")))]),e._v(" "+e._s(t.price)+" ")]),"hotel"!=e.orderType?i("li",{staticClass:"option",staticStyle:{"margin-top":"10px"}},[e._v("×"+e._s(t.total))]):e._e(),"hotel"==e.orderType?i("li",{staticClass:"option"},[e._v(e._s(e.night_day)+"晚"+e._s(e.order_data.goods_total)+"间")]):e._e(),40==e.order_data.plugin_id?i("li",{staticClass:"option",staticStyle:{"margin-top":"9px"}},[e._v(" "+e._s(t.lease_toy_goods.deposit)+" ")]):e._e()]),i("div",{staticStyle:{clear:"both"}})])})),i("div",{staticClass:"tbs"},[i("div",{staticClass:"tbs-number-tra"},[i("ul",{staticClass:"number"},[i("li",{staticClass:"left"},[e._v("订单编号:")]),i("li",{staticClass:"right"},[e._v(e._s(e.order_data.order_sn))])]),40==e.order_data.plugin_id?i("ul",{staticClass:"tra"},[i("li",{staticClass:"left"},[e._v("租期:")]),i("li",{staticClass:"right"},[e._v(e._s(e.order_data.lease_toy.return_days)+"天")])]):e._e(),i("ul",{staticClass:"tra"},[i("li",{staticClass:"left"},[e._v("交易状态:")]),i("li",{staticClass:"right"},[e._v(e._s(e.order_data.status_name))])]),e.order_data.note?i("ul",{staticClass:"tra"},[i("li",{staticClass:"left"},[e._v("买家留言:")]),i("li",{staticClass:"right"},[e._v(e._s(e.order_data.note))])]):e._e(),40==e.order_data.plugin_id?i("ul",{staticClass:"tra"},[i("li",{staticClass:"left"},[e._v("租金总金额:")]),i("li",{staticClass:"right"},[e._v(e._s(e.$i18n.t("money"))+e._s(e.order_data.order_goods_price))])]):e._e()]),"hotel"==e.orderType?i("div",{staticClass:"tbs-number-tra"},[i("ul",{staticClass:"number"},[i("li",{staticClass:"left"},[e._v("入住日期:")]),i("li",{staticClass:"right"},[e._v(e._s(e.hotel_start))])]),i("ul",{staticClass:"number"},[i("li",{staticClass:"left"},[e._v("离店日期:")]),i("li",{staticClass:"right"},[e._v(e._s(e.hotel_end))])]),i("ul",{staticClass:"number"},[i("li",{staticClass:"left"},[e._v("天数:")]),i("li",{staticClass:"right"},[e._v(e._s(e.night_day)+"天")])]),i("ul",{staticClass:"number"},[i("li",{staticClass:"left"},[e._v("房间数量:")]),i("li",{staticClass:"right"},[e._v(e._s(e.order_data.goods_total)+"间")])])]):e._e(),e.order_data.cashier_order?[i("div",{staticClass:"info"},[i("ul",{staticClass:"time"},[i("li",{staticClass:"left"},[e._v("下单时间:")]),i("li",{staticClass:"right"},[e._v(e._s(e.order_data.cashier_order.created_at))])]),i("ul",{staticClass:"name"},[i("li",{staticClass:"left"},[e._v("姓名:")]),i("li",{staticClass:"right"},[e._v(e._s(e.order_data.cashier_order.realname))])]),i("ul",{staticClass:"member"},[i("li",{staticClass:"left"},[e._v("电话:")]),i("li",{staticClass:"right"},[e._v(e._s(e.order_data.cashier_order.mobile))])])])]:e._e(),"myDeliver"!=e.orderType?[e.order_data.pay_type_name?[i("ul",{staticClass:"Pay-method"},[i("li",{staticClass:"left"},[e._v("支付方式:")]),i("li",{staticClass:"right"},[e._v(e._s(e.order_data.pay_type_name))])])]:e._e(),i("div",{attrs:{id:"discount"}},[e._l(e.order_data.order_discount,(function(t,o){return[i("ul",{key:o,staticClass:"Discount"},[i("li",{staticClass:"left"},[e._v(e._s(t.name)+":")]),i("li",{staticClass:"right"},[e._v(e._s(e.$i18n.t("money"))+e._s(t.amount))])])]})),e._l(e.order_data.order_fees,(function(t,o){return[i("ul",{key:o,staticClass:"Discount"},[i("li",{staticClass:"left"},[e._v(e._s(t.name)+":")]),i("li",{staticClass:"right"},[e._v(e._s(e.$i18n.t("money"))+e._s(t.amount))])])]}))],2),""==e.pay_type_id&&"shop"==e.orderType?[i("ul",{staticClass:"Fre"},[i("li",{staticClass:"left"},[e._v("运费:")]),i("li",{staticClass:"right"},[e._v(e._s(e.$i18n.t("money"))+e._s(e.order_data.dispatch_price))])])]:e._e(),i("ul",{staticClass:"Sub"},[i("li",{staticClass:"left"},[e._v("商品小计:")]),40!=e.order_data.plugin_id?i("li",{staticClass:"right"},[e._v(" "+e._s(e.$i18n.t("money"))+e._s(e.order_data.order_goods_price)+" ")]):e._e(),40==e.order_data.plugin_id?i("li",{staticClass:"right"},[e._v(" "+e._s(e.$i18n.t("money"))+e._s(e.order_data.order_goods_price)+" ")]):e._e()]),40==e.order_data.plugin_id?i("ul",{staticClass:"Sub"},[i("li",{staticClass:"left"},[e._v("押金:")]),i("li",{staticClass:"right"},[e._v(e._s(e.$i18n.t("money"))+e._s(e.order_data.lease_toy.deposit_total))])]):e._e(),i("ul",{staticClass:"Real-pay"},[40!=e.order_data.plugin_id?i("li",{staticClass:"left"},[e._v(" 实付款: ")]):e._e(),40==e.order_data.plugin_id?i("li",{staticClass:"left"},[e._v(" 合计:(押金"+e._s(e.$i18n.t("money"))+e._s(e.order_data.lease_toy.deposit_total)+"可退): ")]):e._e(),i("li",{staticClass:"right"},[i("small",[e._v(e._s(e.$i18n.t("money")))]),e._v(" "+e._s(e.order_data.price)+" ")])])]:e._e()],2),i("div",{staticClass:"detail_pay"},e._l(e.order_data.button_models,(function(t,o){return i("div",{key:o,staticClass:"order_delete",on:{click:function(i){return e.operation(t,e.order_data)}}},[e._v(" "+e._s(t.name)+" ")])})),0),i("div",{staticClass:"qrcode"},[i("van-popup",{attrs:{position:"center",modal:"true"},model:{value:e.showQrcode,callback:function(t){e.showQrcode=t},expression:"showQrcode"}},[i("img",{staticStyle:{width:"100%"},attrs:{src:e.qrcode}}),i("div",{staticStyle:{height:"1.875rem"}},[e._v("请核销员扫码")])])],1),i("van-dialog",{attrs:{showConfirmButton:!1},model:{value:e.dialogVisible,callback:function(t){e.dialogVisible=t},expression:"dialogVisible"}},[i("div",{staticClass:"title"},[e._v("确认发货")]),i("section",{staticStyle:{width:"100%","text-align":"left"}},[e.addresseeInfo?i("div",{staticStyle:{width:"100%",height:"80px"}},[i("div",{staticStyle:{width:"28%",height:"30px",float:"left","line-height":"30px"}},[e._v(" 收件人信息: ")]),i("div",{staticStyle:{width:"70%",float:"left"}},[i("div",{staticStyle:{width:"100%",height:"30px","line-height":"30px",overflow:"visible"}},[i("span",[e._v("收件人:"+e._s(e.addresseeInfo.realname))]),i("span",[e._v("("+e._s(e.addresseeInfo.mobile)+")")])]),i("div",{staticStyle:{width:"100%",overflow:"visible","margin-bottom":"10px"}},[e._v("收货地址:"+e._s(e.addresseeInfo.address))])])]):e._e(),i("div",{staticStyle:{width:"100%",height:"45px","line-height":"45px"}},[i("div",{staticStyle:{float:"left",width:"28%",height:"45px"}},[e._v("快递公司:")]),i("div",{staticStyle:{float:"left",height:"45px",width:"60%"}},[i("van-button",{attrs:{plain:"",type:"primary"},on:{click:e.seleRegional}},[e._v(" "+e._s(e.regional)+" ")])],1)]),i("div",{staticStyle:{width:"100%",height:"45px","line-height":"45px"}},[i("div",{staticStyle:{float:"left",width:"28%",height:"45px"}},[e._v("快递单号:")]),i("div",{staticStyle:{float:"left",height:"45px",width:"60%"}},[i("van-cell-group",[i("van-field",{attrs:{placeholder:"请输入快递单号"},model:{value:e.numberName,callback:function(t){e.numberName=t},expression:"numberName"}})],1)],1)])]),i("div",{staticClass:"foot"},[i("van-button",{staticStyle:{float:"right"},attrs:{type:"primary"},on:{click:e.sendGoogs}},[e._v("确 定 ")]),i("van-button",{staticStyle:{float:"right"},attrs:{type:"default"},on:{click:e.sendCancel}},[e._v("取 消 ")])],1)]),i("van-popup",{attrs:{position:"bottom",overlay:!0},model:{value:e.dateshow_1,callback:function(t){e.dateshow_1=t},expression:"dateshow_1"}},[i("van-picker",{attrs:{columns:e.columns,"show-toolbar":""},on:{change:e.onChange,cancel:e.onCancelbtn,confirm:e.onConfirmbtn}})],1)],2)},a=[],s=(i("e7e5"),i("d399")),r=(i("14d9"),i("d81d"),i("b0c0"),i("ac1f"),i("1276"),i("6968")),d={data:function(){return{regional:"请选择快递公司",dateshow_1:!1,columns:[],order_id:"",order_data:"",bottomStatus:"",selected:"1",allLoaded:!1,isVirtual:!1,receiver:"",mobile:"",address:"",pay_type_id:"",orderType:"shop",order_pay_id:"",dispatch_type_id:"",qrcode:"",showQrcode:!1,dialogVisible:!1,expressName:"",numberName:"",addresseeInfo:"",options:[],hotel_start:"",hotel_end:"",night_day:"",hotel_name:"",service_station:{},package_deliver:{}}},methods:{init:function(){this.order_id="",this.order_data="",this.bottomStatus="",this.selected="1",this.allLoaded=!1,this.isVirtual=!1,this.receiver="",this.mobile="",this.address="",this.qrcode="",this.showQrcode=!1,this.dialogVisible=!1,this.options=[],this.regional="请选择快递公司",this.dateshow_1=!1,this.columns=[],this.hotel_start="",this.hotel_end="",this.night_day="",this.hotel_name="",this.service_station=""},operation:function(e,t){8==e.value?this.checklogistics(t,e):12==e.value?this.deleteOrder(t,e):10==e.value?this.comment(t,e):1==e.value?this.toPay(t,e):13==e.value?this.toRefund(t,e):9==e.value?this.cancleOrder(t,e):5==e.value?this.confirmOrder(t,e):18==e.value?this.toRefundDetail(t,e):"cashierPay"==e.value?this.cashPayOrder(t,e):"verification_code"==e.value?this.verification(t,e):20==e.value?this.verificationCash(t,e):3==e.value?this.gotoRefund(t.id):40==e.value?this.gotoRefundCheck(t.id):4==e.value?this.gotoMakeSure(t.id):21==e.value?this.shopRecord():22==e.value?this.payMoney(t,e):23==e.value?(this.orderPayId=t.id,3==t.dispatch_type_id?this.sendGoogs():this.dialogVisible=!0,this.expressName="",this.numberName=""):24==e.value?this.deliverGoodsCancel(t,e):25==e.value?this.collectGoods(t,e):26==e.value?this.closeOrderPay(t,e):27==e.value?this.evaluate(e,t):28==e.value?this.truckList(e,t):41==e.value?window.location.href=e.api:50==e.value?this.checkInvoice(e,t):11==e.value?this.confirmHotelOrder(e.api,t.id):"coupon"==e.value?this.$router.push(this.fun.getUrl("couponShare",{order_id:t.id})):"check_out"===e.value?this.sureOut(t,e):"clerk_code"===e.value||"package_deliver"===e.value?(this.orderPayId=t.id,this.confirmWriteOff(t,e)):"service_station_pay"===e.value?(this.orderPayId=t.id,this.payMoney(t,e)):"service_station_send"===e.value?(this.orderPayId=t.id,this.getCompany(),this.dialogVisible=!0,this.expressName="",this.numberName=""):"service_station_cancel_send"===e.value?(this.orderPayId=t.id,this.deliverGoodsCancel(t,e)):"service_station_complete"===e.value?(this.orderPayId=t.id,this.collectGoods(t,e)):"service_station_close"===e.value?(this.orderPayId=t.id,this.closeOrderPay(t,e)):"lease_toy_refund"==e.value||"package_deliver_clerk"==e.value?this.getReturn(e,t):"lease_toy_apply_adopt"==e.value?this.$router.push(this.fun.getUrl("OrderReturn",{id:t.id})):"lease_toy_return_info"==e.value?this.$router.push(this.fun.getUrl("orderruturninfo",{id:t.id})):this.getReturn(e,t)},getReturn:function(e,t){var i=this;$http.get(e.api,{order_id:t.id}).then((function(e){1==e.result?(i.$dialog.alert({message:e.msg}),i.getNetData()):i.$dialog.alert({message:e.msg})}))},orderReceiving:function(e,t){var i=this;this.$dialog.confirm({message:"确定接收此单配送任务?"}).then((function(){var e=i,o={order_id:e.orderPayId},a=t.api;$http.get(a,o).then((function(t){1==t.result?(e.$emit("ConfrimOrderNotification","pay"),Object(s["a"])("接单成功")):e.$dialog.alert({message:t.msg})}),(function(e){}))})).catch((function(){}))},confirmWriteOff:function(e,t){var i=this,o="";"clerk_code"==t.value?o="plugin.delivery-station.frontend.order.detail.qr-code-url":"package_deliver"==t.value&&(o=t.api),$http.get(o,{order_id:e.id},"正在获取核销码").then((function(e){1==e.result?("clerk_code"==t.value?i.qrcode=e.data.qrcode_url:"package_deliver"==t.value&&(i.qrcode=e.data.qr_code_url),i.showQrcode=!0):i.$dialog.alert({message:e.msg})}),(function(e){}))},confirmDelivery:function(e,t){var i=this;this.$dialog.confirm({message:"确定配送此单?"}).then((function(){var e=i,o={order_id:e.orderPayId},a=t.api;$http.get(a,o).then((function(t){1==t.result?(e.$emit("ConfrimOrderNotification","pay"),Object(s["a"])("配送成功")):e.$dialog.alert({message:t.msg})}),(function(e){}))})).catch((function(){}))},cancelDelivery:function(e,t){var i=this;this.$dialog.confirm({message:"确定取消配送此单?"}).then((function(){var e=i,o={order_id:e.orderPayId},a=t.api;$http.get(a,o).then((function(t){1==t.result?(e.$emit("ConfrimOrderNotification","pay"),Object(s["a"])("取消配送成功")):e.$dialog.alert({message:t.msg})}),(function(e){}))})).catch((function(){}))},checkInvoice:function(e,t){this.$router.push(this.fun.getUrl("Invoice",{order_id:t.id}))},truckList:function(e,t){this.$router.push(this.fun.getUrl("TruckList",{order_id:t.id}))},evaluate:function(e,t){this.$router.push(this.fun.getUrl("DeliveryEvaluate",{order_id:t.id,api:e.api,name:"distributor"}))},payMoney:function(e,t){var i=this;this.$dialog.confirm({message:"确认支付该订单?"}).then((function(){var e=i,o={order_id:e.$route.params.order_id},a="";a="supplier"==i.orderType?t.api:"plugin.store-cashier.frontend.store.center.order-operation.pay",$http.get(a,o).then((function(t){1==t.result?(e.getNetData(),Object(s["a"])("支付成功")):e.$dialog.alert({message:t.msg})}),(function(e){}))})).catch((function(){}))},closeOrderPay:function(e,t){var i=this;this.$dialog.confirm({message:"确定关闭订单?"}).then((function(){var e=i,o={order_id:e.$route.params.order_id},a="";a="supplier"==i.orderType?t.api:"plugin.store-cashier.frontend.store.center.order-operation.close",$http.get(a,o).then((function(t){1==t.result?("supplier"==e.orderType?e.$router.go(-1):e.$router.push(e.fun.getUrl("storeOrderlist",{status:"0",orderType:"store"})),Object(s["a"])("关闭订单成功")):e.$dialog.alert({message:t.msg})}),(function(e){}))})).catch((function(){}))},deliverGoodsCancel:function(e,t){var i=this;this.$dialog.confirm({message:"确定取消发货?"}).then((function(){var e=i,o={order_id:e.$route.params.order_id},a="";a="supplier"==i.orderType?t.api:"plugin.store-cashier.frontend.store.center.order-operation.cancel-send",$http.get(a,o).then((function(t){1==t.result?(e.getNetData(),Object(s["a"])("取消发货成功")):e.$dialog.alert({message:t.msg})}),(function(e){}))})).catch((function(){}))},getCompany:function(){var e=this,t="";t="supplier"==this.orderType?"plugin.supplier.frontend.order.express-company":"plugin.store-cashier.frontend.store.center.sendOrder",$http.get(t,{order_id:e.$route.params.order_id}).then((function(t){if(1===t.result){e.options=[],e.options=t.data.express_companies;var i=e.options.map((function(e){return e.name}));e.columns=i,e.addresseeInfo=t.data.address,e.address=t.data.address.address,e.mobile=t.data.address.mobile,e.receiver=t.data.address.realname}else e.$dialog.alert({message:t.msg})}),(function(e){}))},selectCompany:function(e){},sureOut:function(e,t){var i=this;this.$dialog.confirm({message:"确认退房?"}).then((function(){var e=i,o={order_id:e.$route.params.order_id};$http.get(t.api,o).then((function(t){1===t.result?(e.getNetData(),e.$notify({background:"#f0f9eb",message:"退房成功",color:"#67c23a"})):e.$dialog.alert({message:t.msg})}),(function(e){}))})).catch((function(){}))},collectGoods:function(e,t){var i=this;this.$dialog.confirm({message:"确认收货?"}).then((function(){var e=i,o={order_id:e.$route.params.order_id},a="";a="supplier"==i.orderType?t.api:"plugin.store-cashier.frontend.store.center.order-operation.receive",$http.get(a,o).then((function(t){1===t.result?(e.getNetData(),Object(s["a"])("收货成功")):e.$dialog.alert({message:t.msg})}),(function(e){}))})).catch((function(){}))},sendCancel:function(){this.dialogVisible=!1},sendGoogs:function(){var e=this,t={},i="";"supplier"==this.orderType?(i="plugin.supplier.frontend.order.send",t={order_id:e.orderPayId,express_code:e.expressName.value,express_company_name:e.expressName.name,express_sn:e.numberName}):(i="plugin.store-cashier.frontend.store.center.order-operation.send",t={order_id:e.$route.params.order_id,express_code:e.expressName,express_sn:e.numberName}),$http.get(i,t).then((function(t){1==t.result?(e.dialogVisible=!1,e.getNetData(),e.$notify({background:"#f0f9eb",message:"发货成功",color:"#67c23a"})):e.$dialog.alert({message:t.msg})}),(function(e){}))},handleClose:function(e){this.$dialog.confirm({title:"提示",message:"确认关闭?"}).then((function(){e()})).catch((function(){}))},checklogistics:function(e,t){this.$router.push(this.fun.getUrl("logistics",{id:e.id}))},cashPayOrder:function(e,t){var i=this;this.$dialog.confirm({message:"确定此订单已付款?"}).then((function(){i.sentRequest(t.api,{order_id:e.id,order_pay_id:i.order_pay_id},!1)})).catch((function(){}))},verification:function(e,t){this.$router.push(this.fun.getUrl("orderVerification",{order_id:e.id,api:t.api}))},verificationCash:function(e,t){var i=this;this.$dialog.confirm({message:"确定此订单已付款?"}).then((function(){i.sentRequest("plugin.store-cashier.frontend.store.order-operation.pay",{order_id:e.id,order_pay_id:i.order_pay_id},!1)})).catch((function(){}))},cancleOrder:function(e,t){var i=this;this.$dialog.confirm({message:"确定取消此订单?"}).then((function(){i.sentRequest(t.api,{order_id:e.id},!1)})).catch((function(){}))},deleteOrder:function(e,t){var i=this;this.$dialog.confirm({message:"确定删除此订单?"}).then((function(){i.sentRequest(t.api,{order_id:e.id},!1)})).catch((function(){}))},toPay:function(e,t){this.$router.push(this.fun.getUrl("orderpay",{status:1,order_ids:e.id}))},comment:function(e,t){this.$router.push(this.fun.getUrl("comment",{order:e}))},confirmOrder:function(e,t){var i=this;this.$dialog.confirm({message:"您确定"+t.name+"?"}).then((function(){var o=i;$http.get(t.api,{order_id:e.id},"正在处理订单...").then((function(e){1==e.result?(o.getNetData(),o.$dialog.alert({message:e.msg})):o.$dialog.alert({message:e.msg})}),(function(e){o.$dialog.alert({message:e.msg}),o.$router.push(o.fun.getUrl("home",{}))}))})).catch((function(){}))},toRefundDetail:function(e,t){this.$router.push(this.fun.getUrl("aftersales",{refund_id:e.refund_id}))},toRefund:function(e,t){this.$router.push(this.fun.getUrl("refund",{order:e,order_type:1}))},toGoodsDetail:function(e,t,i){if("lease_toy"!=this.orderType){if(0==t)if(1==i)this.$router.push(this.fun.getUrl("CourseDetail",{id:e.goods_id}));else{if(0!=i)return;32==this.order_data.plugin_id?this.$router.push(this.fun.getUrl("goodsO2O",{id:e.goods_id,tag:"o2o",store_id:e.store_id})):54==this.order_data.plugin_id?this.$router.push(this.fun.getUrl("GroupGoods",{id:"0"},{fight_groups:e.goods_id})):this.$router.push(this.fun.getUrl("goods",{id:e.goods_id}))}}else this.$router.push(this.fun.getUrl("goods",{id:e.goods_id}))},sentRequest:function(e,t,i){var o=this;$http.get(e,t,"").then((function(e){1==e.result?(o.$dialog.alert({message:e.msg}),window.history.length<=1?o.$router.push(o.fun.getUrl("home",{})):o.$router.go(-1)):o.$dialog.alert({message:e.msg})}),(function(e){}))},getNetData:function(e){var t=this,i="";i="myDeliver"==this.orderType?"plugin.channel.frontend.freedom-order-detail.index":"dismyReplenishment"==this.orderType?"plugin.channel.frontend.replenishment-order-detail.index":"plugin.channel.frontend.order-detail.index";var o={};o=t.fun.getKey("is_clerk")?{order_id:t.$route.params.order_id,is_clerk:t.fun.getKey("is_clerk")}:{order_id:t.$route.params.order_id},$http.get(i,o,"正在获取订单").then((function(e){if(1===e.result){var i=e.data;t.order_data=i,t.order_pay_id=i.order_pay_id,t.dispatch_type_id=i.dispatch_type_id,i.address_info.address?(t.address=i.address_info.address,t.mobile=i.address_info.mobile,t.receiver=i.address_info.realname):(t.address=i.address_info.store_address,t.mobile=i.address_info.member_mobile,t.receiver=i.address_info.member_realname),t.pay_type_id=i.pay_type_id,"hotel"==t.orderType&&(t.hotel_start=e.data.hotel_order.enter_at.split(" ")[0],t.hotel_end=e.data.hotel_order.leave_at.split(" ")[0],t.hotel_name=e.data.hotel_order.has_one_hotel.hotel_name,t.getDays(t.hotel_start,t.hotel_end)),"DeliveryReplenish"==t.orderType&&(t.service_station=e.data.service_station),8==i.dispatch_type_id&&(t.package_deliver=i.package_deliver)}else t.$dialog.alert({message:e.msg}).then((function(){t.$router.go(-1)}))}),(function(e){t.$dialog.alert({message:e.msg})}))},gotoRefund:function(e){this.$router.push(this.fun.getUrl("OrderReturn",{id:e}))},gotoRefundCheck:function(e){this.$router.push(this.fun.getUrl("OrderReturnCheck",{id:e}))},gotoMakeSure:function(e){this.$router.push(this.fun.getUrl("OrderReturnSure",{id:e}))},shopRecord:function(){this.$router.push(this.fun.getUrl("OrderRecord",{order_id:this.$route.params.order_id}))},seleRegional:function(){this.dateshow_1=!0},onChange:function(e,t,i){},onCancelbtn:function(e,t){this.dateshow_1=!1},onConfirmbtn:function(e,t){this.dateshow_1=!1,this.regional=e;var i=this.options;this.expressName=i[t]},getDays:function(e,t){var i,o,a,s="-";i=e.split(s),o=t.split(s);var r=new Date(i[0],i[1]-1,i[2]),d=new Date(o[0],o[1]-1,o[2]);a=parseInt(Math.abs(r-d)/1e3/60/60/24),this.night_day=a},confirmHotelOrder:function(e,t){var i=this;$http.get(e,{order_id:t},"处理中...").then((function(e){1==e.result?i.$dialog.alert({message:"确认下单成功"}):i.$dialog.alert({message:e.msg})})).catch((function(e){}))}},activated:function(){this.$route.params.orderType&&"myDeliver"==this.$route.params.orderType?this.orderType="myDeliver":this.$route.params.orderType&&"dismyReplenishment"==this.$route.params.orderType?this.orderType="dismyReplenishment":this.orderType="shop",this.init(),this.order_id=this.$route.params.order_id,this.getNetData(this.order_id)},components:{cTitle:r["a"]}},n=d,l=n,c=(i("211d"),i("2877")),f=Object(c["a"])(l,o,a,!1,null,"cb3762f2",null);t["default"]=f.exports},"211d":function(e,t,i){"use strict";i("8f2c")},"247e":function(e,t,i){var o=i("24fb");t=o(!1),t.push([e.i,".qrcode[data-v-cb3762f2]{width:100%;margin:0 auto}.van-dialog[data-v-cb3762f2]{width:90%;padding:4%;height:22rem}.van-dialog .van-dialog__content section[data-v-cb3762f2]{height:15rem}.van-dialog .van-dialog__content .title[data-v-cb3762f2]{padding-bottom:1.5rem;font-weight:700}#goodsinfo .addr[data-v-cb3762f2]{text-align:left;padding:0 .75rem;background:#fff;border-bottom:.0625rem solid #ebebeb;margin-bottom:.625rem;padding-top:.75rem;padding-bottom:.75rem}#goodsinfo .addr i[data-v-cb3762f2]{font-size:1rem;color:#333;float:left;margin-right:.625rem;margin-top:.0625rem}#goodsinfo .addr p[data-v-cb3762f2]{text-align:left}#goodsinfo .addr p span[data-v-cb3762f2]{color:#858585;font-size:12px}#goodsinfo .addr .addr-info[data-v-cb3762f2]{font-size:14px}#goodsinfo .addr .clearfix[data-v-cb3762f2]{clear:both}#goodsinfo .goods[data-v-cb3762f2]{background-color:#fff}#goodsinfo .goods .img[data-v-cb3762f2]{padding:.625rem 1rem;width:26vw;float:left}#goodsinfo .goods .img img[data-v-cb3762f2]{width:100%;height:100%;display:inline-block}#goodsinfo .goods .inner[data-v-cb3762f2]{width:50%;float:left;padding:.625rem 0 0 0;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;-webkit-box-align:start;-webkit-align-items:flex-start;-ms-flex-align:start;align-items:flex-start}#goodsinfo .goods .name[data-v-cb3762f2]{text-align:left}#goodsinfo .goods .money[data-v-cb3762f2],#goodsinfo .goods .name[data-v-cb3762f2]{margin-bottom:.625rem;font-size:14px}#goodsinfo .goods small[data-v-cb3762f2]{font-size:12px}#goodsinfo .goods .price[data-v-cb3762f2]{width:20%;float:left;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;text-align:right;padding:.625rem 0 0 0}#goodsinfo .goods .option[data-v-cb3762f2]{color:#888;font-size:12px;-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1}#goodsinfo .detail_good[data-v-cb3762f2]{background:#fff}#goodsinfo .detail_good .content[data-v-cb3762f2]{text-align:left;background:#efeded;padding:.625rem;color:#8c6700}#goodsinfo .detail_good a[data-v-cb3762f2]{color:#000}#goodsinfo .detail_good h3[data-v-cb3762f2]{text-align:left;margin:.5625rem 0}#goodsinfo .detail_good h3 i[data-v-cb3762f2]{font-size:1.25rem;padding-right:.3125rem}#goodsinfo .tbs[data-v-cb3762f2]{font-size:14px;width:100%;margin-bottom:6.5rem}#goodsinfo .tbs .left[data-v-cb3762f2]{-webkit-box-flex:2;-webkit-flex:2;-ms-flex:2;flex:2;text-align:left}#goodsinfo .tbs .right[data-v-cb3762f2]{-webkit-box-flex:3;-webkit-flex:3;-ms-flex:3;flex:3;text-align:right}#goodsinfo .tbs .tbs-number-tra[data-v-cb3762f2]{background-color:#fff;width:100%;padding:.625rem .875rem;margin-top:.625rem}#goodsinfo .tbs .tbs-number-tra li[data-v-cb3762f2]{line-height:1.875rem}#goodsinfo .tbs .Sub[data-v-cb3762f2]{width:100%;-webkit-box-pack:justify;-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between;line-height:1.875rem;padding:0 .875rem .625rem .875rem}#goodsinfo .tbs .Real-pay[data-v-cb3762f2],#goodsinfo .tbs .Sub[data-v-cb3762f2]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;background-color:#fff}#goodsinfo .tbs .Real-pay[data-v-cb3762f2]{-webkit-box-pack:end;-webkit-justify-content:flex-end;-ms-flex-pack:end;justify-content:flex-end;line-height:2.25rem;padding:0 .875rem;border-top:.0625rem solid #ebebeb;font-size:16px}#goodsinfo .tbs .Real-pay .left[data-v-cb3762f2]{color:#333;text-align:right}#goodsinfo .tbs .Real-pay .right[data-v-cb3762f2]{color:#f15353;font-size:18px;-webkit-box-flex:0;-webkit-flex:0;-ms-flex:0;flex:0;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex}#goodsinfo .tbs .Real-pay small[data-v-cb3762f2]{font-size:12px}#goodsinfo .tbs .Fre[data-v-cb3762f2]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-pack:justify;-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between;background-color:#fff;padding:0 .875rem;line-height:1.875rem}#goodsinfo .tbs #discount[data-v-cb3762f2]{margin-top:.625rem;padding-top:.625rem;background-color:#fff}#goodsinfo .tbs .Discount[data-v-cb3762f2]{width:100%;line-height:1.875rem;padding:0 .875rem}#goodsinfo .tbs .Discount[data-v-cb3762f2],#goodsinfo .tbs .number[data-v-cb3762f2],#goodsinfo .tbs .tra[data-v-cb3762f2]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-pack:justify;-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between}#goodsinfo .tbs .number[data-v-cb3762f2],#goodsinfo .tbs .tra[data-v-cb3762f2]{line-height:1.75rem}#goodsinfo .tbs .Pay-method[data-v-cb3762f2]{background-color:#fff;width:100%;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-pack:justify;-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between;line-height:2.25rem;padding:0 .875rem;border-top:.0625rem solid #ebebeb}#goodsinfo .tbs .info[data-v-cb3762f2]{padding:0 .75rem;line-height:1.75rem;border-top:.0625rem solid #e2e2e2}#goodsinfo .tbs .info .member[data-v-cb3762f2],#goodsinfo .tbs .info .name[data-v-cb3762f2],#goodsinfo .tbs .info .time[data-v-cb3762f2]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-pack:justify;-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between}#goodsinfo .detail_pay[data-v-cb3762f2]{min-height:3.0625rem;width:100%;background:#fff;padding:0 .75rem;border-top:1px solid #ebebeb;position:fixed;bottom:0;-webkit-box-sizing:border-box;box-sizing:border-box}#goodsinfo .detail_pay .order_delete[data-v-cb3762f2]{margin-left:.5rem;background:#fff;border-radius:.25rem}#goodsinfo .detail_pay .order_delete[data-v-cb3762f2],#goodsinfo .detail_pay input[data-v-cb3762f2]{padding:.25rem .625rem;margin-top:.6875rem;color:#333;float:right;border:.0625rem solid #666}#goodsinfo .detail_pay input[data-v-cb3762f2]{border-radius:.1875rem;background-color:#fff;font-size:12px}#goodsinfo .rent-info[data-v-cb3762f2]{border-bottom:.0625rem solid #e2e2e2;background-color:#fff}#goodsinfo .rent-info ul[data-v-cb3762f2]{padding:1rem .875rem}#goodsinfo .rent-info ul li[data-v-cb3762f2]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-pack:justify;-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between;line-height:1.5rem;font-size:14px}#goodsinfo .rent-info ul li span[data-v-cb3762f2]:first-child{color:#8c8c8c}#goodsinfo .rent-info .info[data-v-cb3762f2]{border-top:.0625rem solid #ebebeb;margin:0 .875rem;line-height:1.875rem;font-size:14px}#goodsinfo .commodity[data-v-cb3762f2],#goodsinfo .rent-info .info[data-v-cb3762f2]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-pack:justify;-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between}#goodsinfo .commodity[data-v-cb3762f2]{background-color:#fff;padding:.625rem .875rem}#goodsinfo .commodity .jpg[data-v-cb3762f2]{width:30%;overflow:hidden;margin-right:.625rem}#goodsinfo .commodity .jpg img[data-v-cb3762f2]{width:100%;height:100%}#goodsinfo .commodity ul[data-v-cb3762f2]{position:relative;width:70%}#goodsinfo .commodity ul li[data-v-cb3762f2]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-pack:justify;-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between}#goodsinfo .commodity ul li[data-v-cb3762f2]:first-child{margin-bottom:.625rem}#goodsinfo .commodity ul li:first-child .left[data-v-cb3762f2]{text-align:left;width:60%;overflow:hidden;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}#goodsinfo .commodity ul li:first-child i[data-v-cb3762f2]{font-size:.75rem;color:#ff9500}#goodsinfo .commodity ul .red[data-v-cb3762f2]{font-size:14px;color:#f15353}#goodsinfo .commodity ul .red small[data-v-cb3762f2]{font-size:12px;color:#333;margin-left:.625rem}#goodsinfo .commodity ul .left[data-v-cb3762f2]{font-size:14px}#goodsinfo .commodity ul .rent[data-v-cb3762f2]{position:absolute;bottom:0}#goodsinfo.pcStyle .detail_pay[data-v-cb3762f2]{width:375px}#goodsinfo.pcStyle .goods .img[data-v-cb3762f2]{width:26%}.mint-header[data-v-cb3762f2]{background:none;color:#666}.is-fixed .mint-header-title[data-v-cb3762f2]{font-weight:700}.mint-header.is-fixed[data-v-cb3762f2]{border-bottom:.0625rem solid #ebebeb;background:#fff;z-index:99}.is-right a[data-v-cb3762f2]{font-size:12px}",""]),e.exports=t},"8f2c":function(e,t,i){var o=i("247e");o.__esModule&&(o=o.default),"string"===typeof o&&(o=[[e.i,o,""]]),o.locals&&(e.exports=o.locals);var a=i("499e").default;a("313ac44a",o,!0,{sourceMap:!1,shadowMode:!1})}}]); |