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

fix: 添加拒绝提示语

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