{"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\\components\\dialog\\EntryNameDialog.vue?vue&type=script&lang=js&","dependencies":[{"path":"D:\\jenkins\\workspace\\yhxt-web\\src\\components\\dialog\\EntryNameDialog.vue","mtime":1709144044966},{"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/es6.array.find-index\";\nimport \"core-js/modules/es6.function.name\";\nimport \"core-js/modules/web.dom.iterable\";\nimport \"core-js/modules/es6.regexp.to-string\";\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\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';\nexport default {\n data: function data() {\n return {\n dialogVisible: false,\n searchForm: {\n 'b.ASCRIPTION_YEAR_': '',\n 'b.ROAD_SEGMENT_ID_': ''\n },\n loading: false,\n tableData: [],\n multipleSelection: [],\n queryParam: {\n pageBean: {\n page: 1,\n pageSize: 20,\n total: 0\n }\n },\n params: {},\n type: '',\n subscribeData: [],\n budgetIds: [],\n typeList: []\n };\n },\n created: function created() {\n var _this = this;\n this.$nextTick(function () {\n _this.getCostType();\n _this.getTypeList();\n });\n },\n mounted: function mounted() {\n var date = new Date();\n this.searchForm['b.ASCRIPTION_YEAR_'] = date.getFullYear().toString();\n },\n methods: {\n open: function open(row, budgetIds, type) {\n console.log(row, 'row');\n this.dialogVisible = true;\n this.params = row;\n this.type = type;\n this.searchForm['b.ROAD_SEGMENT_ID_'] = this.params.roadSegmentId;\n this.searchForm['a.budget_item_'] = 'RCYH'; // 'RCJF'\n\n this.getData();\n if (budgetIds) {\n this.budgetIds = budgetIds;\n }\n },\n dialogBeforeClose: function dialogBeforeClose() {\n this.dialogVisible = false;\n },\n findinfo: function findinfo() {\n this.getData();\n },\n handleReset: function handleReset() {\n var date = new Date();\n this.searchForm['b.ASCRIPTION_YEAR_'] = date.getFullYear().toString();\n this.searchForm['b.ROAD_SEGMENT_ID_'] = this.params.roadSegmentId;\n this.searchForm['a.BUDGET_CONTENT_'] = '';\n this.getData();\n },\n changeYear: function changeYear(val) {\n this.searchForm['b.ASCRIPTION_YEAR_'] = val;\n },\n handleSelectionChange: function handleSelectionChange(val) {\n console.log(val, 'val');\n this.multipleSelection = val.map(function (item) {\n return item;\n });\n },\n getCostType: function getCostType() {\n var _this2 = this;\n this.subscribeData = [];\n this.$http.get('${yhxt}/bizCourseDetails/v1/get/getByParentId?pCode=FXCBXZC').then(function (res) {\n res.data.forEach(function (item) {\n _this2.subscribeData.push({\n code: item.subjectCode,\n name: item.subjectName\n });\n });\n });\n },\n getTypeList: function getTypeList() {\n var _this3 = this;\n this.typeList = [];\n this.$http.get('${yhxt}/bizCourseDetails/v1/get/getByParentId?pCode=RCYHZX').then(function (res) {\n res.data.forEach(function (item) {\n _this3.typeList.push({\n code: item.subjectCode,\n name: item.subjectName\n });\n });\n });\n this.$http.get('${yhxt}/bizCourseDetails/v1/get/getByParentId?pCode=RCJF').then(function (res) {\n res.data.forEach(function (item) {\n _this3.typeList.push({\n code: item.subjectCode,\n name: item.subjectName\n });\n });\n });\n this.$http.get('${yhxt}/bizCourseDetails/v1/get/getByParentId?pCode=FRCZX').then(function (res) {\n res.data.forEach(function (item) {\n _this3.typeList.push({\n code: item.subjectCode,\n name: item.subjectName\n });\n });\n });\n this.$http.get('${yhxt}/bizCourseDetails/v1/get/getByParentId?pCode=FZCXZX').then(function (res) {\n res.data.forEach(function (item) {\n _this3.typeList.push({\n code: item.subjectCode,\n name: item.subjectName\n });\n });\n });\n console.log(this.typeList);\n },\n getQuerysParams: function getQuerysParams() {\n var searchForm = this.searchForm,\n queryParam = this.queryParam;\n var _queryParam$pageBean = queryParam.pageBean,\n page = _queryParam$pageBean.page,\n pageSize = _queryParam$pageBean.pageSize;\n var querys = [];\n for (var i in searchForm) {\n if (i == 'a.budget_item_') {\n querys.push({\n group: 'main',\n operation: 'NOT_EQUAL',\n property: i,\n relation: 'AND',\n value: searchForm[i]\n });\n } else {\n querys.push({\n group: 'main',\n operation: 'LIKE',\n property: i,\n relation: 'AND',\n value: searchForm[i]\n });\n }\n }\n return {\n pageBean: {\n page: page,\n pageSize: pageSize,\n showTotal: true\n },\n querys: querys\n };\n },\n getData: function getData() {\n var _this4 = this;\n this.loading = true;\n this.queryParam = this.getQuerysParams();\n this.tableData = [];\n this.$http.post('${yhxt}/yearBudgetDetailed/v1/getJsonForProject', this.queryParam).then(function (res) {\n _this4.loading = false;\n _this4.queryParam.pageBean.total = res.data.total;\n _this4.queryParam.pageBean.page = res.data.page;\n _this4.queryParam.pageBean.pageSize = res.data.pageSize;\n _this4.tableData = res.data.rows;\n _this4.tableData.forEach(function (item) {\n _this4.subscribeData.forEach(function (e) {\n if (item.budgetType == e.code) {\n _this4.$set(item, 'budgetTypeName', e.name);\n }\n });\n _this4.typeList.forEach(function (v) {\n if (item.budgetItem == v.code) {\n _this4.$set(item, 'budgetItemName', v.name);\n }\n });\n });\n _this4.$nextTick(function () {\n if (_this4.type === 'edit') {\n _this4.tableData.forEach(function (item, index) {\n if (_this4.budgetIds.findIndex(function (v) {\n return v == item.id;\n }) >= 0) {\n _this4.$refs.multipleSelection.toggleRowSelection(_this4.$refs.multipleSelection.data[index], true);\n }\n });\n }\n });\n });\n },\n handleRowclick: function handleRowclick(row) {\n this.$refs.multipleSelection.toggleRowSelection(row);\n },\n save: function save() {\n this.dialogVisible = false;\n this.$emit('common', this.multipleSelection);\n },\n handleSizeChange: function handleSizeChange(val) {\n this.queryParam.pageBean.pageSize = val;\n this.getData();\n },\n handleCurrentChange: function handleCurrentChange(val) {\n this.queryParam.pageBean.page = val;\n this.getData();\n },\n getRowKeys: function getRowKeys(row) {\n return row.id;\n }\n }\n};",null]}