|
@@ -738,8 +738,8 @@ module.exports = app => {
|
|
|
if (useChangeUsedData.length > 0 && ctx.helper._.findIndex(useChangeUsedData, { cbid: cl.id }) !== -1) {
|
|
|
// 获取比例值
|
|
|
const uc = ctx.helper._.find(useChangeUsedData, { cbid: cl.id });
|
|
|
- const minLimit = Math.ceil(ctx.helper.div(uc.qty, cl.camount) * 100);
|
|
|
- if (minLimit < renderData.deLimit) {
|
|
|
+ const minLimit = Math.ceil(ctx.helper.mul(ctx.helper.div(uc.qty, cl.camount), 100));
|
|
|
+ if (minLimit <= renderData.deLimit) {
|
|
|
one.delimit = renderData.deLimit;
|
|
|
cl.delimit = renderData.deLimit;
|
|
|
}
|