Browse Source

物品管理添加筛选功能

master
陈薪名 1 year ago
parent
commit
a84b07a50e
  1. 6
      src/api/wms/bom/index.ts
  2. 6
      src/api/wms/itempackaging/index.ts
  3. 6
      src/api/wms/productionlineitem/index.ts
  4. 6
      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

6
src/api/wms/bom/index.ts

@ -16,8 +16,14 @@ export interface BomVO {
// 查询物料清单列表 // 查询物料清单列表
export const getBomPage = async (params) => { export const getBomPage = async (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 }) return await request.get({ url: `/wms/bom/page`, params })
} }
}
// 查询物料清单详情 // 查询物料清单详情
export const getBom = async (id: number) => { export const getBom = async (id: number) => {

6
src/api/wms/itempackaging/index.ts

@ -21,8 +21,14 @@ export interface ItempackagingVO {
// 查询物品包装信息 列表 // 查询物品包装信息 列表
export const getItempackagingPage = async (params) => { export const getItempackagingPage = async (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 }) return await request.get({ url: `/wms/itempackaging/page`, params })
} }
}
// 查询物品包装信息 详情 // 查询物品包装信息 详情
export const getItempackaging = async (id: number) => { export const getItempackaging = async (id: number) => {

6
src/api/wms/productionlineitem/index.ts

@ -12,8 +12,14 @@ export interface ProductionlineitemVO {
// 查询生产线物料关系列表 // 查询生产线物料关系列表
export const getProductionlineitemPage = async (params) => { export const getProductionlineitemPage = async (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 }) return await request.get({ url: `/wms/productionlineitem/page`, params })
} }
}
// 查询生产线物料关系详情 // 查询生产线物料关系详情
export const getProductionlineitem = async (id: number) => { export const getProductionlineitem = async (id: number) => {

6
src/api/wms/stdcostprice/index.ts

@ -13,8 +13,14 @@ export interface StdcostpriceVO {
// 查询标准成本价格单列表 // 查询标准成本价格单列表
export const getStdcostpricePage = async (params) => { export const getStdcostpricePage = async (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 }) return await request.get({ url: `/wms/stdcostprice/page`, params })
} }
}
// 查询标准成本价格单详情 // 查询标准成本价格单详情
export const getStdcostprice = async (id: number) => { export const getStdcostprice = async (id: number) => {

12
src/views/wms/bom/index.vue

@ -10,6 +10,7 @@
@button-base-click="buttonBaseClick" @button-base-click="buttonBaseClick"
:routeName="routeName" :routeName="routeName"
@updataTableColumns="updataTableColumns" @updataTableColumns="updataTableColumns"
@searchFormClick="searchFormClick"
/> />
<!-- 列表 --> <!-- 列表 -->
@ -113,8 +114,8 @@ const HeadButttondata = [
defaultButtons.defaultAddBtn({hasPermi:'wms:bom:create'}), // defaultButtons.defaultAddBtn({hasPermi:'wms:bom:create'}), //
defaultButtons.defaultImportBtn({hasPermi:'wms:bom:import'}), // defaultButtons.defaultImportBtn({hasPermi:'wms:bom:import'}), //
defaultButtons.defaultExportBtn({hasPermi:'wms:bom:export'}), // defaultButtons.defaultExportBtn({hasPermi:'wms:bom:export'}), //
// defaultButtons.defaultFilterBtn(), //
defaultButtons.defaultFreshBtn(null), // defaultButtons.defaultFreshBtn(null), //
defaultButtons.defaultFilterBtn(null), //
defaultButtons.defaultSetBtn(null), // defaultButtons.defaultSetBtn(null), //
// { // {
// label: '', // label: '',
@ -234,6 +235,15 @@ const importSuccess = () => {
getList() getList()
} }
//
const searchFormClick = (searchData) => {
tableObject.params = {
isSearch: true,
filters: searchData.filters
}
getList() //
}
/** 初始化 **/ /** 初始化 **/
onMounted(async () => { onMounted(async () => {
getList() getList()

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

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

12
src/views/wms/itempackaging/index.vue

@ -10,6 +10,7 @@
@button-base-click="buttonBaseClick" @button-base-click="buttonBaseClick"
:routeName="routeName" :routeName="routeName"
@updataTableColumns="updataTableColumns" @updataTableColumns="updataTableColumns"
@searchFormClick="searchFormClick"
/> />
<!-- 列表 --> <!-- 列表 -->
@ -102,8 +103,8 @@ const HeadButttondata = [
defaultButtons.defaultAddBtn({hasPermi:'wms:itempackaging:create'}), // defaultButtons.defaultAddBtn({hasPermi:'wms:itempackaging:create'}), //
defaultButtons.defaultImportBtn({hasPermi:'wms:itempackaging:import'}), // defaultButtons.defaultImportBtn({hasPermi:'wms:itempackaging:import'}), //
defaultButtons.defaultExportBtn({hasPermi:'wms:itempackaging:export'}), // defaultButtons.defaultExportBtn({hasPermi:'wms:itempackaging:export'}), //
// defaultButtons.defaultFilterBtn(), //
defaultButtons.defaultFreshBtn(null), // defaultButtons.defaultFreshBtn(null), //
defaultButtons.defaultFilterBtn(null), //
defaultButtons.defaultSetBtn(null), // defaultButtons.defaultSetBtn(null), //
// { // {
// label: '', // label: '',
@ -213,6 +214,15 @@ const importSuccess = () => {
getList() getList()
} }
//
const searchFormClick = (searchData) => {
tableObject.params = {
isSearch: true,
filters: searchData.filters
}
getList() //
}
/** 初始化 **/ /** 初始化 **/
onMounted(async () => { onMounted(async () => {
getList() getList()

12
src/views/wms/productionlineitem/index.vue

@ -10,6 +10,7 @@
@button-base-click="buttonBaseClick" @button-base-click="buttonBaseClick"
:routeName="routeName" :routeName="routeName"
@updataTableColumns="updataTableColumns" @updataTableColumns="updataTableColumns"
@searchFormClick="searchFormClick"
/> />
<!-- 列表 --> <!-- 列表 -->
@ -114,8 +115,8 @@ const HeadButttondata = [
defaultButtons.defaultAddBtn({hasPermi:'wms:productionlineitem:create'}), // defaultButtons.defaultAddBtn({hasPermi:'wms:productionlineitem:create'}), //
defaultButtons.defaultImportBtn({hasPermi:'wms:productionlineitem:import'}), // defaultButtons.defaultImportBtn({hasPermi:'wms:productionlineitem:import'}), //
defaultButtons.defaultExportBtn({hasPermi:'wms:productionlineitem:export'}), // defaultButtons.defaultExportBtn({hasPermi:'wms:productionlineitem:export'}), //
// defaultButtons.defaultFilterBtn(), //
defaultButtons.defaultFreshBtn(null), // defaultButtons.defaultFreshBtn(null), //
defaultButtons.defaultFilterBtn(null), //
defaultButtons.defaultSetBtn(null), // defaultButtons.defaultSetBtn(null), //
// { // {
// label: '', // label: '',
@ -224,6 +225,15 @@ const importSuccess = () => {
getList() getList()
} }
//
const searchFormClick = (searchData) => {
tableObject.params = {
isSearch: true,
filters: searchData.filters
}
getList() //
}
/** 初始化 **/ /** 初始化 **/
onMounted(async () => { onMounted(async () => {
getList() getList()

12
src/views/wms/stdcostprice/index.vue

@ -10,6 +10,7 @@
@button-base-click="buttonBaseClick" @button-base-click="buttonBaseClick"
:routeName="routeName" :routeName="routeName"
@updataTableColumns="updataTableColumns" @updataTableColumns="updataTableColumns"
@searchFormClick="searchFormClick"
/> />
<!-- 列表 --> <!-- 列表 -->
@ -108,8 +109,8 @@ const HeadButttondata = [
defaultButtons.defaultAddBtn({hasPermi:'wms:stdcostprice:create'}), // defaultButtons.defaultAddBtn({hasPermi:'wms:stdcostprice:create'}), //
defaultButtons.defaultImportBtn({hasPermi:'wms:stdcostprice:import'}), // defaultButtons.defaultImportBtn({hasPermi:'wms:stdcostprice:import'}), //
defaultButtons.defaultExportBtn({hasPermi:'wms:stdcostprice:export'}), // defaultButtons.defaultExportBtn({hasPermi:'wms:stdcostprice:export'}), //
// defaultButtons.defaultFilterBtn(), //
defaultButtons.defaultFreshBtn(null), // defaultButtons.defaultFreshBtn(null), //
defaultButtons.defaultFilterBtn(null), //
defaultButtons.defaultSetBtn(null), // defaultButtons.defaultSetBtn(null), //
// { // {
// label: '', // label: '',
@ -218,6 +219,15 @@ const importSuccess = () => {
getList() getList()
} }
//
const searchFormClick = (searchData) => {
tableObject.params = {
isSearch: true,
filters: searchData.filters
}
getList() //
}
/** 初始化 **/ /** 初始化 **/
onMounted(async () => { onMounted(async () => {
getList() getList()

Loading…
Cancel
Save