{"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\\MajorReformProjects\\BrandDisplay\\dialog\\BrandDisplayDetails.vue?vue&type=script&lang=js&","dependencies":[{"path":"D:\\jenkins\\workspace\\reform-fvue\\src\\views\\MajorReformProjects\\BrandDisplay\\dialog\\BrandDisplayDetails.vue","mtime":1716260780582},{"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/es6.function.name\";\nimport \"core-js/modules/es6.regexp.split\";\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\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 filePreview from '@/components/FilePreview/filePreview.vue';\nimport FileList from '@/components/uploadFile/FileList.vue';\nimport RejectInfoDialog from '@/components/dialog/RejectInfoBlockDialog.vue';\nimport brand from '@/api/MajorReformProjects/brandDisplay';\nimport sat from '@/api/satisfaction/satisfaction';\nimport { TableMixin } from '@/mixins/tableMixin';\nvar portal = window.context.portal;\nexport default {\n name: 'BrandDisplayDetails',\n components: {\n filePreview: filePreview,\n FileList: FileList,\n RejectInfoDialog: RejectInfoDialog\n },\n mixins: [TableMixin],\n data: function data() {\n return {\n btnShow: false,\n DetailsVisible: false,\n reqLoading: false,\n markLoading: false,\n dialogVisible: false,\n fileList: [],\n reqData: {\n pageBean: {\n page: 1,\n pageSize: 10,\n showTotal: true\n },\n querys: [{\n group: 'main',\n operation: 'EQUAL',\n parentGroup: 'STATUS_',\n property: '',\n relation: 'AND',\n value: 1\n }]\n },\n tableData: {\n pilotProjectFill: {\n status: 0\n },\n pilotBrandPushList: [{\n classified: '',\n specificDetails: '',\n effectForm: '',\n completionDate: '',\n files: []\n }]\n },\n activeCollapse: ['1', '3'],\n specificDetailOptions: [],\n projectInfo: {},\n histroyData: null,\n approvalComments: ''\n };\n },\n created: function created() {},\n methods: {\n //\n open: function open(item) {\n this.reqLoading = true;\n this.projectInfo = item;\n this.getBrandInfoById(item.projectId);\n this.DetailsVisible = true;\n },\n // 根据项目id查询品牌推进信息\n getBrandInfoById: function getBrandInfoById(id) {\n var _this = this;\n\n brand.getBrandInfoById(id, function (res) {\n if (res.length) {\n _this.tableData = res[0];\n _this.tableData.approvalComments = res[0].approvalComments ? res[0].approvalComments.split('$_$') : [];\n\n if (res[1]) {\n _this.histroyData = res[1] ? res[1] : null;\n _this.histroyData.approvalComments = res[1] && res[1].approvalComments ? res[1].approvalComments.split('$_$') : [];\n }\n }\n\n _this.reqLoading = false;\n });\n },\n // 根据获肯定形式获取具体情形\n getSpecificDetail: function getSpecificDetail(val, obj, key) {\n this.specificDetailOptions = obj.lowerDic['ppcj_jtqx'];\n },\n // ------------\n handleVerify: function handleVerify() {\n var _this2 = this;\n\n var routeName = this.$route.name;\n this.$confirm('确认通过吗?', this.$t('common.tips'), {\n confirmButtonText: this.$t('common.confirm'),\n cancelButtonText: this.$t('common.cancel'),\n type: 'success'\n }).then(function () {\n _this2.markLoading = true;\n var status = routeName == 'BrandDisplayReview' ? 3 : 5;\n var data = {\n status: status,\n id: _this2.projectInfo.id\n };\n brand.updateStatusById(data, function (res) {\n if (res.state) {\n _this2.$message.success('审核通过成功');\n\n _this2.$emit('flushed');\n\n _this2.handleClose();\n } else {\n _this2.$message.success('审核通过失败');\n }\n\n _this2.markLoading = false;\n });\n });\n },\n openInputVisible: function openInputVisible() {\n var _this3 = this;\n\n this.$confirm('确认驳回吗?', this.$t('common.tips'), {\n confirmButtonText: this.$t('common.confirm'),\n cancelButtonText: this.$t('common.cancel'),\n type: 'error'\n }).then(function () {\n _this3.$refs.RejectInfoDialog.open();\n });\n },\n sendRejectInfo: function sendRejectInfo(approvalComments) {\n var _this4 = this;\n\n // this.approvalComments = data\n this.markLoading = true;\n var routeName = this.$route.name;\n var status = routeName == 'BrandDisplayReview' ? 2 : 4;\n var data = {\n status: status,\n id: this.projectInfo.id,\n approvalComments: approvalComments\n };\n brand.updateStatusById(data, function (res) {\n if (res.state) {\n _this4.$message.success('审核驳回成功');\n\n _this4.$emit('flushed');\n\n _this4.handleClose();\n } else {\n _this4.$message.success('审核驳回失败');\n }\n\n _this4.markLoading = false;\n });\n },\n // 文件相关\n openUploade: function openUploade() {\n this.$refs.uploadFile.open('ProjectBrand');\n },\n beforeRemove: function beforeRemove(file, fileList) {\n var _this5 = this;\n\n this.$confirm(\"\\u786E\\u5B9A\\u5220\\u9664 \".concat(file.name, \"\\uFF1F\"), this.$t('common.tips'), {\n confirmButtonText: this.$t('common.confirm'),\n cancelButtonText: this.$t('common.cancel'),\n type: 'warning'\n }).then(function () {\n var id = file.fileId ? file.fileId : file.id ? file.id : file.response.fileId;\n sat.deleteFileById(id, function (res) {\n if (res.state) {\n _this5.$message.success('附件删除成功');\n\n var arr = _this5.fileList.filter(function (item) {\n var fileId = item.id || item.response.fileId;\n\n if (fileId !== id) {\n return item;\n }\n });\n\n _this5.fileList = arr;\n } else {\n _this5.$message.error('附件删除失败');\n }\n });\n });\n },\n handlePreview: function handlePreview(file) {\n var id = file.fileId ? file.fileId : file.id ? file.id : file.response.fileId;\n var type = file.fileType || (file.extensionName ? file.extensionName : file.name.split('.')[1]);\n this.$refs.filePreview.previewUrl = this.previewUrl + id;\n this.$refs.filePreview.open(type);\n },\n // 文件下载\n handleDownloadFile: function handleDownloadFile(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 // ------------\n handleClose: function handleClose() {\n this.DetailsVisible = false;\n this.activeCollapse = ['1', '3'];\n this.btnShow = false;\n this.histroyData = null;\n }\n }\n};",null]}