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
26 KiB
2 lines
26 KiB
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-6543bdcd"],{"05c8":function(t,e,a){"use strict";a.r(e);var s=function(){var t=this,e=t._self._c;return e("div",[e("div",{directives:[{name:"show",rawName:"v-show",value:t.handleChangeShow,expression:"handleChangeShow"}],staticClass:"main-content"},[t._m(0),e("div",{staticClass:"content"},[e("div",{staticClass:"content-btn"},[e("el-button",{staticClass:"init-button",attrs:{icon:"el-icon-plus"},on:{click:function(e){return t.add()}}},[t._v("新增报修")])],1),e("div",{staticStyle:{width:"50px"}},[e("download-excel",{staticClass:"export-excel-wrapper",attrs:{fetch:t.fetchData,fields:t.json_fields,"before-finish":t.finishDownload,name:"报事报修记录.xls"}},[e("el-button",{attrs:{size:"mini",icon:"el-icon-folder-add",plain:""}},[t._v("导出Excel")])],1)],1),e("div",{},[e("VueTable",{ref:"table",attrs:{config:t.config},on:{tableCheck:t.tableCheck}},[e("template",{slot:"tabs"},[e("el-tabs",{on:{"tab-click":t.handleClick},model:{value:t.activeName,callback:function(e){t.activeName=e},expression:"activeName"}},[e("el-tab-pane",{attrs:{label:"全部",name:"0"}}),e("el-tab-pane",{attrs:{label:"待分配",name:"1"}}),e("el-tab-pane",{attrs:{label:"已分配未接单",name:"2"}}),e("el-tab-pane",{attrs:{label:"已分配处理中",name:"3"}}),e("el-tab-pane",{attrs:{label:"已处理",name:"4"}}),e("el-tab-pane",{attrs:{label:"已确认已完成",name:"5"}}),e("el-tab-pane",{attrs:{label:"已关闭",name:"6"}}),e("el-tab-pane",{attrs:{label:"已作废",name:"7"}}),e("el-tab-pane",{attrs:{label:"已取消",name:"8"}})],1)],1),e("template",{slot:"footer"},[e("div",{staticClass:"table-footer"},[e("button",{on:{click:function(e){return t.onDetails(t.table_row)}}},[t._v(" 详情 ")]),e("button",{on:{click:function(e){return t.edit(t.table_row)}}},[t._v("编辑")]),e("button",{on:{click:function(e){return t.Dispatch(t.table_row)}}},[t._v(" 派工 ")]),e("button",{on:{click:function(e){return t.onVisit(t.table_row)}}},[t._v(" 回访 ")]),e("button",{on:{click:function(e){return t.onCancel(t.table_row)}}},[t._v(" 作废 ")]),e("button",{on:{click:function(e){return t.del(t.table_row)}}},[t._v("删除")])])])],2)],1),e("addEidt",{ref:"addEdit",attrs:{drawerTitle:t.addEidtDrawerTitle,drawerVrisible:t.addEidt_vrisible},on:{submitSuccess:t.submitSuccess,handleClose:t.addEidtHandleClose}}),e("Dispatch",{ref:"Dispatch",attrs:{drawerTitle:"派工",drawerVrisible:t.Dispatch_vrisible},on:{submitSuccess:t.DispatchSuccess,handleClose:t.DispatchHandleClose}}),e("Drawer",{attrs:{drawerTitle:"回访",drawerVrisible:t.visit_vrisible},on:{drawerClose:t.visitClose}},[e("div",{staticStyle:{padding:"30px"}},[e("FromCard",[e("template",{slot:"title"},[t._v("基本信息")]),[e("VueForm",{ref:"visitFrom",attrs:{formObj:t.visitForm},on:{ruleSuccess:t.visitRuleSuccess}})]],2)],1),e("div",{attrs:{slot:"footer"},slot:"footer"},[e("button",{staticClass:"btn-orange",on:{click:function(e){return t.visitSubmit()}}},[e("span",[e("i",{staticClass:"el-icon-circle-check"}),t._v("提交")])]),e("button",{staticClass:"btn-gray",on:{click:t.visitClose}},[e("span",[t._v("取消")])])])]),e("Drawer",{attrs:{drawerTitle:"作废",drawerVrisible:t.cancel_vrisible},on:{drawerClose:t.cancelClose}},[e("div",{staticStyle:{padding:"30px"}},[e("FromCard",[e("template",{slot:"title"},[t._v("作废原因")]),[e("VueForm",{ref:"cancelFrom",attrs:{formObj:t.cancelForm},on:{ruleSuccess:t.cancelRuleSuccess}})]],2)],1),e("div",{attrs:{slot:"footer"},slot:"footer"},[e("button",{staticClass:"btn-orange",on:{click:function(e){return t.cancelSubmit()}}},[e("span",[e("i",{staticClass:"el-icon-circle-check"}),t._v("提交")])]),e("button",{staticClass:"btn-gray",on:{click:t.cancelClose}},[e("span",[t._v("取消")])])])])],1)]),e("div",{directives:[{name:"show",rawName:"v-show",value:!t.handleChangeShow,expression:"!handleChangeShow"}]},[t.handleChangeShow?t._e():e("div",{staticClass:"main details-box"},[e("div",{staticClass:"head-box"},[t._m(1),e("div",{staticClass:"content"},[e("span",[t._v(t._s(t.tabsName))]),e("div",{staticClass:"flex justify-between align-center"},[e("div",[e("span",[t._v(t._s(t.table_row[0].code))])]),e("div",[e("button",{staticClass:"btn-orange",on:{click:function(e){t.handleChangeShow=!0}}},[e("span",[t._v(" 返回")])])])])])]),e("div",{staticClass:"box"},[t._m(2),t.detailsData.voRepair?e("div",{staticClass:"box-item"},[e("div",{staticClass:"item"},[t._m(3),e("div",[e("span",[t._v(t._s(1===t.detailsData.voRepair.type?"户内":"户外"))])])]),t._m(4),e("div",{staticClass:"item"},[t._m(5),e("div",[e("span",[t._v(t._s(t.detailsData.voRepair.repairName))])])]),e("div",{staticClass:"item"},[t._m(6),e("div",[e("span",[t._v(t._s(t.detailsData.voRepair.tel))])])]),e("div",{staticClass:"item"},[t._m(7),e("div",[e("span",[t._v(t._s(t.detailsData.voRepair.dispatchName))])])]),e("div",{staticClass:"item"},[t._m(8),e("div",[e("span",[t._v(t._s(t.detailsData.voRepair.reportDetail))])])]),e("div",{staticClass:"item"},[t._m(9),t.detailsData.voRepair.imgUrls.length?e("div",[e("el-image",{staticStyle:{width:"100px",height:"100px"},attrs:{src:t.$ImgUrl+t.detailsData.voRepair.imgUrls[0].url,fit:"fit"}})],1):t._e()])]):t._e()]),t.detailsData.voDispatch?e("div",{staticClass:"box"},[t._m(10),e("div",{},[e("div",{staticClass:"box-item"},[e("div",{staticClass:"item"},[t._m(11),e("div",[e("span",[t._v(t._s(t.detailsData.voDispatch.workOrderTypeName))])])]),e("div",{staticClass:"item"},[t._m(12),e("div",[e("span",[t._v(t._s(t.detailsData.voDispatch.workOrderTypeDetailName))])])]),e("div",{staticClass:"item"},[t._m(13),e("div",[e("span",[t._v(t._s(t.detailsData.voDispatch.workOrderTimeLimitName))])])]),e("div",{staticClass:"item"},[t._m(14),e("div",[e("span",[t._v(t._s(t.detailsData.voDispatch.operatorName))])])]),e("div",{staticClass:"item"},[t._m(15),e("div",[e("span",[t._v(t._s(t.detailsData.voDispatch.dispatchDate))])])]),e("div",{staticClass:"item"},[t._m(16),e("div",[e("span",[t._v(t._s(t.detailsData.voDispatch.remake))])])])])])]):t._e(),e("div",{staticClass:"box"},[t._m(17),e("div",{},[e("tableData",{attrs:{config:t.handleConfig}})],1)]),t.detailsData.voHandleCompleteDetail?e("div",{staticClass:"box"},[t._m(18),e("div",{},[e("div",{staticClass:"box-item"},[e("div",{staticClass:"item",staticStyle:{width:"100%"}},[t._m(19),e("div",[e("span",[t._v(t._s(t.detailsData.voHandleCompleteDetail.detail))])])]),e("div",{staticClass:"item",staticStyle:{width:"100%"}},[t._m(20),e("div",[e("span",[t._v(t._s(t.detailsData.voHandleCompleteDetail.materialList))])])]),e("div",{staticClass:"item",staticStyle:{width:"100%"}},[t._m(21),e("div",[e("span",[t._v(t._s(t.detailsData.voHandleCompleteDetail.laborCost?t.detailsData.voHandleCompleteDetail.laborCost:"0.00"))])])]),e("div",{staticClass:"item",staticStyle:{width:"100%"}},[t._m(22),e("div",[e("span",[t._v(t._s(t.detailsData.voHandleCompleteDetail.materialCost?t.detailsData.voHandleCompleteDetail.materialCost:"0.00"))])])]),e("div",{staticClass:"item",staticStyle:{width:"100%"}},[t._m(23),e("div",[e("span",[t._v(t._s(t.detailsData.voHandleCompleteDetail.totalCost?t.detailsData.voHandleCompleteDetail.totalCost:"0.00"))])])]),e("div",{staticClass:"item",staticStyle:{width:"100%"}},[t._m(24),e("div",[e("el-radio-group",{attrs:{value:t.detailsData.voHandleCompleteDetail.repairResult}},[e("el-radio",{attrs:{label:1}},[t._v("完成")]),e("el-radio",{attrs:{label:2}},[t._v("未完成")])],1)],1)]),e("div",{staticClass:"item",staticStyle:{width:"100%"}},[t._m(25),e("div",[e("span",[t._v(t._s(t.detailsData.voHandleCompleteDetail.completeDate))])])])])])]):t._e(),t.detailsData.voEvaluation?e("div",{staticClass:"box"},[t._m(26),e("div",{},[e("div",{staticClass:"box-item"},[e("div",{staticClass:"item",staticStyle:{width:"100%"}},[t._m(27),e("div",[e("el-rate",{attrs:{value:t.detailsData.voEvaluation.evaluation_level/2,colors:t.colors,disabled:""}})],1)]),e("div",{staticClass:"item",staticStyle:{width:"100%"}},[t._m(28),e("div",[e("span",[t._v(t._s(t.detailsData.voEvaluation.evaluation_content))])])]),e("div",{staticClass:"item",staticStyle:{width:"100%"}},[t._m(29),e("div",[e("span",[t._v(t._s(t.detailsData.voEvaluation.evaluation_date))])])])])])]):t._e(),e("div",{staticClass:"box"},[t._m(30),e("div",{},[t.detailsData.voRevisit?e("div",{staticClass:"box-item"},[e("div",{staticClass:"item",staticStyle:{width:"100%"}},[t._m(31),e("div",[e("span",[t._v(t._s(t.detailsData.voRevisit.revisitDetail))])])]),e("div",{staticClass:"item",staticStyle:{width:"100%"}},[t._m(32),e("div",[e("span",[t._v(t._s(t.detailsData.voRevisit.revisitDate))])])])]):t._e()])])])])])},i=[function(){var t=this,e=t._self._c;return e("div",{staticClass:"main-titel"},[e("span",[t._v("报事报修")])])},function(){var t=this,e=t._self._c;return e("div",{staticClass:"titel"},[e("span",[t._v("报修详情")])])},function(){var t=this,e=t._self._c;return e("div",{staticClass:"title"},[e("span",[t._v("报修信息")])])},function(){var t=this,e=t._self._c;return e("div",{staticClass:"span"},[e("span",[t._v("报修区域")])])},function(){var t=this,e=t._self._c;return e("div",{staticClass:"item"},[e("div",{staticClass:"span"},[e("span",[t._v("报修来源")])]),e("div",[e("span",[t._v("业主来电")])])])},function(){var t=this,e=t._self._c;return e("div",{staticClass:"span"},[e("span",[t._v("报修人")])])},function(){var t=this,e=t._self._c;return e("div",{staticClass:"span"},[e("span",[t._v("联系电话")])])},function(){var t=this,e=t._self._c;return e("div",{staticClass:"span"},[e("span",[t._v("分配人")])])},function(){var t=this,e=t._self._c;return e("div",{staticClass:"span"},[e("span",[t._v("报修内容")])])},function(){var t=this,e=t._self._c;return e("div",{staticClass:"span"},[e("span",[t._v("照片")])])},function(){var t=this,e=t._self._c;return e("div",{staticClass:"title"},[e("span",[t._v("派工详情")])])},function(){var t=this,e=t._self._c;return e("div",{staticClass:"span"},[e("span",[t._v("工单大类")])])},function(){var t=this,e=t._self._c;return e("div",{staticClass:"span"},[e("span",[t._v("工单子类")])])},function(){var t=this,e=t._self._c;return e("div",{staticClass:"span"},[e("span",[t._v("工单时限")])])},function(){var t=this,e=t._self._c;return e("div",{staticClass:"span"},[e("span",[t._v("指派给")])])},function(){var t=this,e=t._self._c;return e("div",{staticClass:"span"},[e("span",[t._v("预约时间")])])},function(){var t=this,e=t._self._c;return e("div",{staticClass:"span"},[e("span",[t._v("派工备注")])])},function(){var t=this,e=t._self._c;return e("div",{staticClass:"title"},[e("span",[t._v("处理进程记录")])])},function(){var t=this,e=t._self._c;return e("div",{staticClass:"title"},[e("span",[t._v("处理完成情况")])])},function(){var t=this,e=t._self._c;return e("div",{staticClass:"span"},[e("span",[t._v("完成处理情况")])])},function(){var t=this,e=t._self._c;return e("div",{staticClass:"span"},[e("span",[t._v("更换材料清单")])])},function(){var t=this,e=t._self._c;return e("div",{staticClass:"span"},[e("span",[t._v("人工费")])])},function(){var t=this,e=t._self._c;return e("div",{staticClass:"span"},[e("span",[t._v("材料费 ")])])},function(){var t=this,e=t._self._c;return e("div",{staticClass:"span"},[e("span",[t._v("总计费 ")])])},function(){var t=this,e=t._self._c;return e("div",{staticClass:"span"},[e("span",[t._v("报修结果")])])},function(){var t=this,e=t._self._c;return e("div",{staticClass:"span"},[e("span",[t._v("完成时间")])])},function(){var t=this,e=t._self._c;return e("div",{staticClass:"title"},[e("span",[t._v("客户评价")])])},function(){var t=this,e=t._self._c;return e("div",{staticClass:"span"},[e("span",[t._v("评价")])])},function(){var t=this,e=t._self._c;return e("div",{staticClass:"span"},[e("span",[t._v("评价内容")])])},function(){var t=this,e=t._self._c;return e("div",{staticClass:"span"},[e("span",[t._v("评价时间")])])},function(){var t=this,e=t._self._c;return e("div",{staticClass:"title"},[e("span",[t._v("回访")])])},function(){var t=this,e=t._self._c;return e("div",{staticClass:"span"},[e("span",[t._v("回访结果")])])},function(){var t=this,e=t._self._c;return e("div",{staticClass:"span"},[e("span",[t._v("回访时间")])])}],r=a("662b"),l=function(){var t=this,e=t._self._c;return e("div",[e("Drawer",{attrs:{drawerTitle:t.drawerTitle,drawerVrisible:t.drawer_vrisible},on:{drawerClose:t.drawerClose}},[e("FromCard",{staticStyle:{margin:"30px"}},[e("span",{attrs:{slot:"title"},slot:"title"},[t._v("基本信息")]),e("VueForm",{ref:"vueForm",attrs:{formObj:t.reportRepairFrom},on:{ruleSuccess:t.ruleSuccess},scopedSlots:t._u([{key:"repairman",fn:function(){return[e("el-select",{staticStyle:{width:"240px"},attrs:{"remote-method":t.remoteMethod,loading:t.loading,remote:"",filterable:"",placeholder:"请选择"},on:{change:t.change,focus:t.sefocus},model:{value:t.reportRepairFrom.ruleForm.repairman,callback:function(e){t.$set(t.reportRepairFrom.ruleForm,"repairman",e)},expression:"reportRepairFrom.ruleForm.repairman"}},t._l(t.options,(function(t){return e("el-option",{key:t.value,attrs:{label:t.label,value:t.value}})})),1)]},proxy:!0}])},[e("template",{slot:"type"},[e("el-radio",{attrs:{label:"1"},model:{value:t.reportRepairFrom.ruleForm.type,callback:function(e){t.$set(t.reportRepairFrom.ruleForm,"type",e)},expression:"reportRepairFrom.ruleForm.type"}},[t._v("户外")]),e("el-radio",{attrs:{label:"2"},model:{value:t.reportRepairFrom.ruleForm.type,callback:function(e){t.$set(t.reportRepairFrom.ruleForm,"type",e)},expression:"reportRepairFrom.ruleForm.type"}},[t._v("户内")])],1),e("template",{slot:"fileUrls"},[[e("el-upload",{attrs:{action:t.$baseUrl+"upload/uploadRepair","on-success":t.voteImgeSuccess,"show-file-list":!1,"before-upload":t.beforeAvatarUpload}},[e("div",{staticClass:"sys-image",staticStyle:{width:"104px",height:"104px"}},[t.fileUrls?e("div",[t.editBool?e("el-image",{staticStyle:{width:"104px",height:"104px"},attrs:{src:`${t.$ImgUrl}${t.fileUrls}`}}):e("el-image",{staticStyle:{width:"104px",height:"104px"},attrs:{src:`${t.$ImgUrl}/temp${t.fileUrls}`}})],1):e("div",[e("i",{staticClass:"el-icon-plus"}),e("p",[t._v("上传照片")])])])])]],2)],2)],1),e("div",{attrs:{slot:"footer"},slot:"footer"},[e("button",{staticClass:"btn-orange",on:{click:function(e){return t.onSubmit()}}},[e("span",[e("i",{staticClass:"el-icon-circle-check"}),t._v("提交")])]),e("button",{staticClass:"btn-gray",on:{click:t.drawerClose}},[e("span",[t._v("取消")])])])],1)],1)},o=[],n=a("48e8"),c=a("2b74"),d={props:{drawerVrisible:{type:Boolean,default:()=>!1},drawerTitle:{type:String,default:()=>""}},data(){return{options:[],loading:!1,drawer_vrisible:!1,editBool:!1,editId:0,fileUrls:"",reportRepairFrom:{ruleForm:{type:"1",fileUrls:[],reportDetail:null,repairman:null,tel:null,repairDate:null,repairFrom:1},form_item:[{type:"Slot",label:"报修区域",placeholder:"请输入",width:"100%",prop:"type",slotName:"type"},{type:"Slot",label:"图片",placeholder:"请输入",width:"100%",prop:"fileUrls",slotName:"fileUrls"},{type:"textarea",label:"报修详情",placeholder:"请输入",width:"100%",rows:5,prop:"reportDetail"},{type:"Slot",label:"报修人",placeholder:"请输入",width:"50%",slotName:"repairman",prop:"repairman"},{type:"Input",label:"联系方式",placeholder:"请输入",width:"50%",prop:"tel"},{type:"DateTime",label:"报修时间",placeholder:"请输入",width:"50%",prop:"repairDate"},{type:"Select",label:"报修来源",placeholder:"请输入",disabled:!0,options:[{value:1,label:"业主来电"}],width:"50%",prop:"repairFrom"}],rules:{type:[{required:!0,message:"请填写投票标题",trigger:"blur"}],fileUrls:[{required:!0,message:"请上传图片",trigger:"change"}],reportDetail:[{required:!0,message:"请输入报修详情",trigger:"change"}],tel:[{required:!0,message:"请输入电话号码",trigger:"blur"}],repairDate:[{required:!0,message:"请选择报修时间",trigger:"blur"}],repairman:[{required:!0,message:"请填写投票内容",trigger:"blur"}],repairFrom:[{required:!0,message:"请输入报修人",trigger:"change"}]}},importHeaders:{"X-Admin-Token":sessionStorage.getItem("X-Admin-Token")}}},created(){this.getUserList()},methods:{getUserList(t){let e={pageNum:1,size:20,name:t};this.loading=!0,Object(c["U"])(e).then(t=>{this.options=t.tableList,this.loading=!1})},remoteMethod(t){this.getUserList(t)},sefocus(){this.getUserList()},change(t){console.log(t)},voteImgeSuccess(t,e){this.fileUrls=t.url,this.editBool=!1,this.reportRepairFrom.ruleForm.fileUrls[0]=t.url},ruleSuccess(t){let e={type:parseInt(this.reportRepairFrom.ruleForm.type),fileUrls:[this.fileUrls],reportDetail:this.reportRepairFrom.ruleForm.reportDetail,repairman:this.reportRepairFrom.ruleForm.repairman,tel:this.reportRepairFrom.ruleForm.tel,repairDate:this.reportRepairFrom.ruleForm.repairDate,froms:1};this.editId?(e.id=this.editId,Object(n["N"])(e).then(t=>{t.status&&(this.$message({message:t.message,type:"success"}),this.$emit("submitSuccess"),this.drawerClose())})):Object(n["M"])(e).then(t=>{t.status&&(this.$message({message:t.message,type:"success"}),this.$emit("submitSuccess"),this.drawerClose())})},onSubmit(){this.$refs.vueForm.submitForm()},edit(t){this.addEidt_vrisible=!0;let e={id:t};Object(n["K"])(e).then(t=>{console.log(t),this.editBool=!0,this.editId=t.id,this.reportRepairFrom.ruleForm.type=t.type+"",t.imgUrls[0]?(this.reportRepairFrom.ruleForm.fileUrls=t.imgUrls[0].url,this.fileUrls=t.imgUrls[0].url):(this.reportRepairFrom.ruleForm.fileUrls=[],this.fileUrls=""),console.log(this.reportRepairFrom.ruleForm.fileUrls),console.log(this.fileUrls),this.reportRepairFrom.ruleForm.reportDetail=t.reportDetail,this.reportRepairFrom.ruleForm.repairman=t.repairman,this.reportRepairFrom.ruleForm.tel=t.tel,this.reportRepairFrom.ruleForm.repairDate=t.repairDate})},beforeAvatarUpload(t){const e=t.size/1024/1024<2,a="image/png"===t.type,s="image/jpeg"===t.type;return a||s||this.$message.error("上传头像图片只能是 JPG/PNG 格式!"),e||this.$message.error("上传头像图片大小不能超过 2MB!"),(a||s)&&e},drawerClose(){this.drawer_vrisible=!1,this.$refs.vueForm.reset(),this.editId=0,this.reportRepairFrom.ruleForm.fileUrls=[],this.$emit("handleClose","Close")}},watch:{drawerVrisible:{handler(t){this.drawer_vrisible=t}}}},p=d,u=(a("d65f"),a("2877")),v=Object(u["a"])(p,l,o,!1,null,"0107b25b",null),m=v.exports,h=a("b07e"),_={data(){return{colors:["#FB4702","#FB4702","#FB4702"],tabsName:"工单编号",handleConfig:{thead:[{label:"操作时间",prop:"operationDate",width:"auto"},{label:"操作类型",prop:"operatorType",width:"auto",type:"function",callback:(t,e)=>{switch(t.operationType){case 1:return"提交报修";case 2:return"派单";case 3:return"开始处理";case 4:return"处理完成";case 5:return"确认";case 6:return"回访";case 7:return"回退";case 8:return"作废";case 9:return"取消"}}},{label:"操作人",prop:"operatorName",width:"auto"},{label:"操作内容",prop:"operatorContent",width:"auto"}],table_data:[],loading:!0,checkbox:!1},json_fields:{"报修单号":"code","状态":{field:"status",callback:t=>{switch(t){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}}},"房屋信息":"roomName","报修人":"repairmanName","报修人电话":"repairTel","报修时间":"repairDate","分配人":"distributorName","维修人":"operatorName","工单时限":"workOrderTimeLimit","来源":{field:"fromsName",callback:t=>{switch(t){case 1:return"业主来电";case 2:return"app提交";default:break}}}},addEidtDrawerTitle:"",addEidt_vrisible:!1,Dispatch_vrisible:!1,visit_vrisible:!1,cancel_vrisible:!1,handleChangeShow:!0,detailsData:null,table_row:[],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"}]}},config:{thead:[{label:"序号",type:"index",width:"80"},{label:"报修单号",prop:"code",width:"180"},{label:"状态",prop:"status",width:"100",type:"function",callback:(t,e)=>{switch(t.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:"roomName",width:"180"},{label:"报修人",prop:"repairmanName",width:"120"},{label:"报修人电话",prop:"repairTel",width:"180"},{label:"报修时间",prop:"repairDate",width:"180"},{label:"分配人",prop:"distributorName",width:"120"},{label:"维修人",prop:"operatorName",width:"120"},{label:"工单时限",prop:"workOrderTimeLimit",width:"180"},{label:"来源",prop:"fromsName",width:"auto",type:"function",callback(t,e){return 1==t.fromsName?"业主来电":2==t.fromsName?"app提交":void 0}}],url:"reportRepairList",table_data:[],search_item:[{type:"Input",label:"报修单号",placeholder:"请输入",prop:"code"},{type:"Input",label:"报修人",placeholder:"请输入",prop:"repairman"},{type:"Input",label:"房屋信息",placeholder:"单元/楼栋/房号",prop:"roomName"},{type:"startDate",label:"开始日期",placeholder:"请选择开始日期",prop:"repairDateStart"},{type:"endDate",label:"结束时间",placeholder:"请选择结束日期",prop:"repairDateEnd"},{type:"Input",label:"分配人",placeholder:"请输入分配人",prop:"distributor"},{type:"Input",label:"维修人",placeholder:"请输入维修人\t",prop:"operator"}],data:{pageNum:1,size:10}},activeName:0}},components:{addEidt:m,Dispatch:h["a"]},methods:{async fetchData(){let t={url:"reportRepairList",data:{pageNum:1,size:100}};const e=await Object(r["a"])(t,this);return e},ExcelLoading(t,e){const a=this.$loading({lock:!0,text:"正在导出Excel"+t,spinner:"el-icon-loading",background:"rgba(0, 0, 0, 0.7)"});a.text=`正在导出Excel ${t}/${e}`,console.log(a.text)},finishDownload(){const t=this.$loading();t.close()},onDetails(t){t.length>1?this.$message.error("只能操作一条数据"):t.length?Object(n["J"])({id:t[0].id}).then(t=>{console.log(t),this.detailsData=t,this.handleConfig.table_data=t.voProcessRecordList,this.handleConfig.loading=!1,this.handleChangeShow=!1}):this.$message.error("请选择")},onCancel(t){t.length>1?this.$message.error("只能操作一条数据"):t.length?this.cancel_vrisible=!0:this.$message.error("请选择")},cancelClose(){this.cancel_vrisible=!1,this.$refs.cancelFrom.reset()},cancelRuleSuccess(){let t={id:this.table_row[0].id,content:this.cancelForm.ruleForm.content};Object(n["n"])(t).then(t=>{t.status&&(this.$message({message:t.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 t={id:this.table_row[0].id,content:this.visitForm.ruleForm.content,revisitDate:this.visitForm.ruleForm.revisitDate};Object(n["q"])(t).then(t=>{t.status&&(this.$message({message:t.message,type:"success"}),this.$refs.table.requestData(),this.visitClose())})},visitSubmit(){this.$refs.visitFrom.submitForm()},onVisit(t){t.length>1?this.$message.error("只能操作一条数据的详情"):t.length?this.visit_vrisible=!0:this.$message.error("请选择")},Dispatch(t){t.length>1?this.$message.error("只能操作一条数据"):1===t[0].status?t.length?(this.Dispatch_vrisible=!0,this.$refs.Dispatch.details(t[0].id)):this.$message.error("请选择"):this.$message.error("只能待分配状态可派工")},DispatchSuccess(){this.$refs.table.requestData()},DispatchHandleClose(){this.Dispatch_vrisible=!1},edit(t){t.length>1?this.$message.error("只能查看一条数据的详情"):t.length?(this.addEidt_vrisible=!0,this.$refs.addEdit.edit(t[0].id)):this.$message.error("请选择")},add(){this.addEidt_vrisible=!0,this.addEidtDrawerTitle="新增保修"},addEidtHandleClose(){this.addEidt_vrisible=!1},handleClick(t,e){this.tabsName=t.label;let a=null;a=0!=this.activeName?this.activeName:null;const s={pageNum:1,size:10,status:a};this.$refs.table.requestData(s)},tableCheck(t){this.table_row=t},del(t){if(t.length){let t=[];for(let e=0;e<this.table_row.length;e++)t.push(this.table_row[e].id);this.$confirm("是否确认删除?删除不可恢复","删除",{confirmButtonText:"确定",cancelButtonText:"取消",confirmButtonClass:"confirmButton",cancelButtonClass:"cancelButton"}).then(()=>{this.$refs.table.tableDelete(t)}).catch(t=>{})}else this.$message.error("请选中需要删除的数据")},submitSuccess(){this.$refs.table.loadData()}}},b=_,f=(a("f605"),a("511f6"),Object(u["a"])(b,s,i,!1,null,"5ba701f4",null));e["default"]=f.exports},"116c":function(t,e,a){},"511f6":function(t,e,a){"use strict";a("db0f")},"662b":function(t,e,a){"use strict";a.d(e,"a",(function(){return i})),a.d(e,"b",(function(){return r}));a("f2d9");var s=a("2b74");async function i(t,e){let a=[];const i=await Object(s["b"])(t);if(a.push(...i.tableList),i.pageCount>1)for(let r=1;r<i.pageCount;r++){t.pageNum=r+1;const l=await Object(s["b"])(t);e.ExcelLoading(r,i.pageCount),a.push(...l.tableList)}return a}async function r(t){let e=[];const a=await Object(s["b"])(t);return console.log(a),e.push(...a.tableList),e}},d403:function(t,e,a){},d65f:function(t,e,a){"use strict";a("d403")},db0f:function(t,e,a){},f605:function(t,e,a){"use strict";a("116c")}}]);
|
|
//# sourceMappingURL=chunk-6543bdcd.104b3d72.js.map
|