|
|
@ -2,6 +2,8 @@ import type { CrudSchema } from '@/hooks/web/useCrudSchemas' |
|
|
|
import { dateFormatter } from '@/utils/formatTime' |
|
|
|
import * as ItembasicApi from '@/api/wms/itembasic' |
|
|
|
import { Itembasic } from '../itembasic/itembasic.data' |
|
|
|
import * as PackageunitApi from '@/api/wms/packageunit' |
|
|
|
import { Packageunit } from '../packageunit/packageunit.data' |
|
|
|
|
|
|
|
const { t } = useI18n() // 国际化
|
|
|
|
|
|
|
@ -50,16 +52,30 @@ export const Itempackaging = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
|
} |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: '包装单位', |
|
|
|
label: '包装规格', |
|
|
|
field: 'packUnit', |
|
|
|
sort: 'custom', |
|
|
|
dictType: DICT_TYPE.PACK_UNIT, |
|
|
|
dictClass: 'string', |
|
|
|
isSearch: true, |
|
|
|
isTable: true, |
|
|
|
table: { |
|
|
|
width: 120 |
|
|
|
} |
|
|
|
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: '包装数量', |
|
|
|