{"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\\taskToDelay.vue?vue&type=script&lang=js&","dependencies":[{"path":"D:\\jenkins\\workspace\\xq-web-fvue\\src\\components\\flow\\task\\taskToDelay.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//\n//\nimport { mapState, mapActions } from \"vuex\";\nimport OpinionText from \"@/components/common/opinionText.vue\";\nimport FileUpload from \"@/components/common/fileUpload.vue\";\nimport { Message } from \"element-ui\";\nimport utils from \"@/utils.js\";\nexport default {\n name: \"taskToDelay\",\n props: [\"taskId\"],\n components: {\n OpinionText: OpinionText,\n FileUpload: FileUpload\n },\n data: function data() {\n return {\n delayDialog: false,\n percent: \"\",\n //已用时间\n addDueTime: 0,\n //延期时间(小时)\n expirationDate2: \"\",\n //延期后的时间 yyyy-mm-dd HH:mm:ss\n id: \"\",\n confirmData: {},\n addMinute: 0 //延期时间(分钟)\n\n };\n },\n watch: {\n addDueTime: function addDueTime(newVal, oldVal) {\n var _this = this;\n\n if (newVal != 0) {\n this.addMinute = newVal * 60;\n var data = {\n \"id\": this.id,\n \"time\": newVal * 60\n };\n this.$store.dispatch(\"storeProcess/getExpirationDate\", data).then(function (data) {\n _this.expirationDate2 = data;\n });\n } else {\n this.addMinute = 0;\n this.expirationDate2 = \"\";\n }\n }\n },\n computed: mapState({\n dueTime: function dueTime(state) {\n return state.storeProcess.dueTime;\n }\n }),\n methods: {\n //鼠标点击页面其他其他位置不关闭弹框\n handleClose: function handleClose(done) {\n var _this2 = this;\n\n this.delayDialog = true;\n this.$store.dispatch(\"storeProcess/bpmTaskDueTime\", this.taskId).then(function (data) {\n _this2.confirmData = data;\n _this2.id = data.id;\n var percent = (data.dueTime - data.remainingTime) * 100 / data.dueTime;\n _this2.percent = parseFloat(percent.toFixed(2));\n\n if (percent > 100) {\n _this2.percent = 100;\n }\n\n _this2.percent = _this2.percent + \"%\";\n });\n },\n //取消\n cancel: function cancel() {\n this.delayDialog = false;\n },\n //确认\n confirm: function confirm() {\n var _this3 = this;\n\n if (this.addDueTime == 0) {\n Message.warning(\"请填写延期时间\");\n return;\n } else if (this.$refs.opinionText.getOpinion() == \"\") {\n Message.warning(\"请填写延期说明\");\n return;\n }\n\n ;\n var files = \"\";\n\n if (this.$refs.fileUpload.getFiles() != \"\") {\n files = JSON.stringify(this.$refs.fileUpload.getFiles());\n }\n\n var data = {\n \"id\": this.confirmData.id,\n \"parentId\": this.confirmData.parentId,\n \"instId\": this.confirmData.instId,\n \"dateType\": this.confirmData.dateType,\n \"taskId\": this.confirmData.taskId,\n \"dueTime\": this.confirmData.dueTime,\n \"addDueTime\": this.addMinute,\n \"startTime\": this.confirmData.startTime,\n \"expirationDate\": this.confirmData.expirationDate,\n \"remainingTime\": this.confirmData.remainingTime,\n \"status\": this.confirmData.status,\n \"userId\": this.confirmData.userId,\n \"userName\": this.confirmData.userName,\n \"isNew\": this.confirmData.isNew,\n \"createTime\": this.confirmData.createTime,\n \"remark\": this.$refs.opinionText.getOpinion(),\n \"fileId\": files\n };\n this.$store.dispatch(\"storeProcess/dueTimeSave\", data).then(function () {\n _this3.delayDialog = false;\n utils.reload();\n });\n }\n }\n};",null]}