Browse Source

前端展示字典项

master_hella_20240701
chenfang 8 months ago
parent
commit
12dd83dd16
  1. 4
      src/views/wms/basicDataManage/customerManage/customeritem/customeritem.data.ts
  2. 14
      src/views/wms/basicDataManage/itemManage/packageunit/packageunit.data.ts

4
src/views/wms/basicDataManage/customerManage/customeritem/customeritem.data.ts

@ -109,8 +109,8 @@ export const Customeritem = useCrudSchemas(reactive<CrudSchema[]>([
{ {
label: '客户包装单位', label: '客户包装单位',
field: 'packUnit', field: 'packUnit',
// dictType: DICT_TYPE.PACK_UNIT, dictType: DICT_TYPE.PACK_UNIT,
// dictClass: 'string', dictClass: 'string',
isTable: true, isTable: true,
sort: 'custom', sort: 'custom',
table: { table: {

14
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 { dateFormatter } from '@/utils/formatTime'
import { fa } from 'element-plus/es/locale' import { fa } from 'element-plus/es/locale'
import * as PackageunitApi from '@/api/wms/packageunit' import * as PackageunitApi from '@/api/wms/packageunit'
import { Select } from '@element-plus/icons-vue/dist/types'
//新增时针对父包装代码copy出的实体
export const PackageunitCopy = useCrudSchemas(reactive<CrudSchema[]>([ export const PackageunitCopy = useCrudSchemas(reactive<CrudSchema[]>([
{ {
label: '包装代码', label: '包装代码',
@ -81,6 +83,12 @@ export const PackageunitCopy = useCrudSchemas(reactive<CrudSchema[]>([
label: '单位', label: '单位',
field: 'unit', field: 'unit',
sort: 'custom', sort: 'custom',
dictType: DICT_TYPE.PACK_UNIT,
dictClass: 'string',
isSearch: true,
table: {
width: 150
},
}, },
{ {
label: '是否可用', label: '是否可用',
@ -363,6 +371,12 @@ export const Packageunit = useCrudSchemas(reactive<CrudSchema[]>([
label: '单位', label: '单位',
field: 'unit', field: 'unit',
sort: 'custom', sort: 'custom',
dictType: DICT_TYPE.PACK_UNIT,
dictClass: 'string',
isSearch: true,
table: {
width: 150
},
}, },
{ {
label: '是否可用', label: '是否可用',

Loading…
Cancel
Save