{"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\\EmergencySupplies.vue?vue&type=script&lang=js&","dependencies":[{"path":"D:\\jenkins\\workspace\\yhxt-web\\src\\views\\basicDataManagement\\EmergencySupplies.vue","mtime":1706175429006},{"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\nimport utils from '@/utils'; // thousandBit格式化千分位\nvar BigNumber = require('bignumber.js');\nexport default {\n data: function data() {\n return {\n tableData: [],\n data: [],\n loading: false,\n pathName: '',\n type: '',\n total: {},\n utils: utils\n };\n },\n created: function created() {\n this.loadData();\n },\n watch: {\n tableData: function tableData(newVal) {\n this.total.countNum = this.calculation('countNum', newVal);\n }\n },\n methods: {\n calculation: function calculation(key, arr) {\n var total = new BigNumber(0);\n if (!key || arr.length === 0) return total;\n arr.forEach(function (item) {\n if (item[key]) {\n total = total.plus(item[key]);\n } else {\n total = total.plus(0);\n }\n });\n return utils.thousandBit(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: 'emergencySuppliesChildren',\n params: {\n value: row\n }\n });\n }\n this.tableData = row.chirldren;\n this.data.push(row.chirldren);\n },\n handleCellClick: function handleCellClick(row, column) {\n if (column.columnKey == '1' || column.columnKey == '3' || column.columnKey == '4') {\n this.type = column.columnKey;\n }\n },\n loadData: function loadData() {\n var _this = this;\n this.loading = true;\n this.$http.post('${yhxt}/bizEmergeMaterialManagement/v1/getEmergeVo').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]}