From 968d953387058d12d3b17aec23209b7f3d19275c Mon Sep 17 00:00:00 2001 From: binbin_pan Date: Tue, 25 Jun 2024 16:49:18 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E6=97=A5=E6=9C=9F=E9=80=89?= =?UTF-8?q?=E6=8B=A9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../newPurchase/partsAcceptance/component/addParts.vue | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/sgzb-ui/src/views/warehouseManage/newPurchase/partsAcceptance/component/addParts.vue b/sgzb-ui/src/views/warehouseManage/newPurchase/partsAcceptance/component/addParts.vue index af13397d..c8b25130 100644 --- a/sgzb-ui/src/views/warehouseManage/newPurchase/partsAcceptance/component/addParts.vue +++ b/sgzb-ui/src/views/warehouseManage/newPurchase/partsAcceptance/component/addParts.vue @@ -540,10 +540,11 @@ export default { }, computed: { pickerOptions() { + // 当前时间 - 采购时间 + const currentDate = new Date(this.maForm.purchaseTime || new Date()) + currentDate.setDate(currentDate.getDate() - 1) return { disabledDate(time) { - const currentDate = new Date() - currentDate.setHours(0, 0, 0, 0) return time.getTime() < currentDate.getTime() }, }