@@ -420,7 +420,7 @@ export default defineComponent({
app.refresh();
}
// 计算租机到期时间
- function calculateRentDuration(scope) {
+ function calculateRentDuration(scope: { rent_end: Date; rent_start: string; rent_duration: string; }) {
scope.rent_end = new Date(Date.parse(scope.rent_start) + 1 * 24 * 60 * 60 * 1000 * parseInt(scope.rent_duration))
// 监听