解决供应商审核 审核状态 全部返回数据不正确问题

This commit is contained in:
1378012178@qq.com 2026-01-26 17:05:25 +08:00
parent e86a8f90b1
commit c444800746
1 changed files with 212 additions and 200 deletions

View File

@ -2,7 +2,8 @@
<div class="p-2"> <div class="p-2">
<!--查询区域--> <!--查询区域-->
<div class="jeecg-basic-table-form-container"> <div class="jeecg-basic-table-form-container">
<a-form ref="formRef" @keyup.enter.native="searchQuery" :model="queryParam" :label-col="labelCol" :wrapper-col="wrapperCol"> <a-form ref="formRef" @keyup.enter.native="searchQuery" :model="queryParam" :label-col="labelCol"
:wrapper-col="wrapperCol">
<a-row :gutter="24"> <a-row :gutter="24">
<a-col :lg="6"> <a-col :lg="6">
<a-form-item name="suppliersName"> <a-form-item name="suppliersName">
@ -19,8 +20,9 @@
<a-col :lg="6"> <a-col :lg="6">
<a-form-item name="applyStatus"> <a-form-item name="applyStatus">
<template #label><span title="审核状态">审核状态</span></template> <template #label><span title="审核状态">审核状态</span></template>
<a-select v-model:value="queryParam.applyStatus" placeholder="请选择审核状态" style="width: 200px" :disabled="false"> <a-select v-model:value="queryParam.applyStatus" placeholder="请选择审核状态" style="width: 200px"
<a-select-option value="">全部</a-select-option> :disabled="false">
<a-select-option value="1,2,3">全部</a-select-option>
<a-select-option value="1">待审核</a-select-option> <a-select-option value="1">待审核</a-select-option>
<a-select-option value="2">审核通过</a-select-option> <a-select-option value="2">审核通过</a-select-option>
<a-select-option value="3">审核驳回</a-select-option> <a-select-option value="3">审核驳回</a-select-option>
@ -31,7 +33,8 @@
<span style="float: left; overflow: hidden" class="table-page-search-submitButtons"> <span style="float: left; overflow: hidden" class="table-page-search-submitButtons">
<a-col :lg="6"> <a-col :lg="6">
<a-button type="primary" preIcon="ant-design:search-outlined" @click="searchQuery">查询</a-button> <a-button type="primary" preIcon="ant-design:search-outlined" @click="searchQuery">查询</a-button>
<a-button type="primary" preIcon="ant-design:reload-outlined" @click="searchReset" style="margin-left: 8px">重置</a-button> <a-button type="primary" preIcon="ant-design:reload-outlined" @click="searchReset"
style="margin-left: 8px">重置</a-button>
</a-col> </a-col>
</span> </span>
</a-col> </a-col>
@ -89,7 +92,9 @@ const opeMediaAddress = import.meta.env.VITE_OPE_MEDIA_ADDRESS
fixed: 'right', fixed: 'right',
}, },
beforeFetch: async (params) => { beforeFetch: async (params) => {
// queryParam.applyStatus = '2' if (!queryParam.applyStatus) {
queryParam.applyStatus = '1,2,3'
}
return Object.assign(params, queryParam); return Object.assign(params, queryParam);
}, },
}, },
@ -223,6 +228,7 @@ const opeMediaAddress = import.meta.env.VITE_OPE_MEDIA_ADDRESS
function searchReset() { function searchReset() {
formRef.value.resetFields(); formRef.value.resetFields();
selectedRowKeys.value = []; selectedRowKeys.value = [];
queryParam.applyStatus = '1,2,3'
// //
reload(); reload();
} }
@ -235,24 +241,30 @@ const opeMediaAddress = import.meta.env.VITE_OPE_MEDIA_ADDRESS
<style lang="less" scoped> <style lang="less" scoped>
.jeecg-basic-table-form-container { .jeecg-basic-table-form-container {
padding: 0; padding: 0;
.table-page-search-submitButtons { .table-page-search-submitButtons {
display: block; display: block;
margin-bottom: 14px; margin-bottom: 14px;
white-space: nowrap; white-space: nowrap;
} }
.query-group-cust { .query-group-cust {
min-width: 100px !important; min-width: 100px !important;
} }
.query-group-split-cust { .query-group-split-cust {
width: 30px; width: 30px;
display: inline-block; display: inline-block;
text-align: center text-align: center
} }
.ant-form-item:not(.ant-form-item-with-help) { .ant-form-item:not(.ant-form-item-with-help) {
margin-bottom: 16px; margin-bottom: 16px;
height: 32px; height: 32px;
} }
:deep(.ant-picker),:deep(.ant-input-number){
:deep(.ant-picker),
:deep(.ant-input-number) {
width: 100%; width: 100%;
} }
} }