Browse Source

字段长度

master
zhang_li 11 months ago
parent
commit
96be6a4b9a
  1. 54
      src/views/wms/deliversettlementManage/customerreturn/customerreturnRequestMain/customerreturnRequestMain.data.ts
  2. 43
      src/views/wms/deliversettlementManage/deliver/deliverRequestMain/deliverRequestMain.data.ts
  3. 11
      src/views/wms/deliversettlementManage/deliverplan/deliverPlanMain/deliverPlanMain.data.ts
  4. 29
      src/views/wms/deliversettlementManage/deliverplan/saleMain/saleMain.data.ts

54
src/views/wms/deliversettlementManage/customerreturn/customerreturnRequestMain/customerreturnRequestMain.data.ts

@ -488,36 +488,9 @@ export const CustomerreturnRequestMain = useCrudSchemas(reactive<CrudSchema[]>([
//表单校验 //表单校验
export const CustomerreturnRequestMainRules = reactive({ export const CustomerreturnRequestMainRules = reactive({
// customerCode: [
// { required: true, message: '请选择客户代码', trigger: 'change' }
// ],
// customerDockCode: [
// { required: true, message: '请选择客户月台代码', trigger: 'change' }
// ],
// 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' }
// ],
// toAreaCodes: [
// { required: true, message: '请选择到库区代码范围', trigger: 'change' }
// ],
deliverRecordNumber: [ deliverRecordNumber: [
{ required: true, message: '请选择发货记录单号', trigger: 'change' } { required: true, message: '请选择发货记录单号', trigger: 'change' }
], ],
// customerDockCode: [
// { required: true, message: '请选择客户月台代码', trigger: 'change' }
// ],
departmentCode: [ departmentCode: [
{ required: true, message: '请输入部门', trigger: 'blur' } { required: true, message: '请输入部门', trigger: 'blur' }
], ],
@ -533,9 +506,12 @@ export const CustomerreturnRequestMainRules = reactive({
directCreateRecord: [ directCreateRecord: [
{ required: true, message: '请选择是否跳过任务直接生成记录', trigger: 'change' } { required: true, message: '请选择是否跳过任务直接生成记录', trigger: 'change' }
], ],
// businessType: [ vehiclePlateNumber: [
// { required: true, message: '请输入业务类型', trigger: 'blur' } { max: 50, message: '不得超过50个字符', trigger: 'blur' }
// ], ],
remark: [
{ max: 50, message: '不得超过50个字符', trigger: 'blur' }
],
}) })
/** /**
@ -943,22 +919,10 @@ export const CustomerreturnRequestDetail = useCrudSchemas(reactive<CrudSchema[]>
//表单校验 //表单校验
export const CustomerreturnRequestDetailRules = reactive({ export const CustomerreturnRequestDetailRules = reactive({
// soNumber: [
// { required: true, message: '请选择销售订单号', trigger: 'change' }
// ],
// packingNumber: [
// { required: true, message: '请选择包装号', trigger: 'change' }
// ],
// batch: [
// { required: true, message: '请输入批次', trigger: 'blur' }
// ],
// inventoryStatus: [
// { required: true, message: '请选择库存状态', trigger: 'change' }
// ],
// fromLocationCode: [
// { required: true, message: '请选择从库位代码', trigger: 'change' }
// ],
itemCode: [ itemCode: [
{ required: true, message: '请选择物品代码', trigger: 'change' } { required: true, message: '请选择物品代码', trigger: 'change' }
], ],
remark: [
{ max: 50, message: '不得超过50个字符', trigger: 'blur' }
],
}) })

43
src/views/wms/deliversettlementManage/deliver/deliverRequestMain/deliverRequestMain.data.ts

@ -499,24 +499,6 @@ export const DeliverRequestMainRules = reactive({
customerDockCode: [ customerDockCode: [
{ required: true, message: '请选择客户月台代码', trigger: 'change' } { required: true, message: '请选择客户月台代码', trigger: 'change' }
], ],
// 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' }
// ],
// deliverPlanNumber: [
// { required: true, message: '请选择发货计划单号', trigger: 'change' }
// ],
departmentCode: [ departmentCode: [
{ required: true, message: '请输入部门', trigger: 'blur' } { required: true, message: '请输入部门', trigger: 'blur' }
], ],
@ -535,8 +517,11 @@ export const DeliverRequestMainRules = reactive({
directCreateRecord: [ directCreateRecord: [
{ required: true, message: '请选择是否跳过任务直接生成记录', trigger: 'change' } { required: true, message: '请选择是否跳过任务直接生成记录', trigger: 'change' }
], ],
businessType: [ vehiclePlateNumber: [
{ required: true, message: '请输入业务类型', trigger: 'blur' } { max: 50, message: '不得超过50个字符', trigger: 'blur' }
],
remark: [
{ max: 50, message: '不得超过50个字符', trigger: 'blur' }
], ],
}) })
@ -908,22 +893,10 @@ export const DeliverRequestDetail = useCrudSchemas(reactive<CrudSchema[]>([
//表单校验 //表单校验
export const DeliverRequestDetailRules = reactive({ export const DeliverRequestDetailRules = reactive({
// soNumber: [
// { required: true, message: '请选择销售订单号', trigger: 'change' }
// ],
// packingNumber: [
// { required: true, message: '请选择包装号', trigger: 'change' }
// ],
// batch: [
// { required: true, message: '请输入批次', trigger: 'blur' }
// ],
// inventoryStatus: [
// { required: true, message: '请选择库存状态', trigger: 'change' }
// ],
// toLocationCode: [
// { required: true, message: '请选择到库位代码', trigger: 'change' }
// ],
itemCode: [ itemCode: [
{ required: true, message: '请选择物品代码', trigger: 'change' } { required: true, message: '请选择物品代码', trigger: 'change' }
], ],
remark: [
{ max: 50, message: '不得超过50个字符', trigger: 'blur' }
],
}) })

11
src/views/wms/deliversettlementManage/deliverplan/deliverPlanMain/deliverPlanMain.data.ts

@ -251,8 +251,8 @@ export const DeliverPlanMainRules = reactive({
status: [ status: [
{ required: true, message: '请选择状态', trigger: 'change' } { required: true, message: '请选择状态', trigger: 'change' }
], ],
businessType: [ remark: [
{ required: true, message: '请输入业务类型', trigger: 'blur' } { max: 50, message: '不得超过50个字符', trigger: 'blur' }
], ],
}) })
@ -540,7 +540,8 @@ export const DeliverPlanDetailRules = reactive({
planQty: [ planQty: [
{ required: true, message: '请输入计划数量', trigger: 'blur' } { required: true, message: '请输入计划数量', trigger: 'blur' }
], ],
// soNumber: [
// { required: true, message: '请选择销售订单号', trigger: 'change' } remark: [
// ], { max: 50, message: '不得超过50个字符', trigger: 'blur' }
],
}) })

29
src/views/wms/deliversettlementManage/deliverplan/saleMain/saleMain.data.ts

@ -285,11 +285,25 @@ export const SaleMainRules = reactive({
taxRate: [ taxRate: [
{ required: true, message: '请输入税率', trigger: 'blur' } { required: true, message: '请输入税率', trigger: 'blur' }
], ],
number: [ version: [
{ required: true, message: '请输入单据号', trigger: 'blur' } { max: 50, message: '不得超过50个字符', trigger: 'blur' }
],
contactName: [
{ max: 50, message: '不得超过50个字符', trigger: 'blur' }
],
contactPhone: [
{ max: 50, message: '不得超过50个字符', trigger: 'blur' },
{ validator:validateHanset, message: '请输入正确的手机号', trigger: 'blur'}
], ],
businessType: [ contactEmail: [
{ required: true, message: '请输入业务类型', trigger: 'blur' } { max: 50, message: '不得超过50个字符', trigger: 'blur' },
{ validator:validateEmail, message: '请输入正确的手机号', trigger: 'blur'}
],
remark: [
{ max: 50, message: '不得超过50个字符', trigger: 'blur' }
],
currentStage: [
{ max: 50, message: '不得超过50个字符', trigger: 'blur' }
], ],
available: [ available: [
{ required: true, message: '请选择是否可用', trigger: 'change' } { required: true, message: '请选择是否可用', trigger: 'change' }
@ -699,7 +713,8 @@ export const SaleDetail = useCrudSchemas(reactive<CrudSchema[]>([
//表单校验 //表单校验
export const SaleDetailRules = reactive({ export const SaleDetailRules = reactive({
lineNumber: [ lineNumber: [
{ required: true, message: '请输入行号', trigger: 'blur' } { required: true, message: '请输入行号', trigger: 'blur' },
{ max: 50, message: '不得超过50个字符', trigger: 'blur' }
], ],
stdPackQty: [ stdPackQty: [
{ required: true, message: '请输入标包数量', trigger: 'blur' } { required: true, message: '请输入标包数量', trigger: 'blur' }
@ -725,4 +740,8 @@ export const SaleDetailRules = reactive({
itemCode: [ itemCode: [
{ required: true, message: '请选择物品代码', trigger: 'change' } { required: true, message: '请选择物品代码', trigger: 'change' }
], ],
remark: [
{ max: 50, message: '不得超过50个字符', trigger: 'blur' }
],
}) })
Loading…
Cancel
Save