From ebdcfa896ca7ab75f2a97076b7eeb5fa73a9327a Mon Sep 17 00:00:00 2001 From: zhang_li <2235006734@qqq.com> Date: Mon, 9 Sep 2024 17:31:28 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E8=AE=A1=E5=88=92=E5=AE=8C?= =?UTF-8?q?=E5=B7=A52024/7/22=2016:27:47?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/common/basic.js | 55 +++++++++++++++++ src/pages/fg/coms/comReceiptPopup.vue | 88 +++++++++++++++++++++++---- src/pages/fg/receiptByPlan.vue | 21 ++++++- 3 files changed, 149 insertions(+), 15 deletions(-) diff --git a/src/common/basic.js b/src/common/basic.js index 929a572e..fdfbd74e 100644 --- a/src/common/basic.js +++ b/src/common/basic.js @@ -871,6 +871,61 @@ export function getBatch8() { return year + month + day; } +/** + * 获取前几天和后几天的日期 2024-07-07 + */ +export function lastThreeDays(grapDay) { + let dates = []; + for (let i = grapDay; i >= 0; i--) { + // 创建新的Date对象,并减去i天 + let date = new Date(); + date.setDate(date.getDate() - i); + // 将格式化的日期字符串添加到数组中 + dates.push(formatDate(date)); + } + + for (let i = 0; i + + 计划日期: + + {{ planDate }} + + + + + + + 物料代码: @@ -36,15 +47,7 @@ - - - 批次: - - - - -