{"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\\components\\MeasureDialog.vue?vue&type=script&lang=js&","dependencies":[{"path":"D:\\jenkins\\workspace\\reform-fvue\\src\\views\\ProjectActionIteration\\components\\MeasureDialog.vue","mtime":1684719591276},{"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 _toConsumableArray from \"D:/jenkins/workspace/reform-fvue/node_modules/@babel/runtime/helpers/esm/toConsumableArray\";\nimport \"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//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\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 org from '@/api/org.js';\nimport utils from '@/utils.js';\nimport dictUtils from '@/components/dict/DictSelectUtils.js';\nimport measureIterationApplication from '@/api/projectActionIteration/measureIterationApplication.js';\nimport ApplyForDialog from \"./ApplyForDialog.vue\";\nimport MonthlyPlanDialog from \"./MonthlyPlanDialog.vue\";\nimport ActionDetailsDialog from \"./ActionDetailsDialog.vue\";\nexport default {\n name: 'MeasureDialog',\n components: {\n ApplyForDialog: ApplyForDialog,\n MonthlyPlanDialog: MonthlyPlanDialog,\n ActionDetailsDialog: ActionDetailsDialog\n },\n data: function data() {\n return {\n visible: false,\n title: '新增',\n loading: false,\n saveloading: false,\n submitloading: false,\n tableData: [],\n tableData1: [],\n showType: false,\n activeName: 0,\n queryParam: {\n pageBean: {\n page: 1,\n pageSize: -1\n }\n },\n querys: [],\n parameter: {},\n pilotSpecificMeasuresList1: [],\n activeCollapse: '1'\n };\n },\n created: function created() {// console.log(dictUtils.getDictItemsFromCache('shzt'))\n },\n mounted: function mounted() {},\n methods: {\n handleFlowLish: function handleFlowLish() {},\n handleMonthlyPlan: function handleMonthlyPlan(row, index, iterationType) {\n this.$refs.MonthlyPlanDialog.open(row, index, iterationType);\n },\n getData: function getData(val, index) {\n if (val.iteration === 0) {\n if (index >= 0) {\n this.$set(this.parameter.pilotSpecificMeasuresList, index, val);\n } else {\n this.parameter.pilotSpecificMeasuresList.push(val);\n this.$set(this.parameter);\n }\n } else {\n this.$set(this.pilotSpecificMeasuresList1, index, val);\n }\n },\n getDataMonthlyPlan: function getDataMonthlyPlan(val, index, iterationType) {\n console.log(val, index, iterationType);\n\n if (this.activeName == '0') {\n this.$set(this.parameter.pilotSpecificMeasuresList, index, val); // if (index > 0) {\n // this.$set(this.parameter.pilotSpecificMeasuresList, index, val)\n // } else {\n // this.parameter.pilotSpecificMeasuresList.push(val)\n // this.$set(this.parameter)\n // }\n } else {\n this.$set(this.pilotSpecificMeasuresList1, index, val);\n }\n },\n getDictName: function getDictName(code, value) {\n return utils.getDictName(code, value);\n },\n //表格选中\n handleSelectionChange: function handleSelectionChange(val) {\n var _this = this;\n\n this.multipleSelection = [];\n this.$refs.multipleSelection.selection.forEach(function (item) {\n _this.multipleSelection.push(item.id);\n });\n },\n //新增\n handleAdd: function handleAdd() {\n this.$refs.ApplyForDialog.add(this.parameter.pkVal);\n },\n add: function add(val) {\n this.parameter = JSON.parse(JSON.stringify(val)); // this.querys[0].value = this.parameter.id\n\n this.title = '迭代';\n this.visible = true;\n this.measureData(); // this.updateData()\n },\n tabClick: function tabClick(e) {\n // this.measureData()\n if (this.activeName == 0) {\n this.measureData();\n } else {\n this.updateData();\n }\n },\n //新增举措列表\n measureData: function measureData() {\n var _this2 = this;\n\n // if (condition) {\n // }\n // this.parameter.pilotSpecificMeasuresList = []\n if (this.parameter.id && (!this.parameter.pilotSpecificMeasuresList || !this.parameter.pilotSpecificMeasuresList.length)) {\n this.loading = true;\n var arr = [{\n group: 'main',\n operation: 'EQUAL',\n parentGroup: '',\n property: 'h.project_id_',\n relation: 'AND',\n value: this.parameter.id\n }];\n this.queryParam.querys = arr;\n measureIterationApplication.getMeasuresList(this.queryParam, function (res) {\n if (res && res.rows) {\n _this2.parameter.pilotSpecificMeasuresList = res.rows;\n }\n\n _this2.loading = false;\n });\n }\n },\n // 更新迭代列表\n updateData: function updateData() {\n var _this3 = this;\n\n this.loading = true;\n this.queryParam.querys = [];\n this.pilotSpecificMeasuresList1 = [];\n var obj = [// {\n // group: 'main',\n // operation: 'EQUAL',\n // parentGroup: '',\n // property: 'm.DISTRIBUTION_TYPE_',\n // relation: 'AND',\n // value: 0\n // },\n {\n group: 'main',\n operation: 'EQUAL',\n parentGroup: '',\n property: 'm.project_id_',\n relation: 'AND',\n value: this.parameter.id\n }];\n this.queryParam.querys = obj;\n measureIterationApplication.getUpdateMeasures(this.queryParam, function (res) {\n if (res && res.rows) {\n _this3.pilotSpecificMeasuresList1 = res.rows;\n }\n\n _this3.loading = false;\n });\n },\n // 关闭新增人员窗口\n handleClose: function handleClose() {\n this.showType = false;\n this.activeName = '0';\n this.visible = false;\n this.pilotSpecificMeasuresList1 = [];\n this.parameter = {};\n this.title = '';\n },\n //编辑\n handleDbClick: function handleDbClick(val, index, iteration) {\n console.log(val);\n this.$refs.ApplyForDialog.edit(val, index, iteration);\n },\n // 查看详情\n handleDetail: function handleDetail(val) {\n this.$refs.ActionDetailsDialog.edit(val);\n },\n // 历史\n handleDbDetail: function handleDbDetail(row) {\n this.$refs.ApplyForDialog.detail(row, this.activeName);\n },\n //提交\n submit: function submit() {\n var _this4 = this;\n\n this.saveloading = true;\n measureIterationApplication.isSaveAndReport(this.parameter.id, function (res) {\n if (res.state) {\n var arr = [];\n var overData = [];\n\n if (_this4.pilotSpecificMeasuresList1) {\n overData = [].concat(_toConsumableArray(_this4.parameter.pilotSpecificMeasuresList), _toConsumableArray(_this4.pilotSpecificMeasuresList1));\n } else {\n overData = _this4.parameter.pilotSpecificMeasuresList;\n }\n\n overData.forEach(function (e) {\n if (e.status == 0 || !e.id || e.edit) {\n arr.push(e);\n }\n });\n\n if (arr.length == 0) {\n _this4.$message.warning('暂无可提交数据');\n\n _this4.saveloading = false;\n return;\n } // arr.forEach(item => {\n // if (item.specificMeasuresId) {\n // item.distributionType = 0\n // }\n // })\n\n\n measureIterationApplication.measureSubmit(arr, function (res) {\n if (res.state) {\n _this4.$message.success('提交成功');\n\n _this4.saveloading = false;\n\n _this4.handleClose();\n } else {\n _this4.saveloading = false;\n }\n });\n } else {\n _this4.saveloading = false;\n }\n });\n },\n //更新迭代\n handleShow: function handleShow() {\n this.showType = true;\n },\n // 保存\n handleSave: function handleSave() {\n var _this5 = this;\n\n // this.saveloading = true\n // let addList = JSON.parse(JSON.parse(this.parameter.pilotSpecificMeasuresList))\n // let upadeList = JSON.parse(JSON.parse(this.pilotSpecificMeasuresList1))\n var arr = [].concat(_toConsumableArray(this.parameter.pilotSpecificMeasuresList), _toConsumableArray(this.pilotSpecificMeasuresList1));\n var measuresList = arr.filter(function (item) {\n return item.status == '-1' || item.status == '0';\n }); // measuresList.forEach(item => {\n // if (item.specificMeasuresId) {\n // item.distributionType = 0\n // }\n // })\n // this.parameter.pilotSpecificMeasuresList.forEach(e => {\n // if (e.status == '-1' || e.status == '0') {\n // arr.push(e)\n // }\n // })\n // this.pilotSpecificMeasuresList1.forEach(e => {\n // if (e.status == '-1' || e.status == '0') {\n // arr.push(e)\n // }\n // })\n\n if (measuresList.length == 0) {\n this.$message.warning('暂无可保存数据');\n this.saveloading = false;\n return;\n }\n\n console.log(measuresList, '保存的数据');\n measureIterationApplication.measureSave(measuresList, function (res) {\n if (res.state) {\n _this5.$message.success('保存成功');\n\n _this5.saveloading = false;\n\n _this5.handleClose();\n }\n\n _this5.saveloading = false;\n });\n },\n // 删除\n deleteMeasuresById: function deleteMeasuresById(row, index) {\n var _this6 = this;\n\n this.$confirm('确认删除吗?', this.$t('common.tips'), {\n confirmButtonText: this.$t('common.confirm'),\n cancelButtonText: this.$t('common.cancel'),\n type: 'error'\n }).then(function () {\n if (row.id) {\n measureIterationApplication.deleteMeasuresById(row.id, function (res) {\n if (res.state) {\n if (_this6.activeName == '0') {\n _this6.parameter.pilotSpecificMeasuresList.splice(index, 1); // this.measureData()\n\n } else {\n _this6.parameter.pilotSpecificMeasuresList1.splice(index, 1); // this.updateData()\n\n }\n\n _this6.$message.success('删除成功');\n }\n });\n } else {\n if (_this6.activeName == '0') {\n _this6.parameter.pilotSpecificMeasuresList.splice(index, 1);\n } else {\n _this6.parameter.pilotSpecificMeasuresList1.splice(index, 1);\n }\n\n _this6.$message.success('删除成功');\n }\n });\n }\n }\n};",null]}