{"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\\myRequest.vue?vue&type=script&lang=js&","dependencies":[{"path":"D:\\jenkins\\workspace\\xq-web-fvue\\src\\components\\flow\\myRequest.vue","mtime":1667327529403},{"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/es7.object.get-own-property-descriptors\";\nimport \"core-js/modules/web.dom.iterable\";\nimport \"core-js/modules/es6.object.keys\";\nimport \"regenerator-runtime/runtime\";\nimport _asyncToGenerator from \"D:/jenkins/workspace/xq-web-fvue/node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js\";\nimport \"core-js/modules/es7.array.includes\";\nimport \"core-js/modules/es6.string.starts-with\";\nimport \"core-js/modules/es6.regexp.search\";\nimport _defineProperty from \"D:/jenkins/workspace/xq-web-fvue/node_modules/@babel/runtime/helpers/esm/defineProperty.js\";\n\nfunction ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }\n\nfunction _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }\n\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\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 FlowTree from '@/components/flow/flowTree.vue';\nimport utils from '@/utils.js';\nimport process from '@/api/process.js';\nimport TaskImage from \"@/components/flow/task/taskImage.vue\";\nvar MY_REQUEST_STATUS = {\n revoke: '撤回',\n revokeToStart: '撤回到发起人',\n draft: '草稿',\n running: '运行中',\n end: '结束',\n manualend: '人工结束',\n back: '驳回',\n backToStart: '驳回到发起人'\n};\nexport default {\n name: 'myRequest',\n components: {\n FlowTree: FlowTree,\n TaskImage: TaskImage\n },\n props: {\n defKey: {\n type: String,\n default: ''\n }\n },\n data: function data() {\n return {\n myRequestStatus: MY_REQUEST_STATUS,\n isAsideShow: false,\n asideShow: false,\n form: {\n tableData: '',\n date: '',\n statusData: ''\n },\n fullscreenLoading: true,\n dialogFormVisible: false,\n opinion: '',\n currentTree: '',\n id: '',\n statusData: '',\n options: [{\n value: '',\n label: '请选择状态'\n }, {\n value: 'revoke',\n label: '撤回'\n }, {\n value: 'draft',\n label: '草稿'\n }, {\n value: 'back',\n label: '驳回'\n }, {\n value: 'end',\n label: '结束'\n }, {\n value: 'running',\n label: '运行中'\n }],\n showOperation: false,\n selectInstanceId: \"\",\n selectDefId: \"\",\n selectBpmnInstId: \"\"\n };\n },\n computed: _objectSpread(_objectSpread({}, mapState('storeProcess', ['rows', 'pagination', 'total'])), {}, {\n currentSwitchValue: function currentSwitchValue() {\n return localStorage.myRequestAsideShow === 'true' || localStorage.myRequestAsideShow === true;\n }\n }),\n methods: {\n //将当前展开或者收起的值存在localStorage中\n handleSwitch: function handleSwitch(val) {\n localStorage.myRequestAsideShow = val;\n },\n //选择状态查询\n statusChange: function statusChange(value) {\n this.form.statusData = value;\n this.search('find');\n },\n handleClose: function handleClose(done) {\n this.dialogFormVisible = true;\n },\n //逻辑删除流程实例\n deleteBpm: function deleteBpm(id) {\n var _this = this;\n\n this.$confirm('确认删除此流程?', '提示', {\n cancelButtonText: '取消',\n confirmButtonText: '确定',\n type: 'warning',\n closeOnClickModal: false\n }).then(function () {\n _this.$store.dispatch('storeProcess/restore', id).then(function () {\n _this.search('find');\n });\n });\n },\n //终止流程\n doEndProcessById: function doEndProcessById(id) {\n var _this2 = this;\n\n this.$confirm('确认终止此流程?', '提示', {\n cancelButtonText: '取消',\n confirmButtonText: '确定',\n type: 'warning',\n closeOnClickModal: false\n }).then(function () {\n _this2.$store.dispatch('storeProcess/doEndProcessById', id).then(function () {\n _this2.search('find');\n });\n });\n },\n //删除草稿\n deleteDraft: function deleteDraft(id) {\n var _this3 = this;\n\n this.$store.dispatch('storeProcess/removeDraftById', id).then(function () {\n _this3.search('find');\n });\n },\n //撤回到发起人\n handleRevoke: function handleRevoke(id, status) {\n if (status == 'revokeToStart') {\n this.$message.warning('已撤回,不能再撤回');\n return false;\n }\n\n this.dialogFormVisible = true;\n this.id = id;\n },\n saveRevoke: function saveRevoke() {\n var _this4 = this;\n\n if (this.opinion == '') {\n this.$message.warning('请填写撤回意见');\n return false;\n }\n\n var data = {\n instanceId: this.id,\n isHandRevoke: false,\n cause: this.opinion\n };\n this.$store.dispatch('storeProcess/revokeInstance', data).then(function () {\n _this4.dialogFormVisible = false;\n _this4.opinion = '';\n\n _this4.search();\n });\n },\n exitRevoke: function exitRevoke() {\n this.dialogFormVisible = false;\n this.opinion = '';\n },\n //Loading 加载中\n openFullScreen: function openFullScreen() {\n this.fullscreenLoading = true;\n },\n handleSizeChange: function handleSizeChange(size) {\n //每页下拉显示数据\n this.$store.dispatch('storeProcess/setPaginationSize', size);\n this.search();\n },\n handleCurrentChange: function handleCurrentChange(currentPage) {\n //点击第几页\n this.$store.dispatch('storeProcess/setPaginationPageNum', currentPage);\n this.search();\n },\n //回车查询\n searchEnterFun: function searchEnterFun(e) {\n var keyCode = window.event ? e.keyCode : e.which;\n\n if (keyCode == 13) {\n this.search('find');\n }\n },\n // 查询\n search: function search(str) {\n var _this5 = this;\n\n this.openFullScreen();\n\n if (str == 'find') {\n this.$store.dispatch('storeProcess/setPaginationPageNum', 1);\n }\n\n var querys = []; //查询条件\n\n var queryFilter = {};\n var pageBean = {\n pageBean: this.pagination\n };\n var beginDate = ''; //开始时间\n\n var endDate = ''; //结束时间\n\n var group = 'main'; //判断条件\n\n if (this.form.tableData == '' && this.form.statusData == '' && (this.form.date == '' || this.form.date == null)) {\n if (this.currentTree != '') {\n querys = [{\n property: 'type_id_',\n value: this.currentTree,\n group: 'typeId',\n operation: 'IN',\n relation: 'AND'\n }];\n }\n } else {\n if (this.form.tableData != '' && this.form.statusData != '' && this.form.date != '' && this.form.date != null) {\n group = 'time';\n }\n\n if (this.form.date != null && this.form.date != '') {\n beginDate = utils.formatDate(this.form.date[0].getTime());\n endDate = utils.formatDate(this.form.date[1].getTime());\n }\n\n if (this.form.tableData) {\n querys.push({\n property: 'proc_def_name_',\n value: this.form.tableData,\n group: 'main',\n operation: 'LIKE',\n relation: 'OR'\n });\n querys.push({\n property: 'subject_',\n value: this.form.tableData,\n group: 'main',\n operation: 'LIKE',\n relation: 'OR'\n });\n querys.push({\n property: 'bpm_pro_inst.id_',\n value: this.form.tableData,\n group: 'main',\n operation: 'LIKE',\n relation: 'OR'\n });\n }\n\n if (beginDate && endDate) {\n querys.push({\n property: 'create_time_',\n value: [beginDate, endDate],\n group: group,\n operation: 'BETWEEN',\n relation: 'AND'\n });\n }\n\n if (this.form.statusData) {\n querys.push({\n property: 'status_',\n value: this.form.statusData,\n group: 'status',\n operation: 'LIKE',\n relation: 'AND'\n });\n }\n\n if (this.currentTree) {\n querys.push({\n property: 'type_id_',\n value: this.currentTree,\n group: 'typeId',\n operation: 'IN',\n relation: 'AND'\n });\n }\n }\n\n if (this.defKey) {\n querys.push({\n property: 'proc_def_key_',\n value: this.defKey,\n operation: 'EQUAL',\n relation: 'AND'\n });\n }\n\n queryFilter = {\n pageBean: this.pagination,\n querys: querys\n };\n this.$store.dispatch('storeProcess/getMyRequestByPagination', queryFilter).then(function () {\n _this5.fullscreenLoading = false;\n });\n },\n //重置\n reset: function reset() {\n this.form = {\n tableData: '',\n date: '',\n statusData: ''\n };\n this.search('find');\n },\n handleRowClick: function handleRowClick(row, newWin) {\n if (this.defKey) {\n this.handleOpenUrl('/sysModuleInst/' + row.id + '/request/' + this.defKey, newWin);\n }\n\n if (row.status == 'draft') {\n this.handleOpenUrl('/start/' + row.procDefId + '/' + row.id, newWin);\n } else if (row.status == 'end' || row.status == 'manualend') {\n this.handleOpenUrl('/instRead/' + row.id + '/myRequest', newWin);\n } else {\n this.handleOpenUrl('/inst/' + row.id + '/request', newWin);\n }\n },\n handleOpenUrl: function handleOpenUrl(url, newWin) {\n if (!newWin) {\n this.$router.push(url);\n return;\n }\n\n if (!url) {\n return;\n }\n\n var token = this.$store.state.login.currentUser.token;\n\n if (!url.toLowerCase().startsWith(\"http\")) {\n url = window.context.front + url;\n }\n\n if (url.indexOf('?') == -1) {\n url = url + \"?token=\" + token;\n } else {\n url = url + \"&token=\" + token;\n }\n\n window.open(url, \"_blank\");\n },\n //子组件传值父组件(我的请求分类查询)\n getCurrent: function getCurrent(data) {\n var _this6 = this;\n\n if (data.id == 6) {\n this.openFullScreen();\n this.currentTree = '';\n var pageBean = {\n pageBean: this.pagination\n };\n this.$store.dispatch('storeProcess/getMyRequestByPagination', pageBean).then(function () {\n //页面加载调用myRequest.js里面的分页方法\n _this6.fullscreenLoading = false;\n });\n } else {\n var ids = [];\n this.getFlowTrees(data, ids);\n this.currentTree = ids.join(',');\n this.search('find');\n }\n },\n getFlowTrees: function getFlowTrees(data, ids) {\n ids.push(data.id);\n var arr = data.children;\n\n for (var i = 0; i < arr.length; i++) {\n this.getFlowTrees(arr[i], ids);\n }\n },\n loadCount: function loadCount() {\n var pageBean = {};\n return process.getMyRequestCount(pageBean);\n },\n checkOperationShow: function checkOperationShow(data) {\n //draft manualend revokeToStart backToStart back revokeToStart backToStart back(&&backToStart==true)\n //是否显示操作列\n if (!data || data.length == 0) {\n this.showOperation = false;\n return;\n }\n\n var arr = [\"draft\", \"manualend\", \"revokeToStart\", \"backToStart\", \"revokeToStart\"];\n\n for (var i = 0; i < data.length; i++) {\n var row = data[i];\n\n if (row.status == 'back' && row.backToStart == true || arr.includes(row.status)) {\n this.showOperation = true;\n return;\n }\n }\n\n this.showOperation = false;\n },\n handleShowTaskImage: function () {\n var _handleShowTaskImage = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee(row) {\n return regeneratorRuntime.wrap(function _callee$(_context) {\n while (1) {\n switch (_context.prev = _context.next) {\n case 0:\n _context.next = 2;\n return this.changeSeletion(row);\n\n case 2:\n this.$refs.taskImage.handleOpen();\n\n case 3:\n case \"end\":\n return _context.stop();\n }\n }\n }, _callee, this);\n }));\n\n function handleShowTaskImage(_x) {\n return _handleShowTaskImage.apply(this, arguments);\n }\n\n return handleShowTaskImage;\n }(),\n changeSeletion: function changeSeletion(row) {\n this.selectInstanceId = row.id;\n this.selectBpmnInstId = row.bpmnInstId;\n }\n },\n created: function created() {\n var _this7 = this;\n\n this.asideShow = this.currentSwitchValue;\n this.isAsideShow = this.currentSwitchValue;\n var querys = [];\n\n if (this.defKey) {\n querys.push({\n property: 'proc_def_key_',\n value: this.defKey,\n operation: 'EQUAL',\n relation: 'AND'\n });\n }\n\n var pageBean = {\n pageBean: {\n page: '1',\n pageSize: '10',\n showTotal: 'true'\n },\n querys: querys\n }; //初次加载默认pageBean\n\n this.$store.dispatch('storeProcess/getMyRequestByPagination', pageBean).then(function () {\n //页面加载调用myRequest.js里面的分页方法\n _this7.fullscreenLoading = false;\n });\n },\n watch: {\n rows: function rows(newValue, oldValue) {\n this.checkOperationShow(newValue);\n }\n }\n};",null]}