Commit 27ee73e9 authored by guang.wu's avatar guang.wu

fix: 修改库存字段

parent 8103e23c
......@@ -47,7 +47,7 @@ export function column(specArr = []) {
{
title: '库存',
width: 80,
dataIndex: 'productStock',
dataIndex: 'stock',
align: 'center',
render: (_, row, index) => (
<div>
......@@ -55,7 +55,7 @@ export function column(specArr = []) {
label=""
key="stock"
name={['data', index, 'stock']}
initialValue={row.productStock || 0}
initialValue={row.stock || 0}
rules={[{ required: true, message: '请输入库存!' }, { validator: isIntegerNotMust }]}
>
<InputNumber min={0} max={500} />
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment