Commit 1c90ec04 authored by 武广's avatar 武广

fix: 修改编辑服务商品 库存不可单独设置问题

parent b8406b3f
...@@ -1020,7 +1020,7 @@ class goodsManage extends Component { ...@@ -1020,7 +1020,7 @@ class goodsManage extends Component {
value={k} value={k}
disabled disabled
placeholder="请输入规格名称" placeholder="请输入规格名称"
style={{ width: '15%', margin: 5 }} style={{ width: '15%', margin: '5px 5px 28px 5px' }}
/> />
), ),
)} )}
...@@ -1051,7 +1051,7 @@ class goodsManage extends Component { ...@@ -1051,7 +1051,7 @@ class goodsManage extends Component {
) : null} ) : null}
</FormItem> </FormItem>
))} ))}
<FormItem className={styles.delMargin}> <FormItem>
<Button <Button
type="dashed" type="dashed"
disabled={isJDGoods} disabled={isJDGoods}
...@@ -1096,7 +1096,7 @@ class goodsManage extends Component { ...@@ -1096,7 +1096,7 @@ class goodsManage extends Component {
value={k} value={k}
disabled disabled
placeholder="请输入规格名称" placeholder="请输入规格名称"
style={{ width: '15%', margin: 5 }} style={{ width: '15%', margin: '5px 5px 28px 5px' }}
/> />
))} ))}
{secondKeys.map(k => ( {secondKeys.map(k => (
...@@ -1114,7 +1114,7 @@ class goodsManage extends Component { ...@@ -1114,7 +1114,7 @@ class goodsManage extends Component {
) : null} ) : null}
</FormItem> </FormItem>
))} ))}
<FormItem className={styles.delMargin}> <FormItem>
<Button <Button
type="dashed" type="dashed"
onClick={() => this.add('secondKeys')} onClick={() => this.add('secondKeys')}
......
...@@ -126,6 +126,3 @@ ...@@ -126,6 +126,3 @@
.attrboxMore { .attrboxMore {
max-height: max-content; max-height: max-content;
} }
.delMargin {
margin-bottom: 0 !important;
}
...@@ -172,7 +172,6 @@ const EditFormTable = forwardRef((props, ref) => { ...@@ -172,7 +172,6 @@ const EditFormTable = forwardRef((props, ref) => {
return ( return (
<> <>
<Form form={form} scrollToFirstError component={false}> <Form form={form} scrollToFirstError component={false}>
{/* <Button onClick={onCheck}>测试</Button> */}
<EditableContext.Provider value={form}> <EditableContext.Provider value={form}>
<Table <Table
scroll={{ y: 300, x: 1000 }} scroll={{ y: 300, x: 1000 }}
......
...@@ -236,7 +236,7 @@ export const StaticColumns = customer => [ ...@@ -236,7 +236,7 @@ export const StaticColumns = customer => [
min: 0, min: 0,
}, },
roleRules: { required: true }, roleRules: { required: true },
disabeldRender: () => customer.isService, disabeldRender: v => v.id && customer.isService,
}, },
{ {
title: '库存预警', title: '库存预警',
......
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