diff --git a/README.md b/README.md index ba558fa04..237938dee 100644 --- a/README.md +++ b/README.md @@ -48,7 +48,9 @@ form: { isMainValue: false // 表示查询条件不是主表的字段的值 } ], - isRepeat: true,//是否可以重复添加该条数据 + verificationPage: ItembasicApi.getItemListByCodes, // tableForm下方输入框校验失去焦点之后是否正确的方法 + isShowTableFormSearch: true, //tableForm下方是否出现输入框 + isRepeat: true,//tableForm下方输入框是否可以重复添加该条数据 // 失去焦点校验参数 verificationParams: [{ key: 'code', diff --git a/src/views/wms/inventoryjobManage/transferissue/transferissueRequestMain/transferissueRequestMain.data.ts b/src/views/wms/inventoryjobManage/transferissue/transferissueRequestMain/transferissueRequestMain.data.ts index dd15cd5ef..b70a2f367 100644 --- a/src/views/wms/inventoryjobManage/transferissue/transferissueRequestMain/transferissueRequestMain.data.ts +++ b/src/views/wms/inventoryjobManage/transferissue/transferissueRequestMain/transferissueRequestMain.data.ts @@ -82,6 +82,7 @@ export const TransferissueRequestMain = useCrudSchemas(reactive([ form: { // labelMessage: '信息提示说明!!!', componentProps: { + enterSearch: true, isSearchList: true, // 开启查询弹窗 searchListPlaceholder: '请选择承运商代码', // 输入框占位文本 searchField: 'code', // 查询弹窗赋值字段 @@ -92,7 +93,15 @@ export const TransferissueRequestMain = useCrudSchemas(reactive([ key: 'available', value: 'TRUE', isMainValue: false - }] + }], + verificationParams: [{ + key: 'code', + action: '==', + value: '', + isMainValue: false, + isSearch: true, + isFormModel: true, + }], // 失去焦点校验参数 } } }, @@ -165,6 +174,7 @@ export const TransferissueRequestMain = useCrudSchemas(reactive([ width: 150 }, tableForm: { + enterSearch: true, isInpuFocusShow: true, // 开启查询弹窗 searchListPlaceholder: '请选择仓库代码', searchField: 'code', @@ -175,11 +185,20 @@ export const TransferissueRequestMain = useCrudSchemas(reactive([ key: 'available', value: 'TRUE', isMainValue: false - }] + }], + verificationParams: [{ + key: 'code', + action: '==', + value: '', + isMainValue: false, + isSearch: true, + isFormModel: true, + }], // 失去焦点校验参数 }, form: { // labelMessage: '信息提示说明!!!', componentProps: { + enterSearch: true, isSearchList: true, // 开启查询弹窗 searchListPlaceholder: '请选择仓库代码', // 输入框占位文本 searchField: 'code', // 查询弹窗赋值字段 @@ -190,7 +209,15 @@ export const TransferissueRequestMain = useCrudSchemas(reactive([ key: 'available', value: 'TRUE', isMainValue: false - }] + }], + verificationParams: [{ + key: 'code', + action: '==', + value: '', + isMainValue: false, + isSearch: true, + isFormModel: true, + }], // 失去焦点校验参数 } } }, @@ -202,16 +229,26 @@ export const TransferissueRequestMain = useCrudSchemas(reactive([ width: 150 }, tableForm: { + enterSearch: true, isInpuFocusShow: true, // 开启查询弹窗 searchListPlaceholder: '请选择仓库代码', searchField: 'code', searchTitle: '仓库信息', searchAllSchemas: Warehouse.allSchemas, - searchPage: WarehouseApi.getWarehousePage + searchPage: WarehouseApi.getWarehousePage, + verificationParams: [{ + key: 'code', + action: '==', + value: '', + isMainValue: false, + isSearch: true, + isFormModel: true, + }], // 失去焦点校验参数 }, form: { // labelMessage: '信息提示说明!!!', componentProps: { + enterSearch: true, isSearchList: true, // 开启查询弹窗 searchListPlaceholder: '请选择仓库代码', // 输入框占位文本 searchField: 'code', // 查询弹窗赋值字段 @@ -222,7 +259,15 @@ export const TransferissueRequestMain = useCrudSchemas(reactive([ key: 'available', value: 'TRUE', isMainValue: false - }] + }], + verificationParams: [{ + key: 'code', + action: '==', + value: '', + isMainValue: false, + isSearch: true, + isFormModel: true, + }], // 失去焦点校验参数 } } }, @@ -279,6 +324,7 @@ export const TransferissueRequestMain = useCrudSchemas(reactive([ form: { // labelMessage: '信息提示说明!!!', componentProps: { + enterSearch:true, isSearchList: true, // 开启查询弹窗 searchListPlaceholder: '请选择从月台代码', // 输入框占位文本 searchField: 'code', // 查询弹窗赋值字段 @@ -289,7 +335,15 @@ export const TransferissueRequestMain = useCrudSchemas(reactive([ key: 'available', value: 'TRUE', isMainValue: false - }] + }], + verificationParams: [{ + key: 'code', + action: '==', + value: '', + isMainValue: false, + isSearch: true, + isFormModel: true, + }], // 失去焦点校验参数 } } }, @@ -632,11 +686,20 @@ export const TransferissueRequestDetail = useCrudSchemas(reactive( value: 'fromWarehouseCode', message: '请填写从仓库代码!', isMainValue: true, - }] + }], + verificationParams: [{ + key: 'packingNumber', + action: '==', + value: '', + isMainValue: false, + isSearch: true, + isFormModel: true, + }], // 失去焦点校验参数 }, form: { // labelMessage: '信息提示说明!!!', componentProps: { + enterSearch: true, isSearchList: true, // 开启查询弹窗 searchListPlaceholder: '请选择包装号', searchField: 'packingNumber', @@ -648,7 +711,15 @@ export const TransferissueRequestDetail = useCrudSchemas(reactive( value: 'fromWarehouseCode', message: '请填写从仓库代码!', isMainValue: true, - }] + }], + verificationParams: [{ + key: 'packingNumber', + action: '==', + value: '', + isMainValue: false, + isSearch: true, + isFormModel: true, + }], // 失去焦点校验参数 } } }, @@ -732,6 +803,7 @@ export const TransferissueRequestDetail = useCrudSchemas(reactive( width: 150 }, tableForm: { + enterSearch: true, isInpuFocusShow: true, // 开启查询弹窗 searchListPlaceholder: '请选择库位代码', searchField: 'code', @@ -747,11 +819,20 @@ export const TransferissueRequestDetail = useCrudSchemas(reactive( value: 'toWarehouseCode', message: '请填写到仓库代码!', isMainValue: true, - }] + }], + verificationParams: [{ + key: 'code', + action: '==', + value: '', + isMainValue: false, + isSearch: true, + isFormModel: true, + }], // 失去焦点校验参数 }, form: { // labelMessage: '信息提示说明!!!', componentProps: { + enterSearch: true, isSearchList: true, // 开启查询弹窗 searchListPlaceholder: '请选择库位代码', // 输入框占位文本 searchField: 'code', // 查询弹窗赋值字段 @@ -767,7 +848,15 @@ export const TransferissueRequestDetail = useCrudSchemas(reactive( value: 'toWarehouseCode', message: '请填写到仓库代码!', isMainValue: true, - }] + }], + verificationParams: [{ + key: 'code', + action: '==', + value: '', + isMainValue: false, + isSearch: true, + isFormModel: true, + }], // 失去焦点校验参数 } } }, diff --git a/src/views/wms/inventoryjobManage/unplannedissue/unplannedissueRequestMain/unplannedissueRequestMain.data.ts b/src/views/wms/inventoryjobManage/unplannedissue/unplannedissueRequestMain/unplannedissueRequestMain.data.ts index 572adaa36..e361546cb 100644 --- a/src/views/wms/inventoryjobManage/unplannedissue/unplannedissueRequestMain/unplannedissueRequestMain.data.ts +++ b/src/views/wms/inventoryjobManage/unplannedissue/unplannedissueRequestMain/unplannedissueRequestMain.data.ts @@ -133,16 +133,26 @@ export const UnplannedissueRequestMain = useCrudSchemas(reactive([ width: 150 }, tableForm: { + enterSearch: true, isInpuFocusShow: true, // 开启查询弹窗 searchListPlaceholder: '请选择成本中心代码', searchField: 'costcentreCode', searchTitle: '成本中心代码', searchAllSchemas: QadCostcentre.allSchemas, - searchPage: QadCostcentreApi.getQadCostcentrePage + searchPage: QadCostcentreApi.getQadCostcentrePage, + verificationParams: [{ + key: 'costcentreCode', + action: '==', + value: '', + isMainValue: false, + isSearch: true, + isFormModel: true, + }], // 失去焦点校验参数 }, form: { // labelMessage: '信息提示说明!!!', componentProps: { + enterSearch: true, isSearchList: true, // 开启查询弹窗 searchListPlaceholder: '请选择成本中心代码', // 输入框占位文本 searchField: 'costcentreCode', // 查询弹窗赋值字段 @@ -153,7 +163,15 @@ export const UnplannedissueRequestMain = useCrudSchemas(reactive([ key: 'available', value: 'TRUE', isMainValue: false - }] + }], + verificationParams: [{ + key: 'costcentreCode', + action: '==', + value: '', + isMainValue: false, + isSearch: true, + isFormModel: true, + }], // 失去焦点校验参数 } } }, @@ -178,6 +196,7 @@ export const UnplannedissueRequestMain = useCrudSchemas(reactive([ width: 150 }, tableForm: { + enterSearch: true, isInpuFocusShow: true, // 开启查询弹窗 searchListPlaceholder: '请选择成领用原因代码', searchField: 'code', @@ -193,11 +212,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', // 查询弹窗赋值字段 @@ -213,7 +241,15 @@ export const UnplannedissueRequestMain = useCrudSchemas(reactive([ value: 'costCenterType', message: '成本中心类型不能为空!', isMainValue: true - }] + }], + verificationParams: [{ + key: 'code', + action: '==', + value: '', + isMainValue: false, + isSearch: true, + isFormModel: true, + }], // 失去焦点校验参数 } } }, @@ -225,16 +261,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', // 查询弹窗赋值字段 @@ -245,7 +291,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/inventoryjobManage/unplannedreceipt/unplannedreceiptRequestMain/unplannedreceiptRequestMain.data.ts b/src/views/wms/inventoryjobManage/unplannedreceipt/unplannedreceiptRequestMain/unplannedreceiptRequestMain.data.ts index f4bdae616..13385ebe5 100644 --- a/src/views/wms/inventoryjobManage/unplannedreceipt/unplannedreceiptRequestMain/unplannedreceiptRequestMain.data.ts +++ b/src/views/wms/inventoryjobManage/unplannedreceipt/unplannedreceiptRequestMain/unplannedreceiptRequestMain.data.ts @@ -133,16 +133,26 @@ export const UnplannedreceiptRequestMain = useCrudSchemas(reactive width: 150 }, tableForm: { + enterSearch: true, isInpuFocusShow: true, // 开启查询弹窗 searchListPlaceholder: '请选择成本中心代码', searchField: 'costcentreCode', searchTitle: '成本中心代码', searchAllSchemas: QadCostcentre.allSchemas, - searchPage: QadCostcentreApi.getQadCostcentrePage + searchPage: QadCostcentreApi.getQadCostcentrePage, + verificationParams: [{ + key: 'costcentreCode', + action: '==', + value: '', + isMainValue: false, + isSearch: true, + isFormModel: true, + }], // 失去焦点校验参数 }, form: { // labelMessage: '信息提示说明!!!', componentProps: { + enterSearch: true, isSearchList: true, // 开启查询弹窗 searchListPlaceholder: '请选择成本中心代码', // 输入框占位文本 searchField: 'costcentreCode', // 查询弹窗赋值字段 @@ -153,7 +163,15 @@ export const UnplannedreceiptRequestMain = useCrudSchemas(reactive key: 'available', value: 'TRUE', isMainValue: false - }] + }], + verificationParams: [{ + key: 'costcentreCode', + action: '==', + value: '', + isMainValue: false, + isSearch: true, + isFormModel: true, + }], // 失去焦点校验参数 } } }, @@ -178,6 +196,7 @@ export const UnplannedreceiptRequestMain = useCrudSchemas(reactive width: 150 }, tableForm: { + enterSearch: true, isInpuFocusShow: true, // 开启查询弹窗 searchListPlaceholder: '请选择成领用原因代码', searchField: 'code', @@ -193,11 +212,20 @@ export const UnplannedreceiptRequestMain = 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', // 查询弹窗赋值字段 @@ -213,7 +241,15 @@ export const UnplannedreceiptRequestMain = useCrudSchemas(reactive value: 'costCenterType', message: '成本中心类型不能为空!', isMainValue: true - }] + }], + verificationParams: [{ + key: 'code', + action: '==', + value: '', + isMainValue: false, + isSearch: true, + isFormModel: true, + }], // 失去焦点校验参数 } } }, @@ -225,16 +261,26 @@ export const UnplannedreceiptRequestMain = useCrudSchemas(reactive width: 150 }, tableForm: { + enterSearch: true, isInpuFocusShow: true, // 开启查询弹窗 searchListPlaceholder: '请选择QAD项目信息', - searchField: 'projectCode', + searchField: ' ', 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', // 查询弹窗赋值字段 @@ -245,7 +291,15 @@ export const UnplannedreceiptRequestMain = useCrudSchemas(reactive key: 'available', value: 'TRUE', isMainValue: false - }] + }], + verificationParams: [{ + key: 'projectCode', + action: '==', + value: '', + isMainValue: false, + isSearch: true, + isFormModel: true, + }], // 失去焦点校验参数 } } }, @@ -265,16 +319,26 @@ export const UnplannedreceiptRequestMain = useCrudSchemas(reactive width: 150 }, tableForm: { + enterSearch: true, isInpuFocusShow: true, // 开启查询弹窗 searchListPlaceholder: '请选择仓库代码', searchField: 'code', searchTitle: '仓库信息', searchAllSchemas: Warehouse.allSchemas, - searchPage: WarehouseApi.getWarehousePage + searchPage: WarehouseApi.getWarehousePage, + verificationParams: [{ + key: 'code', + action: '==', + value: '', + isMainValue: false, + isSearch: true, + isFormModel: true, + }], // 失去焦点校验参数 }, form: { // labelMessage: '信息提示说明!!!', componentProps: { + enterSearch:true, isSearchList: true, // 开启查询弹窗 searchListPlaceholder: '请选择仓库代码', // 输入框占位文本 searchField: 'code', // 查询弹窗赋值字段 @@ -285,7 +349,15 @@ export const UnplannedreceiptRequestMain = useCrudSchemas(reactive key: 'available', value: 'TRUE', isMainValue: false - }] + }], + verificationParams: [{ + key: 'code', + action: '==', + value: '', + isMainValue: false, + isSearch: true, + isFormModel: true, + }], // 失去焦点校验参数 } } }, @@ -618,7 +690,6 @@ export const UnplannedreceiptRequestDetail = useCrudSchemas(reactive { try { - let data = { + const data = { subList: list } await message.confirm(t('ts.是否为此数据生成标签?'))