Commit 08dfd448 authored by XieZhiXiong's avatar XieZhiXiong

fix: 修复最大可换货数量判断错误的问题

parent 5ebf02a8
......@@ -58,7 +58,7 @@ export const useBusinessEffects = (context, actions) => {
FormPath.transform(name, /\d/, $1 => {
return `replaceGoodsList.${$1}.extraData`
}),
state => state.value.replacedCount,
state => state.value.remaining,
);
setFieldState(
......
......@@ -251,7 +251,7 @@ const ExchangeForm: React.FC<BillsFormProps> = ({
data: goodsDetailList.map(item => ({
...item,
extraData: {
replacedCount: item.purchaseCount || 0, // 已换货数量,这里取 采购数量判断即可
remaining: item.purchaseCount || 0, // 已换货数量,这里取 采购数量判断即可
id: item.orderRecordId,
taskType,
},
......@@ -442,7 +442,7 @@ const ExchangeForm: React.FC<BillsFormProps> = ({
purchaseAmount: +(item.price * item.purchaseCount).toFixed(2),
replaceReason: '',
extraData: {
replacedCount: item.replaceCount || item.purchaseCount || 0, // 已换货数量
remaining: item.purchaseCount - (item.replaceCount || 0), // 可换货数量
id: item.id,
taskType: item.processEnum,
},
......
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