diff --git a/src/views/wms/basicDataManage/supplierManage/supplierCycle/supplierCycle.data.ts b/src/views/wms/basicDataManage/supplierManage/supplierCycle/supplierCycle.data.ts index 704ff81e9..528c37fec 100644 --- a/src/views/wms/basicDataManage/supplierManage/supplierCycle/supplierCycle.data.ts +++ b/src/views/wms/basicDataManage/supplierManage/supplierCycle/supplierCycle.data.ts @@ -3,10 +3,7 @@ import { dateFormatter } from '@/utils/formatTime' import * as SupplierApi from '@/api/wms/supplier' import { Supplier } from '@/views/wms/basicDataManage/supplierManage/supplier/supplier.data' // 表单校验 -export const SupplierCycleRules = reactive({ - available: [required], - departmentCode: [required], -}) + export const SupplierCycle = useCrudSchemas(reactive([ { @@ -156,3 +153,8 @@ export const SupplierCycle = useCrudSchemas(reactive([ } } ])) +export const SupplierCycleRules = reactive({ + supplierCode: [ + { required: true, message: '供应商代码不能为空', trigger: 'blur' }, + ], +}) \ No newline at end of file