From 9d569f4330dd80db890504b9fca2defbb322f6f9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=8E=E8=83=9C=E6=A5=A0?= <2792649152@qq.com> Date: Mon, 27 Nov 2023 17:17:01 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=A2=E6=88=B7=E6=A8=A1=E5=9D=97=E5=BC=B9?= =?UTF-8?q?=E5=B1=82=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../customerdock/customerdock.data.ts | 64 +++++++++++++++++++ .../customerManage/customerdock/index.vue | 27 +------- .../customeritem/customeritem.data.ts | 14 +++- .../customerManage/project/index.vue | 13 +--- .../customerManage/project/project.data.ts | 30 ++++++--- .../customerManage/saleprice/index.vue | 20 +----- .../saleprice/saleprice.data.ts | 48 +++++++++++++- 7 files changed, 145 insertions(+), 71 deletions(-) diff --git a/src/views/wms/basicDataManage/customerManage/customerdock/customerdock.data.ts b/src/views/wms/basicDataManage/customerManage/customerdock/customerdock.data.ts index 7bc1bca78..227504c81 100644 --- a/src/views/wms/basicDataManage/customerManage/customerdock/customerdock.data.ts +++ b/src/views/wms/basicDataManage/customerManage/customerdock/customerdock.data.ts @@ -1,5 +1,15 @@ 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 WarehouseApi from '@/api/wms/warehouse' +import { Warehouse } from '../../factoryModeling/warehouse/warehouse.data' + +import * as LocationApi from '@/api/wms/location' +import { Location } from '../../factoryModeling/location/location.data' + const { t } = useI18n() // 国际化 import {validateHanset,validateYS} from '@/utils/validator' @@ -73,6 +83,24 @@ export const Customerdock = useCrudSchemas(reactive([ sort: 'custom', table: { width: 150 + }, + form: { + // labelMessage: '信息提示说明!!!', + componentProps: { + isSearchList: true, // 开启查询弹窗 + searchListPlaceholder: '请选择客户代码', // 输入框占位文本 + searchField: 'code', // 查询弹窗赋值字段 + searchTitle: '客户基础信息', // 查询弹窗标题 + searchAllSchemas: Customer.allSchemas, // 查询弹窗所需类 + searchPage: CustomerApi.getCustomerPage, // 查询弹窗所需分页方法 + searchCondition: [{ + key: 'available', + value: 'TRUE', + action: '==', + isSearch: true, + isMainValue: false + }] + } } }, { @@ -82,6 +110,24 @@ export const Customerdock = useCrudSchemas(reactive([ table: { width: 150 }, + form: { + // labelMessage: '信息提示说明!!!', + componentProps: { + isSearchList: true, // 开启查询弹窗 + searchListPlaceholder: '请选择仓库代码', // 输入框占位文本 + searchField: 'code', // 查询弹窗赋值字段 + searchTitle: '仓库基础信息', // 查询弹窗标题 + searchAllSchemas: Warehouse.allSchemas, // 查询弹窗所需类 + searchPage: WarehouseApi.getWarehousePage, // 查询弹窗所需分页方法 + searchCondition: [{ + key: 'available', + value: 'TRUE', + action: '==', + isSearch: true, + isMainValue: false + }] + } + } }, { label: '默认库位', @@ -90,6 +136,24 @@ export const Customerdock = useCrudSchemas(reactive([ table: { width: 150 }, + form: { + // labelMessage: '信息提示说明!!!', + componentProps: { + isSearchList: true, // 开启查询弹窗 + searchListPlaceholder: '请选择库位代码', // 输入框占位文本 + searchField: 'code', // 查询弹窗赋值字段 + searchTitle: '库位基础信息', // 查询弹窗标题 + searchAllSchemas: Location.allSchemas, // 查询弹窗所需类 + searchPage: LocationApi.getLocationPage, // 查询弹窗所需分页方法 + searchCondition: [{ + key: 'available', + value: 'TRUE', + action: '==', + isSearch: true, + isMainValue: false + }] + } + } }, { label: '是否可用', diff --git a/src/views/wms/basicDataManage/customerManage/customerdock/index.vue b/src/views/wms/basicDataManage/customerManage/customerdock/index.vue index c0250c886..53c842aab 100644 --- a/src/views/wms/basicDataManage/customerManage/customerdock/index.vue +++ b/src/views/wms/basicDataManage/customerManage/customerdock/index.vue @@ -43,8 +43,7 @@ ref="basicFormRef" @success="formsSuccess" :rules="CustomerdockRules" - :formAllSchemas="Customerdock.allSchemas" - :searchTableParams="searchTableParams" + :formAllSchemas="Customerdock.allSchemas" :apiUpdate="CustomerdockApi.updateCustomerdock" :apiCreate="CustomerdockApi.createCustomerdock" @searchTableSuccess="searchTableSuccess" @@ -61,13 +60,7 @@