(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-3b5d33de"],{1030:function(t,e,r){},"1bca":function(t,e,r){"use strict";r.d(e,"b",(function(){return n})),r.d(e,"a",(function(){return a})),r.d(e,"d",(function(){return s})),r.d(e,"e",(function(){return o})),r.d(e,"c",(function(){return l}));var i=r("bf9a");function n(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return i["b"].get("worker",{params:t})}function a(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return i["b"].get("worker/workOrderChart",{params:t})}function s(t){return i["b"].post("worker",t)}function o(t,e){return i["b"].put("worker/".concat(t),e)}function l(t){return i["b"].post("worker/reset",t)}},"323a":function(t,e,r){"use strict";r.d(e,"e",(function(){return n})),r.d(e,"f",(function(){return a})),r.d(e,"a",(function(){return s})),r.d(e,"c",(function(){return o})),r.d(e,"d",(function(){return l})),r.d(e,"b",(function(){return c}));var i=r("bf9a");function n(t){return i["b"].post("admin_merchants",t)}function a(t,e){return i["b"].put("admin_merchants/".concat(t),e)}function s(t){return i["b"].get("admin_merchants/".concat(t,"/edit"))}function o(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return i["b"].get("admin_merchants",{params:t})}function l(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return i["b"].get("admin_merchant_config/get",{params:t})}function c(t){return i["b"].post("admin_merchant_config/edit",t)}},3835:function(t,e,r){"use strict";function i(t){if(Array.isArray(t))return t}function n(t,e){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(t)){var r=[],i=!0,n=!1,a=void 0;try{for(var s,o=t[Symbol.iterator]();!(i=(s=o.next()).done);i=!0)if(r.push(s.value),e&&r.length===e)break}catch(l){n=!0,a=l}finally{try{i||null==o["return"]||o["return"]()}finally{if(n)throw a}}return r}}r.d(e,"a",(function(){return o}));var a=r("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(t,e){return i(t)||n(t,e)||Object(a["a"])(t,e)||s()}},"386d":function(t,e,r){"use strict";var i=r("cb7c"),n=r("83a1"),a=r("5f1b");r("214f")("search",1,(function(t,e,r,s){return[function(r){var i=t(this),n=void 0==r?void 0:r[e];return void 0!==n?n.call(r,i):new RegExp(r)[e](String(i))},function(t){var e=s(r,t,this);if(e.done)return e.value;var o=i(t),l=String(this),c=o.lastIndex;n(c,0)||(o.lastIndex=0);var u=a(o,l);return n(o.lastIndex,c)||(o.lastIndex=c),null===u?-1:u.index}]}))},"5c9c":function(t,e,r){"use strict";r.d(e,"c",(function(){return n})),r.d(e,"d",(function(){return a})),r.d(e,"a",(function(){return s})),r.d(e,"f",(function(){return o})),r.d(e,"e",(function(){return l})),r.d(e,"b",(function(){return c}));var i=r("bf9a");function n(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return i["b"].get("work_order",{params:t})}function a(){return i["b"].get("work_order/workOrderType")}function s(t){return i["b"].post("work_order/addworkOrder",t)}function o(t){return i["b"].post("work_order/mulOverWorkOrder",t)}function l(t){return i["b"].post("work_order/mulAssignWorkOrder",t)}function c(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return i["b"].get("work_order/getWarningByWorkOrderId",{params:t})}},"69d9":function(t,e,r){"use strict";r("8e6e"),r("456d"),r("7f7f"),r("ac6a");var i=r("ade3");function n(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,i)}return r}function a(t){for(var e=1;e");var l=t("template",{slot:"label"},[t("span",[o]),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:s}}),t("i",{class:"ml-1 el-icon-question helper"})])]);return t("el-form-item",{props:i.propsData},[l].concat(Object(n["a"])(i.children)))}return r})));!this.disableStay&&t("el-checkbox",{attrs:{title:"表单提交后,留在此页"},model:{value:e.stay,callback:function(t){e.stay=t}}},["留在此页"]);var i=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:h({model:this.form,errors:this.errors,labelPosition:this.realLabelPosition},this.$attrs),on:h({},this.$listeners),class:{"in-dialog":this.inDialog},style:{width:this.inDialog?"auto":"800px"},directives:[{name:"loading",value:this.loading}],ref:"form"},[r,i])}},v=g,_=(r("6cbc"),r("8a92"),r("2877")),w=Object(_["a"])(v,m,b,!1,null,"3084f0c4",null);e["a"]=w.exports},b180:function(t,e,r){"use strict";r.r(e);var i=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("div",{staticClass:"header-button"},[r("search-form",{ref:"searchForm",attrs:{fields:t.search}}),r("div",{staticClass:"selections"},[r("el-button-group",[r("el-button",{staticClass:"btnc",attrs:{type:"warning"},on:{click:function(e){t.muldialogVisible=!0}}},[t._v("批量完成")]),r("el-button",{staticClass:"btnc",attrs:{type:"success"},on:{click:function(e){t.mulAssignDialogVisible=!0}}},[t._v("批量指派")])],1),r("el-button-group",[r("el-button",{staticClass:"btnc",attrs:{type:"primary"},on:{click:t.addWorkOrder}},[t._v("添加工单")])],1),r("el-dialog",{attrs:{title:"添加工单",visible:t.dialogVisibleForm,width:"25%"},on:{"update:visible":function(e){t.dialogVisibleForm=e}}},[r("el-form",{ref:"form",attrs:{model:t.form,rules:t.rules,errors:t.errors,"disable-redirect":!0,"label-width":"80px"},on:{"update:errors":function(e){t.errors=e}}},[r("el-form-item",{attrs:{required:"",prop:"bike_no",label:"车辆编号"}},[r("el-input",{staticClass:"limitwidth",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:{required:"",prop:"type",label:"工单类型"}},[r("el-select",{staticClass:"limitwidth",attrs:{filterable:"",clearable:"",placeholder:"请选择"},model:{value:t.form.type,callback:function(e){t.$set(t.form,"type",e)},expression:"form.type"}},t._l(t.typeForm,(function(t){return r("el-option",{key:t.id,attrs:{label:t.name,value:t.id}})})),1)],1),r("el-form-item",{attrs:{required:"",prop:"reason",label:"原因"}},[r("el-input",{staticClass:"limitwidth",model:{value:t.form.reason,callback:function(e){t.$set(t.form,"reason",e)},expression:"form.reason"}})],1)],1),r("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[r("el-button",{on:{click:function(e){t.dialogVisibleForm=!1}}},[t._v("取 消")]),r("el-button",{attrs:{type:"primary"},on:{click:function(e){return t.onSubmit("form")}}},[t._v("确 定")])],1)],1)],1)],1),r("el-table",{ref:"multipleTable",attrs:{data:t.users,resource:"admin-users"},on:{"selection-change":t.handleSelectionChange}},[r("el-table-column",{attrs:{type:"selection",width:"55","reserve-selection":!0,prop:"id"}}),r("el-table-column",{attrs:{prop:"bike_no",label:"车牌号",align:"center","show-overflow-tooltip":"","min-width":"6%"}}),r("el-table-column",{attrs:{prop:"box_no",label:"中控号",align:"center","show-overflow-tooltip":"","min-width":"5%"}}),r("el-table-column",{attrs:{prop:"type",label:"工单类型",align:"center","show-overflow-tooltip":"","min-width":"8%"},scopedSlots:t._u([{key:"default",fn:function(e){return[3==e.row.type||5==e.row.type?r("el-tag",{attrs:{type:"danger",effect:"plain"}},[t._v(t._s(e.row.trouble_part_name))]):1==e.row.type?r("el-tag",{attrs:{type:"warning"}},[t._v(t._s(e.row.trouble_part_name))]):2==e.row.type?r("el-tag",{attrs:{type:"success"}},[t._v(t._s(e.row.trouble_part_name))]):7==e.row.type?r("el-tag",{attrs:{type:"info"}},[t._v(t._s(e.row.trouble_part_name))]):8==e.row.type||9==e.row.type||10==e.row.type||6==e.row.type?r("el-tag",{attrs:{type:"danger",effect:"dark"}},[t._v(t._s(e.row.trouble_part_name))]):r("el-tag",[t._v(t._s(e.row.trouble_part_name))])]}}])}),r("el-table-column",{attrs:{prop:"reason",align:"center","show-overflow-tooltip":"","min-width":"4%",label:"原因"}}),r("el-table-column",{attrs:{prop:"fix_worker_name",label:"接单人",align:"center","show-overflow-tooltip":"","min-width":"4%"}}),r("el-table-column",{attrs:{prop:"fix_worker_phone",label:"手机号",align:"center","show-overflow-tooltip":"","min-width":"6%"}}),r("el-table-column",{attrs:{prop:"area_name",align:"center","show-overflow-tooltip":"","min-width":"5%",label:"区域"}}),r("el-table-column",{attrs:{prop:"insert_time",align:"center","show-overflow-tooltip":"","min-width":"4%",label:"报警时间"}}),r("el-table-column",{attrs:{prop:"times",align:"center","show-overflow-tooltip":"","min-width":"2%",label:"插入次数"}}),r("el-table-column",{attrs:{prop:"fix_start_time",align:"center","show-overflow-tooltip":"","min-width":"4%",label:"接单时间"}}),r("el-table-column",{attrs:{prop:"planned",label:"工单进度",align:"center","show-overflow-tooltip":"","min-width":"5%"},scopedSlots:t._u([{key:"default",fn:function(e){return[1==e.row.planned_status?r("el-tag",{attrs:{type:"danger"}},[t._v(t._s(e.row.planned))]):2==e.row.planned_status?r("el-tag",{attrs:{type:"warning"}},[t._v(t._s(e.row.planned))]):3==e.row.planned_status||4==e.row.planned_status?r("el-tag",{attrs:{type:"success"}},[t._v(t._s(e.row.planned))]):t._e()]}}])}),r("el-table-column",{attrs:{prop:"fix_end_time",align:"center","show-overflow-tooltip":"","min-width":"4%",label:"完成时间"}}),r("el-table-column",{attrs:{label:"报修状态",align:"center","show-overflow-tooltip":"","min-width":"4%"},scopedSlots:t._u([{key:"default",fn:function(e){return[e.row.fix_status?r("el-tag",{attrs:{type:"success"}},[t._v("已维修")]):r("el-tag",{attrs:{type:"danger"}},[t._v("未维修")])]}}])}),r("el-table-column",{attrs:{label:"操作",align:"center",width:"280"},scopedSlots:t._u([{key:"default",fn:function(e){var i=e.row;e.$index;return[r("el-button",{attrs:{size:"small"},on:{click:function(e){return t.ditailClick(i)}}},[t._v("详情")]),i.is_over?r("el-button",{attrs:{size:"small",type:"warning"},on:{click:function(e){return t.OperationOverDialog(i)}}},[t._v("\n 点击完成\n ")]):t._e(),i.is_zhipai?r("el-button",{attrs:{size:"small",type:"success"},on:{click:function(e){return t.OperationAssignDialog(i)}}},[t._v("\n 点击指派\n ")]):t._e()]}}])})],1),r("div",{staticClass:"card-footer"},[r("pagination",{attrs:{page:t.page}})],1),r("el-dialog",{staticClass:"tabs-fx",attrs:{title:"详情",visible:t.dialogVisible,width:"50%"},on:{"update:visible":function(e){t.dialogVisible=e}}},[r("el-dialog",{attrs:{width:"30%",title:"维修图片",visible:t.innerVisible,"append-to-body":""},on:{"update:visible":function(e){t.innerVisible=e}}},t._l(t.rows.fix_image,(function(t,e){return r("img",{key:e,attrs:{src:t,alt:"测试"}})})),0),r("div",{staticClass:"bigC"},[r("div",{staticClass:"info-wrp",staticStyle:{width:"50%"}},[r("div",{staticClass:"title"},[t._v("故障信息")]),r("div",{staticClass:"info-item"},[r("span",[t._v("车牌号:")]),r("span",[t._v(t._s(t.rows.bike_no))])]),r("div",{staticClass:"info-item"},[r("span",[t._v("工单类型:")]),r("span",[t._v(t._s(t.rows.trouble_part_name))])]),r("div",{staticClass:"info-item"},[r("span",[t._v("原因:")]),r("span",[t._v(t._s(t.rows.reason))])]),r("div",{staticClass:"info-item"},[r("span",[t._v("工单级别:")]),r("span",[t._v(t._s(t.rows.times)+"(越大越紧急)")])]),r("div",{staticClass:"info-item"},[r("span",[t._v("区域地勤人员:")]),r("span",{staticStyle:{"line-height":"1.4"}},[t._v(t._s(t.rows.area_worker))])]),r("div",{staticClass:"info-item"},[r("span",[t._v("维修状态:")]),r("span",{staticStyle:{color:"rgb(96, 98, 102)"}},[t.rows.fix_status?r("span",{attrs:{type:"success"}},[t._v("已维修")]):r("span",{attrs:{type:"danger"}},[t._v("未维修")])])]),r("div",{staticClass:"info-item"},[r("span",[t._v("接单时间:")]),r("span",[t._v(t._s(t.rows.fix_start_time))])]),r("div",{staticClass:"info-item"},[r("span",[t._v("报警时间:")]),r("span",[t._v(t._s(t.rows.insert_time))])]),r("div",{directives:[{name:"show",rawName:"v-show",value:"1"==t.rows.fix_status,expression:"rows.fix_status == '1'"}]},[r("div",{staticClass:"title"},[t._v("维修信息")]),r("div",{staticClass:"info-item"},[r("span",[t._v("实际维修人员:")]),r("span",[t._v(t._s(t.rows.fix_worker))])]),r("div",{staticClass:"info-item"},[r("span",[t._v("手机号码:")]),r("span",[t._v(t._s(t.rows.fix_worker_phone))])]),r("div",{staticClass:"info-item"},[r("span",[t._v("维修位置:")]),r("span",{staticStyle:{"line-height":"1.4"}},[t._v(t._s(t.rows.fix_part))])]),r("div",{staticClass:"info-item"},[r("span",[t._v("维修图片:")]),r("a",{directives:[{name:"show",rawName:"v-show",value:t.is_img_show,expression:"is_img_show"}],staticStyle:{color:"green"},attrs:{href:"#"},on:{click:function(e){t.innerVisible=!0}}},[t._v("点击查看图片")])]),r("div",{staticClass:"info-item"},[r("span",[t._v("维修时间:")]),r("span",[t._v("2019-07-11 02:42:00")])])])]),r("div",{staticClass:"info-wrpp",staticStyle:{width:"50%"}},[r("div",{staticClass:"table-class"},[r("el-tabs",{on:{"tab-click":t.handleClick},model:{value:t.activeName,callback:function(e){t.activeName=e},expression:"activeName"}},[r("el-tab-pane",{staticStyle:{color:"red"},attrs:{label:"限制警报类型",name:"first"}},[t._v("限制警报类型")]),r("el-tab-pane",{staticStyle:{color:"green"},attrs:{label:"不限警报类型",name:"second"}},[t._v("不限警报类型")])],1),r("el-table",{staticStyle:{width:"100%"},attrs:{data:t.warningLogs}},[r("el-table-column",{attrs:{prop:"created_at",label:"时间",align:"center",width:"170"}}),r("el-table-column",{attrs:{prop:"type_name",label:"报警类型",align:"center",width:"135","show-overflow-tooltip":""}}),r("el-table-column",{attrs:{prop:"source",label:"报警来源",align:"center","show-overflow-tooltip":""}}),r("el-table-column",{attrs:{prop:"body",label:"报警日志",align:"center",width:"90","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[r("el-popover",{attrs:{trigger:"click",placement:"top"}},[r("pre",[t._v(" "+t._s(e.row.body))]),r("div",{staticClass:"name-wrapper",attrs:{slot:"reference"},slot:"reference"},[t._v("\n 详情\n ")])])]}}])})],1)],1)])])],1),r("el-dialog",{attrs:{title:"批量操作完成",visible:t.muldialogVisible,width:"30%"},on:{"update:visible":function(e){t.muldialogVisible=e}}},[r("span",[t._v("确定批量设为已完成吗?")]),r("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[r("el-button",{on:{click:function(e){t.muldialogVisible=!1}}},[t._v("取 消")]),r("el-button",{attrs:{type:"primary"},on:{click:t.mulOperation}},[t._v("确 定")])],1)]),r("el-dialog",{attrs:{title:"操作完成",visible:t.dialogOverVisible,width:"30%"},on:{"update:visible":function(e){t.dialogOverVisible=e}}},[r("span",[t._v("确定设为已完成吗?")]),r("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[r("el-button",{on:{click:function(e){t.dialogOverVisible=!1}}},[t._v("取 消")]),r("el-button",{attrs:{type:"primary"},on:{click:t.OperationOver}},[t._v("确 定")])],1)]),r("el-dialog",{attrs:{title:"批量操作指派",visible:t.mulAssignDialogVisible,width:"30%"},on:{"update:visible":function(e){t.mulAssignDialogVisible=e}}},[r("el-form",[r("el-form-item",{attrs:{required:"",label:"指派地勤人员:"}},[r("el-select",{staticClass:"widm",attrs:{placeholder:"请选择人员"},model:{value:t.worker_id,callback:function(e){t.worker_id=e},expression:"worker_id"}},t._l(t.usersOptions,(function(t){return r("el-option",{key:t.value,attrs:{label:t.label,value:t.value}})})),1)],1)],1),r("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[r("el-button",{on:{click:function(e){t.mulAssignDialogVisible=!1}}},[t._v("取 消")]),r("el-button",{attrs:{type:"primary"},on:{click:t.mulOperationAssign}},[t._v("确 定")])],1)],1),r("el-dialog",{attrs:{title:"指派",visible:t.AssignDialogVisible,width:"30%"},on:{"update:visible":function(e){t.AssignDialogVisible=e}}},[r("div",{staticClass:"info-wrp"},[r("div",{staticClass:"title"},[t._v("故障信息")]),r("div",{staticClass:"info-item"},[r("span",[t._v("车牌号:")]),r("span",[t._v(t._s(t.rows.bike_no))])]),r("div",{staticClass:"info-item"},[r("span",[t._v("工单类型:")]),r("span",[t._v(t._s(t.rows.trouble_part_name))])]),r("div",{staticClass:"info-item"},[r("span",[t._v("原因:")]),r("span",[t._v(t._s(t.rows.reason))])])]),r("el-form",[r("el-form-item",{attrs:{"label-width":"124px",required:"",label:"指派地勤人员:"}},[r("el-select",{staticClass:"widm",attrs:{placeholder:"请选择人员"},model:{value:t.worker_id,callback:function(e){t.worker_id=e},expression:"worker_id"}},t._l(t.usersOptions,(function(t){return r("el-option",{key:t.value,attrs:{label:t.label,value:t.value}})})),1)],1)],1),r("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[r("el-button",{on:{click:function(e){t.AssignDialogVisible=!1}}},[t._v("取 消")]),r("el-button",{attrs:{type:"primary"},on:{click:t.OperationAssign}},[t._v("确 定")])],1)],1)],1)},n=[],a=(r("7f7f"),r("386d"),r("ac6a"),r("5df3"),r("3835")),s=(r("96cf"),r("1da1")),o=r("ada3"),l=r("69d9"),c=r("81df"),u=r("5c9c"),p=r("b64d"),d=r("1bca"),f=r("873a"),h=r("323a"),m={name:"Index",components:{LzForm:o["a"],SearchForm:l["a"],Pagination:c["a"]},data:function(){return{search:[{type:"el-select",field:"area_id",label:"骑行区域",options:[{id:"",name:"全部"}]},{type:"el-select",field:"type",label:"工单类型",options:[{id:"",name:"全部"}]},{type:"el-select",field:"status",label:"报修状态",options:[{id:"",name:"全部"},{id:"0",name:"未维修"},{id:"1",name:"已维修"}]},{type:"time-between",field:"time_between",label1:"接单时间-开始",label2:"接单时间-结束"},{tpye:"super-input",label:"车牌号/维修人昵称/手机号",field:"bike_id_fix_info"},{type:"el-select",field:"merchant_id",label:"商户",options:[{id:"",name:"全部"}]}],multipleSelection:[],muldialogVisible:!1,dialogOverVisible:!1,mulAssignDialogVisible:!1,AssignDialogVisible:!1,assign_work_order_id:"",over_work_order_id:"",worker_id:"",usersOptions:[],users:[],warningLogs:[],page:null,first_blood:!0,dialogVisible:!1,innerVisible:!1,typeForm:[],activeName:"first",rows:{fix_status:"",bike_no:"",trouble_part_name:"",area_worker:"",fix_start_time:"",fix_worker:"",fix_worker_phone:"",fix_part:"",reason:"",fix_image:[],fix_end_time:"",insert_time:"",tiems:1},is_img_show:!1,dialogVisibleForm:!1,form:{bike_no:"",reason:"",type:""},errors:{},rules:{bike_no:[{required:!0,message:"请输入车辆编号",trigger:"blur"}],reason:[{required:!0,message:"请输入原因",trigger:"blur"}],type:[{required:!0,message:"请选择类型",trigger:"blur"}]}}},inject:["reload"],mixins:[f["m"]],watch:{$route:{handler:function(){var t=Object(s["a"])(regeneratorRuntime.mark((function t(e){var r,i,n,a;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,this.autoPageSize(55,e);case 2:return t.next=4,Object(u["c"])(e.query);case 4:r=t.sent,i=r.data,n=i.data,a=i.meta,this.users=n,this.page=a;case 10:case"end":return t.stop()}}),t,this)})));function e(e){return t.apply(this,arguments)}return e}(),immediate:!0}},created:function(){var t=Object(s["a"])(regeneratorRuntime.mark((function t(){var e,r,i,n,s,o,l,c,f,m,b=this;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,Promise.all([Object(p["b"])({all:1}),Object(u["d"])()]);case 2:return e=t.sent,r=Object(a["a"])(e,2),i=r[0].data,n=r[1].data,this.search[0].options.push.apply(this.search[0].options,i),this.search[1].options.push.apply(this.search[1].options,n),this.typeForm=n,t.next=11,Promise.all([Object(d["b"])({all:1})]);case 11:if(s=t.sent,o=Object(a["a"])(s,1),l=o[0].data,this.usersOptions=[],l.map((function(t){b.usersOptions.push({value:t.id,label:t.name})})),"administrator"!==this.$store.state.users.user.roles[0]){t.next=25;break}return t.next=19,Promise.all([Object(h["c"])({all:1})]);case 19:c=t.sent,f=Object(a["a"])(c,1),m=f[0].data,this.search[5].options.push.apply(this.search[5].options,m.data),t.next=26;break;case 25:this.search.splice(5,1);case 26:case"end":return t.stop()}}),t,this)})));function e(){return t.apply(this,arguments)}return e}(),methods:{handleSelectionChange:function(t){this.multipleSelection=t.map((function(t){return t.id}))},mulOperation:function(){var t=this;Object(u["f"])({ids:this.multipleSelection}).then((function(e){e.then((function(e){t.$message({message:"操作成功",type:"success"}),t.dialogVisibleForm=!1,t.reload()}))})),this.muldialogVisible=!1},OperationOverDialog:function(t){this.dialogOverVisible=!0,this.over_work_order_id=t.id},OperationOver:function(){var t=this;Object(u["f"])({ids:[this.over_work_order_id]}).then((function(e){e.then((function(e){t.$message({message:"操作成功",type:"success"}),t.dialogOverVisible=!1,t.reload()}))})),this.dialogOverVisible=!1},OperationAssignDialog:function(t){this.AssignDialogVisible=!0,this.rows.bike_no=t.bike_no,this.rows.trouble_part_name=t.trouble_part_name,this.rows.reason=t.reason,this.assign_work_order_id=t.id},OperationAssign:function(){var t=this;Object(u["e"])({ids:[this.assign_work_order_id],worker_id:this.worker_id}).then((function(e){e.then((function(e){t.$message({message:"操作成功",type:"success"}),t.AssignDialogVisible=!1,t.reload()}))})),this.AssignDialogVisible=!1},mulOperationAssign:function(){var t=this;Object(u["e"])({ids:this.multipleSelection,worker_id:this.worker_id}).then((function(e){e.then((function(e){t.$message({message:"操作成功",type:"success"}),t.mulAssignDialogVisible=!1,t.reload()}))})),this.mulAssignDialogVisible=!1},ditailClick:function(){var t=Object(s["a"])(regeneratorRuntime.mark((function t(e){var r,i,n,s=this;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return this.activeName="first",this.rows.fix_status=e.fix_status,this.rows.bike_no=e.bike_no,this.rows.trouble_part_name=e.trouble_part_name,this.rows.fix_start_time=e.fix_start_time,this.rows.area_worker="",e.workers.map((function(t){s.rows.area_worker+=t.name+"、"})),this.rows.fix_worker=e.fix_over_worker_name,this.rows.reason=e.reason,this.rows.fix_worker_phone=e.fix_over_worker_phone,this.rows.times=e.times,this.rows.id=e.id,this.rows.fix_part=e.fix_part,this.rows.fix_image=JSON.parse(e.fix_img),null!=this.rows.fix_image&&(this.is_img_show=!0),this.rows.fix_end_time=e.fix_end_time,this.rows.insert_time=e.insert_time,this.dialogVisible=!0,t.next=20,Promise.all([Object(u["b"])({id:e.id})]);case 20:r=t.sent,i=Object(a["a"])(r,1),n=i[0].data,this.warningLogs=n;case 24:case"end":return t.stop()}}),t,this)})));function e(e){return t.apply(this,arguments)}return e}(),handleClick:function(){var t=Object(s["a"])(regeneratorRuntime.mark((function t(e,r){var i,n,s,o;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return console.log(e),i={id:this.rows.id},"second"==e.name&&(i={id:this.rows.id,is_limit_type:0}),t.next=5,Promise.all([Object(u["b"])(i)]);case 5:n=t.sent,s=Object(a["a"])(n,1),o=s[0].data,this.warningLogs=o;case 9:case"end":return t.stop()}}),t,this)})));function e(e,r){return t.apply(this,arguments)}return e}(),addWorkOrder:function(){this.dialogVisibleForm=!0},onSubmit:function(t){var e=this;console.log(11),this.$refs[t].validate((function(t){if(!t)return!1;Object(u["a"])(e.form).then((function(t){t.then((function(t){e.$message({message:"添加成功",type:"success"}),e.dialogVisibleForm=!1,e.reload()}))}))}))}}},b=m,g=(r("e209"),r("2877")),v=Object(g["a"])(b,i,n,!1,null,null,null);e["default"]=v.exports},b64d:function(t,e,r){"use strict";r.d(e,"b",(function(){return n})),r.d(e,"c",(function(){return a})),r.d(e,"d",(function(){return s})),r.d(e,"e",(function(){return o})),r.d(e,"a",(function(){return l}));var i=r("bf9a");function n(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return i["b"].get("area",{params:t})}function a(t){return i["b"].get("area/".concat(t))}function s(t){return i["b"].post("area",t)}function o(t,e){return i["b"].put("area/".concat(t),e)}function l(t){return i["b"].get("area/".concat(t,"/edit"))}},cafd:function(t,e,r){"use strict";var i=r("cb81"),n=r.n(i);n.a},cb81:function(t,e,r){},e209:function(t,e,r){"use strict";var i=r("97d9"),n=r.n(i);n.a}}]); //# sourceMappingURL=chunk-3b5d33de.01c6c6b2.js.map