WithdrawalSearch.vue
3.19 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
<template>
<div style='margin: 16px'>
<el-form
size='small'
inline
ref='withdrawalForm'
:model='withdrawalSearchForm'
label-width='100px'
class='demo-form-inline'
>
<el-form-item label='员工名称'>
<el-input
clearable
v-model='withdrawalSearchForm.staffName'
placeholder='请输入员工名称'
></el-input>
</el-form-item>
<el-form-item label='员工手机号'>
<el-input
clearable
v-model='withdrawalSearchForm.staffPhone'
placeholder='请输入员工手机号'
></el-input>
</el-form-item>
<el-form-item label='门店名称'>
<el-input
clearable
v-model='withdrawalSearchForm.merchantName'
placeholder='请输入门店名称'
></el-input>
</el-form-item>
<el-form-item label='状态'>
<el-select
v-model='withdrawalSearchForm.status'
placeholder='请选择状态'
>
<el-option label='全部' value=''></el-option>
<el-option label='待审核' value='1'></el-option>
<el-option label='到账中' value='2'></el-option>
<el-option label='已到账' value='3'></el-option>
<el-option label='到账失败' value='4'></el-option>
</el-select>
</el-form-item>
<el-form-item label='提现时间'>
<el-date-picker
value-format='yyyy-MM-dd'
v-model='withdrawalSearchForm.withdrawalTime'
type='daterange'
range-separator='至'
start-placeholder='开始日期'
end-placeholder='结束日期'
>
</el-date-picker>
</el-form-item>
<el-form-item label='审核时间'>
<el-date-picker
value-format='yyyy-MM-dd'
v-model='withdrawalSearchForm.reviewTime'
type='daterange'
range-separator='至'
start-placeholder='开始日期'
end-placeholder='结束日期'
>
</el-date-picker>
</el-form-item>
<el-form-item>
<el-button type='primary' @click='handleSearch'>查询</el-button>
<el-button @click='reset'>重置</el-button>
</el-form-item>
</el-form>
</div>
</template>
<script>
import { nearlyAMonth } from '@/mixin/nearlyAMonth'
export default {
name: 'WithdrawalSearch',
mixins: [nearlyAMonth],
data() {
return {
withdrawalSearchForm: {
status: '',
isWithdrawal: 1
}
}
},
created() {
this.$set(this.withdrawalSearchForm, 'withdrawalTime', [
this.defalutStartTime,
this.defalutEndTime
])
},
mounted() {
this.handleSearch()
},
methods: {
handleSearch() {
this.$emit('sendSearchForm', this.withdrawalSearchForm)
},
reset() {
Object.keys(this.withdrawalSearchForm).forEach((key) => {
this.withdrawalSearchForm[key] = ''
})
this.withdrawalSearchForm.isWithdrawal = 3
this.$set(this.withdrawalSearchForm, 'withdrawalTime', [
this.defalutStartTime,
this.defalutEndTime
])
this.$nextTick(() => {
this.handleSearch()
})
}
}
}
</script>
<style scoped></style>