From 12dd83dd16123e5036a1e3312435a3b46dffe9c0 Mon Sep 17 00:00:00 2001 From: chenfang Date: Thu, 21 Mar 2024 14:02:58 +0800 Subject: [PATCH] =?UTF-8?q?=E5=89=8D=E7=AB=AF=E5=B1=95=E7=A4=BA=E5=AD=97?= =?UTF-8?q?=E5=85=B8=E9=A1=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../customeritem/customeritem.data.ts | 4 ++-- .../itemManage/packageunit/packageunit.data.ts | 14 ++++++++++++++ 2 files changed, 16 insertions(+), 2 deletions(-) diff --git a/src/views/wms/basicDataManage/customerManage/customeritem/customeritem.data.ts b/src/views/wms/basicDataManage/customerManage/customeritem/customeritem.data.ts index 9fb22e6ec..21b99adbc 100644 --- a/src/views/wms/basicDataManage/customerManage/customeritem/customeritem.data.ts +++ b/src/views/wms/basicDataManage/customerManage/customeritem/customeritem.data.ts @@ -109,8 +109,8 @@ export const Customeritem = useCrudSchemas(reactive([ { label: '客户包装单位', field: 'packUnit', - // dictType: DICT_TYPE.PACK_UNIT, - // dictClass: 'string', + dictType: DICT_TYPE.PACK_UNIT, + dictClass: 'string', isTable: true, sort: 'custom', table: { diff --git a/src/views/wms/basicDataManage/itemManage/packageunit/packageunit.data.ts b/src/views/wms/basicDataManage/itemManage/packageunit/packageunit.data.ts index 6e3fd6394..879b6f278 100644 --- a/src/views/wms/basicDataManage/itemManage/packageunit/packageunit.data.ts +++ b/src/views/wms/basicDataManage/itemManage/packageunit/packageunit.data.ts @@ -2,7 +2,9 @@ import type { CrudSchema } from '@/hooks/web/useCrudSchemas' import { dateFormatter } from '@/utils/formatTime' import { fa } from 'element-plus/es/locale' import * as PackageunitApi from '@/api/wms/packageunit' +import { Select } from '@element-plus/icons-vue/dist/types' +//新增时针对父包装代码copy出的实体 export const PackageunitCopy = useCrudSchemas(reactive([ { label: '包装代码', @@ -81,6 +83,12 @@ export const PackageunitCopy = useCrudSchemas(reactive([ label: '单位', field: 'unit', sort: 'custom', + dictType: DICT_TYPE.PACK_UNIT, + dictClass: 'string', + isSearch: true, + table: { + width: 150 + }, }, { label: '是否可用', @@ -363,6 +371,12 @@ export const Packageunit = useCrudSchemas(reactive([ label: '单位', field: 'unit', sort: 'custom', + dictType: DICT_TYPE.PACK_UNIT, + dictClass: 'string', + isSearch: true, + table: { + width: 150 + }, }, { label: '是否可用',