Explorar el Código

厂商编号不可修改

zhanghe hace 7 años
padre
commit
891e0beeda
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  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', {