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
25 KiB

(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-5ce30428"],{"48e8":function(t,e,r){"use strict";r.d(e,"O",(function(){return u})),r.d(e,"P",(function(){return a})),r.d(e,"c",(function(){return i})),r.d(e,"e",(function(){return o})),r.d(e,"Q",(function(){return s})),r.d(e,"R",(function(){return d})),r.d(e,"W",(function(){return l})),r.d(e,"Y",(function(){return c})),r.d(e,"X",(function(){return m})),r.d(e,"Z",(function(){return f})),r.d(e,"bb",(function(){return h})),r.d(e,"ab",(function(){return p})),r.d(e,"f",(function(){return T})),r.d(e,"l",(function(){return b})),r.d(e,"m",(function(){return q})),r.d(e,"g",(function(){return g})),r.d(e,"d",(function(){return O})),r.d(e,"b",(function(){return w})),r.d(e,"S",(function(){return P})),r.d(e,"V",(function(){return S})),r.d(e,"U",(function(){return y})),r.d(e,"T",(function(){return E})),r.d(e,"a",(function(){return G})),r.d(e,"G",(function(){return v})),r.d(e,"L",(function(){return C})),r.d(e,"I",(function(){return I})),r.d(e,"H",(function(){return F})),r.d(e,"i",(function(){return k})),r.d(e,"j",(function(){return B})),r.d(e,"M",(function(){return D})),r.d(e,"o",(function(){return A})),r.d(e,"N",(function(){return _})),r.d(e,"J",(function(){return U})),r.d(e,"q",(function(){return N})),r.d(e,"n",(function(){return $})),r.d(e,"p",(function(){return M})),r.d(e,"K",(function(){return R})),r.d(e,"D",(function(){return j})),r.d(e,"C",(function(){return x})),r.d(e,"F",(function(){return L})),r.d(e,"E",(function(){return V})),r.d(e,"h",(function(){return z})),r.d(e,"u",(function(){return Q})),r.d(e,"B",(function(){return J})),r.d(e,"t",(function(){return Z})),r.d(e,"y",(function(){return W})),r.d(e,"v",(function(){return H})),r.d(e,"A",(function(){return K})),r.d(e,"w",(function(){return X})),r.d(e,"x",(function(){return Y})),r.d(e,"z",(function(){return tt})),r.d(e,"gb",(function(){return et})),r.d(e,"ob",(function(){return rt})),r.d(e,"mb",(function(){return nt})),r.d(e,"hb",(function(){return ut})),r.d(e,"jb",(function(){return at})),r.d(e,"db",(function(){return it})),r.d(e,"ib",(function(){return ot})),r.d(e,"cb",(function(){return st})),r.d(e,"fb",(function(){return dt})),r.d(e,"kb",(function(){return lt})),r.d(e,"lb",(function(){return ct})),r.d(e,"nb",(function(){return mt})),r.d(e,"eb",(function(){return ft})),r.d(e,"k",(function(){return ht})),r.d(e,"s",(function(){return pt})),r.d(e,"r",(function(){return Tt}));var n=r("b775");r("2c37");function u(t){return n["a"].request({method:"GET",url:"/userArticleOut/countArticleOutNow",params:t})}function a(t){return n["a"].request({method:"GET",url:"/userArticleOut/countPerformed",params:t})}function i(t){return n["a"].request({method:"GET",url:"/complaintPraise/countComplaintNew",params:t})}function o(t){return n["a"].request({method:"GET",url:"/complaintPraise/countPraiseNew",params:t})}function s(t){return n["a"].request({method:"GET",url:"/userDecoration/countDecorationNow",params:t})}function d(t){return n["a"].request({method:"GET",url:"/userDecoration/countPerformed",params:t})}function l(t){return n["a"].request({method:"GET",url:"/vote/countVoteExpectedStart",params:t})}function c(t){return n["a"].request({method:"GET",url:"/vote/findDetailById",params:t})}function m(t){return n["a"].request({method:"GET",url:"/vote/findById",params:t})}function f(t){return n["a"].request({method:"POST",url:"/vote/insert",data:t})}function h(t){return n["a"].request({method:"POST",url:"/vote/update",data:t})}function p(t){return n["a"].request({method:"POST",url:"/vote/release",data:t})}function T(t){return n["a"].request({method:"GET",url:"/advice/findById",params:t})}function b(t){return n["a"].request({method:"GET",url:"/complaintPraise/findById",params:t})}function q(t){return n["a"].request({method:"POST",url:"/complaintPraise/insertDetail",data:t})}function g(t){return n["a"].request({method:"POST",url:"/advice/insertDetail",data:t})}function O(t){return n["a"].request({method:"GET",url:"/advice/countConsultNew",params:t})}function w(t){return n["a"].request({method:"GET",url:"/advice/countAdviceNew",params:t})}function P(t){return n["a"].request({method:"POST",url:"/visitors/cancel",data:t})}function S(t){return n["a"].request({method:"POST",url:"/visitors/update",data:t})}function y(t){return n["a"].request({method:"GET",url:"/visitors/listDetail",params:t})}function E(t){return n["a"].request({method:"GET",url:"/visitors/findById",params:t})}function G(t){return n["a"].request({method:"POST",url:"/doorQRCode/addQrCode",data:t})}function v(t){return n["a"].request({method:"POST",url:"/doorQRCode/removeQrCode",data:t})}function C(t){return n["a"].request({method:"GET",url:"/reportRepair/findRepairDetail",params:t})}function I(t){return n["a"].request({method:"POST",url:"/repairEngineering/insert",data:t})}function F(t){return n["a"].request({method:"GET",url:"/repairEngineering/findById",params:t})}function k(t){return n["a"].request({method:"POST",url:"/article/insert",data:t})}function B(t){return n["a"].request({method:"POST",url:"/article/update",data:t})}function D(t){return n["a"].request({method:"POST",url:"/reportRepair/insert",data:t})}function A(t){return n["a"].request({method:"POST",url:"/dispatch/dispatch",data:t})}function _(t){return n["a"].request({method:"POST",url:"/reportRepair/update",data:t})}function U(t){return n["a"].request({method:"GET",url:"/dispatch/repairWorkOrderDetail",params:t})}function N(t){return n["a"].request({method:"POST",url:"/dispatch/revisit",data:t})}function $(t){return n["a"].request({method:"POST",url:"/dispatch/cancel",data:t})}function M(t){return n["a"].request({method:"GET",url:"/dispatch/findSysUserLikeActualName",params:t})}function R(t){return n["a"].request({method:"GET",url:"/reportRepair/findById",params:t})}function j(t){return n["a"].request({method:"POST",url:"/questionnaire/insert",data:t})}function x(t){return n["a"].request({method:"GET",url:"/questionnaire/findById",params:t})}function L(t){return n["a"].request({method:"POST",url:"/questionnaire/update",data:t})}function V(t){return n["a"].request({method:"GET",url:"/questionnaire/reportAnalysis",params:t})}function z(t){return n["a"].request({method:"GET",url:"/article/findById",params:t})}function Q(t){return n["a"].request({method:"POST",url:"/gambit/insert",data:t})}function J(t){return n["a"].request({method:"POST",url:"/gambit/update",data:t})}function Z(t){return n["a"].request({method:"GET",url:"/gambit/findById",params:t})}function W(t){return n["a"].request({method:"GET",url:"/gambitTheme/findCommentByThemeId",params:t})}function H(t){return n["a"].request({method:"GET",url:"/gambitTheme/deleteCommentByCommentId",params:t})}function K(t){return n["a"].request({method:"POST",url:"/gambitTheme/recovery",data:t})}function X(t){return n["a"].request({method:"GET",url:"/gambitTheme/enableComment",params:t})}function Y(t){return n["a"].request({method:"GET",url:"/gambitTheme/enableTheme",params:t})}function tt(t){return n["a"].request({method:"GET",url:"/gambitTheme/list",params:t})}function et(t){return n["a"].request({method:"GET",url:"/workOrderType/list",params:t})}function rt(t){return n["a"].request({method:"POST",url:"/workOrderType/update",data:t})}function nt(t){return n["a"].request({method:"POST",url:"/workOrderType/insert",data:t})}function ut(t){return n["a"].request({method:"GET",url:"/workOrderType/delete",params:t})}function at(t){return n["a"].request({method:"POST",url:"/workOrderTypeDetail/insert",data:t})}function it(t){return n["a"].request({method:"POST",url:"/workOrderTimeLimit/insert",data:t})}function ot(t){return n["a"].request({method:"POST",url:"/workOrderTypeDetail/delete",data:t})}function st(t){return n["a"].request({method:"GET",url:"/workOrderTimeLimit/findById",params:t})}function dt(t){return n["a"].request({method:"POST",url:"/workOrderTimeLimit/update",data:t})}function lt(t){return n["a"].request({method:"POST",url:"/workOrderTypeDetail/update",data:t})}function ct(t){return n["a"].request({method:"GET",url:"/workOrderTypeDetail/findById",params:t})}function mt(t){return n["a"].request({method:"GET",url:"/workOrderTypeDetail/list",params:t})}function ft(t){return n["a"].request({method:"GET",url:"/workOrderTimeLimit/list",params:t})}function ht(t){return n["a"].request({method:"POST",url:"/borrow/remind",data:t})}function pt(t){return n["a"].request({method:"GET",url:"/gambit/enableGambit",params:t})}function Tt(t){return n["a"].request({method:"GET",url:"/gambit/disableGambit",params:t})}},"6adc":function(t,e,r){},baa0:function(t,e,r){"use strict";r("6adc")},d63a:function(t,e,r){"use strict";r.d(e,"n",(function(){return u})),r.d(e,"e",(function(){return a})),r.d(e,"qb",(function(){return i})),r.d(e,"rb",(function(){return o})),r.d(e,"q",(function(){return s})),r.d(e,"r",(function(){return d})),r.d(e,"s",(function(){return l})),r.d(e,"h",(function(){return c})),r.d(e,"o",(function(){return m})),r.d(e,"p",(function(){return f})),r.d(e,"l",(function(){return h})),r.d(e,"k",(function(){return p})),r.d(e,"j",(function(){return T})),r.d(e,"m",(function(){return b})),r.d(e,"f",(function(){return q})),r.d(e,"i",(function(){return g})),r.d(e,"g",(function(){return O})),r.d(e,"vb",(function(){return w})),r.d(e,"ub",(function(){return P})),r.d(e,"bb",(function(){return S})),r.d(e,"cb",(function(){return y})),r.d(e,"ab",(function(){return E})),r.d(e,"G",(function(){return G})),r.d(e,"I",(function(){return v})),r.d(e,"F",(function(){return C})),r.d(e,"D",(function(){return I})),r.d(e,"K",(function(){return F})),r.d(e,"N",(function(){return k})),r.d(e,"J",(function(){return B})),r.d(e,"M",(function(){return D})),r.d(e,"H",(function(){return A})),r.d(e,"sb",(function(){return _})),r.d(e,"tb",(function(){return U})),r.d(e,"L",(function(){return N})),r.d(e,"E",(function(){return $})),r.d(e,"W",(function(){return M})),r.d(e,"X",(function(){return R})),r.d(e,"T",(function(){return j})),r.d(e,"Z",(function(){return x})),r.d(e,"Y",(function(){return L})),r.d(e,"V",(function(){return V})),r.d(e,"U",(function(){return z})),r.d(e,"R",(function(){return Q})),r.d(e,"P",(function(){return J})),r.d(e,"Q",(function(){return Z})),r.d(e,"S",(function(){return W})),r.d(e,"eb",(function(){return H})),r.d(e,"db",(function(){return K})),r.d(e,"fb",(function(){return X})),r.d(e,"O",(function(){return Y})),r.d(e,"u",(function(){return tt})),r.d(e,"v",(function(){return et})),r.d(e,"x",(function(){return rt})),r.d(e,"t",(function(){return nt})),r.d(e,"w",(function(){return ut})),r.d(e,"z",(function(){return at})),r.d(e,"A",(function(){return it})),r.d(e,"C",(function(){return ot})),r.d(e,"y",(function(){return st})),r.d(e,"B",(function(){return dt})),r.d(e,"hb",(function(){return lt})),r.d(e,"ib",(function(){return ct})),r.d(e,"gb",(function(){return mt})),r.d(e,"jb",(function(){return ft})),r.d(e,"ob",(function(){return ht})),r.d(e,"pb",(function(){return pt})),r.d(e,"nb",(function(){return Tt})),r.d(e,"c",(function(){return bt})),r.d(e,"d",(function(){return qt})),r.d(e,"a",(function(){return gt})),r.d(e,"b",(function(){return Ot})),r.d(e,"kb",(function(){return wt})),r.d(e,"mb",(function(){return Pt})),r.d(e,"lb",(function(){return St})),r.d(e,"wb",(function(){return yt}));var n=r("b775");r("2c37");function u(t){return n["a"].request({method:"POST",url:"/facilitiesManage/insert",data:t})}function a(t){return n["a"].request({method:"POST",url:"facilitiesAppointment/update",data:t})}function i(t){return n["a"].request({method:"POST",url:"sysOperations/insert",data:t})}function o(t){return n["a"].request({method:"POST",url:"sysOperations/update",data:t})}function s(t){return n["a"].request({method:"POST",url:"facilitiesPlan/insert",data:t})}function d(t){return n["a"].request({method:"POST",url:"facilitiesPlan/open",data:t})}function l(t){return n["a"].request({method:"POST",url:"facilitiesPlan/stop",data:t})}function c(t){return n["a"].request({method:"GET",url:"/facilitiesCategory/list",params:t})}function m(t){return n["a"].request({method:"GET",url:"/facilitiesManage/list",params:t})}function f(t){return n["a"].request({method:"POST",url:"/facilitiesManage/update",data:t})}function h(t){return n["a"].request({method:"GET",url:"/facilitiesMaintenanceRecord/list",params:t})}function p(t){return n["a"].request({method:"POST",url:"/facilitiesMaintenanceRecord/insert",data:t})}function T(t){return n["a"].request({method:"POST",url:"/facilitiesMaintenanceRecord/delete",data:t})}function b(t){return n["a"].request({method:"GET",url:"/facilitiesManage/findDetailById",params:t})}function q(t){return n["a"].request({method:"GET",url:"/facilitiesCategory/findDetailById",params:t})}function g(t){return n["a"].request({method:"POST",url:"/facilitiesCategory/update",data:t})}function O(t){return n["a"].request({method:"POST",url:"/facilitiesCategory/insert",data:t})}function w(t){return n["a"].request({method:"POST",url:"/userDecorationNew/examine",data:t})}function P(t){return n["a"].request({method:"POST",url:"/userDecorationNew/assign",data:t})}function S(t){return n["a"].request({method:"POST",url:"/ownersCommittee/insert",data:t})}function y(t){return n["a"].request({method:"POST",url:"/ownersCommittee/update",data:t})}function E(t){return n["a"].request({method:"GET",url:"/ownersCommittee/findById",params:t})}function G(t){return n["a"].request({method:"POST",url:"/inspectionPoint/insert",data:t})}function v(t){return n["a"].request({method:"POST",url:"/inspectionPoint/update",data:t})}function C(t){return n["a"].request({method:"GET",url:"/inspectionPoint/findById",params:t})}function I(t){return n["a"].request({method:"POST",url:"/inspectionPlan/insert",data:t})}function F(t){return n["a"].request({method:"POST",url:"/inspectionRoute/insert",data:t})}function k(t){return n["a"].request({method:"POST",url:"/inspectionRoute/update",data:t})}function B(t){return n["a"].request({method:"GET",url:"/inspectionRoute/findById",params:t})}function D(t){return n["a"].request({method:"GET",url:"/inspectionRoute/list",params:t})}function A(t){return n["a"].request({method:"GET",url:"/inspectionPoint/list",params:t})}function _(t){return n["a"].request({method:"GET",url:"/sysOrganization/findAllDepartment",params:t})}function U(t){return n["a"].request({method:"GET",url:"/sysUser/list",params:t})}function N(t){return n["a"].request({method:"GET",url:"/inspectionRoute/isEnable",params:t})}function $(t){return n["a"].request({method:"GET",url:"/inspectionPlan/isEnable",params:t})}function M(t){return n["a"].request({method:"GET",url:"/material/list",params:t})}function R(t){return n["a"].request({method:"GET",url:"/materialRecord/findById",params:t})}function j(t){return n["a"].request({method:"POST",url:"/material/insert",data:t})}function x(t){return n["a"].request({method:"POST",url:"/material/update",data:t})}function L(t){return n["a"].request({method:"POST",url:"/materialRecord/insert",data:t})}function V(t){return n["a"].request({method:"POST",url:"/materialInventory/insert",data:t})}function z(t){return n["a"].request({method:"GET",url:"/materialInventory/findById",params:t})}function Q(t){return n["a"].request({method:"POST",url:"/keyManagement/insert",data:t})}function J(t){return n["a"].request({method:"POST",url:"/keyBorrow/examine",data:t})}function Z(t){return n["a"].request({method:"GET",url:"/keyManagement/findById",params:t})}function W(t){return n["a"].request({method:"POST",url:"/keyManagement/update",data:t})}function H(t){return n["a"].request({method:"POST",url:"/packageCollection/insert",data:t})}function K(t){return n["a"].request({method:"GET",url:"/packageCollection/findById",params:t})}function X(t){return n["a"].request({method:"POST",url:"/packageCollection/update",data:t})}function Y(t){return n["a"].request({method:"POST",url:"/interview/insert",data:t})}function tt(t){return n["a"].request({method:"POST",url:"/greenArea/insert",data:t})}function et(t){return n["a"].request({method:"GET",url:"/greenArea/list",params:t})}function rt(t){return n["a"].request({method:"POST",url:"/greenTask/insert",data:t})}function nt(t){return n["a"].request({method:"GET",url:"/greenArea/findById",params:t})}function ut(t){return n["a"].request({method:"POST",url:"/greenArea/update",data:t})}function at(t){return n["a"].request({method:"POST",url:"/hygieneArea/insert",data:t})}function it(t){return n["a"].request({method:"GET",url:"/hygieneArea/list",params:t})}function ot(t){return n["a"].request({method:"POST",url:"/hygieneTask/insert",data:t})}function st(t){return n["a"].request({method:"GET",url:"/hygieneArea/findById",params:t})}function dt(t){return n["a"].request({method:"POST",url:"/hygieneArea/update",data:t})}function lt(t){return n["a"].request({method:"POST",url:"/regulationManagement/insert",data:t})}function ct(t){return n["a"].request({method:"GET",url:"/regulationManagement/release",params:t})}function mt(t){return n["a"].request({method:"GET",url:"/regulationManagement/findById",params:t})}function ft(t){return n["a"].request({method:"POST",url:"/regulationManagement/update",data:t})}function ht(t){return n["a"].request({method:"POST",url:"/serviceBrowsing/insert",data:t})}function pt(t){return n["a"].request({method:"POST",url:"/serviceBrowsing/update",data:t})}function Tt(t){return n["a"].request({method:"GET",url:"/serviceBrowsing/findById",params:t})}function bt(t){return n["a"].request({method:"POST",url:"/communityIntroduction/insert",data:t})}function qt(t){return n["a"].request({method:"POST",url:"/communityIntroduction/update",data:t})}function gt(t){return n["a"].request({method:"GET",url:"/communityIntroduction/enable",params:t})}function Ot(t){return n["a"].request({method:"GET",url:"/communityIntroduction/findById",params:t})}function wt(t){return n["a"].request({method:"POST",url:"/securityManagement/insert",data:t})}function Pt(t){return n["a"].request({method:"POST",url:"/securityManagement/update",data:t})}function St(t){return n["a"].request({method:"GET",url:"/securityManagement/list",params:t})}function yt(t){return n["a"].request({method:"GET",url:"/userDecorationNew/list",params:t})}},f721:function(t,e,r){"use strict";r.r(e);var n=function(){var t=this,e=t._self._c;return e("div",{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:t.addOwnersCommittee}},[t._v("新增工程维修")])],1),e("div",{},[e("VueTable",{ref:"table",attrs:{config:t.config},on:{tableCheck:t.tableCheck}},[e("template",{slot:"footer"},[e("div",{staticClass:"table-footer"},[e("button",{on:{click:function(e){return t.detail(t.table_row)}}},[t._v(" 详情 ")])])])],2)],1)]),e("Drawer",{attrs:{drawerTitle:t.ownersCommitteeTitle,drawerVrisible:t.ownersCommittee_vrisible},on:{drawerClose:t.ownersCommitteeClose}},[e("div",{staticStyle:{padding:"30px"}},[e("FromCard",[e("template",{slot:"title"},[t._v("基本信息")]),[e("VueForm",{ref:"ownersCommitteeVueForm",attrs:{formObj:t.addForm},on:{ruleSuccess:t.ownersCommitteeRuleSubmit},scopedSlots:t._u([{key:"residentId",fn:function(){return[e("el-select",{staticStyle:{width:"240px"},attrs:{disabled:!!t.editId,"remote-method":t.remoteMethod,loading:t.loading,remote:"",filterable:"",placeholder:"请选择"},on:{change:e=>t.change(e,t.options),focus:t.focus},model:{value:t.addForm.ruleForm.residentId,callback:function(e){t.$set(t.addForm.ruleForm,"residentId",e)},expression:"addForm.ruleForm.residentId"}},t._l(t.options,(function(t,r){return e("el-option",{key:r,attrs:{label:t.label,value:t.value}})})),1)]},proxy:!0}])},[e("template",{slot:"fileUrls"},[[e("el-upload",{attrs:{action:t.$baseUrl+"upload/uploadButlerAppEngineeringRepair","on-success":t.ownersImgeSuccess,"show-file-list":!1,"before-upload":t.beforeAvatarUpload}},[e("div",{staticClass:"sys-image",staticStyle:{width:"104px",height:"104px"}},[t.fileUrls?[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}`}})]:e("div",[e("i",{staticClass:"el-icon-plus"}),e("p",[t._v("上传照片")])])],2)])]],2)],2)]],2)],1),e("div",{attrs:{slot:"footer"},slot:"footer"},[e("button",{staticClass:"btn-orange",on:{click:function(e){return t.ownersCommitteeSubmit()}}},[e("span",[e("i",{staticClass:"el-icon-circle-check"}),t._v("提交")])]),e("button",{staticClass:"btn-gray",on:{click:t.ownersCommitteeClose}},[e("span",[t._v("取消")])])])])],1)},u=[function(){var t=this,e=t._self._c;return e("div",{staticClass:"main-titel"},[e("span",[t._v("工程维修")])])}],a=r("d63a"),i=r("2b74"),o=r("48e8"),s={data(){return{options:[],loading:!1,ownersCommitteeTitle:"",ownersCommittee_vrisible:!1,editBool:!1,editId:0,table_row:[],config:{thead:[{label:"序号",type:"index",width:"80"},{label:"工程报修单号",prop:"code",width:"auto"},{label:"报修区域",prop:"repairArea",width:"auto"},{label:"报修详情",prop:"reportDetail",width:"auto"},{label:"状态",prop:"status",width:"auto",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"已作废";case 9:return"已取消"}}},{label:"维修员工名称",prop:"maintenanceStaffName",width:"auto"},{label:"所属部门",prop:"subordinateDepartments",width:"auto"},{label:"维修单位名称",prop:"organizationName",width:"auto"},{label:"申请人名称",prop:"createName",width:"auto"},{label:"申请人电话",prop:"createTel",width:"auto"},{label:"报修时间",prop:"createDate",width:"auto"}],table_data:[],url:"repairEngineeringList",search_item:[{type:"Input",label:"工程报修单号",placeholder:"请输入",prop:"code"},{type:"select",label:"状态",placeholder:"请选择",prop:"status",options:[{value:1,label:"待派单(维修公司)"},{value:2,label:"待派单(维修人员)"},{value:3,label:"待接单"},{value:4,label:"处理中"},{value:5,label:"已处理"},{value:6,label:"验收失败"},{value:7,label:"验收成功"},{value:8,label:"已作废"},{value:9,label:"已取消"}]},{type:"Input",label:"报修区域",placeholder:"请输入",prop:"repairArea"}],data:{pageNum:1,size:10}},fileUrls:"",addForm:{ruleForm:{fileUrls:[]},form_item:[{type:"Input",label:"报修区域",placeholder:"请输入区域",width:"50%",prop:"repairArea"},{type:"Input",label:"报修详情",placeholder:"请输入详情",width:"50%",prop:"reportDetail"},{type:"Slot",label:"图片上传",width:"100%",prop:"fileUrls",slotName:"fileUrls"}],rules:{repairArea:[{required:!0,message:"请输入",trigger:"change"}],reportDetail:[{required:!0,message:"请输入",trigger:"change"}]}},ownersObj:{}}},methods:{remoteMethod(t){let e={pageNum:1,size:20,name:t};this.loading=!0,Object(i["Z"])(e).then(t=>{this.options=t.tableList,this.loading=!1})},focus(){let t={pageNum:1,size:20};this.loading=!0,Object(i["Z"])(t).then(t=>{this.options=t.tableList,this.loading=!1,console.log(t)})},change(t,e){let r=e.filter((function(e){if(e.value===t)return e}));this.ownersObj=r[0],this.addForm.ruleForm.roomName=this.ownersObj.roomName,console.log(this.ownersObj)},ownersCommitteeRuleSubmit(){let t={repairArea:this.addForm.ruleForm.repairArea,type:1,reportDetail:this.addForm.ruleForm.reportDetail,fileUrls:this.addForm.ruleForm.fileUrls};this.editId?(t.id=this.editId,Object(a["cb"])(t).then(t=>{t.status&&(this.$message({message:t.message,type:"success"}),this.$refs.table.loadData(),this.ownersCommitteeClose())})):(console.log(t),Object(o["I"])(t).then(t=>{t.status&&(this.$message({message:t.message,type:"success"}),this.ownersCommitteeClose(),this.$refs.table.loadData())}))},ownersCommitteeSubmit(){this.$refs.ownersCommitteeVueForm.submitForm()},addOwnersCommittee(){this.ownersCommitteeTitle=" 添加工程维修",this.ownersCommittee_vrisible=!0},detail(t){1==t.length?this.$router.push({path:"/butler/engineeringMaintenanceDetail",query:{id:t[0].id}}):this.$message({message:"请选择一条数据查看"})},edit(t){if(t.length){if(t.length>1)return void this.$message.error("不能批量编辑");this.ownersCommitteeTitle=" 修改工程维修",this.ownersCommittee_vrisible=!0;let e={id:t[0].id};this.addForm.ruleForm.residentId=t[0].name,this.addForm.ruleForm.roomName=t[0].roomName,this.addForm.ruleForm.positionId=t[0].positionId,this.addForm.ruleForm.age=t[0].age,this.addForm.ruleForm.educationId=t[0].educationId,this.addForm.ruleForm.profession=t[0].profession,this.ownersObj.value=t[0].estateId,this.ownersObj.estateId=t[0].estateId,Object(a["ab"])(e).then(t=>{console.log(t),this.editBool=!0,this.editId=t.id,this.add.ruleForm.fileUrls[0]=t.imgUrls[0].url,this.fileUrls=t.imgUrls[0].url})}else this.$message.error("请选择需要编辑的数据")},tableCheck(t){this.table_row=t},ownersCommitteeClose(){this.editId=0,this.fileUrls="",this.ownersObj={};for(let t in this.addForm.ruleForm)this.$set(this.addForm.ruleForm,t,null);console.log(this.addForm.ruleForm),this.$refs.ownersCommitteeVueForm.reset(),this.ownersCommittee_vrisible=!1},del(t){let e=[];for(let r=0;r<this.table_row.length;r++)e.push(this.table_row[r].id);e.length?this.$confirm("是否删除?删除不可找回","删除",{confirmButtonText:"确定",cancelButtonText:"取消"}).then(()=>{this.$refs.table.tableDelete(e)}).catch(t=>{}):this.$message.error("请选中需要删除的表格数据")},ownersImgeSuccess(t,e){this.fileUrls=t.url,this.addForm.ruleForm.fileUrls[0]=t.url,this.editBool=!1},beforeAvatarUpload(t){const e=t.size/1024/1024<2,r="image/png"===t.type,n="image/jpeg"===t.type;return r||n||this.$message.error("上传头像图片只能是 JPG/PNG 格式!"),e||this.$message.error("上传头像图片大小不能超过 2MB!"),(r||n)&&e}}},d=s,l=(r("baa0"),r("2877")),c=Object(l["a"])(d,n,u,!1,null,null,null);e["default"]=c.exports}}]);
//# sourceMappingURL=chunk-5ce30428.754bfd0b.js.map