loulijun2021
2023-05-25 86b282043844a5c6d2624d9f18a465c08d8cfc11
src/components/DatePicker/index.vue
@@ -49,6 +49,7 @@
                  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>
@@ -128,7 +129,8 @@
  CapacityPlanningGivePlanSubmit,
  CapacityPlanningOnclickSelect,
  CapacityPlanningSetupSearch
} from '@/api/scgl'
} from '@/api/produceManager'
import { handleDatetime } from '@/utils/global'
var time = null
export default {
@@ -401,13 +403,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 +516,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() {