diff --git a/README.md b/README.md index f3c150968..d73d0dd7b 100644 --- a/README.md +++ b/README.md @@ -26,6 +26,7 @@ form: { value:'prodLine', // 指主表某字段 message: '请选择生产线信息!', // 当前置条件为空时 弹出信息提示 isMainValue: true // 表示查询条件是主表的字段的值 + isOptional:true, // isMainValue=true情况,添加参数可选可空的判断 isFilterValue:true // 字段拼到filters里,和isMainValue配合使用 action: '==', // 查询拼接条件 }, diff --git a/src/api/wms/recommendLocationHistory/index.ts b/src/api/wms/recommendLocationHistory/index.ts new file mode 100644 index 000000000..f19147d5d --- /dev/null +++ b/src/api/wms/recommendLocationHistory/index.ts @@ -0,0 +1,57 @@ +import request from '@/config/axios' + +export interface RecommendLocationHistoryVO { + id: number + businessNumber: string + businessId: number + toLocation: string + ruleName: string + priority: string + locationCollect: string + balanceLocationCollect: string + expectinLocationCollect: string + remark: string + extraProperties: string + concurrencyStamp: number +} + +// 查询推荐库位推荐记录列表 +export const getRecommendLocationHistoryPage = async (params) => { + if (params.isSearch) { + delete params.isSearch + const data = {...params} + return await request.post({ url: '/wms/recommend-location-history/senior', data }) + } else { + return await request.get({ url: `/wms/recommend-location-history/page`, params }) + } +} + +// 查询推荐库位推荐记录详情 +export const getRecommendLocationHistory = async (id: number) => { + return await request.get({ url: `/wms/recommend-location-history/get?id=` + id }) +} + +// 新增推荐库位推荐记录 +export const createRecommendLocationHistory = async (data: RecommendLocationHistoryVO) => { + return await request.post({ url: `/wms/recommend-location-history/create`, data }) +} + +// 修改推荐库位推荐记录 +export const updateRecommendLocationHistory = async (data: RecommendLocationHistoryVO) => { + return await request.put({ url: `/wms/recommend-location-history/update`, data }) +} + +// 删除推荐库位推荐记录 +export const deleteRecommendLocationHistory = async (id: number) => { + return await request.delete({ url: `/wms/recommend-location-history/delete?id=` + id }) +} + +// 导出推荐库位推荐记录 Excel +export const exportRecommendLocationHistory = async (params) => { + return await request.download({ url: `/wms/recommend-location-history/export-excel`, params }) +} + +// 下载用户导入模板 +export const importTemplate = () => { + return request.download({ url: '/wms/recommend-location-history/get-import-template' }) +} \ No newline at end of file diff --git a/src/components/BasicForm/src/BasicForm.vue b/src/components/BasicForm/src/BasicForm.vue index 5c772061e..7daea779c 100644 --- a/src/components/BasicForm/src/BasicForm.vue +++ b/src/components/BasicForm/src/BasicForm.vue @@ -516,7 +516,9 @@ const opensearchTable = ( _searchCondition[searchCondition[i].key] == '' || _searchCondition[searchCondition[i].key] == undefined ) { - isNull = true + if(!searchCondition[i].isOptional){ // 添加参数可选可空的判断 + isNull = true + } } if (isNull) { message.warning( diff --git a/src/components/ChangeRecord/src/ChangeRecord.vue b/src/components/ChangeRecord/src/ChangeRecord.vue index df1855f7e..59d24cb5d 100644 --- a/src/components/ChangeRecord/src/ChangeRecord.vue +++ b/src/components/ChangeRecord/src/ChangeRecord.vue @@ -21,11 +21,12 @@