日期判断修改

dev
e 3 years ago
parent c63fd9557d
commit 3b366968c2
  1. 2
      src/views/order/AddOrder.vue

@ -978,7 +978,7 @@ export default {
let date2 = Date.parse(nowYear); let date2 = Date.parse(nowYear);
let ms = Math.abs(date1 - date2) let ms = Math.abs(date1 - date2)
let days = Math.floor(ms / (24 * 3600 * 1000)) + 1; let days = Math.floor(ms / (24 * 3600 * 1000));
console.log(Date.parse(endYear),nowYear,date1,date2,days,'剩余期限'); console.log(Date.parse(endYear),nowYear,date1,date2,days,'剩余期限');
row.remainingPeriod = days row.remainingPeriod = days
}, },

Loading…
Cancel
Save