| | |
| | | CapacityPlanningOnclickSelect, |
| | | CapacityPlanningSetupSearch |
| | | } from '@/api/scgl' |
| | | import { handleDatetime } from '@/utils/global' |
| | | |
| | | var time = null |
| | | export default { |
| | |
| | | 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) |
| | |
| | | }, |
| | | 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() { |