浏览代码

积分事件列表

walter 11 月之前
父节点
当前提交
77326f9db3
共有 1 个文件被更改,包括 21 次插入1 次删除
  1. 21 1
      src/point/views/statistics/integral_event.vue

+ 21 - 1
src/point/views/statistics/integral_event.vue

@@ -71,6 +71,10 @@
           <el-input v-model="formData.keyword" style="width: 250px;" placeholder="输入关键字查找" maxlength="100" @keyup.enter.native="keyWordSelect" class="persons_name">
             <el-button slot="append" icon="el-icon-search" @click="keyWordSelect"></el-button>
           </el-input>
+          <span class="label" style="margin-left: 10px">奖扣分值</span>
+          <el-select v-model="formData.add_subtract" style="width:110px;" filterable placeholder="全部">
+            <el-option v-for="item in add_subtract_items" :key="item.id" :label="item.value" :value="item.id"></el-option>
+          </el-select>
         </div>
       </div>
       <div class="flex-box-ce" style="margin-bottom: 20px;">
@@ -391,6 +395,7 @@ export default {
       formData: {
         page: 1,
         page_size: 10,
+
       },
       time_slot: [this.$moment().startOf('month').format('YYYY-MM-DD'),this.$moment().endOf('month').format('YYYY-MM-DD')],
       rule_trees: [],
@@ -421,6 +426,16 @@ export default {
       	{id: 9,name: 'A分转B分'},
       ],
       process:'production',
+      add_subtract_items: [
+        {
+          value: '奖分',
+          id: 1
+        },
+        {
+          value: '扣分',
+          id: 2
+        },
+      ]
     };
   },
   components: {Steps},
@@ -454,6 +469,11 @@ export default {
       !val ? delete this.formData.pt_id : '';
       this.get_integral_list(this.formData);
     },
+    'formData.add_subtract'(val, old_val) {
+      if (val === old_val) return;
+      this.formData.page = 1;
+      this.get_integral_list(this.formData);
+    },
     time_slot(val, old_val) {
       this.formData.page = 1;
       this.get_integral_list(this.formData);
@@ -474,7 +494,7 @@ export default {
       this.formData.page = 1;
       this.formData.employee_ids = val;
       this.get_integral_list(this.formData);
-    }
+    },
   },
   methods: {
     returnStr(id){