{"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\\ReformSituation\\components\\addForm.vue?vue&type=script&lang=js&","dependencies":[{"path":"D:\\jenkins\\workspace\\reform-fvue\\src\\views\\ReformSituation\\components\\addForm.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/es7.object.get-own-property-descriptors\";\nimport \"core-js/modules/es6.object.keys\";\nimport _defineProperty from \"D:/jenkins/workspace/reform-fvue/node_modules/@babel/runtime/helpers/esm/defineProperty\";\nimport _toConsumableArray from \"D:/jenkins/workspace/reform-fvue/node_modules/@babel/runtime/helpers/esm/toConsumableArray\";\nimport \"core-js/modules/web.dom.iterable\";\nimport \"core-js/modules/es6.number.constructor\";\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//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\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 utils from '@/utils.js';\nimport UploadFile from '@/components/uploadFile/index.vue';\nimport FileList from '@/components/uploadFile/FileList.vue';\nimport apis from '@/api/ReformSituation/index.js';\nimport RejectInfoBlockDialog from '@/components/dialog/RejectInfoBlockDialog.vue';\nexport default {\n name: 'addForm',\n components: {\n UploadFile: UploadFile,\n FileList: FileList,\n RejectInfoBlockDialog: RejectInfoBlockDialog\n },\n mixins: [TableMixin],\n props: {\n judgmentDetail: {\n type: Boolean,\n default: true\n }\n },\n data: function data() {\n return {\n routeName: '',\n activeNames: '',\n markLoading: false,\n infoData: {},\n rules: {\n municipalProjectTotalNum: [{\n required: true,\n message: '请输入对接市委六届六次全会生成项目总数',\n trigger: 'change'\n }],\n selfProjectTotalNum: [{\n required: true,\n message: '请输入自主谋划项目',\n trigger: 'change'\n }],\n municipalProjectLssueNum: [{\n required: true,\n message: '请输入对接市委六届六次全会生成项目出台方案数',\n trigger: 'change'\n }],\n municipalProjectFinishNum: [{\n required: true,\n message: '请输入对接市委六届六次全会生成项目完成验收数',\n trigger: 'change'\n }],\n selfProjectLssueNum: [{\n required: true,\n message: '请输入自主谋划项目出台方案数',\n trigger: 'change'\n }],\n selfProjectFinishNum: [{\n required: true,\n message: '请输入自主谋划项目完成验收数',\n trigger: 'change'\n }],\n digtialAppiicationNum: [{\n required: true,\n message: '请输入生成数字化应用总数',\n trigger: 'change'\n }]\n },\n // 上传附件时的标识\n upIndex: 0,\n upType: '',\n // tab切换\n isHistory: false,\n tableLoading: false,\n // 需要删除的附件id\n deleteIds: [],\n // 是否可编辑\n // 拷贝数据\n reqId: '',\n unitId: '',\n title: '',\n date: '',\n loadingText: '数据加载中',\n base: {\n files: [],\n files1: [],\n files2: [],\n files3: [],\n files4: [],\n files5: [],\n files6: []\n },\n progress: {},\n demandRunwayOptions: [],\n nationsDelIds: [],\n effectsDelIds: []\n };\n },\n created: function created() {\n var _this = this;\n\n this.getDemandData();\n var name = this.$route.name;\n this.routeName = name;\n\n if (name === 'qxReformSituationPropel') {\n this.markLoading = true;\n var data = {\n pageBean: {\n page: 1,\n pageSize: 20,\n total: 0\n },\n querys: []\n };\n apis.qxPropelGetData(data, false).then(function (res) {\n if (res) {\n if (res.rows[0].id) {\n _this.getDetailById(res.rows[0].id);\n } else {\n _this.markLoading = false;\n var effects = [{\n effectCardTopic: '',\n specificDetails: '',\n files: []\n }];\n var nations = [{\n effectCardTopic: '',\n files: []\n }];\n var progress = {\n existProblem: [{\n value: ''\n }],\n workObjectives: [{\n value: ''\n }, {\n value: ''\n }, {\n value: ''\n }],\n specificMeasures: [{\n value: ''\n }],\n expectedResults: [{\n value: ''\n }]\n };\n\n _this.$set(_this, 'progress', progress);\n\n _this.$set(_this.infoData, 'effects', effects);\n\n _this.$set(_this.infoData, 'nations', nations);\n\n _this.$set(_this.base, 'yearResult', [{\n value: ''\n }]);\n }\n }\n });\n } else if (name === 'qxReviewOfReform') {\n this.markLoading = true;\n var _data = {\n pageBean: {\n page: 1,\n pageSize: 20,\n total: 0\n },\n querys: [{\n group: 'main',\n operation: 'IN',\n parentGroup: '',\n property: 'f.status_',\n relation: 'AND',\n value: [1, 2, 3, 4, 5]\n }]\n };\n apis.qxPropelGetData(_data, false).then(function (res) {\n if (res) {\n if (res.rows[0] && res.rows[0].id) {\n _this.getDetailById(res.rows[0].id);\n } else {\n _this.markLoading = false;\n }\n }\n });\n }\n },\n methods: {\n // 驳回原因查看\n opdismissedView: function opdismissedView(data) {\n this.$alert(data, '驳回详情', {\n customClass: 'message_box_alert',\n showConfirmButton: false\n });\n },\n // 撤回\n propelRevocation: function propelRevocation() {\n var _this2 = this;\n\n var msg = this.routeName === 'qxReformSituationPropel' ? '上报' : '审核';\n var status = this.routeName === 'qxReformSituationPropel' ? 0 : 1;\n this.$confirm(\"\\u786E\\u8BA4\\u64A4\\u56DE\\u5DF2\".concat(msg, \"\\u6570\\u636E\\u5417\\uFF1F\"), this.$t('common.tips'), {\n confirmButtonText: this.$t('common.confirm'),\n cancelButtonText: this.$t('common.cancel'),\n type: 'warning'\n }).then(function () {\n _this2.markLoading = true;\n var data = {\n id: _this2.infoData.id,\n status: status\n };\n apis.qxPropelRevocation(data).then(function (res) {\n if (res.state) {\n _this2.$message.success('撤回成功');\n\n _this2.infoData.status = status;\n _this2.markLoading = false;\n }\n });\n });\n },\n isEdit: function isEdit() {\n return true;\n var status = this.infoData.status;\n\n if (this.routeName === 'qxReformSituationPropel') {\n return status === 0 || status === 2 || status === 4 || status === 5;\n } else if (this.routeName === 'qxReformSituationPropel') {\n return status === 1 || status === 2 || status === 3;\n } else {\n return status === 4 || status === 5 || status === 6;\n }\n },\n // 完成验收\n completeNumChange: function completeNumChange(type) {\n if (!type) {\n var _this$base = this.base,\n municipalProjectFinishNum = _this$base.municipalProjectFinishNum,\n municipalProjectLssueNum = _this$base.municipalProjectLssueNum;\n\n if (Number(municipalProjectFinishNum) > Number(municipalProjectLssueNum)) {\n this.base.municipalProjectFinishNum = '';\n this.$message.error('完成验收数应不超过出台方案数');\n }\n } else {\n var _this$base2 = this.base,\n selfProjectFinishNum = _this$base2.selfProjectFinishNum,\n selfProjectLssueNum = _this$base2.selfProjectLssueNum;\n\n if (Number(selfProjectFinishNum) > Number(selfProjectLssueNum)) {\n this.base.selfProjectFinishNum = '';\n this.$message.error('完成验收数应不超过出台方案数');\n }\n }\n },\n deleteTableData: function deleteTableData(key, index, item) {\n var _this3 = this;\n\n this.$confirm(\"\\u786E\\u8BA4\\u5220\\u9664\\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 _this3.infoData[key].splice(index, 1);\n\n if (item.id) {\n _this3[\"\".concat(key, \"DelIds\")].push(item.id);\n }\n });\n },\n deleteTextData: function deleteTextData(type, key, index) {\n var _this4 = this;\n\n this.$confirm(\"\\u786E\\u8BA4\\u5220\\u9664\\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 _this4[type][key].splice(index, 1);\n });\n },\n municipalProjectTotalChange: function municipalProjectTotalChange(val, type) {\n if (val === 0) return;\n this.planValueChange(type, 'total');\n },\n planValueChange: function planValueChange(type, key) {\n if (type === 0) {\n var _this$base3 = this.base,\n municipalProjectTotalNum = _this$base3.municipalProjectTotalNum,\n municipalProjectLssueNum = _this$base3.municipalProjectLssueNum;\n\n if (Number(municipalProjectLssueNum) > Number(municipalProjectTotalNum)) {\n this.$message.error('出台方案数应不超过生成项目总数');\n\n if (key === 'total') {\n this.base.municipalProjectTotalNum = '';\n } else {\n this.base.municipalProjectLssueNum = '';\n }\n\n this.municipalProjectPlanNum = '';\n return;\n }\n\n var value = Number(this.base.municipalProjectTotalNum) - Number(this.base.municipalProjectLssueNum);\n this.$set(this.base, 'municipalProjectPlanNum', value);\n } else {\n var _this$base4 = this.base,\n selfProjectTotalNum = _this$base4.selfProjectTotalNum,\n selfProjectLssueNum = _this$base4.selfProjectLssueNum;\n\n if (Number(selfProjectLssueNum) > Number(selfProjectTotalNum)) {\n this.$message.error('出台方案数应不超过项目总数');\n\n if (key === 'total') {\n this.base.selfProjectTotalNum = '';\n } else {\n this.base.selfProjectLssueNum = '';\n }\n\n this.selfProjectPlanNum = '';\n return;\n }\n\n var _value = Number(this.base.selfProjectTotalNum) - Number(this.base.selfProjectLssueNum);\n\n this.$set(this.base, 'selfProjectPlanNum', _value);\n }\n },\n getDemandData: function getDemandData() {\n var _this5 = this;\n\n var arr = utils.getDictItemsFromCache('sj_ggcx_hkdfs');\n arr.forEach(function (item) {\n if (item.value == 1) {\n _this5.demandRunwayOptions = item.lowerDic['sj_cxxs_jtqx'];\n }\n });\n },\n // 保存\n handlerSave: function handlerSave(status) {\n var _this6 = this;\n\n this.$refs['form'].validate(function (valid) {\n if (valid) {\n var msg = status ? '保存并上报' : '保存为草稿';\n\n _this6.$confirm(\"\\u786E\\u8BA4\".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.submitData(status, msg);\n });\n }\n });\n },\n // 审核通过\n handleVerify: function handleVerify(status) {\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: 'warning'\n }).then(function () {\n _this7.infoData.approvalResults = 0;\n _this7.infoData.approvalComments = '';\n\n _this7.submitData(status, '审核通过');\n });\n },\n // 驳回确认\n handleReject: function handleReject() {\n var _this8 = 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 _this8.$refs.RejectInfoBlockDialog.open();\n });\n },\n // 驳回提交数据\n sendRejectInfo: function sendRejectInfo(rejectInfo) {\n var status = this.$route.name == 'qxReviewOfReform' ? 2 : 4;\n\n if (!rejectInfo) {\n this.saveLoading = false;\n return;\n }\n\n this.infoData.approvalResults = 1;\n this.infoData.approvalComments = rejectInfo;\n this.submitData(status, '审核驳回');\n },\n // 提交\n submitData: function submitData(status, msg) {\n var _this9 = this;\n\n this.markLoading = true;\n var base = JSON.parse(JSON.stringify(this.base));\n base.yearResult = JSON.stringify(this.base.yearResult);\n base.files = [].concat(_toConsumableArray(base.files), _toConsumableArray(base.files1), _toConsumableArray(base.files2), _toConsumableArray(base.files3), _toConsumableArray(base.files4), _toConsumableArray(base.files5), _toConsumableArray(base.files6));\n var progress = JSON.parse(JSON.stringify(this.progress));\n progress.existProblem = JSON.stringify(this.progress.existProblem);\n progress.expectedResults = JSON.stringify(this.progress.expectedResults);\n progress.specificMeasures = JSON.stringify(this.progress.specificMeasures);\n progress.workObjectives = JSON.stringify(this.progress.workObjectives);\n var data = JSON.parse(JSON.stringify(this.infoData));\n data.base = base;\n data.progress = progress;\n data.fillDate = '2024-12-01';\n data.fillMonth = '12';\n data.fillYear = '2024';\n data.status = status;\n var api = data.id ? 'qxAdvanceUpdate' : 'qxAdvanceEntry';\n apis[api](data).then(function (res) {\n if (res.state) {\n _this9.$message.success(\"\".concat(msg, \"\\u6210\\u529F\"));\n\n _this9.closeDialog();\n\n _this9.infoData.status = status;\n\n if (_this9.effectsDelIds.length) {\n apis.effectsDeleteById(_this9.effectsDelIds).then(function (res) {\n console.log(res);\n });\n }\n\n if (_this9.nationsDelIds.length) {\n apis.nationsDeleteById(_this9.nationsDelIds).then(function (res) {\n console.log(res);\n });\n }\n\n if (msg === '保存为草稿') {\n var _data2 = {\n pageBean: {\n page: 1,\n pageSize: 20,\n total: 0\n },\n querys: []\n };\n apis.qxPropelGetData(_data2, false).then(function (res) {\n if (res) {\n if (res.rows[0].id) {\n _this9.getDetailById(res.rows[0].id);\n }\n }\n\n _this9.markLoading = false;\n });\n } else {\n _this9.markLoading = false;\n }\n }\n }).finally(function () {});\n },\n // 根据id查询详情\n getDetailById: function getDetailById(id) {\n var _this10 = this;\n\n apis.qxGetPropelDetail(id).then(function (res) {\n if (res) {\n var data = JSON.parse(JSON.stringify(res));\n\n if (data.status === 5 && _this10.routeName === 'qxReformSituationPropel') {\n data.progress = {\n existProblem: [{\n value: ''\n }],\n workObjectives: [{\n value: ''\n }, {\n value: ''\n }, {\n value: ''\n }],\n specificMeasures: [{\n value: ''\n }],\n expectedResults: [{\n value: ''\n }]\n };\n } else {\n data.progress.existProblem = res.progress.existProblem ? JSON.parse(res.progress.existProblem) : [{\n value: ''\n }];\n data.progress.workObjectives = res.progress.existProblem ? JSON.parse(res.progress.workObjectives) : [{\n value: ''\n }];\n data.progress.specificMeasures = res.progress.existProblem ? JSON.parse(res.progress.specificMeasures) : [{\n value: ''\n }];\n data.progress.expectedResults = res.progress.existProblem ? JSON.parse(res.progress.expectedResults) : [{\n value: ''\n }];\n }\n\n data.base.yearResult = res.progress.existProblem ? JSON.parse(res.base.yearResult) : [{\n value: ''\n }];\n data.effects = !data.effects || !data.effects.length ? [{\n effectCardTopic: '',\n specificDetails: '',\n files: []\n }] : data.effects;\n data.nations = !data.nations || !data.nations.length ? [{\n effectCardTopic: '',\n files: []\n }] : data.nations;\n\n if (!data.base.files || !data.base.files.length) {\n data.base.files = [];\n data.base.files1 = [];\n data.base.files2 = [];\n data.base.files3 = [];\n data.base.files4 = [];\n data.base.files5 = [];\n data.base.files6 = [];\n } else {\n var files = JSON.parse(JSON.stringify(data.base.files));\n data.base.files = files.filter(function (file) {\n return file.bizCode === 'municipalProjectPlan';\n });\n data.base.files1 = files.filter(function (file) {\n return file.bizCode === 'selfProjectPlan';\n });\n data.base.files2 = files.filter(function (file) {\n return file.bizCode === 'countyDigtialApp';\n });\n data.base.files3 = files.filter(function (file) {\n return file.bizCode === 'municipalProjectLssue';\n });\n data.base.files4 = files.filter(function (file) {\n return file.bizCode === 'selfProjectLssue';\n });\n data.base.files5 = files.filter(function (file) {\n return file.bizCode === 'municipalProjectFinish';\n });\n data.base.files6 = files.filter(function (file) {\n return file.bizCode === 'selfProjectFinish';\n });\n }\n\n _this10.$set(_this10, 'base', JSON.parse(JSON.stringify(data.base)));\n\n _this10.$set(_this10, 'progress', JSON.parse(JSON.stringify(data.progress)));\n\n _this10.$emit('offMark');\n\n if (data.status === 5 && _this10.routeName === 'qxReformSituationPropel') {\n data.id = '';\n }\n\n _this10.infoData = data;\n _this10.markLoading = false;\n }\n });\n },\n // 附件相关\n openUploade: function openUploade(type, index, code) {\n this.upIndex = index;\n this.upType = type;\n this.$refs.uploadFile.open(code);\n },\n setFileList: function setFileList(res) {\n var file = _objectSpread(_objectSpread({}, res), {}, {\n id: res.response.fileId\n });\n\n var upIndex = this.upIndex,\n upType = this.upType;\n\n if (upType === 'base') {\n var str = upIndex > 0 ? \"files\".concat(upIndex) : 'files';\n\n if (!this.base[str]) {\n this.$set(this.base, str, [file]);\n } else {\n this.base[str].push(file);\n }\n } else {\n if (!this.infoData[upType][upIndex].files) {\n this.$set(this.infoData[upType][upIndex], 'files', [file]);\n } else {\n this.infoData[upType][upIndex].files.push(file);\n }\n }\n },\n // 删除附件\n changeFileList: function changeFileList(arr, index, type) {\n if (type !== 'base') {\n this.infoData[type][index].files = arr;\n } else {\n var key = index ? \"files\".concat(index) : 'files';\n this[type][key] = arr;\n }\n },\n //\n idExist: function idExist(id) {\n this.deleteIds.push(id);\n },\n listAdd: function listAdd(type, key) {\n if (this[type][key]) {\n this[type][key].push({\n value: ''\n });\n } else {\n this.$set(this[type], key, [{\n value: ''\n }]);\n }\n },\n // tab切换\n tabToggle: function tabToggle(e) {\n if (e) {\n var data = {\n id: '',\n isAffirm: false,\n date: this.date\n };\n\n if (this.routeName === 'AdvanceApproval') {\n data.id = this.unitId;\n data.isAffirm = true;\n }\n\n this.oldData ? this.infoData = JSON.parse(JSON.stringify(this.oldData)) : this.getHistory(data);\n } else {\n if (this.copyData) {\n this.infoData = JSON.parse(JSON.stringify(this.copyData));\n this.setRunwayOptions(this.infoData);\n } else {\n this.getDetail(this.reqId);\n } // this.copyData ? this.infoData = JSON.parse(JSON.stringify(this.copyData)) :\n // this.getDetail(this.reqId)\n\n }\n\n this.isHistory = e;\n },\n addCoreIndex: function addCoreIndex(type) {\n if (type === 'nations') {\n if (this.infoData.nations) {\n this.infoData.nations.push({\n effectCardTopic: '',\n files: []\n });\n } else {\n this.$set(this.infoData, 'nations', [{\n effectCardTopic: '',\n files: []\n }]);\n }\n }\n\n if (type === 'effects') {\n if (this.infoData.effects) {\n this.infoData.effects.push({\n effectCardTopic: '',\n specificDetails: '',\n files: []\n });\n } else {\n this.$set(this.infoData, 'effects', [{\n effectCardTopic: '',\n specificDetails: '',\n files: []\n }]);\n }\n }\n },\n closeDialog: function closeDialog() {\n if (this.routeName === 'qxApprovalOfReform') {\n this.infoData = {};\n this.base = {\n files: [],\n files1: [],\n files2: [],\n files3: [],\n files4: [],\n files5: [],\n files6: []\n }, this.progress = {};\n }\n\n this.$emit('closeDialog');\n }\n }\n};",null]}