(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-970cfd4a"],{"323a":function(e,t,n){"use strict";n.d(t,"e",(function(){return r})),n.d(t,"f",(function(){return a})),n.d(t,"a",(function(){return s})),n.d(t,"c",(function(){return o})),n.d(t,"d",(function(){return l})),n.d(t,"b",(function(){return c}));var i=n("bf9a");function r(e){return i["b"].post("admin_merchants",e)}function a(e,t){return i["b"].put("admin_merchants/".concat(e),t)}function s(e){return i["b"].get("admin_merchants/".concat(e,"/edit"))}function o(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return i["b"].get("admin_merchants",{params:e})}function l(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return i["b"].get("admin_merchant_config/get",{params:e})}function c(e){return i["b"].post("admin_merchant_config/edit",e)}},"37c4":function(e,t,n){},3835:function(e,t,n){"use strict";function i(e){if(Array.isArray(e))return e}function r(e,t){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(e)){var n=[],i=!0,r=!1,a=void 0;try{for(var s,o=e[Symbol.iterator]();!(i=(s=o.next()).done);i=!0)if(n.push(s.value),t&&n.length===t)break}catch(l){r=!0,a=l}finally{try{i||null==o["return"]||o["return"]()}finally{if(r)throw a}}return n}}n.d(t,"a",(function(){return o}));var a=n("06c5");function s(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function o(e,t){return i(e)||r(e,t)||Object(a["a"])(e,t)||s()}},"386d":function(e,t,n){"use strict";var i=n("cb7c"),r=n("83a1"),a=n("5f1b");n("214f")("search",1,(function(e,t,n,s){return[function(n){var i=e(this),r=void 0==n?void 0:n[t];return void 0!==r?r.call(n,i):new RegExp(n)[t](String(i))},function(e){var t=s(n,e,this);if(t.done)return t.value;var o=i(e),l=String(this),c=o.lastIndex;r(c,0)||(o.lastIndex=0);var u=a(o,l);return r(o.lastIndex,c)||(o.lastIndex=c),null===u?-1:u.index}]}))},"55e7":function(e,t,n){},6952:function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("el-card",{scopedSlots:e._u([{key:"header",fn:function(){return[n("content-header")]},proxy:!0}])},[n("search-form",{ref:"searchForm",attrs:{fields:e.search}}),n("el-table",{staticClass:"font-class",attrs:{data:e.orders,resource:"orders"}},[n("el-table-column",{attrs:{prop:"no",align:"center",label:"订单号","min-width":"10%","show-overflow-tooltip":""}}),n("el-table-column",{attrs:{prop:"area_name",align:"center",label:"区域","min-width":"6%","show-overflow-tooltip":""}}),n("el-table-column",{attrs:{prop:"bike_no",align:"center",label:"车牌号","min-width":"7%","show-overflow-tooltip":""}}),n("el-table-column",{attrs:{prop:"nickname",align:"center",label:"用户昵称","min-width":"7%","show-overflow-tooltip":""}}),n("el-table-column",{attrs:{prop:"mobile",align:"center",label:"手机号","show-overflow-tooltip":"","min-width":"8%"}}),n("el-table-column",{attrs:{prop:"real_use_bike_time_length",align:"center","min-width":"5%",label:"骑行时长","show-overflow-tooltip":""}}),n("el-table-column",{attrs:{prop:"order_total_money",align:"center","min-width":"5%",label:"交易金额"}}),n("el-table-column",{attrs:{prop:"pay_type_name",align:"center","min-width":"6%",label:"交易方式"},scopedSlots:e._u([{key:"default",fn:function(t){return[1==t.row.pay_type?n("el-tag",[e._v(e._s(t.row.pay_type_name))]):n("el-tag",{attrs:{type:"warning"}},[e._v(e._s(t.row.pay_type_name))])]}}])}),n("el-table-column",{attrs:{prop:"orders_status",align:"center",label:"订单状态","min-width":"5%"},scopedSlots:e._u([{key:"default",fn:function(t){return[3==t.row.status?n("el-tag",{attrs:{type:"success"}},[e._v(e._s(t.row.orders_status))]):4==t.row.status?n("el-tag",{attrs:{type:"info"}},[e._v(e._s(t.row.orders_status))]):2==t.row.status?n("el-tag",{attrs:{type:"warning"}},[e._v(e._s(t.row.orders_status))]):n("el-tag",{attrs:{type:"danger"}},[e._v(e._s(t.row.orders_status))])]}}])}),n("el-table-column",{attrs:{prop:"start_use_bike_time",label:"开始时间","min-width":"8%","show-overflow-tooltip":""}}),n("el-table-column",{attrs:{prop:"end_use_bike_time",label:"结束时间","min-width":"8%","show-overflow-tooltip":""}}),n("el-table-column",{attrs:{prop:"remark",label:"备注","min-width":"8%"},scopedSlots:e._u([{key:"default",fn:function(t){var i=t.row;return[n("input-edit",{attrs:{id:i.id,field:"remark",update:e.updateOrderRent},model:{value:i.remark,callback:function(t){e.$set(i,"remark",t)},expression:"row.remark"}})]}}])}),n("el-table-column",{attrs:{label:"操作",align:"center",width:"280"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("el-button",{attrs:{type:"success",size:"mini"},on:{click:function(n){return e.detailsClick(t.row)}}},[e._v("详情")]),"3"==t.row.status&&t.row.is_return?n("el-button",{attrs:{type:"info",size:"mini"},on:{click:function(n){return e.returnMoneyClick(t.row,t.$index)}}},[e._v("\n 返还\n ")]):"2"==t.row.status?n("el-button",{attrs:{type:"warning",size:"mini"},on:{click:function(n){return e.settlementMoneyClick(t.row,t.$index)}}},[e._v("\n 结算\n ")]):e._e(),n("el-button",{directives:[{name:"show",rawName:"v-show",value:"1"==t.row.status,expression:"scope.row.status=='1' "}],attrs:{type:"danger",size:"mini"},on:{click:function(n){return e.ejectCloseBike(t.row,t.$index)}}},[e._v("\n 还车\n ")]),"2"==t.row.status&&t.row.is_huisu?n("el-button",{attrs:{type:"danger",size:"mini"},on:{click:function(n){return e.ejectReturnOrderBike(t.row,t.$index)}}},[e._v("\n 订单回溯\n ")]):e._e()]}}])})],1),n("el-dialog",{attrs:{title:"提示",visible:e.dialogCloseBikeVisible,width:"30%"},on:{"update:visible":function(t){e.dialogCloseBikeVisible=t}}},[n("h2",{staticStyle:{color:"red"}},[e._v("确认关闭此订单,并锁车吗")]),n("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[n("el-button",{on:{click:function(t){e.dialogCloseBikeVisible=!1}}},[e._v("取 消")]),n("el-button",{attrs:{type:"primary"},on:{click:function(t){return e.closeOrderClick()}}},[e._v("确 定")])],1)]),n("el-dialog",{attrs:{title:"详情",visible:e.detailsDialogVisible,width:"70%",top:"5vh"},on:{"update:visible":function(t){e.detailsDialogVisible=t}}},[n("div",{staticClass:"info-body"},[n("div",{staticClass:"info-wrpp",staticStyle:{width:"25%"}},[n("p",{staticClass:"info-title"},[e._v("订单详情")]),n("div",{staticClass:"info-item"},[n("span",[e._v("订单号:")]),n("span",[e._v(e._s(e.order_no))])]),n("div",{staticClass:"info-item"},[n("span",[e._v("车牌号:")]),n("span",[e._v(e._s(e.bike_no))])]),n("div",{staticClass:"info-item"},[n("span",[e._v("区域:")]),n("span",[e._v(e._s(e.area))])]),n("div",{staticClass:"info-item"},[n("span",[e._v("用户昵称:")]),n("span",[e._v(e._s(e.nickname))])]),n("div",{staticClass:"info-item"},[n("span",[e._v("手机号码:")]),n("span",[e._v(e._s(e.mobile))])]),n("div",{staticClass:"info-item"},[n("span",[e._v("订单状态:")]),n("span",[e._v(e._s(e.order_status))])]),n("div",{staticClass:"info-item"},[n("span",[e._v("创建时间:")]),n("span",[e._v(e._s(e.start_use_time))])]),n("div",{staticClass:"info-item"},[n("span",[e._v("结束时间:")]),n("span",[e._v(e._s(e.end_use_time))])])]),n("div",{staticClass:"info-wrpp",staticStyle:{width:"25%"}},[n("div",{staticClass:"info-title"},[e._v("结算信息")]),n("div",{staticClass:"info-item"},[n("span",[e._v("结算方式:")]),n("span",[e._v(e._s(e.settle_type)+" ")])]),n("div",{staticClass:"info-item"},[n("span",[e._v("骑行时长:")]),n("span",[e._v(e._s(e.real_use_bike_time_length_name)+" ")])]),n("div",{staticClass:"info-item"},[n("span",[e._v("骑行里程:")]),n("span",[e._v(e._s(e.ridding_length)+" 千米")])]),n("div",{staticClass:"info-item"},[n("span",[e._v("订单总金额:")]),n("span",{staticClass:"amount"},[e._v(e._s(e.order_total_money)+" ")]),e._v("元")]),n("div",{staticClass:"info-item"},[n("span",[e._v("交易金额:")]),n("span",{staticClass:"amount"},[e._v(e._s(e.order_total_money))]),e._v("元\n "),n("div",{staticClass:"cost"},[n("p",{staticClass:"resetwid"},[n("span",{staticClass:"inline-span"},[e._v("基础租金:")]),n("span",{staticClass:"amountt"},[e._v(e._s(e.rent_money))]),n("span",[e._v("元")])]),n("p",[n("span",[e._v("租用超时花费:")]),n("span",{staticClass:"amountt"},[e._v(e._s(e.time_money))]),e._v(" 元")]),n("p",[n("span",[e._v("非还车点调度费:")]),n("span",{staticClass:"amountt"},[e._v(e._s(e.dispatch_money))]),e._v(" 元")])])])]),n("div",{staticClass:"info-wrpp",staticStyle:{width:"28%"}},[n("p",{staticClass:"info-title"},[e._v("操作车辆记录")]),n("div",{staticClass:"table-class"},[n("el-table",{staticStyle:{width:"100%"},attrs:{data:e.tableData1}},[n("el-table-column",{attrs:{prop:"created_at",label:"时间",align:"center",width:"180"}}),n("el-table-column",{attrs:{prop:"name",label:"操作",align:"center","show-overflow-tooltip":""}})],1)],1)]),n("div",{staticClass:"info-wrpp",staticStyle:{width:"16%","margin-right":"0"}},[n("p",{staticClass:"info-title"},[e._v("车辆控制")]),n("div",{staticClass:"table-class",staticStyle:{height:"300px","text-align":"center"}},[n("p",[n("el-button",{attrs:{type:"success"},on:{click:function(t){return e.orderBikeContro(e.order_no,"huiDian")}}},[e._v("超出运营区域回电")])],1),n("p",[n("el-button",{attrs:{type:"warning"},on:{click:function(t){return e.orderBikeContro(e.order_no,"openLock")}}},[e._v("  车辆开锁  ")])],1),n("p",[n("el-button",{attrs:{type:"danger"},on:{click:function(t){return e.orderHuiSu()}}},[e._v("电量过低订单回溯")])],1)])]),n("div",{staticClass:"info-wrpp",staticStyle:{width:"32%"}},[n("p",{staticClass:"info-title"},[e._v("订单消费记录")]),n("div",{staticClass:"table-class",staticStyle:{height:"300px"}},[n("el-table",{staticStyle:{width:"100%"},attrs:{data:e.tableData2}},[n("el-table-column",{attrs:{prop:"created_at",label:"时间",align:"center","show-overflow-tooltip":""}}),n("el-table-column",{attrs:{prop:"name",label:"操作",align:"center",width:"150","show-overflow-tooltip":""}}),n("el-table-column",{attrs:{prop:"status",label:"状态",align:"center",width:"80"},scopedSlots:e._u([{key:"default",fn:function(t){return[1==t.row.status?n("el-tag",{attrs:{type:"success"}},[e._v("成功")]):n("el-tag",{attrs:{type:"danger"}},[e._v("失败")])]}}])})],1)],1)]),n("div",{staticClass:"info-wrpp",staticStyle:{width:"32%"}},[n("p",{staticClass:"info-title"},[e._v("手机信息")]),n("div",{staticClass:"table-class",staticStyle:{height:"300px"}},[n("el-table",{staticStyle:{width:"100%"},attrs:{data:e.tableData3}},[n("el-table-column",{attrs:{prop:"label",label:"类型",align:"center",width:"150","show-overflow-tooltip":""}}),n("el-table-column",{attrs:{prop:"value",label:"数据值",align:"center","show-overflow-tooltip":""}})],1)],1)]),n("div",{staticClass:"info-wrpp",staticStyle:{width:"32%","margin-right":"0"}},[n("p",{staticClass:"info-title"},[e._v("位置详情 "),n("span",{directives:[{name:"show",rawName:"v-show",value:e.is_whole_area_huanche,expression:"is_whole_area_huanche"}],staticClass:"info-huanche"},[e._v("(运营区域内均可还车)")])]),n("div",{staticClass:"amap-page-container"},[n("el-amap",{ref:"map",staticClass:"amap-demoo",attrs:{vid:"amapDemo","amap-manager":e.amapManager,center:e.center,zoom:e.zoom,plugin:e.plugin,events:e.events}},[e._l(e.circles,(function(e,t){return n("el-amap-circle",{key:"info2-"+t,attrs:{center:e.center,radius:e.radius,"fill-opacity":e.fillOpacity,"stroke-opacity":e.strokeOpacity,events:e.events}})})),e._l(e.polygons,(function(e,t){return n("el-amap-polygon",{key:"parking_"+t,ref:"polygon_"+t,refInFor:!0,attrs:{vid:t,editable:!1,path:e.path,"z-index":40,draggable:e.draggable,"fill-opacity":e.fillOpacity,events:e.events}})})),e._l(e.banPolygons,(function(e,t){return n("el-amap-polygon",{key:"parkings_"+t,ref:"polygon_"+t,refInFor:!0,attrs:{vid:t,editable:!1,path:e.path,"z-index":40,draggable:e.draggable,"stroke-color":e.strokeColor,"fill-color":e.fillColor,"fill-opacity":e.fillOpacity,events:e.events}})})),e._l(e.polygonsarea,(function(e,t){return n("el-amap-polygon",{key:"infopolygonsarea-"+t,ref:"polygon_"+t,refInFor:!0,attrs:{vid:t,path:e.path,"fill-opacity":e.fillOpacity,draggable:e.draggable,events:e.events}})})),n("el-amap-marker",{attrs:{position:e.markerOrderPosition.position,events:e.markerOrderPosition.events,visible:e.markerOrderPosition.visible,draggable:e.markerOrderPosition.draggable,icon:e.markerOrderPosition.icon}}),n("el-amap-marker",{attrs:{position:e.markerBikePosition.position,events:e.markerBikePosition.events,visible:e.markerBikePosition.visible,draggable:e.markerBikePosition.draggable,animation:e.markerBikePosition.animation,icon:e.markerBikePosition.icon}})],2)],1)]),n("div",{staticClass:"info-wrpp",staticStyle:{width:"100%","margin-right":"0",height:"150px"}},[n("p",{staticClass:"info-title"},[e._v("区域配置信息")]),n("div",{staticClass:"table-class",staticStyle:{"padding-left":"30px"}},[n("p",[e._v("\n 骑行费用:日租模式,全天车辆基础租金金额为 "),n("span",{staticClass:"span-red"},[e._v(e._s(e.form.day_rent_money))]),e._v("元,日租可用时长为"),n("span",{staticClass:"span-red"},[e._v(e._s(e.form.day_rent_hours))]),e._v("小时,\n 在一天内(即24小时内)租用时长超过此时长,每一小时收取"),n("span",{staticClass:"span-red"},[e._v(e._s(e.form.per_hours_day_rent_timeout_money))]),e._v("元。"),n("span",{staticClass:"span-red"},[e._v(e._s(e.form.day_rent_capping_money))]),e._v("元封顶。\n ")]),n("p",[e._v("\n 调度费用:当用户不在指定区域还车时,\n "),n("span",{staticClass:"span-red"},[e._v(e._s(e.form.min_limit_km))]),e._v("千米内,另收 "),n("span",{staticClass:"span-red"},[e._v(e._s(e.form.min_dispatching_fee))]),e._v(" 元调度费,"),n("span",{staticClass:"span-red"},[e._v(e._s(e.form.min_limit_km))]),e._v("千米外,每增加"),n("span",{staticClass:"span-red"},[e._v(e._s(e.form.over_limit_per_km))]),e._v("千米,多收取"),n("span",{staticClass:"span-red"},[e._v(e._s(e.form.over_limit_per_km_money))]),e._v("元\n 最高封顶 "),n("span",{staticClass:"span-red"},[e._v(e._s(e.form.max_dispatching_fee))]),e._v(" 元,\n "),n("span",{staticClass:"p-green"},[e._v("注意:最高封顶为0元时,表示无封顶")])])])])])]),n("el-dialog",{attrs:{title:"返还",visible:e.returnDialogVisible,width:"23%"},on:{"update:visible":function(t){e.returnDialogVisible=t}}},[n("div",{staticClass:"return-money"},[n("p",[n("span",[e._v(" 返还基础租金:")]),n("el-input",{staticStyle:{width:"120px"},attrs:{onkeyup:"this.value=this.value.replace(/[^\\d.]/g,'');"},on:{input:e.returnBaseRentMoney},model:{value:e.returnMoneyForm.base_rent_money,callback:function(t){e.$set(e.returnMoneyForm,"base_rent_money",t)},expression:"returnMoneyForm.base_rent_money"}}),n("span",{staticStyle:{"margin-left":"20px"}},[e._v("小等于¥"+e._s(e.rent_money))])],1),n("p",[n("span",[e._v(" 返还骑行费用:")]),n("el-input",{staticStyle:{width:"120px"},attrs:{onkeyup:"this.value=this.value.replace(/[^\\d.]/g,'');"},on:{input:e.returnRiddingMoney},model:{value:e.returnMoneyForm.ridding_money,callback:function(t){e.$set(e.returnMoneyForm,"ridding_money",t)},expression:"returnMoneyForm.ridding_money"}}),n("span",{staticStyle:{"margin-left":"20px"}},[e._v("小等于¥"+e._s(e.time_money))])],1),n("p",[n("span",[e._v(" 返还调度费用:")]),n("el-input",{staticStyle:{width:"120px"},on:{input:e.returnDispatchMoney},model:{value:e.returnMoneyForm.dispatch_money,callback:function(t){e.$set(e.returnMoneyForm,"dispatch_money",t)},expression:"returnMoneyForm.dispatch_money"}}),n("span",{staticStyle:{"margin-left":"20px"}},[e._v("小等于¥"+e._s(e.dispatch_money))])],1),n("p",[n("span",[e._v("\n 选择返还方式:\n ")]),n("el-radio",{attrs:{label:"wallet"},model:{value:e.returnMoneyForm.return_type,callback:function(t){e.$set(e.returnMoneyForm,"return_type",t)},expression:"returnMoneyForm.return_type"}},[e._v("平台余额")]),n("el-radio",{attrs:{label:"wechat"},model:{value:e.returnMoneyForm.return_type,callback:function(t){e.$set(e.returnMoneyForm,"return_type",t)},expression:"returnMoneyForm.return_type"}},[e._v("微信")])],1),n("p",[n("span",[e._v("实际支付:")]),n("span",{staticClass:"font-span"},[e._v(" "+e._s(e.pay_money))])])]),n("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[n("el-button",{on:{click:function(t){e.returnDialogVisible=!1}}},[e._v("取 消")]),n("el-button",{attrs:{type:"primary"},on:{click:e.submitReturnMoney}},[e._v("确 定")])],1)]),n("el-dialog",{attrs:{title:"结算",visible:e.settlementDialogVisible,width:"23%"},on:{"update:visible":function(t){e.settlementDialogVisible=t}}},[n("div",{staticClass:"return-money"},[n("p",[n("span",[e._v(" 基础租金:")]),n("el-input",{staticStyle:{width:"200px"},on:{input:e.settlementRentMoney},model:{value:e.settlementMoneyForm.rent_money,callback:function(t){e.$set(e.settlementMoneyForm,"rent_money",t)},expression:"settlementMoneyForm.rent_money"}})],1),n("p",[n("span",[e._v(" 骑行费用:")]),n("el-input",{staticStyle:{width:"200px"},on:{input:e.settlementRiddingMoney},model:{value:e.settlementMoneyForm.ridding_money,callback:function(t){e.$set(e.settlementMoneyForm,"ridding_money",t)},expression:"settlementMoneyForm.ridding_money"}})],1),n("p",[n("span",[e._v(" 调度费用:")]),n("el-input",{staticStyle:{width:"200px"},on:{input:e.settlementDispatchMoney},model:{value:e.settlementMoneyForm.dispatch_money,callback:function(t){e.$set(e.settlementMoneyForm,"dispatch_money",t)},expression:"settlementMoneyForm.dispatch_money"}})],1),n("p",[n("span",[e._v("实际支付:")]),n("span",{staticClass:"font-span"},[e._v(" "+e._s(e.settlementMoneyForm.pay_money))])])]),n("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[n("el-button",{on:{click:function(t){e.settlementDialogVisible=!1}}},[e._v("取 消")]),n("el-button",{attrs:{type:"primary"},on:{click:e.submitSettlementMoney}},[e._v("确 定")])],1)]),n("el-dialog",{attrs:{title:"提示",visible:e.dialogReturnOrderBikeVisible,width:"30%"},on:{"update:visible":function(t){e.dialogReturnOrderBikeVisible=t}}},[n("h2",{staticStyle:{color:"red"}},[e._v("确认回退此订单,改为骑车中吗")]),n("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[n("el-button",{on:{click:function(t){e.dialogReturnOrderBikeVisible=!1}}},[e._v("取 消")]),n("el-button",{attrs:{type:"primary"},on:{click:function(t){return e.changeOrderRidingBike()}}},[e._v("确 定")])],1)]),n("div",{staticClass:"card-footer"},[n("pagination",{attrs:{page:e.page}})],1)],1)},r=[],a=(n("c5f6"),n("7f7f"),n("6b54"),n("386d"),n("ac6a"),n("5df3"),n("3835")),s=(n("96cf"),n("1da1")),o=n("69d9"),l=n("81df"),c=n("323a"),u=n("d8bf"),p=n("b64d"),d=n("8f9b"),m=n.n(d),h=n("d52f"),_=n("8dd0"),f=n("873a"),y={name:"Index",components:{SearchForm:o["a"],Pagination:l["a"],InputEdit:_["a"]},data:function(){var e=this,t=new m.a.AMapManager;return{tableData1:[],tableData2:[],tableData3:[],search:[{type:"el-select",field:"area_id",label:"骑行区域",options:[{id:"",name:"全部"}]},{type:"el-select",field:"status",label:"订单状态",options:[{id:"",name:"全部"}]},{type:"el-select",field:"operate_status",label:"车辆操作状态",options:[{id:"",name:"全部"}]},{type:"super-input",field:"mobile_nickname",label:"用户昵称 / 用户手机号"},{field:"no",label:"订单号"},{field:"bike_no",label:"车牌号"},{type:"time-between",field:"created_time_between",label1:"订单创建-开始",label2:"订单创建-结束"},{field:"remark",label:"备注"},{type:"el-select",field:"is_dispatch_money",label:"是否有调度费",options:[{id:"",name:"全部"},{id:"1",name:"有调度费"},{id:"2",name:"无调度费"}]},{type:"el-select",field:"is_refund_money",label:"是否返还费用",options:[{id:"",name:"全部"},{id:"1",name:"是"},{id:"0",name:"否"}]},{type:"el-select",field:"merchant_id",label:"商户",options:[{id:"",name:"全部"}]}],form:{},orders:[],page:null,detailsDialogVisible:!1,order_no:"",order_id:"",bike_no:"",nickname:"",area:"",mobile:"",order_status:"",start_use_time:"",time_money:"",rent_money:"",sumRentMoney:"",end_use_time:"",real_use_bike_time_length:"",real_use_bike_time_length_name:"",ridding_time:"",ridding_length:"",pay_money:"",order_total_money:"",pay_money_yun:"",sumDispatch:"",dispatch_money:"",returnDialogVisible:!1,dialogCloseBikeVisible:!1,row_order_id:"",settle_type:"",returnMoneyForm:{return_type:"wallet",order_id:"",base_rent_money:0,ridding_money:0,dispatch_money:0},returnMoneyFormBool:!1,settlementDialogVisible:!1,settlementIndex:"",returnIndex:"",settlementMoneyForm:{order_id:"",rent_money:"",ridding_money:0,dispatch_money:0,pay_money:""},zoom:15,lng:0,lat:0,center:[121.59996,31.197646],amapManager:t,events:{init:function(e){}},plugin:[{pName:"MapType",defaultType:0,events:{init:function(e){}}},{pName:"Geolocation",events:{init:function(t){t.getCurrentPosition((function(t,n){e.lng=113.73350255780726,e.lat=34.78024666564106,e.loaded=!0,n&&n.position&&(e.lng=n.position.lng,e.lat=n.position.lat,e.loaded=!0,e.$nextTick())}))}}},{pName:"Scale",position:"RB",events:{init:function(e){}}},{pName:"ToolBar",events:{init:function(e){}}}],markerOrderPosition:{position:[121.5273285,31.21515044],events:{click:function(){}},visible:!0,draggable:!1,icon:"http://resource.bike.hanyiyun.com/admin/zhongdian20191203141105.png"},markerBikePosition:{position:[121.5273285,31.21515044],events:{click:function(){}},visible:!0,draggable:!1,animation:"AMAP_ANIMATION_DROP",icon:"http://resource.bike.hanyiyun.com/common/using.admin.png"},pathData:[],pathDataTimes:[],pathMarks:[],is_whole_area_huanche:!1,circles:[],polygons:[],banPolygons:[],banCircles:[],polygonsarea:[{draggable:!1,path:[],fillOpacity:.1,events:{click:function(){}}}],dialogReturnOrderBikeVisible:!1,first_blood:!0}},mixins:[f["m"]],watch:{$route:{handler:function(){var e=Object(s["a"])(regeneratorRuntime.mark((function e(t){var n,i,r,a;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,this.autoPageSize(49,t);case 2:return e.next=4,Object(u["d"])(t.query);case 4:n=e.sent,i=n.data,r=i.data,a=i.meta,this.orders=r,this.page=a;case 10:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}(),immediate:!0}},inject:["reload"],created:function(){var e=Object(s["a"])(regeneratorRuntime.mark((function e(){var t,n,i,r,s,o,l;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Promise.all([Object(p["b"])({all:1}),Object(u["g"])()]);case 2:if(t=e.sent,n=Object(a["a"])(t,2),i=n[0].data,r=n[1].data,this.search[0].options.push.apply(this.search[0].options,i),this.search[1].options.push.apply(this.search[1].options,r.order_status),this.search[2].options.push.apply(this.search[2].options,r.order_operate_status),"administrator"!==this.$store.state.users.user.roles[0]){e.next=18;break}return e.next=12,Promise.all([Object(c["c"])({all:1})]);case 12:s=e.sent,o=Object(a["a"])(s,1),l=o[0].data,this.search[10].options.push.apply(this.search[10].options,l.data),e.next=19;break;case 18:this.search.splice(10,1);case 19:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}(),methods:{updateOrderRent:u["m"],detailsClick:function(){var e=Object(s["a"])(regeneratorRuntime.mark((function e(t){var n,i,r,a,s,o,l,c,p;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return this.detailsDialogVisible=!0,this.order_no=t.no,this.order_id=t.id,this.bike_no=t.bike_no,this.nickname=t.nickname,this.area=t.area_name,this.mobile=t.mobile,this.order_status=t.orders_status,this.start_use_time=t.start_use_bike_time,this.end_use_time=t.end_use_bike_time,this.pay_money=t.pay_money,this.order_total_money=t.order_total_money,this.time_money=t.time_money,this.rent_money=t.rent_money,this.dispatch_money=t.dispatch_money,this.ridding_time=t.real_use_bike_time_length,this.ridding_length=t.use_bike_distance_length,this.settle_type=t.settle_type,this.real_use_bike_time_length_name=t.real_use_bike_time_length_name,""!=t.phone_detail?this.tableData3=JSON.parse(t.phone_detail):this.tableData3=[],e.next=22,Object(u["e"])({order_id:t.id});case 22:return n=e.sent,i=n.data,this.tableData1=i.orderRentBikeOperate,this.tableData2=i.walletLogs,e.next=28,Object(u["i"])({order_id:t.id});case 28:return r=e.sent,a=r.data,this.markerOrderPosition.position=a.orderPosition,this.markerBikePosition.position=a.bikePosition,this.is_whole_area_huanche=a.is_whole_area_huanche,this.center=a.orderPosition,this.initParking(t.area_id),e.next=37,Object(u["f"])({order_id:t.id});case 37:s=e.sent,o=s.data,l=this,c=o.orderLocations,this.pathDataTimes=o.locationsTimes,0==c.length?(this.pathMarks=[],this.$message("此订单暂无轨迹"),window.pathSimplifierIns&&(pathSimplifierIns.setData([]),pathSimplifierIns.clearPathNavigators())):(p=parseInt(c.length/2),c[p],this.zoom=20,this.pathData=c,this.pathMarks=[],window.pathSimplifierIns&&(pathSimplifierIns.setData([]),pathSimplifierIns.clearPathNavigators()),AMapUI.load(["ui/misc/PathSimplifier"],(function(e){e.supportCanvas?l.initPage(e):alert("当前环境不支持 Canvas!")})));case 43:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}(),fillForm:function(e){this.form.id=e.id,this.form.per_minute=e.per_minute,this.form.per_money=e.per_money,this.form.min_dispatching_fee=e.min_dispatching_fee,this.form.max_dispatching_fee=e.max_dispatching_fee,this.form.power_lower=e.power_lower,this.form.is_parking=e.is_parking.toString(),this.form.is_advance_recharge=e.is_advance_recharge.toString(),this.form.is_whole_area_huanche=e.is_whole_area_huanche.toString(),this.form.is_parking_fushe=e.is_parking_fushe.toString(),this.form.is_deposit=e.is_deposit.toString(),this.form.deposit=e.deposit,this.form.is_auto_return_deposit=e.is_auto_return_deposit.toString(),this.form.is_open_day_rent=e.is_open_day_rent.toString(),this.form.is_return_deposit_ad_video=e.is_return_deposit_ad_video.toString(),this.form.day_rent_money=e.day_rent_money,this.form.day_rent_hours=e.day_rent_hours,this.form.per_hours_day_rent_timeout_money=e.per_hours_day_rent_timeout_money,this.form.day_rent_capping_money=e.day_rent_capping_money,this.form.day_rent_img=e.day_rent_img,this.form.over_limit_per_km=e.over_limit_per_km,this.form.min_limit_km=e.min_limit_km,this.form.over_limit_per_km_money=e.over_limit_per_km_money,this.form.many_minute_free=e.many_minute_free,this.form.minute_free_times=e.minute_free_times,this.form.is_minute_free=e.is_minute_free.toString(),this.form.starting_price_time=e.starting_price_time,this.form.starting_price=e.starting_price},initParking:function(){var e=Object(s["a"])(regeneratorRuntime.mark((function e(t){var n,i,r,s,o,l,c,u,d,m,_,f,y,g;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Promise.all([Object(p["c"])(t)]);case 2:return n=e.sent,i=Object(a["a"])(n,1),r=i[0].data,this.fillForm(r.areaSetting),s=r.areaSetting.is_parking_fushe,this.polygonsarea[0].path=JSON.parse(r.area_fence),e.next=10,Object(h["c"])({type:2,area_id:t,status:1});case 10:return o=e.sent,l=o.data,c=[],u=[],l.forEach((function(e,t){e.parking_centre=JSON.parse(e.parking_centre),c.push({draggable:!1,strokeOpacity:.1,fillOpacity:.1,path:e.parking_fence,events:{change:function(){},click:function(){}}}),u.push({center:e.parking_centre,radius:e.parking_radius,fillOpacity:.1,events:{click:function(){}}})})),1==s&&(this.circles=u),this.polygons=c,e.next=19,Promise.all([Object(h["c"])({type:1,area_id:t,status:1})]);case 19:d=e.sent,m=Object(a["a"])(d,1),_=m[0].data,f=[],y=[],g=_,g.forEach((function(e,t){e.parking_centre=JSON.parse(e.parking_centre),f.push({draggable:!1,strokeOpacity:.1,fillOpacity:.3,fillColor:"red",strokeColor:"red",path:e.parking_fence,events:{change:function(){},click:function(){}}}),y.push({center:e.parking_centre,radius:e.parking_radius,fillOpacity:.3,fillColor:"red",strokeColor:"red",events:{click:function(){}}})})),this.banCircles=y,this.banPolygons=f;case 28:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}(),initPage:function(e){var t=this,n=new e({zIndex:100,map:this.amapManager._map,autoSetFitView:!1,getPath:function(e,t){return e.path},getHoverTitle:function(e,n,i){return i>=0?e.name+",点:"+i+"/"+e.path.length+",时间:"+t.pathDataTimes[i]:e.name+",点数量"+e.path.length},renderOptions:{pathLineStyle:{strokeStyle:"red",lineWidth:2,dirArrowStyle:!0},renderAllPointsIfNumberBelow:100}});n.renderLater([{delay:1e3}]),window.pathSimplifierIns=n,n.setData([{name:"轨迹",path:this.pathData}]);var i=n.createPathNavigator(0,{loop:!0,speed:500});i.start()},returnMoneyClick:function(e,t){this.returnIndex=t,this.returnDialogVisible=!0,this.pay_money=Number(e.total_money),this.pay_money_yun=Number(e.total_money),this.dispatch_money=e.dispatch_money,this.rent_money=e.rent_money,this.time_money=e.time_money,this.returnMoneyForm.ridding_money=0,this.returnMoneyForm.dispatch_money=0,this.returnMoneyForm.order_id=e.id},settlementMoneyClick:function(e,t){this.settlementIndex=t,this.settlementDialogVisible=!0,this.settlementMoneyForm.pay_money=Number(e.total_money),this.settlementMoneyForm.dispatch_money=Number(e.dispatch_money),this.settlementMoneyForm.ridding_money=Number(e.time_money),this.settlementMoneyForm.rent_money=Number(e.rent_money),this.settlementMoneyForm.order_id=e.id},ejectCloseBike:function(e,t){this.row_order_id=e.id,this.dialogCloseBikeVisible=!0},closeOrderClick:function(){var e=Object(s["a"])(regeneratorRuntime.mark((function e(){var t=this;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Object(u["c"])({order_id:this.row_order_id}).then((function(e){e.then((function(e){e&&(t.$message({message:"操作成功",type:"success"}),t.reload(),t.dialogCloseBikeVisible=!1)}))}));case 2:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}(),returnRiddingMoney:function(){this.pay_money=this.pay_money_yun-this.returnMoneyForm.ridding_money-this.returnMoneyForm.dispatch_money-this.returnMoneyForm.base_rent_money,this.pay_money<0&&this.$message({message:"返还骑行金额不能大于实际支付金额",type:"warning"})},returnBaseRentMoney:function(){this.pay_money=this.pay_money_yun-this.returnMoneyForm.ridding_money-this.returnMoneyForm.dispatch_money-this.returnMoneyForm.base_rent_money,this.returnMoneyForm.base_rent_money-this.rent_money<0&&this.$message({message:"返还基础租金不能大于"+this.rent_money,type:"warning"})},returnDispatchMoney:function(){this.pay_money=this.pay_money_yun-this.returnMoneyForm.dispatch_money-this.returnMoneyForm.ridding_money-this.returnMoneyForm.base_rent_money,this.sumDispatch=this.dispatch_money-this.returnMoneyForm.dispatch_money,this.sumDispatch<0&&this.$message({message:"返还调度金额不能大于"+this.dispatch_money,type:"warning"})},submitReturnMoney:function(){var e=Object(s["a"])(regeneratorRuntime.mark((function e(){var t=this;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(this.pay_money<0?this.$message({message:"返还金额不能大于实际支付金额",type:"warning"}):this.sumDispatch<0?this.$message({message:"返还调度金额不能大于"+this.dispatch_money,type:"warning"}):this.returnMoneyFormBool=!0,!this.returnMoneyFormBool){e.next=5;break}return e.next=4,Object(u["k"])(this.returnMoneyForm).then((function(e){e.then((function(e){e&&(t.$message({message:"操作成功",type:"success"}),t.orders[t.returnIndex].order_total_money=t.pay_money,t.reload())}))}));case 4:this.returnDialogVisible=!1;case 5:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}(),settlementRiddingMoney:function(){this.settlementMoneyForm.pay_money=Number(this.settlementMoneyForm.ridding_money)+Number(this.settlementMoneyForm.dispatch_money)+Number(this.settlementMoneyForm.rent_money)},settlementDispatchMoney:function(){this.settlementMoneyForm.pay_money=Number(this.settlementMoneyForm.ridding_money)+Number(this.settlementMoneyForm.dispatch_money)+Number(this.settlementMoneyForm.rent_money)},settlementRentMoney:function(){this.settlementMoneyForm.pay_money=Number(this.settlementMoneyForm.ridding_money)+Number(this.settlementMoneyForm.dispatch_money)+Number(this.settlementMoneyForm.rent_money)},submitSettlementMoney:function(){var e=Object(s["a"])(regeneratorRuntime.mark((function e(){var t=this;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Object(u["l"])(this.settlementMoneyForm).then((function(e){e.then((function(e){e&&(t.$message({message:"操作成功",type:"success"}),t.orders[t.settlementIndex].status=3,t.orders[t.settlementIndex].orders_status="已完成",t.reload())})).catch((function(e){t.reload()}))}));case 2:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}(),ejectReturnOrderBike:function(e,t){this.row_order_id=e.id,this.dialogReturnOrderBikeVisible=!0},changeOrderRidingBike:function(){var e=Object(s["a"])(regeneratorRuntime.mark((function e(){var t=this;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Object(u["b"])({order_id:this.row_order_id}).then((function(e){e.then((function(e){e&&(t.$message({message:"操作成功",type:"success"}),t.reload(),t.dialogReturnOrderBikeVisible=!1)}))}));case 2:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}(),orderHuiSu:function(){var e=Object(s["a"])(regeneratorRuntime.mark((function e(){var t=this;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Object(u["b"])({order_id:this.order_id,is_low_electric:!0}).then((function(e){e.then((function(e){e&&(t.$message({message:"操作成功",type:"success"}),t.reload(),t.dialogReturnOrderBikeVisible=!1)}))}));case 2:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}(),orderBikeContro:function(){var e=Object(s["a"])(regeneratorRuntime.mark((function e(t,n){var i=this;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Object(u["a"])({order_no:t,type:n}).then((function(e){e.then((function(e){e&&(i.$message({message:"操作成功",type:"success"}),i.reload())}))}));case 2:case"end":return e.stop()}}),e)})));function t(t,n){return e.apply(this,arguments)}return t}()}},g=y,b=(n("87a2"),n("2877")),v=Object(b["a"])(g,i,r,!1,null,"d07fd1c6",null);t["default"]=v.exports},"69d9":function(e,t,n){"use strict";n("8e6e"),n("456d"),n("7f7f"),n("ac6a");var i=n("ade3");function r(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function a(e){for(var t=1;t0&&void 0!==l[0]?l[0]:this.$refs.input.value,!this.loading){e.next=3;break}return e.abrupt("return");case 3:return e.prev=3,this.loading=!0,e.next=7,this.update(this.id,Object(a["a"])({},this.field,t));case 7:n=e.sent,this.setOldVal(),this.$message.success(Object(o["h"])("updated")),this.onSuccess(n),e.next=21;break;case 13:e.prev=13,e.t0=e["catch"](3),i=e.t0.response,this.resetValueWhenError&&this.changeVal(this.oldVal),r=Object(o["g"])(i),r&&this.$message.error(r),this.$nextTick((function(){s.focus()})),this.onError(e.t0);case 21:return e.prev=21,this.loading=!1,e.finish(21);case 24:case"end":return e.stop()}}),e,this,[[3,13,21,24]])})));function t(){return e.apply(this,arguments)}return t}(),setOldVal:function(){this.oldVal=this.$refs.input.value},changeVal:function(e){this.$refs.input.$emit("input",e)},focus:function(){this.$refs.input.focus()},onError:function(e){},onSuccess:function(e){}}},c={name:"InputEdit",mixins:[l],data:function(){return{editMode:!1,oldVal:this.$attrs.value}},methods:{onCancel:function(){this.editMode=!1},onSuccess:function(){this.setOldVal(),this.onCancel()}},watch:{editMode:function(e){var t=this;e?this.$nextTick((function(){t.focus()})):this.changeVal(this.oldVal)}}},u=c,p=(n("b0d1"),n("2877")),d=Object(p["a"])(u,i,r,!1,null,"0e4676d8",null);t["a"]=d.exports},b0d1:function(e,t,n){"use strict";var i=n("55e7"),r=n.n(i);r.a},b64d:function(e,t,n){"use strict";n.d(t,"b",(function(){return r})),n.d(t,"c",(function(){return a})),n.d(t,"d",(function(){return s})),n.d(t,"e",(function(){return o})),n.d(t,"a",(function(){return l}));var i=n("bf9a");function r(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return i["b"].get("area",{params:e})}function a(e){return i["b"].get("area/".concat(e))}function s(e){return i["b"].post("area",e)}function o(e,t){return i["b"].put("area/".concat(e),t)}function l(e){return i["b"].get("area/".concat(e,"/edit"))}},cafd:function(e,t,n){"use strict";var i=n("cb81"),r=n.n(i);r.a},cb81:function(e,t,n){},d52f:function(e,t,n){"use strict";n.d(t,"c",(function(){return r})),n.d(t,"d",(function(){return a})),n.d(t,"e",(function(){return s})),n.d(t,"f",(function(){return o})),n.d(t,"a",(function(){return l})),n.d(t,"b",(function(){return c}));var i=n("bf9a");function r(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return i["b"].get("parking",{params:e})}function a(e){return i["b"].post("parking",e)}function s(e,t){return i["b"].put("parking/".concat(e),t)}function o(e){return i["b"].post("parking/status",e)}function l(e){return i["b"].delete("parking/"+e)}function c(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return i["b"].get("parking/applyAddParking",{params:e})}},d8bf:function(e,t,n){"use strict";n.d(t,"d",(function(){return r})),n.d(t,"j",(function(){return a})),n.d(t,"f",(function(){return s})),n.d(t,"g",(function(){return o})),n.d(t,"e",(function(){return l})),n.d(t,"c",(function(){return c})),n.d(t,"l",(function(){return u})),n.d(t,"k",(function(){return p})),n.d(t,"h",(function(){return d})),n.d(t,"i",(function(){return m})),n.d(t,"m",(function(){return h})),n.d(t,"b",(function(){return _})),n.d(t,"a",(function(){return f}));var i=n("bf9a");function r(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return i["b"].get("orderRent",{params:e})}function a(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return i["b"].get("orderRent/orderRentLocationsearch",{params:e})}function s(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return i["b"].get("orderRent/orderRentLocation",{params:e})}function o(){return i["b"].get("orderRent/orderRentStatus")}function l(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return i["b"].get("orderRent/orderRentBikeOperate",{params:e})}function c(e){return i["b"].post("orderRent/closeLock",e)}function u(e){return i["b"].post("orderRent/settlement",e)}function p(e){return i["b"].post("orderRent/returnOrderMoney",e)}function d(e){return i["b"].post("bike/getOrderRentTrajectory",e)}function m(e){return i["b"].post("orderRent/orderRentDetailPosition",e)}function h(e,t){return i["b"].put("orderRent/".concat(e),t)}function _(e){return i["b"].post("orderRent/changeRentOrderRiding",e)}function f(e){return i["b"].post("orderRent/orderBikeContro",e)}}}]); //# sourceMappingURL=chunk-970cfd4a.14b79cfa.js.map