{"remainingRequest":"D:\\jenkins\\workspace\\sfz-lh-fvue\\node_modules\\thread-loader\\dist\\cjs.js!D:\\jenkins\\workspace\\sfz-lh-fvue\\node_modules\\babel-loader\\lib\\index.js!D:\\jenkins\\workspace\\sfz-lh-fvue\\node_modules\\cache-loader\\dist\\cjs.js??ref--0-0!D:\\jenkins\\workspace\\sfz-lh-fvue\\node_modules\\vue-loader\\lib\\index.js??vue-loader-options!D:\\jenkins\\workspace\\sfz-lh-fvue\\src\\views\\Normal\\DataManagement\\inconePlan.vue?vue&type=script&lang=js&","dependencies":[{"path":"D:\\jenkins\\workspace\\sfz-lh-fvue\\src\\views\\Normal\\DataManagement\\inconePlan.vue","mtime":1705432123596},{"path":"D:\\jenkins\\workspace\\sfz-lh-fvue\\node_modules\\cache-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\jenkins\\workspace\\sfz-lh-fvue\\node_modules\\thread-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\jenkins\\workspace\\sfz-lh-fvue\\node_modules\\babel-loader\\lib\\index.js","mtime":315532800000},{"path":"D:\\jenkins\\workspace\\sfz-lh-fvue\\node_modules\\cache-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\jenkins\\workspace\\sfz-lh-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 _defineProperty from \"D:/jenkins/workspace/sfz-lh-fvue/node_modules/@babel/runtime/helpers/esm/defineProperty\";\nimport \"core-js/modules/es6.function.name\";\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//\nimport { TableMixin } from '@/mixins/tableMixin';\nimport tollStationManagement from '@/api/BasicDataManagement/tollStationManagement.js';\nimport chargeData from '@/api/DataManagement/chargeData.js';\nimport incomePlan from '@/api/DataManagement/incomePlan.js';\nexport default {\n name: 'inconePlan',\n mixins: [TableMixin],\n data: function data() {\n return {\n searchForm: {},\n params: {\n pageBean: {\n page: 1,\n pageSize: 20,\n total: 0\n }\n },\n loading: false,\n disabledDetils: false,\n tableLoading: false,\n tableData: [],\n dialog: {\n title: '添加',\n visible: false\n },\n dialogForm: {\n tollStationId: '',\n tollStationName: '',\n costYear: ''\n },\n disabled: false,\n // 是否禁止输入输入\n edit: false,\n // 是否是修改功能\n rules: {},\n roadOptions: []\n };\n },\n created: function created() {\n this.tollStationId = sessionStorage.getItem('tollStationId');\n this.loadTollStation();\n },\n methods: {\n // 获取收费站数据\n loadTollStation: function loadTollStation() {\n var _this = this;\n\n this.tollStationData = [];\n var queryData = {\n pageBean: {\n page: 1,\n pageSize: -1,\n total: 0\n }\n };\n tollStationManagement.queryTollStation(queryData).then(function (res) {\n if (res.data && res.data.rows) {\n _this.tollStationData = res.data.rows || [];\n }\n\n var target = res.data.rows.filter(function (item) {\n return item.id == _this.tollStationId;\n });\n\n if (target && target.length) {\n _this.dialogForm.tollStationName = target[0].name;\n _this.dialogForm.tollStationId = target[0].id;\n _this.searchForm.tollStationId = target[0].id;\n }\n\n _this.loadData(1);\n });\n },\n //获取数据\n loadData: function loadData(page) {\n var _this2 = this;\n\n if (page) this.params.pageBean.page = page;\n this.tableLoading = true;\n incomePlan.queryData(this.params).then(function (res) {\n _this2.tableLoading = false;\n _this2.tableData = res.value.rows || [];\n\n if (res.value.page) {\n _this2.params.pageBean = {\n page: res.value.page,\n pageSize: res.value.pageSize,\n total: res.value.total\n };\n }\n });\n },\n handleSearch: function handleSearch() {\n var querys = [];\n\n for (var key in this.searchForm) {\n querys.push({\n group: 'main',\n operation: 'EQUAL',\n parentGroup: '',\n property: key,\n relation: 'AND',\n value: this.searchForm[key]\n });\n }\n\n this.params.querys = querys;\n this.loadData(1);\n },\n handleDelete: function handleDelete() {\n var _this3 = this;\n\n this.$confirm(this.$t('common.sureDelete'), this.$t('common.tips'), {\n confirmButtonText: this.$t('common.confirm'),\n cancelButtonText: this.$t('common.cancel'),\n type: 'warning'\n }).then(function () {\n incomePlan.DeleteConfig(_this3.deleteIds).then(function (res) {\n _this3.loadData(1);\n\n if (res.data.state) {\n _this3.$message({\n message: '删除成功',\n type: 'success'\n });\n }\n });\n });\n },\n // 表单提交保存\n submit: function submit() {\n var _this4 = this;\n\n this.$refs.form.validate(function (valid) {\n for (var i = 0; i < _this4.tollStationData.length; i++) {\n if (_this4.dialogForm.tollStationId == _this4.tollStationData[i].tollStationId) {\n _this4.dialogForm.tollStationName = _this4.tollStationData[i].tollStationName;\n }\n }\n\n if (valid) {\n _this4.loading = true;\n incomePlan.saveData(_this4.dialogForm).then(function (res) {\n if (res.data.state) {\n _this4.dialog.visible = false;\n\n _this4.loadData(1);\n }\n\n if (!res.errorMsg) {\n _this4.$message({\n message: !_this4.edit ? '添加成功' : '修改成功',\n type: 'success'\n });\n\n _this4.editVisible = false;\n }\n\n _this4.loading = false;\n }).catch(function () {\n _this4.loading = false;\n });\n } else {\n return false;\n }\n });\n },\n // 弹层关闭\n handleDialogClose: function handleDialogClose() {\n this.$refs.form.resetFields();\n this.dialogForm = {};\n this.dialogForm.tollStationId = this.tollStationId;\n this.dialog.visible = false;\n },\n //添加\n handleAdd: function handleAdd() {\n this.edit = false;\n this.disabledDetils = false;\n this.dialog.title = '添加';\n this.dialog.visible = true;\n },\n // 编辑\n handleEdit: function handleEdit(rows) {\n this.$refs.form.clearValidate();\n this.edit = true;\n this.disabledDetils = false;\n this.dialogForm = _objectSpread({}, rows); // this.dialogForm.costYear = toString(this.dialogForm.costYear)\n\n this.dialog.title = '编辑';\n this.dialog.visible = true;\n },\n clearSearchForm: function clearSearchForm() {\n this.searchForm = {};\n this.searchForm.tollStationId = this.tollStationId;\n this.handleSearch();\n },\n formatPassTime: function formatPassTime(data) {\n var totalseconds = data; // 时长 以秒为单位\n\n var hh = 0; //小时 默认0\n\n var mm = Math.floor(totalseconds / 60); //除以60取整数,得到整数分钟\n // 如果分钟大于60,将分钟转换成小时\n\n if (mm > 60) {\n // 获取小时整数\n hh = Math.floor(mm / 60); // 取余的分钟数\n\n mm = mm % 60;\n }\n\n var ss = totalseconds % 60; // 取余得秒\n\n function addZero(n) {\n var temp;\n n < 10 ? temp = '0' + n : temp = n;\n return temp;\n }\n\n return addZero(hh) + ':' + addZero(mm) + ':' + addZero(ss);\n }\n },\n computed: {\n SearchPanel: function SearchPanel() {\n return {\n '--searchPanel': this.searchPanel + 'px'\n };\n }\n }\n};",null]}