{"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\\SixthConferenceImplementation\\components\\projectsDialog.vue?vue&type=script&lang=js&","dependencies":[{"path":"D:\\jenkins\\workspace\\reform-fvue\\src\\views\\SixthConferenceImplementation\\components\\projectsDialog.vue","mtime":1735627367857},{"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/web.dom.iterable\";\nimport \"core-js/modules/es6.function.name\";\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\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 org from '@/api/org.js';\nimport utils from '@/utils.js';\nimport dictUtils from '@/components/dict/DictSelectUtils.js';\nimport projectsAPI from '@/api/SixthConferenceImplementation/index.js';\nimport RejectInfoBlockDialog from '@/components/dialog/RejectInfoBlockDialog.vue';\nimport UploadFile from '@/components/uploadFile/index.vue';\nimport FileList from '@/components/uploadFile/FileList.vue';\nimport moment from 'moment';\nimport { TableMixin } from '@/mixins/tableMixin';\nimport { file, files } from 'jszip';\nexport default {\n name: 'projectsDialog',\n components: {\n UploadFile: UploadFile,\n FileList: FileList,\n RejectInfoBlockDialog: RejectInfoBlockDialog\n },\n mixins: [TableMixin],\n data: function data() {\n return {\n approvalComments: '',\n approvalCommentsList: [],\n displayType: '',\n // createEntry, pushEntry, pushComfire, createComfire展示类型\n reqLoading: false,\n activeCollapse1: ['1', '3'],\n visible: false,\n title: '新增',\n saveloading: false,\n rules: {\n projectName: [{\n required: true,\n message: '请输入项目名称',\n trigger: 'change'\n }],\n projectType: [{\n required: true,\n message: '请选择项目类型',\n trigger: 'change'\n }],\n groupName: [{\n required: true,\n message: '请选择专项小组',\n trigger: 'change'\n }],\n unitId: [{\n required: true,\n message: '请选择责任单位',\n trigger: 'change'\n }]\n },\n queryParam: {\n pageBean: {\n page: 1,\n pageSize: -1\n }\n },\n treeData: [],\n typeList: [],\n parameter: {\n projectName: '',\n projectType: '1',\n groupName: '',\n unitId: '',\n unitName: '',\n unitCode: '',\n unitGrade: ''\n },\n fileList: [],\n markLoading: false,\n treeItem: null,\n propelInfo: {},\n propelRules: {\n propulsiveStatus: [{\n required: true,\n message: '请选择当前状态',\n trigger: 'change'\n }]\n },\n historyPropelInfo: null,\n types: true\n };\n },\n created: function created() {\n this.setTreeData();\n },\n mounted: function mounted() {\n var _this = this;\n\n setTimeout(function () {\n if (_this.$store.state.user.currentOrgDetail == null) {\n _this.$store.dispatch('user/loadCurrentUserDetail').then(function (currentOrgDetail) {\n _this.currentOrg = currentOrgDetail;\n });\n } else {\n _this.currentOrg = _this.$store.state.user.currentOrgDetail;\n }\n }, 100);\n },\n methods: {\n changeGroup: function changeGroup(val, valobj) {\n this.parameter.groupName = valobj.name;\n this.parameter.groupCode = valobj.value;\n },\n setTreeData: function setTreeData() {\n var _this2 = this;\n\n var data = JSON.parse(sessionStorage.getItem('responsibilityTree'));\n\n if (data) {\n this.treeData = data[0].children[0].children[0].children;\n } else {\n org.getByParentAndDemToTree({\n orgKind: 'ogn'\n }).then(function (res) {\n var treeData = res ? utils.tile2nest(res) : utils.tile2nest([]);\n sessionStorage.setItem('responsibilityTree', JSON.stringify(treeData));\n _this2.treeData = treeData[0].children[0].children[0].children;\n });\n }\n },\n // 获取字典值翻译\n getDictName: function getDictName(code, value) {\n return utils.getDictName(code, value);\n },\n edit: function edit(val, title) {\n var _this3 = this;\n\n var types = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : true;\n this.types = types;\n this.title = title;\n this.reqLoading = true;\n this.visible = true;\n this.parameter = val;\n this.propelInfo.projectId = val.id;\n\n if (val.detailsId) {\n projectsAPI.getPropelDataById(val.detailsId).then(function (res) {\n if ((res.status === 2 || res.status === 4 || res.status === 5) && title != '详情') {\n _this3.propelInfo = {\n files: [],\n projectId: val.id\n };\n _this3.historyPropelInfo = res;\n _this3.reqLoading = false;\n } else {\n _this3.historyById(val.id);\n\n _this3.propelInfo = res;\n }\n });\n } else {\n setTimeout(function () {\n _this3.reqLoading = false;\n }, 1000);\n }\n },\n // 历史查询\n historyById: function historyById(id) {\n var _this4 = this;\n\n projectsAPI.historyById(id).then(function (res) {\n if (res.id) {\n _this4.historyPropelInfo = res;\n }\n\n _this4.reqLoading = false;\n });\n },\n add: function add(val) {\n this.title = '新增';\n this.visible = true;\n },\n changeUnit: function changeUnit(value) {\n var _this5 = this;\n\n this.$nextTick(function () {\n var nodesObj = _this5.$refs['cascader'].getCheckedNodes();\n\n if (nodesObj.length) {\n // this.parameter.unitId = nodesObj[0].data.id\n _this5.$set(_this5.parameter, 'unitId', nodesObj[0].data.id);\n\n _this5.parameter.unitName = nodesObj[0].label;\n _this5.parameter.unitCode = nodesObj[0].data.code;\n _this5.parameter.unitGrade = nodesObj[0].level;\n } else {\n _this5.parameter.unitId = '';\n _this5.parameter.unitName = '';\n _this5.parameter.unitCode = '';\n _this5.parameter.unitGrade = '';\n }\n });\n },\n // 关闭新增人员窗口\n handleClose: function handleClose() {\n this.approvalComments = '';\n this.approvalCommentsList = [];\n this.activeCollapse1 = ['1', '3'];\n this.visible = false;\n this.title = '';\n this.saveloading = false;\n this.displayType = '';\n this.parameter = {\n projectName: '',\n projectType: '1',\n groupName: '',\n unitId: '',\n unitName: '',\n unitCode: '',\n unitGrade: ''\n };\n this.propelInfo = {\n files: []\n };\n },\n //打卡目标录入\n targetEntry: function targetEntry(ind, val) {\n var title = '录入';\n\n if (this.title == '详情' || this.displayType == 'pushComfire') {\n title = '详情';\n }\n\n this.$refs.targetEntryDialog.add(ind, val, title);\n },\n // 通过\n handleVerify: function handleVerify() {\n var _this6 = this;\n\n this.$confirm('确认审核通过吗?', this.$t('common.tips'), {\n confirmButtonText: this.$t('common.confirm'),\n cancelButtonText: this.$t('common.cancel'),\n type: 'warning'\n }).then(function () {\n var status = _this6.$route.name == 'responsibleUnitReview' ? 3 : 5;\n _this6.propelInfo.approvalResults = 0;\n _this6.propelInfo.approvalComments = '';\n\n _this6.submitData(status, '审核通过');\n });\n },\n // 驳回确认\n handleReject: function handleReject() {\n var _this7 = 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 _this7.$refs.RejectInfoBlockDialog.open();\n });\n },\n // 驳回提交数据\n sendRejectInfo: function sendRejectInfo(rejectInfo) {\n var status = this.$route.name == 'responsibleUnitReview' ? 2 : 4;\n\n if (!rejectInfo) {\n this.saveLoading = false;\n return;\n }\n\n this.propelInfo.approvalResults = 1;\n this.propelInfo.approvalComments = rejectInfo;\n this.submitData(status, '审核驳回');\n },\n // 根据id获取节点\n getUnitItem: function getUnitItem(data, id) {\n var _this8 = this;\n\n data.forEach(function (item) {\n if (item.id == id) {\n _this8.treeItem = item;\n } else {\n if (item.children) {\n _this8.getUnitItem(item.children, id);\n }\n }\n });\n },\n // 保存\n handleSave: function handleSave() {\n var _this9 = this;\n\n this.$refs.formInfo.validate(function (valid) {\n if (valid) {\n _this9.markLoading = true;\n\n _this9.getUnitItem(_this9.treeData, _this9.parameter.unitId);\n\n _this9.parameter.unitGrade = _this9.treeItem.grade;\n _this9.parameter.sendStatus = 0;\n\n if (_this9.title === '新增') {\n projectsAPI.addData(_this9.parameter).then(function (res) {\n if (res.state) {\n _this9.$notify({\n type: 'success',\n message: '新增成功',\n duration: 2000\n });\n\n _this9.$emit('getData');\n\n _this9.handleClose();\n }\n\n _this9.markLoading = false;\n });\n } else {\n projectsAPI.editData(_this9.parameter).then(function (res) {\n if (res.state) {\n _this9.$notify({\n type: 'success',\n message: '修改成功',\n duration: 2000\n });\n\n _this9.$emit('getData');\n\n _this9.handleClose();\n }\n\n _this9.markLoading = false;\n });\n }\n } else {\n _this9.$message.warning('信息录入有误,请检查后保存');\n }\n });\n },\n // 推进保存\n handlePropelSave: function handlePropelSave(status) {\n var _this10 = this;\n\n this.$refs.propelInfo.validate(function (valid) {\n if (valid) {\n var msg = status ? '保存并上报' : '保存为草稿';\n\n _this10.$confirm(\"\\u786E\\u8BA4\".concat(msg, \"\\u5417\\uFF1F\"), _this10.$t('common.tips'), {\n confirmButtonText: _this10.$t('common.confirm'),\n cancelButtonText: _this10.$t('common.cancel'),\n type: 'success'\n }).then(function () {\n _this10.submitData(status, msg);\n });\n }\n });\n },\n // 提交数据\n submitData: function submitData(status, msg) {\n var _this11 = this;\n\n this.markLoading = true;\n var data = JSON.parse(JSON.stringify(this.propelInfo));\n data.status = status;\n var api = data.id ? 'propelUpdate' : 'propelAdd';\n projectsAPI[api](data).then(function (res) {\n if (res.state) {\n _this11.$notify({\n type: 'success',\n message: \"\".concat(msg, \"\\u6210\\u529F\"),\n duration: 2000\n });\n\n _this11.$emit('getData');\n\n _this11.handleClose();\n }\n\n _this11.markLoading = false;\n });\n },\n // 详情按钮修改编辑之后的 保存\n submitDataSecond: function submitDataSecond() {\n var _this12 = this;\n\n this.markLoading = true;\n var data = JSON.parse(JSON.stringify(this.propelInfo));\n projectsAPI.propelUpdate(data).then(function (res) {\n if (res.state) {\n _this12.$notify({\n type: 'success',\n message: '保存成功',\n duration: 2000\n });\n\n _this12.$emit('getData');\n\n _this12.handleClose();\n }\n\n _this12.markLoading = false;\n });\n },\n // ------------文件相关--------------\n openUploade: function openUploade() {\n this.$refs.uploadFile.open('Effect');\n },\n // 文件涉密\n setAipher: function setAipher() {\n this.$set(this.propelInfo, 'classified', '1');\n },\n // 上传附件\n setFileList: function setFileList(file) {\n file.id = file.response.fileId;\n this.propelInfo.files ? this.propelInfo.files.push(file) : this.$set(this.propelInfo, 'files', [file]);\n this.propelInfo.classified = '';\n },\n changeFileList: function changeFileList(arr) {\n this.propelInfo.files = arr;\n }\n }\n};",null]}