From 78fb7b8eca1553d62495f03e870701f2c5d0e064 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:01:53 +0800 Subject: [PATCH] =?UTF-8?q?=E5=85=B6=E5=AE=83=E5=85=A5=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/views/erp/stock/in/StockInForm.vue | 124 +++-- .../stock/in/components/StockInItemForm.vue | 302 +++++++---- src/views/erp/stock/in/index.vue | 496 +++++++----------- src/views/erp/stock/record/index.vue | 48 +- src/views/erp/stock/stock/index.vue | 24 +- 5 files changed, 514 insertions(+), 480 deletions(-) diff --git a/src/views/erp/stock/in/StockInForm.vue b/src/views/erp/stock/in/StockInForm.vue index f36bbb6..8389f66 100644 --- a/src/views/erp/stock/in/StockInForm.vue +++ b/src/views/erp/stock/in/StockInForm.vue @@ -1,38 +1,44 @@ + + diff --git a/src/views/erp/stock/in/components/StockInItemForm.vue b/src/views/erp/stock/in/components/StockInItemForm.vue index 4268c76..593fe9d 100644 --- a/src/views/erp/stock/in/components/StockInItemForm.vue +++ b/src/views/erp/stock/in/components/StockInItemForm.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/in/index.vue b/src/views/erp/stock/in/index.vue index e09d397..9ba432a 100644 --- a/src/views/erp/stock/in/index.vue +++ b/src/views/erp/stock/in/index.vue @@ -1,255 +1,125 @@ + + diff --git a/src/views/erp/stock/record/index.vue b/src/views/erp/stock/record/index.vue index a13e729..58219eb 100644 --- a/src/views/erp/stock/record/index.vue +++ b/src/views/erp/stock/record/index.vue @@ -92,15 +92,15 @@
出入库日期 - {{ dateFormatter({ createTime: item.createTime }) }} + {{ formatDate(item.createTime) }}
出入库数量 - {{ erpCountTableColumnFormatter({ count: item.count }) }} + {{ erpCountTableColumnFormatter(null, null, item.count, null ) }}
库存量 - {{ erpCountTableColumnFormatter({ count: item.totalCount }) }} + {{ erpCountTableColumnFormatter(null, null, item.totalCount, null ) }}
单价 @@ -404,6 +404,14 @@ onMounted(async () => { // 加载列表 await getList() }) + +const formatDate = (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())}` +}