{"remainingRequest":"D:\\jenkins\\workspace\\reform-fvue\\node_modules\\vue-loader\\lib\\index.js??vue-loader-options!D:\\jenkins\\workspace\\reform-fvue\\src\\views\\ProjectActionIteration\\MeasureIterationApplication.vue?vue&type=script&lang=js&","dependencies":[{"path":"D:\\jenkins\\workspace\\reform-fvue\\src\\views\\ProjectActionIteration\\MeasureIterationApplication.vue","mtime":1683538793441},{"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\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 MeasureDialog from './components/MeasureDialog.vue'\r\nimport measureIterationApplication from '@/api/projectActionIteration/measureIterationApplication.js'\r\nexport default {\r\n name: 'MajorProjects',\r\n components: {\r\n pagination,\r\n MeasureDialog\r\n },\r\n mixins: [TableMixin],\r\n data() {\r\n return {\r\n markLoading: 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: 'EQUAL',\r\n parentGroup: '',\r\n property: 'SEND_STATUS_',\r\n relation: 'AND',\r\n value: 1\r\n },\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 },\r\n unitValue: [],\r\n pilotSpecificMeasuresList: []\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, [1]).then(() => {\r\n let data = {\r\n ids: [],\r\n status: 0,\r\n approvalResults: 2\r\n }\r\n if (this.pilotSpecificMeasuresList.length) {\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 } else {\r\n this.$message.error('暂无可撤回操作')\r\n this.markLoading = false\r\n }\r\n })\r\n })\r\n },\r\n // 获取举措数据\r\n getPilotSpecificMeasuresList(id) {\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: [1]\r\n }\r\n ]\r\n }\r\n measureIterationApplication.gteAuditMeasuresDetail(data, 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 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: 'EQUAL',\r\n parentGroup: '',\r\n property: 'SEND_STATUS_',\r\n relation: 'AND',\r\n value: 1\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,1)\r\n },\r\n //获取数据\r\n getData(data,page) {\r\n if (page) {\r\n this.queryParam.pageBean.page = page\r\n }\r\n this.loading = true\r\n this.tableData = []\r\n this.queryParam.querys = []\r\n if (this.querys[0].value) {\r\n this.queryParam.querys.push(this.querys[0])\r\n }\r\n if (this.querys[1].value) {\r\n this.queryParam.querys.push(this.querys[1])\r\n }\r\n measureIterationApplication.getMeasuresAuditList(data, false, true, res => {\r\n if (res.rows) {\r\n this.tableData = res.rows\r\n // this.tableData.forEach((e) => {\r\n // \tthis.jbList.forEach((j) => {\r\n // \t\tlet typeName = ''\r\n // \t\te.type.split(',').forEach((t) => {\r\n // \t\t\tif (t == j.value) {\r\n // \t\t\t\ttypeName += j.name + ','\r\n // \t\t\t\tconsole.log(j.name)\r\n // \t\t\t}\r\n // \t\t})\r\n // \t\tif (typeName.length > 0) {\r\n // \t\t\te.typeName = typeName.substr(\r\n // \t\t\t\t0,\r\n // \t\t\t\ttypeName.length - 1\r\n // \t\t\t)\r\n // \t\t}\r\n // \t})\r\n // })\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 // 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.MeasureDialog.add()\r\n },\r\n //删除\r\n handleDelete() {\r\n this.$confirm(this.$t('common.sureDelete'), this.$t('common.tips'), {\r\n confirmButtonText: this.$t('common.confirm'),\r\n cancelButtonText: this.$t('common.cancel'),\r\n type: 'warning'\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()\r\n })\r\n })\r\n .catch(() => {})\r\n },\r\n //修改\r\n handleDbClick(data) {\r\n this.$refs.MeasureDialog.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()\r\n },\r\n //表格页数\r\n handleCurrentChange(val) {\r\n this.queryParam.pageBean.page = val\r\n this.getData()\r\n }\r\n }\r\n}\r\n",null]}