From 1db391a2f05150a61d40ad0b6df694eabc2b471a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=A6=82=E5=88=9D?= <3236758982@qq.com> Date: Mon, 9 Mar 2026 17:42:12 +0800 Subject: [PATCH] =?UTF-8?q?=E5=85=B6=E5=AE=83=E5=87=BA=E5=BA=93=E9=80=82?= =?UTF-8?q?=E9=85=8D=E6=89=8B=E6=9C=BA=E7=AB=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/utils/formatTime.ts | 13 + src/views/erp/stock/in/index.vue | 5 +- src/views/erp/stock/out/StockOutForm.vue | 124 +++-- .../stock/out/components/StockOutItemForm.vue | 302 +++++++---- src/views/erp/stock/out/index.vue | 509 +++++++----------- 5 files changed, 493 insertions(+), 460 deletions(-) diff --git a/src/utils/formatTime.ts b/src/utils/formatTime.ts index 99eb428..6e4761a 100644 --- a/src/utils/formatTime.ts +++ b/src/utils/formatTime.ts @@ -316,6 +316,19 @@ export function getLast1Year(): [dayjs.ConfigType, dayjs.ConfigType] { return getDateRange(lastYearDay, yesterday) } +export const formatTime = (timestamp?: number) => { + if (!timestamp) return '-' + const d = new Date(timestamp) + const pad = (n: number) => n.toString().padStart(2, '0') + return `${d.getFullYear()}-${pad(d.getMonth()+1)}-${pad(d.getDate())} ` + + `${pad(d.getHours())}:${pad(d.getMinutes())}:${pad(d.getSeconds())}` +} + +export const formatDate2 = (date: any) => { + if (!date) return '-' + return formatDate(new Date(date), 'YYYY-MM-DD') +} + /** * 获取指定日期的开始时间、截止时间 * @param beginDate 开始日期 diff --git a/src/views/erp/stock/in/index.vue b/src/views/erp/stock/in/index.vue index 9ba432a..cb3aae3 100644 --- a/src/views/erp/stock/in/index.vue +++ b/src/views/erp/stock/in/index.vue @@ -45,7 +45,7 @@
入库时间 - {{ dateFormatter2(item.inTime) }} + {{ formatDate2(item.inTime) }}
创建人 @@ -118,7 +118,7 @@ diff --git a/src/views/erp/stock/out/components/StockOutItemForm.vue b/src/views/erp/stock/out/components/StockOutItemForm.vue index fb96f47..dd80581 100644 --- a/src/views/erp/stock/out/components/StockOutItemForm.vue +++ b/src/views/erp/stock/out/components/StockOutItemForm.vue @@ -4,24 +4,41 @@ :model="formData" :rules="formRules" v-loading="formLoading" - label-width="0px" + label-position="top" :inline-message="true" :disabled="disabled" > - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - +
+ + +
+
+ 合计数量 + {{ erpCountInputFormatter(summaryData.count) }} +
+
+ 合计金额 + {{ erpPriceInputFormatter(summaryData.totalPrice) }} +
+
+ - - + 添加出库产品 - +
+ + 添加出库产品 +
+ + diff --git a/src/views/erp/stock/out/index.vue b/src/views/erp/stock/out/index.vue index 953b79c..f722920 100644 --- a/src/views/erp/stock/out/index.vue +++ b/src/views/erp/stock/out/index.vue @@ -1,274 +1,148 @@ + +