From cc67d51ebbc12d01be918c095cc01df2fc3588b7 Mon Sep 17 00:00:00 2001 From: zhaoxuebing <1291173720@qq.com> Date: Wed, 7 Feb 2024 15:51:23 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E9=A1=B5=E9=9D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../itemwarehouse/itemwarehouse.data.ts | 96 ++++++++++++++++--- 1 file changed, 85 insertions(+), 11 deletions(-) diff --git a/src/views/wms/basicDataManage/itemwarehouse/itemwarehouse.data.ts b/src/views/wms/basicDataManage/itemwarehouse/itemwarehouse.data.ts index f9da3514c..f995dde02 100644 --- a/src/views/wms/basicDataManage/itemwarehouse/itemwarehouse.data.ts +++ b/src/views/wms/basicDataManage/itemwarehouse/itemwarehouse.data.ts @@ -1,5 +1,11 @@ import type { CrudSchema } from '@/hooks/web/useCrudSchemas' import { dateFormatter } from '@/utils/formatTime' +import * as ItembasicApi from '@/api/wms/itembasic' +import { Itembasic } from '../itemManage/itembasic/itembasic.data' +import * as AreaApi from '@/api/wms/areabasic' +import { Area } from '../factoryModeling/areabasic/areabasic.data' +import * as PackageunitApi from '@/api/wms/packageunit' +import { Packageunit } from '../itemManage/packageunit/packageunit.data' // 表单校验 export const ItemwarehouseRules = reactive({ @@ -11,34 +17,97 @@ export const ItemwarehouseRules = reactive({ }) export const Itemwarehouse = useCrudSchemas(reactive([ - { - label: 'id', - field: 'id', - sort: 'custom', - isForm: false, - }, { label: '物品代码', field: 'itemCode', sort: 'custom', isSearch: true, + table:{ + width: 150 + }, + form: { + // labelMessage: '信息提示说明!!!', + componentProps: { + isSearchList: true, // 开启查询弹窗 + searchListPlaceholder: '请选择物料代码', // 输入框占位文本 + searchField: 'code', // 查询弹窗赋值字段 + searchTitle: '物料基础信息', // 查询弹窗标题 + searchAllSchemas: Itembasic.allSchemas, // 查询弹窗所需类 + searchPage: ItembasicApi.getItembasicPage, // 查询弹窗所需分页方法 + searchCondition: [{ + key: 'available', + value: 'TRUE', + action: '==', + isSearch: true, + isMainValue: false + }] + } + } }, { label: '区域代码', field: 'warehouseCode', sort: 'custom', isSearch: true, + table:{ + width: 150 + }, + form: { + // labelMessage: '信息提示说明!!!', + componentProps: { + isSearchList: true, // 开启查询弹窗 + searchListPlaceholder: '请选择库区代码', // 输入框占位文本 + searchField: 'code', // 查询弹窗赋值字段 + searchTitle: '库区基础信息', // 查询弹窗标题 + searchAllSchemas: Area.allSchemas, // 查询弹窗所需类 + searchPage: AreaApi.getAreaPage, // 查询弹窗所需分页方法 + searchCondition: [{ + key: 'available', + value: 'TRUE', + action: '==', + isSearch: true, + isMainValue: false + }] + } + } }, { label: '管理精度', field: 'manageMode', sort: 'custom', isSearch: true, + dictType: DICT_TYPE.MANAGEMENT_MODE, + dictClass: 'string', + isTable: true, + table: { + width: 120 + } }, { label: '入库包装规格', field: 'packUnit', sort: 'custom', + table:{ + width: 150 + }, + form: { + // labelMessage: '信息提示说明!!!', + componentProps: { + isSearchList: true, // 开启查询弹窗 + searchListPlaceholder: '请选择包装规格代码', // 输入框占位文本 + searchField: 'code', // 查询弹窗赋值字段 + searchTitle: '包装规格基础信息', // 查询弹窗标题 + searchAllSchemas: Packageunit.allSchemas, // 查询弹窗所需类 + searchPage: PackageunitApi.getPackageunitPage, // 查询弹窗所需分页方法 + searchCondition: [{ + key: 'available', + value: 'TRUE', + action: '==', + isSearch: true, + isMainValue: false + }] + } + } }, { label: '是否可用', @@ -71,11 +140,6 @@ export const Itemwarehouse = useCrudSchemas(reactive([ } }, }, - { - label: '备注', - field: 'remark', - sort: 'custom', - }, { label: '创建时间', field: 'createTime', @@ -89,30 +153,40 @@ export const Itemwarehouse = useCrudSchemas(reactive([ sort: 'custom', formatter: dateFormatter, isForm: false, + isTable: false }, { label: '删除者ID', field: 'deleterId', sort: 'custom', isForm: false, + isTable: false }, { label: '扩展属性', field: 'extraProperties', sort: 'custom', isForm: false, + isTable: false }, { label: '并发乐观锁', field: 'concurrencyStamp', sort: 'custom', isForm: false, + isTable: false }, { label: '地点ID', field: 'siteId', sort: 'custom', isForm: false, + isTable: false + }, + { + label: '备注', + field: 'remark', + sort: 'custom', }, { label: '操作',