feat:【antd】【erp 系统】purchase/order 重构 3/4

This commit is contained in:
YunaiV
2025-10-04 19:37:28 +08:00
parent 2039cbc0d0
commit 9406593d6e
2 changed files with 12 additions and 0 deletions

View File

@@ -198,36 +198,42 @@ export function useFormItemColumns(): VxeTableGridOptions['columns'] {
field: 'count', field: 'count',
title: '数量', title: '数量',
minWidth: 120, minWidth: 120,
fixed: 'right',
slots: { default: 'count' }, slots: { default: 'count' },
}, },
{ {
field: 'productPrice', field: 'productPrice',
title: '产品单价', title: '产品单价',
minWidth: 120, minWidth: 120,
fixed: 'right',
slots: { default: 'productPrice' }, slots: { default: 'productPrice' },
}, },
{ {
field: 'totalProductPrice', field: 'totalProductPrice',
title: '金额', title: '金额',
minWidth: 120, minWidth: 120,
fixed: 'right',
formatter: 'formatAmount2', formatter: 'formatAmount2',
}, },
{ {
field: 'taxPercent', field: 'taxPercent',
title: '税率(%)', title: '税率(%)',
minWidth: 105, minWidth: 105,
fixed: 'right',
slots: { default: 'taxPercent' }, slots: { default: 'taxPercent' },
}, },
{ {
field: 'taxPrice', field: 'taxPrice',
title: '税额', title: '税额',
minWidth: 120, minWidth: 120,
fixed: 'right',
formatter: 'formatAmount2', formatter: 'formatAmount2',
}, },
{ {
field: 'totalPrice', field: 'totalPrice',
title: '税额合计', title: '税额合计',
minWidth: 120, minWidth: 120,
fixed: 'right',
formatter: 'formatAmount2', formatter: 'formatAmount2',
}, },
{ {

View File

@@ -213,36 +213,42 @@ export function useFormItemColumns(): VxeTableGridOptions['columns'] {
field: 'count', field: 'count',
title: '数量', title: '数量',
minWidth: 120, minWidth: 120,
fixed: 'right',
slots: { default: 'count' }, slots: { default: 'count' },
}, },
{ {
field: 'productPrice', field: 'productPrice',
title: '产品单价', title: '产品单价',
minWidth: 120, minWidth: 120,
fixed: 'right',
slots: { default: 'productPrice' }, slots: { default: 'productPrice' },
}, },
{ {
field: 'totalProductPrice', field: 'totalProductPrice',
title: '金额', title: '金额',
minWidth: 120, minWidth: 120,
fixed: 'right',
formatter: 'formatAmount2', formatter: 'formatAmount2',
}, },
{ {
field: 'taxPercent', field: 'taxPercent',
title: '税率(%)', title: '税率(%)',
minWidth: 105, minWidth: 105,
fixed: 'right',
slots: { default: 'taxPercent' }, slots: { default: 'taxPercent' },
}, },
{ {
field: 'taxPrice', field: 'taxPrice',
title: '税额', title: '税额',
minWidth: 120, minWidth: 120,
fixed: 'right',
formatter: 'formatAmount2', formatter: 'formatAmount2',
}, },
{ {
field: 'totalPrice', field: 'totalPrice',
title: '税额合计', title: '税额合计',
minWidth: 120, minWidth: 120,
fixed: 'right',
formatter: 'formatAmount2', formatter: 'formatAmount2',
}, },
{ {