Просмотр исходного кода

费用管理-编辑 出口留点比例计算公式完善

祁鹏飞 1 месяц назад
Родитель
Сommit
47c1eb7811
1 измененных файлов с 2 добавлено и 0 удалено
  1. 2 0
      src/views/quoteConfig/agreement/components/ruleFeeDialogEdit.vue

+ 2 - 0
src/views/quoteConfig/agreement/components/ruleFeeDialogEdit.vue

@@ -288,6 +288,7 @@ const handelRK = (scope) => {
   if (scope.row.keepPointRatio && scope.row.addThrow || scope.row.keepPointRatio && scope.row.addThrow === 0) {
     scope.row.export = scope.row.inlet + scope.row.addThrow - scope.row.keepPointRatio
   }
+  if (scope.row.inlet < scope.row.export) scope.row.export = scope.row.inlet;handelCK(scope)
 }
 const handelCK = (scope) => {
   if (scope.row.inlet && scope.row.addThrow || scope.row.inlet && scope.row.addThrow === 0) {
@@ -302,6 +303,7 @@ const handelCK = (scope) => {
   if (scope.row.keepPointRatio) {
     scope.row.exportKeepPointRatio = scope.row.export - scope.row.keepPointRatio
   }
+  if (scope.row.exportKeepPointRatio > scope.row.export) scope.row.exportKeepPointRatio = scope.row.export
 }
 const handelJT = (scope) => {
   if (scope.row.inlet && scope.row.export) {