chunk-5ab9f1b8.5d830b5c.js 33 KB

12
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-5ab9f1b8"],{"0091":function(t,e,r){},"0cd2":function(t,e,r){},"0fb6":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)}},"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}]})},"469f":function(t,e,r){r("6c1c"),r("1654"),t.exports=r("7d7b")},"579e":function(t,e,r){},"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})}},"5d73":function(t,e,r){t.exports=r("469f")},"69d9":function(t,e,r){"use strict";r("8e6e"),r("456d"),r("7f7f"),r("ac6a");var i=r("bd86");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<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?n(r,!0).forEach(function(e){Object(i["a"])(t,e,r[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):n(r).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}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 t=this,e=a({},this.$route.query);this.resetCurrentPage&&delete e.page,this.fields.forEach(function(r){var i=r.field,n=t.form[i];"string"===typeof n&&(n=n.trim()),""===n||void 0===n?delete e[i]:(e[i]=n,"time_between"===i&&(e[i]=null==n?n:[n[0],n[1]]))}),this.$router.push({path:this.$route.path,query:e})},dateFormat:function(t){var e=t.getFullYear()+"-"+this.p(t.getMonth()+1)+"-"+this.p(t.getDate()),r=this.p(t.getHours())+":"+this.p(t.getMinutes())+":"+this.p(t.getSeconds());return e+r},p:function(t){return t<10?"0"+t:t},onReset:function(){this.form={},this.onSubmit()},initFormShow:function(){var t=this;this.fields.some(function(e){if(t.$route.query[e.field])return t.show=!0,!0})},setFormValueFromQuery:function(){var t=this,e=this.$route.query;this.fields.forEach(function(r){var i=r.field,n=e[i];t.$set(t.form,i,n)})},toggleShow:function(){this.show=!this.show},getOffsetHeight:function(){var t=document.getElementById("div-searchForm"),e=t.clientWidth||t.offsetWidth;this.formHeight=e}},watch:{$route:{handler:function(){this.setFormValueFromQuery()},immediate:!0}},render:function(t){var e=this;return t("el-collapse-transition",[t("div",{directives:[{name:"show",value:this.show}]},[t("el-form",{attrs:{inline:!0},nativeOn:{keydown:function(t){return"button"in t||!e._k(t.keyCode,"enter",13,t.key,"Enter")?(t.preventDefault(),e.onSubmit(t)):null}}},[this.fields.map(function(r){var i;switch(r.type){case"el-select":i=t("el-select",{style:"width:150px;",attrs:{placeholder:r.label,filterable:!0,clearable:!0},model:{value:e.form[r.field],callback:function(t){e.$set(e.form,r.field,t)}}},[r.options.map(function(e){return t("el-option",{key:e.value||e.id,attrs:{label:e.label||e.name,value:String(e.value||e.id)}})})]);break;case"time-between":i=t("el-date-picker",{attrs:{type:"datetimerange","value-format":"yyyy-MM-dd HH:mm:ss","start-placeholder":r.label1,"end-placeholder":r.label2},model:{value:e.form[r.field],callback:function(t){e.$set(e.form,r.field,t)}}});break;case"super-input":i=t("el-input",{attrs:{placeholder:r.label,clearable:!0},model:{value:e.form[r.field],callback:function(t){e.$set(e.form,r.field,t)}}});break;default:i=t("el-input",{attrs:{placeholder:r.label,clearable:!0},model:{value:e.form[r.field],callback:function(t){e.$set(e.form,r.field,t)}}})}return t("el-form-item",{key:r.field},[i])}),t("el-form-item",{class:"actions"},[t("el-button",{attrs:{type:"primary"},on:{click:this.onSubmit}},["查询"]),t("el-button",{on:{click:this.onReset}},["重置"])])])])])}},c=l,u=(r("cafd"),r("2877")),p=Object(u["a"])(c,s,o,!1,null,"6dd66826",null);e["a"]=p.exports},"6cbc":function(t,e,r){"use strict";var i=r("0cd2"),n=r.n(i);n.a},"768b":function(t,e,r){"use strict";var i=r("a745"),n=r.n(i);function a(t){if(n()(t))return t}var s=r("5d73"),o=r.n(s);function l(t,e){var r=[],i=!0,n=!1,a=void 0;try{for(var s,l=o()(t);!(i=(s=l.next()).done);i=!0)if(r.push(s.value),e&&r.length===e)break}catch(c){n=!0,a=c}finally{try{i||null==l["return"]||l["return"]()}finally{if(n)throw a}}return r}function c(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}function u(t,e){return a(t)||l(t,e)||c()}r.d(e,"a",function(){return u})},"7d7b":function(t,e,r){var i=r("e4ae"),n=r("7cd6");t.exports=r("584a").getIterator=function(t){var e=n(t);if("function"!=typeof e)throw TypeError(t+" is not iterable!");return i(e.call(t))}},"81df":function(t,e,r){"use strict";var i=function(){var t=this,e=t.$createElement,r=t._self._c||e;return t.page?r("el-pagination",t._b({ref:"page",attrs:{"page-sizes":t.pageSizes,"current-page":t.currentPage,"page-size":t.perPage,total:t.page.total,layout:t.layout,background:""},on:{"size-change":t.onSizeChange,"current-change":t.onChange,"update:currentPage":function(e){t.currentPage=e},"update:current-page":function(e){t.currentPage=e},"update:pageSize":function(e){t.perPage=e},"update:page-size":function(e){t.perPage=e}}},"el-pagination",t.$attrs,!1)):t._e()},n=[],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 t=[10,30,50,100,200],e=this.page.per_page;return-1===t.indexOf(e)?[this.page.per_page].concat(t):t}},methods:{push:function(){var t=Object.assign({},this.$route.query,{page:this.currentPage,per_page:this.perPage});this.$router.push({path:this.$route.path,query:t})},onSizeChange:function(t){this.$emit("size-change",t),this.autoPush&&(this.currentPage=1,this.push())},onChange:function(t){this.$emit("current-change",t),this.autoPush&&this.push()}},watch:{page:{handler:function(t){var e=this;t&&(this.currentPage=t.current_page,this.perPage=t.per_page,this.$nextTick(function(){e.$refs.page.internalCurrentPage=t.current_page}))},immediate:!0}}},s=a,o=r("2877"),l=Object(o["a"])(s,i,n,!1,null,"f691fd2e",null);e["a"]=l.exports},"83a1":function(t,e){t.exports=Object.is||function(t,e){return t===e?0!==t||1/t===1/e:t!=t&&e!=e}},"8a92":function(t,e,r){"use strict";var i=r("0091"),n=r.n(i);n.a},ada3:function(t,e,r){"use strict";r("8e6e"),r("456d");var i=r("bd86"),n=r("75fc"),a=(r("a481"),r("96cf"),r("3b8d")),s=(r("ac6a"),r("28a5"),r("9948")),o=r.n(s),l=r("9b02"),c=r.n(l),u=r("1a38"),p=r("873a"),d=r("a22f");function f(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 h(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?f(r,!0).forEach(function(e){Object(i["a"])(t,e,r[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):f(r).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}var m,b,g={name:"LzForm",components:{FlexSpacer:d["a"]},inject:{view:{from:"view",default:null}},data:function(){return{loading:!1,stay:!1}},props:{getData:Function,submit:Function,errors:Object,form:Object,submitText:{type:String,default:"保存"},labelPosition:String,inDialog:Boolean,createdRedirect:{type:[String,Function],default:function(){var t=this.$route.path.split("/");return"/"+(t[t.length-2]||"")}},updatedRedirect:{type:[String,Function],default:function(){return this.$router.back.bind(this.$router)}},disableRedirect:Boolean,disableStay:Boolean,editMode:Boolean},computed:{realLabelPosition:function(){return this.labelPosition||(this.$store.state.miniWidth?"top":"right")},miniWidth:function(){return this.$store.state.miniWidth}},created:function(){this.copyMethods()},methods:{copyMethods:function(){var t=this;[u["default"].extends.methods,u["default"].methods].forEach(function(e){o()(e,function(e,r){t[r]=function(){e.apply(this.$refs.form,arguments)}})})},_getData:function(){var t=Object(a["a"])(regeneratorRuntime.mark(function t(){var e=this;return regeneratorRuntime.wrap(function(t){while(1)switch(t.prev=t.next){case 0:if(this.loading=!0,this.view&&this.$emit("update:form",this.view.formBak),t.prev=2,t.t0=this.getData,!t.t0){t.next=7;break}return t.next=7,this.getData();case 7:this.$nextTick(function(){e.setInitialValues()}),t.next=13;break;case 10:t.prev=10,t.t1=t["catch"](2),Promise.reject(t.t1);case 13:this.loading=!1;case 14:case"end":return t.stop()}},t,this,[[2,10]])}));function e(){return t.apply(this,arguments)}return e}(),onSubmit:function(){var t=Object(a["a"])(regeneratorRuntime.mark(function t(){var e;return regeneratorRuntime.wrap(function(t){while(1)switch(t.prev=t.next){case 0:if(this.$emit("update:errors",{}),t.prev=1,t.t0=this.submit,!t.t0){t.next=6;break}return t.next=6,this.submit();case 6:if(this.$message.success(Object(p["h"])(this.editMode?"updated":"created")),!this.stay&&!this.disableRedirect){t.next=9;break}return t.abrupt("return");case 9:e=this.editMode?this.updatedRedirect:this.createdRedirect,"string"===typeof e?this.$router.push(e):"function"===typeof e&&e(),t.next=17;break;case 13:t.prev=13,t.t1=t["catch"](1),this.$emit("update:errors",Object(p["j"])(t.t1.response)),422!==c()(t.t1,"response.status")&&Promise.reject(t.t1);case 17:case"end":return t.stop()}},t,this,[[1,13]])}));function e(){return t.apply(this,arguments)}return e}(),onReset:function(){this.$refs.form.resetFields()}},watch:{$route:{handler:function(){this.$active&&this._getData()},immediate:!0}},render:function(t){var e=this,r=this.$slots.default;Array.isArray(r)&&(r=r.map(function(r){var i=r.componentOptions,a=i.propsData,s=a.helper,o=a.label;if(s){s=s.replace(/\n/g,"<br>");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?r("el-tag",{attrs:{type:"success"}},[t._v(t._s(e.row.planned))]):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("768b")),s=(r("96cf"),r("3b8d")),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("0fb6"),n=r.n(i);n.a},e209:function(t,e,r){"use strict";var i=r("579e"),n=r.n(i);n.a}}]);
  2. //# sourceMappingURL=chunk-5ab9f1b8.5d830b5c.js.map