{"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\\fault\\record\\index.vue?vue&type=script&lang=js","dependencies":[{"path":"E:\\hz-zhhq-web\\src\\views\\fault\\record\\index.vue","mtime":1737610069419},{"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.regexp.replace\";\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\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 { getWbList, Own, uploadFileList, FaultCheck } 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 iscontinue: true,\n iscontinue2: false,\n loading: false,\n //初始化loading\n loadingMsg: \"\",\n row: {},\n validation: false,\n completeTitle: \"\",\n btns: 3,\n nav: \"\",\n options: [] /**拜访部门 */,\n formInline: {\n time: \"\",\n repairPlace: \"\",\n replyFlag: \"\",\n repairOptionName: \"\",\n repairOptionSubName: \"\",\n elevatorNo: \"\",\n repairPersonName: \"\",\n wbTypes: \"\"\n },\n page: {\n limit: 0 /** 当前点击*/,\n sizePage: 10 /** 当前多少页*/,\n total: 0 /**总数 */\n },\n tableData: [],\n uploadFileList: [],\n uploadFileDialog: false,\n checkDialog: false,\n ruleForm: {\n replyContent: \"\",\n picture: []\n },\n rules: {\n replyContent: [{\n required: true,\n message: \"请输入拒绝理由\",\n trigger: \"blur\"\n }]\n },\n refuseId: ''\n };\n },\n // created() {\n // this.getbmlist();\n // },\n mounted: function mounted() {\n this.createLoad();\n /**注 */\n // this.tableData = this.tableData2;\n this.getDate();\n },\n methods: {\n check: function check(id, replyFlag) {\n var _this = this;\n if (replyFlag == 2) {\n this.$confirm(\"请确认是否审核通过\", \"提示\", {\n confirmButtonText: \"确定\",\n cancelButtonText: \"取消\",\n type: \"warning\"\n }).then(function () {\n var Content = {\n id: id,\n replyFlag: replyFlag\n };\n FaultCheck(Content).then(function (res) {\n if (res.returnCode == \"1\") {\n _this.$message({\n message: res.returnMsg,\n type: \"success\"\n });\n _this.getDate();\n } else {\n _this.$message({\n message: res.returnMsg,\n type: \"warning\"\n });\n setTimeout(function () {\n _this.clearLoad();\n }, 300);\n }\n }).catch(function (err) {\n setTimeout(function () {\n _this.clearLoad();\n }, 300);\n });\n }).catch(function () {\n _this.$message({\n type: \"info\",\n message: \"已取消\"\n });\n });\n } else {\n var Content = {\n id: this.refuseId,\n replyFlag: replyFlag,\n replyContent: this.ruleForm.replyContent,\n replyPic1: this.ruleForm.picture.length > 0 ? this.ruleForm.picture[0].file : \"\",\n replyPic2: this.ruleForm.picture.length > 1 ? this.ruleForm.picture[1].file : \"\"\n };\n FaultCheck(Content).then(function (res) {\n if (res.returnCode == \"1\") {\n _this.$message({\n message: res.returnMsg,\n type: \"success\"\n });\n _this.getDate();\n _this.resetForm(\"ruleForm\");\n } else {\n _this.$message({\n message: res.returnMsg,\n type: \"warning\"\n });\n setTimeout(function () {\n _this.clearLoad();\n }, 300);\n }\n }).catch(function (err) {\n setTimeout(function () {\n _this.clearLoad();\n }, 300);\n });\n }\n },\n refuse: function refuse(id) {\n this.refuseId = id;\n this.checkDialog = true;\n },\n resetForm: function resetForm(formName) {\n this.$refs[formName].resetFields();\n this.ruleForm.picture = [];\n this.$refs['checkUpload'].clearFiles();\n this.checkDialog = false;\n },\n removeFile: function removeFile(options, fileList) {\n var arr = [];\n for (var i = 0; i < this.ruleForm.picture.length; i++) {\n if (options.uid != this.ruleForm.picture[i].id) {\n arr.push(this.ruleForm.picture[i]);\n }\n }\n this.ruleForm.picture = arr;\n },\n changeFile: function changeFile(options, fileList) {\n var that = this;\n var file = options.raw;\n if (file.type == \"image/jpeg\" || file.type == \"image/png\" || file.type == \"image/JPG\") {\n var isJPG = true;\n } else {\n isJPG = false;\n }\n // 判断图片大小\n var isLt2M = file.size / 1024 / 1024 < 2;\n if (!isJPG) {\n this.$message.error(\"上传产品图片只能是 JPG/PNG/JPEG 格式!\");\n }\n var reader = new FileReader();\n if (file) {\n reader.readAsDataURL(file);\n }\n if (isJPG && isLt2M) {\n reader.onload = function (e) {\n var obj = {\n id: options.uid,\n file: e.target.result\n };\n that.ruleForm.picture.push(obj);\n console.log(that.ruleForm);\n // that.$set(that.ruleForm, \"picture\", e.target.result);\n };\n }\n },\n openFileList: function openFileList(ids) {\n var _this2 = this;\n var Content = {\n queryObj: {\n uploadFileIds: \"'\" + ids.replace(\",\", \"','\") + \"'\"\n }\n };\n uploadFileList(Content).then(function (res) {\n if (res.returnCode == \"1\") {\n _this2.clearLoad();\n _this2.uploadFileList = res.returnData;\n _this2.uploadFileDialog = true;\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 downLoadFile: function downLoadFile(e) {\n console.log(e);\n Own().then(function (res) {\n if (res.returnCode === \"1\") {\n var str = \"filePath=\" + e.file_path + \"&fileName=\" + encodeURI(encodeURI(e.file_name + \".\" + e.file_type));\n var url = process.env.VUE_APP_BASE_API + \"/greenH5/greenWebmodul/rest/greenFaultRepairInfo/downloadFile?\" + str;\n window.location.href = url;\n }\n });\n },\n onOut: function onOut() {\n var _this3 = this;\n Own().then(function (res) {\n if (res.returnCode === \"1\") {\n var str = \"startDate=\" + (_this3.formInline.time ? _this3.formInline.time[0] : \"\") + \"&endDate=\" + (_this3.formInline.time ? _this3.formInline.time[1] : \"\") + \"&repairPlace=\" + encodeURI(encodeURI(_this3.formInline.repairPlace)) + \"&replyFlag=\" + _this3.formInline.replyFlag + \"&repairOptionName=\" + encodeURI(encodeURI(_this3.formInline.repairOptionName)) + \"&repairOptionSubName=\" + encodeURI(encodeURI(_this3.formInline.repairOptionSubName)) + \"&elevatorNo=\" + encodeURI(encodeURI(_this3.formInline.elevatorNo)) + \"&repairPersonName=\" + encodeURI(encodeURI(_this3.formInline.repairPersonName)) + \"&wbTypes=\" + encodeURI(encodeURI(_this3.formInline.wbTypes));\n var url = process.env.VUE_APP_BASE_API + \"/greenH5/greenWebmodul/rest/greenFaultRepairInfo/exportByExcel?\" + str;\n window.location.href = url;\n }\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 closeEnd: function closeEnd() {\n this.validation = false;\n },\n onSubmit: function onSubmit() {\n this.page.limit = 1;\n this.createLoad();\n this.getDate();\n },\n // 分页\n currentChanges: function currentChanges(val) {\n this.page.limit = val;\n this.createLoad();\n this.getDate();\n },\n getDate: function getDate() {\n var _this4 = this;\n // == 0?1:this.page.limit\n var Content = {\n currentPage: this.page.limit == 0 ? 1 : this.page.limit,\n queryObj: {\n startDate: this.formInline.time ? this.formInline.time[0] : \"\",\n endDate: this.formInline.time ? this.formInline.time[1] : \"\",\n repairPlace: this.formInline.repairPlace,\n replyFlag: this.formInline.replyFlag,\n repairOptionName: this.formInline.repairOptionName,\n repairOptionSubName: this.formInline.repairOptionSubName,\n elevatorNo: this.formInline.elevatorNo,\n repairPersonName: this.formInline.repairPersonName,\n wbTypes: this.formInline.wbTypes\n }\n };\n getWbList(Content).then(function (res) {\n if (res.returnCode == \"1\") {\n _this4.clearLoad();\n _this4.tableData = res.returnData.data;\n console.log(_this4.tableData);\n _this4.page.total = res.returnData.total;\n _this4.page.limit = res.returnData.currentPage;\n if (_this4.page.total == 0) {\n _this4.$message({\n message: \"当前无数据\",\n type: \"success\"\n });\n }\n // else {\n // this.$message({\n // message: res.returnMsg,\n // type: \"success\"\n // });\n // }\n } else {\n _this4.$message({\n message: res.returnMsg,\n type: \"warning\"\n });\n setTimeout(function () {\n _this4.clearLoad();\n }, 300);\n }\n }).catch(function (err) {\n console.log(err);\n setTimeout(function () {\n _this4.clearLoad();\n }, 300);\n });\n },\n handleClick: function handleClick(index, row) {\n // this.validation = true;\n this.$router.push({\n // path: `/approve/visitor/details/${id}` ,\n path: \"detailsk\",\n query: {\n id: row.id\n }\n });\n },\n closeDialog: function closeDialog() {\n this.ruleForm = {};\n this.$refs.ruleForm.resetFields();\n }\n }\n};",null]}