Browse Source

物料仓库默认配置搜索框api修改

master_hella_20240701
chenfang 8 months ago
parent
commit
b6ce3d9bc8
  1. 36
      src/views/wms/basicDataManage/itemManage/itemwarehouse/itemwarehouse.data.ts
  2. 2
      src/views/wms/buttMesManage/mesBarCode/mesBarCode.data.ts
  3. 10
      src/views/wms/deliversettlementManage/deliver/deliverJobMain/deliverJobMain.data.ts

36
src/views/wms/basicDataManage/itemManage/itemwarehouse/itemwarehouse.data.ts

@ -2,10 +2,10 @@ import type { CrudSchema } from '@/hooks/web/useCrudSchemas'
import { dateFormatter } from '@/utils/formatTime' import { dateFormatter } from '@/utils/formatTime'
import * as ItembasicApi from '@/api/wms/itembasic' import * as ItembasicApi from '@/api/wms/itembasic'
import { Itembasic } from '../itembasic/itembasic.data' import { Itembasic } from '../itembasic/itembasic.data'
import * as AreaApi from '@/api/wms/areabasic' import * as WarehouseApi from '@/api/wms/warehouse'
import { Area } from '../../factoryModeling/areabasic/areabasic.data' import { Warehouse } from '../../factoryModeling/warehouse/warehouse.data'
import * as PackageunitApi from '@/api/wms/packageunit' import * as ItempackageApi from '@/api/wms/itempackage'
import { Packageunit } from '../packageunit/packageunit.data' import { Itempackaging } from '../itempackage/itempackage.data'
export const Itemwarehouse = useCrudSchemas(reactive<CrudSchema[]>([ export const Itemwarehouse = useCrudSchemas(reactive<CrudSchema[]>([
{ {
@ -36,7 +36,7 @@ export const Itemwarehouse = useCrudSchemas(reactive<CrudSchema[]>([
} }
}, },
{ {
label: '区域代码', label: '仓库代码',
field: 'warehouseCode', field: 'warehouseCode',
sort: 'custom', sort: 'custom',
isSearch: true, isSearch: true,
@ -47,11 +47,11 @@ export const Itemwarehouse = useCrudSchemas(reactive<CrudSchema[]>([
// labelMessage: '信息提示说明!!!', // labelMessage: '信息提示说明!!!',
componentProps: { componentProps: {
isSearchList: true, // 开启查询弹窗 isSearchList: true, // 开启查询弹窗
searchListPlaceholder: '请选择库代码', // 输入框占位文本 searchListPlaceholder: '请选择库代码', // 输入框占位文本
searchField: 'code', // 查询弹窗赋值字段 searchField: 'code', // 查询弹窗赋值字段
searchTitle: '库基础信息', // 查询弹窗标题 searchTitle: '库基础信息', // 查询弹窗标题
searchAllSchemas: Area.allSchemas, // 查询弹窗所需类 searchAllSchemas: Warehouse.allSchemas, // 查询弹窗所需类
searchPage: AreaApi.getAreaPage, // 查询弹窗所需分页方法 searchPage: WarehouseApi.getWarehousePage, // 查询弹窗所需分页方法
searchCondition: [{ searchCondition: [{
key: 'available', key: 'available',
value: 'TRUE', value: 'TRUE',
@ -85,17 +85,19 @@ export const Itemwarehouse = useCrudSchemas(reactive<CrudSchema[]>([
// labelMessage: '信息提示说明!!!', // labelMessage: '信息提示说明!!!',
componentProps: { componentProps: {
isSearchList: true, // 开启查询弹窗 isSearchList: true, // 开启查询弹窗
searchListPlaceholder: '请选择包装规格代码', // 输入框占位文本 searchListPlaceholder: '请选择物料包装代码', // 输入框占位文本
searchField: 'code', // 查询弹窗赋值字段 searchField: 'packUnit', // 查询弹窗赋值字段
searchTitle: '包装规格基础信息', // 查询弹窗标题 searchTitle: '物料包装信息', // 查询弹窗标题
searchAllSchemas: Packageunit.allSchemas, // 查询弹窗所需类 searchAllSchemas: Itempackaging.allSchemas, // 查询弹窗所需类
searchPage: PackageunitApi.getPackageunitPage, // 查询弹窗所需分页方法 searchPage: ItempackageApi.getItempackagingPage, // 查询弹窗所需分页方法
searchCondition: [{ searchCondition: [{
key: 'available', key: 'available',
value: 'TRUE', value: 'TRUE',
action: '==', },{
isSearch: true, key: 'itemCode',
isMainValue: false value: 'itemCode',
message: "请选择物料代码",
isMainValue: true
}] }]
} }
} }

2
src/views/wms/buttMesManage/mesBarCode/mesBarCode.data.ts

@ -170,7 +170,7 @@ export const MesBarCode = useCrudSchemas(reactive<CrudSchema[]>([
}, },
{ {
label: '创建时间', label: '创建时间',
field: 'createTime', field: 'createTime',
sort: 'custom', sort: 'custom',
formatter: dateFormatter, formatter: dateFormatter,
table: { table: {

10
src/views/wms/deliversettlementManage/deliver/deliverJobMain/deliverJobMain.data.ts

@ -76,6 +76,16 @@ export const DeliverJobMain = useCrudSchemas(reactive<CrudSchema[]>([
width: 150 width: 150
}, },
}, },
{
label: '发货类型',
field: 'deliverType',
sort: 'custom',
dictType: DICT_TYPE.DELIVER_TYPE,
dictClass: 'string',
table: {
width: 150
},
},
{ {
label: '承运商', label: '承运商',
field: 'carrierCode', field: 'carrierCode',

Loading…
Cancel
Save