{"remainingRequest":"D:\\jenkins\\workspace\\reform-fvue\\node_modules\\thread-loader\\dist\\cjs.js!D:\\jenkins\\workspace\\reform-fvue\\node_modules\\babel-loader\\lib\\index.js!D:\\jenkins\\workspace\\reform-fvue\\node_modules\\cache-loader\\dist\\cjs.js??ref--0-0!D:\\jenkins\\workspace\\reform-fvue\\node_modules\\vue-loader\\lib\\index.js??vue-loader-options!D:\\jenkins\\workspace\\reform-fvue\\src\\views\\satisfactionManagement\\reportDialog.vue?vue&type=script&lang=js&","dependencies":[{"path":"D:\\jenkins\\workspace\\reform-fvue\\src\\views\\satisfactionManagement\\reportDialog.vue","mtime":1698318300766},{"path":"D:\\jenkins\\workspace\\reform-fvue\\node_modules\\cache-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\jenkins\\workspace\\reform-fvue\\node_modules\\thread-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\jenkins\\workspace\\reform-fvue\\node_modules\\babel-loader\\lib\\index.js","mtime":315532800000},{"path":"D:\\jenkins\\workspace\\reform-fvue\\node_modules\\cache-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\jenkins\\workspace\\reform-fvue\\node_modules\\vue-loader\\lib\\index.js","mtime":499162500000}],"contextDependencies":[],"result":["import \"core-js/modules/es7.object.get-own-property-descriptors\";\nimport \"core-js/modules/web.dom.iterable\";\nimport \"core-js/modules/es6.object.keys\";\nimport _defineProperty from \"D:/jenkins/workspace/reform-fvue/node_modules/@babel/runtime/helpers/esm/defineProperty\";\nimport \"core-js/modules/es6.function.name\";\n\nfunction ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }\n\nfunction _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }\n\n//\n//\n//\n//\n//\n//\n//\n//\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 sat from '@/api/satisfaction/satisfaction';\nimport Docx from '@/components/docx';\nimport req from '@/request.js';\nvar portal = window.context.portal;\nexport default {\n name: 'reportDialog',\n components: {\n Docx: Docx\n },\n mixins: [TableMixin],\n data: function data() {\n return {\n dialogVisible1: false,\n fileId: '',\n uploadLoading: false,\n title: '',\n formData: null,\n loading: true\n };\n },\n created: function created() {},\n methods: {\n handleAudit: function handleAudit() {\n var _this = this;\n\n this.$confirm(\"\\u786E\\u8BA4\\u5BA1\\u6838\\u901A\\u8FC7\\u5417\\uFF1F\", this.$t('common.tips'), {\n confirmButtonText: this.$t('common.confirm'),\n cancelButtonText: this.$t('common.cancel'),\n type: 'success'\n }).then(function () {\n var data = {\n id: _this.formData.id,\n fileStatus: _this.$route.name === 'SatisfactionAudits' ? 3 : 5\n };\n sat.auditById(data, function (res) {\n if (res.state) {\n _this.$message.success('审核通过成功');\n\n _this.handleClose();\n\n _this.$emit('refreshData');\n }\n });\n });\n },\n handleReject: function handleReject() {\n var _this2 = this;\n\n this.$confirm(\"\\u786E\\u8BA4\\u5BA1\\u6838\\u9A73\\u56DE\\u5417\\uFF1F\", this.$t('common.tips'), {\n confirmButtonText: this.$t('common.confirm'),\n cancelButtonText: this.$t('common.cancel'),\n type: 'error'\n }).then(function () {\n var data = {\n id: _this2.formData.id,\n fileStatus: _this2.$route.name === 'SatisfactionAudits' ? 2 : 4\n };\n sat.auditById(data, function (res) {\n if (res.state) {\n _this2.$message.success('审核驳回成功');\n\n _this2.handleClose();\n\n _this2.$emit('refreshData');\n }\n });\n });\n },\n // 满意度报告\n openDialog: function openDialog(title, id) {\n var _this3 = this;\n\n this.title = title;\n var data = this.qs.stringify({\n id: id\n });\n sat.queryById(data, function (res) {\n if (res) {\n _this3.formData = res;\n\n if (_this3.formData.fileList) {\n var _id = _this3.formData.fileList.map(function (item) {\n return item.id;\n });\n\n _this3.previewUrl = \"\".concat(portal, \"/file/onlinePreviewController/v1/getFileById_\").concat(_id);\n _this3.uploadLoading = true;\n }\n }\n });\n this.dialogVisible1 = true;\n },\n setLoading: function setLoading() {},\n beforeUpload: function beforeUpload(res, file, fileList) {\n var _this4 = this;\n\n if (res.success) {\n var newFile = _objectSpread(_objectSpread({}, file), {}, {\n id: file.response.fileId\n });\n\n this.formData.fileList = [newFile];\n this.previewUrl = \"\".concat(portal, \"/file/onlinePreviewController/v1/getFileById_\").concat(newFile.id);\n this.fileId = newFile.id;\n this.uploadLoading = true;\n this.$nextTick(function () {\n _this4.$refs.docx.initDocx();\n });\n this.$message.success('附件上传成功');\n } else {\n this.$message.error(res.message);\n }\n },\n closeLoading: function closeLoading() {},\n removeFile: function removeFile() {\n var _this5 = this;\n\n this.$confirm(\"\\u786E\\u5B9A\\u5220\\u9664\\u540E\\u91CD\\u65B0\\u4E0A\\u4F20\\u5417\\uFF1F\", this.$t('common.tips'), {\n confirmButtonText: this.$t('common.confirm'),\n cancelButtonText: this.$t('common.cancel'),\n type: 'error'\n }).then(function () {\n req.remove(portal + \"/file/v1/?ids=\".concat(_this5.fileId)).then(function (res) {\n console.log(res);\n\n if (res.data.state) {\n _this5.formData.fileList = [];\n\n _this5.$message.success('附件删除成功');\n\n _this5.uploadLoading = false;\n }\n });\n });\n },\n // 文件下载\n handleDownloadFile: function handleDownloadFile(file) {\n console.log(file);\n var id = file.fileId ? file.fileId : file.id ? file.id : file.response.fileId;\n window.open(portal + \"/file/v1/downloadFile?fileId=\".concat(id), '_self');\n },\n handleClose: function handleClose() {\n this.formData = null;\n this.previewUrl = '';\n this.uploadLoading = false;\n this.dialogVisible1 = false;\n },\n // 保存为草稿,保存并上报\n handleSave: function handleSave(status) {\n var _this6 = this;\n\n var msg = status ? '上报' : '草稿';\n this.formData.fileStatus = status;\n this.formData.ids = this.formData.fileList.map(function (item) {\n return item.id;\n });\n sat.addSurvey(this.formData, function (res) {\n if (res.state) {\n _this6.$message.success(\"\\u4FDD\\u5B58\".concat(msg, \"\\u6210\\u529F\"));\n\n _this6.$emit('refreshData');\n\n _this6.handleClose();\n }\n });\n }\n }\n};",null]}