Parcourir la source

0719团组操作添加需求

liuhj il y a 9 mois
Parent
commit
63ab344655
1 fichiers modifiés avec 17 ajouts et 4 suppressions
  1. 17 4
      src/components/OP/Groupedit.vue

+ 17 - 4
src/components/OP/Groupedit.vue

@@ -13,7 +13,7 @@
                         </el-select>
                     </el-form-item>
                     <el-form-item label-width="120px" label="客户级别:" prop="grades">
-                        <el-select v-model="ruleForm.grades" placeholder="请选择客户级别">
+                        <el-select @change="rankchange" v-model="ruleForm.grades" placeholder="请选择客户级别">
                             <el-option v-for="(item, index) in gradearr" :key="index" :label="item.name"
                                 :value="item.id"></el-option>
                         </el-select>
@@ -408,9 +408,8 @@ export default {
                     tctext=this.opRoyaltyLvList[tc].remark.split('&')
                 }
             }
-            this.ruleForm.opRoyaltyRemark='',
-            this.commissionleve=tctext,
-            console.log(tctext);
+            this.ruleForm.opRoyaltyRemark='';
+            this.commissionleve=tctext;
         },
         //处理时间
         disposeTime(val) {
@@ -552,6 +551,20 @@ export default {
             this.ruleForm.phonenumber=item.value.split('   ')[2];
             this.ruleForm.Wechat=item.value.split('   ')[3];
             this.splicingname();
+        },
+        rankchange(val){
+            if (val==771) {
+                this.ruleForm.opRoyaltyLv=999
+                this.commissionlevel(this.ruleForm.opRoyaltyLv)
+            }
+            if(val==772){
+                this.ruleForm.opRoyaltyLv=1000
+                this.commissionlevel( this.ruleForm.opRoyaltyLv)
+            }
+            if(val==770){
+                this.ruleForm.opRoyaltyLv=995
+                this.commissionlevel( this.ruleForm.opRoyaltyLv)
+            }
         }
     },
     beforeRouteEnter(to, from, next) {