Browse Source

厂商编号不可修改

zhanghe 7 years ago
parent
commit
891e0beeda
1 changed files with 1 additions and 1 deletions
  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', {