diff --git a/src/api/wms/accountcalendar/index.ts b/src/api/wms/accountcalendar/index.ts index 582df5361..8239184d2 100644 --- a/src/api/wms/accountcalendar/index.ts +++ b/src/api/wms/accountcalendar/index.ts @@ -15,7 +15,13 @@ export interface AccountcalendarVO { // 查询账期日历列表 export const getAccountcalendarPage = async (params) => { - return await request.get({ url: `/wms/accountcalendar/page`, params }) + if (params.isSearch) { + delete params.isSearch + const data = {...params} + return request.post({ url: '/wms/accountcalendar/senior', data }) + } else { + return await request.get({ url: `/wms/accountcalendar/page`, params }) + } } // 查询账期日历详情 diff --git a/src/api/wms/areabasic/index.ts b/src/api/wms/areabasic/index.ts index a00b3f51d..2d689039b 100644 --- a/src/api/wms/areabasic/index.ts +++ b/src/api/wms/areabasic/index.ts @@ -15,7 +15,13 @@ export interface AreaVO { // 查询库区列表 export const getAreaPage = async (params) => { - return await request.get({ url: `/wms/areabasic/page`, params }) + if (params.isSearch) { + delete params.isSearch + const data = {...params} + return request.post({ url: '/wms/areabasic/senior', data }) + } else { + return await request.get({ url: `/wms/areabasic/page`, params }) + } } // 查询库区列表 export const getAreaList = async (params) => { diff --git a/src/api/wms/businesstype/index.ts b/src/api/wms/businesstype/index.ts index 83174db53..58d9723f3 100644 --- a/src/api/wms/businesstype/index.ts +++ b/src/api/wms/businesstype/index.ts @@ -25,7 +25,13 @@ export interface BusinesstypeVO { // 查询业务类型列表 export const getBusinesstypePage = async (params) => { - return await request.get({ url: `/wms/businesstype/page`, params }) + if (params.isSearch) { + delete params.isSearch + const data = {...params} + return request.post({ url: '/wms/businesstype/senior', data }) + } else { + return await request.get({ url: `/wms/businesstype/page`, params }) + } } // 查询业务类型详情 diff --git a/src/api/wms/carrier/index.ts b/src/api/wms/carrier/index.ts index 9f169dc6a..6d9fb44e1 100644 --- a/src/api/wms/carrier/index.ts +++ b/src/api/wms/carrier/index.ts @@ -23,7 +23,13 @@ export interface CarrierVO { // 查询承运商列表 export const getCarrierPage = async (params) => { - return await request.get({ url: `/wms/carrier/page`, params }) + if (params.isSearch) { + delete params.isSearch + const data = {...params} + return request.post({ url: '/wms/carrier/senior', data }) + } else { + return await request.get({ url: `/wms/carrier/page`, params }) + } } // 查询承运商详情 diff --git a/src/api/wms/condition/index.ts b/src/api/wms/condition/index.ts index 16bb79da4..c5654d751 100644 --- a/src/api/wms/condition/index.ts +++ b/src/api/wms/condition/index.ts @@ -11,7 +11,13 @@ export interface ConditionVO { // 查询条件列表 export const getConditionPage = async (params) => { - return await request.get({ url: `/wms/condition/page`, params }) + if (params.isSearch) { + delete params.isSearch + const data = {...params} + return request.post({ url: '/wms/condition/senior', data }) + } else { + return await request.get({ url: `/wms/condition/page`, params }) + } } // 查询条件详情 diff --git a/src/api/wms/configuration/index.ts b/src/api/wms/configuration/index.ts index ae9c25310..60293c8b5 100644 --- a/src/api/wms/configuration/index.ts +++ b/src/api/wms/configuration/index.ts @@ -11,7 +11,13 @@ export interface ConfigurationVO { // 查询配置列表 export const getConfigurationPage = async (params) => { - return await request.get({ url: `/wms/configuration/page`, params }) + if (params.isSearch) { + delete params.isSearch + const data = {...params} + return request.post({ url: '/wms/configuration/senior', data }) + } else { + return await request.get({ url: `/wms/configuration/page`, params }) + } } // 查询配置详情 diff --git a/src/api/wms/configurationsetting/index.ts b/src/api/wms/configurationsetting/index.ts index cfc842697..409831fc8 100644 --- a/src/api/wms/configurationsetting/index.ts +++ b/src/api/wms/configurationsetting/index.ts @@ -13,7 +13,13 @@ export interface ConfigurationsettingVO { // 查询配置设置列表 export const getConfigurationsettingPage = async (params) => { - return await request.get({ url: `/wms/configurationsetting/page`, params }) + if (params.isSearch) { + delete params.isSearch + const data = {...params} + return request.post({ url: '/wms/configurationsetting/senior', data }) + } else { + return await request.get({ url: `/wms/configurationsetting/page`, params }) + } } // 查询配置设置详情 diff --git a/src/api/wms/currencyexchange/index.ts b/src/api/wms/currencyexchange/index.ts index f56a6f71b..7c5c9f0d2 100644 --- a/src/api/wms/currencyexchange/index.ts +++ b/src/api/wms/currencyexchange/index.ts @@ -12,7 +12,13 @@ export interface CurrencyexchangeVO { // 查询货币转换列表 export const getCurrencyexchangePage = async (params) => { - return await request.get({ url: `/wms/currencyexchange/page`, params }) + if (params.isSearch) { + delete params.isSearch + const data = {...params} + return request.post({ url: '/wms/currencyexchange/senior', data }) + } else { + return await request.get({ url: `/wms/currencyexchange/page`, params }) + } } // 查询货币转换详情 diff --git a/src/api/wms/customer/index.ts b/src/api/wms/customer/index.ts index fa1d7d487..19b3db259 100644 --- a/src/api/wms/customer/index.ts +++ b/src/api/wms/customer/index.ts @@ -23,7 +23,13 @@ export interface CustomerVO { // 查询客户列表 export const getCustomerPage = async (params) => { - return await request.get({ url: `/wms/customer/page`, params }) + if (params.isSearch) { + delete params.isSearch + const data = {...params} + return request.post({ url: '/wms/customer/senior', data }) + } else { + return await request.get({ url: `/wms/customer/page`, params }) + } } // 查询客户列表 export const getCustomerList = async (params) => { diff --git a/src/api/wms/customerdock/index.ts b/src/api/wms/customerdock/index.ts index 471e34ece..f60062347 100644 --- a/src/api/wms/customerdock/index.ts +++ b/src/api/wms/customerdock/index.ts @@ -19,7 +19,13 @@ export interface CustomerdockVO { // 查询客户月台列表 export const getCustomerdockPage = async (params) => { - return await request.get({ url: `/wms/customerdock/page`, params }) + if (params.isSearch) { + delete params.isSearch + const data = {...params} + return request.post({ url: '/wms/customerdock/senior', data }) + } else { + return await request.get({ url: `/wms/customerdock/page`, params }) + } } // 查询客户月台详情 diff --git a/src/api/wms/customeritem/index.ts b/src/api/wms/customeritem/index.ts index 8da7893fa..1efaa7573 100644 --- a/src/api/wms/customeritem/index.ts +++ b/src/api/wms/customeritem/index.ts @@ -19,7 +19,13 @@ export interface CustomeritemVO { // 查询客户物品列表 export const getCustomeritemPage = async (params) => { - return await request.get({ url: `/wms/customeritem/page`, params }) + if (params.isSearch) { + delete params.isSearch + const data = {...params} + return request.post({ url: '/wms/customeritem/senior', data }) + } else { + return await request.get({ url: `/wms/customeritem/page`, params }) + } } // 查询客户物品详情 diff --git a/src/api/wms/dock/index.ts b/src/api/wms/dock/index.ts index 0cf190ad5..d6335273f 100644 --- a/src/api/wms/dock/index.ts +++ b/src/api/wms/dock/index.ts @@ -19,7 +19,13 @@ export interface DockVO { // 查询月台列表 export const getDockPage = async (params) => { - return await request.get({ url: `/wms/dock/page`, params }) + if (params.isSearch) { + delete params.isSearch + const data = {...params} + return request.post({ url: '/wms/dock/senior', data }) + } else { + return await request.get({ url: `/wms/dock/page`, params }) + } } // 查询月台列表 export const getDockList = async (params) => { diff --git a/src/api/wms/documentsetting/index.ts b/src/api/wms/documentsetting/index.ts index b09c9e193..6d9dc6b00 100644 --- a/src/api/wms/documentsetting/index.ts +++ b/src/api/wms/documentsetting/index.ts @@ -20,7 +20,13 @@ export interface DocumentsettingVO { // 查询单据设置列表 export const getDocumentsettingPage = async (params) => { - return await request.get({ url: `/wms/documentsetting/page`, params }) + if (params.isSearch) { + delete params.isSearch + const data = {...params} + return request.post({ url: '/wms/documentsetting/senior', data }) + } else { + return await request.get({ url: `/wms/documentsetting/page`, params }) + } } // 查询单据设置详情 diff --git a/src/api/wms/jobsetting/index.ts b/src/api/wms/jobsetting/index.ts index 45442c0d8..c7807e04f 100644 --- a/src/api/wms/jobsetting/index.ts +++ b/src/api/wms/jobsetting/index.ts @@ -22,7 +22,13 @@ export interface JobsettingVO { // 查询任务设置列表 export const getJobsettingPage = async (params) => { - return await request.get({ url: `/wms/jobsetting/page`, params }) + if (params.isSearch) { + delete params.isSearch + const data = {...params} + return request.post({ url: '/wms/jobsetting/senior', data }) + } else { + return await request.get({ url: `/wms/jobsetting/page`, params }) + } } // 查询任务设置详情 diff --git a/src/api/wms/location/index.ts b/src/api/wms/location/index.ts index e3c982ad1..a827647f3 100644 --- a/src/api/wms/location/index.ts +++ b/src/api/wms/location/index.ts @@ -26,7 +26,13 @@ export interface LocationVO { // 查询库位列表 export const getLocationPage = async (params) => { - return await request.get({ url: `/wms/location/page`, params }) + if (params.isSearch) { + delete params.isSearch + const data = {...params} + return request.post({ url: '/wms/location/senior', data }) + } else { + return await request.get({ url: `/wms/location/page`, params }) + } } // 查询库位所有列表 export const getLocationList = async (params) => { diff --git a/src/api/wms/locationgroup/index.ts b/src/api/wms/locationgroup/index.ts index b7f245edc..874caddfc 100644 --- a/src/api/wms/locationgroup/index.ts +++ b/src/api/wms/locationgroup/index.ts @@ -14,7 +14,13 @@ export interface LocationgroupVO { // 查询库位组列表 export const getLocationgroupPage = async (params) => { - return await request.get({ url: `/wms/locationgroup/page`, params }) + if (params.isSearch) { + delete params.isSearch + const data = {...params} + return request.post({ url: '/wms/locationgroup/senior', data }) + } else { + return await request.get({ url: `/wms/locationgroup/page`, params }) + } } // 查询库位组列表 export const getLocationgroupList = async (params) => { diff --git a/src/api/wms/owner/index.ts b/src/api/wms/owner/index.ts index d453b6148..5e8c5c40f 100644 --- a/src/api/wms/owner/index.ts +++ b/src/api/wms/owner/index.ts @@ -23,7 +23,13 @@ export interface OwnerVO { // 查询货主列表 export const getOwnerPage = async (params) => { - return await request.get({ url: `/wms/owner/page`, params }) + if (params.isSearch) { + delete params.isSearch + const data = {...params} + return request.post({ url: '/wms/owner/senior', data }) + } else { + return await request.get({ url: `/wms/owner/page`, params }) + } } // 查询货主详情 diff --git a/src/api/wms/paramsetting/index.ts b/src/api/wms/paramsetting/index.ts index 533b92540..0e8511a7e 100644 --- a/src/api/wms/paramsetting/index.ts +++ b/src/api/wms/paramsetting/index.ts @@ -14,7 +14,13 @@ export interface ParamsettingVO { // 查询参数设置列表 export const getParamsettingPage = async (params) => { - return await request.get({ url: `/wms/paramsetting/page`, params }) + if (params.isSearch) { + delete params.isSearch + const data = {...params} + return request.post({ url: '/wms/paramsetting/senior', data }) + } else { + return await request.get({ url: `/wms/paramsetting/page`, params }) + } } // 查询参数设置详情 diff --git a/src/api/wms/process/index.ts b/src/api/wms/process/index.ts index 954a4a662..ac47d8ebd 100644 --- a/src/api/wms/process/index.ts +++ b/src/api/wms/process/index.ts @@ -15,7 +15,13 @@ export interface ProcessVO { // 查询工序列表 export const getProcessPage = async (params) => { - return await request.get({ url: `/wms/process/page`, params }) + if (params.isSearch) { + delete params.isSearch + const data = {...params} + return request.post({ url: '/wms/process/senior', data }) + } else { + return await request.get({ url: `/wms/process/page`, params }) + } } // 查询工序详情 diff --git a/src/api/wms/productionline/index.ts b/src/api/wms/productionline/index.ts index fb097d48d..afbab3608 100644 --- a/src/api/wms/productionline/index.ts +++ b/src/api/wms/productionline/index.ts @@ -16,7 +16,13 @@ export interface ProductionlineVO { // 查询生产线列表 export const getProductionlinePage = async (params) => { - return await request.get({ url: `/wms/productionline/page`, params }) + if (params.isSearch) { + delete params.isSearch + const data = {...params} + return request.post({ url: '/wms/productionline/senior', data }) + } else { + return await request.get({ url: `/wms/productionline/page`, params }) + } } // 查询生产线详情 diff --git a/src/api/wms/project/index.ts b/src/api/wms/project/index.ts index 37d754e8b..6063b5b5b 100644 --- a/src/api/wms/project/index.ts +++ b/src/api/wms/project/index.ts @@ -13,7 +13,13 @@ export interface ProjectVO { // 查询项目列表 export const getProjectPage = async (params) => { - return await request.get({ url: `/wms/project/page`, params }) + if (params.isSearch) { + delete params.isSearch + const data = {...params} + return request.post({ url: '/wms/project/senior', data }) + } else { + return await request.get({ url: `/wms/project/page`, params }) + } } // 查询项目详情 diff --git a/src/api/wms/purchaseprice/index.ts b/src/api/wms/purchaseprice/index.ts index 9583dc310..01fafc37a 100644 --- a/src/api/wms/purchaseprice/index.ts +++ b/src/api/wms/purchaseprice/index.ts @@ -13,7 +13,13 @@ export interface PurchasepriceVO { // 查询采购价格单列表 export const getPurchasepricePage = async (params) => { - return await request.get({ url: `/wms/purchaseprice/page`, params }) + if (params.isSearch) { + delete params.isSearch + const data = {...params} + return request.post({ url: '/wms/purchaseprice/senior', data }) + } else { + return await request.get({ url: `/wms/purchaseprice/page`, params }) + } } // 查询采购价格单详情 diff --git a/src/api/wms/recordsetting/index.ts b/src/api/wms/recordsetting/index.ts index 9c8e32ca2..25f8d0d97 100644 --- a/src/api/wms/recordsetting/index.ts +++ b/src/api/wms/recordsetting/index.ts @@ -12,7 +12,13 @@ export interface RecordsettingVO { // 查询记录设置列表 export const getRecordsettingPage = async (params) => { - return await request.get({ url: `/wms/recordsetting/page`, params }) + if (params.isSearch) { + delete params.isSearch + const data = {...params} + return request.post({ url: '/wms/recordsetting/senior', data }) + } else { + return await request.get({ url: `/wms/recordsetting/page`, params }) + } } // 查询记录设置详情 diff --git a/src/api/wms/requestsetting/index.ts b/src/api/wms/requestsetting/index.ts index ffc184456..7c6ea88ef 100644 --- a/src/api/wms/requestsetting/index.ts +++ b/src/api/wms/requestsetting/index.ts @@ -16,7 +16,13 @@ export interface RequestsettingVO { // 查询申请设置列表 export const getRequestsettingPage = async (params) => { - return await request.get({ url: `/wms/requestsetting/page`, params }) + if (params.isSearch) { + delete params.isSearch + const data = {...params} + return request.post({ url: '/wms/requestsetting/senior', data }) + } else { + return await request.get({ url: `/wms/requestsetting/page`, params }) + } } // 查询申请设置详情 diff --git a/src/api/wms/rule/index.ts b/src/api/wms/rule/index.ts index dced53321..8e7a09f09 100644 --- a/src/api/wms/rule/index.ts +++ b/src/api/wms/rule/index.ts @@ -13,7 +13,13 @@ export interface RuleVO { // 查询规则列表 export const getRulePage = async (params) => { - return await request.get({ url: `/wms/rule/page`, params }) + if (params.isSearch) { + delete params.isSearch + const data = {...params} + return request.post({ url: '/wms/rule/senior', data }) + } else { + return await request.get({ url: `/wms/rule/page`, params }) + } } // 查询规则详情 diff --git a/src/api/wms/saleprice/index.ts b/src/api/wms/saleprice/index.ts index 4748b345e..3d3e35f26 100644 --- a/src/api/wms/saleprice/index.ts +++ b/src/api/wms/saleprice/index.ts @@ -13,7 +13,13 @@ export interface SalepriceVO { // 查询销售价格单列表 export const getSalepricePage = async (params) => { - return await request.get({ url: `/wms/saleprice/page`, params }) + if (params.isSearch) { + delete params.isSearch + const data = {...params} + return request.post({ url: '/wms/saleprice/senior', data }) + } else { + return await request.get({ url: `/wms/saleprice/page`, params }) + } } // 查询销售价格单详情 diff --git a/src/api/wms/shift/index.ts b/src/api/wms/shift/index.ts index f2557e273..973f4c9c2 100644 --- a/src/api/wms/shift/index.ts +++ b/src/api/wms/shift/index.ts @@ -15,7 +15,13 @@ export interface ShiftVO { // 查询班次列表 export const getShiftPage = async (params) => { - return await request.get({ url: `/wms/shift/page`, params }) + if (params.isSearch) { + delete params.isSearch + const data = {...params} + return request.post({ url: '/wms/shift/senior', data }) + } else { + return await request.get({ url: `/wms/shift/page`, params }) + } } // 查询班次详情 diff --git a/src/api/wms/supplier/index.ts b/src/api/wms/supplier/index.ts index 1e95560af..97609ae09 100644 --- a/src/api/wms/supplier/index.ts +++ b/src/api/wms/supplier/index.ts @@ -23,7 +23,13 @@ export interface SupplierVO { // 查询供应商列表分页 export const getSupplierPage = async (params) => { - return await request.get({ url: `/wms/supplier/page`, params }) + if (params.isSearch) { + delete params.isSearch + const data = {...params} + return request.post({ url: '/wms/supplier/senior', data }) + } else { + return await request.get({ url: `/wms/supplier/page`, params }) + } } // 查询供应商列表 export const getSupplierList = async (params) => { diff --git a/src/api/wms/supplieritem/index.ts b/src/api/wms/supplieritem/index.ts index dbf46ecfc..e11eeb5f6 100644 --- a/src/api/wms/supplieritem/index.ts +++ b/src/api/wms/supplieritem/index.ts @@ -22,7 +22,13 @@ export interface SupplieritemVO { // 查询供应商物品列表 export const getSupplieritemPage = async (params) => { - return await request.get({ url: `/wms/supplieritem/page`, params }) + if (params.isSearch) { + delete params.isSearch + const data = {...params} + return request.post({ url: '/wms/supplieritem/senior', data }) + } else { + return await request.get({ url: `/wms/supplieritem/page`, params }) + } } // 查询供应商物品详情 diff --git a/src/api/wms/systemcalendar/index.ts b/src/api/wms/systemcalendar/index.ts index 89c2720ab..e7da3af78 100644 --- a/src/api/wms/systemcalendar/index.ts +++ b/src/api/wms/systemcalendar/index.ts @@ -12,7 +12,13 @@ export interface SystemcalendarVO { // 查询系统日历列表 export const getSystemcalendarPage = async (params) => { - return await request.get({ url: `/wms/systemcalendar/page`, params }) + if (params.isSearch) { + delete params.isSearch + const data = {...params} + return request.post({ url: '/wms/systemcalendar/senior', data }) + } else { + return await request.get({ url: `/wms/systemcalendar/page`, params }) + } } // 查询系统日历详情 diff --git a/src/api/wms/team/index.ts b/src/api/wms/team/index.ts index 9e6c4c13b..0abb2de21 100644 --- a/src/api/wms/team/index.ts +++ b/src/api/wms/team/index.ts @@ -13,7 +13,13 @@ export interface TeamVO { // 查询班组列表 export const getTeamPage = async (params) => { - return await request.get({ url: `/wms/team/page`, params }) + if (params.isSearch) { + delete params.isSearch + const data = {...params} + return request.post({ url: '/wms/team/senior', data }) + } else { + return await request.get({ url: `/wms/team/page`, params }) + } } // 查询班组详情 diff --git a/src/api/wms/transactiontype/index.ts b/src/api/wms/transactiontype/index.ts index ac0070487..88c259be4 100644 --- a/src/api/wms/transactiontype/index.ts +++ b/src/api/wms/transactiontype/index.ts @@ -15,7 +15,13 @@ export interface TransactiontypeVO { // 查询事务类型列表 export const getTransactiontypePage = async (params) => { - return await request.get({ url: `/wms/transactiontype/page`, params }) + if (params.isSearch) { + delete params.isSearch + const data = {...params} + return request.post({ url: '/wms/transactiontype/senior', data }) + } else { + return await request.get({ url: `/wms/transactiontype/page`, params }) + } } // 查询事务类型详情 diff --git a/src/api/wms/warehouse/index.ts b/src/api/wms/warehouse/index.ts index 12be52437..169e1986d 100644 --- a/src/api/wms/warehouse/index.ts +++ b/src/api/wms/warehouse/index.ts @@ -13,7 +13,13 @@ export interface WarehouseVO { // 查询仓库列表 export const getWarehousePage = async (params) => { - return await request.get({ url: `/wms/warehouse/page`, params }) + if (params.isSearch) { + delete params.isSearch + const data = {...params} + return request.post({ url: '/wms/warehouse/senior', data }) + } else { + return await request.get({ url: `/wms/warehouse/page`, params }) + } } // 查询仓库所有列表 export const getWarehouseList = async (params) => { diff --git a/src/api/wms/workshop/index.ts b/src/api/wms/workshop/index.ts index 0620d115f..a07fb72c8 100644 --- a/src/api/wms/workshop/index.ts +++ b/src/api/wms/workshop/index.ts @@ -13,7 +13,13 @@ export interface WorkshopVO { // 查询车间列表 export const getWorkshopPage = async (params) => { - return await request.get({ url: `/wms/workshop/page`, params }) + if (params.isSearch) { + delete params.isSearch + const data = {...params} + return request.post({ url: '/wms/workshop/senior', data }) + } else { + return await request.get({ url: `/wms/workshop/page`, params }) + } } // 查询车间详情 diff --git a/src/api/wms/workstation/index.ts b/src/api/wms/workstation/index.ts index e227fa763..5314bd581 100644 --- a/src/api/wms/workstation/index.ts +++ b/src/api/wms/workstation/index.ts @@ -17,7 +17,13 @@ export interface WorkstationVO { // 查询工位列表 export const getWorkstationPage = async (params) => { - return await request.get({ url: `/wms/workstation/page`, params }) + if (params.isSearch) { + delete params.isSearch + const data = {...params} + return request.post({ url: '/wms/workstation/senior', data }) + } else { + return await request.get({ url: `/wms/workstation/page`, params }) + } } // 查询工位详情 diff --git a/src/views/wms/accountcalendar/index.vue b/src/views/wms/accountcalendar/index.vue index f19a47c7d..1fa327785 100644 --- a/src/views/wms/accountcalendar/index.vue +++ b/src/views/wms/accountcalendar/index.vue @@ -10,6 +10,7 @@ @button-base-click="buttonBaseClick" :route-name="routeName" @updataTableColumns="updataTableColumns" + @searchFormClick="searchFormClick" /> @@ -93,6 +94,7 @@ const HeadButttondata = [ defaultButtons.defaultImportBtn({hasPermi:'wms:accountcalendar:import'}), // 导入 defaultButtons.defaultExportBtn({hasPermi:'wms:accountcalendar:export'}), // 导出 defaultButtons.defaultFreshBtn(null),//刷新 + defaultButtons.defaultFilterBtn(null), //筛选 defaultButtons.defaultSetBtn(null), // 设置 // { // label: '自定义扩展按钮', @@ -192,6 +194,15 @@ const importSuccess = () => { getList() } +// 筛选提交 +const searchFormClick = (searchData) => { + tableObject.params = { + isSearch: true, + filters: searchData.filters + } + getList() // 刷新当前列表 +} + /** 初始化 **/ onMounted(async() => { getList() diff --git a/src/views/wms/areabasic/index.vue b/src/views/wms/areabasic/index.vue index 83ddced93..e083ae197 100644 --- a/src/views/wms/areabasic/index.vue +++ b/src/views/wms/areabasic/index.vue @@ -10,6 +10,7 @@ @button-base-click="buttonBaseClick" :route-name="routeName" @updataTableColumns="updataTableColumns" + @searchFormClick="searchFormClick" /> @@ -103,6 +104,7 @@ const HeadButttondata = [ defaultButtons.defaultImportBtn({hasPermi:'wms:areabasic:import'}), // 导入 defaultButtons.defaultExportBtn({hasPermi:'wms:areabasic:export'}), // 导出 defaultButtons.defaultFreshBtn(null),//刷新 + defaultButtons.defaultFilterBtn(null), //筛选 defaultButtons.defaultSetBtn(null), // 设置 // { // label: '自定义扩展按钮', @@ -211,6 +213,15 @@ const importSuccess = () => { getList() } +// 筛选提交 +const searchFormClick = (searchData) => { + tableObject.params = { + isSearch: true, + filters: searchData.filters + } + getList() // 刷新当前列表 +} + /** 初始化 **/ onMounted(async() => { getList() diff --git a/src/views/wms/businesstype/index.vue b/src/views/wms/businesstype/index.vue index 566d28f60..5e86ab088 100644 --- a/src/views/wms/businesstype/index.vue +++ b/src/views/wms/businesstype/index.vue @@ -10,6 +10,7 @@ @button-base-click="buttonBaseClick" :route-name="routeName" @updataTableColumns="updataTableColumns" + @searchFormClick="searchFormClick" /> @@ -108,6 +109,7 @@ const HeadButttondata = [ // defaultButtons.defaultImportBtn({hasPermi:'wms:businesstype:import'}), // 导入 // defaultButtons.defaultExportBtn({hasPermi:'wms:businesstype:export'}), // 导出 defaultButtons.defaultFreshBtn(null),//刷新 + defaultButtons.defaultFilterBtn(null), //筛选 defaultButtons.defaultSetBtn(null), // 设置 // { // label: '自定义扩展按钮', @@ -216,6 +218,15 @@ const importSuccess = () => { getList() } +// 筛选提交 +const searchFormClick = (searchData) => { + tableObject.params = { + isSearch: true, + filters: searchData.filters + } + getList() // 刷新当前列表 +} + /** 初始化 **/ onMounted(async() => { getList() diff --git a/src/views/wms/carrier/index.vue b/src/views/wms/carrier/index.vue index a8296c647..b200902c3 100644 --- a/src/views/wms/carrier/index.vue +++ b/src/views/wms/carrier/index.vue @@ -10,6 +10,7 @@ @button-base-click="buttonBaseClick" :route-name="routeName" @updataTableColumns="updataTableColumns" + @searchFormClick="searchFormClick" /> @@ -93,6 +94,7 @@ const HeadButttondata = [ defaultButtons.defaultImportBtn({hasPermi:'wms:carrier:import'}), // 导入 defaultButtons.defaultExportBtn({hasPermi:'wms:carrier:export'}), // 导出 defaultButtons.defaultFreshBtn(null),//刷新 + defaultButtons.defaultFilterBtn(null), //筛选 defaultButtons.defaultSetBtn(null), // 设置 // { // label: '自定义扩展按钮', @@ -192,6 +194,15 @@ const importSuccess = () => { getList() } +// 筛选提交 +const searchFormClick = (searchData) => { + tableObject.params = { + isSearch: true, + filters: searchData.filters + } + getList() // 刷新当前列表 +} + /** 初始化 **/ onMounted(async() => { getList() diff --git a/src/views/wms/condition/index.vue b/src/views/wms/condition/index.vue index 847b92ad7..15bae0c08 100644 --- a/src/views/wms/condition/index.vue +++ b/src/views/wms/condition/index.vue @@ -10,6 +10,7 @@ @button-base-click="buttonBaseClick" :route-name="routeName" @updataTableColumns="updataTableColumns" + @searchFormClick="searchFormClick" /> @@ -96,6 +97,7 @@ const HeadButttondata = [ defaultButtons.defaultImportBtn({hasPermi:'wms:condition:import'}), // 导入 defaultButtons.defaultExportBtn({hasPermi:'wms:condition:export'}), // 导出 defaultButtons.defaultFreshBtn(null),//刷新 + defaultButtons.defaultFilterBtn(null), //筛选 defaultButtons.defaultSetBtn(null), // 设置 // { // label: '自定义扩展按钮', @@ -195,6 +197,15 @@ const importSuccess = () => { getList() } +// 筛选提交 +const searchFormClick = (searchData) => { + tableObject.params = { + isSearch: true, + filters: searchData.filters + } + getList() // 刷新当前列表 +} + /** 初始化 **/ onMounted(async() => { getList() diff --git a/src/views/wms/configuration/index.vue b/src/views/wms/configuration/index.vue index cec929182..37e7bb66a 100644 --- a/src/views/wms/configuration/index.vue +++ b/src/views/wms/configuration/index.vue @@ -10,6 +10,7 @@ @button-base-click="buttonBaseClick" :route-name="routeName" @updataTableColumns="updataTableColumns" + @searchFormClick="searchFormClick" /> @@ -96,6 +97,7 @@ const HeadButttondata = [ defaultButtons.defaultImportBtn({hasPermi:'wms:configuration:import'}), // 导入 defaultButtons.defaultExportBtn({hasPermi:'wms:configuration:export'}), // 导出 defaultButtons.defaultFreshBtn(null),//刷新 + defaultButtons.defaultFilterBtn(null), //筛选 defaultButtons.defaultSetBtn(null), // 设置 // { // label: '自定义扩展按钮', @@ -195,6 +197,15 @@ const importSuccess = () => { getList() } +// 筛选提交 +const searchFormClick = (searchData) => { + tableObject.params = { + isSearch: true, + filters: searchData.filters + } + getList() // 刷新当前列表 +} + /** 初始化 **/ onMounted(async() => { getList() diff --git a/src/views/wms/configurationsetting/index.vue b/src/views/wms/configurationsetting/index.vue index 38df2328e..52306eabd 100644 --- a/src/views/wms/configurationsetting/index.vue +++ b/src/views/wms/configurationsetting/index.vue @@ -10,6 +10,7 @@ @button-base-click="buttonBaseClick" :route-name="routeName" @updataTableColumns="updataTableColumns" + @searchFormClick="searchFormClick" /> @@ -96,6 +97,7 @@ const HeadButttondata = [ defaultButtons.defaultImportBtn({hasPermi:'wms:configurationsetting:import'}), // 导入 defaultButtons.defaultExportBtn({hasPermi:'wms:configurationsetting:export'}), // 导出 defaultButtons.defaultFreshBtn(null),//刷新 + defaultButtons.defaultFilterBtn(null), //筛选 defaultButtons.defaultSetBtn(null), // 设置 // { // label: '自定义扩展按钮', @@ -195,6 +197,15 @@ const importSuccess = () => { getList() } +// 筛选提交 +const searchFormClick = (searchData) => { + tableObject.params = { + isSearch: true, + filters: searchData.filters + } + getList() // 刷新当前列表 +} + /** 初始化 **/ onMounted(async() => { getList() diff --git a/src/views/wms/currencyexchange/index.vue b/src/views/wms/currencyexchange/index.vue index 13b66f1f5..a5811838a 100644 --- a/src/views/wms/currencyexchange/index.vue +++ b/src/views/wms/currencyexchange/index.vue @@ -10,6 +10,7 @@ @button-base-click="buttonBaseClick" :route-name="routeName" @updataTableColumns="updataTableColumns" + @searchFormClick="searchFormClick" /> @@ -93,6 +94,7 @@ const HeadButttondata = [ defaultButtons.defaultImportBtn({hasPermi:'wms:currencyexchange:import'}), // 导入 defaultButtons.defaultExportBtn({hasPermi:'wms:currencyexchange:export'}), // 导出 defaultButtons.defaultFreshBtn(null),//刷新 + defaultButtons.defaultFilterBtn(null), //筛选 defaultButtons.defaultSetBtn(null), // 设置 // { // label: '自定义扩展按钮', @@ -192,6 +194,15 @@ const importSuccess = () => { getList() } +// 筛选提交 +const searchFormClick = (searchData) => { + tableObject.params = { + isSearch: true, + filters: searchData.filters + } + getList() // 刷新当前列表 +} + /** 初始化 **/ onMounted(async() => { getList() diff --git a/src/views/wms/customer/index.vue b/src/views/wms/customer/index.vue index b2aadf900..494069734 100644 --- a/src/views/wms/customer/index.vue +++ b/src/views/wms/customer/index.vue @@ -10,6 +10,7 @@ @button-base-click="buttonBaseClick" :route-name="routeName" @updataTableColumns="updataTableColumns" + @searchFormClick="searchFormClick" /> @@ -93,6 +94,7 @@ const HeadButttondata = [ defaultButtons.defaultImportBtn({hasPermi:'wms:customer:import'}), // 导入 defaultButtons.defaultExportBtn({hasPermi:'wms:customer:export'}), // 导出 defaultButtons.defaultFreshBtn(null),//刷新 + defaultButtons.defaultFilterBtn(null), //筛选 defaultButtons.defaultSetBtn(null), // 设置 // { // label: '自定义扩展按钮', @@ -192,6 +194,15 @@ const importSuccess = () => { getList() } +// 筛选提交 +const searchFormClick = (searchData) => { + tableObject.params = { + isSearch: true, + filters: searchData.filters + } + getList() // 刷新当前列表 +} + /** 初始化 **/ onMounted(async() => { getList() diff --git a/src/views/wms/customerdock/index.vue b/src/views/wms/customerdock/index.vue index 0c45ace16..57f2693c7 100644 --- a/src/views/wms/customerdock/index.vue +++ b/src/views/wms/customerdock/index.vue @@ -10,6 +10,7 @@ @button-base-click="buttonBaseClick" :route-name="routeName" @updataTableColumns="updataTableColumns" + @searchFormClick="searchFormClick" /> @@ -115,6 +116,7 @@ const HeadButttondata = [ defaultButtons.defaultImportBtn({hasPermi:'wms:customerdock:import'}), // 导入 defaultButtons.defaultExportBtn({hasPermi:'wms:customerdock:export'}), // 导出 defaultButtons.defaultFreshBtn(null),//刷新 + defaultButtons.defaultFilterBtn(null), //筛选 defaultButtons.defaultSetBtn(null), // 设置 // { // label: '自定义扩展按钮', @@ -223,6 +225,15 @@ const importSuccess = () => { getList() } +// 筛选提交 +const searchFormClick = (searchData) => { + tableObject.params = { + isSearch: true, + filters: searchData.filters + } + getList() // 刷新当前列表 +} + /** 初始化 **/ onMounted(async() => { getList() diff --git a/src/views/wms/customeritem/index.vue b/src/views/wms/customeritem/index.vue index 6d83c1f2b..c1c6dc1a9 100644 --- a/src/views/wms/customeritem/index.vue +++ b/src/views/wms/customeritem/index.vue @@ -10,6 +10,7 @@ @button-base-click="buttonBaseClick" :route-name="routeName" @updataTableColumns="updataTableColumns" + @searchFormClick="searchFormClick" /> @@ -109,6 +110,7 @@ const HeadButttondata = [ defaultButtons.defaultImportBtn({hasPermi:'wms:customeritem:import'}), // 导入 defaultButtons.defaultExportBtn({hasPermi:'wms:customeritem:export'}), // 导出 defaultButtons.defaultFreshBtn(null),//刷新 + defaultButtons.defaultFilterBtn(null), //筛选 defaultButtons.defaultSetBtn(null), // 设置 // { // label: '自定义扩展按钮', @@ -217,6 +219,15 @@ const importSuccess = () => { getList() } +// 筛选提交 +const searchFormClick = (searchData) => { + tableObject.params = { + isSearch: true, + filters: searchData.filters + } + getList() // 刷新当前列表 +} + /** 初始化 **/ onMounted(async() => { getList() diff --git a/src/views/wms/dock/index.vue b/src/views/wms/dock/index.vue index b634ebd3c..cf9da4173 100644 --- a/src/views/wms/dock/index.vue +++ b/src/views/wms/dock/index.vue @@ -10,6 +10,7 @@ @button-base-click="buttonBaseClick" :route-name="routeName" @updataTableColumns="updataTableColumns" + @searchFormClick="searchFormClick" /> @@ -109,6 +110,7 @@ const HeadButttondata = [ defaultButtons.defaultImportBtn({hasPermi:'wms:dock:import'}), // 导入 defaultButtons.defaultExportBtn({hasPermi:'wms:dock:export'}), // 导出 defaultButtons.defaultFreshBtn(null),//刷新 + defaultButtons.defaultFilterBtn(null), //筛选 defaultButtons.defaultSetBtn(null), // 设置 // { // label: '自定义扩展按钮', @@ -217,6 +219,15 @@ const importSuccess = () => { getList() } +// 筛选提交 +const searchFormClick = (searchData) => { + tableObject.params = { + isSearch: true, + filters: searchData.filters + } + getList() // 刷新当前列表 +} + /** 初始化 **/ onMounted(async() => { getList() diff --git a/src/views/wms/documentsetting/index.vue b/src/views/wms/documentsetting/index.vue index de7761a4b..ca9be3862 100644 --- a/src/views/wms/documentsetting/index.vue +++ b/src/views/wms/documentsetting/index.vue @@ -10,6 +10,7 @@ @button-base-click="buttonBaseClick" :route-name="routeName" @updataTableColumns="updataTableColumns" + @searchFormClick="searchFormClick" /> @@ -96,6 +97,7 @@ const HeadButttondata = [ // defaultButtons.defaultImportBtn({hasPermi:'wms:documentsetting:import'}), // 导入 // defaultButtons.defaultExportBtn({hasPermi:'wms:documentsetting:export'}), // 导出 defaultButtons.defaultFreshBtn(null),//刷新 + defaultButtons.defaultFilterBtn(null), //筛选 defaultButtons.defaultSetBtn(null), // 设置 // { // label: '自定义扩展按钮', @@ -195,6 +197,15 @@ const importSuccess = () => { getList() } +// 筛选提交 +const searchFormClick = (searchData) => { + tableObject.params = { + isSearch: true, + filters: searchData.filters + } + getList() // 刷新当前列表 +} + /** 初始化 **/ onMounted(async() => { getList() diff --git a/src/views/wms/jobsetting/index.vue b/src/views/wms/jobsetting/index.vue index 03b1d2d73..380c7bf83 100644 --- a/src/views/wms/jobsetting/index.vue +++ b/src/views/wms/jobsetting/index.vue @@ -10,6 +10,7 @@ @button-base-click="buttonBaseClick" :route-name="routeName" @updataTableColumns="updataTableColumns" + @searchFormClick="searchFormClick" /> @@ -92,6 +93,7 @@ const HeadButttondata = [ // defaultButtons.defaultImportBtn({hasPermi:'wms:jobsetting:import'}), // 导入 // defaultButtons.defaultExportBtn({hasPermi:'wms:jobsetting:export'}), // 导出 defaultButtons.defaultFreshBtn(null),//刷新 + defaultButtons.defaultFilterBtn(null), //筛选 defaultButtons.defaultSetBtn(null), // 设置 // { // label: '自定义扩展按钮', @@ -191,6 +193,15 @@ const importSuccess = () => { getList() } +// 筛选提交 +const searchFormClick = (searchData) => { + tableObject.params = { + isSearch: true, + filters: searchData.filters + } + getList() // 刷新当前列表 +} + /** 初始化 **/ onMounted(async() => { getList() diff --git a/src/views/wms/location/index.vue b/src/views/wms/location/index.vue index 4f58a0d12..6ddd5971c 100644 --- a/src/views/wms/location/index.vue +++ b/src/views/wms/location/index.vue @@ -10,6 +10,7 @@ @button-base-click="buttonBaseClick" :route-name="routeName" @updataTableColumns="updataTableColumns" + @searchFormClick="searchFormClick" /> @@ -115,6 +116,7 @@ const HeadButttondata = [ defaultButtons.defaultImportBtn({hasPermi:'wms:location:import'}), // 导入 defaultButtons.defaultExportBtn({hasPermi:'wms:location:export'}), // 导出 defaultButtons.defaultFreshBtn(null),//刷新 + defaultButtons.defaultFilterBtn(null), //筛选 defaultButtons.defaultSetBtn(null), // 设置 // { // label: '自定义扩展按钮', @@ -223,6 +225,15 @@ const importSuccess = () => { getList() } +// 筛选提交 +const searchFormClick = (searchData) => { + tableObject.params = { + isSearch: true, + filters: searchData.filters + } + getList() // 刷新当前列表 +} + /** 初始化 **/ onMounted(async() => { getList() diff --git a/src/views/wms/locationgroup/index.vue b/src/views/wms/locationgroup/index.vue index 1efdfc68f..821dc1044 100644 --- a/src/views/wms/locationgroup/index.vue +++ b/src/views/wms/locationgroup/index.vue @@ -10,6 +10,7 @@ @button-base-click="buttonBaseClick" :route-name="routeName" @updataTableColumns="updataTableColumns" + @searchFormClick="searchFormClick" /> @@ -109,6 +110,7 @@ const HeadButttondata = [ defaultButtons.defaultImportBtn({hasPermi:'wms:locationgroup:import'}), // 导入 defaultButtons.defaultExportBtn({hasPermi:'wms:locationgroup:export'}), // 导出 defaultButtons.defaultFreshBtn(null),//刷新 + defaultButtons.defaultFilterBtn(null), //筛选 defaultButtons.defaultSetBtn(null), // 设置 // { // label: '自定义扩展按钮', @@ -217,6 +219,15 @@ const importSuccess = () => { getList() } +// 筛选提交 +const searchFormClick = (searchData) => { + tableObject.params = { + isSearch: true, + filters: searchData.filters + } + getList() // 刷新当前列表 +} + /** 初始化 **/ onMounted(async() => { getList() diff --git a/src/views/wms/owner/index.vue b/src/views/wms/owner/index.vue index 32fe6b26d..540fa8d94 100644 --- a/src/views/wms/owner/index.vue +++ b/src/views/wms/owner/index.vue @@ -10,6 +10,7 @@ @button-base-click="buttonBaseClick" :route-name="routeName" @updataTableColumns="updataTableColumns" + @searchFormClick="searchFormClick" /> @@ -93,6 +94,7 @@ const HeadButttondata = [ defaultButtons.defaultImportBtn({hasPermi:'wms:owner:import'}), // 导入 defaultButtons.defaultExportBtn({hasPermi:'wms:owner:export'}), // 导出 defaultButtons.defaultFreshBtn(null),//刷新 + defaultButtons.defaultFilterBtn(null), //筛选 defaultButtons.defaultSetBtn(null), // 设置 // { // label: '自定义扩展按钮', @@ -192,6 +194,15 @@ const importSuccess = () => { getList() } +// 筛选提交 +const searchFormClick = (searchData) => { + tableObject.params = { + isSearch: true, + filters: searchData.filters + } + getList() // 刷新当前列表 +} + /** 初始化 **/ onMounted(async() => { getList() diff --git a/src/views/wms/paramsetting/index.vue b/src/views/wms/paramsetting/index.vue index 2f16a332c..6aa309cc6 100644 --- a/src/views/wms/paramsetting/index.vue +++ b/src/views/wms/paramsetting/index.vue @@ -10,6 +10,7 @@ @button-base-click="buttonBaseClick" :route-name="routeName" @updataTableColumns="updataTableColumns" + @searchFormClick="searchFormClick" /> @@ -96,6 +97,7 @@ const HeadButttondata = [ defaultButtons.defaultImportBtn({hasPermi:'wms:paramsetting:import'}), // 导入 defaultButtons.defaultExportBtn({hasPermi:'wms:paramsetting:export'}), // 导出 defaultButtons.defaultFreshBtn(null),//刷新 + defaultButtons.defaultFilterBtn(null), //筛选 defaultButtons.defaultSetBtn(null), // 设置 // { // label: '自定义扩展按钮', @@ -195,6 +197,15 @@ const importSuccess = () => { getList() } +// 筛选提交 +const searchFormClick = (searchData) => { + tableObject.params = { + isSearch: true, + filters: searchData.filters + } + getList() // 刷新当前列表 +} + /** 初始化 **/ onMounted(async() => { getList() diff --git a/src/views/wms/process/index.vue b/src/views/wms/process/index.vue index b0ba234f5..f37890c15 100644 --- a/src/views/wms/process/index.vue +++ b/src/views/wms/process/index.vue @@ -10,6 +10,7 @@ @button-base-click="buttonBaseClick" :route-name="routeName" @updataTableColumns="updataTableColumns" + @searchFormClick="searchFormClick" /> @@ -109,6 +110,7 @@ const HeadButttondata = [ defaultButtons.defaultImportBtn({hasPermi:'wms:process:import'}), // 导入 defaultButtons.defaultExportBtn({hasPermi:'wms:process:export'}), // 导出 defaultButtons.defaultFreshBtn(null),//刷新 + defaultButtons.defaultFilterBtn(null), //筛选 defaultButtons.defaultSetBtn(null), // 设置 // { // label: '自定义扩展按钮', @@ -217,6 +219,15 @@ const importSuccess = () => { getList() } +// 筛选提交 +const searchFormClick = (searchData) => { + tableObject.params = { + isSearch: true, + filters: searchData.filters + } + getList() // 刷新当前列表 +} + /** 初始化 **/ onMounted(async() => { getList() diff --git a/src/views/wms/productionline/index.vue b/src/views/wms/productionline/index.vue index 8bc464d62..17b95806f 100644 --- a/src/views/wms/productionline/index.vue +++ b/src/views/wms/productionline/index.vue @@ -10,6 +10,7 @@ @button-base-click="buttonBaseClick" :route-name="routeName" @updataTableColumns="updataTableColumns" + @searchFormClick="searchFormClick" /> @@ -114,6 +115,7 @@ const HeadButttondata = [ defaultButtons.defaultImportBtn({hasPermi:'wms:productionline:import'}), // 导入 defaultButtons.defaultExportBtn({hasPermi:'wms:productionline:export'}), // 导出 defaultButtons.defaultFreshBtn(null),//刷新 + defaultButtons.defaultFilterBtn(null), //筛选 defaultButtons.defaultSetBtn(null), // 设置 // { // label: '自定义扩展按钮', @@ -222,6 +224,15 @@ const importSuccess = () => { getList() } +// 筛选提交 +const searchFormClick = (searchData) => { + tableObject.params = { + isSearch: true, + filters: searchData.filters + } + getList() // 刷新当前列表 +} + /** 初始化 **/ onMounted(async() => { getList() diff --git a/src/views/wms/project/index.vue b/src/views/wms/project/index.vue index e8f80d2a9..c601e37b0 100644 --- a/src/views/wms/project/index.vue +++ b/src/views/wms/project/index.vue @@ -10,6 +10,7 @@ @button-base-click="buttonBaseClick" :route-name="routeName" @updataTableColumns="updataTableColumns" + @searchFormClick="searchFormClick" /> @@ -103,6 +104,7 @@ const HeadButttondata = [ defaultButtons.defaultImportBtn({hasPermi:'wms:project:import'}), // 导入 defaultButtons.defaultExportBtn({hasPermi:'wms:project:export'}), // 导出 defaultButtons.defaultFreshBtn(null),//刷新 + defaultButtons.defaultFilterBtn(null), //筛选 defaultButtons.defaultSetBtn(null), // 设置 // { // label: '自定义扩展按钮', @@ -211,6 +213,15 @@ const importSuccess = () => { getList() } +// 筛选提交 +const searchFormClick = (searchData) => { + tableObject.params = { + isSearch: true, + filters: searchData.filters + } + getList() // 刷新当前列表 +} + /** 初始化 **/ onMounted(async() => { getList() diff --git a/src/views/wms/purchaseprice/index.vue b/src/views/wms/purchaseprice/index.vue index bbd62c0ac..e4025749b 100644 --- a/src/views/wms/purchaseprice/index.vue +++ b/src/views/wms/purchaseprice/index.vue @@ -10,6 +10,7 @@ @button-base-click="buttonBaseClick" :route-name="routeName" @updataTableColumns="updataTableColumns" + @searchFormClick="searchFormClick" /> @@ -109,6 +110,7 @@ const HeadButttondata = [ defaultButtons.defaultImportBtn({hasPermi:'wms:purchaseprice:import'}), // 导入 defaultButtons.defaultExportBtn({hasPermi:'wms:purchaseprice:export'}), // 导出 defaultButtons.defaultFreshBtn(null),//刷新 + defaultButtons.defaultFilterBtn(null), //筛选 defaultButtons.defaultSetBtn(null), // 设置 // { // label: '自定义扩展按钮', @@ -217,6 +219,15 @@ const importSuccess = () => { getList() } +// 筛选提交 +const searchFormClick = (searchData) => { + tableObject.params = { + isSearch: true, + filters: searchData.filters + } + getList() // 刷新当前列表 +} + /** 初始化 **/ onMounted(async() => { getList() diff --git a/src/views/wms/recordsetting/index.vue b/src/views/wms/recordsetting/index.vue index da1310cbb..d92b67000 100644 --- a/src/views/wms/recordsetting/index.vue +++ b/src/views/wms/recordsetting/index.vue @@ -10,6 +10,7 @@ @button-base-click="buttonBaseClick" :route-name="routeName" @updataTableColumns="updataTableColumns" + @searchFormClick="searchFormClick" /> @@ -96,6 +97,7 @@ const HeadButttondata = [ // defaultButtons.defaultImportBtn({hasPermi:'wms:recordsetting:import'}), // 导入 // defaultButtons.defaultExportBtn({hasPermi:'wms:recordsetting:export'}), // 导出 defaultButtons.defaultFreshBtn(null),//刷新 + defaultButtons.defaultFilterBtn(null), //筛选 defaultButtons.defaultSetBtn(null), // 设置 // { // label: '自定义扩展按钮', @@ -195,6 +197,15 @@ const importSuccess = () => { getList() } +// 筛选提交 +const searchFormClick = (searchData) => { + tableObject.params = { + isSearch: true, + filters: searchData.filters + } + getList() // 刷新当前列表 +} + /** 初始化 **/ onMounted(async() => { getList() diff --git a/src/views/wms/requestsetting/index.vue b/src/views/wms/requestsetting/index.vue index 0b4d64216..c8c9d198c 100644 --- a/src/views/wms/requestsetting/index.vue +++ b/src/views/wms/requestsetting/index.vue @@ -10,6 +10,7 @@ @button-base-click="buttonBaseClick" :route-name="routeName" @updataTableColumns="updataTableColumns" + @searchFormClick="searchFormClick" /> @@ -96,6 +97,7 @@ const HeadButttondata = [ // defaultButtons.defaultImportBtn({hasPermi:'wms:requestsetting:import'}), // 导入 // defaultButtons.defaultExportBtn({hasPermi:'wms:requestsetting:export'}), // 导出 defaultButtons.defaultFreshBtn(null),//刷新 + defaultButtons.defaultFilterBtn(null), //筛选 defaultButtons.defaultSetBtn(null), // 设置 // { // label: '自定义扩展按钮', @@ -195,6 +197,15 @@ const importSuccess = () => { getList() } +// 筛选提交 +const searchFormClick = (searchData) => { + tableObject.params = { + isSearch: true, + filters: searchData.filters + } + getList() // 刷新当前列表 +} + /** 初始化 **/ onMounted(async() => { getList() diff --git a/src/views/wms/rule/index.vue b/src/views/wms/rule/index.vue index c4ff59a5c..364d81c6e 100644 --- a/src/views/wms/rule/index.vue +++ b/src/views/wms/rule/index.vue @@ -10,6 +10,7 @@ @button-base-click="buttonBaseClick" :route-name="routeName" @updataTableColumns="updataTableColumns" + @searchFormClick="searchFormClick" /> @@ -96,6 +97,7 @@ const HeadButttondata = [ defaultButtons.defaultImportBtn({hasPermi:'wms:rule:import'}), // 导入 defaultButtons.defaultExportBtn({hasPermi:'wms:rule:export'}), // 导出 defaultButtons.defaultFreshBtn(null),//刷新 + defaultButtons.defaultFilterBtn(null), //筛选 defaultButtons.defaultSetBtn(null), // 设置 // { // label: '自定义扩展按钮', @@ -195,6 +197,15 @@ const importSuccess = () => { getList() } +// 筛选提交 +const searchFormClick = (searchData) => { + tableObject.params = { + isSearch: true, + filters: searchData.filters + } + getList() // 刷新当前列表 +} + /** 初始化 **/ onMounted(async() => { getList() diff --git a/src/views/wms/saleprice/index.vue b/src/views/wms/saleprice/index.vue index 3b230396a..dfe7aaec5 100644 --- a/src/views/wms/saleprice/index.vue +++ b/src/views/wms/saleprice/index.vue @@ -10,6 +10,7 @@ @button-base-click="buttonBaseClick" :route-name="routeName" @updataTableColumns="updataTableColumns" + @searchFormClick="searchFormClick" /> @@ -109,6 +110,7 @@ const HeadButttondata = [ defaultButtons.defaultImportBtn({hasPermi:'wms:saleprice:import'}), // 导入 defaultButtons.defaultExportBtn({hasPermi:'wms:saleprice:export'}), // 导出 defaultButtons.defaultFreshBtn(null),//刷新 + defaultButtons.defaultFilterBtn(null), //筛选 defaultButtons.defaultSetBtn(null), // 设置 // { // label: '自定义扩展按钮', @@ -217,6 +219,15 @@ const importSuccess = () => { getList() } +// 筛选提交 +const searchFormClick = (searchData) => { + tableObject.params = { + isSearch: true, + filters: searchData.filters + } + getList() // 刷新当前列表 +} + /** 初始化 **/ onMounted(async() => { getList() diff --git a/src/views/wms/shift/index.vue b/src/views/wms/shift/index.vue index a3936b8ff..f7f4ca291 100644 --- a/src/views/wms/shift/index.vue +++ b/src/views/wms/shift/index.vue @@ -10,6 +10,7 @@ @button-base-click="buttonBaseClick" :route-name="routeName" @updataTableColumns="updataTableColumns" + @searchFormClick="searchFormClick" /> @@ -93,6 +94,7 @@ const HeadButttondata = [ defaultButtons.defaultImportBtn({hasPermi:'wms:shift:import'}), // 导入 defaultButtons.defaultExportBtn({hasPermi:'wms:shift:export'}), // 导出 defaultButtons.defaultFreshBtn(null),//刷新 + defaultButtons.defaultFilterBtn(null), //筛选 defaultButtons.defaultSetBtn(null), // 设置 // { // label: '自定义扩展按钮', @@ -192,6 +194,15 @@ const importSuccess = () => { getList() } +// 筛选提交 +const searchFormClick = (searchData) => { + tableObject.params = { + isSearch: true, + filters: searchData.filters + } + getList() // 刷新当前列表 +} + /** 初始化 **/ onMounted(async() => { getList() diff --git a/src/views/wms/supplier/index.vue b/src/views/wms/supplier/index.vue index fdd77a3ea..916321d34 100644 --- a/src/views/wms/supplier/index.vue +++ b/src/views/wms/supplier/index.vue @@ -10,6 +10,7 @@ @button-base-click="buttonBaseClick" :route-name="routeName" @updataTableColumns="updataTableColumns" + @searchFormClick="searchFormClick" /> @@ -93,6 +94,7 @@ const HeadButttondata = [ defaultButtons.defaultImportBtn({hasPermi:'wms:supplier:import'}), // 导入 defaultButtons.defaultExportBtn({hasPermi:'wms:supplier:export'}), // 导出 defaultButtons.defaultFreshBtn(null),//刷新 + defaultButtons.defaultFilterBtn(null), //筛选 defaultButtons.defaultSetBtn(null), // 设置 // { // label: '自定义扩展按钮', @@ -192,6 +194,15 @@ const importSuccess = () => { getList() } +// 筛选提交 +const searchFormClick = (searchData) => { + tableObject.params = { + isSearch: true, + filters: searchData.filters + } + getList() // 刷新当前列表 +} + /** 初始化 **/ onMounted(async() => { getList() diff --git a/src/views/wms/supplieritem/index.vue b/src/views/wms/supplieritem/index.vue index 5774061d3..f8a89aa7b 100644 --- a/src/views/wms/supplieritem/index.vue +++ b/src/views/wms/supplieritem/index.vue @@ -10,6 +10,7 @@ @button-base-click="buttonBaseClick" :route-name="routeName" @updataTableColumns="updataTableColumns" + @searchFormClick="searchFormClick" /> @@ -121,6 +122,7 @@ const HeadButttondata = [ defaultButtons.defaultImportBtn({hasPermi:'wms:supplieritem:import'}), // 导入 defaultButtons.defaultExportBtn({hasPermi:'wms:supplieritem:export'}), // 导出 defaultButtons.defaultFreshBtn(null),//刷新 + defaultButtons.defaultFilterBtn(null), //筛选 defaultButtons.defaultSetBtn(null), // 设置 // { // label: '自定义扩展按钮', @@ -229,6 +231,15 @@ const importSuccess = () => { getList() } +// 筛选提交 +const searchFormClick = (searchData) => { + tableObject.params = { + isSearch: true, + filters: searchData.filters + } + getList() // 刷新当前列表 +} + /** 初始化 **/ onMounted(async() => { getList() diff --git a/src/views/wms/systemcalendar/index.vue b/src/views/wms/systemcalendar/index.vue index fce845004..beebfd96f 100644 --- a/src/views/wms/systemcalendar/index.vue +++ b/src/views/wms/systemcalendar/index.vue @@ -10,6 +10,7 @@ @button-base-click="buttonBaseClick" :route-name="routeName" @updataTableColumns="updataTableColumns" + @searchFormClick="searchFormClick" /> @@ -93,6 +94,7 @@ const HeadButttondata = [ defaultButtons.defaultImportBtn({hasPermi:'wms:systemcalendar:import'}), // 导入 defaultButtons.defaultExportBtn({hasPermi:'wms:systemcalendar:export'}), // 导出 defaultButtons.defaultFreshBtn(null),//刷新 + defaultButtons.defaultFilterBtn(null), //筛选 defaultButtons.defaultSetBtn(null), // 设置 // { // label: '自定义扩展按钮', @@ -192,6 +194,15 @@ const importSuccess = () => { getList() } +// 筛选提交 +const searchFormClick = (searchData) => { + tableObject.params = { + isSearch: true, + filters: searchData.filters + } + getList() // 刷新当前列表 +} + /** 初始化 **/ onMounted(async() => { getList() diff --git a/src/views/wms/team/index.vue b/src/views/wms/team/index.vue index f15b2e19a..f28746296 100644 --- a/src/views/wms/team/index.vue +++ b/src/views/wms/team/index.vue @@ -10,6 +10,7 @@ @button-base-click="buttonBaseClick" :route-name="routeName" @updataTableColumns="updataTableColumns" + @searchFormClick="searchFormClick" /> @@ -93,6 +94,7 @@ const HeadButttondata = [ defaultButtons.defaultImportBtn({hasPermi:'wms:team:import'}), // 导入 defaultButtons.defaultExportBtn({hasPermi:'wms:team:export'}), // 导出 defaultButtons.defaultFreshBtn(null),//刷新 + defaultButtons.defaultFilterBtn(null), //筛选 defaultButtons.defaultSetBtn(null), // 设置 // { // label: '自定义扩展按钮', @@ -192,6 +194,15 @@ const importSuccess = () => { getList() } +// 筛选提交 +const searchFormClick = (searchData) => { + tableObject.params = { + isSearch: true, + filters: searchData.filters + } + getList() // 刷新当前列表 +} + /** 初始化 **/ onMounted(async() => { getList() diff --git a/src/views/wms/transactiontype/index.vue b/src/views/wms/transactiontype/index.vue index eb5fd4992..92116062b 100644 --- a/src/views/wms/transactiontype/index.vue +++ b/src/views/wms/transactiontype/index.vue @@ -10,6 +10,7 @@ @button-base-click="buttonBaseClick" :route-name="routeName" @updataTableColumns="updataTableColumns" + @searchFormClick="searchFormClick" /> @@ -96,6 +97,7 @@ const HeadButttondata = [ // defaultButtons.defaultImportBtn({hasPermi:'wms:transactiontype:import'}), // 导入 // defaultButtons.defaultExportBtn({hasPermi:'wms:transactiontype:export'}), // 导出 defaultButtons.defaultFreshBtn(null),//刷新 + defaultButtons.defaultFilterBtn(null), //筛选 defaultButtons.defaultSetBtn(null), // 设置 // { // label: '自定义扩展按钮', @@ -195,6 +197,15 @@ const importSuccess = () => { getList() } +// 筛选提交 +const searchFormClick = (searchData) => { + tableObject.params = { + isSearch: true, + filters: searchData.filters + } + getList() // 刷新当前列表 +} + /** 初始化 **/ onMounted(async() => { getList() diff --git a/src/views/wms/warehouse/index.vue b/src/views/wms/warehouse/index.vue index 485460446..64d6d40f6 100644 --- a/src/views/wms/warehouse/index.vue +++ b/src/views/wms/warehouse/index.vue @@ -10,6 +10,7 @@ @button-base-click="buttonBaseClick" :route-name="routeName" @updataTableColumns="updataTableColumns" + @searchFormClick="searchFormClick" /> @@ -92,6 +93,7 @@ const HeadButttondata = [ defaultButtons.defaultImportBtn({hasPermi:'wms:warehouse:import'}), // 导入 defaultButtons.defaultExportBtn({hasPermi:'wms:warehouse:export'}), // 导出 defaultButtons.defaultFreshBtn(null),//刷新 + defaultButtons.defaultFilterBtn(null), //筛选 defaultButtons.defaultSetBtn(null), // 设置 // { // label: '自定义扩展按钮', @@ -191,6 +193,15 @@ const importSuccess = () => { getList() } +// 筛选提交 +const searchFormClick = (searchData) => { + tableObject.params = { + isSearch: true, + filters: searchData.filters + } + getList() // 刷新当前列表 +} + /** 初始化 **/ onMounted(async() => { getList() diff --git a/src/views/wms/workshop/index.vue b/src/views/wms/workshop/index.vue index 0f93faf3d..fb9b6a4cc 100644 --- a/src/views/wms/workshop/index.vue +++ b/src/views/wms/workshop/index.vue @@ -10,6 +10,7 @@ @button-base-click="buttonBaseClick" :route-name="routeName" @updataTableColumns="updataTableColumns" + @searchFormClick="searchFormClick" /> @@ -92,6 +93,7 @@ const HeadButttondata = [ defaultButtons.defaultImportBtn({hasPermi:'wms:workshop:import'}), // 导入 defaultButtons.defaultExportBtn({hasPermi:'wms:workshop:export'}), // 导出 defaultButtons.defaultFreshBtn(null),//刷新 + defaultButtons.defaultFilterBtn(null), //筛选 defaultButtons.defaultSetBtn(null), // 设置 // { // label: '自定义扩展按钮', @@ -191,6 +193,15 @@ const importSuccess = () => { getList() } +// 筛选提交 +const searchFormClick = (searchData) => { + tableObject.params = { + isSearch: true, + filters: searchData.filters + } + getList() // 刷新当前列表 +} + /** 初始化 **/ onMounted(async() => { getList() diff --git a/src/views/wms/workstation/index.vue b/src/views/wms/workstation/index.vue index 618d89d7c..6c096741e 100644 --- a/src/views/wms/workstation/index.vue +++ b/src/views/wms/workstation/index.vue @@ -10,6 +10,7 @@ @button-base-click="buttonBaseClick" :route-name="routeName" @updataTableColumns="updataTableColumns" + @searchFormClick="searchFormClick" /> @@ -120,6 +121,7 @@ const HeadButttondata = [ defaultButtons.defaultImportBtn({hasPermi:'wms:workstation:import'}), // 导入 defaultButtons.defaultExportBtn({hasPermi:'wms:workstation:export'}), // 导出 defaultButtons.defaultFreshBtn(null),//刷新 + defaultButtons.defaultFilterBtn(null), //筛选 defaultButtons.defaultSetBtn(null), // 设置 // { // label: '自定义扩展按钮', @@ -228,6 +230,15 @@ const importSuccess = () => { getList() } +// 筛选提交 +const searchFormClick = (searchData) => { + tableObject.params = { + isSearch: true, + filters: searchData.filters + } + getList() // 刷新当前列表 +} + /** 初始化 **/ onMounted(async() => { getList()