Commit 0087e727 authored by jingnan's avatar jingnan 👀

返厂出库原因组件定义

parent 5b6d5f26
<template>
<div>
<el-select
v-model="scope.row.callBackReason"
:placeholder="options.length?'请选择':'暂无数据'"
@change="change"
@clear="clear"
>
<el-option
v-for="item in options"
:key="item.key"
:label="item.label"
:value="item.value"
/>
</el-select>
</div>
</template>
<script>
export default {
name: 'CallBackReasonSelect',
componentName: '返厂出库原因',
props: {
value: {
type: [String, Number],
default: ''
},
scope: {
type: Object,
default: () => { return {} }
}
},
data() {
return {
loading: false,
options: [
{ 'label': '设计更改', 'value': '设计更改' },
{ 'label': '召回', 'value': '召回' },
{ 'label': '故障', 'value': '故障' }]
}
},
computed: {},
watch: {
},
methods: {
change(val) {
this.$emit('input', val)
},
clear() {
this.$emit('input')
}
}
}
</script>
<style lang="scss">
</style>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment