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