From c4b49d08cef0805e17646eef03e1c1a62316c3b2 Mon Sep 17 00:00:00 2001
From: loulijun2021 <1694218219@qq.com>
Date: 星期六, 05 十一月 2022 10:41:52 +0800
Subject: [PATCH] 1.产能规划优化
---
src/components/DatePicker/index.vue | 18 ++++++++++--------
1 files changed, 10 insertions(+), 8 deletions(-)
diff --git a/src/components/DatePicker/index.vue b/src/components/DatePicker/index.vue
index 716a199..a79d0a1 100644
--- a/src/components/DatePicker/index.vue
+++ b/src/components/DatePicker/index.vue
@@ -129,6 +129,7 @@
CapacityPlanningOnclickSelect,
CapacityPlanningSetupSearch
} from '@/api/scgl'
+import { handleDatetime } from '@/utils/global'
var time = null
export default {
@@ -401,13 +402,13 @@
this.getCapacityPlanningOnclickSelect(DATA)
this.getDblTime()
- // const indexV = this.value.indexOf(this.handleDatetime(date))
- // this.value.splice(indexV, 1)
- // for (const i in this.defArr) {
- // if (this.defArr[i].name === this.handleDatetime(date)) {
- // this.defArr.splice(i, 1)
- // }
- // }
+ // const indexV = this.value.indexOf(this.handleDatetime(date))
+ // this.value.splice(indexV, 1)
+ // for (const i in this.defArr) {
+ // if (this.defArr[i].name === this.handleDatetime(date)) {
+ // this.defArr.splice(i, 1)
+ // }
+ // }
}
}
this.$emit('input', this.value)
@@ -514,7 +515,8 @@
},
getCapacityPlanningCalendar() {
CapacityPlanningCalendar({ captplanid: this.rowData.CaptPlanId }).then((res) => {
- this.defArr = res.data
+ const currentDate = handleDatetime(new Date())
+ this.defArr = res.data.filter(i => i.name >= currentDate)
})
},
closeCapacityPlanningCalendar() {
--
Gitblit v1.9.3