Files
supplier-dispatch-h5/node_modules/.cache/babel-loader/49697f9ee846e2988b27f65a8f74331004a5b6257cc0c29779d1b67e2cc574e0.json
2023-08-11 10:45:20 +08:00

1 line
10 KiB
JSON
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

{"ast":null,"code":"const formatDate = date => {\n let tempDate = new Date(date);\n const year = tempDate.getFullYear();\n const month = tempDate.getMonth() + 1;\n const day = tempDate.getDate();\n return `${[year, month, day].map(formatNumber).join('-')}`;\n};\nconst formatNumber = n => {\n n = n.toString();\n return n[1] ? n : `0${n}`;\n};\nconst leftCopy = (obj, source) => {\n let sourceKey = Object.keys(source);\n if (obj && source) {\n Object.keys(obj).forEach(key => {\n if (sourceKey.includes(key)) {\n obj[key] = source[key] == null ? '' : source[key];\n }\n });\n }\n};\nconst getFeeTitle = (serverId, finishedPrice, trailUndergroundFee, finishedLimitedMileage, finishedExcessUnitPrice) => {\n let feeStr = '';\n switch (serverId) {\n case 1043:\n feeStr = `搭电¥${finishedPrice}起/次`;\n break;\n case 1042:\n feeStr = `换胎¥${finishedPrice}起/次`;\n break;\n case 1041:\n feeStr = `拖车¥${finishedPrice}起/次,地库+${trailUndergroundFee}元,拖车费用仅包含${finishedLimitedMileage}公里,超出部分将按照${finishedExcessUnitPrice}元/公里收费`;\n break;\n case 2160:\n feeStr = `上门充电¥${finishedPrice}/次包括充10度电。`;\n break;\n }\n return feeStr;\n};\nconst feeList = unitFee => {\n return [{\n \"otherRules\": [\"1. 除救援费用以外,救援过程中产生的其他费用需要您承担,请在服务完成后现场支付给师傅,包含过路、过桥、停车等费用;\", \"2. 如因车子机械故障或其他故障不是电瓶没有电致使的接电失败将收取基础费用的50%。\"],\n \"cancelRules\": [\"1. 报案成功后 10分钟之内可免费取消\", \"2. 超过10分钟后师傅到达现场前将收取基础费用的50%作为师傅的空驶费;\", \"3. 师傅到达现场后,不再支持取消订单\"]\n }, {\n \"otherRules\": [\"1. 除救援费用以外,救援过程中产生的其他费用需要您承担,请在服务完成后现场支付给师傅,包含过路、过桥、停车等费用;\", \"2. 换胎若需购置轮胎,您需要自己承担购置费。\"],\n \"cancelRules\": [\"1.报案成功后 10分钟之内可免费取消\", \"2. 超过10分钟后师傅到达现场前将收取基础费用的50%作为服务师傅的空驶费;\", \"3. 师傅到达现场后,不再支持取消订单\"]\n }, {\n \"otherRules\": [\"1. 除救援费用以外,救援过程中产生的其他费用需要您承担,请在服务完成后现场支付给师傅,包含过路、过桥、停车等费用;\", `2. 救援过程中救援目的地发生变更,产生的额外拖车费用,按照${unitFee}元/公里收费。`, \"3. 救援过程中如果使用了辅助轮按照每架100元额外收费请在服务完成后现场支付给师傅\"],\n \"cancelRules\": [\"1.报案成功后 10分钟之内可免费取消\", \"2. 超过10分钟后师傅到达现场前将收取基础费用的50%作为服务师傅的空驶费;\", \"3. 师傅到达现场后,不再支持取消订单\"]\n }, {\n \"otherRules\": [\"1. 除救援费用以外,救援过程中产生的其他费用需要您承担,请在服务完成后现场支付给师傅,包含过路、过桥、停车等费用;\", \"2. 如果需要充更多电量按照¥3/度收费,充电完成后现场支付给师傅。\"],\n \"cancelRules\": [\"1.报案成功后 10分钟之内可免费取消\", \"2. 超过10分钟后师傅到达现场前将收取基础费用的50%作为服务师傅的空驶费;\", \"3. 师傅到达现场后,不再支持取消订单\"]\n }];\n};\nmodule.exports = {\n formatNumber,\n formatDate,\n leftCopy,\n getFeeTitle,\n feeList\n};","map":{"version":3,"names":["formatDate","date","tempDate","Date","year","getFullYear","month","getMonth","day","getDate","map","formatNumber","join","n","toString","leftCopy","obj","source","sourceKey","Object","keys","forEach","key","includes","getFeeTitle","serverId","finishedPrice","trailUndergroundFee","finishedLimitedMileage","finishedExcessUnitPrice","feeStr","feeList","unitFee","module","exports"],"sources":["E:/work/sino/sino-h5/src/utils/common.js"],"sourcesContent":["const formatDate = date => {\r\n let tempDate = new Date(date)\r\n const year = tempDate.getFullYear()\r\n const month = tempDate.getMonth() + 1\r\n const day = tempDate.getDate()\r\n return `${[year, month, day].map(formatNumber).join('-')}`\r\n}\r\n\r\nconst formatNumber = n => {\r\n n = n.toString()\r\n return n[1] ? n : `0${n}`\r\n}\r\n\r\nconst leftCopy = (obj, source) => {\r\n let sourceKey = Object.keys(source)\r\n if (obj && source) {\r\n Object.keys(obj).forEach(key => {\r\n if (sourceKey.includes(key)) {\r\n obj[key] = source[key] == null ? '' : source[key]\r\n }\r\n })\r\n }\r\n}\r\n\r\nconst getFeeTitle = (serverId, finishedPrice, trailUndergroundFee, finishedLimitedMileage, finishedExcessUnitPrice) => {\r\n let feeStr = ''\r\n switch (serverId) {\r\n case 1043:\r\n feeStr = `搭电¥${ finishedPrice }起/次`;\r\n break;\r\n case 1042:\r\n feeStr = `换胎¥${ finishedPrice }起/次`;\r\n break;\r\n case 1041:\r\n feeStr = `拖车¥${ finishedPrice }起/次,地库+${ trailUndergroundFee }元,拖车费用仅包含${finishedLimitedMileage}公里,超出部分将按照${finishedExcessUnitPrice}元/公里收费`;\r\n break;\r\n case 2160:\r\n feeStr = `上门充电¥${ finishedPrice }/次包括充10度电。`;\r\n break;\r\n }\r\n return feeStr;\r\n}\r\n\r\nconst feeList = ( unitFee ) => {\r\n return [{\r\n \"otherRules\": [\r\n \"1. 除救援费用以外,救援过程中产生的其他费用需要您承担,请在服务完成后现场支付给师傅,包含过路、过桥、停车等费用;\",\r\n \"2. 如因车子机械故障或其他故障不是电瓶没有电致使的接电失败将收取基础费用的50%。\"\r\n ],\r\n \"cancelRules\": [\r\n \"1. 报案成功后 10分钟之内可免费取消\",\r\n \"2. 超过10分钟后师傅到达现场前将收取基础费用的50%作为师傅的空驶费;\",\r\n \"3. 师傅到达现场后,不再支持取消订单\"\r\n ]\r\n }, {\r\n \"otherRules\": [\r\n \"1. 除救援费用以外,救援过程中产生的其他费用需要您承担,请在服务完成后现场支付给师傅,包含过路、过桥、停车等费用;\",\r\n \"2. 换胎若需购置轮胎,您需要自己承担购置费。\"\r\n ],\r\n \"cancelRules\": [\r\n \"1.报案成功后 10分钟之内可免费取消\",\r\n \"2. 超过10分钟后师傅到达现场前将收取基础费用的50%作为服务师傅的空驶费;\",\r\n \"3. 师傅到达现场后,不再支持取消订单\"\r\n ]\r\n }, {\r\n \"otherRules\": [\r\n \"1. 除救援费用以外,救援过程中产生的其他费用需要您承担,请在服务完成后现场支付给师傅,包含过路、过桥、停车等费用;\",\r\n `2. 救援过程中救援目的地发生变更,产生的额外拖车费用,按照${unitFee}元/公里收费。`,\r\n \"3. 救援过程中如果使用了辅助轮按照每架100元额外收费请在服务完成后现场支付给师傅\"\r\n ],\r\n \"cancelRules\": [\r\n \"1.报案成功后 10分钟之内可免费取消\",\r\n \"2. 超过10分钟后师傅到达现场前将收取基础费用的50%作为服务师傅的空驶费;\",\r\n \"3. 师傅到达现场后,不再支持取消订单\"\r\n ]\r\n },{\r\n \"otherRules\": [\r\n \"1. 除救援费用以外,救援过程中产生的其他费用需要您承担,请在服务完成后现场支付给师傅,包含过路、过桥、停车等费用;\",\r\n \"2. 如果需要充更多电量按照¥3/度收费,充电完成后现场支付给师傅。\"\r\n ],\r\n \"cancelRules\": [\r\n \"1.报案成功后 10分钟之内可免费取消\",\r\n \"2. 超过10分钟后师傅到达现场前将收取基础费用的50%作为服务师傅的空驶费;\",\r\n \"3. 师傅到达现场后,不再支持取消订单\"\r\n ]\r\n }]\r\n}\r\n\r\nmodule.exports = {\r\n formatNumber,\r\n formatDate,\r\n leftCopy,\r\n getFeeTitle,\r\n feeList\r\n}\r\n"],"mappings":"AAAA,MAAMA,UAAU,GAAGC,IAAI,IAAI;EACzB,IAAIC,QAAQ,GAAG,IAAIC,IAAI,CAACF,IAAI,CAAC;EAC7B,MAAMG,IAAI,GAAGF,QAAQ,CAACG,WAAW,CAAC,CAAC;EACnC,MAAMC,KAAK,GAAGJ,QAAQ,CAACK,QAAQ,CAAC,CAAC,GAAG,CAAC;EACrC,MAAMC,GAAG,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