From 1a1769104f1a5c7f7f7ddcd15a421d1f482107d5 Mon Sep 17 00:00:00 2001 From: zhang_li <2235006734@qqq.com> Date: Tue, 23 Jul 2024 13:57:32 +0800 Subject: [PATCH] =?UTF-8?q?=E5=B7=AE=E7=9B=98=E7=82=B9=E5=92=8C=E5=99=A8?= =?UTF-8?q?=E5=85=B7=E5=88=9D=E5=A7=8B=E5=8C=96=E5=A4=B1=E5=8E=BB=E7=84=A6?= =?UTF-8?q?=E7=82=B9=EF=BC=8C=E5=89=A9=E4=BD=99wms=E5=A4=B1=E5=8E=BB?= =?UTF-8?q?=E7=84=A6=E7=82=B9=E5=AE=8C=E6=88=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../containerMainRequest.data.ts | 22 +++++++- .../scrapContainerMainRequest.data.ts | 20 +++++++ .../packageoverRequestMain.data.ts | 46 ++++++++++++++++ .../sparepartsrequisitionRequestMain.data.ts | 55 +++++++++++++++++-- .../inventorychangeRequestMain.data.ts | 24 +++++++- 5 files changed, 158 insertions(+), 9 deletions(-) diff --git a/src/views/wms/inventoryjobManage/containermanage/containerMainRequest/containerMainRequest.data.ts b/src/views/wms/inventoryjobManage/containermanage/containerMainRequest/containerMainRequest.data.ts index dabab54a5..9afba26c7 100644 --- a/src/views/wms/inventoryjobManage/containermanage/containerMainRequest/containerMainRequest.data.ts +++ b/src/views/wms/inventoryjobManage/containermanage/containerMainRequest/containerMainRequest.data.ts @@ -402,23 +402,43 @@ export const ContainerDetailRequest = useCrudSchemas(reactive([ table: { width: 150 }, - tableForm:{ + tableForm: { + enterSearch: true, isInpuFocusShow: true, // 开启查询弹窗 searchListPlaceholder: '请选择到库位代码', searchField: 'code', searchTitle: '库位信息', searchAllSchemas: Location.allSchemas, searchPage: LocationApi.selectBusinessTypeToLocation, + // 失去焦点校验参数 + verificationParams: [{ + key: 'code', + action: '==', + value: '', + isMainValue: false, + isSearch: 'true', + isFormModel: true, + }] }, form: { // labelMessage: '信息提示说明!!!', componentProps: { + enterSearch: true, isSearchList: true, // 开启查询弹窗 searchListPlaceholder: '请选择到库位代码', searchField: 'code', searchTitle: '库位信息', searchAllSchemas: Location.allSchemas, searchPage: LocationApi.selectBusinessTypeToLocation, + // 失去焦点校验参数 + verificationParams: [{ + key: 'code', + action: '==', + value: '', + isMainValue: false, + isSearch: 'true', + isFormModel: true, + }] } } }, diff --git a/src/views/wms/inventoryjobManage/containermanage/scrapContainerMainRequest/scrapContainerMainRequest.data.ts b/src/views/wms/inventoryjobManage/containermanage/scrapContainerMainRequest/scrapContainerMainRequest.data.ts index 5516b76cb..58338a454 100644 --- a/src/views/wms/inventoryjobManage/containermanage/scrapContainerMainRequest/scrapContainerMainRequest.data.ts +++ b/src/views/wms/inventoryjobManage/containermanage/scrapContainerMainRequest/scrapContainerMainRequest.data.ts @@ -403,22 +403,42 @@ export const ContainerDetailRequest = useCrudSchemas(reactive([ width: 150 }, tableForm: { + enterSearch:true, isInpuFocusShow: true, // 开启查询弹窗 searchListPlaceholder: '请选择到库位代码', searchField: 'code', searchTitle: '库位信息', searchAllSchemas: Location.allSchemas, searchPage: LocationApi.selectPageItemAreaToLocation, + // 失去焦点校验参数 + verificationParams: [{ + key: 'code', + action: '==', + value: '', + isMainValue: false, + isSearch: 'true', + isFormModel: true, + }] }, form: { // labelMessage: '信息提示说明!!!', componentProps: { + enterSearch: true, isSearchList: true, // 开启查询弹窗 searchListPlaceholder: '请选择到库位代码', searchField: 'code', searchTitle: '库位信息', searchAllSchemas: Location.allSchemas, searchPage: LocationApi.selectPageItemAreaToLocation, + // 失去焦点校验参数 + verificationParams: [{ + key: 'code', + action: '==', + value: '', + isMainValue: false, + isSearch: 'true', + isFormModel: true, + }] } } }, diff --git a/src/views/wms/inventoryjobManage/packageManage/packageoverMain/packageoverRequestMain/packageoverRequestMain.data.ts b/src/views/wms/inventoryjobManage/packageManage/packageoverMain/packageoverRequestMain/packageoverRequestMain.data.ts index 91bbeb867..4dbe716a4 100644 --- a/src/views/wms/inventoryjobManage/packageManage/packageoverMain/packageoverRequestMain/packageoverRequestMain.data.ts +++ b/src/views/wms/inventoryjobManage/packageManage/packageoverMain/packageoverRequestMain/packageoverRequestMain.data.ts @@ -112,6 +112,7 @@ export const PackageoverRequestMain = useCrudSchemas(reactive([ form: { // labelMessage: '信息提示说明!!!', componentProps: { + enterSearch: true, isSearchList: true, // 开启查询弹窗 searchListPlaceholder: '请选择仓库代码', // 输入框占位文本 searchField: 'code', // 查询弹窗赋值字段 @@ -122,6 +123,15 @@ export const PackageoverRequestMain = useCrudSchemas(reactive([ key: 'available', value: 'TRUE', isMainValue: false + }], + // 失去焦点校验参数 + verificationParams: [{ + key: 'code', + action: '==', + value: '', + isMainValue: false, + isSearch: 'true', + isFormModel: true, }] } } @@ -578,6 +588,15 @@ export const PackageoverRequestDetail = useCrudSchemas(reactive([ key: 'itemCode', value: 'itemCode', isMainValue: true + }], + // 失去焦点校验参数 + verificationParams: [{ + key: 'packUnit', + action: '==', + value: '', + isMainValue: false, + isSearch: 'true', + isFormModel: true, }] }, form: { @@ -598,6 +617,15 @@ export const PackageoverRequestDetail = useCrudSchemas(reactive([ value: 'itemCode', message: '请先选择物料代码!', // 当前置条件为空时 弹出信息提示 isMainValue: true + }], + // 失去焦点校验参数 + verificationParams: [{ + key: 'packUnit', + action: '==', + value: '', + isMainValue: false, + isSearch: 'true', + isFormModel: true, }] } } @@ -628,6 +656,15 @@ export const PackageoverRequestDetail = useCrudSchemas(reactive([ value: 'itemCode', message: '请先选择物料代码!', // 当前置条件为空时 弹出信息提示 isMainValue: true + }], + // 失去焦点校验参数 + verificationParams: [{ + key: 'packUnit', + action: '==', + value: '', + isMainValue: false, + isSearch: 'true', + isFormModel: true, }] }, form: { @@ -647,6 +684,15 @@ export const PackageoverRequestDetail = useCrudSchemas(reactive([ key: 'itemCode', value: 'itemCode', isMainValue: true + }], + // 失去焦点校验参数 + verificationParams: [{ + key: 'packUnit', + action: '==', + value: '', + isMainValue: false, + isSearch: 'true', + isFormModel: true, }] } } diff --git a/src/views/wms/inventoryjobManage/sparepartsrequisition/sparepartsrequisitionRequestMain/sparepartsrequisitionRequestMain.data.ts b/src/views/wms/inventoryjobManage/sparepartsrequisition/sparepartsrequisitionRequestMain/sparepartsrequisitionRequestMain.data.ts index 91a2ea81c..587d96949 100644 --- a/src/views/wms/inventoryjobManage/sparepartsrequisition/sparepartsrequisitionRequestMain/sparepartsrequisitionRequestMain.data.ts +++ b/src/views/wms/inventoryjobManage/sparepartsrequisition/sparepartsrequisitionRequestMain/sparepartsrequisitionRequestMain.data.ts @@ -115,6 +115,7 @@ export const UnplannedissueRequestMain = useCrudSchemas(reactive([ form: { // labelMessage: '信息提示说明!!!', componentProps: { + enterSearch: true, isSearchList: true, // 开启查询弹窗 searchListPlaceholder: '请选择成本中心代码', // 输入框占位文本 searchField: 'costcentreCode', // 查询弹窗赋值字段 @@ -125,7 +126,15 @@ export const UnplannedissueRequestMain = useCrudSchemas(reactive([ key: 'available', value: 'TRUE', isMainValue: false - }] + }], + verificationParams: [{ + key: 'costcentreCode', + action: '==', + value: '', + isMainValue: false, + isSearch: true, + isFormModel: true, + }], // 失去焦点校验参数 } } }, @@ -150,6 +159,7 @@ export const UnplannedissueRequestMain = useCrudSchemas(reactive([ width: 150 }, tableForm: { + enterSearch: true, isInpuFocusShow: true, // 开启查询弹窗 searchListPlaceholder: '请选择成领用原因代码', searchField: 'code', @@ -165,11 +175,20 @@ export const UnplannedissueRequestMain = useCrudSchemas(reactive([ value: 'costCenterType', message: '成本中心类型不能为空!', isMainValue: true - }] + }], + verificationParams: [{ + key: 'code', + action: '==', + value: '', + isMainValue: false, + isSearch: true, + isFormModel: true, + }], // 失去焦点校验参数 }, form: { // labelMessage: '信息提示说明!!!', componentProps: { + enterSearch: true, isSearchList: true, // 开启查询弹窗 searchListPlaceholder: '请选择成本中心代码', // 输入框占位文本 searchField: 'code', // 查询弹窗赋值字段 @@ -185,7 +204,15 @@ export const UnplannedissueRequestMain = useCrudSchemas(reactive([ value: 'costCenterType', message: '成本中心类型不能为空!', isMainValue: true - }] + }], + verificationParams: [{ + key: 'code', + action: '==', + value: '', + isMainValue: false, + isSearch: true, + isFormModel: true, + }], // 失去焦点校验参数 } } }, @@ -197,16 +224,26 @@ export const UnplannedissueRequestMain = useCrudSchemas(reactive([ width: 150 }, tableForm: { + enterSearch: true, isInpuFocusShow: true, // 开启查询弹窗 searchListPlaceholder: '请选择QAD项目信息', searchField: 'projectCode', searchTitle: '领用原因代码', searchAllSchemas: QadProject.allSchemas, - searchPage: QadProjectApi.getQadProjectPage + searchPage: QadProjectApi.getQadProjectPage, + verificationParams: [{ + key: 'projectCode', + action: '==', + value: '', + isMainValue: false, + isSearch: true, + isFormModel: true, + }], // 失去焦点校验参数 }, form: { // labelMessage: '信息提示说明!!!', componentProps: { + enterSearch: true, isSearchList: true, // 开启查询弹窗 searchListPlaceholder: '请选择QAD项目信息', // 输入框占位文本 searchField: 'projectCode', // 查询弹窗赋值字段 @@ -217,7 +254,15 @@ export const UnplannedissueRequestMain = useCrudSchemas(reactive([ key: 'available', value: 'TRUE', isMainValue: false - }] + }], + verificationParams: [{ + key: 'projectCode', + action: '==', + value: '', + isMainValue: false, + isSearch: true, + isFormModel: true, + }], // 失去焦点校验参数 } } }, diff --git a/src/views/wms/moveManage/inventorychange/inventorychangeRequestMain/inventorychangeRequestMain.data.ts b/src/views/wms/moveManage/inventorychange/inventorychangeRequestMain/inventorychangeRequestMain.data.ts index b6e8cc592..5f543209e 100644 --- a/src/views/wms/moveManage/inventorychange/inventorychangeRequestMain/inventorychangeRequestMain.data.ts +++ b/src/views/wms/moveManage/inventorychange/inventorychangeRequestMain/inventorychangeRequestMain.data.ts @@ -682,23 +682,41 @@ export const InventorychangeRequestDetail = useCrudSchemas(reactive