(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-75f6ef62"],{"0091":function(t,e,r){},"0cd2":function(t,e,r){},"305e":function(t,e,r){"use strict";r.r(e);var n=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("el-card",{scopedSlots:t._u([{key:"header",fn:function(){return[r("content-header")]},proxy:!0}])},[r("el-row",{attrs:{type:"flex",justify:"center"}},[r("lz-form",{ref:"form",attrs:{"get-data":t.getData,submit:t.onSubmit,form:t.form,errors:t.errors,"edit-mode":t.editMode},on:{"update:form":function(e){t.form=e},"update:errors":function(e){t.errors=e}}},[r("el-form-item",{attrs:{label:"相关订单号",prop:"order_no"}},[r("el-input",{model:{value:t.form.order_no,callback:function(e){t.$set(t.form,"order_no",e)},expression:"form.order_no"}}),r("el-button",{on:{click:t.OneClickFill}},[t._v("一键填充")])],1),r("el-form-item",{attrs:{label:"车辆编号",required:"",prop:"bike_no"}},[r("el-input",{model:{value:t.form.bike_no,callback:function(e){t.$set(t.form,"bike_no",e)},expression:"form.bike_no"}})],1),r("el-form-item",{attrs:{label:"用户手机号",required:"",prop:"user_mobile"}},[r("el-input",{model:{value:t.form.user_mobile,callback:function(e){t.$set(t.form,"user_mobile",e)},expression:"form.user_mobile"}})],1),r("el-form-item",{attrs:{label:"详情",required:"",prop:"detail"}},[r("el-input",{attrs:{type:"textarea",autosize:{minRows:2,maxRows:4},placeholder:"请输入内容"},model:{value:t.form.detail,callback:function(e){t.$set(t.form,"detail",e)},expression:"form.detail"}})],1),r("el-form-item",{attrs:{label:"发生时间",required:"",prop:"occurrence_time"}},[r("el-date-picker",{attrs:{"value-format":"yyyy-MM-dd HH:mm:ss",type:"datetime",placeholder:"选择日期时间"},model:{value:t.form.occurrence_time,callback:function(e){t.$set(t.form,"occurrence_time",e)},expression:"form.occurrence_time"}})],1),r("el-form-item",{attrs:{label:"需支付金额",required:"",prop:"pay_money"}},[r("el-input-number",{attrs:{precision:2,step:.1,max:1e3,min:0},model:{value:t.form.pay_money,callback:function(e){t.$set(t.form,"pay_money",e)},expression:"form.pay_money"}})],1)],1)],1)],1)},o=[],i=(r("ac6a"),r("5df3"),r("768b")),a=(r("96cf"),r("3b8d")),s=r("b83f"),u=r("b64d"),c=r("4cc4"),f=r("ada3"),d=r("fe06"),l={name:"Form",components:{LzForm:f["a"]},mixins:[d["a"]],data:function(){return{form:{order_no:"",detail:"",bike_no:"",user_mobile:"",pay_money:"",occurrence_time:""},errors:{},areas:[]}},methods:{getData:function(){var t=Object(a["a"])(regeneratorRuntime.mark(function t(){var e,r,n,o,a;return regeneratorRuntime.wrap(function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,Promise.all([Object(u["b"])({all:1})]);case 2:if(e=t.sent,r=Object(i["a"])(e,1),n=r[0].data,this.areas=n,!this.editMode){t.next=13;break}return t.next=9,Object(s["a"])(this.resourceId);case 9:o=t.sent,a=o.data,a.put_status=a.put_status?"1":"0",this.fillForm(a);case 13:case"end":return t.stop()}},t,this)}));function e(){return t.apply(this,arguments)}return e}(),onSubmit:function(){var t=Object(a["a"])(regeneratorRuntime.mark(function t(){return regeneratorRuntime.wrap(function(t){while(1)switch(t.prev=t.next){case 0:if(!this.editMode){t.next=5;break}return t.next=3,Object(s["d"])(this.resourceId,this.form);case 3:t.next=7;break;case 5:return t.next=7,Object(s["c"])(this.form);case 7:case"end":return t.stop()}},t,this)}));function e(){return t.apply(this,arguments)}return e}(),OneClickFill:function(){var t=this;Object(c["g"])({no:this.form.order_no}).then(function(e){e.then(function(e){t.form.bike_no=e.data.bikes.bike_no,t.form.user_mobile=e.data.users.mobile})})}}},p=l,m=r("2877"),h=Object(m["a"])(p,n,o,!1,null,null,null);e["default"]=h.exports},"469f":function(t,e,r){r("6c1c"),r("1654"),t.exports=r("7d7b")},"4cc4":function(t,e,r){"use strict";r.d(e,"f",function(){return o}),r.d(e,"g",function(){return i}),r.d(e,"k",function(){return a}),r.d(e,"e",function(){return s}),r.d(e,"h",function(){return u}),r.d(e,"d",function(){return c}),r.d(e,"c",function(){return f}),r.d(e,"m",function(){return d}),r.d(e,"j",function(){return l}),r.d(e,"l",function(){return p}),r.d(e,"b",function(){return m}),r.d(e,"i",function(){return h}),r.d(e,"a",function(){return b}),r.d(e,"n",function(){return v});var n=r("bf9a");function o(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return n["b"].get("orders",{params:t})}function i(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return n["b"].get("orders/getByNo",{params:t})}function a(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return n["b"].get("orders/orderLocationsearch",{params:t})}function s(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return n["b"].get("orders/orderLocation",{params:t})}function u(){return n["b"].get("orders/orderStatus")}function c(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return n["b"].get("orders/orderBikeOperate",{params:t})}function f(t){return n["b"].post("orders/closeLock",t)}function d(t){return n["b"].post("orders/settlement",t)}function l(t){return n["b"].post("orders/orderDetailPosition",t)}function p(t){return n["b"].post("orders/returnOrderMoney",t)}function m(t){return n["b"].post("orders/changeOrderRiding",t)}function h(t){return n["b"].post("bike/getTrajectory",t)}function b(t){return n["b"].post("orders/orderBikeContro",t)}function v(t,e){return n["b"].put("orders/".concat(t),e)}},"5d73":function(t,e,r){t.exports=r("469f")},"6cbc":function(t,e,r){"use strict";var n=r("0cd2"),o=r.n(n);o.a},"768b":function(t,e,r){"use strict";var n=r("a745"),o=r.n(n);function i(t){if(o()(t))return t}var a=r("5d73"),s=r.n(a);function u(t,e){var r=[],n=!0,o=!1,i=void 0;try{for(var a,u=s()(t);!(n=(a=u.next()).done);n=!0)if(r.push(a.value),e&&r.length===e)break}catch(c){o=!0,i=c}finally{try{n||null==u["return"]||u["return"]()}finally{if(o)throw i}}return r}function c(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}function f(t,e){return i(t)||u(t,e)||c()}r.d(e,"a",function(){return f})},"7d7b":function(t,e,r){var n=r("e4ae"),o=r("7cd6");t.exports=r("584a").getIterator=function(t){var e=o(t);if("function"!=typeof e)throw TypeError(t+" is not iterable!");return n(e.call(t))}},"8a92":function(t,e,r){"use strict";var n=r("0091"),o=r.n(n);o.a},ada3:function(t,e,r){"use strict";r("8e6e"),r("456d");var n=r("bd86"),o=r("75fc"),i=(r("a481"),r("96cf"),r("3b8d")),a=(r("ac6a"),r("28a5"),r("9948")),s=r.n(a),u=r("9b02"),c=r.n(u),f=r("1a38"),d=r("873a"),l=r("a22f");function p(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)}return r}function m(t){for(var e=1;e");var u=t("template",{slot:"label"},[t("span",[s]),t("el-tooltip",{attrs:{effect:"dark",placement:"top-start","popper-class":"form-helper-popper ".concat(e.miniWidth?"mini-width":"")}},[t("div",{slot:"content",domProps:{innerHTML:a}}),t("i",{class:"ml-1 el-icon-question helper"})])]);return t("el-form-item",{props:n.propsData},[u].concat(Object(o["a"])(n.children)))}return r}));!this.disableStay&&t("el-checkbox",{attrs:{title:"表单提交后,留在此页"},model:{value:e.stay,callback:function(t){e.stay=t}}},["留在此页"]);var n=this.$slots.footer||t("el-form-item",{class:"footer"},[t("loading-action",{attrs:{type:"primary",action:this.onSubmit}},[this.submitText]),t("el-button",{on:{click:this.onReset}},["重置"]),this.$slots.footerAppend,t("flex-spacer")]);return t("el-form",{props:m({model:this.form,errors:this.errors,labelPosition:this.realLabelPosition},this.$attrs),on:m({},this.$listeners),class:{"in-dialog":this.inDialog},style:{width:this.inDialog?"auto":"800px"},directives:[{name:"loading",value:this.loading}],ref:"form"},[r,n])}},g=v,y=(r("6cbc"),r("8a92"),r("2877")),k=Object(y["a"])(g,h,b,!1,null,"3084f0c4",null);e["a"]=k.exports},b64d:function(t,e,r){"use strict";r.d(e,"b",function(){return o}),r.d(e,"c",function(){return i}),r.d(e,"d",function(){return a}),r.d(e,"e",function(){return s}),r.d(e,"a",function(){return u});var n=r("bf9a");function o(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return n["b"].get("area",{params:t})}function i(t){return n["b"].get("area/".concat(t))}function a(t){return n["b"].post("area",t)}function s(t,e){return n["b"].put("area/".concat(t),e)}function u(t){return n["b"].get("area/".concat(t,"/edit"))}},b83f:function(t,e,r){"use strict";r.d(e,"b",function(){return o}),r.d(e,"c",function(){return i}),r.d(e,"d",function(){return a}),r.d(e,"a",function(){return s});var n=r("bf9a");function o(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return n["b"].get("punishment_orders",{params:t})}function i(t){return n["b"].post("punishment_orders",t)}function a(t,e){return n["b"].put("punishment_orders/".concat(t),e)}function s(t){return n["b"].get("punishment_orders/".concat(t,"/edit"))}},fe06:function(t,e,r){"use strict";var n=r("873a");e["a"]={provide:function(){return{view:this}},data:function(){return{formField:"form",idField:"id"}},computed:{editMode:function(){return!!this.resourceId},resourceId:function(){return this.$route.params[this.idField]}},created:function(){this.backupForm()},methods:{getResourceId:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"id";return this.$route.params[t]},backupForm:function(){this.formBak=JSON.parse(JSON.stringify(this.$data[this.formField]))},fillForm:function(t){this.$data[this.formField]=Object(n["b"])(this.$data[this.formField],t)}}}}}]); //# sourceMappingURL=chunk-75f6ef62.db8fec81.js.map