loulijun2021
2022-11-05 c4b49d08cef0805e17646eef03e1c1a62316c3b2
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() {