{"remainingRequest":"D:\\jenkins\\workspace\\yhxt-web\\node_modules\\thread-loader\\dist\\cjs.js!D:\\jenkins\\workspace\\yhxt-web\\node_modules\\babel-loader\\lib\\index.js!D:\\jenkins\\workspace\\yhxt-web\\node_modules\\cache-loader\\dist\\cjs.js??ref--0-0!D:\\jenkins\\workspace\\yhxt-web\\node_modules\\vue-loader\\lib\\index.js??vue-loader-options!D:\\jenkins\\workspace\\yhxt-web\\src\\views\\dailyMaintenance\\AlreadyWorkOrder.vue?vue&type=script&lang=js&","dependencies":[{"path":"D:\\jenkins\\workspace\\yhxt-web\\src\\views\\dailyMaintenance\\AlreadyWorkOrder.vue","mtime":1717697645384},{"path":"D:\\jenkins\\workspace\\yhxt-web\\babel.config.js","mtime":1667326389982},{"path":"D:\\jenkins\\workspace\\yhxt-web\\node_modules\\cache-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\jenkins\\workspace\\yhxt-web\\node_modules\\thread-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\jenkins\\workspace\\yhxt-web\\node_modules\\babel-loader\\lib\\index.js","mtime":456789000000},{"path":"D:\\jenkins\\workspace\\yhxt-web\\node_modules\\cache-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\jenkins\\workspace\\yhxt-web\\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/es6.object.keys\";\nimport \"core-js/modules/es6.function.name\";\nimport \"core-js/modules/web.dom.iterable\";\nimport \"regenerator-runtime/runtime\";\nimport _asyncToGenerator from \"D:/jenkins/workspace/yhxt-web/node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js\";\nimport \"core-js/modules/es6.string.starts-with\";\nimport _defineProperty from \"D:/jenkins/workspace/yhxt-web/node_modules/@babel/runtime/helpers/esm/defineProperty.js\";\nimport \"core-js/modules/es6.regexp.search\";\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; }\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//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\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 basicData from '@/api/basicData.js';\nimport req from '@/request.js';\nimport { mapState, mapActions } from 'vuex';\nimport process from '@/api/process';\nimport utils from '@/utils.js';\nimport TaskImage from '@/components/flow/task/taskImage.vue';\nexport default {\n name: 'doneRead',\n components: {\n TaskImage: TaskImage\n },\n props: {\n defKey: {\n type: String,\n default: ''\n }\n },\n data: function data() {\n return {\n isAsideShow: false,\n asideShow: false,\n form: {\n tableData: '',\n date: '',\n orgName: '',\n orgId: ''\n },\n currentTree: '1425741173624016896',\n fullscreenLoading: true,\n dialogFormVisible: false,\n opinion: '',\n id: '',\n ids: '',\n //已办实例id集合,\n selectInstanceId: '',\n selectDefId: '',\n selectBpmnInstId: '',\n dialogQuarterVisible: false,\n //季度选择弹层关闭控件\n formQuarter: {\n radioQuarter: '1',\n yearValue: new Date().getFullYear()\n },\n rulesQuarter: {\n yearValue: {\n required: true,\n message: '请选择年份',\n trigger: 'blur'\n },\n contractId: {\n required: true,\n message: '请选择合同',\n trigger: 'blur'\n },\n radioQuarter: {\n required: true,\n message: '请选择季度',\n trigger: 'blur'\n }\n },\n yearOptions: [],\n contractOptions: [],\n //选择合同数据\n radioQuarter: '1',\n //季度选择单选按钮所选值\n dialogEngineeringVisible: false,\n formEngineering: {},\n roadData: [],\n rulesEngineering: {},\n dictSelection: [],\n dialogEngineeringLoading: false,\n dialogQuarterLoading: false\n };\n },\n watch: {\n 'form.orgId': {\n handler: function handler(newName, oldName) {\n this.search('find');\n },\n immediate: true\n }\n },\n computed: _objectSpread(_objectSpread({}, mapState('storeProcess', ['rows', 'pagination', 'total'])), {}, {\n currentSwitchValue: function currentSwitchValue() {\n return localStorage.doneAsideShow === 'true' || localStorage.doneAsideShow === true;\n }\n }),\n methods: {\n handleDbClick: function handleDbClick(row) {\n console.log(row);\n this.handleRowClick(row);\n },\n //将当前展开或者收起的值存在localStorage中\n handleSwitch: function handleSwitch(val) {\n localStorage.doneAsideShow = val;\n },\n rowClick: function rowClick(row, column, event) {\n this.$refs.htTable.toggleRowSelection(row);\n },\n //批量勾选待办流程获取\n handleSelectionChange: function handleSelectionChange(val) {\n this.dictSelection = val;\n this.ids = '';\n if (val.length > 0) {\n for (var i = 0; i < val.length; i++) {\n this.ids = this.ids + val[i].id + ',';\n }\n this.ids = this.ids.substring(0, this.ids.length - 1);\n }\n },\n formatDate: function formatDate(value) {\n return utils.formatDate(value.createTime);\n },\n handleClose: function handleClose(done) {\n this.dialogFormVisible = true;\n },\n //撤回到上一个节点\n handleRevoke: function handleRevoke(id) {\n this.dialogFormVisible = true;\n this.id = id;\n },\n saveRevoke: function saveRevoke() {\n var _this = this;\n if (this.opinion == '') {\n this.$message.warning('请填写撤回意见');\n return false;\n }\n var data = {\n instanceId: this.id,\n isHandRevoke: true,\n cause: this.opinion\n };\n this.$store.dispatch('storeProcess/revokeInstance', data).then(function () {\n _this.dialogFormVisible = false;\n _this.opinion = '';\n _this.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 if (keyCode == 13) {\n this.search('find');\n }\n },\n // 查询\n search: function search(str) {\n var _this2 = this;\n this.openFullScreen();\n if (str == 'find') {\n this.$store.dispatch('storeProcess/setPaginationPageNum', 1);\n }\n var querys = []; //查询条件\n var queryFilter = {};\n var pageBean = {\n pageBean: this.pagination\n };\n var beginDate = ''; //开始时间\n var endDate = ''; //结束时间\n var group = 'main'; //判断条件\n\n if (this.form.tableData) {\n querys = [{\n property: 'proc_def_name_',\n value: this.form.tableData,\n group: 'main',\n operation: 'LIKE',\n relation: 'OR'\n }, {\n property: 'subject_',\n value: this.form.tableData,\n group: 'main',\n operation: 'LIKE',\n relation: 'OR'\n }, {\n property: 'wfInst.id_',\n value: this.form.tableData,\n group: 'main',\n operation: 'LIKE',\n relation: 'OR'\n }];\n }\n if (this.form.orgId) {\n querys.push({\n property: 'wfInst.CREATE_ORG_PATH_',\n value: this.form.orgId,\n group: 'orgId',\n operation: 'LIKE',\n relation: 'AND'\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 // if (this.form.date) {\n // beginDate = utils.formatDate(this.form.date[0].getTime())\n // endDate = utils.formatDate(this.form.date[1].getTime())\n // querys.push({\n // property: 'wfInst.create_time_',\n // value: [beginDate, endDate],\n // group: 'time',\n // operation: 'BETWEEN',\n // relation: 'AND',\n // })\n // }\n\n if (this.form.startTime) {\n querys.push({\n property: 'wfInst.create_time_',\n value: this.form.startTime,\n group: 'time',\n operation: 'GREAT_EQUAL',\n relation: 'AND'\n });\n }\n if (this.form.endTime) {\n querys.push({\n property: 'wfInst.create_time_',\n value: this.form.endTime,\n group: 'time',\n operation: 'LESS_EQUAL',\n relation: 'AND'\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 queryFilter = {\n pageBean: this.pagination,\n querys: querys\n };\n this.$store.dispatch('storeProcess/getDoneByPagination', queryFilter).then(function () {\n _this2.fullscreenLoading = false;\n });\n },\n //重置\n reset: function reset() {\n this.form = {\n tableData: '',\n date: '',\n orgName: '',\n orgId: ''\n };\n this.search('find');\n },\n handleRowClick: function handleRowClick(row, newWin) {\n //判断是否显示撤回按钮\n console.log(row);\n var type = '';\n if (!(row.status != 'running' || row.opinionStatus != 'agree') || row.opinionStatus == 'inqu') {\n type = 'done';\n } else {\n type = 'doneList';\n }\n if (this.defKey) {\n this.handleOpenUrl('/sysModuleInst/' + row.id + '/' + type + '/' + this.defKey, newWin);\n } else {\n this.handleOpenUrl('/inst/' + row.id + '/' + type, newWin);\n }\n },\n handleOpenUrl: function handleOpenUrl(url, newWin) {\n if (!newWin) {\n this.$router.push(url);\n return;\n }\n if (!url) {\n return;\n }\n var token = this.$store.state.login.currentUser.token;\n if (!url.toLowerCase().startsWith('http')) {\n url = window.context.front + url;\n }\n if (url.indexOf('?') == -1) {\n url = url + '?token=' + token;\n } else {\n url = url + '&token=' + token;\n }\n window.open(url, '_blank');\n },\n //子组件传值父组件(已办分类查询)\n getCurrent: function getCurrent(data) {\n if (data.id == 6) {\n this.currentTree = '';\n } else {\n var ids = [];\n this.getFlowTrees(data, ids);\n this.currentTree = ids.join(',');\n }\n this.search('find');\n },\n getFlowTrees: function getFlowTrees(data, ids) {\n ids.push(data.id);\n var arr = data.children;\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.getDoneInstCount(pageBean);\n },\n handleShowTaskImage: function () {\n var _handleShowTaskImage = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee(row) {\n return regeneratorRuntime.wrap(function _callee$(_context) {\n while (1) switch (_context.prev = _context.next) {\n case 0:\n _context.next = 2;\n return this.changeSeletion(row);\n case 2:\n this.$refs.taskImage.handleOpen();\n case 3:\n case \"end\":\n return _context.stop();\n }\n }, _callee, this);\n }));\n function handleShowTaskImage(_x) {\n return _handleShowTaskImage.apply(this, arguments);\n }\n return handleShowTaskImage;\n }(),\n changeSeletion: function changeSeletion(row) {\n this.selectInstanceId = row.id;\n this.selectBpmnInstId = row.bpmnInstId;\n },\n handelExport: function handelExport() {\n var _this3 = this;\n if (!this.dictSelection.length) {\n this.$message.warning(\"\\u8BF7\\u9009\\u62E9\\u8981\\u5BFC\\u51FA\\u7684\\u6570\\u636E\");\n return;\n }\n {\n var msg = \"\\u786E\\u5B9A\\u5BFC\\u51FA\\u9009\\u4E2D\\u6570\\u636E\\u5417?\";\n this.$confirm(msg, '提示', {\n confirmButtonText: '确定',\n cancelButtonText: '取消',\n type: 'warning'\n }).then(function () {\n _this3.fullscreenLoading = true;\n var ids = [];\n _this3.dictSelection.forEach(function (item) {\n ids.push(item.workOrderInformation.id);\n });\n var param = _this3.qs.stringify({\n ids: ids.join(',')\n });\n // 调用接口 提交数据\n var url = window.context.yhxt + '/workOrderInformation/v1/exportWorkOrder?' + param;\n req.downloadGet(url).then(function () {\n _this3.fullscreenLoading = false;\n _this3.dictSelection = [];\n });\n }).catch(function () {\n _this3.$message({\n type: 'info',\n message: \"\\u5DF2\\u5BFC\\u51FA\\u9009\\u4E2D\\u7684\\u6570\\u636E\"\n });\n });\n }\n },\n handelContractExport: function handelContractExport() {\n this.getContractData();\n this.dialogQuarterVisible = true;\n },\n handeleBillOfWordExport: function handeleBillOfWordExport(key) {\n this.contractOptions = [];\n this.engineeringExportParams = {};\n this.formEngineering = {\n roadSegmentId: '',\n contractId: ''\n };\n this.exportKey = key;\n this.dialogEngineeringVisible = true;\n },\n handleProjectRecordExprot: function handleProjectRecordExprot(key) {\n this.contractOptions = [];\n this.engineeringExportParams = {};\n this.formEngineering = {\n roadSegmentId: '',\n contractId: ''\n };\n this.exportKey = key;\n this.dialogEngineeringVisible = true;\n },\n handleSummaryOfQuantitiesExport: function handleSummaryOfQuantitiesExport(key) {\n this.contractOptions = [];\n this.engineeringExportParams = {};\n this.formEngineering = {\n roadSegmentId: '',\n contractId: ''\n };\n this.exportKey = key;\n this.dialogEngineeringVisible = true;\n },\n handleQuarterSubmit: function handleQuarterSubmit() {\n var _this4 = this;\n this.$refs.quarterRef.validate(function (bool) {\n if (bool) {\n var radioVal = _this4.formQuarter.radioQuarter;\n var yearVal = _this4.formQuarter.yearValue;\n if (radioVal == '1') {\n _this4.formQuarter.startTime = yearVal + '-01-01';\n _this4.formQuarter.endTime = yearVal + '-03-31';\n } else if (radioVal == '2') {\n _this4.formQuarter.startTime = yearVal + '-04-01';\n _this4.formQuarter.endTime = yearVal + '-06-30';\n } else if (radioVal == '3') {\n _this4.formQuarter.startTime = yearVal + '-07-01';\n _this4.formQuarter.endTime = yearVal + '-09-30';\n } else {\n _this4.formQuarter.startTime = yearVal + '-10-01';\n _this4.formQuarter.endTime = yearVal + '-12-31';\n }\n var param = {\n startTime: _this4.formQuarter.startTime,\n endTime: _this4.formQuarter.endTime,\n contractId: _this4.formQuarter.contractId\n };\n var url = window.context.yhxt + '/workOrderInformation/v1/exportWorkOrdersConstruction?' + 'startTime=' + param.startTime + '&endTime=' + param.endTime + '&contractId=' + param.contractId;\n _this4.dialogQuarterLoading = true;\n req.downloadGet(url).then(function (res) {\n if (res.status == 500) {\n _this4.$message.error('未找到对应工单信息,请重新选择条件');\n } else {\n _this4.dialogQuarterVisible = false;\n }\n _this4.dialogQuarterLoading = false;\n });\n }\n });\n },\n handleEngineeringSubmit: function handleEngineeringSubmit() {\n var _this5 = this;\n this.engineeringExportParams = {\n contractId: this.formEngineering.contractId,\n roadSegmentId: this.formEngineering.roadSegmentId,\n startTime: this.formEngineering.timeRange[0],\n endTime: this.formEngineering.timeRange[1]\n };\n var str = '';\n for (var i in this.engineeringExportParams) {\n if (this.engineeringExportParams[i]) {\n str += \"\".concat(i, \"=\").concat(this.engineeringExportParams[i], \"&\");\n }\n }\n var url = '';\n switch (this.exportKey) {\n case 'bill':\n url = '/workOrder/export/v1/exportWorkOrdersConstruction';\n break;\n case 'record':\n url = '/workOrder/export/v1/exportWorkOrdersDebitRecordConstruction';\n break;\n case 'quantity':\n url = '/workOrder/export/v1/exportWorkOrdersQuantitiesConstruction';\n break;\n default:\n break;\n }\n this.dialogEngineeringLoading = true;\n req.downloadPost(window.context.yhxt + url, this.engineeringExportParams).then(function (res) {\n if (res.data.state) {\n _this5.$message.success('导出成功');\n _this5.dialogEngineeringVisible = false;\n } else {\n // this.$message.error('当前时间段没有工单信息')\n }\n _this5.dialogEngineeringLoading = false;\n }).catch(function (err) {\n _this5.dialogEngineeringLoading = false;\n // this.$message.error('当前时间段没有工单信息')\n });\n },\n handleQuarterClose: function handleQuarterClose() {\n this.dialogQuarterVisible = false;\n },\n getFullYearSelect: function getFullYearSelect() {\n var year = new Date().getFullYear();\n for (var i = 5; i >= 0; i--) {\n this.yearOptions.push({\n label: year - i + '年',\n value: year - i\n });\n }\n },\n /* 根据所选季度导出合同 */getContractData: function getContractData() {\n var _this6 = this;\n var params = {\n pageBean: {\n page: 1,\n pageSize: -1,\n showTotal: true\n }\n };\n this.$http.post('${yhxt}/contract/v1/getJson', params).then(function (res) {\n res.data.rows.forEach(function (item) {\n _this6.contractOptions.push({\n id: item.id,\n name: item.name\n });\n });\n });\n },\n handleEngineeringClose: function handleEngineeringClose() {\n this.formEngineering = {};\n this.contractOptions = [];\n this.dialogEngineeringVisible = false;\n },\n changeRoadSegment: function changeRoadSegment(id) {\n this.formEngineering.roadSegmentId = id;\n this.formEngineering = {\n contractId: '',\n roadSegmentId: id\n };\n this.contractOptions = [];\n this.getByContractId();\n },\n getByContractId: function getByContractId() {\n var _this7 = this;\n var params = {\n pageBean: {\n page: 1,\n pageSize: -1,\n showTotal: true\n },\n querys: [{\n group: 'main',\n operation: 'EQUAL',\n property: 'road_segment_id_',\n relation: 'AND',\n value: this.formEngineering.roadSegmentId\n }]\n };\n this.$http.post('${yhxt}/contract/v1/getJson', params).then(function (res) {\n res.data.rows.forEach(function (item) {\n _this7.contractOptions.push({\n id: item.id,\n name: item.name\n });\n });\n });\n },\n getroad: function getroad() {\n var arr = [];\n basicData.getRoadManagement().then(function (res) {\n res.rows.forEach(function (item) {\n arr.push({\n name: item.name,\n id: item.id\n });\n });\n });\n return arr;\n }\n },\n created: function created() {\n var _this8 = this;\n this.getByContractId();\n this.getFullYearSelect();\n this.roadData = this.getroad();\n this.asideShow = this.currentSwitchValue;\n this.isAsideShow = this.currentSwitchValue;\n var querys = [];\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 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 var pageBean = {\n pageBean: {\n page: '1',\n pageSize: '10',\n showTotal: 'true'\n },\n querys: querys\n }; //初次加载默认pageBean\n this.$store.dispatch('storeProcess/getDoneByPagination', pageBean).then(function () {\n //页面加载调用done.js里面的分页方法\n _this8.fullscreenLoading = false;\n });\n }\n};",null]}