{"remainingRequest":"D:\\jenkins\\workspace\\xypm-web\\node_modules\\thread-loader\\dist\\cjs.js!D:\\jenkins\\workspace\\xypm-web\\node_modules\\babel-loader\\lib\\index.js!D:\\jenkins\\workspace\\xypm-web\\node_modules\\cache-loader\\dist\\cjs.js??ref--0-0!D:\\jenkins\\workspace\\xypm-web\\node_modules\\vue-loader\\lib\\index.js??vue-loader-options!D:\\jenkins\\workspace\\xypm-web\\src\\components\\flow\\taskFlowComponents\\doneAction.vue?vue&type=script&lang=js&","dependencies":[{"path":"D:\\jenkins\\workspace\\xypm-web\\src\\components\\flow\\taskFlowComponents\\doneAction.vue","mtime":1675214577167},{"path":"D:\\jenkins\\workspace\\xypm-web\\babel.config.js","mtime":1675214572901},{"path":"D:\\jenkins\\workspace\\xypm-web\\node_modules\\cache-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\jenkins\\workspace\\xypm-web\\node_modules\\thread-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\jenkins\\workspace\\xypm-web\\node_modules\\babel-loader\\lib\\index.js","mtime":456789000000},{"path":"D:\\jenkins\\workspace\\xypm-web\\node_modules\\cache-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\jenkins\\workspace\\xypm-web\\node_modules\\vue-loader\\lib\\index.js","mtime":499162500000}],"contextDependencies":[],"result":["import \"core-js/modules/web.dom.iterable\";\nimport \"core-js/modules/es6.function.name\";\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n\n// import ProcessRecord from \"@/components/flow/processRecord.vue\";\nimport ImageBpm from \"@/components/flow/imageBpm.vue\";\nimport DoneFormContent from \"@/components/flow/doneFormContent.vue\";\nimport OpinionText from \"@/components/common/opinionText.vue\";\nimport FileUpload from \"@/components/common/fileUpload.vue\";\nimport { mapState } from \"vuex\";\nimport { Message } from \"element-ui\";\nimport TaskToReject from \"@/components/flow/task/taskToReject.vue\";\nimport TaskToDelegate from \"@/components/flow/task/taskToDelegate.vue\";\nimport TaskToCopyTo from \"@/components/flow/task/taskToCopyTo.vue\";\nimport TaskToInqu from \"@/components/flow/task/taskToInqu.vue\";\nimport taskToRevoke from \"@/components/flow/task/taskToRevoke.vue\";\nimport TaskToEndProcess from \"@/components/flow/task/taskToEndProcess.vue\";\nimport utils from \"@/utils.js\";\nimport { Base64 } from \"js-base64\";\nimport req from \"@/request.js\";\nexport default {\n  components: {\n    ImageBpm: ImageBpm,\n    // ProcessRecord,\n    DoneFormContent: DoneFormContent,\n    OpinionText: OpinionText,\n    FileUpload: FileUpload,\n    TaskToReject: TaskToReject,\n    TaskToDelegate: TaskToDelegate,\n    TaskToCopyTo: TaskToCopyTo,\n    TaskToInqu: TaskToInqu,\n    TaskToEndProcess: TaskToEndProcess,\n    taskToRevoke: taskToRevoke\n  },\n  props: [\"instId\", \"type\", \"taskId\", \"defId\", \"status\", \"choiceExcutor\", \"jumpType\", \"instStatus\", \"leaderId\"],\n  data: function data() {\n    return {\n      btn_region_t: \"96px\",\n      //\"96px\",\n      btn_region_in_w: \"98%\",\n      btn_region_h: \"132px\",\n      btn_region_w: \"\",\n      dialogFormVisible: false,\n      dailogTitle: \"\",\n      opinion: \"撤回\",\n      isHand: \"\",\n      state: \"\",\n      canLock: \"\",\n      formData: \"\",\n      actionName: \"\",\n      text: \"\",\n      disabled: false,\n      btnAilas: \"\",\n      //选择的按钮\n      token: utils.getUrlKey(\"token\"),\n      opinionMap: {},\n      opinionList: [],\n      selectNodeId: '',\n      inApprovalTaskIds: [],\n      taskSignLines: [],\n      didntSkipStart: false,\n      closeDone: false\n    };\n  },\n  watch: {},\n  computed: mapState({\n    rowsBtn: function rowsBtn(state) {\n      return state.storeProcess.rowsBtn;\n    }\n  }),\n  mounted: function mounted() {\n    //单选操作按钮默认选择第一个\n    if (this.rowsBtn.length > 0 && this.canLock != 1) {\n      this.btnAilas = this.rowsBtn[0].alias;\n    } else if (this.rowsBtn.length == 0 && this.canLock != 1) {\n      if (this.type == 'done' || this.type == 'request') {\n        this.btnAilas = \"handleRevoke\";\n      } else if (this.type == 'read') {\n        this.btnAilas = \"handleRead\";\n      }\n    }\n    this.$set(this, \"btn_region_w\", document.getElementById(\"display_none\").offsetWidth);\n  },\n  methods: {\n    //关闭按钮\n    taskClose: function taskClose() {\n      this.closeDone = true;\n      //判断是否是模块开发配置出来的\n      if (this.$route.name.indexOf(\"reportModuleInst\") != -1) {\n        this.$router.push(\"/statement/template/preview/\" + this.$route.params.templateKey + \"/todo/\" + this.$route.params.defKey + \"/true\");\n      } else if (this.$route.name.indexOf(\"sysModuleInst\") != -1) {\n        // this.$router.push(\"/v-flow/v-todo/\" + this.$route.params.defKey);\n        if (this.closeDone) {\n          this.$router.go(-1);\n          this.closeDone = false;\n        }\n      } else if (JSON.stringify(this.$route.query) == \"{}\") {\n        // this.$router.push(\"/v-flow/v-done\");\n        if (this.closeDone) {\n          this.$router.go(-1);\n          this.closeDone = false;\n        }\n      } else {\n        // this.$router.push(\"/home\");\n        if (this.closeDone) {\n          this.$router.go(-1);\n          this.closeDone = false;\n        }\n      }\n      ;\n    },\n    //获取当前任务节点\n    getSelectNodeId: function getSelectNodeId() {\n      return this.selectNodeId;\n    },\n    //撤回到上一个节点\n    handleRevoke: function handleRevoke() {\n      var _this2 = this;\n      var curOpinion = this.opinionMap[this.selectNodeId];\n      if (curOpinion.needGetRevokeTasks) {\n        var data = {\n          instanceId: this.instId,\n          \"nodeId\": curOpinion.taskKey,\n          \"taskId\": curOpinion.taskId\n        };\n        this.$store.dispatch(\"storeProcess/getSignLinesInstIdNodeId\", data).then(function (data) {\n          _this2.taskSignLines = data;\n          _this2.dialogFormVisible = true;\n        }).catch(function () {\n          _this2.dialogFormVisible = false;\n        });\n      } else {\n        this.dialogFormVisible = true;\n      }\n    },\n    openRevoke: function openRevoke() {\n      // this.$confirm('确认是否撤回?', '提示', {\n      //     confirmButtonText: '确定',\n      //     cancelButtonText: '取消',\n      //     type: 'warning'\n      // }).then(() => {\n      //     this.saveRevoke();\n      // }).catch(() => {\n      //     this.opinion=\"\";\n      // });\n      this.saveRevoke();\n    },\n    saveRevoke: function saveRevoke() {\n      var curOpinion = this.opinionMap[this.selectNodeId];\n      var data = {\n        instanceId: this.instId,\n        taskId: curOpinion.taskId,\n        revokeNodeId: this.selectNodeId\n      };\n      //用户任务1,直接使用撤回到发起人的逻辑\n      if (!curOpinion.revokeStart) {\n        data.isHandRevoke = true;\n      } else {\n        data.isHandRevoke = false;\n      }\n      //正常撤回\n      var revokeUrl = \"storeProcess/revokeInstance\";\n      // 签署撤回\n      if (curOpinion.signType && curOpinion.signType != \"AfterSign\" && curOpinion.opinionStatus != \"deliverto\" && this.instStatus != 'end') {\n        revokeUrl = \"storeProcess/revokeCustomSign\";\n        data = {\n          currentTaskIds: this.inApprovalTaskIds.join(\",\"),\n          instanceId: this.instId,\n          targetTaskId: curOpinion.taskId,\n          targetNodeId: this.selectNodeId,\n          signType: curOpinion.signType\n        };\n      }\n      this.$refs.taskToRevoke.showDialog(revokeUrl, data);\n\n      // this.$store.dispatch(revokeUrl,data).then(value=>{\n      //   this.dialogFormVisible=false;\n      //   this.opinion=\"\";\n      //   if(value){\n      //     this.$router.push(\"/task/\"+value+\"/0\");\n      //     setTimeout(()=>{\n      //       this.$root.$children[0].reload();\n      //     },10);\n      //   }else{\n      //     this.$router.push(\"/v-flow/v-todo\");\n      //   }\n      // });\n    },\n    exitRevoke: function exitRevoke() {\n      this.dialogFormVisible = false;\n      this.opinion = \"\";\n    },\n    hiddenOpertion: function hiddenOpertion() {\n      if (this.$refs.btnRegion) {\n        this.$refs.btnRegion.style.display = \"none\";\n      }\n      this.$refs.doneFormContent.hiddenContent();\n    }\n  },\n  created: function created() {\n    var _this3 = this;\n    //兼容只显示审批页面时\n    if (this.$route.meta.single) {\n      this.btn_region_t = \"48px\";\n      this.btn_region_in_w = \"100%\";\n    }\n    var queryFilter = {};\n    var pageBean = {\n      \"pageBean\": this.pagination\n    };\n    var querys = [{\n      property: \"wfInst.id_\",\n      value: this.instId,\n      group: \"typeId\",\n      operation: \"IN\",\n      relation: \"AND\"\n    }];\n    queryFilter = {\n      \"pageBean\": this.pagination,\n      querys: querys\n    };\n    var _this = this;\n    this.$store.dispatch(\"storeProcess/getDoneByInstId\", queryFilter).then(function (data) {\n      if (data.data && data.data.rows) {\n        data.data.rows.forEach(function (opinion) {\n          //判断当前是否在第一个节点,并且流程设置为不跳过第一个节点\n          if (data.data.rows.length == 1 && opinion.opinionStatus == 'start') {\n            _this3.didntSkipStart = true;\n          }\n          if (opinion.opinionStatus != 'signRecoverCancel' && opinion.opinionStatus != 'retracted' && opinion.opinionStatus != 'start' && opinion.opinionStatus != 'end' && !_this.opinionMap[opinion.taskKey] && opinion.opinionStatus != 'awaiting_check' && opinion.opinionStatus != 'copyto' && opinion.opinionStatus != 'awaiting_feedback' && opinion.opinionStatus != 'copyto_reply' && opinion.opinionStatus != \"start_commu\" && opinion.opinionStatus != \"end_revoke\") {\n            if (opinion.opinionStatus == 'skip' && opinion.skipType != 'first') {\n              return true;\n            }\n            if (opinion.formData) {\n              opinion.formData = JSON.parse(Base64.decode(opinion.formData));\n            }\n            _this.opinionMap[opinion.taskKey] = opinion;\n            _this.opinionList.push(opinion);\n            _this.selectNodeId = _this.opinionList[0].taskKey;\n          }\n        });\n      }\n    });\n  },\n  filters: {\n    executorFormat: function executorFormat(value) {\n      return value.name + \"  \" + value.account + \"  \" + value.orgName;\n    }\n  }\n};",null]}