feat(@vben/web-antd): erp-stock-in 优化入库单产品清单组件

- 移除了 totalCount 和 totalPrice 的计算逻辑
- 调整了添加产品的按钮位置
- 为表格底部的单元格添加了自定义样式
- 简化了组件的 props 接口
This commit is contained in:
nehc
2025-08-01 17:35:56 +08:00
parent 3afd957713
commit 1433a0980d
3 changed files with 28 additions and 108 deletions

View File

@@ -1,8 +1,6 @@
import type { VbenFormSchema } from '#/adapter/form';
import type { VxeTableGridOptions } from '#/adapter/vxe-table';
import { erpPriceInputFormatter } from '@vben/utils';
import { getSupplierSimpleList } from '#/api/erp/purchase/supplier';
import { getSimpleUserList } from '#/api/system/user';
import { DICT_TYPE, getDictOptions } from '#/utils';
@@ -96,29 +94,6 @@ export function useFormSchema(): VbenFormSchema[] {
component: 'Input',
formItemClass: 'col-span-3',
},
{
component: 'InputNumber',
componentProps: {
placeholder: '合计数量',
precision: 2,
disabled: true,
style: { width: '100%' },
},
fieldName: 'totalCount',
label: '合计数量',
},
{
component: 'InputNumber',
componentProps: {
placeholder: '合计金额',
precision: 2,
formatter: erpPriceInputFormatter,
disabled: true,
style: { width: '100%' },
},
fieldName: 'totalPrice',
label: '合计金额',
},
];
}
@@ -296,28 +271,6 @@ export function useGridColumns(): VxeTableGridOptions['columns'] {
title: '创建人',
minWidth: 100,
},
{
field: 'totalCount',
title: '数量',
minWidth: 100,
cellRender: {
name: 'CellAmount',
props: {
digits: 2,
},
},
},
{
field: 'totalPrice',
title: '金额',
minWidth: 120,
cellRender: {
name: 'CellAmount',
props: {
digits: 2,
},
},
},
{
field: 'status',
title: '状态',