From f895e5a17a7fb6b8f72d8a26045a11772ebf81b1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=A0=82=E7=B3=96?= Date: Wed, 14 Jan 2026 08:12:53 +0800 Subject: [PATCH] =?UTF-8?q?refactor(wms):=20=E4=BC=98=E5=8C=96=E4=BB=A3?= =?UTF-8?q?=E7=A0=81=E6=A0=BC=E5=BC=8F=E5=92=8C=E6=97=A5=E6=9C=9F=E5=A4=84?= =?UTF-8?q?=E7=90=86=E9=80=BB=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 调整el-option组件格式以提高可读性 - 增加getBeijingDate函数处理北京时间 - 修改remoteMethod中pageSize从5增加到10 --- klp-ui/src/views/wms/coil/do/warehousing.vue | 28 ++++++++++++++------ 1 file changed, 20 insertions(+), 8 deletions(-) diff --git a/klp-ui/src/views/wms/coil/do/warehousing.vue b/klp-ui/src/views/wms/coil/do/warehousing.vue index d1321148..ece82129 100644 --- a/klp-ui/src/views/wms/coil/do/warehousing.vue +++ b/klp-ui/src/views/wms/coil/do/warehousing.vue @@ -72,7 +72,8 @@ --> - + @@ -276,10 +277,11 @@ - - + +
请先选择材料类型
@@ -294,7 +296,8 @@ --> - + @@ -532,14 +535,23 @@ export default { } }, remoteMethod(query) { - listDeliveryPlan({ planName: query, pageNum: 1, pageSize: 5, planType: 1 }).then(res => { + listDeliveryPlan({ planName: query, pageNum: 1, pageSize: 10, planType: 1 }).then(res => { this.planList = res.rows }) }, getTodayPlan() { // 获取今天的收货计划 // 计划日期格式为yyyy-MM-dd - let today = new Date().toISOString().substring(0, 10) + function getBeijingDate() { + const today = new Date(); + const year = today.getFullYear(); // 获取4位完整年份(2026) + const month = String(today.getMonth() + 1).padStart(2, '0'); // 月份是0开始(0-11),所以+1;补0成两位(01-12) + const day = String(today.getDate()).padStart(2, '0'); // 日期补0成两位(01-31) + return `${year}-${month}-${day}`; + } + + // 调用使用 + let today = getBeijingDate(); // let today = '2025-01-01' listDeliveryPlan({ planDate: today, pageNum: 1, pageSize: 1, planType: 1 }).then(res => { if (res.rows.length > 0) {