{"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\\taskFlowComponents\\flowTask.vue?vue&type=script&lang=js&","dependencies":[{"path":"D:\\jenkins\\workspace\\xq-web-fvue\\src\\components\\flow\\taskFlowComponents\\flowTask.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//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\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 FormContent from \"@/components/flow/formContent.vue\";\nimport RelatedInformation from \"@/components/flow/relatedInformation.vue\";\nimport FlowAction from \"@/components/flow/taskFlowComponents/flowAction.vue\";\nimport DoneAction from \"@/components/flow/taskFlowComponents/doneAction.vue\";\nimport ProcessRecord from \"@/components/flow/processRecord.vue\";\nimport TaskToCopyTo from \"@/components/flow/task/taskToCopyTo.vue\";\nimport TaskToCommu from \"@/components/flow/task/taskToCommu.vue\";\nimport TaskFollow from \"@/components/flow/task/taskFollow.vue\";\nimport TaskImage from \"@/components/flow/task/taskImage.vue\";\nimport UrgentRecord from \"@/components/flow/urgentRecord.vue\";\nimport ModifyRecord from \"@/components/flow/modifyRecord.vue\";\nimport TaskUrgent from \"@/components/flow/task/taskUrgent.vue\";\nimport FlowPrint from \"@/components/flow/flowPrint.vue\";\nimport ProcessRecordDialog from \"@/components/flow/processRecordDialog.vue\";\nimport req from \"@/request.js\";\nimport utils from \"@/utils.js\";\nimport { Loading } from \"element-ui\";\nimport { mapState, mapActions } from \"vuex\";\nimport watermark from \"@/watermark.js\";\nexport default {\n name: \"task\",\n components: {\n FormContent: FormContent,\n FlowAction: FlowAction,\n ProcessRecord: ProcessRecord,\n TaskToCommu: TaskToCommu,\n TaskFollow: TaskFollow,\n TaskImage: TaskImage,\n RelatedInformation: RelatedInformation,\n TaskToCopyTo: TaskToCopyTo,\n UrgentRecord: UrgentRecord,\n ModifyRecord: ModifyRecord,\n TaskUrgent: TaskUrgent,\n DoneAction: DoneAction,\n FlowPrint: FlowPrint,\n ProcessRecordDialog: ProcessRecordDialog\n },\n props: [\"task_state\", \"instId\", \"type\", \"taskId\", \"readId\", \"leaderId\", \"readDoneId\", \"myReadType\", \"noSingle\", \"defKey\"],\n data: function data() {\n return {\n sponsorRevoke: false,\n //允许发起人撤回(默认不勾选)\n isLook: false,\n tasks: {},\n //任务详情\n procInstId: this.instId,\n copyTaskId: this.taskId,\n defId: \"\",\n bpmnInstId: \"\",\n subject: \"\",\n status: \"\",\n instStatus: \"\",\n choiceExcutor: \"\",\n show: true,\n jumpType: \"\",\n promoterId: \"\",\n execId: \"\",\n selectNodeId: \"\",\n approvalArea: \"\",\n //审批区域显示的内容\n referOpinion: true,\n //允许参考意见 (选择否,则审批时不允许参考同环节其他会签人员的意见)\n nodeType: \"\",\n //当前任务类型\n nodeId: \"\",\n //当前任务节点\n showModifyRecord: false,\n //是否显示表单修改记录\n formKey: \"\",\n opinionField: \"\",\n //审批意见反填字段\n appendOpinion: \"\",\n //是否覆盖审批意见\n signatureField: \"\",\n //自动签章字段\n signatureCover: false,\n //自动签章是否覆盖\n secretFree: false,\n //自动签章时是否免密\n previewWordDialog: false,\n previewWordHeight: 800,\n previewWordPdfSrc: \"\",\n flowDefKey: \"\"\n };\n },\n mounted: function mounted() {\n this.previewWordHeight = document.documentElement.clientHeight - 80;\n },\n methods: {\n //复制流程\n copeInst: function copeInst() {\n var _this = this;\n\n this.$confirm(\"此操作将把当前实例数据复制到新流程待启动,是否继续?\", \"提示\", {\n confirmButtonText: \"继续\",\n cancelButtonText: \"取消\",\n type: \"warning\"\n }).then(function () {\n _this.$router.push(\"/agentStart/\" + _this.defId + \"/0/\" + _this.instId);\n }).catch(function () {});\n },\n //流程催办\n taskUrgent: function taskUrgent() {\n var _this2 = this;\n\n this.$store.dispatch(\"storeProcess/isEnd\", this.procInstId).then(function () {\n _this2.$refs.taskUrgent.handleClose(); //父组件调用子组件方法\n\n });\n },\n //催办记录\n urgentRecord: function urgentRecord() {\n this.$refs.urgentRecord.handleClose(); //父组件调用子组件方法\n },\n //表单修改记录\n openModifyRecord: function openModifyRecord() {\n this.$refs.modifyRecord.handleClose(); //父组件调用子组件方法\n },\n //流程传阅\n taskToCopyTo: function taskToCopyTo() {\n if (this.type && this.type == \"doneList\") {\n this.selectNodeId = this.$refs.doneAction.getSelectNodeId();\n }\n\n this.$refs.taskToCopyTo.handleClose(this.selectNodeId, this.copyTaskId); //父组件调用子组件方法\n },\n //发起沟通\n taskToCommu: function taskToCommu() {\n var _this3 = this;\n\n this.$store.dispatch(\"storeProcess/isEnd\", this.procInstId).then(function () {\n _this3.$refs.taskToCommu.handleClose(); //父组件调用子组件方法\n\n });\n },\n //跟踪设置\n taskFollow: function taskFollow() {\n var _this4 = this;\n\n this.$store.dispatch(\"storeProcess/isEnd\", this.procInstId).then(function () {\n _this4.$refs.taskFollow.handleOpen(); //父组件调用子组件方法\n\n });\n },\n //流程图\n taskImage: function taskImage() {\n this.$refs.taskImage.handleOpen(); //父组件调用子组件方法\n },\n //相关信息\n relatedInformation: function relatedInformation() {\n this.$refs.relatedInformation.handleClose(); //父组件调用子组件方法\n },\n //处理记录信息\n processRecordDialog: function processRecordDialog() {\n this.$refs.processRecordDialog.handleClose(); //父组件调用子组件方法\n },\n //相关信息\n showPrint: function showPrint() {\n var _this5 = this;\n\n var this_ = this;\n\n if (!this.formKey || this.formKey == \"\") {\n if (!this.nodeId) {\n this.nodeId = \"\";\n }\n\n var url = \"${bpmRunTime}/runtime/instance/v1/printBoAndFormKey?defId=\" + this.defId + \"&nodeId=\" + this.nodeId + \"&procInstId=\" + this.procInstId;\n req.get(url).then(function (res) {\n if (res.data) {\n _this5.formKey = res.data.formKey;\n var param = {\n pageBean: {\n page: 1,\n pageSize: 20,\n total: 0\n },\n querys: [{\n group: \"defaultQueryGroup\",\n operation: \"EQUAL\",\n relation: \"AND\",\n property: \"formKey\",\n value: _this5.formKey\n }]\n };\n req.post(req.getContext().form + \"/form/printTemplate/v1/getPrintList\", param).then(function (response) {\n if (response.data.rows && response.data.rows.length > 0) {\n _this5.$refs.flowPrint.handleOpen(); //父组件调用子组件方法\n\n } else {\n this_.printHtml();\n }\n });\n }\n });\n } else {\n var param = {\n pageBean: {\n page: 1,\n pageSize: 20,\n total: 0\n },\n querys: [{\n group: \"defaultQueryGroup\",\n operation: \"EQUAL\",\n relation: \"AND\",\n property: \"formKey\",\n value: this.formKey\n }]\n };\n req.post(req.getContext().form + \"/form/printTemplate/v1/getPrintList\", param).then(function (response) {\n if (response.data.rows && response.data.rows.length > 0) {\n _this5.$refs.flowPrint.handleOpen(); //父组件调用子组件方法\n\n } else {\n this_.printHtml();\n }\n });\n }\n },\n //未设置word套打模板,直接调用打印\n printHtml: function printHtml(data) {\n if (this.type != \"doneList\") {\n this.$refs.flowAction.hiddenOpertion();\n } else {\n this.$refs.doneAction.hiddenOpertion();\n }\n\n setTimeout(function () {\n document.getElementsByTagName('body')[0].style.zoom = 0.8;\n window.print();\n utils.reload();\n document.getElementsByTagName('body')[0].style.zoom = 1;\n }, 500);\n },\n previewWordTemplate: function previewWordTemplate(data) {\n var _this6 = this;\n\n if (!data) {\n this.$message({\n message: \"请选择打印模板\",\n type: \"warning\"\n });\n return false;\n }\n\n if (data && data.printType == \"form\") {\n this.$message({\n message: \"请选择word套打模板\",\n type: \"warning\"\n });\n return false;\n }\n\n Loading.service(\"表单打印中\");\n var url = \"${form}/form/printTemplate/v1/wordPrint?id=\" + data.id + \"&defId=\" + this.defId + \"&nodeId=\" + this.nodeId + \"&procInstId=\" + this.procInstId;\n req.get(url).then(function (res) {\n var loadingInstance = Loading.service(\"表单打印中\");\n\n if (!res.data.state) {\n _this6.$message({\n message: res.data.message,\n type: \"warning\"\n });\n\n _this6.$nextTick(function () {\n // 以服务的方式调用的 Loading 需要异步关闭\n loadingInstance.close();\n });\n } else {\n var _url = window.context.portal + \"/file/onlinePreviewController/v1/onlinePreview?fileId=\" + res.data.value;\n\n _this6.$http.get(_url).then(function (resp) {\n var data = resp.data;\n\n if (data.result == \"error\") {\n Message.error(\"附件不存在\");\n } else {\n req.get(window.context.portal + data.pdfUrl, 'arraybuffer').then(function (response) {\n var type = response.headers['content-type'];\n\n if (type) {\n _this6.previewWordPdfSrc = window.URL.createObjectURL(new Blob([response.data], {\n type: type\n }));\n } else {\n _this6.previewWordPdfSrc = window.URL.createObjectURL(new Blob([response.data]));\n }\n\n _this6.previewWordDialog = true;\n });\n Loading.service(\"表单打印中\").close();\n }\n });\n }\n });\n },\n printWordTemplate: function printWordTemplate(data) {\n var _this7 = this;\n\n if (!data) {\n this.$message({\n message: \"请选择打印模板\",\n type: \"warning\"\n });\n return false;\n }\n\n if (data && data.printType == \"form\") {\n this.$message({\n message: \"请选择word套打模板\",\n type: \"warning\"\n });\n return false;\n }\n\n Loading.service(\"表单打印中\");\n var url = \"${form}/form/printTemplate/v1/wordPrint?id=\" + data.id + \"&defId=\" + this.defId + \"&nodeId=\" + this.nodeId + \"&procInstId=\" + this.procInstId;\n req.get(url).then(function (res) {\n var loadingInstance = Loading.service(\"表单打印中\");\n\n if (!res.data.state) {\n _this7.$message({\n message: res.data.message,\n type: \"warning\"\n });\n\n _this7.$nextTick(function () {\n // 以服务的方式调用的 Loading 需要异步关闭\n loadingInstance.close();\n });\n } else {\n req.download(\"${portal}/system/file/v1/downloadFile?fileId=\" + res.data.value).then(function (r) {\n _this7.$nextTick(function () {\n // 以服务的方式调用的 Loading 需要异步关闭\n loadingInstance.close();\n });\n });\n }\n });\n }\n },\n created: function created() {\n var _this8 = this;\n\n //不是待办进来\n if (!this.taskId && this.type != \"read\" && !this.myReadType) {\n //是否是查看实例页面\n this.isLook = true;\n }\n\n window.agentLeaderId = this.leaderId;\n var this_ = this;\n\n if (this.instId == undefined) {\n this.$store.dispatch(\"storeProcess/getNotice\", this.taskId).then(function (tasks) {\n // todo nodeProperties.choiceExcutor;\n this_.tasks = tasks;\n this_.procInstId = tasks.bpmTask.procInstId;\n this_.defId = tasks.bpmTask.procDefId;\n this_.bpmnInstId = tasks.bpmTask.bpmnInstId;\n this_.subject = tasks.bpmTask.subject;\n this_.status = tasks.bpmTask.status;\n this_.execId = tasks.bpmTask.execId;\n this_.instStatus = tasks.bpmTask.instStatus;\n this_.flowDefKey = tasks.bpmTask.procDefKey;\n\n if (tasks.curNodeDef && tasks.curNodeDef.nodeProperties) {\n _this8.nodeType = tasks.curNodeDef.type;\n _this8.nodeId = tasks.curNodeDef.nodeId;\n var nodeProperties = tasks.curNodeDef.nodeProperties[0] || tasks.curNodeDef.localProperties;\n _this8.choiceExcutor = nodeProperties.choiceExcutor;\n _this8.jumpType = nodeProperties.jumpType;\n _this8.approvalArea = nodeProperties.approvalArea;\n _this8.referOpinion = nodeProperties.referOpinion;\n _this8.opinionField = nodeProperties.opinionField;\n _this8.signatureField = nodeProperties.signatureField ? nodeProperties.signatureField : '';\n _this8.signatureCover = nodeProperties.signatureCover ? nodeProperties.signatureCover : false;\n _this8.secretFree = nodeProperties.secretFree ? nodeProperties.secretFree : false;\n _this8.appendOpinion = nodeProperties.appendOpinion;\n } //是否显示表单修改记录\n\n\n if (tasks.showModifyRecord) {\n this_.showModifyRecord = true;\n } //表单formKey\n\n\n this_.formKey = tasks.formKey;\n\n if (!_this8.bpmnInstId && _this8.status != \"COMMU\") {\n _this8.$store.dispatch(\"storeProcess/noticeTurnDode\", _this8.taskId); //知会任务待办转已办\n\n }\n });\n this.$store.dispatch(\"storeProcess/addReadRecord\", this.taskId); //添加阅读记录\n } else {\n //根据实例id获取实例对象\n this.$store.dispatch(\"storeProcess/getInstanceByInstId\", this.instId).then(function (insts) {\n _this8.approvalArea = \"processRecord\";\n _this8.defId = insts.procDefId;\n _this8.bpmnInstId = insts.bpmnInstId;\n _this8.subject = insts.subject;\n _this8.instStatus = insts.status; //是否显示表单修改记录\n\n if (insts.showModifyRecord) {\n _this8.showModifyRecord = true;\n } //表单formKey\n\n\n _this8.formKey = insts.bpmFormKey; //我的请求列表页面进来的\n\n if (_this8.type == \"request\") {\n //根据流程实例Id获取发起节点并判断是否允许发起人撤回\n var url = req.getContext().bpmRunTime + \"/runtime/instance/v1/getSponsorRevokeByInstId?instId=\" + _this8.instId;\n\n req.get(url).then(function (req) {\n _this8.sponsorRevoke = req.data.value;\n });\n }\n }); //知会任务待办转已办(待阅列表进来的)\n\n if (this.readId && !this.myReadType) {\n this.$store.dispatch(\"storeProcess/noticeTurnDode\", this.readId);\n } //获取知会任务待办详情\n\n\n if (this.readId) {\n this.$store.dispatch(\"storeProcess/getBpmTaskNoticeById\", this.readId).then(function (row) {\n if (row.taskId) {\n _this8.copyTaskId = row.taskId;\n } else if (row.nodeId) {\n _this8.selectNodeId = row.nodeId;\n }\n });\n } //获取知会任务已办详情\n\n\n if (this.readDoneId) {\n this.$store.dispatch(\"storeProcess/getBpmTaskNoticeDoneById\", this.readDoneId).then(function (row) {\n if (row.taskId) {\n _this8.copyTaskId = row.taskId;\n } else if (row.nodeId) {\n _this8.selectNodeId = row.taskKey;\n }\n });\n }\n } //获取当前用户ID\n\n\n this.promoterId = JSON.parse(sessionStorage.getItem(\"currentUser\")).userId;\n }\n};",null]}