|
|
|
@ -7,7 +7,7 @@
|
|
|
|
|
<a-date-picker format="YYYY-MM-DD" @change="changeDate" v-model="value"/>
|
|
|
|
|
</template>
|
|
|
|
|
<template v-else-if="labelData.type == 'dateRange'">
|
|
|
|
|
<a-range-picker format="YYYY-MM-DD" @change="changeRangeDate" v-model="value"/>
|
|
|
|
|
<a-range-picker format="YYYY-MM-DD" @change="changeRangeDate" v-model="dateVal"/>
|
|
|
|
|
</template>
|
|
|
|
|
<template v-else-if="labelData.type == 'select'">
|
|
|
|
|
<a-select
|
|
|
|
@ -19,10 +19,28 @@
|
|
|
|
|
<a-select-option value="0"> 未截单 </a-select-option>
|
|
|
|
|
</a-select>
|
|
|
|
|
</template>
|
|
|
|
|
<!-- <template v-else-if="abelData.type == 'complete'">
|
|
|
|
|
<auto-complete
|
|
|
|
|
:allowClear="true"
|
|
|
|
|
class="customer-input"
|
|
|
|
|
:dropdown-match-select-width="false"
|
|
|
|
|
:dropdown-style="{ width: '200px' }"
|
|
|
|
|
v-model="value"
|
|
|
|
|
:data-source="dataSourceList"
|
|
|
|
|
@select="completeSelect"
|
|
|
|
|
@focus="completeChange"
|
|
|
|
|
@change="debounce(completeChange, 300, $event)"
|
|
|
|
|
>
|
|
|
|
|
</auto-complete>
|
|
|
|
|
</template> -->
|
|
|
|
|
</div>
|
|
|
|
|
</template>
|
|
|
|
|
<script>
|
|
|
|
|
// import { AutoComplete } from 'ant-design-vue'
|
|
|
|
|
export default {
|
|
|
|
|
components: {
|
|
|
|
|
// AutoComplete
|
|
|
|
|
},
|
|
|
|
|
props: {
|
|
|
|
|
labelData: {
|
|
|
|
|
type: Object,
|
|
|
|
@ -37,11 +55,17 @@ export default {
|
|
|
|
|
type: Boolean,
|
|
|
|
|
default: true
|
|
|
|
|
}
|
|
|
|
|
// eslint-disable-next-line vue/require-default-prop
|
|
|
|
|
// dataSourceList: {
|
|
|
|
|
// type: Array,
|
|
|
|
|
// required: false
|
|
|
|
|
// }
|
|
|
|
|
},
|
|
|
|
|
watch: {
|
|
|
|
|
resetType (nval, oval) {
|
|
|
|
|
if (!nval) {
|
|
|
|
|
this.value = ''
|
|
|
|
|
this.dateVal = []
|
|
|
|
|
// this.$emit('change', {
|
|
|
|
|
// form: this.labelData,
|
|
|
|
|
// value: ''
|
|
|
|
@ -51,10 +75,11 @@ export default {
|
|
|
|
|
},
|
|
|
|
|
data() {
|
|
|
|
|
return {
|
|
|
|
|
value: ''
|
|
|
|
|
value: '',
|
|
|
|
|
dateVal: []
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
mounted() {},
|
|
|
|
|
mounted() { },
|
|
|
|
|
methods: {
|
|
|
|
|
changeInput(e) {
|
|
|
|
|
this.$emit('change', {
|
|
|
|
@ -69,11 +94,26 @@ export default {
|
|
|
|
|
})
|
|
|
|
|
},
|
|
|
|
|
changeRangeDate(e, mode) {
|
|
|
|
|
console.log('== date-range ==', e, mode)
|
|
|
|
|
// this.value = mode
|
|
|
|
|
this.$emit('change', {
|
|
|
|
|
form: this.labelData,
|
|
|
|
|
value: mode
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
// == 模糊搜索 ==
|
|
|
|
|
debounce () {
|
|
|
|
|
|
|
|
|
|
},
|
|
|
|
|
completeSelect () {
|
|
|
|
|
|
|
|
|
|
},
|
|
|
|
|
completeChange () {
|
|
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
</script>
|
|
|
|
|