feat:【antd】【erp 系统】库存相关的 3 位保留的补全

This commit is contained in:
YunaiV
2025-10-05 09:19:39 +08:00
parent f98cef8c71
commit 02adb68581
18 changed files with 36 additions and 21 deletions

View File

@@ -104,6 +104,7 @@ export function useFormItemColumns(): VxeTableGridOptions['columns'] {
field: 'stockCount',
title: '账面库存',
minWidth: 80,
formatter: 'formatAmount3',
},
{
field: 'productBarCode',
@@ -127,6 +128,7 @@ export function useFormItemColumns(): VxeTableGridOptions['columns'] {
minWidth: 120,
fixed: 'right',
slots: { default: 'actualCount' },
formatter: 'formatAmount3',
},
{
field: 'count',

View File

@@ -247,7 +247,7 @@ onMounted(async () => {
:precision="3"
@change="handleActualCountChange($event, row)"
/>
<span v-else>{{ row.actualCount || '-' }}</span>
<span v-else>{{ erpCountInputFormatter(row.actualCount) || '-' }}</span>
</template>
<template #productPrice="{ row }">
<InputNumber
@@ -257,7 +257,7 @@ onMounted(async () => {
:precision="2"
@change="handleRowChange(row)"
/>
<span v-else>{{ row.productPrice || '-' }}</span>
<span v-else>{{ erpPriceInputFormatter(row.productPrice) || '-' }}</span>
</template>
<template #remark="{ row }">
<Input v-if="!disabled" v-model:value="row.remark" class="w-full" />

View File

@@ -121,6 +121,7 @@ export function useFormItemColumns(): VxeTableGridOptions['columns'] {
field: 'stockCount',
title: '库存',
minWidth: 80,
formatter: 'formatAmount3',
},
{
field: 'productBarCode',

View File

@@ -236,7 +236,7 @@ onMounted(async () => {
:precision="3"
@change="handleRowChange(row)"
/>
<span v-else>{{ row.count || '-' }}</span>
<span v-else>{{ erpCountInputFormatter(row.count) || '-' }}</span>
</template>
<template #productPrice="{ row }">
<InputNumber
@@ -246,7 +246,7 @@ onMounted(async () => {
:precision="2"
@change="handleRowChange(row)"
/>
<span v-else>{{ row.productPrice || '-' }}</span>
<span v-else>{{ erpPriceInputFormatter(row.productPrice) || '-' }}</span>
</template>
<template #remark="{ row }">
<Input v-if="!disabled" v-model:value="row.remark" class="w-full" />

View File

@@ -110,6 +110,7 @@ export function useFormItemColumns(): VxeTableGridOptions['columns'] {
field: 'stockCount',
title: '库存',
minWidth: 80,
formatter: 'formatAmount3',
},
{
field: 'productBarCode',

View File

@@ -257,7 +257,7 @@ onMounted(async () => {
:precision="3"
@change="handleRowChange(row)"
/>
<span v-else>{{ row.count || '-' }}</span>
<span v-else>{{ erpCountInputFormatter(row.count) || '-' }}</span>
</template>
<template #productPrice="{ row }">
<InputNumber
@@ -267,7 +267,7 @@ onMounted(async () => {
:precision="2"
@change="handleRowChange(row)"
/>
<span v-else>{{ row.productPrice || '-' }}</span>
<span v-else>{{ erpPriceInputFormatter(row.productPrice) || '-' }}</span>
</template>
<template #remark="{ row }">
<Input v-if="!disabled" v-model:value="row.remark" class="w-full" />

View File

@@ -121,6 +121,7 @@ export function useFormItemColumns(): VxeTableGridOptions['columns'] {
field: 'stockCount',
title: '库存',
minWidth: 80,
formatter: 'formatAmount3',
},
{
field: 'productBarCode',

View File

@@ -234,7 +234,7 @@ onMounted(async () => {
:precision="3"
@change="handleRowChange(row)"
/>
<span v-else>{{ row.count || '-' }}</span>
<span v-else>{{ erpCountInputFormatter(row.count) || '-' }}</span>
</template>
<template #productPrice="{ row }">
<InputNumber
@@ -244,7 +244,7 @@ onMounted(async () => {
:precision="2"
@change="handleRowChange(row)"
/>
<span v-else>{{ row.productPrice || '-' }}</span>
<span v-else>{{ erpPriceInputFormatter(row.productPrice) || '-' }}</span>
</template>
<template #remark="{ row }">
<Input v-if="!disabled" v-model:value="row.remark" class="w-full" />