Files
wysite/hc-pos.sqygj.cn/static/js/chunk-abce4b42.dee65b12.js

1 line
23 KiB
JavaScript

(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-abce4b42","chunk-2d0aa9e6"],{"127f":function(e,t,r){"use strict";r.d(t,"a",(function(){return a}));var a=function(){function e(){return(65536*(1+Math.random())|0).toString(16).substring(1)}return"".concat(+new Date,"_").concat(e()).concat(e())}},"5f23":function(e,t,r){"use strict";r("bd40")},"66b4":function(e,t,r){"use strict";r.d(t,"e",(function(){return i})),r.d(t,"f",(function(){return s})),r.d(t,"d",(function(){return o})),r.d(t,"h",(function(){return n})),r.d(t,"b",(function(){return l})),r.d(t,"a",(function(){return c})),r.d(t,"c",(function(){return u})),r.d(t,"i",(function(){return d})),r.d(t,"g",(function(){return m}));var a=r("b775");function i(e){return Object(a["a"])({url:"/appproject/CarFile/pageList",method:"post",data:e})}function s(e){return Object(a["a"])({url:"/appproject/CarFile/update",method:"post",data:e})}function o(e){return Object(a["a"])({url:"/appproject/CarFile/create",method:"post",data:e})}function n(e){return Object(a["a"])({url:"/project/houseMember/findByHouseId",method:"post",data:e})}function l(e){return Object(a["a"])({url:"/appproject/CarPlaceRecord/pageList",method:"post",data:e})}function c(e){return Object(a["a"])({url:"/appproject/CarPlaceRecord/create",method:"post",data:e})}function u(e){return Object(a["a"])({url:"/appproject/CarPlaceRecord/update",method:"post",data:e})}function d(e,t){return Object(a["a"])({url:"/appproject/CarPlaceRecord/importExcel/".concat(t),method:"post",isReturnResponse:!0,responseType:"blob",headers:{"Content-Type":"multipart/form-data;charset=UTF-8"},data:e})}function m(e,t){return Object(a["a"])({url:"/appproject/CarFile/importExcel/".concat(t),method:"post",isReturnResponse:!0,responseType:"blob",headers:{"Content-Type":"multipart/form-data;charset=UTF-8"},data:e})}},bd40:function(e,t,r){},ec82:function(e,t,r){"use strict";r.r(t);var a=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"workPointsManage"},[r("div",{staticClass:"workPointsRuleList"},[r("el-card",{staticClass:"box-card secarch-box"},[r("el-row",[r("el-col",{staticClass:"elCol",attrs:{span:5}},[r("el-select",{attrs:{clearable:"",placeholder:"请选择管理区"},on:{change:function(t){return e.selectArea(t,"query")}},model:{value:e.query.precinctId,callback:function(t){e.$set(e.query,"precinctId",t)},expression:"query.precinctId"}},e._l(e.areaOptions,(function(e,t){return r("el-option",{key:t,attrs:{label:e.name,value:e.id}})})),1)],1),e._v(" "),r("el-col",{staticClass:"elCol",attrs:{span:5}},[r("el-select",{attrs:{clearable:"",placeholder:"请选择楼栋"},on:{change:function(t){return e.selectBuild(t,"query")}},model:{value:e.query.buildingId,callback:function(t){e.$set(e.query,"buildingId",t)},expression:"query.buildingId"}},e._l(e.buildingList,(function(e,t){return r("el-option",{key:t,attrs:{label:e.name,value:e.id}})})),1)],1),e._v(" "),r("el-col",{staticClass:"elCol",attrs:{span:5}},[r("el-select",{attrs:{clearable:"",placeholder:"请选择单元"},on:{change:function(t){return e.selectUnit(t,"query")}},model:{value:e.query.unitId,callback:function(t){e.$set(e.query,"unitId",t)},expression:"query.unitId"}},e._l(e.unitOptions,(function(e,t){return r("el-option",{key:t,attrs:{label:e.name,value:e.id}})})),1)],1),e._v(" "),r("el-col",{staticClass:"elCol",attrs:{span:5}},[r("el-input",{attrs:{placeholder:"请输入房间名"},model:{value:e.query.roomNum,callback:function(t){e.$set(e.query,"roomNum",t)},expression:"query.roomNum"}})],1)],1),e._v(" "),r("el-row",[r("el-col",{staticClass:"elCol",attrs:{span:5}},[r("el-input",{attrs:{type:"text",clearable:"",placeholder:"车牌号"},model:{value:e.query.carNumber,callback:function(t){e.$set(e.query,"carNumber","string"===typeof t?t.trim():t)},expression:"query.carNumber"}})],1),e._v(" "),r("el-col",{staticClass:"elCol",attrs:{span:5}},[r("el-select",{attrs:{clearable:"",placeholder:"请选择状态"},model:{value:e.query.status,callback:function(t){e.$set(e.query,"status",t)},expression:"query.status"}},e._l(e.statusList,(function(e){return r("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})})),1)],1),e._v(" "),r("el-col",{staticClass:"elCol",attrs:{span:4}},[r("el-button",{directives:[{name:"points",rawName:"v-points",value:500,expression:"500"}],on:{click:function(t){return e.resetForm()}}},[e._v("重置")]),e._v(" "),r("el-button",{directives:[{name:"points",rawName:"v-points",value:500,expression:"500"}],attrs:{type:"primary"},on:{click:e.onSearch}},[e._v("查询")])],1)],1)],1),e._v(" "),r("el-card",{staticClass:"box-card",staticStyle:{"margin-top":"15px"}},[r("div",{staticClass:"planLst",attrs:{slot:"header"},slot:"header"},[r("span",{staticClass:"planTitle"},[e._v("车辆信息列表")]),e._v(" "),r("div",{staticStyle:{display:"flex"}},[r("el-button",{directives:[{name:"points",rawName:"v-points",value:500,expression:"500"}],staticClass:"el-icon-plus",attrs:{type:"primary"},on:{click:e.addCar}},[e._v("添加")]),e._v(" "),r("el-button",{directives:[{name:"points",rawName:"v-points",value:500,expression:"500"}],attrs:{type:"primary"},on:{click:e.downloadCar}},[e._v("导出模版")]),e._v(" "),r("el-upload",{ref:"upload",staticStyle:{"margin-left":"10px"},attrs:{"auto-upload":!0,"show-file-list":!1,accept:".xls,.xlsx","http-request":e.importData,loading:e.importDataBtn,action:""}},[r("el-button",{directives:[{name:"points",rawName:"v-points",value:500,expression:"500"}],attrs:{type:"primary"}},[e._v("导入数据")])],1)],1)]),e._v(" "),r("el-table",{staticStyle:{width:"100%","margin-top":"15px"},attrs:{border:"",data:e.tableData,"header-cell-style":e.headClass}},[r("el-table-column",{attrs:{label:"#",align:"center","min-width":"50",fixed:"","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[r("span",[e._v(e._s(t.$index+(e.query.pageNumber-1)*e.query.pageSize+1)+"\n ")])]}}])}),e._v(" "),r("el-table-column",{attrs:{align:"center",prop:"precinctName",label:"管理区","min-width":"80","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[r("span",[e._v(e._s(t.row.precinctName))])]}}])}),e._v(" "),r("el-table-column",{attrs:{align:"center",prop:"buildingName",label:"楼栋","min-width":"120","show-overflow-tooltip":""}}),e._v(" "),r("el-table-column",{attrs:{align:"center",prop:"unitName",label:"单元","min-width":"80","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.unitName)+"\n ")]}}])}),e._v(" "),r("el-table-column",{attrs:{align:"center",prop:"roomNum",label:"房间号","min-width":"100","show-overflow-tooltip":""}}),e._v(" "),r("el-table-column",{attrs:{align:"center",prop:"carNumber",label:"车牌号","min-width":"130","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.carNumber)+"\n ")]}}])}),e._v(" "),r("el-table-column",{attrs:{align:"center",prop:"memberName",label:"车辆所属人","min-width":"150","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[r("span",[e._v(e._s(t.row.memberName))])]}}])}),e._v(" "),r("el-table-column",{attrs:{align:"center",prop:"mobile",label:"联系电话","min-width":"100","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[r("span",[e._v(e._s(t.row.mobile))])]}}])}),e._v(" "),r("el-table-column",{attrs:{align:"center",prop:"status",label:"状态","min-width":"100","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[r("span",[e._v(e._s(0==t.row.status?"启用":"禁用"))])]}}])}),e._v(" "),r("el-table-column",{attrs:{align:"center",prop:"updateTime",label:"更新时间","min-width":"180","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[r("span",[e._v(e._s(t.row.updateTime))])]}}])}),e._v(" "),r("el-table-column",{attrs:{align:"center",fixed:"right",label:"操作","min-width":"140","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[r("span",[r("el-button",{attrs:{type:"text"},on:{click:function(r){return e.detailsClick(t.row,"view")}}},[e._v("查看")])],1),e._v(" "),r("span",[r("el-button",{attrs:{type:"text"},on:{click:function(r){return e.detailsClick(t.row,"edit")}}},[e._v("编辑")])],1),e._v(" "),r("span",[r("el-button",{attrs:{type:"text"},on:{click:function(r){return e.changeStatus(t.row)}}},[e._v(e._s(0==t.row.status?"禁用":"启用"))])],1)]}}])})],1),e._v(" "),r("div",{staticClass:"paginations"},[r("el-pagination",{attrs:{background:"","current-page":e.query.pageNumber,"page-sizes":[10,30,50,100,200],"page-size":e.query.pageSize,layout:"total, sizes, prev, pager, next, jumper",total:e.pageTotal},on:{"update:currentPage":function(t){return e.$set(e.query,"pageNumber",t)},"update:current-page":function(t){return e.$set(e.query,"pageNumber",t)},"size-change":e.handleSizeChange,"current-change":e.handleCurrentChange}})],1)],1)],1),e._v(" "),r("el-dialog",{attrs:{title:e.title,visible:e.show,"close-on-click-modal":!1,"close-on-press-escape":!1,width:"70%"},on:{"update:visible":function(t){e.show=t}}},[r("el-form",{ref:"carForm",attrs:{model:e.carForm,rules:e.carRule,"label-width":"100px"}},[r("div",{staticClass:"form-box"},[r("div",{staticClass:"left"},[r("el-form-item",{attrs:{label:"车牌号",prop:"carNumber"}},[r("el-input",{attrs:{disabled:e.carNumberDisabled,placeholder:"请输入车牌号"},model:{value:e.carForm.carNumber,callback:function(t){e.$set(e.carForm,"carNumber",t)},expression:"carForm.carNumber"}})],1),e._v(" "),r("el-form-item",{attrs:{label:"管理区",prop:"precinctId"}},[r("el-select",{attrs:{disabled:e.carFormDisabled,placeholder:"请选择管理区",clearable:""},on:{change:function(t){return e.selectArea(t,"carForm")}},model:{value:e.carForm.precinctId,callback:function(t){e.$set(e.carForm,"precinctId",t)},expression:"carForm.precinctId"}},e._l(e.areaOptions2,(function(e,t){return r("el-option",{key:t,attrs:{label:e.name,value:e.id}})})),1)],1),e._v(" "),r("el-form-item",{attrs:{label:"单元",prop:"unitId"}},[r("el-select",{attrs:{disabled:e.carFormDisabled,placeholder:"请选择单元",clearable:""},on:{change:function(t){return e.selectUnit(t,"carForm")}},model:{value:e.carForm.unitId,callback:function(t){e.$set(e.carForm,"unitId",t)},expression:"carForm.unitId"}},e._l(e.unitOptions2,(function(e,t){return r("el-option",{key:t,attrs:{label:e.name,value:e.id}})})),1)],1),e._v(" "),r("el-form-item",{attrs:{label:"车辆所属人",prop:"memberId"}},[r("el-select",{attrs:{disabled:e.carFormDisabled,placeholder:"请选择车辆所属人",clearable:""},on:{change:e.selectMember},model:{value:e.carForm.memberId,callback:function(t){e.$set(e.carForm,"memberId",t)},expression:"carForm.memberId"}},e._l(e.userList2,(function(e,t){return r("el-option",{key:t,attrs:{label:e.realName,value:e.id}})})),1)],1),e._v(" "),"查看车辆信息"==e.title?r("el-form-item",{attrs:{label:"创建人"}},[r("el-input",{attrs:{disabled:e.carNumberDisabled},model:{value:e.carForm.createName,callback:function(t){e.$set(e.carForm,"createName",t)},expression:"carForm.createName"}})],1):e._e(),e._v(" "),"查看车辆信息"==e.title?r("el-form-item",{attrs:{label:"创建时间"}},[r("el-input",{attrs:{disabled:e.carNumberDisabled},model:{value:e.carForm.createTime,callback:function(t){e.$set(e.carForm,"createTime",t)},expression:"carForm.createTime"}})],1):e._e(),e._v(" "),r("el-form-item",{attrs:{label:"状态",prop:"status"}},[r("el-switch",{attrs:{disabled:e.carFormDisabled,"active-color":"#169bd5","inactive-color":"#8c8c8c","active-value":0,"inactive-value":1},model:{value:e.carForm.status,callback:function(t){e.$set(e.carForm,"status",t)},expression:"carForm.status"}}),e._v(" "),r("span",[e._v(e._s(0==e.carForm.status?"启用":"禁用"))])],1)],1),e._v(" "),r("div",{staticClass:"right"},[r("el-form-item",{attrs:{label:"车型号",prop:"carModel"}},[r("el-input",{attrs:{disabled:e.carFormDisabled,clearable:"",placeholder:"请输入车型号"},model:{value:e.carForm.carModel,callback:function(t){e.$set(e.carForm,"carModel",t)},expression:"carForm.carModel"}})],1),e._v(" "),r("el-form-item",{attrs:{label:"楼栋",prop:"buildingId"}},[r("el-select",{attrs:{disabled:e.carFormDisabled,placeholder:"请选择房屋楼栋",clearable:""},on:{change:function(t){return e.selectBuild(t,"carForm")}},model:{value:e.carForm.buildingId,callback:function(t){e.$set(e.carForm,"buildingId",t)},expression:"carForm.buildingId"}},e._l(e.buildingList2,(function(e,t){return r("el-option",{key:t,attrs:{label:e.name,value:e.id}})})),1)],1),e._v(" "),r("el-form-item",{attrs:{label:"房间",prop:"houseId"}},[r("el-select",{attrs:{disabled:e.carFormDisabled,"value-key":"id",placeholder:"请选择房间",clearable:""},on:{change:function(t){return e.selectHouse(t,1)}},model:{value:e.carForm.houseId,callback:function(t){e.$set(e.carForm,"houseId",t)},expression:"carForm.houseId"}},e._l(e.homeList2,(function(e,t){return r("el-option",{key:t,attrs:{label:e.roomNum,value:e.id}})})),1)],1),e._v(" "),r("el-form-item",{attrs:{label:"联系电话",prop:"mobile"}},[r("el-input",{attrs:{disabled:!0,clearable:"",placeholder:"请输入联系电话"},model:{value:e.carForm.mobile,callback:function(t){e.$set(e.carForm,"mobile",t)},expression:"carForm.mobile"}})],1),e._v(" "),"查看车辆信息"==e.title?r("el-form-item",{attrs:{label:"更新时间"}},[r("el-input",{attrs:{disabled:e.carNumberDisabled},model:{value:e.carForm.updateTime,callback:function(t){e.$set(e.carForm,"updateTime",t)},expression:"carForm.updateTime"}})],1):e._e(),e._v(" "),r("div",{staticClass:"upload-box"},[r("span",[e._v("行驶证: ")]),e._v(" "),r("AliOSSUpload",{attrs:{allowFileType:e.allowFileType1,showFileList:!1,fileList:e.drivingLicenseSrcList,disabled:e.carFormDisabled,limit:1},on:{getUploadData:function(t){return e.getUploadData(t,"drivingLicense")}}}),e._v(" "),r("span",{staticStyle:{margin:"0 30px"}},[e._v("驾驶证: ")]),e._v(" "),r("AliOSSUpload",{attrs:{disabled:e.carFormDisabled,allowFileType:e.allowFileType1,showFileList:!1,fileList:e.steerLicenseSrcList,limit:1},on:{getUploadData:function(t){return e.getUploadData(t,"steerLicense")}}})],1)],1)]),e._v(" "),r("div",{staticClass:"close-box"},["添加车辆信息"==e.title||"编辑车辆信息"==e.title?r("el-button",{attrs:{type:"primary"},on:{click:e.saveCar}},[e._v("保 存")]):e._e(),e._v(" "),r("el-button",{on:{click:e.carCancel}},[e._v("取 消")])],1)])],1)],1)},i=[],s=r("2b74"),o=r("8988"),n=r("66b4"),l={components:{AliOSSUpload:o["a"]},data:function(){return{title:"添加车辆信息",statusList:[{label:"启用",value:0},{label:"禁用",value:1}],query:{precinctId:"",buildingId:"",unitId:"",houseId:"",carNumber:"",status:"",roomNum:"",companyId:this.$store.state.companyId,projectUuid:this.$store.state.community_uuid,pageNumber:1,pageSize:10},carForm:{precinctName:"",unitName:"",roomNum:"",memberName:"",buildingName:"",carNumber:"",precinctId:"",buildingId:"",unitId:"",houseId:"",status:0,memberId:"",mobile:"",carModel:""},tableData:[],pageTotal:0,areaOptions:[],buildingList:[],unitOptions:[],homeList:[],userList:[],areaOptions2:[],buildingList2:[],unitOptions2:[],homeList2:[],userList2:[],show:!1,carNumberDisabled:!1,carFormDisabled:!1,importDataBtn:!1,carRule:{carNumber:[{required:!0,message:"请填写车牌号",trigger:"blur"},{pattern:/^[\u4e00-\u9fa5]{1}[A-Z]{1}[A-Z_0-9]{5}$/,message:"车牌号格式错误",trigger:"blur"}],precinctId:[{required:!0,message:"请选择管理区",trigger:"change"}],unitId:[{required:!0,message:"请选择单元",trigger:"change"}],memberId:[{required:!0,message:"请选择车辆所属人",trigger:"change"}],houseId:[{required:!0,message:"请选择房间",trigger:"change"}],buildingId:[{required:!0,message:"请选择房屋楼栋",trigger:"change"}],mobile:[{required:!0,message:"请输入联系人电话",trigger:"change"}]},allowFileType1:["image"],steerLicenseSrcList:[],drivingLicenseSrcList:[],cloneObj:{}}},mounted:function(){this.headClass(),this.getlistData(),this.getAreaOptions()},methods:{downloadImportDetailes:function(e){var t="application/vnd.ms-excel",r=new Blob([e],{type:t}),a="车辆信息导入失败信息.xls";if(window.navigator.msSaveOrOpenBlob)navigator.msSaveBlob(r);else{var i=document.createElement("a");i.download=a,i.style.display="none",i.href=URL.createObjectURL(r),document.body.appendChild(i),i.click(),document.body.removeChild(i)}},importData:function(e){var t=this,r=e.file,a=r.size/1024/1024<20,i=r.name.lastIndexOf("."),s=r.name.length,o=r.name.substring(i+1,s);if("xls"==o||"xlsx"==o)if(a){var l=new FormData;this.fileName=r.name,l.append("file",r,r.name);var c="".concat(this.$store.state.community_uuid,"/").concat(this.$store.state.user.userInfo.memberId);this.importDataBtn=!0,Object(n["g"])(l,c).then((function(e){var r=e.headers,a=e.data;if(r.count){var i=JSON.parse(r.count);0==i.code?i.errorCount>0?(t.$message({message:"上传结果:总条数".concat(i.totalCount,"条,成功").concat(i.successCount,"条,失败").concat(i.errorCount,"条。"),type:"warning"}),t.downloadImportDetailes(a),t.query.pageNumber=1,t.getlistData()):(t.$message({message:"导入数据成功!",type:"success"}),t.query.pageNumber=1,t.getlistData(),t.alert()):t.$message({message:"数据导入失败,请检查模板数据格式是否规范!",type:"error"}),t.importDataBtn=!1}else t.$message({message:"数据导入失败,请检查模板数据格式是否规范!",type:"error"}),t.importDataBtn=!1}))}else this.$message("上传文件大小不能超过20M!");else this.$message("只能上传Excel文件!")},downloadCar:function(){var e="/static/template/vehicleFileTemplate.xlsx",t="车辆档案导入模板.xlsx",r=document.createElement("a");r.setAttribute("type","download"),r.setAttribute("download",t),r.style.display="none",r.href=e,document.body.appendChild(r),r.click(),document.body.removeChild(r)},selectHouse:function(e,t){var r=this;Object(s["E"])({id:e}).then((function(e){r.userList2=e.data})),1==t&&(this.carForm.roomNum=this.homeList2.find((function(t){return t.id==e})).roomNum,this.carForm.memberId="")},saveCar:function(){var e=this;this.$refs["carForm"].validate((function(t){t&&(e.carForm.projectUuid=e.$store.state.community_uuid,"添加车辆信息"==e.title?(e.carForm.createName=e.$store.state.user.name,Object(n["d"])(e.carForm).then((function(t){0==t.code&&(e.show=!1,e.$message.success("保存成功"),e.getlistData(),e.$refs.carForm.resetFields())}))):"编辑车辆信息"==e.title&&Object(n["f"])(e.carForm).then((function(t){0==t.code&&(e.show=!1,e.$message.success("保存成功"),e.getlistData(),e.$refs.carForm.resetFields())})))}))},carCancel:function(){this.carForm.precinctName="",this.carForm.unitName="",this.carForm.roomNum="",this.carForm.memberName="",this.carForm.buildingName="",this.carForm.carNumber="",this.carForm.precinctId="",this.carForm.buildingId="",this.carForm.unitId="",this.carForm.status=0,this.carForm.memberId="",this.carForm.mobile="",this.carForm.carModel="",this.carForm.houseId="",this.show=!1,this.drivingLicenseSrcList=[],this.steerLicenseSrcList=[]},selectMember:function(e){this.carForm.mobile=this.userList2.find((function(t){return t.id==e})).mobile,this.carForm.memberName=this.userList2.find((function(t){return t.id==e})).realName},getUploadData:function(e,t){var r=[];e&&e.length>0?e.forEach((function(e){r.push(e.filePath)})):"drivingLicense"==t?this.drivingLicenseSrcList=[]:this.steerLicenseSrcList=[],this.carForm[t]=r.join(",")},detailsClick:function(e,t){this.getHome(e.unitId,2),this.drivingLicenseSrcList=[],this.steerLicenseSrcList=[],Object.assign(this.carForm,e),this.getBuilding(e.buildingId,2),this.getUnit(e.buildingId,2),this.selectHouse(e.houseId,2),"view"==t?(this.title="查看车辆信息",this.carNumberDisabled=!0,this.carFormDisabled=!0,this.carForm.drivingLicense&&(this.drivingLicenseSrcList=[{url:this.carForm.drivingLicense}]),this.carForm.steerLicense&&(this.steerLicenseSrcList=[{url:this.carForm.steerLicense}])):"edit"==t&&(this.title="编辑车辆信息",this.carNumberDisabled=!0,this.carFormDisabled=!1,this.carForm.drivingLicense?this.drivingLicenseSrcList=[{url:this.carForm.drivingLicense}]:this.drivingLicenseSrcList=[],this.carForm.steerLicense?this.steerLicenseSrcList=[{url:this.carForm.steerLicense}]:this.steerLicenseSrcList=[]),this.show=!0},addCar:function(){this.title="添加车辆信息",this.carForm.precinctName="",this.carForm.unitName="",this.carForm.roomNum="",this.carForm.memberName="",this.carForm.buildingName="",this.carForm.carNumber="",this.carForm.precinctId="",this.carForm.buildingId="",this.carForm.unitId="",this.carForm.status=0,this.carForm.memberId="",this.carForm.mobile="",this.carForm.carModel="",this.carForm.houseId="",this.carNumberDisabled=!1,this.carFormDisabled=!1,this.show=!0,this.drivingLicenseSrcList=[],this.steerLicenseSrcList=[]},changeStatus:function(e){var t=this;0==e.status?e.status=1:e.status=0,Object(n["f"])(e).then((function(e){0==e.code&&t.$message.success("修改成功")}))},getAreaOptions:function(){var e=this,t={projectUuid:this.$store.state.community_uuid,pageNumber:-1,pageSize:-1};Object(s["f"])(t).then((function(t){e.areaOptions=t.data,e.areaOptions2=t.data}))},selectArea:function(e,t){this.userList=[],this.buildingList=[],this.unitOptions=[],this.homeList=[],this.userList2=[],this.buildingList2=[],this.unitOptions2=[],this.homeList2=[],"query"==t?(this.query.buildingId="",this.query.unitId="",this.query.houseId="",this.getBuilding(e,1)):(this.carForm.buildingId="",this.carForm.unitId="",this.carForm.houseId="",this.carForm.memberId="",this.carForm.mobile="",this.carForm.precinctName=this.areaOptions2.find((function(t){return t.id==e})).name,this.getBuilding(e,2))},getBuilding:function(e,t){var r=this;Object(s["x"])({precinctId:e,projectCode:this.$store.state.community_uuid,projectName:this.$store.state.community_name,pageNumber:-1,pageSize:-1}).then((function(e){1==t?r.buildingList=e.data:r.buildingList2=e.data}))},selectBuild:function(e,t){"query"==t?(this.query.unitId="",this.query.houseId="",this.getUnit(e,1)):(this.carForm.unitId="",this.carForm.houseId="",this.carForm.memberId="",this.carForm.mobile="",this.carForm.buildingName=this.buildingList2.find((function(t){return t.id==e})).name,this.getUnit(e,2)),this.unitOptions=[],this.homeList=[],this.unitOptions2=[],this.homeList2=[]},getUnit:function(e,t){var r=this;Object(s["mb"])({pageNumber:-1,pageSize:-1,projectCode:this.$store.state.community_uuid,buildingId:e}).then((function(e){1==t?r.unitOptions=e.data.records:r.unitOptions2=e.data.records}))},selectUnit:function(e,t){this.homeList=[],"query"==t?(this.query.houseId="",this.getHome(e,1)):(this.carForm.houseId="",this.carForm.memberId="",this.carForm.mobile="",this.carForm.unitName=this.unitOptions2.find((function(t){return t.id==e})).name,this.getHome(e,2))},getHome:function(e,t){var r=this,a={pageNumber:-1,pageSize:-1,unitId:e};Object(s["M"])(a).then((function(e){1==t?r.homeList=e.data.records:r.homeList2=e.data.records}))},onSearch:function(){this.query.pageNumber=1,this.getlistData()},getlistData:function(){var e=this;Object(n["e"])(this.query).then((function(t){0===t.code&&t.data?(e.tableData=t.data.records,e.pageTotal=t.data.rowsCount):e.tableData=[]}))},handleSizeChange:function(e){this.query.pageSize=e,this.getlistData()},handleCurrentChange:function(e){this.query.pageNumber=e,this.getlistData()},resetForm:function(){this.query.pageNumber=1,this.query.precinctId="",this.query.buildingId="",this.query.unitId="",this.query.houseId="",this.query.carNumber="",this.query.status="",this.query.roomNum="",this.getlistData()},headClass:function(){return"text-align:center;background:#FAFAFA;"}}},c=l,u=(r("5f23"),r("829d")),d=Object(u["a"])(c,a,i,!1,null,"495883d6",null);t["default"]=d.exports}}]);