Commit 5f4fb4e9 authored by XieZhiXiong's avatar XieZhiXiong

fixbug

parent c6bebc0d
......@@ -2,7 +2,7 @@
* @Author: XieZhiXiong
* @Date: 2020-09-16 15:16:47
* @LastEditors: XieZhiXiong
* @LastEditTime: 2020-10-22 09:25:26
* @LastEditTime: 2020-10-22 18:49:22
* @Description: 联动逻辑相关
*/
import { Modal } from 'antd';
......@@ -463,7 +463,7 @@ export const useBusinessEffects = (context, actions) => {
return `invoicesDetailsRequests.${$1}.price`
}),
state => {
state.value = (current.price / current.purchaseCount).toFixed(2);
state.value = current.price.toFixed(2);
}
);
setFieldState(
......@@ -479,7 +479,7 @@ export const useBusinessEffects = (context, actions) => {
return `invoicesDetailsRequests.${$1}.amount`
}),
state => {
state.value = `¥${(1 * (current.price / current.purchaseCount)).toFixed(2)}`;
state.value = `¥${(1 * current.price).toFixed(2)}`;
}
);
});
......@@ -519,7 +519,7 @@ export const useBusinessEffects = (context, actions) => {
return `invoicesDetailsRequests.${$1}.amount`
}),
state => {
state.value = `¥${(+value * (current.price / current.purchaseCount)).toFixed(2)}`;
state.value = `¥${(+value * current.price).toFixed(2)}`;
}
);
});
......
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