{"remainingRequest":"D:\\jenkins\\workspace\\xq-web-bpm\\node_modules\\thread-loader\\dist\\cjs.js!D:\\jenkins\\workspace\\xq-web-bpm\\node_modules\\babel-loader\\lib\\index.js!D:\\jenkins\\workspace\\xq-web-bpm\\node_modules\\cache-loader\\dist\\cjs.js??ref--0-0!D:\\jenkins\\workspace\\xq-web-bpm\\node_modules\\vue-loader\\lib\\index.js??vue-loader-options!D:\\jenkins\\workspace\\xq-web-bpm\\src\\components\\flow\\TransferEdit.vue?vue&type=script&lang=js&","dependencies":[{"path":"D:\\jenkins\\workspace\\xq-web-bpm\\src\\components\\flow\\TransferEdit.vue","mtime":1675071991913},{"path":"D:\\jenkins\\workspace\\xq-web-bpm\\node_modules\\cache-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\jenkins\\workspace\\xq-web-bpm\\node_modules\\thread-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\jenkins\\workspace\\xq-web-bpm\\node_modules\\babel-loader\\lib\\index.js","mtime":315532800000},{"path":"D:\\jenkins\\workspace\\xq-web-bpm\\node_modules\\cache-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\jenkins\\workspace\\xq-web-bpm\\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//\n//\n//\n//\n//\n//\n//\nimport flow from \"@/api/flow.js\";\n\nvar eipUserSelector = function eipUserSelector() {\n return import(\"@/components/selector/EipUserSelector.vue\");\n};\n\nexport default {\n components: {\n eipUserSelector: eipUserSelector\n },\n data: function data() {\n return {\n dialogVisible: false,\n reasonDialogVisible: false,\n pageResult: {\n page: 0,\n pageSize: 50,\n total: 0\n },\n flowData: [],\n data: {},\n selectUsers: {},\n expression: \"\"\n };\n },\n methods: {\n beforeClose: function beforeClose() {\n this.dialogVisible = false;\n this.flowData = [];\n this.data = {};\n },\n beforeReasonClose: function beforeReasonClose() {\n this.reasonDialogVisible = false;\n this.expression = \"\";\n },\n loadData: function loadData(param, cb) {\n var _this2 = this;\n\n if (this.data.transfer != null) {\n flow.getInstList(this.data.transfer, param).then(function (response) {\n _this2.flowData = response.rows;\n _this2.pageResult = {\n pageSize: response.pageSize,\n page: response.page,\n total: response.total\n };\n }).finally(function () {\n cb();\n });\n } else {\n cb();\n }\n },\n handleOpen: function handleOpen() {\n this.dialogVisible = true;\n },\n transfer: function transfer() {\n var selectRows = this.$refs.table.$refs.htTable.selection;\n\n if (this.data.transfer && this.data.transfer === this.data.transfered) {\n this.$message({\n type: \"warning\",\n message: \"移交人和被移交人不能为同一人!\"\n });\n return;\n }\n\n if (!this.data.transfer) {\n this.$message({\n type: \"warning\",\n message: '移交人不能为空!'\n });\n return;\n }\n\n if (!this.data.transfered) {\n this.$message({\n type: \"warning\",\n message: '被移交人不能为空'\n });\n return;\n }\n\n var instjson = \"\";\n\n if (selectRows) {\n var instArr = [];\n\n for (var i = 0; i < selectRows.length; i++) {\n instArr.push({\n \"instId\": selectRows[i].id,\n \"defId\": selectRows[i].procDefId\n });\n }\n\n if (instArr.length > 0) {\n instjson = JSON.stringify(instArr);\n }\n }\n\n if (!instjson) {\n this.$message({\n type: \"warning\",\n message: '请选择要移交的流程!'\n });\n return;\n }\n\n this.data.insts = instjson;\n this.reasonDialogVisible = true;\n },\n input: function input(value) {\n this.$refs.table.load();\n },\n confirm: function confirm() {\n var _this = this;\n\n this.data.type = \"离职移交\";\n this.data.reason = this.expression;\n\n if (!this.data.reason) {\n this.$message({\n type: \"warning\",\n message: '移交原因必填!'\n });\n return;\n }\n\n if (this.data.insts) {\n this.data.isadmin = \"y\";\n flow.turnOver(this.data).then(function (response) {\n if (response.state) {\n _this.$message({\n type: \"success\",\n message: \"移交成功\"\n });\n\n _this.beforeClose();\n\n _this.beforeReasonClose();\n\n _this.$emit(\"after-save\", {});\n } else {\n this.$message.error(response.message);\n }\n });\n }\n }\n }\n};",null]}