{"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\\CmgtSaftyDangerCheckPlanRecordFormDialog.vue?vue&type=script&lang=js&","dependencies":[{"path":"D:\\jenkins\\workspace\\bzzgj-fvue\\src\\views\\Manage\\saftyDanger\\components\\CmgtSaftyDangerCheckPlanRecordFormDialog.vue","mtime":1667545183176},{"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 _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//\nimport CmgtSaftyDangerCheckrecordApi from '@/views/Manage/saftyDanger/api/CmgtSaftyDangerCheckrecordApi';\nimport dictContracts from '@/components/dict/DictSelectUtils.js';\nimport CmgtSaftyDangerCheckplanApi from '@/views/Manage/saftyDanger/api/CmgtSaftyDangerCheckplanApi';\nimport { mapState } from 'vuex';\nexport default {\n name: 'CmgtSaftyDangerCheckrecordFormDialog',\n components: {},\n props: {},\n data: function data() {\n return {\n title: '新增',\n showFormDia: false,\n activeCollapseNames: ['1', '2', '3'],\n params: {\n id: null,\n checkplanId: null,\n dangerType: null,\n imark: null,\n checkDate: null,\n checkUser: null,\n content: null,\n recipient: null,\n location: null,\n result: null,\n danger: null,\n pcfa: null,\n reviewer: null,\n reviewDate: null,\n reviewResult: null,\n remainingProblem: null,\n timeLimit: null,\n resolver: null,\n resolvingOrg: null,\n resolvingMeasure: null,\n resolvingRemark: null,\n resolvingDate: null,\n status: null,\n sn: null,\n memo: null,\n createTime: null,\n baseInfoFiles: null,\n fcFiles: null,\n baseInfoFileList: [],\n fcFileList: []\n },\n rules: {\n recipient: [{\n required: true,\n message: '排查单位不能为空',\n trigger: 'blur'\n }],\n dangerType: [{\n required: true,\n message: '隐患类型不能为空',\n trigger: 'blur'\n }],\n checkUser: [{\n required: true,\n message: '检查人不能为空',\n trigger: 'blur'\n }],\n checkDate: [{\n required: true,\n message: '检查时间不能为空',\n trigger: 'blur'\n }],\n result: [{\n required: true,\n message: '检查结果不能为空',\n trigger: 'blur'\n }]\n },\n types: [],\n units: [],\n isFc: false,\n isAdd: true,\n disabledFc: false,\n dialogImageUrl: '',\n dialogVisible: false,\n disabled: false,\n previewUrl: window.context.portal + '/file/onlinePreviewController/v1/getFileById_',\n uploadUrl: window.context.portal + '/file/v1/fileUpload' // 服务器上传地址\n\n };\n },\n created: function created() {\n var _this = this;\n\n this.types = dictContracts.getDictItemsFromCache('cmgt_aqyhlx');\n CmgtSaftyDangerCheckplanApi.loadAllUnit(function (res) {\n _this.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 handleAvatarSuccess: function handleAvatarSuccess(res, file, fileList) {\n if (res.success) {\n this.params.baseInfoFileList.push({\n name: res.fileName,\n fileId: res.fileId,\n url: this.previewUrl + res.fileId\n });\n } else {\n this.$message.error('上传文件失败!');\n }\n },\n handleFcFileSuccess: function handleFcFileSuccess(res, file, fileList) {\n if (res.success) {\n this.params.fcFileList.push({\n name: res.fileName,\n fileId: res.fileId,\n url: this.previewUrl + res.fileId\n });\n } else {\n this.$message.error('上传文件失败!');\n }\n },\n beforeAvatarUpload: function beforeAvatarUpload(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 addRecord: function addRecord(row) {\n this.params.status = '1'; // 新增\n\n this.params.checkplanId = row.id;\n this.params.recipient = row.recipient;\n this.params.checkUser = row.checkUser;\n this.params.content = row.content;\n this.params.pcfa = row.pcfa;\n this.params.dangerType = row.dangerType;\n this.showFormDia = true;\n },\n handleClose: function handleClose() {\n this.params = {\n id: null,\n checkplanId: null,\n dangerType: null,\n imark: null,\n checkDate: null,\n checkUser: null,\n content: null,\n recipient: null,\n location: null,\n result: null,\n danger: null,\n pcfa: null,\n reviewer: null,\n reviewDate: null,\n reviewResult: null,\n remainingProblem: null,\n timeLimit: null,\n resolver: null,\n resolvingOrg: null,\n resolvingMeasure: null,\n resolvingRemark: null,\n resolvingDate: null,\n status: null,\n sn: null,\n memo: null,\n createTime: null,\n baseInfoFiles: null,\n fcFiles: null,\n baseInfoFileList: [],\n fcFileList: []\n };\n this.title = '新增';\n this.showFormDia = false;\n this.isFc = false;\n this.isAdd = true;\n this.disabledFc = false;\n },\n handleSave: function handleSave() {\n var _this2 = this;\n\n this.$refs.formInfo.validate(function (valid) {\n if (valid) {\n var method;\n\n if (!_this2.params.id) {\n // 新增\n method = CmgtSaftyDangerCheckrecordApi.addCmgtSaftyDangerCheckrecord;\n }\n\n if (_this2.params.id) {\n // 修改\n method = CmgtSaftyDangerCheckrecordApi.editCmgtSaftyDangerCheckrecord;\n }\n\n method(_this2.params, function (res) {\n if (res.state) {\n _this2.$notify({\n type: 'success',\n message: _this2.title + '成功',\n duration: 2000\n });\n\n _this2.$parent.searchRecord(_this2.$parent.searchRow, null, null);\n\n _this2.handleClose();\n } else {\n _this2.$message.warning(response.message);\n }\n });\n }\n });\n },\n Update: function Update(row, status) {\n this.params = row;\n\n if (status == 1) {\n this.title = '修改排查信息';\n this.isFc = false;\n this.isAdd = true;\n this.params.status = '1';\n this.showFormDia = true;\n }\n\n if (status == 2) {\n this.title = '录入复查';\n this.isFc = true;\n this.isAdd = false;\n this.params.status = '2';\n this.showFormDia = true;\n }\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) {\n this.params.baseInfoFileList = this.params.baseInfoFileList.filter(function (item) {\n return item.fileId != file.fileId;\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]}