Browse Source

物品管理添加筛选功能

master
陈薪名 1 year ago
parent
commit
a84b07a50e
  1. 8
      src/api/wms/bom/index.ts
  2. 8
      src/api/wms/itempackaging/index.ts
  3. 8
      src/api/wms/productionlineitem/index.ts
  4. 8
      src/api/wms/stdcostprice/index.ts
  5. 12
      src/views/wms/bom/index.vue
  6. 1
      src/views/wms/itembasic/index.vue
  7. 12
      src/views/wms/itempackaging/index.vue
  8. 12
      src/views/wms/productionlineitem/index.vue
  9. 12
      src/views/wms/stdcostprice/index.vue

8
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 })
}
}
// 查询物料清单详情

8
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 })
}
}
// 查询物品包装信息 详情

8
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 })
}
}
// 查询生产线物料关系详情

8
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 })
}
}
// 查询标准成本价格单详情

12
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()

1
src/views/wms/itembasic/index.vue

@ -190,7 +190,6 @@ const handleExport = async () => {
}
}
//
const searchFormClick = (searchData) => {
tableObject.params = {

12
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()

12
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()

12
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()

Loading…
Cancel
Save