zhanghe пре 7 година
родитељ
комит
891e0beeda
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      src/routes/Merchant/Edit/baseInfo.js

+ 1 - 1
src/routes/Merchant/Edit/baseInfo.js

@@ -45,7 +45,7 @@ export default class BaseInfoCard extends PureComponent {
               {getFieldDecorator('code', {
                 rules: [{ required: true, type: 'string', message: '编号为必填写!' }],
                 initialValue: item.code,
-              })(<Input />)}
+            })(<Input disabled={item.code ? true : false} />)}
             </Form.Item>
             <Form.Item label="厂商名称" hasFeedback {...formItemLayout}>
               {getFieldDecorator('name', {