From f56dc7bde9c0c81bc9fd4c7eb36ba2fe8e886041 Mon Sep 17 00:00:00 2001 From: caolc <572275724@qq.com> Date: Tue, 4 Apr 2023 11:16:18 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8F=90=E8=B4=A7=E5=8D=95=E4=BF=A1=E6=81=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/order/components/billOfLading.vue | 2 +- src/views/product/components/create.vue | 12 +++++++++++- src/views/product/index.vue | 2 +- src/views/refineryCenter/components/billOfLading.vue | 2 +- 4 files changed, 14 insertions(+), 4 deletions(-) diff --git a/src/views/order/components/billOfLading.vue b/src/views/order/components/billOfLading.vue index fa0c4f0..4e64fed 100644 --- a/src/views/order/components/billOfLading.vue +++ b/src/views/order/components/billOfLading.vue @@ -110,7 +110,7 @@ - 元/吨 + diff --git a/src/views/product/components/create.vue b/src/views/product/components/create.vue index 7d8fda4..34d71e0 100644 --- a/src/views/product/components/create.vue +++ b/src/views/product/components/create.vue @@ -87,7 +87,7 @@ > 元/吨 - + { + if (!Boolean(Number(value))) { + callback(new Error('预约提货量不能为空或零')); + } else { + callback(); + } + }; return { customList: [], form: { @@ -191,6 +198,9 @@ export default { enableMark: [ { required: true, message: "请选择启用状态", trigger: "change" }, ], + preQuantity:[ + { required: true, validator:validatePass, trigger: "blur" } + ], productType: [ { required: true, message: "请选择产品类型", trigger: "change" }, ], diff --git a/src/views/product/index.vue b/src/views/product/index.vue index e58a29a..df58639 100644 --- a/src/views/product/index.vue +++ b/src/views/product/index.vue @@ -174,7 +174,7 @@ - + diff --git a/src/views/refineryCenter/components/billOfLading.vue b/src/views/refineryCenter/components/billOfLading.vue index 25a3ace..42247d7 100644 --- a/src/views/refineryCenter/components/billOfLading.vue +++ b/src/views/refineryCenter/components/billOfLading.vue @@ -110,7 +110,7 @@ - 元/吨 + -- 2.36.2