{"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\\basicDataManagement\\CarManagement.vue?vue&type=script&lang=js&","dependencies":[{"path":"D:\\jenkins\\workspace\\yhxt-web\\src\\views\\basicDataManagement\\CarManagement.vue","mtime":1706175428990},{"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/web.dom.iterable\";\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\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 utils from '@/utils'; // thousandBit格式化千分位\nvar BigNumber = require('bignumber.js');\nexport default {\n name: 'carManagement',\n data: function data() {\n return {\n tableData: [],\n data: [],\n loading: false,\n total: {},\n utils: utils,\n type: ''\n };\n },\n created: function created() {\n this.loadData();\n },\n watch: {\n tableData: function tableData(newVal) {\n this.total.businessNum = this.calculation('businessNum', newVal);\n this.total.curingNum = this.calculation('curingNum', newVal);\n }\n },\n methods: {\n calculation: function calculation(key, arr) {\n if (!key || arr.length === 0) return 0;\n var total = new BigNumber(0);\n arr.forEach(function (item) {\n console.log(key + '=', item[key]);\n if (!item[key]) {\n item[key] = 0;\n }\n total = total.plus(item[key]);\n });\n return total;\n },\n handleReset: function handleReset() {\n var length = this.data.length - 1;\n if (length === 0) return;\n this.tableData = this.data[this.data.length - 2];\n this.data.splice(length, 1);\n },\n hanldeRowClick: function hanldeRowClick(row) {\n if (row.chirldren.length == 0) {\n return this.$router.push({\n name: 'carManagementChildren',\n params: {\n value: row,\n type: this.type\n }\n });\n }\n this.tableData = row.chirldren;\n this.data.push(row.chirldren);\n },\n handleCellClick: function handleCellClick(row, column) {\n this.type = column.columnKey;\n },\n loadData: function loadData() {\n var _this = this;\n this.loading = true;\n this.$http.post('${yhxt}/bizVehicle/v1/getVehicleCountVo').then(function (res) {\n _this.tableData = res && res.status == 200 && res.data || [];\n _this.data = [];\n _this.data.push(_this.tableData);\n _this.loading = false;\n }).catch(function () {\n _this.loading = false;\n });\n }\n }\n};",null]}