hz-zhhq-web/node_modules/.cache/babel-loader/e883a1327a82913b2436c718d35...

1 line
19 KiB
JSON
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

{"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\\estate\\examine\\pingf\\pingfen.vue?vue&type=script&lang=js","dependencies":[{"path":"E:\\hz-zhhq-web\\src\\views\\estate\\examine\\pingf\\pingfen.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.function.name\";\nimport \"core-js/modules/es6.regexp.replace\";\nimport \"core-js/modules/es6.number.constructor\";\nimport \"core-js/modules/web.dom.iterable\";\nimport _defineProperty from \"E:/hz-zhhq-web/node_modules/@babel/runtime/helpers/esm/defineProperty.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\nimport axios from \"axios\";\nimport Popup from \"@/views/estate/examine/dialog/popup.vue\";\nimport { constants } from \"crypto\";\nimport { LookP, AddP, EndPenF, AddDownload, Own } from \"@/api/getdata\";\n// import { truncate } from \"fs\";\n// import { setTimeout } from \"timers\";\n// dialogFeedback_rules\nexport default {\n components: {\n Popup: Popup\n },\n data: function data() {\n return {\n aa: '',\n completeTitle: \"警告\" /*完成 */,\n nav: \"\",\n input1: \"\" /**制表人 */,\n input2: \"\" /**审核人 */,\n input3: \"\" /**填写日期 */,\n id: \"\",\n indexCall: window.localStorage.getItem('pflimit'),\n // this.$route.params.row\n // typeof(this.$route.query.rowdata) == 'string'? JSON.parse(window.localStorage.getItem(\"takewayRowdata\")):this.$route.query.rowdata,\n row: JSON.parse(window.localStorage.getItem(\"pfrow\")),\n tableCols: [_defineProperty({\n type: \"normal\",\n is_show: true,\n minWidth: \"60\",\n prop: \"code\",\n label: \"序号\",\n align: \"center\"\n }, \"minWidth\", \"60\"), _defineProperty({\n type: \"normal\",\n is_show: true,\n minWidth: \"150\",\n prop: \"kk\",\n label: \"考核项目\",\n align: \"left\"\n }, \"minWidth\", \"140\"), _defineProperty({\n type: \"normal\",\n is_show: true,\n minWidth: \"80\",\n prop: \"score\",\n label: \"考核得分\",\n align: \"center\"\n }, \"minWidth\", \"60\"), _defineProperty({\n type: \"normal\",\n is_show: true,\n minWidth: \"150\",\n prop: \"reason\",\n label: \"加分、扣分原因\",\n align: \"center\"\n }, \"minWidth\", \"140\")],\n list: [{\n code: \"一\",\n name: \"无一般性安全事故发生\",\n fen: \"\",\n bg: false,\n deep: true\n }, {\n code: \"二\",\n name: \"无严重安全事故发生\",\n fen: \"\",\n bg: false,\n deep: true\n }, {\n code: \"三\",\n name: \"无重大安全事故发生\",\n fen: \"\",\n bg: false,\n deep: true\n }, {\n code: \"四\",\n name: \"综合管理14分\",\n bg: false,\n fen: 14,\n deep: true\n }, {\n code: \"4.1\",\n name: \"队伍建设 5分\",\n bg: false,\n fen: 5,\n deep: false\n }, {\n code: \"4.2\",\n bg: false,\n name: \"保障机制 5分\",\n fen: 5,\n deep: false\n }, {\n code: \"4.3\",\n bg: false,\n name: \"财务管理 2分\",\n fen: 2,\n deep: false\n }, {\n code: \"4.4\",\n name: \"标准化、信息化建设 2分\",\n bg: false,\n fen: 2,\n deep: false\n }, {\n code: \"五\",\n name: \"设备运行维护25分\",\n bg: false,\n fen: 25,\n deep: true\n }, {\n code: \"5.1\",\n name: \"综合管理 3分\",\n bg: false,\n fen: 3,\n deep: false\n }, {\n code: \"5.2\",\n name: \"供电系统 4分\",\n bg: false,\n fen: 4,\n deep: false\n }, {\n code: \"5.3\",\n name: \"电梯系统 4分\",\n bg: false,\n fen: 4,\n deep: false\n }, {\n code: \"5.4\",\n name: \"给排水系统 3分\",\n bg: false,\n fen: 3,\n deep: false\n }, {\n code: \"5.5\",\n name: \"空调冷、热、新风5分\",\n bg: false,\n fen: 5,\n deep: false\n }, {\n code: \"5.6\",\n name: \"会议影音系统 1分\",\n bg: false,\n fen: 1,\n deep: false\n }, {\n code: \"5.7\",\n name: \"房屋建筑本体和公用设施 5分\",\n bg: false,\n fen: 5,\n deep: false\n }, {\n code: \"六\",\n name: \"消防安保12分\",\n bg: false,\n fen: 12,\n deep: true\n }, {\n code: \"6.1\",\n name: \"消防系统 4分\",\n bg: false,\n fen: 4,\n deep: false\n }, {\n code: \"6.2\",\n name: \"监控安防 4分\",\n bg: false,\n fen: 4,\n deep: false\n }, {\n code: \"6.3\",\n name: \"秩序维护 4分\",\n bg: false,\n fen: 4,\n deep: false\n }, {\n code: \"七\",\n name: \"交通服务15分\",\n bg: false,\n fen: 15,\n deep: true\n }, {\n code: \"7.1\",\n name: \"交通管理 6分\",\n bg: false,\n fen: 6,\n deep: false\n }, {\n code: \"7.2\",\n name: \"运行使用管理 7分\",\n bg: false,\n fen: 7,\n deep: false\n }, {\n code: \"7.3\",\n name: \"维护保养管理 2分\",\n bg: false,\n fen: 2,\n deep: false\n }, {\n code: \"八\",\n name: \"后勤专项服务14分\",\n bg: false,\n fen: 14,\n deep: true\n }, {\n code: \"8.1\",\n name: \"会议服务管理 3分\",\n bg: false,\n fen: 3,\n deep: false\n }, {\n code: \"8.2\",\n name: \"重要办公室服务 4分\",\n bg: false,\n fen: 4,\n deep: false\n }, {\n code: \"8.3\",\n name: \"保洁服务 4分\",\n bg: false,\n fen: 4,\n deep: false\n }, {\n code: \"8.4\",\n name: \"绿化服务 3分\",\n bg: false,\n fen: 3,\n deep: false\n }, {\n code: \"九\",\n name: \"餐饮医疗服务 20分\",\n bg: false,\n fen: 20,\n deep: true\n }, {\n code: \"9.1\",\n name: \"餐饮服务 15分\",\n bg: false,\n fen: 15,\n deep: false\n }, {\n code: \"9.2\",\n name: \"医疗服务 5分\",\n bg: false,\n fen: 5,\n deep: false\n }],\n tableData: [],\n tableData1: [{\n name: \"\",\n reason: \"\",\n score: \"0\"\n }, {\n name: \"\",\n reason: \"\",\n score: \"0\"\n }, {\n name: \"\",\n reason: \"\",\n score: \"0\"\n }, {\n name: \"\",\n reason: \"\",\n score: \"\"\n }, {\n name: \"\",\n reason: \"\",\n score: \"0\"\n }, {\n name: \"\",\n reason: \"\",\n score: \"0\"\n }, {\n name: \"\",\n reason: \"\",\n score: \"0\"\n }, {\n name: \"\",\n reason: \"\",\n score: \"0\"\n }, {\n name: \"\",\n reason: \"\",\n score: \"\"\n }, {\n name: \"\",\n reason: \"\",\n score: \"0\"\n }, {\n name: \"\",\n reason: \"\",\n score: \"0\"\n }, {\n name: \"\",\n reason: \"\",\n score: \"0\"\n }, {\n name: \"\",\n reason: \"\",\n score: \"0\"\n }, {\n name: \"\",\n reason: \"\",\n score: \"0\"\n }, {\n name: \"\",\n reason: \"\",\n score: \"0\"\n }, {\n name: \"\",\n reason: \"\",\n score: \"0\"\n }, {\n name: \"\",\n reason: \"\",\n score: \"\"\n }, {\n name: \"\",\n reason: \"\",\n score: \"0\"\n }, {\n name: \"\",\n reason: \"\",\n score: \"0\"\n }, {\n name: \"\",\n reason: \"\",\n score: \"0\"\n }, {\n name: \"\",\n reason: \"\",\n score: \"\"\n }, {\n name: \"\",\n reason: \"\",\n score: \"0\"\n }, {\n name: \"\",\n reason: \"\",\n score: \"0\"\n }, {\n name: \"\",\n reason: \"\",\n score: \"0\"\n }, {\n name: \"\",\n reason: \"\",\n score: \"\"\n }, {\n name: \"\",\n reason: \"\",\n score: \"0\"\n }, {\n name: \"\",\n reason: \"\",\n score: \"0\"\n }, {\n name: \"\",\n reason: \"\",\n score: \"0\"\n }, {\n name: \"\",\n reason: \"\",\n score: \"0\"\n }, {\n name: \"\",\n reason: \"\",\n score: \"\"\n }, {\n name: \"\",\n reason: \"\",\n score: \"0\"\n }, {\n name: \"\",\n reason: \"\",\n score: \"0\"\n }],\n input: \"\",\n validation: false /**用于验证 */,\n sums: 0,\n classie: false,\n setli: this.$route.params.setli ? this.$route.params.setli : window.localStorage.getItem('pfsetli'),\n names: this.$route.params.names ? this.$route.params.names : window.localStorage.getItem('pfnames')\n };\n },\n created: function created() {},\n watch: {},\n mounted: function mounted() {\n /**index!==0 有数据的,请示接口 */\n // console.log(this.$route.params.setli,'123')\n if (this.setli !== \"0\") {\n this.getlist();\n } else {\n this.tableData = this.tableData1;\n }\n },\n methods: {\n comeBack: function comeBack() {\n this.$router.push({\n // path:\"/estate/examine/\",\n name: \"Examine\",\n params: {\n index: this.indexCall\n }\n });\n },\n getlist: function getlist() {\n var _this = this;\n var Content = {\n deptName: this.names,\n mid: this.row.id,\n month: this.row.month\n };\n // console.log(2222)\n // axios.post('http://192.168.222.232:8989/greenH5/greenWebmodul/rest/greenAccessManager/getScoreDetail',Content).then((res)=>{\n // console.log(res,111)\n // })\n LookP(Content).then(function (res) {\n // console.log(res);\n if (res.returnCode == \"1\") {\n // console.log(res.returnData, 888);\n\n _this.tableData = res.returnData.scoreLists;\n /**制表人 */\n _this.input1 = res.returnData.lister;\n /**审核人 */\n _this.input2 = res.returnData.reviewer;\n /**填写日期 */\n _this.input3 = res.returnData.fillDate;\n // this.page.total = res.returnData.total;\n\n _this.$message({\n message: res.returnMsg,\n type: \"success\"\n });\n } else {\n _this.$message({\n message: res.returnMsg,\n type: \"warning\"\n });\n }\n }).catch(function (err) {\n console.log(err);\n });\n },\n getSummaries: function getSummaries(param) {\n var _this2 = this;\n var columns = param.columns,\n data = param.data;\n var sums = [];\n // console.log(11111122222)\n columns.forEach(function (column, index) {\n if (index === 0) {\n sums[index] = \"总分\";\n return;\n }\n if (index === 2) {\n var values = data.map(function (item) {\n return Number(item[column.property]);\n });\n if (!values.every(function (value) {\n return isNaN(value);\n })) {\n // sums[index]\n sums[index] = values.reduce(function (prev, curr) {\n var value = Number(curr);\n if (!isNaN(value)) {\n return prev + curr;\n } else {\n _this2.sums = prev;\n return prev;\n }\n }, 0);\n // sums[index];\n }\n }\n\n // else {\n // // sums[index] = \"N/A\";\n // }\n });\n // this.sums = prev;\n return sums;\n },\n rowStyle: function rowStyle(_ref5) {\n var row = _ref5.row,\n rowIndex = _ref5.rowIndex;\n // console.log(this.list[rowIndex].deep);\n if (this.list[rowIndex].deep == true) {\n return \"border-top:2px solid #ccc;border-collapse: separate;border-spacing: 0px 20px; \";\n } else {\n return \"\";\n }\n },\n inputChange: function inputChange(rownum, num, index) {\n if (num != \"\" || rownum < 0) {\n var reg = /^\\d+$/;\n if (reg.test(rownum)) {\n if (rownum > num) {\n this.list[index].bg = true;\n } else {\n this.list[index].bg = false;\n }\n } else {\n this.list[index].bg = true;\n }\n } else {\n // console.log(\"kkkk\");\n this.list[index].bg = false;\n }\n },\n /*下载 */Download: function Download() {\n var _this3 = this;\n // let Content = {\n // deptName: this.$route.params.names,\n // mid: this.$route.params.row.id,\n // month: this.$route.params.row.month\n // }\n // http://192.168.138.32:8989\n // let url = \"/greenH5/greenWebmodul/rest/greenAccessManager/downloadScore?\"+\"deptName\"+\"=\"+this.$route.params.names+\"&mid\"+\"=\"+this.$route.params.row.id+\"&month=\"+this.$route.params.row.month\n Own().then(function (res) {\n if (res.returnCode === \"1\") {\n var url = \"/greenH5/greenWebmodul/rest/greenAccessManager/downloadScore?\" + \"deptName\" + \"=\" + encodeURI(encodeURI(_this3.$route.params.names)) + \"&mid\" + \"=\" + _this3.$route.params.row.id + \"&month=\" + _this3.$route.params.row.month;\n window.location.href = url;\n }\n });\n },\n /**取消 */cancel: function cancel() {\n this.tableData = this.tableData1;\n this.$router.push({\n // path:\"/estate/examine/\",\n name: \"Examine\",\n params: {\n index: this.indexCall\n }\n });\n },\n JTrim: function JTrim(s) {\n return s.replace(/(^\\s*)|(\\s*$)/g, \"\");\n },\n /*完成 */Complete: function Complete() {\n var _this4 = this;\n var flag = true;\n // console.log(this.list,999)\n this.list.map(function (item) {\n if (item.bg) {\n flag = false;\n return;\n }\n });\n this.sums = 0;\n this.tableData.map(function (v, i) {\n // console.log(v.scores)\n _this4.sums += Number(v.score);\n });\n // console.log(flag, 222);\n // || this.sums<=0\n // console.log(this.sums,8000)\n // console.log(this.JTrim(this.input1)=='',123)\n if (!flag || !this.input1 || !this.input2 || !this.input3 || this.sums <= 0) {\n this.validation = true;\n // console.log(this.validation,2)\n if (!flag || this.sums <= 0) {\n this.nav = \"请完成评分\";\n } else if (!this.input1 || this.JTrim(this.input1) == '') {\n this.nav = \"制表人不能为空\";\n } else if (!this.input2 || this.JTrim(this.input2) == '') {\n this.nav = \"审核人不能为空\";\n } else if (!this.input3) {\n this.nav = \"请输入日期\";\n }\n // else if(this.sums<=0){\n // this.nav = \"请完成评分\";\n // }\n // flag = true;\n } else {\n this.addScore();\n this.validation = false;\n }\n // console.log(flag, 123);\n // this.addScore();\n },\n /**关闭弹窗 */closeDialog: function closeDialog() {\n this.validation = false;\n },\n addScore: function addScore() {\n var _this5 = this;\n this.sums = 0;\n this.tableData.map(function (v, i) {\n _this5.sums += Number(v.score);\n });\n var tableda = [];\n this.tableData.map(function (item, index) {\n item.name = _this5.list[index].name;\n });\n // console.log(this.tableData,100)\n // console.log( this.row,888)\n var Content = {\n // deptName:this.$route.params.names,/**部门名称 */\n // fillDate:this.$route.params.\n deptName: this.$route.params.names,\n fillDate: this.input3,\n lister: this.input1,\n mid: this.row.id,\n month: this.row.month,\n reviewer: this.input2 /**审核人 */,\n scoreList: this.tableData,\n scores: this.sums\n };\n console.log(Content);\n AddP(Content).then(function (res) {\n if (res.returnCode == 1) {\n // this.tableData = res.returnData.scoreLists;\n _this5.$message({\n message: res.returnMsg,\n type: \"success\"\n });\n // this.$router.push({\n // path:\"/estate/examine\"\n // })\n _this5.$router.push({\n // path:\"/estate/examine/\",\n name: \"Examine\",\n params: {\n index: _this5.indexCall\n }\n });\n } else {\n _this5.$message({\n message: res.returnMsg,\n type: \"warning\"\n });\n }\n }).catch(function (err) {\n console.log(err);\n });\n },\n EndScore: function EndScore() {\n var _this6 = this;\n var Content = {\n id: this.row.id\n };\n EndPenF(Content).then(function (res) {\n // console.log(res);\n if (res.returnCode == \"1\") {\n // console.log(res.returnData, 888);\n\n // this.tableData = res.returnData.scoreLists;\n // this.page.total = res.returnData.total;\n\n _this6.$message({\n message: res.returnMsg,\n type: \"success\"\n });\n } else {\n _this6.$message({\n message: res.returnMsg,\n type: \"warning\"\n });\n }\n }).catch(function (err) {\n console.log(err);\n });\n }\n }\n};",null]}