diff --git a/src/views/wms/basicDataManage/customerManage/customeritem/customeritem.data.ts b/src/views/wms/basicDataManage/customerManage/customeritem/customeritem.data.ts index 23566be85..1d3abed5a 100644 --- a/src/views/wms/basicDataManage/customerManage/customeritem/customeritem.data.ts +++ b/src/views/wms/basicDataManage/customerManage/customeritem/customeritem.data.ts @@ -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([ 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([ 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([ form: { component: 'InputNumber', componentProps: { - min: 0 + min: 0, + precision: 6 } }, }, diff --git a/src/views/wms/basicDataManage/customerManage/customeritem/index.vue b/src/views/wms/basicDataManage/customerManage/customeritem/index.vue index ada87ae89..bd8eee158 100644 --- a/src/views/wms/basicDataManage/customerManage/customeritem/index.vue +++ b/src/views/wms/basicDataManage/customerManage/customeritem/index.vue @@ -43,8 +43,7 @@ ref="basicFormRef" @success="formsSuccess" :rules="CustomeritemRules" - :formAllSchemas="Customeritem.allSchemas" - :searchTableParams="searchTableParams" + :formAllSchemas="Customeritem.allSchemas" :apiUpdate="CustomeritemApi.updateCustomeritem" :apiCreate="CustomeritemApi.createCustomeritem" @searchTableSuccess="searchTableSuccess" @@ -61,12 +60,8 @@