diff --git a/src/api/wms/bom/index.ts b/src/api/wms/bom/index.ts index a5dad29f3..e6efe0e21 100644 --- a/src/api/wms/bom/index.ts +++ b/src/api/wms/bom/index.ts @@ -16,7 +16,13 @@ export interface BomVO { // 查询物料清单列表 export const getBomPage = async (params) => { - return await request.get({ url: `/wms/bom/page`, params }) + if (params.isSearch) { + delete params.isSearch + const data = {...params} + return request.post({ url: '/wms/bom/senior', data }) + } else { + return await request.get({ url: `/wms/bom/page`, params }) + } } // 查询物料清单详情 diff --git a/src/api/wms/itempackaging/index.ts b/src/api/wms/itempackaging/index.ts index e1ee2b872..e74098611 100644 --- a/src/api/wms/itempackaging/index.ts +++ b/src/api/wms/itempackaging/index.ts @@ -21,7 +21,13 @@ export interface ItempackagingVO { // 查询物品包装信息 列表 export const getItempackagingPage = async (params) => { - return await request.get({ url: `/wms/itempackaging/page`, params }) + if (params.isSearch) { + delete params.isSearch + const data = {...params} + return request.post({ url: '/wms/itempackaging/senior', data }) + } else { + return await request.get({ url: `/wms/itempackaging/page`, params }) + } } // 查询物品包装信息 详情 diff --git a/src/api/wms/productionlineitem/index.ts b/src/api/wms/productionlineitem/index.ts index 5c501b03f..bd6c109ee 100644 --- a/src/api/wms/productionlineitem/index.ts +++ b/src/api/wms/productionlineitem/index.ts @@ -12,7 +12,13 @@ export interface ProductionlineitemVO { // 查询生产线物料关系列表 export const getProductionlineitemPage = async (params) => { - return await request.get({ url: `/wms/productionlineitem/page`, params }) + if (params.isSearch) { + delete params.isSearch + const data = {...params} + return request.post({ url: '/wms/productionlineitem/senior', data }) + } else { + return await request.get({ url: `/wms/productionlineitem/page`, params }) + } } // 查询生产线物料关系详情 diff --git a/src/api/wms/stdcostprice/index.ts b/src/api/wms/stdcostprice/index.ts index b2721ab6a..a8ff7cbe4 100644 --- a/src/api/wms/stdcostprice/index.ts +++ b/src/api/wms/stdcostprice/index.ts @@ -13,7 +13,13 @@ export interface StdcostpriceVO { // 查询标准成本价格单列表 export const getStdcostpricePage = async (params) => { - return await request.get({ url: `/wms/stdcostprice/page`, params }) + if (params.isSearch) { + delete params.isSearch + const data = {...params} + return request.post({ url: '/wms/stdcostprice/senior', data }) + } else { + return await request.get({ url: `/wms/stdcostprice/page`, params }) + } } // 查询标准成本价格单详情 diff --git a/src/views/wms/bom/index.vue b/src/views/wms/bom/index.vue index 592ef3389..e00911ad7 100644 --- a/src/views/wms/bom/index.vue +++ b/src/views/wms/bom/index.vue @@ -10,6 +10,7 @@ @button-base-click="buttonBaseClick" :routeName="routeName" @updataTableColumns="updataTableColumns" + @searchFormClick="searchFormClick" /> @@ -113,8 +114,8 @@ const HeadButttondata = [ defaultButtons.defaultAddBtn({hasPermi:'wms:bom:create'}), // 新增 defaultButtons.defaultImportBtn({hasPermi:'wms:bom:import'}), // 导入 defaultButtons.defaultExportBtn({hasPermi:'wms:bom:export'}), // 导出 - // defaultButtons.defaultFilterBtn(), // 筛选 defaultButtons.defaultFreshBtn(null), // 刷新 + defaultButtons.defaultFilterBtn(null), // 筛选 defaultButtons.defaultSetBtn(null), // 设置 // { // label: '自定义扩展按钮', @@ -234,6 +235,15 @@ const importSuccess = () => { getList() } +// 筛选提交 +const searchFormClick = (searchData) => { + tableObject.params = { + isSearch: true, + filters: searchData.filters + } + getList() // 刷新当前列表 +} + /** 初始化 **/ onMounted(async () => { getList() diff --git a/src/views/wms/itembasic/index.vue b/src/views/wms/itembasic/index.vue index 82de830f3..e9b94b716 100644 --- a/src/views/wms/itembasic/index.vue +++ b/src/views/wms/itembasic/index.vue @@ -190,7 +190,6 @@ const handleExport = async () => { } } - // 筛选提交 const searchFormClick = (searchData) => { tableObject.params = { diff --git a/src/views/wms/itempackaging/index.vue b/src/views/wms/itempackaging/index.vue index 773df3889..b913869c2 100644 --- a/src/views/wms/itempackaging/index.vue +++ b/src/views/wms/itempackaging/index.vue @@ -10,6 +10,7 @@ @button-base-click="buttonBaseClick" :routeName="routeName" @updataTableColumns="updataTableColumns" + @searchFormClick="searchFormClick" /> @@ -102,8 +103,8 @@ const HeadButttondata = [ defaultButtons.defaultAddBtn({hasPermi:'wms:itempackaging:create'}), // 新增 defaultButtons.defaultImportBtn({hasPermi:'wms:itempackaging:import'}), // 导入 defaultButtons.defaultExportBtn({hasPermi:'wms:itempackaging:export'}), // 导出 - // defaultButtons.defaultFilterBtn(), // 筛选 defaultButtons.defaultFreshBtn(null), // 刷新 + defaultButtons.defaultFilterBtn(null), // 筛选 defaultButtons.defaultSetBtn(null), // 设置 // { // label: '自定义扩展按钮', @@ -213,6 +214,15 @@ const importSuccess = () => { getList() } +// 筛选提交 +const searchFormClick = (searchData) => { + tableObject.params = { + isSearch: true, + filters: searchData.filters + } + getList() // 刷新当前列表 +} + /** 初始化 **/ onMounted(async () => { getList() diff --git a/src/views/wms/productionlineitem/index.vue b/src/views/wms/productionlineitem/index.vue index c5c30a822..d0f4663fe 100644 --- a/src/views/wms/productionlineitem/index.vue +++ b/src/views/wms/productionlineitem/index.vue @@ -10,6 +10,7 @@ @button-base-click="buttonBaseClick" :routeName="routeName" @updataTableColumns="updataTableColumns" + @searchFormClick="searchFormClick" /> @@ -114,8 +115,8 @@ const HeadButttondata = [ defaultButtons.defaultAddBtn({hasPermi:'wms:productionlineitem:create'}), // 新增 defaultButtons.defaultImportBtn({hasPermi:'wms:productionlineitem:import'}), // 导入 defaultButtons.defaultExportBtn({hasPermi:'wms:productionlineitem:export'}), // 导出 - // defaultButtons.defaultFilterBtn(), // 筛选 defaultButtons.defaultFreshBtn(null), // 刷新 + defaultButtons.defaultFilterBtn(null), // 筛选 defaultButtons.defaultSetBtn(null), // 设置 // { // label: '自定义扩展按钮', @@ -224,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/stdcostprice/index.vue b/src/views/wms/stdcostprice/index.vue index ac1c34ab1..07f3d796b 100644 --- a/src/views/wms/stdcostprice/index.vue +++ b/src/views/wms/stdcostprice/index.vue @@ -10,6 +10,7 @@ @button-base-click="buttonBaseClick" :routeName="routeName" @updataTableColumns="updataTableColumns" + @searchFormClick="searchFormClick" /> @@ -108,8 +109,8 @@ const HeadButttondata = [ defaultButtons.defaultAddBtn({hasPermi:'wms:stdcostprice:create'}), // 新增 defaultButtons.defaultImportBtn({hasPermi:'wms:stdcostprice:import'}), // 导入 defaultButtons.defaultExportBtn({hasPermi:'wms:stdcostprice:export'}), // 导出 - // defaultButtons.defaultFilterBtn(), // 筛选 defaultButtons.defaultFreshBtn(null), // 刷新 + defaultButtons.defaultFilterBtn(null), // 筛选 defaultButtons.defaultSetBtn(null), // 设置 // { // label: '自定义扩展按钮', @@ -218,6 +219,15 @@ const importSuccess = () => { getList() } +// 筛选提交 +const searchFormClick = (searchData) => { + tableObject.params = { + isSearch: true, + filters: searchData.filters + } + getList() // 刷新当前列表 +} + /** 初始化 **/ onMounted(async () => { getList()