Commit 8551e137 authored by 前端-黄佳鑫's avatar 前端-黄佳鑫

fix: 修改营销活动商品输入数量限制

parent ac138cd4
...@@ -87,7 +87,7 @@ const columns_1 = ({ ...@@ -87,7 +87,7 @@ const columns_1 = ({
} }
}]} }]}
> >
<Input style={{ width: '112px' }} addonBefore="¥" onPressEnter={(e) => handleInputChange(e, 'activityPrice', _index)} onBlur={(e) => handleInputChange(e, 'activityPrice', _index)} /> <Input maxLength={10} style={{ width: '112px' }} addonBefore="¥" onPressEnter={(e) => handleInputChange(e, 'activityPrice', _index)} onBlur={(e) => handleInputChange(e, 'activityPrice', _index)} />
</Form.Item> </Form.Item>
) )
} }
...@@ -121,7 +121,7 @@ const columns_1 = ({ ...@@ -121,7 +121,7 @@ const columns_1 = ({
}) })
]} ]}
> >
<Input style={{ width: '112px' }} onPressEnter={(e) => handleInputChange(e, 'restrictNum', _index)} onBlur={(e) => handleInputChange(e, 'restrictNum', _index)} /> <Input maxLength={10} style={{ width: '112px' }} onPressEnter={(e) => handleInputChange(e, 'restrictNum', _index)} onBlur={(e) => handleInputChange(e, 'restrictNum', _index)} />
</Form.Item> </Form.Item>
) )
} }
...@@ -154,7 +154,7 @@ const columns_1 = ({ ...@@ -154,7 +154,7 @@ const columns_1 = ({
}) })
]} ]}
> >
<Input style={{ width: '112px' }} onPressEnter={(e) => handleInputChange(e, 'restrictTotalNum', _index)} onBlur={(e) => handleInputChange(e, 'restrictTotalNum', _index)} /> <Input maxLength={10} style={{ width: '112px' }} onPressEnter={(e) => handleInputChange(e, 'restrictTotalNum', _index)} onBlur={(e) => handleInputChange(e, 'restrictTotalNum', _index)} />
</Form.Item> </Form.Item>
) )
} }
......
...@@ -95,7 +95,7 @@ const columns_2 = ({ ...@@ -95,7 +95,7 @@ const columns_2 = ({
} }
}]} }]}
> >
<Input style={{ width: '112px' }} addonBefore="¥" onPressEnter={(e) => handleInputChange(e, 'plummetPrice', _index)} onBlur={(e) => handleInputChange(e, 'plummetPrice', _index)} /> <Input maxLength={10} style={{ width: '112px' }} addonBefore="¥" onPressEnter={(e) => handleInputChange(e, 'plummetPrice', _index)} onBlur={(e) => handleInputChange(e, 'plummetPrice', _index)} />
</Form.Item> </Form.Item>
) )
} }
...@@ -135,7 +135,7 @@ const columns_2 = ({ ...@@ -135,7 +135,7 @@ const columns_2 = ({
}) })
]} ]}
> >
<Input style={{ width: '112px' }} onPressEnter={(e) => handleInputChange(e, 'restrictNum', _index)} onBlur={(e) => handleInputChange(e, 'restrictNum', _index)} /> <Input maxLength={10} style={{ width: '112px' }} onPressEnter={(e) => handleInputChange(e, 'restrictNum', _index)} onBlur={(e) => handleInputChange(e, 'restrictNum', _index)} />
</Form.Item> </Form.Item>
) )
} }
...@@ -168,7 +168,7 @@ const columns_2 = ({ ...@@ -168,7 +168,7 @@ const columns_2 = ({
}) })
]} ]}
> >
<Input style={{ width: '112px' }} onPressEnter={(e) => handleInputChange(e, 'restrictTotalNum', _index)} onBlur={(e) => handleInputChange(e, 'restrictTotalNum', _index)} /> <Input maxLength={10} style={{ width: '112px' }} onPressEnter={(e) => handleInputChange(e, 'restrictTotalNum', _index)} onBlur={(e) => handleInputChange(e, 'restrictTotalNum', _index)} />
</Form.Item> </Form.Item>
) )
} }
......
...@@ -93,7 +93,7 @@ const columns_3 = ({ ...@@ -93,7 +93,7 @@ const columns_3 = ({
}) })
]} ]}
> >
<Input style={{ width: '112px' }} addonAfter={intl.formatMessage({ id: 'marketingAbility.zhe'})} onPressEnter={(e) => handleInputChange(e, 'discount', _index)} onBlur={(e) => handleInputChange(e, 'discount', _index)} /> <Input maxLength={10} style={{ width: '112px' }} addonAfter={intl.formatMessage({ id: 'marketingAbility.zhe'})} onPressEnter={(e) => handleInputChange(e, 'discount', _index)} onBlur={(e) => handleInputChange(e, 'discount', _index)} />
</Form.Item> </Form.Item>
) )
} }
...@@ -133,7 +133,7 @@ const columns_3 = ({ ...@@ -133,7 +133,7 @@ const columns_3 = ({
}) })
]} ]}
> >
<Input style={{ width: '112px' }} onPressEnter={(e) => handleInputChange(e, 'restrictNum', _index)} onBlur={(e) => handleInputChange(e, 'restrictNum', _index)} /> <Input maxLength={10} style={{ width: '112px' }} onPressEnter={(e) => handleInputChange(e, 'restrictNum', _index)} onBlur={(e) => handleInputChange(e, 'restrictNum', _index)} />
</Form.Item> </Form.Item>
) )
} }
...@@ -166,7 +166,7 @@ const columns_3 = ({ ...@@ -166,7 +166,7 @@ const columns_3 = ({
}) })
]} ]}
> >
<Input style={{ width: '112px' }} onPressEnter={(e) => handleInputChange(e, 'restrictTotalNum', _index)} onBlur={(e) => handleInputChange(e, 'restrictTotalNum', _index)} /> <Input maxLength={10} style={{ width: '112px' }} onPressEnter={(e) => handleInputChange(e, 'restrictTotalNum', _index)} onBlur={(e) => handleInputChange(e, 'restrictTotalNum', _index)} />
</Form.Item> </Form.Item>
) )
} }
......
...@@ -91,7 +91,7 @@ const columns_4 = ({ ...@@ -91,7 +91,7 @@ const columns_4 = ({
}) })
]} ]}
> >
<Input style={{ width: '112px' }} onPressEnter={(e) => handleInputChange(e, 'restrictNum', _index)} onBlur={(e) => handleInputChange(e, 'restrictNum', _index)} /> <Input maxLength={10} style={{ width: '112px' }} onPressEnter={(e) => handleInputChange(e, 'restrictNum', _index)} onBlur={(e) => handleInputChange(e, 'restrictNum', _index)} />
</Form.Item> </Form.Item>
) )
} }
...@@ -124,7 +124,7 @@ const columns_4 = ({ ...@@ -124,7 +124,7 @@ const columns_4 = ({
}) })
]} ]}
> >
<Input style={{ width: '112px' }} onPressEnter={(e) => handleInputChange(e, 'restrictTotalNum', _index)} onBlur={(e) => handleInputChange(e, 'restrictTotalNum', _index)} /> <Input maxLength={10} style={{ width: '112px' }} onPressEnter={(e) => handleInputChange(e, 'restrictTotalNum', _index)} onBlur={(e) => handleInputChange(e, 'restrictTotalNum', _index)} />
</Form.Item> </Form.Item>
) )
} }
......
...@@ -84,7 +84,7 @@ const columns_5 = ({ ...@@ -84,7 +84,7 @@ const columns_5 = ({
} }
}]} }]}
> >
<Input style={{ width: '112px' }} addonBefore="¥" onPressEnter={(e) => handleInputChange(e, 'activityPrice', _index)} onBlur={(e) => handleInputChange(e, 'activityPrice', _index)} /> <Input maxLength={10} style={{ width: '112px' }} addonBefore="¥" onPressEnter={(e) => handleInputChange(e, 'activityPrice', _index)} onBlur={(e) => handleInputChange(e, 'activityPrice', _index)} />
</Form.Item> </Form.Item>
) )
} }
...@@ -118,7 +118,7 @@ const columns_5 = ({ ...@@ -118,7 +118,7 @@ const columns_5 = ({
}) })
]} ]}
> >
<Input style={{ width: '112px' }} onPressEnter={(e) => handleInputChange(e, 'restrictNum', _index)} onBlur={(e) => handleInputChange(e, 'restrictNum', _index)} /> <Input maxLength={10} style={{ width: '112px' }} onPressEnter={(e) => handleInputChange(e, 'restrictNum', _index)} onBlur={(e) => handleInputChange(e, 'restrictNum', _index)} />
</Form.Item> </Form.Item>
) )
} }
...@@ -151,7 +151,7 @@ const columns_5 = ({ ...@@ -151,7 +151,7 @@ const columns_5 = ({
}) })
]} ]}
> >
<Input style={{ width: '112px' }} onPressEnter={(e) => handleInputChange(e, 'restrictTotalNum', _index)} onBlur={(e) => handleInputChange(e, 'restrictTotalNum', _index)} /> <Input maxLength={10} style={{ width: '112px' }} onPressEnter={(e) => handleInputChange(e, 'restrictTotalNum', _index)} onBlur={(e) => handleInputChange(e, 'restrictTotalNum', _index)} />
</Form.Item> </Form.Item>
) )
} }
......
...@@ -89,7 +89,7 @@ const columns_6 = ({ ...@@ -89,7 +89,7 @@ const columns_6 = ({
} }
}]} }]}
> >
<Input style={{ width: '112px' }} addonBefore="¥" onPressEnter={(e) => handleInputChange(e, 'plummetPrice', _index)} onBlur={(e) => handleInputChange(e, 'plummetPrice', _index)} /> <Input maxLength={10} style={{ width: '112px' }} addonBefore="¥" onPressEnter={(e) => handleInputChange(e, 'plummetPrice', _index)} onBlur={(e) => handleInputChange(e, 'plummetPrice', _index)} />
</Form.Item> </Form.Item>
) )
} }
...@@ -125,7 +125,7 @@ const columns_6 = ({ ...@@ -125,7 +125,7 @@ const columns_6 = ({
}) })
]} ]}
> >
<Input style={{ width: '112px' }} addonBefore="¥" onPressEnter={(e) => handleInputChange(e, 'activityPrice', _index)} onBlur={(e) => handleInputChange(e, 'activityPrice', _index)} /> <Input maxLength={10} style={{ width: '112px' }} addonBefore="¥" onPressEnter={(e) => handleInputChange(e, 'activityPrice', _index)} onBlur={(e) => handleInputChange(e, 'activityPrice', _index)} />
</Form.Item> </Form.Item>
) )
} }
...@@ -159,7 +159,7 @@ const columns_6 = ({ ...@@ -159,7 +159,7 @@ const columns_6 = ({
}) })
]} ]}
> >
<Input style={{ width: '112px' }} onPressEnter={(e) => handleInputChange(e, 'restrictNum', _index)} onBlur={(e) => handleInputChange(e, 'restrictNum', _index)} /> <Input maxLength={10} style={{ width: '112px' }} onPressEnter={(e) => handleInputChange(e, 'restrictNum', _index)} onBlur={(e) => handleInputChange(e, 'restrictNum', _index)} />
</Form.Item> </Form.Item>
) )
} }
...@@ -192,7 +192,7 @@ const columns_6 = ({ ...@@ -192,7 +192,7 @@ const columns_6 = ({
}) })
]} ]}
> >
<Input style={{ width: '112px' }} onPressEnter={(e) => handleInputChange(e, 'restrictTotalNum', _index)} onBlur={(e) => handleInputChange(e, 'restrictTotalNum', _index)} /> <Input maxLength={10} style={{ width: '112px' }} onPressEnter={(e) => handleInputChange(e, 'restrictTotalNum', _index)} onBlur={(e) => handleInputChange(e, 'restrictTotalNum', _index)} />
</Form.Item> </Form.Item>
) )
} }
......
...@@ -92,7 +92,7 @@ const columns_7 = ({ ...@@ -92,7 +92,7 @@ const columns_7 = ({
}) })
]} ]}
> >
<Input style={{ width: '112px' }} addonBefore="¥" onPressEnter={(e) => handleInputChange(e, 'activityPrice', _index)} onBlur={(e) => handleInputChange(e, 'activityPrice', _index)} /> <Input maxLength={10} style={{ width: '112px' }} addonBefore="¥" onPressEnter={(e) => handleInputChange(e, 'activityPrice', _index)} onBlur={(e) => handleInputChange(e, 'activityPrice', _index)} />
</Form.Item> </Form.Item>
) )
} }
...@@ -126,7 +126,7 @@ const columns_7 = ({ ...@@ -126,7 +126,7 @@ const columns_7 = ({
}) })
]} ]}
> >
<Input style={{ width: '112px' }} onPressEnter={(e) => handleInputChange(e, 'restrictNum', _index)} onBlur={(e) => handleInputChange(e, 'restrictNum', _index)} /> <Input maxLength={10} style={{ width: '112px' }} onPressEnter={(e) => handleInputChange(e, 'restrictNum', _index)} onBlur={(e) => handleInputChange(e, 'restrictNum', _index)} />
</Form.Item> </Form.Item>
) )
} }
...@@ -159,7 +159,7 @@ const columns_7 = ({ ...@@ -159,7 +159,7 @@ const columns_7 = ({
}) })
]} ]}
> >
<Input style={{ width: '112px' }} onPressEnter={(e) => handleInputChange(e, 'restrictTotalNum', _index)} onBlur={(e) => handleInputChange(e, 'restrictTotalNum', _index)} /> <Input maxLength={10} style={{ width: '112px' }} onPressEnter={(e) => handleInputChange(e, 'restrictTotalNum', _index)} onBlur={(e) => handleInputChange(e, 'restrictTotalNum', _index)} />
</Form.Item> </Form.Item>
) )
} }
......
...@@ -86,7 +86,7 @@ const columns_8 = ({ ...@@ -86,7 +86,7 @@ const columns_8 = ({
}) })
]} ]}
> >
<Input style={{ width: '112px' }} addonBefore="¥" onPressEnter={(e) => handleInputChange(e, 'preSelPrice', _index)} onBlur={(e) => handleInputChange(e, 'preSelPrice', _index)} /> <Input maxLength={10} style={{ width: '112px' }} addonBefore="¥" onPressEnter={(e) => handleInputChange(e, 'preSelPrice', _index)} onBlur={(e) => handleInputChange(e, 'preSelPrice', _index)} />
</Form.Item> </Form.Item>
) )
} }
...@@ -119,7 +119,7 @@ const columns_8 = ({ ...@@ -119,7 +119,7 @@ const columns_8 = ({
}) })
]} ]}
> >
<Input style={{ width: '112px' }} addonBefore="¥" onPressEnter={(e) => handleInputChange(e, 'activityPrice', _index)} onBlur={(e) => handleInputChange(e, 'activityPrice', _index)} /> <Input maxLength={10} style={{ width: '112px' }} addonBefore="¥" onPressEnter={(e) => handleInputChange(e, 'activityPrice', _index)} onBlur={(e) => handleInputChange(e, 'activityPrice', _index)} />
</Form.Item> </Form.Item>
) )
} }
...@@ -152,7 +152,7 @@ const columns_8 = ({ ...@@ -152,7 +152,7 @@ const columns_8 = ({
}) })
]} ]}
> >
<Input style={{ width: '112px' }} addonBefore="¥" onPressEnter={(e) => handleInputChange(e, 'deductionPrice', _index)} onBlur={(e) => handleInputChange(e, 'deductionPrice', _index)} /> <Input maxLength={10} style={{ width: '112px' }} addonBefore="¥" onPressEnter={(e) => handleInputChange(e, 'deductionPrice', _index)} onBlur={(e) => handleInputChange(e, 'deductionPrice', _index)} />
</Form.Item> </Form.Item>
) )
} }
...@@ -186,7 +186,7 @@ const columns_8 = ({ ...@@ -186,7 +186,7 @@ const columns_8 = ({
}) })
]} ]}
> >
<Input style={{ width: '112px' }} onPressEnter={(e) => handleInputChange(e, 'restrictNum', _index)} onBlur={(e) => handleInputChange(e, 'restrictNum', _index)} /> <Input maxLength={10} style={{ width: '112px' }} onPressEnter={(e) => handleInputChange(e, 'restrictNum', _index)} onBlur={(e) => handleInputChange(e, 'restrictNum', _index)} />
</Form.Item> </Form.Item>
) )
} }
...@@ -219,7 +219,7 @@ const columns_8 = ({ ...@@ -219,7 +219,7 @@ const columns_8 = ({
}) })
]} ]}
> >
<Input style={{ width: '112px' }} onPressEnter={(e) => handleInputChange(e, 'restrictTotalNum', _index)} onBlur={(e) => handleInputChange(e, 'restrictTotalNum', _index)} /> <Input maxLength={10} style={{ width: '112px' }} onPressEnter={(e) => handleInputChange(e, 'restrictTotalNum', _index)} onBlur={(e) => handleInputChange(e, 'restrictTotalNum', _index)} />
</Form.Item> </Form.Item>
) )
} }
......
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