diff --git a/src/views/wms/deliversettlementManage/customerreturn/customerreturnRequestMain/customerreturnRequestMain.data.ts b/src/views/wms/deliversettlementManage/customerreturn/customerreturnRequestMain/customerreturnRequestMain.data.ts index cad67a28e..f73d168cb 100644 --- a/src/views/wms/deliversettlementManage/customerreturn/customerreturnRequestMain/customerreturnRequestMain.data.ts +++ b/src/views/wms/deliversettlementManage/customerreturn/customerreturnRequestMain/customerreturnRequestMain.data.ts @@ -488,36 +488,9 @@ export const CustomerreturnRequestMain = useCrudSchemas(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: [ { required: true, message: '请选择发货记录单号', trigger: 'change' } ], - // customerDockCode: [ - // { required: true, message: '请选择客户月台代码', trigger: 'change' } - // ], departmentCode: [ { required: true, message: '请输入部门', trigger: 'blur' } ], @@ -533,9 +506,12 @@ export const CustomerreturnRequestMainRules = 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' } + ], }) /** @@ -943,22 +919,10 @@ export const CustomerreturnRequestDetail = useCrudSchemas(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: [ { required: true, message: '请选择物品代码', trigger: 'change' } ], + remark: [ + { max: 50, message: '不得超过50个字符', trigger: 'blur' } + ], }) \ No newline at end of file diff --git a/src/views/wms/deliversettlementManage/deliver/deliverRequestMain/deliverRequestMain.data.ts b/src/views/wms/deliversettlementManage/deliver/deliverRequestMain/deliverRequestMain.data.ts index 76d951cb1..c154ba413 100644 --- a/src/views/wms/deliversettlementManage/deliver/deliverRequestMain/deliverRequestMain.data.ts +++ b/src/views/wms/deliversettlementManage/deliver/deliverRequestMain/deliverRequestMain.data.ts @@ -499,24 +499,6 @@ export const DeliverRequestMainRules = reactive({ 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' } - // ], - // deliverPlanNumber: [ - // { required: true, message: '请选择发货计划单号', trigger: 'change' } - // ], departmentCode: [ { required: true, message: '请输入部门', trigger: 'blur' } ], @@ -535,8 +517,11 @@ export const DeliverRequestMainRules = 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' } ], }) @@ -908,22 +893,10 @@ export const DeliverRequestDetail = useCrudSchemas(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: [ { required: true, message: '请选择物品代码', trigger: 'change' } ], + remark: [ + { max: 50, message: '不得超过50个字符', trigger: 'blur' } + ], }) \ No newline at end of file diff --git a/src/views/wms/deliversettlementManage/deliverplan/deliverPlanMain/deliverPlanMain.data.ts b/src/views/wms/deliversettlementManage/deliverplan/deliverPlanMain/deliverPlanMain.data.ts index dccb4331d..a45faf331 100644 --- a/src/views/wms/deliversettlementManage/deliverplan/deliverPlanMain/deliverPlanMain.data.ts +++ b/src/views/wms/deliversettlementManage/deliverplan/deliverPlanMain/deliverPlanMain.data.ts @@ -251,8 +251,8 @@ export const DeliverPlanMainRules = reactive({ status: [ { required: true, message: '请选择状态', trigger: 'change' } ], - businessType: [ - { required: true, message: '请输入业务类型', trigger: 'blur' } + remark: [ + { max: 50, message: '不得超过50个字符', trigger: 'blur' } ], }) @@ -540,7 +540,8 @@ export const DeliverPlanDetailRules = reactive({ planQty: [ { required: true, message: '请输入计划数量', trigger: 'blur' } ], - // soNumber: [ - // { required: true, message: '请选择销售订单号', trigger: 'change' } - // ], + + remark: [ + { max: 50, message: '不得超过50个字符', trigger: 'blur' } + ], }) \ No newline at end of file diff --git a/src/views/wms/deliversettlementManage/deliverplan/saleMain/saleMain.data.ts b/src/views/wms/deliversettlementManage/deliverplan/saleMain/saleMain.data.ts index aea3523c7..78adda037 100644 --- a/src/views/wms/deliversettlementManage/deliverplan/saleMain/saleMain.data.ts +++ b/src/views/wms/deliversettlementManage/deliverplan/saleMain/saleMain.data.ts @@ -285,11 +285,25 @@ export const SaleMainRules = reactive({ taxRate: [ { required: true, message: '请输入税率', trigger: 'blur' } ], - number: [ - { required: true, message: '请输入单据号', trigger: 'blur' } + version: [ + { 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: [ - { required: true, message: '请输入业务类型', trigger: 'blur' } + contactEmail: [ + { 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: [ { required: true, message: '请选择是否可用', trigger: 'change' } @@ -699,7 +713,8 @@ export const SaleDetail = useCrudSchemas(reactive([ //表单校验 export const SaleDetailRules = reactive({ lineNumber: [ - { required: true, message: '请输入行号', trigger: 'blur' } + { required: true, message: '请输入行号', trigger: 'blur' }, + { max: 50, message: '不得超过50个字符', trigger: 'blur' } ], stdPackQty: [ { required: true, message: '请输入标包数量', trigger: 'blur' } @@ -725,4 +740,8 @@ export const SaleDetailRules = reactive({ itemCode: [ { required: true, message: '请选择物品代码', trigger: 'change' } ], + + remark: [ + { max: 50, message: '不得超过50个字符', trigger: 'blur' } + ], }) \ No newline at end of file