From 695427384b3206d627fd52ed99cad18816d060c1 Mon Sep 17 00:00:00 2001 From: wangyufei <2267742828@qq.com> Date: Fri, 5 Jul 2024 10:18:24 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BE=9B=E5=BA=94=E5=95=86=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../supplierManage/supplierCycle/supplierCycle.data.ts | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) 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