From 57417fc8becbace41a7f2b4f6a0f1ea856a6fe08 Mon Sep 17 00:00:00 2001 From: binbin_pan Date: Tue, 25 Jun 2024 16:00:40 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E5=87=BA=E5=8E=82=E6=97=A5=E6=9C=9F?= =?UTF-8?q?=E5=8F=AF=E4=BB=A5=E6=99=9A=E4=BA=8E=E9=87=87=E8=B4=AD=E6=97=A5?= =?UTF-8?q?=E6=9C=9F=E4=B8=8E=E5=88=B0=E8=B4=A7=E6=97=A5=E6=9C=9F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../toolsAcceptance/component/addTools.vue | 25 ------------------- 1 file changed, 25 deletions(-) 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