Commit a45516b0 authored by 武广's avatar 武广

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

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