12 |
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-055ead5c"],{"0fb6":function(e,t,n){},"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)}},"368b":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:"订单号","show-overflow-tooltip":"","min-width":"10%"}}),n("el-table-column",{attrs:{prop:"area_name",align:"center",label:"区域","show-overflow-tooltip":"","min-width":"6%"}}),n("el-table-column",{attrs:{prop:"bike_no",align:"center",label:"车牌号","show-overflow-tooltip":"","min-width":"7%"}}),n("el-table-column",{attrs:{prop:"nickname",align:"center",label:"用户昵称","min-width":"7%","show-overflow-tooltip":""}}),n("el-table-column",{attrs:{prop:"mobile",label:"手机号",align:"center","show-overflow-tooltip":"","min-width":"8%"}}),n("el-table-column",{attrs:{prop:"real_use_bike_time_length",align:"center","min-width":"5%","show-overflow-tooltip":"",label:"骑行时长"}}),n("el-table-column",{attrs:{prop:"pay_money",align:"center","min-width":"5%","show-overflow-tooltip":"",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))]):0==t.row.pay_type?n("el-tag",{attrs:{type:"info"}},[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":"6%"},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))]):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:"开始时间","show-overflow-tooltip":"","min-width":"8%"}}),n("el-table-column",{attrs:{prop:"end_use_bike_time",label:"结束时间","show-overflow-tooltip":"","min-width":"8%"}}),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.updateOrders},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:"0"==t.row.status||"1"==t.row.status,expression:"scope.row.status=='0' || 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.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("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.ridding_time_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",[e._v(e._s(e.preferential_type_name)+" ")])]),n("div",{staticClass:"info-item"},[n("span",[e._v("订单金额:")]),n("span",{staticClass:"amount"},[e._v(e._s(e.total_money)+" ")])]),n("div",{staticClass:"info-item"},[n("span",[e._v("实际支付:")]),n("span",{staticClass:"amount"},[e._v(e._s(e.pay_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.time_money))]),n("span",[e._v("元")])]),n("p",[n("span",[e._v("非还车点调度费:")]),n("span",{staticClass:"amountt"},[e._v(e._s(e.dispatch_money))]),e._v(" 元")]),n("p",[n("span",[e._v("骑行卡优惠金额:")]),n("span",{staticClass:"amountt"},[e._v(e._s(e.card_preferential_money))]),e._v(" 元")]),n("p",[n("span",[e._v("优惠券优惠金额:")]),n("span",{staticClass:"amountt"},[e._v(e._s(e.coupon_preferential_money))]),e._v(" 元")]),n("p",[n("span",[e._v("总优惠金额:")]),n("span",{staticClass:"amountt"},[e._v(e._s(e.preferential_money))]),e._v(" 元")])])])]),n("div",{staticClass:"info-wrpp",staticStyle:{width:"28%"}},[n("p",{staticClass:"info-title"},[e._v("操作车辆记录")]),n("div",{staticClass:"table-class",staticStyle:{height:"300px"}},[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",staticStyle:{width:"100%!important"}},[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:"polygonS_"+t,refInFor:!0,attrs:{vid:t,editable:!1,path:e.path,"z-index":40,"fill-color":e.fillColor,draggable:e.draggable,"stroke-color":e.strokeColor,"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",{directives:[{name:"show",rawName:"v-show",value:e.isStart,expression:"isStart"}]},[e._v("起步价为"),n("span",{staticClass:"span-red"},[e._v(e._s(e.form.starting_price_time))]),e._v("分钟内"),n("span",{staticClass:"span-red"},[e._v(e._s(e.form.starting_price))]),e._v(" 元,\n 之后")]),e._v("\n 每 "),n("span",{staticClass:"span-red"},[e._v(e._s(e.form.per_minute))]),e._v(" 分钟收取 "),n("span",{staticClass:"span-red"},[e._v(e._s(e.form.per_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:"30%"},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.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.ke_return_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.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("el-input",{staticStyle:{width:"200px"},attrs:{disabled:""},model:{value:e.settlementMoneyForm.preferential_money,callback:function(t){e.$set(e.settlementMoneyForm,"preferential_money",t)},expression:"settlementMoneyForm.preferential_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("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("768b")),s=(n("96cf"),n("3b8d")),o=n("69d9"),l=n("81df"),c=n("4cc4"),u=n("b64d"),p=n("8f9b"),d=n.n(p),m=n("d52f"),h=n("8dd0"),_=n("873a"),f=n("323a"),y={name:"Index",components:{SearchForm:o["a"],Pagination:l["a"],InputEdit:h["a"]},data:function(){var e=this,t=new d.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:"全部"}]}],orders:[],page:null,detailsDialogVisible:!1,order_no:"",order_id:"",bike_no:"",nickname:"",area:"",mobile:"",order_status:"",start_use_time:"",time_money:"",end_use_time:"",real_use_bike_time_length:"",ridding_time:"",ridding_time_name:"",ridding_length:"",pay_money:"",total_money:"",pay_money_yun:"",sumDispatch:"",ke_return_time_money:0,dispatch_money:"",preferential_money:"",preferential_type_name:"",is_coupon_name:"",card_preferential_money:0,coupon_preferential_money:0,returnDialogVisible:!1,dialogCloseBikeVisible:!1,dialogReturnOrderBikeVisible:!1,is_whole_area_huanche:!1,row_order_id:"",settle_type:"",isStart:!1,returnMoneyForm:{order_id:"",ridding_money:0,dispatch_money:0,return_type:"wallet"},returnMoneyFormBool:!1,settlementDialogVisible:!1,settlementIndex:"",returnIndex:"",settlementMoneyForm:{order_id:"",ridding_money:0,dispatch_money:0,preferential_money:0,pay_money:""},form:{},zoom:12,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:[],circles:[],polygons:[],banPolygons:[],banCircles:[],polygonsarea:[{draggable:!1,path:[],fillOpacity:.1,events:{click:function(){}}}],first_blood:!0}},mixins:[_["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(c["f"])(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(u["b"])({all:1}),Object(c["h"])()]);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(f["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}(),updated:function(){},methods:{updateOrders:c["n"],detailsClick:function(){var e=Object(s["a"])(regeneratorRuntime.mark(function e(t){var n,i,r,s,o,l,u,p,d,m;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.total_money=t.total_money,this.time_money=t.time_money,this.is_coupon_name=t.is_coupon_name,this.dispatch_money=t.dispatch_money,this.card_preferential_money=t.card_preferential_money,this.coupon_preferential_money=t.coupon_preferential_money,this.preferential_money=t.preferential_money,this.preferential_type_name=t.preferential_type_name,this.ridding_time_name=t.real_use_bike_time_length_name,this.ridding_length=t.use_bike_distance_length,this.settle_type=t.settle_type,""!=t.phone_detail?this.tableData3=JSON.parse(t.phone_detail):this.tableData3=[],e.next=25,Object(c["d"])({order_id:t.id});case 25:return n=e.sent,i=n.data,this.tableData1=i.orderBikeOperate,this.tableData2=i.walletLog,e.next=31,Object(c["j"])({order_id:t.id});case 31:return r=e.sent,s=r.data,this.markerOrderPosition.position=s.orderPosition,this.markerBikePosition.position=s.bikePosition,this.is_whole_area_huanche=s.is_whole_area_huanche,this.center=s.orderPosition,this.initParking(t.area_id),e.next=40,Promise.all([Object(c["e"])({order_id:t.id})]);case 40:o=e.sent,l=Object(a["a"])(o,1),u=l[0].data,p=this,d=u.orderLocations,this.pathDataTimes=u.locationsTimes,0==d.length?(this.pathMarks=[],this.$message("此订单暂无轨迹"),window.pathSimplifierIns&&(pathSimplifierIns.setData([]),pathSimplifierIns.clearPathNavigators())):(m=parseInt(d.length/2),d[m],this.zoom=19,this.pathData=d,this.pathMarks=[],window.pathSimplifierIns&&(pathSimplifierIns.setData([]),pathSimplifierIns.clearPathNavigators()),AMapUI.load(["ui/misc/PathSimplifier"],function(e){e.supportCanvas?p.initPage(e):alert("当前环境不支持 Canvas!")}));case 47: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,this.form.starting_price_time/this.form.starting_price==this.form.per_minute/this.form.per_money?this.isStart=!1:this.isStart=!0},initParking:function(){var e=Object(s["a"])(regeneratorRuntime.mark(function e(t){var n,i,r,s,o,l,c,p,d,h,_,f,y,g,v,b;return regeneratorRuntime.wrap(function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Promise.all([Object(u["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,Promise.all([Object(m["c"])({type:2,area_id:t,status:1})]);case 10:return o=e.sent,l=Object(a["a"])(o,1),c=l[0].data,p=[],d=[],h=c,h.forEach(function(e,t){e.parking_centre=JSON.parse(e.parking_centre),p.push({draggable:!1,strokeOpacity:.1,fillOpacity:.1,path:e.parking_fence,events:{change:function(){},click:function(){}}}),d.push({center:e.parking_centre,radius:e.parking_radius,fillOpacity:.1,events:{click:function(){}}})}),1==s&&(this.circles=d),this.polygons=p,e.next=21,Promise.all([Object(m["c"])({type:1,area_id:t,status:1})]);case 21:_=e.sent,f=Object(a["a"])(_,1),y=f[0].data,g=[],v=[],b=y,b.forEach(function(e,t){e.parking_centre=JSON.parse(e.parking_centre),g.push({draggable:!1,strokeOpacity:.1,fillOpacity:.3,fillColor:"red",strokeColor:"red",path:e.parking_fence,events:{change:function(){},click:function(){}}}),v.push({center:e.parking_centre,radius:e.parking_radius,fillOpacity:.3,fillColor:"red",strokeColor:"red",events:{click:function(){}}})}),this.banCircles=v,this.banPolygons=g;case 30: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()},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(c["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}(),returnMoneyClick:function(e,t){this.returnIndex=t,this.returnDialogVisible=!0,this.pay_money=e.pay_money,this.pay_money_yun=e.pay_money,this.ke_return_time_money=e.pay_money-e.dispatch_money,this.time_money=e.time_money,this.dispatch_money=e.dispatch_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.pay_money),this.settlementMoneyForm.dispatch_money=Number(e.dispatch_money),this.settlementMoneyForm.ridding_money=Number(e.time_money),this.settlementMoneyForm.preferential_money=Number(e.preferential_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(c["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.pay_money<0&&this.$message({message:"返还骑行金额不能大于实际支付金额",type:"warning"})},returnDispatchMoney:function(){this.pay_money=this.pay_money_yun-this.returnMoneyForm.dispatch_money-this.returnMoneyForm.ridding_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(c["l"])(this.returnMoneyForm).then(function(e){e.then(function(e){e&&(t.$message({message:"操作成功",type:"success"}),t.orders[t.returnIndex].pay_money=t.pay_money)})});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.preferential_money),this.settlementMoneyForm.pay_money=this.settlementMoneyForm.pay_money<0?0:this.settlementMoneyForm.pay_money},settlementDispatchMoney:function(){this.settlementMoneyForm.pay_money=Number(this.settlementMoneyForm.ridding_money)+Number(this.settlementMoneyForm.dispatch_money)-Number(this.settlementMoneyForm.preferential_money),this.settlementMoneyForm.pay_money=this.settlementMoneyForm.pay_money<0?0:this.settlementMoneyForm.pay_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(c["m"])(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())})});case 2:this.orders[this.settlementIndex].pay_money=parseFloat(this.settlementMoneyForm.pay_money),this.orders[this.settlementIndex].dispatch_money=parseFloat(this.settlementMoneyForm.dispatch_money),this.orders[this.settlementIndex].time_money=parseFloat(this.settlementMoneyForm.ridding_money),this.settlementDialogVisible=!1;case 6: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(c["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}(),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(c["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}()}},g=y,v=(n("7b3f"),n("2877")),b=Object(v["a"])(g,i,r,!1,null,"2128350a",null);t["default"]=b.exports},"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}]})},"469f":function(e,t,n){n("6c1c"),n("1654"),e.exports=n("7d7b")},"4cc4":function(e,t,n){"use strict";n.d(t,"f",function(){return r}),n.d(t,"g",function(){return a}),n.d(t,"k",function(){return s}),n.d(t,"e",function(){return o}),n.d(t,"h",function(){return l}),n.d(t,"d",function(){return c}),n.d(t,"c",function(){return u}),n.d(t,"m",function(){return p}),n.d(t,"j",function(){return d}),n.d(t,"l",function(){return m}),n.d(t,"b",function(){return h}),n.d(t,"i",function(){return _}),n.d(t,"a",function(){return f}),n.d(t,"n",function(){return y});var i=n("bf9a");function r(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return i["b"].get("orders",{params:e})}function a(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return i["b"].get("orders/getByNo",{params:e})}function s(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return i["b"].get("orders/orderLocationsearch",{params:e})}function o(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return i["b"].get("orders/orderLocation",{params:e})}function l(){return i["b"].get("orders/orderStatus")}function c(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return i["b"].get("orders/orderBikeOperate",{params:e})}function u(e){return i["b"].post("orders/closeLock",e)}function p(e){return i["b"].post("orders/settlement",e)}function d(e){return i["b"].post("orders/orderDetailPosition",e)}function m(e){return i["b"].post("orders/returnOrderMoney",e)}function h(e){return i["b"].post("orders/changeOrderRiding",e)}function _(e){return i["b"].post("bike/getTrajectory",e)}function f(e){return i["b"].post("orders/orderBikeContro",e)}function y(e,t){return i["b"].put("orders/".concat(e),t)}},"5d73":function(e,t,n){e.exports=n("469f")},"69d9":function(e,t,n){"use strict";n("8e6e"),n("456d"),n("7f7f"),n("ac6a");var i=n("bd86");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;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?r(n,!0).forEach(function(t){Object(i["a"])(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):r(n).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var s,o,l={name:"SearchForm",data:function(){return{form:{},show:!0}},props:{fields:Array,resetCurrentPage:{type:Boolean,default:!0}},created:function(){this.initFormShow()},methods:{onSubmit:function(){var e=this,t=a({},this.$route.query);this.resetCurrentPage&&delete t.page,this.fields.forEach(function(n){var i=n.field,r=e.form[i];"string"===typeof r&&(r=r.trim()),""===r||void 0===r?delete t[i]:(t[i]=r,"time_between"===i&&(t[i]=null==r?r:[r[0],r[1]]))}),this.$router.push({path:this.$route.path,query:t})},dateFormat:function(e){var t=e.getFullYear()+"-"+this.p(e.getMonth()+1)+"-"+this.p(e.getDate()),n=this.p(e.getHours())+":"+this.p(e.getMinutes())+":"+this.p(e.getSeconds());return t+n},p:function(e){return e<10?"0"+e:e},onReset:function(){this.form={},this.onSubmit()},initFormShow:function(){var e=this;this.fields.some(function(t){if(e.$route.query[t.field])return e.show=!0,!0})},setFormValueFromQuery:function(){var e=this,t=this.$route.query;this.fields.forEach(function(n){var i=n.field,r=t[i];e.$set(e.form,i,r)})},toggleShow:function(){this.show=!this.show},getOffsetHeight:function(){var e=document.getElementById("div-searchForm"),t=e.clientWidth||e.offsetWidth;this.formHeight=t}},watch:{$route:{handler:function(){this.setFormValueFromQuery()},immediate:!0}},render:function(e){var t=this;return e("el-collapse-transition",[e("div",{directives:[{name:"show",value:this.show}]},[e("el-form",{attrs:{inline:!0},nativeOn:{keydown:function(e){return"button"in e||!t._k(e.keyCode,"enter",13,e.key,"Enter")?(e.preventDefault(),t.onSubmit(e)):null}}},[this.fields.map(function(n){var i;switch(n.type){case"el-select":i=e("el-select",{style:"width:150px;",attrs:{placeholder:n.label,filterable:!0,clearable:!0},model:{value:t.form[n.field],callback:function(e){t.$set(t.form,n.field,e)}}},[n.options.map(function(t){return e("el-option",{key:t.value||t.id,attrs:{label:t.label||t.name,value:String(t.value||t.id)}})})]);break;case"time-between":i=e("el-date-picker",{attrs:{type:"datetimerange","value-format":"yyyy-MM-dd HH:mm:ss","start-placeholder":n.label1,"end-placeholder":n.label2},model:{value:t.form[n.field],callback:function(e){t.$set(t.form,n.field,e)}}});break;case"super-input":i=e("el-input",{attrs:{placeholder:n.label,clearable:!0},model:{value:t.form[n.field],callback:function(e){t.$set(t.form,n.field,e)}}});break;default:i=e("el-input",{attrs:{placeholder:n.label,clearable:!0},model:{value:t.form[n.field],callback:function(e){t.$set(t.form,n.field,e)}}})}return e("el-form-item",{key:n.field},[i])}),e("el-form-item",{class:"actions"},[e("el-button",{attrs:{type:"primary"},on:{click:this.onSubmit}},["查询"]),e("el-button",{on:{click:this.onReset}},["重置"])])])])])}},c=l,u=(n("cafd"),n("2877")),p=Object(u["a"])(c,s,o,!1,null,"6dd66826",null);t["a"]=p.exports},"768b":function(e,t,n){"use strict";var i=n("a745"),r=n.n(i);function a(e){if(r()(e))return e}var s=n("5d73"),o=n.n(s);function l(e,t){var n=[],i=!0,r=!1,a=void 0;try{for(var s,l=o()(e);!(i=(s=l.next()).done);i=!0)if(n.push(s.value),t&&n.length===t)break}catch(c){r=!0,a=c}finally{try{i||null==l["return"]||l["return"]()}finally{if(r)throw a}}return n}function c(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}function u(e,t){return a(e)||l(e,t)||c()}n.d(t,"a",function(){return u})},"7b3f":function(e,t,n){"use strict";var i=n("d8bf"),r=n.n(i);r.a},"7d7b":function(e,t,n){var i=n("e4ae"),r=n("7cd6");e.exports=n("584a").getIterator=function(e){var t=r(e);if("function"!=typeof t)throw TypeError(e+" is not iterable!");return i(t.call(e))}},"81df":function(e,t,n){"use strict";var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return e.page?n("el-pagination",e._b({ref:"page",attrs:{"page-sizes":e.pageSizes,"current-page":e.currentPage,"page-size":e.perPage,total:e.page.total,layout:e.layout,background:""},on:{"size-change":e.onSizeChange,"current-change":e.onChange,"update:currentPage":function(t){e.currentPage=t},"update:current-page":function(t){e.currentPage=t},"update:pageSize":function(t){e.perPage=t},"update:page-size":function(t){e.perPage=t}}},"el-pagination",e.$attrs,!1)):e._e()},r=[],a={name:"Pagination",data:function(){return{currentPage:1,perPage:10}},props:{page:Object,layout:{type:String,default:"total, prev, pager, next, sizes, jumper"},autoPush:{type:Boolean,default:!0}},computed:{pageSizes:function(){var e=[10,30,50,100,200],t=this.page.per_page;return-1===e.indexOf(t)?[this.page.per_page].concat(e):e}},methods:{push:function(){var e=Object.assign({},this.$route.query,{page:this.currentPage,per_page:this.perPage});this.$router.push({path:this.$route.path,query:e})},onSizeChange:function(e){this.$emit("size-change",e),this.autoPush&&(this.currentPage=1,this.push())},onChange:function(e){this.$emit("current-change",e),this.autoPush&&this.push()}},watch:{page:{handler:function(e){var t=this;e&&(this.currentPage=e.current_page,this.perPage=e.per_page,this.$nextTick(function(){t.$refs.page.internalCurrentPage=e.current_page}))},immediate:!0}}},s=a,o=n("2877"),l=Object(o["a"])(s,i,r,!1,null,"f691fd2e",null);t["a"]=l.exports},"83a1":function(e,t){e.exports=Object.is||function(e,t){return e===t?0!==e||1/e===1/t:e!=e&&t!=t}},"8dd0":function(e,t,n){"use strict";var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{directives:[{name:"click-outside",rawName:"v-click-outside",value:e.onCancel,expression:"onCancel"}],staticClass:"input-edit",on:{keydown:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"esc",27,t.key,["Esc","Escape"])?null:e.onCancel(t)}}},[n("span",{directives:[{name:"show",rawName:"v-show",value:!e.editMode,expression:"!editMode"}],staticClass:"value",on:{click:function(t){e.editMode=!0}}},[e._v("\n "+e._s(e.$attrs.value)+"\n "),n("i",{directives:[{name:"show",rawName:"v-show",value:!e.$attrs.value,expression:"!$attrs.value"}],staticClass:"el-icon-edit"})]),n("el-input",e._g(e._b({directives:[{name:"show",rawName:"v-show",value:e.editMode,expression:"editMode"}],ref:"input",attrs:{disabled:e.loading,size:"small"},nativeOn:{keydown:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.onSubmit(t)}}},"el-input",e.$attrs,!1),e.$listeners)),n("el-button-group",{directives:[{name:"show",rawName:"v-show",value:e.editMode,expression:"editMode"}]},[n("el-button",{staticClass:"cancel",attrs:{size:"mini",icon:"el-icon-close"},on:{click:e.onCancel}}),n("el-button",{attrs:{loading:e.loading,disabled:e.loading,size:"mini",type:"primary",icon:"el-icon-check"},on:{click:e.onSubmit}})],1)],1)},r=[],a=n("bd86"),s=(n("96cf"),n("3b8d")),o=(n("c5f6"),n("873a")),l={data:function(){return{loading:!1,resetValueWhenError:!1}},props:{update:Function,field:String,id:[String,Number]},mounted:function(){var e=Object(s["a"])(regeneratorRuntime.mark(function e(){return regeneratorRuntime.wrap(function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,this.$nextTick();case 2:this.setOldVal();case 3:case"end":return e.stop()}},e,this)}));function t(){return e.apply(this,arguments)}return t}(),methods:{onSubmit:function(){var e=Object(s["a"])(regeneratorRuntime.mark(function e(){return regeneratorRuntime.wrap(function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,this.goUpdate();case 2:case"end":return e.stop()}},e,this)}));function t(){return e.apply(this,arguments)}return t}(),goUpdate:function(){var e=Object(s["a"])(regeneratorRuntime.mark(function e(){var t,n,i,r,s=this,l=arguments;return regeneratorRuntime.wrap(function(e){while(1)switch(e.prev=e.next){case 0:if(t=l.length>0&&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},aeea:function(e,t,n){},b0d1:function(e,t,n){"use strict";var i=n("aeea"),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("0fb6"),r=n.n(i);r.a},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){}}]);
- //# sourceMappingURL=chunk-055ead5c.6af11930.js.map
|