feat(订单): 添加退款状态查询字段并移除重置按钮

在订单查询接口和页面中添加退款状态字段,支持按退款状态筛选订单
移除两个页面中的重置按钮以简化界面操作
This commit is contained in:
dzq 2025-06-24 17:54:34 +08:00
parent a1a67fac71
commit fa5beaa423
3 changed files with 13 additions and 6 deletions

View File

@ -40,6 +40,12 @@ export interface OrderQuery extends BasePageQuery {
* wechat- | balance- * wechat- | balance-
*/ */
paymentMethod?: string; paymentMethod?: string;
/**
* 退
* @remarks
* 0-退 | 1-退
*/
returnStatus?: number;
} }
export interface OrderDTO { export interface OrderDTO {

View File

@ -168,9 +168,6 @@ getList();
<el-button type="primary" :icon="useRenderIcon(Search)" @click="onSearch" class="mr-2"> <el-button type="primary" :icon="useRenderIcon(Search)" @click="onSearch" class="mr-2">
搜索 搜索
</el-button> </el-button>
<el-button :icon="useRenderIcon(Refresh)" @click="resetForm" class="mr-2">
重置
</el-button>
<el-button type="success" :loading="exportLoading" :icon="useRenderIcon('vscode-icons:file-type-excel2')" <el-button type="success" :loading="exportLoading" :icon="useRenderIcon('vscode-icons:file-type-excel2')"
@click="handleExport"> @click="handleExport">
导出Excel 导出Excel

View File

@ -28,6 +28,7 @@ const searchFormParams = ref<OrderQuery>({
startTime: "", startTime: "",
endTime: "", endTime: "",
payTime: "", payTime: "",
returnStatus: null,
}); });
const pagination = ref({ const pagination = ref({
@ -166,6 +167,12 @@ getList();
<el-option label="已退款" :value="4" /> <el-option label="已退款" :value="4" />
</el-select> </el-select>
</el-form-item> </el-form-item>
<el-form-item prop="returnStatus">
<el-select v-model="searchFormParams.returnStatus" placeholder="请选择退还状态" clearable class="!w-[180px]">
<el-option label="未退还" :value="0" />
<el-option label="已退还" :value="1" />
</el-select>
</el-form-item>
<el-form-item prop="paymentMethod"> <el-form-item prop="paymentMethod">
<el-select v-model="searchFormParams.paymentMethod" placeholder="请选择支付方式" clearable class="!w-[180px]"> <el-select v-model="searchFormParams.paymentMethod" placeholder="请选择支付方式" clearable class="!w-[180px]">
<el-option label="微信支付" value="wechat" /> <el-option label="微信支付" value="wechat" />
@ -178,9 +185,6 @@ getList();
<el-button type="primary" :icon="useRenderIcon(Search)" @click="onSearch" style="margin-right: 10px;"> <el-button type="primary" :icon="useRenderIcon(Search)" @click="onSearch" style="margin-right: 10px;">
搜索 搜索
</el-button> </el-button>
<el-button :icon="useRenderIcon(Refresh)" @click="resetForm" style="margin-right: 10px;">
重置
</el-button>
<el-button type="success" :loading="exportLoading" :icon="useRenderIcon('vscode-icons:file-type-excel2')" <el-button type="success" :loading="exportLoading" :icon="useRenderIcon('vscode-icons:file-type-excel2')"
@click="handleExport"> @click="handleExport">
导出Excel 导出Excel