{"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\\subPages\\detailCharge.vue?vue&type=script&lang=js&","dependencies":[{"path":"D:\\jenkins\\workspace\\sfz-lh-fvue\\src\\views\\Normal\\DataManagement\\subPages\\detailCharge.vue","mtime":1704418079166},{"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":["//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\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 chargeData from '@/api/DataManagement/chargeData.js';\nimport routerManagement from '@/api/BasicDataManagement/tollStationManagement.js';\nimport companyInfoSelector from \"../../components/companyInfoSelector.vue\";\nimport utils from '@/utils.js';\nexport default {\n name: 'detailCharge',\n components: {\n companyInfoSelector: companyInfoSelector\n },\n data: function data() {\n return {\n id: '',\n edit: false,\n loading: false,\n dialogForm: {\n payableMoney: 0,\n actualityMoney: 0,\n reductionMoney: 0,\n hh: 0,\n mm: 0,\n ss: 0,\n isEtc: 1,\n isCash: 0,\n carType: 1\n },\n roadOptions: [],\n // 路段数据\n tollStationOptions: [],\n // 收费站数据\n rules: {}\n };\n },\n mounted: function mounted() {\n this.id = this.$route.query.id;\n\n if (this.id) {\n this.getDataById();\n }\n },\n methods: {\n // 获取字典值翻译\n getDictName: function getDictName(code, value) {\n return utils.getDictName(code, value);\n },\n getDataById: function getDataById() {\n var _this = this;\n\n this.loading = true;\n chargeData.getDataById(this.id).then(function (res) {\n _this.dialogForm = res;\n\n _this.formatPassTime();\n\n _this.formatTimeRange();\n\n _this.loading = false;\n });\n },\n formatTimeRange: function formatTimeRange() {\n this.dialogForm.range = [this.dialogForm.startTime, this.dialogForm.endTime];\n },\n formatPassTime: function formatPassTime() {\n function addZero(n) {\n var temp;\n n < 10 ? temp = '0' + n : temp = n;\n return temp;\n }\n\n var totalseconds = this.dialogForm.passTime; // 时长 以秒为单位\n\n this.dialogForm.ss = addZero(totalseconds % 60); // 取余得秒\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 this.dialogForm.mm = addZero(mm);\n this.dialogForm.hh = addZero(hh);\n },\n handleEdit: function handleEdit() {\n this.$router.push({\n path: '/platLayout/editCharge',\n query: {\n id: this.id\n }\n });\n }\n }\n};",null]}