|
|
@ -1,5 +1,12 @@ |
|
|
|
import type { CrudSchema } from '@/hooks/web/useCrudSchemas' |
|
|
|
import { dateFormatter } from '@/utils/formatTime' |
|
|
|
|
|
|
|
import * as CustomerApi from '@/api/wms/customer' |
|
|
|
import { Customer } from '../customer/customer.data' |
|
|
|
|
|
|
|
import * as ItembasicApi from '@/api/wms/itembasic' |
|
|
|
import { Itembasic } from '../../itemManage/itembasic/itembasic.data' |
|
|
|
|
|
|
|
const { t } = useI18n() // 国际化
|
|
|
|
|
|
|
|
/** |
|
|
@ -14,6 +21,17 @@ export const Customeritem = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
|
width: 150, |
|
|
|
fixed: 'left' |
|
|
|
}, |
|
|
|
form: { |
|
|
|
// labelMessage: '信息提示说明!!!',
|
|
|
|
componentProps: { |
|
|
|
isSearchList: true, // 开启查询弹窗
|
|
|
|
searchListPlaceholder: '请选择客户代码', // 输入框占位文本
|
|
|
|
searchField: 'code', // 查询弹窗赋值字段
|
|
|
|
searchTitle: '客户信息', // 查询弹窗标题
|
|
|
|
searchAllSchemas: Customer.allSchemas, // 查询弹窗所需类
|
|
|
|
searchPage: CustomerApi.getCustomerPage // 查询弹窗所需分页方法
|
|
|
|
} |
|
|
|
}, |
|
|
|
isSearch: true |
|
|
|
}, |
|
|
|
{ |
|
|
@ -23,6 +41,17 @@ export const Customeritem = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
|
table: { |
|
|
|
width: 150 |
|
|
|
}, |
|
|
|
form: { |
|
|
|
// labelMessage: '信息提示说明!!!',
|
|
|
|
componentProps: { |
|
|
|
isSearchList: true, // 开启查询弹窗
|
|
|
|
searchListPlaceholder: '请选择物品代码', // 输入框占位文本
|
|
|
|
searchField: 'code', // 查询弹窗赋值字段
|
|
|
|
searchTitle: '物品基础信息', // 查询弹窗标题
|
|
|
|
searchAllSchemas: Itembasic.allSchemas, // 查询弹窗所需类
|
|
|
|
searchPage: ItembasicApi.getItembasicPage // 查询弹窗所需分页方法
|
|
|
|
} |
|
|
|
}, |
|
|
|
isSearch: true |
|
|
|
}, |
|
|
|
{ |
|
|
@ -55,7 +84,8 @@ export const Customeritem = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
|
form: { |
|
|
|
component: 'InputNumber', |
|
|
|
componentProps: { |
|
|
|
min: 0 |
|
|
|
min: 0, |
|
|
|
precision: 6 |
|
|
|
} |
|
|
|
}, |
|
|
|
}, |
|
|
|