{"remainingRequest":"D:\\jenkins\\workspace\\reform-fvue\\node_modules\\vue-loader\\lib\\index.js??vue-loader-options!D:\\jenkins\\workspace\\reform-fvue\\src\\views\\ProjectActionIteration\\IterativeValidationAction.vue?vue&type=script&lang=js&","dependencies":[{"path":"D:\\jenkins\\workspace\\reform-fvue\\src\\views\\ProjectActionIteration\\IterativeValidationAction.vue","mtime":1716288148563},{"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//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\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 _ from 'lodash'\r\nimport moment from 'moment'\r\nimport pagination from '@/components/pagination'\r\nimport {TableMixin} from '@/mixins/tableMixin'\r\nimport dictUtils from '@/components/dict/DictSelectUtils.js'\r\nimport utils from '@/utils.js'\r\nimport majorProjects from '@/api/MajorReformProjects/majorProjects.js'\r\nimport IterativeDialog from './components/IterativeDialog.vue'\r\nimport measureIterationApplication from '@/api/projectActionIteration/measureIterationApplication.js'\r\nimport ActionDialog from './components/ActionDialog.vue'\r\nexport default {\r\n name: 'MajorProjects',\r\n components: {\r\n pagination,\r\n IterativeDialog,\r\n ActionDialog,\r\n },\r\n mixins: [TableMixin],\r\n data() {\r\n return {\r\n auditStatus: false,\r\n searchForm: {},\r\n loading: false,\r\n tableData: [],\r\n multipleSelection: [],\r\n treeData: [],\r\n querys: [\r\n {\r\n group: 'main',\r\n operation: 'LIKE',\r\n parentGroup: '',\r\n property: 'project_name_',\r\n relation: 'AND',\r\n value: '',\r\n },\r\n {\r\n group: 'main',\r\n operation: 'LIKE',\r\n parentGroup: '',\r\n property: 'leader_',\r\n relation: 'AND',\r\n value: '',\r\n },\r\n ],\r\n typeValue: [],\r\n queryParam: {\r\n pageBean: {\r\n page: 1,\r\n pageSize: 20,\r\n total: 0,\r\n },\r\n querys: [\r\n {\r\n group: 'main',\r\n operation: 'IN',\r\n parentGroup: '',\r\n property: 'h.STATUS_',\r\n relation: 'AND',\r\n value: [3, 4, 5],\r\n },\r\n ],\r\n },\r\n unitValue: [],\r\n // total: 0,\r\n // sortList: {},\r\n pilotSpecificMeasuresList: [],\r\n markLoading: false,\r\n }\r\n },\r\n\r\n created() {\r\n this.jbList = dictUtils.getDictItemsFromCache('subjec_type')\r\n this.getData(this.queryParam)\r\n },\r\n mounted() {},\r\n methods: {\r\n // 撤回\r\n handleAppear(row) {\r\n this.$confirm(`确认撤回吗?`, this.$t('common.tips'), {\r\n confirmButtonText: this.$t('common.confirm'),\r\n cancelButtonText: this.$t('common.cancel'),\r\n type: 'error',\r\n }).then(() => {\r\n this.getPilotSpecificMeasuresList(row.id, [row.status]).then(\r\n () => {\r\n let data = {\r\n ids: [],\r\n status: 3,\r\n approvalResults: 2,\r\n }\r\n this.pilotSpecificMeasuresList.forEach((e) => {\r\n data.ids.push(e.id)\r\n })\r\n measureIterationApplication.auditSave(data, (res) => {\r\n if (res.state) {\r\n row.status = 1\r\n this.$message.success('撤回成功')\r\n this.handleSearch()\r\n } else {\r\n this.$message.error('撤回失败')\r\n }\r\n this.markLoading = false\r\n })\r\n }\r\n )\r\n })\r\n },\r\n // 获取举措数据\r\n getPilotSpecificMeasuresList(id, arr) {\r\n return new Promise((reslove) => {\r\n this.markLoading = true\r\n let data = {\r\n pageBean: {\r\n page: 1,\r\n pageSize: 20,\r\n total: 0,\r\n },\r\n 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: 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: arr,\r\n },\r\n {\r\n group: 'statusGroup',\r\n operation: 'IN',\r\n parentGroup: '',\r\n property: 'h.SYN_STATUS_',\r\n relation: 'AND',\r\n value: [-1, 0],\r\n },\r\n ],\r\n }\r\n measureIterationApplication.gteAuditMeasuresDetail(\r\n data,\r\n (res) => {\r\n if (res && res.rows && res.rows.length) {\r\n this.pilotSpecificMeasuresList = res.rows\r\n }\r\n reslove()\r\n }\r\n )\r\n })\r\n },\r\n handleDbClick(data) {\r\n this.$refs.ActionDialog.title = '审核'\r\n this.$refs.ActionDialog.add(data, [3])\r\n },\r\n handleClickDetail(data) {\r\n this.$refs.ActionDialog.title = '详情'\r\n this.$refs.ActionDialog.add(data, [4, 5])\r\n },\r\n getTableData(val) {\r\n if (this.auditStatus != val) {\r\n this.auditStatus = val\r\n this.getStatusList()\r\n }\r\n },\r\n getStatusList: _.debounce(function () {\r\n this.queryParam.pageBean.page = 1\r\n this.handleSearch(1)\r\n }, 500),\r\n getDictName(code, value) {\r\n console.log(code, value)\r\n return utils.getDictName(code, value)\r\n },\r\n changeUnit(value) {\r\n let nodesObj = this.$refs['cascader'].getCheckedNodes()\r\n if (nodesObj != []) {\r\n this.querys[2].value = nodesObj[0].data.id\r\n } else {\r\n this.querys[2].value = ''\r\n }\r\n },\r\n handleSearch() {\r\n this.tableLoading = true\r\n let data = JSON.parse(JSON.stringify(this.queryParam))\r\n let obj = JSON.parse(JSON.stringify(this.searchForm))\r\n let querys = [\r\n {\r\n group: 'main',\r\n operation: 'IN',\r\n parentGroup: '',\r\n property: 'h.STATUS_',\r\n relation: 'AND',\r\n // value: this.auditStatus ? [4, 5] : [3],\r\n value: [3, 4, 5],\r\n },\r\n ]\r\n for (let i in obj) {\r\n if (obj[i]) {\r\n querys.push({\r\n group: 'main',\r\n operation: 'LIKE',\r\n parentGroup: '',\r\n property: i,\r\n relation: 'AND',\r\n value: obj[i],\r\n })\r\n }\r\n }\r\n data.querys = querys\r\n this.getData(data)\r\n },\r\n //获取数据\r\n getData(data) {\r\n this.loading = true\r\n measureIterationApplication.getMeasuresAuditList(\r\n data,\r\n true,\r\n false,\r\n (res) => {\r\n if (res.rows) {\r\n this.tableData = res.rows\r\n this.queryParam.pageBean.total = res.total\r\n this.$set(this.tableData)\r\n this.loading = false\r\n }\r\n }\r\n )\r\n },\r\n // expandHandle() {\r\n // \tthis.expandAll = !this.expandAll\r\n // \tthis.expandNodes(this.$refs.tree.store.root)\r\n // },\r\n // // 遍历树形数据,设置每一项的expanded属性,实现展开收起\r\n // expandNodes(node) {\r\n // \tnode.expanded = this.expandAll\r\n // \tfor (let i = 0; i < node.childNodes.length; i++) {\r\n // \t\tnode.childNodes[i].expanded = this.expandAll\r\n // \t\tif (node.childNodes[i].childNodes.length > 0) {\r\n // \t\t\tthis.expandNodes(node.childNodes[i])\r\n // \t\t}\r\n // \t}\r\n // },\r\n // filterNode(value, data) {\r\n // \tif (!value) return true\r\n // \treturn data.name.indexOf(value) !== -1\r\n // },\r\n // //树选中\r\n // handleNodeClick(data) {\r\n // \tthis.parentId = data.id\r\n // \tthis.querys[2].value = data.id\r\n // \tthis.getData(1)\r\n // },\r\n //添加\r\n handleAdd() {\r\n this.$refs.IterativeDialog.add()\r\n },\r\n //删除\r\n handleDelete() {\r\n this.$confirm(\r\n this.$t('common.sureDelete'),\r\n this.$t('common.tips'),\r\n {\r\n confirmButtonText: this.$t('common.confirm'),\r\n cancelButtonText: this.$t('common.cancel'),\r\n type: 'warning',\r\n }\r\n )\r\n .then(() => {\r\n majorProjects.delDate(this.multipleSelection, (res) => {\r\n if (res.state) {\r\n this.$notify({\r\n type: 'success',\r\n message: '删除成功',\r\n duration: 2000,\r\n })\r\n }\r\n this.getData(this.queryParam)\r\n })\r\n })\r\n .catch(() => {})\r\n },\r\n // //修改\r\n // handleDbClick(data) {\r\n // this.$refs.IterativeDialog.add(data)\r\n // },\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 //展示数量\r\n handleSizeChange(val) {\r\n this.queryParam.pageBean.pageSize = val\r\n this.getData(this.queryParam)\r\n },\r\n //表格页数\r\n handleCurrentChange(val) {\r\n this.queryParam.pageBean.page = val\r\n this.getData(this.queryParam)\r\n },\r\n callData() {\r\n this.getData(this.queryParam)\r\n },\r\n },\r\n}\r\n",null]}