Browse Source

字段长度

master
zhang_li 11 months ago
parent
commit
161b2392f3
  1. 10
      src/views/wms/countManage/count/countPlanMain/countPlanMain.data.ts
  2. 30
      src/views/wms/inventoryjobManage/inventoryinitial/inventoryinitRequestMain/inventoryinitRequestMain.data.ts
  3. 18
      src/views/wms/inventoryjobManage/scrap/scrapRequestMain/scrapRequestMain.data.ts
  4. 30
      src/views/wms/inventoryjobManage/transferissue/transferissueRequestMain/transferissueRequestMain.data.ts
  5. 31
      src/views/wms/inventoryjobManage/unplannedissue/unplannedissueRequestMain/unplannedissueRequestMain.data.ts
  6. 18
      src/views/wms/inventoryjobManage/unplannedreceipt/unplannedreceiptRequestMain/unplannedreceiptRequestMain.data.ts
  7. 22
      src/views/wms/moveManage/inventorychange/inventorychangeRequestMain/inventorychangeRequestMain.data.ts
  8. 33
      src/views/wms/moveManage/inventorymove/inventorymoveRequestMain/inventorymoveRequestMain.data.ts

10
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' }
],
})

30
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<CrudSchema[]>(
//表单校验
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' }
],
})

18
src/views/wms/inventoryjobManage/scrap/scrapRequestMain/scrapRequestMain.data.ts

@ -353,15 +353,6 @@ export const ScrapRequestMain = useCrudSchemas(reactive<CrudSchema[]>([
//表单校验
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' }
],
})

30
src/views/wms/inventoryjobManage/transferissue/transferissueRequestMain/transferissueRequestMain.data.ts

@ -481,24 +481,6 @@ export const TransferissueRequestMain = useCrudSchemas(reactive<CrudSchema[]>([
//表单校验
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' }
],
})

31
src/views/wms/inventoryjobManage/unplannedissue/unplannedissueRequestMain/unplannedissueRequestMain.data.ts

@ -322,15 +322,6 @@ export const UnplannedissueRequestMain = useCrudSchemas(reactive<CrudSchema[]>([
//表单校验
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<CrudSchema[]>
//表单校验
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' }
],
})

18
src/views/wms/inventoryjobManage/unplannedreceipt/unplannedreceiptRequestMain/unplannedreceiptRequestMain.data.ts

@ -362,15 +362,6 @@ export const UnplannedreceiptRequestMain = useCrudSchemas(reactive<CrudSchema[]>
//表单校验
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' }
],
})

22
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<CrudSchema[]
//表单校验
export const InventorychangeRequestDetailRules = reactive({
// locationCode: [
// { required: true, message: '请选择库位代码', trigger: 'change' }
// ],
// locationGroupCode: [
// { required: true, message: '请选择库位组代码', trigger: 'change' }
// ],
// areaCode: [
// { required: true, message: '请选择库区代码', trigger: 'change' }
// ],
// itemCode: [
// { required: true, message: '请选择物品代码', trigger: 'change' }
// ],
toBatch: [
{ max: 50, message: '不得超过50个字符', trigger: 'blur' }
],
toInventoryStatus: [
{ required: true, message: '请选择到库存状态', trigger: 'change' }
],
remark: [
{ max: 50, message: '不得超过50个字符', trigger: 'blur' }
],
})

33
src/views/wms/moveManage/inventorymove/inventorymoveRequestMain/inventorymoveRequestMain.data.ts

@ -415,21 +415,6 @@ export const InventorymoveRequestMain = useCrudSchemas(reactive<CrudSchema[]>([
//表单校验
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' }
],
})
Loading…
Cancel
Save