| | |
| | | slot="reference" |
| | | :class="[{select:isSelect(visibleDays[(i-1)*7+(j-1)])}, |
| | | {dblDateStyle:isDblDate(visibleDays[(i-1)*7+(j-1)])}]" |
| | | :style="{background: isSelect(visibleDays[(i-1)*7+(j-1)])?$store.state.settings.theme:''}" |
| | | >{{ visibleDays[(i - 1) * 7 + (j - 1)].getDate() }}</span> |
| | | </el-popover> |
| | | |
| | |
| | | CapacityPlanningGivePlanSubmit, |
| | | CapacityPlanningOnclickSelect, |
| | | CapacityPlanningSetupSearch |
| | | } from '@/api/scgl' |
| | | } from '@/api/produceManager' |
| | | 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() { |