|
@@ -8,13 +8,10 @@ export default {
|
|
|
isTodayOrYesterday(timeString) {
|
|
|
const date = moment(timeString)
|
|
|
const now = moment()
|
|
|
-
|
|
|
// 获取今天和昨天的日期
|
|
|
const today = now.startOf('day')
|
|
|
const yesterday = today.clone().subtract(1, 'days')
|
|
|
|
|
|
- console.log(date.isSame(today, 'day') || date.isSame(yesterday, 'day'), '时间判断')
|
|
|
-
|
|
|
// 判断给定日期是否在今天或昨天
|
|
|
return date.isSame(today, 'day') || date.isSame(yesterday, 'day')
|
|
|
},
|
|
@@ -176,6 +173,7 @@ export default {
|
|
|
(item.isImportExcel ? item.isMeet : true)
|
|
|
)
|
|
|
},
|
|
|
+ // 配件收费
|
|
|
PEIJIANSHOUFEI(item, userInfo) {
|
|
|
return (
|
|
|
((item.isImportExcel &&
|