Commit a45516b0 authored by 武广's avatar 武广

fix: 修改延迟发货按钮样式

parent cbc028a8
...@@ -56,7 +56,7 @@ const UpdateStock = props => { ...@@ -56,7 +56,7 @@ const UpdateStock = props => {
{getFieldDecorator('remark', { {getFieldDecorator('remark', {
rules: [{ required: true, message: '请输入延迟原因!' }], rules: [{ required: true, message: '请输入延迟原因!' }],
initialValue: valueInfo.remark, initialValue: valueInfo.remark,
})(<Input.TextArea />)} })(<Input.TextArea maxLength={10} showCount />)}
</Form.Item> </Form.Item>
</Form> </Form>
</Modal> </Modal>
......
...@@ -324,12 +324,15 @@ const TableList = props => { ...@@ -324,12 +324,15 @@ const TableList = props => {
{props.type === 2 ? '更新物流信息' : '填写物流信息'} {props.type === 2 ? '更新物流信息' : '填写物流信息'}
</Button> </Button>
)} )}
<Button {props.type !== 2 && (
type="primary" <Button
onClick={() => onDelay(record.orderId, +record.delayStatus, record.delayRemark)} type="primary"
> className={+record.delayStatus === 1 ? style.btnWarning : ''}
{+record.delayStatus === 1 ? '已延迟发货' : '延迟发货'} onClick={() => onDelay(record.orderId, +record.delayStatus, record.delayRemark)}
</Button> >
{+record.delayStatus === 1 ? '已延迟发货' : '延迟发货'}
</Button>
)}
</React.Fragment> </React.Fragment>
), ),
}, },
......
...@@ -27,3 +27,12 @@ ...@@ -27,3 +27,12 @@
} }
} }
} }
.btnWarning {
background-color: rgb(247, 143, 74);
border-color: rgb(247, 143, 74);
}
.btnWarning:hover,
.btnWarning:focus {
background-color: rgb(253, 168, 111);
border-color: rgb(253, 168, 111);
}
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