Commit 76c9c61f authored by 武广's avatar 武广

fix: 添加拒绝提示语

parent 02e5e774
......@@ -113,7 +113,11 @@ const UpdateStock = props => {
initialValue: valueInfo.changeReason,
})(<Input.TextArea disabled={valueInfo.status === 1} maxLength={50} />)}
</Form.Item>
{valueInfo.stateDesc && <div className={styles.stockErrMsg}>{valueInfo.stateDesc}</div>}
{valueInfo.stateDesc && (
<div className={styles.stockErrMsg}>
{valueInfo.stateDesc}{valueInfo.rejectReason}
</div>
)}
</Form>
</Modal>
);
......
......@@ -283,9 +283,7 @@ class goodsManage extends Component {
};
onShowStockModal = async row => {
console.log('row :>> ', row);
const res = await apiQueryLastChangeLog(row.skuId);
console.log('res :>> ', res);
let priceInfo = {
id: row.skuId,
curStock: row.productStock,
......@@ -300,11 +298,11 @@ class goodsManage extends Component {
changeType: res.data.changeType,
status: res.data.status,
stateDesc: res.data.statusDesc,
rejectReason: res.data.rejectReason,
},
priceInfo,
);
}
console.log('priceInfo :>> ', priceInfo);
this.setState({
updateStockVisible: true,
priceInfo,
......
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