From a50f37243f22e2c0e45387e5c1beb754cda9fdd4 Mon Sep 17 00:00:00 2001 From: fengyuan_yang <1976974459@qq.com> Date: Mon, 27 Oct 2025 13:40:38 +0800 Subject: [PATCH] =?UTF-8?q?2025-10-27=20=E4=BB=93=E5=BA=93=E7=9B=98?= =?UTF-8?q?=E7=82=B9=E7=AE=A1=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../modules/warehouse/countingReport.vue | 20 +++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/src/views/modules/warehouse/countingReport.vue b/src/views/modules/warehouse/countingReport.vue index 1513535..3f1b960 100644 --- a/src/views/modules/warehouse/countingReport.vue +++ b/src/views/modules/warehouse/countingReport.vue @@ -61,6 +61,7 @@ + + + + + @@ -250,6 +260,7 @@ export default { buNo: '', reportId: '', checkDimension: '', + planDate: '', warehouseId: '', warehouseName: '', locationId: '', @@ -357,6 +368,13 @@ export default { this.modalFlag = true this.modalTitle = '盘点任务生成' this.modalDisableFlag = false + // 获取当天日期(格式:yyyy-MM-dd) + const today = new Date() + const year = today.getFullYear() + const month = String(today.getMonth() + 1).padStart(2, '0') + const day = String(today.getDate()).padStart(2, '0') + const todayStr = `${year}-${month}-${day}` + this.modalData = { flag: 'add', bu: this.userBuList.length > 0 ? this.userBuList[0].buNo : '', @@ -364,6 +382,7 @@ export default { buNo: '', reportId: '', checkDimension: '', + planDate: todayStr, warehouseId: '', warehouseName: '', locationId: '', @@ -391,6 +410,7 @@ export default { buNo: row.buNo, reportId: row.reportId, checkDimension: row.checkDimension, + planDate: row.planDate, warehouseId: row.warehouseId, warehouseName: row.warehouseName, locationId: row.locationId,