{"remainingRequest":"D:\\jenkins\\workspace\\reform-fvue\\node_modules\\thread-loader\\dist\\cjs.js!D:\\jenkins\\workspace\\reform-fvue\\node_modules\\babel-loader\\lib\\index.js!D:\\jenkins\\workspace\\reform-fvue\\node_modules\\cache-loader\\dist\\cjs.js??ref--0-0!D:\\jenkins\\workspace\\reform-fvue\\node_modules\\vue-loader\\lib\\index.js??vue-loader-options!D:\\jenkins\\workspace\\reform-fvue\\src\\views\\BigScreen\\components\\subComponents\\reformPilot.vue?vue&type=script&lang=js&","dependencies":[{"path":"D:\\jenkins\\workspace\\reform-fvue\\src\\views\\BigScreen\\components\\subComponents\\reformPilot.vue","mtime":1717149258858},{"path":"D:\\jenkins\\workspace\\reform-fvue\\node_modules\\cache-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\jenkins\\workspace\\reform-fvue\\node_modules\\thread-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\jenkins\\workspace\\reform-fvue\\node_modules\\babel-loader\\lib\\index.js","mtime":315532800000},{"path":"D:\\jenkins\\workspace\\reform-fvue\\node_modules\\cache-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\jenkins\\workspace\\reform-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/es6.object.keys\";\nimport \"core-js/modules/web.dom.iterable\";\nimport \"core-js/modules/es6.function.name\";\nimport \"core-js/modules/es6.regexp.split\";\nimport \"core-js/modules/es6.regexp.search\";\nimport _defineProperty from \"D:/jenkins/workspace/reform-fvue/node_modules/@babel/runtime/helpers/esm/defineProperty\";\n\nfunction ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (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 = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { 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//\nvar portal = window.context.portal;\nimport utils from '@/utils.js';\nimport apiList from '@/api/bigScreen/districView.js';\nimport EasyDialog from '@/views/BigScreen/components/easy-dialog/index.vue';\nimport pagenation from \"./pagenation.vue\";\nimport filePreview from '@/components/FilePreview/filePreview.vue';\nimport dialogComponents from '@/views/BigScreen/js/dialog_components.js';\nimport dialogConfig from '@/views/BigScreen/js/DistrictReformDialogConfig.js';\nimport FileList from '@/components/uploadFile/newFileList.vue';\nexport default {\n components: _objectSpread(_objectSpread({\n pagenation: pagenation\n }, dialogComponents), {}, {\n EasyDialog: EasyDialog,\n filePreview: filePreview,\n FileList: FileList\n }),\n props: {\n tableOptions: {\n type: Object,\n default: function _default() {\n return {};\n }\n }\n },\n data: function data() {\n return {\n previewUrl: \"\".concat(portal, \"/file/onlinePreviewController/v1/getFileById_\"),\n searchMore: false,\n currentUnit: '',\n textempty: ' ',\n activeNames: ['1'],\n currentRow: {\n fileList: []\n },\n demandRunwayOptions: [],\n loading: false,\n infoLoading: false,\n loadingColor: 'rgba(6, 46, 106, 0.4)',\n tableData: [],\n showEasy: false,\n currentTabComponent: '',\n dialogOption: {\n dialogTitle: ''\n },\n searchData: {\n PILOT_LEVEL_: '',\n PILOT_PROJECT_NAME_: '',\n 'i.UNIT_NAME_': '',\n PILOT_FIELD_: '',\n PILOT_RUNWAY_: '',\n START_TIME_: [],\n 'm.UNIT_NAME_': '',\n 'm.PROPULSIVE_STATUS_': '',\n 'm.ACCEPTANCE_TIME_': ''\n },\n tempTableOptions: null,\n params: {\n pageBean: {\n page: 1,\n pageSize: 20,\n showTotal: true,\n total: 0\n },\n params: {},\n querys: [// {\n // group: 'main',\n // operation: 'EQUAL',\n // parentGroup: '',\n // property: 'PILOT_LEVEL_',\n // relation: 'AND',\n // value: 1,\n // },\n ]\n },\n prarmsFile: {\n pageBean: {\n page: 1,\n pageSize: -1,\n showTotal: true\n },\n querys: [{\n group: 'main',\n operation: 'EQUAL',\n parentGroup: '',\n property: 'BIZ_ID_',\n relation: 'AND',\n value: ''\n }]\n },\n unitInfo: {},\n unitData: {},\n downloading: false,\n currentUnitCode: null,\n startTime: '',\n endTime: '',\n unitCode: null\n };\n },\n beforeDestroy: function beforeDestroy() {\n this.$bus.$off('changeDate');\n },\n mounted: function mounted() {\n var _this = this;\n\n this.demandRunwayOptions = this.getDemandData('1'); // let {code, type} = this.$route.query\n // this.unitInfo = {code, type}\n\n var _this$$route$query = this.$route.query,\n type = _this$$route$query.type,\n unitName = _this$$route$query.unitName,\n unitCode = _this$$route$query.unitCode,\n time = _this$$route$query.time,\n numType = _this$$route$query.numType;\n this.unitCode = unitCode;\n this.params.params.type = numType;\n type && this.$set(this.searchData, 'PILOT_LEVEL_', type + '');\n unitName && this.$set(this.searchData, 'i.UNIT_NAME_', unitName);\n this.startTime = time && time[0];\n this.endTime = time && time[1];\n this.search();\n this.$bus.$on('changeDate', function () {\n var _JSON$parse = JSON.parse(sessionStorage.getItem('searchDate')),\n year = _JSON$parse.year;\n\n _this.params.params.type = year < 2024 ? 'nationalProject' : 'nationalAddNum';\n\n _this.search();\n });\n },\n methods: {\n isActive: function isActive(item) {\n if (this.currentUnitCode) {\n return item.unitCode === this.currentUnitCode;\n } else {\n return item.unitCode === this.unitCode;\n }\n },\n getFiles: function getFiles(row) {\n var _this2 = this;\n\n if (row && row.id) {\n this.prarmsFile.querys[0].value = row.id;\n apiList.getFiles(this.prarmsFile, function (data) {\n _this2.$set(_this2.currentRow, 'fileList', data.rows);\n });\n }\n },\n handlePreview: function handlePreview(file) {\n var id = file.fileId ? file.fileId : file.id ? file.id : file.response.fileId;\n var type = file.fileType || (file.extensionName ? file.extensionName : file.name.split('.')[1]);\n this.$refs.filePreview.previewUrl = this.previewUrl + id;\n this.$refs.filePreview.open(type);\n },\n // 文件下载\n handleDownloadFile: function handleDownloadFile(file) {\n var id = file.fileId ? file.fileId : file.id ? file.id : file.response.fileId;\n window.open(portal + \"/file/v1/downloadFile?fileId=\".concat(id), '_self');\n },\n handleDistrict: function handleDistrict(district, currentRow) {\n this.currentUnit = district.unitName;\n this.currentUnitCode = district.unitCode;\n this.getPilotDetail(currentRow, district);\n },\n download: function download() {\n var _this3 = this;\n\n this.downloading = true;\n this.$message.warning('试点台账数据量较大,导出所需时间较长,请耐性等待......');\n var searchDate = sessionStorage.getItem('searchDate');\n searchDate = JSON.parse(searchDate);\n this.params.params.year = searchDate.year;\n this.params.params.quarter = searchDate.quarter || 4;\n apiList.exportLedgerDetail(this.params).then(function (res) {\n _this3.downloading = false;\n\n _this3.$message.success('试点台账数据导出成功');\n });\n },\n handleDetail: function handleDetail(comp, projectName, code) {\n this.$router.push({\n path: '/DetailComponent',\n name: 'DetailComponent',\n query: {\n comp: comp,\n projectName: projectName,\n code: code ? code : this.unitCode\n }\n });\n },\n search: function search(data, type) {\n this.params.pageBean.page = 1;\n\n if (type == 'PILOT_FIELD_') {\n this.demandRunwayOptions = this.getDemandData(data);\n this.searchData.PILOT_RUNWAY_ = '';\n }\n\n this.params.querys = [];\n\n for (var key in this.searchData) {\n var operation = '';\n\n if (key == 'PILOT_PROJECT_NAME_' || key == 'i.UNIT_NAME_' || key == 'm.UNIT_NAME_') {\n operation = 'LIKE';\n } else if (key == 'PILOT_FIELD_' || key == 'PILOT_RUNWAY_' || key == 'PILOT_LEVEL_' || key == 'm.PROPULSIVE_STATUS_') {\n operation = 'EQUAL';\n } else if (key == 'START_TIME_') {\n if (this.startTime && this.endTime) {\n this.searchData['START_TIME_'] = [this.startTime, this.endTime];\n } else if (this.startTime && !this.endTime) {\n this.searchData['START_TIME_'] = this.startTime;\n } else if (!this.startTime && this.endTime) {\n this.searchData['START_TIME_'] = this.endTime;\n } else {\n this.searchData['START_TIME_'] = [];\n }\n\n operation = this.startTime && !this.endTime ? 'GREAT_EQUAL' : !this.startTime && this.endTime ? 'LESS_EQUAL' : 'BETWEEN';\n } else if (key == 'm.ACCEPTANCE_TIME_') {\n operation = 'LESS_EQUAL';\n }\n\n this.params.querys.push({\n group: 'main',\n operation: operation,\n parentGroup: '',\n property: key,\n relation: 'AND',\n value: this.searchData[key]\n });\n }\n\n this.loadData();\n },\n getDictName: function getDictName(code, value) {\n return utils.getDictName(code, value);\n },\n currentChange: function currentChange(currentRow) {\n this.currentRow = currentRow;\n this.unitData = {};\n this.currentUnit = '';\n this.currentUnitCode = null;\n this.activeNames = ['1'];\n\n if (this.unitCode) {\n this.getPilotDetail(this.currentRow, {\n unitCode: this.unitCode\n });\n }\n\n this.getFiles(this.currentRow);\n },\n loadData: function loadData() {\n var _this4 = this;\n\n this.loading = true;\n var searchDate = sessionStorage.getItem('searchDate');\n searchDate = JSON.parse(searchDate);\n this.params.params.year = searchDate.year;\n this.params.params.quarter = searchDate.quarter || 4;\n var apiName = this.params.params.type === 'nationalProject' ? 'getPilotLedgerDetail_' : 'getPilotLedgerDetail';\n apiList[apiName](this.params, function (res) {\n if (res && res.rows) {\n _this4.tableData = res.rows;\n _this4.params.pageBean.page = res.page;\n _this4.params.pageBean.total = res.total;\n _this4.params.pageBean.pageSize = res.pageSize;\n\n if (_this4.tableData.length) {\n _this4.currentRow = _this4.tableData[0];\n\n _this4.$nextTick(function () {\n _this4.$refs.myTable.setCurrentRow(_this4.$refs.myTable.data[0]);\n });\n\n if (_this4.unitCode) {\n _this4.getPilotDetail(_this4.currentRow, {\n unitCode: _this4.unitCode\n });\n }\n\n _this4.getFiles(_this4.currentRow);\n } else {\n _this4.currentRow = {};\n }\n }\n\n _this4.loading = false;\n });\n },\n // 查询详情\n getPilotDetail: function getPilotDetail(row, district) {\n var _this5 = this;\n\n this.infoLoading = true;\n var data = {\n id: row.id,\n unitCode: district.unitCode\n };\n data = this.qs.stringify(data);\n apiList.pilotPushDetailforUnit(data, function (res) {\n if (res) {\n _this5.unitData = res;\n }\n\n _this5.infoLoading = false;\n _this5.activeNames = ['1', '2'];\n });\n },\n pageChange: function pageChange(key) {\n this.params.pageBean.page = key;\n this.loadData();\n },\n handleOpen: function handleOpen(type, item, row) {\n this.currentTabComponent = dialogConfig.dialogOption[type].componentName ? dialogConfig.dialogOption[type].componentName : type; // 动态组件名称\n\n this.tempTableOptions = {\n name: item.unitName,\n code: item.unitCode,\n id: row.id\n }; //table的查询参数\n\n var data = _objectSpread({\n dialogTitle: item.unitName + '改革试点详情'\n }, dialogConfig.dialogOption[type].option);\n\n this.dialogOption = data; //弹窗配置参数\n\n this.showEasy = true;\n },\n getDemandData: function getDemandData(val) {\n if (!val) val = '1';\n var data = null;\n var arr = utils.getDictItemsFromCache('ggbb_ssly');\n arr.forEach(function (item) {\n if (item.value == val) {\n data = item.lowerDic['ggbb_sspd'];\n }\n });\n return data;\n }\n }\n};",null]}