浏览代码

毛利率

hmp 4 年之前
父节点
当前提交
ba7abbf753
共有 2 个文件被更改,包括 22 次插入0 次删除
  1. 3 0
      src/views/activity/activity.vue
  2. 19 0
      src/views/activity/comps/activity-add.vue

+ 3 - 0
src/views/activity/activity.vue

@@ -113,6 +113,7 @@
         },
         data3:{
            bonusProportion:'',
+           grossProfitRate:'',
            classification:'',
            personTitle:'',
            productionTitle:'',
@@ -368,6 +369,7 @@
         }
         this.data3={
            bonusProportion:0,
+           grossProfitRate:1,
            classification:'',
            personTitle:'',
            productionTitle:'',
@@ -397,6 +399,7 @@
           ads:item.ads
         }
         this.data3={
+           grossProfitRate:item.grossProfitRate,
            bonusProportion:item.bonusProportion,
            classification:item.classification,
            personTitle:item.personTitle,

+ 19 - 0
src/views/activity/comps/activity-add.vue

@@ -102,6 +102,19 @@
           </div>
         </el-card>
 
+        <el-card class="box-card" style="margin-top: 10px;">
+          <div slot="header" style="padding: 5px 0;">
+            <span>代理毛利率</span>
+          </div>
+          <div style="margin: 0 40px;">
+            <el-form>
+              <el-form-item>
+                <el-input  v-model="form3.grossProfitRate" placeholder="请输入代理毛利率,不能超过1"></el-input>
+              </el-form-item>
+            </el-form>
+          </div>
+        </el-card>
+
         <el-card style="margin-top: 10px;">
           <div slot="header" style="padding: 5px 0;">
             <span>榜单设置</span>
@@ -440,6 +453,12 @@
           this.$message.error('请输入1热力值等于多少现金');
           return false
         }
+
+        if (this.$isEmpty(this.form3.grossProfitRate)) {
+          this.$message.error('请输入代理毛利率');
+          return false
+        }
+
         if (this.$isEmpty(this.list)) {
           this.$message.error('榜单不能为空');
           return false