You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

2 lines
7.4 KiB

(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2d0c22ba"],{"48bb":function(e,t,a){"use strict";a.r(t);var s=function(){var e=this,t=e._self._c;return t("div",{staticClass:"main-content"},[e._m(0),t("div",{staticClass:"content"},[t("div",{},[t("VueTable",{ref:"table",attrs:{config:e.config},on:{tableCheck:e.tableCheck}},[t("template",{slot:"tabs"},[t("el-tabs",{on:{"tab-click":e.handleClick},model:{value:e.activeName,callback:function(t){e.activeName=t},expression:"activeName"}},[t("el-tab-pane",{attrs:{label:"全部",name:"0"}}),t("el-tab-pane",{attrs:{label:"待分配",name:"1"}}),t("el-tab-pane",{attrs:{label:"已分配未接单",name:"2"}}),t("el-tab-pane",{attrs:{label:"已分配处理中",name:"3"}}),t("el-tab-pane",{attrs:{label:"已处理",name:"4"}}),t("el-tab-pane",{attrs:{label:"已确认已完成",name:"5"}}),t("el-tab-pane",{attrs:{label:"已关闭",name:"6"}}),t("el-tab-pane",{attrs:{label:"已作废",name:"7"}}),t("el-tab-pane",{attrs:{label:"已取消",name:"8"}})],1)],1),t("template",{slot:"footer"},[t("div",{staticClass:"table-footer"},[t("button",{on:{click:function(t){return e.Dispatch(e.table_row)}}},[e._v("派工")]),t("button",{on:{click:function(t){return e.onVisit(e.table_row)}}},[e._v("回访")]),t("button",{on:{click:function(t){return e.onCancel(e.table_row)}}},[e._v("作废")]),t("button",{on:{click:function(t){return e.del(e.table_row)}}},[e._v("删除")])])])],2)],1),t("Dispatch",{ref:"Dispatch",attrs:{drawerTitle:"派工",drawerVrisible:e.Dispatch_vrisible},on:{submitSuccess:e.DispatchSuccess,handleClose:e.DispatchHandleClose}}),t("Drawer",{attrs:{drawerTitle:"回访",drawerVrisible:e.visit_vrisible},on:{drawerClose:e.visitClose}},[t("div",{staticStyle:{padding:"30px"}},[t("FromCard",[t("template",{slot:"title"},[e._v("基本信息")]),[t("VueForm",{ref:"visitFrom",attrs:{formObj:e.visitForm},on:{ruleSuccess:e.visitRuleSuccess}})]],2)],1),t("div",{attrs:{slot:"footer"},slot:"footer"},[t("button",{staticClass:"btn-orange",on:{click:function(t){return e.visitSubmit()}}},[t("span",[t("i",{staticClass:"el-icon-circle-check"}),e._v("提交")])]),t("button",{staticClass:"btn-gray",on:{click:e.visitClose}},[t("span",[e._v("取消")])])])]),t("Drawer",{attrs:{drawerTitle:"作废",drawerVrisible:e.cancel_vrisible},on:{drawerClose:e.cancelClose}},[t("div",{staticStyle:{padding:"30px"}},[t("FromCard",[t("template",{slot:"title"},[e._v("作废原因")]),[t("VueForm",{ref:"cancelFrom",attrs:{formObj:e.cancelForm},on:{ruleSuccess:e.cancelRuleSuccess}})]],2)],1),t("div",{attrs:{slot:"footer"},slot:"footer"},[t("button",{staticClass:"btn-orange",on:{click:function(t){return e.cancelSubmit()}}},[t("span",[t("i",{staticClass:"el-icon-circle-check"}),e._v("提交")])]),t("button",{staticClass:"btn-gray",on:{click:e.cancelClose}},[t("span",[e._v("取消")])])])])],1)])},r=[function(){var e=this,t=e._self._c;return t("div",{staticClass:"main-titel"},[t("span",[e._v("派工单管理")])])}],l=a("b07e"),i=a("48e8"),c={data(){return{addEidt_vrisible:!1,Dispatch_vrisible:!1,visit_vrisible:!1,cancel_vrisible:!1,table_row:[],config:{thead:[{label:"序号",type:"index",width:"80"},{label:"工单单号",prop:"code",width:"180"},{label:"工单类型",prop:"workOrderTypeName",width:"180"},{label:"状态",prop:"status",width:"180",type:"function",callback:(e,t)=>{switch(e.status){case 1:return"待分配";case 2:return"已分配未接单";case 3:return"已分配处理中";case 4:return"已处理";case 5:return"已分配处理中";case 6:return"已关闭";case 7:return"已作废";case 8:return"已取消";default:break}}},{label:"派工时间",prop:"dispatchDate",width:"120"},{label:"工单时限",prop:"workOrderTimeLimit",width:"180"},{label:"提交人",prop:"createName",width:"180"},{label:"提交人电话",prop:"tel",width:"120"},{label:"维修人",prop:"operatorName",width:"120"},{label:"房屋信息",prop:"roomName",width:"180"},{label:"要求处理事项",prop:"reportDetail",width:"180"},{label:"派工备注",prop:"remake",width:"180"},{label:"开始处理时间",prop:"beginDate",width:"180"},{label:"回访时间",prop:"revisitDate",width:"180"},{label:"回访情况说明",prop:"revisitDetail",width:"180"}],url:"dispatchList",table_data:[],search_item:[{type:"Input",label:"工单单号",placeholder:"请输入",prop:"code"},{type:"Input",label:"提交人",placeholder:"请输入",prop:"createName"},{type:"Input",label:"房屋信息",placeholder:"单元/楼栋/房号",prop:"roomName"},{type:"startDate",label:"开始日期",placeholder:"请选择开始日期",prop:"beginDateStart"},{type:"endDate",label:"结束时间",placeholder:"请选择结束日期",prop:"beginDateEnd"},{type:"Input",label:"维修人",placeholder:"请输入维修人\t",prop:"operatorName"}],data:{pageNum:1,size:10}},visitForm:{ruleForm:{content:"",revisitDate:null},form_item:[{type:"DateTime",label:"报修时间",placeholder:"请输入",width:"50%",prop:"revisitDate"},{type:"textarea",label:"回访结果",placeholder:"请输入",width:"100%",rows:5,prop:"content"}],rules:{content:[{required:!0,message:"请填写回访结果",trigger:"blur"}],revisitDate:[{required:!0,message:"请填写回访时间",trigger:"change"}]}},cancelForm:{ruleForm:{content:""},form_item:[{type:"textarea",label:"作废原因",placeholder:"请输入",width:"100%",rows:5,prop:"content"}],rules:{content:[{required:!0,message:"请填写回访结果",trigger:"blur"}]}},activeName:0}},components:{Dispatch:l["a"]},methods:{onCancel(e){e.length>1?this.$message.error("只能操作一条数据"):e.length?this.cancel_vrisible=!0:this.$message.error("请选择")},cancelClose(){this.cancel_vrisible=!1,this.$refs.cancelFrom.reset()},cancelRuleSuccess(){let e={id:this.table_row[0].id,content:this.cancelForm.ruleForm.content};Object(i["n"])(e).then(e=>{e.status&&(this.$message({message:e.message,type:"success"}),this.$refs.table.requestData(),this.cancelClose())})},cancelSubmit(){this.$refs.cancelFrom.submitForm()},visitClose(){this.visit_vrisible=!1,this.$refs.visitFrom.reset()},visitRuleSuccess(){let e={id:this.table_row[0].id,content:this.visitForm.ruleForm.content,revisitDate:this.visitForm.ruleForm.revisitDate};Object(i["q"])(e).then(e=>{e.status&&(this.$message({message:e.message,type:"success"}),this.$refs.table.requestData(),this.visitClose())})},visitSubmit(){this.$refs.visitFrom.submitForm()},onVisit(e){e.length>1?this.$message.error("只能操作一条数据的详情"):e.length?this.visit_vrisible=!0:this.$message.error("请选择")},Dispatch(e){e.length>1?this.$message.error("只能操作一条数据"):1===e[0].status?e.length?(this.Dispatch_vrisible=!0,this.$refs.Dispatch.details(e[0].id)):this.$message.error("请选择"):this.$message.error("只能待分配状态可派工")},DispatchSuccess(){this.$refs.table.requestData()},DispatchHandleClose(){this.Dispatch_vrisible=!1},handleClick(e,t){let a=null;a=0!=this.activeName?this.activeName:null;const s={pageNum:1,size:10,status:a};this.$refs.table.requestData(s)},tableCheck(e){this.table_row=e},del(e){if(e.length){let e=[];for(let t=0;t<this.table_row.length;t++)e.push(this.table_row[t].id);this.$confirm("是否确认删除?删除不可恢复","删除",{confirmButtonText:"确定",cancelButtonText:"取消",confirmButtonClass:"confirmButton",cancelButtonClass:"cancelButton"}).then(()=>{this.$refs.table.tableDelete(e)}).catch(e=>{})}else this.$message.error("请选中需要删除的数据")}}},o=c,n=a("2877"),p=Object(n["a"])(o,s,r,!1,null,null,null);t["default"]=p.exports}}]);
//# sourceMappingURL=chunk-2d0c22ba.dd0ae8b9.js.map