food/src/components/SelectionShipmentStatus.vue
tk 9e36a0bd1c 【类 型】:refactor
【主	题】:订单模块 重构
【描	述】:
	[原因]:订单页面 销售统计页面 数据请求 在加载页面时再请求 对应条件数据
	[过程]:
	[影响]:
【结	束】

# 类型 包含:
# feat:新功能(feature)
# fix:修补bug
# docs:文档(documentation)
# style: 格式(不影响代码运行的变动)
# refactor:重构(即不是新增功能,也不是修改bug的代码变动)
# test:增加测试
# chore:构建过程或辅助工具的变动
2024-07-01 21:08:03 +08:00

37 lines
836 B
Vue

<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>