{"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\\ActionDialog.vue?vue&type=script&lang=js&","dependencies":[{"path":"D:\\jenkins\\workspace\\reform-fvue\\src\\views\\ProjectActionIteration\\components\\ActionDialog.vue","mtime":1683124527229},{"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/es6.function.name\";\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//\nimport moment from 'moment';\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 ActionDetailsDialog from \"./ActionDetailsDialog.vue\";\nimport RejectInfoDialog from '@/components/dialog/RejectInfoDialog.vue';\nexport default {\n name: 'ActionDialog',\n components: {\n ActionDetailsDialog: ActionDetailsDialog,\n RejectInfoDialog: RejectInfoDialog\n },\n data: function data() {\n return {\n visible: false,\n title: '新增',\n loading: false,\n saveLoading: false,\n cancelloading: false,\n tableData: [],\n queryParam: {\n pageBean: {\n page: 1,\n pageSize: -1\n }\n },\n parameter: {},\n params: {\n ids: [],\n status: null\n },\n statusValue: []\n };\n },\n created: function created() {// console.log(dictUtils.getDictItemsFromCache('shzt'))\n },\n mounted: function mounted() {},\n methods: {\n getData: function getData(val, index) {\n console.log(val, index);\n\n if (index >= 0) {\n console.log(1);\n this.$set(this.parameter.pilotSpecificMeasuresList, index, val);\n } else {\n this.parameter.pilotSpecificMeasuresList.push(val);\n this.$set(this.parameter);\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 add: function add(val, arr) {\n this.statusValue = arr;\n this.parameter = JSON.parse(JSON.stringify(val));\n this.parameter.updateTime = moment(this.parameter.updateTime).format('YYYY-MM-DD');\n this.visible = true;\n this.measureData();\n },\n //获取列表\n measureData: function measureData() {\n var _this2 = this;\n\n this.loading = true; // this.parameter.pilotSpecificMeasuresList = []\n\n this.queryParam.querys = [{\n group: 'main',\n operation: 'EQUAL',\n parentGroup: '',\n property: 'h.project_id_',\n relation: 'AND',\n value: this.parameter.id\n }, {\n group: 'statusGroup',\n operation: 'IN',\n parentGroup: '',\n property: 'h.status_',\n relation: 'AND',\n value: this.statusValue\n } // {\n // group: 'statusGroup',\n // operation: 'EQUAL',\n // parentGroup: '',\n // property: 'status_',\n // relation: 'OR',\n // value: 4,\n // },\n ]; // measureIterationApplication.auditQuery(this.queryParam, (res) => {\n\n measureIterationApplication.gteAuditMeasuresDetail(this.queryParam, function (res) {\n console.log(res);\n\n if (res && res.rows && res.rows.length) {\n // this.$set(\n // this.parameter,\n // 'pilotSpecificMeasuresList',\n // res.rows\n // )\n _this2.parameter.pilotSpecificMeasuresList = res.rows;\n }\n\n _this2.loading = false;\n });\n },\n // 关闭新增人员窗口\n handleClose: function handleClose() {\n this.visible = false;\n this.cancelloading = false;\n this.saveLoading = false;\n this.parameter = {};\n this.title = '';\n },\n //编辑\n handleDbClick: function handleDbClick(val) {\n this.$refs.ActionDetailsDialog.edit(val);\n },\n // 审核驳回意见\n handleReject: function handleReject() {\n var _this3 = this;\n\n this.saveLoading = true;\n var status = 2;\n var message = '确认驳回吗?';\n this.btnLoading = true;\n this.$confirm(message, this.$t('common.tips'), {\n confirmButtonText: this.$t('common.confirm'),\n cancelButtonText: this.$t('common.cancel'),\n type: 'error'\n }).then(function () {\n _this3.$refs.rejectInfoDialog.open('/majorProjects/pilotSpecificMeasures/v1/iteration', status);\n }).catch(function () {\n _this3.saveLoading = false;\n });\n },\n // 处理填写的驳回意见\n sendRejectInfo: function sendRejectInfo(rejectInfo, api, status) {\n if (!rejectInfo) {\n this.saveLoading = false;\n return;\n }\n\n this.submit(rejectInfo); // let data = {\n // approvalComments: rejectInfo,\n // ids: this.projectInfo.id,\n // status: status, //3-责任单位领导审核通过 5-市委改革办审核通过\n // }\n // measureIterationApplication.auditSave(this.params, (res) => {\n // if (res.state) {\n // this.$message.success('驳回成功')\n // this.$parent.reload()\n // this.handleClose()\n // } else {\n // this.$message.warning(res.message)\n // }\n // this.saveLoading = false\n // })\n },\n //驳回\n submit: function submit(approvalComments) {\n var _this4 = this;\n\n this.cancelloading = true;\n this.params.ids = [];\n this.parameter.pilotSpecificMeasuresList.forEach(function (e) {\n _this4.params.ids.push(e.id);\n });\n this.params.status = this.$route.name == 'IterativeValidationAction' ? 4 : 2;\n\n if (this.params.ids.length <= 0) {\n this.$message.warning('暂无可驳回数据');\n this.cancelloading = false;\n return;\n }\n\n this.params.approvalComments = approvalComments;\n measureIterationApplication.auditSave(this.params, function (res) {\n if (res.state) {\n _this4.$message.success('驳回成功');\n\n _this4.cancelloading = false;\n\n _this4.$emit('getData');\n\n _this4.handleClose();\n }\n\n _this4.saveLoading = false;\n });\n },\n // 通过\n handleSave: function handleSave(row) {\n var _this5 = this;\n\n this.saveLoading = true;\n this.params.ids = [];\n this.parameter.pilotSpecificMeasuresList.forEach(function (e) {\n _this5.params.ids.push(e.id);\n });\n this.params.status = this.$route.name == 'IterativeValidationAction' ? 5 : 3;\n\n if (this.params.ids.length <= 0) {\n this.$message.warning('暂无可审核数据');\n this.saveLoading = false;\n return;\n }\n\n measureIterationApplication.auditSave(this.params, function (res) {\n if (res.state) {\n row.status = 3;\n\n _this5.$message.success('审核成功');\n\n _this5.$emit('getData');\n\n _this5.handleClose();\n }\n\n _this5.saveLoading = false;\n });\n }\n }\n};",null]}