From f0869d08562a4d09b9b44ce7b6a99ec0800833dd Mon Sep 17 00:00:00 2001 From: weiwei Date: Mon, 24 Feb 2025 10:03:41 +0800 Subject: [PATCH] =?UTF-8?q?=E8=BF=9B=E4=BB=B7=E5=8F=AF=E7=BC=96=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/supermarketerp/smErpCgDd/smErpCgDdOption.vue | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/views/supermarketerp/smErpCgDd/smErpCgDdOption.vue b/src/views/supermarketerp/smErpCgDd/smErpCgDdOption.vue index d568944..ad8c382 100644 --- a/src/views/supermarketerp/smErpCgDd/smErpCgDdOption.vue +++ b/src/views/supermarketerp/smErpCgDd/smErpCgDdOption.vue @@ -126,10 +126,13 @@ - + + @@ -249,6 +252,8 @@ const dataRules = ref({ const validRules = ref>({ unitId: [{ required: true, message: "必须选择" }], quantity: [{ required: true, type: "number", min: 1, max: 99, message: "数值范围1~99" }], + unitPrice: [{ required: true, type: "number", min: 0, message: "请输入数值" }], + purchasePrice: [{ required: true, type: "number", min: 0, message: "请输入数值" }], }) // 初始化数据