{"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\\taskUrgent.vue?vue&type=script&lang=js&","dependencies":[{"path":"D:\\jenkins\\workspace\\xq-web-fvue\\src\\components\\flow\\task\\taskUrgent.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":["import \"core-js/modules/es6.function.name\";\nimport \"core-js/modules/web.dom.iterable\";\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 { mapState, mapActions } from \"vuex\";\nimport { debuglog } from 'util';\nimport { Message } from \"element-ui\";\nexport default {\n name: \"taskUrgent\",\n props: [\"instId\", \"defId\", \"subject\"],\n components: {},\n data: function data() {\n return {\n isTaskUser: true,\n //是否有任务审批人\n taskUrgentDialog: false,\n excutor: [],\n //节点审批人集合\n appointee: [],\n //被催办人\n type: \"mail\",\n //催办方式\n contentMail: \"\",\n //邮件催办内容\n contentSms: \"\",\n //短信催办内容\n selectNodeId: '',\n appointeeSecretary: \"0\",\n nodeList: [],\n nodeDefMap: {}\n };\n },\n methods: {\n //鼠标点击页面其他其他位置不关闭弹框\n handleClose: function handleClose(done) {\n var _this = this;\n\n this.appointee = [];\n this.taskUrgentDialog = true;\n this.isTaskUser = true; //根据流程实例ID获取当前任务节点审批人\n\n var this_ = this;\n this.$store.dispatch(\"storeProcess/getExcutorNameByInstId\", this.instId).then(function (res) {\n if (res) {\n this_.nodeList = res;\n\n if (res.length == 1) {\n this_.selectNodeId = res[0].nodeId;\n }\n\n res.forEach(function (nodeDef) {\n this_.nodeDefMap[nodeDef.nodeId] = nodeDef;\n });\n } //要催办的任务无审批人\n\n\n if (res.length == 0) {\n _this.isTaskUser = false;\n }\n }); //根据流程定义id获取流程信息\n\n this.$store.dispatch(\"storeProcess/defGet\", this.defId).then(function (res) {\n if (res.urgentMailTel) {\n _this.contentMail = res.urgentMailTel;\n }\n\n if (res.urgentSmsTel) {\n _this.contentSms = res.urgentSmsTel;\n }\n });\n },\n //可选变量\n handleCommand: function handleCommand(command) {\n if (this.type == \"mail\") {\n this.contentMail = this.contentMail + command;\n } else if (this.type == \"sms\" || this.type == \"smsApproval\") {\n this.contentSms = this.contentSms + command;\n }\n },\n //取消\n cancel: function cancel() {\n this.taskUrgentDialog = false;\n },\n //确认\n confirm: function confirm() {\n var _this2 = this;\n\n var content = \"\"; //催办内容\n\n if (this.type == \"mail\") {\n content = this.contentMail;\n } else if (this.type == \"sms\") {\n content = this.contentSms;\n }\n\n if (!this.selectNodeId) {\n Message.warning(\"被催办人不能为空\");\n return;\n }\n\n if (this.appointee.length == 0) {\n Message.warning(\"请选择被催办人\");\n return;\n }\n\n if (content == \"\") {\n Message.warning(\"请输入催办内容\");\n return;\n }\n\n var isAppointeeSecretary = false;\n\n if (this.appointeeSecretary == \"1\") {\n isAppointeeSecretary = true;\n }\n\n var appointeeId = \"\"; //被催办人ID\n\n var appointeeName = \"\"; //被催办人\n\n for (var i = 0; i < this.appointee.length; i++) {\n appointeeId = appointeeId + this.appointee[i].userId + \",\";\n appointeeName = appointeeName + this.appointee[i].fullname + \",\";\n }\n\n var data = {\n \"subject\": this.subject,\n \"type\": this.type,\n \"instId\": this.instId,\n \"content\": content,\n \"appointeeId\": appointeeId.substring(0, appointeeId.length - 1),\n \"appointee\": appointeeName.substring(0, appointeeName.length - 1),\n 'nodeName': this.nodeDefMap[this.selectNodeId].name,\n 'nodeId': this.selectNodeId,\n \"promoterId\": JSON.parse(sessionStorage.getItem(\"currentUser\")).userId,\n \"promoter\": JSON.parse(sessionStorage.getItem(\"currentUser\")).username,\n \"appointeeSecretary\": isAppointeeSecretary\n };\n this.$store.dispatch(\"storeProcess/sendBpmTaskUrgent\", data).then(function () {\n _this2.taskUrgentDialog = false;\n });\n }\n }\n};",null]}