Browse Source

物品基础信息筛选

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

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

@ -31,7 +31,13 @@ export interface ItembasicVO {
// 查询物品基本信息列表
export const getItembasicPage = async (params) => {
return await request.get({ url: `/wms/itembasic/page`, 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 })
}
}
// 查询物品基本信息详情

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

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

Loading…
Cancel
Save