<template>
  <el-select class="w-100" v-model="value" multiple placeholder="执行状态：可多选，空显示全部">
    <el-option v-for="item in options" :key="item.value" :label="item.label" :value="item.value">
    </el-option>
  </el-select>
</template>

<script>
export default {
  data () {
    return {
      options: [{
        value: '未接单',
        label: '未接单'
      }, {
        value: '已接单',
        label: '已接单'
      }, {
        value: '已发货',
        label: '已发货'
      }, {
        value: '已送达',
        label: '已送达'
      }],
      value: this.$store.getters['app/getOrderSerch'].shipment_status
    }
  },
  watch: {
    value (val) {
      this.$store.commit('app/setOrderSerch', { shipment_status: val })
    }
  }
}
</script>

<style lang="scss" scoped></style>
