{"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\\components\\hiddenRecordsFormDialog.vue?vue&type=script&lang=js&","dependencies":[{"path":"D:\\jenkins\\workspace\\bzzgj-fvue\\src\\views\\Manage\\saftyDanger\\components\\hiddenRecordsFormDialog.vue","mtime":1694568792046},{"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/web.dom.iterable\";\nimport _defineProperty from \"D:/jenkins/workspace/bzzgj-fvue/node_modules/@babel/runtime/helpers/esm/defineProperty\";\n\nvar _methods;\n\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\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 SecurityFileApi from '@/views/Manage/saftyDanger/api/SecurityFileApi';\nimport CmgtSaftyDangerCheckrecordApi from '@/views/Manage/saftyDanger/api/CmgtSaftyDangerCheckrecordApi';\nimport dictContracts from '@/components/dict/DictSelectUtils.js';\nimport CmgtSaftyDangerCheckplanApi from '@/views/Manage/saftyDanger/api/CmgtSaftyDangerCheckplanApi';\nimport programApi from '@/views/Manage/saftyDanger/api/programApi';\nimport nineLittlePlaceApi from '@/views/Manage/saftyDanger/api/nineLittlePlaceApi';\nimport { mapState } from 'vuex';\nexport default {\n name: 'CmgtSaftyDangerCheckrecordFormDialog',\n components: {},\n props: {\n hiddenRecordsData: String\n },\n data: function data() {\n var _ref;\n\n return _ref = {\n title: '新增',\n showFormDia: false,\n dwdisabled: false,\n activeCollapseNames: ['1', '2', '3'],\n params: {\n checkschemeId: null,\n checkYear: null,\n unitType: null,\n unitName: null,\n unitId: null,\n unitAddress: null,\n recordName: null,\n unitUserphone: null,\n dangerType: null,\n greatDanger: null,\n checkDate: null,\n checkContent: null,\n leadUsername: null,\n checkUsername: null,\n status: null,\n reformUsername: null,\n reformUnitname: null,\n latestTimeLimit: null,\n latestReviewDate: null,\n completeDate: null,\n reformRequire: null,\n unitUsername: null,\n controlMemo: null,\n // reformContent: null,\n detail: []\n },\n types: [],\n units: [],\n schemeList: [],\n isFc: false,\n isAdd: true,\n disabledFc: false,\n dialogImageUrl: '',\n dialogVisible: false,\n disabled: false,\n uploadUrl: window.context.portal + '/file/v1/uploadFileForConfig',\n // 服务器上传地址\n previewUrl: window.context.portal + '/file/onlinePreviewController/v1/getFileById_',\n unitData: []\n }, _defineProperty(_ref, \"schemeList\", []), _defineProperty(_ref, \"aqyhlxList\", []), _defineProperty(_ref, \"yhztList\", []), _ref;\n },\n created: function created() {\n this.aqyhlxList = dictContracts.getDictItemsFromCache('cmgt_aqyhlx');\n this.dwlxList = dictContracts.getDictItemsFromCache('zhgl-dwlx');\n this.yhztList = dictContracts.getDictItemsFromCache('yhzt');\n this.yhztList.splice(4, 1);\n this.getScheme();\n this.getUnit();\n this.Checkrecord(); // CmgtSaftyDangerCheckplanApi.loadAllUnit(res => {\n // \tthis.units = res\n // })\n },\n computed: mapState({\n header: function header(state) {\n return {\n Authorization: \"Bearer \".concat(state.login.currentUser.token)\n };\n }\n }),\n methods: (_methods = {\n //隐患记录上半部分的主体信息\n Checkrecord: function Checkrecord() {\n var _this = this;\n\n SecurityFileApi.cmgtSaftyDangerCheckrecord({\n groupRelation: 'AND',\n groupTree: {},\n pageBean: {\n page: 1,\n pageSize: -1,\n showTotal: true\n },\n querys: [{\n group: 'main',\n operation: 'EQUAL',\n parentGroup: '',\n property: 'unit_id_',\n relation: 'AND',\n value: this.hiddenRecordsData\n }]\n }, function (res) {\n console.log(res);\n res.rows.forEach(function (res) {\n console.log(res);\n _this.params.id = res.id;\n _this.params.checkschemeId = res.checkschemeId;\n _this.params.checkYear = res.checkYear;\n _this.params.unitType = res.unitType;\n _this.params.unitName = res.unitName;\n _this.params.unitId = res.unitId;\n _this.params.unitAddress = res.unitAddress;\n _this.params.unitUserphone = res.unitUserphone;\n _this.params.dangerType = res.dangerType;\n _this.params.unitUsername = res.unitUsername; // checkYear: \"2023\"\n // checkschemeId: \"1656109700611055616\"\n // detail: (2) [{…}, {…}]\n // id: \"1656205860709343232\"\n // isDele: \"0\"\n // latestReviewDate: \"2023-05-17\"\n // latestTimeLimit: 5\n // pkVal: \"1656205860709343232\"\n // recordName: \"test\"\n // status: \"2\"\n // unitAddress: \" \"\n // unitId: \"1654706218725285888\"\n // unitName: \"小杨\"\n // unitType: \"1\"\n // unitUsername: \" \"\n // unitUserphone: \" \"\n\n _this.params.greatDanger = res.greatDanger;\n _this.params.checkDate = res.checkDate;\n _this.params.checkContent = res.checkContent;\n _this.params.leadUsername = res.leadUsername;\n _this.params.checkUsername = res.checkUsername;\n _this.params.recordName = res.recordName;\n _this.params.status = res.status;\n _this.params.reformUsername = res.reformUsername;\n _this.params.reformUnitname = res.reformUnitname;\n _this.params.latestTimeLimit = res.latestTimeLimit;\n _this.params.latestReviewDate = res.latestReviewDate;\n _this.params.completeDate = res.completeDate;\n _this.params.reformRequire = res.reformRequire;\n _this.params.controlMemo = res.controlMemo; // this.params.reformContent = res.reformContent\n\n _this.params.detail = res.detail;\n\n _this.params.detail.forEach(function (n) {\n if (n.imgs) {\n n.imgs.forEach(function (i) {\n console.log(i);\n i.url = _this.previewUrl + i.id;\n });\n }\n\n if (n.reformImgs) {\n n.reformImgs.forEach(function (r) {\n console.log(r);\n r.url = _this.previewUrl + r.id;\n });\n }\n });\n });\n });\n },\n //获取单位\n getUnit: function getUnit() {\n var _this2 = this;\n\n nineLittlePlaceApi.loadCmgtSaftyDangerUnit({\n pageBean: {\n pageSize: -1,\n page: 1\n }\n }).then(function (res) {\n _this2.total = res.data.total;\n _this2.unitData = res.data.rows;\n });\n },\n getScheme: function getScheme() {\n var _this3 = this;\n\n programApi.loadCmgtSaftyDangerUnit({\n pageBean: {\n pageSize: -1,\n page: 1\n }\n }, function (res) {\n _this3.total = res.total;\n _this3.schemeList = res.rows;\n });\n },\n handleTarget: function handleTarget(item) {\n var arr = this.unitData.filter(function (e) {\n return e.id == item;\n });\n this.params.unitName = arr[0].unitName;\n },\n handleAvatarSuccess: function handleAvatarSuccess(res, file, fileList, row) {\n // row.imgUrl=[]\n console.log(res, file, fileList, row);\n\n if (res.success) {\n var arr = [];\n arr.push({\n id: res.fileId,\n type: 'danger',\n url: this.previewUrl + res.fileId\n });\n row.imgs = row.imgs.concat(arr);\n } else {\n this.$message.error('上传文件失败!');\n }\n },\n handleAvatarSuccess1: function handleAvatarSuccess1(res, file, fileList, row) {\n // row.imgUrl=[]\n console.log(res, file, fileList, row);\n\n if (res.success) {\n var arr = [];\n arr.push({\n id: res.fileId,\n type: 'reform',\n url: this.previewUrl + res.fileId\n });\n row.reformImgs = row.reformImgs.concat(arr);\n } else {\n this.$message.error('上传文件失败!');\n }\n },\n beforeAvatarUpload: function beforeAvatarUpload(file) {\n console.log(file);\n var isJPG = file.type === 'image/jpeg' || file.type === 'image/png' || file.type === 'image/jpg';\n var isLt1M = file.size / 1024 / 1024 < 10;\n\n if (!isJPG) {\n this.$message.error('上传图片只能是 JPG 格式!');\n }\n\n if (!isLt1M) {\n this.$message.error('上传图片大小不能超过 1MB!');\n }\n\n return isJPG && isLt1M;\n }\n }, _defineProperty(_methods, \"beforeAvatarUpload\", function beforeAvatarUpload(file) {\n var isJPG = file.type === 'image/jpeg' || file.type === 'image/png' || file.type === 'image/jpg';\n var isLt10M = file.size / 1024 / 1024 < 10;\n\n if (!isJPG) {\n this.$message.error('上传图片只能是 JPG 格式!');\n }\n\n if (!isLt10M) {\n this.$message.error('上传图片大小不能超过 10MB!');\n }\n\n return isJPG && isLt10M;\n }), _defineProperty(_methods, \"handleRemove\", function handleRemove(file, fileList, row) {\n row.imgs.forEach(function (e) {\n if (e.id == file.fileId) {\n row.imgs.splice(e, 1);\n }\n });\n }), _defineProperty(_methods, \"handleRemove1\", function handleRemove1(file, fileList, row) {\n row.reformImgs.forEach(function (e) {\n if (e.id == file.fileId) {\n row.reformImgs.splice(e, 1);\n }\n });\n }), _defineProperty(_methods, \"handlePictureCardPreview\", function handlePictureCardPreview(file) {\n // this.dialogImageUrl = file.url\n this.dialogVisible = true;\n }), _defineProperty(_methods, \"handleDownload\", function handleDownload(file) {\n CmgtSaftyDangerCheckrecordApi.downloadFile(file.fileId);\n }), _methods)\n};",null]}