diff --git a/sgzb-ui/src/views/warehouseManage/newPurchase/toolsAcceptance/component/addTools.vue b/sgzb-ui/src/views/warehouseManage/newPurchase/toolsAcceptance/component/addTools.vue index a296fd04..26375032 100644 --- a/sgzb-ui/src/views/warehouseManage/newPurchase/toolsAcceptance/component/addTools.vue +++ b/sgzb-ui/src/views/warehouseManage/newPurchase/toolsAcceptance/component/addTools.vue @@ -30,14 +30,6 @@ value-format="yyyy-MM-dd" type="date" placeholder="出厂日期" - :picker-options="{ - // 设置当前时间为 采购日期的前一天 - disabledDate: time => { - const currentDate = new Date(maForm.purchaseTime || new Date()) - currentDate.setDate(currentDate.getDate() - 1) - return time.getTime() > currentDate.getTime() - } - }" @change="changeTime" > @@ -218,14 +210,6 @@ type="date" range-separator="-" placeholder="出厂日期" - :picker-options="{ - // 设置当前时间为 采购日期的前一天 - disabledDate: time => { - const currentDate = new Date(maForm.purchaseTime || new Date()) - currentDate.setDate(currentDate.getDate() - 1) - return time.getTime() > currentDate.getTime() - } - }" > @@ -594,15 +578,6 @@ export default { const arrivalTime = this.maForm.arrivalTime?.split('-').join('') - 0 - if (productionTime > purchaseTime) { - this.$message.error('出厂日期不可在采购日期之后') - return - } - if (productionTime > arrivalTime) { - this.$message.error('出厂日期不可在到货日期之后') - return - } - // console.log(this.maForm,'maForm') // console.log(this.equipmentList,'equipmentList') let isEmpty = true