{"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\\performanceEvaluation\\dialog\\effectDialog.vue?vue&type=script&lang=js&","dependencies":[{"path":"D:\\jenkins\\workspace\\reform-fvue\\src\\views\\performanceEvaluation\\dialog\\effectDialog.vue","mtime":1735267498409},{"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/es6.object.keys\";\nimport \"core-js/modules/web.dom.iterable\";\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//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\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 UploadFile from '@/components/uploadFile/index.vue';\nimport FileList from '@/components/uploadFile/FileList.vue';\nimport selectProjectDialog from \"./selectProjectDialog.vue\";\nimport reformSituationDialig from \"./reformSituationDialig.vue\";\nimport RejectInfoDialog from '@/components/dialog/RejectInfoBlockDialog.vue';\nimport apiLsit from '@/api/effect';\nimport req from '@/request.js';\nimport utils from '@/utils.js';\nvar portal = window.context.portal;\nexport default {\n name: 'effectDialog',\n components: {\n UploadFile: UploadFile,\n RejectInfoDialog: RejectInfoDialog,\n FileList: FileList,\n selectProjectDialog: selectProjectDialog,\n reformSituationDialig: reformSituationDialig\n },\n data: function data() {\n var _this = this;\n\n var checkFiles = function checkFiles(rele, value, callback) {\n if (_this.detailsInfo.files && _this.detailsInfo.files.length || _this.detailsInfo.classified) {\n callback();\n } else {\n callback(new Error('* 请上传该项改革经验获肯定的佐证材料后保存提交。'));\n }\n };\n\n return {\n title: '新增',\n reqLoading: false,\n markLoading: false,\n activeCollapse: ['1', '2'],\n visible: false,\n queryParam: {\n pageBean: {\n page: 1,\n pageSize: -1\n },\n querys: [{\n group: 'main',\n operation: 'EQUAL',\n parentGroup: '',\n property: '',\n relation: 'AND',\n value: {}\n }]\n },\n basicsInfo: {},\n detailsInfo: {},\n RunwaOoptions: [],\n effectOptions: [],\n demandRunwayOptions: [],\n rules: {\n effectRunway: {\n required: true,\n message: '请选择所属跑道',\n trigger: 'change'\n },\n effectField: {\n required: true,\n message: '请选择所属领域',\n trigger: 'change'\n },\n effectCardTopic: {\n required: true,\n message: '请输入改革事项',\n trigger: 'blur'\n },\n groupName: {\n required: true,\n message: '请输入专项小组',\n trigger: 'blur'\n }\n },\n rules2: {\n effectForm: {\n required: true,\n message: '请选择成效形式',\n trigger: 'change'\n },\n specificDetails: {\n required: true,\n message: '请选择具体情形',\n trigger: 'change'\n },\n result: {\n required: true,\n message: '请条目式列举该项经验取得的主要成果',\n trigger: 'blur'\n },\n solveProblem: {\n required: true,\n message: '请条目式列举该项改革经验主要解决了什么问题',\n trigger: 'blur'\n },\n completionDate: {\n required: true,\n message: '请选择该项改革经验被肯定、推广、报道的具体时间',\n trigger: 'change'\n },\n files: [{\n required: true,\n validator: checkFiles,\n trigger: 'change'\n }]\n },\n effectLevel: '',\n routerName: ''\n };\n },\n created: function created() {\n var name = this.$route.name;\n this.routerName = name;\n this.setOPtions();\n this.getDemandData(1);\n },\n methods: {\n handleCurrentChange1: function handleCurrentChange1(data) {\n console.log(data);\n this.basicsInfo = _objectSpread(_objectSpread({}, this.basicsInfo), data);\n },\n selectProject: function selectProject() {\n var id = this.basicsInfo.projectId || '';\n this.$refs.selectProjectDialog.open(id);\n },\n selectProject1: function selectProject1() {\n var id = this.basicsInfo.reformSituationId || '';\n this.$refs.reformSituationDialig.open(id);\n },\n // 打开弹框编辑\n openDialog: function openDialog(item, title, level) {\n this.title = title;\n this.effectLevel = level;\n\n if (item) {\n this.reqLoading = true;\n this.getRunwaOoptions(item.effectField);\n\n if (item.effectRunway) {\n item.effectRunway += '';\n }\n\n this.basicsInfo = item;\n this.getDetailById(item.id, level);\n }\n\n this.visible = true;\n },\n // 根据id查询详情\n getDetailById: function getDetailById(id, level) {\n var _this2 = this;\n\n var api = level === '市级' ? 'getDetailById' : 'getQXDetailById';\n apiLsit[api](id, function (res) {\n if (level === '市级') {\n var projectName = res.projectName,\n projectId = res.projectId,\n projectType = res.projectType,\n reformSituationId = res.reformSituationId,\n reformSituationName = res.reformSituationName;\n _this2.basicsInfo.projectName = projectName;\n _this2.basicsInfo.projectId = projectId;\n _this2.basicsInfo.reformSituationId = reformSituationId;\n _this2.basicsInfo.reformSituationName = reformSituationName;\n _this2.basicsInfo.projectType = projectType;\n\n _this2.getDemandData(1);\n } else {\n _this2.getDemandData(res.effectiveness.specificDetails);\n }\n\n res.effectiveness.specificDetails += '';\n _this2.detailsInfo = res.effectiveness;\n _this2.reqLoading = false;\n });\n },\n // 根据所属领域获取所属跑道\n getRunwaOoptions: function getRunwaOoptions(pilotField) {\n var _this3 = this;\n\n var arr = utils.getDictItemsFromCache('ggbb_ssly');\n arr.forEach(function (item) {\n if (item.value == pilotField) {\n _this3.RunwaOoptions = item.lowerDic['ggbb_sspd'];\n }\n });\n },\n setOPtions: function setOPtions() {\n var arr = utils.getDictItemsFromCache('sj_ggcx_hkdfs');\n this.effectOptions = arr.filter(function (item) {\n return item.name !== '被5家中央媒体深度专题报道';\n });\n this.effectOptions.forEach(function (item) {\n item.value = item.value - 0;\n });\n },\n getDemandData: function getDemandData(val) {\n var _this4 = this;\n\n var arr = utils.getDictItemsFromCache('sj_ggcx_hkdfs');\n arr.forEach(function (item) {\n if (item.value == val) {\n _this4.demandRunwayOptions = item.lowerDic['sj_cxxs_jtqx'];\n }\n });\n },\n getDictName: function getDictName(code, value) {\n return utils.getDictName(code, value);\n },\n // ------------文件相关--------------\n openUploade: function openUploade() {\n this.$refs.uploadFile.open('Effect');\n },\n // 文件涉密\n setAipher: function setAipher() {\n this.$set(this.detailsInfo, 'classified', '1');\n },\n // 上传附件\n setFileList: function setFileList(file) {\n file.id = file.response.fileId;\n this.detailsInfo.files ? this.detailsInfo.files.push(file) : this.$set(this.detailsInfo, 'files', [file]);\n this.detailsInfo.classified = '';\n },\n changeFileList: function changeFileList(arr) {\n this.detailsInfo.files = arr;\n },\n // 新增\n handlSave: function handlSave(status) {\n var _this5 = this;\n\n var msg = status ? '保存并上报' : '保存为草稿';\n this.$refs.basicsForm.validate(function (valid) {\n _this5.$refs.recordForm.validate(function (valid1) {\n if (valid && valid1) {\n _this5.$confirm(\"\\u786E\\u5B9A\".concat(msg, \"\\u5417\\uFF1F\"), _this5.$t('common.tips'), {\n confirmButtonText: _this5.$t('common.confirm'),\n cancelButtonText: _this5.$t('common.cancel'),\n type: 'success'\n }).then(function () {\n _this5.markLoading = true;\n var api = _this5.effectLevel === '市级' ? 'effectAdd' : 'QXEffectAdd';\n var data = JSON.parse(JSON.stringify(_this5.basicsInfo));\n var effectiveness = JSON.parse(JSON.stringify(_this5.detailsInfo));\n\n if (effectiveness.files) {\n effectiveness.ids = effectiveness.files.map(function (file) {\n return file.id;\n });\n }\n\n data.effectiveness = effectiveness;\n data.effectiveness.status = status;\n apiLsit[api](data, function (res) {\n if (res.state) {\n _this5.$message.success(\"\".concat(msg, \"\\u6210\\u529F\"));\n\n _this5.handleClose();\n\n _this5.$emit('refreshData');\n }\n\n _this5.markLoading = false;\n });\n });\n }\n });\n });\n },\n // 修改\n handlUpdate: function handlUpdate(status) {\n var _this6 = this;\n\n var msg = status ? '保存并上报' : '保存为草稿';\n this.$refs.basicsForm.validate(function (valid) {\n _this6.$refs.recordForm.validate(function (valid1) {\n if (valid && valid1) {\n _this6.$confirm(\"\\u786E\\u5B9A\".concat(msg, \"\\u5417\\uFF1F\"), _this6.$t('common.tips'), {\n confirmButtonText: _this6.$t('common.confirm'),\n cancelButtonText: _this6.$t('common.cancel'),\n type: 'success'\n }).then(function () {\n _this6.markLoading = true;\n var api = _this6.effectLevel === '市级' ? 'effectUpdate' : 'QXEffectUpdate';\n var data = JSON.parse(JSON.stringify(_this6.basicsInfo));\n var effectiveness = JSON.parse(JSON.stringify(_this6.detailsInfo));\n\n if (effectiveness.files) {\n effectiveness.ids = effectiveness.files.map(function (file) {\n return file.id;\n });\n }\n\n data.effectiveness = effectiveness;\n data.effectiveness.status = status;\n apiLsit[api](data, function (res) {\n if (res.state) {\n _this6.$message.success(\"\".concat(msg, \"\\u6210\\u529F\"));\n\n _this6.handleClose();\n\n _this6.$emit('refreshData');\n }\n\n _this6.markLoading = false;\n });\n });\n }\n });\n });\n },\n // 修改保存\n handlSaveUpdate: function handlSaveUpdate() {\n var _this7 = this;\n\n this.$refs.basicsForm.validate(function (valid) {\n _this7.$refs.recordForm.validate(function (valid1) {\n if (valid && valid1) {\n _this7.$confirm(\"\\u786E\\u5B9A\\u63D0\\u4EA4\\u4FEE\\u6539\\u4FDD\\u5B58\\u5417\\uFF1F\", _this7.$t('common.tips'), {\n confirmButtonText: _this7.$t('common.confirm'),\n cancelButtonText: _this7.$t('common.cancel'),\n type: 'success'\n }).then(function () {\n _this7.markLoading = true;\n var api = _this7.effectLevel === '市级' ? 'effectUpdate' : 'QXEffectUpdate';\n var data = JSON.parse(JSON.stringify(_this7.basicsInfo));\n var effectiveness = JSON.parse(JSON.stringify(_this7.detailsInfo));\n\n if (effectiveness.files) {\n effectiveness.ids = effectiveness.files.map(function (file) {\n return file.id;\n });\n }\n\n data.effectiveness = effectiveness;\n apiLsit[api](data, function (res) {\n if (res.state) {\n _this7.$message.success(\"\\u4FEE\\u6539\\u4FDD\\u5B58\\u6210\\u529F\");\n\n _this7.handleClose();\n\n _this7.$emit('refreshData');\n }\n\n _this7.markLoading = false;\n });\n });\n }\n });\n });\n },\n // 根据id查询附件列表\n getFiles: function getFiles(id, type) {\n var _this8 = this;\n\n var data = JSON.parse(JSON.stringify(this.queryParam));\n data.querys = [{\n group: 'main',\n operation: 'EQUAL',\n parentGroup: '',\n property: 'BIZ_ID_',\n relation: 'AND',\n value: id\n }];\n req.post(portal + '/file/v1/list', data).then(function (res) {\n if (res) {\n if (type === 'pilot') {\n _this8.$set(_this8.basicsInfo, 'files', res.data.rows);\n } else if (type === 'record') {\n _this8.$set(_this8.detailsInfo, 'files', res.data.rows);\n\n _this8.checkIds = res.data.rows && res.data.rows.map(function (item) {\n return item.id;\n }) || [];\n } else if (type === 'his') {\n _this8.$set(_this8.histroyData, 'files', res.data.rows);\n }\n }\n });\n },\n // 审核通过\n handleApprove: function handleApprove() {\n var _this9 = this;\n\n var name = this.$route.name;\n var status = name == 'cityReformSchoolAuito' ? 3 : name == 'groupReformSchoolSure' ? 5 : 7;\n this.$confirm(\"\\u786E\\u8BA4\\u901A\\u8FC7?\", '提示', {\n confirmButtonText: '确认',\n cancelButtonText: '取消',\n type: 'success'\n }).then(function () {\n _this9.markLoading = true;\n var data = JSON.parse(JSON.stringify(_this9.basicsInfo));\n var effectiveness = JSON.parse(JSON.stringify(_this9.detailsInfo));\n\n if (effectiveness.files) {\n effectiveness.ids = effectiveness.files.map(function (file) {\n return file.id;\n });\n }\n\n data.effectiveness = effectiveness;\n data.effectiveness.status = status;\n apiLsit.effectUpdate(data, function (res) {\n if (res.state) {\n _this9.$message.success('通过成功');\n\n _this9.handleClose();\n\n _this9.$emit('refreshData');\n }\n\n _this9.markLoading = false;\n });\n });\n },\n // 审核驳回\n handleReject: function handleReject() {\n var _this10 = this;\n\n this.$confirm(\"\\u786E\\u8BA4\\u9A73\\u56DE?\", '提示', {\n confirmButtonText: '确认',\n cancelButtonText: '取消',\n type: 'error'\n }).then(function () {\n _this10.$refs.RejectInfoDialog.open();\n });\n },\n sendRejectInfo: function sendRejectInfo(approvalComments) {\n var _this11 = this;\n\n var name = this.$route.name;\n var status = name == 'cityReformSchoolAuito' ? 2 : name == 'groupReformSchoolSure' ? 4 : 6;\n this.markLoading = true;\n var data = JSON.parse(JSON.stringify(this.basicsInfo));\n var effectiveness = JSON.parse(JSON.stringify(this.detailsInfo));\n\n if (effectiveness.files) {\n effectiveness.ids = effectiveness.files.map(function (file) {\n return file.id;\n });\n }\n\n data.effectiveness = effectiveness;\n data.effectiveness.status = status;\n data.effectiveness.approvalComments = approvalComments;\n apiLsit.effectUpdate(data, function (res) {\n if (res.state) {\n _this11.$message.success('驳回成功');\n\n _this11.handleClose();\n\n _this11.$emit('refreshData');\n }\n\n _this11.markLoading = false;\n });\n },\n // 关闭新增人员窗口\n handleClose: function handleClose() {\n this.effectLevel = '';\n this.basicsInfo = {};\n this.detailsInfo = {};\n this.activeCollapse = ['1', '2'];\n this.visible = false;\n }\n }\n};",null]}