1 line
13 KiB
JSON
1 line
13 KiB
JSON
{"remainingRequest":"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\\apply\\index.vue?vue&type=script&lang=js","dependencies":[{"path":"E:\\hz-zhhq-web\\src\\views\\house\\apply\\index.vue","mtime":1740461521828},{"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\\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":["\"use strict\";\n\nvar _interopRequireDefault = require(\"E:/hz-zhhq-web/node_modules/@babel/runtime/helpers/interopRequireDefault.js\");\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = void 0;\nvar _createForOfIteratorHelper2 = _interopRequireDefault(require(\"E:/hz-zhhq-web/node_modules/@babel/runtime/helpers/createForOfIteratorHelper.js\"));\nvar _paging = _interopRequireDefault(require(\"@/views/Public/paging.vue\"));\nvar _getdata = require(\"@/api/getdata\");\nvar _popup = _interopRequireDefault(require(\"@/views/estate/examine/dialog/popup.vue\"));\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//\nvar _default = exports.default = {\n components: {\n Paging: _paging.default,\n Popup: _popup.default\n },\n data: function data() {\n return {\n loading: false,\n loadingMsg: \"\",\n row: {},\n fileList: [],\n validation: false,\n completeTitle: \"删除\",\n nav: \"是否删除?\",\n formInline: {\n // houseName:\"\",//小区名称\n // year:\"\",//出租年份\n userName: \"\",\n houseType: \"\",\n userType: \"\",\n examineState: \"\"\n },\n examineStatus: [{\n id: 0,\n name: '待审核'\n }, {\n id: 1,\n name: '待选房'\n }, {\n id: 2,\n name: '已拒绝'\n }, {\n id: 3,\n name: '已选房'\n }, {\n id: 4,\n name: '退租待审核'\n }, {\n id: 5,\n name: '已结束'\n }, {\n id: 6,\n name: '退租已拒绝'\n }],\n parentdata: [],\n houseType: [],\n status: [],\n device: [],\n model: [],\n userType: [],\n page: {\n limit: 0 /** 当前点击*/,\n sizePage: 10 /** 当前多少页*/,\n total: 0 /**总数 */\n },\n tableData: []\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('userType');\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 formatUser: function formatUser(row, column) {\n var type = row.USER_TYPE;\n var _iterator = (0, _createForOfIteratorHelper2.default)(this.userType),\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 formatType: function formatType(row, column) {\n var type = row.HOUSE_TYPE;\n var _iterator2 = (0, _createForOfIteratorHelper2.default)(this.houseType),\n _step2;\n try {\n for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {\n var obj = _step2.value;\n if (type == obj.VALUE) {\n return obj.NAME;\n }\n }\n } catch (err) {\n _iterator2.e(err);\n } finally {\n _iterator2.f();\n }\n },\n formatStatus: function formatStatus(row, column) {\n var status = row.EXAMINE_STATE;\n var batch = row.EXAMINE_BATCH;\n if (status == 0 && batch == 1) {\n return '待审核';\n }\n if (status == 0 && batch > 1) {\n return '审核中';\n }\n if (status == 1) {\n return '审核中';\n }\n if (status == 2) {\n return '已拒绝';\n }\n if (status == 4) {\n return '退租待审核';\n }\n if (status == 5) {\n return '已结束';\n }\n // if(status==6){return '退租未通过'}\n if (status == 7) {\n return '已入住';\n }\n // for(let obj of this.examineStatus){\n // if(status == obj.id){\n // return obj.name;\n // }\n // }\n },\n houseDicInfo: function houseDicInfo(e) {\n var _this = this;\n var Content = {\n dataType: e\n };\n (0, _getdata.houseDicInfo)(Content).then(function (res) {\n if (res.returnCode == \"1\") {\n // console.log(res.returnData.data);\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 } else if (e == 'houseModel') {\n _this.model = res.returnData.data;\n } else if (e == 'userType') {\n _this.userType = res.returnData.data;\n console.log(_this.userType);\n }\n\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 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 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 var Content = {\n currentPage: this.page.limit == 0 ? 1 : this.page.limit,\n queryObj: this.formInline\n };\n (0, _getdata.houseApplyPage)(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: \"/houseApplyDetail\",\n query: {\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 userType: JSON.stringify(this.userType)\n }\n });\n },\n closeDialogDel: function closeDialogDel(val) {\n var _this3 = this;\n if (val == \"1\") {\n this.createLoad();\n var Content = {\n id: this.row.id\n };\n deleteSeekMedicalInfo(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 handleModifyStatus: function handleModifyStatus(row) {\n this.row = row;\n this.validation = true;\n },\n onOut: function onOut() {\n var _this4 = this;\n (0, _getdata.Own)().then(function (res) {\n if (res.returnCode === \"1\") {\n var str = \"userName=\" + _this4.formInline.userName + \"&houseType=\" + _this4.formInline.houseType + \"&userType=\" + _this4.formInline.userType +\n // \"&houseName=\" +\n // this.formInline.houseName +\n // \"&year=\" +\n // this.formInline.year +\n \"&examineState=\" + _this4.formInline.examineState;\n var url = process.env.VUE_APP_BASE_API + \"/greenH5/greenWebmodul/rest/house/exportByExcel?\" + str;\n window.location.href = url;\n }\n });\n },\n onOutContract: function onOutContract() {\n var _this5 = this;\n (0, _getdata.Own)().then(function (res) {\n if (res.returnCode === \"1\") {\n var str = \"userName=\" + _this5.formInline.userName + \"&houseType=\" + _this5.formInline.houseType + \"&userType=\" + _this5.formInline.userType + \"&houseName=\" + _this5.formInline.houseName + \"&year=\" + _this5.formInline.year + \"&examineState=\" + _this5.formInline.examineState;\n var url = process.env.VUE_APP_BASE_API + \"/greenH5/greenWebmodul/rest/house/exportByExcel?\" + str;\n window.location.href = url;\n }\n });\n },\n onOutFile: function onOutFile(row) {\n (0, _getdata.Own)().then(function (res) {\n if (res.returnCode === \"1\") {\n var str = \"id=\" + row.ID;\n var url = process.env.VUE_APP_BASE_API + \"/greenH5/greenWebmodul/rest/house/downloadContract?\" + str;\n window.location.href = url;\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 }\n};",null]} |