{"remainingRequest":"E:\\hz-zhhq-web\\node_modules\\thread-loader\\dist\\cjs.js!E:\\hz-zhhq-web\\node_modules\\babel-loader\\lib\\index.js!E:\\hz-zhhq-web\\node_modules\\cache-loader\\dist\\cjs.js??ref--0-0!E:\\hz-zhhq-web\\node_modules\\vue-loader\\lib\\index.js??vue-loader-options!E:\\hz-zhhq-web\\src\\views\\house\\index.vue?vue&type=script&lang=js","dependencies":[{"path":"E:\\hz-zhhq-web\\src\\views\\house\\index.vue","mtime":1737610069425},{"path":"E:\\hz-zhhq-web\\babel.config.js","mtime":1737610069371},{"path":"E:\\hz-zhhq-web\\node_modules\\cache-loader\\dist\\cjs.js","mtime":499162500000},{"path":"E:\\hz-zhhq-web\\node_modules\\thread-loader\\dist\\cjs.js","mtime":499162500000},{"path":"E:\\hz-zhhq-web\\node_modules\\babel-loader\\lib\\index.js","mtime":456789000000},{"path":"E:\\hz-zhhq-web\\node_modules\\cache-loader\\dist\\cjs.js","mtime":499162500000},{"path":"E:\\hz-zhhq-web\\node_modules\\vue-loader\\lib\\index.js","mtime":499162500000}],"contextDependencies":[],"result":["import \"core-js/modules/es6.function.name\";\nimport \"core-js/modules/es6.array.find-index\";\nimport \"core-js/modules/web.dom.iterable\";\nimport _createForOfIteratorHelper from \"E:/hz-zhhq-web/node_modules/@babel/runtime/helpers/esm/createForOfIteratorHelper.js\";\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n\nimport Paging from \"@/views/Public/paging.vue\";\nimport { houseList, houseDicInfo as _houseDicInfo, delHouse, houseImportFile, houseDeviceImport, Own } from \"@/api/getdata\";\nimport Popup from \"@/views/estate/examine/dialog/popup.vue\";\nexport default {\n components: {\n Paging: Paging,\n Popup: Popup\n },\n data: function data() {\n return {\n loading: false,\n loadingMsg: \"\",\n row: {},\n fileList: [],\n fileList2: [],\n validation: false,\n completeTitle: \"删除\",\n nav: \"是否删除?\",\n outDialogVisible: false,\n formInline: {\n houseName: \"\",\n assetsId: \"\",\n houseType: \"\",\n status: \"\",\n startDate: \"\",\n endDate: \"\"\n },\n dateRange: [],\n parentdata: [],\n houseType: [],\n status: [],\n device: [],\n model: [],\n page: {\n limit: 0 /** 当前点击*/,\n sizePage: 10 /** 当前多少页*/,\n total: 0 /**总数 */\n },\n tableData: [],\n checkAll: false,\n checkedOptions: [],\n isIndeterminate: false,\n outOptions: [{\n label: \"房屋名称\",\n value: \"houseName\"\n }, {\n label: \"资产id\",\n value: \"assetsId\"\n }, {\n label: \"房屋类型\",\n value: \"houseType\"\n }, {\n label: \"房屋地址\",\n value: \"houseAddr\"\n }, {\n label: \"房屋面积\",\n value: \"acreage\"\n }, {\n label: \"房型\",\n value: \"model\"\n }, {\n label: \"建筑年代\",\n value: \"buildingYear\"\n }, {\n label: \"房屋状态\",\n value: \"status\"\n }, {\n label: \"房租金额\",\n value: \"rent\"\n }, {\n label: \"押金\",\n value: \"amount\"\n }, {\n label: \"评估价\",\n value: \"evaluationPrice\"\n }, {\n label: \"资产原值\",\n value: \"cost\"\n }, {\n label: \"责任人\",\n value: \"responsible\"\n }, {\n label: \"责任人联系方式\",\n value: \"responsiblePhone\"\n }, {\n label: \"租赁方式\",\n value: \"rentType\"\n }, {\n label: \"物业费用\",\n value: \"property\"\n }, {\n label: \"水表号\",\n value: \"water\"\n }, {\n label: \"水表码\",\n value: \"waterNum\"\n }, {\n label: \"电表号\",\n value: \"elec\"\n }, {\n label: \"电表码\",\n value: \"elecNum\"\n }, {\n label: \"燃气表\",\n value: \"gas\"\n }, {\n label: \"燃气表码\",\n value: \"gasNum\"\n }, {\n label: \"房产证\",\n value: \"deed\"\n }, {\n label: \"宗地图\",\n value: \"map\"\n }, {\n label: \"房屋图片\",\n value: \"picture\"\n }, {\n label: \"总(分)部/各单位本部\",\n value: \"headUnit\"\n }, {\n label: \"地市公司/分支机构\",\n value: \"cityUnit\"\n }, {\n label: \"县级电力公司/其他县级单位\",\n value: \"countyUnit\"\n }, {\n label: \"审核状态\",\n value: \"examineStatus\"\n }, {\n label: \"房屋坐落\",\n value: \"houseLocation\"\n }, {\n label: \"产权单位\",\n value: \"propertyUnit\"\n }, {\n label: \"使用管理单位\",\n value: \"useManagementUnit\"\n }, {\n label: \"产权证号\",\n value: \"certificateNumber\"\n }, {\n label: \"购(建)时间\",\n value: \"purchaseTime\"\n }, {\n label: \"建筑面积(㎡)\",\n value: \"buildingArea\"\n }, {\n label: \"使用情况\",\n value: \"usage\"\n }, {\n label: \"使用人\",\n value: \"useName\"\n }, {\n label: \"解决意向\",\n value: \"resolveIntention\"\n }, {\n label: \"备注\",\n value: \"remark\"\n }, {\n label: \"土地编号\",\n value: \"landNumber\"\n }, {\n label: \"宗地名称\",\n value: \"landName\"\n }, {\n label: \"宗地地址\",\n value: \"landAddr\"\n }, {\n label: \"土地取得时间\",\n value: \"landTime\"\n }, {\n label: \"土地所有权人\",\n value: \"landOwner\"\n }, {\n label: \"土地使用权类型\",\n value: \"landType\"\n }, {\n label: \"终止日期\",\n value: \"endDate\"\n }, {\n label: \"取得价格(万元)\",\n value: \"acquisitionPrice\"\n }, {\n label: \"规划用途\",\n value: \"plannedUse\"\n }, {\n label: \"实际用途\",\n value: \"actualUse\"\n }, {\n label: \"已使用面积(平方米)\",\n value: \"usedArea\"\n }, {\n label: \"闲置面积(平方米)\",\n value: \"idleArea\"\n }, {\n label: \"使用权面积(平方米)\",\n value: \"usageArea\"\n }, {\n label: \"土地(不动产)证号\",\n value: \"realEstateNumber\"\n }, {\n label: \"权证取得时间\",\n value: \"certificateAcquisitionTime\"\n }, {\n label: \"无证原因\",\n value: \"unlicensedReason\"\n }, {\n label: \"是否为生产辅助房产用地\",\n value: \"realEstateLand\"\n }, {\n label: \"附着建筑物信息\",\n value: \"attachBuildingInfo\"\n }, {\n label: \"权证信息\",\n value: \"warrantInfo\"\n }]\n };\n },\n created: function created() {\n window.addEventListener('keydown', this.handleKeyDown, true);\n },\n mounted: function mounted() {\n this.createLoad();\n this.houseDicInfo('houseType');\n this.houseDicInfo('houseStatus');\n this.houseDicInfo('houseDevice');\n this.houseDicInfo('houseModel');\n if (this.$route.params.index) {\n this.currentChanges(this.$route.params.index);\n } else {\n this.getlist();\n }\n },\n methods: {\n handleKeyDown: function handleKeyDown(e) {\n var key = null;\n if (window.event === undefined) {\n key = e.keyCode;\n } else {\n key = window.event.keyCode;\n }\n if (key === 13) {\n this.onSubmit();\n }\n },\n formatType: function formatType(row, column) {\n var type = row.HOUSE_TYPE;\n var _iterator = _createForOfIteratorHelper(this.houseType),\n _step;\n try {\n for (_iterator.s(); !(_step = _iterator.n()).done;) {\n var obj = _step.value;\n if (type == obj.VALUE) {\n return obj.NAME;\n }\n }\n } catch (err) {\n _iterator.e(err);\n } finally {\n _iterator.f();\n }\n },\n formatStatus: function formatStatus(row, column) {\n var status = row.STATUS;\n var _iterator2 = _createForOfIteratorHelper(this.status),\n _step2;\n try {\n for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {\n var obj = _step2.value;\n if (status == obj.VALUE) {\n return obj.NAME;\n }\n }\n } catch (err) {\n _iterator2.e(err);\n } finally {\n _iterator2.f();\n }\n },\n houseDicInfo: function houseDicInfo(e) {\n var _this = this;\n var Content = {\n dataType: e\n };\n _houseDicInfo(Content).then(function (res) {\n if (res.returnCode == \"1\") {\n if (e == 'houseType') {\n _this.houseType = res.returnData.data;\n } else if (e == 'houseStatus') {\n _this.status = res.returnData.data;\n } else if (e == 'houseDevice') {\n _this.device = res.returnData.data;\n console.log(_this.device, 'device');\n } else if (e == 'houseModel') {\n _this.model = res.returnData.data;\n }\n // console.log(this.houseType)\n //this.parentdata = res.returnData.data;\n }\n }).catch(function (err) {\n console.log(err);\n setTimeout(function () {\n _this.clearLoad();\n }, 300);\n });\n },\n mouseoverSpan: function mouseoverSpan(e) {\n if (e.target.scrollWidth > e.target.offsetWidth) {\n e.target.setAttribute(\"class\", \"cell-box span-overflow\");\n }\n },\n createLoad: function createLoad() {\n this.loading = true;\n this.loadingMsg = \"加载中...\";\n },\n clearLoad: function clearLoad() {\n this.loading = false;\n this.loadingMsg = \"\";\n },\n // 分页\n currentChanges: function currentChanges(val) {\n this.createLoad();\n this.page.limit = val;\n this.getlist();\n },\n getlist: function getlist() {\n var _this2 = this;\n if (this.dateRange && this.dateRange.length > 0) {\n this.formInline.startDate = this.dateRange[0];\n this.formInline.endDate = this.dateRange[1];\n } else {\n this.formInline.startDate = \"\";\n this.formInline.endDate = \"\";\n }\n var Content = {\n currentPage: this.page.limit == 0 ? 1 : this.page.limit,\n queryObj: this.formInline\n };\n houseList(Content).then(function (res) {\n if (res.returnCode == \"1\") {\n _this2.clearLoad();\n _this2.tableData = res.returnData.data;\n console.log(_this2.tableData);\n _this2.page.total = res.returnData.total;\n _this2.page.limit = res.returnData.currentPage;\n _this2.tableData.id = res.returnData.data.id;\n } else {\n _this2.$message({\n message: res.returnMsg,\n type: \"warning\"\n });\n setTimeout(function () {\n _this2.clearLoad();\n }, 300);\n }\n }).catch(function (err) {\n console.log(err);\n setTimeout(function () {\n _this2.clearLoad();\n }, 300);\n });\n },\n handleAvatarSuccess: function handleAvatarSuccess(aa, bb) {\n // console.log(aa, bb, 888);\n },\n onError: function onError() {},\n onSuccess: function onSuccess() {},\n onSubmit: function onSubmit() {\n this.page.limit = 1;\n this.createLoad();\n this.getlist();\n },\n handleUpdate: function handleUpdate(row, index) {\n row.til = \"编辑\";\n // console.log(row, row);\n var id = 1;\n this.$router.push({\n path: \"/addHouse\",\n query: {\n til: \"编辑\",\n rowdata: row,\n index: this.page.limit,\n id: id,\n houseType: JSON.stringify(this.houseType),\n status: JSON.stringify(this.status),\n device: JSON.stringify(this.device),\n model: JSON.stringify(this.model)\n }\n });\n // window.localStorage.setItem(\"seekmedicalInfoRowdata\", JSON.stringify(row));\n // window.localStorage.setItem(\"seekmedicalInfoIndex\", this.page.limit);\n },\n //删除\n closeDialogDel: function closeDialogDel(val) {\n var _this3 = this;\n if (val == \"1\") {\n this.createLoad();\n var Content = {\n uuid: this.row.UUID\n };\n delHouse(Content).then(function (res) {\n if (res.returnCode == \"1\") {\n _this3.$message({\n message: res.returnMsg,\n type: \"success\"\n });\n _this3.page.limit = 1;\n _this3.getlist();\n } else {\n _this3.$message({\n message: res.returnMsg,\n type: \"warning\"\n });\n setTimeout(function () {\n _this3.clearLoad();\n }, 300);\n }\n }).catch(function (err) {\n console.log(\"error\");\n setTimeout(function () {\n _this3.clearLoad();\n }, 300);\n });\n }\n this.validation = false;\n setTimeout(function () {\n _this3.clearLoad();\n }, 300);\n },\n //删除\n handleModifyStatus: function handleModifyStatus(row) {\n this.row = row;\n this.validation = true;\n },\n //维修记录\n handleMaintenance: function handleMaintenance(row) {\n console.log(this.device);\n this.$router.push({\n path: \"/maintenanceRecord\",\n query: {\n rowdata: row,\n index: this.page.limit,\n device: JSON.stringify(this.device)\n }\n });\n },\n handleRecord: function handleRecord(row) {\n this.$router.push({\n path: \"/rentRecord\",\n query: {\n rowdata: row,\n index: this.page.limit,\n device: JSON.stringify(this.device)\n }\n });\n },\n handleClick: function handleClick(row) {\n // console.log(row);\n },\n addHouse: function addHouse() {\n var id = 1;\n this.$router.push({\n path: \"/addHouse\",\n query: {\n til: \"添加\",\n id: id,\n houseType: JSON.stringify(this.houseType),\n status: JSON.stringify(this.status),\n device: JSON.stringify(this.device),\n model: JSON.stringify(this.model)\n }\n });\n window.localStorage.setItem(\"pageIndex\", this.page.limit);\n },\n formatJson: function formatJson(filterVal, jsonData) {\n return jsonData.map(function (v) {\n return filterVal.map(function (j) {\n if (j === \"timestamp\") {\n return parseTime(v[j]);\n } else {\n return v[j];\n }\n });\n });\n },\n /*关闭弹窗 */handleClose: function handleClose() {\n this.outDialogVisible = false;\n },\n //导出弹窗\n outDialog: function outDialog() {\n this.outDialogVisible = true;\n this.checkedOptions = [];\n this.checkAll = false;\n this.isIndeterminate = false;\n },\n handleCheckAllChange: function handleCheckAllChange(val) {\n console.log(val);\n if (val) {\n this.checkedOptions = this.outOptions.map(function (item) {\n return item.value;\n });\n } else {\n this.checkedOptions = [];\n }\n this.isIndeterminate = false;\n },\n handleCheckedCitiesChange: function handleCheckedCitiesChange(value) {\n console.log(value);\n var checkedCount = value.length;\n this.checkAll = checkedCount === this.outOptions.length;\n this.isIndeterminate = checkedCount > 0 && checkedCount < this.outOptions.length;\n },\n confirmOut: function confirmOut() {\n var _this4 = this;\n console.log(this.checkedOptions);\n var paramList = [];\n this.checkedOptions.forEach(function (prop) {\n console.log(prop);\n var index = _this4.outOptions.findIndex(function (item) {\n return item.value == prop;\n });\n console.log(_this4.outOptions[index].label);\n var str = encodeURI(encodeURI(_this4.outOptions[index].label)) + \"@\" + prop;\n paramList.push(str);\n });\n console.log(paramList);\n Own().then(function (res) {\n if (res.returnCode === \"1\") {\n var str = \"houseName=\" + encodeURI(encodeURI(_this4.formInline.houseName)) + \"&houseType=\" + _this4.formInline.houseType + \"&status=\" + _this4.formInline.status + \"&assetsId=\" + _this4.formInline.assetsId + \"&dynamics=\" + paramList.join(\",\") + \"&exportType=2\"; //1.不包含图片 2.包含图片\n var url = process.env.VUE_APP_BASE_API + \"/greenH5/greenWebmodul/rest/house/exportHouseByDynamicsExcel?\" + str;\n console.log(\"自定义导出\", url);\n window.location.href = url;\n }\n });\n this.outDialogVisible = false;\n },\n // 导出\n onOut: function onOut() {\n var _this5 = this;\n Own().then(function (res) {\n if (res.returnCode === \"1\") {\n var str = \"houseName=\" + _this5.formInline.houseName + \"&houseType=\" + _this5.formInline.houseType + \"&status=\" + _this5.formInline.status + \"&assetsId=\" + _this5.formInline.assetsId + \"&exportType=2\"; //1.不包含图片 2.包含图片\n var url = process.env.VUE_APP_BASE_API + \"/greenH5/greenWebmodul/rest/house/exportHouseByExcel?\" + str;\n // console.log(11111,url)\n window.location.href = url;\n }\n });\n },\n // 导出\n onOut2: function onOut2() {\n var _this6 = this;\n Own().then(function (res) {\n if (res.returnCode === \"1\") {\n var str = \"houseName=\" + _this6.formInline.houseName + \"&houseType=\" + _this6.formInline.houseType + \"&status=\" + _this6.formInline.status + \"&assetsId=\" + _this6.formInline.assetsId + \"&exportType=1\"; //1.不包含图片 2.包含图片\n var url = process.env.VUE_APP_BASE_API + \"/greenH5/greenWebmodul/rest/house/exportHouseByExcel?\" + str;\n // console.log(11111,url)\n window.location.href = url;\n }\n });\n },\n // 模板下载\n onOut3: function onOut3() {\n var url = process.env.VUE_APP_BASE_API + \"/greenH5/greenWebmodul/rest/house/exportHouseModel\";\n window.location.href = url;\n },\n // 附属设备模板下载\n outTemp: function outTemp() {\n var url = process.env.VUE_APP_BASE_API + \"/greenH5/greenWebmodul/rest/house/exportHouseDeviceModel\";\n window.location.href = url;\n },\n //导入\n handlePreview: function handlePreview() {\n this.formDate = new FormData();\n this.$refs.upload.clearFiles();\n },\n onchange: function onchange(file) {\n var _this7 = this;\n this.fileList = [];\n this.formDate = new FormData();\n this.formDate.append(\"file\", file.raw);\n this.fileList.push(file);\n var flag = false;\n if (this.fileList.length > 0) {\n flag = false;\n var Lastindex = this.fileList[0].name.lastIndexOf(\".\");\n if (this.fileList[0].name.slice(Lastindex) != \".xls\" && this.fileList[0].name.slice(Lastindex) != \".xlsx\") {\n flag = false;\n this.$message({\n message: \"请选择正确的Excel格式\",\n type: \"warning\"\n });\n return false;\n } else {\n flag = true;\n }\n } else {\n flag = true;\n }\n this.bs64(file.raw).then(function (bs64) {\n _this7.formDate = {\n file: bs64\n };\n if (flag) {\n // console.log(this.formDate,259)\n houseImportFile(_this7.formDate).then(function (res) {\n if (res.returnCode == \"1\") {\n _this7.$message({\n message: res.returnMsg,\n type: \"success\"\n });\n console.log(res.returnData);\n // res.returnData.forEach((item,index)=>{\n // this.questionList[index].topIc = item.topIc\n // })\n _this7.getlist();\n } else {\n _this7.$message({\n message: res.returnMsg,\n type: \"warning\"\n });\n }\n }).catch(function (err) {\n console.log(\"error\");\n });\n }\n });\n },\n //导入\n handlePreview2: function handlePreview2() {\n this.formDate = new FormData();\n this.$refs.upload2.clearFiles();\n },\n onchange2: function onchange2(file) {\n var _this8 = this;\n this.fileList2 = [];\n this.formDate = new FormData();\n this.formDate.append(\"file\", file.raw);\n this.fileList2.push(file);\n var flag = false;\n if (this.fileList2.length > 0) {\n flag = false;\n var Lastindex = this.fileList2[0].name.lastIndexOf(\".\");\n if (this.fileList2[0].name.slice(Lastindex) != \".xls\" && this.fileList2[0].name.slice(Lastindex) != \".xlsx\") {\n flag = false;\n this.$message({\n message: \"请选择正确的Excel格式\",\n type: \"warning\"\n });\n return false;\n } else {\n flag = true;\n }\n } else {\n flag = true;\n }\n this.bs64(file.raw).then(function (bs64) {\n _this8.formDate = {\n file: bs64\n };\n if (flag) {\n // console.log(this.formDate,259)\n houseDeviceImport(_this8.formDate).then(function (res) {\n if (res.returnCode == \"1\") {\n _this8.$message({\n message: res.returnMsg,\n type: \"success\"\n });\n console.log(res.returnData);\n // res.returnData.forEach((item,index)=>{\n // this.questionList[index].topIc = item.topIc\n // })\n _this8.getlist();\n } else {\n _this8.$message({\n message: res.returnMsg,\n type: \"warning\"\n });\n }\n }).catch(function (err) {\n console.log(\"error\");\n });\n }\n });\n },\n bs64: function bs64(_bs) {\n var reader = new FileReader();\n reader.readAsDataURL(_bs);\n return new Promise(function (resolve) {\n reader.onload = function (e) {\n resolve(e.target.result);\n };\n });\n }\n }\n};",null]}