{"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\\cityProjectDialog.vue?vue&type=script&lang=js&","dependencies":[{"path":"D:\\jenkins\\workspace\\reform-fvue\\src\\views\\ReformSituation\\components\\cityProjectDialog.vue","mtime":1740996014375},{"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 \"core-js/modules/es6.function.name\";\nimport _defineProperty from \"D:/jenkins/workspace/reform-fvue/node_modules/@babel/runtime/helpers/esm/defineProperty\";\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//\nimport { TableMixin } from '@/mixins/tableMixin';\nimport projectsAPI from '@/api/municipalReform';\nimport auditApi from '@/api/ReformSituation/reformAudit';\nimport FileList from '@/components/uploadFile/FileList.vue';\nimport UploadFile from '@/components/uploadFile/index.vue';\nimport RejectInfoBlockDialog from '@/components/dialog/RejectInfoBlockDialog.vue';\nexport default {\n name: 'projectsDialog',\n components: {\n RejectInfoBlockDialog: RejectInfoBlockDialog,\n UploadFile: UploadFile,\n FileList: FileList\n },\n mixins: [TableMixin],\n data: function data() {\n var _this = this;\n\n var numberEndRule1 = function numberEndRule1(rule, value, callback) {\n if (_this.basicList.partyProjectTotalNum != null) {\n if (_this.basicList.partyProjectTotalNum < _this.basicList.partyProjectFinishNum) {\n callback(new Error('承担改革任务数必须大于等于已完成改革任务数'));\n } else {\n callback();\n }\n } else {\n callback(new Error('请先输入承担改革任务数'));\n }\n };\n\n var numberEndRule2 = function numberEndRule2(rule, value, callback) {\n if (_this.basicList.newProjectTotalMum != null) {\n if (_this.basicList.newProjectTotalMum < _this.basicList.newProjectFinishNum) {\n callback(new Error('已完成调研数必须大于等于承担项目数'));\n } else {\n callback();\n }\n } else {\n callback(new Error('请先输入承担任务数'));\n }\n };\n\n var numberEndRule3 = function numberEndRule3(rule, value, callback) {\n if (_this.basicList.newProjectTotalMum != null) {\n if (_this.basicList.newProjectTotalMum < _this.basicList.newProjectPlanNum) {\n callback(new Error('已出台方案数必须大于等于承担项目数'));\n } else {\n callback();\n }\n } else {\n callback(new Error('请先输入承担任务数'));\n }\n };\n\n var numberEndRule4 = function numberEndRule4(rule, value, callback) {\n if (_this.basicList.centerFileTotalNum != null) {\n if (_this.basicList.centerFileTotalNum < _this.basicList.centerFileFinishNum) {\n callback(new Error('需对接落实数必须大于等于已对接落实数'));\n } else {\n callback();\n }\n } else {\n callback(new Error('请先输入需对接落实数'));\n }\n };\n\n return {\n title: '新增',\n visible: false,\n markLoading: false,\n reqLoading: false,\n year: '',\n rules: {\n groupName: [{\n required: true,\n message: '请选择专项小组',\n trigger: 'change'\n }],\n partyProjectTotalNum: [{\n required: true,\n message: '请输入承担改革任务数',\n trigger: 'blur'\n }],\n partyProjectFinishNum: [{\n required: true,\n validator: numberEndRule1,\n trigger: 'blur'\n }],\n otherProjectNum: [{\n required: true,\n message: '请输入其他改革项目数',\n trigger: 'blur'\n }],\n municipalProjectAssumeNum: [{\n required: true,\n message: '请输入承担63项重大改革项目数',\n trigger: 'blur'\n }],\n municipalProjectPlanNum: [{\n required: true,\n message: '请输入已出台方案数',\n trigger: 'blur'\n }],\n municipalSpeedIndexMum: [{\n required: true,\n message: '请输入加快实施项目核心指标数',\n trigger: 'blur'\n }],\n municipalSpeedIndexMean: [{\n required: true,\n message: '请输入加快实施项目核心指标进度平均值',\n trigger: 'blur'\n }],\n municipalCommonNum: [{\n required: true,\n message: '请输入常态化实施数',\n trigger: 'blur'\n }],\n newProjectTotalMum: [{\n required: true,\n message: '请输入承担项目数',\n trigger: 'blur'\n }],\n newProjectFinishNum: [{\n required: true,\n validator: numberEndRule2,\n trigger: 'blur'\n }],\n newProjectPlanNum: [{\n required: true,\n validator: numberEndRule3,\n trigger: 'blur'\n }],\n newSpeedIndexNum: [{\n required: true,\n message: '请输入加快实施项目核心指标数',\n trigger: 'blur'\n }],\n newSpeedIndexMean: [{\n required: true,\n message: '请输入加快实施项目核心指标进度平均值',\n trigger: 'blur'\n }],\n centerFileTotalNum: [{\n required: true,\n message: '请输入需对接落实数',\n trigger: 'blur'\n }],\n centerFileFinishNum: [{\n required: true,\n validator: numberEndRule4,\n trigger: 'blur'\n }],\n appOnlineNum: [{\n required: true,\n message: '请输入上线数',\n trigger: 'blur'\n }],\n appThroughNum: [{\n required: true,\n message: '请输入贯通数',\n trigger: 'blur'\n }],\n appPracticeNum: [{\n required: true,\n message: '请输入实战数',\n trigger: 'blur'\n }],\n appDigitizationRate: [{\n required: true,\n message: '请输入核心业务数字化率',\n trigger: 'blur'\n }],\n pointTotalNum: [{\n required: true,\n message: '请输入二十大以来承担中央部署改革试点数',\n trigger: 'blur'\n }],\n pointFinishNum: [{\n required: true,\n message: '请输入二十大以来中央部署改革试点任务完成数',\n trigger: 'blur'\n }],\n pointNewNum: [{\n required: true,\n message: '请输入今年新争取到中央改革试点数',\n trigger: 'blur'\n }],\n resultAffirmNum: [{\n required: true,\n message: '请输入今年改革经验获全国性肯定次数',\n trigger: 'blur'\n }],\n resultAwardNum: [{\n required: true,\n message: '请输入近年获评改革创新奖数量',\n trigger: 'blur'\n }],\n resultCaseNum: [{\n required: true,\n message: '请输入近年指导推广基层改革典型案例数量',\n trigger: 'blur'\n }]\n },\n basicList: {\n problem: [{\n value: ''\n }],\n files: []\n },\n infoData: {\n status: 1,\n approvalComments: ''\n },\n groupNameOptions: [{\n label: '党建统领体制改革专项小组',\n value: '党建统领体制改革专项小组'\n }, {\n label: '经济体制改革专项小组',\n value: '经济体制改革专项小组'\n }, {\n label: '社会民生领域改革专项小组',\n value: '社会民生领域改革专项小组'\n }, {\n label: '民主与法制领域改革专项小组',\n value: '民主与法制领域改革专项小组'\n }, {\n label: '文化体制改革专项小组',\n value: '文化体制改革专项小组'\n }, {\n label: '平安法治领域改革专项小组',\n value: '平安法治领域改革专项小组'\n }, {\n label: '其他',\n value: '其他'\n }]\n };\n },\n created: function created() {\n var moment = require('moment');\n\n this.year = moment().format('YYYY');\n },\n mounted: function mounted() {},\n methods: {\n isEdit: function isEdit() {\n return true;\n },\n // 弹层进入事件\n open: function open(data, title) {\n this.visible = true;\n this.title = title;\n\n if (data && data.id) {\n //编辑\n this.getDetailDataChange(data.id);\n } else {// 新增\n // this.getSelfmotionData()\n }\n },\n //获取自动抓取数据\n\n /*getSelfmotionData() {\r\n projectsAPI.getAutoDetail().then(res => {\r\n this.basicList = {...this.basicList, ...res.value}\r\n if (res.value.nationwideCondition) {\r\n this.basicList.nationwideCondition = JSON.parse(\r\n res.value.nationwideCondition\r\n )\r\n if (\r\n Array.isArray(this.basicList.nationwideCondition) &&\r\n this.basicList.nationwideCondition.length !== 0\r\n ) {\r\n this.basicList.nationwideCondition = this.basicList.nationwideCondition.map(\r\n data => {\r\n data.isShow = true\r\n return data\r\n }\r\n )\r\n }\r\n }\r\n if (res.value.superiorSupportCondition) {\r\n this.basicList.superiorSupportCondition = JSON.parse(\r\n res.value.superiorSupportCondition\r\n )\r\n if (\r\n Array.isArray(this.basicList.superiorSupportCondition) &&\r\n this.basicList.superiorSupportCondition.length !== 0\r\n ) {\r\n this.basicList.superiorSupportCondition = this.basicList.superiorSupportCondition.map(\r\n data => {\r\n data.isShow = true\r\n return data\r\n }\r\n )\r\n }\r\n }\r\n })\r\n },*/\n // 编辑获取详情\n getDetailDataChange: function getDetailDataChange(id) {\n var _this2 = this;\n\n projectsAPI.getDetailById(id).then(function (res) {\n _this2.basicList = res;\n _this2.basicList.problem = JSON.parse(res.problem);\n });\n },\n // 删除表单中的列表\n deleteTextData: function deleteTextData(type, key, index) {\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[type][key].splice(index, 1);\n });\n },\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 // 清空数据\n handleClose: function handleClose() {\n var _this4 = this;\n\n this.basicList = {\n problem: [{\n value: ''\n }],\n files: []\n };\n this.visible = false;\n this.$nextTick(function () {\n _this4.$refs.form.clearValidate();\n });\n },\n // 删除附件\n changeFileList: function changeFileList(arr, type) {\n this.basicList.files = arr;\n },\n // 附件相关\n openUploade: function openUploade(code) {\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 this.basicList.files.push(file);\n },\n // 保存方法\n handlerSave: function handlerSave(status) {\n var _this5 = this;\n\n this.$refs['form'].validate(function (valid) {\n if (valid) {\n var msg = status ? '保存并上报' : '保存为草稿';\n\n _this5.$confirm(\"\\u786E\\u8BA4\".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.saveData(status, msg);\n }).catch(function () {});\n }\n });\n },\n // 保存数据\n saveData: function saveData(status, msg) {\n var _this6 = this;\n\n this.markLoading = true;\n var api = this.basicList.id ? 'editData' : 'createdProject';\n var data = JSON.parse(JSON.stringify(this.basicList));\n data.status = status;\n data.problem = JSON.stringify(data.problem);\n projectsAPI[api](data).then(function (res) {\n if (res.state) {\n _this6.$message.success(\"\".concat(msg, \"\\u6210\\u529F\"));\n\n _this6.$emit('getData');\n\n _this6.handleClose();\n\n _this6.markLoading = false;\n } else {\n _this6.markLoading = false;\n }\n }).catch(function (err) {\n _this6.markLoading = false;\n });\n },\n // 审核通过\n handleApprove: function handleApprove() {\n var _this7 = this;\n\n var name = this.$route.name;\n status = name === 'ReviewOfReform' ? 3 : name === 'CityReformSituationPropel' ? 5 : 7;\n this.$confirm(\"\\u786E\\u8BA4\\u901A\\u8FC7?\", '提示', {\n confirmButtonText: '确认',\n cancelButtonText: '取消',\n type: 'success'\n }).then(function () {\n _this7.submitData(status, '审核');\n }).catch(function () {});\n },\n // 审核驳回\n handleReject: function handleReject() {\n var _this8 = this;\n\n this.$confirm(\"\\u786E\\u8BA4\\u9A73\\u56DE?\", '提示', {\n confirmButtonText: '确认',\n cancelButtonText: '取消',\n type: 'error'\n }).then(function () {\n _this8.$refs.RejectInfoBlockDialog.open();\n }).catch(function () {});\n },\n // 驳回提交数据\n sendRejectInfo: function sendRejectInfo(rejectInfo) {\n var name = this.$route.name;\n status = name === 'ReviewOfReform' ? 2 : name === 'CityReformSituationPropel' ? 4 : 6;\n\n if (!rejectInfo) {\n this.saveLoading = false;\n return;\n }\n\n this.submitData(status, '审核驳回', rejectInfo);\n },\n // 修改状态\n submitData: function submitData(status, msg) {\n var _this9 = this;\n\n var rejectInfo = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : '';\n console.log(status, '------------');\n this.markLoading = true;\n var data = {\n status: status,\n id: this.basicList.id\n };\n\n if (status === '2' || status === '4' || status === '6') {\n data.approvalComments = rejectInfo;\n } else {\n data.approvalComments = '';\n }\n\n auditApi.updateMunStatus(data, function (res) {\n if (res.state) {\n _this9.$message.success(\"\".concat(msg, \"\\u6210\\u529F\"));\n\n _this9.$emit('getData');\n\n _this9.handleClose();\n\n _this9.markLoading = false;\n } else {\n _this9.markLoading = false;\n }\n });\n },\n // 驳回原因查看\n opdismissedView: function opdismissedView(data) {\n this.$alert(data, '驳回详情', {\n customClass: 'message_box_alert',\n showConfirmButton: false\n });\n }\n }\n};",null]}