lilei 1 年間 前
コミット
8568fe148b
1 ファイル変更22 行追加4 行削除
  1. 22 4
      src/views/dealerManagement/rebateBinding/priceDiffModal.vue

+ 22 - 4
src/views/dealerManagement/rebateBinding/priceDiffModal.vue

@@ -35,7 +35,13 @@
                 <a-input v-else :value="superDealerName" disabled />
               </a-col>
               <a-col :span="4" v-if="!isSpecial">
-                <a-input-number :min="0" :max="100" v-model="parentAllotRate" @change="rateSupChange" placeholder="请输入比例"/> %
+                <a-input-number
+                  :precision="2"
+                  :min="0"
+                  :max="100"
+                  v-model="parentAllotRate"
+                  @change="rateSupChange"
+                  placeholder="请输入比例"/> %
               </a-col>
               <a-col :span="2" v-if="!isSpecial && zdDealearList.length<3">
                 <a-button
@@ -52,7 +58,13 @@
                 <custList :ref="'custList-'+item.id" :notDealerSn="notZdDealer" @change="(v,r)=>custChange(v,r,index)" placeholder="请输入经销商名称搜索"></custList>
               </a-col>
               <a-col :span="4">
-                <a-input-number :min="0" :max="100" v-model="item.allotRate" @change="(v)=>rateChange(v,index)" placeholder="请输入比例"/> %
+                <a-input-number
+                  :precision="2"
+                  :min="0"
+                  :max="100"
+                  v-model="item.allotRate"
+                  @change="(v)=>rateChange(v,index)"
+                  placeholder="请输入比例"/> %
               </a-col>
               <a-col :span="2">
                 <!-- <a-button
@@ -80,7 +92,13 @@
                 <a-input value="箭冠总公司" disabled />
               </a-col>
               <a-col :span="4">
-                <a-input-number :min="0" :max="100" v-model="hAllotRate" @change="rateHChange" placeholder="请输入比例"/> %
+                <a-input-number
+                  :precision="2"
+                  :min="0"
+                  :max="100"
+                  v-model="hAllotRate"
+                  @change="rateHChange"
+                  placeholder="请输入比例"/> %
               </a-col>
             </a-row>
           </a-form-model-item>
@@ -348,7 +366,7 @@ export default {
             msg = '请选择' + type
             break
           }
-          if (!row.allotRate && row.rebateParentType != 'HEAD') {
+          if (!row.allotRate && row.rebateParentType == 'ASSIGN') {
             msg = '请输入' + type + '的分配比例'
             break
           }