feat(custom): 增加订单支付方式筛选

This commit is contained in:
2023-12-13 13:19:58 +08:00
parent 0cdf5978ad
commit 6b8e3fac6c

View File

@@ -25,6 +25,28 @@
</n-card> </n-card>
</div> </div>
</n-col> </n-col>
<n-col :span="24" mt-10>
<div>
<span>支付方式</span>
<n-radio-group v-model:value="queryData.pay_type">
<n-radio-button
v-for="song in [
{
label: '微信',
value: 1,
},
{
label: '积分',
value: 2,
},
]"
:key="song.value"
:value="song.value"
:label="song.label"
/>
</n-radio-group>
</div>
</n-col>
<n-col :span="24" mt-10> <n-col :span="24" mt-10>
<div> <div>
<span>订单状态:</span> <span>订单状态:</span>
@@ -92,6 +114,7 @@ const queryData = ref({
time: null, time: null,
word: '', word: '',
selectKey: null, selectKey: null,
pay_type: null,
}) })
const songs = ref([ const songs = ref([
@@ -111,6 +134,10 @@ const songs = ref([
value: 4, value: 4,
label: '已过期', label: '已过期',
}, },
{
value: 5,
label: '已销售',
},
]) ])
const selectOptions = ref([ const selectOptions = ref([
@@ -318,6 +345,7 @@ const getList = async () => {
try { try {
const query_data = { const query_data = {
Status: queryData.value.status || '', Status: queryData.value.status || '',
PayType: queryData.value.pay_type || '',
StartTime: queryData.value.time === null ? '' : queryData.value.time[0] || '', StartTime: queryData.value.time === null ? '' : queryData.value.time[0] || '',
EndTime: queryData.value.time === null ? '' : queryData.value.time[1] || '', EndTime: queryData.value.time === null ? '' : queryData.value.time[1] || '',
} }
@@ -360,6 +388,7 @@ const clear = () => {
time: null, time: null,
word: '', word: '',
selectKey: null, selectKey: null,
pay_type: null,
} }
getList() getList()
} }