food/src/components/SelectionOrderStatus.vue

43 lines
925 B
Vue
Raw Normal View History

<template>
2023-11-09 16:08:22 +08:00
<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: 'unpaid',
label: '未付款'
}, {
value: 'pending',
label: '待处理'
}, {
value: 'processing',
2023-11-09 15:20:28 +08:00
label: '备货处理中'
}, {
value: 'shipped',
label: '已发货'
}, {
value: 'completed',
label: '已送达'
}, {
value: 'closed',
label: '交易关闭'
}],
value: []
}
2023-11-09 15:20:28 +08:00
},
watch: {
value (val) {
this.$emit('selectedValuesChanged', val)
}
}
}
</script>
<style lang="scss" scoped></style>