소스 검색

变更修复计量上限值bug

ellisran 1 년 전
부모
커밋
2af3e8b7e6
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      app/controller/change_controller.js

+ 2 - 2
app/controller/change_controller.js

@@ -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;
                                 }