Commit ff4e496d authored by 前端-钟卫鹏's avatar 前端-钟卫鹏

fix:处理添加积分商品不允许勾选会员折扣,处理仓位分配库存数值精度处理

parent fa3e352c
......@@ -718,7 +718,7 @@ const PriceAttributeForm: React.FC<Iprops> = (props) => {
}
valuePropName="checked"
>
<Checkbox>允许使用会员折扣价购买</Checkbox>
<Checkbox disabled={planPrice === 3}>允许使用会员折扣价购买</Checkbox>
</Form.Item>
</Form>
{/* 批量设置按钮 */}
......
......@@ -472,6 +472,18 @@ export const repositDetailSchema: ISchema = padRequiredMessage({
},
required: true,
title: '分配仓位库存',
"x-rules": [
{
validator: value => {
return value > Number.MAX_SAFE_INTEGER
},
message:'仓位库存数值已超出最大限度',
},
{
pattern: /^\d+(\.\d{1,3})?$/,
message: '仓位库存数值仅限三位小数',
},
]
},
inventoryDeductWay: {
type: 'radio',
......
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