{"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\\IterativeDialog.vue?vue&type=script&lang=js&","dependencies":[{"path":"D:\\jenkins\\workspace\\reform-fvue\\src\\views\\ProjectActionIteration\\components\\IterativeDialog.vue","mtime":1682514745564},{"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\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 IterativeDialogDetails from './IterativeDialogDetails.vue'\r\nexport default {\r\n name: 'IterativeDialog',\r\n components: {\r\n IterativeDialogDetails,\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 }\r\n },\r\n created() {\r\n console.log(dictUtils.getDictItemsFromCache('shzt'))\r\n },\r\n mounted() {},\r\n methods: {\r\n getData(val, index) {\r\n console.log(val, index)\r\n if (index >= 0) {\r\n console.log(1)\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) {\r\n console.log(val)\r\n this.parameter = JSON.parse(JSON.stringify(val))\r\n this.title = '审核'\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: 'project_id_',\r\n relation: 'AND',\r\n value: this.parameter.id,\r\n },\r\n {\r\n group: 'statusGroup',\r\n operation: 'EQUAL',\r\n parentGroup: '',\r\n property: 'status_',\r\n relation: 'AND',\r\n value: 3,\r\n },\r\n ]\r\n measureIterationApplication.auditQuery(this.queryParam, (res) => {\r\n if (res.rows) {\r\n this.$set(\r\n this.parameter,\r\n 'pilotSpecificMeasuresList',\r\n res.rows\r\n )\r\n // this.$nextTick(() => {\r\n // \tthis.parameter.pilotSpecificMeasuresList = res.rows\r\n // \t//\r\n // })\r\n }\r\n this.loading = false\r\n })\r\n },\r\n // 关闭新增人员窗口\r\n handleClose() {\r\n this.visible = false\r\n this.parameter = {}\r\n this.title = ''\r\n },\r\n //编辑\r\n handleDbClick(val) {\r\n this.$refs.IterativeDialogDetails.edit(val)\r\n },\r\n //驳回\r\n submit() {\r\n this.cancelloading = true\r\n this.params.ids = []\r\n this.parameter.pilotSpecificMeasuresList.forEach((e) => {\r\n this.params.ids.push(e.pilotSpecificMeasures.id)\r\n })\r\n this.params.status = 4\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 measureIterationApplication.auditSave(this.params, (res) => {\r\n if (res.state) {\r\n this.cancelloading = false\r\n this.$message.success('驳回成功')\r\n this.handleClose()\r\n }\r\n })\r\n },\r\n // 通过\r\n handleSave() {\r\n this.saveloading = true\r\n this.params.ids = []\r\n this.parameter.pilotSpecificMeasuresList.forEach((e) => {\r\n this.params.ids.push(e.pilotSpecificMeasures.id)\r\n })\r\n this.params.status = 5\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 this.$message.success('审核成功')\r\n this.saveloading = false\r\n this.handleClose()\r\n }\r\n })\r\n },\r\n },\r\n}\r\n",null]}