Browse Source

物品基础信息筛选

master
陈薪名 1 year ago
parent
commit
fba97a68c5
  1. 6
      src/api/wms/itembasic/index.ts
  2. 14
      src/views/wms/itembasic/index.vue

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

@ -31,8 +31,14 @@ export interface ItembasicVO {
// 查询物品基本信息列表 // 查询物品基本信息列表
export const getItembasicPage = async (params) => { export const getItembasicPage = async (params) => {
if (params.isSearch) {
delete params.isSearch
const data = {...params}
return request.post({ url: '/wms/itembasic/senior', data })
} else {
return await request.get({ url: `/wms/itembasic/page`, params }) return await request.get({ url: `/wms/itembasic/page`, params })
} }
}
// 查询物品基本信息详情 // 查询物品基本信息详情
export const getItembasic = async (id: number) => { export const getItembasic = async (id: number) => {

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

@ -11,6 +11,7 @@
:tableColumns="tableColumns" :tableColumns="tableColumns"
:routeName="routeName" :routeName="routeName"
@updataTableColumns="updataTableColumns" @updataTableColumns="updataTableColumns"
@searchFormClick="searchFormClick"
/> />
<!-- 列表 --> <!-- 列表 -->
@ -71,8 +72,8 @@ const HeadButttondata = [
defaultButtons.defaultAddBtn(null), // defaultButtons.defaultAddBtn(null), //
defaultButtons.defaultImportBtn(null), // defaultButtons.defaultImportBtn(null), //
defaultButtons.defaultExportBtn(null), // defaultButtons.defaultExportBtn(null), //
// defaultButtons.defaultFilterBtn(), //
defaultButtons.defaultFreshBtn(null), // defaultButtons.defaultFreshBtn(null), //
defaultButtons.defaultFilterBtn(null), //
defaultButtons.defaultSetBtn(null), // defaultButtons.defaultSetBtn(null), //
// { // {
// label: '', // label: '',
@ -113,7 +114,6 @@ const buttonBaseClick = (val, item) => {
handleExport() handleExport()
} else if (val == 'refresh') { // } else if (val == 'refresh') { //
getList() getList()
} else if (val == 'filtrate') { //
} else { // } else { //
console.log('其他按钮', item) console.log('其他按钮', item)
} }
@ -190,6 +190,16 @@ const handleExport = async () => {
} }
} }
//
const searchFormClick = (searchData) => {
tableObject.params = {
isSearch: true,
filters: searchData.filters
}
getList() //
}
/** 初始化 **/ /** 初始化 **/
onMounted(() => { onMounted(() => {
getList() getList()

Loading…
Cancel
Save