{"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\\structureArchivesManagement\\mainRecords.vue?vue&type=script&lang=js&","dependencies":[{"path":"D:\\jenkins\\workspace\\yhxt-web\\src\\views\\structureArchivesManagement\\mainRecords.vue","mtime":1689790396950},{"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.regexp.search\";\nimport _toConsumableArray from \"D:/jenkins/workspace/yhxt-web/node_modules/@babel/runtime/helpers/esm/toConsumableArray.js\";\nimport \"core-js/modules/es6.regexp.split\";\nimport _typeof from \"D:/jenkins/workspace/yhxt-web/node_modules/@babel/runtime/helpers/esm/typeof.js\";\nimport \"core-js/modules/es6.string.iterator\";\nimport \"core-js/modules/es6.map\";\nimport \"core-js/modules/es6.function.name\";\nimport _defineProperty from \"D:/jenkins/workspace/yhxt-web/node_modules/@babel/runtime/helpers/esm/defineProperty.js\";\nimport \"core-js/modules/web.dom.iterable\";\nimport \"core-js/modules/es6.regexp.constructor\";\nimport \"core-js/modules/es6.regexp.replace\";\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//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\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 req from '@/request.js';\nimport startFlow from '@/components/flow/taskFlowComponents/startFlow.vue';\nimport bizFlow from '@/api/bizFlow';\nimport ProcessRecordDialog from '@/components/flow/processRecordDialog.vue';\nimport routerInfoSelector from '@/components/selector/routerInfoSelector.vue';\nimport basicData from '@/api/basicData.js';\nimport companyInfoSelector from '@/components/selector/companyInfoSelector.vue';\nimport sctionInfoSelector from '@/components/selector/sctionInfoSelector.vue';\nimport { mapState } from 'vuex';\nimport CascaderCompany from '@/components/selector/CascaderCompany.vue';\nvar ImgPreviewUpload = function ImgPreviewUpload() {\n return import('@/components/common/ImgPreviewUpload.vue');\n};\nexport default {\n components: {\n startFlow: startFlow,\n ProcessRecordDialog: ProcessRecordDialog,\n // routerInfoSelector,\n // ImgPreviewUpload,\n // companyInfoSelector,\n // sctionInfoSelector,\n CascaderCompany: CascaderCompany\n },\n data: function data() {\n return {\n isQuestLoad: false,\n isDetilsShow: false,\n dictSelection: [],\n activeName: 'first',\n initialIndex: 0,\n //走马灯激活状态索引值\n isEnlarge: false,\n //用户是否选着放大病害照片列表\n isEnlargePre: false,\n //用户是否选着放大施工前列表\n isEnlargeUnd: false,\n //用户是否选着放大施工中列表\n isEnlargeSuf: false,\n //用户是否选着放大施工后列表\n roadData: [],\n company: [],\n searchForm: {},\n companyOptions: [],\n currentNode: 1,\n dialogVisible: false,\n dialogVisibleInfo: false,\n defId: '1434715043114651648',\n activeNames: ['1', '2', '3', '4', '5'],\n tableData: [],\n tableDataOutside: [],\n options: [],\n cbkm: [],\n soncbkm: [],\n contractInfoList: [],\n //合同信息列表\n isshow: false,\n dialogImageUrls: [],\n form: {\n accessoriesPre: [],\n accessoriesUnd: [],\n accessoriesSuf: [],\n billOfQuantities: [],\n contract: {},\n defaultBpmCheckOpinion: {},\n disease: {},\n workOrderInformation: {\n road: {}\n }\n },\n data: [],\n pageResult: {\n page: 1,\n pageSize: 50,\n total: 0\n },\n procInstId: '',\n taskId: '',\n referOpinion: '',\n nodeType: '',\n nodeId: '',\n findquerys: [],\n //用户输入查询参数\n isshowCreateWorksButton: true,\n //判断是否显示创建养护工单按钮,\n dialogQuarterVisible: false,\n //季度选择弹层关闭控件\n radioQuarter: '1',\n //季度选择单选按钮所选值\n yearOptions: [],\n formQuarter: {\n radioQuarter: '1',\n yearValue: new Date().getFullYear()\n },\n contractOptions: [],\n //选择合同数据\n workOrderInformationData: null,\n //工程清单、收方记录、汇总量导出参数\n engineeringExportParams: {\n contractId: '',\n endTime: '',\n roadSegmentId: '',\n startTime: ''\n },\n exportKey: '',\n dialogEngineeringVisible: false,\n formEngineering: {},\n subjectNameOptions: [],\n topViewData: [],\n // 顶部视图数据\n tableMaxHeight: 400,\n // table的高度\n currentOptions: [{\n value: '1',\n label: '施工前'\n }, {\n value: '2',\n label: '施工中'\n }, {\n value: '3',\n label: '施工后'\n }],\n cstatusOptions: [{\n value: '0',\n label: '未完成'\n }, {\n value: '1',\n label: '已完成'\n }, {\n value: '2',\n label: '已逾期'\n }, {\n value: '3',\n label: '派单中'\n }, {\n value: '4',\n label: '施工中'\n }, {\n value: '5',\n label: '施工单位验收'\n }, {\n value: '6',\n label: '审核中'\n }],\n rulesEngineering: {\n // contractId: {\n // required: true,\n // message: '请选择合同',\n // trigger: 'blur'\n // },\n // roadSegmentId: {\n // required: true,\n // message: '请选择路段',\n // trigger: 'blur'\n // },\n // timeRange: {\n // required: true,\n // message: '请选择时间',\n // trigger: 'blur'\n // }\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 loading: false\n };\n },\n computed: mapState({\n deleteUrl: function deleteUrl() {\n return window.context.yhxt + '/workOrderInformation/v1/deleWorkOrderInformation';\n }\n }),\n created: function created() {\n this.getByContractId();\n this.getFullYearSelect();\n this.getTypeOptions();\n this.getContractId();\n this.roadData = this.getroad();\n this.company = this.getCompany();\n Date.prototype.format = function (fmt) {\n var o = {\n 'M+': this.getMonth() + 1,\n //月份\n 'd+': this.getDate(),\n //日\n 'h+': this.getHours(),\n //小时\n 'm+': this.getMinutes(),\n //分\n 's+': this.getSeconds(),\n //秒\n 'q+': Math.floor((this.getMonth() + 3) / 3),\n //季度\n S: this.getMilliseconds() //毫秒\n };\n\n if (/(y+)/.test(fmt)) {\n fmt = fmt.replace(RegExp.$1, (this.getFullYear() + '').substr(4 - RegExp.$1.length));\n }\n for (var k in o) {\n if (new RegExp('(' + k + ')').test(fmt)) {\n fmt = fmt.replace(RegExp.$1, RegExp.$1.length == 1 ? o[k] : ('00' + o[k]).substr(('' + o[k]).length));\n }\n }\n return fmt;\n };\n this.form.workOrderInformation.issueDate = new Date().format('yyyy-MM-dd');\n },\n mounted: function mounted() {\n this.loadDef();\n // this.getTopView()\n // if (\n // Object.keys(this.$route.params).length !== 0 &&\n // Object.keys(this.$route.params.value).length !== 0 &&\n // this.$route.params.value.roadId\n // ) {\n // this.searchForm.roadSegmentId = this.$route.params.value.roadId\n // let state = this.$route.params.cstatus\n // this.searchForm = {\n // state,\n // ...this.searchForm,\n // }\n // this.$nextTick(() => {\n // this.isQuestLoad = false // 置位false表示不能请求loadData\n // this.getByRoadSegmentId()\n // })\n // }\n },\n\n methods: {\n showDialog: function showDialog() {\n this.$router.go(-1);\n },\n handleSearchRoadChange: function handleSearchRoadChange() {\n this.getByRoadSegmentId();\n },\n getByRoadSegmentId: function getByRoadSegmentId() {\n var _this = this;\n var pcdoe = '';\n var roadSegmentId = this.searchForm.roadSegmentId;\n this.$http.get('${yhxt}/bizCourseDetails/v1/get/getByParentIdRoad?pCode=' + pcdoe + '&roadSegmentId=' + roadSegmentId).then(function (res) {\n if (res.data.length !== 0) {\n pcdoe = res.data[0].subjectCode;\n _this.$http.get('${yhxt}/bizCourseDetails/v1/get/getByParentIdRoad?pCode=' + pcdoe + '&roadSegmentId=' + roadSegmentId).then(function (res) {\n _this.subjectNameOptions = [];\n if (res.data.length !== 0) {\n res.data.forEach(function (item) {\n _this.subjectNameOptions.push({\n label: item.subjectName,\n value: item.subjectCode,\n roadSegmentId: item.roadSegmentId,\n roadSegmentName: item.roadSegmentName\n });\n });\n }\n if (_this.$route.params.value.roadId) {\n _this.findinfo();\n }\n });\n } else {\n _this.subjectNameOptions = [];\n var data = 'CBKM';\n basicData.getCostAccountManagement(data).then(function (res) {\n res.data.forEach(function (item) {\n _this.subjectNameOptions.push({\n label: item.subjectName,\n value: item.subjectCode\n });\n });\n if (_this.$route.params.value.roadId) {\n _this.findinfo();\n }\n });\n }\n });\n },\n afterDelete: function afterDelete() {\n this.$refs.htTable.load();\n },\n //档案管理跳转之后获取数据\n loadDataArchives: function loadDataArchives(param, cb) {\n var _this2 = this;\n this.isshowCreateWorksButton = false;\n var data = this.$route.params;\n var url;\n var sign = data.sign;\n if (sign == 'bridge') {\n url = '/workOrderInformation/v1/getWorkOrderVoByBridge';\n } else if (sign == 'culvert') {\n url = '/workOrderInformation/v1/getWorkOrderVoByCulvert';\n } else if (sign == 'slope') {\n url = '/workOrderInformation/v1/getWorkOrderVoBySideSlope';\n } else {\n url = '/workOrderInformation/v1/getWorkOrderVoByTunnel';\n }\n var params = {\n id: data.row.id,\n queryFilter: _objectSpread({}, param)\n };\n this.$http.post('${yhxt}' + url, params).then(function (res) {\n _this2.data = res.data.rows;\n _this2.pageResult = {\n page: res.data.page,\n pageSize: res.data.pageSize,\n total: res.data.total\n };\n }).finally(function () {\n if (cb) {\n cb();\n }\n });\n },\n //放大病害照片\n handleEnlarge: function handleEnlarge(index, str) {\n this.initialIndex = index;\n if (str === 'pre') {\n this.isEnlargePre = true;\n } else if (str === 'und') {\n this.isEnlargeUnd = true;\n } else if (str === 'suf') {\n this.isEnlargeSuf = true;\n } else {\n this.isEnlarge = true;\n }\n },\n loadDef: function loadDef() {\n var _this3 = this;\n var data = {\n pageBean: {\n page: 1,\n pageSize: -1,\n showTotal: true\n },\n querys: [{\n group: 'main',\n operation: 'EQUAL',\n parentGroup: '',\n property: 'defKey',\n relation: 'AND',\n value: 'yhgd'\n }]\n };\n this.$http.post('${yhxt}/flow/def/v1/listJson', data).then(function (res) {\n if (res.status == 200) {\n if (res.data.rows.length) {\n _this3.defId = res.data.rows[0].defId;\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 handelExport: function handelExport() {\n var _this4 = this;\n console.log('点了');\n if (!this.dictSelection.length) {\n this.$message.warning(\"\\u8BF7\\u9009\\u62E9\\u8981\\u5BFC\\u51FA\\u7684\\u6570\\u636E\");\n return;\n } else {\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 var ids = [];\n _this4.dictSelection.forEach(function (item) {\n ids.push(item.id);\n });\n console.log(ids);\n var param = _this4.qs.stringify({\n ids: ids.join(',')\n });\n console.log(param);\n // 调用接口 提交数据\n var url = window.context.yhxt + '/workOrderInformation/v1/exportWorkOrder?' + param;\n req.downloadGet(url);\n _this4.dictSelection = [];\n // this.$http.get(\n // '${yhxt}/assessment/curingAssessment/v1/exportCuringAssessment?' +\n // param\n // )(res => {\n // this.dictSelection = []\n // this.$refs.htTable.load()\n // })\n }).catch(function () {\n _this4.$message({\n type: 'info',\n message: \"\\u5DF2\\u5BFC\\u51FA\\u9009\\u4E2D\\u7684\\u6570\\u636E\"\n });\n _this4.$refs.htTable.load(); //重新获取数据\n });\n }\n },\n handleSelect: function handleSelect(selection) {\n var arr = selection.map(function (item) {\n return item.workOrderInformation;\n });\n this.dictSelection = JSON.parse(JSON.stringify(arr));\n this.workOrderInformationData = {\n selection: this.dictSelection\n };\n },\n uniqueFunc: function uniqueFunc(arr, uniId) {\n var res = new Map();\n return arr.filter(function (item) {\n return !res.has(item[uniId]) && res.set(item[uniId], 1);\n });\n },\n findinfo: function findinfo() {\n var _this5 = this;\n typeof this.$refs.filterTable !== 'undefined' && this.$refs.filterTable.clearFilter();\n var query = [];\n var search = {\n companyId: this.searchForm.companyIds,\n croadSegmentId: this.searchForm.roadSegmentId,\n cissuer: this.searchForm.issuer,\n cissueDate: this.searchForm.issueDate,\n cissueDate_: this.searchForm.issueDate_,\n codes: this.searchForm.code,\n cjobNumber: this.searchForm.jobNumber,\n // cstatus: this.searchForm.cstatus, // 2,3,4,5,6\n state: this.searchForm.state,\n ctaskContent: this.searchForm.taskContent\n // coverdue: this.searchForm.coverdue,\n // croad_segment_name_: this.searchForm.roadSegmentName\n };\n // if (this.searchForm.cstatus != -1) {\n // search.cstatus = this.searchForm.cstatus\n // } else {\n // search.coverdue = 1\n // }\n\n for (var i in search) {\n if (search[i]) {\n if (i == 'cissueDate') {\n query.push({\n group: 'main',\n operation: 'EQUAL',\n parentGroup: '',\n property: \"date_format(cissueDate,'%Y-%m')\",\n relation: 'AND',\n value: search[i]\n });\n } else if (i == 'cissueDate_') {\n query.push({\n group: 'main',\n operation: 'EQUAL',\n parentGroup: '',\n property: 'cissueDate',\n relation: 'AND',\n value: search[i]\n });\n } else if (i == 'companyId') {\n query.push({\n group: 'companyIds',\n operation: 'IN',\n parentGroup: '',\n property: 'companyId',\n relation: 'AND',\n value: search[i]\n });\n } else if (i == 'state') {\n query.push({\n group: 'main',\n operation: 'EQUAL',\n parentGroup: '',\n property: 'state',\n relation: 'AND',\n value: search[i]\n });\n } else {\n query.push({\n group: 'advance',\n operation: 'LIKE',\n property: i,\n relation: 'AND',\n value: search[i]\n });\n }\n }\n }\n query = this.uniqueFunc(query, 'property');\n var data = {\n pageBean: {\n page: 1,\n pageSize: 20,\n showTotal: true\n },\n querys: query\n };\n this.topQuery = query;\n if (query.length != 0) {\n this.findquerys = query;\n } else {\n this.findquerys = [];\n }\n if (this.$route.params.sign) {\n this.loadDataArchives(data);\n } else {\n bizFlow.getMainWorkOrderInfo(data).then(function (res) {\n _this5.data = res.rows;\n _this5.detilsIds = [];\n _this5.data.forEach(function (item) {\n _this5.detilsIds.push(item.workOrderInformation.id);\n });\n _this5.pageResult = {\n page: res.page,\n pageSize: res.pageSize,\n total: res.total\n };\n // this.calcTableHeight(500)\n });\n }\n },\n getCompany: function getCompany() {\n var _this6 = this;\n this.$http.post('${yhxt}/Company/v1/getCompany').then(function (res) {\n res.data.forEach(function (item) {\n _this6.companyOptions.push({\n id: item.id,\n name: item.name\n });\n });\n });\n },\n //深层拷贝回去公司名称\n deepClone: function deepClone(obj) {\n var objClone = Array.isArray(obj) ? [] : {};\n if (obj && _typeof(obj) === 'object') {\n for (var key in obj) {\n if (obj.hasOwnProperty(key)) {\n //判断ojb子元素是否为对象,如果是,递归复制\n if (obj[key] && _typeof(obj[key]) === 'object') {\n objClone[key] = this.deepClone(obj[key]);\n } else {\n if (obj[key] == obj.name) {\n this.companyOptions.push({\n id: obj.id,\n name: obj.name\n });\n } //如果不是,简单复制\n objClone[key] = obj[key];\n }\n }\n }\n }\n },\n imgurl: function imgurl(url, val) {\n if (val === 'diseaseUrl') {\n this.dialogImageUrl = url;\n }\n },\n handleCancel: function handleCancel() {\n this.dialogVisibleInfo = false;\n this.isshow = false;\n },\n createdOrderInfo: function createdOrderInfo() {\n this.dialogVisible = true;\n },\n handleClose: function handleClose() {\n this.dialogVisible = false;\n this.dialogVisibleInfo = false;\n this.isshow = false;\n },\n tableRowClassName: function tableRowClassName(row) {\n console.log(row, 'rrr');\n // row.index = rowIndex\n },\n handleEdit: function handleEdit(row) {\n var params = {\n command: 'detail',\n row: row,\n index: row.index\n };\n // this.handleCommand(params)\n },\n handleCommand: function handleCommand(params) {\n var _this7 = this;\n if (params.command == 'detail') {\n this.detilsIdsIndex = params.index;\n this.dialogVisibleInfo = true;\n this.loading = true;\n console.log(params);\n var id = params.row.workOrderInformation.id;\n this.$http.get('${yhxt}/workOrderInformation/v1/getVo/' + id).then(function (res) {\n _this7.loading = false;\n var obj = {\n billOfQuantities: [],\n billOutOfQuantities: [],\n contract: {},\n defaultBpmCheckOpinion: {},\n workOrderInformation: {}\n };\n _this7.form = _objectSpread(_objectSpread({}, obj), res.data);\n _this7.tableData = res.data.billOfQuantities;\n _this7.tableDataOutside = res.data.billOutOfQuantities;\n if (_this7.form.diseases) {\n _this7.isshow = true;\n }\n _this7.getDiseaseName();\n _this7.getsonDiseaseName();\n // console.log(this.form)\n });\n // console.log(params.row)\n // this.form = {...this.form, ...obj}\n } else if (params.command == 'processLog') {\n // console.log(params.row, 'ffffffffffffffffff')\n this.procInstId = params.row.defaultBpmCheckOpinion.procInstId;\n this.taskId = params.row.defaultBpmCheckOpinion.taskId;\n this.referOpinion = params.row.defaultBpmCheckOpinion.referOpinion;\n this.nodeType = params.row.defaultBpmCheckOpinion.nodeType;\n this.defId = params.row.defaultBpmCheckOpinion.defId;\n this.nodeId = params.row.defaultBpmCheckOpinion.nodeId;\n this.processRecordDialog(params.row.defaultBpmCheckOpinion);\n }\n },\n //处理记录信息\n processRecordDialog: function processRecordDialog() {\n this.$refs.processRecordDialog.handleClose(); //父组件调用子组件方法\n },\n loadData: function loadData(param, cb) {\n var _this8 = this;\n // if (\n // param.pageBean.page === 1 &&\n // !this.isQuestLoad &&\n // Object.keys(this.$route.params).length !== 0 &&\n // Object.keys(this.$route.params.value).length !== 0 &&\n // this.$route.params.value.roadId\n // )\n // return cb()\n\n if (this.findquerys.length != 0) {\n if (param.querys) {\n param.querys = param.querys.concat(this.findquerys);\n } else {\n param.querys = this.findquerys;\n }\n }\n if (typeof param.sorter !== 'undefined' && param.sorter.length !== 0) {\n param.sorter.forEach(function (item) {\n if (typeof item.property !== 'undefined') {\n item.property = item.property.split('.')[1];\n }\n });\n }\n if (this.$route.params.sign) {\n this.loadDataArchives(param, cb);\n } else {\n if (typeof this.topQuery !== 'undefined' && this.topQuery.length !== 0) {\n param.querys = typeof param.querys !== 'undefined' ? param.querys : [];\n this.topQuery.forEach(function (item) {\n param.querys.push(item);\n });\n param.querys = this.uniqueFunc(param.querys, 'property');\n } else {\n param.querys = [];\n }\n if (param.sorter) {\n param.sorter.forEach(function (item) {\n if (item.property == 'jobNumber') {\n item.property = 'cjobNumber';\n } else if (item.property == 'issuer') {\n item.property = 'cissuer';\n } else if (item.property == 'issueDate') {\n item.property = 'cissueDate';\n } else if (item.property == 'demandFinishTime') {\n item.property = 'cdemandFinishTime';\n } else if (item.property == 'maintenanceUnitAudit') {\n item.property = 'cmaintenanceUnitAudit';\n }\n });\n }\n bizFlow.getMainWorkOrderInfo(param).then(function (resp) {\n _this8.pageResult = {\n page: resp.page,\n pageSize: resp.pageSize,\n total: resp.total\n };\n _this8.isQuestLoad = true; // 处理统计报表功能过来不能分页,置位true表示进入loadData请求\n _this8.data = resp.rows;\n _this8.detilsIds = [];\n // this.data.forEach((item) => {\n // this.detilsIds.push(item.workOrderInformation.id)\n // })\n // this.calcTableHeight(500)\n }, function (error) {\n reject(error);\n }).finally(function () {\n if (cb) {\n cb();\n }\n });\n }\n },\n //获取合同信息\n getContractId: function getContractId() {\n var _this9 = this;\n basicData.getDailyMaintenanceontract().then(function (res) {\n _this9.contractInfoList = res.rows;\n });\n },\n getDiseaseName: function getDiseaseName() {\n var _this10 = this;\n var arr = [];\n basicData.getCostAccountManagement(this.form.workOrderInformation.categoryId).then(function (res) {\n if (res.data.length > 0) {\n res.data.forEach(function (item) {\n if (item.pcode == _this10.form.workOrderInformation.categoryId) {\n arr.push({\n label: item.subjectName,\n value: item.subjectCode\n });\n }\n _this10.cbkm = arr;\n });\n }\n });\n },\n getsonDiseaseName: function getsonDiseaseName() {\n var _this11 = this;\n var arr = [];\n basicData.getCostAccountManagement(this.form.workOrderInformation.detailsId).then(function (res) {\n if (res.data.length > 0) {\n res.data.forEach(function (item) {\n if (item.pcode == _this11.form.workOrderInformation.detailsId) {\n arr.push({\n label: item.subjectName,\n value: item.subjectCode\n });\n }\n _this11.soncbkm = arr;\n });\n }\n });\n },\n //路段信息赋值\n changed: function changed(obj) {\n this.form.workOrderInformation.roadSegmentName = obj.name;\n this.form.workOrderInformation.roadSegmentId = obj.id;\n },\n //默认赋值为第一条数据的值\n value: function value(obj) {\n this.form.workOrderInformation.roadSegmentName = obj.name;\n this.form.workOrderInformation.roadSegmentId = obj.id;\n },\n //获取类型数据\n getTypeOptions: function getTypeOptions() {\n var _this12 = this;\n if (this.options.length == 0) {\n var data = 'CBKM';\n basicData.getCostAccountManagement(data).then(function (res) {\n res.data.forEach(function (item) {\n _this12.options.push({\n label: item.subjectName,\n value: item.subjectCode\n });\n });\n });\n }\n },\n back: function back() {\n this.$router.go(-1);\n },\n /* 根据所选季度导出合同 */getContractData: function getContractData() {\n var _this13 = 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 _this13.contractOptions.push({\n id: item.id,\n name: item.name\n });\n });\n });\n },\n handelContractExport: function handelContractExport() {\n this.getContractData();\n this.dialogQuarterVisible = true;\n },\n handleQuarterSubmit: function handleQuarterSubmit() {\n var _this14 = this;\n this.$refs.quarterRef.validate(function (bool) {\n if (bool) {\n var radioVal = _this14.formQuarter.radioQuarter;\n var yearVal = _this14.formQuarter.yearValue;\n if (radioVal == '1') {\n _this14.formQuarter.startTime = yearVal + '-01-01';\n _this14.formQuarter.endTime = yearVal + '-03-31';\n } else if (radioVal == '2') {\n _this14.formQuarter.startTime = yearVal + '-04-01';\n _this14.formQuarter.endTime = yearVal + '-06-30';\n } else if (radioVal == '3') {\n _this14.formQuarter.startTime = yearVal + '-07-01';\n _this14.formQuarter.endTime = yearVal + '-09-30';\n } else {\n _this14.formQuarter.startTime = yearVal + '-10-01';\n _this14.formQuarter.endTime = yearVal + '-12-31';\n }\n _this14.dialogQuarterVisible = false;\n var param = {\n startTime: _this14.formQuarter.startTime,\n endTime: _this14.formQuarter.endTime,\n contractId: _this14.formQuarter.contractId\n };\n var url = window.context.yhxt + '/workOrderInformation/v1/exportWorkOrders?' + 'startTime=' + param.startTime + '&endTime=' + param.endTime + '&contractId=' + param.contractId;\n req.downloadGet(url);\n }\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 getByContractId: function getByContractId() {\n var _this15 = 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 _this15.contractOptions.push({\n id: item.id,\n name: item.name\n });\n });\n });\n },\n handeleBillOfWordExport: function handeleBillOfWordExport(key) {\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.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.engineeringExportParams = {};\n this.formEngineering = {\n roadSegmentId: '',\n contractId: ''\n };\n this.exportKey = key;\n this.dialogEngineeringVisible = true;\n },\n handleEngineeringSubmit: function handleEngineeringSubmit() {\n var _this16 = 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/exportWorkOrders';\n break;\n case 'record':\n url = '/workOrder/export/v1/exportWorkOrdersDebitRecord';\n break;\n case 'quantity':\n url = '/workOrder/export/v1/exportWorkOrdersQuantities';\n break;\n default:\n break;\n }\n req.downloadPost(window.context.yhxt + url, this.engineeringExportParams).then(function (res) {\n if (res.data.state) {\n _this16.$message.success('导出成功');\n _this16.dialogEngineeringVisible = false;\n } else {\n _this16.$message.error('当前时间段没有工单信息');\n }\n }).catch(function (err) {\n _this16.$message.error('当前时间段没有工单信息');\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 getByIdDetils: function getByIdDetils(id) {\n var _this17 = this;\n this.$http.get('${yhxt}/workOrderInformation/v1/getVo/' + id).then(function (res) {\n var obj = {\n billOfQuantities: [],\n billOutOfQuantities: [],\n contract: {},\n defaultBpmCheckOpinion: {},\n workOrderInformation: {}\n };\n _this17.form = _objectSpread(_objectSpread({}, obj), res.data);\n _this17.tableData = _this17.form.billOfQuantities;\n _this17.tableDataOutside = _this17.form.billOutOfQuantities;\n if (_this17.form.diseases) {\n _this17.isshow = true;\n }\n _this17.getDiseaseName();\n _this17.getsonDiseaseName();\n });\n },\n handleDetilePrv: function handleDetilePrv() {\n console.log(this.detilsIdsIndex, this.detilsIds.length);\n if (this.detilsIdsIndex > 0) {\n this.detilsIdsIndex--;\n this.getByIdDetils(this.detilsIds[this.detilsIdsIndex]);\n } else {\n this.$message.error('已经是第一页');\n }\n },\n handleDetileNext: function handleDetileNext() {\n console.log(this.detilsIdsIndex, this.detilsIds.length);\n if (this.detilsIdsIndex < this.detilsIds.length - 1) {\n this.detilsIdsIndex++;\n this.getByIdDetils(this.detilsIds[this.detilsIdsIndex]);\n } else {\n this.$message.error('已经是最后一页');\n }\n },\n getTopView: function getTopView() {\n var _this18 = this;\n this.$http.post('${yhxt}/workOrderInformation/v1/getWorkCountVo').then(function (res) {\n console.log(res, 'resres');\n _this18.topViewData = res && res.status == 200 && res.data || [];\n });\n },\n viewDetile: function viewDetile(data) {\n if (data.chirldren.length === 0) return;\n var childIds = this.getChildrenIds(data.chirldren);\n this.topViewData = data.chirldren;\n this.searchForm.companyIds = ['1419863231459102720', data.id].concat(_toConsumableArray(this.searchForm.companyIds), _toConsumableArray(childIds));\n this.findinfo();\n },\n refreshTopView: function refreshTopView() {\n this.getTopView();\n this.searchForm.companyIds = '';\n this.findinfo();\n },\n getChildrenIds: function getChildrenIds(child) {\n var _this19 = this;\n var arr = [];\n child && child.forEach(function (item) {\n arr.push(item.id);\n if (item.chirldren && item.chirldren.length === 0) return;\n _this19.getChildrenIds(item.chirldren);\n });\n return arr;\n },\n calcTableHeight: function calcTableHeight(delay) {\n var _this20 = this;\n setTimeout(function () {\n console.log(_this20.$refs);\n var mainHeight = _this20.$refs.main.clientHeight;\n // const topViewHeight = this.$refs.topView.clientHeight\n var searchHeight = _this20.$refs.search.clientHeight;\n _this20.tableMaxHeight = mainHeight - searchHeight - 50;\n }, delay);\n }\n }\n};",null]}