Browse Source

字段长度

master
zhang_li 10 months ago
parent
commit
ba0815965a
  1. 34
      src/views/wms/issueManage/issue/issueRequestMain/issueRequestMain.data.ts
  2. 6
      src/views/wms/issueManage/preparetoissueplan/preparetoissueMain/preparetoissueMain.data.ts
  3. 21
      src/views/wms/issueManage/productionreturn/productionreturnRequestMain/productionreturnRequestMain.data.ts
  4. 21
      src/views/wms/issueManage/productionreturn/productionreturnRequestMainNo/productionreturnRequestMainNo.data.ts
  5. 6
      src/views/wms/issueManage/repleinsh/repleinshRequestMain/repleinshRequestMain.data.ts
  6. 15
      src/views/wms/productionManage/productdismantle/productdismantleRequestMain/productdismantleRequestMain.data.ts
  7. 12
      src/views/wms/productionManage/productionplan/productionMain/productionMain.data.ts
  8. 18
      src/views/wms/productionManage/productputaway/productputawayRequestMain/productputawayRequestMain.data.ts
  9. 33
      src/views/wms/productionManage/productreceipt/productreceiptRequestMain/productreceiptRequestMain.data.ts
  10. 16
      src/views/wms/productionManage/productrepair/productrepairRequestMain/productrepairRequestMain.data.ts
  11. 16
      src/views/wms/productionManage/productscrap/productscrapRequestMain/productscrapRequestMain.data.ts

34
src/views/wms/issueManage/issue/issueRequestMain/issueRequestMain.data.ts

@ -436,34 +436,9 @@ export const IssueRequestMainRules = reactive({
dueTime: [
{ required: true, message: '请选择截止时间', trigger: 'change' }
],
// fromLocationTypes: [
// { required: true, message: '请选择从库位类型范围', trigger: 'change' }
// ],
// toWarehouseCode: [
// { required: true, message: '请输入到仓库代码', trigger: 'blur' }
// ],
// toLocationTypes: [
// { required: true, message: '请选择到库位类型范围', trigger: 'change' }
// ],
// departmentCode: [
// { required: true, message: '请输入部门', trigger: 'blur' }
// ],
// autoCommit: [
// { required: true, message: '请选择是否自动提交', trigger: 'change' }
// ],
// autoAgree: [
// { required: true, message: '请选择是否自动通过', trigger: 'change' }
// ],
// autoExecute: [
// { required: true, message: '请选择是否自动执行', trigger: 'change' }
// ],
// directCreateRecord: [
// { required: true, message: '请选择是否跳过任务直接生成记录', trigger: 'change' }
// ],
// businessType: [
// { required: true, message: '请输入业务类型', trigger: 'blur' }
// ],
remark: [
{ max: 50, message: '不得超过50个字符', trigger: 'blur' }
],
})
/**
@ -868,4 +843,7 @@ export const IssueRequestDetailRules = reactive({
uom: [
{ required: true, message: '请选择单位', trigger: 'change' }
],
remark: [
{ max: 50, message: '不得超过50个字符', trigger: 'blur' }
],
})

6
src/views/wms/issueManage/preparetoissueplan/preparetoissueMain/preparetoissueMain.data.ts

@ -370,6 +370,9 @@ export const PreparetoissueMainRules = reactive({
businessType: [
{ required: true, message: '请输入业务类型', trigger: 'blur' }
],
remark: [
{ max: 50, message: '不得超过50个字符', trigger: 'blur' }
],
})
/**
@ -685,4 +688,7 @@ export const PreparetoissueDetailRules = reactive({
workStation: [
{ required: true, message: '请选择工位', trigger: 'change' }
],
remark: [
{ max: 50, message: '不得超过50个字符', trigger: 'blur' }
],
})

21
src/views/wms/issueManage/productionreturn/productionreturnRequestMain/productionreturnRequestMain.data.ts

@ -388,21 +388,12 @@ export const ProductionreturnRequestMain = useCrudSchemas(reactive<CrudSchema[]>
//表单校验
export const ProductionreturnRequestMainRules = reactive({
// fromWarehouseCode: [
// { required: true, message: '请输入从仓库代码', trigger: 'blur' }
// ],
// fromLocationTypes: [
// { required: true, message: '请选择从库位类型范围', trigger: 'change' }
// ],
// toWarehouseCode: [
// { required: true, message: '请输入到仓库代码', trigger: 'blur' }
// ],
// toLocationTypes: [
// { required: true, message: '请选择到库位类型范围', trigger: 'change' }
// ],
departmentCode: [
{ required: true, message: '请输入部门', trigger: 'blur' }
],
remark: [
{ max: 50, message: '不得超过50个字符', trigger: 'blur' }
],
autoCommit: [
{ required: true, message: '请选择是否自动提交', trigger: 'change' }
],
@ -415,9 +406,6 @@ export const ProductionreturnRequestMainRules = reactive({
directCreateRecord: [
{ required: true, message: '请选择是否跳过任务直接生成记录', trigger: 'change' }
],
// businessType: [
// { required: true, message: '请输入业务类型', trigger: 'blur' }
// ],
})
/**
@ -877,6 +865,9 @@ export const ProductionreturnRequestDetailRules = reactive({
itemCode: [
{ required: true, message: '请输入物品代码', trigger: 'blur' }
],
remark: [
{ max: 50, message: '不得超过50个字符', trigger: 'blur' }
],
})
/**

21
src/views/wms/issueManage/productionreturn/productionreturnRequestMainNo/productionreturnRequestMainNo.data.ts

@ -386,18 +386,6 @@ export const ProductionreturnRequestMain = useCrudSchemas(reactive<CrudSchema[]>
//表单校验
export const ProductionreturnRequestMainRules = reactive({
// fromWarehouseCode: [
// { required: true, message: '请输入从仓库代码', trigger: 'blur' }
// ],
// fromLocationTypes: [
// { required: true, message: '请选择从库位类型范围', trigger: 'change' }
// ],
// toWarehouseCode: [
// { required: true, message: '请输入到仓库代码', trigger: 'blur' }
// ],
// toLocationTypes: [
// { required: true, message: '请选择到库位类型范围', trigger: 'change' }
// ],
departmentCode: [
{ required: true, message: '请输入部门', trigger: 'blur' }
],
@ -413,9 +401,9 @@ export const ProductionreturnRequestMainRules = reactive({
directCreateRecord: [
{ required: true, message: '请选择是否跳过任务直接生成记录', trigger: 'change' }
],
// businessType: [
// { required: true, message: '请输入业务类型', trigger: 'blur' }
// ],
remark: [
{ max: 50, message: '不得超过50个字符', trigger: 'blur' }
],
})
/**
@ -807,6 +795,9 @@ export const ProductionreturnRequestDetailRules = reactive({
itemCode: [
{ required: true, message: '请输入物品代码', trigger: 'blur' }
],
remark: [
{ max: 50, message: '不得超过50个字符', trigger: 'blur' }
],
})
/**

6
src/views/wms/issueManage/repleinsh/repleinshRequestMain/repleinshRequestMain.data.ts

@ -384,6 +384,9 @@ export const RepleinshRequestMainRules = reactive({
businessType: [
{ required: true, message: '请输入业务类型', trigger: 'blur' }
],
remark: [
{ max: 50, message: '不得超过50个字符', trigger: 'blur' }
],
})
/**
@ -692,4 +695,7 @@ export const RepleinshRequestDetailRules = reactive({
itemCode: [
{ required: true, message: '请输入物品代码', trigger: 'blur' }
],
remark: [
{ max: 50, message: '不得超过50个字符', trigger: 'blur' }
],
})

15
src/views/wms/productionManage/productdismantle/productdismantleRequestMain/productdismantleRequestMain.data.ts

@ -415,15 +415,6 @@ export const ProductdismantleRequestMain = useCrudSchemas(reactive<CrudSchema[]>
//表单校验
export const ProductdismantleRequestMainRules = reactive({
// fromWarehouseCode: [
// { required: true, message: '请选择从仓库代码', trigger: 'change' }
// ],
// fromLocationTypes: [
// { required: true, message: '请选择从库位类型范围', trigger: 'change' }
// ],
// fromAreaCodes: [
// { required: true, message: '请选择从库区代码范围', trigger: 'change' }
// ],
dueTime: [
{ required: true, message: '请选择截止时间', trigger: 'change' }
],
@ -436,6 +427,9 @@ export const ProductdismantleRequestMainRules = reactive({
shift: [
{ required: true, message: '请选择班次', trigger: 'change' }
],
remark: [
{ max: 50, message: '不得超过50个字符', trigger: 'blur' }
],
})
/**
@ -1021,6 +1015,9 @@ export const ProductdismantleRequestDetailaRules = reactive({
bomVersion: [
{ required: true, message: '请选择Bom版本', trigger: 'change' }
],
remark: [
{ max: 50, message: '不得超过50个字符', trigger: 'blur' }
],
})
/**

12
src/views/wms/productionManage/productionplan/productionMain/productionMain.data.ts

@ -428,7 +428,8 @@ export const ProductionMain = useCrudSchemas(reactive<CrudSchema[]>([
//表单校验
export const ProductionMainRules = reactive({
displayOrder: [
{ required: true, message: '请输入顺序', trigger: 'blur' }
{ required: true, message: '请输入顺序', trigger: 'blur' },
{ max: 50, message: '不得超过50个字符', trigger: 'blur' }
],
workshop: [
{ required: true, message: '请选择车间', trigger: 'change' }
@ -457,9 +458,9 @@ export const ProductionMainRules = reactive({
endTime: [
{ required: true, message: '请输入结束日期', trigger: 'blur' }
],
// businessType: [
// { required: true, message: '请输入业务类型', trigger: 'blur' }
// ],
remark: [
{ max: 50, message: '不得超过50个字符', trigger: 'blur' }
],
})
/**
@ -785,4 +786,7 @@ export const ProductionDetailRules = reactive({
itemCode: [
{ required: true, message: '请选择物品代码', trigger: 'change' }
],
remark: [
{ max: 50, message: '不得超过50个字符', trigger: 'blur' }
],
})

18
src/views/wms/productionManage/productputaway/productputawayRequestMain/productputawayRequestMain.data.ts

@ -359,18 +359,9 @@ export const ProductputawayRequestMain = useCrudSchemas(reactive<CrudSchema[]>([
//表单校验
export const ProductputawayRequestMainRules = reactive({
// fromWarehouseCode: [
// { required: true, message: '请输入从仓库代码', trigger: 'blur' }
// ],
// fromLocationTypes: [
// { required: true, message: '请选择从库位类型范围', trigger: 'change' }
// ],
// toWarehouseCode: [
// { required: true, message: '请输入到仓库代码', trigger: 'blur' }
// ],
// toLocationTypes: [
// { required: true, message: '请选择到库位类型范围', trigger: 'change' }
// ],
remark: [
{ max: 50, message: '不得超过50个字符', trigger: 'blur' }
],
departmentCode: [
{ required: true, message: '请输入部门', trigger: 'blur' }
],
@ -386,9 +377,6 @@ export const ProductputawayRequestMainRules = reactive({
directCreateRecord: [
{ required: true, message: '请选择是否跳过任务直接生成记录', trigger: 'change' }
],
businessType: [
{ required: true, message: '请输入业务类型', trigger: 'blur' }
],
})
/**

33
src/views/wms/productionManage/productreceipt/productreceiptRequestMain/productreceiptRequestMain.data.ts

@ -449,9 +449,9 @@ export const ProductreceiptRequestMainRules = reactive({
directCreateRecord: [
{ required: true, message: '请选择是否跳过任务直接生成记录', trigger: 'change' }
],
// businessType: [
// { required: true, message: '请输入业务类型', trigger: 'blur' }
// ],
remark: [
{ max: 50, message: '不得超过50个字符', trigger: 'blur' }
],
})
/**
@ -1003,35 +1003,15 @@ export const ProductreceiptRequestDetail = useCrudSchemas(reactive<CrudSchema[]>
//表单校验
export const ProductreceiptRequestDetailRules = reactive({
// productionLineCode: [
// { required: true, message: '请选择生产线代码', trigger: 'change' }
// ],
// packingNumber: [
// { required: true, message: '请输入包装号', trigger: 'change' }
// ],
produceDate: [
{ required: true, message: '请选择生产日期', trigger: 'change' }
],
expireDate: [
{ required: true, message: '请选择过期日期', trigger: 'change' }
],
// inventoryStatus: [
// { required: true, message: '请选择库存状态', trigger: 'change' }
// ],
// woNumber: [
// { required: true, message: '请输入订单号', trigger: 'blur' }
// ],
// woLine: [
// { required: true, message: '请输入订单行', trigger: 'blur' }
// ],
// stdPackQty: [
// { required: true, message: '请输入标包数量', trigger: 'blur' }
// ],
// stdPackUnit: [
// { required: true, message: '请选择标包单位', trigger: 'change' }
// ],
batch: [
{ required: true, message: '请输入批次', trigger: 'blur' }
{ required: true, message: '请输入批次', trigger: 'blur' },
{ max: 50, message: '不得超过50个字符', trigger: 'blur' }
],
itemCode: [
{ required: true, message: '请选择物品代码', trigger: 'change' }
@ -1048,6 +1028,9 @@ export const ProductreceiptRequestDetailRules = reactive({
productionLineCode: [
{ required: true, message: '请选择生产线代码', trigger: 'change' }
],
remark: [
{ max: 50, message: '不得超过50个字符', trigger: 'blur' }
],
})
/**

16
src/views/wms/productionManage/productrepair/productrepairRequestMain/productrepairRequestMain.data.ts

@ -421,15 +421,6 @@ export const ProductrepairRequestMainRules = reactive({
dueTime: [
{ required: true, message: '请选择截止时间', trigger: 'change' }
],
fromWarehouseCode: [
{ required: true, message: '请选择从仓库代码', trigger: 'change' }
],
fromLocationTypes: [
{ required: true, message: '请选择从库位类型范围', trigger: 'change' }
],
fromAreaCodes: [
{ required: true, message: '请选择从库区代码范围', trigger: 'change' }
],
departmentCode: [
{ required: true, message: '请输入部门', trigger: 'blur' }
],
@ -445,8 +436,8 @@ export const ProductrepairRequestMainRules = reactive({
directCreateRecord: [
{ required: true, message: '请选择是否跳过任务直接生成记录', trigger: 'change' }
],
businessType: [
{ required: true, message: '请输入业务类型', trigger: 'blur' }
remark: [
{ max: 50, message: '不得超过50个字符', trigger: 'blur' }
],
})
@ -946,6 +937,9 @@ export const ProductrepairRequestDetailaRules = reactive({
itemCode: [
{ required: true, message: '请选择物品代码', trigger: 'change' }
],
remark: [
{ max: 50, message: '不得超过50个字符', trigger: 'blur' }
],
})
/**

16
src/views/wms/productionManage/productscrap/productscrapRequestMain/productscrapRequestMain.data.ts

@ -423,15 +423,6 @@ export const ProductscrapRequestMainRules = reactive({
dueTime: [
{ required: true, message: '请选择截止时间', trigger: 'change' }
],
fromWarehouseCode: [
{ required: true, message: '请选择从仓库代码', trigger: 'change' }
],
fromLocationTypes: [
{ required: true, message: '请选择从库位类型范围', trigger: 'change' }
],
fromAreaCodes: [
{ required: true, message: '请选择从库区代码范围', trigger: 'change' }
],
departmentCode: [
{ required: true, message: '请输入部门', trigger: 'blur' }
],
@ -450,8 +441,8 @@ export const ProductscrapRequestMainRules = reactive({
directCreateRecord: [
{ required: true, message: '请选择是否跳过任务直接生成记录', trigger: 'change' }
],
businessType: [
{ required: true, message: '请输入业务类型', trigger: 'blur' }
remark: [
{ max: 50, message: '不得超过50个字符', trigger: 'blur' }
],
})
@ -948,6 +939,9 @@ export const ProductscrapRequestDetailRules = reactive({
itemCode: [
{ required: true, message: '请选择物品代码', trigger: 'change' }
],
remark: [
{ max: 50, message: '不得超过50个字符', trigger: 'blur' }
],
})
/**

Loading…
Cancel
Save