xialei vor 1 Jahr
Ursprung
Commit
5885e190bf
1 geänderte Dateien mit 3 neuen und 3 gelöschten Zeilen
  1. 3 3
      src/views/product/addProduct/index.vue

+ 3 - 3
src/views/product/addProduct/index.vue

@@ -472,7 +472,7 @@
472 472
                   <el-table-column align="center" label="分润比例" min-width="125">
473 473
                     <template slot-scope="scope">
474 474
                       <div style="display: flex;">
475
-                        <div style="width: 80px;flex: 1;"><el-input v-model="scope.row.extension_one" type="number" :min="0" class="priceBox" /></div>
475
+                        <div style="width: 80px;flex: 1;"><el-input @input="handleInput(scope.row, '分润比例')"  v-model="scope.row.extension_one" type="number" :min="0" class="priceBox" /></div>
476 476
                         <div style="width: 10px;margin-top: 10px;"><b>%</b></div>
477 477
                       </div>
478 478
                     </template>
@@ -580,7 +580,7 @@
580 580
                 <template v-if="formValidate.extension_type == 1">
581 581
                   <el-table-column align="center" label="分润比例(%)" min-width="120">
582 582
                     <template slot-scope="scope">
583
-                      <el-input v-model="scope.row.extension_one" type="number" :min="0" class="priceBox" />
583
+                      <el-input @input="handleInput(scope.row, '分润比例')" v-model="scope.row.extension_one" type="number" :min="0" class="priceBox" />
584 584
                     </template>
585 585
                   </el-table-column>
586 586
                   <!-- <el-table-column align="center" label="二级返佣(元)" min-width="120">
@@ -878,7 +878,7 @@ export default {
878 878
   },
879 879
   methods: {
880 880
     handleInput(value, title) {
881
-      if(title == '成本价格'){
881
+      if(title == '成本价格' || title == '分润比例'){
882 882
         console.log('输入的内容:', value);
883 883
         var bili = value.extension_one / 100;//比例
884 884
         var gong_mer_profit = value.cost * bili//利润