From 8064a77af2faf5bf080be0c4347a3a975225453b Mon Sep 17 00:00:00 2001
From: gaoluyang <2820782392@qq.com>
Date: 星期二, 14 七月 2026 15:38:12 +0800
Subject: [PATCH] 银川 1.物料管理页面批次属性功能联调 2.库存现有量添加自定义出库入库功能
---
src/views/wls/materialstock/data.ts | 70 +++++++++++++++++++++++++++++++++++
1 files changed, 70 insertions(+), 0 deletions(-)
diff --git a/src/views/wls/materialstock/data.ts b/src/views/wls/materialstock/data.ts
index c6f0ceb..4befafd 100644
--- a/src/views/wls/materialstock/data.ts
+++ b/src/views/wls/materialstock/data.ts
@@ -108,6 +108,41 @@
width: 100,
},
{
+ field: 'frozenQuantity',
+ title: '鍐荤粨鏁伴噺',
+ width: 100,
+ formatter: ({ cellValue }: { cellValue: number }) =>
+ (cellValue || 0).toFixed(2),
+ },
+ {
+ field: 'reservedQuantity',
+ title: '鍗犵敤閲�',
+ width: 100,
+ formatter: ({ cellValue }: { cellValue: number }) =>
+ (cellValue || 0).toFixed(2),
+ },
+ {
+ field: 'inTransitQuantity',
+ title: '鍦ㄩ�旈噺',
+ width: 100,
+ formatter: ({ cellValue }: { cellValue: number }) =>
+ (cellValue || 0).toFixed(2),
+ },
+ {
+ field: 'availableQuantity',
+ title: '鍙敤閲�',
+ width: 100,
+ cellRender: {
+ name: 'CellText',
+ props: {
+ class: ({ row }: { row: MesWmMaterialStockApi.MaterialStock }) =>
+ (row.availableQuantity || 0) < 0 ? 'text-red-500 font-bold' : '',
+ formatter: ({ row }: { row: MesWmMaterialStockApi.MaterialStock }) =>
+ ((row.availableQuantity || 0) as number).toFixed(2),
+ },
+ },
+ },
+ {
field: 'unitMeasureName',
title: '鍗曚綅',
width: 80,
@@ -288,6 +323,41 @@
width: 100,
},
{
+ field: 'frozenQuantity',
+ title: '鍐荤粨鏁伴噺',
+ width: 100,
+ formatter: ({ cellValue }: { cellValue: number }) =>
+ (cellValue || 0).toFixed(2),
+ },
+ {
+ field: 'reservedQuantity',
+ title: '鍗犵敤閲�',
+ width: 100,
+ formatter: ({ cellValue }: { cellValue: number }) =>
+ (cellValue || 0).toFixed(2),
+ },
+ {
+ field: 'inTransitQuantity',
+ title: '鍦ㄩ�旈噺',
+ width: 100,
+ formatter: ({ cellValue }: { cellValue: number }) =>
+ (cellValue || 0).toFixed(2),
+ },
+ {
+ field: 'availableQuantity',
+ title: '鍙敤閲�',
+ width: 100,
+ cellRender: {
+ name: 'CellText',
+ props: {
+ class: ({ row }: { row: MesWmMaterialStockApi.MaterialStock }) =>
+ (row.availableQuantity || 0) < 0 ? 'text-red-500 font-bold' : '',
+ formatter: ({ row }: { row: MesWmMaterialStockApi.MaterialStock }) =>
+ ((row.availableQuantity || 0) as number).toFixed(2),
+ },
+ },
+ },
+ {
field: 'receiptTime',
title: '鍏ュ簱鏃ユ湡',
width: 180,
--
Gitblit v1.9.3