{"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\\checkout\\index.vue?vue&type=script&lang=js","dependencies":[{"path":"E:\\hz-zhhq-web\\src\\views\\house\\checkout\\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\\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;\nrequire(\"core-js/modules/es6.function.name\");\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//\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 userName: \"\",\n houseType: \"\",\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 page: {\n limit: 0 /** 当前点击*/,\n sizePage: 10 /** 当前多少页*/,\n total: 0 /**总数 */\n },\n handleModifyStatusValue: '',\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('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 = (0, _createForOfIteratorHelper2.default)(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.EXAMINE_STATE;\n var _iterator2 = (0, _createForOfIteratorHelper2.default)(this.examineStatus),\n _step2;\n try {\n for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {\n var obj = _step2.value;\n if (status == obj.id) {\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 (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 }\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.houseCheckOutPage)(Content).then(function (res) {\n if (res.returnCode == \"1\") {\n _this2.clearLoad();\n _this2.tableData = res.returnData.data;\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 closeDialogDel: function closeDialogDel(val) {\n var _this3 = this;\n // console.log(val)\n this.validation = false;\n if (val) {\n // console.log(val)\n this.createLoad();\n var Content = {\n status: this.handleModifyStatusValue + '',\n applyId: this.row.ID\n };\n (0, _getdata.houseCheckOutExamine)(Content).then(function (res) {\n if (res.returnCode == \"1\") {\n _this3.$message({\n message: res.returnMsg,\n type: \"success\"\n });\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 setTimeout(function () {\n _this3.clearLoad();\n }, 300);\n },\n handleModifyStatus: function handleModifyStatus(row, status) {\n this.handleModifyStatusValue = status;\n this.row = row;\n this.validation = true;\n if (status == 6) {\n this.completeTitle = \"拒绝退租\";\n this.nav = \"请确认是否拒绝?\";\n } else {\n this.completeTitle = \"通过退租\";\n this.nav = \"请确认是否通过?\";\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]}