{"remainingRequest":"D:\\jenkins\\workspace\\bzzgj-fvue\\node_modules\\thread-loader\\dist\\cjs.js!D:\\jenkins\\workspace\\bzzgj-fvue\\node_modules\\babel-loader\\lib\\index.js!D:\\jenkins\\workspace\\bzzgj-fvue\\node_modules\\cache-loader\\dist\\cjs.js??ref--0-0!D:\\jenkins\\workspace\\bzzgj-fvue\\node_modules\\vue-loader\\lib\\index.js??vue-loader-options!D:\\jenkins\\workspace\\bzzgj-fvue\\src\\views\\Manage\\saftyDanger\\CmgtSaftyDangerRectificationManage.vue?vue&type=script&lang=js&","dependencies":[{"path":"D:\\jenkins\\workspace\\bzzgj-fvue\\src\\views\\Manage\\saftyDanger\\CmgtSaftyDangerRectificationManage.vue","mtime":1691463999696},{"path":"D:\\jenkins\\workspace\\bzzgj-fvue\\node_modules\\cache-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\jenkins\\workspace\\bzzgj-fvue\\node_modules\\thread-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\jenkins\\workspace\\bzzgj-fvue\\node_modules\\babel-loader\\lib\\index.js","mtime":315532800000},{"path":"D:\\jenkins\\workspace\\bzzgj-fvue\\node_modules\\cache-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\jenkins\\workspace\\bzzgj-fvue\\node_modules\\vue-loader\\lib\\index.js","mtime":499162500000}],"contextDependencies":[],"result":["import \"core-js/modules/es6.array.find\";\nimport \"core-js/modules/web.dom.iterable\";\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\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 { TableMixin } from '@/mixins/tableMixin';\nimport dictUtils from '@/components/dict/DictSelectUtils.js';\nimport dictContracts from '@/components/dict/DictSelectUtils.js';\nimport CmgtSaftyDangerCheckrecordApi from '@/views/Manage/saftyDanger/api/CmgtSaftyDangerCheckrecordApi';\nimport CmgtSaftyDangerRectificationFormDialog from '@/views/Manage/saftyDanger/components/CmgtSaftyDangerRectificationFormDialog';\nimport CmgtSaftyDangerCheckplanApi from '@/views/Manage/saftyDanger/api/CmgtSaftyDangerCheckplanApi';\nexport default {\n name: 'CmgtSaftyDangerCheckrecordManage',\n components: {\n CmgtSaftyDangerRectificationFormDialog: CmgtSaftyDangerRectificationFormDialog\n },\n mixins: [TableMixin],\n data: function data() {\n return {\n handleFcData: [],\n url: {\n delete: '/manager/cmgtSaftyDangerCheckrecord/'\n },\n querys: [{\n group: 'main',\n operation: 'EQUAL',\n parentGroup: '',\n property: 't.type',\n relation: 'AND',\n value: ''\n }, {\n group: 'main',\n operation: 'EQUAL',\n parentGroup: '',\n property: 't.unitId',\n relation: 'AND',\n value: ''\n }, {\n group: 'main',\n operation: 'BETWEEN',\n parentGroup: '',\n property: 't.latestReviewDate',\n relation: 'AND',\n value: ''\n }, {\n group: 'main',\n operation: 'EQUAL',\n parentGroup: '',\n property: 't.handleStatus',\n relation: 'AND',\n value: ''\n }, {\n group: 'main',\n operation: 'EQUAL',\n parentGroup: '',\n property: 't.expireStatus',\n relation: 'AND',\n value: ''\n }],\n StshowFormDias: false,\n units: [],\n statusList: [],\n types: [],\n previewUrl: window.context.portal + '/file/onlinePreviewController/v1/getFileById_',\n isShow: false\n };\n },\n created: function created() {\n this.types = dictContracts.getDictItemsFromCache('cmgt_aqyhlx');\n this.statusList = dictContracts.getDictItemsFromCache('yhzt');\n this.statusList.splice(0, 1);\n this.statusList.splice(3, 1);\n console.log(this.statusList);\n },\n mounted: function mounted() {},\n methods: {\n loadAllUnitList: function loadAllUnitList() {\n var _this = this;\n\n CmgtSaftyDangerCheckrecordApi.loadAllUnit({\n pageBean: {\n pageSize: 20,\n page: -1\n }\n }, function (res) {\n console.log(res);\n _this.units = res.rows;\n\n _this.tableData.forEach(function (item) {\n _this.units.forEach(function (val) {\n if (item.unitId == val.id) {\n item.unitId = val.unitName;\n }\n });\n });\n });\n },\n // 重置\n clearQuerys: function clearQuerys() {\n this.querys[0].value = '';\n this.querys[1].value = '';\n this.querys[2].value = '';\n this.querys[3].value = '';\n this.querys[4].value = '';\n },\n // 获取list\n loadData: function loadData(page) {\n var _this2 = this;\n\n if (page) {\n this.queryParam.pageBean.page = page;\n }\n\n this.loading = true;\n this.tableData = [];\n this.queryParam.querys = [];\n\n if (this.querys[0].value) {\n this.queryParam.querys.push(this.querys[0]);\n }\n\n if (this.querys[1].value) {\n this.queryParam.querys.push(this.querys[1]);\n }\n\n if (this.querys[2].value) {\n this.queryParam.querys.push(this.querys[2]);\n }\n\n if (this.querys[3].value) {\n this.queryParam.querys.push(this.querys[3]);\n }\n\n if (this.querys[4].value) {\n this.queryParam.querys.push(this.querys[4]);\n }\n\n CmgtSaftyDangerCheckrecordApi.CSaftyDangerAbarbeitungList(this.queryParam).then(function (res) {\n var _res$data$value = res.data.value,\n rows = _res$data$value.rows,\n total = _res$data$value.total;\n _this2.total = total;\n _this2.tableData = rows;\n\n _this2.loadAllUnitList();\n\n _this2.$set(_this2.tableData);\n\n _this2.loading = false;\n });\n },\n resetSelecedt: function resetSelecedt() {\n // 重置选中\n this.$refs.multipleSelection.multipleSelection = [];\n },\n handleAdd: function handleAdd() {\n // 增加\n this.$refs.formModal.add();\n },\n handleSelectionChange: function handleSelectionChange(row) {\n this.handleFcData = row;\n this.multipleSelection = row.map(function (item) {\n return item.id;\n });\n console.log(this.multipleSelection);\n console.log(row);\n },\n handleFc: function handleFc() {\n // 复查按钮\n // if (this.multipleSelection.length != 1) {\n // this.$message({\n // message: '请选择一条需要修改的数据!',\n // type: 'warning'\n // })\n // } else {\n // var row = null\n // this.tableData.forEach(item => {\n // if (item.id == this.multipleSelection[0]) {\n // row = item\n // }\n // })\n // if (row.status === '3') {\n // this.$message({\n // message: '该隐患已关闭!',\n // type: 'warning'\n // })\n // } else {\n // this.$refs.formModal.Update(row)\n // }\n // }\n this.$refs.formModal.Update();\n },\n closeDanger: function closeDanger() {\n var _this3 = this;\n\n CmgtSaftyDangerCheckrecordApi.CSaftyDangerAbarbeitungClose(this.multipleSelection).then(function (res) {\n if (res.state) {\n _this3.$notify({\n type: 'success',\n message: '关闭成功',\n duration: 2000\n });\n\n _this3.queryParam.pageBean.page = 1;\n\n _this3.loadData();\n }\n }).catch(function (res) {\n _this3.$notify({\n type: 'error',\n message: res.message,\n duration: 2000,\n offset: 80\n });\n }); // // 关闭隐患\n // if (this.multipleSelection.length != 1) {\n // this.$message({\n // message: '请选择一条需要关闭的隐患信息!',\n // type: 'warning'\n // })\n // } else {\n // var row = null\n // this.tableData.forEach(item => {\n // if (item.id == this.multipleSelection[0]) {\n // row = item\n // }\n // })\n // if (row.status === '3' && row.reviewResult === '1') {\n // this.$message({\n // message: '该隐患已关闭!',\n // type: 'warning'\n // })\n // } else if (row.reviewResult != '1') {\n // this.$message({\n // message: '该隐患未完成复查不能关闭!',\n // type: 'warning'\n // })\n // } else {\n // this.openMemoBox(row.id)\n // }\n // }\n },\n openMemoBox: function openMemoBox(id) {\n var _this4 = this;\n\n // 弹出框,增加备注信息,修改状态为3为关闭隐患,1为未复查,2复查中\n this.$prompt('请输入备注信息', '提示', {\n confirmButtonText: '确定',\n cancelButtonText: '取消'\n }).then(function (_ref) {\n var value = _ref.value;\n // 关闭信息\n var param = {\n memo: value,\n status: '3',\n id: id\n };\n CmgtSaftyDangerCheckrecordApi.closeSaftyDangerCheckrecord(param, function (res) {\n if (res.state) {\n _this4.$notify({\n type: 'success',\n message: '关闭成功!',\n duration: 2000\n });\n\n _this4.loadData();\n } else {\n _this4.$message.warning(response.message);\n }\n });\n }).catch(function () {\n _this4.$message({\n type: 'info',\n message: '取消关闭'\n });\n });\n },\n // 批量删除隐患\n handleDelete: function handleDelete() {\n var _this5 = this;\n\n CmgtSaftyDangerCheckrecordApi.CSaftyDangerAbarbeitungDelete(this.multipleSelection).then(function (res) {\n if (res.state) {\n _this5.$notify({\n type: 'success',\n message: '删除成功',\n duration: 2000\n });\n\n _this5.queryParam.pageBean.page = 1;\n\n _this5.loadData();\n }\n }).catch(function (res) {\n _this5.$notify({\n type: 'error',\n message: res.message,\n duration: 2000,\n offset: 80\n });\n });\n },\n // 双击修改\n handleUpdate: function handleUpdate(row, column, cell, event) {\n this.$refs.formModal.showInfo(row);\n },\n closeStshowForm: function closeStshowForm() {\n this.StshowFormDias = false;\n },\n formatUnitName: function formatUnitName(row, column, cellValue, index) {\n var obj = this.units.find(function (item) {\n if (item.id === row.recipient) {\n //\n return item;\n }\n });\n\n if (obj !== undefined) {\n return obj.unitName;\n } else {\n return '';\n }\n }\n }\n};",null]}