{"remainingRequest":"D:\\jenkins\\workspace\\reform-fvue\\node_modules\\vue-loader\\lib\\index.js??vue-loader-options!D:\\jenkins\\workspace\\reform-fvue\\src\\views\\ProjectActionIteration\\components\\ActionDialog.vue?vue&type=script&lang=js&","dependencies":[{"path":"D:\\jenkins\\workspace\\reform-fvue\\src\\views\\ProjectActionIteration\\components\\ActionDialog.vue","mtime":1716260780754},{"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":["//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n\r\nimport moment from 'moment'\r\nimport org from '@/api/org.js'\r\nimport utils from '@/utils.js'\r\nimport dictUtils from '@/components/dict/DictSelectUtils.js'\r\nimport measureIterationApplication from '@/api/projectActionIteration/measureIterationApplication.js'\r\nimport ActionDetailsDialog from './ActionDetailsDialog.vue'\r\nimport RejectInfoDialog from '@/components/dialog/RejectInfoBlockDialog.vue'\r\nexport default {\r\n name: 'ActionDialog',\r\n components: {\r\n ActionDetailsDialog,\r\n RejectInfoDialog,\r\n },\r\n data() {\r\n return {\r\n visible: false,\r\n title: '新增',\r\n loading: false,\r\n saveLoading: false,\r\n cancelloading: false,\r\n tableData: [],\r\n queryParam: {\r\n pageBean: {\r\n page: 1,\r\n pageSize: -1,\r\n },\r\n },\r\n parameter: {},\r\n params: {\r\n ids: [],\r\n status: null,\r\n },\r\n statusValue: [],\r\n markLoading: false\r\n }\r\n },\r\n created() {\r\n // console.log(dictUtils.getDictItemsFromCache('shzt'))\r\n },\r\n mounted() { },\r\n methods: {\r\n deleteList(row, index) {\r\n this.$confirm('确认删除这条数据吗?', '提示', {\r\n confirmButtonText: '确认',\r\n cancelButtonText: '取消',\r\n type: 'error'\r\n }).then(() => {\r\n if (row.id) {\r\n this.markLoading = true\r\n measureIterationApplication.deleteAddById(row.id, true, res => {\r\n if (res.state) {\r\n this.$message.success('删除成功')\r\n this.parameter.pilotSpecificMeasuresList.splice(index, 1)\r\n }\r\n this.markLoading = false\r\n })\r\n } else {\r\n this.parameter.pilotSpecificMeasuresList.splice(index, 1)\r\n }\r\n })\r\n },\r\n getData(val, index) {\r\n console.log(val, index)\r\n if (index >= 0) {\r\n this.$set(this.parameter.pilotSpecificMeasuresList, index, val)\r\n } else {\r\n this.parameter.pilotSpecificMeasuresList.push(val)\r\n this.$set(this.parameter)\r\n }\r\n },\r\n getDictName(code, value) {\r\n return utils.getDictName(code, value)\r\n },\r\n //表格选中\r\n handleSelectionChange(val) {\r\n this.multipleSelection = []\r\n this.$refs.multipleSelection.selection.forEach((item) => {\r\n this.multipleSelection.push(item.id)\r\n })\r\n },\r\n add(val, arr) {\r\n this.statusValue = arr\r\n this.parameter = JSON.parse(JSON.stringify(val))\r\n this.parameter.updateTime = moment(this.parameter.updateTime).format(\r\n 'YYYY-MM-DD'\r\n )\r\n this.visible = true\r\n this.measureData()\r\n },\r\n //获取列表\r\n measureData() {\r\n this.loading = true\r\n // this.parameter.pilotSpecificMeasuresList = []\r\n this.queryParam.querys = [\r\n {\r\n group: 'main',\r\n operation: 'EQUAL',\r\n parentGroup: '',\r\n property: 'h.project_id_',\r\n relation: 'AND',\r\n value: this.parameter.id,\r\n },\r\n {\r\n group: 'statusGroup',\r\n operation: 'IN',\r\n parentGroup: '',\r\n property: 'h.status_',\r\n relation: 'AND',\r\n value: this.statusValue,\r\n },\r\n {\r\n group: 'statusGroup',\r\n operation: 'EQUAL',\r\n parentGroup: '',\r\n property: 'h.SYN_STATUS_',\r\n relation: 'AND',\r\n value: this.title == '审核' ? -1 : '',\r\n },\r\n ]\r\n // measureIterationApplication.auditQuery(this.queryParam, (res) => {\r\n measureIterationApplication.gteAuditMeasuresDetail(this.queryParam, (res) => {\r\n if (res && res.rows && res.rows.length) {\r\n // this.$set(\r\n // this.parameter,\r\n // 'pilotSpecificMeasuresList',\r\n // res.rows\r\n // )\r\n this.parameter.pilotSpecificMeasuresList = res.rows\r\n }\r\n this.loading = false\r\n })\r\n },\r\n // 关闭新增人员窗口\r\n handleClose() {\r\n this.visible = false\r\n this.cancelloading = false\r\n this.saveLoading = false\r\n this.parameter = {}\r\n this.title = ''\r\n },\r\n //编辑\r\n handleDbClick(val) {\r\n this.$refs.ActionDetailsDialog.edit(val)\r\n },\r\n // 审核驳回意见\r\n handleReject() {\r\n this.saveLoading = true\r\n let status = 2\r\n let message = '确认驳回吗?'\r\n this.btnLoading = true\r\n this.$confirm(message, this.$t('common.tips'), {\r\n confirmButtonText: this.$t('common.confirm'),\r\n cancelButtonText: this.$t('common.cancel'),\r\n type: 'error',\r\n })\r\n .then(() => {\r\n this.$refs.rejectInfoDialog.open(\r\n '/majorProjects/pilotSpecificMeasures/v1/iteration',\r\n status\r\n )\r\n })\r\n .catch(() => {\r\n this.saveLoading = false\r\n })\r\n },\r\n // 处理填写的驳回意见\r\n sendRejectInfo(rejectInfo, api, status) {\r\n if (!rejectInfo) {\r\n this.saveLoading = false\r\n return\r\n }\r\n this.submit(rejectInfo)\r\n // let data = {\r\n // approvalComments: rejectInfo,\r\n // ids: this.projectInfo.id,\r\n // status: status, //3-责任单位领导审核通过 5-市委改革办审核通过\r\n // }\r\n // measureIterationApplication.auditSave(this.params, (res) => {\r\n // if (res.state) {\r\n // this.$message.success('驳回成功')\r\n // this.$parent.reload()\r\n // this.handleClose()\r\n // } else {\r\n // this.$message.warning(res.message)\r\n // }\r\n // this.saveLoading = false\r\n // })\r\n },\r\n //驳回\r\n submit(approvalComments) {\r\n this.cancelloading = true\r\n this.params.ids = []\r\n this.parameter.pilotSpecificMeasuresList.forEach((e) => {\r\n this.params.ids.push(e.id)\r\n })\r\n this.params.status = this.$route.name == 'IterativeValidationAction' ? 4 : 2\r\n if (this.params.ids.length <= 0) {\r\n this.$message.warning('暂无可驳回数据')\r\n this.cancelloading = false\r\n return\r\n }\r\n this.params.approvalComments = approvalComments\r\n measureIterationApplication.auditSave(this.params, (res) => {\r\n if (res.state) {\r\n this.$message.success('驳回成功')\r\n this.cancelloading = false\r\n this.$emit('getData')\r\n this.handleClose()\r\n }\r\n this.saveLoading = false\r\n })\r\n },\r\n // 通过\r\n handleSave(row) {\r\n this.saveLoading = true\r\n this.params.ids = []\r\n this.parameter.pilotSpecificMeasuresList.forEach((e) => {\r\n this.params.ids.push(e.id)\r\n })\r\n this.params.status = this.$route.name == 'IterativeValidationAction' ? 5 : 3\r\n if (this.params.ids.length <= 0) {\r\n this.$message.warning('暂无可审核数据')\r\n this.saveLoading = false\r\n return\r\n }\r\n measureIterationApplication.auditSave(this.params, (res) => {\r\n if (res.state) {\r\n row.status = 3\r\n this.$message.success('审核成功')\r\n\r\n this.$emit('getData')\r\n this.handleClose()\r\n }\r\n this.saveLoading = false\r\n })\r\n },\r\n },\r\n}\r\n",null]}