Commit b72de57e authored by 前端-钟卫鹏's avatar 前端-钟卫鹏

fix:处理订单详情内部状态显示异常,处理销售待审核订单修改运费后价格总计价格不同步更新的问题

parent 840c58e1
...@@ -38,7 +38,7 @@ const OrderDetailHeader:React.FC<OrderDetailHeaderProps> = ({ extraRight, detail ...@@ -38,7 +38,7 @@ const OrderDetailHeader:React.FC<OrderDetailHeaderProps> = ({ extraRight, detail
<Row> <Row>
{detailList.map(v => { {detailList.map(v => {
const { label, render, name, ...colProps } = v const { label, render, name, ...colProps } = v
return detailData[name] ? <Col key={label} {...colProps} className={style.detailCol}> return (detailData[name] || detailData[name] === 0) ? <Col key={label} {...colProps} className={style.detailCol}>
<span className={style.colLabel}>{label}:</span> <span className={style.colLabel}>{label}:</span>
{render ? render(detailData[name], detailData) : <span>{detailData[name]}</span>} {render ? render(detailData[name], detailData) : <span>{detailData[name]}</span>}
</Col> : null </Col> : null
......
...@@ -101,9 +101,9 @@ export const MoneyTotalBox = ({ dataSource, isEditData }) => { ...@@ -101,9 +101,9 @@ export const MoneyTotalBox = ({ dataSource, isEditData }) => {
// 总计金额 // 总计金额
useEffect(() => { useEffect(() => {
console.log(sumPrice || (sum*1000 + freePrice*1000)/1000, 'iiiiii')
setAmountMoney(() => sumPrice || (sum*1000 + freePrice*1000)/1000) setAmountMoney(() => sumPrice || (sum*1000 + freePrice*1000)/1000)
// setAmountMoney(() => (sum*1000 + freePrice*1000)/1000) }, [sum, freePrice, sumPrice])
}, [sum, freePrice])
const handleConfirm = () => { const handleConfirm = () => {
let free = modalPriceActions.getFieldValue('freePrice') let free = modalPriceActions.getFieldValue('freePrice')
......
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