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.
rcgy_xmf_qrcode/js/chunk-2d0b65d6.cdcb59c1.js.map

1 line
42 KiB

{"version":3,"sources":["webpack:///./src/views/basic/page/houseManagement.vue","webpack:///./src/views/basic/components/houseManagement/add.vue","webpack:///src/views/basic/components/houseManagement/add.vue","webpack:///./src/views/basic/components/houseManagement/add.vue?274f","webpack:///./src/views/basic/components/houseManagement/add.vue?2bd2","webpack:///src/views/basic/page/houseManagement.vue","webpack:///./src/views/basic/page/houseManagement.vue?4672","webpack:///./src/views/basic/page/houseManagement.vue?e7ec"],"names":["render","_vm","this","_c","_self","staticClass","_m","attrs","on","$event","add","_v","ref","config","tableCheck","scopedSlots","_u","key","fn","slotData","_s","_f","esStatusData","data","status","esTypeData","type","slot","revises","table_row","del","drawerTitle","drawer_vrisible","handleClose","addEidtSuccess","staticRenderFns","drawerClose","staticStyle","fromjson","addRuleSuccess","model","value","ruleForm","constructionArea","callback","$$v","$set","expression","proxy","indoorArea","_l","froms","item","index","refInFor","addForm","ruleSubmit","addForms","onSubmit","onEdit","inject","props","drawerVrisible","default","editId","bool","buildingId","buildingUnitId","roomNumber","deviceNumber","rules","required","message","trigger","form_item","label","placeholder","options","width","prop","slotName","mounted","cpmBuildingUnitFindAll","dataDictionaryFindEstateType","console","res","dataDictionaryFindEstateStatus","methods","resList","estate","residentList","houseManagementInsert","id","houseManagementUpdate","edit","cpmBuildingUnitEstateFindById","tel","name","idType","idNumber","disabled","unitData","findByBuildingId","watch","handler","deep","component","components","addEidt","search_item","thead","url","pageNum","size","created","getData","arr","confirmButtonText","cancelButtonText","confirmButtonClass","cancelButtonClass","then","catch","action"],"mappings":"yHAAA,IAAIA,EAAS,WAAkB,IAAIC,EAAIC,KAAKC,EAAGF,EAAIG,MAAMD,GAAG,OAAOA,EAAG,MAAM,CAACE,YAAY,gBAAgB,CAACJ,EAAIK,GAAG,GAAGH,EAAG,MAAM,CAACE,YAAY,WAAW,C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,GAAQ,OAAOR,EAAIyD,cAAc,CAACvD,EAAG,OAAO,CAACA,EAAG,IAAI,CAACE,YAAY,yBAAyBJ,EAAIU,GAAG,UAAUR,EAAG,SAAS,CAACE,YAAY,aAAaG,GAAG,CAAC,MAAQ,SAASC,GAAQ,OAAOR,EAAI0D,YAAY,CAACxD,EAAG,OAAO,CAACA,EAAG,IAAI,CAACE,YAAY,yBAAyBJ,EAAIU,GAAG,YAAYR,EAAG,SAAS,CAACE,YAAY,WAAWG,GAAG,CAAC,MAAQP,EAAImC,cAAc,CAACjC,EAAG,OAAO,CAACF,EAAIU,GAAG,aAAa,IAAI,IAE3iFwB,EAAkB,GC8FP,GACfyB,kBACAC,OACAC,gBACApC,aACAqC,gBAEAhC,aACAL,YACAqC,iBAGAxC,OACA,OACAyC,YACAhC,mBACAiC,QACA3B,UACAI,UACAwB,aACAC,oBACAC,gBACA5C,YACAE,UACAiB,sBACAM,gBACAoB,mBAEAC,OACAJ,YACA,CACAK,YACAC,eACAC,iBAGAN,gBACA,CACAI,YACAC,gBACAC,iBAGAL,YACA,CACAG,YACAC,gBACAC,iBAGAjD,QACA,CACA+C,YACAC,cACAC,iBAGA/C,MACA,CACA6C,YACAC,gBACAC,iBAGA9B,kBACA,CACA4B,YACAC,kBACAC,iBAGAxB,YACA,CACAsB,YACAC,iBACAC,iBAGAJ,cACA,CACAE,YACAC,iBACAC,kBAIAC,WACA,CACAhD,cACAiD,WACAC,kBACAC,WACAC,YACAC,mBAEA,CACArD,cACAiD,YACAC,kBACAC,SACA,CAAAF,UAAAlC,SACA,CAAAkC,UAAAlC,UAEAqC,YACAC,uBAEA,CACArD,aACAiD,aACAC,kBACAE,YACAC,mBAEA,CACArD,cACAiD,aACAC,kBACAC,WACAC,YACAC,eAEA,CACArD,YACAiD,aACAC,kBACAE,YACAC,wBACAC,6BAEA,CACAtD,cACAiD,aACAC,kBACAC,WACAC,YACAC,aAEA,CACArD,YACAiD,aACAC,kBACAE,YACAC,kBACAC,uBAEA,CACAtD,WACAiD,eACAC,kBACAE,YACAC,uBAIA5B,WAGA8B,UAEAC,0BACA,uCAEAC,0BACAC,eACAC,cACA,OACAV,iBACAlC,mBAEA,+CAGA6C,0BACAF,eACAC,cACA,OACAV,iBACAlC,mBAEA,gDAIA8C,SACAnD,cACA,wBACA,cACA,8BACA,mCAEAoB,cACA,aAEAE,WACA,oCAGAnB,iBAEA,SAKA,GAJA,mBAEAiD,6BAEA,WACA,2BAEA,GADA,sCACA,oCACA,OAIA,OACAC,QACAtB,qDACAC,6CACA5C,qCACAE,iCACAiB,0BACA,yCAEAM,uDACAoB,kDAEAqB,gBAEAN,eACAO,2BACA,WACA,eACAnB,kBACA9C,iBAEA,6BACA,uBAMAiC,SAEA,SAKA,GAJA,mBAEA6B,6BAEA,WACA,2BAEA,GADA,sCACA,oCACA,OAIA,OACAC,QACAG,eACAzB,qDACAC,6CACA5C,qCACAE,iCACAiB,0BACA,yCAEAM,uDACAoB,kDAEAqB,gBAEAN,eACAS,2BACA,WACA,eACArB,kBACA9C,iBAGA,uBAMAoE,UACA,cACA,OACAF,MAEA,+CACA,oCACA,wDAEAG,2BACAX,qCAEA,qEACA,6DACA,yDACA,iFACA,qEACA,yEAEAA,uCACA,4CACA,iBACA7B,SACAb,UACAsD,8BACAC,gCACAC,oCACAC,yCAEAzB,WACA,CACAhD,aACAiD,aACAC,kBACAE,YACAC,YAAAqB,iBAEA,CACA1E,WACAiD,aACAC,kBACAE,YACAC,WAAAqB,iBAEA,CACA1E,cACAiD,aACAC,kBACAC,SACA,CAAApC,QAAAkC,aACA,CAAAlC,QAAAkC,eAEAG,YACAC,cAAAqB,iBAEA,CACA1E,aACAiD,aACAC,kBACAE,YACAC,gBAAAqB,mBAIAnF,mBAKA,yBAEAa,OACAsD,eACA,6BACA,OACA,wBAGA3B,WAEA,iBACAF,SACAb,UACAsD,SACAC,UACAC,YACAC,eAEA7B,OACA2B,MACA,CACA1B,YACAC,kBACAC,iBAGAuB,KACA,CACAzB,YACAC,iBACAC,iBAGAyB,QACA,CACA3B,YACAC,kBACAC,iBAGA0B,UACA,CACA5B,YACAC,kBACAC,kBAIAC,WACA,CACAhD,aACAiD,aACAC,kBACAE,YACAC,aAEA,CACArD,WACAiD,aACAC,kBACAE,YACAC,YAEA,CACArD,cACAiD,aACAC,kBACAC,SACA,CAAApC,QAAAkC,aACA,CAAAlC,QAAAkC,eAEAG,YACAC,eAEA,CACArD,aACAiD,aACAC,kBACAE,YACAC,mBAIA9D,kBAGAoF,YACA,sCACA,OACAT,MAEAU,2BAEAlB,eACA,yCAIAmB,OACAzC,gBACA0C,WACA,yBAGA,gCACAA,WACA,iBACA,4CAEAC,WC/iB0X,I,YCOtXC,EAAY,eACd,EACA,EACA,GACA,EACA,KACA,WACA,MAIa,EAAAA,E,QCwBA,GACfC,YACAC,WAEArF,OACA,OAEAQ,eACAT,gBACAG,cAGAO,mBACAH,aACAhB,QACAgG,aACA,CACAnF,aACAiD,aACAC,uBACAG,iBAEA,CACArD,cACAiD,aACAC,oBACAC,WAEAE,eAEA,CACArD,aACAiD,WACAC,kBACAG,qBAEA,CACArD,aACAiD,YACAC,kBACAG,qBAGA+B,OACA,CAAAnC,WAAAjD,aAAAoD,YACA,CAAAH,WAAAI,oBAAAD,cACA,CAAAH,cAAAI,sBAAAD,cACA,CAAAH,aAAAI,kBAAAD,cACA,CAAAH,aAAAI,cAAAD,aAAApD,YAAAsD,qBACA,CAAAL,WAAAI,wBAAAD,cACA,CAAAH,YAAAI,uBAAAD,cACA,CAAAH,aAAAI,YAAAD,aAAApD,YAAAsD,mBACA,CAAAL,aAAAI,wBAAAD,cACA,CAAAH,aAAAI,kBAAAD,cACA,CAAAH,aAAAI,UAAAD,eAEAiC,gBACAxF,MACAyF,UACAC,YAMAC,UACA5B,0BACA,oBACAF,+BACAC,cACA,OACAV,iBACAlC,mBAEA,+CAGA0C,0BACA,kBACAC,kBAIAG,SACA3D,WACA,SACA,WACA,iCAQA,sCACA,yBALA,mCAOAM,iBACAkD,eACA,6BAEA1E,MACA,wBACA,yBAEAuB,cACA,yBAEAnB,cACAsE,eACA,kBAEA+B,UAEA,6BAGArF,OACA,aACA,SACA,wCACAsF,6BAEA,oCACAC,uBACAC,sBACAC,mCACAC,mCACAC,KAAA,KACA,kCACAC,MAAAC,YAEA,qCC/KuX,ICOnX,EAAY,eACd,EACA3H,EACAmC,GACA,EACA,KACA,WACA,MAIa,e","file":"js/chunk-2d0b65d6.cdcb59c1.js","sourcesContent":["var render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:\"main-content\"},[_vm._m(0),_c('div',{staticClass:\"content\"},[_c('div',{staticClass:\"content-btn\"},[_c('el-button',{staticClass:\"init-button\",attrs:{\"icon\":\"el-icon-plus\"},on:{\"click\":function($event){return _vm.add()}}},[_vm._v(\"新增房屋\")])],1),_c('VueTable',{ref:\"table\",attrs:{\"config\":_vm.config},on:{\"tableCheck\":_vm.tableCheck},scopedSlots:_vm._u([{key:\"esStatus\",fn:function(slotData){return [_c('div',[_vm._v(\" \"+_vm._s(_vm._f(\"filterA\")(_vm.esStatusData,slotData.data.status))+\" \")])]}},{key:\"esType\",fn:function(slotData){return [_c('div',[_vm._v(\" \"+_vm._s(_vm._f(\"filterA\")(_vm.esTypeData,slotData.data.type))+\" \")])]}}])},[_c('template',{slot:\"footer\"},[_c('div',{staticClass:\"table-footer\"},[_c('button',{on:{\"click\":function($event){return _vm.revises(_vm.table_row)}}},[_vm._v(\"修改\")]),_c('button',{on:{\"click\":function($event){return _vm.del(_vm.table_row)}}},[_vm._v(\"删除\")])])])],2)],1),_c('addEidt',{ref:\"addEidt\",attrs:{\"drawerTitle\":_vm.drawerTitle,\"drawerVrisible\":_vm.drawer_vrisible},on:{\"handleClose\":_vm.handleClose,\"addEidtSuccess\":_vm.addEidtSuccess}})],1)\n}\nvar staticRenderFns = [function (){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:\"main-titel\"},[_c('span',[_vm._v(\"房产管理\")])])\n}]\n\nexport { render, staticRenderFns }","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',[_c('Drawer',{attrs:{\"drawerTitle\":_vm.drawerTitle,\"drawerVrisible\":_vm.drawer_vrisible},on:{\"drawerClose\":_vm.drawerClose}},[_c('FromCard',{staticStyle:{\"margin\":\"30px\"}},[_c('span',{attrs:{\"slot\":\"title\"},slot:\"title\"},[_vm._v(\"基本信息\")]),_c('VueForm',{ref:\"childFroms\",attrs:{\"formObj\":_vm.fromjson},on:{\"ruleSuccess\":_vm.addRuleSuccess},scopedSlots:_vm._u([{key:\"constructionArea\",fn:function(){return [_c('el-input',{staticStyle:{\"width\":\"240px\"},attrs:{\"size\":\"small\",\"placeholder\":\"请输入\"},model:{value:(_vm.fromjson.ruleForm.constructionArea),callback:function ($$v) {_vm.$set(_vm.fromjson.ruleForm, \"constructionArea\", $$v)},expression:\"fromjson.ruleForm.constructionArea\"}},[_c('i',{staticClass:\"metre\",staticStyle:{\"font-style\":\"normal\"},attrs:{\"slot\":\"suffix\"},slot:\"suffix\"},[_vm._v(\"㎡\")])])]},proxy:true},{key:\"indoorArea\",fn:function(){return [_c('el-input',{staticStyle:{\"width\":\"240px\"},attrs:{\"size\":\"small\",\"placeholder\":\"请输入\"},model:{value:(_vm.fromjson.ruleForm.indoorArea),callback:function ($$v) {_vm.$set(_vm.fromjson.ruleForm, \"indoorArea\", $$v)},expression:\"fromjson.ruleForm.indoorArea\"}},[_c('i',{staticClass:\"metre\",staticStyle:{\"font-style\":\"normal\"},attrs:{\"slot\":\"suffix\"},slot:\"suffix\"},[_vm._v(\"㎡\")])])]},proxy:true}])})],1),_vm._l((_vm.froms),function(item,index){return _c('div',{key:index,staticStyle:{\"margin\":\"30px\"}},[_c('FromCard',[_c('span',{attrs:{\"slot\":\"title\"},slot:\"title\"},[_vm._v(\"业主关联 \"+_vm._s(index + 1))]),_c('span',{attrs:{\"slot\":\"btn\"},slot:\"btn\"},[_c('el-button',{attrs:{\"type\":\"text\"},on:{\"click\":function($event){return _vm.del(item)}}},[_c('span',{staticStyle:{\"color\":\"#fb4702\"}},[_vm._v(\"删除\")])])],1),_c('div',{},[_c('VueForm',{ref:\"childFrom\",refInFor:true,attrs:{\"formObj\":item.addForm},on:{\"ruleSubmit\":_vm.ruleSubmit}})],1)])],1)}),_c('div',{staticStyle:{\"display\":\"flex\",\"justify-content\":\"center\"}},[_c('el-button',{attrs:{\"type\":\"text\"},on:{\"click\":function($event){return _vm.addForms()}}},[_c('span',{staticStyle:{\"color\":\"#fb4702\"}},[_vm._v(\"添加\")])])],1),_c('div',{attrs:{\"slot\":\"footer\"},slot:\"footer\"},[(_vm.drawerTitle=='新增房屋')?_c('button',{staticClass:\"btn-orange\",on:{\"click\":function($event){return _vm.onSubmit()}}},[_c('span',[_c('i',{staticClass:\"el-icon-circle-check\"}),_vm._v(\"提交\")])]):_c('button',{staticClass:\"btn-orange\",on:{\"click\":function($event){return _vm.onEdit()}}},[_c('span',[_c('i',{staticClass:\"el-icon-circle-check\"}),_vm._v(\"提交修改\")])]),_c('button',{staticClass:\"btn-gray\",on:{\"click\":_vm.drawerClose}},[_c('span',[_vm._v(\"取消\")])])])],2)],1)\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","<template>\n <div>\n <Drawer\n :drawerTitle=\"drawerTitle\"\n @drawerClose=\"drawerClose\"\n :drawerVrisible=\"drawer_vrisible\"\n >\n <FromCard style=\"margin: 30px\">\n <span slot=\"title\">基本信息</span>\n <VueForm\n ref=\"childFroms\"\n :formObj=\"fromjson\"\n @ruleSuccess=\"addRuleSuccess\"\n >\n <template v-slot:constructionArea>\n <el-input\n v-model=\"fromjson.ruleForm.constructionArea\"\n size=\"small\"\n style=\"width: 240px\"\n placeholder=\"请输入\"\n >\n <i\n slot=\"suffix\"\n style=\"font-style: normal\"\n class=\"metre\"\n >㎡</i\n >\n </el-input>\n </template>\n <template v-slot:indoorArea>\n <el-input\n v-model=\"fromjson.ruleForm.indoorArea\"\n size=\"small\"\n style=\"width: 240px\"\n placeholder=\"请输入\"\n >\n <i\n slot=\"suffix\"\n style=\"font-style: normal\"\n class=\"metre\"\n >㎡</i\n >\n </el-input>\n </template>\n </VueForm>\n </FromCard>\n <div\n style=\"margin: 30px\"\n v-for=\"(item, index) in froms\"\n :key=\"index\"\n >\n <FromCard>\n <span slot=\"title\">业主关联 {{ index + 1 }}</span>\n <span slot=\"btn\">\n <el-button type=\"text\" @click=\"del(item)\"\n ><span style=\"color: #fb4702\">删除</span></el-button\n >\n </span>\n <div class=\"\">\n <VueForm\n ref=\"childFrom\"\n @ruleSubmit=\"ruleSubmit\"\n :formObj=\"item.addForm\"\n ></VueForm>\n </div>\n </FromCard>\n </div>\n <div style=\"display: flex; justify-content: center\">\n <el-button @click=\"addForms()\" type=\"text\"\n ><span style=\"color: #fb4702\">添加</span></el-button\n >\n </div>\n <div slot=\"footer\">\n <button v-if=\"drawerTitle=='新增房屋'\" class=\"btn-orange\" @click=\"onSubmit()\">\n <span> <i class=\"el-icon-circle-check\"></i>提交</span>\n </button>\n <button class=\"btn-orange\" @click=\"onEdit()\" v-else>\n <span> <i class=\"el-icon-circle-check\"></i>提交修改</span>\n </button>\n <button class=\"btn-gray\" @click=\"drawerClose\">\n <span>取消</span>\n </button>\n </div>\n </Drawer>\n </div>\n</template>\n<script>\nimport {\n houseManagementInsert,\n cpmBuildingUnitFindAll,\n cpmBuildingUnitEstateFindById,\n findByBuildingId,\n dataDictionaryFindEstateType,\n dataDictionaryFindEstateStatus,\n houseManagementUpdate\n} from '@/api/basic'\nexport default {\n inject:['reload'],\n props: {\n drawerVrisible: {\n type: Boolean,\n default: () => false\n },\n drawerTitle: {\n type: String,\n default: () => ''\n }\n },\n data() {\n return {\n editId:null,\n drawer_vrisible: false,\n bool: false,\n fromjson: {\n ruleForm: {\n buildingId: 2,\n buildingUnitId: null,\n roomNumber: null,\n status: null,\n type: null,\n constructionArea: null,\n indoorArea: null,\n deviceNumber: null\n },\n rules: {\n buildingId: [\n {\n required: true,\n message: '请填楼栋',\n trigger: 'blur'\n }\n ],\n buildingUnitId: [\n {\n required: true,\n message: '请填单元号',\n trigger: 'blur'\n }\n ],\n roomNumber: [\n {\n required: true,\n message: '请填房间号',\n trigger: 'blur'\n }\n ],\n status: [\n {\n required: true,\n message: '请选择',\n trigger: 'blur'\n }\n ],\n type: [\n {\n required: true,\n message: '请选择类型',\n trigger: 'blur'\n }\n ],\n constructionArea: [\n {\n required: true,\n message: '请填写建筑面积',\n trigger: 'blur'\n }\n ],\n indoorArea: [\n {\n required: true,\n message: '请填室内面积',\n trigger: 'blur'\n }\n ],\n deviceNumber: [\n {\n required: true,\n message: '请填写设备号',\n trigger: 'blur'\n }\n ]\n },\n form_item: [\n {\n type: 'Select',\n label: '楼栋',\n placeholder: '请输入',\n options: [],\n width: '50%',\n prop: 'buildingId'\n },\n {\n type: 'Select',\n label: '单元号',\n placeholder: '请输入',\n options: [\n {label:'1',value:7},\n {label:'2',value:8},\n ],\n width: '50%',\n prop: 'buildingUnitId'\n },\n {\n type: 'Input',\n label: '房屋名称',\n placeholder: '请输入',\n width: '50%',\n prop: 'roomNumber'\n },\n {\n type: 'Select',\n label: '房屋状态',\n placeholder: '请输入',\n options: [],\n width: '50%',\n prop: 'status'\n },\n {\n type: 'Slot',\n label: '建筑面积',\n placeholder: '请输入',\n width: '50%',\n prop: 'constructionArea',\n slotName: 'constructionArea'\n },\n {\n type: 'Select',\n label: '房屋类型',\n placeholder: '请输入',\n options: [],\n width: '50%',\n prop: 'type'\n },\n {\n type: 'Slot',\n label: '室内面积',\n placeholder: '请输入',\n width: '50%',\n prop: 'indoorArea',\n slotName: 'indoorArea'\n },\n {\n type: 'Int',\n label: '对讲机设备号',\n placeholder: '请输入',\n width: '50%',\n prop: 'deviceNumber'\n }\n ]\n },\n froms: []\n }\n },\n mounted() {\n // 弹窗内下拉框\n cpmBuildingUnitFindAll().then((res) => {\n this.fromjson.form_item[0].options = res\n })\n dataDictionaryFindEstateType().then((res) => {\n console.log(res)\n res.forEach((element) => {\n let obj = {\n label: element.showName,\n value: element.showValue\n }\n this.fromjson.form_item[5].options.push(obj)\n })\n })\n dataDictionaryFindEstateStatus().then((res) => {\n console.log(res)\n res.forEach((element) => {\n let obj = {\n label: element.showName,\n value: element.showValue\n }\n this.fromjson.form_item[3].options.push(obj)\n })\n })\n },\n methods: {\n drawerClose() {\n this.drawer_vrisible = false\n this.froms = []\n this.$refs.childFroms.reset()\n this.$emit('handleClose', 'Close')\n },\n ruleSubmit(val) {\n this.bool = val\n },\n onSubmit() {\n this.$refs.childFroms.submitForm()\n },\n // 提交\n addRuleSuccess() {\n // 检查form表单校验\n let resList = []\n this.froms.map((item) => {\n // .submitForm()\n resList.push(item.addForm.ruleForm)\n })\n if (resList.length > 0) {\n for (let i = 0; i < resList.length; i++) {\n this.$refs.childFrom[i].submitForm()\n if (!this.froms[i].addForm.ruleForm.name) {\n return\n }\n }\n }\n let requestData = {\n estate: {\n buildingUnitId: this.fromjson.ruleForm.buildingUnitId,\n roomNumber: this.fromjson.ruleForm.roomNumber,\n status: this.fromjson.ruleForm.status, //不输入业主信息 只能填4\n type: this.fromjson.ruleForm.type,\n constructionArea: parseInt(\n this.fromjson.ruleForm.constructionArea\n ),\n indoorArea: parseInt(this.fromjson.ruleForm.indoorArea),\n deviceNumber: this.fromjson.ruleForm.deviceNumber\n },\n residentList: resList\n }\n console.log(requestData)\n houseManagementInsert(requestData).then((res) => {\n if (res.status) {\n this.$message({\n message: res.message,\n type: 'success'\n })\n this.$emit('addEidtSuccess')// 调用父组件方法\n this.drawerClose()\n \n \n }\n })\n },\n onEdit(){\n // 检查form表单校验\n let resList = []\n this.froms.map((item) => {\n // .submitForm()\n resList.push(item.addForm.ruleForm)\n })\n if (resList.length > 0) {\n for (let i = 0; i < resList.length; i++) {\n this.$refs.childFrom[i].submitForm()\n if (!this.froms[i].addForm.ruleForm.name) {\n return\n }\n }\n }\n let requestData = {\n estate: {\n id:this.editId,\n buildingUnitId: this.fromjson.ruleForm.buildingUnitId,\n roomNumber: this.fromjson.ruleForm.roomNumber,\n status: this.fromjson.ruleForm.status, //不输入业主信息 只能填4\n type: this.fromjson.ruleForm.type,\n constructionArea: parseInt(\n this.fromjson.ruleForm.constructionArea\n ),\n indoorArea: parseInt(this.fromjson.ruleForm.indoorArea),\n deviceNumber: this.fromjson.ruleForm.deviceNumber\n },\n residentList: resList\n }\n console.log(requestData)\n houseManagementUpdate(requestData).then((res) => {\n if (res.status) {\n this.$message({\n message: res.message,\n type: 'success'\n })\n \n this.drawerClose()\n \n }\n })\n },\n // 修改用户\n edit(id,data) {\n this.editId = id\n let findData = {\n id: id\n }\n this.fromjson.ruleForm.buildingId=data.buildingId\n if (this.fromjson.ruleForm.buildingId) {\n this.fromjson.ruleForm.buildingUnitId=data.buildingUnitId\n }\n cpmBuildingUnitEstateFindById(findData).then((res) => {\n console.log(res.cpmBuildingUnitEstate)\n // this.fromjson.ruleForm.buildingId = res.cpmBuildingUnitEstate.buildingId\n this.fromjson.ruleForm.roomNumber = res.cpmBuildingUnitEstate.roomNumber\n this.fromjson.ruleForm.status = res.cpmBuildingUnitEstate.status\n this.fromjson.ruleForm.type = res.cpmBuildingUnitEstate.type\n this.fromjson.ruleForm.constructionArea = res.cpmBuildingUnitEstate.constructionArea\n this.fromjson.ruleForm.indoorArea = res.cpmBuildingUnitEstate.indoorArea\n this.fromjson.ruleForm.deviceNumber = res.cpmBuildingUnitEstate.deviceNumber\n\n console.log(res.userResidentList.length)\n for (let i = 0; i < res.userResidentList.length; i++) {\n this.froms.push({\n addForm: {\n ruleForm: {\n tel: res.userResidentList[i].tel,\n name: res.userResidentList[i].name,\n idType: res.userResidentList[i].idType,\n idNumber: res.userResidentList[i].idNumber\n },\n form_item: [\n {\n type: 'Input',\n label: '业主姓名',\n placeholder: '请输入',\n width: '50%',\n prop: 'name',disabled:'true'\n },\n {\n type: 'Int',\n label: '联系方式',\n placeholder: '请输入',\n width: '50%',\n prop: 'tel',disabled:'true'\n },\n {\n type: 'Select',\n label: '证件类型',\n placeholder: '请输入',\n options: [\n { value: 1, label: '身份证' },\n { value: 2, label: '营业执照' }\n ],\n width: '50%',\n prop: 'idType',disabled:'true'\n },\n {\n type: 'Input',\n label: '证件号码',\n placeholder: '请输入',\n width: '50%',\n prop: 'idNumber',disabled:'true'\n }\n ]\n },\n key: Date.now()\n })\n }\n // houseManagementUpdate\n })\n this.drawer_vrisible = true\n },\n del(item) {\n console.log(item)\n let index = this.froms.indexOf(item)\n if (index !== -1) {\n this.froms.splice(index, 1)\n }\n },\n addForms() {\n let that = this\n this.froms.push({\n addForm: {\n ruleForm: {\n tel: null,\n name: null,\n idType: null,\n idNumber: null\n },\n rules: {\n name: [\n {\n required: true,\n message: '请填写业主姓名',\n trigger: 'blur'\n }\n ],\n tel: [\n {\n required: true,\n message: '请填写手机号',\n trigger: 'blur'\n }\n ],\n idType: [\n {\n required: true,\n message: '请选择证件类型',\n trigger: 'blur'\n }\n ],\n idNumber: [\n {\n required: true,\n message: '请填写证件号码',\n trigger: 'blur'\n }\n ]\n },\n form_item: [\n {\n type: 'Input',\n label: '业主姓名',\n placeholder: '请输入',\n width: '50%',\n prop: 'name'\n },\n {\n type: 'Int',\n label: '联系方式',\n placeholder: '请输入',\n width: '50%',\n prop: 'tel'\n },\n {\n type: 'Select',\n label: '证件类型',\n placeholder: '请输入',\n options: [\n { value: 1, label: '身份证' },\n { value: 2, label: '营业执照' }\n ],\n width: '50%',\n prop: 'idType'\n },\n {\n type: 'Input',\n label: '证件号码',\n placeholder: '请输入',\n width: '50%',\n prop: 'idNumber'\n }\n ]\n },\n key: Date.now()\n })\n },\n unitData(value) {\n this.fromjson.form_item[1].options=[]\n let resData = {\n id: value\n }\n findByBuildingId(resData).then((res) => {\n // 给单元号赋值\n console.log(res);\n this.fromjson.form_item[1].options=res\n })\n }\n },\n watch: {\n drawerVrisible: {\n handler(newValue) {\n this.drawer_vrisible = newValue\n }\n },\n 'fromjson.ruleForm.buildingId': {\n handler(newValue) {\n this.unitData(newValue)\n this.fromjson.ruleForm.buildingUnitId = null\n },\n deep: true\n }\n }\n}\n</script>\n\n<style scoped lang='scss'>\n</style>\n\n","import mod from \"-!../../../../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../../../../node_modules/thread-loader/dist/cjs.js!../../../../../node_modules/babel-loader/lib/index.js!../../../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./add.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../../../../node_modules/thread-loader/dist/cjs.js!../../../../../node_modules/babel-loader/lib/index.js!../../../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./add.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./add.vue?vue&type=template&id=b423ba7c&scoped=true&\"\nimport script from \"./add.vue?vue&type=script&lang=js&\"\nexport * from \"./add.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"b423ba7c\",\n null\n \n)\n\nexport default component.exports","<template>\n <div class=\"main-content\">\n <div class=\"main-titel\">\n <span>房产管理</span>\n </div>\n <div class=\"content\">\n <div class=\"content-btn\">\n <el-button class=\"init-button\"\n @click=\"add()\"\n icon=\"el-icon-plus\">新增房屋</el-button>\n </div>\n <VueTable ref=\"table\"\n :config='config'\n @tableCheck=\"tableCheck\">\n <template v-slot:esStatus=\"slotData\">\n <div>\n {{esStatusData|filterA(slotData.data.status)}}\n </div>\n </template>\n <template v-slot:esType=\"slotData\">\n <div>\n {{esTypeData|filterA(slotData.data.type)}}\n </div>\n </template>\n <template slot=\"footer\">\n <div class=\"table-footer\">\n <button @click=\"revises(table_row)\">修改</button>\n <button @click=\"del(table_row)\">删除</button>\n </div>\n </template>\n </VueTable>\n </div>\n <addEidt :drawerTitle=\"drawerTitle\"\n ref=\"addEidt\"\n @handleClose=\"handleClose\"\n @addEidtSuccess='addEidtSuccess'\n :drawerVrisible='drawer_vrisible'></addEidt>\n </div>\n</template>\n<script>\nimport { dataDictionaryFindEstateType,dataDictionaryFindEstateStatus } from '@/api/basic'\nimport addEidt from '../components/houseManagement/add.vue'\nexport default {\n components: {\n addEidt,\n },\n data () {\n return {\n // 抽屉标题\n drawerTitle: '',\n esStatusData:[],\n esTypeData:[],\n // 是否通过校验\n // 抽屉显示隐藏\n drawer_vrisible: false,\n table_row: [],\n config: {\n search_item: [\n {\n type: 'Input',\n label: '房屋信息',\n placeholder: '楼栋-单元-室号',\n prop: 'roomName'\n },\n {\n type: 'select',\n label: '房屋状态',\n placeholder: '请输入内容',\n options: [\n ],\n prop: 'status'\n },\n {\n type: 'Input',\n label: '业主',\n placeholder: '请输入',\n prop: 'residentName'\n },\n {\n type: 'Input',\n label: '手机号',\n placeholder: '请输入',\n prop: 'residentTel'\n }\n ],\n thead: [\n { label: '序号', type: 'index', width: '80' },\n { label: '楼栋', prop: 'buildingName', width: 'auto' },\n { label: '单元(号)', prop: 'buildingUnitNo', width: 'auto' },\n { label: '房屋名称', prop: 'roomNumber', width: 'auto' },\n { label: '房屋状态', prop: 'status', width: 'auto' ,type:'slot',slotName:'esStatus'},\n { label: '业主', prop: 'userResidentName', width: 'auto' },\n { label: '手机号', prop: 'userResidentTel', width: 'auto' },\n { label: '房屋类型', prop: 'type', width: 'auto' ,type:'slot',slotName:'esType'},\n { label: '建筑面积', prop: 'constructionArea', width: 'auto' },\n { label: '室内面积', prop: 'indoorArea', width: 'auto' },\n { label: '导入编号', prop: 'id', width: 'auto' },\n ],\n url: 'houseList',\n data: {\n pageNum: 1,\n size: 10,\n },\n\n },\n }\n },\n created () {\n dataDictionaryFindEstateStatus().then(res=>{\n this.esStatusData = res\n console.log(this.esStatusData);\n res.forEach(element => {\n let obj ={\n label:element.showName,\n value:element.showValue\n }\n this.config.search_item[1].options.push(obj)\n });\n })\n dataDictionaryFindEstateType().then(res=>{\n this.esTypeData = res\n console.log(res);\n })\n \n },\n methods: {\n revises (data) {\n if (data.length) {\n if (data.length > 1) {\n this.$message.error('只能单条数据修改')\n return\n }\n } else {\n this.$message.error('请选中需要修改的数据')\n return\n }\n\n this.$refs.addEidt.edit(data[0].id,data[0])\n this.drawerTitle = '修改房屋'\n },\n addEidtSuccess () {\n console.log(1);\n this.$refs.table.loadData()\n },\n add () {\n this.drawerTitle = '新增房屋',\n this.drawer_vrisible = true;\n },\n handleClose () {\n this.drawer_vrisible = false;\n },\n tableCheck (arr) {\n console.log(arr)\n this.table_row = arr\n },\n getData () {\n // 调用子组件的方法\n this.$refs.table.loadData()\n },\n // 删除\n del (data) {\n if (data.length) {\n let arr = []\n for (let i = 0; i < this.table_row.length; i++) {\n arr.push(this.table_row[i].id)\n }\n this.$confirm('是否确认删除?删除不可恢复', '删除', {\n confirmButtonText: '确定',\n cancelButtonText: '取消',\n confirmButtonClass: 'confirmButton',\n cancelButtonClass: 'cancelButton'\n }).then(() => {\n this.$refs.table.tableDelete(arr)\n }).catch(action => { });\n } else {\n this.$message.error('请选中需要删除的数据');\n }\n },\n }\n}\n</script>\n<style scoped lang='scss'>\n</style>\n","import mod from \"-!../../../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../../../node_modules/thread-loader/dist/cjs.js!../../../../node_modules/babel-loader/lib/index.js!../../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./houseManagement.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../../../node_modules/thread-loader/dist/cjs.js!../../../../node_modules/babel-loader/lib/index.js!../../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./houseManagement.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./houseManagement.vue?vue&type=template&id=7a2dcc16&scoped=true&\"\nimport script from \"./houseManagement.vue?vue&type=script&lang=js&\"\nexport * from \"./houseManagement.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"7a2dcc16\",\n null\n \n)\n\nexport default component.exports"],"sourceRoot":""}