{"remainingRequest":"D:\\jenkins\\workspace\\xq-web-fvue\\node_modules\\vue-loader\\lib\\index.js??vue-loader-options!D:\\jenkins\\workspace\\xq-web-fvue\\src\\components\\flow\\task\\taskToApproveLine.vue?vue&type=script&lang=js&","dependencies":[{"path":"D:\\jenkins\\workspace\\xq-web-fvue\\src\\components\\flow\\task\\taskToApproveLine.vue","mtime":1667327529466},{"path":"D:\\jenkins\\workspace\\xq-web-fvue\\node_modules\\babel-loader\\lib\\index.js","mtime":315532800000},{"path":"D:\\jenkins\\workspace\\xq-web-fvue\\node_modules\\cache-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\jenkins\\workspace\\xq-web-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\r\nimport { mapState, mapActions } from \"vuex\";\r\nimport { Message } from \"element-ui\";\r\nimport OpinionText from \"@/components/common/opinionText.vue\";\r\nimport FileUpload from \"@/components/common/fileUpload.vue\";\r\nimport HtUserSelector from \"@/components/control/HtUserSelector.vue\";\r\nimport utils from \"@/utils.js\";\r\n\r\nexport default {\r\n name: \"taskToApproveLine\",\r\n props: [\"taskId\"],\r\n components: { OpinionText, FileUpload, HtUserSelector },\r\n data() {\r\n return {\r\n transDialog: false,\r\n users: \"\",\r\n radioVote: \"1\", //任务通过规则\r\n decideType: \"agree\", //计票策略\r\n voteType: \"percent\", //投票类型\r\n voteAmount: \"100\", //票数\r\n signType: \"parallel\", //流转类型\r\n action: \"submit\", //流转结束后的动作\r\n isHight: false,\r\n isVoteAmount: false,\r\n token:utils.getUrlKey(\"token\"),\r\n };\r\n },\r\n methods: {\r\n //选择投票类型\r\n voteTypeChange(value) {\r\n if (value == \"percent\") {\r\n this.isVoteAmount = true;\r\n } else {\r\n this.isVoteAmount = false;\r\n }\r\n },\r\n //选择任务通过规则\r\n setVote(value) {\r\n this.voteType = \"amount\";\r\n this.voteAmount = \"1\";\r\n if (value == \"1\") {\r\n this.isHight = false;\r\n } else if (value == \"2\") {\r\n this.isHight = false;\r\n this.decideType = \"refuse\";\r\n } else if (value == \"3\") {\r\n this.isHight = false;\r\n this.decideType = \"agree\";\r\n } else if (value == \"4\") {\r\n this.isHight = true;\r\n }\r\n },\r\n //鼠标点击页面其他其他位置不关闭弹框\r\n handleClose(done) {\r\n this.transDialog = true;\r\n },\r\n //取消\r\n cancel() {\r\n this.transDialog = false;\r\n },\r\n //确认\r\n confirm() {\r\n if (this.users == \"\" || this.users == null) {\r\n Message.warning(\"请选择流转人员\");\r\n return;\r\n } else if (this.$refs.opinionText.getOpinion() == \"\") {\r\n Message.warning(\"请填写流转意见\");\r\n return;\r\n }\r\n let userId = \"\";\r\n for (var i = 0; i < this.users.length; i++) {\r\n userId = userId + this.users[i].id + \",\";\r\n }\r\n userId = userId.substring(0, userId.length - 1);\r\n let data = {\r\n notifyType: \"inner\",\r\n taskId: this.taskId,\r\n opinion: this.$refs.opinionText.getOpinion().trim(),\r\n userIds: userId\r\n };\r\n data.action = this.action;\r\n data.decideType = this.decideType;\r\n data.signType = this.signType;\r\n data.voteAmount = this.voteAmount;\r\n data.voteType = this.voteType;\r\n this.$store.dispatch(\"storeProcess/taskToApproveLine\", data).then(() => {\r\n this.transDialog = false;\r\n if(this.token!=null){\r\n window.close();\r\n }else{\r\n this.$router.go(-1);\r\n }\r\n });\r\n }\r\n }\r\n};\r\n",null]}