{"remainingRequest":"D:\\jenkins\\workspace\\yhxt-web\\node_modules\\thread-loader\\dist\\cjs.js!D:\\jenkins\\workspace\\yhxt-web\\node_modules\\babel-loader\\lib\\index.js!D:\\jenkins\\workspace\\yhxt-web\\node_modules\\cache-loader\\dist\\cjs.js??ref--0-0!D:\\jenkins\\workspace\\yhxt-web\\node_modules\\vue-loader\\lib\\index.js??vue-loader-options!D:\\jenkins\\workspace\\yhxt-web\\src\\views\\specialProjectManagement\\flowComponents\\processApproval.vue?vue&type=script&lang=js&","dependencies":[{"path":"D:\\jenkins\\workspace\\yhxt-web\\src\\views\\specialProjectManagement\\flowComponents\\processApproval.vue","mtime":1720808032505},{"path":"D:\\jenkins\\workspace\\yhxt-web\\babel.config.js","mtime":1667326389982},{"path":"D:\\jenkins\\workspace\\yhxt-web\\node_modules\\cache-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\jenkins\\workspace\\yhxt-web\\node_modules\\thread-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\jenkins\\workspace\\yhxt-web\\node_modules\\babel-loader\\lib\\index.js","mtime":456789000000},{"path":"D:\\jenkins\\workspace\\yhxt-web\\node_modules\\cache-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\jenkins\\workspace\\yhxt-web\\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\nimport _ from 'lodash';\nimport eipUserSelector from '@/components/eipControl/selector/EipUserSelector.vue';\nexport default {\n name: 'QualitProcessReject',\n components: {\n eipUserSelector: eipUserSelector\n },\n props: {\n startApproval: {\n type: Boolean,\n default: false\n }\n },\n data: function data() {\n return {\n visible: false,\n loading: false,\n rejectForm: {\n id: '',\n rejectReason: '',\n status: '',\n auditName: '',\n type: '',\n goOn: 1,\n userId: '',\n userName: '',\n userAccount: ''\n },\n nodeList: [],\n rules: {\n rejectReason: {\n required: true,\n message: '请输入审批意见',\n trigger: 'change'\n },\n userName: {\n required: true,\n message: '请选择审批人',\n trigger: 'blur'\n },\n auditName: {\n required: true,\n message: '请选择审批节点',\n trigger: 'change'\n }\n },\n manageURL: '${yhxt}/bizRectificationCommon/v1/approve' //管理中心审核\n };\n },\n mounted: function mounted() {},\n methods: {\n handleOpen: function handleOpen(row, type, module) {\n if (!module && module !== 0) {\n this.$message({\n message: '缺少必要参数module',\n type: 'warning'\n });\n return;\n }\n this.getNodeList(row.id);\n this.rejectForm.id = row.id;\n this.rejectForm.status = type === true ? 1 : 2;\n this.rejectForm.type = module;\n this.visible = true;\n },\n // 根据id 获取当前节点\n getNodeList: function getNodeList(id) {\n var _this = this;\n if (!id) {\n this.$message({\n message: '缺少必要参数id',\n type: 'warning'\n });\n return;\n }\n this.$http.get('${yhxt}/bizRectificationCommon/v1/node/' + id).then(function (res) {\n if (res && res.data) {\n _this.nodeList = res.data;\n }\n });\n },\n handleClose: function handleClose() {\n this.visible = false;\n this.rejectForm = {\n id: '',\n rejectReason: '',\n status: '',\n auditName: '',\n type: '',\n goOn: 1,\n userId: '',\n userName: '',\n userAccount: ''\n };\n },\n handleSubmit: function handleSubmit() {\n var _this2 = this;\n this.$refs.rejectForm.validate(function (bool) {\n if (bool) {\n var dataSubmit = _.cloneDeep(_this2.rejectForm);\n if (dataSubmit.goOn === 0) {\n dataSubmit.auditName = '';\n dataSubmit.userId = '';\n dataSubmit.userName = '';\n dataSubmit.userAccount = '';\n dataSubmit.status = 0;\n }\n var type = '发起审批';\n if (!_this2.startApproval) {\n if (dataSubmit.status === 2) {\n type = '驳回';\n } else if (dataSubmit.status === 0) {\n type = '结束审批';\n } else if (dataSubmit.status === 1) {\n type = '通过审批';\n }\n }\n delete dataSubmit.goOn;\n console.log('dataSubmit', dataSubmit);\n _this2.$confirm(\"\\u786E\\u5B9A\".concat(type, \"\\u5417\\uFF1F\"), '提示', {\n confirmButtonText: '确定',\n cancelButtonText: '取消',\n type: 'warning'\n }).then(function () {\n _this2.$http.post(_this2.manageURL, dataSubmit).then(function (res) {\n if (res.data.state) {\n _this2.$message({\n message: \"\".concat(type, \"\\u6210\\u529F\"),\n type: 'success'\n });\n }\n _this2.$emit('reload');\n _this2.handleClose();\n });\n });\n }\n });\n }\n }\n};",null]}