From 161b2392f32be05ad2e6be992bb419ee8411e896 Mon Sep 17 00:00:00 2001 From: zhang_li <2235006734@qqq.com> Date: Wed, 3 Jan 2024 13:55:51 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AD=97=E6=AE=B5=E9=95=BF=E5=BA=A6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../count/countPlanMain/countPlanMain.data.ts | 10 ++++-- .../inventoryinitRequestMain.data.ts | 30 ++++++++--------- .../scrapRequestMain/scrapRequestMain.data.ts | 18 ++++------ .../transferissueRequestMain.data.ts | 30 +++++------------ .../unplannedissueRequestMain.data.ts | 31 ++++++++--------- .../unplannedreceiptRequestMain.data.ts | 18 ++++------ .../inventorychangeRequestMain.data.ts | 22 +++++-------- .../inventorymoveRequestMain.data.ts | 33 ++++--------------- 8 files changed, 71 insertions(+), 121 deletions(-) diff --git a/src/views/wms/countManage/count/countPlanMain/countPlanMain.data.ts b/src/views/wms/countManage/count/countPlanMain/countPlanMain.data.ts index 361bee941..145cdc9e4 100644 --- a/src/views/wms/countManage/count/countPlanMain/countPlanMain.data.ts +++ b/src/views/wms/countManage/count/countPlanMain/countPlanMain.data.ts @@ -402,6 +402,9 @@ export const CountPlanMainRules = reactive({ type: [ { required: true, message: '请选择盘点类型', trigger: 'change' } ], + crontab: [ + { max: 50, message: '不得超过50个字符', trigger: 'blur' } + ], isSnapshot: [ { required: true, message: '请选择快照盘点', trigger: 'change' } ], @@ -426,8 +429,8 @@ export const CountPlanMainRules = reactive({ status: [ { required: true, message: '请选择状态', trigger: 'change' } ], - businessType: [ - { required: true, message: '请输入业务类型', trigger: 'blur' } + remark: [ + { max: 50, message: '不得超过50个字符', trigger: 'blur' } ], }) @@ -668,6 +671,7 @@ export const CountPlanDetailRules = reactive({ { required: true, message: '请选择盘点范围类型', trigger: 'change' } ], value: [ - { required: true, message: '请选择盘点范围值', trigger: 'change' } + { required: true, message: '请选择盘点范围值', trigger: 'blur' }, + { max: 50, message: '不得超过50个字符', trigger: 'blur' } ], }) \ No newline at end of file diff --git a/src/views/wms/inventoryjobManage/inventoryinitial/inventoryinitRequestMain/inventoryinitRequestMain.data.ts b/src/views/wms/inventoryjobManage/inventoryinitial/inventoryinitRequestMain/inventoryinitRequestMain.data.ts index c8a79a77d..9cdd359a6 100644 --- a/src/views/wms/inventoryjobManage/inventoryinitial/inventoryinitRequestMain/inventoryinitRequestMain.data.ts +++ b/src/views/wms/inventoryjobManage/inventoryinitial/inventoryinitRequestMain/inventoryinitRequestMain.data.ts @@ -343,9 +343,9 @@ export const InventoryinitRequestMainRules = reactive({ directCreateRecord: [ { required: true, message: '请选择是否跳过任务直接生成记录', trigger: 'change' } ], - // businessType: [ - // { required: true, message: '请输入业务类型', trigger: 'blur' } - // ], + remark: [ + { max: 50, message: '不得超过50个字符', trigger: 'blur' } + ], }) /** @@ -823,10 +823,15 @@ export const InventoryinitRequestDetail = useCrudSchemas(reactive( //表单校验 export const InventoryinitRequestDetailRules = reactive({ packingNumber: [ - { required: true, message: '请选择包装号', trigger: 'change' } + { required: true, message: '请选择包装号', trigger: 'change' }, + { max: 50, message: '不得超过50个字符', trigger: 'blur' } ], batch: [ - { required: true, message: '请输入批次', trigger: 'blur' } + { required: true, message: '请输入批次', trigger: 'blur' }, + { max: 50, message: '不得超过50个字符', trigger: 'blur' } + ], + containerNumber: [ + { max: 50, message: '不得超过50个字符', trigger: 'blur' } ], arriveDate: [ { required: true, message: '请选择到货日期', trigger: 'change' } @@ -843,19 +848,10 @@ export const InventoryinitRequestDetailRules = reactive({ locationCode: [ { required: true, message: '请选择库位代码', trigger: 'change' } ], - // locationGroupCode: [ - // { required: true, message: '请选择库位组代码', trigger: 'change' } - // ], - // areaCode: [ - // { required: true, message: '请选择库区代码', trigger: 'change' } - // ], - // stdPackQty: [ - // { required: true, message: '请输入标包数量', trigger: 'blur' } - // ], - // stdPackUnit: [ - // { required: true, message: '请选择标包单位', trigger: 'change' } - // ], itemCode: [ { required: true, message: '请选择物品代码', trigger: 'change' } + ], + remark: [ + { max: 50, message: '不得超过50个字符', trigger: 'blur' } ], }) \ No newline at end of file diff --git a/src/views/wms/inventoryjobManage/scrap/scrapRequestMain/scrapRequestMain.data.ts b/src/views/wms/inventoryjobManage/scrap/scrapRequestMain/scrapRequestMain.data.ts index ae33afd0f..7dd384144 100644 --- a/src/views/wms/inventoryjobManage/scrap/scrapRequestMain/scrapRequestMain.data.ts +++ b/src/views/wms/inventoryjobManage/scrap/scrapRequestMain/scrapRequestMain.data.ts @@ -353,15 +353,6 @@ export const ScrapRequestMain = useCrudSchemas(reactive([ //表单校验 export const ScrapRequestMainRules = reactive({ - // fromWarehouseCode: [ - // { required: true, message: '请选择从仓库代码', trigger: 'change' } - // ], - // fromLocationTypes: [ - // { required: true, message: '请选择从库位类型范围', trigger: 'change' } - // ], - // fromAreaCodes: [ - // { required: true, message: '请选择从库区代码范围', trigger: 'change' } - // ], departmentCode: [ { required: true, message: '请输入部门', trigger: 'blur' } ], @@ -377,9 +368,9 @@ export const ScrapRequestMainRules = reactive({ directCreateRecord: [ { required: true, message: '请选择是否跳过任务直接生成记录', trigger: 'change' } ], - // businessType: [ - // { required: true, message: '请输入业务类型', trigger: 'blur' } - // ], + remark: [ + { max: 50, message: '不得超过50个字符', trigger: 'blur' } + ], }) /** @@ -710,4 +701,7 @@ export const ScrapRequestDetailRules = reactive({ itemCode: [ { required: true, message: '请选择物品代码', trigger: 'change' } ], + remark: [ + { max: 50, message: '不得超过50个字符', trigger: 'blur' } + ], }) diff --git a/src/views/wms/inventoryjobManage/transferissue/transferissueRequestMain/transferissueRequestMain.data.ts b/src/views/wms/inventoryjobManage/transferissue/transferissueRequestMain/transferissueRequestMain.data.ts index 1b19dcba9..0c8e98497 100644 --- a/src/views/wms/inventoryjobManage/transferissue/transferissueRequestMain/transferissueRequestMain.data.ts +++ b/src/views/wms/inventoryjobManage/transferissue/transferissueRequestMain/transferissueRequestMain.data.ts @@ -481,24 +481,6 @@ export const TransferissueRequestMain = useCrudSchemas(reactive([ //表单校验 export const TransferissueRequestMainRules = reactive({ - // fromWarehouseCode: [ - // { required: true, message: '请选择从仓库代码', trigger: 'change' } - // ], - // fromLocationTypes: [ - // { required: true, message: '请选择从库位类型范围', trigger: 'change' } - // ], - // fromAreaCode: [ - // { required: true, message: '请选择从库区代码', trigger: 'change' } - // ], - // toWarehouseCode: [ - // { required: true, message: '请选择到仓库代码', trigger: 'change' } - // ], - // toLocationTypes: [ - // { required: true, message: '请选择到库位类型范围', trigger: 'change' } - // ], - // toAreaCodes: [ - // { required: true, message: '请选择到库区代码范围', trigger: 'change' } - // ], departmentCode: [ { required: true, message: '请输入部门', trigger: 'blur' } ], @@ -514,9 +496,12 @@ export const TransferissueRequestMainRules = reactive({ directCreateRecord: [ { required: true, message: '请选择是否跳过任务直接生成记录', trigger: 'change' } ], - // businessType: [ - // { required: true, message: '请输入业务类型', trigger: 'blur' } - // ], + vehiclePlateNumber: [ + { max: 50, message: '不得超过50个字符', trigger: 'blur' } + ], + remark: [ + { max: 50, message: '不得超过50个字符', trigger: 'blur' } + ], }) /** @@ -871,4 +856,7 @@ export const TransferissueRequestDetailRules = reactive({ itemCode: [ { required: true, message: '请选择物品代码', trigger: 'change' } ], + remark: [ + { max: 50, message: '不得超过50个字符', trigger: 'blur' } + ], }) diff --git a/src/views/wms/inventoryjobManage/unplannedissue/unplannedissueRequestMain/unplannedissueRequestMain.data.ts b/src/views/wms/inventoryjobManage/unplannedissue/unplannedissueRequestMain/unplannedissueRequestMain.data.ts index 9c01902bc..888833839 100644 --- a/src/views/wms/inventoryjobManage/unplannedissue/unplannedissueRequestMain/unplannedissueRequestMain.data.ts +++ b/src/views/wms/inventoryjobManage/unplannedissue/unplannedissueRequestMain/unplannedissueRequestMain.data.ts @@ -322,15 +322,6 @@ export const UnplannedissueRequestMain = useCrudSchemas(reactive([ //表单校验 export const UnplannedissueRequestMainRules = reactive({ - // fromWarehouseCode: [ - // { required: true, message: '请选择从仓库代码', trigger: 'change' } - // ], - // fromLocationTypes: [ - // { required: true, message: '请选择从库位类型范围', trigger: 'change' } - // ], - // fromAreaCodes: [ - // { required: true, message: '请选择从库区代码范围', trigger: 'change' } - // ], departmentCode: [ { required: true, message: '请输入部门', trigger: 'blur' } ], @@ -346,8 +337,8 @@ export const UnplannedissueRequestMainRules = reactive({ directCreateRecord: [ { required: true, message: '请选择是否跳过任务直接生成记录', trigger: 'change' } ], - businessType: [ - { required: true, message: '请输入业务类型', trigger: 'blur' } + remark: [ + { max: 50, message: '不得超过50个字符', trigger: 'blur' } ], }) @@ -630,18 +621,28 @@ export const UnplannedissueRequestDetail = useCrudSchemas(reactive //表单校验 export const UnplannedissueRequestDetailRules = reactive({ packingNumber: [ - { required: true, message: '请选择包装号', trigger: 'change' } + { required: true, message: '请选择包装号', trigger: 'change' }, + { max: 50, message: '不得超过50个字符', trigger: 'blur' } ], batch: [ - { required: true, message: '请输入批次', trigger: 'blur' } + { required: true, message: '请输入批次', trigger: 'blur' }, + { max: 50, message: '不得超过50个字符', trigger: 'blur' } + ], + containerNumber: [ + { max: 50, message: '不得超过50个字符', trigger: 'blur' } ], inventoryStatus: [ { required: true, message: '请选择库存状态', trigger: 'change' } ], fromLocationCode: [ - { required: true, message: '请选择从库位代码', trigger: 'change' } + { required: true, message: '请选择从库位代码', trigger: 'change' }, + { max: 50, message: '不得超过50个字符', trigger: 'blur' } ], itemCode: [ - { required: true, message: '请选择物品代码', trigger: 'change' } + { required: true, message: '请选择物品代码', trigger: 'change' }, + { max: 50, message: '不得超过50个字符', trigger: 'blur' } + ], + remark: [ + { max: 50, message: '不得超过50个字符', trigger: 'blur' } ], }) \ No newline at end of file diff --git a/src/views/wms/inventoryjobManage/unplannedreceipt/unplannedreceiptRequestMain/unplannedreceiptRequestMain.data.ts b/src/views/wms/inventoryjobManage/unplannedreceipt/unplannedreceiptRequestMain/unplannedreceiptRequestMain.data.ts index fc24f0964..fffd873ea 100644 --- a/src/views/wms/inventoryjobManage/unplannedreceipt/unplannedreceiptRequestMain/unplannedreceiptRequestMain.data.ts +++ b/src/views/wms/inventoryjobManage/unplannedreceipt/unplannedreceiptRequestMain/unplannedreceiptRequestMain.data.ts @@ -362,15 +362,6 @@ export const UnplannedreceiptRequestMain = useCrudSchemas(reactive //表单校验 export const UnplannedreceiptRequestMainRules = reactive({ - // toWarehouseCode: [ - // { required: true, message: '请选择到仓库代码', trigger: 'change' } - // ], - // toLocationTypes: [ - // { required: true, message: '请选择到库位类型范围', trigger: 'change' } - // ], - // toAreaCodes: [ - // { required: true, message: '请选择到库区代码范围', trigger: 'change' } - // ], departmentCode: [ { required: true, message: '请输入部门', trigger: 'blur' } ], @@ -386,9 +377,9 @@ export const UnplannedreceiptRequestMainRules = reactive({ directCreateRecord: [ { required: true, message: '请选择是否跳过任务直接生成记录', trigger: 'change' } ], - // businessType: [ - // { required: true, message: '请输入业务类型', trigger: 'blur' } - // ], + remark: [ + { max: 50, message: '不得超过50个字符', trigger: 'blur' } + ], }) /** @@ -820,6 +811,9 @@ export const UnplannedreceiptRequestDetailRules = reactive({ itemCode: [ { required: true, message: '请选择物品代码', trigger: 'change' } ], + remark: [ + { max: 50, message: '不得超过50个字符', trigger: 'blur' } + ], }) diff --git a/src/views/wms/moveManage/inventorychange/inventorychangeRequestMain/inventorychangeRequestMain.data.ts b/src/views/wms/moveManage/inventorychange/inventorychangeRequestMain/inventorychangeRequestMain.data.ts index f0888d2de..facc41bac 100644 --- a/src/views/wms/moveManage/inventorychange/inventorychangeRequestMain/inventorychangeRequestMain.data.ts +++ b/src/views/wms/moveManage/inventorychange/inventorychangeRequestMain/inventorychangeRequestMain.data.ts @@ -318,8 +318,8 @@ export const InventorychangeRequestMainRules = reactive({ directCreateRecord: [ { required: true, message: '请选择是否跳过任务直接生成记录', trigger: 'change' } ], - businessType: [ - { required: true, message: '请输入业务类型', trigger: 'blur' } + remark: [ + { max: 50, message: '不得超过50个字符', trigger: 'blur' } ], }) @@ -914,19 +914,13 @@ export const InventorychangeRequestDetail = useCrudSchemas(reactive([ //表单校验 export const InventorymoveRequestMainRules = reactive({ - // fromWarehouseCode: [ - // { required: true, message: '请选择从仓库代码', trigger: 'change' } - // ], - // fromLocationTypes: [ - // { required: true, message: '请选择从库位类型范围', trigger: 'change' } - // ], - // fromAreaCodes: [ - // { required: true, message: '请选择从库区代码范围', trigger: 'change' } - // ], - // toWarehouseCode: [ - // { required: true, message: '请选择到仓库代码', trigger: 'change' } - // ], - // toLocationTypes: [ - // { required: true, message: '请选择到库位类型范围', trigger: 'change' } - // ], departmentCode: [ { required: true, message: '请输入部门', trigger: 'blur' } ], @@ -448,9 +433,9 @@ export const InventorymoveRequestMainRules = reactive({ directCreateRecord: [ { required: true, message: '请选择是否跳过任务直接生成记录', trigger: 'change' } ], - // businessType: [ - // { required: true, message: '请输入业务类型', trigger: 'blur' } - // ], + remark: [ + { max: 50, message: '不得超过50个字符', trigger: 'blur' } + ], }) /** @@ -845,16 +830,10 @@ export const InventorymoveRequestDetailRules = reactive({ fromInventoryStatus: [ { required: true, message: '请选择从库存状态', trigger: 'change' } ], - // toPackingNumber: [ - // { required: true, message: '请选择到包装号', trigger: 'change' } - // ], - // toBatch: [ - // { required: true, message: '请输入到批次', trigger: 'blur' } - // ], toLocationCode: [ { required: true, message: '请选择到库位代码', trigger: 'change' } ], - // toInventoryStatus: [ - // { required: true, message: '请选择到库存状态', trigger: 'change' } - // ], + remark: [ + { max: 50, message: '不得超过50个字符', trigger: 'blur' } + ], }) \ No newline at end of file