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